| Previous | 15994 Revisions | Next |
| r2242 Friday 4th April, 2008 at 00:51:02 UTC by Nathan Woods |
|---|
| Updated to MAME 0.124u1 core |
| [ROOT] | makefile |
| [docs] | messnew.txt |
| [src/emu] | debugger.h devconv.h emupal.c emupal.h inptport.c inptport.h input.c input.h mame.c memconv.h memory.c memory.h sound.c tilemap.c tilemap.h uigfx.c video.c |
| [src/emu/cpu/cop400] | 410ops.c 420ops.c cop400.h cop410.c cop410ds.c cop420.c cop420ds.c |
| [src/emu/cpu/mips] | mips3com.c |
| [src/emu/debug] | debugcon.c debugcpu.c debugcpu.h |
| [src/emu/drivers] | xtal.h |
| [src/emu/machine] | 6821pia.c 6840ptm.c 6850acia.c 6850acia.h at28c16.c ds2401.c generic.c idectrl.c msm6242.c scsicd.c smc91c9x.c timekpr.c tmp68301.c |
| [src/emu/sound] | 2151intf.c 2203intf.c 2413intf.c 2610intf.c aicadsp.c ay8910.c disc_dev.c disc_flt.c disc_inp.c disc_mth.c disc_wav.c discrete.c discrete.h es5506.c es8712.c iremga20.c k053260.c okim6295.c psx.c saa1099.c scspdsp.c ymz280b.c |
| [src/emu/video] | cdp1869.c tlc34076.c voodoo.c |
| [src/mame] | mame.mak mamedriv.c tiny.mak |
| [src/mame/audio] | atarijsa.c aztarac.c cchasm.c cyberbal.c dcs.c galaxian.c gottlieb.c jaguar.c leland.c m72.c mcr.c mw8080bw.c scramble.c seibu.c seibu.h sprint4.c taitosnd.c turbo.c tx1.c |
| [src/mame/drivers] | 20pacgal.c acommand.c aerofgt.c alpha68k.c arcadecl.c armedf.c ashnojoe.c asterix.c astrocorp.c* atarig1.c atarig42.c atarigt.c atarigx2.c atarisy2.c backfire.c badlands.c beathead.c bfcobra.c bigfghtr.c bishi.c bishjan.c blmbycar.c blockout.c bloodbro.c blueprnt.c btoads.c cave.c cidelsa.c cinemat.c circusc.c cischeat.c coolpool.c cps1.c cps2.c cps3.c crospang.c crshrace.c cubocd32.c cybertnk.c dambustr.c darkhors.c dcheese.c dcon.c ddenlovr.c ddragon.c deadang.c dec0.c deco156.c deco32.c deniam.c dgpix.c diverboy.c djmain.c dkong.c dreamwld.c drgnmst.c dynduke.c eprom.c equites.c ertictac.c esd16.c esh.c expro02.c exterm.c f1gp.c fantland.c filetto.c firebeat.c flkatck.c foodf.c fromanc2.c fuukifg2.c fuukifg3.c gaelco.c gaelco3d.c gaiden.c galaxian.c galaxold.c* galdrvr.c* galpani2.c galpanic.c galspnbl.c gamecstl.c gameplan.c gauntlet.c genesis.c ghosteo.c gijoe.c glass.c goal92.c goodejan.c gotcha.c gradius3.c grchamp.c groundfx.c gstream.c gstriker.c gticlub.c guab.c* gunbustr.c hornet.c hyprduel.c igs_blit.c inufuku.c ironhors.c itech32.c itech8.c jalmah.c jpmimpct.c kaneko16.c kickgoal.c klax.c konamigq.c konamigx.c konamim2.c ksys573.c lastduel.c lastfght.c legionna.c limenko.c lockon.c looping.c lordgun.c m10.c m107.c m62.c m72.c m90.c m92.c macrossp.c madmotor.c magmax.c mastboy.c mcatadv.c mcr68.c mediagx.c megadriv.c megaplay.c megasys1.c meijinsn.c mermaid.c metro.c midas.c midvunit.c model1.c model2.c model3.c mogura.c mpu4.c mpu4drvr.c mquake.c multigam.c mystwarr.c namcofl.c namcona1.c namcos11.c namcos12.c namcos2.c namcos21.c namcos22.c namcos23.c naomi.c nbmj9195.c nemesis.c neodrvr.c neogeo.c nmg5.c nmk16.c nwk-tr.c offtwall.c ohmygod.c oneshot.c othldrby.c othunder.c overdriv.c pgm.c pirates.c playmark.c plygonet.c pntnpuzl.c policetr.c powerbal.c powerins.c psikyo.c psikyo4.c psikyosh.c puckpkmn.c pushman.c qdrmfgp.c quantum.c raiden.c raiden2.c rainbow.c rampart.c rbmk.c relief.c rpunch.c rungun.c sandscrp.c scobra.c scramble.c seattle.c segac2.c segahang.c segaorun.c segas16a.c segas16b.c segas18.c segas24.c segas32.c segaxbd.c segaybd.c seibuspi.c sengokmj.c seta.c seta2.c sf.c shadfrce.c shangha3.c shanghai.c shuuz.c silkroad.c snk68.c snowbros.c spbactn.c splash.c srmp2.c sslam.c ssv.c stactics.c stlforce.c stv.c suna16.c superchs.c suprnova.c suprslam.c system16.c system18.c tail2nos.c taito_b.c taito_f2.c taito_f3.c taito_z.c taitoair.c taitojc.c taitowlf.c taotaido.c targeth.c tceptor.c tecmo.c tecmo16.c tecmosys.c terracre.c tetrisp2.c thoop2.c thunderj.c tigeroad.c tmaster.c tmnt.c toaplan2.c toki.c toypop.c trvmadns.c trvquest.c tsamurai.c ttchamp.c tumbleb.c turbo.c tx1.c ultraman.c ultrsprt.c undrfire.c unico.c vegas.c vertigo.c videopin.c vigilant.c viper.c volfied.c vulgus.c wecleman.c welltris.c wgp.c wiping.c witch.c wiz.c wolfpack.c wrally.c wwfsstar.c wwfwfest.c xexex.c xmen.c xtheball.c xxmissio.c xyonix.c yumefuda.c yunsun16.c zac2650.c zaccaria.c zaxxon.c zerozone.c zr107.c |
| [src/mame/includes] | cclimber.h cidelsa.h* galaxian.h galaxold.h* tx1.h vertigo.h |
| [src/mame/layout] | armora.lay* |
| [src/mame/machine] | amiga.c atarigen.c bublbobl.c cclimber.c cubocd32.c dc.c galaxold.c* harddriv.c konamigx.c konamiic.c konppc.c mcr.c mexico86.c midtunit.c midwayic.c midwunit.c midyunit.c namcoio.c namcos2.c nmk004.c nmk112.c pcshare.c pcshare.h pgmprot.c psx.c scramble.c segaic16.c segas24.c tatsumi.c tnzs.c toaplan1.c twincobr.c tx1.c vertigo.c wrally.c |
| [src/mame/video] | aerofgt.c alpha68k.c armedf.c badlands.c bionicc.c btoads.c cabal.c cchasm.c cidelsa.c* cischeat.c cps1.c crshrace.c dcon.c deadang.c dooyong.c dynduke.c equites.c f1gp.c fastfred.c gaiden.c galaxian.c galaxold.c* gberet.c genesis.c goal92.c gotcha.c gticlub.c itech32.c kan_pand.c kaneko16.c konamigx.c konamiic.c lastduel.c legionna.c m107.c m62.c m72.c m92.c mappy.c mcr68.c mermaid.c midtunit.c midyunit.c model3.c ms32.c mystwarr.c namcona1.c namcos2.c nemesis.c niyanpai.c nmk16.c nova2001.c ohmygod.c policetr.c powerins.c psikyo.c quizpani.c raiden.c realbrk.c rpunch.c segaic16.c segas32.c seibuspi.c seta.c sf.c shangha3.c snk68.c spbactn.c stvvdp1.c suna16.c tail2nos.c taito_b.c taito_z.c taitoic.c taotaido.c tatsumi.c tecmo16.c terracre.c tetrisp2.c tigeroad.c tmnt.c toaplan1.c toaplan2.c toobin.c toypop.c ultraman.c undrfire.c wecleman.c welltris.c wwfwfest.c |
| [src/mess] | mess.mak |
| [src/mess/drivers] | atarist.c compis.c x68k.c |
| [src/mess/includes] | mz700.h special.h |
| [src/mess/machine] | 99_hsgpl.c amigacrt.c concept.c cybiko.c genesis.c hd63450.c lisa.c mac.c ti99_4x.c |
| [src/mess/video] | atarist.c x68k.c |
| [src/osd/windows] | ledutil.c winwork.c |
| r2241 | r2242 | |
|---|---|---|
| 88 | 88 | { |
| 89 | 89 | static int led; |
| 90 | 90 | |
| 91 | if (ACCESSING_ | |
| 91 | if (ACCESSING_ | |
| 92 | 92 | { |
| 93 | 93 | data >>= 8; |
| 94 | 94 | switch (offset & 0xf) |
| r2241 | r2242 | |
|---|---|---|
| 367 | 367 | |
| 368 | 368 | /* if they were clearing the A2S interrupt, see if we are headed for the spin */ |
| 369 | 369 | /* loop with R22 != 0; if we are, just start spinning again */ |
| 370 | if (cpu_getactivecpu() == 2 && | |
| 370 | if (cpu_getactivecpu() == 2 && ACCESSING_BITS_8_15 | |
| 371 | 371 | { |
| 372 | 372 | /* see if we're going back to the spin loop */ |
| 373 | 373 | if (!(data & 0x04000) && activecpu_get_reg(JAGUAR_R22) != 0) |
| r2241 | r2242 | |
|---|---|---|
| 146 | 146 | |
| 147 | 147 | WRITE16_HANDLER( cyberbal_sound_68k_w ) |
| 148 | 148 | { |
| 149 | if (ACCESSING_ | |
| 149 | if (ACCESSING_ | |
| 150 | 150 | { |
| 151 | 151 | sound_data_from_68k = (data >> 8) & 0xff; |
| 152 | 152 | sound_data_from_68k_ready = 1; |
| r2241 | r2242 | |
|---|---|---|
| 2 | 2 | #include "streams.h" |
| 3 | 3 | #include "deprecat.h" |
| 4 | 4 | #include "sound/samples.h" |
| 5 | #include "includes/galax | |
| 5 | #include "includes/galaxold.h" | |
| 6 | 6 | |
| 7 | 7 | #define VERBOSE 0 |
| 8 | 8 | |
| r2241 | r2242 | |
| 105 | 105 | } |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | WRITE8_HANDLER( galaxian_sound_w ) | |
| 109 | { | |
| 110 | data &= 0x01; | |
| 111 | switch (offset & 7) | |
| 112 | { | |
| 113 | case 0: /* FS1 (controls 555 timer at 8R) */ | |
| 114 | case 1: /* FS2 (controls 555 timer at 8S) */ | |
| 115 | case 2: /* FS3 (controls 555 timer at 8T) */ | |
| 116 | galaxian_background_enable_w(machine, offset, data); | |
| 117 | break; | |
| 118 | ||
| 119 | case 3: /* HIT */ | |
| 120 | galaxian_noise_enable_w(machine, 0, data); | |
| 121 | break; | |
| 122 | ||
| 123 | case 4: /* n/c */ | |
| 124 | break; | |
| 125 | ||
| 126 | case 5: /* FIRE */ | |
| 127 | galaxian_shoot_enable_w(machine, 0, data); | |
| 128 | break; | |
| 129 | ||
| 130 | case 6: /* VOL1 */ | |
| 131 | case 7: /* VOL2 */ | |
| 132 | galaxian_vol_w(machine, offset & 1, data); | |
| 133 | break; | |
| 134 | } | |
| 135 | } | |
| 136 | ||
| 137 | ||
| 108 | 138 | WRITE8_HANDLER( galaxian_pitch_w ) |
| 109 | 139 | { |
| 110 | 140 | stream_update(tone_stream); |
| r2241 | r2242 | |
| 528 | 558 | NULL, |
| 529 | 559 | galaxian_sh_start |
| 530 | 560 | }; |
| 561 | ||
| 562 | const struct Samplesinterface galaxian_custom_interface = | |
| 563 | { | |
| 564 | 5, | |
| 565 | NULL, | |
| 566 | galaxian_sh_start | |
| 567 | }; |
| r2241 | r2242 | |
|---|---|---|
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 9 | 8 | #include "turbo.h" |
| 10 | 9 | #include "sound/samples.h" |
| 11 | 10 | |
| r2241 | r2242 | |
| 72 | 71 | |
| 73 | 72 | WRITE8_HANDLER( turbo_sound_a_w ) |
| 74 | 73 | { |
| 75 | turbo_state *state = | |
| 74 | turbo_state *state = machine->driver_data; | |
| 76 | 75 | UINT8 diff = data ^ state->sound_state[0]; |
| 77 | 76 | state->sound_state[0] = data; |
| 78 | 77 | |
| r2241 | r2242 | |
| 120 | 119 | |
| 121 | 120 | WRITE8_HANDLER( turbo_sound_b_w ) |
| 122 | 121 | { |
| 123 | turbo_state *state = | |
| 122 | turbo_state *state = machine->driver_data; | |
| 124 | 123 | UINT8 diff = data ^ state->sound_state[1]; |
| 125 | 124 | state->sound_state[1] = data; |
| 126 | 125 | |
| r2241 | r2242 | |
| 142 | 141 | |
| 143 | 142 | WRITE8_HANDLER( turbo_sound_c_w ) |
| 144 | 143 | { |
| 145 | turbo_state *state = | |
| 144 | turbo_state *state = machine->driver_data; | |
| 146 | 145 | |
| 147 | 146 | /* OSEL1-2 */ |
| 148 | 147 | state->turbo_osel = (state->turbo_osel & 1) | ((data & 3) << 1); |
| r2241 | r2242 | |
| 292 | 291 | |
| 293 | 292 | WRITE8_HANDLER( subroc3d_sound_a_w ) |
| 294 | 293 | { |
| 295 | turbo_state *state = | |
| 294 | turbo_state *state = machine->driver_data; | |
| 296 | 295 | state->sound_state[0] = data; |
| 297 | 296 | |
| 298 | 297 | /* DIS0-3 contained in bits 0-3 */ |
| r2241 | r2242 | |
| 322 | 321 | |
| 323 | 322 | WRITE8_HANDLER( subroc3d_sound_b_w ) |
| 324 | 323 | { |
| 325 | turbo_state *state = | |
| 324 | turbo_state *state = machine->driver_data; | |
| 326 | 325 | UINT8 diff = data ^ state->sound_state[1]; |
| 327 | 326 | state->sound_state[1] = data; |
| 328 | 327 | |
| r2241 | r2242 | |
| 377 | 376 | |
| 378 | 377 | WRITE8_HANDLER( subroc3d_sound_c_w ) |
| 379 | 378 | { |
| 380 | turbo_state *state = | |
| 379 | turbo_state *state = machine->driver_data; | |
| 381 | 380 | UINT8 diff = data ^ state->sound_state[2]; |
| 382 | 381 | state->sound_state[2] = data; |
| 383 | 382 | |
| r2241 | r2242 | |
| 501 | 500 | |
| 502 | 501 | WRITE8_HANDLER( buckrog_sound_a_w ) |
| 503 | 502 | { |
| 504 | turbo_state *state = | |
| 503 | turbo_state *state = machine->driver_data; | |
| 505 | 504 | UINT8 diff = data ^ state->sound_state[0]; |
| 506 | 505 | state->sound_state[0] = data; |
| 507 | 506 | |
| r2241 | r2242 | |
| 526 | 525 | |
| 527 | 526 | WRITE8_HANDLER( buckrog_sound_b_w ) |
| 528 | 527 | { |
| 529 | turbo_state *state = | |
| 528 | turbo_state *state = machine->driver_data; | |
| 530 | 529 | UINT8 diff = data ^ state->sound_state[1]; |
| 531 | 530 | state->sound_state[1] = data; |
| 532 | 531 |
| r2241 | r2242 | |
|---|---|---|
| 31 | 31 | ****************************************************************************/ |
| 32 | 32 | |
| 33 | 33 | #include "driver.h" |
| 34 | #include "deprecat.h" | |
| 35 | 34 | #include "cpu/m6502/m6502.h" |
| 36 | 35 | #include "sound/5220intf.h" |
| 37 | 36 | #include "sound/2151intf.h" |
| r2241 | r2242 | |
| 123 | 122 | has_tms5220 = has_oki6295 = has_pokey = has_ym2151 = 0; |
| 124 | 123 | for (i = 0; i < MAX_SOUND; i++) |
| 125 | 124 | { |
| 126 | switch ( | |
| 125 | switch (machine->config->sound[i].type) | |
| 127 | 126 | { |
| 128 | 127 | case SOUND_TMS5220: |
| 129 | 128 | has_tms5220 = 1; |
| r2241 | r2242 | |
|---|---|---|
| 43 | 43 | } pit8253; |
| 44 | 44 | |
| 45 | 45 | |
| 46 | WRITE8_HANDLER( pit8253_w ) | |
| 46 | WRITE8_HANDLER( tx1_pit8253_w ) | |
| 47 | 47 | { |
| 48 | 48 | stream_update(stream); |
| 49 | 49 | |
| r2241 | r2242 | |
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | READ8_HANDLER( pit8253_r ) | |
| 78 | READ8_HANDLER( tx1_pit8253_r ) | |
| 79 | 79 | { |
| 80 | 80 | mame_printf_debug("PIT R: %x", offset); |
| 81 | 81 | return 0; |
| r2241 | r2242 | |
|---|---|---|
| 549 | 549 | /* My guess is that Turbo Tag works through a fluke, whereby the 68000 */ |
| 550 | 550 | /* using the MOVEP instruction outputs the same value on the high and */ |
| 551 | 551 | /* low bytes. */ |
| 552 | if (ACCESSING_ | |
| 552 | if (ACCESSING_ | |
| 553 | 553 | return pia_0_alt_r(machine, offset) << 8; |
| 554 | 554 | else |
| 555 | 555 | return pia_0_alt_r(machine, offset); |
| r2241 | r2242 | |
| 557 | 557 | |
| 558 | 558 | static WRITE16_HANDLER( csdeluxe_pia_w ) |
| 559 | 559 | { |
| 560 | if (ACCESSING_ | |
| 560 | if (ACCESSING_ | |
| 561 | 561 | pia_0_alt_w(machine, offset, data >> 8); |
| 562 | 562 | else |
| 563 | 563 | pia_0_alt_w(machine, offset, data); |
| r2241 | r2242 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | WRITE16_HANDLER( aztarac_sound_w ) |
| 20 | 20 | { |
| 21 | if (ACCESSING_ | |
| 21 | if (ACCESSING_ | |
| 22 | 22 | { |
| 23 | 23 | data &= 0xff; |
| 24 | 24 | soundlatch_w(machine, offset, data); |
| r2241 | r2242 | |
|---|---|---|
| 265 | 265 | |
| 266 | 266 | WRITE16_HANDLER( taitosound_port16_lsb_w ) |
| 267 | 267 | { |
| 268 | if (ACCESSING_ | |
| 268 | if (ACCESSING_ | |
| 269 | 269 | taitosound_port_w(machine,0,data & 0xff); |
| 270 | 270 | } |
| 271 | 271 | WRITE16_HANDLER( taitosound_comm16_lsb_w ) |
| 272 | 272 | { |
| 273 | if (ACCESSING_ | |
| 273 | if (ACCESSING_ | |
| 274 | 274 | taitosound_comm_w(machine,0,data & 0xff); |
| 275 | 275 | } |
| 276 | 276 | READ16_HANDLER( taitosound_comm16_lsb_r ) |
| r2241 | r2242 | |
| 281 | 281 | |
| 282 | 282 | WRITE16_HANDLER( taitosound_port16_msb_w ) |
| 283 | 283 | { |
| 284 | if (ACCESSING_ | |
| 284 | if (ACCESSING_ | |
| 285 | 285 | taitosound_port_w(machine,0,data >> 8); |
| 286 | 286 | } |
| 287 | 287 | WRITE16_HANDLER( taitosound_comm16_msb_w ) |
| 288 | 288 | { |
| 289 | if (ACCESSING_ | |
| 289 | if (ACCESSING_ | |
| 290 | 290 | taitosound_comm_w(machine,0,data >> 8); |
| 291 | 291 | } |
| 292 | 292 | READ16_HANDLER( taitosound_comm16_msb_r ) |
| r2241 | r2242 | |
|---|---|---|
| 1163 | 1163 | case 0x60/2: |
| 1164 | 1164 | if (LOG_PORTS) logerror("%05X:read 80186 Timer %d count\n", activecpu_get_pc(), (offset - 0x50/2) / 4); |
| 1165 | 1165 | which = (offset - 0x50/2) / 4; |
| 1166 | if (ACCESSING_ | |
| 1166 | if (ACCESSING_ | |
| 1167 | 1167 | internal_timer_sync(which); |
| 1168 | 1168 | return i80186.timer[which].count; |
| 1169 | 1169 | |
| r2241 | r2242 | |
| 1269 | 1269 | int temp, which; |
| 1270 | 1270 | |
| 1271 | 1271 | /* handle partials */ |
| 1272 | if (!ACCESSING_ | |
| 1272 | if (!ACCESSING_ | |
| 1273 | 1273 | data = (i80186_internal_port_r(machine, offset, 0) & 0xff00) | (data & 0x00ff); |
| 1274 | else if (!ACCESSING_ | |
| 1274 | else if (!ACCESSING_ | |
| 1275 | 1275 | data = (i80186_internal_port_r(machine, offset, 0) & 0x00ff) | (data & 0xff00); |
| 1276 | 1276 | |
| 1277 | 1277 | switch (offset) |
| r2241 | r2242 | |
| 1576 | 1576 | int reg = offset & 3; |
| 1577 | 1577 | |
| 1578 | 1578 | /* ignore odd offsets */ |
| 1579 | if (!ACCESSING_ | |
| 1579 | if (!ACCESSING_ | |
| 1580 | 1580 | return; |
| 1581 | 1581 | data &= 0xff; |
| 1582 | 1582 | |
| r2241 | r2242 | |
| 1825 | 1825 | struct dac_state *d = &dac[which]; |
| 1826 | 1826 | |
| 1827 | 1827 | /* handle value changes */ |
| 1828 | if (ACCESSING_ | |
| 1828 | if (ACCESSING_ | |
| 1829 | 1829 | { |
| 1830 | 1830 | int count = (d->bufin - d->bufout) & DAC_BUFFER_SIZE_MASK; |
| 1831 | 1831 | |
| r2241 | r2242 | |
| 1851 | 1851 | } |
| 1852 | 1852 | |
| 1853 | 1853 | /* handle volume changes */ |
| 1854 | if (ACCESSING_ | |
| 1854 | if (ACCESSING_ | |
| 1855 | 1855 | { |
| 1856 | 1856 | d->volume = ((data >> 8) ^ 0x00) / DAC_VOLUME_SCALE; |
| 1857 | 1857 | if (LOG_DAC) logerror("%05X:DAC %d volume = %02X\n", activecpu_get_pc(), offset, data); |
| r2241 | r2242 | |
| 1897 | 1897 | int data16; |
| 1898 | 1898 | |
| 1899 | 1899 | /* warning: this assumes all port writes here are word-sized */ |
| 1900 | assert(ACCESSING_ | |
| 1900 | assert(ACCESSING_ | |
| 1901 | 1901 | data16 = data; |
| 1902 | 1902 | |
| 1903 | 1903 | /* set the new value */ |
| r2241 | r2242 | |
| 1930 | 1930 | case 0x00: |
| 1931 | 1931 | case 0x01: |
| 1932 | 1932 | case 0x02: |
| 1933 | if (ACCESSING_ | |
| 1933 | if (ACCESSING_ | |
| 1934 | 1934 | dac_w(machine, offset, data, 0xff00); |
| 1935 | 1935 | return; |
| 1936 | 1936 |
| r2241 | r2242 | |
|---|---|---|
| 157 | 157 | /* used to offset the motor nodes based on the player so the nodes do not overlap */ |
| 158 | 158 | /* _plr must be 1, 2, 3, or 4 */ |
| 159 | 159 | /* so it uses NODES_30 to NODE_69 */ |
| 160 | #define SPRINT4_PLAYER_MOTOR_NODE(_node, _plr) NODE | |
| 160 | #define SPRINT4_PLAYER_MOTOR_NODE(_node, _plr) NODE(20 + 10 * _plr + _node) | |
| 161 | 161 | |
| 162 | 162 | |
| 163 | 163 | /************************************************ |
| r2241 | r2242 | |
|---|---|---|
| 123 | 123 | |
| 124 | 124 | WRITE16_HANDLER( m72_sound_command_w ) |
| 125 | 125 | { |
| 126 | if (ACCESSING_ | |
| 126 | if (ACCESSING_ | |
| 127 | 127 | { |
| 128 | 128 | soundlatch_w(machine,offset,data); |
| 129 | 129 | timer_call_after_resynch(NULL, Z80_ASSERT,setvector_callback); |
| r2241 | r2242 | |
|---|---|---|
| 434 | 434 | WRITE16_HANDLER( seibu_main_word_w ) |
| 435 | 435 | { |
| 436 | 436 | //logerror("%06x: seibu_main_word_w(%x,%02x)\n",activecpu_get_pc(),offset,data); |
| 437 | if (ACCESSING_ | |
| 437 | if (ACCESSING_ | |
| 438 | 438 | { |
| 439 | 439 | switch (offset) |
| 440 | 440 | { |
| r2241 | r2242 | |
| 514 | 514 | AM_RANGE(0x4009, 0x4009) AM_WRITE(YM3812_write_port_0_w) |
| 515 | 515 | AM_RANGE(0x4010, 0x4011) AM_READ(seibu_soundlatch_r) |
| 516 | 516 | AM_RANGE(0x4012, 0x4012) AM_READ(seibu_main_data_pending_r) |
| 517 | AM_RANGE(0x4013, 0x4013) AM_READ | |
| 517 | AM_RANGE(0x4013, 0x4013) AM_READ | |
| 518 | 518 | AM_RANGE(0x4018, 0x4019) AM_WRITE(seibu_main_data_w) |
| 519 | 519 | AM_RANGE(0x401b, 0x401b) AM_WRITE(seibu_coin_w) |
| 520 | 520 | AM_RANGE(0x6000, 0x6000) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w) |
| r2241 | r2242 | |
| 534 | 534 | AM_RANGE(0x4009, 0x4009) AM_READWRITE(YM2151_status_port_0_r, YM2151_data_port_0_w) |
| 535 | 535 | AM_RANGE(0x4010, 0x4011) AM_READ(seibu_soundlatch_r) |
| 536 | 536 | AM_RANGE(0x4012, 0x4012) AM_READ(seibu_main_data_pending_r) |
| 537 | AM_RANGE(0x4013, 0x4013) AM_READ | |
| 537 | AM_RANGE(0x4013, 0x4013) AM_READ | |
| 538 | 538 | AM_RANGE(0x4018, 0x4019) AM_WRITE(seibu_main_data_w) |
| 539 | 539 | AM_RANGE(0x401b, 0x401b) AM_WRITE(seibu_coin_w) |
| 540 | 540 | AM_RANGE(0x6000, 0x6000) AM_READWRITE(OKIM6295_status_0_r, OKIM6295_data_0_w) |
| r2241 | r2242 | |
| 555 | 555 | AM_RANGE(0x4009, 0x4009) AM_READWRITE(YM2203_read_port_0_r, YM2203_write_port_0_w) |
| 556 | 556 | AM_RANGE(0x4010, 0x4011) AM_READ(seibu_soundlatch_r) |
| 557 | 557 | AM_RANGE(0x4012, 0x4012) AM_READ(seibu_main_data_pending_r) |
| 558 | AM_RANGE(0x4013, 0x4013) AM_READ | |
| 558 | AM_RANGE(0x4013, 0x4013) AM_READ | |
| 559 | 559 | AM_RANGE(0x4018, 0x4019) AM_WRITE(seibu_main_data_w) |
| 560 | 560 | AM_RANGE(0x401b, 0x401b) AM_WRITE(seibu_coin_w) |
| 561 | 561 | AM_RANGE(0x6008, 0x6008) AM_READWRITE(YM2203_status_port_1_r, YM2203_control_port_1_w) |
| r2241 | r2242 | |
| 576 | 576 | AM_RANGE(0x4009, 0x4009) AM_READWRITE(YM2203_read_port_0_r, YM2203_write_port_0_w) |
| 577 | 577 | AM_RANGE(0x4010, 0x4011) AM_READ(seibu_soundlatch_r) |
| 578 | 578 | AM_RANGE(0x4012, 0x4012) AM_READ(seibu_main_data_pending_r) |
| 579 | AM_RANGE(0x4013, 0x4013) AM_READ | |
| 579 | AM_RANGE(0x4013, 0x4013) AM_READ | |
| 580 | 580 | AM_RANGE(0x4018, 0x4019) AM_WRITE(seibu_main_data_w) |
| 581 | 581 | AM_RANGE(0x401a, 0x401a) AM_WRITE(seibu_adpcm_ctl_1_w) |
| 582 | 582 | AM_RANGE(0x401b, 0x401b) AM_WRITE(seibu_coin_w) |
| r2241 | r2242 | |
|---|---|---|
| 70 | 70 | /**************************************************************************/ |
| 71 | 71 | |
| 72 | 72 | #define SEIBU_COIN_INPUTS \ |
| 73 | PORT_START \ | |
| 74 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(4) \ | |
| 73 | PORT_START_TAG("COIN") \ | |
| 74 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(4) \ | |
| 75 | 75 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(4) |
| 76 | 76 | |
| 77 | 77 |
| r2241 | r2242 | |
|---|---|---|
| 19 | 19 | #include "sound/5110intf.h" |
| 20 | 20 | #include "sound/tms5110.h" |
| 21 | 21 | #include "sound/ay8910.h" |
| 22 | #include "includes/galax | |
| 22 | #include "includes/galaxold.h" | |
| 23 | 23 | |
| 24 | 24 | #define AD2083_TMS5110_CLOCK XTAL_640kHz |
| 25 | 25 |
| r2241 | r2242 | |
|---|---|---|
| 35 | 35 | { |
| 36 | 36 | if (sndti_exists(SOUND_SAMPLES, 0)) |
| 37 | 37 | { |
| 38 | if (!strcmp( | |
| 38 | if (!strcmp(machine->gamedrv->name,"reactor")) /* reactor */ | |
| 39 | 39 | { |
| 40 | 40 | switch (data ^ 0x3f) |
| 41 | 41 | { |
| r2241 | r2242 | |
| 297 | 297 | |
| 298 | 298 | WRITE8_HANDLER( gottlieb_cause_dac_nmi_w ) |
| 299 | 299 | { |
| 300 | cpunum_set_input_line( | |
| 300 | cpunum_set_input_line(machine, cpu_gettotalcpu()-2, INPUT_LINE_NMI, PULSE_LINE); | |
| 301 | 301 | } |
| r2241 | r2242 | |
|---|---|---|
| 1411 | 1411 | { |
| 1412 | 1412 | UINT32 pc = activecpu_get_pc(); |
| 1413 | 1413 | cpuintrf_push_context(dcs.cpunum); |
| 1414 | if ( | |
| 1414 | if (ACCESSING_BITS_ | |
| 1415 | 1415 | { |
| 1416 | 1416 | if (LOG_DCS_TRANSFERS) |
| 1417 | 1417 | logerror("%08X:IDMA_data_w(%04X) = %04X\n", pc, adsp2181_idma_addr_r(), data & 0xffff); |
| 1418 | 1418 | adsp2181_idma_data_w(data & 0xffff); |
| 1419 | 1419 | } |
| 1420 | if ( | |
| 1420 | if (ACCESSING_BITS_16_31 | |
| 1421 | 1421 | { |
| 1422 | 1422 | if (LOG_DCS_TRANSFERS) |
| 1423 | 1423 | logerror("%08X:IDMA_data_w(%04X) = %04X\n", pc, adsp2181_idma_addr_r(), data >> 16); |
| r2241 | r2242 | |
|---|---|---|
| 3395 | 3395 | |
| 3396 | 3396 | |
| 3397 | 3397 | /* sound board 1 or 2, for multi-board games */ |
| 3398 | #define INVADERS_NODE(_node, _board) (NODE_ | |
| 3398 | #define INVADERS_NODE(_node, _board) (NODE(_ | |
| 3399 | 3399 | |
| 3400 | 3400 | /************************************************ |
| 3401 | 3401 | * Noise Generator |
| r2241 | r2242 | |
|---|---|---|
| 852 | 852 | break; |
| 853 | 853 | |
| 854 | 854 | case 0x18/4: /* CDROM COMMAND 1 */ |
| 855 | if ( | |
| 855 | if ( ACCESSING_BITS_16_23 | |
| 856 | 856 | akiko.cdrom_cmd_start = ( data >> 16 ) & 0xff; |
| 857 | 857 | |
| 858 | if ( | |
| 858 | if ( ACCESSING_BITS_8_15 | |
| 859 | 859 | akiko.cdrom_cmd_resp = ( data >> 8 ) & 0xff; |
| 860 | 860 | |
| 861 | 861 | akiko_update_cdrom(); |
| 862 | 862 | break; |
| 863 | 863 | |
| 864 | 864 | case 0x1C/4: /* CDROM COMMAND 2 */ |
| 865 | if ( | |
| 865 | if ( ACCESSING_BITS_16_23 | |
| 866 | 866 | akiko.cdrom_cmd_end = ( data >> 16 ) & 0xff; |
| 867 | 867 | |
| 868 | 868 | akiko_update_cdrom(); |
| r2241 | r2242 | |
| 872 | 872 | #if LOG_AKIKO_CD |
| 873 | 873 | logerror( "Read Req mask W: data %08x - mem mask %08x\n", data, mem_mask ); |
| 874 | 874 | #endif |
| 875 | if ( | |
| 875 | if ( ACCESSING_BITS_16_31 | |
| 876 | 876 | { |
| 877 | 877 | akiko.cdrom_readreqmask = (data >> 16); |
| 878 | 878 | akiko.cdrom_readmask = 0; |
| r2241 | r2242 | |
|---|---|---|
| 1057 | 1057 | |
| 1058 | 1058 | WRITE16_HANDLER( NMK004_w ) |
| 1059 | 1059 | { |
| 1060 | if (ACCESSING_ | |
| 1060 | if (ACCESSING_ | |
| 1061 | 1061 | { |
| 1062 | 1062 | logerror("%06x: NMK004_w %02x\n",activecpu_get_pc(),data); |
| 1063 | 1063 | NMK004_state.from_main = data & 0xff; |
| r2241 | r2242 | |
|---|---|---|
| 27 | 27 | /* bit 3 n.c. */ |
| 28 | 28 | |
| 29 | 29 | /* bit 4 resets second Z80 */ |
| 30 | cpunum_set_input_line( | |
| 30 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE); | |
| 31 | 31 | |
| 32 | 32 | /* bit 5 resets mcu */ |
| 33 | if (Machine->config->cpu[3].type != CPU_DUMMY) // only if we have a MCU | |
| 34 | cpunum_set_input_line(Machine, 3, INPUT_LINE_RESET, (data & 0x20) ? CLEAR_LINE : ASSERT_LINE); | |
| 33 | if (machine->config->cpu[3].type != CPU_DUMMY) // only if we have a MCU | |
| 34 | cpunum_set_input_line(machine, 3, INPUT_LINE_RESET, (data & 0x20) ? CLEAR_LINE : ASSERT_LINE); | |
| 35 | 35 | |
| 36 | 36 | /* bit 6 enables display */ |
| 37 | 37 | bublbobl_video_enable = data & 0x40; |
| r2241 | r2242 | |
| 60 | 60 | |
| 61 | 61 | WRITE8_HANDLER( bublbobl_nmitrigger_w ) |
| 62 | 62 | { |
| 63 | cpunum_set_input_line( | |
| 63 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); | |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | |
| r2241 | r2242 | |
| 119 | 119 | sound_nmi_enable = 1; |
| 120 | 120 | if (pending_nmi) |
| 121 | 121 | { |
| 122 | cpunum_set_input_line( | |
| 122 | cpunum_set_input_line(machine, 2,INPUT_LINE_NMI,PULSE_LINE); | |
| 123 | 123 | pending_nmi = 0; |
| 124 | 124 | } |
| 125 | 125 | } |
| r2241 | r2242 | |
| 200 | 200 | { |
| 201 | 201 | // logerror("triggering IRQ on main CPU\n"); |
| 202 | 202 | cpunum_set_input_line_vector(0,0,bublbobl_mcu_sharedram[0]); |
| 203 | cpunum_set_input_line( | |
| 203 | cpunum_set_input_line(machine, 0,0,HOLD_LINE); | |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | // bit 7: select read or write shared RAM |
| r2241 | r2242 | |
| 295 | 295 | if (offset == 0) |
| 296 | 296 | return ic43_a << 4; |
| 297 | 297 | else |
| 298 | return mame_rand( | |
| 298 | return mame_rand(machine) & 0xff; | |
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | WRITE8_HANDLER( boblbobl_ic43_a_w ) |
| r2241 | r2242 | |
| 475 | 475 | if ((ddrB & 0x20) && (~data & 0x20) && (portB_out & 0x20)) |
| 476 | 476 | { |
| 477 | 477 | /* hack to get random EXTEND letters (who is supposed to do this? 68705? PAL?) */ |
| 478 | bublbobl_mcu_sharedram[0x7c] = mame_rand( | |
| 478 | bublbobl_mcu_sharedram[0x7c] = mame_rand(machine)%6; | |
| 479 | 479 | |
| 480 | 480 | cpunum_set_input_line_vector(0,0,bublbobl_mcu_sharedram[0]); |
| 481 | cpunum_set_input_line( | |
| 481 | cpunum_set_input_line(machine, 0,0,HOLD_LINE); | |
| 482 | 482 | } |
| 483 | 483 | if ((ddrB & 0x40) && (~data & 0x40) && (portB_out & 0x40)) |
| 484 | 484 | { |
| r2241 | r2242 | |
|---|---|---|
| 13 | 13 | ***************************************************************************/ |
| 14 | 14 | |
| 15 | 15 | #include "driver.h" |
| 16 | #include "deprecat.h" | |
| 17 | 16 | #include "cpu/i8x41/i8x41.h" |
| 18 | 17 | #include "includes/tnzs.h" |
| 19 | 18 | |
| r2241 | r2242 | |
| 722 | 721 | |
| 723 | 722 | /* bit 4 resets the second CPU */ |
| 724 | 723 | if (data & 0x10) |
| 725 | cpunum_set_input_line( | |
| 724 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, CLEAR_LINE); | |
| 726 | 725 | else |
| 727 | cpunum_set_input_line( | |
| 726 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, ASSERT_LINE); | |
| 728 | 727 | |
| 729 | 728 | /* bits 0-2 select RAM/ROM bank */ |
| 730 | 729 | memory_set_bankptr (1, &RAM[0x10000 + 0x4000 * (data & 0x07)]); |
| r2241 | r2242 | |
| 743 | 742 | /* bit 2 resets the mcu */ |
| 744 | 743 | if (data & 0x04) |
| 745 | 744 | { |
| 746 | if (Machine->config->cpu[2].type == CPU_I8X41) | |
| 747 | cpunum_set_input_line(Machine, 2, INPUT_LINE_RESET, PULSE_LINE); | |
| 745 | if (machine->config->cpu[2].type == CPU_I8X41) | |
| 746 | cpunum_set_input_line(machine, 2, INPUT_LINE_RESET, PULSE_LINE); | |
| 748 | 747 | } |
| 749 | 748 | /* Coin count and lockout is handled by the i8742 */ |
| 750 | 749 | break; |
| r2241 | r2242 | |
|---|---|---|
| 560 | 560 | } |
| 561 | 561 | |
| 562 | 562 | /* call through based on the sound type */ |
| 563 | if (ACCESSING_ | |
| 563 | if (ACCESSING_ | |
| 564 | 564 | switch (chip_type) |
| 565 | 565 | { |
| 566 | 566 | case SOUND_NARC: |
| r2241 | r2242 | |
|---|---|---|
| 240 | 240 | |
| 241 | 241 | WRITE16_HANDLER( twincobr_control_w ) |
| 242 | 242 | { |
| 243 | if (ACCESSING_ | |
| 243 | if (ACCESSING_ | |
| 244 | 244 | { |
| 245 | 245 | toaplan0_control_w(offset, data & 0xff); |
| 246 | 246 | } |
| r2241 | r2242 | |
| 259 | 259 | |
| 260 | 260 | WRITE16_HANDLER( twincobr_sharedram_w ) |
| 261 | 261 | { |
| 262 | if (ACCESSING_ | |
| 262 | if (ACCESSING_ | |
| 263 | 263 | { |
| 264 | 264 | twincobr_sharedram[offset] = data & 0xff; |
| 265 | 265 | } |
| r2241 | r2242 | |
| 297 | 297 | |
| 298 | 298 | WRITE16_HANDLER( fshark_coin_dsp_w ) |
| 299 | 299 | { |
| 300 | if (ACCESSING_ | |
| 300 | if (ACCESSING_ | |
| 301 | 301 | { |
| 302 | 302 | toaplan0_coin_dsp_w(offset, data & 0xff); |
| 303 | 303 | } |
| r2241 | r2242 | |
|---|---|---|
| 137 | 137 | { |
| 138 | 138 | if (offset == 0) |
| 139 | 139 | { |
| 140 | if ( | |
| 140 | if (ACCESSING_BITS_24_31 | |
| 141 | 141 | { |
| 142 | 142 | dsp_shared_ram_bank[cgboard_id] = (data >> 24) & 0x1; |
| 143 | 143 | |
| r2241 | r2242 | |
| 158 | 158 | cpunum_set_input_line(Machine, dsp, INPUT_LINE_IRQ1, ASSERT_LINE); |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | if ( | |
| 161 | if (ACCESSING_BITS_ | |
| 162 | 162 | dsp_comm_ppc[cgboard_id][offset] = data & 0xff; |
| 163 | 163 | } |
| 164 | 164 | else |
| r2241 | r2242 | |
|---|---|---|
| 852 | 852 | READ32_HANDLER( midway_ioasic_packed_r ) |
| 853 | 853 | { |
| 854 | 854 | UINT32 result = 0; |
| 855 | if ( | |
| 855 | if (ACCESSING_BITS_ | |
| 856 | 856 | result |= midway_ioasic_r(machine, offset*2, 0xffff0000) & 0xffff; |
| 857 | if ( | |
| 857 | if (ACCESSING_BITS_16_31 | |
| 858 | 858 | result |= (midway_ioasic_r(machine, offset*2+1, 0xffff0000) & 0xffff) << 16; |
| 859 | 859 | return result; |
| 860 | 860 | } |
| r2241 | r2242 | |
| 948 | 948 | |
| 949 | 949 | WRITE32_HANDLER( midway_ioasic_packed_w ) |
| 950 | 950 | { |
| 951 | if ( | |
| 951 | if (ACCESSING_BITS_ | |
| 952 | 952 | midway_ioasic_w(machine, offset*2, data & 0xffff, 0xffff0000); |
| 953 | if ( | |
| 953 | if (ACCESSING_BITS_16_31 | |
| 954 | 954 | midway_ioasic_w(machine, offset*2+1, data >> 16, 0xffff0000); |
| 955 | 955 | } |
| 956 | 956 |
| r2241 | r2242 | |
|---|---|---|
| 81 | 81 | |
| 82 | 82 | WRITE16_HANDLER( system24temp_sys16_io_w ) |
| 83 | 83 | { |
| 84 | if(ACCESSING_ | |
| 84 | if(ACCESSING_ | |
| 85 | 85 | if(offset < 8) { |
| 86 | 86 | if(!(system24temp_sys16_io_dir & (1 << offset))) { |
| 87 | 87 | logerror("IO port write on input-only port (%d, [%02x], %02x, %d:%x)\n", offset, system24temp_sys16_io_dir, data & 0xff, cpu_getactivecpu(), activecpu_get_pc()); |
| r2241 | r2242 | |
|---|---|---|
| 1841 | 1841 | |
| 1842 | 1842 | COMBINE_DATA(prot_data+offset); |
| 1843 | 1843 | |
| 1844 | if (offset == 0 && ACCESSING_ | |
| 1844 | if (offset == 0 && ACCESSING_ | |
| 1845 | 1845 | { |
| 1846 | 1846 | data >>= 8; |
| 1847 | 1847 | switch (data) |
| r2241 | r2242 | |
| 1968 | 1968 | |
| 1969 | 1969 | COMBINE_DATA(prot_data+offset); |
| 1970 | 1970 | |
| 1971 | if (offset == 0x0c && ACCESSING_ | |
| 1971 | if (offset == 0x0c && ACCESSING_ | |
| 1972 | 1972 | { |
| 1973 | 1973 | mode = (prot_data[0x0d]<<8 & 0xff00) | (prot_data[0x0f] & 0xff); |
| 1974 | 1974 |
| r2241 | r2242 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | WRITE16_HANDLER( toaplan1_intenable_w ) |
| 38 | 38 | { |
| 39 | if (ACCESSING_ | |
| 39 | if (ACCESSING_ | |
| 40 | 40 | { |
| 41 | 41 | toaplan1_intenable = data & 0xff; |
| 42 | 42 | } |
| r2241 | r2242 | |
| 99 | 99 | if (data == 0) { |
| 100 | 100 | if (dsp_execute) { |
| 101 | 101 | logerror("Turning 68000 on\n"); |
| 102 | cpunum_set_input_line( | |
| 102 | cpunum_set_input_line(machine, 0, INPUT_LINE_HALT, CLEAR_LINE); | |
| 103 | 103 | dsp_execute = 0; |
| 104 | 104 | } |
| 105 | 105 | demonwld_dsp_BIO = ASSERT_LINE; |
| r2241 | r2242 | |
| 140 | 140 | logerror("68000:%08x Writing %08x to %08x.\n",activecpu_get_pc() ,data ,0xe0000a + offset); |
| 141 | 141 | #endif |
| 142 | 142 | |
| 143 | if (ACCESSING_ | |
| 143 | if (ACCESSING_ | |
| 144 | 144 | { |
| 145 | 145 | switch (data) |
| 146 | 146 | { |
| r2241 | r2242 | |
| 201 | 201 | { |
| 202 | 202 | case 0: break; |
| 203 | 203 | case 1: break; |
| 204 | case 2: if (ACCESSING_ | |
| 204 | case 2: if (ACCESSING_ | |
| 205 | 205 | } |
| 206 | 206 | } |
| 207 | 207 | |
| r2241 | r2242 | |
| 212 | 212 | |
| 213 | 213 | WRITE16_HANDLER( toaplan1_shared_w ) |
| 214 | 214 | { |
| 215 | if (ACCESSING_ | |
| 215 | if (ACCESSING_ | |
| 216 | 216 | { |
| 217 | 217 | toaplan1_sharedram[offset] = data & 0xff; |
| 218 | 218 | } |
| r2241 | r2242 | |
| 223 | 223 | { |
| 224 | 224 | /* Reset the secondary CPU and sound chip during soft resets */ |
| 225 | 225 | |
| 226 | if (ACCESSING_ | |
| 226 | if (ACCESSING_ | |
| 227 | 227 | { |
| 228 | 228 | logerror("PC:%04x Resetting Sound CPU and Sound chip (%08x)\n",activecpu_get_previouspc(),data); |
| 229 | if ( | |
| 229 | if (machine->config->sound[0].type == SOUND_YM3812) | |
| 230 | 230 | sndti_reset(SOUND_YM3812, 0); |
| 231 | if (Machine->config->cpu[1].type == CPU_Z80) | |
| 232 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, PULSE_LINE); | |
| 231 | if (machine->config->cpu[1].type == CPU_Z80) | |
| 232 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, PULSE_LINE); | |
| 233 | 233 | } |
| 234 | 234 | } |
| 235 | 235 | |
| r2241 | r2242 | |
| 281 | 281 | |
| 282 | 282 | WRITE16_HANDLER( samesame_coin_w ) |
| 283 | 283 | { |
| 284 | if (ACCESSING_ | |
| 284 | if (ACCESSING_ | |
| 285 | 285 | { |
| 286 | 286 | toaplan1_coin_w(machine, offset, data & 0xff); |
| 287 | 287 | } |
| 288 | if (ACCESSING_ | |
| 288 | if (ACCESSING_ | |
| 289 | 289 | { |
| 290 | 290 | logerror("PC:%04x Writing unknown MSB data (%04x) to coin count/lockout port\n",activecpu_get_previouspc(),data); |
| 291 | 291 | } |
| r2241 | r2242 | |
|---|---|---|
| 133 | 133 | ***************************************************************************/ |
| 134 | 134 | |
| 135 | 135 | #include "driver.h" |
| 136 | #include "deprecat.h" | |
| 137 | 136 | #include "machine/namcoio.h" |
| 138 | 137 | #include "machine/namco50.h" |
| 139 | 138 | #include "sound/namco52.h" |
| r2241 | r2242 | |
| 218 | 217 | static int namcoio_51XX_kludge = 0; |
| 219 | 218 | |
| 220 | 219 | /* Only compute namcoio_51XX_kludge when gamedrv changes */ |
| 221 | if (namcoio_51XX_driver != | |
| 220 | if (namcoio_51XX_driver != machine->gamedrv) | |
| 222 | 221 | { |
| 223 | namcoio_51XX_driver = | |
| 222 | namcoio_51XX_driver = machine->gamedrv; | |
| 224 | 223 | if (strcmp(namcoio_51XX_driver->name, "xevious") == 0 || |
| 225 | 224 | strcmp(namcoio_51XX_driver->parent, "xevious") == 0) |
| 226 | 225 | namcoio_51XX_kludge = 1; |
| r2241 | r2242 | |
|---|---|---|
| 745 | 745 | UINT64 shift; |
| 746 | 746 | |
| 747 | 747 | reg = decode_reg_64(offset, mem_mask, &shift); |
| 748 | ||
| 749 | // from ElSemi: this makes Atomiswave do it's "verbose boot" with a Sammy logo and diagnostics instead of just running the cart. | |
| 750 | // our PVR emulation is apparently not good enough for that to work yet though. | |
| 751 | if ((reg == 0x280/4) && (mem_mask == U64(0xffffffff00000000))) | |
| 752 | { | |
| 753 | return 1; | |
| 754 | } | |
| 755 | ||
| 748 | 756 | mame_printf_verbose("MODEM: Unmapped read %08x\n", 0x600000+reg*4); |
| 749 | 757 | return 0; |
| 750 | 758 | } |
| r2241 | r2242 | |
|---|---|---|
| 10 | 10 | #include "driver.h" |
| 11 | 11 | #include "cpu/z80/z80.h" |
| 12 | 12 | #include "machine/8255ppi.h" |
| 13 | #include "includes/galax | |
| 13 | #include "includes/galaxold.h" | |
| 14 | 14 | |
| 15 | 15 | static UINT8 moonwar_port_select; |
| 16 | 16 | |
| r2241 | r2242 | |
| 20 | 20 | |
| 21 | 21 | MACHINE_RESET( scramble ) |
| 22 | 22 | { |
| 23 | MACHINE_RESET_CALL(galax | |
| 23 | MACHINE_RESET_CALL(galaxold); | |
| 24 | 24 | |
| 25 | 25 | if (cpu_gettotalcpu() > 1) |
| 26 | 26 | { |
| r2241 | r2242 | |
| 61 | 61 | UINT8 *RAM = memory_region(REGION_CPU1); |
| 62 | 62 | RAM[0x47ff] = 0; /* If not set, it doesn't reset after the 1st time */ |
| 63 | 63 | |
| 64 | MACHINE_RESET_CALL(galax | |
| 64 | MACHINE_RESET_CALL(galaxold); | |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | static READ8_HANDLER( scrambls_input_port_2_r ) |
| r2241 | r2242 | |
| 333 | 333 | { |
| 334 | 334 | DRIVER_INIT_CALL(scramble_ppi); |
| 335 | 335 | |
| 336 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa803, 0xa803, 0, 0, scrambl | |
| 336 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa803, 0xa803, 0, 0, scrambold_background_enable_w); | |
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | DRIVER_INIT( atlantis ) |
| 340 | 340 | { |
| 341 | 341 | DRIVER_INIT_CALL(scramble_ppi); |
| 342 | 342 | |
| 343 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6803, 0x6803, 0, 0, scrambl | |
| 343 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6803, 0x6803, 0, 0, scrambold_background_enable_w); | |
| 344 | 344 | } |
| 345 | 345 | |
| 346 | 346 | DRIVER_INIT( scramble ) |
| r2241 | r2242 | |
| 371 | 371 | { |
| 372 | 372 | DRIVER_INIT_CALL(scramble_ppi); |
| 373 | 373 | |
| 374 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb000, 0xb000, 0, 0, scramble_background_green_w); | |
| 375 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb002, 0xb002, 0, 0, scramble_background_blue_w); | |
| 376 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb00a, 0xb00a, 0, 0, scramble_background_red_w); | |
| 374 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb000, 0xb000, 0, 0, scrambold_background_green_w); | |
| 375 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb002, 0xb002, 0, 0, scrambold_background_blue_w); | |
| 376 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb00a, 0xb00a, 0, 0, scrambold_background_red_w); | |
| 377 | 377 | |
| 378 | 378 | ppi8255_set_portCread(0, stratgyx_input_port_2_r); |
| 379 | 379 | ppi8255_set_portCread(1, stratgyx_input_port_3_r); |
| r2241 | r2242 | |
| 383 | 383 | { |
| 384 | 384 | DRIVER_INIT_CALL(scramble_ppi); |
| 385 | 385 | |
| 386 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb002, 0xb002, 0, 0, scrambl | |
| 386 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb002, 0xb002, 0, 0, scrambold_background_enable_w); | |
| 387 | 387 | } |
| 388 | 388 | |
| 389 | 389 | DRIVER_INIT( amidar ) |
| r2241 | r2242 | |
| 576 | 576 | |
| 577 | 577 | DRIVER_INIT_CALL(scramble_ppi); |
| 578 | 578 | |
| 579 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa804, 0xa804, 0, 0, scrambl | |
| 579 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa804, 0xa804, 0, 0, scrambold_background_enable_w); | |
| 580 | 580 | } |
| 581 | 581 | |
| 582 | 582 | DRIVER_INIT( mimonsco ) |
| 583 | 583 | { |
| 584 | 584 | DRIVER_INIT_CALL(scramble_ppi); |
| 585 | 585 | |
| 586 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa804, 0xa804, 0, 0, scrambl | |
| 586 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa804, 0xa804, 0, 0, scrambold_background_enable_w); | |
| 587 | 587 | } |
| 588 | 588 | |
| 589 | 589 | DRIVER_INIT( mimonscr ) |
| 590 | 590 | { |
| 591 | 591 | DRIVER_INIT_CALL(scramble_ppi); |
| 592 | 592 | |
| 593 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6804, 0x6804, 0, 0, scrambl | |
| 593 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6804, 0x6804, 0, 0, scrambold_background_enable_w); | |
| 594 | 594 | } |
| 595 | 595 | |
| 596 | 596 |
| r2241 | r2242 | |
|---|---|---|
| 144 | 144 | |
| 145 | 145 | static WRITE16_HANDLER( mk_prot_w ) |
| 146 | 146 | { |
| 147 | if (ACCESSING_ | |
| 147 | if (ACCESSING_ | |
| 148 | 148 | { |
| 149 | 149 | int first_val = (data >> 9) & 0x3f; |
| 150 | 150 | int i; |
| r2241 | r2242 | |
| 609 | 609 | } |
| 610 | 610 | |
| 611 | 611 | /* call through based on the sound type */ |
| 612 | if (ACCESSING_ | |
| 612 | if (ACCESSING_ | |
| 613 | 613 | switch (chip_type) |
| 614 | 614 | { |
| 615 | 615 | case SOUND_ADPCM: |
| r2241 | r2242 | |
|---|---|---|
| 417 | 417 | |
| 418 | 418 | WRITE16_HANDLER( segaic16_memory_mapper_lsb_w ) |
| 419 | 419 | { |
| 420 | if (ACCESSING_ | |
| 420 | if (ACCESSING_ | |
| 421 | 421 | memory_mapper_w(&memory_mapper, offset, data & 0xff); |
| 422 | 422 | } |
| 423 | 423 |
| r2241 | r2242 | |
|---|---|---|
| 54 | 54 | |
| 55 | 55 | WRITE16_HANDLER( NMK112_okibank_lsb_w ) |
| 56 | 56 | { |
| 57 | if (ACCESSING_ | |
| 57 | if (ACCESSING_ | |
| 58 | 58 | { |
| 59 | 59 | NMK112_okibank_w(machine, offset, data & 0xff); |
| 60 | 60 | } |
| r2241 | r2242 | |
|---|---|---|
| 21 | 21 | */ |
| 22 | 22 | WRITE8_HANDLER( mexico86_f008_w ) |
| 23 | 23 | { |
| 24 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, (data & 4) ? CLEAR_LINE : ASSERT_LINE); | |
| 25 | if (Machine->config->cpu[2].type != CPU_DUMMY) | |
| 24 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, (data & 4) ? CLEAR_LINE : ASSERT_LINE); | |
| 25 | if (machine->config->cpu[2].type != CPU_DUMMY) | |
| 26 | 26 | { |
| 27 | 27 | // mexico 86, knight boy |
| 28 | cpunum_set_input_line( | |
| 28 | cpunum_set_input_line(machine, 2, INPUT_LINE_RESET, (data & 2) ? CLEAR_LINE : ASSERT_LINE); | |
| 29 | 29 | } |
| 30 | 30 | else |
| 31 | 31 | { |
| r2241 | r2242 | |
| 314 | 314 | if ((ddrB & 0x20) && (data & 0x20) && (~portB_out & 0x20)) |
| 315 | 315 | { |
| 316 | 316 | cpunum_set_input_line_vector(0,0,mexico86_protection_ram[0]); |
| 317 | //cpunum_set_input_line(Machine, 0,0,PULSE_LINE); | |
| 318 | cpunum_set_input_line(Machine, 0, 0, HOLD_LINE); //AT: HOLD_LINE works better in Z80 interrupt mode 1. | |
| 317 | //cpunum_set_input_line(machine, 0,0,PULSE_LINE); | |
| 318 | cpunum_set_input_line(machine, 0, 0, HOLD_LINE); //AT: HOLD_LINE works better in Z80 interrupt mode 1. | |
| 319 | 319 | } |
| 320 | 320 | if ((ddrB & 0x40) && (~data & 0x40) && (portB_out & 0x40)) |
| 321 | 321 | { |
| r2241 | r2242 | |
|---|---|---|
| 1106 | 1106 | /* offsets 0000-07ff reference CIA B, and are accessed via the MSB */ |
| 1107 | 1107 | if ((offset & 0x0800) == 0) |
| 1108 | 1108 | { |
| 1109 | if (!ACCESSING_ | |
| 1109 | if (!ACCESSING_ | |
| 1110 | 1110 | return; |
| 1111 | 1111 | which = 1; |
| 1112 | 1112 | data >>= 8; |
| r2241 | r2242 | |
| 1115 | 1115 | /* offsets 0800-0fff reference CIA A, and are accessed via the LSB */ |
| 1116 | 1116 | else |
| 1117 | 1117 | { |
| 1118 | if (!ACCESSING_ | |
| 1118 | if (!ACCESSING_ | |
| 1119 | 1119 | return; |
| 1120 | 1120 | which = 0; |
| 1121 | 1121 | data &= 0xff; |
| r2241 | r2242 | |
| 1737 | 1737 | logerror("autoconfig_w(%02X) = %04X & %04X\n", offset, data, mem_mask ^ 0xffff); |
| 1738 | 1738 | |
| 1739 | 1739 | /* if no current device, bail */ |
| 1740 | if (!cur_autoconfig || !ACCESSING_ | |
| 1740 | if (!cur_autoconfig || !ACCESSING_ | |
| 1741 | 1741 | return; |
| 1742 | 1742 | |
| 1743 | 1743 | /* switch off of the base offset */ |
| r2241 | r2242 | |
|---|---|---|
| 19 | 19 | * |
| 20 | 20 | *************************************/ |
| 21 | 21 | |
| 22 | static void v_irq4_w(int level); | |
| 23 | static void v_irq3_w(int level); | |
| 22 | static PIT8253_OUTPUT_CHANGED( v_irq4_w ); | |
| 23 | static PIT8253_OUTPUT_CHANGED( v_irq3_w ); | |
| 24 | 24 | static void update_irq(void); |
| 25 | 25 | |
| 26 | 26 | |
| r2241 | r2242 | |
| 43 | 43 | static UINT8 adc_result; |
| 44 | 44 | |
| 45 | 45 | /* 8254 timer config */ |
| 46 | ||
| 46 | ||
| 47 | 47 | { |
| 48 | TYPE8254, | |
| 49 | 48 | { |
| 50 | 49 | { |
| 51 | 50 | 240000, |
| r2241 | r2242 | |
| 98 | 97 | } |
| 99 | 98 | |
| 100 | 99 | |
| 101 | static | |
| 100 | static PIT8253_OUTPUT_CHANGED( v_irq4_w | |
| 102 | 101 | { |
| 103 | update_irq_encoder(INPUT_LINE_IRQ4, level); | |
| 104 | vertigo_vproc(ATTOTIME_TO_CYCLES(0, attotime_sub(timer_get_time(), irq4_time)), level); | |
| 102 | update_irq_encoder(INPUT_LINE_IRQ4, state); | |
| 103 | vertigo_vproc(ATTOTIME_TO_CYCLES(0, attotime_sub(timer_get_time(), irq4_time)), state); | |
| 105 | 104 | irq4_time = timer_get_time(); |
| 106 | 105 | } |
| 107 | 106 | |
| 108 | 107 | |
| 109 | static | |
| 108 | static PIT8253_OUTPUT_CHANGED( v_irq3_w | |
| 110 | 109 | { |
| 111 | if ( | |
| 110 | if (state | |
| 112 | 111 | cpunum_set_input_line(Machine, 1, INPUT_LINE_IRQ0, ASSERT_LINE); |
| 113 | 112 | |
| 114 | update_irq_encoder(INPUT_LINE_IRQ3, | |
| 113 | update_irq_encoder(INPUT_LINE_IRQ3, state | |
| 115 | 114 | } |
| 116 | 115 | |
| 117 | 116 | |
| r2241 | r2242 | |
| 189 | 188 | |
| 190 | 189 | WRITE16_HANDLER( vertigo_audio_w ) |
| 191 | 190 | { |
| 192 | if (ACCESSING_ | |
| 191 | if (ACCESSING_ | |
| 193 | 192 | timer_call_after_resynch(NULL, data & 0xff, sound_command_w); |
| 194 | 193 | } |
| 195 | 194 | |
| r2241 | r2242 | |
| 221 | 220 | TTL74148_input_line_w(0, i, 1); |
| 222 | 221 | |
| 223 | 222 | TTL74148_update(0); |
| 224 | pit8253_init(1, &pit8254_config); | |
| 225 | 223 | vertigo_vproc_init(); |
| 226 | 224 | |
| 227 | 225 | irq4_time = timer_get_time(); |
| r2241 | r2242 | |
|---|---|---|
| 36 | 36 | #ifdef MESS |
| 37 | 37 | #include "machine/pc_fdc.h" |
| 38 | 38 | #include "machine/pc_hdc.h" |
| 39 | #include "audio/pc.h" | |
| 40 | 39 | #endif /* MESS */ |
| 41 | 40 | |
| 42 | 41 | #define VERBOSE_DBG 0 /* general debug messages */ |
| r2241 | r2242 | |
| 55 | 54 | #define LOG_PORT80 0 |
| 56 | 55 | |
| 57 | 56 | |
| 58 | static void pc_timer0_w(int state) | |
| 59 | { | |
| 60 | pic8259_set_irq_line(0, 0, state); | |
| 61 | } | |
| 62 | ||
| 63 | ||
| 64 | /* | |
| 65 | * timer0 heartbeat IRQ | |
| 66 | * timer1 DRAM refresh (ignored) | |
| 67 | * timer2 PIO port C pin 4 and speaker polling | |
| 68 | */ | |
| 69 | static const struct pit8253_config pc_pit8253_config = | |
| 70 | { | |
| 71 | TYPE8253, | |
| 72 | { | |
| 73 | { | |
| 74 | 4772720/4, /* heartbeat IRQ */ | |
| 75 | pc_timer0_w, | |
| 76 | NULL | |
| 77 | }, { | |
| 78 | 4772720/4, /* dram refresh */ | |
| 79 | NULL, | |
| 80 | NULL | |
| 81 | }, { | |
| 82 | 4772720/4, /* pio port c pin 4, and speaker polling enough */ | |
| 83 | NULL, | |
| 84 | #ifdef MESS | |
| 85 | pc_sh_speaker_change_clock | |
| 86 | #else | |
| 87 | NULL //pc_sh_speaker_change_clock | |
| 88 | #endif /* MESS */ | |
| 89 | } | |
| 90 | } | |
| 91 | }; | |
| 92 | ||
| 93 | static const struct pit8253_config pc_pit8254_config = | |
| 94 | { | |
| 95 | TYPE8254, | |
| 96 | { | |
| 97 | { | |
| 98 | 4772720/4, /* heartbeat IRQ */ | |
| 99 | pc_timer0_w, | |
| 100 | NULL | |
| 101 | }, { | |
| 102 | 4772720/4, /* dram refresh */ | |
| 103 | NULL, | |
| 104 | NULL | |
| 105 | }, { | |
| 106 | 4772720/4, /* pio port c pin 4, and speaker polling enough */ | |
| 107 | NULL, | |
| 108 | #ifdef MESS | |
| 109 | pc_sh_speaker_change_clock | |
| 110 | #else | |
| 111 | NULL //pc_sh_speaker_change_clock | |
| 112 | #endif /* MESS */ | |
| 113 | } | |
| 114 | } | |
| 115 | }; | |
| 116 | ||
| 117 | ||
| 118 | ||
| 119 | 57 | /************************************************************************* |
| 120 | 58 | * |
| 121 | 59 | * PC DMA stuff |
| r2241 | r2242 | |
| 289 | 227 | |
| 290 | 228 | void init_pc_common(UINT32 flags) |
| 291 | 229 | { |
| 292 | /* PIT */ | |
| 293 | if (flags & PCCOMMON_TIMER_8254) | |
| 294 | pit8253_init(1, &pc_pit8254_config); | |
| 295 | else if (flags & PCCOMMON_TIMER_8253) | |
| 296 | pit8253_init(1, &pc_pit8253_config); | |
| 297 | ||
| 298 | 230 | /* PC-XT keyboard */ |
| 299 | 231 | if (flags & PCCOMMON_KEYBOARD_AT) |
| 300 | 232 | at_keyboard_init(AT_KEYBOARD_TYPE_AT); |
| r2241 | r2242 | |
|---|---|---|
| 5 | 5 | #define PCCOMMON_KEYBOARD_AT 1 |
| 6 | 6 | #define PCCOMMON_DMA8237_PC 0 |
| 7 | 7 | #define PCCOMMON_DMA8237_AT 2 |
| 8 | #define PCCOMMON_TIMER_NONE 0 | |
| 9 | #define PCCOMMON_TIMER_8253 4 | |
| 10 | #define PCCOMMON_TIMER_8254 8 | |
| 11 | 8 | #define PCCOMMON_NEC765_RDY_NC 16 |
| 12 | 9 | |
| 13 | 10 | void init_pc_common(UINT32 flags); |
| r2241 | r2242 | |
|---|---|---|
| 706 | 706 | |
| 707 | 707 | WRITE16_HANDLER( atarigen_sound_w ) |
| 708 | 708 | { |
| 709 | if (ACCESSING_ | |
| 709 | if (ACCESSING_ | |
| 710 | 710 | timer_call_after_resynch(NULL, data & 0xff, delayed_sound_w); |
| 711 | 711 | } |
| 712 | 712 | |
| 713 | 713 | WRITE16_HANDLER( atarigen_sound_upper_w ) |
| 714 | 714 | { |
| 715 | if (ACCESSING_ | |
| 715 | if (ACCESSING_ | |
| 716 | 716 | timer_call_after_resynch(NULL, (data >> 8) & 0xff, delayed_sound_w); |
| 717 | 717 | } |
| 718 | 718 | |
| 719 | 719 | WRITE32_HANDLER( atarigen_sound_upper32_w ) |
| 720 | 720 | { |
| 721 | if (ACCESSING_ | |
| 721 | if (ACCESSING_ | |
| 722 | 722 | timer_call_after_resynch(NULL, (data >> 24) & 0xff, delayed_sound_w); |
| 723 | 723 | } |
| 724 | 724 | |
| r2241 | r2242 | |
| 1294 | 1294 | WRITE32_HANDLER( atarigen_alpha32_w ) |
| 1295 | 1295 | { |
| 1296 | 1296 | COMBINE_DATA(&atarigen_alpha32[offset]); |
| 1297 | if ( | |
| 1297 | if (ACCESSING_BITS_16_31 | |
| 1298 | 1298 | tilemap_mark_tile_dirty(atarigen_alpha_tilemap, offset * 2); |
| 1299 | if ( | |
| 1299 | if (ACCESSING_BITS_ | |
| 1300 | 1300 | tilemap_mark_tile_dirty(atarigen_alpha_tilemap, offset * 2 + 1); |
| 1301 | 1301 | } |
| 1302 | 1302 | |
| r2241 | r2242 | |
| 1338 | 1338 | WRITE32_HANDLER( atarigen_playfield32_w ) |
| 1339 | 1339 | { |
| 1340 | 1340 | COMBINE_DATA(&atarigen_playfield32[offset]); |
| 1341 | if ( | |
| 1341 | if (ACCESSING_BITS_16_31 | |
| 1342 | 1342 | tilemap_mark_tile_dirty(atarigen_playfield_tilemap, offset * 2); |
| 1343 | if ( | |
| 1343 | if (ACCESSING_BITS_ | |
| 1344 | 1344 | tilemap_mark_tile_dirty(atarigen_playfield_tilemap, offset * 2 + 1); |
| 1345 | 1345 | } |
| 1346 | 1346 | |
| r2241 | r2242 | |
| 1512 | 1512 | { |
| 1513 | 1513 | COMBINE_DATA(&paletteram16[offset]); |
| 1514 | 1514 | |
| 1515 | if (ACCESSING_ | |
| 1515 | if (ACCESSING_ | |
| 1516 | 1516 | { |
| 1517 | 1517 | int palentry = offset / 2; |
| 1518 | 1518 | int newword = (paletteram16[palentry * 2] & 0xff00) | (paletteram16[palentry * 2 + 1] >> 8); |
| r2241 | r2242 | |
| 1538 | 1538 | |
| 1539 | 1539 | COMBINE_DATA(&paletteram32[offset]); |
| 1540 | 1540 | |
| 1541 | if (ACCESSING_ | |
| 1541 | if (ACCESSING_BITS_16_31) | |
| 1542 | 1542 | { |
| 1543 | 1543 | newword = paletteram32[offset] >> 16; |
| 1544 | 1544 | |
| r2241 | r2242 | |
| 1549 | 1549 | palette_set_color_rgb(machine, offset * 2, pal6bit(r), pal6bit(g), pal6bit(b)); |
| 1550 | 1550 | } |
| 1551 | 1551 | |
| 1552 | if (ACCESSING_ | |
| 1552 | if (ACCESSING_BITS_0_15) | |
| 1553 | 1553 | { |
| 1554 | 1554 | newword = paletteram32[offset] & 0xffff; |
| 1555 | 1555 |
| r2241 | r2242 | |
|---|---|---|
| 162 | 162 | { |
| 163 | 163 | int offs = offset / 0x40000; |
| 164 | 164 | |
| 165 | if (offs == 1 && ACCESSING_ | |
| 165 | if (offs == 1 && ACCESSING_ | |
| 166 | 166 | dcs_reset_w(data & 2); |
| 167 | 167 | |
| 168 | if (ACCESSING_ | |
| 168 | if (ACCESSING_ | |
| 169 | 169 | logerror("%08X:midxunit_unknown_w @ %d = %02X\n", activecpu_get_pc(), offs, data & 0xff); |
| 170 | 170 | } |
| 171 | 171 | |
| r2241 | r2242 | |
| 229 | 229 | |
| 230 | 230 | WRITE16_HANDLER( midxunit_analog_select_w ) |
| 231 | 231 | { |
| 232 | if (offset == 0 && ACCESSING_ | |
| 232 | if (offset == 0 && ACCESSING_ | |
| 233 | 233 | midxunit_analog_port = data - 8 + 4; |
| 234 | 234 | } |
| 235 | 235 | |
| r2241 | r2242 | |
| 328 | 328 | WRITE16_HANDLER( midxunit_uart_w ) |
| 329 | 329 | { |
| 330 | 330 | /* convert to a byte offset, ignoring MSB writes */ |
| 331 | if ((offset & 1) || !ACCESSING_ | |
| 331 | if ((offset & 1) || !ACCESSING_ | |
| 332 | 332 | return; |
| 333 | 333 | offset /= 2; |
| 334 | 334 | data &= 0xff; |
| r2241 | r2242 | |
| 645 | 645 | |
| 646 | 646 | WRITE16_HANDLER( midwunit_security_w ) |
| 647 | 647 | { |
| 648 | if (offset == 0 && ACCESSING_ | |
| 648 | if (offset == 0 && ACCESSING_ | |
| 649 | 649 | midway_serial_pic_w(data); |
| 650 | 650 | } |
| 651 | 651 | |
| 652 | 652 | |
| 653 | 653 | WRITE16_HANDLER( midxunit_security_w ) |
| 654 | 654 | { |
| 655 | if (ACCESSING_ | |
| 655 | if (ACCESSING_ | |
| 656 | 656 | security_bits = data & 0x0f; |
| 657 | 657 | } |
| 658 | 658 | |
| 659 | 659 | |
| 660 | 660 | WRITE16_HANDLER( midxunit_security_clock_w ) |
| 661 | 661 | { |
| 662 | if (offset == 0 && ACCESSING_ | |
| 662 | if (offset == 0 && ACCESSING_ | |
| 663 | 663 | midway_serial_pic_w(((~data & 2) << 3) | security_bits); |
| 664 | 664 | } |
| 665 | 665 | |
| r2241 | r2242 | |
| 695 | 695 | } |
| 696 | 696 | |
| 697 | 697 | /* call through based on the sound type */ |
| 698 | if (ACCESSING_ | |
| 698 | if (ACCESSING_ | |
| 699 | 699 | { |
| 700 | 700 | logerror("%08X:Sound write = %04X\n", activecpu_get_pc(), data); |
| 701 | 701 | dcs_data_w(data & 0xff); |
| r2241 | r2242 | |
|---|---|---|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | WRITE16_HANDLER( namcos2_68k_eeprom_w ){ |
| 153 | if( ACCESSING_ | |
| 153 | if( ACCESSING_ | |
| 154 | 154 | { |
| 155 | 155 | namcos2_eeprom[offset] = data; |
| 156 | 156 | } |
| r2241 | r2242 | |
|---|---|---|
| 23 | 23 | Globals |
| 24 | 24 | */ |
| 25 | 25 | static UINT16 *prom; |
| 26 | static emu_timer *interrupt_timer; | |
| 26 | 27 | |
| 27 | 28 | static struct |
| 28 | 29 | { |
| r2241 | r2242 | |
| 65 | 66 | static TIMER_CALLBACK( interrupt_callback ) |
| 66 | 67 | { |
| 67 | 68 | cpunum_set_input_line_and_vector(machine, 0, 0, HOLD_LINE, 0xff); |
| 68 | timer_set(video_screen_get_time_until_pos(machine->primary_screen, CURSOR_YPOS, CURSOR_XPOS), | |
| 69 | timer_adjust_oneshot(interrupt_timer, video_screen_get_time_until_pos(machine->primary_screen, CURSOR_YPOS, CURSOR_XPOS), | |
| 69 | 70 | } |
| 70 | 71 | |
| 71 | 72 | /* |
| r2241 | r2242 | |
| 1477 | 1478 | /* Initialise for each game */ |
| 1478 | 1479 | prom = (UINT16*)memory_region(REGION_USER1) + (0x8000 >> 1); |
| 1479 | 1480 | |
| 1481 | /* set a timer to run the interrupts */ | |
| 1482 | interrupt_timer = timer_alloc(interrupt_callback, NULL); | |
| 1483 | ||
| 1480 | 1484 | /* /CUDISP CRTC interrupt */ |
| 1481 | timer_set(video_screen_get_time_until_pos(machine->primary_screen, CURSOR_YPOS, CURSOR_XPOS), | |
| 1485 | timer_adjust_oneshot(interrupt_timer, video_screen_get_time_until_pos(machine->primary_screen, CURSOR_YPOS, CURSOR_XPOS), | |
| 1482 | 1486 | } |
| 1483 | 1487 | |
| 1484 | 1488 | MACHINE_START( buggyboy ) |
| r2241 | r2242 | |
| 1488 | 1492 | /* Initialise for each game */ |
| 1489 | 1493 | prom = (UINT16*)memory_region(REGION_USER1) + (0x8000 >> 1); |
| 1490 | 1494 | |
| 1495 | /* set a timer to run the interrupts */ | |
| 1496 | interrupt_timer = timer_alloc(interrupt_callback, NULL); | |
| 1497 | ||
| 1491 | 1498 | /* /CUDISP CRTC interrupt */ |
| 1492 | timer_set(video_screen_get_time_until_pos(machine->primary_screen, CURSOR_YPOS, CURSOR_XPOS), | |
| 1499 | timer_adjust_oneshot(interrupt_timer, video_screen_get_time_until_pos(machine->primary_screen, CURSOR_YPOS, CURSOR_XPOS), | |
| 1493 | 1500 | } |
| 1494 | 1501 | |
| 1495 | 1502 | MACHINE_START( buggybjr ) |
| r2241 | r2242 | |
| 1497 | 1504 | /* Initialise for each game */ |
| 1498 | 1505 | prom = (UINT16*)memory_region(REGION_USER1) + (0x8000 >> 1); |
| 1499 | 1506 | |
| 1507 | /* set a timer to run the interrupts */ | |
| 1508 | interrupt_timer = timer_alloc(interrupt_callback, NULL); | |
| 1509 | ||
| 1500 | 1510 | /* /CUDISP CRTC interrupt */ |
| 1501 | timer_set(video_screen_get_time_until_pos(machine->primary_screen, CURSOR_YPOS, CURSOR_XPOS), | |
| 1511 | timer_adjust_oneshot(interrupt_timer, video_screen_get_time_until_pos(machine->primary_screen, CURSOR_YPOS, CURSOR_XPOS), | |
| 1502 | 1512 | } |
| r2241 | r2242 | |
|---|---|---|
| 50 | 50 | cclimber_decode(convtable); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | ||
| 53 | void | |
| 54 | 54 | { |
| 55 | 55 | static const UINT8 convtable[8][16] = |
| 56 | 56 | { |
| r2241 | r2242 | |
| 67 | 67 | cclimber_decode(convtable); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | DRIVER_INIT( | |
| 70 | DRIVER_INIT( cc | |
| 71 | 71 | { |
| 72 | cclimbrj_decode(); | |
| 73 | } | |
| 74 | ||
| 75 | void mshuttle_decode(void) | |
| 76 | { | |
| 72 | 77 | static const UINT8 convtable[8][16] = |
| 73 | 78 | { |
| 74 | 79 | /* -1 marks spots which are unused and therefore unknown */ |
| r2241 | r2242 | |
|---|---|---|
| 902 | 902 | |
| 903 | 903 | WRITE16_HANDLER( mcr68_6840_upper_w ) |
| 904 | 904 | { |
| 905 | if (ACCESSING_ | |
| 905 | if (ACCESSING_ | |
| 906 | 906 | mcr68_6840_w_common(machine, offset, (data >> 8) & 0xff); |
| 907 | 907 | } |
| 908 | 908 | |
| 909 | 909 | |
| 910 | 910 | WRITE16_HANDLER( mcr68_6840_lower_w ) |
| 911 | 911 | { |
| 912 | if (ACCESSING_ | |
| 912 | if (ACCESSING_ | |
| 913 | 913 | mcr68_6840_w_common(machine, offset, data & 0xff); |
| 914 | 914 | } |
| 915 | 915 |
| r2241 | r2242 | |
|---|---|---|
| 111 | 111 | logerror("%08x: write unmapped v30 rom %08x\n",activecpu_get_pc(),offset); |
| 112 | 112 | |
| 113 | 113 | /* Only 8 bits of the V30 data bus are connected - ignore writes to the other half */ |
| 114 | if (ACCESSING_ | |
| 114 | if (ACCESSING_ | |
| 115 | 115 | { |
| 116 | 116 | cpuintrf_push_context(2); |
| 117 | 117 | program_write_byte(offset, data&0xff); |
| r2241 | r2242 | |
| 170 | 170 | WRITE16_HANDLER( roundup_v30_z80_w ) |
| 171 | 171 | { |
| 172 | 172 | /* Only 8 bits of the V30 data bus are connected - ignore writes to the other half */ |
| 173 | if (ACCESSING_ | |
| 173 | if (ACCESSING_ | |
| 174 | 174 | { |
| 175 | 175 | if (tatsumi_control_word&0x20) |
| 176 | 176 | offset+=0x8000; /* Upper half of Z80 address space */ |
| r2241 | r2242 | |
|---|---|---|
| 71 | 71 | { |
| 72 | 72 | UINT32 r = 0; |
| 73 | 73 | |
| 74 | if ( | |
| 74 | if (ACCESSING_BITS_24_31 | |
| 75 | 75 | { |
| 76 | 76 | r |= K056800_host_reg_r((offset*4)+0) << 24; |
| 77 | 77 | } |
| 78 | if ( | |
| 78 | if (ACCESSING_BITS_16_23 | |
| 79 | 79 | { |
| 80 | 80 | r |= K056800_host_reg_r((offset*4)+1) << 16; |
| 81 | 81 | } |
| 82 | if ( | |
| 82 | if (ACCESSING_BITS_8_15 | |
| 83 | 83 | { |
| 84 | 84 | r |= K056800_host_reg_r((offset*4)+2) << 8; |
| 85 | 85 | } |
| 86 | if ( | |
| 86 | if (ACCESSING_BITS_ | |
| 87 | 87 | { |
| 88 | 88 | r |= K056800_host_reg_r((offset*4)+3) << 0; |
| 89 | 89 | } |
| r2241 | r2242 | |
| 93 | 93 | |
| 94 | 94 | WRITE32_HANDLER(K056800_host_w) |
| 95 | 95 | { |
| 96 | if ( | |
| 96 | if (ACCESSING_BITS_24_31 | |
| 97 | 97 | { |
| 98 | 98 | K056800_host_reg_w((offset*4)+0, (data >> 24) & 0xff); |
| 99 | 99 | } |
| 100 | if ( | |
| 100 | if (ACCESSING_BITS_16_23 | |
| 101 | 101 | { |
| 102 | 102 | K056800_host_reg_w((offset*4)+1, (data >> 16) & 0xff); |
| 103 | 103 | } |
| 104 | if ( | |
| 104 | if (ACCESSING_BITS_8_15 | |
| 105 | 105 | { |
| 106 | 106 | K056800_host_reg_w((offset*4)+2, (data >> 8) & 0xff); |
| 107 | 107 | } |
| 108 | if ( | |
| 108 | if (ACCESSING_BITS_ | |
| 109 | 109 | { |
| 110 | 110 | K056800_host_reg_w((offset*4)+3, (data >> 0) & 0xff); |
| 111 | 111 | } |
| r0 | r2242 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | machine.c | |
| 4 | ||
| 5 | Functions to emulate general aspects of the machine (RAM, ROM, interrupts, | |
| 6 | I/O ports) | |
| 7 | ||
| 8 | ***************************************************************************/ | |
| 9 | ||
| 10 | #include "driver.h" | |
| 11 | #include "deprecat.h" | |
| 12 | #include "machine/7474.h" | |
| 13 | #include "includes/galaxold.h" | |
| 14 | ||
| 15 | static int irq_line; | |
| 16 | static emu_timer *int_timer; | |
| 17 | ||
| 18 | static UINT8 kingball_speech_dip; | |
| 19 | static UINT8 kingball_sound; | |
| 20 | ||
| 21 | static UINT8 _4in1_bank; | |
| 22 | static UINT8 gmgalax_selected_game; | |
| 23 | ||
| 24 | ||
| 25 | static void galaxold_7474_9M_2_callback(void) | |
| 26 | { | |
| 27 | /* Q bar clocks the other flip-flop, | |
| 28 | Q is VBLANK (not visible to the CPU) */ | |
| 29 | TTL7474_clock_w(1, TTL7474_output_comp_r(0)); | |
| 30 | TTL7474_update(1); | |
| 31 | } | |
| 32 | ||
| 33 | static void galaxold_7474_9M_1_callback(void) | |
| 34 | { | |
| 35 | /* Q goes to the NMI line */ | |
| 36 | cpunum_set_input_line(Machine, 0, irq_line, TTL7474_output_r(1) ? CLEAR_LINE : ASSERT_LINE); | |
| 37 | } | |
| 38 | ||
| 39 | static const struct TTL7474_interface galaxold_7474_9M_2_intf = | |
| 40 | { | |
| 41 | galaxold_7474_9M_2_callback | |
| 42 | }; | |
| 43 | ||
| 44 | static const struct TTL7474_interface galaxold_7474_9M_1_intf = | |
| 45 | { | |
| 46 | galaxold_7474_9M_1_callback | |
| 47 | }; | |
| 48 | ||
| 49 | ||
| 50 | WRITE8_HANDLER( galaxold_nmi_enable_w ) | |
| 51 | { | |
| 52 | TTL7474_preset_w(1, data); | |
| 53 | TTL7474_update(1); | |
| 54 | } | |
| 55 | ||
| 56 | ||
| 57 | static TIMER_CALLBACK( interrupt_timer ) | |
| 58 | { | |
| 59 | /* 128V, 64V and 32V go to D */ | |
| 60 | TTL7474_d_w(0, (param & 0xe0) != 0xe0); | |
| 61 | ||
| 62 | /* 16V clocks the flip-flop */ | |
| 63 | TTL7474_clock_w(0, param & 0x10); | |
| 64 | ||
| 65 | param = (param + 0x10) & 0xff; | |
| 66 | ||
| 67 | timer_adjust_oneshot(int_timer, video_screen_get_time_until_pos(machine->primary_screen, param, 0), param); | |
| 68 | ||
| 69 | TTL7474_update(0); | |
| 70 | } | |
| 71 | ||
| 72 | ||
| 73 | static void machine_reset_common(running_machine *machine, int line) | |
| 74 | { | |
| 75 | irq_line = line; | |
| 76 | ||
| 77 | /* initalize main CPU interrupt generator flip-flops */ | |
| 78 | TTL7474_config(0, &galaxold_7474_9M_2_intf); | |
| 79 | TTL7474_preset_w(0, 1); | |
| 80 | TTL7474_clear_w (0, 1); | |
| 81 | ||
| 82 | TTL7474_config(1, &galaxold_7474_9M_1_intf); | |
| 83 | TTL7474_clear_w (1, 1); | |
| 84 | TTL7474_d_w (1, 0); | |
| 85 | TTL7474_preset_w(1, 0); | |
| 86 | ||
| 87 | /* start a timer to generate interrupts */ | |
| 88 | int_timer = timer_alloc(interrupt_timer, NULL); | |
| 89 | timer_adjust_oneshot(int_timer, video_screen_get_time_until_pos(machine->primary_screen, 0, 0), 0); | |
| 90 | } | |
| 91 | ||
| 92 | MACHINE_RESET( galaxold ) | |
| 93 | { | |
| 94 | machine_reset_common(machine, INPUT_LINE_NMI); | |
| 95 | } | |
| 96 | ||
| 97 | MACHINE_RESET( devilfsg ) | |
| 98 | { | |
| 99 | machine_reset_common(machine, 0); | |
| 100 | } | |
| 101 | ||
| 102 | ||
| 103 | WRITE8_HANDLER( galaxold_coin_lockout_w ) | |
| 104 | { | |
| 105 | coin_lockout_global_w(~data & 1); | |
| 106 | } | |
| 107 | ||
| 108 | ||
| 109 | WRITE8_HANDLER( galaxold_coin_counter_w ) | |
| 110 | { | |
| 111 | coin_counter_w(offset, data & 0x01); | |
| 112 | } | |
| 113 | ||
| 114 | WRITE8_HANDLER( galaxold_coin_counter_1_w ) | |
| 115 | { | |
| 116 | coin_counter_w(1, data & 0x01); | |
| 117 | } | |
| 118 | ||
| 119 | WRITE8_HANDLER( galaxold_coin_counter_2_w ) | |
| 120 | { | |
| 121 | coin_counter_w(2, data & 0x01); | |
| 122 | } | |
| 123 | ||
| 124 | ||
| 125 | WRITE8_HANDLER( galaxold_leds_w ) | |
| 126 | { | |
| 127 | set_led_status(offset,data & 1); | |
| 128 | } | |
| 129 | ||
| 130 | ||
| 131 | static READ8_HANDLER( checkmaj_protection_r ) | |
| 132 | { | |
| 133 | switch (activecpu_get_pc()) | |
| 134 | { | |
| 135 | case 0x0f15: return 0xf5; | |
| 136 | case 0x0f8f: return 0x7c; | |
| 137 | case 0x10b3: return 0x7c; | |
| 138 | case 0x10e0: return 0x00; | |
| 139 | case 0x10f1: return 0xaa; | |
| 140 | case 0x1402: return 0xaa; | |
| 141 | default: | |
| 142 | logerror("Unknown protection read. PC=%04X\n",activecpu_get_pc()); | |
| 143 | } | |
| 144 | ||
| 145 | return 0; | |
| 146 | } | |
| 147 | ||
| 148 | ||
| 149 | /* Zig Zag can swap ROMs 2 and 3 as a form of copy protection */ | |
| 150 | WRITE8_HANDLER( zigzag_sillyprotection_w ) | |
| 151 | { | |
| 152 | if (data) | |
| 153 | { | |
| 154 | /* swap ROM 2 and 3! */ | |
| 155 | memory_set_bank(1, 1); | |
| 156 | memory_set_bank(2, 0); | |
| 157 | } | |
| 158 | else | |
| 159 | { | |
| 160 | memory_set_bank(1, 0); | |
| 161 | memory_set_bank(2, 1); | |
| 162 | } | |
| 163 | } | |
| 164 | ||
| 165 | DRIVER_INIT( zigzag ) | |
| 166 | { | |
| 167 | UINT8 *RAM = memory_region(REGION_CPU1); | |
| 168 | memory_configure_bank(1, 0, 2, &RAM[0x2000], 0x1000); | |
| 169 | memory_configure_bank(2, 0, 2, &RAM[0x2000], 0x1000); | |
| 170 | memory_set_bank(1, 0); | |
| 171 | memory_set_bank(2, 1); | |
| 172 | } | |
| 173 | ||
| 174 | ||
| 175 | ||
| 176 | static READ8_HANDLER( dingo_3000_r ) | |
| 177 | { | |
| 178 | return 0xaa; | |
| 179 | } | |
| 180 | ||
| 181 | static READ8_HANDLER( dingo_3035_r ) | |
| 182 | { | |
| 183 | return 0x8c; | |
| 184 | } | |
| 185 | ||
| 186 | static READ8_HANDLER( dingoe_3001_r ) | |
| 187 | { | |
| 188 | return 0xaa; | |
| 189 | } | |
| 190 | ||
| 191 | ||
| 192 | DRIVER_INIT( dingoe ) | |
| 193 | { | |
| 194 | offs_t i; | |
| 195 | UINT8 *rom = memory_region(REGION_CPU1); | |
| 196 | ||
| 197 | for (i = 0; i < 0x3000; i++) | |
| 198 | { | |
| 199 | UINT8 data_xor; | |
| 200 | ||
| 201 | /* XOR bit 2 with 4 and 5 with 0 */ | |
| 202 | data_xor = BIT(rom[i], 2) << 4 | BIT(rom[i], 5) << 0; | |
| 203 | rom[i] ^= data_xor; | |
| 204 | ||
| 205 | ||
| 206 | /* Invert bit 1 */ | |
| 207 | if (~rom[i] & 0x02) | |
| 208 | rom[i] = rom[i] | 0x02; | |
| 209 | else | |
| 210 | rom[i] = rom[i] & 0xfd; | |
| 211 | ||
| 212 | ||
| 213 | /* Swap bit0 with bit4 */ | |
| 214 | if ((i & 0x0f) == 0x02 || (i & 0x0f) == 0x0a || (i & 0x0f) == 0x03 || (i & 0x0f) == 0x0b || (i & 0x0f) == 0x06 || (i & 0x0f) == 0x0e || (i & 0x0f) == 0x07 || (i & 0x0f) == 0x0f) /* Swap Bit 0 and 4 */ | |
| 215 | rom[i] = BITSWAP8(rom[i],7,6,5,0,3,2,1,4); | |
| 216 | } | |
| 217 | ||
| 218 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x3001, 0x3001, 0, 0, dingoe_3001_r); /* Protection check */ | |
| 219 | ||
| 220 | } | |
| 221 | ||
| 222 | ||
| 223 | ||
| 224 | /* Hack? If $b003 is high, we'll check our "fake" speech dipswitch (marked as SLAM) */ | |
| 225 | static READ8_HANDLER( kingball_IN0_r ) | |
| 226 | { | |
| 227 | if (kingball_speech_dip) | |
| 228 | return (readinputport(0) & ~0x40) | ((readinputport(3) & 0x01) << 6); | |
| 229 | else | |
| 230 | return readinputport(0); | |
| 231 | } | |
| 232 | ||
| 233 | static READ8_HANDLER( kingball_IN1_r ) | |
| 234 | { | |
| 235 | /* bit 5 is the NOISE line from the sound circuit. The code just verifies | |
| 236 | that it's working, doesn't actually use return value, so we can just use | |
| 237 | rand() */ | |
| 238 | ||
| 239 | return (readinputport(1) & ~0x20) | (mame_rand(Machine) & 0x20); | |
| 240 | } | |
| 241 | ||
| 242 | WRITE8_HANDLER( kingball_speech_dip_w ) | |
| 243 | { | |
| 244 | kingball_speech_dip = data; | |
| 245 | } | |
| 246 | ||
| 247 | WRITE8_HANDLER( kingball_sound1_w ) | |
| 248 | { | |
| 249 | kingball_sound = (kingball_sound & ~0x01) | data; | |
| 250 | } | |
| 251 | ||
| 252 | WRITE8_HANDLER( kingball_sound2_w ) | |
| 253 | { | |
| 254 | kingball_sound = (kingball_sound & ~0x02) | (data << 1); | |
| 255 | soundlatch_w (machine, 0, kingball_sound | 0xf0); | |
| 256 | } | |
| 257 | ||
| 258 | ||
| 259 | READ8_HANDLER( scramblb_protection_1_r ) | |
| 260 | { | |
| 261 | switch (activecpu_get_pc()) | |
| 262 | { | |
| 263 | case 0x01da: return 0x80; | |
| 264 | case 0x01e4: return 0x00; | |
| 265 | default: | |
| 266 | logerror("%04x: read protection 1\n",activecpu_get_pc()); | |
| 267 | return 0; | |
| 268 | } | |
| 269 | } | |
| 270 | ||
| 271 | READ8_HANDLER( scramblb_protection_2_r ) | |
| 272 | { | |
| 273 | switch (activecpu_get_pc()) | |
| 274 | { | |
| 275 | case 0x01ca: return 0x90; | |
| 276 | default: | |
| 277 | logerror("%04x: read protection 2\n",activecpu_get_pc()); | |
| 278 | return 0; | |
| 279 | } | |
| 280 | } | |
| 281 | ||
| 282 | ||
| 283 | static READ8_HANDLER( azurian_IN1_r ) | |
| 284 | { | |
| 285 | return (readinputport(1) & ~0x40) | ((readinputport(3) & 0x01) << 6); | |
| 286 | } | |
| 287 | ||
| 288 | static READ8_HANDLER( azurian_IN2_r ) | |
| 289 | { | |
| 290 | return (readinputport(2) & ~0x04) | ((readinputport(3) & 0x02) << 1); | |
| 291 | } | |
| 292 | ||
| 293 | ||
| 294 | WRITE8_HANDLER( _4in1_bank_w ) | |
| 295 | { | |
| 296 | _4in1_bank = data & 0x03; | |
| 297 | galaxold_gfxbank_w(machine, 0, _4in1_bank); | |
| 298 | memory_set_bank(1, _4in1_bank); | |
| 299 | } | |
| 300 | ||
| 301 | READ8_HANDLER( _4in1_input_port_1_r ) | |
| 302 | { | |
| 303 | return (readinputport(1) & ~0xc0) | (readinputport(3+_4in1_bank) & 0xc0); | |
| 304 | } | |
| 305 | ||
| 306 | READ8_HANDLER( _4in1_input_port_2_r ) | |
| 307 | { | |
| 308 | return (readinputport(2) & 0x04) | (readinputport(3+_4in1_bank) & ~0xc4); | |
| 309 | } | |
| 310 | ||
| 311 | ||
| 312 | static void gmgalax_select_game(int game) | |
| 313 | { | |
| 314 | gmgalax_selected_game = game; | |
| 315 | ||
| 316 | memory_set_bank(1, game); | |
| 317 | ||
| 318 | galaxold_gfxbank_w(Machine, 0, gmgalax_selected_game); | |
| 319 | } | |
| 320 | ||
| 321 | READ8_HANDLER( gmgalax_input_port_0_r ) | |
| 322 | { | |
| 323 | return readinputport(gmgalax_selected_game ? 3 : 0); | |
| 324 | } | |
| 325 | ||
| 326 | READ8_HANDLER( gmgalax_input_port_1_r ) | |
| 327 | { | |
| 328 | return readinputport(gmgalax_selected_game ? 4 : 1); | |
| 329 | } | |
| 330 | ||
| 331 | READ8_HANDLER( gmgalax_input_port_2_r ) | |
| 332 | { | |
| 333 | return readinputport(gmgalax_selected_game ? 5 : 2); | |
| 334 | } | |
| 335 | ||
| 336 | ||
| 337 | DRIVER_INIT( pisces ) | |
| 338 | { | |
| 339 | /* the coin lockout was replaced */ | |
| 340 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6002, 0x6002, 0, 0, galaxold_gfxbank_w); | |
| 341 | } | |
| 342 | ||
| 343 | DRIVER_INIT( checkmaj ) | |
| 344 | { | |
| 345 | /* for the title screen */ | |
| 346 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x3800, 0x3800, 0, 0, checkmaj_protection_r); | |
| 347 | } | |
| 348 | ||
| 349 | DRIVER_INIT( dingo ) | |
| 350 | { | |
| 351 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x3000, 0x3000, 0, 0, dingo_3000_r); | |
| 352 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x3035, 0x3035, 0, 0, dingo_3035_r); | |
| 353 | } | |
| 354 | ||
| 355 | DRIVER_INIT( kingball ) | |
| 356 | { | |
| 357 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa000, 0xa000, 0, 0, kingball_IN0_r); | |
| 358 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa800, 0xa800, 0, 0, kingball_IN1_r); | |
| 359 | ||
| 360 | state_save_register_global(kingball_speech_dip); | |
| 361 | state_save_register_global(kingball_sound); | |
| 362 | } | |
| 363 | ||
| 364 | ||
| 365 | static UINT8 decode_mooncrst(UINT8 data,offs_t addr) | |
| 366 | { | |
| 367 | UINT8 res; | |
| 368 | ||
| 369 | res = data; | |
| 370 | if (BIT(data,1)) res ^= 0x40; | |
| 371 | if (BIT(data,5)) res ^= 0x04; | |
| 372 | if ((addr & 1) == 0) | |
| 373 | res = (res & 0xbb) | (BIT(res,6) << 2) | (BIT(res,2) << 6); | |
| 374 | return res; | |
| 375 | } | |
| 376 | ||
| 377 | DRIVER_INIT( mooncrsu ) | |
| 378 | { | |
| 379 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa000, 0xa002, 0, 0, galaxold_gfxbank_w); | |
| 380 | } | |
| 381 | ||
| 382 | DRIVER_INIT( mooncrst ) | |
| 383 | { | |
| 384 | offs_t i; | |
| 385 | UINT8 *rom = memory_region(REGION_CPU1); | |
| 386 | ||
| 387 | ||
| 388 | for (i = 0;i < memory_region_length(REGION_CPU1);i++) | |
| 389 | rom[i] = decode_mooncrst(rom[i],i); | |
| 390 | ||
| 391 | DRIVER_INIT_CALL(mooncrsu); | |
| 392 | } | |
| 393 | ||
| 394 | DRIVER_INIT( mooncrgx ) | |
| 395 | { | |
| 396 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x6002, 0, 0, galaxold_gfxbank_w); | |
| 397 | } | |
| 398 | ||
| 399 | DRIVER_INIT( moonqsr ) | |
| 400 | { | |
| 401 | offs_t i; | |
| 402 | UINT8 *rom = memory_region(REGION_CPU1); | |
| 403 | UINT8 *decrypt = auto_malloc(0x8000); | |
| 404 | ||
| 405 | memory_set_decrypted_region(0, 0x0000, 0x7fff, decrypt); | |
| 406 | ||
| 407 | for (i = 0;i < 0x8000;i++) | |
| 408 | decrypt[i] = decode_mooncrst(rom[i],i); | |
| 409 | } | |
| 410 | ||
| 411 | DRIVER_INIT( checkman ) | |
| 412 | { | |
| 413 | /* | |
| 414 | Encryption Table | |
| 415 | ---------------- | |
| 416 | +---+---+---+------+------+------+------+------+------+------+------+ | |
| 417 | |A2 |A1 |A0 |D7 |D6 |D5 |D4 |D3 |D2 |D1 |D0 | | |
| 418 | +---+---+---+------+------+------+------+------+------+------+------+ | |
| 419 | | 0 | 0 | 0 |D7 |D6 |D5 |D4 |D3 |D2 |D1 |D0^^D6| | |
| 420 | | 0 | 0 | 1 |D7 |D6 |D5 |D4 |D3 |D2 |D1^^D5|D0 | | |
| 421 | | 0 | 1 | 0 |D7 |D6 |D5 |D4 |D3 |D2^^D4|D1^^D6|D0 | | |
| 422 | | 0 | 1 | 1 |D7 |D6 |D5 |D4^^D2|D3 |D2 |D1 |D0^^D5| | |
| 423 | | 1 | 0 | 0 |D7 |D6^^D4|D5^^D1|D4 |D3 |D2 |D1 |D0 | | |
| 424 | | 1 | 0 | 1 |D7 |D6^^D0|D5^^D2|D4 |D3 |D2 |D1 |D0 | | |
| 425 | | 1 | 1 | 0 |D7 |D6 |D5 |D4 |D3 |D2^^D0|D1 |D0 | | |
| 426 | | 1 | 1 | 1 |D7 |D6 |D5 |D4^^D1|D3 |D2 |D1 |D0 | | |
| 427 | +---+---+---+------+------+------+------+------+------+------+------+ | |
| 428 | ||
| 429 | For example if A2=1, A1=1 and A0=0 then D2 to the CPU would be an XOR of | |
| 430 | D2 and D0 from the ROM's. Note that D7 and D3 are not encrypted. | |
| 431 | ||
| 432 | Encryption PAL 16L8 on cardridge | |
| 433 | +--- ---+ | |
| 434 | OE --| U |-- VCC | |
| 435 | ROMD0 --| |-- D0 | |
| 436 | ROMD1 --| |-- D1 | |
| 437 | ROMD2 --|VER 5.2|-- D2 | |
| 438 | A0 --| |-- NOT USED | |
| 439 | A1 --| |-- A2 | |
| 440 | ROMD4 --| |-- D4 | |
| 441 | ROMD5 --| |-- D5 | |
| 442 | ROMD6 --| |-- D6 | |
| 443 | GND --| |-- M1 (NOT USED) | |
| 444 | +-------+ | |
| 445 | Pin layout is such that links can replace the PAL if encryption is not used. | |
| 446 | ||
| 447 | */ | |
| 448 | static const UINT8 xortable[8][4] = | |
| 449 | { | |
| 450 | { 6,0,6,0 }, | |
| 451 | { 5,1,5,1 }, | |
| 452 | { 4,2,6,1 }, | |
| 453 | { 2,4,5,0 }, | |
| 454 | { 4,6,1,5 }, | |
| 455 | { 0,6,2,5 }, | |
| 456 | { 0,2,0,2 }, | |
| 457 | { 1,4,1,4 } | |
| 458 | }; | |
| 459 | ||
| 460 | offs_t i; | |
| 461 | UINT8 *rom = memory_region(REGION_CPU1); | |
| 462 | ||
| 463 | ||
| 464 | for (i = 0; i < memory_region_length(REGION_CPU1); i++) | |
| 465 | { | |
| 466 | UINT8 data_xor; | |
| 467 | int line = i & 0x07; | |
| 468 | ||
| 469 | data_xor = (BIT(rom[i],xortable[line][0]) << xortable[line][1]) | | |
| 470 | (BIT(rom[i],xortable[line][2]) << xortable[line][3]); | |
| 471 | ||
| 472 | rom[i] ^= data_xor; | |
| 473 | } | |
| 474 | } | |
| 475 | ||
| 476 | DRIVER_INIT( azurian ) | |
| 477 | { | |
| 478 | DRIVER_INIT_CALL(pisces); | |
| 479 | ||
| 480 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6800, 0x6800, 0, 0, azurian_IN1_r); | |
| 481 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x7000, 0x7000, 0, 0, azurian_IN2_r); | |
| 482 | } | |
| 483 | ||
| 484 | DRIVER_INIT( 4in1 ) | |
| 485 | { | |
| 486 | offs_t i; | |
| 487 | UINT8 *RAM = memory_region(REGION_CPU1); | |
| 488 | ||
| 489 | /* Decrypt Program Roms */ | |
| 490 | for (i = 0; i < memory_region_length(REGION_CPU1); i++) | |
| 491 | RAM[i] = RAM[i] ^ (i & 0xff); | |
| 492 | ||
| 493 | /* games are banked at 0x0000 - 0x3fff */ | |
| 494 | memory_configure_bank(1, 0, 4, &RAM[0x10000], 0x4000); | |
| 495 | ||
| 496 | _4in1_bank_w(machine, 0, 0); /* set the initial CPU bank */ | |
| 497 | ||
| 498 | state_save_register_global(_4in1_bank); | |
| 499 | } | |
| 500 | ||
| 501 | INTERRUPT_GEN( hunchbks_vh_interrupt ) | |
| 502 | { | |
| 503 | cpunum_set_input_line_and_vector(machine, 0,0,PULSE_LINE,0x03); | |
| 504 | } | |
| 505 | ||
| 506 | DRIVER_INIT( ladybugg ) | |
| 507 | { | |
| 508 | /* Doesn't actually use the bank, but it mustn't have a coin lock! */ | |
| 509 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6002, 0x6002, 0, 0, galaxold_gfxbank_w); | |
| 510 | } | |
| 511 | ||
| 512 | DRIVER_INIT( gmgalax ) | |
| 513 | { | |
| 514 | /* games are banked at 0x0000 - 0x3fff */ | |
| 515 | UINT8 *RAM=memory_region(REGION_CPU1); | |
| 516 | memory_configure_bank(1, 0, 2, &RAM[0x10000], 0x4000); | |
| 517 | ||
| 518 | state_save_register_global(gmgalax_selected_game); | |
| 519 | ||
| 520 | gmgalax_select_game(input_port_6_r(machine, 0) & 0x01); | |
| 521 | } | |
| 522 | ||
| 523 | INTERRUPT_GEN( gmgalax_vh_interrupt ) | |
| 524 | { | |
| 525 | // reset the cpu if the selected game changed | |
| 526 | int new_game = input_port_6_r(machine, 0) & 0x01; | |
| 527 | ||
| 528 | if (gmgalax_selected_game != new_game) | |
| 529 | { | |
| 530 | gmgalax_select_game(new_game); | |
| 531 | ||
| 532 | /* Ghost Muncher never clears this */ | |
| 533 | galaxold_stars_enable_w(machine, 0, 0); | |
| 534 | ||
| 535 | cpunum_set_input_line(machine, 0, INPUT_LINE_RESET, ASSERT_LINE); | |
| 536 | } | |
| 537 | } |
| r2241 | r2242 | |
|---|---|---|
| 679 | 679 | |
| 680 | 680 | WRITE16_HANDLER( hd68k_duart_w ) |
| 681 | 681 | { |
| 682 | if (ACCESSING_ | |
| 682 | if (ACCESSING_ | |
| 683 | 683 | { |
| 684 | 684 | int newdata = (data >> 8) & 0xff; |
| 685 | 685 | duart_write_data[offset] = newdata; |
| r2241 | r2242 | |
|---|---|---|
| 854 | 854 | verboselog( 0, "psx_sio_w( %08x, %08x, %08x )\n", offset, data, mem_mask ); |
| 855 | 855 | break; |
| 856 | 856 | case 2: |
| 857 | if( ACCESSING_ | |
| 857 | if( ACCESSING_BITS_0_15 ) | |
| 858 | 858 | { |
| 859 | 859 | m_p_n_sio_mode[ n_port ] = data & 0xffff; |
| 860 | 860 | verboselog( 1, "psx_sio_w %d mode %04x\n", n_port, data & 0xffff ); |
| 861 | 861 | } |
| 862 | if( ACCESSING_ | |
| 862 | if( ACCESSING_BITS_16_31 ) | |
| 863 | 863 | { |
| 864 | 864 | verboselog( 1, "psx_sio_w %d control %04x\n", n_port, data >> 16 ); |
| 865 | 865 | m_p_n_sio_control[ n_port ] = data >> 16; |
| r2241 | r2242 | |
| 897 | 897 | } |
| 898 | 898 | break; |
| 899 | 899 | case 3: |
| 900 | if( ACCESSING_ | |
| 900 | if( ACCESSING_BITS_0_15 ) | |
| 901 | 901 | { |
| 902 | 902 | verboselog( 0, "psx_sio_w( %08x, %08x, %08x )\n", offset, data, mem_mask ); |
| 903 | 903 | } |
| 904 | if( ACCESSING_ | |
| 904 | if( ACCESSING_BITS_16_31 ) | |
| 905 | 905 | { |
| 906 | 906 | m_p_n_sio_baud[ n_port ] = data >> 16; |
| 907 | 907 | verboselog( 1, "psx_sio_w %d baud %04x\n", n_port, data >> 16 ); |
| r2241 | r2242 | |
| 930 | 930 | break; |
| 931 | 931 | case 1: |
| 932 | 932 | data = m_p_n_sio_status[ n_port ]; |
| 933 | if( ACCESSING_ | |
| 933 | if( ACCESSING_BITS_0_15 ) | |
| 934 | 934 | { |
| 935 | 935 | verboselog( 1, "psx_sio_r %d status %04x\n", n_port, data & 0xffff ); |
| 936 | 936 | } |
| 937 | if( ACCESSING_ | |
| 937 | if( ACCESSING_BITS_16_31 ) | |
| 938 | 938 | { |
| 939 | 939 | verboselog( 0, "psx_sio_r( %08x, %08x ) %08x\n", offset, mem_mask, data ); |
| 940 | 940 | } |
| 941 | 941 | break; |
| 942 | 942 | case 2: |
| 943 | 943 | data = ( m_p_n_sio_control[ n_port ] << 16 ) | m_p_n_sio_mode[ n_port ]; |
| 944 | if( ACCESSING_ | |
| 944 | if( ACCESSING_BITS_0_15 ) | |
| 945 | 945 | { |
| 946 | 946 | verboselog( 1, "psx_sio_r %d mode %04x\n", n_port, data & 0xffff ); |
| 947 | 947 | } |
| 948 | if( ACCESSING_ | |
| 948 | if( ACCESSING_BITS_16_31 ) | |
| 949 | 949 | { |
| 950 | 950 | verboselog( 1, "psx_sio_r %d control %04x\n", n_port, data >> 16 ); |
| 951 | 951 | } |
| 952 | 952 | break; |
| 953 | 953 | case 3: |
| 954 | 954 | data = m_p_n_sio_baud[ n_port ] << 16; |
| 955 | if( ACCESSING_ | |
| 955 | if( ACCESSING_BITS_0_15 ) | |
| 956 | 956 | { |
| 957 | 957 | verboselog( 0, "psx_sio_r( %08x, %08x ) %08x\n", offset, mem_mask, data ); |
| 958 | 958 | } |
| 959 | if( ACCESSING_ | |
| 959 | if( ACCESSING_BITS_16_31 ) | |
| 960 | 960 | { |
| 961 | 961 | verboselog( 1, "psx_sio_r %d baud %04x\n", n_port, data >> 16 ); |
| 962 | 962 | } |
| r2241 | r2242 | |
|---|---|---|
| 392 | 392 | |
| 393 | 393 | WRITE16_HANDLER( pgm_asic3_w ) |
| 394 | 394 | { |
| 395 | if(ACCESSING_ | |
| 395 | if(ACCESSING_ | |
| 396 | 396 | { |
| 397 | 397 | if(asic3_reg < 3) |
| 398 | 398 | asic3_latch[asic3_reg] = data << 1; |
| r2241 | r2242 | |
| 421 | 421 | |
| 422 | 422 | WRITE16_HANDLER( pgm_asic3_reg_w ) |
| 423 | 423 | { |
| 424 | if(ACCESSING_ | |
| 424 | if(ACCESSING_ | |
| 425 | 425 | asic3_reg = data & 0xff; |
| 426 | 426 | } |
| 427 | 427 |
| r2241 | r2242 | |
|---|---|---|
| 119 | 119 | { |
| 120 | 120 | UINT8 *RAM = memory_region(REGION_SOUND1); |
| 121 | 121 | |
| 122 | if (ACCESSING_ | |
| 122 | if (ACCESSING_ | |
| 123 | 123 | memcpy(&RAM[0x30000], &RAM[0x40000 + (data & 0x0f)*0x10000], 0x10000); |
| 124 | 124 | } |
| 125 | 125 | } |
| r2241 | r2242 | |
|---|---|---|
| 939 | 939 | DRIVER( dkongjrj ) /* (c) 1982 Nintendo */ |
| 940 | 940 | DRIVER( dkngjnrj ) /* (c) 1982 Nintendo */ |
| 941 | 941 | DRIVER( dkongjrb ) /* bootleg */ |
| 942 | DRIVER( jrking ) /* bootleg */ | |
| 942 | 943 | DRIVER( dkongjre ) /* (c) 1982 Nintendo of America */ |
| 943 | 944 | DRIVER( dkong3 ) /* (c) 1983 Nintendo of America */ |
| 944 | 945 | DRIVER( dkong3j ) /* (c) 1983 Nintendo */ |
| r2241 | r2242 | |
| 1081 | 1082 | /* NES-based hacks */ |
| 1082 | 1083 | DRIVER( multigam ) /* 1992 */ |
| 1083 | 1084 | DRIVER( multigmb ) /* 1992 */ |
| 1085 | DRIVER( multigm3 ) /* 19?? */ | |
| 1084 | 1086 | DRIVER( cham24 ) /* 2002 */ |
| 1085 | 1087 | |
| 1086 | 1088 | /* Nintendo Super System Games */ |
| r2241 | r2242 | |
| 1854 | 1856 | DRIVER( undrfire ) /* D67 (c) 1993 Taito Coporation Japan (World) */ |
| 1855 | 1857 | DRIVER( undrfiru ) /* D67 (c) 1993 Taito America Corporation (US) */ |
| 1856 | 1858 | DRIVER( undrfirj ) /* D67 (c) 1993 Taito Coporation (Japan) */ |
| 1859 | DRIVER( cbombers ) | |
| 1857 | 1860 | |
| 1858 | 1861 | /* Taito F2 games */ |
| 1859 | 1862 | DRIVER( finalb ) /* B82 (c) 1988 Taito Corporation Japan (World) */ |
| r2241 | r2242 | |
| 2932 | 2935 | DRIVER( ddrs2kj ) /* 1999 - Dance Dance Revolution Solo 2000 (GC905 VER. JAA) */ |
| 2933 | 2936 | DRIVER( dsfdct ) /* 1999 - Dancing Stage featuring Dreams Come True (GC910 VER. JCA) */ |
| 2934 | 2937 | DRIVER( dsfdcta ) /* 1999 - Dancing Stage featuring Dreams Come True (GC910 VER. JAA) */ |
| 2935 | DRIVER( drmn2m ) /* 1999 - DrumMania 2nd Mix (GE912 VER. JAA) */ | |
| 2938 | DRIVER( drmn2m ) /* 1999 - DrumMania 2nd Mix (GE912 VER. JAB) */ | |
| 2939 | DRIVER( drmn2mpu ) /* 1999 - DrumMania 2nd Mix Session Power Up Kit (GE912 VER. JAB) */ | |
| 2936 | 2940 | DRIVER( dncfrks ) /* 2000 - Dance Freaks (G*874 VER. KAA) */ |
| 2937 | 2941 | DRIVER( dmx ) /* 2000 - Dance Maniax (G*874 VER. JAA) */ |
| 2938 | 2942 | DRIVER( gtrfrk3m ) /* 2000 - Guitar Freaks 3rd Mix (GE949 VER. JAC) */ |
| r2241 | r2242 | |
| 4726 | 4730 | DRIVER( dbz2 ) /* (c) 1994 Banpresto */ |
| 4727 | 4731 | DRIVER( bishi ) /* GX575 (c) 1996 (Japan) */ |
| 4728 | 4732 | DRIVER( sbishi ) /* GX675 (c) 1998 (Japan) */ |
| 4733 | DRIVER( sbishik ) /* GX675 (c) 1998 (Korea) */ | |
| 4729 | 4734 | |
| 4730 | 4735 | /* Konami dual 68000 games */ |
| 4731 | 4736 | DRIVER( overdriv ) /* GX789 (c) 1990 */ |
| r2241 | r2242 | |
| 5277 | 5282 | DRIVER( cyberbt1 ) /* 136073 (c) 1989 */ |
| 5278 | 5283 | |
| 5279 | 5284 | DRIVER( badlands ) /* 136074 (c) 1989 */ |
| 5285 | DRIVER( badlandb ) /* bootleg */ | |
| 5280 | 5286 | DRIVER( klax ) /* 136075 (c) 1989 */ |
| 5281 | 5287 | DRIVER( klax2 ) /* 136075 (c) 1989 */ |
| 5282 | 5288 | DRIVER( klax3 ) /* 136075 (c) 1989 */ |
| r2241 | r2242 | |
| 5469 | 5475 | DRIVER( burningh ) /* 0018 (c) 1991 SNK */ |
| 5470 | 5476 | DRIVER( lbowling ) /* 0019 (c) 1990 SNK */ |
| 5471 | 5477 | DRIVER( gpilots ) /* 0020 (c) 1991 SNK */ |
| 5478 | DRIVER( gpilotsh ) /* 0020 (c) 1991 SNK */ | |
| 5472 | 5479 | DRIVER( joyjoy ) /* 0021 (c) 1990 SNK */ |
| 5473 | 5480 | DRIVER( bjourney ) /* 0022 (c) 1990 Alpha Denshi Co. */ |
| 5474 | 5481 | DRIVER( quizdais ) /* 0023 (c) 1991 SNK */ |
| r2241 | r2242 | |
| 5484 | 5491 | DRIVER( socbrawl ) /* 0031 (c) 1991 SNK */ |
| 5485 | 5492 | DRIVER( socbrala ) /* 0031 (c) 1991 SNK */ |
| 5486 | 5493 | DRIVER( roboarmy ) /* 0032 (c) 1991 SNK */ |
| 5487 | DRIVER( roboarma ) /* 0032 (c) 1991 SNK */ | |
| 5488 | 5494 | DRIVER( fatfury1 ) /* 0033 (c) 1991 SNK */ |
| 5489 | 5495 | DRIVER( fbfrenzy ) /* 0034 (c) 1992 SNK */ |
| 5490 | 5496 | /* 0035 Mystic Wand (prototype) 1991 Alpha */ |
| r2241 | r2242 | |
| 5498 | 5504 | DRIVER( 3countb ) /* 0043 (c) 1993 SNK */ |
| 5499 | 5505 | DRIVER( aof ) /* 0044 (c) 1992 SNK */ |
| 5500 | 5506 | DRIVER( samsho ) /* 0045 (c) 1993 SNK */ |
| 5507 | DRIVER( samshoh ) /* 0045 (c) 1993 SNK */ | |
| 5501 | 5508 | DRIVER( tophuntr ) /* 0046 (c) 1994 SNK */ |
| 5502 | 5509 | DRIVER( tophunta ) /* 0046 (c) 1994 SNK */ |
| 5503 | 5510 | DRIVER( fatfury2 ) /* 0047 (c) 1992 SNK */ |
| r2241 | r2242 | |
| 5565 | 5572 | DRIVER( sonicwi3 ) /* 0097 (c) 1995 Video System Co. */ |
| 5566 | 5573 | /* 0098 Idol Mahjong - final romance 2 (CD only? not confirmed, MVS might exist) */ |
| 5567 | 5574 | /* 0099 Neo Pool Masters */ |
| 5568 | /* 0160 | |
| 5575 | /* 0160 98 | |
| 5569 | 5576 | DRIVER( turfmast ) /* 0200 (c) 1996 Nazca */ |
| 5570 | 5577 | DRIVER( mslug ) /* 0201 (c) 1996 Nazca */ |
| 5571 | 5578 | DRIVER( puzzledp ) /* 0202 (c) 1995 Taito (Visco license) */ |
| r2241 | r2242 | |
| 5792 | 5799 | DRIVER( ddragnw1 ) /* TA-0021 (c) 1987 Taito */ |
| 5793 | 5800 | DRIVER( ddragonb ) /* bootleg */ |
| 5794 | 5801 | DRIVER( ddragnba ) /* bootleg */ |
| 5802 | DRIVER( ddgn6809 ) /* bootleg */ | |
| 5795 | 5803 | DRIVER( spdodgeb ) /* TA-0022 (c) 1987 */ |
| 5796 | 5804 | DRIVER( nkdodge ) /* TA-0022 (c) 1987 (Japan) */ |
| 5797 | 5805 | DRIVER( nkdodgeb ) /* TA-0022 (c) 1987 (Japan) */ |
| r2241 | r2242 | |
| 5910 | 5918 | DRIVER( strahl ) /* UPL-91074 (c) 1992 UPL (Japan) */ |
| 5911 | 5919 | DRIVER( strahla ) /* UPL-91074 (c) 1992 UPL (Japan) */ |
| 5912 | 5920 | DRIVER( bjtwin ) /* UPL-93087 (c) 1993 NMK */ |
| 5921 | DRIVER( bjtwina ) /* UPL-93087 (c) 1993 NMK */ | |
| 5913 | 5922 | DRIVER( tdragon2 ) /* UPL-93091 (c) 1993 NMK */ |
| 5914 | 5923 | DRIVER( tdragn2a ) /* UPL-93091 (c) 1993 NMK */ |
| 5915 | 5924 | DRIVER( bigbang ) /* UPL-93091 (c) 1993 NMK */ |
| r2241 | r2242 | |
| 6031 | 6040 | DRIVER( crusnw23 ) /* (c) 1996 Midway */ |
| 6032 | 6041 | DRIVER( crusnw20 ) /* (c) 1996 Midway */ |
| 6033 | 6042 | DRIVER( crusnw13 ) /* (c) 1996 Midway */ |
| 6034 | DRIVER( offroadc ) /* (c) 1997 Midway */ | |
| 6043 | DRIVER( offroadc ) /* (c) 1997 Midway (v1.40) */ | |
| 6044 | DRIVER( offrodc3 ) /* (c) 1997 Midway (v1.30) */ | |
| 6045 | DRIVER( offrodc1 ) /* (c) 1997 Midway (v1.10) */ | |
| 6035 | 6046 | DRIVER( wargods ) /* (c) 1996 Midway */ |
| 6036 | 6047 | |
| 6037 | 6048 | /* Midway Zeus games */ |
| r2241 | r2242 | |
| 6714 | 6725 | DRIVER( deerhunt ) /* (c) 2000 Sammy USA Corporation */ |
| 6715 | 6726 | DRIVER( deerhuna ) /* (c) 2000 Sammy USA Corporation */ |
| 6716 | 6727 | DRIVER( deerhunb ) /* (c) 2000 Sammy USA Corporation */ |
| 6728 | DRIVER( deerhunc ) /* (c) 2000 Sammy USA Corporation */ | |
| 6717 | 6729 | DRIVER( turkhunt ) /* (c) 2001 Sammy USA Corporation */ |
| 6718 | 6730 | DRIVER( wschamp ) /* (c) 2001 Sammy USA Corporation */ |
| 6719 | 6731 | DRIVER( wschampa ) /* (c) 2001 Sammy USA Corporation */ |
| r2241 | r2242 | |
| 7439 | 7451 | DRIVER( inquiztr ) /* 1989 BFM */ |
| 7440 | 7452 | DRIVER( escounts ) /* 1990 BFM */ |
| 7441 | 7453 | DRIVER( trebltop ) /* 1991 BFM */ |
| 7454 | DRIVER( beeline ) /* 1991 BFM */ | |
| 7442 | 7455 | DRIVER( quizvadr ) /* 1991 BFM */ |
| 7443 | 7456 | DRIVER( qos ) /* 1992 BFM */ |
| 7444 | 7457 | DRIVER( qosa ) /* 1992 BFM */ |
| r2241 | r2242 | |
| 7487 | 7500 | DRIVER( skattva ) /* (c) 1995 */ |
| 7488 | 7501 | DRIVER( fashiong ) /* (c) 1997 */ |
| 7489 | 7502 | |
| 7490 | /* JMP Impact Games */ | |
| 7503 | /* JPM Give us a Break hardware */ | |
| 7504 | DRIVER( guab ) /* (c) 1986 */ | |
| 7505 | DRIVER( guab3 ) /* (c) 1986 */ | |
| 7506 | DRIVER( tenup ) /* (c) 1988 */ | |
| 7507 | DRIVER( tenup3 ) /* (c) 1988 */ | |
| 7508 | ||
| 7509 | /* JPM Impact Games */ | |
| 7491 | 7510 | DRIVER( cluedo ) /* (c) 1995 */ |
| 7492 | 7511 | DRIVER( cluedo2c ) /* (c) 1995 */ |
| 7493 | 7512 | DRIVER( cluedo2 ) /* (c) 1995 */ |
| r2241 | r2242 | |
| 8005 | 8024 | DRIVER( vcombat ) /* (c) 1993 VR8 Inc. */ |
| 8006 | 8025 | DRIVER( shadfgtr ) /* (c) 1989 Sega? */ |
| 8007 | 8026 | |
| 8027 | /* Astro Corp. */ | |
| 8028 | DRIVER( showhand ) | |
| 8029 | ||
| 8008 | 8030 | #endif /* DRIVER_RECURSIVE */ |
| r2241 | r2242 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | Galaxian hardware family | |
| 3 | Galaxian hardware family | |
| 4 | 4 | |
| 5 | This include file is used by the following drivers: | |
| 6 | - galaxian.c | |
| 7 | - scramble.c | |
| 8 | - scobra.c | |
| 9 | - frogger.c | |
| 10 | - amidar.c | |
| 11 | ||
| 12 | 5 | ***************************************************************************/ |
| 13 | 6 | |
| 14 | /*----------- defined in video/galaxian.c -----------*/ | |
| 7 | /* we scale horizontally by 3 to render stars correctly */ | |
| 8 | #define GALAXIAN_XSCALE 3 | |
| 15 | 9 | |
| 16 | extern UINT8 *galaxian_videoram; | |
| 17 | extern UINT8 *galaxian_spriteram; | |
| 18 | extern UINT8 *galaxian_spriteram2; | |
| 19 | extern UINT8 *galaxian_attributesram; | |
| 20 | extern UINT8 *galaxian_bulletsram; | |
| 21 | extern UINT8 *rockclim_videoram; | |
| 22 | extern UINT8 *racknrol_tiles_bank; | |
| 10 | /* master clocks */ | |
| 11 | #define GALAXIAN_MASTER_CLOCK (18432000) | |
| 12 | #define GALAXIAN_PIXEL_CLOCK (GALAXIAN_XSCALE*GALAXIAN_MASTER_CLOCK/3) | |
| 23 | 13 | |
| 14 | /* H counts from 128->511, HBLANK starts at 130 and ends at 250 */ | |
| 15 | /* we normalize this here so that we count 0->383 with HBLANK */ | |
| 16 | /* from 264-383 */ | |
| 17 | #define GALAXIAN_HTOTAL (384*GALAXIAN_XSCALE) | |
| 18 | #define GALAXIAN_HBEND (0*GALAXIAN_XSCALE) | |
| 19 | //#define GALAXIAN_H0START (6*GALAXIAN_XSCALE) | |
| 20 | //#define GALAXIAN_HBSTART (264*GALAXIAN_XSCALE) | |
| 21 | #define GALAXIAN_H0START (0*GALAXIAN_XSCALE) | |
| 22 | #define GALAXIAN_HBSTART (256*GALAXIAN_XSCALE) | |
| 24 | 23 | |
| 25 | extern size_t galaxian_spriteram_size; | |
| 26 | extern size_t galaxian_spriteram2_size; | |
| 27 | extern size_t galaxian_bulletsram_size; | |
| 24 | #define GALAXIAN_VTOTAL (264) | |
| 25 | #define GALAXIAN_VBEND (16) | |
| 26 | #define GALAXIAN_VBSTART (224+16) | |
| 28 | 27 | |
| 28 | ||
| 29 | /*----------- defined in video/galaxian.c -----------*/ | |
| 30 | ||
| 31 | extern UINT8 galaxian_frogger_adjust; | |
| 32 | extern UINT8 galaxian_sfx_tilemap; | |
| 33 | extern UINT8 galaxian_sprite_clip_start; | |
| 34 | extern UINT8 galaxian_sprite_clip_end; | |
| 35 | ||
| 29 | 36 | PALETTE_INIT( galaxian ); |
| 30 | PALETTE_INIT( scramble ); | |
| 31 | PALETTE_INIT( turtles ); | |
| 32 | PALETTE_INIT( moonwar ); | |
| 33 | PALETTE_INIT( darkplnt ); | |
| 34 | PALETTE_INIT( rescue ); | |
| 35 | PALETTE_INIT( minefld ); | |
| 36 | PALETTE_INIT( stratgyx ); | |
| 37 | PALETTE_INIT( mariner ); | |
| 38 | PALETTE_INIT( frogger ); | |
| 39 | PALETTE_INIT( rockclim ); | |
| 40 | 37 | |
| 38 | VIDEO_START( galaxian ); | |
| 39 | VIDEO_UPDATE( galaxian ); | |
| 40 | ||
| 41 | 41 | WRITE8_HANDLER( galaxian_videoram_w ); |
| 42 | RE | |
| 42 | WRITE | |
| 43 | 43 | |
| 44 | WRITE8_HANDLER( rockclim_videoram_w ); | |
| 45 | WRITE8_HANDLER( rockclim_scroll_w ); | |
| 46 | READ8_HANDLER( rockclim_videoram_r ); | |
| 44 | WRITE8_HANDLER( galaxian_flip_screen_x_w ); | |
| 45 | WRITE8_HANDLER( galaxian_flip_screen_y_w ); | |
| 46 | WRITE8_HANDLER( galaxian_flip_screen_xy_w ); | |
| 47 | 47 | |
| 48 | WRITE8_HANDLER( galaxian_attributesram_w ); | |
| 49 | ||
| 50 | 48 | WRITE8_HANDLER( galaxian_stars_enable_w ); |
| 51 | 49 | WRITE8_HANDLER( scramble_background_enable_w ); |
| 52 | 50 | WRITE8_HANDLER( scramble_background_red_w ); |
| 53 | 51 | WRITE8_HANDLER( scramble_background_green_w ); |
| 54 | 52 | WRITE8_HANDLER( scramble_background_blue_w ); |
| 55 | WRITE8_HANDLER( hotshock_flip_screen_w ); | |
| 56 | WRITE8_HANDLER( darkplnt_bullet_color_w ); | |
| 57 | WRITE8_HANDLER( racknrol_tiles_bank_w ); | |
| 58 | 53 | |
| 59 | VIDEO_START( galaxian_plain ); | |
| 60 | VIDEO_START( galaxian ); | |
| 61 | VIDEO_START( gmgalax ); | |
| 62 | VIDEO_START( mooncrst ); | |
| 63 | VIDEO_START( mooncrgx ); | |
| 64 | VIDEO_START( moonqsr ); | |
| 65 | VIDEO_START( mshuttle ); | |
| 66 | VIDEO_START( pisces ); | |
| 67 | VIDEO_START( gteikob2 ); | |
| 68 | VIDEO_START( batman2 ); | |
| 69 | VIDEO_START( jumpbug ); | |
| 70 | VIDEO_START( azurian ); | |
| 71 | VIDEO_START( dkongjrm ); | |
| 72 | VIDEO_START( scramble ); | |
| 73 | VIDEO_START( theend ); | |
| 74 | VIDEO_START( darkplnt ); | |
| 75 | VIDEO_START( rescue ); | |
| 76 | VIDEO_START( minefld ); | |
| 77 | VIDEO_START( calipso ); | |
| 78 | VIDEO_START( stratgyx ); | |
| 79 | VIDEO_START( mimonkey ); | |
| 80 | VIDEO_START( turtles ); | |
| 81 | VIDEO_START( frogger ); | |
| 82 | VIDEO_START( mariner ); | |
| 83 | VIDEO_START( ckongs ); | |
| 84 | VIDEO_START( froggers ); | |
| 85 | VIDEO_START( newsin7 ); | |
| 86 | VIDEO_START( sfx ); | |
| 87 | VIDEO_START( rockclim ); | |
| 88 | VIDEO_START( drivfrcg ); | |
| 89 | VIDEO_START( bongo ); | |
| 90 | VIDEO_START( scorpion ); | |
| 91 | VIDEO_START( racknrol ); | |
| 92 | VIDEO_START( ad2083 ); | |
| 93 | ||
| 94 | VIDEO_UPDATE( galaxian ); | |
| 95 | ||
| 96 | 54 | WRITE8_HANDLER( galaxian_gfxbank_w ); |
| 97 | WRITE8_HANDLER( galaxian_flip_screen_x_w ); | |
| 98 | WRITE8_HANDLER( galaxian_flip_screen_y_w ); | |
| 99 | WRITE8_HANDLER( gteikob2_flip_screen_x_w ); | |
| 100 | WRITE8_HANDLER( gteikob2_flip_screen_y_w ); | |
| 101 | 55 | |
| 56 | TIMER_CALLBACK( galaxian_stars_blink_timer ); | |
| 102 | 57 | |
| 103 | /*----------- defined in machine/galaxian.c -----------*/ | |
| 58 | /* video extension callbacks */ | |
| 59 | typedef void (*galaxian_extend_tile_info_func)(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); | |
| 60 | typedef void (*galaxian_extend_sprite_info_func)(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); | |
| 61 | typedef void (*galaxian_draw_bullet_func)(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int offs, int x, int y); | |
| 62 | typedef void (*galaxian_draw_background_func)(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 104 | 63 | |
| 105 | DRIVER_INIT( zigzag ); | |
| 106 | DRIVER_INIT( pisces ); | |
| 107 | DRIVER_INIT( checkmaj ); | |
| 108 | DRIVER_INIT( dingo ); | |
| 109 | DRIVER_INIT( dingoe ); | |
| 110 | DRIVER_INIT( kingball ); | |
| 111 | DRIVER_INIT( mooncrsu ); | |
| 112 | DRIVER_INIT( mooncrst ); | |
| 113 | DRIVER_INIT( mooncrgx ); | |
| 114 | DRIVER_INIT( moonqsr ); | |
| 115 | DRIVER_INIT( checkman ); | |
| 116 | DRIVER_INIT( gteikob2 ); | |
| 117 | DRIVER_INIT( azurian ); | |
| 118 | DRIVER_INIT( 4in1 ); | |
| 119 | DRIVER_INIT( ladybugg ); | |
| 120 | DRIVER_INIT( gmgalax ); | |
| 64 | extern galaxian_extend_tile_info_func galaxian_extend_tile_info_ptr; | |
| 65 | extern galaxian_extend_sprite_info_func galaxian_extend_sprite_info_ptr; | |
| 66 | extern galaxian_draw_bullet_func galaxian_draw_bullet_ptr; | |
| 67 | extern galaxian_draw_background_func galaxian_draw_background_ptr; | |
| 121 | 68 | |
| 122 | WRITE8_HANDLER( galaxian_nmi_enable_w ); | |
| 69 | /* special purpose background rendering */ | |
| 70 | void galaxian_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 71 | void frogger_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 72 | void amidar_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 73 | void turtles_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 74 | void scramble_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 75 | void jumpbug_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 123 | 76 | |
| 124 | MACHINE_RESET( galaxian ); | |
| 125 | MACHINE_RESET( devilfsg ); | |
| 77 | /* special purpose bullet rendering */ | |
| 78 | void galaxian_draw_bullet(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int offs, int x, int y); | |
| 79 | void mshuttle_draw_bullet(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int offs, int x, int y); | |
| 80 | void scramble_draw_bullet(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int offs, int x, int y); | |
| 81 | void theend_draw_bullet(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int offs, int x, int y); | |
| 126 | 82 | |
| 127 | WRITE8_HANDLER( galaxian_coin_lockout_w ); | |
| 128 | WRITE8_HANDLER( galaxian_coin_counter_w ); | |
| 129 | #define galaxian_coin_counter_0_w galaxian_coin_counter_w | |
| 130 | WRITE8_HANDLER( galaxian_coin_counter_1_w ); | |
| 131 | WRITE8_HANDLER( galaxian_coin_counter_2_w ); | |
| 132 | WRITE8_HANDLER( galaxian_leds_w ); | |
| 83 | /* generic extensions */ | |
| 84 | void upper_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); | |
| 85 | void upper_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); | |
| 133 | 86 | |
| 134 | READ8_HANDLER( scramblb_protection_1_r ); | |
| 135 | READ8_HANDLER( scramblb_protection_2_r ); | |
| 87 | /* Frogger extensions */ | |
| 88 | void frogger_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); | |
| 89 | void frogger_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); | |
| 136 | 90 | |
| 137 | READ8_HANDLER( jumpbug_protection_r ); | |
| 91 | /* Ghostmuncher Galaxian extensions */ | |
| 92 | void gmgalax_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); | |
| 93 | void gmgalax_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); | |
| 138 | 94 | |
| 139 | WRITE8_HANDLER( kingball_speech_dip_w ); | |
| 140 | WRITE8_HANDLER( kingball_sound1_w ); | |
| 141 | WRITE8_HANDLER( kingball_sound2_w ); | |
| 95 | /* Pisces extensions */ | |
| 96 | void pisces_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); | |
| 97 | void pisces_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); | |
| 142 | 98 | |
| 143 | WRITE8_HANDLER( _4in1_bank_w ); | |
| 144 | READ8_HANDLER( _4in1_input_port_1_r ); | |
| 145 | READ8_HANDLER( _4in1_input_port_2_r ); | |
| 99 | /* Batman Part 2 extensions */ | |
| 100 | void batman2_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); | |
| 101 | void batman2_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); | |
| 146 | 102 | |
| 147 | WRITE8_HANDLER( zigzag_sillyprotection_w ); | |
| 103 | /* Moon Cresta extensions */ | |
| 104 | void mooncrst_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); | |
| 105 | void mooncrst_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); | |
| 148 | 106 | |
| 149 | INTERRUPT_GEN( hunchbks_vh_interrupt ); | |
| 150 | INTERRUPT_GEN( gmgalax_vh_interrupt ); | |
| 107 | /* Moon Quasar extensions */ | |
| 108 | void moonqsr_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); | |
| 109 | void moonqsr_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); | |
| 151 | 110 | |
| 152 | READ8_HANDLER( gmgalax_input_port_0_r ); | |
| 153 | READ8_HANDLER( gmgalax_input_port_1_r ); | |
| 154 | READ8_HANDLER( gmgalax_input_port_2_r ); | |
| 111 | /* Moon Shuttle extensions */ | |
| 112 | void mshuttle_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); | |
| 113 | void mshuttle_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); | |
| 155 | 114 | |
| 115 | /* Jumpbug extensions */ | |
| 116 | void jumpbug_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x); | |
| 117 | void jumpbug_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color); | |
| 156 | 118 | |
| 157 | /*----------- defined in machine/scramble.c -----------*/ | |
| 158 | 119 | |
| 159 | DRIVER_INIT( scramble_ppi ); | |
| 160 | DRIVER_INIT( amidar ); | |
| 161 | DRIVER_INIT( frogger ); | |
| 162 | DRIVER_INIT( froggers ); | |
| 163 | DRIVER_INIT( scobra ); | |
| 164 | DRIVER_INIT( stratgyx ); | |
| 165 | DRIVER_INIT( moonwar ); | |
| 166 | DRIVER_INIT( darkplnt ); | |
| 167 | DRIVER_INIT( tazmani2 ); | |
| 168 | DRIVER_INIT( anteater ); | |
| 169 | DRIVER_INIT( rescue ); | |
| 170 | DRIVER_INIT( minefld ); | |
| 171 | DRIVER_INIT( losttomb ); | |
| 172 | DRIVER_INIT( superbon ); | |
| 173 | DRIVER_INIT( hustler ); | |
| 174 | DRIVER_INIT( billiard ); | |
| 175 | DRIVER_INIT( mimonkey ); | |
| 176 | DRIVER_INIT( mimonsco ); | |
| 177 | DRIVER_INIT( atlantis ); | |
| 178 | DRIVER_INIT( scramble ); | |
| 179 | DRIVER_INIT( scrambls ); | |
| 180 | DRIVER_INIT( theend ); | |
| 181 | DRIVER_INIT( ckongs ); | |
| 182 | DRIVER_INIT( mariner ); | |
| 183 | DRIVER_INIT( mars ); | |
| 184 | DRIVER_INIT( devilfsh ); | |
| 185 | DRIVER_INIT( hotshock ); | |
| 186 | DRIVER_INIT( cavelon ); | |
| 187 | DRIVER_INIT( mrkougar ); | |
| 188 | DRIVER_INIT( mrkougb ); | |
| 189 | DRIVER_INIT( mimonscr ); | |
| 190 | DRIVER_INIT( sfx ); | |
| 191 | DRIVER_INIT( monsterz ); | |
| 192 | DRIVER_INIT( scorpion ); | |
| 193 | DRIVER_INIT( ad2083 ); | |
| 194 | 120 | |
| 195 | MACHINE_RESET( scramble ); | |
| 196 | MACHINE_RESET( sfx ); | |
| 197 | MACHINE_RESET( monsterz ); | |
| 198 | MACHINE_RESET( explorer ); | |
| 199 | ||
| 200 | READ8_HANDLER( triplep_pip_r ); | |
| 201 | READ8_HANDLER( triplep_pap_r ); | |
| 202 | ||
| 203 | READ8_HANDLER( hunchbks_mirror_r ); | |
| 204 | WRITE8_HANDLER( hunchbks_mirror_w ); | |
| 205 | ||
| 206 | ||
| 207 | ||
| 208 | 121 | /*----------- defined in audio/galaxian.c -----------*/ |
| 209 | 122 | |
| 210 | extern const struct Samplesinterface galaxian_samples_interface; | |
| 123 | extern const struct Samplesinterface galaxian_custom_interface; | |
| 124 | WRITE8_HANDLER( galaxian_sound_w ); | |
| 211 | 125 | WRITE8_HANDLER( galaxian_pitch_w ); |
| 212 | 126 | WRITE8_HANDLER( galaxian_vol_w ); |
| 213 | 127 | WRITE8_HANDLER( galaxian_noise_enable_w ); |
| 214 | 128 | WRITE8_HANDLER( galaxian_background_enable_w ); |
| 215 | 129 | WRITE8_HANDLER( galaxian_shoot_enable_w ); |
| 216 | 130 | WRITE8_HANDLER( galaxian_lfo_freq_w ); |
| 217 | ||
| 218 | ||
| 219 | /*----------- defined in audio/scramble.c -----------*/ | |
| 220 | ||
| 221 | void scramble_sh_init(void); | |
| 222 | void sfx_sh_init(void); | |
| 223 | ||
| 224 | WRITE8_HANDLER( scramble_filter_w ); | |
| 225 | WRITE8_HANDLER( frogger_filter_w ); | |
| 226 | ||
| 227 | READ8_HANDLER( scramble_portB_r ); | |
| 228 | READ8_HANDLER( frogger_portB_r ); | |
| 229 | ||
| 230 | READ8_HANDLER( hotshock_soundlatch_r ); | |
| 231 | ||
| 232 | WRITE8_HANDLER( scramble_sh_irqtrigger_w ); | |
| 233 | WRITE8_HANDLER( sfx_sh_irqtrigger_w ); | |
| 234 | WRITE8_HANDLER( mrkougar_sh_irqtrigger_w ); | |
| 235 | WRITE8_HANDLER( froggrmc_sh_irqtrigger_w ); | |
| 236 | WRITE8_HANDLER( hotshock_sh_irqtrigger_w ); | |
| 237 | ||
| 238 | MACHINE_DRIVER_EXTERN( ad2083_audio ); | |
| 239 |
| r0 | r2242 | |
|---|---|---|
| 1 | #ifndef __CIDELSA__ | |
| 2 | #define __CIDELSA__ | |
| 3 | ||
| 4 | #include "video/cdp1869.h" | |
| 5 | ||
| 6 | #define DESTRYER_CHR1 3579000.0 // unverified | |
| 7 | #define DESTRYER_CHR2 XTAL_5_7143MHz | |
| 8 | #define ALTAIR_CHR1 3579000.0 // unverified | |
| 9 | #define ALTAIR_CHR2 CDP1869_DOT_CLK_PAL // unverified | |
| 10 | #define DRACO_CHR1 XTAL_4_43361MHz | |
| 11 | #define DRACO_CHR2 CDP1869_DOT_CLK_PAL // unverified | |
| 12 | #define DRACO_SND_CHR1 XTAL_2_01216MHz | |
| 13 | ||
| 14 | typedef struct _cidelsa_state cidelsa_state; | |
| 15 | ||
| 16 | struct _cidelsa_state | |
| 17 | { | |
| 18 | int cdp1802_mode; | |
| 19 | int cdp1802_q; | |
| 20 | ||
| 21 | int cdp1869_prd; | |
| 22 | int cdp1869_pcb; | |
| 23 | ||
| 24 | int draco_sound; | |
| 25 | int draco_ay_latch; | |
| 26 | ||
| 27 | UINT8 *pageram; | |
| 28 | UINT8 *pcbram; | |
| 29 | UINT8 *charram; | |
| 30 | }; | |
| 31 | ||
| 32 | /*----------- defined in video/cidelsa.c -----------*/ | |
| 33 | ||
| 34 | MACHINE_DRIVER_EXTERN( destryer_video ); | |
| 35 | MACHINE_DRIVER_EXTERN( altair_video ); | |
| 36 | MACHINE_DRIVER_EXTERN( draco_video ); | |
| 37 | ||
| 38 | #endif |
| r2241 | r2242 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | /*----------- defined in machine/vertigo.c -----------*/ |
| 8 | 8 | |
| 9 | extern const struct pit8253_config vertigo_pit8254_config; | |
| 10 | ||
| 9 | 11 | READ16_HANDLER( vertigo_io_convert ); |
| 10 | 12 | READ16_HANDLER( vertigo_io_adc ); |
| 11 | 13 | READ16_HANDLER( vertigo_coin_r ); |
| r2241 | r2242 | |
|---|---|---|
| 53 | 53 | MACHINE_START( buggyboy ); |
| 54 | 54 | |
| 55 | 55 | /*----------- defined in audio/tx1.c -----------*/ |
| 56 | READ8_HANDLER( pit8253_r ); | |
| 57 | WRITE8_HANDLER( pit8253_w ); | |
| 56 | READ8_HANDLER( tx1_pit8253_r ); | |
| 57 | WRITE8_HANDLER( tx1_pit8253_w ); | |
| 58 | 58 | |
| 59 | 59 | WRITE8_HANDLER( bb_ym1_a_w ); |
| 60 | 60 | WRITE8_HANDLER( bb_ym1_b_w ); |
| r2241 | r2242 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | DRIVER_INIT( cclimber ); |
| 4 | 4 | DRIVER_INIT( cclimbrj ); |
| 5 | DRIVER_INIT( mshuttle ); | |
| 5 | void cclimbrj_decode(void); | |
| 6 | void mshuttle_decode(void); | |
| 6 | 7 | DRIVER_INIT( cannonb ); |
| 7 | 8 | DRIVER_INIT( cannonb2 ); |
| 8 | 9 | DRIVER_INIT( ckongb ); |
| r0 | r2242 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Galaxian hardware family | |
| 4 | ||
| 5 | This include file is used by the following drivers: | |
| 6 | - galaxian.c | |
| 7 | - scramble.c | |
| 8 | - scobra.c | |
| 9 | - frogger.c | |
| 10 | - amidar.c | |
| 11 | ||
| 12 | ***************************************************************************/ | |
| 13 | ||
| 14 | /*----------- defined in video/galaxian.c -----------*/ | |
| 15 | ||
| 16 | extern UINT8 *galaxold_videoram; | |
| 17 | extern UINT8 *galaxold_spriteram; | |
| 18 | extern UINT8 *galaxold_spriteram2; | |
| 19 | extern UINT8 *galaxold_attributesram; | |
| 20 | extern UINT8 *galaxold_bulletsram; | |
| 21 | extern UINT8 *rockclim_videoram; | |
| 22 | extern UINT8 *racknrol_tiles_bank; | |
| 23 | ||
| 24 | ||
| 25 | extern size_t galaxold_spriteram_size; | |
| 26 | extern size_t galaxold_spriteram2_size; | |
| 27 | extern size_t galaxold_bulletsram_size; | |
| 28 | ||
| 29 | PALETTE_INIT( galaxold ); | |
| 30 | PALETTE_INIT( scrambold ); | |
| 31 | PALETTE_INIT( moonwar ); | |
| 32 | PALETTE_INIT( darkplnt ); | |
| 33 | PALETTE_INIT( rescue ); | |
| 34 | PALETTE_INIT( minefld ); | |
| 35 | PALETTE_INIT( stratgyx ); | |
| 36 | PALETTE_INIT( mariner ); | |
| 37 | PALETTE_INIT( rockclim ); | |
| 38 | PALETTE_INIT( turtles ); | |
| 39 | ||
| 40 | WRITE8_HANDLER( galaxold_videoram_w ); | |
| 41 | READ8_HANDLER( galaxold_videoram_r ); | |
| 42 | ||
| 43 | WRITE8_HANDLER( rockclim_videoram_w ); | |
| 44 | WRITE8_HANDLER( rockclim_scroll_w ); | |
| 45 | READ8_HANDLER( rockclim_videoram_r ); | |
| 46 | ||
| 47 | WRITE8_HANDLER( galaxold_attributesram_w ); | |
| 48 | ||
| 49 | WRITE8_HANDLER( galaxold_stars_enable_w ); | |
| 50 | WRITE8_HANDLER( scrambold_background_enable_w ); | |
| 51 | WRITE8_HANDLER( scrambold_background_red_w ); | |
| 52 | WRITE8_HANDLER( scrambold_background_green_w ); | |
| 53 | WRITE8_HANDLER( scrambold_background_blue_w ); | |
| 54 | WRITE8_HANDLER( hotshock_flip_screen_w ); | |
| 55 | WRITE8_HANDLER( darkplnt_bullet_color_w ); | |
| 56 | WRITE8_HANDLER( racknrol_tiles_bank_w ); | |
| 57 | ||
| 58 | VIDEO_START( galaxold_plain ); | |
| 59 | VIDEO_START( galaxold ); | |
| 60 | VIDEO_START( mooncrst ); | |
| 61 | VIDEO_START( mooncrgx ); | |
| 62 | VIDEO_START( moonqsr ); | |
| 63 | VIDEO_START( mshuttle ); | |
| 64 | VIDEO_START( pisces ); | |
| 65 | VIDEO_START( batman2 ); | |
| 66 | VIDEO_START( jumpbug ); | |
| 67 | VIDEO_START( azurian ); | |
| 68 | VIDEO_START( dkongjrm ); | |
| 69 | VIDEO_START( scrambold ); | |
| 70 | VIDEO_START( theend ); | |
| 71 | VIDEO_START( darkplnt ); | |
| 72 | VIDEO_START( rescue ); | |
| 73 | VIDEO_START( minefld ); | |
| 74 | VIDEO_START( calipso ); | |
| 75 | VIDEO_START( stratgyx ); | |
| 76 | VIDEO_START( mimonkey ); | |
| 77 | VIDEO_START( turtles ); | |
| 78 | VIDEO_START( frogger ); | |
| 79 | VIDEO_START( mariner ); | |
| 80 | VIDEO_START( ckongs ); | |
| 81 | VIDEO_START( froggers ); | |
| 82 | VIDEO_START( newsin7 ); | |
| 83 | VIDEO_START( sfx ); | |
| 84 | VIDEO_START( rockclim ); | |
| 85 | VIDEO_START( drivfrcg ); | |
| 86 | VIDEO_START( bongo ); | |
| 87 | VIDEO_START( scorpion ); | |
| 88 | VIDEO_START( racknrol ); | |
| 89 | VIDEO_START( ad2083 ); | |
| 90 | ||
| 91 | VIDEO_UPDATE( galaxold ); | |
| 92 | ||
| 93 | WRITE8_HANDLER( galaxold_gfxbank_w ); | |
| 94 | WRITE8_HANDLER( galaxold_flip_screen_x_w ); | |
| 95 | WRITE8_HANDLER( galaxold_flip_screen_y_w ); | |
| 96 | WRITE8_HANDLER( gteikob2_flip_screen_x_w ); | |
| 97 | WRITE8_HANDLER( gteikob2_flip_screen_y_w ); | |
| 98 | ||
| 99 | ||
| 100 | /*----------- defined in machine/galaxian.c -----------*/ | |
| 101 | ||
| 102 | DRIVER_INIT( zigzag ); | |
| 103 | DRIVER_INIT( pisces ); | |
| 104 | DRIVER_INIT( checkmaj ); | |
| 105 | DRIVER_INIT( dingo ); | |
| 106 | DRIVER_INIT( dingoe ); | |
| 107 | DRIVER_INIT( kingball ); | |
| 108 | DRIVER_INIT( mooncrsu ); | |
| 109 | DRIVER_INIT( mooncrst ); | |
| 110 | DRIVER_INIT( mooncrgx ); | |
| 111 | DRIVER_INIT( moonqsr ); | |
| 112 | DRIVER_INIT( checkman ); | |
| 113 | DRIVER_INIT( azurian ); | |
| 114 | DRIVER_INIT( 4in1 ); | |
| 115 | DRIVER_INIT( ladybugg ); | |
| 116 | DRIVER_INIT( gmgalax ); | |
| 117 | ||
| 118 | WRITE8_HANDLER( galaxold_nmi_enable_w ); | |
| 119 | ||
| 120 | MACHINE_RESET( galaxold ); | |
| 121 | MACHINE_RESET( devilfsg ); | |
| 122 | ||
| 123 | WRITE8_HANDLER( galaxold_coin_lockout_w ); | |
| 124 | WRITE8_HANDLER( galaxold_coin_counter_w ); | |
| 125 | #define galaxold_coin_counter_0_w galaxold_coin_counter_w | |
| 126 | WRITE8_HANDLER( galaxold_coin_counter_1_w ); | |
| 127 | WRITE8_HANDLER( galaxold_coin_counter_2_w ); | |
| 128 | WRITE8_HANDLER( galaxold_leds_w ); | |
| 129 | ||
| 130 | READ8_HANDLER( scramblb_protection_1_r ); | |
| 131 | READ8_HANDLER( scramblb_protection_2_r ); | |
| 132 | ||
| 133 | READ8_HANDLER( jumpbug_protection_r ); | |
| 134 | ||
| 135 | WRITE8_HANDLER( kingball_speech_dip_w ); | |
| 136 | WRITE8_HANDLER( kingball_sound1_w ); | |
| 137 | WRITE8_HANDLER( kingball_sound2_w ); | |
| 138 | ||
| 139 | WRITE8_HANDLER( _4in1_bank_w ); | |
| 140 | READ8_HANDLER( _4in1_input_port_1_r ); | |
| 141 | READ8_HANDLER( _4in1_input_port_2_r ); | |
| 142 | ||
| 143 | WRITE8_HANDLER( zigzag_sillyprotection_w ); | |
| 144 | ||
| 145 | INTERRUPT_GEN( hunchbks_vh_interrupt ); | |
| 146 | INTERRUPT_GEN( gmgalax_vh_interrupt ); | |
| 147 | ||
| 148 | READ8_HANDLER( gmgalax_input_port_0_r ); | |
| 149 | READ8_HANDLER( gmgalax_input_port_1_r ); | |
| 150 | READ8_HANDLER( gmgalax_input_port_2_r ); | |
| 151 | ||
| 152 | ||
| 153 | /*----------- defined in machine/scramble.c -----------*/ | |
| 154 | ||
| 155 | DRIVER_INIT( scramble_ppi ); | |
| 156 | DRIVER_INIT( amidar ); | |
| 157 | DRIVER_INIT( frogger ); | |
| 158 | DRIVER_INIT( froggers ); | |
| 159 | DRIVER_INIT( scobra ); | |
| 160 | DRIVER_INIT( stratgyx ); | |
| 161 | DRIVER_INIT( moonwar ); | |
| 162 | DRIVER_INIT( darkplnt ); | |
| 163 | DRIVER_INIT( tazmani2 ); | |
| 164 | DRIVER_INIT( anteater ); | |
| 165 | DRIVER_INIT( rescue ); | |
| 166 | DRIVER_INIT( minefld ); | |
| 167 | DRIVER_INIT( losttomb ); | |
| 168 | DRIVER_INIT( superbon ); | |
| 169 | DRIVER_INIT( hustler ); | |
| 170 | DRIVER_INIT( billiard ); | |
| 171 | DRIVER_INIT( mimonkey ); | |
| 172 | DRIVER_INIT( mimonsco ); | |
| 173 | DRIVER_INIT( atlantis ); | |
| 174 | DRIVER_INIT( scramble ); | |
| 175 | DRIVER_INIT( scrambls ); | |
| 176 | DRIVER_INIT( theend ); | |
| 177 | DRIVER_INIT( ckongs ); | |
| 178 | DRIVER_INIT( mariner ); | |
| 179 | DRIVER_INIT( mars ); | |
| 180 | DRIVER_INIT( devilfsh ); | |
| 181 | DRIVER_INIT( hotshock ); | |
| 182 | DRIVER_INIT( cavelon ); | |
| 183 | DRIVER_INIT( mrkougar ); | |
| 184 | DRIVER_INIT( mrkougb ); | |
| 185 | DRIVER_INIT( mimonscr ); | |
| 186 | DRIVER_INIT( sfx ); | |
| 187 | DRIVER_INIT( monsterz ); | |
| 188 | DRIVER_INIT( scorpion ); | |
| 189 | DRIVER_INIT( ad2083 ); | |
| 190 | ||
| 191 | MACHINE_RESET( scramble ); | |
| 192 | MACHINE_RESET( sfx ); | |
| 193 | MACHINE_RESET( monsterz ); | |
| 194 | MACHINE_RESET( explorer ); | |
| 195 | ||
| 196 | READ8_HANDLER( triplep_pip_r ); | |
| 197 | READ8_HANDLER( triplep_pap_r ); | |
| 198 | ||
| 199 | READ8_HANDLER( hunchbks_mirror_r ); | |
| 200 | WRITE8_HANDLER( hunchbks_mirror_w ); | |
| 201 | ||
| 202 | ||
| 203 | ||
| 204 | /*----------- defined in audio/galaxian.c -----------*/ | |
| 205 | ||
| 206 | extern const struct Samplesinterface galaxian_samples_interface; | |
| 207 | WRITE8_HANDLER( galaxian_pitch_w ); | |
| 208 | WRITE8_HANDLER( galaxian_vol_w ); | |
| 209 | WRITE8_HANDLER( galaxian_noise_enable_w ); | |
| 210 | WRITE8_HANDLER( galaxian_background_enable_w ); | |
| 211 | WRITE8_HANDLER( galaxian_shoot_enable_w ); | |
| 212 | WRITE8_HANDLER( galaxian_lfo_freq_w ); | |
| 213 | ||
| 214 | ||
| 215 | /*----------- defined in audio/scramble.c -----------*/ | |
| 216 | ||
| 217 | void scramble_sh_init(void); | |
| 218 | void sfx_sh_init(void); | |
| 219 | ||
| 220 | WRITE8_HANDLER( scramble_filter_w ); | |
| 221 | WRITE8_HANDLER( frogger_filter_w ); | |
| 222 | ||
| 223 | READ8_HANDLER( scramble_portB_r ); | |
| 224 | READ8_HANDLER( frogger_portB_r ); | |
| 225 | ||
| 226 | READ8_HANDLER( hotshock_soundlatch_r ); | |
| 227 | ||
| 228 | WRITE8_HANDLER( scramble_sh_irqtrigger_w ); | |
| 229 | WRITE8_HANDLER( sfx_sh_irqtrigger_w ); | |
| 230 | WRITE8_HANDLER( mrkougar_sh_irqtrigger_w ); | |
| 231 | WRITE8_HANDLER( froggrmc_sh_irqtrigger_w ); | |
| 232 | WRITE8_HANDLER( hotshock_sh_irqtrigger_w ); | |
| 233 | ||
| 234 | MACHINE_DRIVER_EXTERN( ad2083_audio ); | |
| 235 |
| r2241 | r2242 | |
|---|---|---|
| 345 | 345 | $(MAMEOBJ)/irem.a \ |
| 346 | 346 | $(MAMEOBJ)/itech.a \ |
| 347 | 347 | $(MAMEOBJ)/jaleco.a \ |
| 348 | $(MAMEOBJ)/jpm.a \ | |
| 348 | 349 | $(MAMEOBJ)/kaneko.a \ |
| 349 | 350 | $(MAMEOBJ)/konami.a \ |
| 350 | 351 | $(MAMEOBJ)/meadows.a \ |
| r2241 | r2242 | |
| 802 | 803 | $(DRIVERS)/stepstag.o \ |
| 803 | 804 | $(DRIVERS)/tetrisp2.o $(VIDEO)/tetrisp2.o \ |
| 804 | 805 | |
| 806 | $(MAMEOBJ)/jpm.a: \ | |
| 807 | $(DRIVERS)/guab.o \ | |
| 808 | $(DRIVERS)/jpmimpct.o $(VIDEO)/jpmimpct.o \ | |
| 809 | ||
| 805 | 810 | $(MAMEOBJ)/kaneko.a: \ |
| 806 | 811 | $(DRIVERS)/airbustr.o $(VIDEO)/airbustr.o \ |
| 807 | 812 | $(DRIVERS)/djboy.o $(VIDEO)/djboy.o \ |
| r2241 | r2242 | |
| 818 | 823 | $(DRIVERS)/88games.o $(VIDEO)/88games.o \ |
| 819 | 824 | $(DRIVERS)/ajax.o $(MACHINE)/ajax.o $(VIDEO)/ajax.o \ |
| 820 | 825 | $(DRIVERS)/aliens.o $(VIDEO)/aliens.o \ |
| 821 | $(DRIVERS)/amidar.o \ | |
| 822 | 826 | $(DRIVERS)/asterix.o $(VIDEO)/asterix.o \ |
| 823 | 827 | $(DRIVERS)/battlnts.o $(VIDEO)/battlnts.o \ |
| 824 | 828 | $(DRIVERS)/bishi.o $(VIDEO)/bishi.o \ |
| r2241 | r2242 | |
| 838 | 842 | $(DRIVERS)/finalizr.o $(VIDEO)/finalizr.o \ |
| 839 | 843 | $(DRIVERS)/firebeat.o \ |
| 840 | 844 | $(DRIVERS)/flkatck.o $(VIDEO)/flkatck.o \ |
| 841 | $(DRIVERS)/frogger.o \ | |
| 842 | 845 | $(DRIVERS)/gberet.o $(VIDEO)/gberet.o \ |
| 843 | 846 | $(DRIVERS)/gbusters.o $(VIDEO)/gbusters.o \ |
| 844 | 847 | $(DRIVERS)/gijoe.o $(VIDEO)/gijoe.o \ |
| r2241 | r2242 | |
| 961 | 964 | $(DRIVERS)/baraduke.o $(VIDEO)/baraduke.o \ |
| 962 | 965 | $(DRIVERS)/dambustr.o \ |
| 963 | 966 | $(DRIVERS)/galaga.o $(AUDIO)/galaga.o $(VIDEO)/galaga.o \ |
| 964 | $(DRIVERS)/galaxian.o $(MACHINE)/galaxian.o $(AUDIO)/galaxian.o $(VIDEO)/galaxian.o \ | |
| 967 | $(DRIVERS)/galaxian.o $(AUDIO)/galaxian.o $(VIDEO)/galaxian.o \ | |
| 968 | $(DRIVERS)/galaxold.o $(MACHINE)/galaxold.o $(VIDEO)/galaxold.o \ | |
| 965 | 969 | $(DRIVERS)/gaplus.o $(MACHINE)/gaplus.o $(VIDEO)/gaplus.o \ |
| 966 | 970 | $(DRIVERS)/mappy.o $(VIDEO)/mappy.o \ |
| 967 | 971 | $(DRIVERS)/namcofl.o $(VIDEO)/namcofl.o \ |
| r2241 | r2242 | |
| 1502 | 1506 | $(DRIVERS)/ampoker2.o $(VIDEO)/ampoker2.o \ |
| 1503 | 1507 | $(DRIVERS)/amspdwy.o $(VIDEO)/amspdwy.o \ |
| 1504 | 1508 | $(DRIVERS)/artmagic.o $(VIDEO)/artmagic.o \ |
| 1509 | $(DRIVERS)/astrocorp.o \ | |
| 1505 | 1510 | $(DRIVERS)/attckufo.o $(AUDIO)/attckufo.o $(VIDEO)/attckufo.o \ |
| 1506 | 1511 | $(DRIVERS)/aztarac.o $(AUDIO)/aztarac.o $(VIDEO)/aztarac.o \ |
| 1507 | 1512 | $(DRIVERS)/beaminv.o \ |
| r2241 | r2242 | |
| 1510 | 1515 | $(DRIVERS)/carrera.o \ |
| 1511 | 1516 | $(DRIVERS)/cave.o $(VIDEO)/cave.o \ |
| 1512 | 1517 | $(DRIVERS)/cherrym.o \ |
| 1513 | $(DRIVERS)/cidelsa.o \ | |
| 1518 | $(DRIVERS)/cidelsa.o $(VIDEO)/cidelsa.o \ | |
| 1514 | 1519 | $(DRIVERS)/coinmstr.o \ |
| 1515 | 1520 | $(DRIVERS)/comebaby.o \ |
| 1516 | 1521 | $(DRIVERS)/coolpool.o \ |
| r2241 | r2242 | |
| 1553 | 1558 | $(DRIVERS)/istellar.o \ |
| 1554 | 1559 | $(DRIVERS)/jackpool.o \ |
| 1555 | 1560 | $(DRIVERS)/jongkyo.o \ |
| 1556 | $(DRIVERS)/jpmimpct.o $(VIDEO)/jpmimpct.o \ | |
| 1557 | 1561 | $(DRIVERS)/kingpin.o \ |
| 1558 | 1562 | $(DRIVERS)/koikoi.o \ |
| 1559 | 1563 | $(DRIVERS)/kyugo.o $(VIDEO)/kyugo.o \ |
| r2241 | r2242 | |
| 1664 | 1668 | |
| 1665 | 1669 | $(DRIVERS)/cardline.o: $(LAYOUT)/cardline.lh |
| 1666 | 1670 | |
| 1667 | $(DRIVERS)/cinemat.o: $(LAYOUT)/solarq.lh \ | |
| 1671 | $(DRIVERS)/cinemat.o: $(LAYOUT)/armora.lh \ | |
| 1672 | $(LAYOUT)/solarq.lh \ | |
| 1668 | 1673 | $(LAYOUT)/starcas.lh |
| 1669 | 1674 | |
| 1670 | 1675 | $(DRIVERS)/circus.o: $(LAYOUT)/circus.lh \ |
| r2241 | r2242 | |
| 1740 | 1745 | # misc dependencies |
| 1741 | 1746 | #------------------------------------------------- |
| 1742 | 1747 | |
| 1748 | $(DRIVERS)/galaxian.o: $(MAMESRC)/drivers/galdrvr.c | |
| 1749 | $(DRIVERS)/mpu4.o: $(MAMESRC)/drivers/mpu4drvr.c | |
| 1743 | 1750 | $(DRIVERS)/neogeo.o: $(MAMESRC)/drivers/neodrvr.c |
| 1744 | $(DRIVERS)/mpu4.o: $(MAMESRC)/drivers/mpu4drvr.c |
| r2241 | r2242 | |
|---|---|---|
| 93 | 93 | { |
| 94 | 94 | static int old_back,old_fore; |
| 95 | 95 | |
| 96 | if (ACCESSING_ | |
| 96 | if (ACCESSING_ | |
| 97 | 97 | { |
| 98 | 98 | if (data&0x01) back_bankbase=0x1000; else back_bankbase=0; |
| 99 | 99 | if (data&0x10) fore_bankbase=0x1000; else fore_bankbase=0; |
| r2241 | r2242 | |
| 112 | 112 | WRITE16_HANDLER( dynduke_control_w ) |
| 113 | 113 | { |
| 114 | 114 | |
| 115 | if (ACCESSING_ | |
| 115 | if (ACCESSING_ | |
| 116 | 116 | { |
| 117 | 117 | // bit 0x80 toggles, maybe sprite buffering? |
| 118 | 118 | // bit 0x40 is flipscreen |
| r2241 | r2242 | |
|---|---|---|
| 193 | 193 | |
| 194 | 194 | WRITE16_HANDLER( pspikes_gfxbank_w ) |
| 195 | 195 | { |
| 196 | if (ACCESSING_ | |
| 196 | if (ACCESSING_ | |
| 197 | 197 | { |
| 198 | 198 | setbank(bg1_tilemap,0,(data & 0xf0) >> 4); |
| 199 | 199 | setbank(bg1_tilemap,1,data & 0x0f); |
| r2241 | r2242 | |
| 210 | 210 | |
| 211 | 211 | WRITE16_HANDLER( karatblz_gfxbank_w ) |
| 212 | 212 | { |
| 213 | if (ACCESSING_ | |
| 213 | if (ACCESSING_ | |
| 214 | 214 | { |
| 215 | 215 | setbank(bg1_tilemap,0,(data & 0x0100) >> 8); |
| 216 | 216 | setbank(bg2_tilemap,1,(data & 0x0800) >> 11); |
| r2241 | r2242 | |
| 219 | 219 | |
| 220 | 220 | WRITE16_HANDLER( spinlbrk_gfxbank_w ) |
| 221 | 221 | { |
| 222 | if (ACCESSING_ | |
| 222 | if (ACCESSING_ | |
| 223 | 223 | { |
| 224 | 224 | setbank(bg1_tilemap,0,(data & 0x07)); |
| 225 | 225 | setbank(bg2_tilemap,1,(data & 0x38) >> 3); |
| r2241 | r2242 | |
| 272 | 272 | |
| 273 | 273 | WRITE16_HANDLER( pspikes_palette_bank_w ) |
| 274 | 274 | { |
| 275 | if (ACCESSING_ | |
| 275 | if (ACCESSING_ | |
| 276 | 276 | { |
| 277 | 277 | spritepalettebank = data & 0x03; |
| 278 | 278 | if (charpalettebank != (data & 0x1c) >> 2) |
| r2241 | r2242 | |
| 479 | 479 | static void aerfboot_draw_sprites(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect) |
| 480 | 480 | { |
| 481 | 481 | int attr_start;//,base,first; |
| 482 | // int notdraw = 0; | |
| 482 | 483 | |
| 483 | ||
| 484 | 484 | // base = chip * 0x0200; |
| 485 | 485 | // first = 4 * aerofgt_spriteram3[0x1fe + base]; |
| 486 | 486 | |
| 487 | for (attr_start = aerofgt_spriteram3_size/2 - 4;attr_start >= 0;attr_start -= 4) | |
| 487 | for (attr_start = aerofgt_spriteram3_size/2 - 4 /* - 16 */;attr_start >= 0;attr_start -= 4) | |
| 488 | 488 | { |
| 489 | 489 | int code; |
| 490 | int ox,oy,x, | |
| 490 | int ox,oy,sx, | |
| 491 | 491 | // some other drivers still use this wrong table, they have to be upgraded |
| 492 | 492 | // int zoomtable[16] = { 0,7,14,20,25,30,34,38,42,46,49,52,54,57,59,61 }; |
| 493 | 493 | |
| r2241 | r2242 | |
| 497 | 497 | flipy = aerofgt_spriteram3[attr_start + 2] & 0x8000; |
| 498 | 498 | color = aerofgt_spriteram3[attr_start + 2] & 0x000f; |
| 499 | 499 | |
| 500 | // xsize = (aerofgt_spriteram3[attr_start + 2] & 0x0700) >> 8; | |
| 501 | xsize = (aerofgt_spriteram3[attr_start + 1] & 0x0e00) >> 9; | |
| 502 | 500 | zoomx = (aerofgt_spriteram3[attr_start + 1] & 0xf000) >> 12; |
| 503 | // ysize = (aerofgt_spriteram3[attr_start + 2] & 0x7000) >> 12; | |
| 504 | ysize = (aerofgt_spriteram3[attr_start + 0] & 0x0e00) >> 9; | |
| 505 | 501 | zoomy = (aerofgt_spriteram3[attr_start + 0] & 0xf000) >> 12; |
| 506 | ||
| 507 | 502 | pri = aerofgt_spriteram3[attr_start + 2] & 0x0010; |
| 508 | code = aerofgt_spriteram3[attr_start + 3] & 0x3fff; | |
| 503 | // code = aerofgt_spriteram3[attr_start + 3] & 0x3fff; | |
| 504 | code = aerofgt_spriteram3[attr_start + 3] & 0x1fff; | |
| 509 | 505 | |
| 506 | // if ((!(aerofgt_spriteram3[attr_start + 0])) & (!(aerofgt_spriteram3[attr_start + 1])) & | |
| 507 | // (!(aerofgt_spriteram3[attr_start + 2])) & (!(aerofgt_spriteram3[attr_start + 3]))) notdraw = 1; | |
| 510 | 508 | |
| 511 | // aerofgt has this adjustment, but doing it here would break turbo force title screen | |
| 512 | // ox += (xsize*zoomx+2)/4; | |
| 513 | // oy += (ysize*zoomy+2)/4; | |
| 509 | // if (notdraw) continue; | |
| 514 | 510 | |
| 515 | zoomx = 32 - zoomx; | |
| 516 | zoomy = 32 - zoomy; | |
| 511 | if (!(aerofgt_spriteram3[attr_start + 2] & 0x0040)) code |= 0x2000; | |
| 517 | 512 | |
| 518 | for (y = 0;y <= ysize;y++) | |
| 519 | { | |
| 520 | int sx,sy; | |
| 513 | zoomx = 32 + zoomx; | |
| 514 | zoomy = 32 + zoomy; | |
| 521 | 515 | |
| 522 | if (flipy) sy = ((oy + zoomy * (ysize - y)/2 + 16) & 0x1ff) - 16; | |
| 523 | else sy = ((oy + zoomy * y / 2 + 16) & 0x1ff) - 16; | |
| 516 | sy = ((oy + 16) & 0x1ff) - 16; | |
| 524 | 517 | |
| 525 | for (x = 0;x <= xsize;x++) | |
| 526 | { | |
| 527 | if (flipx) sx = ((ox + zoomx * (xsize - x) / 2 + 16) & 0x1ff) - 16; | |
| 528 | else sx = ((ox + zoomx * x / 2 + 16) & 0x1ff) - 16; | |
| 518 | sx = ((ox + 16) & 0x1ff) - 16; | |
| 529 | 519 | |
| 530 | pdrawgfxzoom(bitmap,machine->gfx[sprite_gfx + (code >= 0x1000 ? 0 : 1)], | |
| 531 | code, | |
| 532 | color, | |
| 533 | flipx,flipy, | |
| 534 | sx,sy, | |
| 535 | cliprect,TRANSPARENCY_PEN,15, | |
| 536 | zoomx << 11,zoomy << 11, | |
| 537 | pri ? 0 : 0x2); | |
| 538 | code++; | |
| 539 | } | |
| 520 | pdrawgfxzoom(bitmap,machine->gfx[sprite_gfx + (code >= 0x1000 ? 0 : 1)], | |
| 521 | code, | |
| 522 | color, | |
| 523 | flipx,flipy, | |
| 524 | sx,sy, | |
| 525 | cliprect,TRANSPARENCY_PEN,15, | |
| 526 | zoomx << 11,zoomy << 11, | |
| 527 | pri ? 0 : 0x2); | |
| 540 | 528 | |
| 541 | // if (xsize == 2) code += 1; | |
| 542 | // if (xsize == 4) code += 3; | |
| 543 | // if (xsize == 5) code += 2; | |
| 544 | // if (xsize == 6) code += 1; | |
| 545 | } | |
| 546 | 529 | } |
| 547 | 530 | } |
| 548 | 531 |
| r2241 | r2242 | |
|---|---|---|
| 172 | 172 | offset *= 2; |
| 173 | 173 | if (videobank_select) |
| 174 | 174 | { |
| 175 | if (ACCESSING_ | |
| 175 | if (ACCESSING_ | |
| 176 | 176 | local_videoram[offset] = (data & 0x00ff) | (dma_register[DMA_PALETTE] << 8); |
| 177 | if (ACCESSING_ | |
| 177 | if (ACCESSING_ | |
| 178 | 178 | local_videoram[offset + 1] = (data >> 8) | (dma_register[DMA_PALETTE] & 0xff00); |
| 179 | 179 | } |
| 180 | 180 | else |
| 181 | 181 | { |
| 182 | if (ACCESSING_ | |
| 182 | if (ACCESSING_ | |
| 183 | 183 | local_videoram[offset] = (local_videoram[offset] & 0x00ff) | (data << 8); |
| 184 | if (ACCESSING_ | |
| 184 | if (ACCESSING_ | |
| 185 | 185 | local_videoram[offset + 1] = (local_videoram[offset + 1] & 0x00ff) | (data & 0xff00); |
| 186 | 186 | } |
| 187 | 187 | } |
| r2241 | r2242 | |
| 239 | 239 | * |
| 240 | 240 | */ |
| 241 | 241 | |
| 242 | if (ACCESSING_ | |
| 242 | if (ACCESSING_ | |
| 243 | 243 | { |
| 244 | 244 | /* CMOS page is bits 6-7 */ |
| 245 | 245 | midyunit_cmos_page = ((data >> 6) & 3) * 0x1000; |
| r2241 | r2242 | |
|---|---|---|
| 287 | 287 | if ( offset == 0 ) |
| 288 | 288 | { |
| 289 | 289 | stv_set_framebuffer_config(); |
| 290 | if ( ACCESSING_ | |
| 290 | if ( ACCESSING_BITS_0_15 ) | |
| 291 | 291 | { |
| 292 | 292 | if ( vdp1_sprite_log ) logerror( "VDP1: Access to register FBCR = %1X\n", STV_VDP1_FBCR ); |
| 293 | 293 | stv_vdp1_fbcr_accessed = 1; |
| r2241 | r2242 | |
| 309 | 309 | } |
| 310 | 310 | else if ( offset == 1 ) |
| 311 | 311 | { |
| 312 | if ( ACCESSING_ | |
| 312 | if ( ACCESSING_BITS_16_31 ) | |
| 313 | 313 | { |
| 314 | 314 | if ( STV_VDP1_PTMR == 1 ) |
| 315 | 315 | { |
| r2241 | r2242 | |
| 323 | 323 | } |
| 324 | 324 | } |
| 325 | 325 | } |
| 326 | else if ( ACCESSING_ | |
| 326 | else if ( ACCESSING_BITS_0_15 ) | |
| 327 | 327 | { |
| 328 | 328 | if ( vdp1_sprite_log ) logerror( "VDP1: Erase data set %08X\n", data ); |
| 329 | 329 | } |
| 330 | 330 | } |
| 331 | 331 | else if ( offset == 2 ) |
| 332 | 332 | { |
| 333 | if ( ACCESSING_ | |
| 333 | if ( ACCESSING_BITS_16_31 ) | |
| 334 | 334 | { |
| 335 | 335 | if ( vdp1_sprite_log ) logerror( "VDP1: Erase upper-left coord set: %08X\n", data ); |
| 336 | 336 | } |
| 337 | else if ( ACCESSING_ | |
| 337 | else if ( ACCESSING_BITS_0_15 ) | |
| 338 | 338 | { |
| 339 | 339 | if ( vdp1_sprite_log ) logerror( "VDP1: Erase lower-right coord set: %08X\n", data ); |
| 340 | 340 | } |
| r2241 | r2242 | |
| 377 | 377 | else |
| 378 | 378 | { |
| 379 | 379 | /* 16-bit mode */ |
| 380 | if ( ACCESSING_ | |
| 380 | if ( ACCESSING_BITS_16_31 ) | |
| 381 | 381 | { |
| 382 | 382 | stv_framebuffer[stv_vdp1_current_draw_framebuffer][offset*2] = (data >> 16) & 0xffff; |
| 383 | 383 | } |
| 384 | if ( ACCESSING_ | |
| 384 | if ( ACCESSING_BITS_0_15 ) | |
| 385 | 385 | { |
| 386 | 386 | stv_framebuffer[stv_vdp1_current_draw_framebuffer][offset*2+1] = data & 0xffff; |
| 387 | 387 | } |
| r2241 | r2242 | |
| 399 | 399 | else |
| 400 | 400 | { |
| 401 | 401 | /* 16-bit mode */ |
| 402 | if ( ACCESSING_ | |
| 402 | if ( ACCESSING_BITS_16_31 ) | |
| 403 | 403 | { |
| 404 | 404 | result |= (stv_framebuffer[stv_vdp1_current_draw_framebuffer][offset*2] << 16); |
| 405 | 405 | } |
| 406 | if ( ACCESSING_ | |
| 406 | if ( ACCESSING_BITS_0_15 ) | |
| 407 | 407 | { |
| 408 | 408 | result |= stv_framebuffer[stv_vdp1_current_draw_framebuffer][offset*2+1]; |
| 409 | 409 | } |
| r2241 | r2242 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | WRITE16_HANDLER( deadang_bank_w ) |
| 22 | 22 | { |
| 23 | if (ACCESSING_ | |
| 23 | if (ACCESSING_ | |
| 24 | 24 | { |
| 25 | 25 | deadangle_tilebank = data&1; |
| 26 | 26 | if (deadangle_tilebank!=deadangle_oldtilebank) |
| r2241 | r2242 | |
|---|---|---|
| 203 | 203 | |
| 204 | 204 | /* latch 0x50 allows a direct write to the destination bitmap */ |
| 205 | 205 | case 0x50: |
| 206 | if (ACCESSING_ | |
| 206 | if (ACCESSING_ | |
| 207 | 207 | dstbitmap[dst_yoffs * DSTBITMAP_WIDTH + dst_xoffs] = data >> 24; |
| 208 | 208 | break; |
| 209 | 209 | |
| r2241 | r2242 | |
| 331 | 331 | |
| 332 | 332 | WRITE32_HANDLER( policetr_palette_offset_w ) |
| 333 | 333 | { |
| 334 | if ( | |
| 334 | if (ACCESSING_BITS_16_23 | |
| 335 | 335 | { |
| 336 | 336 | palette_offset = (data >> 16) & 0xff; |
| 337 | 337 | palette_index = 0; |
| r2241 | r2242 | |
| 341 | 341 | |
| 342 | 342 | WRITE32_HANDLER( policetr_palette_data_w ) |
| 343 | 343 | { |
| 344 | if ( | |
| 344 | if (ACCESSING_BITS_16_23 | |
| 345 | 345 | { |
| 346 | 346 | palette_data[palette_index] = (data >> 16) & 0xff; |
| 347 | 347 | if (++palette_index == 3) |
| r2241 | r2242 | |
|---|---|---|
| 1 | 1 | #include "driver.h" |
| 2 | #include "deprecat.h" | |
| 3 | 2 | |
| 4 | 3 | static tilemap *text_layer; |
| 5 | 4 | static tilemap *back_layer; |
| r2241 | r2242 | |
| 208 | 207 | UINT32 color = spimainram[(video_dma_address / 4) + i - 0x200]; |
| 209 | 208 | if (palette_ram[i] != color) { |
| 210 | 209 | palette_ram[i] = color; |
| 211 | palette_set_color_rgb( Machine, (i * 2), pal5bit(palette_ram[i] >> 0), pal5bit(palette_ram[i] >> 5), pal5bit(palette_ram[i] >> 10) ); | |
| 212 | palette_set_color_rgb( Machine, (i * 2) + 1, pal5bit(palette_ram[i] >> 16), pal5bit(palette_ram[i] >> 21), pal5bit(palette_ram[i] >> 26) ); | |
| 210 | palette_set_color_rgb( machine, (i * 2), pal5bit(palette_ram[i] >> 0), pal5bit(palette_ram[i] >> 5), pal5bit(palette_ram[i] >> 10) ); | |
| 211 | palette_set_color_rgb( machine, (i * 2) + 1, pal5bit(palette_ram[i] >> 16), pal5bit(palette_ram[i] >> 21), pal5bit(palette_ram[i] >> 26) ); | |
| 213 | 212 | } |
| 214 | 213 | } |
| 215 | 214 | } |
| r2241 | r2242 | |
| 233 | 232 | COMBINE_DATA( &video_dma_address ); |
| 234 | 233 | } |
| 235 | 234 | |
| 236 | static void draw_blend_gfx(bitmap_t *bitmap, const rectangle *cliprect, const gfx_element *gfx, UINT32 code, UINT32 color, int flipx, int flipy, int sx, int sy) | |
| 235 | static void draw_blend_gfx(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, const gfx_element *gfx, UINT32 code, UINT32 color, int flipx, int flipy, int sx, int sy) | |
| 237 | 236 | { |
| 237 | const pen_t *pens = &machine->pens[gfx->color_base]; | |
| 238 | 238 | UINT8 *dp; |
| 239 | 239 | int i, j; |
| 240 | 240 | int x1, x2; |
| r2241 | r2242 | |
| 319 | 319 | // draw |
| 320 | 320 | for (j=y1; j <= y2; j++) |
| 321 | 321 | { |
| 322 | UINT | |
| 322 | UINT32 *p = BITMAP_ADDR32(bitmap, j, 0); | |
| 323 | 323 | int dp_i = (py * width) + px; |
| 324 | 324 | py += yd; |
| 325 | 325 | |
| r2241 | r2242 | |
| 332 | 332 | UINT8 alpha = alpha_table[global_pen]; |
| 333 | 333 | if (alpha) |
| 334 | 334 | { |
| 335 | p[i] = alpha_blend | |
| 335 | p[i] = alpha_blend_r32(p[i], | |
| 336 | 336 | } |
| 337 | 337 | else |
| 338 | 338 | { |
| 339 | p[i] = | |
| 339 | p[i] = | |
| 340 | 340 | } |
| 341 | 341 | } |
| 342 | 342 | dp_i += xd; |
| r2241 | r2242 | |
| 407 | 407 | |
| 408 | 408 | for( x=x1; x < width; x++ ) { |
| 409 | 409 | for( y=y1; y < height; y++ ) { |
| 410 | draw_blend_gfx(bitmap, cliprect, gfx, tile_num, color, flip_x, flip_y, xpos + sprite_xtable[flip_x][x], ypos + sprite_ytable[flip_y][y]); | |
| 410 | draw_blend_gfx(machine, bitmap, cliprect, gfx, tile_num, color, flip_x, flip_y, xpos + sprite_xtable[flip_x][x], ypos + sprite_ytable[flip_y][y]); | |
| 411 | 411 | |
| 412 | 412 | /* xpos seems to wrap-around to 0 at 512 */ |
| 413 | 413 | if( (xpos + (16 * x) + 16) >= 512 ) { |
| 414 | draw_blend_gfx(bitmap, cliprect, gfx, tile_num, color, flip_x, flip_y, xpos - 512 + sprite_xtable[flip_x][x], ypos + sprite_ytable[flip_y][y]); | |
| 414 | draw_blend_gfx(machine, bitmap, cliprect, gfx, tile_num, color, flip_x, flip_y, xpos - 512 + sprite_xtable[flip_x][x], ypos + sprite_ytable[flip_y][y]); | |
| 415 | 415 | } |
| 416 | 416 | |
| 417 | 417 | tile_num++; |
| r2241 | r2242 | |
| 566 | 566 | { |
| 567 | 567 | int i,j; |
| 568 | 568 | UINT16 *s; |
| 569 | UINT | |
| 569 | UINT32 *d; | |
| 570 | 570 | UINT8 *t; |
| 571 | 571 | UINT32 xscroll_mask, yscroll_mask; |
| 572 | 572 | bitmap_t *pen_bitmap; |
| r2241 | r2242 | |
| 577 | 577 | xscroll_mask = pen_bitmap->width - 1; |
| 578 | 578 | yscroll_mask = pen_bitmap->height - 1; |
| 579 | 579 | |
| 580 | alpha_set_level(0x7f); | |
| 581 | ||
| 582 | 580 | for (j=cliprect->min_y; j <= cliprect->max_y; j++) |
| 583 | 581 | { |
| 584 | 582 | int rx = x; |
| r2241 | r2242 | |
| 587 | 585 | rx += rowscroll[(j+y) & yscroll_mask]; |
| 588 | 586 | } |
| 589 | 587 | |
| 590 | d = BITMAP_ADDR | |
| 588 | d = BITMAP_ADDR32(bitmap, j, 0); | |
| 591 | 589 | s = BITMAP_ADDR16(pen_bitmap, (j+y) & yscroll_mask, 0); |
| 592 | 590 | t = BITMAP_ADDR8(flags_bitmap, (j+y) & yscroll_mask, 0); |
| 593 | 591 | for (i=cliprect->min_x+rx; i <= cliprect->max_x+rx; i++) |
| r2241 | r2242 | |
| 598 | 596 | UINT8 alpha = alpha_table[pen]; |
| 599 | 597 | if (alpha) |
| 600 | 598 | { |
| 601 | *d = alpha_blend | |
| 599 | *d = alpha_blend_r32(*d, machine->pens[pen], 0x7f); | |
| 602 | 600 | } |
| 603 | 601 | else |
| 604 | 602 | { |
| r2241 | r2242 | |
|---|---|---|
| 156 | 156 | offset *= 2; |
| 157 | 157 | if (videobank_select) |
| 158 | 158 | { |
| 159 | if (ACCESSING_ | |
| 159 | if (ACCESSING_ | |
| 160 | 160 | local_videoram[offset] = (data & 0xff) | ((dma_register[DMA_PALETTE] & 0xff) << 8); |
| 161 | if (ACCESSING_ | |
| 161 | if (ACCESSING_ | |
| 162 | 162 | local_videoram[offset + 1] = ((data >> 8) & 0xff) | (dma_register[DMA_PALETTE] & 0xff00); |
| 163 | 163 | } |
| 164 | 164 | else |
| 165 | 165 | { |
| 166 | if (ACCESSING_ | |
| 166 | if (ACCESSING_ | |
| 167 | 167 | local_videoram[offset] = (local_videoram[offset] & 0xff) | ((data & 0xff) << 8); |
| 168 | if (ACCESSING_ | |
| 168 | if (ACCESSING_ | |
| 169 | 169 | local_videoram[offset + 1] = (local_videoram[offset + 1] & 0xff) | (data & 0xff00); |
| 170 | 170 | } |
| 171 | 171 | } |
| r2241 | r2242 | |
| 174 | 174 | WRITE16_HANDLER( midtunit_vram_data_w ) |
| 175 | 175 | { |
| 176 | 176 | offset *= 2; |
| 177 | if (ACCESSING_ | |
| 177 | if (ACCESSING_ | |
| 178 | 178 | local_videoram[offset] = (data & 0xff) | ((dma_register[DMA_PALETTE] & 0xff) << 8); |
| 179 | if (ACCESSING_ | |
| 179 | if (ACCESSING_ | |
| 180 | 180 | local_videoram[offset + 1] = ((data >> 8) & 0xff) | (dma_register[DMA_PALETTE] & 0xff00); |
| 181 | 181 | } |
| 182 | 182 | |
| r2241 | r2242 | |
| 184 | 184 | WRITE16_HANDLER( midtunit_vram_color_w ) |
| 185 | 185 | { |
| 186 | 186 | offset *= 2; |
| 187 | if (ACCESSING_ | |
| 187 | if (ACCESSING_ | |
| 188 | 188 | local_videoram[offset] = (local_videoram[offset] & 0xff) | ((data & 0xff) << 8); |
| 189 | if (ACCESSING_ | |
| 189 | if (ACCESSING_ | |
| 190 | 190 | local_videoram[offset + 1] = (local_videoram[offset + 1] & 0xff) | (data & 0xff00); |
| 191 | 191 | } |
| 192 | 192 |
| r2241 | r2242 | |
|---|---|---|
| 60 | 60 | |
| 61 | 61 | WRITE16_HANDLER( powerins_flipscreen_w ) |
| 62 | 62 | { |
| 63 | if (ACCESSING_ | |
| 63 | if (ACCESSING_ | |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | WRITE16_HANDLER( powerins_tilebank_w ) |
| 67 | 67 | { |
| 68 | if (ACCESSING_ | |
| 68 | if (ACCESSING_ | |
| 69 | 69 | { |
| 70 | 70 | if (data != tile_bank) |
| 71 | 71 | { |
| r2241 | r2242 | |
|---|---|---|
| 62 | 62 | offs_h = (offset / 0x180); |
| 63 | 63 | offs_l = (offset & 0x7f); |
| 64 | 64 | |
| 65 | if (ACCESSING_ | |
| 65 | if (ACCESSING_ | |
| 66 | 66 | { |
| 67 | 67 | r = ((niyanpai_palette[(0x000 + (offs_h * 0x180) + offs_l)] & 0xff00) >> 8); |
| 68 | 68 | g = ((niyanpai_palette[(0x080 + (offs_h * 0x180) + offs_l)] & 0xff00) >> 8); |
| r2241 | r2242 | |
| 71 | 71 | palette_set_color(Machine, ((offs_h << 8) + (offs_l << 1) + 0), MAKE_RGB(r, g, b)); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | if (ACCESSING_ | |
| 74 | if (ACCESSING_ | |
| 75 | 75 | { |
| 76 | 76 | r = ((niyanpai_palette[(0x000 + (offs_h * 0x180) + offs_l)] & 0x00ff) >> 0); |
| 77 | 77 | g = ((niyanpai_palette[(0x080 + (offs_h * 0x180) + offs_l)] & 0x00ff) >> 0); |
| r2241 | r2242 | |
|---|---|---|
| 249 | 249 | |
| 250 | 250 | WRITE16_HANDLER( timekill_colora_w ) |
| 251 | 251 | { |
| 252 | if (ACCESSING_ | |
| 252 | if (ACCESSING_ | |
| 253 | 253 | { |
| 254 | 254 | enable_latch[0] = (~data >> 5) & 1; |
| 255 | 255 | enable_latch[1] = (~data >> 7) & 1; |
| r2241 | r2242 | |
| 260 | 260 | |
| 261 | 261 | WRITE16_HANDLER( timekill_colorbc_w ) |
| 262 | 262 | { |
| 263 | if (ACCESSING_ | |
| 263 | if (ACCESSING_ | |
| 264 | 264 | color_latch[1] = ((data & 0xf0) << 4) | 0x1000; |
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | |
| 268 | 268 | WRITE16_HANDLER( timekill_intensity_w ) |
| 269 | 269 | { |
| 270 | if (ACCESSING_ | |
| 270 | if (ACCESSING_ | |
| 271 | 271 | { |
| 272 | 272 | double intensity = (double)(data & 0xff) / (double)0x60; |
| 273 | 273 | int i; |
| r2241 | r2242 | |
| 279 | 279 | |
| 280 | 280 | WRITE16_HANDLER( bloodstm_color1_w ) |
| 281 | 281 | { |
| 282 | if (ACCESSING_ | |
| 282 | if (ACCESSING_ | |
| 283 | 283 | color_latch[0] = (data & 0x7f) << 8; |
| 284 | 284 | } |
| 285 | 285 | |
| 286 | 286 | |
| 287 | 287 | WRITE16_HANDLER( bloodstm_color2_w ) |
| 288 | 288 | { |
| 289 | if (ACCESSING_ | |
| 289 | if (ACCESSING_ | |
| 290 | 290 | color_latch[1] = (data & 0x7f) << 8; |
| 291 | 291 | } |
| 292 | 292 | |
| 293 | 293 | |
| 294 | 294 | WRITE16_HANDLER( bloodstm_plane_w ) |
| 295 | 295 | { |
| 296 | if (ACCESSING_ | |
| 296 | if (ACCESSING_ | |
| 297 | 297 | { |
| 298 | 298 | enable_latch[0] = (~data >> 1) & 1; |
| 299 | 299 | enable_latch[1] = (~data >> 2) & 1; |
| r2241 | r2242 | |
| 303 | 303 | |
| 304 | 304 | WRITE32_HANDLER( drivedge_color0_w ) |
| 305 | 305 | { |
| 306 | if ( | |
| 306 | if (ACCESSING_BITS_16_23 | |
| 307 | 307 | color_latch[0] = ((data >> 16) & 0x7f) << 8; |
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | |
| 311 | 311 | WRITE32_HANDLER( itech020_color1_w ) |
| 312 | 312 | { |
| 313 | if (ACCESSING_ | |
| 313 | if (ACCESSING_ | |
| 314 | 314 | color_latch[1] = (data & 0x7f) << 8; |
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | |
| 318 | 318 | WRITE32_HANDLER( itech020_color2_w ) |
| 319 | 319 | { |
| 320 | if (ACCESSING_ | |
| 320 | if (ACCESSING_ | |
| 321 | 321 | color_latch[0] = (data & 0x7f) << 8; |
| 322 | 322 | } |
| 323 | 323 | |
| 324 | 324 | |
| 325 | 325 | WRITE32_HANDLER( itech020_plane_w ) |
| 326 | 326 | { |
| 327 | if ( | |
| 327 | if (ACCESSING_BITS_8_15 | |
| 328 | 328 | { |
| 329 | 329 | enable_latch[0] = (~data >> 9) & 1; |
| 330 | 330 | enable_latch[1] = (~data >> 10) & 1; |
| r2241 | r2242 | |
| 359 | 359 | int r, g, b; |
| 360 | 360 | |
| 361 | 361 | /* in test mode, the LSB is used; in game mode, the MSB is used */ |
| 362 | if (!ACCESSING_ | |
| 362 | if (!ACCESSING_ | |
| 363 | 363 | data >>= 8, mem_mask >>= 8; |
| 364 | 364 | COMBINE_DATA(&paletteram16[offset]); |
| 365 | 365 | |
| r2241 | r2242 | |
| 1422 | 1422 | |
| 1423 | 1423 | WRITE32_HANDLER( itech020_video_w ) |
| 1424 | 1424 | { |
| 1425 | if (ACCESSING_ | |
| 1425 | if (ACCESSING_BITS_16_31) | |
| 1426 | 1426 | itech32_video_w(machine, offset, data >> 16, mem_mask >> 16); |
| 1427 | 1427 | else |
| 1428 | 1428 | itech32_video_w(machine, offset, data, mem_mask); |
| r2241 | r2242 | |
|---|---|---|
| 165 | 165 | |
| 166 | 166 | WRITE16_HANDLER( amazon_flipscreen_w ) |
| 167 | 167 | { |
| 168 | if( ACCESSING_ | |
| 168 | if( ACCESSING_ | |
| 169 | 169 | { |
| 170 | 170 | coin_counter_w( 0, data&0x01 ); |
| 171 | 171 | coin_counter_w( 1, (data&0x02)>>1 ); |
| r2241 | r2242 | |
|---|---|---|
| 223 | 223 | } |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | ||
| 227 | static void draw_sprites_cbombers(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect,const int *primasks,int x_offs,int y_offs) | |
| 228 | { | |
| 229 | UINT16 *spritemap = (UINT16 *)memory_region(REGION_USER1); | |
| 230 | UINT8 *spritemapHibit = (UINT8 *)memory_region(REGION_USER2); | |
| 231 | ||
| 232 | int offs, data, tilenum, color, flipx, flipy; | |
| 233 | int x, y, priority, dblsize, curx, cury; | |
| 234 | int sprites_flipscreen = 0; | |
| 235 | int zoomx, zoomy, zx, zy; | |
| 236 | int sprite_chunk,map_offset,code,j,k,px,py; | |
| 237 | int dimension,total_chunks; | |
| 238 | ||
| 239 | /* pdrawgfx() needs us to draw sprites front to back, so we have to build a list | |
| 240 | while processing sprite ram and then draw them all at the end */ | |
| 241 | struct tempsprite *sprite_ptr = spritelist; | |
| 242 | ||
| 243 | for (offs = (spriteram_size/4-4);offs >= 0;offs -= 4) | |
| 244 | { | |
| 245 | data = spriteram32[offs+0]; | |
| 246 | flipx = (data & 0x00800000) >> 23; | |
| 247 | zoomx = (data & 0x007f0000) >> 16; | |
| 248 | tilenum = (data & 0x00007fff); | |
| 249 | ||
| 250 | data = spriteram32[offs+2]; | |
| 251 | priority = (data & 0x000c0000) >> 18; | |
| 252 | color = (data & 0x0003fc00) >> 10; | |
| 253 | x = (data & 0x000003ff); | |
| 254 | ||
| 255 | data = spriteram32[offs+3]; | |
| 256 | dblsize = (data & 0x00040000) >> 18; | |
| 257 | flipy = (data & 0x00020000) >> 17; | |
| 258 | zoomy = (data & 0x0001fc00) >> 10; | |
| 259 | y = (data & 0x000003ff); | |
| 260 | ||
| 261 | color |= (/*0x100 +*/ (priority << 6)); /* priority bits select color bank */ | |
| 262 | ||
| 263 | color /= 2; /* as sprites are 5bpp */ | |
| 264 | flipy = !flipy; | |
| 265 | // y = (-y &0x3ff); | |
| 266 | ||
| 267 | if (!tilenum) continue; | |
| 268 | ||
| 269 | // flipy = !flipy; | |
| 270 | zoomx += 1; | |
| 271 | zoomy += 1; | |
| 272 | ||
| 273 | y += y_offs; | |
| 274 | ||
| 275 | /* treat coords as signed */ | |
| 276 | if (x>0x340) x -= 0x400; | |
| 277 | if (y>0x340) y -= 0x400; | |
| 278 | ||
| 279 | x -= x_offs; | |
| 280 | ||
| 281 | dimension = ((dblsize*2) + 2); // 2 or 4 | |
| 282 | total_chunks = ((dblsize*3) + 1) << 2; // 4 or 16 | |
| 283 | map_offset = tilenum << 2; | |
| 284 | ||
| 285 | { | |
| 286 | for (sprite_chunk=0;sprite_chunk<total_chunks;sprite_chunk++) | |
| 287 | { | |
| 288 | j = sprite_chunk / dimension; /* rows */ | |
| 289 | k = sprite_chunk % dimension; /* chunks per row */ | |
| 290 | ||
| 291 | px = k; | |
| 292 | py = j; | |
| 293 | /* pick tiles back to front for x and y flips */ | |
| 294 | if (flipx) px = dimension-1-k; | |
| 295 | if (flipy) py = dimension-1-j; | |
| 296 | ||
| 297 | code = spritemap[map_offset + px + (py<<(dblsize+1))]; | |
| 298 | ||
| 299 | if (spritemapHibit) | |
| 300 | { | |
| 301 | code|=spritemapHibit[map_offset + px + (py<<(dblsize+1))] << 16; | |
| 302 | ||
| 303 | //if (spritemapHibit[map_offset + px + (py<<(dblsize+1))]) | |
| 304 | //color=mame_rand(machine); | |
| 305 | } | |
| 306 | ||
| 307 | curx = x + ((k*zoomx)/dimension); | |
| 308 | cury = y + ((j*zoomy)/dimension); | |
| 309 | ||
| 310 | zx= x + (((k+1)*zoomx)/dimension) - curx; | |
| 311 | zy= y + (((j+1)*zoomy)/dimension) - cury; | |
| 312 | ||
| 313 | if (sprites_flipscreen) | |
| 314 | { | |
| 315 | /* -zx/y is there to fix zoomed sprite coords in screenflip. | |
| 316 | drawgfxzoom does not know to draw from flip-side of sprites when | |
| 317 | screen is flipped; so we must correct the coords ourselves. */ | |
| 318 | ||
| 319 | curx = 320 - curx - zx; | |
| 320 | cury = 256 - cury - zy; | |
| 321 | flipx = !flipx; | |
| 322 | flipy = !flipy; | |
| 323 | } | |
| 324 | ||
| 325 | sprite_ptr->gfx = 0; | |
| 326 | sprite_ptr->code = code; | |
| 327 | sprite_ptr->color = color; | |
| 328 | sprite_ptr->flipx = !flipx; | |
| 329 | sprite_ptr->flipy = flipy; | |
| 330 | sprite_ptr->x = curx; | |
| 331 | sprite_ptr->y = cury; | |
| 332 | sprite_ptr->zoomx = zx << 12; | |
| 333 | sprite_ptr->zoomy = zy << 12; | |
| 334 | ||
| 335 | if (primasks) | |
| 336 | { | |
| 337 | sprite_ptr->primask = primasks[priority]; | |
| 338 | ||
| 339 | sprite_ptr++; | |
| 340 | } | |
| 341 | else | |
| 342 | { | |
| 343 | drawgfxzoom(bitmap,machine->gfx[sprite_ptr->gfx], | |
| 344 | sprite_ptr->code, | |
| 345 | sprite_ptr->color, | |
| 346 | sprite_ptr->flipx,sprite_ptr->flipy, | |
| 347 | sprite_ptr->x,sprite_ptr->y, | |
| 348 | cliprect,TRANSPARENCY_PEN,0, | |
| 349 | sprite_ptr->zoomx,sprite_ptr->zoomy); | |
| 350 | } | |
| 351 | } | |
| 352 | } | |
| 353 | } | |
| 354 | ||
| 355 | /* this happens only if primsks != NULL */ | |
| 356 | while (sprite_ptr != spritelist) | |
| 357 | { | |
| 358 | sprite_ptr--; | |
| 359 | ||
| 360 | pdrawgfxzoom(bitmap,machine->gfx[sprite_ptr->gfx], | |
| 361 | sprite_ptr->code, | |
| 362 | sprite_ptr->color, | |
| 363 | sprite_ptr->flipx,sprite_ptr->flipy, | |
| 364 | sprite_ptr->x,sprite_ptr->y, | |
| 365 | cliprect,TRANSPARENCY_PEN,0, | |
| 366 | sprite_ptr->zoomx,sprite_ptr->zoomy, | |
| 367 | sprite_ptr->primask); | |
| 368 | } | |
| 369 | } | |
| 370 | ||
| 371 | ||
| 226 | 372 | /************************************************************** |
| 227 | 373 | SCREEN REFRESH |
| 228 | 374 | **************************************************************/ |
| r2241 | r2242 | |
| 369 | 515 | #endif |
| 370 | 516 | return 0; |
| 371 | 517 | } |
| 518 | ||
| 519 | ||
| 520 | VIDEO_UPDATE( cbombers ) | |
| 521 | { | |
| 522 | UINT8 layer[5]; | |
| 523 | UINT8 pivlayer[3]; | |
| 524 | UINT16 priority; | |
| 525 | ||
| 526 | #ifdef MAME_DEBUG | |
| 527 | static UINT8 dislayer[6]; /* Layer toggles to help get layers correct */ | |
| 528 | #endif | |
| 529 | ||
| 530 | #ifdef MAME_DEBUG | |
| 531 | if (input_code_pressed_once (KEYCODE_X)) | |
| 532 | { | |
| 533 | dislayer[5] ^= 1; | |
| 534 | popmessage("piv text: %01x",dislayer[5]); | |
| 535 | } | |
| 536 | if (input_code_pressed_once (KEYCODE_C)) | |
| 537 | { | |
| 538 | dislayer[0] ^= 1; | |
| 539 | popmessage("bg0: %01x",dislayer[0]); | |
| 540 | } | |
| 541 | ||
| 542 | if (input_code_pressed_once (KEYCODE_V)) | |
| 543 | { | |
| 544 | dislayer[1] ^= 1; | |
| 545 | popmessage("bg1: %01x",dislayer[1]); | |
| 546 | } | |
| 547 | ||
| 548 | if (input_code_pressed_once (KEYCODE_B)) | |
| 549 | { | |
| 550 | dislayer[2] ^= 1; | |
| 551 | popmessage("bg2: %01x",dislayer[2]); | |
| 552 | } | |
| 553 | ||
| 554 | if (input_code_pressed_once (KEYCODE_N)) | |
| 555 | { | |
| 556 | dislayer[3] ^= 1; | |
| 557 | popmessage("bg3: %01x",dislayer[3]); | |
| 558 | } | |
| 559 | ||
| 560 | if (input_code_pressed_once (KEYCODE_M)) | |
| 561 | { | |
| 562 | dislayer[4] ^= 1; | |
| 563 | popmessage("sprites: %01x",dislayer[4]); | |
| 564 | } | |
| 565 | #endif | |
| 566 | ||
| 567 | TC0100SCN_tilemap_update(screen->machine); | |
| 568 | TC0480SCP_tilemap_update(screen->machine); | |
| 569 | ||
| 570 | priority = TC0480SCP_get_bg_priority(); | |
| 571 | ||
| 572 | layer[0] = (priority &0xf000) >> 12; /* tells us which bg layer is bottom */ | |
| 573 | layer[1] = (priority &0x0f00) >> 8; | |
| 574 | layer[2] = (priority &0x00f0) >> 4; | |
| 575 | layer[3] = (priority &0x000f) >> 0; /* tells us which is top */ | |
| 576 | layer[4] = 4; /* text layer always over bg layers */ | |
| 577 | ||
| 578 | pivlayer[0] = TC0100SCN_bottomlayer(0); | |
| 579 | pivlayer[1] = pivlayer[0]^1; | |
| 580 | pivlayer[2] = 2; | |
| 581 | ||
| 582 | fillbitmap(priority_bitmap,0,cliprect); | |
| 583 | fillbitmap(bitmap,0,cliprect); /* wrong color? */ | |
| 584 | ||
| 585 | ||
| 586 | /* The "PIV" chip seems to be a renamed TC0100SCN. It has a | |
| 587 | bottom layer usually full of bright garish colors that | |
| 588 | vaguely mimic the structure of the layers on top. Seems | |
| 589 | pointless - it's always hidden by other layers. Does it | |
| 590 | serve some blending pupose ? */ | |
| 591 | ||
| 592 | TC0100SCN_tilemap_draw(screen->machine,bitmap,cliprect,0,pivlayer[0],TILEMAP_DRAW_OPAQUE,0); | |
| 593 | TC0100SCN_tilemap_draw(screen->machine,bitmap,cliprect,0,pivlayer[1],0,0); | |
| 594 | ||
| 595 | #ifdef MAME_DEBUG | |
| 596 | if (dislayer[layer[0]]==0) | |
| 597 | #endif | |
| 598 | TC0480SCP_tilemap_draw(bitmap,cliprect,layer[0],0,1); | |
| 599 | ||
| 600 | #ifdef MAME_DEBUG | |
| 601 | if (dislayer[layer[1]]==0) | |
| 602 | #endif | |
| 603 | TC0480SCP_tilemap_draw(bitmap,cliprect,layer[1],0,2); | |
| 604 | ||
| 605 | #ifdef MAME_DEBUG | |
| 606 | if (dislayer[layer[2]]==0) | |
| 607 | #endif | |
| 608 | TC0480SCP_tilemap_draw(bitmap,cliprect,layer[2],0,4); | |
| 609 | ||
| 610 | #ifdef MAME_DEBUG | |
| 611 | if (dislayer[layer[3]]==0) | |
| 612 | #endif | |
| 613 | TC0480SCP_tilemap_draw(bitmap,cliprect,layer[3],0,8); | |
| 614 | ||
| 615 | #ifdef MAME_DEBUG | |
| 616 | if (dislayer[4]==0) | |
| 617 | #endif | |
| 618 | /* Sprites have variable priority (we kludge this on road levels) */ | |
| 619 | { | |
| 620 | if ((TC0480SCP_pri_reg &0x3) == 3) /* on road levels kludge sprites up 1 priority */ | |
| 621 | { | |
| 622 | static const int primasks[4] = {0xfff0, 0xff00, 0x0, 0x0}; | |
| 623 | draw_sprites_cbombers(screen->machine, bitmap,cliprect,primasks,80,-208); | |
| 624 | } | |
| 625 | else | |
| 626 | { | |
| 627 | static const int primasks[4] = {0xfffc, 0xfff0, 0xff00, 0x0}; | |
| 628 | draw_sprites_cbombers(screen->machine, bitmap,cliprect,primasks,80,-208); | |
| 629 | } | |
| 630 | } | |
| 631 | ||
| 632 | #ifdef MAME_DEBUG | |
| 633 | if (dislayer[5]==0) | |
| 634 | #endif | |
| 635 | TC0100SCN_tilemap_draw(screen->machine,bitmap,cliprect,0,pivlayer[2],0,0); /* piv text layer */ | |
| 636 | ||
| 637 | TC0480SCP_tilemap_draw(bitmap,cliprect,layer[4],0,0); /* TC0480SCP text layer */ | |
| 638 | ||
| 639 | /* See if we should draw artificial gun targets */ | |
| 640 | /* (not yet implemented...) */ | |
| 641 | ||
| 642 | if (input_port_7_word_r(screen->machine,0,0) & 0x1) /* Fake DSW */ | |
| 643 | { | |
| 644 | popmessage("Gunsights on"); | |
| 645 | } | |
| 646 | ||
| 647 | /* Enable this to see rotation (?) control words */ | |
| 648 | #if 0 | |
| 649 | { | |
| 650 | char buf[80]; | |
| 651 | int i; | |
| 652 | ||
| 653 | for (i = 0; i < 8; i += 1) | |
| 654 | { | |
| 655 | sprintf (buf, "%02x: %04x", i, undrfire_rotate_ctrl[i]); | |
| 656 | ui_draw_text (buf, 0, i*8); | |
| 657 | } | |
| 658 | } | |
| 659 | #endif | |
| 660 | return 0; | |
| 661 | } |
| r2241 | r2242 | |
|---|---|---|
| 179 | 179 | |
| 180 | 180 | WRITE16_HANDLER( gaiden_flip_w ) |
| 181 | 181 | { |
| 182 | if (ACCESSING_ | |
| 182 | if (ACCESSING_ | |
| 183 | 183 | flip_screen_set(data & 1); |
| 184 | 184 | } |
| 185 | 185 | |
| r2241 | r2242 | |
| 363 | 363 | |
| 364 | 364 | pdrawgfx(bitmap, gfx, |
| 365 | 365 | number + layout[row][col], |
| 366 | color, | |
| 366 | gfx->color_base + color * gfx->color_granularity, | |
| 367 | 367 | flipx, flipy, |
| 368 | 368 | sx, sy, |
| 369 | cliprect, TRANSPARENCY_PEN, 0, | |
| 369 | cliprect, TRANSPARENCY_PEN_RAW, 0, | |
| 370 | 370 | priority_mask); |
| 371 | 371 | } |
| 372 | 372 | } |
| r2241 | r2242 | |
| 464 | 464 | |
| 465 | 465 | pdrawgfx(bitmap_sp, gfx, |
| 466 | 466 | number + layout[row][col], |
| 467 | color, | |
| 467 | gfx->color_base + color * gfx->color_granularity, | |
| 468 | 468 | flipx, flipy, |
| 469 | 469 | sx, sy, |
| 470 | cliprect, TRANSPARENCY_PEN, 0, | |
| 470 | cliprect, TRANSPARENCY_PEN_RAW, 0, | |
| 471 | 471 | priority_mask); |
| 472 | 472 | } |
| 473 | 473 | } |
| r2241 | r2242 | |
| 485 | 485 | |
| 486 | 486 | pdrawgfx(bitmap, gfx, |
| 487 | 487 | number + layout[row][col], |
| 488 | color, | |
| 488 | gfx->color_base + color * gfx->color_granularity, | |
| 489 | 489 | flipx, flipy, |
| 490 | 490 | sx, sy, |
| 491 | cliprect, TRANSPARENCY_PEN, 0, | |
| 491 | cliprect, TRANSPARENCY_PEN_RAW, 0, | |
| 492 | 492 | priority_mask); |
| 493 | 493 | } |
| 494 | 494 | } |
| r2241 | r2242 | |
| 543 | 543 | |
| 544 | 544 | pdrawgfx(bitmap,machine->gfx[3], |
| 545 | 545 | code, |
| 546 | color,flipx,flipy,x,y, | |
| 546 | machine->gfx[3]->color_base + color * machine->gfx[3]->color_granularity, | |
| 547 | flipx,flipy,x,y, | |
| 547 | 548 | cliprect, |
| 548 | TRANSPARENCY_PEN,15, | |
| 549 | TRANSPARENCY_PEN_RAW,15, | |
| 549 | 550 | priority_mask); |
| 550 | 551 | |
| 551 | 552 | /* wrap x*/ |
| 552 | 553 | pdrawgfx(bitmap,machine->gfx[3], |
| 553 | 554 | code, |
| 554 | color,flipx,flipy,x-512,y, | |
| 555 | machine->gfx[3]->color_base + color * machine->gfx[3]->color_granularity, | |
| 556 | flipx,flipy,x-512,y, | |
| 555 | 557 | cliprect, |
| 556 | TRANSPARENCY_PEN,15, | |
| 558 | TRANSPARENCY_PEN_RAW,15, | |
| 557 | 559 | priority_mask); |
| 558 | 560 | |
| 559 | 561 | } |
| r2241 | r2242 | |
|---|---|---|
| 11 | 11 | #include "video/resnet.h" |
| 12 | 12 | #include "fastfred.h" |
| 13 | 13 | |
| 14 | extern UINT8 galaxian_stars_on; | |
| 15 | void galaxian_init_stars(running_machine *machine, int colors_offset); | |
| 16 | void galaxian_draw_stars(running_machine *machine, bitmap_t *bitmap); | |
| 14 | extern UINT8 galaxold_stars_on; | |
| 15 | void galaxold_init_stars(running_machine *machine, int colors_offset); | |
| 16 | void galaxold_draw_stars(running_machine *machine, bitmap_t *bitmap); | |
| 17 | 17 | |
| 18 | 18 | UINT8 *fastfred_videoram; |
| 19 | 19 | UINT8 *fastfred_spriteram; |
| r2241 | r2242 | |
| 380 | 380 | tilemap_set_transparent_pen(fg_tilemap, 0); |
| 381 | 381 | |
| 382 | 382 | /* the game has a galaxian starfield */ |
| 383 | galaxian_init_stars(machine, 256); | |
| 384 | galaxian_stars_on = 1; | |
| 383 | galaxold_init_stars(machine, 256); | |
| 384 | galaxold_stars_on = 1; | |
| 385 | 385 | |
| 386 | 386 | /* web colors */ |
| 387 | 387 | palette_set_color(machine,256+64+0,MAKE_RGB(0x50,0x00,0x00)); |
| r2241 | r2242 | |
| 391 | 391 | VIDEO_UPDATE( imago ) |
| 392 | 392 | { |
| 393 | 393 | tilemap_draw(bitmap,cliprect,web_tilemap,0,0); |
| 394 | galax | |
| 394 | galaxold_draw_stars(screen->machine, bitmap); | |
| 395 | 395 | tilemap_draw(bitmap,cliprect,bg_tilemap,0,0); |
| 396 | 396 | draw_sprites(screen->machine, bitmap, cliprect); |
| 397 | 397 | tilemap_draw(bitmap,cliprect,fg_tilemap,0,0); |
| r2241 | r2242 | |
|---|---|---|
| 117 | 117 | } |
| 118 | 118 | else if (offset == 2) |
| 119 | 119 | { |
| 120 | if ( | |
| 120 | if (ACCESSING_BITS_16_31 | |
| 121 | 121 | { |
| 122 | 122 | K001006_device_sel[chip] = (data >> 16) & 0xf; |
| 123 | 123 | } |
| r2241 | r2242 | |
|---|---|---|
| 1 | 1 | /* Namco System NA1/2 Video Hardware */ |
| 2 | 2 | |
| 3 | /* | |
| 4 | TODO: | |
| 5 | - dynamic screen resolution | |
| 6 | - bg pen (or the pen of the lower tilemap?) | |
| 7 | - hook up roz tilemaps with roz enable / disable and tweak it (mainly missing offsets) | |
| 8 | - sprites with shadow bit have bad colors | |
| 9 | - check if the data&0x8000 condition in tilemaps is valid even when 4bpp mode it's used | |
| 10 | - namco logo in emeralda demo is missing (it's used with a roz effect) | |
| 11 | - invisible dolphin sprite in emeralda instruction screen | |
| 12 | */ | |
| 13 | ||
| 3 | 14 | #include "driver.h" |
| 4 | #include "deprecat.h" | |
| 5 | 15 | #include "namcona1.h" |
| 6 | 16 | |
| 7 | 17 | #define NAMCONA1_NUM_TILEMAPS 4 |
| r2241 | r2242 | |
| 22 | 32 | static int palette_is_dirty; |
| 23 | 33 | |
| 24 | 34 | static void tilemap_get_info( |
| 25 | running_machine *machine,tile_data *tileinfo,int tile_index,const UINT16 *tilemap_videoram,int tilemap_color ) | |
| 35 | running_machine *machine,tile_data *tileinfo,int tile_index,const UINT16 *tilemap_videoram,int tilemap_color,int use_4bpp_gfx ) | |
| 26 | 36 | { |
| 27 | 37 | #ifdef LSB_FIRST |
| 28 | 38 | UINT16 *source; |
| r2241 | r2242 | |
| 31 | 41 | |
| 32 | 42 | int data = tilemap_videoram[tile_index]; |
| 33 | 43 | int tile = data&0xfff; |
| 44 | int gfx; | |
| 34 | 45 | |
| 35 | if( | |
| 46 | if( use_4bpp_gfx | |
| 36 | 47 | { |
| 37 | SET_TILE_INFO( 0,tile,tilemap_color,TILE_FORCE_LAYER0 ); | |
| 48 | gfx = 1; | |
| 49 | tilemap_color *= 0x10; | |
| 50 | tilemap_color += (data & 0x7000)>>12; | |
| 38 | 51 | } |
| 39 | 52 | else |
| 40 | 53 | { |
| 41 | SET_TILE_INFO( 0,tile,tilemap_color,0 ); | |
| 54 | gfx = 0; | |
| 55 | } | |
| 56 | ||
| 57 | if( data & 0x8000 ) | |
| 58 | { | |
| 59 | SET_TILE_INFO( gfx,tile,tilemap_color,TILE_FORCE_LAYER0 ); | |
| 60 | } | |
| 61 | else | |
| 62 | { | |
| 63 | SET_TILE_INFO( gfx,tile,tilemap_color,0 ); | |
| 42 | 64 | #ifdef LSB_FIRST |
| 43 | 65 | source = shaperam+4*tile; |
| 44 | 66 | mask_data[0] = source[0]>>8; |
| r2241 | r2242 | |
| 56 | 78 | } |
| 57 | 79 | } /* tilemap_get_info */ |
| 58 | 80 | |
| 59 | static TILE_GET_INFO( tilemap_get_info0 ){ tilemap_get_info(machine,tileinfo,tile_index,0*0x1000+videoram16,tilemap_palette_bank[0]); } | |
| 60 | static TILE_GET_INFO( tilemap_get_info1 ){ tilemap_get_info(machine,tileinfo,tile_index,1*0x1000+videoram16,tilemap_palette_bank[1]); } | |
| 61 | static TILE_GET_INFO( tilemap_get_info2 ){ tilemap_get_info(machine,tileinfo,tile_index,2*0x1000+videoram16,tilemap_palette_bank[2]); } | |
| 62 | static TILE_GET_INFO( tilemap_get_info3 ){ tilemap_get_info(machine,tileinfo,tile_index,3*0x1000+videoram16,tilemap_palette_bank[3]); } | |
| 81 | static TILE_GET_INFO( tilemap_get_info0 ){ tilemap_get_info(machine,tileinfo,tile_index,0*0x1000+videoram16,tilemap_palette_bank[0],namcona1_vreg[0x58+6]&1); } | |
| 82 | static TILE_GET_INFO( tilemap_get_info1 ){ tilemap_get_info(machine,tileinfo,tile_index,1*0x1000+videoram16,tilemap_palette_bank[1],namcona1_vreg[0x58+6]&2); } | |
| 83 | static TILE_GET_INFO( tilemap_get_info2 ){ tilemap_get_info(machine,tileinfo,tile_index,2*0x1000+videoram16,tilemap_palette_bank[2],namcona1_vreg[0x58+6]&4); } | |
| 84 | static TILE_GET_INFO( tilemap_get_info3 ){ tilemap_get_info(machine,tileinfo,tile_index,3*0x1000+videoram16,tilemap_palette_bank[3],namcona1_vreg[0x58+6]&8); } | |
| 63 | 85 | |
| 64 | 86 | /*************************************************************************/ |
| 65 | 87 | |
| r2241 | r2242 | |
| 98 | 120 | if( namcona1_vreg[0x8e/2] ) |
| 99 | 121 | { |
| 100 | 122 | /* graphics enabled; update palette immediately */ |
| 101 | UpdatePalette( | |
| 123 | UpdatePalette(machine, offset ); | |
| 102 | 124 | } |
| 103 | 125 | else |
| 104 | 126 | { |
| r2241 | r2242 | |
| 123 | 145 | 8*8 |
| 124 | 146 | }; /* shape_layout */ |
| 125 | 147 | |
| 126 | static const gfx_layout cg_layout = | |
| 148 | static const gfx_layout cg_layout_8bpp = | |
| 127 | 149 | { |
| 128 | 150 | 8,8, |
| 129 | 151 | 0x1000, |
| r2241 | r2242 | |
| 136 | 158 | #endif |
| 137 | 159 | { 64*0,64*1,64*2,64*3,64*4,64*5,64*6,64*7 }, |
| 138 | 160 | 64*8 |
| 139 | }; /* cg_layout */ | |
| 161 | }; /* cg_layout_8bpp */ | |
| 140 | 162 | |
| 163 | static const gfx_layout cg_layout_4bpp = | |
| 164 | { | |
| 165 | 8,8, | |
| 166 | 0x1000, | |
| 167 | 4, /* 4BPP */ | |
| 168 | { 4,5,6,7 }, | |
| 169 | #ifdef LSB_FIRST | |
| 170 | { 8*1,8*0,8*3,8*2,8*5,8*4,8*7,8*6 }, | |
| 171 | #else | |
| 172 | { 8*0,8*1,8*2,8*3,8*4,8*5,8*6,8*7 }, | |
| 173 | #endif | |
| 174 | { 64*0,64*1,64*2,64*3,64*4,64*5,64*6,64*7 }, | |
| 175 | 64*8 | |
| 176 | }; /* cg_layout_4bpp */ | |
| 177 | ||
| 141 | 178 | READ16_HANDLER( namcona1_gfxram_r ) |
| 142 | 179 | { |
| 143 | 180 | UINT16 type = namcona1_vreg[0x0c/2]; |
| r2241 | r2242 | |
| 209 | 246 | { |
| 210 | 247 | dirtychar[i] = 0; |
| 211 | 248 | decodechar(machine->gfx[0],i,(UINT8 *)cgram); |
| 212 | decodechar(machine->gfx[1],i,(UINT8 *)shaperam); | |
| 249 | decodechar(machine->gfx[1],i,(UINT8 *)cgram); | |
| 250 | decodechar(machine->gfx[2],i,(UINT8 *)shaperam); | |
| 213 | 251 | } |
| 214 | 252 | } |
| 215 | 253 | dirtygfx = 0; |
| r2241 | r2242 | |
| 219 | 257 | VIDEO_START( namcona1 ) |
| 220 | 258 | { |
| 221 | 259 | int i; |
| 222 | gfx_element *gfx0,*gfx1; | |
| 260 | gfx_element *gfx0,*gfx1,*gfx2; | |
| 223 | 261 | static const tile_get_info_func get_info[4] = |
| 224 | 262 | { tilemap_get_info0, tilemap_get_info1, tilemap_get_info2, tilemap_get_info3 }; |
| 225 | 263 | |
| r2241 | r2242 | |
| 237 | 275 | cgram = auto_malloc( 0x1000*0x20*2 ); |
| 238 | 276 | dirtychar = auto_malloc( 0x1000 ); |
| 239 | 277 | |
| 240 | gfx0 = allocgfx( &cg_layout ); | |
| 241 | gfx1 = allocgfx( &shape_layout ); | |
| 278 | gfx0 = allocgfx( &cg_layout_8bpp ); | |
| 279 | gfx1 = allocgfx( &cg_layout_4bpp ); | |
| 280 | gfx2 = allocgfx( &shape_layout ); | |
| 242 | 281 | gfx0->total_colors = machine->config->total_colors/256; |
| 243 | 282 | machine->gfx[0] = gfx0; |
| 244 | 283 | |
| 245 | gfx1->total_colors = machine->config->total_colors/ | |
| 284 | gfx1->total_colors = machine->config->total_colors/16; | |
| 246 | 285 | machine->gfx[1] = gfx1; |
| 286 | ||
| 287 | gfx2->total_colors = machine->config->total_colors/2; | |
| 288 | machine->gfx[2] = gfx2; | |
| 247 | 289 | } /* namcona1_vh_start */ |
| 248 | 290 | |
| 249 | 291 | /*************************************************************************/ |
| 250 | 292 | |
| 251 | static void pdraw_masked_tile(running_machine *machine, | |
| 252 | bitmap_t *bitmap, | |
| 253 | const rectangle *cliprect, | |
| 254 | unsigned code, | |
| 293 | static void pdraw_tile(running_machine *machine, | |
| 294 | bitmap_t *dest_bmp, | |
| 295 | const rectangle *clip, | |
| 296 | UINT32 code, | |
| 255 | 297 | int color, |
| 256 | 298 | int sx, int sy, |
| 257 | 299 | int flipx, int flipy, |
| 258 | 300 | int priority, |
| 259 | int bShadow ) | |
| 301 | int bShadow, | |
| 302 | int bOpaque, | |
| 303 | int gfx_region ) | |
| 260 | 304 | { |
| 261 | const gfx_element *gfx,*mask; | |
| 262 | pen_t pen_base; | |
| 263 | UINT8 *gfx_addr; | |
| 264 | int gfx_pitch; | |
| 265 | UINT8 *mask_addr; | |
| 266 | int mask_pitch; | |
| 267 | int x,y; | |
| 305 | const gfx_element *gfx = machine->gfx[gfx_region]; | |
| 306 | const gfx_element *mask = machine->gfx[2]; | |
| 268 | 307 | |
| 269 | /* | |
| 270 | * custom blitter for drawing a masked 8x8x8BPP tile | |
| 271 | */ | |
| 272 | if( sx > cliprect->min_x-8 && | |
| 273 | sy > cliprect->min_y-8 && | |
| 274 | sx <= cliprect->max_x && | |
| 275 | sy <= cliprect->max_y ) /* all-or-nothing clip */ | |
| 308 | int pal_base = gfx->color_base + gfx->color_granularity * (color % gfx->total_colors); | |
| 309 | UINT8 *source_base = gfx->gfxdata + (code % gfx->total_elements) * gfx->char_modulo; | |
| 310 | UINT8 *mask_base = mask->gfxdata + (code % mask->total_elements) * mask->char_modulo; | |
| 311 | ||
| 312 | int sprite_screen_height = ((1<<16)*gfx->height+0x8000)>>16; | |
| 313 | int sprite_screen_width = ((1<<16)*gfx->width+0x8000)>>16; | |
| 314 | ||
| 315 | if (sprite_screen_width && sprite_screen_height) | |
| 276 | 316 | { |
| 277 | gfx = machine->gfx[0]; | |
| 278 | mask = machine->gfx[1]; | |
| 279 | code %= gfx->total_elements; | |
| 280 | color %= gfx->total_colors; | |
| 281 | pen_base = gfx->color_base + gfx->color_granularity * color; | |
| 282 | gfx_addr = gfx->gfxdata + code * gfx->char_modulo; | |
| 283 | gfx_pitch = gfx->line_modulo; | |
| 284 | mask_addr = mask->gfxdata + code * mask->char_modulo; | |
| 285 | mask_pitch = mask->line_modulo; | |
| 317 | /* compute sprite increment per screen pixel */ | |
| 318 | int dx = (gfx->width<<16)/sprite_screen_width; | |
| 319 | int dy = (gfx->height<<16)/sprite_screen_height; | |
| 286 | 320 | |
| 287 | /* The way we render shadows makes some Emeralda text invisible. | |
| 288 | * The relevant text is composed of sprites with the shadow bit set, | |
| 289 | * displayed over a black backdrop. | |
| 290 | */ | |
| 291 | if( bShadow && namcona1_gametype!=NAMCO_EMERALDA ) | |
| 321 | int ex = sx+sprite_screen_width; | |
| 322 | int ey = sy+sprite_screen_height; | |
| 323 | ||
| 324 | int x_index_base; | |
| 325 | int y_index; | |
| 326 | ||
| 327 | if( flipx ) | |
| 292 | 328 | { |
| 293 | for( y=0; y<8; y++ ) | |
| 329 | x_index_base = (sprite_screen_width-1)*dx; | |
| 330 | dx = -dx; | |
| 331 | } | |
| 332 | else | |
| 333 | { | |
| 334 | x_index_base = 0; | |
| 335 | } | |
| 336 | ||
| 337 | if( flipy ) | |
| 338 | { | |
| 339 | y_index = (sprite_screen_height-1)*dy; | |
| 340 | dy = -dy; | |
| 341 | } | |
| 342 | else | |
| 343 | { | |
| 344 | y_index = 0; | |
| 345 | } | |
| 346 | ||
| 347 | if( clip ) | |
| 348 | { | |
| 349 | if( sx < clip->min_x) | |
| 350 | { /* clip left */ | |
| 351 | int pixels = clip->min_x-sx; | |
| 352 | sx += pixels; | |
| 353 | x_index_base += pixels*dx; | |
| 354 | } | |
| 355 | if( sy < clip->min_y ) | |
| 356 | { /* clip top */ | |
| 357 | int pixels = clip->min_y-sy; | |
| 358 | sy += pixels; | |
| 359 | y_index += pixels*dy; | |
| 360 | } | |
| 361 | /* NS 980211 - fixed incorrect clipping */ | |
| 362 | if( ex > clip->max_x+1 ) | |
| 363 | { /* clip right */ | |
| 364 | int pixels = ex-clip->max_x-1; | |
| 365 | ex -= pixels; | |
| 366 | } | |
| 367 | if( ey > clip->max_y+1 ) | |
| 368 | { /* clip bottom */ | |
| 369 | int pixels = ey-clip->max_y-1; | |
| 370 | ey -= pixels; | |
| 371 | } | |
| 372 | } | |
| 373 | ||
| 374 | if( ex>sx ) | |
| 375 | { /* skip if inner loop doesn't draw anything */ | |
| 376 | int y; | |
| 377 | ||
| 378 | for( y=sy; y<ey; y++ ) | |
| 294 | 379 | { |
| 295 | int ypos = sy+(flipy?7-y:y); | |
| 296 | if (ypos >= cliprect->min_y && ypos <= cliprect->max_y) | |
| 380 | UINT8 *source = source_base + (y_index>>16) * gfx->line_modulo; | |
| 381 | UINT8 *mask_addr = mask_base + (y_index>>16) * mask->line_modulo; | |
| 382 | UINT16 *dest = BITMAP_ADDR16(dest_bmp, y, 0); | |
| 383 | UINT8 *pri = BITMAP_ADDR8(priority_bitmap, y, 0); | |
| 384 | ||
| 385 | int x, x_index = x_index_base; | |
| 386 | for( x=sx; x<ex; x++ ) | |
| 297 | 387 | { |
| 298 | UINT8 *pri = BITMAP_ADDR8(priority_bitmap, ypos, 0); | |
| 299 | UINT16 *dest = BITMAP_ADDR16(bitmap, ypos, 0); | |
| 300 | if( flipx ) | |
| 388 | if( bOpaque ) | |
| 301 | 389 | { |
| 302 | dest += sx+7; | |
| 303 | pri += sx+7; | |
| 304 | for( x=0; x<8; x++ ) | |
| 305 | if (sx+x >= cliprect->min_x && sx+x <= cliprect->max_x) | |
| 306 | { | |
| 307 | if( mask_addr[x] ) | |
| 308 | { /* sprite pixel is opaque */ | |
| 309 | if( priority>=pri[-x] ) | |
| 310 | { | |
| 311 | dest[-x] |= 0x1000; | |
| 312 | } | |
| 313 | pri[-x] = 0xff; | |
| 314 | } | |
| 315 | } | |
| 390 | if (pri[x] <= priority) | |
| 391 | { | |
| 392 | int c = source[x_index>>16]; | |
| 393 | dest[x] = pal_base + c; | |
| 394 | } | |
| 395 | ||
| 396 | pri[x] = 0xff; | |
| 316 | 397 | } |
| 317 | 398 | else |
| 318 | 399 | { |
| 319 | dest += sx; | |
| 320 | pri += sx; | |
| 321 | for( x=0; x<8; x++ ) | |
| 322 | if (sx+x >= cliprect->min_x && sx+x <= cliprect->max_x) | |
| 400 | /* sprite pixel is opaque */ | |
| 401 | if( mask_addr[x_index>>16] != 0 ) | |
| 402 | { | |
| 403 | if (pri[x] <= priority) | |
| 323 | 404 | { |
| 324 | if( mask_addr[x] ) | |
| 325 | { /* sprite pixel is opaque */ | |
| 326 | if( priority>=pri[x] ) | |
| 327 | { | |
| 328 | dest[x] |= 0x1000; | |
| 329 | } | |
| 330 | pri[x] = 0xff; | |
| 405 | int c = source[x_index>>16]; | |
| 406 | ||
| 407 | /* render a shadow only if the sprites color is $F (8bpp) or $FF (4bpp) */ | |
| 408 | if( bShadow && ((gfx_region == 0 && color == 0x0f) || (gfx_region == 1 && color == 0xff))) | |
| 409 | { | |
| 410 | pen_t *palette_shadow_table = machine->shadow_table; | |
| 411 | dest[x] = palette_shadow_table[dest[x]]; | |
| 331 | 412 | } |
| 332 | } | |
| 333 | } | |
| 334 | } | |
| 335 | mask_addr += mask_pitch; | |
| 336 | } | |
| 337 | } /* render translucent sprite */ | |
| 338 | else | |
| 339 | { | |
| 340 | for( y=0; y<8; y++ ) | |
| 341 | { | |
| 342 | int ypos = sy+(flipy?7-y:y); | |
| 343 | if (ypos >= cliprect->min_y && ypos <= cliprect->max_y) | |
| 344 | { | |
| 345 | UINT8 *pri = BITMAP_ADDR8(priority_bitmap, ypos, 0); | |
| 346 | UINT16 *dest = BITMAP_ADDR16(bitmap, ypos, 0); | |
| 347 | if( flipx ) | |
| 348 | { | |
| 349 | dest += sx+7; | |
| 350 | pri += sx+7; | |
| 351 | for( x=0; x<8; x++ ) | |
| 352 | if (sx-x >= cliprect->min_x && sx-x <= cliprect->max_x) | |
| 353 | { | |
| 354 | if( mask_addr[x] ) | |
| 355 | { /* sprite pixel is opaque */ | |
| 356 | if( priority>=pri[-x] ) | |
| 357 | { | |
| 358 | dest[-x] = pen_base + gfx_addr[x]; | |
| 359 | } | |
| 360 | pri[-x] = 0xff; | |
| 413 | else | |
| 414 | { | |
| 415 | dest[x] = pal_base + c; | |
| 361 | 416 | } |
| 362 | 417 | } |
| 418 | ||
| 419 | pri[x] = 0xff; | |
| 420 | } | |
| 363 | 421 | } |
| 364 | else | |
| 365 | { | |
| 366 | dest += sx; | |
| 367 | pri += sx; | |
| 368 | for( x=0; x<8; x++ ) | |
| 369 | if (sx+x >= cliprect->min_x && sx+x <= cliprect->max_x) | |
| 370 | { | |
| 371 | if( mask_addr[x] ) | |
| 372 | { /* sprite pixel is opaque */ | |
| 373 | if( priority>=pri[x] ) | |
| 374 | { | |
| 375 | dest[x] = pen_base + gfx_addr[x]; | |
| 376 | } | |
| 377 | pri[x] = 0xff; | |
| 378 | } | |
| 379 | } /* next x */ | |
| 380 | } /* !flipx */ | |
| 422 | ||
| 423 | x_index += dx; | |
| 381 | 424 | } |
| 382 | gfx_addr += gfx_pitch; | |
| 383 | mask_addr += mask_pitch; | |
| 384 | } /* next y */ | |
| 385 | } /* render normal sprite (no translucency) */ | |
| 386 | } | |
| 387 | } /* pdraw_masked_tile */ | |
| 388 | 425 | |
| 389 | static void pdraw_opaque_tile(running_machine *machine, | |
| 390 | bitmap_t *bitmap, | |
| 391 | const rectangle *cliprect, | |
| 392 | unsigned code, | |
| 393 | int color, | |
| 394 | int sx, int sy, | |
| 395 | int flipx, int flipy, | |
| 396 | int priority, | |
| 397 | int bShadow ) | |
| 398 | { | |
| 399 | const gfx_element *gfx; | |
| 400 | pen_t pen_base; | |
| 401 | UINT8 *gfx_addr; | |
| 402 | int gfx_pitch; | |
| 403 | int x,y; | |
| 404 | int ypos; | |
| 405 | UINT8 *pri; | |
| 406 | UINT16 *dest; | |
| 407 | ||
| 408 | if( sx > cliprect->min_x-8 && | |
| 409 | sy > cliprect->min_y-8 && | |
| 410 | sx <= cliprect->max_x && | |
| 411 | sy <= cliprect->max_y ) /* all-or-nothing clip */ | |
| 412 | { | |
| 413 | gfx = machine->gfx[0]; | |
| 414 | code %= gfx->total_elements; | |
| 415 | color %= gfx->total_colors; | |
| 416 | pen_base = gfx->color_base + gfx->color_granularity * color; | |
| 417 | gfx_addr = gfx->gfxdata + code * gfx->char_modulo; | |
| 418 | gfx_pitch = gfx->line_modulo; | |
| 419 | ||
| 420 | for( y=0; y<8; y++ ) | |
| 421 | { | |
| 422 | ypos = sy+(flipy?7-y:y); | |
| 423 | if (ypos >= cliprect->min_y && ypos <= cliprect->max_y) | |
| 424 | { | |
| 425 | pri = BITMAP_ADDR8(priority_bitmap, ypos, 0); | |
| 426 | dest = BITMAP_ADDR16(bitmap, ypos, 0); | |
| 427 | if( flipx ) | |
| 428 | { | |
| 429 | dest += sx+7; | |
| 430 | pri += sx+7; | |
| 431 | for( x=0; x<8; x++ ) | |
| 432 | if (sx-x >= cliprect->min_x && sx-x <= cliprect->max_x) | |
| 433 | { | |
| 434 | if( priority>=pri[-x] ) | |
| 435 | { | |
| 436 | dest[-x] = pen_base + gfx_addr[x]; | |
| 437 | } | |
| 438 | pri[-x] = 0xff; | |
| 439 | } | |
| 440 | } | |
| 441 | else | |
| 442 | { | |
| 443 | dest += sx; | |
| 444 | pri += sx; | |
| 445 | for( x=0; x<8; x++ ) | |
| 446 | if (sx+x >= cliprect->min_x && sx+x <= cliprect->max_x) | |
| 447 | { | |
| 448 | if( priority>=pri[x] ) | |
| 449 | { | |
| 450 | dest[x] = pen_base + gfx_addr[x]; | |
| 451 | } | |
| 452 | pri[x] = 0xff; | |
| 453 | } /* next x */ | |
| 454 | } /* !flipx */ | |
| 426 | y_index += dy; | |
| 455 | 427 | } |
| 456 | gfx_addr += gfx_pitch; | |
| 457 | } /* next y */ | |
| 428 | } | |
| 458 | 429 | } |
| 459 | } /* pdraw_ | |
| 430 | } /* pdraw_ | |
| 460 | 431 | |
| 461 | static const UINT8 pri_mask[8] = { 0x00,0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f }; | |
| 462 | ||
| 463 | 432 | static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) |
| 464 | 433 | { |
| 465 | 434 | int which; |
| 466 | 435 | const UINT16 *source = spriteram16; |
| 467 | void (*drawtile)(running_machine *, | |
| 468 | bitmap_t *, | |
| 469 | const rectangle *, | |
| 470 | unsigned code, | |
| 471 | int color, | |
| 472 | int sx, int sy, | |
| 473 | int flipx, int flipy, | |
| 474 | int priority, | |
| 475 | int bShadow ); | |
| 476 | 436 | UINT16 sprite_control; |
| 477 | 437 | UINT16 ypos,tile,color,xpos; |
| 478 | 438 | int priority; |
| r2241 | r2242 | |
| 486 | 446 | |
| 487 | 447 | for( which=0; which<0x100; which++ ) |
| 488 | 448 | { /* max 256 sprites */ |
| 489 | ypos = source[0]; /* FHHH--- | |
| 449 | ypos = source[0]; /* FHHH---Y YYYYYYYY flipy, height, ypos */ | |
| 490 | 450 | tile = source[1]; /* O???TTTT TTTTTTTT opaque tile */ |
| 491 | color = source[2]; /* FSWW | |
| 451 | color = source[2]; /* FSWWOOOO CCCCBPPP flipx, shadow, width, color offset for 4bpp, color, 4bbp - 8bpp mode, pri*/ | |
| 492 | 452 | xpos = source[3]; /* -------X XXXXXXXX xpos */ |
| 493 | 453 | |
| 494 | priority = | |
| 454 | priority = | |
| 495 | 455 | width = ((color>>12)&0x3)+1; |
| 496 | 456 | height = ((ypos>>12)&0x7)+1; |
| 497 | 457 | flipy = ypos&0x8000; |
| 498 | 458 | flipx = color&0x8000; |
| 499 | 459 | |
| 500 | if( (tile&0x8000)==0 ) | |
| 501 | { | |
| 502 | drawtile = pdraw_masked_tile; | |
| 503 | } | |
| 504 | else | |
| 505 | { | |
| 506 | drawtile = pdraw_opaque_tile; | |
| 507 | } | |
| 508 | 460 | for( row=0; row<height; row++ ) |
| 509 | 461 | { |
| 510 | 462 | sy = (ypos&0x1ff)-30+32; |
| r2241 | r2242 | |
| 527 | 479 | { |
| 528 | 480 | sx+=col*8; |
| 529 | 481 | } |
| 530 | drawtile(machine, | |
| 531 | bitmap, | |
| 532 | cliprect, | |
| 533 | tile + row*64+col, | |
| 534 | (color>>4)&0xf, | |
| 535 | ((sx+16)&0x1ff)-8, | |
| 536 | ((sy+8)&0x1ff)-8, | |
| 537 | flipx,flipy, | |
| 538 | priority, | |
| 539 | color&0x4000 /* shadow */ ); | |
| 482 | ||
| 483 | if(color & 8) | |
| 484 | { | |
| 485 | pdraw_tile(machine, | |
| 486 | bitmap, | |
| 487 | cliprect, | |
| 488 | (tile & 0xfff) + row*64+col, | |
| 489 | ((color>>4)&0xf) * 0x10 + ((color & 0xf00) >> 8), | |
| 490 | ((sx+16)&0x1ff)-8, | |
| 491 | ((sy+8)&0x1ff)-8, | |
| 492 | flipx,flipy, | |
| 493 | priority, | |
| 494 | color & 0x4000, /* shadow */ | |
| 495 | tile & 0x8000, /* opaque */ | |
| 496 | 1 /* 4bpp gfx */ ); | |
| 497 | } | |
| 498 | else | |
| 499 | { | |
| 500 | pdraw_tile(machine, | |
| 501 | bitmap, | |
| 502 | cliprect, | |
| 503 | (tile & 0xfff) + row*64+col, | |
| 504 | (color>>4)&0xf, | |
| 505 | ((sx+16)&0x1ff)-8, | |
| 506 | ((sy+8)&0x1ff)-8, | |
| 507 | flipx,flipy, | |
| 508 | priority, | |
| 509 | color & 0x4000, /* shadow */ | |
| 510 | tile & 0x8000, /* opaque */ | |
| 511 | 0 /* 8bpp gfx */ ); | |
| 512 | } | |
| 513 | ||
| 540 | 514 | } /* next col */ |
| 541 | 515 | } /* next row */ |
| 542 | 516 | source += 4; |
| r2241 | r2242 | |
| 616 | 590 | { |
| 617 | 591 | tilemap_set_scrollx( bg_tilemap[which], 0, scrollx ); |
| 618 | 592 | tilemap_set_scrolly( bg_tilemap[which], 0, scrolly ); |
| 619 | tilemap_draw( bitmap, &clip, bg_tilemap[which], 0, primask ); | |
| 593 | tilemap_draw_primask( bitmap, &clip, bg_tilemap[which], 0, primask, 0 ); | |
| 594 | ||
| 595 | #if 0 | |
| 596 | INT16 incxy, incyx, incxx, incyy; | |
| 597 | INT16 xoffset, yoffset; | |
| 598 | UINT32 startx,starty; | |
| 599 | ||
| 600 | incxx = (INT16)namcona1_vreg[0xc0/2]; // or incyy ? | |
| 601 | incxy = (INT16)namcona1_vreg[0xc2/2]; | |
| 602 | incyx = (INT16)namcona1_vreg[0xc4/2]; | |
| 603 | incyy = (INT16)namcona1_vreg[0xc6/2]; // or incxx ? | |
| 604 | xoffset = namcona1_vreg[0xc8/2]; | |
| 605 | yoffset = namcona1_vreg[0xca/2]; | |
| 606 | //namcona1_vreg[0xcc/2]; // ? | |
| 607 | ||
| 608 | startx = ((xoffset + a) << 12); | |
| 609 | starty = ((yoffset + b) << 12); | |
| 610 | ||
| 611 | popmessage("scrollx = %x - scrolly = %x - xo = %d - yo = %d",scrollx,scrolly,xoffset,yoffset); | |
| 612 | ||
| 613 | tilemap_draw_roz_primask(bitmap, &clip, bg_tilemap[which], | |
| 614 | startx , starty , | |
| 615 | incxx << 8, incxy << 8, incyx << 8, incyy << 8, | |
| 616 | 0, 0, primask, 0); | |
| 617 | #endif | |
| 618 | ||
| 620 | 619 | } |
| 621 | 620 | } |
| 622 | 621 | } |
| r2241 | r2242 | |
| 651 | 650 | } |
| 652 | 651 | } /* next tilemap */ |
| 653 | 652 | fillbitmap( priority_bitmap,0,cliprect ); |
| 654 | fillbitmap( bitmap,0,cliprect ); | |
| 653 | ||
| 654 | // It fixes bg in emeralda | |
| 655 | fillbitmap( bitmap,/* 0 */ 0xff,cliprect ); | |
| 656 | ||
| 655 | 657 | for( priority = 0; priority<8; priority++ ) |
| 656 | 658 | { |
| 657 | 659 | for( which=NAMCONA1_NUM_TILEMAPS-1; which>=0; which-- ) |
| 658 | 660 | { |
| 659 | 661 | if( (namcona1_vreg[0x50+which]&0x7) == priority ) |
| 660 | 662 | { |
| 661 | draw_background(screen->machine,bitmap,cliprect,which,pri | |
| 663 | draw_background(screen->machine,bitmap,cliprect,which,pri | |
| 662 | 664 | } |
| 663 | 665 | } /* next tilemap */ |
| 664 | 666 | } /* next priority level */ |
| r2241 | r2242 | |
|---|---|---|
| 167 | 167 | |
| 168 | 168 | WRITE16_HANDLER( terraf_fg_scrollx_w ) |
| 169 | 169 | { |
| 170 | if (ACCESSING_ | |
| 170 | if (ACCESSING_ | |
| 171 | 171 | { |
| 172 | 172 | armedf_fg_scrollx = data >> 8; |
| 173 | 173 | waiting_msb = 1; |
| r2241 | r2242 | |
| 176 | 176 | |
| 177 | 177 | WRITE16_HANDLER( terraf_fg_scrolly_w ) |
| 178 | 178 | { |
| 179 | if (ACCESSING_ | |
| 179 | if (ACCESSING_ | |
| 180 | 180 | { |
| 181 | 181 | if (waiting_msb) |
| 182 | 182 | terraf_scroll_msb = data >> 8; |
| r2241 | r2242 | |
| 187 | 187 | |
| 188 | 188 | WRITE16_HANDLER( terraf_fg_scroll_msb_arm_w ) |
| 189 | 189 | { |
| 190 | if (ACCESSING_ | |
| 190 | if (ACCESSING_ | |
| 191 | 191 | waiting_msb = 0; |
| 192 | 192 | } |
| 193 | 193 |
| r2241 | r2242 | |
|---|---|---|
| 694 | 694 | switch (offset) |
| 695 | 695 | { |
| 696 | 696 | case 0: |
| 697 | if (ACCESSING_ | |
| 697 | if (ACCESSING_ | |
| 698 | 698 | { |
| 699 | 699 | kaneko16_sprite_flipx = new_data & 2; |
| 700 | 700 | kaneko16_sprite_flipy = new_data & 1; |
| r2241 | r2242 | |
|---|---|---|
| 220 | 220 | |
| 221 | 221 | WRITE32_HANDLER( ms32_gfxctrl_w ) |
| 222 | 222 | { |
| 223 | if (ACCESSING_ | |
| 223 | if (ACCESSING_ | |
| 224 | 224 | { |
| 225 | 225 | /* bit 1 = flip screen */ |
| 226 | 226 | flipscreen = data & 0x02; |
| r2241 | r2242 | |
|---|---|---|
| 92 | 92 | |
| 93 | 93 | drawgfx(bitmap, machine->gfx[2], |
| 94 | 94 | code + layout[row][col], |
| 95 | color, | |
| 95 | machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity, | |
| 96 | 96 | flipx, flipy, |
| 97 | 97 | x, y, |
| 98 | cliprect, TRANSPARENCY_PEN, 0); | |
| 98 | cliprect, TRANSPARENCY_PEN_RAW, 0); | |
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | |
| r2241 | r2242 | |
| 135 | 135 | |
| 136 | 136 | drawgfx(tile_bitmap_bg, screen->machine->gfx[1], |
| 137 | 137 | code, |
| 138 | color, | |
| 138 | screen->machine->gfx[1]->color_base + color * screen->machine->gfx[1]->color_granularity, | |
| 139 | 139 | 0, 0, |
| 140 | 140 | 16 * sx, 8 * sy, |
| 141 | cliprect, TRANSPARENCY_ | |
| 141 | cliprect, TRANSPARENCY_P | |
| 142 | 142 | |
| 143 | 143 | sx++; |
| 144 | 144 | if (sx > 63) |
| r2241 | r2242 | |
| 162 | 162 | |
| 163 | 163 | drawgfx(tile_bitmap_bg, screen->machine->gfx[1], |
| 164 | 164 | code, |
| 165 | color, | |
| 165 | screen->machine->gfx[1]->color_base + color * screen->machine->gfx[1]->color_granularity, | |
| 166 | 166 | 0, 0, |
| 167 | 167 | 16 * sx, 8 * sy, |
| 168 | cliprect, TRANSPARENCY_PEN, 0); | |
| 168 | cliprect, TRANSPARENCY_PEN_RAW, 0); | |
| 169 | 169 | |
| 170 | 170 | sx++; |
| 171 | 171 | if (sx > 63) |
| r2241 | r2242 | |
| 196 | 196 | |
| 197 | 197 | drawgfx(tile_bitmap_fg, screen->machine->gfx[0], |
| 198 | 198 | code, |
| 199 | color, | |
| 199 | screen->machine->gfx[0]->color_base + color * screen->machine->gfx[0]->color_granularity, | |
| 200 | 200 | 0, 0, |
| 201 | 201 | 16 * sx, 8 * sy, |
| 202 | cliprect, TRANSPARENCY_PEN, 0); | |
| 202 | cliprect, TRANSPARENCY_PEN_RAW, 0); | |
| 203 | 203 | |
| 204 | 204 | sx++; |
| 205 | 205 | if (sx > 63) |
| r2241 | r2242 | |
|---|---|---|
| 95 | 95 | |
| 96 | 96 | COMBINE_DATA (&TC0180VCU_ctrl[offset]); |
| 97 | 97 | |
| 98 | if (ACCESSING_ | |
| 98 | if (ACCESSING_ | |
| 99 | 99 | { |
| 100 | 100 | switch(offset) |
| 101 | 101 | { |
| r2241 | r2242 | |
| 143 | 143 | |
| 144 | 144 | COMBINE_DATA(&taitob_pixelram[offset]); |
| 145 | 145 | |
| 146 | if (ACCESSING_ | |
| 146 | if (ACCESSING_ | |
| 147 | 147 | { |
| 148 | 148 | /* bit 15 of pixel_scroll[0] is probably flip screen */ |
| 149 | 149 | |
| r2241 | r2242 | |
| 320 | 320 | int sy = offset >> 8; |
| 321 | 321 | int sx = 2*(offset & 0xff); |
| 322 | 322 | |
| 323 | if (ACCESSING_ | |
| 323 | if (ACCESSING_ | |
| 324 | 324 | *BITMAP_ADDR16(framebuffer[sy >> 8], sy & 0xff, sx + 0) = data >> 8; |
| 325 | if (ACCESSING_ | |
| 325 | if (ACCESSING_ | |
| 326 | 326 | *BITMAP_ADDR16(framebuffer[sy >> 8], sy & 0xff, sx + 1) = data & 0xff; |
| 327 | 327 | } |
| 328 | 328 |
| r2241 | r2242 | |
|---|---|---|
| 2615 | 2615 | |
| 2616 | 2616 | WRITE32_HANDLER( TC0100SCN_ctrl_long_w ) |
| 2617 | 2617 | { |
| 2618 | if (ACCESSING_MSW32) TC0100SCN_ctrl_word_w(0,offset*2,data>>16,mem_mask>>16); | |
| 2619 | if (ACCESSING_LSW32) TC0100SCN_ctrl_word_w(0,(offset*2)+1,data&0xffff,mem_mask&0xffff); | |
| 2618 | if (ACCESSING_BITS_16_31) TC0100SCN_ctrl_word_w(0,offset*2,data>>16,mem_mask>>16); | |
| 2619 | if (ACCESSING_BITS_0_15) TC0100SCN_ctrl_word_w(0,(offset*2)+1,data&0xffff,mem_mask&0xffff); | |
| 2620 | 2620 | } |
| 2621 | 2621 | |
| 2622 | 2622 | READ32_HANDLER( TC0100SCN_long_r ) |
| r2241 | r2242 | |
| 2626 | 2626 | |
| 2627 | 2627 | WRITE32_HANDLER( TC0100SCN_long_w ) |
| 2628 | 2628 | { |
| 2629 | if ( | |
| 2629 | if (ACCESSING_BITS | |
| 2630 | 2630 | { |
| 2631 | 2631 | int oldword = TC0100SCN_word_0_r(machine,offset*2,0); |
| 2632 | 2632 | int newword = data>>16; |
| 2633 | if ( | |
| 2633 | if ( | |
| 2634 | 2634 | newword |= (oldword &0x00ff); |
| 2635 | if ( | |
| 2635 | if ( | |
| 2636 | 2636 | newword |= (oldword &0xff00); |
| 2637 | 2637 | TC0100SCN_word_0_w(machine,offset*2,newword,0); |
| 2638 | 2638 | } |
| 2639 | if ( | |
| 2639 | if (ACCESSING_BITS | |
| 2640 | 2640 | { |
| 2641 | 2641 | int oldword = TC0100SCN_word_0_r(machine,(offset*2)+1,0); |
| 2642 | 2642 | int newword = data&0xffff; |
| 2643 | if ( | |
| 2643 | if (!ACCESSING_BITS_ | |
| 2644 | 2644 | newword |= (oldword &0x00ff); |
| 2645 | if ( | |
| 2645 | if ( | |
| 2646 | 2646 | newword |= (oldword &0xff00); |
| 2647 | 2647 | TC0100SCN_word_0_w(machine,(offset*2)+1,newword,0); |
| 2648 | 2648 | } |
| r2241 | r2242 | |
| 2917 | 2917 | |
| 2918 | 2918 | WRITE16_HANDLER( TC0360PRI_halfword_w ) |
| 2919 | 2919 | { |
| 2920 | if (ACCESSING_ | |
| 2920 | if (ACCESSING_ | |
| 2921 | 2921 | { |
| 2922 | 2922 | TC0360PRI_w(machine,offset,data & 0xff); |
| 2923 | 2923 | #if 0 |
| r2241 | r2242 | |
| 2931 | 2931 | |
| 2932 | 2932 | WRITE16_HANDLER( TC0360PRI_halfword_swap_w ) |
| 2933 | 2933 | { |
| 2934 | if (ACCESSING_ | |
| 2934 | if (ACCESSING_ | |
| 2935 | 2935 | { |
| 2936 | 2936 | TC0360PRI_w(machine,offset,(data >> 8) & 0xff); |
| 2937 | 2937 | #if 0 |
| r2241 | r2242 | |
| 3282 | 3282 | |
| 3283 | 3283 | WRITE32_HANDLER( TC0480SCP_ctrl_long_w ) |
| 3284 | 3284 | { |
| 3285 | if (ACCESSING_MSW32) TC0480SCP_ctrl_word_w(machine,offset*2,data>>16,mem_mask>>16); | |
| 3286 | if (ACCESSING_LSW32) TC0480SCP_ctrl_word_w(machine,(offset*2)+1,data&0xffff,mem_mask&0xffff); | |
| 3285 | if (ACCESSING_BITS_16_31) TC0480SCP_ctrl_word_w(machine,offset*2,data>>16,mem_mask>>16); | |
| 3286 | if (ACCESSING_BITS_0_15) TC0480SCP_ctrl_word_w(machine,(offset*2)+1,data&0xffff,mem_mask&0xffff); | |
| 3287 | 3287 | } |
| 3288 | 3288 | |
| 3289 | 3289 | READ32_HANDLER( TC0480SCP_long_r ) |
| r2241 | r2242 | |
| 3293 | 3293 | |
| 3294 | 3294 | WRITE32_HANDLER( TC0480SCP_long_w ) |
| 3295 | 3295 | { |
| 3296 | if ( | |
| 3296 | if (ACCESSING_BITS | |
| 3297 | 3297 | { |
| 3298 | 3298 | int oldword = TC0480SCP_word_r(machine,offset*2,0); |
| 3299 | 3299 | int newword = data>>16; |
| 3300 | if ( | |
| 3300 | if ( | |
| 3301 | 3301 | newword |= (oldword &0x00ff); |
| 3302 | if ( | |
| 3302 | if ( | |
| 3303 | 3303 | newword |= (oldword &0xff00); |
| 3304 | 3304 | TC0480SCP_word_w(machine,offset*2,newword,0); |
| 3305 | 3305 | } |
| 3306 | if ( | |
| 3306 | if (ACCESSING_BITS | |
| 3307 | 3307 | { |
| 3308 | 3308 | int oldword = TC0480SCP_word_r(machine,(offset*2)+1,0); |
| 3309 | 3309 | int newword = data&0xffff; |
| 3310 | if ( | |
| 3310 | if (!ACCESSING_BITS_ | |
| 3311 | 3311 | newword |= (oldword &0x00ff); |
| 3312 | if ( | |
| 3312 | if ( | |
| 3313 | 3313 | newword |= (oldword &0xff00); |
| 3314 | 3314 | TC0480SCP_word_w(machine,(offset*2)+1,newword,0); |
| 3315 | 3315 | } |
| r2241 | r2242 | |
| 5022 | 5022 | |
| 5023 | 5023 | WRITE16_HANDLER( TC0220IOC_halfword_port_w ) |
| 5024 | 5024 | { |
| 5025 | if (ACCESSING_ | |
| 5025 | if (ACCESSING_ | |
| 5026 | 5026 | TC0220IOC_port_w( machine, offset, data & 0xff ); |
| 5027 | 5027 | } |
| 5028 | 5028 | |
| r2241 | r2242 | |
| 5033 | 5033 | |
| 5034 | 5034 | WRITE16_HANDLER( TC0220IOC_halfword_portreg_w ) |
| 5035 | 5035 | { |
| 5036 | if (ACCESSING_ | |
| 5036 | if (ACCESSING_ | |
| 5037 | 5037 | TC0220IOC_portreg_w( machine, offset, data & 0xff ); |
| 5038 | 5038 | } |
| 5039 | 5039 | |
| r2241 | r2242 | |
| 5044 | 5044 | |
| 5045 | 5045 | WRITE16_HANDLER( TC0220IOC_halfword_byteswap_port_w ) |
| 5046 | 5046 | { |
| 5047 | if (ACCESSING_ | |
| 5047 | if (ACCESSING_ | |
| 5048 | 5048 | TC0220IOC_port_w( machine, offset, (data>>8) & 0xff ); |
| 5049 | 5049 | } |
| 5050 | 5050 | |
| r2241 | r2242 | |
| 5055 | 5055 | |
| 5056 | 5056 | WRITE16_HANDLER( TC0220IOC_halfword_byteswap_portreg_w ) |
| 5057 | 5057 | { |
| 5058 | if (ACCESSING_ | |
| 5058 | if (ACCESSING_ | |
| 5059 | 5059 | TC0220IOC_portreg_w( machine, offset, (data>>8) & 0xff ); |
| 5060 | 5060 | } |
| 5061 | 5061 | |
| r2241 | r2242 | |
| 5066 | 5066 | |
| 5067 | 5067 | WRITE16_HANDLER( TC0220IOC_halfword_w ) |
| 5068 | 5068 | { |
| 5069 | if (ACCESSING_ | |
| 5069 | if (ACCESSING_ | |
| 5070 | 5070 | TC0220IOC_w(machine,offset,data & 0xff); |
| 5071 | 5071 | else |
| 5072 | 5072 | { |
| r2241 | r2242 | |
| 5085 | 5085 | |
| 5086 | 5086 | WRITE16_HANDLER( TC0220IOC_halfword_byteswap_w ) |
| 5087 | 5087 | { |
| 5088 | if (ACCESSING_ | |
| 5088 | if (ACCESSING_ | |
| 5089 | 5089 | TC0220IOC_w(machine,offset,(data >> 8) & 0xff); |
| 5090 | 5090 | else |
| 5091 | 5091 | { |
| r2241 | r2242 | |
| 5159 | 5159 | |
| 5160 | 5160 | WRITE16_HANDLER( TC0510NIO_halfword_w ) |
| 5161 | 5161 | { |
| 5162 | if (ACCESSING_ | |
| 5162 | if (ACCESSING_ | |
| 5163 | 5163 | TC0510NIO_w(machine,offset,data & 0xff); |
| 5164 | 5164 | else |
| 5165 | 5165 | { |
| r2241 | r2242 | |
| 5242 | 5242 | |
| 5243 | 5243 | WRITE16_HANDLER( TC0640FIO_halfword_w ) |
| 5244 | 5244 | { |
| 5245 | if (ACCESSING_ | |
| 5245 | if (ACCESSING_ | |
| 5246 | 5246 | TC0640FIO_w(machine,offset,data & 0xff); |
| 5247 | 5247 | else |
| 5248 | 5248 | { |
| r2241 | r2242 | |
| 5258 | 5258 | |
| 5259 | 5259 | WRITE16_HANDLER( TC0640FIO_halfword_byteswap_w ) |
| 5260 | 5260 | { |
| 5261 | if (ACCESSING_ | |
| 5261 | if (ACCESSING_ | |
| 5262 | 5262 | TC0640FIO_w(machine,offset,(data >> 8) & 0xff); |
| 5263 | 5263 | else |
| 5264 | 5264 | { |
| r2241 | r2242 | |
|---|---|---|
| 357 | 357 | |
| 358 | 358 | VIDEO_UPDATE( pkunwar ) |
| 359 | 359 | { |
| 360 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | 0, 0); | |
| 361 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | 1, 0); | |
| 360 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES, 0); | |
| 362 | 361 | |
| 363 | 362 | pkunwar_draw_sprites(screen->machine, bitmap, cliprect); |
| 364 | 363 |
| r2241 | r2242 | |
|---|---|---|
| 20 | 20 | Street Fighter II (Japan Rev C) CPS-B-12 DL-0411-10007 C632 STF29 & IOB1 |
| 21 | 21 | Magic Sword (US) CPS-B-13 DL-0411-10008 None MS24B & IOB1 |
| 22 | 22 | Street Fighter II (Japan) CPS-B-13 DL-0411-10008 C632 STF29 & IOB1 |
| 23 | Chiki Chiki Boys / Mega Twins CPS-B-14 DL-0411-10009 ? | |
| 23 | Chiki Chiki Boys / Mega Twins CPS-B-14 DL-0411-10009 ? CK24B & IOB1 | |
| 24 | 24 | Street Fighter II (US Rev I) CPS-B-14 DL-0411-10009 C632 STF29 & IOB1 |
| 25 | 25 | Nemo CPS-B-15 DL-0411-10010 ? NM24B & ? |
| 26 | 26 | Carrier Air Wing CPS-B-16 DL-0411-10011 None CA24B & IOB1 |
| r2241 | r2242 | |
| 98 | 98 | 0x6c-0x6d Priority mask | of these masks. The masks indicate pens in the tile |
| 99 | 99 | 0x6e-0x6f Priority mask / that have priority over sprites. |
| 100 | 100 | 0x70-0x71 Control register (usually 0x003f). The details of how this register |
| 101 | works are unknown, but it definitely affects the palette; experiments | |
| 102 | on the real board show that values different from 0x3f in the low 6 | |
| 103 | bits cause wrong colors. The other bits seem to be unused. | |
| 101 | works are unknown, but it definitely affects the palette, and games | |
| 102 | always set it together with the palette base register. | |
| 103 | Experiments on the real board show that values different from 0x3f in | |
| 104 | the low 6 bits cause wrong colors. The other bits seem to be unused. | |
| 104 | 105 | There is one CPS2 game (Slammasters II) setting this to 0x2f: the |
| 105 | 106 | purpose is unknown. |
| 106 | 107 | The only other places where this register seems to be set to a value |
| 107 | 108 | different from 0x3f is during startup tests. Examples: |
| 108 | ghouls 0x02 | |
| 109 | strider 0x02 | |
| 109 | ghouls 0x02 (and palette base is set to 9105; palette base is 9100 normally) | |
| 110 | strider 0x02 (and palette base is set to 9145; palette base is 9140 normally) | |
| 111 | 1941 0x02 (and palette base is set to 9145; palette base is 9140 normally) | |
| 110 | 112 | unsquad 0x0f |
| 111 | 113 | kod 0x0f |
| 112 | 114 | mtwins 0x0f |
| r2241 | r2242 | |
| 165 | 167 | some sprites. When an enemy falls to the floor near the edge of the bridge, |
| 166 | 168 | parts of it become visible under the bridge. |
| 167 | 169 | |
| 170 | varth | |
| 171 | * the background color during startup is brown, while it should most likely be | |
| 172 | black. This is caused by the background color palette entry (0xbff), however | |
| 173 | that entry is definitely correct and used by other games (3wonders, mtwins) | |
| 174 | to make the background different from black. | |
| 175 | The boot screen of some CPS2 also has a blue background instead of black, | |
| 176 | however that might be the correct behaviour. | |
| 168 | 177 | |
| 178 | ||
| 169 | 179 | Unknown issues |
| 170 | 180 | ============== |
| 171 | 181 | |
| r2241 | r2242 | |
| 270 | 280 | {"ghouls", CPS_B_01, 0,0,0, 0x0000,0xffff,0x0000,0xffff, 1 }, |
| 271 | 281 | {"ghoulsu", CPS_B_01, 0,0,0, 0x0000,0xffff,0x0000,0xffff, 1 }, |
| 272 | 282 | {"daimakai",CPS_B_01, 0,0,0, 0x0000,0xffff,0x0000,0xffff, 1 }, |
| 273 | {"strider", CPS_B_01, 1,0,1, 0x0000,0xffff,0x0000,0xffff }, | |
| 274 | {"stridrua",CPS_B_01, 1,0,1, 0x0000,0xffff,0x0000,0xffff }, | |
| 275 | {"striderj",CPS_B_01, 1,0,1, 0x0000,0xffff,0x0000,0xffff }, | |
| 276 | {"stridrja",CPS_B_01, 1,0,1, 0x0000,0xffff,0x0000,0xffff }, | |
| 283 | {"strider", CPS_B_01, 1,0,1, 0x0000,0xffff,0x0000,0xffff, 11 }, | |
| 284 | {"stridrua",CPS_B_01, 1,0,1, 0x0000,0xffff,0x0000,0xffff, 11 }, | |
| 285 | {"striderj",CPS_B_01, 1,0,1, 0x0000,0xffff,0x0000,0xffff, 11 }, | |
| 286 | {"stridrja",CPS_B_01, 1,0,1, 0x0000,0xffff,0x0000,0xffff, 11 }, | |
| 277 | 287 | {"dynwar", CPS_B_02, 0,1,1, 0x0000,0xffff,0x0000,0xffff }, |
| 278 | 288 | {"dynwarj", CPS_B_02, 0,1,1, 0x0000,0xffff,0x0000,0xffff }, |
| 279 | 289 | {"willow", CPS_B_03, 0,1,0, 0x0000,0xffff,0x0000,0xffff }, |
| r2241 | r2242 | |
| 287 | 297 | {"ffightj1",CPS_B_02, 0,0,0, 0x0001,0xffff,0x0001,0xffff }, |
| 288 | 298 | {"1941", CPS_B_05, 0,0,0, 0x0000,0xffff,0x0400,0x07ff }, |
| 289 | 299 | {"1941j", CPS_B_05, 0,0,0, 0x0000,0xffff,0x0400,0x07ff }, |
| 290 | {"unsquad", CPS_B_11, 0,0,0, 0x0000,0xffff,0x0001,0xffff }, /* CPSB ID not checked, but it's the same as sf2eg */ | |
| 291 | {"area88", CPS_B_11, 0,0,0, 0x0000,0xffff,0x0001,0xffff }, /* CPSB ID not checked, but it's the same as sf2eg */ | |
| 300 | {"unsquad", CPS_B_11, 0,0,0, 0x0000,0xffff,0x0001,0xffff, 11 }, /* CPSB ID not checked, but it's the same as sf2eg */ | |
| 301 | {"area88", CPS_B_11, 0,0,0, 0x0000,0xffff,0x0001,0xffff, 11 }, /* CPSB ID not checked, but it's the same as sf2eg */ | |
| 292 | 302 | {"mercs", CPS_B_12, 0,0,0, 0x0600,0x5bff,0x0700,0x17ff, 4 }, /* (uses port 74) */ |
| 293 | 303 | {"mercsu", CPS_B_12, 0,0,0, 0x0600,0x5bff,0x0700,0x17ff, 4 }, /* (uses port 74) */ |
| 294 | 304 | {"mercsua", CPS_B_12, 0,0,0, 0x0600,0x5bff,0x0700,0x17ff, 4 }, /* (uses port 74) */ |
| r2241 | r2242 | |
| 325 | 335 | {"kodu", BATTRY_2, 0,0,0, 0x0000,0xffff,0x0000,0xffff }, |
| 326 | 336 | {"kodj", BATTRY_2, 0,0,0, 0x0000,0xffff,0x0000,0xffff }, |
| 327 | 337 | {"kodb", BATTRY_2, 0,0,0, 0x0000,0xffff,0x0000,0xffff }, /* bootleg, doesn't use multiply protection */ |
| 328 | {"captcomm",BATTRY_3, 0,0,0, 0x0000,0xffff,0x0000,0xffff }, | |
| 329 | {"captcomu",BATTRY_3, 0,0,0, 0x0000,0xffff,0x0000,0xffff }, | |
| 330 | {"captcomj",BATTRY_3, 0,0,0, 0x0000,0xffff,0x0000,0xffff }, | |
| 338 | {"captcomm",BATTRY_3, 0,0,0, 0x0000,0xffff,0x0000,0xffff, 11 }, | |
| 339 | {"captcomu",BATTRY_3, 0,0,0, 0x0000,0xffff,0x0000,0xffff, 11 }, | |
| 340 | {"captcomj",BATTRY_3, 0,0,0, 0x0000,0xffff,0x0000,0xffff, 11 }, | |
| 331 | 341 | {"knights", BATTRY_4, 0,0,0, 0x0000,0xffff,0x0000,0xffff, 3 }, |
| 332 | 342 | {"knightsu",BATTRY_4, 0,0,0, 0x0000,0xffff,0x0000,0xffff, 3 }, |
| 333 | 343 | {"knightsj",BATTRY_4, 0,0,0, 0x0000,0xffff,0x0000,0xffff, 3 }, |
| r2241 | r2242 | |
| 420 | 430 | int cps1_scanline2; |
| 421 | 431 | int cps1_scancalls; |
| 422 | 432 | |
| 423 | #ifdef UNUSED_FUNCTION | |
| 424 | void cps_setversion(int v) | |
| 425 | { | |
| 426 | cps_version=v; | |
| 427 | } | |
| 428 | #endif | |
| 429 | 433 | |
| 430 | ||
| 431 | 434 | static MACHINE_RESET( cps ) |
| 432 | 435 | { |
| 433 | 436 | const char *gamename = machine->gamedrv->name; |
| r2241 | r2242 | |
| 571 | 574 | if (VERBOSE) |
| 572 | 575 | { |
| 573 | 576 | if (offset > 0x22/2 && |
| 574 | ||
| 577 | | |
| 575 | 578 | offset != cps1_game_config->priority[0]/2 && |
| 576 | 579 | offset != cps1_game_config->priority[1]/2 && |
| 577 | 580 | offset != cps1_game_config->priority[2]/2 && |
| r2241 | r2242 | |
| 599 | 602 | |
| 600 | 603 | /* Offset of each palette entry */ |
| 601 | 604 | static int palette_basecolor[6]; |
| 602 | #define cps1_palette_entries (32* | |
| 605 | #define cps1_palette_entries (32*6) /* Number colour schemes in palette */ | |
| 603 | 606 | |
| 604 | 607 | static const int cps1_scroll_size =0x4000; /* scroll1, scroll2, scroll3 */ |
| 605 | 608 | static const int cps1_obj_size =0x0800; |
| r2241 | r2242 | |
| 1015 | 1018 | /* allows us to reproduce a problem seen with a ffight board where USA and Japanese |
| 1016 | 1019 | roms have been mixed to be reproduced (ffightua) -- it looks like each column |
| 1017 | 1020 | should alternate between the left and right side of the 16x16 tiles */ |
| 1018 | if (tile_index&0x20) gfxset = 1; | |
| 1019 | else gfxset = 0; | |
| 1021 | gfxset = (tile_index & 0x20) >> 5; | |
| 1020 | 1022 | |
| 1021 | /* knights & msword */ | |
| 1022 | if (cps1_game_config->kludge == 3) | |
| 1023 | if (code == 0xf020) { gfxset = 4; code = 0; } // use a blank tile (see startup text..) | |
| 1024 | ||
| 1025 | /* 0x0020 appears to never be drawn for CPS1 games (it is drawn for CPS2 games though, see gigawing '0' in score for example) */ | |
| 1026 | if (cps_version == 1 && code == 0x0020) { gfxset = 4; code = 0; } | |
| 1027 | ||
| 1028 | 1023 | SET_TILE_INFO( |
| 1029 | 1024 | gfxset, |
| 1030 | 1025 | code + base, |
| 1031 | 1026 | (attr & 0x1f) + palette_basecolor[1], |
| 1032 | 1027 | TILE_FLIPYX((attr & 0x60) >> 5)); |
| 1033 | 1028 | tileinfo->group = (attr & 0x0180) >> 7; |
| 1029 | ||
| 1030 | if ((cps1_game_config->kludge == 3 && code == 0xf020) || // knights & msword: startup text | |
| 1031 | (cps1_game_config->kludge == 2 && code == 0x0000) || // 3wonders: bottom of screen, between lives of first player and the word INSERT COIN | |
| 1032 | (cps1_game_config->kludge == 11 && code == 0x0020)) // strider, unsquad, captcomm | |
| 1033 | { | |
| 1034 | tileinfo->pen_data = empty_tile; | |
| 1035 | } | |
| 1034 | 1036 | } |
| 1035 | 1037 | |
| 1036 | 1038 | static TILE_GET_INFO( get_tile1_info ) |
| r2241 | r2242 | |
| 1161 | 1163 | cps1_buffered_obj = auto_malloc (cps1_obj_size); |
| 1162 | 1164 | memset(cps1_buffered_obj, 0x00, cps1_obj_size); |
| 1163 | 1165 | |
| 1164 | if (cps_version==2) { | |
| 1165 | cps2_buffered_obj = auto_malloc (cps2_obj_size); | |
| 1166 | memset(cps2_buffered_obj, 0x00, cps2_obj_size); | |
| 1167 | } | |
| 1166 | if (cps_version==2) | |
| 1167 | { | |
| 1168 | cps2_buffered_obj = auto_malloc (cps2_obj_size); | |
| 1169 | memset(cps2_buffered_obj, 0x00, cps2_obj_size); | |
| 1170 | } | |
| 1168 | 1171 | |
| 1169 | 1172 | memset(cps1_gfxram, 0, cps1_gfxram_size); /* Clear GFX RAM */ |
| 1170 | 1173 | memset(cps1_output, 0, cps1_output_size); /* Clear output ports */ |
| r2241 | r2242 | |
| 1195 | 1198 | palette_basecolor[2] = 2*32; /* scroll2 */ |
| 1196 | 1199 | palette_basecolor[3] = 3*32; /* scroll3 */ |
| 1197 | 1200 | palette_basecolor[4] = 4*32; /* stars1 */ |
| 1198 | palette_basecolor[5] = 5*32; /* stars2 */ | |
| 1201 | palette_basecolor[5] = 5*32; /* stars2 (and bg) */ | |
| 1199 | 1202 | } |
| 1200 | 1203 | |
| 1201 | 1204 | VIDEO_START( cps1 ) |
| 1202 | 1205 | { |
| 1203 | cps_version=1; | |
| 1204 | VIDEO_START_CALL(cps); | |
| 1206 | cps_version=1; | |
| 1207 | VIDEO_START_CALL(cps); | |
| 1205 | 1208 | } |
| 1206 | 1209 | |
| 1207 | 1210 | VIDEO_START( cps2 ) |
| 1208 | 1211 | { |
| 1209 | if (cps_version != 99) | |
| 1210 | { | |
| 1211 | cps_version=2; | |
| 1212 | } | |
| 1213 | VIDEO_START_CALL(cps); | |
| 1212 | cps_version=2; | |
| 1213 | VIDEO_START_CALL(cps); | |
| 1214 | 1214 | } |
| 1215 | 1215 | |
| 1216 | 1216 | /*************************************************************************** |
| r2241 | r2242 | |
| 1231 | 1231 | |
| 1232 | 1232 | if (palette != cps1_old_palette[offset]) |
| 1233 | 1233 | { |
| 1234 | | |
| 1234 | | |
| 1235 | 1235 | |
| 1236 | 1236 | bright = 0x10 + (palette>>12); |
| 1237 | 1237 | |
| r2241 | r2242 | |
| 1471 | 1471 | |
| 1472 | 1472 | WRITE16_HANDLER( cps2_objram_bank_w ) |
| 1473 | 1473 | { |
| 1474 | if (ACCESSING_ | |
| 1474 | if (ACCESSING_ | |
| 1475 | 1475 | { |
| 1476 | 1476 | cps2_objram_bank = data & 1; |
| 1477 | 1477 | } |
| r2241 | r2242 | |
| 1801 | 1801 | |
| 1802 | 1802 | VIDEO_UPDATE( cps1 ) |
| 1803 | 1803 | { |
| 1804 | ||
| 1804 | | |
| 1805 | 1805 | int videocontrol=cps1_port(0x22); |
| 1806 | 1806 | |
| 1807 | 1807 | |
| r2241 | r2242 | |
| 1813 | 1813 | cps1_get_video_base(); |
| 1814 | 1814 | |
| 1815 | 1815 | /* Find the offset of the last sprite in the sprite table */ |
| 1816 | cps1_find_last_sprite(); | |
| 1817 | if (cps_version == 2) | |
| 1818 | { | |
| 1819 | cps2_find_last_sprite(); | |
| 1820 | } | |
| 1816 | cps1_find_last_sprite(); | |
| 1817 | if (cps_version == 2) | |
| 1818 | { | |
| 1819 | cps2_find_last_sprite(); | |
| 1820 | } | |
| 1821 | 1821 | /* Build palette */ |
| 1822 | 1822 | cps1_build_palette(screen->machine); |
| 1823 | 1823 | |
| r2241 | r2242 | |
| 1849 | 1849 | |
| 1850 | 1850 | |
| 1851 | 1851 | /* Blank screen */ |
| 1852 | fillbitmap(bitmap, | |
| 1852 | fillbitmap(bitmap, | |
| 1853 | 1853 | |
| 1854 | 1854 | cps1_render_stars(screen, bitmap,cliprect); |
| 1855 | 1855 |
| r2241 | r2242 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | static bitmap_t* helper; |
| 10 | 10 | static bitmap_t* helper2; |
| 11 | static int coll | |
| 11 | static int coll | |
| 12 | 12 | |
| 13 | 13 | static int rougien_gfxbank1, rougien_gfxbank2; |
| 14 | 14 | |
| r2241 | r2242 | |
| 107 | 107 | READ8_HANDLER( mermaid_collision_r ) |
| 108 | 108 | { |
| 109 | 109 | /* |
| 110 | collision register active LO | |
| 111 | Bit 0 | |
| 112 | Bit 1 - Sprite - Foreground | |
| 113 | Bit 2 - Sprite - Stream | |
| 114 | Bit 3 - Sprite (Wind) - Sprite | |
| 110 | collision register active LOW: | |
| 111 | ||
| 112 | with coll = spriteram[offs + 2] & 0xc0 | |
| 113 | ||
| 114 | Bit 0 - Sprite (coll = 0x40) - Sprite (coll = 0x00) | |
| 115 | Bit 1 - Sprite (coll = 0x40) - Foreground | |
| 116 | Bit 2 - Sprite (coll = 0x40) - Background | |
| 117 | Bit 3 - Sprite (coll = 0x80) - Sprite (coll = 0x00) | |
| 115 | 118 | Bit 4 |
| 116 | 119 | Bit 5 |
| 117 | Bit 6 - Sprite ( | |
| 120 | Bit 6 - Sprite (coll = 0x40) - Sprite (coll = 0x80) | |
| 118 | 121 | Bit 7 |
| 119 | 122 | */ |
| 120 | 123 | |
| 121 | 124 | int collision = 0xff; |
| 122 | 125 | |
| 123 | if(collision_sprite_foreground) collision &= 0xfd; | |
| 124 | if(collision_sprite_background) collision &= 0xfb; | |
| 126 | if(coll_bit0) collision &= 0xfe; | |
| 127 | if(coll_bit1) collision &= 0xfd; | |
| 128 | if(coll_bit2) collision &= 0xfb; | |
| 129 | if(coll_bit3) collision &= 0xf7; | |
| 130 | if(coll_bit6) collision &= 0xbf; | |
| 125 | 131 | |
| 126 | if(collision_sprite_sprite_wind) collision &= 0xf7; | |
| 127 | if(collision_sprite_sprite_boat) collision &= 0xbf; | |
| 128 | ||
| 129 | 132 | return collision; |
| 130 | 133 | } |
| 131 | 134 | |
| r2241 | r2242 | |
| 179 | 182 | int sx = spriteram[offs + 3] + 1; |
| 180 | 183 | int sy = 240 - spriteram[offs + 1]; |
| 181 | 184 | |
| 185 | if (sx >= 0xf0) sx -= 256; | |
| 186 | ||
| 182 | 187 | code |= rougien_gfxbank1 * 0x2800; |
| 183 | 188 | code |= rougien_gfxbank2 * 0x2400; |
| 184 | 189 | |
| r2241 | r2242 | |
| 220 | 225 | { |
| 221 | 226 | UINT16 a = colortable_entry_get_value(colortable, *BITMAP_ADDR16(helper, y, x)); |
| 222 | 227 | UINT16 b = colortable_entry_get_value(colortable, *BITMAP_ADDR16(helper2, y, x)); |
| 228 | ||
| 223 | 229 | if (b != 0) |
| 224 | if (a != 0) | |
| 230 | if ((a != 0) & (a != 0x40)) | |
| 225 | 231 | data |= 0x01; |
| 226 | 232 | } |
| 227 | 233 | |
| r2241 | r2242 | |
| 234 | 240 | |
| 235 | 241 | int offs,offs2; |
| 236 | 242 | |
| 237 | collision_sprite_foreground = 0; | |
| 238 | collision_sprite_sprite_boat = 0; | |
| 239 | collision_sprite_sprite_wind = 0; | |
| 243 | coll_bit1 = 0; | |
| 244 | coll_bit2 = 0; | |
| 245 | coll_bit3 = 0; | |
| 246 | coll_bit6 = 0; | |
| 247 | coll_bit0 = 0; | |
| 240 | 248 | |
| 241 | // check for | |
| 249 | // check for | |
| 242 | 250 | |
| 243 | for (offs = spriteram_size - 4; offs >= | |
| 251 | for (offs = spriteram_size - 4; offs >= 0 | |
| 244 | 252 | { |
| 245 | 253 | int attr = spriteram[offs + 2]; |
| 246 | 254 | int bank = (attr & 0x30) >> 4; |
| 255 | int coll = (attr & 0xc0) >> 6; | |
| 247 | 256 | int code = (spriteram[offs] & 0x3f) | (bank << 6); |
| 248 | // int color = attr & 0x0f; | |
| 249 | 257 | int flipx = spriteram[offs] & 0x40; |
| 250 | 258 | int flipy = spriteram[offs] & 0x80; |
| 251 | 259 | int sx = spriteram[offs + 3] + 1; |
| r2241 | r2242 | |
| 253 | 261 | |
| 254 | 262 | rectangle rect; |
| 255 | 263 | |
| 264 | if (coll != 1) continue; | |
| 265 | ||
| 256 | 266 | code |= rougien_gfxbank1 * 0x2800; |
| 257 | 267 | code |= rougien_gfxbank2 * 0x2400; |
| 258 | 268 | |
| r2241 | r2242 | |
| 282 | 292 | if (rect.max_y > visarea->max_y) |
| 283 | 293 | rect.max_y = visarea->max_y; |
| 284 | 294 | |
| 285 | // check collision sprite-background | |
| 295 | // check collision sprite - background | |
| 286 | 296 | |
| 287 | 297 | fillbitmap(helper,0,&rect); |
| 288 | 298 | fillbitmap(helper2,0,&rect); |
| r2241 | r2242 | |
| 292 | 302 | drawgfx(helper2, machine->gfx[1], code, 0, flipx, flipy, sx, sy, |
| 293 | 303 | &rect,TRANSPARENCY_PEN, 0); |
| 294 | 304 | |
| 295 | coll | |
| 305 | coll | |
| 296 | 306 | |
| 297 | // check collision sprite-foreground | |
| 307 | // check collision sprite - foreground | |
| 298 | 308 | |
| 299 | 309 | fillbitmap(helper,0,&rect); |
| 300 | 310 | fillbitmap(helper2,0,&rect); |
| r2241 | r2242 | |
| 304 | 314 | drawgfx(helper2, machine->gfx[1], code, 0, flipx, flipy, sx, sy, |
| 305 | 315 | &rect,TRANSPARENCY_PEN, 0); |
| 306 | 316 | |
| 307 | coll | |
| 317 | coll | |
| 308 | 318 | |
| 309 | // check collision sprite | |
| 319 | // check collision sprite | |
| 310 | 320 | |
| 311 | 321 | fillbitmap(helper,0,&rect); |
| 312 | 322 | fillbitmap(helper2,0,&rect); |
| 313 | 323 | |
| 314 | for (offs2 = spriteram_size - | |
| 324 | for (offs2 = spriteram_size - | |
| 315 | 325 | if (offs != offs2) |
| 316 | 326 | { |
| 317 | 327 | int attr2 = spriteram[offs2 + 2]; |
| 318 | 328 | int bank2 = (attr2 & 0x30) >> 4; |
| 329 | int coll2 = (attr2 & 0xc0) >> 6; | |
| 319 | 330 | int code2 = (spriteram[offs2] & 0x3f) | (bank2 << 6); |
| 320 | // int color2 = attr2 & 0x0f; | |
| 321 | 331 | int flipx2 = spriteram[offs2] & 0x40; |
| 322 | 332 | int flipy2 = spriteram[offs2] & 0x80; |
| 323 | 333 | int sx2 = spriteram[offs2 + 3] + 1; |
| 324 | 334 | int sy2 = 240 - spriteram[offs2 + 1]; |
| 325 | 335 | |
| 336 | if (coll2 != 0) continue; | |
| 337 | ||
| 326 | 338 | code2 |= rougien_gfxbank1 * 0x2800; |
| 327 | 339 | code2 |= rougien_gfxbank2 * 0x2400; |
| 328 | 340 | |
| r2241 | r2242 | |
| 342 | 354 | &rect,TRANSPARENCY_PEN, 0); |
| 343 | 355 | } |
| 344 | 356 | |
| 345 | | |
| 357 | | |
| 346 | 358 | &rect,TRANSPARENCY_PEN, 0); |
| 347 | 359 | |
| 348 | collision_sprite_sprite_boat |= collision_check(machine->colortable, &rect); | |
| 360 | coll_bit0 |= collision_check(machine->colortable, &rect); | |
| 361 | } | |
| 362 | ||
| 363 | // check for bit 3 (sprite-sprite) | |
| 364 | ||
| 365 | for (offs = spriteram_size - 4; offs >= 0; offs -= 4) | |
| 366 | { | |
| 367 | int attr = spriteram[offs + 2]; | |
| 368 | int bank = (attr & 0x30) >> 4; | |
| 369 | int coll = (attr & 0xc0) >> 6; | |
| 370 | int code = (spriteram[offs] & 0x3f) | (bank << 6); | |
| 371 | int flipx = spriteram[offs] & 0x40; | |
| 372 | int flipy = spriteram[offs] & 0x80; | |
| 373 | int sx = spriteram[offs + 3] + 1; | |
| 374 | int sy = 240 - spriteram[offs + 1]; | |
| 375 | ||
| 376 | rectangle rect; | |
| 377 | ||
| 378 | if (coll != 2) continue; | |
| 379 | ||
| 380 | code |= rougien_gfxbank1 * 0x2800; | |
| 381 | code |= rougien_gfxbank2 * 0x2400; | |
| 382 | ||
| 383 | if (flip_screen_x_get()) | |
| 384 | { | |
| 385 | flipx = !flipx; | |
| 386 | sx = 240 - sx; | |
| 349 | 387 | } |
| 350 | 388 | |
| 351 | // check for "sail" sprite | |
| 389 | if (flip_screen_y_get()) | |
| 390 | { | |
| 391 | flipy = !flipy; | |
| 392 | sy = 240 - sy; | |
| 393 | } | |
| 352 | 394 | |
| 353 | for (offs = spriteram_size - 4*3; offs >= spriteram_size - (4*4); offs -= 4) | |
| 395 | rect.min_x = sx; | |
| 396 | rect.min_y = sy; | |
| 397 | rect.max_x = sx + machine->gfx[1]->width - 1; | |
| 398 | rect.max_y = sy + machine->gfx[1]->height - 1; | |
| 399 | ||
| 400 | if (rect.min_x < visarea->min_x) | |
| 401 | rect.min_x = visarea->min_x; | |
| 402 | if (rect.min_y < visarea->min_y) | |
| 403 | rect.min_y = visarea->min_y; | |
| 404 | if (rect.max_x > visarea->max_x) | |
| 405 | rect.max_x = visarea->max_x; | |
| 406 | if (rect.max_y > visarea->max_y) | |
| 407 | rect.max_y = visarea->max_y; | |
| 408 | ||
| 409 | // check collision sprite - sprite | |
| 410 | ||
| 411 | fillbitmap(helper,0,&rect); | |
| 412 | fillbitmap(helper2,0,&rect); | |
| 413 | ||
| 414 | for (offs2 = spriteram_size - 4; offs2 >= 0; offs2 -= 4) | |
| 415 | if (offs != offs2) | |
| 416 | { | |
| 417 | int attr2 = spriteram[offs2 + 2]; | |
| 418 | int bank2 = (attr2 & 0x30) >> 4; | |
| 419 | int coll2 = (attr2 & 0xc0) >> 6; | |
| 420 | int code2 = (spriteram[offs2] & 0x3f) | (bank2 << 6); | |
| 421 | int flipx2 = spriteram[offs2] & 0x40; | |
| 422 | int flipy2 = spriteram[offs2] & 0x80; | |
| 423 | int sx2 = spriteram[offs2 + 3] + 1; | |
| 424 | int sy2 = 240 - spriteram[offs2 + 1]; | |
| 425 | ||
| 426 | if (coll2 != 0) continue; | |
| 427 | ||
| 428 | code2 |= rougien_gfxbank1 * 0x2800; | |
| 429 | code2 |= rougien_gfxbank2 * 0x2400; | |
| 430 | ||
| 431 | if (flip_screen_x_get()) | |
| 432 | { | |
| 433 | flipx2 = !flipx2; | |
| 434 | sx2 = 240 - sx2; | |
| 435 | } | |
| 436 | ||
| 437 | if (flip_screen_y_get()) | |
| 438 | { | |
| 439 | flipy2 = !flipy2; | |
| 440 | sy2 = 240 - sy2; | |
| 441 | } | |
| 442 | ||
| 443 | drawgfx(helper, machine->gfx[1], code2, 0, flipx2, flipy2, sx2, sy2, | |
| 444 | &rect,TRANSPARENCY_PEN, 0); | |
| 445 | } | |
| 446 | ||
| 447 | drawgfx(helper2, machine->gfx[1], code, 0, flipx, flipy, sx, sy, | |
| 448 | &rect,TRANSPARENCY_PEN, 0); | |
| 449 | ||
| 450 | coll_bit3 |= collision_check(machine->colortable, &rect); | |
| 451 | } | |
| 452 | ||
| 453 | // check for bit 6 | |
| 454 | ||
| 455 | for (offs = spriteram_size - 4; offs >= 0; offs -= 4) | |
| 354 | 456 | { |
| 355 | 457 | int attr = spriteram[offs + 2]; |
| 356 | 458 | int bank = (attr & 0x30) >> 4; |
| 459 | int coll = (attr & 0xc0) >> 6; | |
| 357 | 460 | int code = (spriteram[offs] & 0x3f) | (bank << 6); |
| 358 | // int color = attr & 0x0f; | |
| 359 | 461 | int flipx = spriteram[offs] & 0x40; |
| 360 | 462 | int flipy = spriteram[offs] & 0x80; |
| 361 | 463 | int sx = spriteram[offs + 3] + 1; |
| r2241 | r2242 | |
| 363 | 465 | |
| 364 | 466 | rectangle rect; |
| 365 | 467 | |
| 468 | if (coll != 1) continue; | |
| 469 | ||
| 366 | 470 | code |= rougien_gfxbank1 * 0x2800; |
| 367 | 471 | code |= rougien_gfxbank2 * 0x2400; |
| 368 | 472 | |
| r2241 | r2242 | |
| 392 | 496 | if (rect.max_y > visarea->max_y) |
| 393 | 497 | rect.max_y = visarea->max_y; |
| 394 | 498 | |
| 395 | // check collision sprite | |
| 499 | // check collision sprite | |
| 396 | 500 | |
| 397 | 501 | fillbitmap(helper,0,&rect); |
| 398 | 502 | fillbitmap(helper2,0,&rect); |
| 399 | 503 | |
| 400 | for (offs2 = spriteram_size - | |
| 504 | for (offs2 = spriteram_size - | |
| 401 | 505 | if (offs != offs2) |
| 402 | 506 | { |
| 403 | 507 | int attr2 = spriteram[offs2 + 2]; |
| 404 | 508 | int bank2 = (attr2 & 0x30) >> 4; |
| 509 | int coll2 = (attr2 & 0xc0) >> 6; | |
| 405 | 510 | int code2 = (spriteram[offs2] & 0x3f) | (bank2 << 6); |
| 406 | // int color2 = attr2 & 0x0f; | |
| 407 | 511 | int flipx2 = spriteram[offs2] & 0x40; |
| 408 | 512 | int flipy2 = spriteram[offs2] & 0x80; |
| 409 | 513 | int sx2 = spriteram[offs2 + 3] + 1; |
| 410 | 514 | int sy2 = 240 - spriteram[offs2 + 1]; |
| 411 | 515 | |
| 516 | if (coll2 != 2) continue; | |
| 517 | ||
| 412 | 518 | code2 |= rougien_gfxbank1 * 0x2800; |
| 413 | 519 | code2 |= rougien_gfxbank2 * 0x2400; |
| 414 | 520 | |
| r2241 | r2242 | |
| 424 | 530 | sy2 = 240 - sy2; |
| 425 | 531 | } |
| 426 | 532 | |
| 427 | drawgfx(helper, machine->gfx[1], code2, | |
| 533 | drawgfx(helper, machine->gfx[1], code2, 0, flipx2, flipy2, sx2, sy2, | |
| 428 | 534 | &rect,TRANSPARENCY_PEN, 0); |
| 429 | 535 | } |
| 430 | 536 | |
| 431 | | |
| 537 | | |
| 432 | 538 | &rect,TRANSPARENCY_PEN, 0); |
| 433 | 539 | |
| 434 | collision_sprite_sprite_wind |= collision_check(machine->colortable, &rect); | |
| 435 | } | |
| 540 | coll_bit6 |= collision_check(machine->colortable, &rect); | |
| 541 | } | |
| 542 | ||
| 436 | 543 | } |
| r2241 | r2242 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | WRITE16_HANDLER( dcon_control_w ) |
| 23 | 23 | { |
| 24 | if (ACCESSING_ | |
| 24 | if (ACCESSING_ | |
| 25 | 25 | { |
| 26 | 26 | dcon_enable=data; |
| 27 | 27 | if ((dcon_enable&4)==4) |
| r2241 | r2242 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | Galaxian hardware | |
| 3 | Galaxian-derived video hardware | |
| 4 | 4 | |
| 5 | *************************************************************************** | |
| 5 | **************************************************************************** | |
| 6 | 6 | |
| 7 | #include "driver.h" | |
| 8 | #include "includes/galaxian.h" | |
| 7 | Video timing: | |
| 9 | 8 | |
| 10 | static const rectangle _spritevisiblearea = | |
| 11 | { | |
| 12 | 2*8+1, 32*8-1, | |
| 13 | 2*8, 30*8-1 | |
| 14 | }; | |
| 15 | static const rectangle _spritevisibleareaflipx = | |
| 16 | { | |
| 17 | 0*8, 30*8-2, | |
| 18 | 2*8, 30*8-1 | |
| 19 | }; | |
| 9 | The master clock is an 18.432MHz crystal. It is divided by 3 by | |
| 10 | a pair of J/K flip-flops to 6.144MHz. This 6MHz signal is used to | |
| 11 | drive most of the video logic. Note that due to the way the | |
| 12 | divide-by-3 circuit is implemented, the duty cycle of the 6MHz | |
| 13 | signal is 66% (i.e., it is high for 2 18MHz clocks and low for 1). | |
| 14 | This is important for accurate stars rendering. | |
| 20 | 15 | |
| 21 | static const rectangle* spritevisiblearea; | |
| 22 | static const rectangle* spritevisibleareaflipx; | |
| 23 | 16 | |
| 17 | Horizontal timing: | |
| 24 | 18 | |
| 25 | #define STARS_COLOR_BASE (memory_region_length(REGION_PROMS)) | |
| 26 | #define BULLETS_COLOR_BASE (STARS_COLOR_BASE + 64) | |
| 27 | #define BACKGROUND_COLOR_BASE (BULLETS_COLOR_BASE + 2) | |
| 19 | H counts from 010000000 (128) to 111111111 (511), giving 384 | |
| 20 | total H clocks per scanline | |
| 28 | 21 | |
| 22 | However, the top bit is inverted to become 256H, so when reading | |
| 23 | the schematics it's really counting from: | |
| 24 | 110000000 -> 111111111 (blanking period) | |
| 25 | and then from: | |
| 26 | 000000000 -> 011111111 (main portion of screen = 256 pixels) | |
| 29 | 27 | |
| 30 | UINT8 *galaxian_videoram; | |
| 31 | UINT8 *galaxian_spriteram; | |
| 32 | UINT8 *galaxian_spriteram2; | |
| 33 | UINT8 *galaxian_attributesram; | |
| 34 | UINT8 *galaxian_bulletsram; | |
| 35 | UINT8 *rockclim_videoram; | |
| 36 | size_t galaxian_spriteram_size; | |
| 37 | size_t galaxian_spriteram2_size; | |
| 38 | size_t galaxian_bulletsram_size; | |
| 28 | HBLANK is a flip-flop clocked by 2H: | |
| 29 | * It is held clear when 256H = 0 (main portion of screen) | |
| 30 | * The D input is connected to !(64H & 32H & 16H & 8H) | |
| 31 | * It is clocked to 1 when H=130 | |
| 32 | * It is clocked to 0 when H=250 | |
| 33 | * This gives 264 total non-blanked pixels: | |
| 34 | 6 additional pixels on the left (H=250..255) | |
| 35 | 256 main area pixels (H=256..511) | |
| 36 | 2 additional pixels on the right (H=128..129) | |
| 39 | 37 | |
| 38 | HSYNC is a flip-flop clocked by 16H: | |
| 39 | * It is held clear when 256H = 0 (main portion of screen) | |
| 40 | * The D input is connected to !(!64H & 32H) | |
| 41 | * HSYNC is the /Q output | |
| 42 | * It is clocked to 1 when H=176 | |
| 43 | * It is clocked to 0 when H=208 | |
| 40 | 44 | |
| 41 | static TILE_GET_INFO( get_tile_info ); | |
| 42 | static TILE_GET_INFO( rockclim_get_tile_info ); | |
| 43 | static tilemap *bg_tilemap; | |
| 44 | static tilemap *rockclim_tilemap; | |
| 45 | static int mooncrst_gfxextend; | |
| 46 | static int spriteram2_present; | |
| 47 | static UINT8 gfxbank[5]; | |
| 48 | static UINT8 flipscreen_x; | |
| 49 | static UINT8 flipscreen_y; | |
| 50 | static UINT8 color_mask; | |
| 51 | static tilemap *dambustr_tilemap2; | |
| 52 | static UINT8 *dambustr_videoram2; | |
| 53 | static void (*modify_charcode)(UINT16 *code,UINT8 x); /* function to call to do character banking */ | |
| 54 | static void gmgalax_modify_charcode(UINT16 *code,UINT8 x); | |
| 55 | static void mooncrst_modify_charcode(UINT16 *code,UINT8 x); | |
| 56 | static void mooncrgx_modify_charcode(UINT16 *code,UINT8 x); | |
| 57 | static void moonqsr_modify_charcode(UINT16 *code,UINT8 x); | |
| 58 | static void mshuttle_modify_charcode(UINT16 *code,UINT8 x); | |
| 59 | static void pisces_modify_charcode(UINT16 *code,UINT8 x); | |
| 60 | static void mimonkey_modify_charcode(UINT16 *code,UINT8 x); | |
| 61 | static void batman2_modify_charcode(UINT16 *code,UINT8 x); | |
| 62 | static void mariner_modify_charcode(UINT16 *code,UINT8 x); | |
| 63 | static void jumpbug_modify_charcode(UINT16 *code,UINT8 x); | |
| 64 | static void dambustr_modify_charcode(UINT16 *code,UINT8 x); | |
| 65 | 45 | |
| 66 | static void (*modify_spritecode)(UINT8 *spriteram,int*,int*,int*,int); /* function to call to do sprite banking */ | |
| 67 | static void gmgalax_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 68 | static void mooncrst_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 69 | static void mooncrgx_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 70 | static void moonqsr_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 71 | static void mshuttle_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 72 | static void calipso_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 73 | static void pisces_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 74 | static void mimonkey_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 75 | static void batman2_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 76 | static void jumpbug_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 77 | static void dkongjrm_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 78 | static void ad2083_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 79 | static void dambustr_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 46 | Vertical timing: | |
| 80 | 47 | |
| 81 | static void (*modify_color)(UINT8 *color); /* function to call to do modify how the color codes map to the PROM */ | |
| 82 | static void frogger_modify_color(UINT8 *color); | |
| 83 | static void gmgalax_modify_color(UINT8 *color); | |
| 84 | static void drivfrcg_modify_color(UINT8 *color); | |
| 48 | V counts from 011111000 (248) to 111111111 (511), giving 264 | |
| 49 | total V clocks per frame | |
| 85 | 50 | |
| 86 | static void (*modify_ypos)(UINT8*); /* function to call to do modify how vertical positioning bits are connected */ | |
| 87 | static void frogger_modify_ypos(UINT8 *sy); | |
| 51 | IMPORTANT: the V sync chain is clocked by HSYNC. This means | |
| 52 | that for the first 48 H clocks of the blanking period, the | |
| 53 | V counter is one behind. This is important to take into account | |
| 54 | for sprite and missile positioning. | |
| 88 | 55 | |
| 89 | static TIMER_CALLBACK( stars_blink_callback ); | |
| 90 | static TIMER_CALLBACK( stars_scroll_callback ); | |
| 56 | VBLANK is a flip-flop clocked by 16V: | |
| 57 | * The D input is connected to !(128V & 64V & 32V) | |
| 58 | * It is clocked to 1 when V=496 | |
| 59 | * It is clocked to 0 when V=272 | |
| 60 | * This gives 224 total non-blanked pixels | |
| 91 | 61 | |
| 92 | static void (*tilemap_set_scroll)( tilemap *, int col, int value ); | |
| 62 | VSYNC is set to !256V: | |
| 63 | * It is set to 1 when V=248 | |
| 64 | * It is cleared to 0 when V=256 | |
| 93 | 65 | |
| 94 | /* star circuit */ | |
| 95 | #define STAR_COUNT 252 | |
| 96 | struct star | |
| 97 | { | |
| 98 | int x,y,color; | |
| 99 | }; | |
| 100 | static struct star stars[STAR_COUNT]; | |
| 101 | static int stars_colors_start; | |
| 102 | UINT8 galaxian_stars_on; | |
| 103 | static INT32 stars_scrollpos; | |
| 104 | static UINT8 stars_blink_state; | |
| 105 | static emu_timer *stars_blink_timer; | |
| 106 | static emu_timer *stars_scroll_timer; | |
| 107 | static UINT8 timer_adjusted; | |
| 108 | void galaxian_init_stars(running_machine *machine, int colors_offset); | |
| 109 | static void (*draw_stars)(running_machine *machine, bitmap_t *, const rectangle *); /* function to call to draw the star layer */ | |
| 110 | static void noop_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 111 | void galaxian_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 112 | static void scramble_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 113 | static void rescue_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 114 | static void mariner_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 115 | static void jumpbug_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 116 | static void start_stars_blink_timer(double ra, double rb, double c); | |
| 117 | static void start_stars_scroll_timer(running_machine *machine); | |
| 118 | 66 | |
| 119 | /* bullets circuit */ | |
| 120 | static UINT8 darkplnt_bullet_color; | |
| 121 | static void (*draw_bullets)(bitmap_t *,int,int,int,const rectangle *); /* function to call to draw a bullet */ | |
| 122 | static void galaxian_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect); | |
| 123 | static void gteikob2_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect); | |
| 124 | static void scramble_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect); | |
| 125 | static void theend_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect); | |
| 126 | static void darkplnt_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect); | |
| 127 | static void dambustr_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect); | |
| 67 | Sprites and missiles: | |
| 128 | 68 | |
| 129 | /* background circuit */ | |
| 130 | static UINT8 background_enable; | |
| 131 | static UINT8 background_red, background_green, background_blue; | |
| 132 | static void (*draw_background)(bitmap_t *, const rectangle *cliprect); /* function to call to draw the background */ | |
| 133 | static void galaxian_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 134 | static void scramble_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 135 | static void turtles_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 136 | static void mariner_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 137 | static void frogger_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 138 | static void stratgyx_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 139 | static void minefld_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 140 | static void rescue_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 141 | static void dambustr_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 69 | During the HBLANK period, sprites and missiles are processed. | |
| 70 | Sprites are rendered into the line buffer, which was cleared | |
| 71 | during the visible portion of the previous scanline. | |
| 142 | 72 | |
| 143 | static UINT16 rockclim_v; | |
| 144 | static UINT16 rockclim_h; | |
| 145 | static int dambustr_bg_split_line; | |
| 146 | static int dambustr_bg_color_1; | |
| 147 | static int dambustr_bg_color_2; | |
| 148 | static int dambustr_bg_priority; | |
| 149 | static int dambustr_char_bank; | |
| 150 | static bitmap_t *dambustr_tmpbitmap; | |
| 73 | It takes 8 H clocks to set up a sprite, and 16 to render it | |
| 74 | to the line buffer. The setup clocks are overlapped with the | |
| 75 | rendering clocks. In theory this would result in enough time | |
| 76 | to render 128/16 = 8 sprites. However, the setup does not | |
| 77 | begin until after HBLANK, so there is only enough time to | |
| 78 | render the first 7 1/2 entries. | |
| 151 | 79 | |
| 80 | Interleaved with the setup for sprites is setup for the | |
| 81 | shell and missile rendering. Shells and missiles are rendered | |
| 82 | realtime during the visible portion of the frame, and are | |
| 83 | effectively color-ORed directly into the final RGB output. | |
| 84 | During the HBLANK setup period, each shell/missile entry is | |
| 85 | compared against the current V position; if an exact match | |
| 86 | is found, the H position is loaded into a dedicated 8-bit | |
| 87 | counter. The counter clocks each pixel during the active video | |
| 88 | period; when it reaches $FC it enables the output until it | |
| 89 | hits zero, at which point it shuts itself off. Because there | |
| 90 | is only one counter for shells and one for missiles, only one | |
| 91 | shell and one missile can be specified per scanline. The last | |
| 92 | matching entry found will always win. | |
| 152 | 93 | |
| 94 | The difference between shell and missile is that shells | |
| 95 | populate the first 7 entries and are rendered as white, | |
| 96 | whereas missiles populate the final entry and are rendered | |
| 97 | as yellow. | |
| 153 | 98 | |
| 154 | /*************************************************************************** | |
| 99 | Here is the detailed sequence of events for sprite and | |
| 100 | missile/shell rendering during the first 24 H clocks of | |
| 101 | HBLANK: | |
| 155 | 102 | |
| 156 | Convert the color PROMs into a more useable format. | |
| 103 | H=080: HPOSI=objram[40], /VPL latches V+objram[40] | |
| 104 | H=081: HPOSI=objram[40] | |
| 105 | H=082: HPOSI=objram[41], /OBJ DATA L latches picture number, H/V flip | |
| 106 | H=083: HPOSI=objram[41] | |
| 107 | H=084: HPOSI=objram[42], /COL L latches low 3 bits as color | |
| 108 | H=085: HPOSI=objram[42] | |
| 109 | H=086: HPOSI=objram[43] | |
| 110 | H=087: HPOSI=objram[43], /CNTR LD latches X position | |
| 111 | <sprite 0 begins rendering> | |
| 112 | H=088: HPOSI=objram[40], /VPL latches V+objram[40] | |
| 113 | H=089: HPOSI=objram[40] | |
| 114 | H=08A: HPOSI=objram[61] | |
| 115 | H=08B: HPOSI=objram[61], MSLD is latched if Y position matches shell | |
| 116 | H=08C: HPOSI=objram[42] | |
| 117 | H=08D: HPOSI=objram[42] | |
| 118 | H=08E: HPOSI=objram[63] | |
| 119 | H=08F: HPOSI=objram[63], /SLD fires to latch down shell counter value | |
| 120 | H=090: HPOSI=objram[44], /VPL latches V+objram[44] | |
| 121 | H=091: HPOSI=objram[44] | |
| 122 | H=092: HPOSI=objram[45], /OBJ DATA L latches picture number, H/V flip | |
| 123 | H=093: HPOSI=objram[45] | |
| 124 | H=094: HPOSI=objram[46], /COL L latches low 3 bits as color | |
| 125 | H=095: HPOSI=objram[46] | |
| 126 | H=096: HPOSI=objram[47] | |
| 127 | H=097: HPOSI=objram[47], /CNTR LD latches X position | |
| 128 | <sprite 1 begins rendering> | |
| 157 | 129 | |
| 158 | | |
| 130 | | |
| 159 | 131 | |
| 160 | bit 7 -- 220 ohm resistor -- BLUE | |
| 161 | -- 470 ohm resistor -- BLUE | |
| 162 | -- 220 ohm resistor -- GREEN | |
| 163 | -- 470 ohm resistor -- GREEN | |
| 164 | -- 1 kohm resistor -- GREEN | |
| 165 | -- 220 ohm resistor -- RED | |
| 166 | -- 470 ohm resistor -- RED | |
| 167 | bit 0 -- 1 kohm resistor -- RED | |
| 132 | objram[40] = vertical position of sprite 0 | |
| 133 | objram[41] = picture number and H/V flip of sprite 0 | |
| 134 | objram[42] = color of sprite 0 | |
| 135 | objram[43] = horizontal position of sprite 0 | |
| 168 | 136 | |
| 169 | The output of the background star generator is connected this way: | |
| 137 | objram[61] = vertical position of shell 0 | |
| 138 | objram[63] = horizontal count until shell 0 starts rendering | |
| 170 | 139 | |
| 171 | bit 5 -- 100 ohm resistor -- BLUE | |
| 172 | -- 150 ohm resistor -- BLUE | |
| 173 | -- 100 ohm resistor -- GREEN | |
| 174 | -- 150 ohm resistor -- GREEN | |
| 175 | -- 100 ohm resistor -- RED | |
| 176 | bit 0 -- 150 ohm resistor -- RED | |
| 140 | A vertical match for a sprite is true if ((V + vpos) & 0xf0) == 0xf0. | |
| 141 | A vertical match for a shell/missile is if ((V + vpos) & 0xff) == 0xff. | |
| 177 | 142 | |
| 178 | The blue background in Scramble and other games goes through a 390 ohm | |
| 179 | resistor. | |
| 143 | Overall, the process for sprites and missiles during HBLANK looks | |
| 144 | like this: | |
| 180 | 145 | |
| 181 | The bullet RGB outputs go through 100 ohm resistors. | |
| 146 | H=080: begin setup sprite 0 | |
| 147 | H=082: begin HBLANK | |
| 148 | H=088: begin render sprite 0; begin setup shell 0 | |
| 149 | H=090: begin setup sprite 1 | |
| 150 | H=098: begin render sprite 1; begin setup shell 1 | |
| 151 | H=0A0: begin setup sprite 2 | |
| 152 | H=0A8: begin render sprite 2; begin setup shell 2 | |
| 153 | H=0B0: VSYNC increments V counter; subsequent sprites match V+1 | |
| 154 | H=0B0: begin setup sprite 3 | |
| 155 | H=0B8: begin render sprite 3; begin setup shell 3 | |
| 156 | H=0C0: begin setup sprite 4 | |
| 157 | H=0C8: begin render sprite 4; begin setup shell 4 | |
| 158 | H=0D0: begin setup sprite 5 | |
| 159 | H=0D8: begin render sprite 5; begin setup shell 5 | |
| 160 | H=0E0: begin setup sprite 6 | |
| 161 | H=0E8: begin render sprite 6; begin setup shell 6 | |
| 162 | H=0F0: begin setup sprite 7 | |
| 163 | H=0F8: begin render sprite 7; begin setup missile | |
| 164 | H=0FA: end HBLANK | |
| 165 | H=100: finish render sprite 7 (only 1/2 way through) | |
| 182 | 166 | |
| 183 | The RGB outputs have a 470 ohm pull-down each. | |
| 184 | 167 | |
| 185 | ***************************************************************************/ | |
| 186 | PALETTE_INIT( galaxian ) | |
| 187 | { | |
| 188 | int i; | |
| 189 | 168 | |
| 169 | /VPL: H=xxxxxx000 -> latches sum of V+HPOSI for vertical positioning | |
| 170 | /COL L: H=xxxxxx100 -> latches HPOSI into color register (low 3 bits) | |
| 171 | /LD: H=xxxxxx111 -> shift register load from ROM | |
| 172 | /CNTR CLR: H=0xxxx0111 -> resets line buffer counter to 0 | |
| 173 | /OBJ DATA L: H=1xxxx0010 -> latches HPOSI into picture number latch | |
| 174 | /CNTR LD: H=1xxxx0111 -> latches HPOSI into line buffer counter (sprite X position) | |
| 175 | /SLD: H=1xxxx1111 -> latches down counter until shell (except when /MLD) | |
| 176 | /MLD: H=1x1111111 -> latches down counter until missile | |
| 190 | 177 | |
| 191 | /* first, the character/sprite palette */ | |
| 192 | 178 | |
| 193 | for (i = 0;i < memory_region_length(REGION_PROMS);i++) | |
| 194 | { | |
| 195 | int bit0,bit1,bit2,r,g,b; | |
| 196 | 179 | |
| 197 | /* red component */ | |
| 198 | bit0 = BIT(*color_prom,0); | |
| 199 | bit1 = BIT(*color_prom,1); | |
| 200 | bit2 = BIT(*color_prom,2); | |
| 201 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 202 | /* green component */ | |
| 203 | bit0 = BIT(*color_prom,3); | |
| 204 | bit1 = BIT(*color_prom,4); | |
| 205 | bit2 = BIT(*color_prom,5); | |
| 206 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 207 | /* blue component */ | |
| 208 | bit0 = BIT(*color_prom,6); | |
| 209 | bit1 = BIT(*color_prom,7); | |
| 210 | b = 0x4f * bit0 + 0xa8 * bit1; | |
| 180 | VRAM addresses: | |
| 181 | addr video | |
| 182 | VRA7 = A9 SUM7 | |
| 183 | VRA8 = A8 SUM6 | |
| 184 | VRA6 = A7 SUM5 | |
| 185 | VRA5 = A6 SUM4 | |
| 186 | VRA4 = A5 SUM3 | |
| 187 | VRA3 = A4 128HB | |
| 188 | VRA0 = A3 64HB | |
| 189 | VRA1 = A2 32HB | |
| 190 | VRA2 = A1 16HB | |
| 191 | VRA9 = A0 8HB | |
| 211 | 192 | |
| 212 | palette_set_color_rgb(machine,i,r,g,b); | |
| 213 | color_prom++; | |
| 214 | } | |
| 193 | OBJRAM addresses: | |
| 194 | addr 256H=0 256H=1 | |
| 195 | RA4 = A0 4H 2H | |
| 196 | RA7 = A1 8HB 4H | |
| 197 | RA1 = A2 16HB 16HB | |
| 198 | RA0 = A3 32HB 32HB | |
| 199 | RA5 = A4 64HB 64HB | |
| 200 | RA6 = A5 128HB (2H & 8HB) | |
| 201 | RA3 = A6 256H 256H | |
| 202 | RA2 = A7 0 0 | |
| 215 | 203 | |
| 204 | H=80: 00,00,01,01,02,02,03,03 00,00,21,21,02,02,23,23 | |
| 205 | H=90: 04,04,05,05,06,06,07,07 04,04,25,25,06,06,27,27 | |
| 206 | H=A0: 08,08,09,09,0A,0A,0B,0B 08,08,29,29,0A,0A,2B,2B | |
| 207 | H=B0: 0C,0C,0D,0D,0E,0E,0F,0F 0C,0C,2D,2D,0E,0E,2F,2F | |
| 216 | 208 | |
| 217 | galaxian_init_stars(machine, STARS_COLOR_BASE); | |
| 218 | 209 | |
| 219 | 210 | |
| 220 | /* bullets - yellow and white */ | |
| 221 | palette_set_color(machine,BULLETS_COLOR_BASE+0,MAKE_RGB(0xef,0xef,0x00)); | |
| 222 | palette_set_color(machine,BULLETS_COLOR_BASE+1,MAKE_RGB(0xef,0xef,0xef)); | |
| 223 | } | |
| 211 | ***************************************************************************/ | |
| 224 | 212 | |
| 225 | PALETTE_INIT( scramble ) | |
| 226 | { | |
| 227 | PALETTE_INIT_CALL(galaxian); | |
| 213 | #include "driver.h" | |
| 214 | #include "video/resnet.h" | |
| 215 | #include "includes/galaxian.h" | |
| 228 | 216 | |
| 229 | 217 | |
| 230 | /* blue background - 390 ohm resistor */ | |
| 231 | palette_set_color(machine,BACKGROUND_COLOR_BASE,MAKE_RGB(0,0,0x56)); | |
| 232 | } | |
| 233 | 218 | |
| 234 | PALETTE_INIT( moonwar ) | |
| 235 | { | |
| 236 | PALETTE_INIT_CALL(scramble); | |
| 237 | 219 | |
| 220 | /************************************* | |
| 221 | * | |
| 222 | * Constants | |
| 223 | * | |
| 224 | *************************************/ | |
| 238 | 225 | |
| 239 | /* wire mod to connect the bullet blue output to the 220 ohm resistor */ | |
| 240 | palette_set_color(machine,BULLETS_COLOR_BASE+0,MAKE_RGB(0xef,0xef,0x97)); | |
| 241 | } | |
| 226 | #define STAR_RNG_PERIOD ((1 << 17) - 1) | |
| 227 | #define RGB_MAXIMUM 224 | |
| 242 | 228 | |
| 243 | PALETTE_INIT( turtles ) | |
| 244 | { | |
| 245 | int i; | |
| 246 | 229 | |
| 247 | 230 | |
| 248 | PALETTE_INIT_CALL(galaxian); | |
| 231 | /************************************* | |
| 232 | * | |
| 233 | * Global variables | |
| 234 | * | |
| 235 | *************************************/ | |
| 249 | 236 | |
| 237 | /* rendering callbacks */ | |
| 238 | galaxian_draw_bullet_func galaxian_draw_bullet_ptr; | |
| 239 | galaxian_draw_background_func galaxian_draw_background_ptr; | |
| 250 | 240 | |
| 251 | /* The background color generator is connected this way: | |
| 241 | /* tile/sprite modification callbacks */ | |
| 242 | galaxian_extend_tile_info_func galaxian_extend_tile_info_ptr; | |
| 243 | galaxian_extend_sprite_info_func galaxian_extend_sprite_info_ptr; | |
| 252 | 244 | |
| 253 | RED - 390 ohm resistor | |
| 254 | GREEN - 470 ohm resistor | |
| 255 | BLUE - 390 ohm resistor */ | |
| 245 | /* global tweaks */ | |
| 246 | UINT8 galaxian_frogger_adjust; | |
| 247 | UINT8 galaxian_sfx_tilemap; | |
| 248 | UINT8 galaxian_sprite_clip_start; | |
| 249 | UINT8 galaxian_sprite_clip_end; | |
| 256 | 250 | |
| 257 | for (i = 0; i < 8; i++) | |
| 258 | { | |
| 259 | int r = BIT(i,0) * 0x55; | |
| 260 | int g = BIT(i,1) * 0x47; | |
| 261 | int b = BIT(i,2) * 0x55; | |
| 262 | 251 | |
| 263 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 264 | } | |
| 265 | } | |
| 266 | 252 | |
| 267 | PALETTE_INIT( stratgyx ) | |
| 268 | { | |
| 269 | int i; | |
| 253 | /************************************* | |
| 254 | * | |
| 255 | * Local variables | |
| 256 | * | |
| 257 | *************************************/ | |
| 270 | 258 | |
| 259 | static tilemap *bg_tilemap; | |
| 271 | 260 | |
| 272 | PALETTE_INIT_CALL(galaxian); | |
| 261 | static UINT8 flipscreen_x; | |
| 262 | static UINT8 flipscreen_y; | |
| 273 | 263 | |
| 264 | static UINT8 background_enable; | |
| 265 | static UINT8 background_red; | |
| 266 | static UINT8 background_green; | |
| 267 | static UINT8 background_blue; | |
| 274 | 268 | |
| 275 | /* The background color generator is connected this way: | |
| 269 | static UINT32 star_rng_origin; | |
| 270 | static UINT32 star_rng_origin_frame; | |
| 271 | static rgb_t star_color[64]; | |
| 272 | static UINT8 *stars; | |
| 273 | static UINT8 stars_enabled; | |
| 274 | static UINT8 stars_blink_state; | |
| 276 | 275 | |
| 277 | RED - 270 ohm resistor | |
| 278 | GREEN - 560 ohm resistor | |
| 279 | BLUE - 470 ohm resistor */ | |
| 276 | static rgb_t bullet_color[8]; | |
| 280 | 277 | |
| 281 | for (i = 0; i < 8; i++) | |
| 282 | { | |
| 283 | int r = BIT(i,0) * 0x7c; | |
| 284 | int g = BIT(i,1) * 0x3c; | |
| 285 | int b = BIT(i,2) * 0x47; | |
| 278 | static UINT8 gfxbank[5]; | |
| 286 | 279 | |
| 287 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 288 | } | |
| 289 | } | |
| 290 | 280 | |
| 291 | PALETTE_INIT( frogger ) | |
| 292 | { | |
| 293 | PALETTE_INIT_CALL(galaxian); | |
| 294 | 281 | |
| 282 | /************************************* | |
| 283 | * | |
| 284 | * Function prototypes | |
| 285 | * | |
| 286 | *************************************/ | |
| 295 | 287 | |
| 296 | /* blue background - 470 ohm resistor */ | |
| 297 | palette_set_color(machine,BACKGROUND_COLOR_BASE,MAKE_RGB(0,0,0x47)); | |
| 298 | } | |
| 288 | static void state_save_register(void); | |
| 289 | static TILE_GET_INFO( bg_get_tile_info ); | |
| 299 | 290 | |
| 300 | PALETTE_INIT( rockclim ) | |
| 301 | { | |
| 302 | int i; | |
| 291 | static void sprites_draw(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, const UINT8 *spritebase); | |
| 303 | 292 | |
| 293 | static void stars_init(void); | |
| 294 | static void stars_update_origin(running_machine *machine); | |
| 295 | static void stars_draw_row(bitmap_t *bitmap, int maxx, int y, UINT32 star_offs, UINT8 starmask); | |
| 304 | 296 | |
| 305 | ||
| 297 | ||
| 306 | 298 | |
| 307 | for (i = 0;i < memory_region_length(REGION_PROMS);i++) | |
| 308 | { | |
| 309 | int bit0,bit1,bit2,r,g,b; | |
| 310 | 299 | |
| 311 | /* red component */ | |
| 312 | bit0 = BIT(*color_prom,0); | |
| 313 | bit1 = BIT(*color_prom,1); | |
| 314 | bit2 = BIT(*color_prom,2); | |
| 315 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 316 | /* green component */ | |
| 317 | bit0 = BIT(*color_prom,3); | |
| 318 | bit1 = BIT(*color_prom,4); | |
| 319 | bit2 = BIT(*color_prom,5); | |
| 320 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 321 | /* blue component */ | |
| 322 | bit0 = BIT(*color_prom,6); | |
| 323 | bit1 = BIT(*color_prom,7); | |
| 324 | b = 0x4f * bit0 + 0xa8 * bit1; | |
| 325 | 300 | |
| 326 | palette_set_color_rgb(machine,i,r,g,b); | |
| 327 | color_prom++; | |
| 328 | } | |
| 329 | } | |
| 330 | /*************************************************************************** | |
| 301 | /************************************* | |
| 302 | * | |
| 303 | * Palette setup | |
| 304 | * | |
| 305 | *************************************/ | |
| 331 | 306 | |
| 332 | Convert the color PROMs into a more useable format. | |
| 307 | PALETTE_INIT( galaxian ) | |
| 308 | { | |
| 309 | static const int rgb_resistances[3] = { 1000, 470, 220 }; | |
| 310 | double rweights[3], gweights[3], bweights[2]; | |
| 311 | int i, minval, midval, maxval; | |
| 312 | UINT8 starmap[4]; | |
| 333 | 313 | |
| 334 | Dark Planet has one 32 bytes palette PROM, connected to the RGB output this way: | |
| 314 | /* | |
| 315 | Sprite/tilemap colors are mapped through a color PROM as follows: | |
| 335 | 316 | |
| 336 | bit 5 -- 220 ohm resistor -- BLUE | |
| 337 | -- 470 ohm resistor -- BLUE | |
| 338 | -- 1 kohm resistor -- BLUE | |
| 339 | -- 220 ohm resistor -- RED | |
| 340 | -- 470 ohm resistor -- RED | |
| 341 | bit 0 -- 1 kohm resistor -- RED | |
| 317 | bit 7 -- 220 ohm resistor -- BLUE | |
| 318 | -- 470 ohm resistor -- BLUE | |
| 319 | -- 220 ohm resistor -- GREEN | |
| 320 | -- 470 ohm resistor -- GREEN | |
| 321 | -- 1 kohm resistor -- GREEN | |
| 322 | -- 220 ohm resistor -- RED | |
| 323 | -- 470 ohm resistor -- RED | |
| 324 | bit 0 -- 1 kohm resistor -- RED | |
| 342 | 325 | |
| 343 | The bullet RGB outputs go through 100 ohm resistors. | |
| 326 | In parallel with these resistors are a pair of 150 ohm and 100 ohm | |
| 327 | resistors on each R,G,B component that are connected to the star | |
| 328 | generator. | |
| 344 | 329 | |
| 345 | The RGB outputs have a 470 ohm pull-down each. | |
| 330 | And in parallel with the whole mess are a set of 100 ohm resistors | |
| 331 | on each R,G,B component that are enabled when a shell/missile is | |
| 332 | enabled. | |
| 346 | 333 | |
| 347 | ***************************************************************************/ | |
| 348 | PALETTE_INIT( darkplnt ) | |
| 349 | { | |
| 350 | int i; | |
| 334 | When computing weights, we use RGB_MAXIMUM as the maximum to give | |
| 335 | headroom for stars and shells/missiles. This is not fully accurate, | |
| 336 | but if we included all possible sources in parallel, the brightness | |
| 337 | of the main game would be very low to allow for all the oversaturation | |
| 338 | of the stars and shells/missiles. | |
| 339 | */ | |
| 340 | compute_resistor_weights(0, RGB_MAXIMUM, -1.0, | |
| 341 | 3, &rgb_resistances[0], rweights, 470, 0, | |
| 342 | 3, &rgb_resistances[0], gweights, 470, 0, | |
| 343 | 2, &rgb_resistances[1], bweights, 470, 0); | |
| 351 | 344 | |
| 352 | ||
| 353 | /* first, the character/sprite palette */ | |
| 354 | ||
| 355 | for (i = 0;i < 32;i++) | |
| 345 | /* decode the palette first */ | |
| 346 | for (i = 0; i < memory_region_length(REGION_PROMS); i++) | |
| 356 | 347 | { |
| 357 | | |
| 348 | UINT8 bit0, bit1, bit2, r, g, b; | |
| 358 | 349 | |
| 359 | 350 | /* red component */ |
| 360 | bit0 = BIT(*color_prom,0); | |
| 361 | bit1 = BIT(*color_prom,1); | |
| 362 | bit2 = BIT(*color_prom,2); | |
| 363 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 351 | bit0 = BIT(color_prom[i],0); | |
| 352 | bit1 = BIT(color_prom[i],1); | |
| 353 | bit2 = BIT(color_prom[i],2); | |
| 354 | r = combine_3_weights(rweights, bit0, bit1, bit2); | |
| 355 | ||
| 364 | 356 | /* green component */ |
| 365 | g = 0x00; | |
| 357 | bit0 = BIT(color_prom[i],3); | |
| 358 | bit1 = BIT(color_prom[i],4); | |
| 359 | bit2 = BIT(color_prom[i],5); | |
| 360 | g = combine_3_weights(gweights, bit0, bit1, bit2); | |
| 361 | ||
| 366 | 362 | /* blue component */ |
| 367 | bit0 = BIT(*color_prom,3); | |
| 368 | bit1 = BIT(*color_prom,4); | |
| 369 | bit2 = BIT(*color_prom,5); | |
| 370 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 363 | bit0 = BIT(color_prom[i],6); | |
| 364 | bit1 = BIT(color_prom[i],7); | |
| 365 | b = combine_2_weights(bweights, bit0, bit1); | |
| 371 | 366 | |
| 372 | palette_set_color_rgb(machine,i,r,g,b); | |
| 373 | color_prom++; | |
| 367 | palette_set_color(machine, i, MAKE_RGB(r,g,b)); | |
| 374 | 368 | } |
| 375 | 369 | |
| 370 | /* | |
| 371 | The maximum sprite/tilemap resistance is ~130 Ohms with all RGB | |
| 372 | outputs enabled (1/(1/1000 + 1/470 + 1/220)). Since we normalized | |
| 373 | to RGB_MAXIMUM, this maps RGB_MAXIMUM -> 130 Ohms. | |
| 376 | 374 | |
| 377 | /* bullets - red and blue */ | |
| 378 | palette_set_color(machine,BULLETS_COLOR_BASE+0,MAKE_RGB(0xef,0x00,0x00)); | |
| 379 | palette_set_color(machine,BULLETS_COLOR_BASE+1,MAKE_RGB(0x00,0x00,0xef)); | |
| 380 | } | |
| 375 | The stars are at 150 Ohms for the LSB, and 100 Ohms for the MSB. | |
| 376 | This means the 3 potential values are: | |
| 381 | 377 | |
| 382 | PALETTE_INIT( minefld ) | |
| 383 | { | |
| 384 | int i; | |
| 378 | 150 Ohms -> RGB_MAXIMUM * 130 / 150 | |
| 379 | 100 Ohms -> RGB_MAXIMUM * 130 / 100 | |
| 380 | 60 Ohms -> RGB_MAXIMUM * 130 / 60 | |
| 385 | 381 | |
| 382 | Since we can't saturate that high, we instead approximate this | |
| 383 | by compressing the values proportionally into the 194->255 range. | |
| 384 | */ | |
| 385 | minval = RGB_MAXIMUM * 130 / 150; | |
| 386 | midval = RGB_MAXIMUM * 130 / 100; | |
| 387 | maxval = RGB_MAXIMUM * 130 / 60; | |
| 386 | 388 | |
| 387 | PALETTE_INIT_CALL(galaxian); | |
| 389 | /* compute the values for each of 4 possible star values */ | |
| 390 | starmap[0] = 0; | |
| 391 | starmap[1] = minval; | |
| 392 | starmap[2] = minval + (255 - minval) * (midval - minval) / (maxval - minval); | |
| 393 | starmap[3] = 255; | |
| 388 | 394 | |
| 395 | /* generate the colors for the stars */ | |
| 396 | for (i = 0; i < 64; i++) | |
| 397 | { | |
| 398 | UINT8 bit0, bit1, r, g, b; | |
| 389 | 399 | |
| 390 | /* set up background colors */ | |
| 400 | /* bit 5 = red @ 150 Ohm, bit 4 = red @ 100 Ohm */ | |
| 401 | bit0 = BIT(i,5); | |
| 402 | bit1 = BIT(i,4); | |
| 403 | r = starmap[(bit1 << 1) | bit0]; | |
| 391 | 404 | |
| 392 | /* graduated blue */ | |
| 405 | /* bit 3 = green @ 150 Ohm, bit 2 = green @ 100 Ohm */ | |
| 406 | bit0 = BIT(i,3); | |
| 407 | bit1 = BIT(i,2); | |
| 408 | g = starmap[(bit1 << 1) | bit0]; | |
| 393 | 409 | |
| 394 | for (i = 0; i < 128; i++) | |
| 395 | { | |
| 396 | int r = 0; | |
| 397 | int g = i; | |
| 398 | int b = i * 2; | |
| 399 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 400 | } | |
| 410 | /* bit 1 = blue @ 150 Ohm, bit 0 = blue @ 100 Ohm */ | |
| 411 | bit0 = BIT(i,1); | |
| 412 | bit1 = BIT(i,0); | |
| 413 | b = starmap[(bit1 << 1) | bit0]; | |
| 401 | 414 | |
| 402 | /* graduated brown */ | |
| 403 | ||
| 404 | for (i = 0; i < 128; i++) | |
| 405 | { | |
| 406 | int r = i * 1.5; | |
| 407 | int g = i * 0.75; | |
| 408 | int b = i / 2; | |
| 409 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+128+i,r,g,b); | |
| 415 | /* set the RGB color */ | |
| 416 | star_color[i] = MAKE_RGB(r, g, b); | |
| 410 | 417 | } |
| 418 | ||
| 419 | /* default bullet colors are white for the first 7, and yellow for the last one */ | |
| 420 | for (i = 0; i < 7; i++) | |
| 421 | bullet_color[i] = MAKE_RGB(0xff,0xff,0xff); | |
| 422 | bullet_color[7] = MAKE_RGB(0xff,0xff,0x00); | |
| 411 | 423 | } |
| 412 | 424 | |
| 413 | PALETTE_INIT( rescue ) | |
| 414 | { | |
| 415 | int i; | |
| 416 | 425 | |
| 417 | 426 | |
| 418 | PALETTE_INIT_CALL(galaxian); | |
| 427 | /************************************* | |
| 428 | * | |
| 429 | * Common video init | |
| 430 | * | |
| 431 | *************************************/ | |
| 419 | 432 | |
| 420 | ||
| 421 | /* set up background colors */ | |
| 422 | ||
| 423 | /* graduated blue */ | |
| 424 | ||
| 425 | for (i = 0; i < 128; i++) | |
| 433 | VIDEO_START( galaxian ) | |
| 434 | { | |
| 435 | /* create a tilemap for the background */ | |
| 436 | if (!galaxian_sfx_tilemap) | |
| 426 | 437 | { |
| 427 | int r = 0; | |
| 428 | int g = i; | |
| 429 | int b = i * 2; | |
| 430 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 438 | /* normal galaxian hardware is row-based and individually scrolling columns */ | |
| 439 | bg_tilemap = tilemap_create(bg_get_tile_info, tilemap_scan_rows, GALAXIAN_XSCALE*8,8, 32,32); | |
| 440 | tilemap_set_scroll_cols(bg_tilemap, 32); | |
| 441 | tilemap_set_scrolldx(bg_tilemap, 0, -GALAXIAN_XSCALE * 128); | |
| 442 | tilemap_set_scrolldy(bg_tilemap, 0, 8); | |
| 431 | 443 | } |
| 432 | } | |
| 433 | ||
| 434 | PALETTE_INIT( mariner ) | |
| 435 | { | |
| 436 | int i; | |
| 437 | ||
| 438 | ||
| 439 | PALETTE_INIT_CALL(galaxian); | |
| 440 | ||
| 441 | ||
| 442 | /* set up background colors */ | |
| 443 | ||
| 444 | /* 16 shades of blue - the 4 bits are connected to the following resistors: | |
| 445 | ||
| 446 | bit 0 -- 4.7 kohm resistor | |
| 447 | -- 2.2 kohm resistor | |
| 448 | -- 1 kohm resistor | |
| 449 | bit 0 -- .47 kohm resistor */ | |
| 450 | ||
| 451 | for (i = 0; i < 16; i++) | |
| 444 | else | |
| 452 | 445 | { |
| 453 | int r,g,b; | |
| 454 | ||
| 455 | r = 0; | |
| 456 | g = 0; | |
| 457 | b = 0x0e * BIT(i,0) + 0x1f * BIT(i,1) + 0x43 * BIT(i,2) + 0x8f * BIT(i,3); | |
| 458 | ||
| 459 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 446 | /* sfx hardware is column-based and individually scrolling rows */ | |
| 447 | bg_tilemap = tilemap_create(bg_get_tile_info, tilemap_scan_cols, GALAXIAN_XSCALE*8,8, 32,32); | |
| 448 | tilemap_set_scroll_rows(bg_tilemap, 32); | |
| 449 | tilemap_set_scrolldx(bg_tilemap, 0, -GALAXIAN_XSCALE * 128); | |
| 450 | tilemap_set_scrolldy(bg_tilemap, 0, 8); | |
| 460 | 451 | } |
| 461 | ||
| 452 | tilemap_set_transparent_pen(bg_tilemap, 0); | |
| 462 | 453 | |
| 454 | /* initialize globals */ | |
| 455 | flipscreen_x = 0; | |
| 456 | flipscreen_y = 0; | |
| 457 | background_enable = 0; | |
| 458 | background_blue = 0; | |
| 459 | background_red = 0; | |
| 460 | background_green = 0; | |
| 463 | 461 | |
| 464 | PALETTE_INIT( dambustr ) | |
| 465 | { | |
| 466 | int i; | |
| 462 | /* initialize stars */ | |
| 463 | stars_init(); | |
| 467 | 464 | |
| 468 | PALETTE_INIT_CALL(galaxian); | |
| 469 | ||
| 470 | ||
| 471 | /* | |
| 472 | Assumption (not clear from the schematics): | |
| 473 | The background color generator is connected this way: | |
| 474 | ||
| 475 | RED - 470 ohm resistor | |
| 476 | GREEN - 470 ohm resistor | |
| 477 | BLUE - 470 ohm resistor */ | |
| 478 | ||
| 479 | ||
| 480 | for (i = 0; i < 8; i++) | |
| 481 | { | |
| 482 | int r = BIT(i,0) * 0x47; | |
| 483 | int g = BIT(i,1) * 0x47; | |
| 484 | int b = BIT(i,2) * 0x4f; | |
| 485 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 486 | } | |
| 465 | /* register for save states */ | |
| 466 | state_save_register(); | |
| 487 | 467 | } |
| 488 | 468 | |
| 489 | 469 | |
| 490 | ||
| 491 | /*************************************************************************** | |
| 492 | ||
| 493 | Start the video hardware emulation. | |
| 494 | ||
| 495 | ***************************************************************************/ | |
| 496 | ||
| 497 | 470 | static void state_save_register(void) |
| 498 | 471 | { |
| 499 | state_save_register_global_array(gfxbank); | |
| 500 | 472 | state_save_register_global(flipscreen_x); |
| 501 | 473 | state_save_register_global(flipscreen_y); |
| 502 | ||
| 503 | state_save_register_global(galaxian_stars_on); | |
| 504 | state_save_register_global(stars_scrollpos); | |
| 505 | state_save_register_global(stars_blink_state); | |
| 506 | ||
| 507 | state_save_register_global(darkplnt_bullet_color); | |
| 508 | ||
| 509 | 474 | state_save_register_global(background_enable); |
| 510 | 475 | state_save_register_global(background_red); |
| 511 | 476 | state_save_register_global(background_green); |
| 512 | 477 | state_save_register_global(background_blue); |
| 513 | } | |
| 514 | 478 | |
| 515 | static void video_start_common(running_machine *machine, tilemap_mapper_func get_memory_offset) | |
| 516 | { | |
| 517 | bg_tilemap = tilemap_create(get_tile_info,get_memory_offset,8,8,32,32); | |
| 479 | state_save_register_global_array(gfxbank); | |
| 518 | 480 | |
| 519 | tilemap_set_transparent_pen(bg_tilemap,0); | |
| 520 | ||
| 521 | ||
| 522 | modify_charcode = 0; | |
| 523 | modify_spritecode = 0; | |
| 524 | modify_color = 0; | |
| 525 | modify_ypos = 0; | |
| 526 | ||
| 527 | mooncrst_gfxextend = 0; | |
| 528 | ||
| 529 | draw_bullets = 0; | |
| 530 | ||
| 531 | draw_background = galaxian_draw_background; | |
| 532 | background_enable = 0; | |
| 533 | background_blue = 0; | |
| 534 | background_red = 0; | |
| 535 | background_green = 0; | |
| 536 | ||
| 537 | draw_stars = noop_draw_stars; | |
| 538 | ||
| 539 | flipscreen_x = 0; | |
| 540 | flipscreen_y = 0; | |
| 541 | ||
| 542 | spriteram2_present = 0; | |
| 543 | ||
| 544 | spritevisiblearea = &_spritevisiblearea; | |
| 545 | spritevisibleareaflipx = &_spritevisibleareaflipx; | |
| 546 | ||
| 547 | color_mask = (machine->gfx[0]->color_granularity == 4) ? 7 : 3; | |
| 548 | ||
| 549 | state_save_register(); | |
| 481 | state_save_register_global(stars_enabled); | |
| 482 | state_save_register_global(star_rng_origin); | |
| 483 | state_save_register_global(star_rng_origin_frame); | |
| 484 | state_save_register_global(stars_blink_state); | |
| 550 | 485 | } |
| 551 | 486 | |
| 552 | VIDEO_START( galaxian_plain ) | |
| 553 | { | |
| 554 | video_start_common(machine,tilemap_scan_rows); | |
| 555 | 487 | |
| 556 | tilemap_set_scroll_cols(bg_tilemap, 32); | |
| 557 | tilemap_set_scroll = tilemap_set_scrolly; | |
| 558 | } | |
| 559 | 488 | |
| 560 | VIDEO_START( galaxian ) | |
| 561 | { | |
| 562 | VIDEO_START_CALL(galaxian_plain); | |
| 489 | /************************************* | |
| 490 | * | |
| 491 | * Common video update | |
| 492 | * | |
| 493 | *************************************/ | |
| 563 | 494 | |
| 564 | draw_stars = galaxian_draw_stars; | |
| 565 | ||
| 566 | draw_bullets = galaxian_draw_bullets; | |
| 567 | } | |
| 568 | ||
| 569 | VIDEO_START( gmgalax ) | |
| 495 | VIDEO_UPDATE( galaxian ) | |
| 570 | 496 | { |
| 571 | VIDEO_START_CALL(galaxian); | |
| 497 | /* draw the background layer (including stars) */ | |
| 498 | (*galaxian_draw_background_ptr)(screen->machine, bitmap, cliprect); | |
| 572 | 499 | |
| 573 | modify_charcode = gmgalax_modify_charcode; | |
| 574 | modify_spritecode = gmgalax_modify_spritecode; | |
| 575 | modify_color = gmgalax_modify_color; | |
| 576 | } | |
| 500 | /* draw the tilemap characters over top */ | |
| 501 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); | |
| 577 | 502 | |
| 578 | VIDEO_START( mooncrst ) | |
| 579 | { | |
| 580 | VIDEO_START_CALL(galaxian); | |
| 503 | /* render the sprites next */ | |
| 504 | sprites_draw(screen->machine, bitmap, cliprect, &spriteram[0x40]); | |
| 581 | 505 | |
| 582 | modify_charcode = mooncrst_modify_charcode; | |
| 583 | modify_spritecode = mooncrst_modify_spritecode; | |
| 584 | } | |
| 506 | /* if we have bullets to draw, render them following */ | |
| 507 | if (galaxian_draw_bullet_ptr != NULL) | |
| 508 | bullets_draw(screen->machine, bitmap, cliprect, &spriteram[0x60]); | |
| 585 | 509 | |
| 586 | VIDEO_START( mooncrgx ) | |
| 587 | { | |
| 588 | VIDEO_START_CALL(galaxian); | |
| 589 | ||
| 590 | modify_charcode = mooncrgx_modify_charcode; | |
| 591 | modify_spritecode = mooncrgx_modify_spritecode; | |
| 510 | return 0; | |
| 592 | 511 | } |
| 593 | 512 | |
| 594 | VIDEO_START( moonqsr ) | |
| 595 | { | |
| 596 | VIDEO_START_CALL(galaxian); | |
| 597 | 513 | |
| 598 | modify_charcode = moonqsr_modify_charcode; | |
| 599 | modify_spritecode = moonqsr_modify_spritecode; | |
| 600 | } | |
| 601 | 514 | |
| 602 | VIDEO_START( mshuttle ) | |
| 603 | { | |
| 604 | VIDEO_START_CALL(galaxian); | |
| 515 | /************************************* | |
| 516 | * | |
| 517 | * Background tilemap | |
| 518 | * | |
| 519 | *************************************/ | |
| 605 | 520 | |
| 606 | modify_charcode = mshuttle_modify_charcode; | |
| 607 | modify_spritecode = mshuttle_modify_spritecode; | |
| 608 | } | |
| 609 | ||
| 610 | VIDEO_START( pisces ) | |
| 521 | static TILE_GET_INFO( bg_get_tile_info ) | |
| 611 | 522 | { |
| 612 | VIDEO_START_CALL(galaxian); | |
| 613 | ||
| 614 | modify_charcode = pisces_modify_charcode; | |
| 615 | modify_spritecode = pisces_modify_spritecode; | |
| 616 | } | |
| 617 | ||
| 618 | VIDEO_START( gteikob2 ) | |
| 619 | { | |
| 620 | VIDEO_START_CALL(pisces); | |
| 621 | ||
| 622 | draw_bullets = gteikob2_draw_bullets; | |
| 623 | } | |
| 624 | ||
| 625 | VIDEO_START( batman2 ) | |
| 626 | { | |
| 627 | VIDEO_START_CALL(galaxian); | |
| 628 | ||
| 629 | modify_charcode = batman2_modify_charcode; | |
| 630 | modify_spritecode = batman2_modify_spritecode; | |
| 631 | ||
| 632 | } | |
| 633 | ||
| 634 | VIDEO_START( scramble ) | |
| 635 | { | |
| 636 | VIDEO_START_CALL(galaxian_plain); | |
| 637 | ||
| 638 | /* FIXME: This most probably needs to be adjusted | |
| 639 | * again when RAW video params are added to scramble | |
| 640 | */ | |
| 641 | tilemap_set_scrolldx(bg_tilemap, 0, 0); | |
| 642 | ||
| 643 | draw_stars = scramble_draw_stars; | |
| 644 | ||
| 645 | draw_bullets = scramble_draw_bullets; | |
| 646 | ||
| 647 | draw_background = scramble_draw_background; | |
| 648 | } | |
| 649 | ||
| 650 | VIDEO_START( sfx ) | |
| 651 | { | |
| 652 | video_start_common(machine,tilemap_scan_cols); | |
| 653 | ||
| 654 | tilemap_set_scroll_rows(bg_tilemap, 32); | |
| 655 | tilemap_set_scroll = tilemap_set_scrollx; | |
| 656 | ||
| 657 | draw_stars = scramble_draw_stars; | |
| 658 | ||
| 659 | draw_bullets = scramble_draw_bullets; | |
| 660 | ||
| 661 | draw_background = turtles_draw_background; | |
| 662 | } | |
| 663 | ||
| 664 | VIDEO_START( turtles ) | |
| 665 | { | |
| 666 | VIDEO_START_CALL(galaxian_plain); | |
| 667 | ||
| 668 | draw_background = turtles_draw_background; | |
| 669 | } | |
| 670 | ||
| 671 | VIDEO_START( theend ) | |
| 672 | { | |
| 673 | VIDEO_START_CALL(galaxian); | |
| 674 | ||
| 675 | draw_bullets = theend_draw_bullets; | |
| 676 | } | |
| 677 | ||
| 678 | VIDEO_START( darkplnt ) | |
| 679 | { | |
| 680 | VIDEO_START_CALL(galaxian_plain); | |
| 681 | ||
| 682 | tilemap_set_scrolldx(bg_tilemap, 0, 0); | |
| 683 | draw_bullets = darkplnt_draw_bullets; | |
| 684 | } | |
| 685 | ||
| 686 | VIDEO_START( rescue ) | |
| 687 | { | |
| 688 | VIDEO_START_CALL(scramble); | |
| 689 | ||
| 690 | draw_stars = rescue_draw_stars; | |
| 691 | ||
| 692 | draw_background = rescue_draw_background; | |
| 693 | } | |
| 694 | ||
| 695 | VIDEO_START( minefld ) | |
| 696 | { | |
| 697 | VIDEO_START_CALL(scramble); | |
| 698 | ||
| 699 | draw_stars = rescue_draw_stars; | |
| 700 | ||
| 701 | draw_background = minefld_draw_background; | |
| 702 | } | |
| 703 | ||
| 704 | VIDEO_START( stratgyx ) | |
| 705 | { | |
| 706 | VIDEO_START_CALL(galaxian_plain); | |
| 707 | ||
| 708 | draw_background = stratgyx_draw_background; | |
| 709 | } | |
| 710 | ||
| 711 | VIDEO_START( ckongs ) | |
| 712 | { | |
| 713 | VIDEO_START_CALL(scramble); | |
| 714 | ||
| 715 | modify_spritecode = mshuttle_modify_spritecode; | |
| 716 | } | |
| 717 | ||
| 718 | VIDEO_START( calipso ) | |
| 719 | { | |
| 720 | VIDEO_START_CALL(galaxian_plain); | |
| 721 | ||
| 722 | draw_bullets = scramble_draw_bullets; | |
| 723 | ||
| 724 | draw_background = scramble_draw_background; | |
| 725 | ||
| 726 | modify_spritecode = calipso_modify_spritecode; | |
| 727 | } | |
| 728 | ||
| 729 | VIDEO_START( mariner ) | |
| 730 | { | |
| 731 | VIDEO_START_CALL(galaxian_plain); | |
| 732 | ||
| 733 | draw_stars = mariner_draw_stars; | |
| 734 | ||
| 735 | draw_bullets = scramble_draw_bullets; | |
| 736 | ||
| 737 | draw_background = mariner_draw_background; | |
| 738 | ||
| 739 | modify_charcode = mariner_modify_charcode; | |
| 740 | } | |
| 741 | ||
| 742 | VIDEO_START( froggers ) | |
| 743 | { | |
| 744 | VIDEO_START_CALL(galaxian_plain); | |
| 745 | ||
| 746 | draw_background = frogger_draw_background; | |
| 747 | modify_color = frogger_modify_color; | |
| 748 | } | |
| 749 | ||
| 750 | VIDEO_START( frogger ) | |
| 751 | { | |
| 752 | VIDEO_START_CALL(froggers); | |
| 753 | ||
| 754 | modify_ypos = frogger_modify_ypos; | |
| 755 | } | |
| 756 | ||
| 757 | VIDEO_START( jumpbug ) | |
| 758 | { | |
| 759 | VIDEO_START_CALL(scramble); | |
| 760 | ||
| 761 | draw_stars = jumpbug_draw_stars; | |
| 762 | ||
| 763 | modify_charcode = jumpbug_modify_charcode; | |
| 764 | modify_spritecode = jumpbug_modify_spritecode; | |
| 765 | } | |
| 766 | ||
| 767 | VIDEO_START( azurian ) | |
| 768 | { | |
| 769 | VIDEO_START_CALL(galaxian_plain); | |
| 770 | ||
| 771 | draw_stars = galaxian_draw_stars; | |
| 772 | draw_bullets = scramble_draw_bullets; /* Shots are yellow like in Scramble */ | |
| 773 | } | |
| 774 | ||
| 775 | VIDEO_START( mimonkey ) | |
| 776 | { | |
| 777 | VIDEO_START_CALL(scramble); | |
| 778 | ||
| 779 | modify_charcode = mimonkey_modify_charcode; | |
| 780 | modify_spritecode = mimonkey_modify_spritecode; | |
| 781 | } | |
| 782 | ||
| 783 | VIDEO_START( dkongjrm ) | |
| 784 | { | |
| 785 | VIDEO_START_CALL(galaxian_plain); | |
| 786 | ||
| 787 | modify_charcode = pisces_modify_charcode; | |
| 788 | modify_spritecode = dkongjrm_modify_spritecode; | |
| 789 | ||
| 790 | spriteram2_present= 1; | |
| 791 | } | |
| 792 | ||
| 793 | VIDEO_START( newsin7 ) | |
| 794 | { | |
| 795 | VIDEO_START_CALL(scramble); | |
| 796 | ||
| 797 | spritevisiblearea = &_spritevisibleareaflipx; | |
| 798 | spritevisibleareaflipx = &_spritevisiblearea; | |
| 799 | } | |
| 800 | ||
| 801 | VIDEO_START( scorpion ) | |
| 802 | { | |
| 803 | VIDEO_START_CALL(scramble); | |
| 804 | ||
| 805 | modify_spritecode = batman2_modify_spritecode; | |
| 806 | } | |
| 807 | ||
| 808 | static void rockclim_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 809 | { | |
| 810 | tilemap_draw(bitmap,cliprect,rockclim_tilemap, 0,0); | |
| 811 | } | |
| 812 | ||
| 813 | static void rockclim_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 814 | { | |
| 815 | if (gfxbank[2]) *code|=0x40; | |
| 816 | } | |
| 817 | ||
| 818 | VIDEO_START( rockclim ) | |
| 819 | { | |
| 820 | VIDEO_START_CALL(galaxian); | |
| 821 | rockclim_tilemap = tilemap_create(rockclim_get_tile_info,tilemap_scan_rows,8,8,64,32); | |
| 822 | draw_background = rockclim_draw_background; | |
| 823 | modify_charcode = mooncrst_modify_charcode; | |
| 824 | modify_spritecode = rockclim_modify_spritecode; | |
| 825 | rockclim_v = rockclim_h = 0; | |
| 826 | state_save_register_global(rockclim_v); | |
| 827 | state_save_register_global(rockclim_h); | |
| 828 | } | |
| 829 | ||
| 830 | static TILE_GET_INFO( drivfrcg_get_tile_info ) | |
| 831 | { | |
| 832 | int code = galaxian_videoram[tile_index]; | |
| 833 | 523 | UINT8 x = tile_index & 0x1f; |
| 834 | UINT8 color = galaxian_attributesram[(x << 1) | 1] & 7; | |
| 835 | UINT8 bank = galaxian_attributesram[(x << 1) | 1] & 0x30; | |
| 836 | 524 | |
| 837 | code |= (bank << 4); | |
| 838 | color |= ((galaxian_attributesram[(x << 1) | 1] & 0x40) >> 3); | |
| 525 | UINT16 code = videoram[tile_index]; | |
| 526 | UINT8 attrib = spriteram[x*2+1]; | |
| 527 | UINT8 color = attrib & 7; | |
| 839 | 528 | |
| 529 | if (galaxian_extend_tile_info_ptr != NULL) | |
| 530 | (*galaxian_extend_tile_info_ptr)(&code, &color, attrib, x); | |
| 531 | ||
| 840 | 532 | SET_TILE_INFO(0, code, color, 0); |
| 841 | 533 | } |
| 842 | 534 | |
| 843 | VIDEO_START( drivfrcg ) | |
| 844 | { | |
| 845 | bg_tilemap = tilemap_create(drivfrcg_get_tile_info,tilemap_scan_rows,8,8,32,32); | |
| 846 | 535 | |
| 847 | tilemap_set_transparent_pen(bg_tilemap,0); | |
| 848 | tilemap_set_scroll_cols(bg_tilemap, 32); | |
| 849 | tilemap_set_scroll = tilemap_set_scrolly; | |
| 850 | ||
| 851 | modify_charcode = 0; | |
| 852 | modify_spritecode = mshuttle_modify_spritecode; | |
| 853 | modify_color = drivfrcg_modify_color; | |
| 854 | modify_ypos = 0; | |
| 855 | ||
| 856 | mooncrst_gfxextend = 0; | |
| 857 | ||
| 858 | draw_bullets = 0; | |
| 859 | ||
| 860 | draw_background = galaxian_draw_background; | |
| 861 | background_enable = 0; | |
| 862 | background_blue = 0; | |
| 863 | background_red = 0; | |
| 864 | background_green = 0; | |
| 865 | ||
| 866 | draw_stars = noop_draw_stars; | |
| 867 | ||
| 868 | flipscreen_x = 0; | |
| 869 | flipscreen_y = 0; | |
| 870 | ||
| 871 | spriteram2_present = 0; | |
| 872 | ||
| 873 | spritevisiblearea = &_spritevisiblearea; | |
| 874 | spritevisibleareaflipx = &_spritevisibleareaflipx; | |
| 875 | ||
| 876 | color_mask = 0xff; | |
| 877 | ||
| 878 | state_save_register(); | |
| 879 | } | |
| 880 | ||
| 881 | VIDEO_START( ad2083 ) | |
| 536 | WRITE8_HANDLER( galaxian_videoram_w ) | |
| 882 | 537 | { |
| 883 | bg_tilemap = tilemap_create(drivfrcg_get_tile_info,tilemap_scan_rows,8,8,32,32); | |
| 538 | /* update any video up to the current scanline */ | |
| 539 | video_screen_update_now(machine->primary_screen); | |
| 884 | 540 | |
| 885 | tilemap_set_transparent_pen(bg_tilemap,0); | |
| 886 | tilemap_set_scroll_cols(bg_tilemap, 32); | |
| 887 | tilemap_set_scroll = tilemap_set_scrolly; | |
| 888 | ||
| 889 | modify_charcode = 0; | |
| 890 | modify_spritecode = ad2083_modify_spritecode; | |
| 891 | modify_color = 0; | |
| 892 | modify_ypos = 0; | |
| 893 | ||
| 894 | mooncrst_gfxextend = 0; | |
| 895 | ||
| 896 | draw_bullets = scramble_draw_bullets; | |
| 897 | ||
| 898 | draw_background = turtles_draw_background; | |
| 899 | background_enable = 0; | |
| 900 | background_blue = 0; | |
| 901 | background_red = 0; | |
| 902 | background_green = 0; | |
| 903 | ||
| 904 | draw_stars = noop_draw_stars; | |
| 905 | ||
| 906 | flipscreen_x = 0; | |
| 907 | flipscreen_y = 0; | |
| 908 | ||
| 909 | spriteram2_present = 0; | |
| 910 | ||
| 911 | spritevisiblearea = &_spritevisiblearea; | |
| 912 | spritevisibleareaflipx = &_spritevisibleareaflipx; | |
| 913 | ||
| 914 | color_mask = 7; | |
| 915 | ||
| 916 | state_save_register(); | |
| 541 | /* store the data and mark the corresponding tile dirty */ | |
| 542 | videoram[offset] = data; | |
| 543 | tilemap_mark_tile_dirty(bg_tilemap, offset); | |
| 917 | 544 | } |
| 918 | 545 | |
| 919 | UINT8 *racknrol_tiles_bank; | |
| 920 | 546 | |
| 921 | WRITE8_HANDLER( | |
| 547 | WRITE8_HANDLER( ga | |
| 922 | 548 | { |
| 923 | racknrol_tiles_bank[offset] = data; | |
| 924 | tilemap_mark_all_tiles_dirty(bg_tilemap); | |
| 925 | } | |
| 549 | /* update any video up to the current scanline */ | |
| 550 | video_screen_update_now(machine->primary_screen); | |
| 926 | 551 | |
| 927 | static TILE_GET_INFO( racknrol_get_tile_info ) | |
| 928 | { | |
| 929 | int code = galaxian_videoram[tile_index]; | |
| 930 | UINT8 x = tile_index & 0x1f; | |
| 931 | UINT8 color = galaxian_attributesram[(x << 1) | 1] & 7; | |
| 932 | UINT8 bank = racknrol_tiles_bank[x] & 7; | |
| 552 | /* store the data */ | |
| 553 | spriteram[offset] = data; | |
| 933 | 554 | |
| 934 | code |= (bank << 8); | |
| 555 | /* the first $40 bytes affect the tilemap */ | |
| 556 | if (offset < 0x40) | |
| 557 | { | |
| 558 | /* even entries control the scroll position */ | |
| 559 | if ((offset & 0x01) == 0) | |
| 560 | { | |
| 561 | /* Frogger: top and bottom 4 bits swapped entering the adder */ | |
| 562 | if (galaxian_frogger_adjust) | |
| 563 | data = (data >> 4) | (data << 4); | |
| 564 | if (!galaxian_sfx_tilemap) | |
| 565 | tilemap_set_scrolly(bg_tilemap, offset >> 1, data); | |
| 566 | else | |
| 567 | tilemap_set_scrollx(bg_tilemap, offset >> 1, GALAXIAN_XSCALE*data); | |
| 568 | } | |
| 935 | 569 | |
| 936 | SET_TILE_INFO(0, code, color, 0); | |
| 570 | /* odd entries control the color base for the row */ | |
| 571 | else | |
| 572 | { | |
| 573 | for (offset >>= 1; offset < 0x0400; offset += 32) | |
| 574 | tilemap_mark_tile_dirty(bg_tilemap, offset); | |
| 575 | } | |
| 576 | } | |
| 937 | 577 | } |
| 938 | 578 | |
| 939 | VIDEO_START( racknrol ) | |
| 940 | { | |
| 941 | bg_tilemap = tilemap_create(racknrol_get_tile_info,tilemap_scan_rows,8,8,32,32); | |
| 942 | 579 | |
| 943 | tilemap_set_transparent_pen(bg_tilemap,0); | |
| 944 | tilemap_set_scroll_cols(bg_tilemap, 32); | |
| 945 | tilemap_set_scroll = tilemap_set_scrolly; | |
| 946 | 580 | |
| 947 | modify_charcode = 0; | |
| 948 | modify_spritecode = 0; | |
| 949 | modify_color = 0; | |
| 950 | modify_ypos = 0; | |
| 581 | /************************************* | |
| 582 | * | |
| 583 | * Sprite rendering | |
| 584 | * | |
| 585 | *************************************/ | |
| 951 | 586 | |
| 952 | mooncrst_gfxextend = 0; | |
| 953 | ||
| 954 | draw_bullets = 0; | |
| 955 | ||
| 956 | draw_background = galaxian_draw_background; | |
| 957 | background_enable = 0; | |
| 958 | background_blue = 0; | |
| 959 | background_red = 0; | |
| 960 | background_green = 0; | |
| 961 | ||
| 962 | draw_stars = noop_draw_stars; | |
| 963 | ||
| 964 | flipscreen_x = 0; | |
| 965 | flipscreen_y = 0; | |
| 966 | ||
| 967 | spriteram2_present = 0; | |
| 968 | ||
| 969 | spritevisiblearea = &_spritevisiblearea; | |
| 970 | spritevisibleareaflipx = &_spritevisibleareaflipx; | |
| 971 | ||
| 972 | color_mask = 0xff; | |
| 973 | ||
| 974 | state_save_register(); | |
| 975 | } | |
| 976 | ||
| 977 | VIDEO_START( bongo ) | |
| 587 | static void sprites_draw(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, const UINT8 *spritebase) | |
| 978 | 588 | { |
| 979 | VIDEO_START_CALL(galaxian_plain); | |
| 589 | rectangle clip = *cliprect; | |
| 590 | int sprnum; | |
| 980 | 591 | |
| 981 | modify_spritecode = batman2_modify_spritecode; | |
| 982 | } | |
| 592 | /* 16 of the 256 pixels of the sprites are hard-clipped at the line buffer */ | |
| 593 | /* according to the schematics, it should be the first 16 pixels; however, */ | |
| 594 | /* some bootlegs demonstrate that this can be shifted to other positions. */ | |
| 595 | clip.min_x = MAX(clip.min_x, galaxian_sprite_clip_start * GALAXIAN_XSCALE); | |
| 596 | clip.max_x = MIN(clip.max_x, (galaxian_sprite_clip_end + 1) * GALAXIAN_XSCALE - 1); | |
| 983 | 597 | |
| 984 | static TILE_GET_INFO( dambustr_get_tile_info2 ) | |
| 985 | { | |
| 986 | UINT8 x = tile_index & 0x1f; | |
| 987 | ||
| 988 | UINT16 code = dambustr_videoram2[tile_index]; | |
| 989 | UINT8 color = galaxian_attributesram[(x << 1) | 1] & color_mask; | |
| 990 | ||
| 991 | if (modify_charcode) | |
| 598 | /* The line buffer is only written if it contains a '0' currently; */ | |
| 599 | /* it is cleared during the visible area, and populated during HBLANK */ | |
| 600 | /* To simulate this, we render backwards so that lower numbered sprites */ | |
| 601 | /* have priority over higher numbered sprites. */ | |
| 602 | for (sprnum = 7; sprnum >= 0; sprnum--) | |
| 992 | 603 | { |
| 993 | modify_charcode(&code, x); | |
| 994 | } | |
| 604 | const UINT8 *base = &spritebase[sprnum * 4]; | |
| 605 | /* Frogger: top and bottom 4 bits swapped entering the adder */ | |
| 606 | UINT8 base0 = galaxian_frogger_adjust ? ((base[0] >> 4) | (base[0] << 4)) : base[0]; | |
| 607 | /* the first three sprites match against y-1 */ | |
| 608 | UINT8 sy = 240 - (base0 - (sprnum < 3)); | |
| 609 | UINT16 code = base[1] & 0x3f; | |
| 610 | UINT8 flipx = base[1] & 0x40; | |
| 611 | UINT8 flipy = base[1] & 0x80; | |
| 612 | UINT8 color = base[2] & 7; | |
| 613 | UINT8 sx = base[3]; | |
| 995 | 614 | |
| 996 | if (modify_color) | |
| 997 | { | |
| 998 | modify_color(&color); | |
| 999 | } | |
| 615 | /* extend the sprite information */ | |
| 616 | if (galaxian_extend_sprite_info_ptr != NULL) | |
| 617 | (*galaxian_extend_sprite_info_ptr)(base, &sx, &sy, &flipx, &flipy, &code, &color); | |
| 1000 | 618 | |
| 1001 | SET_TILE_INFO(0, code, color, 0); | |
| 1002 | } | |
| 619 | /* apply flipscreen in X direction */ | |
| 620 | if (flipscreen_x) | |
| 621 | { | |
| 622 | sx = 240 - sx; | |
| 623 | flipx = !flipx; | |
| 624 | } | |
| 1003 | 625 | |
| 1004 | VIDEO_START( dambustr ) | |
| 1005 | { | |
| 1006 | VIDEO_START_CALL(galaxian); | |
| 626 | /* apply flipscreen in Y direction */ | |
| 627 | if (flipscreen_y) | |
| 628 | { | |
| 629 | sy = 240 - sy; | |
| 630 | flipy = !flipy; | |
| 631 | } | |
| 1007 | 632 | |
| 1008 | dambustr_bg_split_line = 0; | |
| 1009 | dambustr_bg_color_1 = 0; | |
| 1010 | dambustr_bg_color_2 = 0; | |
| 1011 | dambustr_bg_priority = 0; | |
| 1012 | dambustr_char_bank = 0; | |
| 1013 | ||
| 1014 | draw_background = dambustr_draw_background; | |
| 1015 | ||
| 1016 | modify_charcode = dambustr_modify_charcode; | |
| 1017 | modify_spritecode = dambustr_modify_spritecode; | |
| 1018 | ||
| 1019 | draw_bullets = dambustr_draw_bullets; | |
| 1020 | ||
| 1021 | /* allocate the temporary bitmap for the background priority */ | |
| 1022 | dambustr_tmpbitmap = video_screen_auto_bitmap_alloc(machine->primary_screen); | |
| 1023 | ||
| 1024 | /* make a copy of the tilemap to emulate background priority */ | |
| 1025 | dambustr_videoram2 = auto_malloc(0x0400); | |
| 1026 | dambustr_tilemap2 = tilemap_create(dambustr_get_tile_info2,tilemap_scan_rows,8,8,32,32); | |
| 1027 | ||
| 1028 | tilemap_set_transparent_pen(dambustr_tilemap2,0); | |
| 633 | /* draw */ | |
| 634 | drawgfx(bitmap, machine->gfx[1], | |
| 635 | code, color, | |
| 636 | flipx, flipy, | |
| 637 | GALAXIAN_H0START + GALAXIAN_XSCALE * sx, sy, | |
| 638 | &clip, | |
| 639 | TRANSPARENCY_PEN, 0); | |
| 640 | } | |
| 1029 | 641 | } |
| 1030 | 642 | |
| 1031 | 643 | |
| 1032 | WRITE8_HANDLER( galaxian_videoram_w ) | |
| 1033 | { | |
| 1034 | galaxian_videoram[offset] = data; | |
| 1035 | tilemap_mark_tile_dirty(bg_tilemap, offset); | |
| 1036 | } | |
| 1037 | 644 | |
| 1038 | READ8_HANDLER( galaxian_videoram_r ) | |
| 1039 | { | |
| 1040 | return galaxian_videoram[offset]; | |
| 1041 | } | |
| 645 | /************************************* | |
| 646 | * | |
| 647 | * Bullets rendering | |
| 648 | * | |
| 649 | *************************************/ | |
| 1042 | 650 | |
| 1043 | ||
| 1044 | WRITE8_HANDLER( galaxian_attributesram_w ) | |
| 651 | static void bullets_draw(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, const UINT8 *base) | |
| 1045 | 652 | { |
| 1046 | if (galaxian_attributesram[offset] != data) | |
| 653 | int y; | |
| 654 | ||
| 655 | /* iterate over scanlines */ | |
| 656 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) | |
| 1047 | 657 | { |
| 1048 | if (offset & 0x01) | |
| 1049 | { | |
| 1050 | /* color change */ | |
| 1051 | int i; | |
| 658 | UINT8 shell = 0xff, missile = 0xff; | |
| 659 | UINT8 effy; | |
| 660 | int which; | |
| 1052 | 661 | |
| 1053 | for (i = offset >> 1; i < 0x0400; i += 32) | |
| 1054 | tilemap_mark_tile_dirty(bg_tilemap, i); | |
| 1055 | } | |
| 1056 | else | |
| 1057 | { | |
| 1058 | if (modify_ypos) | |
| 662 | /* the first 3 entries match Y-1 */ | |
| 663 | effy = flipscreen_y ? ((y - 1) ^ 255) : (y - 1); | |
| 664 | for (which = 0; which < 3; which++) | |
| 665 | if ((UINT8)(base[which*4+1] + effy) == 0xff) | |
| 666 | shell = which; | |
| 667 | ||
| 668 | /* remaining entries match Y */ | |
| 669 | effy = flipscreen_y ? (y ^ 255) : y; | |
| 670 | for (which = 3; which < 8; which++) | |
| 671 | if ((UINT8)(base[which*4+1] + effy) == 0xff) | |
| 1059 | 672 | { |
| 1060 | modify_ypos(&data); | |
| 673 | if (which != 7) | |
| 674 | shell = which; | |
| 675 | else | |
| 676 | missile = which; | |
| 1061 | 677 | } |
| 1062 | 678 | |
| 1063 | tilemap_set_scroll(bg_tilemap, offset >> 1, data); | |
| 1064 | } | |
| 1065 | ||
| 1066 | galaxian_attributesram[offset] = data; | |
| 679 | /* draw the shell */ | |
| 680 | if (shell != 0xff) | |
| 681 | (*galaxian_draw_bullet_ptr)(machine, bitmap, cliprect, shell, 255 - base[shell*4+3], y); | |
| 682 | if (missile != 0xff) | |
| 683 | (*galaxian_draw_bullet_ptr)(machine, bitmap, cliprect, missile, 255 - base[missile*4+3], y); | |
| 1067 | 684 | } |
| 1068 | 685 | } |
| 1069 | 686 | |
| 1070 | 687 | |
| 688 | ||
| 689 | /************************************* | |
| 690 | * | |
| 691 | * Screen orientation | |
| 692 | * | |
| 693 | *************************************/ | |
| 694 | ||
| 1071 | 695 | WRITE8_HANDLER( galaxian_flip_screen_x_w ) |
| 1072 | 696 | { |
| 1073 | 697 | if (flipscreen_x != (data & 0x01)) |
| 1074 | 698 | { |
| 1075 | | |
| 699 | v | |
| 1076 | 700 | |
| 701 | /* when the direction changes, we count a different number of clocks */ | |
| 702 | /* per frame, so we need to reset the origin of the stars to the current */ | |
| 703 | /* frame before we flip */ | |
| 704 | stars_update_origin(machine); | |
| 705 | ||
| 706 | flipscreen_x = data & 0x01; | |
| 1077 | 707 | tilemap_set_flip(bg_tilemap, (flipscreen_x ? TILEMAP_FLIPX : 0) | (flipscreen_y ? TILEMAP_FLIPY : 0)); |
| 1078 | 708 | } |
| 1079 | 709 | } |
| r2241 | r2242 | |
| 1082 | 712 | { |
| 1083 | 713 | if (flipscreen_y != (data & 0x01)) |
| 1084 | 714 | { |
| 715 | video_screen_update_now(machine->primary_screen); | |
| 1085 | 716 | flipscreen_y = data & 0x01; |
| 1086 | ||
| 1087 | 717 | tilemap_set_flip(bg_tilemap, (flipscreen_x ? TILEMAP_FLIPX : 0) | (flipscreen_y ? TILEMAP_FLIPY : 0)); |
| 1088 | 718 | } |
| 1089 | 719 | } |
| 1090 | 720 | |
| 1091 | ||
| 1092 | WRITE8_HANDLER( gteikob2_flip_screen_x_w ) | |
| 721 | WRITE8_HANDLER( galaxian_flip_screen_xy_w ) | |
| 1093 | 722 | { |
| 1094 | galaxian_flip_screen_x_w(machine, offset, ~data); | |
| 723 | galaxian_flip_screen_x_w(machine, offset, data); | |
| 724 | galaxian_flip_screen_y_w(machine, offset, data); | |
| 1095 | 725 | } |
| 1096 | 726 | |
| 1097 | WRITE8_HANDLER( gteikob2_flip_screen_y_w ) | |
| 1098 | { | |
| 1099 | galaxian_flip_screen_y_w(machine, offset, ~data); | |
| 1100 | } | |
| 1101 | 727 | |
| 1102 | 728 | |
| 1103 | WRITE8_HANDLER( hotshock_flip_screen_w ) | |
| 729 | /************************************* | |
| 730 | * | |
| 731 | * Background controls | |
| 732 | * | |
| 733 | *************************************/ | |
| 734 | ||
| 735 | WRITE8_HANDLER( galaxian_stars_enable_w ) | |
| 1104 | 736 | { |
| 1105 | galaxian_flip_screen_x_w(machine, offset, data); | |
| 1106 | galaxian_flip_screen_y_w(machine, offset, data); | |
| 737 | if ((stars_enabled ^ data) & 0x01) | |
| 738 | video_screen_update_now(machine->primary_screen); | |
| 739 | if (!stars_enabled && (data & 0x01)) | |
| 740 | { | |
| 741 | /* on the rising edge of this, the CLR on the shift registers is released */ | |
| 742 | /* this resets the "origin" of this frame to 0 minus the number of clocks */ | |
| 743 | /* we have counted so far */ | |
| 744 | star_rng_origin = STAR_RNG_PERIOD - (video_screen_get_vpos(machine->primary_screen) * 512 + video_screen_get_hpos(machine->primary_screen)); | |
| 745 | star_rng_origin_frame = video_screen_get_frame_number(machine->primary_screen); | |
| 746 | } | |
| 747 | stars_enabled = data & 0x01; | |
| 1107 | 748 | } |
| 1108 | 749 | |
| 1109 | 750 | |
| 1110 | 751 | WRITE8_HANDLER( scramble_background_enable_w ) |
| 1111 | 752 | { |
| 753 | video_screen_update_now(machine->primary_screen); | |
| 1112 | 754 | background_enable = data & 0x01; |
| 1113 | 755 | } |
| 1114 | 756 | |
| 757 | ||
| 1115 | 758 | WRITE8_HANDLER( scramble_background_red_w ) |
| 1116 | 759 | { |
| 760 | video_screen_update_now(machine->primary_screen); | |
| 1117 | 761 | background_red = data & 0x01; |
| 1118 | 762 | } |
| 1119 | 763 | |
| 764 | ||
| 1120 | 765 | WRITE8_HANDLER( scramble_background_green_w ) |
| 1121 | 766 | { |
| 767 | video_screen_update_now(machine->primary_screen); | |
| 1122 | 768 | background_green = data & 0x01; |
| 1123 | 769 | } |
| 1124 | 770 | |
| 771 | ||
| 1125 | 772 | WRITE8_HANDLER( scramble_background_blue_w ) |
| 1126 | 773 | { |
| 774 | video_screen_update_now(machine->primary_screen); | |
| 1127 | 775 | background_blue = data & 0x01; |
| 1128 | 776 | } |
| 1129 | 777 | |
| 1130 | 778 | |
| 1131 | WRITE8_HANDLER( galaxian_stars_enable_w ) | |
| 1132 | { | |
| 1133 | galaxian_stars_on = data & 0x01; | |
| 1134 | 779 | |
| 1135 | if (!galaxian_stars_on) | |
| 1136 | { | |
| 1137 | stars_scrollpos = 0; | |
| 1138 | } | |
| 1139 | } | |
| 780 | /************************************* | |
| 781 | * | |
| 782 | * Graphics banking | |
| 783 | * | |
| 784 | *************************************/ | |
| 1140 | 785 | |
| 1141 | ||
| 1142 | WRITE8_HANDLER( darkplnt_bullet_color_w ) | |
| 1143 | { | |
| 1144 | darkplnt_bullet_color = data & 0x01; | |
| 1145 | } | |
| 1146 | ||
| 1147 | ||
| 1148 | ||
| 1149 | 786 | WRITE8_HANDLER( galaxian_gfxbank_w ) |
| 1150 | 787 | { |
| 1151 | 788 | if (gfxbank[offset] != data) |
| 1152 | 789 | { |
| 790 | video_screen_update_now(machine->primary_screen); | |
| 1153 | 791 | gfxbank[offset] = data; |
| 1154 | ||
| 1155 | 792 | tilemap_mark_all_tiles_dirty(bg_tilemap); |
| 1156 | 793 | } |
| 1157 | 794 | } |
| 1158 | 795 | |
| 1159 | WRITE8_HANDLER( rockclim_videoram_w ) | |
| 1160 | { | |
| 1161 | rockclim_videoram[offset] = data; | |
| 1162 | tilemap_mark_tile_dirty(rockclim_tilemap, offset); | |
| 1163 | } | |
| 1164 | 796 | |
| 1165 | WRITE8_HANDLER( rockclim_scroll_w ) | |
| 1166 | { | |
| 1167 | switch(offset&3) | |
| 1168 | { | |
| 1169 | case 0: rockclim_h=(rockclim_h&0xff00)|data;tilemap_set_scrollx(rockclim_tilemap , 0, rockclim_h );break; | |
| 1170 | case 1: rockclim_h=(rockclim_h&0xff)|(data<<8);tilemap_set_scrollx(rockclim_tilemap , 0, rockclim_h );break; | |
| 1171 | case 2: rockclim_v=(rockclim_v&0xff00)|data;tilemap_set_scrolly(rockclim_tilemap , 0, rockclim_v );break; | |
| 1172 | case 3: rockclim_v=(rockclim_v&0xff)|(data<<8);tilemap_set_scrolly(rockclim_tilemap , 0, rockclim_v );break; | |
| 1173 | } | |
| 1174 | 797 | |
| 1175 | } | |
| 798 | /************************************* | |
| 799 | * | |
| 800 | * Star initialization | |
| 801 | * | |
| 802 | *************************************/ | |
| 1176 | 803 | |
| 1177 | ||
| 1178 | READ8_HANDLER( rockclim_videoram_r ) | |
| 804 | static void stars_init(void) | |
| 1179 | 805 | { |
| 1180 | return rockclim_videoram[offset]; | |
| 1181 | } | |
| 806 | UINT32 shiftreg; | |
| 807 | int i; | |
| 1182 | 808 | |
| 809 | /* reset the blink and enabled states */ | |
| 810 | stars_enabled = FALSE; | |
| 811 | stars_blink_state = 0; | |
| 1183 | 812 | |
| 1184 | WRITE8_HANDLER( dambustr_bg_split_line_w ) | |
| 1185 | { | |
| 1186 | dambustr_bg_split_line = data; | |
| 1187 | } | |
| 1188 | ||
| 1189 | ||
| 1190 | WRITE8_HANDLER( dambustr_bg_color_w ) | |
| 1191 | { | |
| 1192 | dambustr_bg_color_1 = (BIT(data,2)<<2) | (BIT(data,1)<<1) | BIT(data,0); | |
| 1193 | dambustr_bg_color_2 = (BIT(data,6)<<2) | (BIT(data,5)<<1) | BIT(data,4); | |
| 1194 | dambustr_bg_priority = BIT(data,3); | |
| 1195 | dambustr_char_bank = BIT(data,7); | |
| 1196 | tilemap_mark_all_tiles_dirty(bg_tilemap); | |
| 1197 | } | |
| 1198 | ||
| 1199 | ||
| 1200 | ||
| 1201 | /* character banking functions */ | |
| 1202 | ||
| 1203 | static void gmgalax_modify_charcode(UINT16 *code,UINT8 x) | |
| 1204 | { | |
| 1205 | *code |= (gfxbank[0] << 9); | |
| 1206 | } | |
| 1207 | ||
| 1208 | static void mooncrst_modify_charcode(UINT16 *code,UINT8 x) | |
| 1209 | { | |
| 1210 | if (gfxbank[2] && ((*code & 0xc0) == 0x80)) | |
| 813 | /* precalculate the RNG */ | |
| 814 | stars = auto_malloc(STAR_RNG_PERIOD); | |
| 815 | shiftreg = 0; | |
| 816 | for (i = 0; i < STAR_RNG_PERIOD; i++) | |
| 1211 | 817 | { |
| 1212 | *code = (*code & 0x3f) | (gfxbank[0] << 6) | (gfxbank[1] << 7) | 0x0100; | |
| 1213 | } | |
| 1214 | } | |
| 818 | /* stars are enabled if the upper 8 bits are 1 and the low bit is 0 */ | |
| 819 | int enabled = ((shiftreg & 0x1fe01) == 0x1fe00); | |
| 1215 | 820 | |
| 1216 | static void mooncrgx_modify_charcode(UINT16 *code,UINT8 x) | |
| 1217 | { | |
| 1218 | if (gfxbank[2] && ((*code & 0xc0) == 0x80)) | |
| 1219 | { | |
| 1220 | *code = (*code & 0x3f) | (gfxbank[1] << 6) | (gfxbank[0] << 7) | 0x0100; | |
| 1221 | } | |
| 1222 | } | |
| 821 | /* color comes from the 6 bits below the top 8 bits */ | |
| 822 | int color = (~shiftreg & 0x1f8) >> 3; | |
| 1223 | 823 | |
| 1224 | static void moonqsr_modify_charcode(UINT16 *code,UINT8 x) | |
| 1225 | { | |
| 1226 | *code |= ((galaxian_attributesram[(x << 1) | 1] & 0x20) << 3); | |
| 1227 | } | |
| 824 | /* store the color value in the low 6 bits and the enable in the upper bit */ | |
| 825 | stars[i] = color | (enabled << 7); | |
| 1228 | 826 | |
| 1229 | static void mshuttle_modify_charcode(UINT16 *code,UINT8 x) | |
| 1230 | { | |
| 1231 | *code |= ((galaxian_attributesram[(x << 1) | 1] & 0x30) << 4); | |
| 1232 | } | |
| 1233 | ||
| 1234 | static void pisces_modify_charcode(UINT16 *code,UINT8 x) | |
| 1235 | { | |
| 1236 | *code |= (gfxbank[0] << 8); | |
| 1237 | } | |
| 1238 | ||
| 1239 | static void mimonkey_modify_charcode(UINT16 *code,UINT8 x) | |
| 1240 | { | |
| 1241 | *code |= (gfxbank[0] << 8) | (gfxbank[2] << 9); | |
| 1242 | } | |
| 1243 | ||
| 1244 | static void batman2_modify_charcode(UINT16 *code,UINT8 x) | |
| 1245 | { | |
| 1246 | if (*code & 0x80) | |
| 1247 | { | |
| 1248 | *code |= (gfxbank[0] << 8); | |
| 827 | /* the LFSR is fed based on the XOR of bit 12 and the inverse of bit 0 */ | |
| 828 | shiftreg = (shiftreg >> 1) | ((((shiftreg >> 12) ^ ~shiftreg) & 1) << 16); | |
| 1249 | 829 | } |
| 1250 | 830 | } |
| 1251 | 831 | |
| 1252 | static void mariner_modify_charcode(UINT16 *code,UINT8 x) | |
| 1253 | { | |
| 1254 | UINT8 *prom; | |
| 1255 | 832 | |
| 1256 | 833 | |
| 1257 | /* bit 0 of the PROM controls character banking */ | |
| 834 | /************************************* | |
| 835 | * | |
| 836 | * Adjust the origin of stars | |
| 837 | * | |
| 838 | *************************************/ | |
| 1258 | 839 | |
| 1259 | prom = memory_region(REGION_USER2); | |
| 1260 | ||
| 1261 | *code |= ((prom[x] & 0x01) << 8); | |
| 1262 | } | |
| 1263 | ||
| 1264 | static void jumpbug_modify_charcode(UINT16 *code,UINT8 x) | |
| 840 | static void stars_update_origin(running_machine *machine) | |
| 1265 | 841 | { |
| 1266 | if (((*code & 0xc0) == 0x80) && | |
| 1267 | (gfxbank[2] & 0x01)) | |
| 1268 | { | |
| 1269 | *code += 128 + (( gfxbank[0] & 0x01) << 6) + | |
| 1270 | (( gfxbank[1] & 0x01) << 7) + | |
| 1271 | ((~gfxbank[4] & 0x01) << 8); | |
| 1272 | } | |
| 1273 | } | |
| 842 | int curframe = video_screen_get_frame_number(machine->primary_screen); | |
| 1274 | 843 | |
| 1275 | ||
| 1276 | static void dambustr_modify_charcode(UINT16 *code,UINT8 x) | |
| 1277 | { | |
| 1278 | if (dambustr_char_bank == 0) { // text mode | |
| 1279 | *code |= 0x0300; | |
| 1280 | } | |
| 1281 | else { // graphics mode | |
| 1282 | if (x == 28) // only line #28 stays in text mode | |
| 1283 | *code |= 0x0300; | |
| 1284 | else | |
| 1285 | *code &= 0x00ff; | |
| 1286 | }; | |
| 1287 | } | |
| 1288 | ||
| 1289 | ||
| 1290 | ||
| 1291 | /* sprite banking functions */ | |
| 1292 | ||
| 1293 | static void gmgalax_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1294 | { | |
| 1295 | *code |= (gfxbank[0] << 7) | 0x40; | |
| 1296 | } | |
| 1297 | ||
| 1298 | static void mooncrst_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1299 | { | |
| 1300 | if (gfxbank[2] && ((*code & 0x30) == 0x20)) | |
| 844 | /* only update on a different frame */ | |
| 845 | if (curframe != star_rng_origin_frame) | |
| 1301 | 846 | { |
| 1302 | *code = (*code & 0x0f) | (gfxbank[0] << 4) | (gfxbank[1] << 5) | 0x40; | |
| 1303 | } | |
| 1304 | } | |
| 847 | /* The RNG period is 2^17-1; each frame, the shift register is clocked */ | |
| 848 | /* 512*256 = 2^17 times. This means that we clock one extra time each */ | |
| 849 | /* frame. However, if we are NOT flipped, there is a pair of D flip-flops */ | |
| 850 | /* at 6B which delay the count so that we count 512*256-2 = 2^17-2 times. */ | |
| 851 | /* In this case, we only one time less than the period each frame. Both */ | |
| 852 | /* of these off-by-one countings produce the horizontal star scrolling. */ | |
| 853 | int per_frame_delta = flipscreen_x ? 1 : -1; | |
| 854 | int total_delta = per_frame_delta * (curframe - star_rng_origin_frame); | |
| 1305 | 855 | |
| 1306 | static void mooncrgx_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1307 | { | |
| 1308 | if (gfxbank[2] && ((*code & 0x30) == 0x20)) | |
| 1309 | { | |
| 1310 | *code = (*code & 0x0f) | (gfxbank[1] << 4) | (gfxbank[0] << 5) | 0x40; | |
| 1311 | } | |
| 1312 | } | |
| 856 | /* we can't just use % here because mod of a negative number is undefined */ | |
| 857 | while (total_delta < 0) | |
| 858 | total_delta += STAR_RNG_PERIOD; | |
| 1313 | 859 | |
| 1314 | static void moonqsr_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1315 | { | |
| 1316 | *code |= ((spriteram[offs + 2] & 0x20) << 1); | |
| 1317 | } | |
| 1318 | ||
| 1319 | static void mshuttle_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1320 | { | |
| 1321 | *code |= ((spriteram[offs + 2] & 0x30) << 2); | |
| 1322 | } | |
| 1323 | ||
| 1324 | static void calipso_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1325 | { | |
| 1326 | /* No flips */ | |
| 1327 | *code = spriteram[offs + 1]; | |
| 1328 | *flipx = 0; | |
| 1329 | *flipy = 0; | |
| 1330 | } | |
| 1331 | ||
| 1332 | static void pisces_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1333 | { | |
| 1334 | *code |= (gfxbank[0] << 6); | |
| 1335 | } | |
| 1336 | ||
| 1337 | static void mimonkey_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1338 | { | |
| 1339 | *code |= (gfxbank[0] << 6) | (gfxbank[2] << 7); | |
| 1340 | } | |
| 1341 | ||
| 1342 | static void batman2_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1343 | { | |
| 1344 | /* only the upper 64 sprites are used */ | |
| 1345 | *code |= 0x40; | |
| 1346 | } | |
| 1347 | ||
| 1348 | static void jumpbug_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1349 | { | |
| 1350 | if (((*code & 0x30) == 0x20) && | |
| 1351 | (gfxbank[2] & 0x01) != 0) | |
| 1352 | { | |
| 1353 | *code += 32 + (( gfxbank[0] & 0x01) << 4) + | |
| 1354 | (( gfxbank[1] & 0x01) << 5) + | |
| 1355 | ((~gfxbank[4] & 0x01) << 6); | |
| 860 | /* now that everything is positive, do the mod */ | |
| 861 | star_rng_origin = (star_rng_origin + total_delta) % STAR_RNG_PERIOD; | |
| 862 | star_rng_origin_frame = curframe; | |
| 1356 | 863 | } |
| 1357 | 864 | } |
| 1358 | 865 | |
| 1359 | static void dkongjrm_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1360 | { | |
| 1361 | /* No x flip */ | |
| 1362 | *code = (spriteram[offs + 1] & 0x7f) | 0x80; | |
| 1363 | *flipx = 0; | |
| 1364 | } | |
| 1365 | 866 | |
| 1366 | static void ad2083_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1367 | { | |
| 1368 | /* No x flip */ | |
| 1369 | *code = (spriteram[offs + 1] & 0x7f) | ((spriteram[offs + 2] & 0x30) << 2); | |
| 1370 | *flipx = 0; | |
| 1371 | } | |
| 1372 | 867 | |
| 1373 | static void dambustr_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1374 | { | |
| 1375 | *code += 0x40; | |
| 1376 | } | |
| 868 | /************************************* | |
| 869 | * | |
| 870 | * Star blinking | |
| 871 | * | |
| 872 | *************************************/ | |
| 1377 | 873 | |
| 1378 | ||
| 1379 | /* color PROM mapping functions */ | |
| 1380 | ||
| 1381 | static void frogger_modify_color(UINT8 *color) | |
| 874 | TIMER_CALLBACK( galaxian_stars_blink_timer ) | |
| 1382 | 875 | { |
| 1383 | | |
| 876 | sta | |
| 1384 | 877 | } |
| 1385 | 878 | |
| 1386 | static void gmgalax_modify_color(UINT8 *color) | |
| 1387 | { | |
| 1388 | *color |= (gfxbank[0] << 3); | |
| 1389 | } | |
| 1390 | 879 | |
| 1391 | static void drivfrcg_modify_color(UINT8 *color) | |
| 1392 | { | |
| 1393 | *color = ((*color & 0x40) >> 3) | (*color & 7); | |
| 1394 | } | |
| 1395 | 880 | |
| 1396 | /* y position mapping functions */ | |
| 881 | /************************************* | |
| 882 | * | |
| 883 | * Draw a row of stars | |
| 884 | * | |
| 885 | *************************************/ | |
| 1397 | 886 | |
| 1398 | static void | |
| 887 | static void stars_d | |
| 1399 | 888 | { |
| 1400 | *sy = (*sy << 4) | (*sy >> 4); | |
| 1401 | } | |
| 889 | int x; | |
| 1402 | 890 | |
| 891 | /* ensure our star offset is valid */ | |
| 892 | star_offs %= STAR_RNG_PERIOD; | |
| 1403 | 893 | |
| 1404 | /* bullet drawing functions */ | |
| 1405 | ||
| 1406 | static void galaxian_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 1407 | { | |
| 1408 | int i; | |
| 1409 | ||
| 1410 | ||
| 1411 | for (i = 0; i < 4; i++) | |
| 894 | /* iterate over the specified number of 6MHz pixels */ | |
| 895 | for (x = 0; x < maxx; x++) | |
| 1412 | 896 | { |
| 1413 | x--; | |
| 897 | /* stars are suppressed unless V1 ^ H8 == 1 */ | |
| 898 | int enable_star = (y ^ (x >> 3)) & 1; | |
| 899 | UINT8 star; | |
| 1414 | 900 | |
| 1415 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1416 | { | |
| 1417 | int color; | |
| 901 | /* | |
| 902 | The RNG clock is the master clock (18MHz) ANDed with the pixel clock (6MHz). | |
| 903 | The divide-by-3 circuit that produces the pixel clock generates a square wave | |
| 904 | with a 2/3 duty cycle, so the result of the AND generates a clock like this: | |
| 905 | _ _ _ _ _ _ _ _ | |
| 906 | MASTER: _| |_| |_| |_| |_| |_| |_| |_| | | |
| 907 | _______ _______ ______ | |
| 908 | PIXEL: _| |___| |___| | |
| 909 | _ _ _ _ _ _ | |
| 910 | RNG: _| |_| |_____| |_| |_____| |_| | | |
| 1418 | 911 | |
| 912 | Thus for each pixel, there are 3 master clocks and 2 RNG clocks, and the RNG | |
| 913 | is clocked asymmetrically. To simulate this, we expand the horizontal screen | |
| 914 | size by 3 and handle the first RNG clock with one pixel and the second RNG | |
| 915 | clock with two pixels. | |
| 916 | */ | |
| 1419 | 917 | |
| 1420 | /* yellow missile, white shells (this is the terminology on the schematics) */ | |
| 1421 | color = ((offs == 7*4) ? BULLETS_COLOR_BASE : BULLETS_COLOR_BASE + 1); | |
| 918 | /* first RNG clock: one pixel */ | |
| 919 | star = stars[star_offs++]; | |
| 920 | if (star_offs >= STAR_RNG_PERIOD) | |
| 921 | star_offs = 0; | |
| 922 | if (enable_star && (star & 0x80) != 0 && (star & starmask) != 0) | |
| 923 | *BITMAP_ADDR32(bitmap, y, GALAXIAN_XSCALE*x + 0) = star_color[star & 0x3f]; | |
| 1422 | 924 | |
| 1423 | *BITMAP_ADDR16(bitmap, y, x) = color; | |
| 1424 | } | |
| 1425 | } | |
| 1426 | } | |
| 1427 | ||
| 1428 | static void gteikob2_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 1429 | { | |
| 1430 | galaxian_draw_bullets(bitmap, offs, 260 - x, y, cliprect); | |
| 1431 | } | |
| 1432 | ||
| 1433 | static void scramble_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 1434 | { | |
| 1435 | if (flipscreen_x) x++; | |
| 1436 | ||
| 1437 | x = x - 6; | |
| 1438 | ||
| 1439 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1440 | /* yellow bullets */ | |
| 1441 | *BITMAP_ADDR16(bitmap, y, x) = BULLETS_COLOR_BASE; | |
| 1442 | } | |
| 1443 | ||
| 1444 | static void darkplnt_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 1445 | { | |
| 1446 | if (flipscreen_x) x++; | |
| 1447 | ||
| 1448 | x = x - 6; | |
| 1449 | ||
| 1450 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1451 | *BITMAP_ADDR16(bitmap, y, x) = 32 + darkplnt_bullet_color; | |
| 1452 | } | |
| 1453 | ||
| 1454 | static void theend_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 1455 | { | |
| 1456 | int i; | |
| 1457 | ||
| 1458 | ||
| 1459 | /* same as Galaxian, but all bullets are yellow */ | |
| 1460 | for (i = 0; i < 4; i++) | |
| 1461 | { | |
| 1462 | x--; | |
| 1463 | ||
| 1464 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1465 | *BITMAP_ADDR16(bitmap, y, x) = BULLETS_COLOR_BASE; | |
| 1466 | } | |
| 1467 | } | |
| 1468 | ||
| 1469 | static void dambustr_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 1470 | { | |
| 1471 | int i, color; | |
| 1472 | ||
| 1473 | if (flip_screen_x_get()) x++; | |
| 1474 | ||
| 1475 | x = x - 6; | |
| 1476 | ||
| 1477 | /* bullets are 2 pixels wide */ | |
| 1478 | for (i = 0; i < 2; i++) | |
| 1479 | { | |
| 1480 | if (offs < 4*4) | |
| 925 | /* second RNG clock: two pixels */ | |
| 926 | star = stars[star_offs++]; | |
| 927 | if (star_offs >= STAR_RNG_PERIOD) | |
| 928 | star_offs = 0; | |
| 929 | if (enable_star && (star & 0x80) != 0 && (star & starmask) != 0) | |
| 1481 | 930 | { |
| 1482 | color = BULLETS_COLOR_BASE; | |
| 1483 | y--; | |
| 931 | *BITMAP_ADDR32(bitmap, y, GALAXIAN_XSCALE*x + 1) = star_color[star & 0x3f]; | |
| 932 | *BITMAP_ADDR32(bitmap, y, GALAXIAN_XSCALE*x + 2) = star_color[star & 0x3f]; | |
| 1484 | 933 | } |
| 1485 | else { | |
| 1486 | color = BULLETS_COLOR_BASE + 1; | |
| 1487 | x--; | |
| 1488 | } | |
| 1489 | ||
| 1490 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1491 | *BITMAP_ADDR16(bitmap, y, x) = color; | |
| 1492 | 934 | } |
| 1493 | 935 | } |
| 1494 | 936 | |
| 1495 | 937 | |
| 1496 | 938 | |
| 1497 | /* background drawing functions */ | |
| 939 | /************************************* | |
| 940 | * | |
| 941 | * Background rendering | |
| 942 | * | |
| 943 | *************************************/ | |
| 1498 | 944 | |
| 1499 | static | |
| 945 | static | |
| 1500 | 946 | { |
| 1501 | /* plain black background */ | |
| 1502 | fillbitmap(bitmap,0,cliprect); | |
| 1503 | } | |
| 1504 | ||
| 1505 | static void scramble_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1506 | { | |
| 1507 | if (background_enable) | |
| 1508 | fillbitmap(bitmap,BACKGROUND_COLOR_BASE,cliprect); | |
| 1509 | else | |
| 1510 | fillbitmap(bitmap,0,cliprect); | |
| 1511 | } | |
| 1512 | ||
| 1513 | static void turtles_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1514 | { | |
| 1515 | int color = (background_blue << 2) | (background_green << 1) | background_red; | |
| 1516 | ||
| 1517 | fillbitmap(bitmap,BACKGROUND_COLOR_BASE + color,cliprect); | |
| 1518 | } | |
| 1519 | ||
| 1520 | static void frogger_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1521 | { | |
| 1522 | /* color split point verified on real machine */ | |
| 1523 | if (flipscreen_x) | |
| 947 | *draw = *cliprect; | |
| 948 | if (!flipscreen_x) | |
| 1524 | 949 | { |
| 1525 | plot_box(bitmap, 0, 0, 128, 256, 0); | |
| 1526 | plot_box(bitmap, 128, 0, 128, 256, BACKGROUND_COLOR_BASE); | |
| 950 | draw->min_x = xstart * GALAXIAN_XSCALE; | |
| 951 | draw->max_x = xend * GALAXIAN_XSCALE + (GALAXIAN_XSCALE - 1); | |
| 1527 | 952 | } |
| 1528 | 953 | else |
| 1529 | 954 | { |
| 1530 | plot_box(bitmap, 0, 0, 128, 256, BACKGROUND_COLOR_BASE); | |
| 1531 | plot_box(bitmap, 128, 0, 128, 256, 0); | |
| 955 | draw->min_x = (xend ^ 255) * GALAXIAN_XSCALE; | |
| 956 | draw->max_x = (xstart ^ 255) * GALAXIAN_XSCALE + (GALAXIAN_XSCALE - 1); | |
| 1532 | 957 | } |
| 958 | sect_rect(draw, cliprect); | |
| 959 | return (draw->min_x <= draw->max_x); | |
| 1533 | 960 | } |
| 1534 | 961 | |
| 1535 | static void stratgyx_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 962 | ||
| 963 | void galaxian_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1536 | 964 | { |
| 1537 | UINT8 x; | |
| 1538 | UINT8 *prom; | |
| 965 | /* erase the background to black first */ | |
| 966 | fillbitmap(bitmap, RGB_BLACK, cliprect); | |
| 1539 | 967 | |
| 968 | /* update the star origin to the current frame */ | |
| 969 | stars_update_origin(machine); | |
| 1540 | 970 | |
| 1541 | /* the background PROM is connected the following way: | |
| 1542 | ||
| 1543 | bit 0 = 0 enables the blue gun if BCB is asserted | |
| 1544 | bit 1 = 0 enables the red gun if BCR is asserted and | |
| 1545 | the green gun if BCG is asserted | |
| 1546 | bits 2-7 are unconnected */ | |
| 1547 | ||
| 1548 | prom = memory_region(REGION_USER1); | |
| 1549 | ||
| 1550 | for (x = 0; x < 32; x++) | |
| 971 | /* render stars if enabled */ | |
| 972 | if (stars_enabled) | |
| 1551 | 973 | { |
| 1552 | int | |
| 974 | int y | |
| 1553 | 975 | |
| 1554 | ||
| 1555 | color = 0; | |
| 1556 | ||
| 1557 | if ((~prom[x] & 0x02) && background_red) color |= 0x01; | |
| 1558 | if ((~prom[x] & 0x02) && background_green) color |= 0x02; | |
| 1559 | if ((~prom[x] & 0x01) && background_blue) color |= 0x04; | |
| 1560 | ||
| 1561 | if (flipscreen_x) | |
| 1562 | sx = 8 * (31 - x); | |
| 1563 | else | |
| 1564 | sx = 8 * x; | |
| 1565 | ||
| 1566 | plot_box(bitmap, sx, 0, 8, 256, BACKGROUND_COLOR_BASE + color); | |
| 976 | /* iterate over scanlines */ | |
| 977 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) | |
| 978 | { | |
| 979 | UINT32 star_offs = star_rng_origin + y * 512; | |
| 980 | stars_draw_row(bitmap, 256, y, star_offs, 0xff); | |
| 981 | } | |
| 1567 | 982 | } |
| 1568 | 983 | } |
| 1569 | 984 | |
| 1570 | static void minefld_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1571 | { | |
| 1572 | if (background_enable) | |
| 1573 | { | |
| 1574 | int x; | |
| 1575 | 985 | |
| 1576 | ||
| 1577 | for (x = 0; x < 128; x++) | |
| 1578 | plot_box(bitmap, x, 0, 1, 256, BACKGROUND_COLOR_BASE + x); | |
| 1579 | ||
| 1580 | for (x = 0; x < 120; x++) | |
| 1581 | plot_box(bitmap, x + 128, 0, 1, 256, BACKGROUND_COLOR_BASE + x + 128); | |
| 1582 | ||
| 1583 | plot_box(bitmap, 248, 0, 16, 256, BACKGROUND_COLOR_BASE); | |
| 1584 | } | |
| 1585 | else | |
| 1586 | fillbitmap(bitmap,0,cliprect); | |
| 1587 | } | |
| 1588 | ||
| 1589 | static void rescue_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 986 | void frogger_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1590 | 987 | { |
| 1591 | if (background_enable) | |
| 1592 | { | |
| 1593 | int x; | |
| 988 | rectangle draw; | |
| 1594 | 989 | |
| 1595 | for (x = 0; x < 128; x++) | |
| 1596 | plot_box(bitmap, x, 0, 1, 256, BACKGROUND_COLOR_BASE + x); | |
| 990 | /* color split point verified on real machine */ | |
| 991 | /* hmmm, according to schematics it is at 128+8; which is right? */ | |
| 992 | draw = *cliprect; | |
| 993 | draw.max_x = MIN(draw.max_x, (128+8) * GALAXIAN_XSCALE - 1); | |
| 994 | if (draw.min_x <= draw.max_x) | |
| 995 | fillbitmap(bitmap, MAKE_RGB(0,0,0x47), &draw); | |
| 1597 | 996 | |
| 1598 | for (x = 0; x < 120; x++) | |
| 1599 | plot_box(bitmap, x + 128, 0, 1, 256, BACKGROUND_COLOR_BASE + x + 8); | |
| 1600 | ||
| 1601 | plot_box(bitmap, 248, 0, 16, 256, BACKGROUND_COLOR_BASE); | |
| 1602 | } | |
| 1603 | else | |
| 1604 | fillbitmap(bitmap,0,cliprect); | |
| 997 | draw = *cliprect; | |
| 998 | draw.min_x = MAX(draw.min_x, (128+8) * GALAXIAN_XSCALE); | |
| 999 | if (draw.min_x <= draw.max_x) | |
| 1000 | fillbitmap(bitmap, RGB_BLACK, &draw); | |
| 1605 | 1001 | } |
| 1606 | 1002 | |
| 1607 | static void mariner_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1003 | ||
| 1004 | void amidar_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1608 | 1005 | { |
| 1609 | UINT8 x; | |
| 1610 | UINT8 *prom; | |
| 1006 | const UINT8 *prom = memory_region(REGION_USER1); | |
| 1007 | rectangle draw; | |
| 1008 | int x; | |
| 1611 | 1009 | |
| 1612 | ||
| 1613 | /* the background PROM contains the color codes for each 8 pixel | |
| 1614 | line (column) of the screen. The first 0x20 bytes for unflipped, | |
| 1615 | and the 2nd 0x20 bytes for flipped screen. */ | |
| 1616 | ||
| 1617 | prom = memory_region(REGION_USER1); | |
| 1618 | ||
| 1619 | if (flipscreen_x) | |
| 1620 | { | |
| 1621 | for (x = 0; x < 32; x++) | |
| 1010 | for (x = 0; x < 32; x++) | |
| 1011 | if (flip_and_clip(&draw, x * 8, x * 8 + 7, cliprect)) | |
| 1622 | 1012 | { |
| 1623 | int color; | |
| 1013 | /* | |
| 1014 | The background PROM is connected the following way: | |
| 1624 | 1015 | |
| 1625 | if (x == 0) | |
| 1626 | color = 0; | |
| 1627 | else | |
| 1628 | color = prom[0x20 + x - 1]; | |
| 1016 | bit 0 = 0 enables the blue gun if BCB is asserted | |
| 1017 | bit 1 = 0 enables the red gun if BCR is asserted and | |
| 1018 | the green gun if BCG is asserted | |
| 1019 | bits 2-7 are unconnected | |
| 1629 | 1020 | |
| 1630 | plot_box(bitmap, 8 * (31 - x), 0, 8, 256, BACKGROUND_COLOR_BASE + color); | |
| 1631 | } | |
| 1632 | } | |
| 1633 | else | |
| 1634 | { | |
| 1635 | for (x = 0; x < 32; x++) | |
| 1636 | { | |
| 1637 | int color; | |
| 1021 | The background color generator is connected this way: | |
| 1638 | 1022 | |
| 1639 | if (x == 31) | |
| 1640 | color = 0; | |
| 1641 | else | |
| 1642 | color = prom[x + 1]; | |
| 1643 | ||
| 1644 | plot_box(bitmap, 8 * x, 0, 8, 256, BACKGROUND_COLOR_BASE + color); | |
| 1023 | RED - 270 ohm resistor | |
| 1024 | GREEN - 560 ohm resistor | |
| 1025 | BLUE - 470 ohm resistor | |
| 1026 | */ | |
| 1027 | UINT8 red = ((~prom[x] & 0x02) && background_red) ? 0x7c : 0x00; | |
| 1028 | UINT8 green = ((~prom[x] & 0x02) && background_green) ? 0x3c : 0x00; | |
| 1029 | UINT8 blue = ((~prom[x] & 0x01) && background_blue) ? 0x47 : 0x00; | |
| 1030 | fillbitmap(bitmap, MAKE_RGB(red, green, blue), &draw); | |
| 1645 | 1031 | } |
| 1646 | } | |
| 1647 | 1032 | } |
| 1648 | 1033 | |
| 1649 | static void dambustr_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1650 | { | |
| 1651 | int col1 = BACKGROUND_COLOR_BASE + dambustr_bg_color_1; | |
| 1652 | int col2 = BACKGROUND_COLOR_BASE + dambustr_bg_color_2; | |
| 1653 | 1034 | |
| 1654 | if (flip_screen_x_get()) | |
| 1655 | { | |
| 1656 | plot_box(bitmap, 0, 0, 256-dambustr_bg_split_line, 256, col2); | |
| 1657 | plot_box(bitmap, 256-dambustr_bg_split_line, 0, dambustr_bg_split_line, 256, col1); | |
| 1658 | } | |
| 1659 | else | |
| 1660 | { | |
| 1661 | plot_box(bitmap, 0, 0, 256-dambustr_bg_split_line, 256, col1); | |
| 1662 | plot_box(bitmap, 256-dambustr_bg_split_line, 0, dambustr_bg_split_line, 256, col2); | |
| 1663 | } | |
| 1664 | ||
| 1665 | } | |
| 1666 | ||
| 1667 | static void dambustr_draw_upper_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1035 | void turtles_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1668 | 1036 | { |
| 1669 | static rectangle clip = { 0, 0, 0, 0 }; | |
| 1037 | /* | |
| 1038 | The background color generator is connected this way: | |
| 1670 | 1039 | |
| 1671 | if (flip_screen_x_get()) | |
| 1672 | { | |
| 1673 | clip.min_x = 254 - dambustr_bg_split_line; | |
| 1674 | clip.max_x = dambustr_bg_split_line; | |
| 1675 | clip.min_y = 0; | |
| 1676 | clip.max_y = 255; | |
| 1677 | copybitmap(bitmap, dambustr_tmpbitmap, 0, 0, 0, 0, &clip); | |
| 1678 | } | |
| 1679 | else | |
| 1680 | { | |
| 1681 | clip.min_x = 0; | |
| 1682 | clip.max_x = 254 - dambustr_bg_split_line; | |
| 1683 | clip.min_y = 0; | |
| 1684 | clip.max_y = 255; | |
| 1685 | copybitmap(bitmap, dambustr_tmpbitmap, 0, 0, 0, 0, &clip); | |
| 1686 | } | |
| 1040 | RED - 390 ohm resistor | |
| 1041 | GREEN - 470 ohm resistor | |
| 1042 | BLUE - 390 ohm resistor | |
| 1043 | */ | |
| 1044 | fillbitmap(bitmap, MAKE_RGB(background_red * 0x55, background_green * 0x47, background_blue * 0x55), cliprect); | |
| 1687 | 1045 | } |
| 1688 | 1046 | |
| 1689 | 1047 | |
| 1690 | ||
| 1691 | /* star drawing functions */ | |
| 1692 | ||
| 1693 | void galaxian_init_stars(running_machine *machine, int colors_offset) | |
| 1048 | void scramble_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1694 | 1049 | { |
| 1695 | int i; | |
| 1696 | int total_stars; | |
| 1697 | UINT32 generator; | |
| 1698 | int x,y; | |
| 1050 | /* blue background - 390 ohm resistor */ | |
| 1051 | fillbitmap(bitmap, background_enable ? MAKE_RGB(0,0,0x56) : RGB_BLACK, cliprect); | |
| 1699 | 1052 | |
| 1053 | /* update the star origin to the current frame */ | |
| 1054 | stars_update_origin(machine); | |
| 1700 | 1055 | |
| 1701 | galaxian_stars_on = 0; | |
| 1702 | stars_blink_state = 0; | |
| 1703 | stars_blink_timer = timer_alloc(stars_blink_callback, NULL); | |
| 1704 | stars_scroll_timer = timer_alloc(stars_scroll_callback, NULL); | |
| 1705 | timer_adjusted = 0; | |
| 1706 | stars_colors_start = colors_offset; | |
| 1707 | ||
| 1708 | for (i = 0;i < 64;i++) | |
| 1056 | /* render stars if enabled */ | |
| 1057 | if (stars_enabled) | |
| 1709 | 1058 | { |
| 1710 | int bits,r,g,b; | |
| 1711 | static const int map[4] = { 0x00, 0x88, 0xcc, 0xff }; | |
| 1059 | int blink_state = stars_blink_state & 3; | |
| 1060 | int y; | |
| 1712 | 1061 | |
| 1713 | ||
| 1714 | bits = (i >> 0) & 0x03; | |
| 1715 | r = map[bits]; | |
| 1716 | bits = (i >> 2) & 0x03; | |
| 1717 | g = map[bits]; | |
| 1718 | bits = (i >> 4) & 0x03; | |
| 1719 | b = map[bits]; | |
| 1720 | palette_set_color_rgb(machine,colors_offset+i,r,g,b); | |
| 1721 | } | |
| 1722 | ||
| 1723 | ||
| 1724 | /* precalculate the star background */ | |
| 1725 | ||
| 1726 | total_stars = 0; | |
| 1727 | generator = 0; | |
| 1728 | ||
| 1729 | for (y = 0;y < 256;y++) | |
| 1730 | { | |
| 1731 | for (x = 0;x < 512;x++) | |
| 1062 | /* iterate over scanlines */ | |
| 1063 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) | |
| 1732 | 1064 | { |
| 1733 | UINT32 bit0; | |
| 1734 | ||
| 1735 | ||
| 1736 | bit0 = ((~generator >> 16) & 0x01) ^ ((generator >> 4) & 0x01); | |
| 1737 | ||
| 1738 | generator = (generator << 1) | bit0; | |
| 1739 | ||
| 1740 | if (((~generator >> 16) & 0x01) && (generator & 0xff) == 0xff) | |
| 1065 | /* blink state 2 suppressed stars when 2V == 0 */ | |
| 1066 | if (blink_state != 2 || (y & 2) != 0) | |
| 1741 | 1067 | { |
| 1742 | int color; | |
| 1743 | ||
| 1744 | ||
| 1745 | color = (~(generator >> 8)) & 0x3f; | |
| 1746 | if (color) | |
| 1747 | { | |
| 1748 | stars[total_stars].x = x; | |
| 1749 | stars[total_stars].y = y; | |
| 1750 | stars[total_stars].color = color; | |
| 1751 | ||
| 1752 | total_stars++; | |
| 1753 | } | |
| 1068 | /* blink states 0 and 1 suppress stars when certain bits of the color == 0 */ | |
| 1069 | static const UINT8 colormask_table[4] = { 0x20, 0x08, 0xff, 0xff }; | |
| 1070 | stars_draw_row(bitmap, 256, y, y * 512, colormask_table[blink_state]); | |
| 1754 | 1071 | } |
| 1755 | 1072 | } |
| 1756 | 1073 | } |
| 1757 | ||
| 1758 | if (total_stars != STAR_COUNT) | |
| 1759 | { | |
| 1760 | fatalerror("total_stars = %d, STAR_COUNT = %d",total_stars,STAR_COUNT); | |
| 1761 | } | |
| 1762 | 1074 | } |
| 1763 | 1075 | |
| 1764 | static void plot_star(bitmap_t *bitmap, int x, int y, int color, const rectangle *cliprect) | |
| 1765 | { | |
| 1766 | if (flipscreen_x) | |
| 1767 | x = 255 - x; | |
| 1768 | 1076 | |
| 1769 | if (flipscreen_y) | |
| 1770 | y = 255 - y; | |
| 1771 | ||
| 1772 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1773 | *BITMAP_ADDR16(bitmap, y, x) = stars_colors_start + color; | |
| 1774 | } | |
| 1775 | ||
| 1776 | static void noop_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1077 | void jumpbug_draw_background(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1777 | 1078 | { |
| 1778 | } | |
| 1079 | /* blue background - 390 ohm resistor */ | |
| 1080 | fillbitmap(bitmap, background_enable ? MAKE_RGB(0,0,0x56) : RGB_BLACK, cliprect); | |
| 1779 | 1081 | |
| 1780 | void galaxian_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1781 | { | |
| 1782 | int offs; | |
| 1082 | /* update the star origin to the current frame */ | |
| 1083 | stars_update_origin(machine); | |
| 1783 | 1084 | |
| 1784 | ||
| 1785 | if (!timer_adjusted) | |
| 1085 | /* render stars if enabled -- same as scramble but nothing in the status area */ | |
| 1086 | if (stars_enabled) | |
| 1786 | 1087 | { |
| 1787 | start_stars_scroll_timer(machine); | |
| 1788 | timer_adjusted = 1; | |
| 1789 | } | |
| 1088 | int blink_state = stars_blink_state & 3; | |
| 1089 | int y; | |
| 1790 | 1090 | |
| 1791 | ||
| 1792 | for (offs = 0;offs < STAR_COUNT;offs++) | |
| 1793 | { | |
| 1794 | int x,y; | |
| 1795 | ||
| 1796 | ||
| 1797 | x = ((stars[offs].x + stars_scrollpos) & 0x01ff) >> 1; | |
| 1798 | y = ( stars[offs].y + ((stars_scrollpos + stars[offs].x) >> 9)) & 0xff; | |
| 1799 | ||
| 1800 | if ((y & 0x01) ^ ((x >> 3) & 0x01)) | |
| 1091 | /* iterate over scanlines */ | |
| 1092 | for (y = cliprect->min_y; y <= cliprect->max_y; y++) | |
| 1801 | 1093 | { |
| 1802 | plot_star(bitmap, x, y, stars[offs].color, cliprect); | |
| 1094 | /* blink state 2 suppressed stars when 2V == 0 */ | |
| 1095 | if (blink_state != 2 || (y & 2) != 0) | |
| 1096 | { | |
| 1097 | /* blink states 0 and 1 suppress stars when certain bits of the color == 0 */ | |
| 1098 | static const UINT8 colormask_table[4] = { 0x20, 0x08, 0xff, 0xff }; | |
| 1099 | stars_draw_row(bitmap, 240, y, y * 512, colormask_table[blink_state]); | |
| 1100 | } | |
| 1803 | 1101 | } |
| 1804 | 1102 | } |
| 1805 | 1103 | } |
| 1806 | 1104 | |
| 1807 | static void scramble_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1808 | { | |
| 1809 | int offs; | |
| 1810 | 1105 | |
| 1811 | 1106 | |
| 1812 | if (!timer_adjusted) | |
| 1813 | { | |
| 1814 | start_stars_blink_timer(100000, 10000, 0.00001); | |
| 1815 | timer_adjusted = 1; | |
| 1816 | } | |
| 1107 | /************************************* | |
| 1108 | * | |
| 1109 | * Bullet rendering | |
| 1110 | * | |
| 1111 | *************************************/ | |
| 1817 | 1112 | |
| 1818 | ||
| 1819 | for (offs = 0;offs < STAR_COUNT;offs++) | |
| 1113 | INLINE void galaxian_draw_pixel(bitmap_t *bitmap, const rectangle *cliprect, int y, int x, rgb_t color) | |
| 1114 | { | |
| 1115 | if (y >= cliprect->min_y && y <= cliprect->max_y) | |
| 1820 | 1116 | { |
| 1821 | int x,y; | |
| 1117 | x *= GALAXIAN_XSCALE; | |
| 1118 | x += GALAXIAN_H0START; | |
| 1119 | if (x >= cliprect->min_x && x <= cliprect->max_x) | |
| 1120 | *BITMAP_ADDR32(bitmap, y, x) = color; | |
| 1822 | 1121 | |
| 1122 | x++; | |
| 1123 | if (x >= cliprect->min_x && x <= cliprect->max_x) | |
| 1124 | *BITMAP_ADDR32(bitmap, y, x) = color; | |
| 1823 | 1125 | |
| 1824 | x = stars[offs].x >> 1; | |
| 1825 | y = stars[offs].y; | |
| 1826 | ||
| 1827 | if ((y & 0x01) ^ ((x >> 3) & 0x01)) | |
| 1828 | { | |
| 1829 | /* determine when to skip plotting */ | |
| 1830 | switch (stars_blink_state & 0x03) | |
| 1831 | { | |
| 1832 | case 0: | |
| 1833 | if (!(stars[offs].color & 0x01)) continue; | |
| 1834 | break; | |
| 1835 | case 1: | |
| 1836 | if (!(stars[offs].color & 0x04)) continue; | |
| 1837 | break; | |
| 1838 | case 2: | |
| 1839 | if (!(stars[offs].y & 0x02)) continue; | |
| 1840 | break; | |
| 1841 | case 3: | |
| 1842 | /* always plot */ | |
| 1843 | break; | |
| 1844 | } | |
| 1845 | ||
| 1846 | plot_star(bitmap, x, y, stars[offs].color, cliprect); | |
| 1847 | } | |
| 1126 | x++; | |
| 1127 | if (x >= cliprect->min_x && x <= cliprect->max_x) | |
| 1128 | *BITMAP_ADDR32(bitmap, y, x) = color; | |
| 1848 | 1129 | } |
| 1849 | 1130 | } |
| 1850 | 1131 | |
| 1851 | static void rescue_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1132 | ||
| 1133 | void galaxian_draw_bullet(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int offs, int x, int y) | |
| 1852 | 1134 | { |
| 1853 | int offs; | |
| 1135 | /* | |
| 1136 | Both "shells" and "missiles" begin displaying when the horizontal counter | |
| 1137 | reaches $FC, and they stop displaying when it reaches $00, resulting in | |
| 1138 | 4-pixel-long shots. The first 7 entries are called "shells" and render as | |
| 1139 | white; the final entry is called a "missile" and renders as yellow. | |
| 1140 | */ | |
| 1141 | x -= 4; | |
| 1142 | galaxian_draw_pixel(bitmap, cliprect, y, x++, bullet_color[offs]); | |
| 1143 | galaxian_draw_pixel(bitmap, cliprect, y, x++, bullet_color[offs]); | |
| 1144 | galaxian_draw_pixel(bitmap, cliprect, y, x++, bullet_color[offs]); | |
| 1145 | galaxian_draw_pixel(bitmap, cliprect, y, x++, bullet_color[offs]); | |
| 1146 | } | |
| 1854 | 1147 | |
| 1855 | 1148 | |
| 1856 | /* same as Scramble, but only top (left) half of screen */ | |
| 1857 | ||
| 1858 | if (!timer_adjusted) | |
| 1149 | void mshuttle_draw_bullet(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int offs, int x, int y) | |
| 1150 | { | |
| 1151 | /* verified by schematics: | |
| 1152 | * both "W" and "Y" bullets are 4 pixels long | |
| 1153 | * "W" bullets are enabled when H6 == 0, and are always purple | |
| 1154 | * "Y" bullets are enabled when H6 == 1, and vary in color based on H4,H3,H2 | |
| 1155 | */ | |
| 1156 | static const rgb_t colors[8] = | |
| 1859 | 1157 | { |
| 1860 | start_stars_blink_timer(100000, 10000, 0.00001); | |
| 1861 | timer_adjusted = 1; | |
| 1862 | } | |
| 1158 | MAKE_RGB(0xff,0xff,0xff), | |
| 1159 | MAKE_RGB(0xff,0xff,0x00), | |
| 1160 | MAKE_RGB(0x00,0xff,0xff), | |
| 1161 | MAKE_RGB(0x00,0xff,0x00), | |
| 1162 | MAKE_RGB(0xff,0x00,0xff), | |
| 1163 | MAKE_RGB(0xff,0x00,0x00), | |
| 1164 | MAKE_RGB(0x00,0x00,0xff), | |
| 1165 | MAKE_RGB(0x00,0x00,0x00) | |
| 1166 | }; | |
| 1167 | --x; | |
| 1168 | galaxian_draw_pixel(bitmap, cliprect, y, x, ((x & 0x40) == 0) ? colors[(x >> 2) & 7] : MAKE_RGB(0xff,0x00,0xff)); | |
| 1169 | --x; | |
| 1170 | galaxian_draw_pixel(bitmap, cliprect, y, x, ((x & 0x40) == 0) ? colors[(x >> 2) & 7] : MAKE_RGB(0xff,0x00,0xff)); | |
| 1171 | --x; | |
| 1172 | galaxian_draw_pixel(bitmap, cliprect, y, x, ((x & 0x40) == 0) ? colors[(x >> 2) & 7] : MAKE_RGB(0xff,0x00,0xff)); | |
| 1173 | --x; | |
| 1174 | galaxian_draw_pixel(bitmap, cliprect, y, x, ((x & 0x40) == 0) ? colors[(x >> 2) & 7] : MAKE_RGB(0xff,0x00,0xff)); | |
| 1175 | } | |
| 1863 | 1176 | |
| 1864 | 1177 | |
| 1865 | for (offs = 0;offs < STAR_COUNT;offs++) | |
| 1866 | { | |
| 1867 | int x,y; | |
| 1178 | void scramble_draw_bullet(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int offs, int x, int y) | |
| 1179 | { | |
| 1180 | /* | |
| 1181 | Scramble only has "shells", which begin displaying when the counter | |
| 1182 | reaches $FA, and stop displaying one pixel clock layer. All shells are | |
| 1183 | rendered as yellow. | |
| 1184 | */ | |
| 1185 | x -= 6; | |
| 1186 | galaxian_draw_pixel(bitmap, cliprect, y, x, MAKE_RGB(0xff,0xff,0x00)); | |
| 1187 | } | |
| 1868 | 1188 | |
| 1869 | 1189 | |
| 1870 | x = stars[offs].x >> 1; | |
| 1871 | y = stars[offs].y; | |
| 1872 | ||
| 1873 | if ((x < 128) && ((y & 0x01) ^ ((x >> 3) & 0x01))) | |
| 1874 | { | |
| 1875 | /* determine when to skip plotting */ | |
| 1876 | switch (stars_blink_state & 0x03) | |
| 1877 | { | |
| 1878 | case 0: | |
| 1879 | if (!(stars[offs].color & 0x01)) continue; | |
| 1880 | break; | |
| 1881 | case 1: | |
| 1882 | if (!(stars[offs].color & 0x04)) continue; | |
| 1883 | break; | |
| 1884 | case 2: | |
| 1885 | if (!(stars[offs].y & 0x02)) continue; | |
| 1886 | break; | |
| 1887 | case 3: | |
| 1888 | /* always plot */ | |
| 1889 | break; | |
| 1890 | } | |
| 1891 | ||
| 1892 | plot_star(bitmap, x, y, stars[offs].color, cliprect); | |
| 1893 | } | |
| 1894 | } | |
| 1190 | void theend_draw_bullet(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int offs, int x, int y) | |
| 1191 | { | |
| 1192 | /* Same as galaxian except blue/green are swapped */ | |
| 1193 | x -= 4; | |
| 1194 | galaxian_draw_pixel(bitmap, cliprect, y, x++, MAKE_RGB(RGB_RED(bullet_color[offs]), RGB_BLUE(bullet_color[offs]), RGB_GREEN(bullet_color[offs]))); | |
| 1195 | galaxian_draw_pixel(bitmap, cliprect, y, x++, MAKE_RGB(RGB_RED(bullet_color[offs]), RGB_BLUE(bullet_color[offs]), RGB_GREEN(bullet_color[offs]))); | |
| 1196 | galaxian_draw_pixel(bitmap, cliprect, y, x++, MAKE_RGB(RGB_RED(bullet_color[offs]), RGB_BLUE(bullet_color[offs]), RGB_GREEN(bullet_color[offs]))); | |
| 1197 | galaxian_draw_pixel(bitmap, cliprect, y, x++, MAKE_RGB(RGB_RED(bullet_color[offs]), RGB_BLUE(bullet_color[offs]), RGB_GREEN(bullet_color[offs]))); | |
| 1895 | 1198 | } |
| 1896 | 1199 | |
| 1897 | static void mariner_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1898 | { | |
| 1899 | int offs; | |
| 1900 | UINT8 *prom; | |
| 1901 | 1200 | |
| 1902 | 1201 | |
| 1903 | if (!timer_adjusted) | |
| 1904 | { | |
| 1905 | start_stars_scroll_timer(machine); | |
| 1906 | timer_adjusted = 1; | |
| 1907 | } | |
| 1202 | /************************************* | |
| 1203 | * | |
| 1204 | * Generic extensions | |
| 1205 | * | |
| 1206 | *************************************/ | |
| 1908 | 1207 | |
| 1208 | void upper_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x) | |
| 1209 | { | |
| 1210 | /* tiles are in the upper half of a larger ROM */ | |
| 1211 | *code += 0x100; | |
| 1212 | } | |
| 1909 | 1213 | |
| 1910 | /* bit 2 of the PROM controls star visibility */ | |
| 1911 | 1214 | |
| 1912 | prom = memory_region(REGION_USER2); | |
| 1215 | void upper_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color) | |
| 1216 | { | |
| 1217 | /* sprites are in the upper half of a larger ROM */ | |
| 1218 | *code += 0x40; | |
| 1219 | } | |
| 1913 | 1220 | |
| 1914 | for (offs = 0;offs < STAR_COUNT;offs++) | |
| 1915 | { | |
| 1916 | int x,y; | |
| 1917 | 1221 | |
| 1918 | 1222 | |
| 1919 | x = ((stars[offs].x + -stars_scrollpos) & 0x01ff) >> 1; | |
| 1920 | y = ( stars[offs].y + ((-stars_scrollpos + stars[offs].x) >> 9)) & 0xff; | |
| 1223 | /************************************* | |
| 1224 | * | |
| 1225 | * Frogger extensions | |
| 1226 | * | |
| 1227 | *************************************/ | |
| 1921 | 1228 | |
| 1922 | if ((y & 0x01) ^ ((x >> 3) & 0x01)) | |
| 1923 | { | |
| 1924 | if (prom[(x/8 + 1) & 0x1f] & 0x04) | |
| 1925 | { | |
| 1926 | plot_star(bitmap, x, y, stars[offs].color, cliprect); | |
| 1927 | } | |
| 1928 | } | |
| 1929 | } | |
| 1229 | void frogger_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x) | |
| 1230 | { | |
| 1231 | *color = ((*color >> 1) & 0x03) | ((*color << 2) & 0x04); | |
| 1930 | 1232 | } |
| 1931 | 1233 | |
| 1932 | ||
| 1234 | ||
| 1933 | 1235 | { |
| 1934 | int offs; | |
| 1236 | *color = ((*color >> 1) & 0x03) | ((*color << 2) & 0x04); | |
| 1237 | } | |
| 1935 | 1238 | |
| 1936 | 1239 | |
| 1937 | if (!timer_adjusted) | |
| 1938 | { | |
| 1939 | start_stars_blink_timer(100000, 10000, 0.00001); | |
| 1940 | start_stars_scroll_timer(machine); | |
| 1941 | timer_adjusted = 1; | |
| 1942 | } | |
| 1943 | 1240 | |
| 1241 | /************************************* | |
| 1242 | * | |
| 1243 | * Ghostmuncher Galaxian extensions | |
| 1244 | * | |
| 1245 | *************************************/ | |
| 1944 | 1246 | |
| 1945 | for (offs = 0;offs < STAR_COUNT;offs++) | |
| 1946 | { | |
| 1947 | int x,y; | |
| 1948 | ||
| 1949 | ||
| 1950 | x = stars[offs].x >> 1; | |
| 1951 | y = stars[offs].y; | |
| 1952 | ||
| 1953 | /* determine when to skip plotting */ | |
| 1954 | if ((y & 0x01) ^ ((x >> 3) & 0x01)) | |
| 1955 | { | |
| 1956 | switch (stars_blink_state & 0x03) | |
| 1957 | { | |
| 1958 | case 0: | |
| 1959 | if (!(stars[offs].color & 0x01)) continue; | |
| 1960 | break; | |
| 1961 | case 1: | |
| 1962 | if (!(stars[offs].color & 0x04)) continue; | |
| 1963 | break; | |
| 1964 | case 2: | |
| 1965 | if (!(stars[offs].y & 0x02)) continue; | |
| 1966 | break; | |
| 1967 | case 3: | |
| 1968 | /* always plot */ | |
| 1969 | break; | |
| 1970 | } | |
| 1971 | ||
| 1972 | x = ((stars[offs].x + stars_scrollpos) & 0x01ff) >> 1; | |
| 1973 | y = ( stars[offs].y + ((stars_scrollpos + stars[offs].x) >> 9)) & 0xff; | |
| 1974 | ||
| 1975 | /* no stars in the status area */ | |
| 1976 | if (x >= 240) continue; | |
| 1977 | ||
| 1978 | plot_star(bitmap, x, y, stars[offs].color, cliprect); | |
| 1979 | } | |
| 1980 | } | |
| 1247 | void gmgalax_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x) | |
| 1248 | { | |
| 1249 | *code |= gfxbank[0] << 9; | |
| 1250 | // *color |= gfxbank[0] << 3; | |
| 1981 | 1251 | } |
| 1982 | 1252 | |
| 1983 | ||
| 1984 | static TIMER_CALLBACK( stars_blink_callback ) | |
| 1253 | void gmgalax_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color) | |
| 1985 | 1254 | { |
| 1986 | stars_blink_state++; | |
| 1255 | *code |= (gfxbank[0] << 7) | 0x40; | |
| 1256 | *color |= gfxbank[0] << 3; | |
| 1987 | 1257 | } |
| 1988 | 1258 | |
| 1989 | static void start_stars_blink_timer(double ra, double rb, double c) | |
| 1990 | { | |
| 1991 | /* calculate the period using the formula given in the 555 datasheet */ | |
| 1992 | 1259 | |
| 1993 | int period_in_ms = 693 * (ra + 2.0 * rb) * c; | |
| 1994 | 1260 | |
| 1995 | timer_adjust_periodic(stars_blink_timer, ATTOTIME_IN_MSEC(period_in_ms), 0, ATTOTIME_IN_MSEC(period_in_ms)); | |
| 1996 | } | |
| 1261 | /************************************* | |
| 1262 | * | |
| 1263 | * Pisces extensions | |
| 1264 | * | |
| 1265 | *************************************/ | |
| 1997 | 1266 | |
| 1998 | ||
| 1999 | static TIMER_CALLBACK( stars_scroll_callback ) | |
| 1267 | void pisces_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x) | |
| 2000 | 1268 | { |
| 2001 | if (galaxian_stars_on) | |
| 2002 | { | |
| 2003 | stars_scrollpos++; | |
| 2004 | } | |
| 1269 | *code |= gfxbank[0] << 8; | |
| 2005 | 1270 | } |
| 2006 | 1271 | |
| 2007 | ||
| 1272 | ||
| 2008 | 1273 | { |
| 2009 | | |
| 1274 | * | |
| 2010 | 1275 | } |
| 2011 | 1276 | |
| 2012 | 1277 | |
| 2013 | 1278 | |
| 2014 | static TILE_GET_INFO( get_tile_info ) | |
| 1279 | /************************************* | |
| 1280 | * | |
| 1281 | * Batman Part 2 extensions | |
| 1282 | * | |
| 1283 | *************************************/ | |
| 1284 | ||
| 1285 | void batman2_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x) | |
| 2015 | 1286 | { |
| 2016 | UINT8 x = tile_index & 0x1f; | |
| 1287 | if (*code & 0x80) | |
| 1288 | *code |= gfxbank[0] << 8; | |
| 1289 | } | |
| 2017 | 1290 | |
| 2018 | UINT16 code = galaxian_videoram[tile_index]; | |
| 2019 | UINT8 color = galaxian_attributesram[(x << 1) | 1] & color_mask; | |
| 2020 | 1291 | |
| 2021 | if (modify_charcode) | |
| 2022 | { | |
| 2023 | modify_charcode(&code, x); | |
| 2024 | } | |
| 2025 | 1292 | |
| 2026 | if (modify_color) | |
| 2027 | { | |
| 2028 | modify_color(&color); | |
| 2029 | } | |
| 1293 | /************************************* | |
| 1294 | * | |
| 1295 | * Moon Cresta extensions | |
| 1296 | * | |
| 1297 | *************************************/ | |
| 2030 | 1298 | |
| 2031 | SET_TILE_INFO(0, code, color, 0); | |
| 1299 | void mooncrst_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x) | |
| 1300 | { | |
| 1301 | if (gfxbank[2] && (*code & 0xc0) == 0x80) | |
| 1302 | *code = (*code & 0x3f) | (gfxbank[0] << 6) | (gfxbank[1] << 7) | 0x0100; | |
| 2032 | 1303 | } |
| 2033 | 1304 | |
| 2034 | st | |
| 1305 | void mooncrst_extend_sprite_info(const UINT8 *base, UIN | |
| 2035 | 1306 | { |
| 2036 | UINT16 code = rockclim_videoram[tile_index]; | |
| 2037 | SET_TILE_INFO(2, code, 0, 0); | |
| 1307 | if (gfxbank[2] && (*code & 0x30) == 0x20) | |
| 1308 | *code = (*code & 0x0f) | (gfxbank[1] << 4) | (gfxbank[0] << 5) | 0x40; | |
| 2038 | 1309 | } |
| 2039 | 1310 | |
| 2040 | static void draw_bullets_common(bitmap_t *bitmap, const rectangle *cliprect) | |
| 2041 | { | |
| 2042 | int offs; | |
| 2043 | 1311 | |
| 2044 | 1312 | |
| 2045 | for (offs = 0;offs < galaxian_bulletsram_size;offs += 4) | |
| 2046 | { | |
| 2047 | UINT8 sx,sy; | |
| 1313 | /************************************* | |
| 1314 | * | |
| 1315 | * Moon Quasar extensions | |
| 1316 | * | |
| 1317 | *************************************/ | |
| 2048 | 1318 | |
| 2049 | sy = 255 - galaxian_bulletsram[offs + 1]; | |
| 2050 | sx = 255 - galaxian_bulletsram[offs + 3]; | |
| 2051 | ||
| 2052 | if (flipscreen_y) sy = 255 - sy; | |
| 2053 | ||
| 2054 | draw_bullets(bitmap, offs, sx, sy, cliprect); | |
| 2055 | } | |
| 1319 | void moonqsr_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x) | |
| 1320 | { | |
| 1321 | *code |= (attrib & 0x20) << 3; | |
| 2056 | 1322 | } |
| 2057 | 1323 | |
| 2058 | ||
| 2059 | static void draw_sprites(running_machine *machine, bitmap_t *bitmap, UINT8 *spriteram, size_t spriteram_size) | |
| 1324 | void moonqsr_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color) | |
| 2060 | 1325 | { |
| 2061 | int offs; | |
| 1326 | *code |= (base[2] & 0x20) << 1; | |
| 1327 | } | |
| 2062 | 1328 | |
| 2063 | 1329 | |
| 2064 | for (offs = spriteram_size - 4;offs >= 0;offs -= 4) | |
| 2065 | { | |
| 2066 | UINT8 sx,sy,color; | |
| 2067 | int flipx,flipy,code; | |
| 2068 | 1330 | |
| 1331 | /************************************* | |
| 1332 | * | |
| 1333 | * Moon Shuttle extensions | |
| 1334 | * | |
| 1335 | *************************************/ | |
| 2069 | 1336 | |
| 2070 | sx = spriteram[offs + 3] + 1; /* the existence of +1 is supported by a LOT of games */ | |
| 2071 | sy = spriteram[offs]; /* Anteater, Mariner, for example */ | |
| 2072 | flipx = spriteram[offs + 1] & 0x40; | |
| 2073 | flipy = spriteram[offs + 1] & 0x80; | |
| 2074 | code = spriteram[offs + 1] & 0x3f; | |
| 2075 | color = spriteram[offs + 2] & color_mask; | |
| 2076 | ||
| 2077 | if (modify_spritecode) | |
| 2078 | { | |
| 2079 | modify_spritecode(spriteram, &code, &flipx, &flipy, offs); | |
| 2080 | } | |
| 2081 | ||
| 2082 | if (modify_color) | |
| 2083 | { | |
| 2084 | modify_color(&color); | |
| 2085 | } | |
| 2086 | ||
| 2087 | if (modify_ypos) | |
| 2088 | { | |
| 2089 | modify_ypos(&sy); | |
| 2090 | } | |
| 2091 | ||
| 2092 | if (flipscreen_x) | |
| 2093 | { | |
| 2094 | sx = 240 - sx; | |
| 2095 | flipx = !flipx; | |
| 2096 | } | |
| 2097 | ||
| 2098 | if (flipscreen_y) | |
| 2099 | { | |
| 2100 | flipy = !flipy; | |
| 2101 | } | |
| 2102 | else | |
| 2103 | { | |
| 2104 | sy = 240 - sy; | |
| 2105 | } | |
| 2106 | ||
| 2107 | ||
| 2108 | /* In at least Amidar Turtles, sprites #0, #1 and #2 need to be moved */ | |
| 2109 | /* down (left) one pixel to be positioned correctly. */ | |
| 2110 | /* Note that the adjustment must be done AFTER handling flipscreen, thus */ | |
| 2111 | /* proving that this is a hardware related "feature" */ | |
| 2112 | ||
| 2113 | if (offs < 3*4) sy++; | |
| 2114 | ||
| 2115 | ||
| 2116 | drawgfx(bitmap,machine->gfx[1], | |
| 2117 | code,color, | |
| 2118 | flipx,flipy, | |
| 2119 | sx,sy, | |
| 2120 | flipscreen_x ? spritevisibleareaflipx : spritevisiblearea,TRANSPARENCY_PEN,0); | |
| 2121 | } | |
| 1337 | void mshuttle_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x) | |
| 1338 | { | |
| 1339 | *code |= (attrib & 0x30) << 4; | |
| 2122 | 1340 | } |
| 2123 | 1341 | |
| 2124 | ||
| 2125 | VIDEO_UPDATE( galaxian ) | |
| 1342 | void mshuttle_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color) | |
| 2126 | 1343 | { |
| 2127 | draw_background(bitmap, cliprect); | |
| 1344 | *code |= (base[2] & 0x30) << 2; | |
| 1345 | } | |
| 2128 | 1346 | |
| 2129 | 1347 | |
| 2130 | if (galaxian_stars_on) | |
| 2131 | { | |
| 2132 | draw_stars(screen->machine, bitmap, cliprect); | |
| 2133 | } | |
| 2134 | 1348 | |
| 1349 | /************************************* | |
| 1350 | * | |
| 1351 | * Jumpbug extensions | |
| 1352 | * | |
| 1353 | *************************************/ | |
| 2135 | 1354 | |
| 2136 | tilemap_draw(bitmap, 0, bg_tilemap, 0, 0); | |
| 2137 | ||
| 2138 | ||
| 2139 | if (draw_bullets) | |
| 2140 | { | |
| 2141 | draw_bullets_common(bitmap, cliprect); | |
| 2142 | } | |
| 2143 | ||
| 2144 | ||
| 2145 | draw_sprites(screen->machine, bitmap, galaxian_spriteram, galaxian_spriteram_size); | |
| 2146 | ||
| 2147 | if (spriteram2_present) | |
| 2148 | { | |
| 2149 | draw_sprites(screen->machine, bitmap, galaxian_spriteram2, galaxian_spriteram2_size); | |
| 2150 | } | |
| 2151 | return 0; | |
| 1355 | void jumpbug_extend_tile_info(UINT16 *code, UINT8 *color, UINT8 attrib, UINT8 x) | |
| 1356 | { | |
| 1357 | if ((*code & 0xc0) == 0x80 && (gfxbank[2] & 0x01)) | |
| 1358 | *code += 128 + (( gfxbank[0] & 0x01) << 6) + | |
| 1359 | (( gfxbank[1] & 0x01) << 7) + | |
| 1360 | ((~gfxbank[4] & 0x01) << 8); | |
| 2152 | 1361 | } |
| 2153 | 1362 | |
| 2154 | ||
| 2155 | VIDEO_UPDATE( dambustr ) | |
| 1363 | void jumpbug_extend_sprite_info(const UINT8 *base, UINT8 *sx, UINT8 *sy, UINT8 *flipx, UINT8 *flipy, UINT16 *code, UINT8 *color) | |
| 2156 | 1364 | { |
| 2157 | int i, j; | |
| 2158 | UINT8 color; | |
| 2159 | ||
| 2160 | draw_background(bitmap, cliprect); | |
| 2161 | ||
| 2162 | if (galaxian_stars_on) | |
| 1365 | if ((*code & 0x30) == 0x20 && (gfxbank[2] & 0x01) != 0) | |
| 2163 | 1366 | { |
| 2164 | draw_stars(screen->machine, bitmap, cliprect); | |
| 1367 | *code += 32 + (( gfxbank[0] & 0x01) << 4) + | |
| 1368 | (( gfxbank[1] & 0x01) << 5) + | |
| 1369 | ((~gfxbank[4] & 0x01) << 6); | |
| 2165 | 1370 | } |
| 2166 | ||
| 2167 | /* save the background for drawing it again later, if background has priority over characters */ | |
| 2168 | copybitmap(dambustr_tmpbitmap, bitmap, 0, 0, 0, 0, NULL); | |
| 2169 | ||
| 2170 | tilemap_draw(bitmap, 0, bg_tilemap, 0, 0); | |
| 2171 | ||
| 2172 | if (draw_bullets) | |
| 2173 | { | |
| 2174 | draw_bullets_common(bitmap, cliprect); | |
| 2175 | } | |
| 2176 | ||
| 2177 | draw_sprites(screen->machine, bitmap, galaxian_spriteram, galaxian_spriteram_size); | |
| 2178 | ||
| 2179 | if (dambustr_bg_priority) | |
| 2180 | { | |
| 2181 | /* draw the upper part of the background, as it has priority */ | |
| 2182 | dambustr_draw_upper_background(bitmap, cliprect); | |
| 2183 | ||
| 2184 | /* only rows with color code > 3 are stronger than the background */ | |
| 2185 | memset(dambustr_videoram2, 0x20, 0x0400); | |
| 2186 | for (i=0; i<32; i++) { | |
| 2187 | color = galaxian_attributesram[(i << 1) | 1] & color_mask; | |
| 2188 | if (color > 3) { | |
| 2189 | for (j=0; j<32; j++) | |
| 2190 | dambustr_videoram2[32*j+i] = galaxian_videoram[32*j+i]; | |
| 2191 | }; | |
| 2192 | }; | |
| 2193 | tilemap_mark_all_tiles_dirty(dambustr_tilemap2); | |
| 2194 | tilemap_draw(bitmap, 0, dambustr_tilemap2, 0, 0); | |
| 2195 | }; | |
| 2196 | ||
| 2197 | return 0; | |
| 2198 | 1371 | } |
| 2199 |
| r2241 | r2242 | |
|---|---|---|
| 451 | 451 | |
| 452 | 452 | WRITE16_HANDLER( rallybik_bcu_flipscreen_w ) |
| 453 | 453 | { |
| 454 | if (ACCESSING_ | |
| 454 | if (ACCESSING_ | |
| 455 | 455 | { |
| 456 | 456 | logerror("Setting BCU controller flipscreen port to %04x\n",data); |
| 457 | 457 | bcu_flipscreen = data & 0x01; /* 0x0001 = flip, 0x0000 = no flip */ |
| r2241 | r2242 | |
| 478 | 478 | |
| 479 | 479 | WRITE16_HANDLER( toaplan1_bcu_flipscreen_w ) |
| 480 | 480 | { |
| 481 | if (ACCESSING_ | |
| 481 | if (ACCESSING_ | |
| 482 | 482 | { |
| 483 | 483 | logerror("Setting BCU controller flipscreen port to %04x\n",data); |
| 484 | 484 | bcu_flipscreen = data & 0x01; /* 0x0001 = flip, 0x0000 = no flip */ |
| r2241 | r2242 | |
| 505 | 505 | |
| 506 | 506 | WRITE16_HANDLER( toaplan1_fcu_flipscreen_w ) |
| 507 | 507 | { |
| 508 | if (ACCESSING_ | |
| 508 | if (ACCESSING_ | |
| 509 | 509 | { |
| 510 | 510 | logerror("Setting FCU controller flipscreen port to %04x\n",data); |
| 511 | 511 | fcu_flipscreen = data & 0x8000; /* 0x8000 = flip, 0x0000 = no flip */ |
| r2241 | r2242 | |
|---|---|---|
| 330 | 330 | |
| 331 | 331 | WRITE16_HANDLER( tmnt_0a0000_w ) |
| 332 | 332 | { |
| 333 | if (ACCESSING_ | |
| 333 | if (ACCESSING_ | |
| 334 | 334 | { |
| 335 | 335 | static int last; |
| 336 | 336 | |
| r2241 | r2242 | |
| 356 | 356 | |
| 357 | 357 | WRITE16_HANDLER( punkshot_0a0020_w ) |
| 358 | 358 | { |
| 359 | if (ACCESSING_ | |
| 359 | if (ACCESSING_ | |
| 360 | 360 | { |
| 361 | 361 | static int last; |
| 362 | 362 | |
| r2241 | r2242 | |
| 377 | 377 | |
| 378 | 378 | WRITE16_HANDLER( lgtnfght_0a0018_w ) |
| 379 | 379 | { |
| 380 | if (ACCESSING_ | |
| 380 | if (ACCESSING_ | |
| 381 | 381 | { |
| 382 | 382 | static int last; |
| 383 | 383 | |
| r2241 | r2242 | |
| 399 | 399 | |
| 400 | 400 | WRITE16_HANDLER( blswhstl_700300_w ) |
| 401 | 401 | { |
| 402 | if (ACCESSING_ | |
| 402 | if (ACCESSING_ | |
| 403 | 403 | { |
| 404 | 404 | /* bit 0,1 = coin counter */ |
| 405 | 405 | coin_counter_w(0,data & 0x01); |
| r2241 | r2242 | |
| 433 | 433 | |
| 434 | 434 | WRITE16_HANDLER( glfgreat_122000_w ) |
| 435 | 435 | { |
| 436 | if (ACCESSING_ | |
| 436 | if (ACCESSING_ | |
| 437 | 437 | { |
| 438 | 438 | /* bit 0,1 = coin counter */ |
| 439 | 439 | coin_counter_w(0,data & 0x01); |
| r2241 | r2242 | |
| 454 | 454 | |
| 455 | 455 | /* other bits unknown */ |
| 456 | 456 | } |
| 457 | if (ACCESSING_ | |
| 457 | if (ACCESSING_ | |
| 458 | 458 | { |
| 459 | 459 | /* bit 8 = 53596 char/rom selection for ROM test */ |
| 460 | 460 | glfgreat_roz_rom_mode = data & 0x100; |
| r2241 | r2242 | |
| 464 | 464 | |
| 465 | 465 | WRITE16_HANDLER( ssriders_eeprom_w ) |
| 466 | 466 | { |
| 467 | if (ACCESSING_ | |
| 467 | if (ACCESSING_ | |
| 468 | 468 | { |
| 469 | 469 | /* bit 0 is data */ |
| 470 | 470 | /* bit 1 is cs (active low) */ |
| r2241 | r2242 | |
| 485 | 485 | |
| 486 | 486 | WRITE16_HANDLER( ssriders_1c0300_w ) |
| 487 | 487 | { |
| 488 | if (ACCESSING_ | |
| 488 | if (ACCESSING_ | |
| 489 | 489 | { |
| 490 | 490 | /* bit 0,1 = coin counter */ |
| 491 | 491 | coin_counter_w(0,data & 0x01); |
| r2241 | r2242 | |
| 501 | 501 | |
| 502 | 502 | WRITE16_HANDLER( prmrsocr_122000_w ) |
| 503 | 503 | { |
| 504 | if (ACCESSING_ | |
| 504 | if (ACCESSING_ | |
| 505 | 505 | { |
| 506 | 506 | /* bit 0,1 = coin counter */ |
| 507 | 507 | coin_counter_w(0,data & 0x01); |
| r2241 | r2242 | |
| 531 | 531 | |
| 532 | 532 | WRITE16_HANDLER( tmnt_priority_w ) |
| 533 | 533 | { |
| 534 | if (ACCESSING_ | |
| 534 | if (ACCESSING_ | |
| 535 | 535 | { |
| 536 | 536 | /* bit 2/3 = priority; other bits unused */ |
| 537 | 537 | /* bit2 = PRI bit3 = PRI2 |
| r2241 | r2242 | |
|---|---|---|
| 3445 | 3445 | |
| 3446 | 3446 | WRITE16_HANDLER( segaic16_road_control_0_w ) |
| 3447 | 3447 | { |
| 3448 | if (ACCESSING_ | |
| 3448 | if (ACCESSING_ | |
| 3449 | 3449 | { |
| 3450 | 3450 | road[0].control = data & ((road[0].type == SEGAIC16_ROAD_OUTRUN) ? 3 : 7); |
| 3451 | 3451 | } |
| r2241 | r2242 | |
|---|---|---|
| 163 | 163 | |
| 164 | 164 | WRITE16_HANDLER( bionicc_gfxctrl_w ) |
| 165 | 165 | { |
| 166 | if (ACCESSING_ | |
| 166 | if (ACCESSING_ | |
| 167 | 167 | { |
| 168 | 168 | flip_screen_set(data & 0x0100); |
| 169 | 169 |
| r2241 | r2242 | |
|---|---|---|
| 105 | 105 | WRITE32_HANDLER( psikyo_vram_0_w ) |
| 106 | 106 | { |
| 107 | 107 | COMBINE_DATA(&psikyo_vram_0[offset]); |
| 108 | if (ACCESSING_ | |
| 108 | if (ACCESSING_BITS_16_31) | |
| 109 | 109 | { |
| 110 | 110 | tilemap_mark_tile_dirty(tilemap_0_size0, offset*2); |
| 111 | 111 | tilemap_mark_tile_dirty(tilemap_0_size1, offset*2); |
| r2241 | r2242 | |
| 113 | 113 | tilemap_mark_tile_dirty(tilemap_0_size3, offset*2); |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | if (ACCESSING_ | |
| 116 | if (ACCESSING_BITS_0_15) | |
| 117 | 117 | { |
| 118 | 118 | tilemap_mark_tile_dirty(tilemap_0_size0, offset*2+1); |
| 119 | 119 | tilemap_mark_tile_dirty(tilemap_0_size1, offset*2+1); |
| r2241 | r2242 | |
| 125 | 125 | WRITE32_HANDLER( psikyo_vram_1_w ) |
| 126 | 126 | { |
| 127 | 127 | COMBINE_DATA(&psikyo_vram_1[offset]); |
| 128 | if (ACCESSING_ | |
| 128 | if (ACCESSING_BITS_16_31) | |
| 129 | 129 | { |
| 130 | 130 | tilemap_mark_tile_dirty(tilemap_1_size0, offset*2); |
| 131 | 131 | tilemap_mark_tile_dirty(tilemap_1_size1, offset*2); |
| r2241 | r2242 | |
| 133 | 133 | tilemap_mark_tile_dirty(tilemap_1_size3, offset*2); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | if (ACCESSING_ | |
| 136 | if (ACCESSING_BITS_0_15) | |
| 137 | 137 | { |
| 138 | 138 | tilemap_mark_tile_dirty(tilemap_1_size0, offset*2+1); |
| 139 | 139 | tilemap_mark_tile_dirty(tilemap_1_size1, offset*2+1); |
| r2241 | r2242 | |
|---|---|---|
| 659 | 659 | |
| 660 | 660 | WRITE64_HANDLER( real3d_display_list_w ) |
| 661 | 661 | { |
| 662 | if( | |
| 662 | if(ACCESSING_BITS_32_63 | |
| 663 | 663 | display_list_ram[offset*2] = BYTE_REVERSE32((UINT32)(data >> 32)); |
| 664 | 664 | } |
| 665 | if( | |
| 665 | if(ACCESSING_BITS_ | |
| 666 | 666 | display_list_ram[(offset*2)+1] = BYTE_REVERSE32((UINT32)(data)); |
| 667 | 667 | } |
| 668 | 668 | } |
| 669 | 669 | |
| 670 | 670 | WRITE64_HANDLER( real3d_polygon_ram_w ) |
| 671 | 671 | { |
| 672 | if( | |
| 672 | if(ACCESSING_BITS_32_63 | |
| 673 | 673 | polygon_ram[offset*2] = BYTE_REVERSE32((UINT32)(data >> 32)); |
| 674 | 674 | } |
| 675 | if( | |
| 675 | if(ACCESSING_BITS_ | |
| 676 | 676 | polygon_ram[(offset*2)+1] = BYTE_REVERSE32((UINT32)(data)); |
| 677 | 677 | } |
| 678 | 678 | } |
| r2241 | r2242 | |
|---|---|---|
| 107 | 107 | |
| 108 | 108 | WRITE16_HANDLER( cchasm_refresh_control_w ) |
| 109 | 109 | { |
| 110 | if (ACCESSING_ | |
| 110 | if (ACCESSING_ | |
| 111 | 111 | { |
| 112 | 112 | switch (data >> 8) |
| 113 | 113 | { |
| r2241 | r2242 | |
|---|---|---|
| 705 | 705 | |
| 706 | 706 | WRITE16_HANDLER( batrider_objectbank_w ) |
| 707 | 707 | { |
| 708 | if (ACCESSING_ | |
| 708 | if (ACCESSING_ | |
| 709 | 709 | { |
| 710 | 710 | data &= 0xf; |
| 711 | 711 | if (batrider_object_bank[offset] != data) |
| r2241 | r2242 | |
| 813 | 813 | |
| 814 | 814 | static void toaplan2_scroll_reg_select_w(offs_t offset, UINT16 data, UINT32 mem_mask, int controller) |
| 815 | 815 | { |
| 816 | if (ACCESSING_ | |
| 816 | if (ACCESSING_ | |
| 817 | 817 | { |
| 818 | 818 | toaplan2_scroll_reg[controller] = data & 0x8f; |
| 819 | 819 | if (data & 0x70) |
| r2241 | r2242 | |
| 1045 | 1045 | |
| 1046 | 1046 | WRITE16_HANDLER( pipibibi_scroll_w ) |
| 1047 | 1047 | { |
| 1048 | if (ACCESSING_ | |
| 1048 | if (ACCESSING_ | |
| 1049 | 1049 | { |
| 1050 | 1050 | switch(offset) |
| 1051 | 1051 | { |
| r2241 | r2242 | |
|---|---|---|
| 28 | 28 | int line_offset; |
| 29 | 29 | |
| 30 | 30 | const pen_t *pal_data; |
| 31 | rgb_t pal_base; | |
| 31 | 32 | |
| 32 | 33 | int x_offset, y_offset; |
| 33 | 34 | int tile_width, tile_height; |
| r2241 | r2242 | |
| 137 | 138 | code = source[0x06/2]; |
| 138 | 139 | zoom = source[0x08/2]; |
| 139 | 140 | |
| 140 | sprite->pal_data = base_pal + ((source[0x0e/2] & 0xff) << 4); | |
| 141 | sprite->pal_base = (source[0x0e/2] & 0xff) << 4; | |
| 142 | sprite->pal_data = base_pal + sprite->pal_base; | |
| 141 | 143 | |
| 142 | 144 | gfx = (wecleman_gfx_bank[bank] << 15) + (code & 0x7fff); |
| 143 | 145 | |
| r2241 | r2242 | |
| 198 | 200 | } |
| 199 | 201 | |
| 200 | 202 | // draws a 8bpp palette sprites on a 16bpp direct RGB target (sub-par implementation) |
| 201 | static void do_blit_zoom | |
| 203 | static void do_blit_zoom32(bitmap_t *bitmap, const rectangle *cliprect, struct sprite *sprite) | |
| 202 | 204 | { |
| 203 | 205 | #define PRECISION_X 20 |
| 204 | 206 | #define PRECISION_Y 20 |
| r2241 | r2242 | |
| 275 | 277 | // pre-loop assignments and adjustments |
| 276 | 278 | pal_base = sprite->pal_data; |
| 277 | 279 | |
| 278 | x1 -= dx; | |
| 279 | x2 -= dx; | |
| 280 | if (x1 > cliprect->min_x) | |
| 281 | { | |
| 282 | x1 -= dx; | |
| 283 | x2 -= dx; | |
| 284 | } | |
| 280 | 285 | |
| 281 | 286 | for (sy = y1; sy != y2; sy += dy) |
| 282 | 287 | { |
| 283 | 288 | UINT8 *row_base = sprite->pen_data + (src_f0y>>PRECISION_Y) * sprite->line_offset; |
| 284 | UINT16 *dst_ptr = BITMAP_ADDR16(bitmap, sy, 0); | |
| 285 | 289 | src_fpx = src_f0x; |
| 286 | 290 | |
| 287 | if ( | |
| 291 | if (b | |
| 288 | 292 | { |
| 289 | for (sx = x1; sx != x2; sx += dx) | |
| 293 | UINT32 *dst_ptr = BITMAP_ADDR32(bitmap, sy, 0); | |
| 294 | ||
| 295 | if (!sprite->shadow_mode) | |
| 290 | 296 | { |
| 291 | int pix = row_base[src_fpx >> PRECISION_X]; | |
| 292 | if (pix & 0x80) break; | |
| 293 | if (pix) | |
| 294 | dst_ptr[sx] = pal_base[pix]; | |
| 295 | src_fpx += src_fdx; | |
| 297 | for (sx = x1; sx != x2; sx += dx) | |
| 298 | { | |
| 299 | int pix = row_base[src_fpx >> PRECISION_X]; | |
| 300 | if (pix & 0x80) break; | |
| 301 | if (pix) | |
| 302 | dst_ptr[sx] = pal_base[pix]; | |
| 303 | src_fpx += src_fdx; | |
| 304 | } | |
| 296 | 305 | } |
| 297 | } | |
| 298 | else if (gameid == 0) // Wec Le Mans | |
| 299 | { | |
| 300 | for (sx = x1; sx != x2; sx += dx) | |
| 306 | else | |
| 301 | 307 | { |
| 302 | int pix = row_base[src_fpx >> PRECISION_X]; | |
| 303 | if (pix & 0x80) break; | |
| 304 | if (pix) | |
| 308 | for (sx = x1; sx != x2; sx += dx) | |
| 305 | 309 | { |
| 306 | if (pix != 0xa) | |
| 307 | dst_ptr[sx] = pal_base[pix]; | |
| 308 | else | |
| 309 | dst_ptr[sx] = rgb_half[dst_ptr[sx]]; | |
| 310 | int pix = row_base[src_fpx >> PRECISION_X]; | |
| 311 | if (pix & 0x80) break; | |
| 312 | if (pix) | |
| 313 | { | |
| 314 | if (pix != 0xa) | |
| 315 | dst_ptr[sx] = pal_base[pix]; | |
| 316 | else | |
| 317 | dst_ptr[sx] = (dst_ptr[sx] >> 1) & MAKE_RGB(0x7f,0x7f,0x7f); | |
| 318 | } | |
| 319 | src_fpx += src_fdx; | |
| 310 | 320 | } |
| 311 | src_fpx += src_fdx; | |
| 312 | 321 | } |
| 313 | 322 | } |
| 314 | 323 | else // Hot Chase |
| 315 | 324 | { |
| 316 | for (sx = x1; sx != x2; sx += dx) | |
| 325 | UINT16 *dst_ptr = BITMAP_ADDR16(bitmap, sy, 0); | |
| 326 | pen_t base = sprite->pal_base; | |
| 327 | ||
| 328 | if (!sprite->shadow_mode) | |
| 317 | 329 | { |
| 318 | int pix = row_base[src_fpx >> PRECISION_X]; | |
| 319 | if (pix & 0x80) break; | |
| 320 | if (pix) | |
| 330 | for (sx = x1; sx != x2; sx += dx) | |
| 321 | 331 | { |
| 322 | if (pix != 0xa) | |
| 323 | dst_ptr[sx] = pal_base[pix]; | |
| 324 | else | |
| 325 | dst_ptr[sx] |= 0x800; | |
| 332 | int pix = row_base[src_fpx >> PRECISION_X]; | |
| 333 | if (pix & 0x80) break; | |
| 334 | if (pix) | |
| 335 | dst_ptr[sx] = base + pix; | |
| 336 | src_fpx += src_fdx; | |
| 326 | 337 | } |
| 327 | src_fpx += src_fdx; | |
| 328 | 338 | } |
| 339 | else | |
| 340 | { | |
| 341 | for (sx = x1; sx != x2; sx += dx) | |
| 342 | { | |
| 343 | int pix = row_base[src_fpx >> PRECISION_X]; | |
| 344 | if (pix & 0x80) break; | |
| 345 | if (pix) | |
| 346 | { | |
| 347 | if (pix != 0xa) | |
| 348 | dst_ptr[sx] = base + pix; | |
| 349 | else | |
| 350 | dst_ptr[sx] |= 0x800; | |
| 351 | } | |
| 352 | src_fpx += src_fdx; | |
| 353 | } | |
| 354 | } | |
| 329 | 355 | } |
| 330 | 356 | |
| 331 | 357 | src_f0y += src_fdy; |
| r2241 | r2242 | |
| 340 | 366 | { |
| 341 | 367 | sortsprite(spr_idx_list, spr_pri_list, spr_count); |
| 342 | 368 | |
| 343 | for (i=0; i<spr_count; i++) do_blit_zoom | |
| 369 | for (i=0; i<spr_count; i++) do_blit_zoom32(bitmap, cliprect, spr_ptr_list[spr_idx_list[i]]); | |
| 344 | 370 | } |
| 345 | 371 | else // Hot Chase |
| 346 | 372 | { |
| 347 | for (i=0; i<spr_count; i++) do_blit_zoom | |
| 373 | for (i=0; i<spr_count; i++) do_blit_zoom32(bitmap, cliprect, spr_ptr_list[i]); | |
| 348 | 374 | } |
| 349 | 375 | } |
| 350 | 376 | |
| r2241 | r2242 | |
| 573 | 599 | // draw sky; each scanline is assumed to be dword aligned |
| 574 | 600 | for (sy=cliprect->min_y-BMP_PAD; sy<DST_HEIGHT; sy++) |
| 575 | 601 | { |
| 576 | UINT16 *dst = BITMAP_ADDR16(bitmap, sy+BMP_PAD, BMP_PAD); | |
| 577 | UINT16 pix, road; | |
| 602 | UINT32 *dst = BITMAP_ADDR32(bitmap, sy+BMP_PAD, BMP_PAD); | |
| 603 | UINT32 pix; | |
| 604 | UINT16 road; | |
| 578 | 605 | |
| 579 | 606 | road = wecleman_roadram[sy]; |
| 580 | 607 | if ((road>>8) != 0x02) continue; |
| r2241 | r2242 | |
| 599 | 626 | |
| 600 | 627 | for (sy=cliprect->min_y-BMP_PAD; sy<DST_HEIGHT; sy++) |
| 601 | 628 | { |
| 602 | UINT16 *dst = BITMAP_ADDR16(bitmap, sy+BMP_PAD, BMP_PAD); | |
| 603 | UINT16 pix, road; | |
| 629 | UINT32 *dst = BITMAP_ADDR32(bitmap, sy+BMP_PAD, BMP_PAD); | |
| 630 | UINT32 pix; | |
| 631 | UINT16 road; | |
| 604 | 632 | |
| 605 | 633 | road = wecleman_roadram[sy]; |
| 606 | 634 | if ((road>>8) != 0x04) continue; |
| r2241 | r2242 | |
| 654 | 682 | int alpha, int pal_offset ) // alpha(0-3f), # of color codes to shift |
| 655 | 683 | { |
| 656 | 684 | UINT8 *src_base, *src_ptr; |
| 657 | UINT16 *tmap_ptr, *dst_base, *dst_ptr; | |
| 685 | UINT16 *tmap_ptr; | |
| 686 | UINT32 *dst_base, *dst_ptr; | |
| 658 | 687 | const pen_t *pal_base, *pal_ptr; |
| 659 | 688 | |
| 660 | 689 | int tilew, tileh; |
| 661 | 690 | int tmskipx, tmskipy, tmscanx, tmmaskx, tmmasky; |
| 662 | int dx, dy | |
| 691 | int dx, dy | |
| 663 | 692 | int i, j, tx, ty; |
| 664 | 693 | |
| 665 | 694 | if (alpha > 0x1f) return; |
| r2241 | r2242 | |
| 680 | 709 | |
| 681 | 710 | src_base = gfx->gfxdata; |
| 682 | 711 | |
| 683 | dst_pitch = bitmap->rowpixels; | |
| 684 | dst_base = (UINT16 *)bitmap->base + (y0+dy)*dst_pitch + (x0+dx); | |
| 712 | dst_base = BITMAP_ADDR32(bitmap, y0+dy, x0+dx); | |
| 685 | 713 | |
| 686 | 714 | pal_base = machine->pens + pal_offset * gfx->color_granularity; |
| 687 | 715 | |
| r2241 | r2242 | |
| 716 | 744 | { |
| 717 | 745 | UINT8 srcpix = *src_ptr++; |
| 718 | 746 | pen_t srcrgb = pal_ptr[srcpix]; |
| 719 | UINT | |
| 747 | UINT32 dstrgb = dst_ptr[tx]; | |
| 720 | 748 | int sr, sg, sb, dr, dg, db; |
| 721 | 749 | |
| 722 | sr = (srcrgb >> 0) & 0x1f; | |
| 723 | sg = (srcrgb >> 5) & 0x1f; | |
| 724 | sb = (srcrgb >> 10) & 0x1f; | |
| 750 | sr = (srcrgb >> 3) & 0x1f; | |
| 751 | sg = (srcrgb >> 11) & 0x1f; | |
| 752 | sb = (srcrgb >> 19) & 0x1f; | |
| 725 | 753 | |
| 726 | dr = (dstrgb >> 0) & 0x1f; | |
| 727 | dg = (dstrgb >> 5) & 0x1f; | |
| 728 | db = (dstrgb >> 10) & 0x1f; | |
| 754 | dr = (dstrgb >> 3) & 0x1f; | |
| 755 | dg = (dstrgb >> 11) & 0x1f; | |
| 756 | db = (dstrgb >> 19) & 0x1f; | |
| 729 | 757 | |
| 730 | 758 | dr = (t32x32pm[dr - sr + alpha] >> 5) + dr; |
| 731 | 759 | dg = (t32x32pm[dg - sg + alpha] >> 5) + dg; |
| 732 | 760 | db = (t32x32pm[db - sb + alpha] >> 5) + db; |
| 733 | 761 | |
| 734 | dst_ptr[tx] = d | |
| 762 | dst_ptr[tx] = MAKE_RGB(pal5bit(db), pal5bit(dg | |
| 735 | 763 | } |
| 736 | dst_ptr += | |
| 764 | dst_ptr += bitmap->rowpixels; | |
| 737 | 765 | } |
| 738 | 766 | } |
| 739 | 767 | |
| r2241 | r2242 | |
| 744 | 772 | { |
| 745 | 773 | for (tx = 0; tx < tilew; tx++) |
| 746 | 774 | dst_ptr[tx] = pal_ptr[*src_ptr++]; |
| 747 | dst_ptr += | |
| 775 | dst_ptr += bitmap->rowpixels; | |
| 748 | 776 | } |
| 749 | 777 | } |
| 750 | 778 | } |
| 751 | 779 | |
| 752 | dst_base += | |
| 780 | dst_base += bitmap->rowpixels * tileh; | |
| 753 | 781 | } |
| 754 | 782 | } |
| 755 | 783 | |
| r2241 | r2242 | |
| 828 | 856 | |
| 829 | 857 | // bit0-6: background transition, 0=off, 1=on |
| 830 | 858 | // bit7: palette being changed, 0=no, 1=yes |
| 831 | if (ACCESSING_ | |
| 859 | if (ACCESSING_ | |
| 832 | 860 | { |
| 833 | 861 | if ((data & 0x7f) == 0 && !cloud_ds) |
| 834 | 862 | cloud_ds = BLEND_INC; |
| r2241 | r2242 | |
| 888 | 916 | UINT8 *buffer; |
| 889 | 917 | int i, j; |
| 890 | 918 | |
| 891 | assert(video_screen_get_format(machine->primary_screen) == BITMAP_FORMAT_RGB | |
| 919 | assert(video_screen_get_format(machine->primary_screen) == BITMAP_FORMAT_RGB32); | |
| 892 | 920 | buffer = auto_malloc(0x12c00); // working buffer for sprite operations |
| 893 | 921 | |
| 894 | 922 | gameid = 0; |
| r2241 | r2242 | |
|---|---|---|
| 83 | 83 | |
| 84 | 84 | WRITE16_HANDLER( btoads_display_control_w ) |
| 85 | 85 | { |
| 86 | if (ACCESSING_ | |
| 86 | if (ACCESSING_ | |
| 87 | 87 | { |
| 88 | 88 | /* allow multiple changes during display */ |
| 89 | 89 | int scanline = video_screen_get_vpos(machine->primary_screen); |
| r2241 | r2242 | |
| 121 | 121 | video_screen_update_now(machine->primary_screen); |
| 122 | 122 | |
| 123 | 123 | /* upper bits are Y scroll, lower bits are X scroll */ |
| 124 | if (ACCESSING_ | |
| 124 | if (ACCESSING_ | |
| 125 | 125 | yscroll0 = data >> 8; |
| 126 | if (ACCESSING_ | |
| 126 | if (ACCESSING_ | |
| 127 | 127 | xscroll0 = data & 0xff; |
| 128 | 128 | } |
| 129 | 129 | |
| r2241 | r2242 | |
| 134 | 134 | video_screen_update_now(machine->primary_screen); |
| 135 | 135 | |
| 136 | 136 | /* upper bits are Y scroll, lower bits are X scroll */ |
| 137 | if (ACCESSING_ | |
| 137 | if (ACCESSING_ | |
| 138 | 138 | yscroll1 = data >> 8; |
| 139 | if (ACCESSING_ | |
| 139 | if (ACCESSING_ | |
| 140 | 140 | xscroll1 = data & 0xff; |
| 141 | 141 | } |
| 142 | 142 | |
| r2241 | r2242 | |
| 200 | 200 | |
| 201 | 201 | WRITE16_HANDLER( btoads_vram_fg_display_w ) |
| 202 | 202 | { |
| 203 | if (ACCESSING_ | |
| 203 | if (ACCESSING_ | |
| 204 | 204 | vram_fg_display[offset] = data; |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | |
| 208 | 208 | WRITE16_HANDLER( btoads_vram_fg_draw_w ) |
| 209 | 209 | { |
| 210 | if (ACCESSING_ | |
| 210 | if (ACCESSING_ | |
| 211 | 211 | vram_fg_draw[offset] = data; |
| 212 | 212 | } |
| 213 | 213 |
| r2241 | r2242 | |
|---|---|---|
| 105 | 105 | |
| 106 | 106 | WRITE16_HANDLER( tetrisp2_priority_w ) |
| 107 | 107 | { |
| 108 | if (ACCESSING_ | |
| 108 | if (ACCESSING_ | |
| 109 | 109 | { |
| 110 | 110 | data |= ((data & 0xff00) >> 8); |
| 111 | 111 | tetrisp2_priority[offset] = data; |
| r2241 | r2242 | |
| 115 | 115 | |
| 116 | 116 | WRITE16_HANDLER( rockn_priority_w ) |
| 117 | 117 | { |
| 118 | if (ACCESSING_ | |
| 118 | if (ACCESSING_ | |
| 119 | 119 | { |
| 120 | 120 | tetrisp2_priority[offset] = data; |
| 121 | 121 | } |
| r2241 | r2242 | |
| 123 | 123 | |
| 124 | 124 | WRITE16_HANDLER( rocknms_sub_priority_w ) |
| 125 | 125 | { |
| 126 | if (ACCESSING_ | |
| 126 | if (ACCESSING_ | |
| 127 | 127 | { |
| 128 | 128 | rocknms_sub_priority[offset] = data; |
| 129 | 129 | } |
| r2241 | r2242 | |
|---|---|---|
| 123 | 123 | |
| 124 | 124 | WRITE16_HANDLER( lastduel_flip_w ) |
| 125 | 125 | { |
| 126 | if (ACCESSING_ | |
| 126 | if (ACCESSING_ | |
| 127 | 127 | { |
| 128 | 128 | flip_screen_set(data & 0x01); |
| 129 | 129 |
| r2241 | r2242 | |
|---|---|---|
| 56 | 56 | WRITE16_HANDLER( alpha68k_videoram_w ) |
| 57 | 57 | { |
| 58 | 58 | /* Doh. */ |
| 59 | if(ACCESSING_LSB) | |
| 60 | if(ACCESSING_MSB) | |
| 59 | if(ACCESSING_BITS_0_7) | |
| 60 | if(ACCESSING_BITS_8_15) | |
| 61 | 61 | videoram16[offset] = data; |
| 62 | 62 | else |
| 63 | 63 | videoram16[offset] = data & 0xff; |
| r2241 | r2242 | |
|---|---|---|
| 253 | 253 | switch (offset) |
| 254 | 254 | { |
| 255 | 255 | case 0x0000/2 : // leds |
| 256 | if (ACCESSING_ | |
| 256 | if (ACCESSING_ | |
| 257 | 257 | { |
| 258 | 258 | coin_counter_w(0,new_data & 0x01); |
| 259 | 259 | coin_counter_w(1,new_data & 0x02); |
| r2241 | r2242 | |
| 266 | 266 | break; |
| 267 | 267 | |
| 268 | 268 | case 0x0004/2 : // motor (seat?) |
| 269 | if (ACCESSING_ | |
| 269 | if (ACCESSING_ | |
| 270 | 270 | set_led_status(2, (new_data != old_data) ? 1 : 0); |
| 271 | 271 | break; |
| 272 | 272 | |
| r2241 | r2242 | |
| 347 | 347 | switch (offset) |
| 348 | 348 | { |
| 349 | 349 | case 0x0000/2 : // leds |
| 350 | if (ACCESSING_ | |
| 350 | if (ACCESSING_ | |
| 351 | 351 | { |
| 352 | 352 | coin_counter_w(0,new_data & 0x01); |
| 353 | 353 | coin_counter_w(1,new_data & 0x02); |
| r2241 | r2242 | |
| 360 | 360 | break; |
| 361 | 361 | |
| 362 | 362 | case 0x0004/2 : // motor (seat?) |
| 363 | if (ACCESSING_ | |
| 363 | if (ACCESSING_ | |
| 364 | 364 | set_led_status(2, (new_data != old_data) ? 1 : 0); |
| 365 | 365 | break; |
| 366 | 366 | |
| r2241 | r2242 | |
| 492 | 492 | */ |
| 493 | 493 | // "shudder" motors, leds |
| 494 | 494 | case 0x0004/2 : |
| 495 | if (ACCESSING_ | |
| 495 | if (ACCESSING_ | |
| 496 | 496 | { |
| 497 | 497 | coin_counter_w(0,new_data & 0x01); |
| 498 | 498 | coin_counter_w(1,new_data & 0x02); |
| r2241 | r2242 | |
| 546 | 546 | switch (offset) |
| 547 | 547 | { |
| 548 | 548 | case 0x0000/2 : |
| 549 | if (ACCESSING_ | |
| 549 | if (ACCESSING_ | |
| 550 | 550 | { |
| 551 | 551 | cpunum_set_input_line(machine, 4,4,(new_data & 4)?ASSERT_LINE:CLEAR_LINE); |
| 552 | 552 | cpunum_set_input_line(machine, 4,2,(new_data & 2)?ASSERT_LINE:CLEAR_LINE); |
| r0 | r2242 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Galaxian hardware family | |
| 4 | ||
| 5 | ***************************************************************************/ | |
| 6 | ||
| 7 | #include "driver.h" | |
| 8 | #include "includes/galaxold.h" | |
| 9 | ||
| 10 | static const rectangle _spritevisiblearea = | |
| 11 | { | |
| 12 | 2*8+1, 32*8-1, | |
| 13 | 2*8, 30*8-1 | |
| 14 | }; | |
| 15 | static const rectangle _spritevisibleareaflipx = | |
| 16 | { | |
| 17 | 0*8, 30*8-2, | |
| 18 | 2*8, 30*8-1 | |
| 19 | }; | |
| 20 | ||
| 21 | static const rectangle* spritevisiblearea; | |
| 22 | static const rectangle* spritevisibleareaflipx; | |
| 23 | ||
| 24 | ||
| 25 | #define STARS_COLOR_BASE (memory_region_length(REGION_PROMS)) | |
| 26 | #define BULLETS_COLOR_BASE (STARS_COLOR_BASE + 64) | |
| 27 | #define BACKGROUND_COLOR_BASE (BULLETS_COLOR_BASE + 2) | |
| 28 | ||
| 29 | ||
| 30 | UINT8 *galaxold_videoram; | |
| 31 | UINT8 *galaxold_spriteram; | |
| 32 | UINT8 *galaxold_spriteram2; | |
| 33 | UINT8 *galaxold_attributesram; | |
| 34 | UINT8 *galaxold_bulletsram; | |
| 35 | UINT8 *rockclim_videoram; | |
| 36 | size_t galaxold_spriteram_size; | |
| 37 | size_t galaxold_spriteram2_size; | |
| 38 | size_t galaxold_bulletsram_size; | |
| 39 | ||
| 40 | ||
| 41 | static TILE_GET_INFO( get_tile_info ); | |
| 42 | static TILE_GET_INFO( rockclim_get_tile_info ); | |
| 43 | static tilemap *bg_tilemap; | |
| 44 | static tilemap *rockclim_tilemap; | |
| 45 | static int mooncrst_gfxextend; | |
| 46 | static int spriteram2_present; | |
| 47 | static UINT8 gfxbank[5]; | |
| 48 | static UINT8 flipscreen_x; | |
| 49 | static UINT8 flipscreen_y; | |
| 50 | static UINT8 color_mask; | |
| 51 | static tilemap *dambustr_tilemap2; | |
| 52 | static UINT8 *dambustr_videoram2; | |
| 53 | static void (*modify_charcode)(UINT16 *code,UINT8 x); /* function to call to do character banking */ | |
| 54 | static void mooncrst_modify_charcode(UINT16 *code,UINT8 x); | |
| 55 | static void pisces_modify_charcode(UINT16 *code,UINT8 x); | |
| 56 | static void mimonkey_modify_charcode(UINT16 *code,UINT8 x); | |
| 57 | static void mariner_modify_charcode(UINT16 *code,UINT8 x); | |
| 58 | static void dambustr_modify_charcode(UINT16 *code,UINT8 x); | |
| 59 | ||
| 60 | static void (*modify_spritecode)(UINT8 *spriteram,int*,int*,int*,int); /* function to call to do sprite banking */ | |
| 61 | static void mshuttle_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 62 | static void calipso_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 63 | static void mimonkey_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 64 | static void batman2_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 65 | static void dkongjrm_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 66 | static void ad2083_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 67 | static void dambustr_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs); | |
| 68 | ||
| 69 | static void (*modify_color)(UINT8 *color); /* function to call to do modify how the color codes map to the PROM */ | |
| 70 | static void drivfrcg_modify_color(UINT8 *color); | |
| 71 | ||
| 72 | static void (*modify_ypos)(UINT8*); /* function to call to do modify how vertical positioning bits are connected */ | |
| 73 | ||
| 74 | static TIMER_CALLBACK( stars_blink_callback ); | |
| 75 | static TIMER_CALLBACK( stars_scroll_callback ); | |
| 76 | ||
| 77 | static void (*tilemap_set_scroll)( tilemap *, int col, int value ); | |
| 78 | ||
| 79 | /* star circuit */ | |
| 80 | #define STAR_COUNT 252 | |
| 81 | struct star | |
| 82 | { | |
| 83 | int x,y,color; | |
| 84 | }; | |
| 85 | static struct star stars[STAR_COUNT]; | |
| 86 | static int stars_colors_start; | |
| 87 | UINT8 galaxold_stars_on; | |
| 88 | static INT32 stars_scrollpos; | |
| 89 | static UINT8 stars_blink_state; | |
| 90 | static emu_timer *stars_blink_timer; | |
| 91 | static emu_timer *stars_scroll_timer; | |
| 92 | static UINT8 timer_adjusted; | |
| 93 | void galaxold_init_stars(running_machine *machine, int colors_offset); | |
| 94 | static void (*draw_stars)(running_machine *machine, bitmap_t *, const rectangle *); /* function to call to draw the star layer */ | |
| 95 | static void noop_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 96 | void galaxold_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 97 | static void scramble_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 98 | static void rescue_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 99 | static void mariner_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect); | |
| 100 | static void start_stars_blink_timer(double ra, double rb, double c); | |
| 101 | static void start_stars_scroll_timer(running_machine *machine); | |
| 102 | ||
| 103 | /* bullets circuit */ | |
| 104 | static UINT8 darkplnt_bullet_color; | |
| 105 | static void (*draw_bullets)(bitmap_t *,int,int,int,const rectangle *); /* function to call to draw a bullet */ | |
| 106 | static void galaxold_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect); | |
| 107 | static void scramble_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect); | |
| 108 | static void darkplnt_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect); | |
| 109 | static void dambustr_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect); | |
| 110 | ||
| 111 | /* background circuit */ | |
| 112 | static UINT8 background_enable; | |
| 113 | static UINT8 background_red, background_green, background_blue; | |
| 114 | static void (*draw_background)(bitmap_t *, const rectangle *cliprect); /* function to call to draw the background */ | |
| 115 | static void galaxold_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 116 | static void scramble_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 117 | static void turtles_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 118 | static void mariner_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 119 | static void stratgyx_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 120 | static void minefld_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 121 | static void rescue_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 122 | static void dambustr_draw_background(bitmap_t *bitmap, const rectangle *cliprect); | |
| 123 | ||
| 124 | static UINT16 rockclim_v; | |
| 125 | static UINT16 rockclim_h; | |
| 126 | static int dambustr_bg_split_line; | |
| 127 | static int dambustr_bg_color_1; | |
| 128 | static int dambustr_bg_color_2; | |
| 129 | static int dambustr_bg_priority; | |
| 130 | static int dambustr_char_bank; | |
| 131 | static bitmap_t *dambustr_tmpbitmap; | |
| 132 | ||
| 133 | ||
| 134 | ||
| 135 | /*************************************************************************** | |
| 136 | ||
| 137 | Convert the color PROMs into a more useable format. | |
| 138 | ||
| 139 | Galaxian has one 32 bytes palette PROM, connected to the RGB output this way: | |
| 140 | ||
| 141 | bit 7 -- 220 ohm resistor -- BLUE | |
| 142 | -- 470 ohm resistor -- BLUE | |
| 143 | -- 220 ohm resistor -- GREEN | |
| 144 | -- 470 ohm resistor -- GREEN | |
| 145 | -- 1 kohm resistor -- GREEN | |
| 146 | -- 220 ohm resistor -- RED | |
| 147 | -- 470 ohm resistor -- RED | |
| 148 | bit 0 -- 1 kohm resistor -- RED | |
| 149 | ||
| 150 | The output of the background star generator is connected this way: | |
| 151 | ||
| 152 | bit 5 -- 100 ohm resistor -- BLUE | |
| 153 | -- 150 ohm resistor -- BLUE | |
| 154 | -- 100 ohm resistor -- GREEN | |
| 155 | -- 150 ohm resistor -- GREEN | |
| 156 | -- 100 ohm resistor -- RED | |
| 157 | bit 0 -- 150 ohm resistor -- RED | |
| 158 | ||
| 159 | The blue background in Scramble and other games goes through a 390 ohm | |
| 160 | resistor. | |
| 161 | ||
| 162 | The bullet RGB outputs go through 100 ohm resistors. | |
| 163 | ||
| 164 | The RGB outputs have a 470 ohm pull-down each. | |
| 165 | ||
| 166 | ***************************************************************************/ | |
| 167 | PALETTE_INIT( galaxold ) | |
| 168 | { | |
| 169 | int i; | |
| 170 | ||
| 171 | ||
| 172 | /* first, the character/sprite palette */ | |
| 173 | ||
| 174 | for (i = 0;i < memory_region_length(REGION_PROMS);i++) | |
| 175 | { | |
| 176 | int bit0,bit1,bit2,r,g,b; | |
| 177 | ||
| 178 | /* red component */ | |
| 179 | bit0 = BIT(*color_prom,0); | |
| 180 | bit1 = BIT(*color_prom,1); | |
| 181 | bit2 = BIT(*color_prom,2); | |
| 182 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 183 | /* green component */ | |
| 184 | bit0 = BIT(*color_prom,3); | |
| 185 | bit1 = BIT(*color_prom,4); | |
| 186 | bit2 = BIT(*color_prom,5); | |
| 187 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 188 | /* blue component */ | |
| 189 | bit0 = BIT(*color_prom,6); | |
| 190 | bit1 = BIT(*color_prom,7); | |
| 191 | b = 0x4f * bit0 + 0xa8 * bit1; | |
| 192 | ||
| 193 | palette_set_color_rgb(machine,i,r,g,b); | |
| 194 | color_prom++; | |
| 195 | } | |
| 196 | ||
| 197 | ||
| 198 | galaxold_init_stars(machine, STARS_COLOR_BASE); | |
| 199 | ||
| 200 | ||
| 201 | /* bullets - yellow and white */ | |
| 202 | palette_set_color(machine,BULLETS_COLOR_BASE+0,MAKE_RGB(0xef,0xef,0x00)); | |
| 203 | palette_set_color(machine,BULLETS_COLOR_BASE+1,MAKE_RGB(0xef,0xef,0xef)); | |
| 204 | } | |
| 205 | ||
| 206 | PALETTE_INIT( scrambold ) | |
| 207 | { | |
| 208 | PALETTE_INIT_CALL(galaxold); | |
| 209 | ||
| 210 | ||
| 211 | /* blue background - 390 ohm resistor */ | |
| 212 | palette_set_color(machine,BACKGROUND_COLOR_BASE,MAKE_RGB(0,0,0x56)); | |
| 213 | } | |
| 214 | ||
| 215 | PALETTE_INIT( moonwar ) | |
| 216 | { | |
| 217 | PALETTE_INIT_CALL(scrambold); | |
| 218 | ||
| 219 | ||
| 220 | /* wire mod to connect the bullet blue output to the 220 ohm resistor */ | |
| 221 | palette_set_color(machine,BULLETS_COLOR_BASE+0,MAKE_RGB(0xef,0xef,0x97)); | |
| 222 | } | |
| 223 | ||
| 224 | PALETTE_INIT( stratgyx ) | |
| 225 | { | |
| 226 | int i; | |
| 227 | ||
| 228 | ||
| 229 | PALETTE_INIT_CALL(galaxold); | |
| 230 | ||
| 231 | ||
| 232 | /* The background color generator is connected this way: | |
| 233 | ||
| 234 | RED - 270 ohm resistor | |
| 235 | GREEN - 560 ohm resistor | |
| 236 | BLUE - 470 ohm resistor */ | |
| 237 | ||
| 238 | for (i = 0; i < 8; i++) | |
| 239 | { | |
| 240 | int r = BIT(i,0) * 0x7c; | |
| 241 | int g = BIT(i,1) * 0x3c; | |
| 242 | int b = BIT(i,2) * 0x47; | |
| 243 | ||
| 244 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 245 | } | |
| 246 | } | |
| 247 | ||
| 248 | PALETTE_INIT( rockclim ) | |
| 249 | { | |
| 250 | int i; | |
| 251 | ||
| 252 | ||
| 253 | /* first, the character/sprite palette */ | |
| 254 | ||
| 255 | for (i = 0;i < memory_region_length(REGION_PROMS);i++) | |
| 256 | { | |
| 257 | int bit0,bit1,bit2,r,g,b; | |
| 258 | ||
| 259 | /* red component */ | |
| 260 | bit0 = BIT(*color_prom,0); | |
| 261 | bit1 = BIT(*color_prom,1); | |
| 262 | bit2 = BIT(*color_prom,2); | |
| 263 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 264 | /* green component */ | |
| 265 | bit0 = BIT(*color_prom,3); | |
| 266 | bit1 = BIT(*color_prom,4); | |
| 267 | bit2 = BIT(*color_prom,5); | |
| 268 | g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 269 | /* blue component */ | |
| 270 | bit0 = BIT(*color_prom,6); | |
| 271 | bit1 = BIT(*color_prom,7); | |
| 272 | b = 0x4f * bit0 + 0xa8 * bit1; | |
| 273 | ||
| 274 | palette_set_color_rgb(machine,i,r,g,b); | |
| 275 | color_prom++; | |
| 276 | } | |
| 277 | } | |
| 278 | /*************************************************************************** | |
| 279 | ||
| 280 | Convert the color PROMs into a more useable format. | |
| 281 | ||
| 282 | Dark Planet has one 32 bytes palette PROM, connected to the RGB output this way: | |
| 283 | ||
| 284 | bit 5 -- 220 ohm resistor -- BLUE | |
| 285 | -- 470 ohm resistor -- BLUE | |
| 286 | -- 1 kohm resistor -- BLUE | |
| 287 | -- 220 ohm resistor -- RED | |
| 288 | -- 470 ohm resistor -- RED | |
| 289 | bit 0 -- 1 kohm resistor -- RED | |
| 290 | ||
| 291 | The bullet RGB outputs go through 100 ohm resistors. | |
| 292 | ||
| 293 | The RGB outputs have a 470 ohm pull-down each. | |
| 294 | ||
| 295 | ***************************************************************************/ | |
| 296 | PALETTE_INIT( darkplnt ) | |
| 297 | { | |
| 298 | int i; | |
| 299 | ||
| 300 | ||
| 301 | /* first, the character/sprite palette */ | |
| 302 | ||
| 303 | for (i = 0;i < 32;i++) | |
| 304 | { | |
| 305 | int bit0,bit1,bit2,r,g,b; | |
| 306 | ||
| 307 | /* red component */ | |
| 308 | bit0 = BIT(*color_prom,0); | |
| 309 | bit1 = BIT(*color_prom,1); | |
| 310 | bit2 = BIT(*color_prom,2); | |
| 311 | r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 312 | /* green component */ | |
| 313 | g = 0x00; | |
| 314 | /* blue component */ | |
| 315 | bit0 = BIT(*color_prom,3); | |
| 316 | bit1 = BIT(*color_prom,4); | |
| 317 | bit2 = BIT(*color_prom,5); | |
| 318 | b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; | |
| 319 | ||
| 320 | palette_set_color_rgb(machine,i,r,g,b); | |
| 321 | color_prom++; | |
| 322 | } | |
| 323 | ||
| 324 | ||
| 325 | /* bullets - red and blue */ | |
| 326 | palette_set_color(machine,BULLETS_COLOR_BASE+0,MAKE_RGB(0xef,0x00,0x00)); | |
| 327 | palette_set_color(machine,BULLETS_COLOR_BASE+1,MAKE_RGB(0x00,0x00,0xef)); | |
| 328 | } | |
| 329 | ||
| 330 | PALETTE_INIT( minefld ) | |
| 331 | { | |
| 332 | int i; | |
| 333 | ||
| 334 | ||
| 335 | PALETTE_INIT_CALL(galaxold); | |
| 336 | ||
| 337 | ||
| 338 | /* set up background colors */ | |
| 339 | ||
| 340 | /* graduated blue */ | |
| 341 | ||
| 342 | for (i = 0; i < 128; i++) | |
| 343 | { | |
| 344 | int r = 0; | |
| 345 | int g = i; | |
| 346 | int b = i * 2; | |
| 347 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 348 | } | |
| 349 | ||
| 350 | /* graduated brown */ | |
| 351 | ||
| 352 | for (i = 0; i < 128; i++) | |
| 353 | { | |
| 354 | int r = i * 1.5; | |
| 355 | int g = i * 0.75; | |
| 356 | int b = i / 2; | |
| 357 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+128+i,r,g,b); | |
| 358 | } | |
| 359 | } | |
| 360 | ||
| 361 | PALETTE_INIT( rescue ) | |
| 362 | { | |
| 363 | int i; | |
| 364 | ||
| 365 | ||
| 366 | PALETTE_INIT_CALL(galaxold); | |
| 367 | ||
| 368 | ||
| 369 | /* set up background colors */ | |
| 370 | ||
| 371 | /* graduated blue */ | |
| 372 | ||
| 373 | for (i = 0; i < 128; i++) | |
| 374 | { | |
| 375 | int r = 0; | |
| 376 | int g = i; | |
| 377 | int b = i * 2; | |
| 378 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 379 | } | |
| 380 | } | |
| 381 | ||
| 382 | PALETTE_INIT( mariner ) | |
| 383 | { | |
| 384 | int i; | |
| 385 | ||
| 386 | ||
| 387 | PALETTE_INIT_CALL(galaxold); | |
| 388 | ||
| 389 | ||
| 390 | /* set up background colors */ | |
| 391 | ||
| 392 | /* 16 shades of blue - the 4 bits are connected to the following resistors: | |
| 393 | ||
| 394 | bit 0 -- 4.7 kohm resistor | |
| 395 | -- 2.2 kohm resistor | |
| 396 | -- 1 kohm resistor | |
| 397 | bit 0 -- .47 kohm resistor */ | |
| 398 | ||
| 399 | for (i = 0; i < 16; i++) | |
| 400 | { | |
| 401 | int r,g,b; | |
| 402 | ||
| 403 | r = 0; | |
| 404 | g = 0; | |
| 405 | b = 0x0e * BIT(i,0) + 0x1f * BIT(i,1) + 0x43 * BIT(i,2) + 0x8f * BIT(i,3); | |
| 406 | ||
| 407 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 408 | } | |
| 409 | } | |
| 410 | ||
| 411 | ||
| 412 | PALETTE_INIT( dambustr ) | |
| 413 | { | |
| 414 | int i; | |
| 415 | ||
| 416 | PALETTE_INIT_CALL(galaxold); | |
| 417 | ||
| 418 | ||
| 419 | /* | |
| 420 | Assumption (not clear from the schematics): | |
| 421 | The background color generator is connected this way: | |
| 422 | ||
| 423 | RED - 470 ohm resistor | |
| 424 | GREEN - 470 ohm resistor | |
| 425 | BLUE - 470 ohm resistor */ | |
| 426 | ||
| 427 | ||
| 428 | for (i = 0; i < 8; i++) | |
| 429 | { | |
| 430 | int r = BIT(i,0) * 0x47; | |
| 431 | int g = BIT(i,1) * 0x47; | |
| 432 | int b = BIT(i,2) * 0x4f; | |
| 433 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 434 | } | |
| 435 | } | |
| 436 | ||
| 437 | ||
| 438 | PALETTE_INIT( turtles ) | |
| 439 | { | |
| 440 | int i; | |
| 441 | ||
| 442 | ||
| 443 | PALETTE_INIT_CALL(galaxold); | |
| 444 | ||
| 445 | ||
| 446 | /* The background color generator is connected this way: | |
| 447 | ||
| 448 | RED - 390 ohm resistor | |
| 449 | GREEN - 470 ohm resistor | |
| 450 | BLUE - 390 ohm resistor */ | |
| 451 | ||
| 452 | for (i = 0; i < 8; i++) | |
| 453 | { | |
| 454 | int r = BIT(i,0) * 0x55; | |
| 455 | int g = BIT(i,1) * 0x47; | |
| 456 | int b = BIT(i,2) * 0x55; | |
| 457 | ||
| 458 | palette_set_color_rgb(machine,BACKGROUND_COLOR_BASE+i,r,g,b); | |
| 459 | } | |
| 460 | } | |
| 461 | ||
| 462 | ||
| 463 | /*************************************************************************** | |
| 464 | ||
| 465 | Start the video hardware emulation. | |
| 466 | ||
| 467 | ***************************************************************************/ | |
| 468 | ||
| 469 | static void state_save_register(void) | |
| 470 | { | |
| 471 | state_save_register_global_array(gfxbank); | |
| 472 | state_save_register_global(flipscreen_x); | |
| 473 | state_save_register_global(flipscreen_y); | |
| 474 | ||
| 475 | state_save_register_global(galaxold_stars_on); | |
| 476 | state_save_register_global(stars_scrollpos); | |
| 477 | state_save_register_global(stars_blink_state); | |
| 478 | ||
| 479 | state_save_register_global(darkplnt_bullet_color); | |
| 480 | ||
| 481 | state_save_register_global(background_enable); | |
| 482 | state_save_register_global(background_red); | |
| 483 | state_save_register_global(background_green); | |
| 484 | state_save_register_global(background_blue); | |
| 485 | } | |
| 486 | ||
| 487 | static void video_start_common(running_machine *machine, tilemap_mapper_func get_memory_offset) | |
| 488 | { | |
| 489 | bg_tilemap = tilemap_create(get_tile_info,get_memory_offset,8,8,32,32); | |
| 490 | ||
| 491 | tilemap_set_transparent_pen(bg_tilemap,0); | |
| 492 | ||
| 493 | ||
| 494 | modify_charcode = 0; | |
| 495 | modify_spritecode = 0; | |
| 496 | modify_color = 0; | |
| 497 | modify_ypos = 0; | |
| 498 | ||
| 499 | mooncrst_gfxextend = 0; | |
| 500 | ||
| 501 | draw_bullets = 0; | |
| 502 | ||
| 503 | draw_background = galaxold_draw_background; | |
| 504 | background_enable = 0; | |
| 505 | background_blue = 0; | |
| 506 | background_red = 0; | |
| 507 | background_green = 0; | |
| 508 | ||
| 509 | draw_stars = noop_draw_stars; | |
| 510 | ||
| 511 | flipscreen_x = 0; | |
| 512 | flipscreen_y = 0; | |
| 513 | ||
| 514 | spriteram2_present = 0; | |
| 515 | ||
| 516 | spritevisiblearea = &_spritevisiblearea; | |
| 517 | spritevisibleareaflipx = &_spritevisibleareaflipx; | |
| 518 | ||
| 519 | color_mask = (machine->gfx[0]->color_granularity == 4) ? 7 : 3; | |
| 520 | ||
| 521 | state_save_register(); | |
| 522 | } | |
| 523 | ||
| 524 | VIDEO_START( galaxold_plain ) | |
| 525 | { | |
| 526 | video_start_common(machine,tilemap_scan_rows); | |
| 527 | ||
| 528 | tilemap_set_scroll_cols(bg_tilemap, 32); | |
| 529 | tilemap_set_scroll = tilemap_set_scrolly; | |
| 530 | } | |
| 531 | ||
| 532 | VIDEO_START( galaxold ) | |
| 533 | { | |
| 534 | VIDEO_START_CALL(galaxold_plain); | |
| 535 | ||
| 536 | draw_stars = galaxold_draw_stars; | |
| 537 | ||
| 538 | draw_bullets = galaxold_draw_bullets; | |
| 539 | } | |
| 540 | ||
| 541 | VIDEO_START( scrambold ) | |
| 542 | { | |
| 543 | VIDEO_START_CALL(galaxold_plain); | |
| 544 | ||
| 545 | /* FIXME: This most probably needs to be adjusted | |
| 546 | * again when RAW video params are added to scramble | |
| 547 | */ | |
| 548 | tilemap_set_scrolldx(bg_tilemap, 0, 0); | |
| 549 | ||
| 550 | draw_stars = scramble_draw_stars; | |
| 551 | ||
| 552 | draw_bullets = scramble_draw_bullets; | |
| 553 | ||
| 554 | draw_background = scramble_draw_background; | |
| 555 | } | |
| 556 | ||
| 557 | VIDEO_START( darkplnt ) | |
| 558 | { | |
| 559 | VIDEO_START_CALL(galaxold_plain); | |
| 560 | ||
| 561 | tilemap_set_scrolldx(bg_tilemap, 0, 0); | |
| 562 | draw_bullets = darkplnt_draw_bullets; | |
| 563 | } | |
| 564 | ||
| 565 | VIDEO_START( rescue ) | |
| 566 | { | |
| 567 | VIDEO_START_CALL(scrambold); | |
| 568 | ||
| 569 | draw_stars = rescue_draw_stars; | |
| 570 | ||
| 571 | draw_background = rescue_draw_background; | |
| 572 | } | |
| 573 | ||
| 574 | VIDEO_START( minefld ) | |
| 575 | { | |
| 576 | VIDEO_START_CALL(scrambold); | |
| 577 | ||
| 578 | draw_stars = rescue_draw_stars; | |
| 579 | ||
| 580 | draw_background = minefld_draw_background; | |
| 581 | } | |
| 582 | ||
| 583 | VIDEO_START( stratgyx ) | |
| 584 | { | |
| 585 | VIDEO_START_CALL(galaxold_plain); | |
| 586 | ||
| 587 | draw_background = stratgyx_draw_background; | |
| 588 | } | |
| 589 | ||
| 590 | VIDEO_START( ckongs ) | |
| 591 | { | |
| 592 | VIDEO_START_CALL(scrambold); | |
| 593 | ||
| 594 | modify_spritecode = mshuttle_modify_spritecode; | |
| 595 | } | |
| 596 | ||
| 597 | VIDEO_START( calipso ) | |
| 598 | { | |
| 599 | VIDEO_START_CALL(galaxold_plain); | |
| 600 | ||
| 601 | draw_bullets = scramble_draw_bullets; | |
| 602 | ||
| 603 | draw_background = scramble_draw_background; | |
| 604 | ||
| 605 | modify_spritecode = calipso_modify_spritecode; | |
| 606 | } | |
| 607 | ||
| 608 | VIDEO_START( mariner ) | |
| 609 | { | |
| 610 | VIDEO_START_CALL(galaxold_plain); | |
| 611 | ||
| 612 | draw_stars = mariner_draw_stars; | |
| 613 | ||
| 614 | draw_bullets = scramble_draw_bullets; | |
| 615 | ||
| 616 | draw_background = mariner_draw_background; | |
| 617 | ||
| 618 | modify_charcode = mariner_modify_charcode; | |
| 619 | } | |
| 620 | ||
| 621 | VIDEO_START( mimonkey ) | |
| 622 | { | |
| 623 | VIDEO_START_CALL(scrambold); | |
| 624 | ||
| 625 | modify_charcode = mimonkey_modify_charcode; | |
| 626 | modify_spritecode = mimonkey_modify_spritecode; | |
| 627 | } | |
| 628 | ||
| 629 | VIDEO_START( dkongjrm ) | |
| 630 | { | |
| 631 | VIDEO_START_CALL(galaxold_plain); | |
| 632 | ||
| 633 | modify_charcode = pisces_modify_charcode; | |
| 634 | modify_spritecode = dkongjrm_modify_spritecode; | |
| 635 | ||
| 636 | spriteram2_present= 1; | |
| 637 | } | |
| 638 | ||
| 639 | VIDEO_START( newsin7 ) | |
| 640 | { | |
| 641 | VIDEO_START_CALL(scrambold); | |
| 642 | ||
| 643 | spritevisiblearea = &_spritevisibleareaflipx; | |
| 644 | spritevisibleareaflipx = &_spritevisiblearea; | |
| 645 | } | |
| 646 | ||
| 647 | VIDEO_START( scorpion ) | |
| 648 | { | |
| 649 | VIDEO_START_CALL(scrambold); | |
| 650 | ||
| 651 | modify_spritecode = batman2_modify_spritecode; | |
| 652 | } | |
| 653 | ||
| 654 | static void pisces_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 655 | { | |
| 656 | *code |= (gfxbank[0] << 6); | |
| 657 | } | |
| 658 | ||
| 659 | VIDEO_START( pisces ) | |
| 660 | { | |
| 661 | VIDEO_START_CALL(galaxold); | |
| 662 | ||
| 663 | modify_charcode = pisces_modify_charcode; | |
| 664 | modify_spritecode = pisces_modify_spritecode; | |
| 665 | } | |
| 666 | ||
| 667 | static void theend_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 668 | { | |
| 669 | int i; | |
| 670 | ||
| 671 | ||
| 672 | /* same as Galaxian, but all bullets are yellow */ | |
| 673 | for (i = 0; i < 4; i++) | |
| 674 | { | |
| 675 | x--; | |
| 676 | ||
| 677 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 678 | *BITMAP_ADDR16(bitmap, y, x) = BULLETS_COLOR_BASE; | |
| 679 | } | |
| 680 | } | |
| 681 | ||
| 682 | VIDEO_START( theend ) | |
| 683 | { | |
| 684 | VIDEO_START_CALL(galaxold); | |
| 685 | ||
| 686 | draw_bullets = theend_draw_bullets; | |
| 687 | } | |
| 688 | ||
| 689 | static void mooncrst_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 690 | { | |
| 691 | if (gfxbank[2] && ((*code & 0x30) == 0x20)) | |
| 692 | { | |
| 693 | *code = (*code & 0x0f) | (gfxbank[0] << 4) | (gfxbank[1] << 5) | 0x40; | |
| 694 | } | |
| 695 | } | |
| 696 | ||
| 697 | VIDEO_START( mooncrst ) | |
| 698 | { | |
| 699 | VIDEO_START_CALL(galaxold); | |
| 700 | ||
| 701 | modify_charcode = mooncrst_modify_charcode; | |
| 702 | modify_spritecode = mooncrst_modify_spritecode; | |
| 703 | } | |
| 704 | ||
| 705 | static void batman2_modify_charcode(UINT16 *code,UINT8 x) | |
| 706 | { | |
| 707 | if (*code & 0x80) | |
| 708 | { | |
| 709 | *code |= (gfxbank[0] << 8); | |
| 710 | } | |
| 711 | } | |
| 712 | ||
| 713 | VIDEO_START( batman2 ) | |
| 714 | { | |
| 715 | VIDEO_START_CALL(galaxold); | |
| 716 | ||
| 717 | modify_charcode = batman2_modify_charcode; | |
| 718 | modify_spritecode = batman2_modify_spritecode; | |
| 719 | ||
| 720 | } | |
| 721 | ||
| 722 | ||
| 723 | ||
| 724 | static void rockclim_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 725 | { | |
| 726 | tilemap_draw(bitmap,cliprect,rockclim_tilemap, 0,0); | |
| 727 | } | |
| 728 | ||
| 729 | static void rockclim_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 730 | { | |
| 731 | if (gfxbank[2]) *code|=0x40; | |
| 732 | } | |
| 733 | ||
| 734 | VIDEO_START( rockclim ) | |
| 735 | { | |
| 736 | VIDEO_START_CALL(galaxold); | |
| 737 | rockclim_tilemap = tilemap_create(rockclim_get_tile_info,tilemap_scan_rows,8,8,64,32); | |
| 738 | draw_background = rockclim_draw_background; | |
| 739 | modify_charcode = mooncrst_modify_charcode; | |
| 740 | modify_spritecode = rockclim_modify_spritecode; | |
| 741 | rockclim_v = rockclim_h = 0; | |
| 742 | state_save_register_global(rockclim_v); | |
| 743 | state_save_register_global(rockclim_h); | |
| 744 | } | |
| 745 | ||
| 746 | static TILE_GET_INFO( drivfrcg_get_tile_info ) | |
| 747 | { | |
| 748 | int code = galaxold_videoram[tile_index]; | |
| 749 | UINT8 x = tile_index & 0x1f; | |
| 750 | UINT8 color = galaxold_attributesram[(x << 1) | 1] & 7; | |
| 751 | UINT8 bank = galaxold_attributesram[(x << 1) | 1] & 0x30; | |
| 752 | ||
| 753 | code |= (bank << 4); | |
| 754 | color |= ((galaxold_attributesram[(x << 1) | 1] & 0x40) >> 3); | |
| 755 | ||
| 756 | SET_TILE_INFO(0, code, color, 0); | |
| 757 | } | |
| 758 | ||
| 759 | VIDEO_START( drivfrcg ) | |
| 760 | { | |
| 761 | bg_tilemap = tilemap_create(drivfrcg_get_tile_info,tilemap_scan_rows,8,8,32,32); | |
| 762 | ||
| 763 | tilemap_set_transparent_pen(bg_tilemap,0); | |
| 764 | tilemap_set_scroll_cols(bg_tilemap, 32); | |
| 765 | tilemap_set_scroll = tilemap_set_scrolly; | |
| 766 | ||
| 767 | modify_charcode = 0; | |
| 768 | modify_spritecode = mshuttle_modify_spritecode; | |
| 769 | modify_color = drivfrcg_modify_color; | |
| 770 | modify_ypos = 0; | |
| 771 | ||
| 772 | mooncrst_gfxextend = 0; | |
| 773 | ||
| 774 | draw_bullets = 0; | |
| 775 | ||
| 776 | draw_background = galaxold_draw_background; | |
| 777 | background_enable = 0; | |
| 778 | background_blue = 0; | |
| 779 | background_red = 0; | |
| 780 | background_green = 0; | |
| 781 | ||
| 782 | draw_stars = noop_draw_stars; | |
| 783 | ||
| 784 | flipscreen_x = 0; | |
| 785 | flipscreen_y = 0; | |
| 786 | ||
| 787 | spriteram2_present = 0; | |
| 788 | ||
| 789 | spritevisiblearea = &_spritevisiblearea; | |
| 790 | spritevisibleareaflipx = &_spritevisibleareaflipx; | |
| 791 | ||
| 792 | color_mask = 0xff; | |
| 793 | ||
| 794 | state_save_register(); | |
| 795 | } | |
| 796 | ||
| 797 | VIDEO_START( ad2083 ) | |
| 798 | { | |
| 799 | bg_tilemap = tilemap_create(drivfrcg_get_tile_info,tilemap_scan_rows,8,8,32,32); | |
| 800 | ||
| 801 | tilemap_set_transparent_pen(bg_tilemap,0); | |
| 802 | tilemap_set_scroll_cols(bg_tilemap, 32); | |
| 803 | tilemap_set_scroll = tilemap_set_scrolly; | |
| 804 | ||
| 805 | modify_charcode = 0; | |
| 806 | modify_spritecode = ad2083_modify_spritecode; | |
| 807 | modify_color = 0; | |
| 808 | modify_ypos = 0; | |
| 809 | ||
| 810 | mooncrst_gfxextend = 0; | |
| 811 | ||
| 812 | draw_bullets = scramble_draw_bullets; | |
| 813 | ||
| 814 | draw_background = turtles_draw_background; | |
| 815 | background_enable = 0; | |
| 816 | background_blue = 0; | |
| 817 | background_red = 0; | |
| 818 | background_green = 0; | |
| 819 | ||
| 820 | draw_stars = noop_draw_stars; | |
| 821 | ||
| 822 | flipscreen_x = 0; | |
| 823 | flipscreen_y = 0; | |
| 824 | ||
| 825 | spriteram2_present = 0; | |
| 826 | ||
| 827 | spritevisiblearea = &_spritevisiblearea; | |
| 828 | spritevisibleareaflipx = &_spritevisibleareaflipx; | |
| 829 | ||
| 830 | color_mask = 7; | |
| 831 | ||
| 832 | state_save_register(); | |
| 833 | } | |
| 834 | ||
| 835 | UINT8 *racknrol_tiles_bank; | |
| 836 | ||
| 837 | WRITE8_HANDLER( racknrol_tiles_bank_w ) | |
| 838 | { | |
| 839 | racknrol_tiles_bank[offset] = data; | |
| 840 | tilemap_mark_all_tiles_dirty(bg_tilemap); | |
| 841 | } | |
| 842 | ||
| 843 | static TILE_GET_INFO( racknrol_get_tile_info ) | |
| 844 | { | |
| 845 | int code = galaxold_videoram[tile_index]; | |
| 846 | UINT8 x = tile_index & 0x1f; | |
| 847 | UINT8 color = galaxold_attributesram[(x << 1) | 1] & 7; | |
| 848 | UINT8 bank = racknrol_tiles_bank[x] & 7; | |
| 849 | ||
| 850 | code |= (bank << 8); | |
| 851 | ||
| 852 | SET_TILE_INFO(0, code, color, 0); | |
| 853 | } | |
| 854 | ||
| 855 | VIDEO_START( racknrol ) | |
| 856 | { | |
| 857 | bg_tilemap = tilemap_create(racknrol_get_tile_info,tilemap_scan_rows,8,8,32,32); | |
| 858 | ||
| 859 | tilemap_set_transparent_pen(bg_tilemap,0); | |
| 860 | tilemap_set_scroll_cols(bg_tilemap, 32); | |
| 861 | tilemap_set_scroll = tilemap_set_scrolly; | |
| 862 | ||
| 863 | modify_charcode = 0; | |
| 864 | modify_spritecode = 0; | |
| 865 | modify_color = 0; | |
| 866 | modify_ypos = 0; | |
| 867 | ||
| 868 | mooncrst_gfxextend = 0; | |
| 869 | ||
| 870 | draw_bullets = 0; | |
| 871 | ||
| 872 | draw_background = galaxold_draw_background; | |
| 873 | background_enable = 0; | |
| 874 | background_blue = 0; | |
| 875 | background_red = 0; | |
| 876 | background_green = 0; | |
| 877 | ||
| 878 | draw_stars = noop_draw_stars; | |
| 879 | ||
| 880 | flipscreen_x = 0; | |
| 881 | flipscreen_y = 0; | |
| 882 | ||
| 883 | spriteram2_present = 0; | |
| 884 | ||
| 885 | spritevisiblearea = &_spritevisiblearea; | |
| 886 | spritevisibleareaflipx = &_spritevisibleareaflipx; | |
| 887 | ||
| 888 | color_mask = 0xff; | |
| 889 | ||
| 890 | state_save_register(); | |
| 891 | } | |
| 892 | ||
| 893 | VIDEO_START( bongo ) | |
| 894 | { | |
| 895 | VIDEO_START_CALL(galaxold_plain); | |
| 896 | ||
| 897 | modify_spritecode = batman2_modify_spritecode; | |
| 898 | } | |
| 899 | ||
| 900 | static TILE_GET_INFO( dambustr_get_tile_info2 ) | |
| 901 | { | |
| 902 | UINT8 x = tile_index & 0x1f; | |
| 903 | ||
| 904 | UINT16 code = dambustr_videoram2[tile_index]; | |
| 905 | UINT8 color = galaxold_attributesram[(x << 1) | 1] & color_mask; | |
| 906 | ||
| 907 | if (modify_charcode) | |
| 908 | { | |
| 909 | modify_charcode(&code, x); | |
| 910 | } | |
| 911 | ||
| 912 | if (modify_color) | |
| 913 | { | |
| 914 | modify_color(&color); | |
| 915 | } | |
| 916 | ||
| 917 | SET_TILE_INFO(0, code, color, 0); | |
| 918 | } | |
| 919 | ||
| 920 | VIDEO_START( dambustr ) | |
| 921 | { | |
| 922 | VIDEO_START_CALL(galaxold); | |
| 923 | ||
| 924 | dambustr_bg_split_line = 0; | |
| 925 | dambustr_bg_color_1 = 0; | |
| 926 | dambustr_bg_color_2 = 0; | |
| 927 | dambustr_bg_priority = 0; | |
| 928 | dambustr_char_bank = 0; | |
| 929 | ||
| 930 | draw_background = dambustr_draw_background; | |
| 931 | ||
| 932 | modify_charcode = dambustr_modify_charcode; | |
| 933 | modify_spritecode = dambustr_modify_spritecode; | |
| 934 | ||
| 935 | draw_bullets = dambustr_draw_bullets; | |
| 936 | ||
| 937 | /* allocate the temporary bitmap for the background priority */ | |
| 938 | dambustr_tmpbitmap = video_screen_auto_bitmap_alloc(machine->primary_screen); | |
| 939 | ||
| 940 | /* make a copy of the tilemap to emulate background priority */ | |
| 941 | dambustr_videoram2 = auto_malloc(0x0400); | |
| 942 | dambustr_tilemap2 = tilemap_create(dambustr_get_tile_info2,tilemap_scan_rows,8,8,32,32); | |
| 943 | ||
| 944 | tilemap_set_transparent_pen(dambustr_tilemap2,0); | |
| 945 | } | |
| 946 | ||
| 947 | ||
| 948 | WRITE8_HANDLER( galaxold_videoram_w ) | |
| 949 | { | |
| 950 | galaxold_videoram[offset] = data; | |
| 951 | tilemap_mark_tile_dirty(bg_tilemap, offset); | |
| 952 | } | |
| 953 | ||
| 954 | READ8_HANDLER( galaxold_videoram_r ) | |
| 955 | { | |
| 956 | return galaxold_videoram[offset]; | |
| 957 | } | |
| 958 | ||
| 959 | ||
| 960 | WRITE8_HANDLER( galaxold_attributesram_w ) | |
| 961 | { | |
| 962 | if (galaxold_attributesram[offset] != data) | |
| 963 | { | |
| 964 | if (offset & 0x01) | |
| 965 | { | |
| 966 | /* color change */ | |
| 967 | int i; | |
| 968 | ||
| 969 | for (i = offset >> 1; i < 0x0400; i += 32) | |
| 970 | tilemap_mark_tile_dirty(bg_tilemap, i); | |
| 971 | } | |
| 972 | else | |
| 973 | { | |
| 974 | if (modify_ypos) | |
| 975 | { | |
| 976 | modify_ypos(&data); | |
| 977 | } | |
| 978 | ||
| 979 | tilemap_set_scroll(bg_tilemap, offset >> 1, data); | |
| 980 | } | |
| 981 | ||
| 982 | galaxold_attributesram[offset] = data; | |
| 983 | } | |
| 984 | } | |
| 985 | ||
| 986 | ||
| 987 | WRITE8_HANDLER( galaxold_flip_screen_x_w ) | |
| 988 | { | |
| 989 | if (flipscreen_x != (data & 0x01)) | |
| 990 | { | |
| 991 | flipscreen_x = data & 0x01; | |
| 992 | ||
| 993 | tilemap_set_flip(bg_tilemap, (flipscreen_x ? TILEMAP_FLIPX : 0) | (flipscreen_y ? TILEMAP_FLIPY : 0)); | |
| 994 | } | |
| 995 | } | |
| 996 | ||
| 997 | WRITE8_HANDLER( galaxold_flip_screen_y_w ) | |
| 998 | { | |
| 999 | if (flipscreen_y != (data & 0x01)) | |
| 1000 | { | |
| 1001 | flipscreen_y = data & 0x01; | |
| 1002 | ||
| 1003 | tilemap_set_flip(bg_tilemap, (flipscreen_x ? TILEMAP_FLIPX : 0) | (flipscreen_y ? TILEMAP_FLIPY : 0)); | |
| 1004 | } | |
| 1005 | } | |
| 1006 | ||
| 1007 | ||
| 1008 | WRITE8_HANDLER( gteikob2_flip_screen_x_w ) | |
| 1009 | { | |
| 1010 | galaxold_flip_screen_x_w(machine, offset, ~data); | |
| 1011 | } | |
| 1012 | ||
| 1013 | WRITE8_HANDLER( gteikob2_flip_screen_y_w ) | |
| 1014 | { | |
| 1015 | galaxold_flip_screen_y_w(machine, offset, ~data); | |
| 1016 | } | |
| 1017 | ||
| 1018 | ||
| 1019 | WRITE8_HANDLER( hotshock_flip_screen_w ) | |
| 1020 | { | |
| 1021 | galaxold_flip_screen_x_w(machine, offset, data); | |
| 1022 | galaxold_flip_screen_y_w(machine, offset, data); | |
| 1023 | } | |
| 1024 | ||
| 1025 | ||
| 1026 | WRITE8_HANDLER( scrambold_background_enable_w ) | |
| 1027 | { | |
| 1028 | background_enable = data & 0x01; | |
| 1029 | } | |
| 1030 | ||
| 1031 | WRITE8_HANDLER( scrambold_background_red_w ) | |
| 1032 | { | |
| 1033 | background_red = data & 0x01; | |
| 1034 | } | |
| 1035 | ||
| 1036 | WRITE8_HANDLER( scrambold_background_green_w ) | |
| 1037 | { | |
| 1038 | background_green = data & 0x01; | |
| 1039 | } | |
| 1040 | ||
| 1041 | WRITE8_HANDLER( scrambold_background_blue_w ) | |
| 1042 | { | |
| 1043 | background_blue = data & 0x01; | |
| 1044 | } | |
| 1045 | ||
| 1046 | ||
| 1047 | WRITE8_HANDLER( galaxold_stars_enable_w ) | |
| 1048 | { | |
| 1049 | galaxold_stars_on = data & 0x01; | |
| 1050 | ||
| 1051 | if (!galaxold_stars_on) | |
| 1052 | { | |
| 1053 | stars_scrollpos = 0; | |
| 1054 | } | |
| 1055 | } | |
| 1056 | ||
| 1057 | ||
| 1058 | WRITE8_HANDLER( darkplnt_bullet_color_w ) | |
| 1059 | { | |
| 1060 | darkplnt_bullet_color = data & 0x01; | |
| 1061 | } | |
| 1062 | ||
| 1063 | ||
| 1064 | ||
| 1065 | WRITE8_HANDLER( galaxold_gfxbank_w ) | |
| 1066 | { | |
| 1067 | if (gfxbank[offset] != data) | |
| 1068 | { | |
| 1069 | gfxbank[offset] = data; | |
| 1070 | ||
| 1071 | tilemap_mark_all_tiles_dirty(bg_tilemap); | |
| 1072 | } | |
| 1073 | } | |
| 1074 | ||
| 1075 | WRITE8_HANDLER( rockclim_videoram_w ) | |
| 1076 | { | |
| 1077 | rockclim_videoram[offset] = data; | |
| 1078 | tilemap_mark_tile_dirty(rockclim_tilemap, offset); | |
| 1079 | } | |
| 1080 | ||
| 1081 | WRITE8_HANDLER( rockclim_scroll_w ) | |
| 1082 | { | |
| 1083 | switch(offset&3) | |
| 1084 | { | |
| 1085 | case 0: rockclim_h=(rockclim_h&0xff00)|data;tilemap_set_scrollx(rockclim_tilemap , 0, rockclim_h );break; | |
| 1086 | case 1: rockclim_h=(rockclim_h&0xff)|(data<<8);tilemap_set_scrollx(rockclim_tilemap , 0, rockclim_h );break; | |
| 1087 | case 2: rockclim_v=(rockclim_v&0xff00)|data;tilemap_set_scrolly(rockclim_tilemap , 0, rockclim_v );break; | |
| 1088 | case 3: rockclim_v=(rockclim_v&0xff)|(data<<8);tilemap_set_scrolly(rockclim_tilemap , 0, rockclim_v );break; | |
| 1089 | } | |
| 1090 | ||
| 1091 | } | |
| 1092 | ||
| 1093 | ||
| 1094 | READ8_HANDLER( rockclim_videoram_r ) | |
| 1095 | { | |
| 1096 | return rockclim_videoram[offset]; | |
| 1097 | } | |
| 1098 | ||
| 1099 | ||
| 1100 | WRITE8_HANDLER( dambustr_bg_split_line_w ) | |
| 1101 | { | |
| 1102 | dambustr_bg_split_line = data; | |
| 1103 | } | |
| 1104 | ||
| 1105 | ||
| 1106 | WRITE8_HANDLER( dambustr_bg_color_w ) | |
| 1107 | { | |
| 1108 | dambustr_bg_color_1 = (BIT(data,2)<<2) | (BIT(data,1)<<1) | BIT(data,0); | |
| 1109 | dambustr_bg_color_2 = (BIT(data,6)<<2) | (BIT(data,5)<<1) | BIT(data,4); | |
| 1110 | dambustr_bg_priority = BIT(data,3); | |
| 1111 | dambustr_char_bank = BIT(data,7); | |
| 1112 | tilemap_mark_all_tiles_dirty(bg_tilemap); | |
| 1113 | } | |
| 1114 | ||
| 1115 | ||
| 1116 | ||
| 1117 | /* character banking functions */ | |
| 1118 | ||
| 1119 | static void mooncrst_modify_charcode(UINT16 *code,UINT8 x) | |
| 1120 | { | |
| 1121 | if (gfxbank[2] && ((*code & 0xc0) == 0x80)) | |
| 1122 | { | |
| 1123 | *code = (*code & 0x3f) | (gfxbank[0] << 6) | (gfxbank[1] << 7) | 0x0100; | |
| 1124 | } | |
| 1125 | } | |
| 1126 | ||
| 1127 | static void pisces_modify_charcode(UINT16 *code,UINT8 x) | |
| 1128 | { | |
| 1129 | *code |= (gfxbank[0] << 8); | |
| 1130 | } | |
| 1131 | ||
| 1132 | static void mimonkey_modify_charcode(UINT16 *code,UINT8 x) | |
| 1133 | { | |
| 1134 | *code |= (gfxbank[0] << 8) | (gfxbank[2] << 9); | |
| 1135 | } | |
| 1136 | ||
| 1137 | static void mariner_modify_charcode(UINT16 *code,UINT8 x) | |
| 1138 | { | |
| 1139 | UINT8 *prom; | |
| 1140 | ||
| 1141 | ||
| 1142 | /* bit 0 of the PROM controls character banking */ | |
| 1143 | ||
| 1144 | prom = memory_region(REGION_USER2); | |
| 1145 | ||
| 1146 | *code |= ((prom[x] & 0x01) << 8); | |
| 1147 | } | |
| 1148 | ||
| 1149 | static void dambustr_modify_charcode(UINT16 *code,UINT8 x) | |
| 1150 | { | |
| 1151 | if (dambustr_char_bank == 0) { // text mode | |
| 1152 | *code |= 0x0300; | |
| 1153 | } | |
| 1154 | else { // graphics mode | |
| 1155 | if (x == 28) // only line #28 stays in text mode | |
| 1156 | *code |= 0x0300; | |
| 1157 | else | |
| 1158 | *code &= 0x00ff; | |
| 1159 | }; | |
| 1160 | } | |
| 1161 | ||
| 1162 | ||
| 1163 | ||
| 1164 | /* sprite banking functions */ | |
| 1165 | ||
| 1166 | static void mshuttle_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1167 | { | |
| 1168 | *code |= ((spriteram[offs + 2] & 0x30) << 2); | |
| 1169 | } | |
| 1170 | ||
| 1171 | static void calipso_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1172 | { | |
| 1173 | /* No flips */ | |
| 1174 | *code = spriteram[offs + 1]; | |
| 1175 | *flipx = 0; | |
| 1176 | *flipy = 0; | |
| 1177 | } | |
| 1178 | ||
| 1179 | static void mimonkey_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1180 | { | |
| 1181 | *code |= (gfxbank[0] << 6) | (gfxbank[2] << 7); | |
| 1182 | } | |
| 1183 | ||
| 1184 | static void batman2_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1185 | { | |
| 1186 | /* only the upper 64 sprites are used */ | |
| 1187 | *code |= 0x40; | |
| 1188 | } | |
| 1189 | ||
| 1190 | static void dkongjrm_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1191 | { | |
| 1192 | /* No x flip */ | |
| 1193 | *code = (spriteram[offs + 1] & 0x7f) | 0x80; | |
| 1194 | *flipx = 0; | |
| 1195 | } | |
| 1196 | ||
| 1197 | static void ad2083_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1198 | { | |
| 1199 | /* No x flip */ | |
| 1200 | *code = (spriteram[offs + 1] & 0x7f) | ((spriteram[offs + 2] & 0x30) << 2); | |
| 1201 | *flipx = 0; | |
| 1202 | } | |
| 1203 | ||
| 1204 | static void dambustr_modify_spritecode(UINT8 *spriteram,int *code,int *flipx,int *flipy,int offs) | |
| 1205 | { | |
| 1206 | *code += 0x40; | |
| 1207 | } | |
| 1208 | ||
| 1209 | ||
| 1210 | /* color PROM mapping functions */ | |
| 1211 | ||
| 1212 | static void drivfrcg_modify_color(UINT8 *color) | |
| 1213 | { | |
| 1214 | *color = ((*color & 0x40) >> 3) | (*color & 7); | |
| 1215 | } | |
| 1216 | ||
| 1217 | /* y position mapping functions */ | |
| 1218 | ||
| 1219 | ||
| 1220 | /* bullet drawing functions */ | |
| 1221 | ||
| 1222 | static void galaxold_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 1223 | { | |
| 1224 | int i; | |
| 1225 | ||
| 1226 | ||
| 1227 | for (i = 0; i < 4; i++) | |
| 1228 | { | |
| 1229 | x--; | |
| 1230 | ||
| 1231 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1232 | { | |
| 1233 | int color; | |
| 1234 | ||
| 1235 | ||
| 1236 | /* yellow missile, white shells (this is the terminology on the schematics) */ | |
| 1237 | color = ((offs == 7*4) ? BULLETS_COLOR_BASE : BULLETS_COLOR_BASE + 1); | |
| 1238 | ||
| 1239 | *BITMAP_ADDR16(bitmap, y, x) = color; | |
| 1240 | } | |
| 1241 | } | |
| 1242 | } | |
| 1243 | ||
| 1244 | static void scramble_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 1245 | { | |
| 1246 | if (flipscreen_x) x++; | |
| 1247 | ||
| 1248 | x = x - 6; | |
| 1249 | ||
| 1250 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1251 | /* yellow bullets */ | |
| 1252 | *BITMAP_ADDR16(bitmap, y, x) = BULLETS_COLOR_BASE; | |
| 1253 | } | |
| 1254 | ||
| 1255 | static void darkplnt_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 1256 | { | |
| 1257 | if (flipscreen_x) x++; | |
| 1258 | ||
| 1259 | x = x - 6; | |
| 1260 | ||
| 1261 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1262 | *BITMAP_ADDR16(bitmap, y, x) = 32 + darkplnt_bullet_color; | |
| 1263 | } | |
| 1264 | ||
| 1265 | static void dambustr_draw_bullets(bitmap_t *bitmap, int offs, int x, int y, const rectangle *cliprect) | |
| 1266 | { | |
| 1267 | int i, color; | |
| 1268 | ||
| 1269 | if (flip_screen_x_get()) x++; | |
| 1270 | ||
| 1271 | x = x - 6; | |
| 1272 | ||
| 1273 | /* bullets are 2 pixels wide */ | |
| 1274 | for (i = 0; i < 2; i++) | |
| 1275 | { | |
| 1276 | if (offs < 4*4) | |
| 1277 | { | |
| 1278 | color = BULLETS_COLOR_BASE; | |
| 1279 | y--; | |
| 1280 | } | |
| 1281 | else { | |
| 1282 | color = BULLETS_COLOR_BASE + 1; | |
| 1283 | x--; | |
| 1284 | } | |
| 1285 | ||
| 1286 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1287 | *BITMAP_ADDR16(bitmap, y, x) = color; | |
| 1288 | } | |
| 1289 | } | |
| 1290 | ||
| 1291 | ||
| 1292 | ||
| 1293 | /* background drawing functions */ | |
| 1294 | ||
| 1295 | static void galaxold_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1296 | { | |
| 1297 | /* plain black background */ | |
| 1298 | fillbitmap(bitmap,0,cliprect); | |
| 1299 | } | |
| 1300 | ||
| 1301 | static void scramble_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1302 | { | |
| 1303 | if (background_enable) | |
| 1304 | fillbitmap(bitmap,BACKGROUND_COLOR_BASE,cliprect); | |
| 1305 | else | |
| 1306 | fillbitmap(bitmap,0,cliprect); | |
| 1307 | } | |
| 1308 | ||
| 1309 | static void turtles_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1310 | { | |
| 1311 | int color = (background_blue << 2) | (background_green << 1) | background_red; | |
| 1312 | ||
| 1313 | fillbitmap(bitmap,BACKGROUND_COLOR_BASE + color,cliprect); | |
| 1314 | } | |
| 1315 | ||
| 1316 | static void stratgyx_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1317 | { | |
| 1318 | UINT8 x; | |
| 1319 | UINT8 *prom; | |
| 1320 | ||
| 1321 | ||
| 1322 | /* the background PROM is connected the following way: | |
| 1323 | ||
| 1324 | bit 0 = 0 enables the blue gun if BCB is asserted | |
| 1325 | bit 1 = 0 enables the red gun if BCR is asserted and | |
| 1326 | the green gun if BCG is asserted | |
| 1327 | bits 2-7 are unconnected */ | |
| 1328 | ||
| 1329 | prom = memory_region(REGION_USER1); | |
| 1330 | ||
| 1331 | for (x = 0; x < 32; x++) | |
| 1332 | { | |
| 1333 | int sx,color; | |
| 1334 | ||
| 1335 | ||
| 1336 | color = 0; | |
| 1337 | ||
| 1338 | if ((~prom[x] & 0x02) && background_red) color |= 0x01; | |
| 1339 | if ((~prom[x] & 0x02) && background_green) color |= 0x02; | |
| 1340 | if ((~prom[x] & 0x01) && background_blue) color |= 0x04; | |
| 1341 | ||
| 1342 | if (flipscreen_x) | |
| 1343 | sx = 8 * (31 - x); | |
| 1344 | else | |
| 1345 | sx = 8 * x; | |
| 1346 | ||
| 1347 | plot_box(bitmap, sx, 0, 8, 256, BACKGROUND_COLOR_BASE + color); | |
| 1348 | } | |
| 1349 | } | |
| 1350 | ||
| 1351 | static void minefld_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1352 | { | |
| 1353 | if (background_enable) | |
| 1354 | { | |
| 1355 | int x; | |
| 1356 | ||
| 1357 | ||
| 1358 | for (x = 0; x < 128; x++) | |
| 1359 | plot_box(bitmap, x, 0, 1, 256, BACKGROUND_COLOR_BASE + x); | |
| 1360 | ||
| 1361 | for (x = 0; x < 120; x++) | |
| 1362 | plot_box(bitmap, x + 128, 0, 1, 256, BACKGROUND_COLOR_BASE + x + 128); | |
| 1363 | ||
| 1364 | plot_box(bitmap, 248, 0, 16, 256, BACKGROUND_COLOR_BASE); | |
| 1365 | } | |
| 1366 | else | |
| 1367 | fillbitmap(bitmap,0,cliprect); | |
| 1368 | } | |
| 1369 | ||
| 1370 | static void rescue_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1371 | { | |
| 1372 | if (background_enable) | |
| 1373 | { | |
| 1374 | int x; | |
| 1375 | ||
| 1376 | for (x = 0; x < 128; x++) | |
| 1377 | plot_box(bitmap, x, 0, 1, 256, BACKGROUND_COLOR_BASE + x); | |
| 1378 | ||
| 1379 | for (x = 0; x < 120; x++) | |
| 1380 | plot_box(bitmap, x + 128, 0, 1, 256, BACKGROUND_COLOR_BASE + x + 8); | |
| 1381 | ||
| 1382 | plot_box(bitmap, 248, 0, 16, 256, BACKGROUND_COLOR_BASE); | |
| 1383 | } | |
| 1384 | else | |
| 1385 | fillbitmap(bitmap,0,cliprect); | |
| 1386 | } | |
| 1387 | ||
| 1388 | static void mariner_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1389 | { | |
| 1390 | UINT8 x; | |
| 1391 | UINT8 *prom; | |
| 1392 | ||
| 1393 | ||
| 1394 | /* the background PROM contains the color codes for each 8 pixel | |
| 1395 | line (column) of the screen. The first 0x20 bytes for unflipped, | |
| 1396 | and the 2nd 0x20 bytes for flipped screen. */ | |
| 1397 | ||
| 1398 | prom = memory_region(REGION_USER1); | |
| 1399 | ||
| 1400 | if (flipscreen_x) | |
| 1401 | { | |
| 1402 | for (x = 0; x < 32; x++) | |
| 1403 | { | |
| 1404 | int color; | |
| 1405 | ||
| 1406 | if (x == 0) | |
| 1407 | color = 0; | |
| 1408 | else | |
| 1409 | color = prom[0x20 + x - 1]; | |
| 1410 | ||
| 1411 | plot_box(bitmap, 8 * (31 - x), 0, 8, 256, BACKGROUND_COLOR_BASE + color); | |
| 1412 | } | |
| 1413 | } | |
| 1414 | else | |
| 1415 | { | |
| 1416 | for (x = 0; x < 32; x++) | |
| 1417 | { | |
| 1418 | int color; | |
| 1419 | ||
| 1420 | if (x == 31) | |
| 1421 | color = 0; | |
| 1422 | else | |
| 1423 | color = prom[x + 1]; | |
| 1424 | ||
| 1425 | plot_box(bitmap, 8 * x, 0, 8, 256, BACKGROUND_COLOR_BASE + color); | |
| 1426 | } | |
| 1427 | } | |
| 1428 | } | |
| 1429 | ||
| 1430 | static void dambustr_draw_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1431 | { | |
| 1432 | int col1 = BACKGROUND_COLOR_BASE + dambustr_bg_color_1; | |
| 1433 | int col2 = BACKGROUND_COLOR_BASE + dambustr_bg_color_2; | |
| 1434 | ||
| 1435 | if (flip_screen_x_get()) | |
| 1436 | { | |
| 1437 | plot_box(bitmap, 0, 0, 256-dambustr_bg_split_line, 256, col2); | |
| 1438 | plot_box(bitmap, 256-dambustr_bg_split_line, 0, dambustr_bg_split_line, 256, col1); | |
| 1439 | } | |
| 1440 | else | |
| 1441 | { | |
| 1442 | plot_box(bitmap, 0, 0, 256-dambustr_bg_split_line, 256, col1); | |
| 1443 | plot_box(bitmap, 256-dambustr_bg_split_line, 0, dambustr_bg_split_line, 256, col2); | |
| 1444 | } | |
| 1445 | ||
| 1446 | } | |
| 1447 | ||
| 1448 | static void dambustr_draw_upper_background(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1449 | { | |
| 1450 | static rectangle clip = { 0, 0, 0, 0 }; | |
| 1451 | ||
| 1452 | if (flip_screen_x_get()) | |
| 1453 | { | |
| 1454 | clip.min_x = 254 - dambustr_bg_split_line; | |
| 1455 | clip.max_x = dambustr_bg_split_line; | |
| 1456 | clip.min_y = 0; | |
| 1457 | clip.max_y = 255; | |
| 1458 | copybitmap(bitmap, dambustr_tmpbitmap, 0, 0, 0, 0, &clip); | |
| 1459 | } | |
| 1460 | else | |
| 1461 | { | |
| 1462 | clip.min_x = 0; | |
| 1463 | clip.max_x = 254 - dambustr_bg_split_line; | |
| 1464 | clip.min_y = 0; | |
| 1465 | clip.max_y = 255; | |
| 1466 | copybitmap(bitmap, dambustr_tmpbitmap, 0, 0, 0, 0, &clip); | |
| 1467 | } | |
| 1468 | } | |
| 1469 | ||
| 1470 | ||
| 1471 | ||
| 1472 | /* star drawing functions */ | |
| 1473 | ||
| 1474 | void galaxold_init_stars(running_machine *machine, int colors_offset) | |
| 1475 | { | |
| 1476 | int i; | |
| 1477 | int total_stars; | |
| 1478 | UINT32 generator; | |
| 1479 | int x,y; | |
| 1480 | ||
| 1481 | ||
| 1482 | galaxold_stars_on = 0; | |
| 1483 | stars_blink_state = 0; | |
| 1484 | stars_blink_timer = timer_alloc(stars_blink_callback, NULL); | |
| 1485 | stars_scroll_timer = timer_alloc(stars_scroll_callback, NULL); | |
| 1486 | timer_adjusted = 0; | |
| 1487 | stars_colors_start = colors_offset; | |
| 1488 | ||
| 1489 | for (i = 0;i < 64;i++) | |
| 1490 | { | |
| 1491 | int bits,r,g,b; | |
| 1492 | static const int map[4] = { 0x00, 0x88, 0xcc, 0xff }; | |
| 1493 | ||
| 1494 | ||
| 1495 | bits = (i >> 0) & 0x03; | |
| 1496 | r = map[bits]; | |
| 1497 | bits = (i >> 2) & 0x03; | |
| 1498 | g = map[bits]; | |
| 1499 | bits = (i >> 4) & 0x03; | |
| 1500 | b = map[bits]; | |
| 1501 | palette_set_color_rgb(machine,colors_offset+i,r,g,b); | |
| 1502 | } | |
| 1503 | ||
| 1504 | ||
| 1505 | /* precalculate the star background */ | |
| 1506 | ||
| 1507 | total_stars = 0; | |
| 1508 | generator = 0; | |
| 1509 | ||
| 1510 | for (y = 0;y < 256;y++) | |
| 1511 | { | |
| 1512 | for (x = 0;x < 512;x++) | |
| 1513 | { | |
| 1514 | UINT32 bit0; | |
| 1515 | ||
| 1516 | ||
| 1517 | bit0 = ((~generator >> 16) & 0x01) ^ ((generator >> 4) & 0x01); | |
| 1518 | ||
| 1519 | generator = (generator << 1) | bit0; | |
| 1520 | ||
| 1521 | if (((~generator >> 16) & 0x01) && (generator & 0xff) == 0xff) | |
| 1522 | { | |
| 1523 | int color; | |
| 1524 | ||
| 1525 | ||
| 1526 | color = (~(generator >> 8)) & 0x3f; | |
| 1527 | if (color) | |
| 1528 | { | |
| 1529 | stars[total_stars].x = x; | |
| 1530 | stars[total_stars].y = y; | |
| 1531 | stars[total_stars].color = color; | |
| 1532 | ||
| 1533 | total_stars++; | |
| 1534 | } | |
| 1535 | } | |
| 1536 | } | |
| 1537 | } | |
| 1538 | ||
| 1539 | if (total_stars != STAR_COUNT) | |
| 1540 | { | |
| 1541 | fatalerror("total_stars = %d, STAR_COUNT = %d",total_stars,STAR_COUNT); | |
| 1542 | } | |
| 1543 | } | |
| 1544 | ||
| 1545 | static void plot_star(bitmap_t *bitmap, int x, int y, int color, const rectangle *cliprect) | |
| 1546 | { | |
| 1547 | if (flipscreen_x) | |
| 1548 | x = 255 - x; | |
| 1549 | ||
| 1550 | if (flipscreen_y) | |
| 1551 | y = 255 - y; | |
| 1552 | ||
| 1553 | if ((x >= cliprect->min_x) && (x <= cliprect->max_x) && (y >= cliprect->min_y) && (y <= cliprect->max_y)) | |
| 1554 | *BITMAP_ADDR16(bitmap, y, x) = stars_colors_start + color; | |
| 1555 | } | |
| 1556 | ||
| 1557 | static void noop_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1558 | { | |
| 1559 | } | |
| 1560 | ||
| 1561 | void galaxold_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1562 | { | |
| 1563 | int offs; | |
| 1564 | ||
| 1565 | ||
| 1566 | if (!timer_adjusted) | |
| 1567 | { | |
| 1568 | start_stars_scroll_timer(machine); | |
| 1569 | timer_adjusted = 1; | |
| 1570 | } | |
| 1571 | ||
| 1572 | ||
| 1573 | for (offs = 0;offs < STAR_COUNT;offs++) | |
| 1574 | { | |
| 1575 | int x,y; | |
| 1576 | ||
| 1577 | ||
| 1578 | x = ((stars[offs].x + stars_scrollpos) & 0x01ff) >> 1; | |
| 1579 | y = ( stars[offs].y + ((stars_scrollpos + stars[offs].x) >> 9)) & 0xff; | |
| 1580 | ||
| 1581 | if ((y & 0x01) ^ ((x >> 3) & 0x01)) | |
| 1582 | { | |
| 1583 | plot_star(bitmap, x, y, stars[offs].color, cliprect); | |
| 1584 | } | |
| 1585 | } | |
| 1586 | } | |
| 1587 | ||
| 1588 | static void scramble_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1589 | { | |
| 1590 | int offs; | |
| 1591 | ||
| 1592 | ||
| 1593 | if (!timer_adjusted) | |
| 1594 | { | |
| 1595 | start_stars_blink_timer(100000, 10000, 0.00001); | |
| 1596 | timer_adjusted = 1; | |
| 1597 | } | |
| 1598 | ||
| 1599 | ||
| 1600 | for (offs = 0;offs < STAR_COUNT;offs++) | |
| 1601 | { | |
| 1602 | int x,y; | |
| 1603 | ||
| 1604 | ||
| 1605 | x = stars[offs].x >> 1; | |
| 1606 | y = stars[offs].y; | |
| 1607 | ||
| 1608 | if ((y & 0x01) ^ ((x >> 3) & 0x01)) | |
| 1609 | { | |
| 1610 | /* determine when to skip plotting */ | |
| 1611 | switch (stars_blink_state & 0x03) | |
| 1612 | { | |
| 1613 | case 0: | |
| 1614 | if (!(stars[offs].color & 0x01)) continue; | |
| 1615 | break; | |
| 1616 | case 1: | |
| 1617 | if (!(stars[offs].color & 0x04)) continue; | |
| 1618 | break; | |
| 1619 | case 2: | |
| 1620 | if (!(stars[offs].y & 0x02)) continue; | |
| 1621 | break; | |
| 1622 | case 3: | |
| 1623 | /* always plot */ | |
| 1624 | break; | |
| 1625 | } | |
| 1626 | ||
| 1627 | plot_star(bitmap, x, y, stars[offs].color, cliprect); | |
| 1628 | } | |
| 1629 | } | |
| 1630 | } | |
| 1631 | ||
| 1632 | static void rescue_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1633 | { | |
| 1634 | int offs; | |
| 1635 | ||
| 1636 | ||
| 1637 | /* same as Scramble, but only top (left) half of screen */ | |
| 1638 | ||
| 1639 | if (!timer_adjusted) | |
| 1640 | { | |
| 1641 | start_stars_blink_timer(100000, 10000, 0.00001); | |
| 1642 | timer_adjusted = 1; | |
| 1643 | } | |
| 1644 | ||
| 1645 | ||
| 1646 | for (offs = 0;offs < STAR_COUNT;offs++) | |
| 1647 | { | |
| 1648 | int x,y; | |
| 1649 | ||
| 1650 | ||
| 1651 | x = stars[offs].x >> 1; | |
| 1652 | y = stars[offs].y; | |
| 1653 | ||
| 1654 | if ((x < 128) && ((y & 0x01) ^ ((x >> 3) & 0x01))) | |
| 1655 | { | |
| 1656 | /* determine when to skip plotting */ | |
| 1657 | switch (stars_blink_state & 0x03) | |
| 1658 | { | |
| 1659 | case 0: | |
| 1660 | if (!(stars[offs].color & 0x01)) continue; | |
| 1661 | break; | |
| 1662 | case 1: | |
| 1663 | if (!(stars[offs].color & 0x04)) continue; | |
| 1664 | break; | |
| 1665 | case 2: | |
| 1666 | if (!(stars[offs].y & 0x02)) continue; | |
| 1667 | break; | |
| 1668 | case 3: | |
| 1669 | /* always plot */ | |
| 1670 | break; | |
| 1671 | } | |
| 1672 | ||
| 1673 | plot_star(bitmap, x, y, stars[offs].color, cliprect); | |
| 1674 | } | |
| 1675 | } | |
| 1676 | } | |
| 1677 | ||
| 1678 | static void mariner_draw_stars(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect) | |
| 1679 | { | |
| 1680 | int offs; | |
| 1681 | UINT8 *prom; | |
| 1682 | ||
| 1683 | ||
| 1684 | if (!timer_adjusted) | |
| 1685 | { | |
| 1686 | start_stars_scroll_timer(machine); | |
| 1687 | timer_adjusted = 1; | |
| 1688 | } | |
| 1689 | ||
| 1690 | ||
| 1691 | /* bit 2 of the PROM controls star visibility */ | |
| 1692 | ||
| 1693 | prom = memory_region(REGION_USER2); | |
| 1694 | ||
| 1695 | for (offs = 0;offs < STAR_COUNT;offs++) | |
| 1696 | { | |
| 1697 | int x,y; | |
| 1698 | ||
| 1699 | ||
| 1700 | x = ((stars[offs].x + -stars_scrollpos) & 0x01ff) >> 1; | |
| 1701 | y = ( stars[offs].y + ((-stars_scrollpos + stars[offs].x) >> 9)) & 0xff; | |
| 1702 | ||
| 1703 | if ((y & 0x01) ^ ((x >> 3) & 0x01)) | |
| 1704 | { | |
| 1705 | if (prom[(x/8 + 1) & 0x1f] & 0x04) | |
| 1706 | { | |
| 1707 | plot_star(bitmap, x, y, stars[offs].color, cliprect); | |
| 1708 | } | |
| 1709 | } | |
| 1710 | } | |
| 1711 | } | |
| 1712 | ||
| 1713 | static TIMER_CALLBACK( stars_blink_callback ) | |
| 1714 | { | |
| 1715 | stars_blink_state++; | |
| 1716 | } | |
| 1717 | ||
| 1718 | static void start_stars_blink_timer(double ra, double rb, double c) | |
| 1719 | { | |
| 1720 | /* calculate the period using the formula given in the 555 datasheet */ | |
| 1721 | ||
| 1722 | int period_in_ms = 693 * (ra + 2.0 * rb) * c; | |
| 1723 | ||
| 1724 | timer_adjust_periodic(stars_blink_timer, ATTOTIME_IN_MSEC(period_in_ms), 0, ATTOTIME_IN_MSEC(period_in_ms)); | |
| 1725 | } | |
| 1726 | ||
| 1727 | ||
| 1728 | static TIMER_CALLBACK( stars_scroll_callback ) | |
| 1729 | { | |
| 1730 | if (galaxold_stars_on) | |
| 1731 | { | |
| 1732 | stars_scrollpos++; | |
| 1733 | } | |
| 1734 | } | |
| 1735 | ||
| 1736 | static void start_stars_scroll_timer(running_machine *machine) | |
| 1737 | { | |
| 1738 | timer_adjust_periodic(stars_scroll_timer, video_screen_get_frame_period(machine->primary_screen), 0, video_screen_get_frame_period(machine->primary_screen)); | |
| 1739 | } | |
| 1740 | ||
| 1741 | ||
| 1742 | ||
| 1743 | static TILE_GET_INFO( get_tile_info ) | |
| 1744 | { | |
| 1745 | UINT8 x = tile_index & 0x1f; | |
| 1746 | ||
| 1747 | UINT16 code = galaxold_videoram[tile_index]; | |
| 1748 | UINT8 color = galaxold_attributesram[(x << 1) | 1] & color_mask; | |
| 1749 | ||
| 1750 | if (modify_charcode) | |
| 1751 | { | |
| 1752 | modify_charcode(&code, x); | |
| 1753 | } | |
| 1754 | ||
| 1755 | if (modify_color) | |
| 1756 | { | |
| 1757 | modify_color(&color); | |
| 1758 | } | |
| 1759 | ||
| 1760 | SET_TILE_INFO(0, code, color, 0); | |
| 1761 | } | |
| 1762 | ||
| 1763 | static TILE_GET_INFO( rockclim_get_tile_info ) | |
| 1764 | { | |
| 1765 | UINT16 code = rockclim_videoram[tile_index]; | |
| 1766 | SET_TILE_INFO(2, code, 0, 0); | |
| 1767 | } | |
| 1768 | ||
| 1769 | static void draw_bullets_common(bitmap_t *bitmap, const rectangle *cliprect) | |
| 1770 | { | |
| 1771 | int offs; | |
| 1772 | ||
| 1773 | ||
| 1774 | for (offs = 0;offs < galaxold_bulletsram_size;offs += 4) | |
| 1775 | { | |
| 1776 | UINT8 sx,sy; | |
| 1777 | ||
| 1778 | sy = 255 - galaxold_bulletsram[offs + 1]; | |
| 1779 | sx = 255 - galaxold_bulletsram[offs + 3]; | |
| 1780 | ||
| 1781 | if (flipscreen_y) sy = 255 - sy; | |
| 1782 | ||
| 1783 | draw_bullets(bitmap, offs, sx, sy, cliprect); | |
| 1784 | } | |
| 1785 | } | |
| 1786 | ||
| 1787 | ||
| 1788 | static void draw_sprites(running_machine *machine, bitmap_t *bitmap, UINT8 *spriteram, size_t spriteram_size) | |
| 1789 | { | |
| 1790 | int offs; | |
| 1791 | ||
| 1792 | ||
| 1793 | for (offs = spriteram_size - 4;offs >= 0;offs -= 4) | |
| 1794 | { | |
| 1795 | UINT8 sx,sy,color; | |
| 1796 | int flipx,flipy,code; | |
| 1797 | ||
| 1798 | ||
| 1799 | sx = spriteram[offs + 3] + 1; /* the existence of +1 is supported by a LOT of games */ | |
| 1800 | sy = spriteram[offs]; /* Anteater, Mariner, for example */ | |
| 1801 | flipx = spriteram[offs + 1] & 0x40; | |
| 1802 | flipy = spriteram[offs + 1] & 0x80; | |
| 1803 | code = spriteram[offs + 1] & 0x3f; | |
| 1804 | color = spriteram[offs + 2] & color_mask; | |
| 1805 | ||
| 1806 | if (modify_spritecode) | |
| 1807 | { | |
| 1808 | modify_spritecode(spriteram, &code, &flipx, &flipy, offs); | |
| 1809 | } | |
| 1810 | ||
| 1811 | if (modify_color) | |
| 1812 | { | |
| 1813 | modify_color(&color); | |
| 1814 | } | |
| 1815 | ||
| 1816 | if (modify_ypos) | |
| 1817 | { | |
| 1818 | modify_ypos(&sy); | |
| 1819 | } | |
| 1820 | ||
| 1821 | if (flipscreen_x) | |
| 1822 | { | |
| 1823 | sx = 240 - sx; | |
| 1824 | flipx = !flipx; | |
| 1825 | } | |
| 1826 | ||
| 1827 | if (flipscreen_y) | |
| 1828 | { | |
| 1829 | flipy = !flipy; | |
| 1830 | } | |
| 1831 | else | |
| 1832 | { | |
| 1833 | sy = 240 - sy; | |
| 1834 | } | |
| 1835 | ||
| 1836 | ||
| 1837 | /* In at least Amidar Turtles, sprites #0, #1 and #2 need to be moved */ | |
| 1838 | /* down (left) one pixel to be positioned correctly. */ | |
| 1839 | /* Note that the adjustment must be done AFTER handling flipscreen, thus */ | |
| 1840 | /* proving that this is a hardware related "feature" */ | |
| 1841 | ||
| 1842 | if (offs < 3*4) sy++; | |
| 1843 | ||
| 1844 | ||
| 1845 | drawgfx(bitmap,machine->gfx[1], | |
| 1846 | code,color, | |
| 1847 | flipx,flipy, | |
| 1848 | sx,sy, | |
| 1849 | flipscreen_x ? spritevisibleareaflipx : spritevisiblearea,TRANSPARENCY_PEN,0); | |
| 1850 | } | |
| 1851 | } | |
| 1852 | ||
| 1853 | ||
| 1854 | VIDEO_UPDATE( galaxold ) | |
| 1855 | { | |
| 1856 | draw_background(bitmap, cliprect); | |
| 1857 | ||
| 1858 | ||
| 1859 | if (galaxold_stars_on) | |
| 1860 | { | |
| 1861 | draw_stars(screen->machine, bitmap, cliprect); | |
| 1862 | } | |
| 1863 | ||
| 1864 | ||
| 1865 | tilemap_draw(bitmap, 0, bg_tilemap, 0, 0); | |
| 1866 | ||
| 1867 | ||
| 1868 | if (draw_bullets) | |
| 1869 | { | |
| 1870 | draw_bullets_common(bitmap, cliprect); | |
| 1871 | } | |
| 1872 | ||
| 1873 | ||
| 1874 | draw_sprites(screen->machine, bitmap, galaxold_spriteram, galaxold_spriteram_size); | |
| 1875 | ||
| 1876 | if (spriteram2_present) | |
| 1877 | { | |
| 1878 | draw_sprites(screen->machine, bitmap, galaxold_spriteram2, galaxold_spriteram2_size); | |
| 1879 | } | |
| 1880 | return 0; | |
| 1881 | } | |
| 1882 | ||
| 1883 | ||
| 1884 | VIDEO_UPDATE( dambustr ) | |
| 1885 | { | |
| 1886 | int i, j; | |
| 1887 | UINT8 color; | |
| 1888 | ||
| 1889 | draw_background(bitmap, cliprect); | |
| 1890 | ||
| 1891 | if (galaxold_stars_on) | |
| 1892 | { | |
| 1893 | draw_stars(screen->machine, bitmap, cliprect); | |
| 1894 | } | |
| 1895 | ||
| 1896 | /* save the background for drawing it again later, if background has priority over characters */ | |
| 1897 | copybitmap(dambustr_tmpbitmap, bitmap, 0, 0, 0, 0, NULL); | |
| 1898 | ||
| 1899 | tilemap_draw(bitmap, 0, bg_tilemap, 0, 0); | |
| 1900 | ||
| 1901 | if (draw_bullets) | |
| 1902 | { | |
| 1903 | draw_bullets_common(bitmap, cliprect); | |
| 1904 | } | |
| 1905 | ||
| 1906 | draw_sprites(screen->machine, bitmap, galaxold_spriteram, galaxold_spriteram_size); | |
| 1907 | ||
| 1908 | if (dambustr_bg_priority) | |
| 1909 | { | |
| 1910 | /* draw the upper part of the background, as it has priority */ | |
| 1911 | dambustr_draw_upper_background(bitmap, cliprect); | |
| 1912 | ||
| 1913 | /* only rows with color code > 3 are stronger than the background */ | |
| 1914 | memset(dambustr_videoram2, 0x20, 0x0400); | |
| 1915 | for (i=0; i<32; i++) { | |
| 1916 | color = galaxold_attributesram[(i << 1) | 1] & color_mask; | |
| 1917 | if (color > 3) { | |
| 1918 | for (j=0; j<32; j++) | |
| 1919 | dambustr_videoram2[32*j+i] = galaxold_videoram[32*j+i]; | |
| 1920 | }; | |
| 1921 | }; | |
| 1922 | tilemap_mark_all_tiles_dirty(dambustr_tilemap2); | |
| 1923 | tilemap_draw(bitmap, 0, dambustr_tilemap2, 0, 0); | |
| 1924 | }; | |
| 1925 | ||
| 1926 | return 0; | |
| 1927 | } | |
| 1928 |
| r2241 | r2242 | |
|---|---|---|
| 167 | 167 | |
| 168 | 168 | WRITE16_HANDLER( welltris_palette_bank_w ) |
| 169 | 169 | { |
| 170 | if (ACCESSING_ | |
| 170 | if (ACCESSING_ | |
| 171 | 171 | { |
| 172 | 172 | if (charpalettebank != (data & 0x03)) |
| 173 | 173 | { |
| r2241 | r2242 | |
| 184 | 184 | |
| 185 | 185 | WRITE16_HANDLER( welltris_gfxbank_w ) |
| 186 | 186 | { |
| 187 | if (ACCESSING_ | |
| 187 | if (ACCESSING_ | |
| 188 | 188 | { |
| 189 | 189 | setbank(char_tilemap, 0, (data & 0xf0) >> 4); |
| 190 | 190 | setbank(char_tilemap, 1, data & 0x0f); |
| r2241 | r2242 | |
|---|---|---|
| 64 | 64 | |
| 65 | 65 | WRITE16_HANDLER( suna16_flipscreen_w ) |
| 66 | 66 | { |
| 67 | if (ACCESSING_ | |
| 67 | if (ACCESSING_ | |
| 68 | 68 | { |
| 69 | 69 | flip_screen_set( data & 1 ); |
| 70 | 70 | color_bank = ( data & 4 ) >> 2; |
| r2241 | r2242 | |
| 74 | 74 | |
| 75 | 75 | WRITE16_HANDLER( bestbest_flipscreen_w ) |
| 76 | 76 | { |
| 77 | if (ACCESSING_ | |
| 77 | if (ACCESSING_ | |
| 78 | 78 | { |
| 79 | 79 | flip_screen_set( data & 0x10 ); |
| 80 | 80 | // color_bank = ( data & 0x07 ); |
| r2241 | r2242 | |
|---|---|---|
| 277 | 277 | ---- ---- ---- -2-- Coin #0 Lock Out |
| 278 | 278 | ---- ---- ---- --1- Coin #1 Counter |
| 279 | 279 | ---- ---- ---- ---0 Coin #0 Counter */ |
| 280 | if (ACCESSING_ | |
| 280 | if (ACCESSING_ | |
| 281 | 281 | { |
| 282 | 282 | seta_coin_lockout_w (data & 0x0f); |
| 283 | 283 | if (sndti_exists(SOUND_X1_010, 0)) |
| r2241 | r2242 | |
| 288 | 288 | break; |
| 289 | 289 | |
| 290 | 290 | case 2/2: |
| 291 | if (ACCESSING_ | |
| 291 | if (ACCESSING_ | |
| 292 | 292 | { |
| 293 | 293 | int new_bank; |
| 294 | 294 | |
| r2241 | r2242 | |
| 419 | 419 | |
| 420 | 420 | WRITE16_HANDLER( twineagl_tilebank_w ) |
| 421 | 421 | { |
| 422 | if (ACCESSING_ | |
| 422 | if (ACCESSING_ | |
| 423 | 423 | { |
| 424 | 424 | data &= 0xff; |
| 425 | 425 | if (twineagl_tilebank[offset] != data) |
| r2241 | r2242 | |
|---|---|---|
| 81 | 81 | |
| 82 | 82 | WRITE16_HANDLER( nemesis_gfx_flipx_w ) |
| 83 | 83 | { |
| 84 | if (ACCESSING_ | |
| 84 | if (ACCESSING_ | |
| 85 | 85 | { |
| 86 | 86 | flipscreen = data & 0x01; |
| 87 | 87 | if (flipscreen) |
| r2241 | r2242 | |
| 100 | 100 | |
| 101 | 101 | WRITE16_HANDLER( nemesis_gfx_flipy_w ) |
| 102 | 102 | { |
| 103 | if (ACCESSING_ | |
| 103 | if (ACCESSING_ | |
| 104 | 104 | { |
| 105 | 105 | if (data & 0x01) |
| 106 | 106 | tilemap_flip |= TILEMAP_FLIPY; |
| r2241 | r2242 | |
|---|---|---|
| 21 | 21 | { |
| 22 | 22 | COMBINE_DATA(&fg_bank); |
| 23 | 23 | |
| 24 | if(ACCESSING_ | |
| 24 | if(ACCESSING_ | |
| 25 | 25 | { |
| 26 | 26 | tilemap_mark_all_tiles_dirty(foreground_layer); |
| 27 | 27 | } |
| r2241 | r2242 | |
|---|---|---|
| 94 | 94 | /* All other bits unknown - could be playfield enables */ |
| 95 | 95 | |
| 96 | 96 | /* Flipscreen */ |
| 97 | if (offset==3 && ACCESSING_ | |
| 97 | if (offset==3 && ACCESSING_ | |
| 98 | 98 | flipscreen=data&0x2; |
| 99 | 99 | tilemap_set_flip(ALL_TILEMAPS,flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0); |
| 100 | 100 | } |
| r2241 | r2242 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | WRITE16_HANDLER( realbrk_flipscreen_w ) |
| 34 | 34 | { |
| 35 | if (ACCESSING_ | |
| 35 | if (ACCESSING_ | |
| 36 | 36 | { |
| 37 | 37 | coin_counter_w(0, data & 0x0001); |
| 38 | 38 | coin_counter_w(1, data & 0x0004); |
| r2241 | r2242 | |
| 40 | 40 | flip_screen_set( data & 0x0080); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | if (ACCESSING_ | |
| 43 | if (ACCESSING_ | |
| 44 | 44 | { |
| 45 | 45 | disable_video = data & 0x8000; |
| 46 | 46 | } |
| r2241 | r2242 | |
|---|---|---|
| 406 | 406 | m62_background_hscroll = 0; |
| 407 | 407 | m62_background_vscroll = 0; |
| 408 | 408 | |
| 409 | tilemap_set_transmask(m62_background,0,0xffff,0x0000); /* split type 0 is totally transparent in front half */ | |
| 410 | tilemap_set_transmask(m62_background,1,0x0001,0xfffe); /* split type 1 has pen 0 transparent in front half */ | |
| 411 | ||
| 409 | 412 | register_savestate(); |
| 410 | 413 | |
| 411 | 414 | if( rows != 0 ) |
| r2241 | r2242 | |
| 455 | 458 | /* is the following right? */ |
| 456 | 459 | if( ( tile_index / 64 ) < 6 || ( ( color & 0x1f ) >> 1 ) > 0x0c ) |
| 457 | 460 | { |
| 458 | tileinfo-> | |
| 461 | tileinfo-> | |
| 459 | 462 | } |
| 460 | 463 | else |
| 461 | 464 | { |
| 462 | tileinfo-> | |
| 465 | tileinfo-> | |
| 463 | 466 | } |
| 464 | 467 | } |
| 465 | 468 | |
| r2241 | r2242 | |
| 474 | 477 | { |
| 475 | 478 | tilemap_set_scrollx( m62_background, i, m62_background_hscroll ); |
| 476 | 479 | } |
| 477 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 480 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_LAYER1, 0 ); | |
| 478 | 481 | draw_sprites( screen->machine, bitmap, cliprect, 0x1f, 0x00, 0x00 ); |
| 479 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 482 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_LAYER0, 0 ); | |
| 480 | 483 | return 0; |
| 481 | 484 | } |
| 482 | 485 | |
| r2241 | r2242 | |
| 501 | 504 | SET_TILE_INFO( 0, code | ( ( color & 0xc0 ) << 2 ), color & 0x1f, flags ); |
| 502 | 505 | if( ( ( color & 0x1f ) >> 1 ) >= 0x0c ) |
| 503 | 506 | { |
| 504 | tileinfo-> | |
| 507 | tileinfo-> | |
| 505 | 508 | } |
| 506 | 509 | else |
| 507 | 510 | { |
| 508 | tileinfo-> | |
| 511 | tileinfo-> | |
| 509 | 512 | } |
| 510 | 513 | } |
| 511 | 514 | |
| r2241 | r2242 | |
| 514 | 517 | tilemap_set_scrollx( m62_background, 0, m62_background_hscroll ); |
| 515 | 518 | tilemap_set_scrolly( m62_background, 0, m62_background_vscroll ); |
| 516 | 519 | |
| 517 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 520 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_LAYER1, 0 ); | |
| 518 | 521 | draw_sprites( screen->machine, bitmap, cliprect, 0x0f, 0x10, 0x00 ); |
| 519 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 522 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_LAYER0, 0 ); | |
| 520 | 523 | draw_sprites( screen->machine, bitmap, cliprect, 0x0f, 0x10, 0x10 ); |
| 521 | 524 | return 0; |
| 522 | 525 | } |
| r2241 | r2242 | |
| 541 | 544 | SET_TILE_INFO( 0, code | ( ( color & 0xc0 ) << 2 ), color & 0x1f, flags ); |
| 542 | 545 | if( ( ( color & 0x1f ) >> 1 ) >= 0x04 ) |
| 543 | 546 | { |
| 544 | tileinfo-> | |
| 547 | tileinfo-> | |
| 545 | 548 | } |
| 546 | 549 | else |
| 547 | 550 | { |
| 548 | tileinfo-> | |
| 551 | tileinfo-> | |
| 549 | 552 | } |
| 550 | 553 | } |
| 551 | 554 | |
| r2241 | r2242 | |
| 569 | 572 | SET_TILE_INFO( 0, code | ( ( color & 0x40 ) << 3 ) | ( ( color & 0x10 ) << 4 ), color & 0x0f, flags ); |
| 570 | 573 | if( ( ( color & 0x1f ) >> 1 ) >= 0x04 ) |
| 571 | 574 | { |
| 572 | tileinfo-> | |
| 575 | tileinfo-> | |
| 573 | 576 | } |
| 574 | 577 | else |
| 575 | 578 | { |
| 576 | tileinfo-> | |
| 579 | tileinfo-> | |
| 577 | 580 | } |
| 578 | 581 | } |
| 579 | 582 | |
| r2241 | r2242 | |
| 594 | 597 | tilemap_set_scrolly( m62_foreground, 0, 0 ); |
| 595 | 598 | tilemap_set_transparent_pen( m62_foreground, 0 ); |
| 596 | 599 | |
| 597 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 600 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_LAYER1, 0 ); | |
| 598 | 601 | draw_sprites( screen->machine, bitmap, cliprect, 0x0f, 0x10, 0x00 ); |
| 599 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 602 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_LAYER0, 0 ); | |
| 600 | 603 | draw_sprites( screen->machine, bitmap, cliprect, 0x0f, 0x10, 0x10 ); |
| 601 | 604 | tilemap_draw( bitmap, cliprect, m62_foreground, 0, 0 ); |
| 602 | 605 | return 0; |
| r2241 | r2242 | |
| 624 | 627 | { |
| 625 | 628 | tilemap_set_scrollx( m62_background, 0, m62_background_hscroll ); |
| 626 | 629 | |
| 627 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 630 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_OPAQUE, 0 ); | |
| 628 | 631 | draw_sprites( screen->machine, bitmap, cliprect, 0x1f, 0x00, 0x00 ); |
| 629 | 632 | return 0; |
| 630 | 633 | } |
| r2241 | r2242 | |
| 667 | 670 | tilemap_set_scrolly( m62_foreground, 0, 32 ); |
| 668 | 671 | tilemap_set_transparent_pen( m62_foreground, 0 ); |
| 669 | 672 | |
| 670 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 673 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_OPAQUE, 0 ); | |
| 671 | 674 | tilemap_draw( bitmap, cliprect, m62_foreground, 0, 0 ); |
| 672 | 675 | draw_sprites( screen->machine, bitmap, cliprect, 0x1f, 0x00, 0x00 ); |
| 673 | 676 | return 0; |
| r2241 | r2242 | |
| 785 | 788 | tilemap_set_scrolly( m62_foreground, 0, 0 ); |
| 786 | 789 | tilemap_set_transparent_pen( m62_foreground, 0 ); |
| 787 | 790 | |
| 788 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 791 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_OPAQUE, 0 ); | |
| 789 | 792 | draw_sprites( screen->machine, bitmap, cliprect, 0x1f, 0x00, 0x00 ); |
| 790 | 793 | tilemap_draw( bitmap, cliprect, m62_foreground, 0, 0 ); |
| 791 | 794 | return 0; |
| r2241 | r2242 | |
| 827 | 830 | tilemap_set_scrolly( m62_foreground, 0, 0 ); |
| 828 | 831 | tilemap_set_transparent_pen( m62_foreground, 0 ); |
| 829 | 832 | |
| 830 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 833 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_OPAQUE, 0 ); | |
| 831 | 834 | draw_sprites( screen->machine, bitmap, cliprect, 0x1f, 0x00, 0x00 ); |
| 832 | 835 | tilemap_draw( bitmap, cliprect, m62_foreground, 0, 0 ); |
| 833 | 836 | return 0; |
| r2241 | r2242 | |
| 849 | 852 | SET_TILE_INFO( 0, code | ( ( color & 0x60 ) << 3 ), color & 0x1f, 0 ); |
| 850 | 853 | if( ( ( color & 0x1f ) >> 1 ) >= 0x08 ) |
| 851 | 854 | { |
| 852 | tileinfo-> | |
| 855 | tileinfo-> | |
| 853 | 856 | } |
| 854 | 857 | else |
| 855 | 858 | { |
| 856 | tileinfo-> | |
| 859 | tileinfo-> | |
| 857 | 860 | } |
| 858 | 861 | } |
| 859 | 862 | |
| r2241 | r2242 | |
| 873 | 876 | tilemap_set_scrolly( m62_foreground, 0, 0 ); |
| 874 | 877 | tilemap_set_transparent_pen( m62_foreground, 0 ); |
| 875 | 878 | |
| 876 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 879 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_LAYER1, 0 ); | |
| 877 | 880 | draw_sprites( screen->machine, bitmap, cliprect, 0x1f, 0x00, 0x00 ); |
| 878 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 881 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_LAYER0, 0 ); | |
| 879 | 882 | tilemap_draw( bitmap, cliprect, m62_foreground, 0, 0 ); |
| 880 | 883 | return 0; |
| 881 | 884 | } |
| r2241 | r2242 | |
| 901 | 904 | SET_TILE_INFO( 0, code | ( ( color & 0xc0 ) << 2 ) | ( ( color & 0x20 ) << 5 ), color & 0x1f, 0 ); |
| 902 | 905 | if( ( ( color & 0x1f ) >> 1 ) >= 0x08 ) |
| 903 | 906 | { |
| 904 | tileinfo-> | |
| 907 | tileinfo-> | |
| 905 | 908 | } |
| 906 | 909 | else |
| 907 | 910 | { |
| 908 | tileinfo-> | |
| 911 | tileinfo-> | |
| 909 | 912 | } |
| 910 | 913 | } |
| 911 | 914 | |
| r2241 | r2242 | |
| 916 | 919 | { |
| 917 | 920 | tilemap_set_scrollx( m62_background, i, horizon_scrollram[ i << 1 ] | ( horizon_scrollram[ ( i << 1 ) | 1 ] << 8 ) ); |
| 918 | 921 | } |
| 919 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 922 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_LAYER1, 0 ); | |
| 920 | 923 | draw_sprites( screen->machine, bitmap, cliprect, 0x1f, 0x00, 0x00 ); |
| 921 | tilemap_draw( bitmap, cliprect, m62_background, | |
| 924 | tilemap_draw( bitmap, cliprect, m62_background, TILEMAP_DRAW_LAYER0, 0 ); | |
| 922 | 925 | return 0; |
| 923 | 926 | } |
| 924 | 927 |
| r2241 | r2242 | |
|---|---|---|
| 98 | 98 | |
| 99 | 99 | WRITE16_HANDLER( tail2nos_gfxbank_w ) |
| 100 | 100 | { |
| 101 | if (ACCESSING_ | |
| 101 | if (ACCESSING_ | |
| 102 | 102 | { |
| 103 | 103 | int bank; |
| 104 | 104 |
| r2241 | r2242 | |
|---|---|---|
| 155 | 155 | |
| 156 | 156 | WRITE16_HANDLER( f1gp_gfxctrl_w ) |
| 157 | 157 | { |
| 158 | if (ACCESSING_ | |
| 158 | if (ACCESSING_ | |
| 159 | 159 | { |
| 160 | 160 | flipscreen = data & 0x20; |
| 161 | 161 | gfxctrl = data & 0xdf; |
| r2241 | r2242 | |
| 164 | 164 | |
| 165 | 165 | WRITE16_HANDLER( f1gp2_gfxctrl_w ) |
| 166 | 166 | { |
| 167 | if (ACCESSING_ | |
| 167 | if (ACCESSING_ | |
| 168 | 168 | { |
| 169 | 169 | flipscreen = data & 0x20; |
| 170 | 170 | |
| r2241 | r2242 | |
| 174 | 174 | gfxctrl = data & 0xdf; |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | if (ACCESSING_ | |
| 177 | if (ACCESSING_ | |
| 178 | 178 | { |
| 179 | 179 | if (f1gp2_roz_bank != (data >> 8)) |
| 180 | 180 | { |
| r2241 | r2242 | |
|---|---|---|
| 231 | 231 | if( (offset&0x1800) == 0x1800 ) |
| 232 | 232 | { |
| 233 | 233 | offset &= 0x180f; |
| 234 | if( ACCESSING_ | |
| 234 | if( ACCESSING_ | |
| 235 | 235 | { |
| 236 | 236 | namcos2_68k_palette_ram[offset] = data; |
| 237 | 237 | } |
| r2241 | r2242 | |
|---|---|---|
| 155 | 155 | |
| 156 | 156 | WRITE16_HANDLER( roundup5_crt_w ) |
| 157 | 157 | { |
| 158 | if (offset==0 && ACCESSING_ | |
| 158 | if (offset==0 && ACCESSING_ | |
| 159 | 159 | roundupt_crt_selected_reg=data&0x3f; |
| 160 | if (offset==1 && ACCESSING_ | |
| 160 | if (offset==1 && ACCESSING_ | |
| 161 | 161 | roundupt_crt_reg[roundupt_crt_selected_reg]=data; |
| 162 | 162 | // if (roundupt_crt_selected_reg!=0xa && roundupt_crt_selected_reg!=0xb && roundupt_crt_selected_reg!=29) |
| 163 | 163 | // logerror("%08x: Crt write %02x %02x\n",activecpu_get_pc(),roundupt_crt_selected_reg,data); |
| r2241 | r2242 | |
|---|---|---|
| 2252 | 2252 | |
| 2253 | 2253 | WRITE16_HANDLER( K052109_word_w ) |
| 2254 | 2254 | { |
| 2255 | if (ACCESSING_ | |
| 2255 | if (ACCESSING_ | |
| 2256 | 2256 | K052109_w(machine,offset,(data >> 8) & 0xff); |
| 2257 | if (ACCESSING_ | |
| 2257 | if (ACCESSING_ | |
| 2258 | 2258 | K052109_w(machine,offset + 0x2000,data & 0xff); |
| 2259 | 2259 | } |
| 2260 | 2260 | |
| r2241 | r2242 | |
| 2265 | 2265 | |
| 2266 | 2266 | WRITE16_HANDLER(K052109_lsb_w) |
| 2267 | 2267 | { |
| 2268 | if(ACCESSING_ | |
| 2268 | if(ACCESSING_ | |
| 2269 | 2269 | K052109_w(machine, offset, data & 0xff); |
| 2270 | 2270 | } |
| 2271 | 2271 | |
| r2241 | r2242 | |
| 2618 | 2618 | |
| 2619 | 2619 | WRITE16_HANDLER( K051960_word_w ) |
| 2620 | 2620 | { |
| 2621 | if (ACCESSING_ | |
| 2621 | if (ACCESSING_ | |
| 2622 | 2622 | K051960_w(machine,offset*2,(data >> 8) & 0xff); |
| 2623 | if (ACCESSING_ | |
| 2623 | if (ACCESSING_ | |
| 2624 | 2624 | K051960_w(machine,offset*2 + 1,data & 0xff); |
| 2625 | 2625 | } |
| 2626 | 2626 | |
| r2241 | r2242 | |
| 2691 | 2691 | |
| 2692 | 2692 | WRITE16_HANDLER( K051937_word_w ) |
| 2693 | 2693 | { |
| 2694 | if (ACCESSING_ | |
| 2694 | if (ACCESSING_ | |
| 2695 | 2695 | K051937_w(machine,offset*2,(data >> 8) & 0xff); |
| 2696 | if (ACCESSING_ | |
| 2696 | if (ACCESSING_ | |
| 2697 | 2697 | K051937_w(machine,offset*2 + 1,data & 0xff); |
| 2698 | 2698 | } |
| 2699 | 2699 | |
| r2241 | r2242 | |
| 3194 | 3194 | |
| 3195 | 3195 | WRITE16_HANDLER( K053244_lsb_w ) |
| 3196 | 3196 | { |
| 3197 | if (ACCESSING_ | |
| 3197 | if (ACCESSING_ | |
| 3198 | 3198 | K053244_w(machine, offset, data & 0xff); |
| 3199 | 3199 | } |
| 3200 | 3200 | |
| r2241 | r2242 | |
| 3205 | 3205 | |
| 3206 | 3206 | WRITE16_HANDLER( K053244_word_w ) |
| 3207 | 3207 | { |
| 3208 | if (ACCESSING_ | |
| 3208 | if (ACCESSING_ | |
| 3209 | 3209 | K053244_w(machine, offset*2, (data >> 8) & 0xff); |
| 3210 | if (ACCESSING_ | |
| 3210 | if (ACCESSING_ | |
| 3211 | 3211 | K053244_w(machine, offset*2+1, data & 0xff); |
| 3212 | 3212 | } |
| 3213 | 3213 | |
| r2241 | r2242 | |
| 4134 | 4134 | |
| 4135 | 4135 | WRITE16_HANDLER( K053246_word_w ) |
| 4136 | 4136 | { |
| 4137 | if (ACCESSING_ | |
| 4137 | if (ACCESSING_ | |
| 4138 | 4138 | K053246_w(machine, offset<<1,(data >> 8) & 0xff); |
| 4139 | if (ACCESSING_ | |
| 4139 | if (ACCESSING_ | |
| 4140 | 4140 | K053246_w(machine, (offset<<1) + 1,data & 0xff); |
| 4141 | 4141 | } |
| 4142 | 4142 | |
| r2241 | r2242 | |
| 5155 | 5155 | |
| 5156 | 5156 | WRITE16_HANDLER( K053251_lsb_w ) |
| 5157 | 5157 | { |
| 5158 | if (ACCESSING_ | |
| 5158 | if (ACCESSING_ | |
| 5159 | 5159 | K053251_w(machine, offset, data & 0xff); |
| 5160 | 5160 | } |
| 5161 | 5161 | |
| 5162 | 5162 | WRITE16_HANDLER( K053251_msb_w ) |
| 5163 | 5163 | { |
| 5164 | if (ACCESSING_ | |
| 5164 | if (ACCESSING_ | |
| 5165 | 5165 | K053251_w(machine, offset, (data >> 8) & 0xff); |
| 5166 | 5166 | } |
| 5167 | 5167 | |
| r2241 | r2242 | |
| 5236 | 5236 | |
| 5237 | 5237 | WRITE16_HANDLER( K054000_lsb_w ) |
| 5238 | 5238 | { |
| 5239 | if (ACCESSING_ | |
| 5239 | if (ACCESSING_ | |
| 5240 | 5240 | K054000_w(machine, offset, data & 0xff); |
| 5241 | 5241 | } |
| 5242 | 5242 | |
| r2241 | r2242 | |
| 6419 | 6419 | |
| 6420 | 6420 | WRITE32_HANDLER( K056832_b_long_w ) |
| 6421 | 6421 | { |
| 6422 | if (ACCESSING_ | |
| 6422 | if (ACCESSING_BITS_16_31) | |
| 6423 | 6423 | { |
| 6424 | 6424 | K056832_b_word_w(machine, offset<<1, data>>16, mem_mask >> 16); |
| 6425 | 6425 | } |
| 6426 | if (ACCESSING_ | |
| 6426 | if (ACCESSING_BITS_0_15) | |
| 6427 | 6427 | { |
| 6428 | 6428 | K056832_b_word_w(machine, (offset<<1)+1, data, mem_mask); |
| 6429 | 6429 | } |
| r2241 | r2242 | |
| 7165 | 7165 | { |
| 7166 | 7166 | UINT8 regnum, regdat; |
| 7167 | 7167 | |
| 7168 | if ( | |
| 7168 | if (ACCESSING_BITS_24_31 | |
| 7169 | 7169 | { |
| 7170 | 7170 | regnum = offset<<1; |
| 7171 | 7171 | regdat = data>>24; |
| 7172 | 7172 | } |
| 7173 | 7173 | else |
| 7174 | 7174 | { |
| 7175 | if ( | |
| 7175 | if (ACCESSING_BITS_8_15 | |
| 7176 | 7176 | { |
| 7177 | 7177 | regnum = (offset<<1)+1; |
| 7178 | 7178 | regdat = data>>8; |
| r2241 | r2242 | |
| 7525 | 7525 | |
| 7526 | 7526 | WRITE16_HANDLER( K053250_0_w ) |
| 7527 | 7527 | { |
| 7528 | if (ACCESSING_ | |
| 7528 | if (ACCESSING_ | |
| 7529 | 7529 | { |
| 7530 | 7530 | // start LVC DMA transfer at the falling edge of control register's bit1 |
| 7531 | 7531 | if (offset == 4 && !(data & 2) && (K053250_info.chip[0].regs[4] & 2)) K053250_dma(0, 1); |
| r2241 | r2242 | |
| 7558 | 7558 | |
| 7559 | 7559 | WRITE16_HANDLER( K053250_1_w ) |
| 7560 | 7560 | { |
| 7561 | if (ACCESSING_ | |
| 7561 | if (ACCESSING_ | |
| 7562 | 7562 | { |
| 7563 | 7563 | // start LVC DMA transfer at the falling edge of control register's bit1 |
| 7564 | 7564 | if (offset == 4 && !(data & 2) && (K053250_info.chip[1].regs[4] & 2)) K053250_dma(1, 1); |
| r2241 | r2242 | |
|---|---|---|
| 330 | 330 | |
| 331 | 331 | WRITE16_HANDLER( m72_dmaon_w ) |
| 332 | 332 | { |
| 333 | if (ACCESSING_ | |
| 333 | if (ACCESSING_ | |
| 334 | 334 | memcpy(m72_spriteram,spriteram16,spriteram_size); |
| 335 | 335 | } |
| 336 | 336 | |
| 337 | 337 | |
| 338 | 338 | WRITE16_HANDLER( m72_port02_w ) |
| 339 | 339 | { |
| 340 | if (ACCESSING_ | |
| 340 | if (ACCESSING_ | |
| 341 | 341 | { |
| 342 | 342 | if (data & 0xe0) logerror("write %02x to port 02\n",data); |
| 343 | 343 | |
| r2241 | r2242 | |
| 363 | 363 | |
| 364 | 364 | WRITE16_HANDLER( rtype2_port02_w ) |
| 365 | 365 | { |
| 366 | if (ACCESSING_ | |
| 366 | if (ACCESSING_ | |
| 367 | 367 | { |
| 368 | 368 | if (data & 0xe0) logerror("write %02x to port 02\n",data); |
| 369 | 369 | |
| r2241 | r2242 | |
| 387 | 387 | /* the following is mostly a kludge. This register seems to be used for something else */ |
| 388 | 388 | WRITE16_HANDLER( majtitle_gfx_ctrl_w ) |
| 389 | 389 | { |
| 390 | if (ACCESSING_ | |
| 390 | if (ACCESSING_ | |
| 391 | 391 | { |
| 392 | 392 | if (data & 0xff00) majtitle_rowscroll = 1; |
| 393 | 393 | else majtitle_rowscroll = 0; |
| r2241 | r2242 | |
|---|---|---|
| 54 | 54 | |
| 55 | 55 | WRITE16_HANDLER( ohmygod_spritebank_w ) |
| 56 | 56 | { |
| 57 | if (ACCESSING_ | |
| 57 | if (ACCESSING_ | |
| 58 | 58 | spritebank = data & 0x8000; |
| 59 | 59 | } |
| 60 | 60 |
| r2241 | r2242 | |
|---|---|---|
| 107 | 107 | |
| 108 | 108 | WRITE16_HANDLER( pow_flipscreen16_w ) |
| 109 | 109 | { |
| 110 | if (ACCESSING_ | |
| 110 | if (ACCESSING_ | |
| 111 | 111 | { |
| 112 | 112 | flip_screen_set(data & 0x08); |
| 113 | 113 | sprite_flip=data&0x4; |
| r2241 | r2242 | |
|---|---|---|
| 140 | 140 | { |
| 141 | 141 | int i; |
| 142 | 142 | |
| 143 | if (ACCESSING_ | |
| 143 | if (ACCESSING_ | |
| 144 | 144 | { |
| 145 | 145 | brightness = (double)(~data & 0x1f) / 31.0; |
| 146 | 146 |
| r2241 | r2242 | |
|---|---|---|
| 32 | 32 | #ifdef UNUSED_FUNCTION |
| 33 | 33 | WRITE16_HANDLER( legionna_control_w ) |
| 34 | 34 | { |
| 35 | if (ACCESSING_ | |
| 35 | if (ACCESSING_ | |
| 36 | 36 | { |
| 37 | 37 | legionna_enable=data; |
| 38 | 38 | if ((legionna_enable&4)==4) |
| r2241 | r2242 | |
|---|---|---|
| 304 | 304 | VIDEO_UPDATE( mcr68 ) |
| 305 | 305 | { |
| 306 | 306 | /* draw the background */ |
| 307 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | 0, 0); | |
| 308 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | 1, 0); | |
| 307 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES, 0); | |
| 309 | 308 | |
| 310 | 309 | /* draw the low-priority sprites */ |
| 311 | 310 | mcr68_update_sprites(screen->machine, bitmap, cliprect, 0); |
| r2241 | r2242 | |
|---|---|---|
| 413 | 413 | } |
| 414 | 414 | pdrawgfx(bitmap,machine->gfx[2], |
| 415 | 415 | code + layout[y][x], |
| 416 | color, | |
| 416 | machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity, | |
| 417 | 417 | flipx,flipy, |
| 418 | 418 | sx,sy, |
| 419 | cliprect,TRANSPARENCY_PEN,0, | |
| 419 | cliprect,TRANSPARENCY_PEN_RAW,0, | |
| 420 | 420 | priority_mask); |
| 421 | 421 | |
| 422 | 422 | /* wrap around x */ |
| 423 | 423 | pdrawgfx(bitmap,machine->gfx[2], |
| 424 | 424 | code + layout[y][x], |
| 425 | color, | |
| 425 | machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity, | |
| 426 | 426 | flipx,flipy, |
| 427 | 427 | sx-512,sy, |
| 428 | cliprect,TRANSPARENCY_PEN,0, | |
| 428 | cliprect,TRANSPARENCY_PEN_RAW,0, | |
| 429 | 429 | priority_mask); |
| 430 | 430 | |
| 431 | 431 | /* wrap around x */ |
| 432 | 432 | pdrawgfx(bitmap,machine->gfx[2], |
| 433 | 433 | code + layout[y][x], |
| 434 | color, | |
| 434 | machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity, | |
| 435 | 435 | flipx,flipy, |
| 436 | 436 | sx+512,sy, |
| 437 | cliprect,TRANSPARENCY_PEN,0, | |
| 437 | cliprect,TRANSPARENCY_PEN_RAW,0, | |
| 438 | 438 | priority_mask); |
| 439 | 439 | } |
| 440 | 440 | } |
| r2241 | r2242 | |
| 459 | 459 | } |
| 460 | 460 | pdrawgfx(bitmap,machine->gfx[2], |
| 461 | 461 | code + layout[y][x], |
| 462 | color, | |
| 462 | machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity, | |
| 463 | 463 | flipx,flipy, |
| 464 | 464 | sx,sy, |
| 465 | cliprect,TRANSPARENCY_PEN,0, | |
| 465 | cliprect,TRANSPARENCY_PEN_RAW,0, | |
| 466 | 466 | priority_mask); |
| 467 | 467 | |
| 468 | 468 | /* wrap around x */ |
| 469 | 469 | pdrawgfx(bitmap,machine->gfx[2], |
| 470 | 470 | code + layout[y][x], |
| 471 | color, | |
| 471 | machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity, | |
| 472 | 472 | flipx,flipy, |
| 473 | 473 | sx-512,sy, |
| 474 | cliprect,TRANSPARENCY_PEN,0, | |
| 474 | cliprect,TRANSPARENCY_PEN_RAW,0, | |
| 475 | 475 | priority_mask); |
| 476 | 476 | |
| 477 | 477 | /* wrap around x */ |
| 478 | 478 | pdrawgfx(bitmap,machine->gfx[2], |
| 479 | 479 | code + layout[y][x], |
| 480 | color, | |
| 480 | machine->gfx[2]->color_base + color * machine->gfx[2]->color_granularity, | |
| 481 | 481 | flipx,flipy, |
| 482 | 482 | sx+512,sy, |
| 483 | cliprect,TRANSPARENCY_PEN,0, | |
| 483 | cliprect,TRANSPARENCY_PEN_RAW,0, | |
| 484 | 484 | priority_mask); |
| 485 | 485 | } |
| 486 | 486 | } |
| r2241 | r2242 | |
|---|---|---|
| 167 | 167 | WRITE16_HANDLER( toypop_merged_background_w ) |
| 168 | 168 | { |
| 169 | 169 | // 0xabcd is written as 0x0a0b0c0d in the background image |
| 170 | if (ACCESSING_ | |
| 170 | if (ACCESSING_ | |
| 171 | 171 | toypop_bg_image[2*offset] = ((data & 0xf00) >> 8) | ((data & 0xf000) >> 4); |
| 172 | 172 | |
| 173 | if (ACCESSING_ | |
| 173 | if (ACCESSING_ | |
| 174 | 174 | toypop_bg_image[2*offset+1] = (data & 0xf) | ((data & 0xf0) << 4); |
| 175 | 175 | } |
| 176 | 176 |
| r2241 | r2242 | |
|---|---|---|
| 828 | 828 | |
| 829 | 829 | WRITE16_HANDLER( contcirc_out_w ) |
| 830 | 830 | { |
| 831 | if (ACCESSING_ | |
| 831 | if (ACCESSING_ | |
| 832 | 832 | { |
| 833 | 833 | /* bit 0 = reset sub CPU */ |
| 834 | 834 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, (data & 1) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 533 | 533 | { |
| 534 | 534 | int x,y; |
| 535 | 535 | |
| 536 | tilemap_draw(bitmap,cliprect,bg_tilemap,0|TILEMAP_DRAW_OPAQUE,0); | |
| 537 | tilemap_draw(bitmap,cliprect,bg_tilemap,1|TILEMAP_DRAW_OPAQUE,0); | |
| 536 | tilemap_draw(bitmap,cliprect,bg_tilemap,TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES,0); | |
| 538 | 537 | |
| 539 | 538 | fillbitmap(sprite_bitmap,15,cliprect); |
| 540 | 539 | mappy_draw_sprites(screen->machine,sprite_bitmap,cliprect,0,0,15); |
| r2241 | r2242 | |
| 560 | 559 | /* flip screen control is embedded in RAM */ |
| 561 | 560 | flip_screen_set(mappy_spriteram[0x1f7f-0x800] & 1); |
| 562 | 561 | |
| 563 | tilemap_draw(bitmap,cliprect,bg_tilemap,0|TILEMAP_DRAW_OPAQUE,0); | |
| 564 | tilemap_draw(bitmap,cliprect,bg_tilemap,1|TILEMAP_DRAW_OPAQUE,0); | |
| 562 | tilemap_draw(bitmap,cliprect,bg_tilemap,TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES,0); | |
| 565 | 563 | |
| 566 | 564 | phozon_draw_sprites(screen->machine,bitmap,cliprect); |
| 567 | 565 | |
| r2241 | r2242 | |
| 577 | 575 | for (offs = 2;offs < 34;offs++) |
| 578 | 576 | tilemap_set_scrolly(bg_tilemap,offs,mappy_scroll); |
| 579 | 577 | |
| 580 | tilemap_draw(bitmap,cliprect,bg_tilemap,0|TILEMAP_DRAW_OPAQUE,0); | |
| 581 | tilemap_draw(bitmap,cliprect,bg_tilemap,1|TILEMAP_DRAW_OPAQUE,0); | |
| 578 | tilemap_draw(bitmap,cliprect,bg_tilemap,TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES,0); | |
| 582 | 579 | |
| 583 | 580 | mappy_draw_sprites(screen->machine,bitmap,cliprect,0,0,15); |
| 584 | 581 |
| r2241 | r2242 | |
|---|---|---|
| 13 | 13 | { |
| 14 | 14 | int bank; |
| 15 | 15 | |
| 16 | if (ACCESSING_ | |
| 16 | if (ACCESSING_ | |
| 17 | 17 | { |
| 18 | 18 | data = (data >> 8) & 0xff; |
| 19 | 19 |
| r2241 | r2242 | |
|---|---|---|
| 503 | 503 | |
| 504 | 504 | WRITE32_HANDLER( multi32_paletteram_0_w ) |
| 505 | 505 | { |
| 506 | if ( | |
| 506 | if (ACCESSING_BITS_ | |
| 507 | 507 | common_paletteram_w(0, offset*2+0, data, mem_mask); |
| 508 | if ( | |
| 508 | if (ACCESSING_BITS_16_31 | |
| 509 | 509 | common_paletteram_w(0, offset*2+1, data >> 16, mem_mask >> 16); |
| 510 | 510 | } |
| 511 | 511 | |
| r2241 | r2242 | |
| 519 | 519 | |
| 520 | 520 | WRITE32_HANDLER( multi32_paletteram_1_w ) |
| 521 | 521 | { |
| 522 | if ( | |
| 522 | if (ACCESSING_BITS_ | |
| 523 | 523 | common_paletteram_w(1, offset*2+0, data, mem_mask); |
| 524 | if ( | |
| 524 | if (ACCESSING_BITS_16_31 | |
| 525 | 525 | common_paletteram_w(1, offset*2+1, data >> 16, mem_mask >> 16); |
| 526 | 526 | } |
| 527 | 527 | |
| r2241 | r2242 | |
| 567 | 567 | |
| 568 | 568 | WRITE32_HANDLER( multi32_videoram_w ) |
| 569 | 569 | { |
| 570 | if ( | |
| 570 | if (ACCESSING_BITS_ | |
| 571 | 571 | system32_videoram_w(machine, offset*2+0, data, mem_mask); |
| 572 | if ( | |
| 572 | if (ACCESSING_BITS_16_31 | |
| 573 | 573 | system32_videoram_w(machine, offset*2+1, data >> 16, mem_mask >> 16); |
| 574 | 574 | } |
| 575 | 575 | |
| r2241 | r2242 | |
| 641 | 641 | |
| 642 | 642 | WRITE16_HANDLER( system32_sprite_control_w ) |
| 643 | 643 | { |
| 644 | if (ACCESSING_ | |
| 644 | if (ACCESSING_ | |
| 645 | 645 | sprite_control[offset & 7] = data; |
| 646 | 646 | } |
| 647 | 647 | |
| r2241 | r2242 | |
| 655 | 655 | |
| 656 | 656 | WRITE32_HANDLER( multi32_sprite_control_w ) |
| 657 | 657 | { |
| 658 | if ( | |
| 658 | if (ACCESSING_BITS_ | |
| 659 | 659 | system32_sprite_control_w(machine, offset*2+0, data, mem_mask); |
| 660 | if ( | |
| 660 | if (ACCESSING_BITS_16_31 | |
| 661 | 661 | system32_sprite_control_w(machine, offset*2+1, data >> 16, mem_mask >> 16); |
| 662 | 662 | } |
| 663 | 663 |
| r2241 | r2242 | |
|---|---|---|
| 98 | 98 | |
| 99 | 99 | WRITE16_HANDLER( badlands_pf_bank_w ) |
| 100 | 100 | { |
| 101 | if (ACCESSING_ | |
| 101 | if (ACCESSING_ | |
| 102 | 102 | if (playfield_tile_bank != (data & 1)) |
| 103 | 103 | { |
| 104 | 104 | video_screen_update_partial(machine->primary_screen, video_screen_get_vpos(machine->primary_screen)); |
| r2241 | r2242 | |
|---|---|---|
| 224 | 224 | return; |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | if (ACCESSING_ | |
| 227 | if (ACCESSING_ | |
| 228 | 228 | { |
| 229 | 229 | pandora_spriteram[offset] = (data>>8)&0xff; |
| 230 | 230 | } |
| 231 | 231 | |
| 232 | if (ACCESSING_ | |
| 232 | if (ACCESSING_ | |
| 233 | 233 | { |
| 234 | 234 | pandora_spriteram[offset] = data&0xff; |
| 235 | 235 | } |
| r2241 | r2242 | |
|---|---|---|
| 162 | 162 | |
| 163 | 163 | WRITE16_HANDLER(equites_fg_videoram_w) |
| 164 | 164 | { |
| 165 | if (ACCESSING_ | |
| 165 | if (ACCESSING_ | |
| 166 | 166 | { |
| 167 | 167 | equites_fg_videoram[offset] = data & 0xff; |
| 168 | 168 | |
| r2241 | r2242 | |
| 179 | 179 | |
| 180 | 180 | WRITE16_HANDLER(equites_bgcolor_w) |
| 181 | 181 | { |
| 182 | if (ACCESSING_ | |
| 182 | if (ACCESSING_ | |
| 183 | 183 | bgcolor = data >> 8; |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | WRITE16_HANDLER(equites_scrollreg_w) |
| 187 | 187 | { |
| 188 | if (ACCESSING_ | |
| 188 | if (ACCESSING_ | |
| 189 | 189 | tilemap_set_scrolly(bg_tilemap, 0, data & 0xff); |
| 190 | 190 | |
| 191 | if (ACCESSING_ | |
| 191 | if (ACCESSING_ | |
| 192 | 192 | tilemap_set_scrollx(bg_tilemap, 0, data >> 8); |
| 193 | 193 | } |
| 194 | 194 | |
| r2241 | r2242 | |
| 222 | 222 | |
| 223 | 223 | WRITE16_HANDLER(splndrbt_flip0_w) |
| 224 | 224 | { |
| 225 | if (ACCESSING_ | |
| 225 | if (ACCESSING_ | |
| 226 | 226 | flip_screen_set(0); |
| 227 | 227 | |
| 228 | if (ACCESSING_ | |
| 228 | if (ACCESSING_ | |
| 229 | 229 | bgcolor = data >> 8; |
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | WRITE16_HANDLER(splndrbt_flip1_w) |
| 233 | 233 | { |
| 234 | if (ACCESSING_ | |
| 234 | if (ACCESSING_ | |
| 235 | 235 | flip_screen_set(1); |
| 236 | 236 | } |
| 237 | 237 |
| r2241 | r2242 | |
|---|---|---|
| 395 | 395 | |
| 396 | 396 | WRITE16_HANDLER(ddd_053936_enable_w) |
| 397 | 397 | { |
| 398 | if (ACCESSING_ | |
| 398 | if (ACCESSING_ | |
| 399 | 399 | { |
| 400 | 400 | roz_enable = data & 0x0100; |
| 401 | 401 | roz_rombank = (data & 0xc000)>>14; |
| r2241 | r2242 | |
| 410 | 410 | |
| 411 | 411 | if (offset == 1) |
| 412 | 412 | { |
| 413 | if (ACCESSING_ | |
| 413 | if (ACCESSING_ | |
| 414 | 414 | } |
| 415 | 415 | else |
| 416 | 416 | { |
| r2241 | r2242 | |
|---|---|---|
| 55 | 55 | |
| 56 | 56 | WRITE16_HANDLER( quizpani_tilesbank_w ) |
| 57 | 57 | { |
| 58 | if (ACCESSING_ | |
| 58 | if (ACCESSING_ | |
| 59 | 59 | { |
| 60 | 60 | if(quizpani_txtbank != (data & 0x30)>>4) |
| 61 | 61 | { |
| r2241 | r2242 | |
|---|---|---|
| 446 | 446 | COMBINE_DATA(&paletteram32[offset]); |
| 447 | 447 | |
| 448 | 448 | paletteram16 = (UINT16 *)paletteram32; |
| 449 | if (ACCESSING_ | |
| 449 | if (ACCESSING_BITS_16_31) | |
| 450 | 450 | paletteram16_xRRRRRGGGGGBBBBB_word_w(machine, offset*2, data >> 16, mem_mask >> 16); |
| 451 | if (ACCESSING_ | |
| 451 | if (ACCESSING_BITS_0_15) | |
| 452 | 452 | paletteram16_xRRRRRGGGGGBBBBB_word_w(machine, offset*2+1, data, mem_mask); |
| 453 | 453 | } |
| 454 | 454 | |
| r2241 | r2242 | |
| 462 | 462 | COMBINE_DATA(&paletteram32[offset]); |
| 463 | 463 | |
| 464 | 464 | paletteram16 = (UINT16 *)paletteram32; |
| 465 | if (ACCESSING_ | |
| 465 | if (ACCESSING_BITS_16_31) | |
| 466 | 466 | paletteram16_xRRRRRGGGGGBBBBB_word_w(machine, offset*2, data >> 16, mem_mask >> 16); |
| 467 | if (ACCESSING_ | |
| 467 | if (ACCESSING_BITS_0_15) | |
| 468 | 468 | paletteram16_xRRRRRGGGGGBBBBB_word_w(machine, offset*2+1, data, mem_mask); |
| 469 | 469 | } |
| 470 | 470 | |
| 471 | 471 | WRITE32_HANDLER( konamigx_tilebank_w ) |
| 472 | 472 | { |
| 473 | if ( | |
| 473 | if (ACCESSING_BITS_24_31 | |
| 474 | 474 | gx_tilebanks[offset*4] = (data>>24)&0xff; |
| 475 | if ( | |
| 475 | if (ACCESSING_BITS_16_23 | |
| 476 | 476 | gx_tilebanks[offset*4+1] = (data>>16)&0xff; |
| 477 | if ( | |
| 477 | if (ACCESSING_BITS_8_15 | |
| 478 | 478 | gx_tilebanks[offset*4+2] = (data>>8)&0xff; |
| 479 | if ( | |
| 479 | if (ACCESSING_BITS_ | |
| 480 | 480 | gx_tilebanks[offset*4+3] = data&0xff; |
| 481 | 481 | } |
| 482 | 482 |
| r2241 | r2242 | |
|---|---|---|
| 83 | 83 | |
| 84 | 84 | WRITE16_HANDLER( ultraman_gfxctrl_w ) |
| 85 | 85 | { |
| 86 | if (ACCESSING_ | |
| 86 | if (ACCESSING_ | |
| 87 | 87 | { |
| 88 | 88 | /* bit 0: enable wraparound for scr #1 |
| 89 | 89 | bit 1: msb of code for scr #1 |
| r2241 | r2242 | |
|---|---|---|
| 63 | 63 | |
| 64 | 64 | WRITE16_HANDLER( gotcha_gfxbank_select_w ) |
| 65 | 65 | { |
| 66 | if (ACCESSING_ | |
| 66 | if (ACCESSING_ | |
| 67 | 67 | banksel = (data & 0x0300) >> 8; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | WRITE16_HANDLER( gotcha_gfxbank_w ) |
| 71 | 71 | { |
| 72 | if (ACCESSING_ | |
| 72 | if (ACCESSING_ | |
| 73 | 73 | { |
| 74 | 74 | if (gfxbank[banksel] != ((data & 0x0f00) >> 8)) |
| 75 | 75 | { |
| r2241 | r2242 | |
|---|---|---|
| 170 | 170 | |
| 171 | 171 | VIDEO_UPDATE( gberet ) |
| 172 | 172 | { |
| 173 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | 0, 0); | |
| 174 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | 1, 0); | |
| 173 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES, 0); | |
| 175 | 174 | gberet_draw_sprites(screen->machine, bitmap, cliprect); |
| 176 | 175 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 177 | 176 | return 0; |
| r2241 | r2242 | |
| 223 | 222 | |
| 224 | 223 | VIDEO_UPDATE( gberetb ) |
| 225 | 224 | { |
| 226 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | 0, 0); | |
| 227 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | 1, 0); | |
| 225 | tilemap_draw(bitmap, cliprect, bg_tilemap, TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES, 0); | |
| 228 | 226 | gberetb_draw_sprites(screen->machine, bitmap, cliprect); |
| 229 | 227 | tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0); |
| 230 | 228 | return 0; |
| r2241 | r2242 | |
|---|---|---|
| 54 | 54 | |
| 55 | 55 | WRITE16_HANDLER( cabal_flipscreen_w ) |
| 56 | 56 | { |
| 57 | if (ACCESSING_ | |
| 57 | if (ACCESSING_ | |
| 58 | 58 | { |
| 59 | 59 | int flip = (data & 0x20) ? (TILEMAP_FLIPX | TILEMAP_FLIPY) : 0; |
| 60 | 60 | tilemap_set_flip(background_layer,flip); |
| r0 | r2242 | |
|---|---|---|
| 1 | #include "driver.h" | |
| 2 | #include "video/cdp1869.h" | |
| 3 | #include "cidelsa.h" | |
| 4 | ||
| 5 | #define CIDELSA_PAGERAM_SIZE 0x400 | |
| 6 | #define DRACO_PAGERAM_SIZE 0x800 | |
| 7 | #define CIDELSA_CHARRAM_SIZE 0x800 | |
| 8 | ||
| 9 | #define CIDELSA_PAGERAM_MASK 0x3ff | |
| 10 | #define DRACO_PAGERAM_MASK 0x7ff | |
| 11 | #define CIDELSA_CHARRAM_MASK 0x7ff | |
| 12 | ||
| 13 | #define SCREEN_TAG "main" | |
| 14 | #define CDP1869_TAG "cdp1869" | |
| 15 | ||
| 16 | /* Page RAM Access */ | |
| 17 | ||
| 18 | static CDP1869_PAGE_RAM_READ(cidelsa_pageram_r) | |
| 19 | { | |
| 20 | cidelsa_state *state = device->machine->driver_data; | |
| 21 | ||
| 22 | UINT16 addr = pma & CIDELSA_PAGERAM_MASK; | |
| 23 | ||
| 24 | if (BIT(pma, 10)) | |
| 25 | { | |
| 26 | return 0xff; | |
| 27 | } | |
| 28 | ||
| 29 | return state->pageram[addr]; | |
| 30 | } | |
| 31 | ||
| 32 | static CDP1869_PAGE_RAM_WRITE(cidelsa_pageram_w) | |
| 33 | { | |
| 34 | cidelsa_state *state = device->machine->driver_data; | |
| 35 | ||
| 36 | UINT16 addr = pma & CIDELSA_PAGERAM_MASK; | |
| 37 | ||
| 38 | if (BIT(pma, 10)) | |
| 39 | { | |
| 40 | return; | |
| 41 | } | |
| 42 | ||
| 43 | state->pageram[addr] = data; | |
| 44 | } | |
| 45 | ||
| 46 | static CDP1869_PAGE_RAM_READ(draco_pageram_r) | |
| 47 | { | |
| 48 | cidelsa_state *state = device->machine->driver_data; | |
| 49 | ||
| 50 | UINT16 addr = pma & DRACO_PAGERAM_MASK; | |
| 51 | ||
| 52 | return state->pageram[addr]; | |
| 53 | } | |
| 54 | ||
| 55 | static CDP1869_PAGE_RAM_WRITE(draco_pageram_w) | |
| 56 | { | |
| 57 | cidelsa_state *state = device->machine->driver_data; | |
| 58 | ||
| 59 | UINT16 addr = pma & DRACO_PAGERAM_MASK; | |
| 60 | ||
| 61 | state->pageram[addr] = data; | |
| 62 | } | |
| 63 | ||
| 64 | /* Character RAM Access */ | |
| 65 | ||
| 66 | static CDP1869_CHAR_RAM_READ(cidelsa_charram_r) | |
| 67 | { | |
| 68 | cidelsa_state *state = device->machine->driver_data; | |
| 69 | ||
| 70 | UINT8 column = BIT(pma, 10) ? 0xff : state->pageram[pma & CIDELSA_PAGERAM_MASK]; | |
| 71 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 72 | ||
| 73 | UINT8 data = state->charram[addr]; | |
| 74 | state->cdp1869_pcb = state->pcbram[addr]; | |
| 75 | ||
| 76 | return data; | |
| 77 | } | |
| 78 | ||
| 79 | static CDP1869_CHAR_RAM_WRITE(cidelsa_charram_w) | |
| 80 | { | |
| 81 | cidelsa_state *state = device->machine->driver_data; | |
| 82 | ||
| 83 | UINT8 column = BIT(pma, 10) ? 0xff : state->pageram[pma & CIDELSA_PAGERAM_MASK]; | |
| 84 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 85 | ||
| 86 | state->charram[addr] = data; | |
| 87 | state->pcbram[addr] = state->cdp1802_q; | |
| 88 | } | |
| 89 | ||
| 90 | static CDP1869_CHAR_RAM_READ(draco_charram_r) | |
| 91 | { | |
| 92 | cidelsa_state *state = device->machine->driver_data; | |
| 93 | ||
| 94 | UINT8 column = state->pageram[pma & DRACO_PAGERAM_MASK]; | |
| 95 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 96 | ||
| 97 | UINT8 data = state->charram[addr]; | |
| 98 | state->cdp1869_pcb = state->pcbram[addr]; | |
| 99 | ||
| 100 | return data; | |
| 101 | } | |
| 102 | ||
| 103 | static CDP1869_CHAR_RAM_WRITE(draco_charram_w) | |
| 104 | { | |
| 105 | cidelsa_state *state = device->machine->driver_data; | |
| 106 | ||
| 107 | UINT8 column = state->pageram[pma & DRACO_PAGERAM_MASK]; | |
| 108 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 109 | ||
| 110 | state->charram[addr] = data; | |
| 111 | state->pcbram[addr] = state->cdp1802_q; | |
| 112 | } | |
| 113 | ||
| 114 | /* Page Color Bit Access */ | |
| 115 | ||
| 116 | static CDP1869_PCB_READ(cidelsa_pcb_r) | |
| 117 | { | |
| 118 | cidelsa_state *state = device->machine->driver_data; | |
| 119 | ||
| 120 | UINT8 column = state->pageram[pma & CIDELSA_PAGERAM_MASK]; | |
| 121 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 122 | ||
| 123 | return state->pcbram[addr]; | |
| 124 | } | |
| 125 | ||
| 126 | static CDP1869_PCB_READ(draco_pcb_r) | |
| 127 | { | |
| 128 | cidelsa_state *state = device->machine->driver_data; | |
| 129 | ||
| 130 | UINT8 column = state->pageram[pma & DRACO_PAGERAM_MASK]; | |
| 131 | UINT16 addr = ((column << 3) | (cma & 0x07)) & CIDELSA_CHARRAM_MASK; | |
| 132 | ||
| 133 | return state->pcbram[addr]; | |
| 134 | } | |
| 135 | ||
| 136 | /* Predisplay Changed Handler */ | |
| 137 | ||
| 138 | static CDP1869_ON_PRD_CHANGED(cidelsa_prd_changed) | |
| 139 | { | |
| 140 | cidelsa_state *state = device->machine->driver_data; | |
| 141 | ||
| 142 | // PRD is inverted | |
| 143 | ||
| 144 | cpunum_set_input_line(device->machine, 0, INPUT_LINE_IRQ0, !prd); | |
| 145 | state->cdp1869_prd = !prd; | |
| 146 | } | |
| 147 | ||
| 148 | static CDP1869_ON_PRD_CHANGED(draco_prd_changed) | |
| 149 | { | |
| 150 | cidelsa_state *state = device->machine->driver_data; | |
| 151 | ||
| 152 | state->cdp1869_prd = prd; | |
| 153 | } | |
| 154 | ||
| 155 | /* CDP1869 Interface */ | |
| 156 | ||
| 157 | static const cdp1869_interface destryer_cdp1869_intf = | |
| 158 | { | |
| 159 | SCREEN_TAG, | |
| 160 | DESTRYER_CHR2, | |
| 161 | 0, | |
| 162 | CDP1869_PAL, | |
| 163 | cidelsa_pageram_r, | |
| 164 | cidelsa_pageram_w, | |
| 165 | cidelsa_pcb_r, | |
| 166 | cidelsa_charram_r, | |
| 167 | cidelsa_charram_w, | |
| 168 | cidelsa_prd_changed, | |
| 169 | }; | |
| 170 | ||
| 171 | static const cdp1869_interface altair_cdp1869_intf = | |
| 172 | { | |
| 173 | SCREEN_TAG, | |
| 174 | ALTAIR_CHR2, | |
| 175 | 0, | |
| 176 | CDP1869_PAL, | |
| 177 | cidelsa_pageram_r, | |
| 178 | cidelsa_pageram_w, | |
| 179 | cidelsa_pcb_r, | |
| 180 | cidelsa_charram_r, | |
| 181 | cidelsa_charram_w, | |
| 182 | cidelsa_prd_changed, | |
| 183 | }; | |
| 184 | ||
| 185 | static const cdp1869_interface draco_cdp1869_intf = | |
| 186 | { | |
| 187 | SCREEN_TAG, | |
| 188 | DRACO_CHR2, | |
| 189 | 0, | |
| 190 | CDP1869_PAL, | |
| 191 | draco_pageram_r, | |
| 192 | draco_pageram_w, | |
| 193 | draco_pcb_r, | |
| 194 | draco_charram_r, | |
| 195 | draco_charram_w, | |
| 196 | draco_prd_changed, | |
| 197 | }; | |
| 198 | ||
| 199 | /* Video Start */ | |
| 200 | ||
| 201 | static VIDEO_START(cidelsa) | |
| 202 | { | |
| 203 | cidelsa_state *state = machine->driver_data; | |
| 204 | ||
| 205 | // allocate memory | |
| 206 | ||
| 207 | state->pageram = auto_malloc(CIDELSA_PAGERAM_SIZE); | |
| 208 | state->pcbram = auto_malloc(CIDELSA_CHARRAM_SIZE); | |
| 209 | state->charram = auto_malloc(CIDELSA_CHARRAM_SIZE); | |
| 210 | ||
| 211 | // register for save state | |
| 212 | ||
| 213 | state_save_register_global(state->cdp1869_prd); | |
| 214 | state_save_register_global(state->cdp1869_pcb); | |
| 215 | state_save_register_global_pointer(state->pageram, CIDELSA_PAGERAM_SIZE); | |
| 216 | state_save_register_global_pointer(state->pcbram, CIDELSA_CHARRAM_SIZE); | |
| 217 | state_save_register_global_pointer(state->charram, CIDELSA_CHARRAM_SIZE); | |
| 218 | } | |
| 219 | ||
| 220 | static VIDEO_START(draco) | |
| 221 | { | |
| 222 | cidelsa_state *state = machine->driver_data; | |
| 223 | ||
| 224 | // allocate memory | |
| 225 | ||
| 226 | state->pageram = auto_malloc(DRACO_PAGERAM_SIZE); | |
| 227 | state->pcbram = auto_malloc(CIDELSA_CHARRAM_SIZE); | |
| 228 | state->charram = auto_malloc(CIDELSA_CHARRAM_SIZE); | |
| 229 | ||
| 230 | // register for save state | |
| 231 | ||
| 232 | state_save_register_global(state->cdp1869_prd); | |
| 233 | state_save_register_global(state->cdp1869_pcb); | |
| 234 | state_save_register_global_pointer(state->pageram, DRACO_PAGERAM_SIZE); | |
| 235 | state_save_register_global_pointer(state->pcbram, CIDELSA_CHARRAM_SIZE); | |
| 236 | state_save_register_global_pointer(state->charram, CIDELSA_CHARRAM_SIZE); | |
| 237 | } | |
| 238 | ||
| 239 | /* Video Update */ | |
| 240 | ||
| 241 | static VIDEO_UPDATE( cidelsa ) | |
| 242 | { | |
| 243 | const device_config *cdp1869 = device_list_find_by_tag(screen->machine->config->devicelist, CDP1869_VIDEO, CDP1869_TAG); | |
| 244 | ||
| 245 | cdp1869_update(cdp1869, bitmap, cliprect); | |
| 246 | ||
| 247 | return 0; | |
| 248 | } | |
| 249 | ||
| 250 | /* Machine Drivers */ | |
| 251 | ||
| 252 | MACHINE_DRIVER_START( destryer_video ) | |
| 253 | MDRV_PALETTE_LENGTH(CDP1869_PALETTE_LENGTH) | |
| 254 | MDRV_PALETTE_INIT(cdp1869) | |
| 255 | ||
| 256 | MDRV_VIDEO_START(cidelsa) | |
| 257 | MDRV_VIDEO_UPDATE(cidelsa) | |
| 258 | ||
| 259 | MDRV_SCREEN_ADD(SCREEN_TAG, RASTER) | |
| 260 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 261 | MDRV_SCREEN_RAW_PARAMS(DESTRYER_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) | |
| 262 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) | |
| 263 | ||
| 264 | MDRV_DEVICE_ADD(CDP1869_TAG, CDP1869_VIDEO) | |
| 265 | MDRV_DEVICE_CONFIG(destryer_cdp1869_intf) | |
| 266 | MACHINE_DRIVER_END | |
| 267 | ||
| 268 | MACHINE_DRIVER_START( altair_video ) | |
| 269 | MDRV_PALETTE_LENGTH(CDP1869_PALETTE_LENGTH) | |
| 270 | MDRV_PALETTE_INIT(cdp1869) | |
| 271 | ||
| 272 | MDRV_VIDEO_START(cidelsa) | |
| 273 | MDRV_VIDEO_UPDATE(cidelsa) | |
| 274 | ||
| 275 | MDRV_SCREEN_ADD(SCREEN_TAG, RASTER) | |
| 276 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 277 | MDRV_SCREEN_RAW_PARAMS(ALTAIR_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) | |
| 278 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) | |
| 279 | ||
| 280 | MDRV_DEVICE_ADD(CDP1869_TAG, CDP1869_VIDEO) | |
| 281 | MDRV_DEVICE_CONFIG(altair_cdp1869_intf) | |
| 282 | MACHINE_DRIVER_END | |
| 283 | ||
| 284 | MACHINE_DRIVER_START( draco_video ) | |
| 285 | MDRV_PALETTE_LENGTH(CDP1869_PALETTE_LENGTH) | |
| 286 | MDRV_PALETTE_INIT(cdp1869) | |
| 287 | ||
| 288 | MDRV_VIDEO_START(draco) | |
| 289 | MDRV_VIDEO_UPDATE(cidelsa) | |
| 290 | ||
| 291 | MDRV_SCREEN_ADD(SCREEN_TAG, RASTER) | |
| 292 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 293 | MDRV_SCREEN_RAW_PARAMS(DRACO_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) | |
| 294 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.360, 0.024) | |
| 295 | ||
| 296 | MDRV_DEVICE_ADD(CDP1869_TAG, CDP1869_VIDEO) | |
| 297 | MDRV_DEVICE_CONFIG(draco_cdp1869_intf) | |
| 298 | MACHINE_DRIVER_END |
| r2241 | r2242 | |
|---|---|---|
| 80 | 80 | /* Sprite list size register - used in spriteroutine */ |
| 81 | 81 | |
| 82 | 82 | /* Sprite control - display all sprites, or partial list */ |
| 83 | if (offset==2 && ACCESSING_ | |
| 83 | if (offset==2 && ACCESSING_ | |
| 84 | 84 | { |
| 85 | 85 | if ((data & 0xff) == 8) |
| 86 | 86 | m92_sprite_list = (((0x100 - m92_spritecontrol[0]) & 0xff) * 4); |
| r2241 | r2242 | |
| 119 | 119 | be a different motherboard revision (most games use M92-A-B top |
| 120 | 120 | pcb, a M92-A-A revision could exist...). |
| 121 | 121 | */ |
| 122 | if (ACCESSING_ | |
| 122 | if (ACCESSING_ | |
| 123 | 123 | { |
| 124 | 124 | /* Access to upper palette bank */ |
| 125 | 125 | m92_palette_bank = (data >> 1) & 1; |
| r2241 | r2242 | |
|---|---|---|
| 24 | 24 | WRITE16_HANDLER( wwfwfest_fg0_videoram_w ) |
| 25 | 25 | { |
| 26 | 26 | /* Videoram is 8 bit, upper & lower byte writes end up in the same place */ |
| 27 | if (ACCESSING_ | |
| 27 | if (ACCESSING_ | |
| 28 | 28 | COMBINE_DATA(&wwfwfest_fg0_videoram[offset]); |
| 29 | } else if (ACCESSING_ | |
| 29 | } else if (ACCESSING_ | |
| 30 | 30 | wwfwfest_fg0_videoram[offset]=(data>>8)&0xff; |
| 31 | 31 | } else { |
| 32 | 32 | wwfwfest_fg0_videoram[offset]=data&0xff; |
| r2241 | r2242 | |
|---|---|---|
| 94 | 94 | |
| 95 | 95 | WRITE16_HANDLER( shangha3_flipscreen_w ) |
| 96 | 96 | { |
| 97 | if (ACCESSING_ | |
| 97 | if (ACCESSING_ | |
| 98 | 98 | { |
| 99 | 99 | /* bit 7 flips screen, the rest seems to always be set to 0x7e */ |
| 100 | 100 | flip_screen_set(data & 0x80); |
| r2241 | r2242 | |
|---|---|---|
| 25 | 25 | /* sprite tile codes 0x4000 - 0x7fff get remapped according to the content of these registers */ |
| 26 | 26 | WRITE16_HANDLER( taotaido_sprite_character_bank_select_w ) |
| 27 | 27 | { |
| 28 | if(ACCESSING_ | |
| 28 | if(ACCESSING_ | |
| 29 | 29 | taotaido_sprite_character_bank_select[offset*2] = data >> 8; |
| 30 | if(ACCESSING_ | |
| 30 | if(ACCESSING_ | |
| 31 | 31 | taotaido_sprite_character_bank_select[offset*2+1] = data &0xff; |
| 32 | 32 | } |
| 33 | 33 | |
| r2241 | r2242 | |
| 153 | 153 | case 5: |
| 154 | 154 | case 6: |
| 155 | 155 | case 7: |
| 156 | if(ACCESSING_ | |
| 156 | if(ACCESSING_ | |
| 157 | 157 | taotaido_video_bank_select[(offset-4)*2] = data >> 8; |
| 158 | if(ACCESSING_ | |
| 158 | if(ACCESSING_ | |
| 159 | 159 | taotaido_video_bank_select[(offset-4)*2+1] = data &0xff; |
| 160 | 160 | tilemap_mark_all_tiles_dirty(bg_tilemap); |
| 161 | 161 | break; |
| r2241 | r2242 | |
|---|---|---|
| 303 | 303 | |
| 304 | 304 | WRITE16_HANDLER( m107_spritebuffer_w ) |
| 305 | 305 | { |
| 306 | if (ACCESSING_ | |
| 306 | if (ACCESSING_ | |
| 307 | 307 | // logerror("%04x: buffered spriteram\n",activecpu_get_pc()); |
| 308 | 308 | memcpy(m107_spriteram,spriteram16,0x1000); |
| 309 | 309 | } |
| r2241 | r2242 | |
|---|---|---|
| 72 | 72 | |
| 73 | 73 | WRITE16_HANDLER( crshrace_roz_bank_w ) |
| 74 | 74 | { |
| 75 | if (ACCESSING_ | |
| 75 | if (ACCESSING_ | |
| 76 | 76 | { |
| 77 | 77 | if (roz_bank != (data & 0xff)) |
| 78 | 78 | { |
| r2241 | r2242 | |
| 85 | 85 | |
| 86 | 86 | WRITE16_HANDLER( crshrace_gfxctrl_w ) |
| 87 | 87 | { |
| 88 | if (ACCESSING_ | |
| 88 | if (ACCESSING_ | |
| 89 | 89 | { |
| 90 | 90 | gfxctrl = data & 0xdf; |
| 91 | 91 | flipscreen = data & 0x20; |
| r2241 | r2242 | |
|---|---|---|
| 106 | 106 | /* b5 = active background plane */ |
| 107 | 107 | /* b6 = active middle plane */ |
| 108 | 108 | /* b7 = active sprites */ |
| 109 | if (ACCESSING_ | |
| 109 | if (ACCESSING_ | |
| 110 | 110 | { |
| 111 | 111 | sf_active = data & 0xff; |
| 112 | 112 | flip_screen_set(data & 0x04); |
| r2241 | r2242 | |
|---|---|---|
| 94 | 94 | |
| 95 | 95 | WRITE16_HANDLER( dooyong_bgscroll16_w ) |
| 96 | 96 | { |
| 97 | if (ACCESSING_ | |
| 97 | if (ACCESSING_ | |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | WRITE16_HANDLER( dooyong_bg2scroll16_w ) |
| 101 | 101 | { |
| 102 | if (ACCESSING_ | |
| 102 | if (ACCESSING_ | |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | WRITE16_HANDLER( dooyong_fgscroll16_w ) |
| 106 | 106 | { |
| 107 | if (ACCESSING_ | |
| 107 | if (ACCESSING_ | |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | WRITE16_HANDLER( dooyong_fg2scroll16_w ) |
| 111 | 111 | { |
| 112 | if (ACCESSING_ | |
| 112 | if (ACCESSING_ | |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | |
| r2241 | r2242 | |
| 188 | 188 | |
| 189 | 189 | WRITE16_HANDLER( rshark_ctrl_w ) |
| 190 | 190 | { |
| 191 | if (ACCESSING_ | |
| 191 | if (ACCESSING_ | |
| 192 | 192 | { |
| 193 | 193 | /* bit 0 flips screen */ |
| 194 | 194 | flip_screen_set(data & 0x0001); |
| r2241 | r2242 | |
|---|---|---|
| 373 | 373 | if (mem_mask) |
| 374 | 374 | { |
| 375 | 375 | data &= ~mem_mask; |
| 376 | if (ACCESSING_ | |
| 376 | if (ACCESSING_ | |
| 377 | 377 | data |= data >> 8; |
| 378 | 378 | else |
| 379 | 379 | data |= data << 8; |
| r2241 | r2242 | |
| 386 | 386 | if (mem_mask) |
| 387 | 387 | { |
| 388 | 388 | data &= ~mem_mask; |
| 389 | if (ACCESSING_ | |
| 389 | if (ACCESSING_ | |
| 390 | 390 | data |= data >> 8; |
| 391 | 391 | else |
| 392 | 392 | data |= data << 8; |
| r2241 | r2242 | |
| 398 | 398 | case 0x09: |
| 399 | 399 | case 0x0a: |
| 400 | 400 | case 0x0b: |
| 401 | if (ACCESSING_ | |
| 401 | if (ACCESSING_ | |
| 402 | 402 | SN76496_0_w(machine, 0, data & 0xff); |
| 403 | 403 | break; |
| 404 | 404 | } |
| r2241 | r2242 | |
|---|---|---|
| 134 | 134 | |
| 135 | 135 | WRITE16_HANDLER( rpunch_scrollreg_w ) |
| 136 | 136 | { |
| 137 | if (ACCESSING_ | |
| 137 | if (ACCESSING_ | |
| 138 | 138 | switch (offset) |
| 139 | 139 | { |
| 140 | 140 | case 0: |
| r2241 | r2242 | |
| 158 | 158 | |
| 159 | 159 | WRITE16_HANDLER( rpunch_crtc_data_w ) |
| 160 | 160 | { |
| 161 | if (ACCESSING_ | |
| 161 | if (ACCESSING_ | |
| 162 | 162 | { |
| 163 | 163 | data &= 0xff; |
| 164 | 164 | switch (crtc_register) |
| r2241 | r2242 | |
| 178 | 178 | |
| 179 | 179 | WRITE16_HANDLER( rpunch_crtc_register_w ) |
| 180 | 180 | { |
| 181 | if (ACCESSING_ | |
| 181 | if (ACCESSING_ | |
| 182 | 182 | crtc_register = data & 0xff; |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | |
| 186 | 186 | WRITE16_HANDLER( rpunch_ins_w ) |
| 187 | 187 | { |
| 188 | if (ACCESSING_ | |
| 188 | if (ACCESSING_ | |
| 189 | 189 | { |
| 190 | 190 | if (offset == 0) |
| 191 | 191 | { |
| r2241 | r2242 | |
|---|---|---|
| 297 | 297 | { |
| 298 | 298 | static UINT8 scroll[4]; |
| 299 | 299 | |
| 300 | if (ACCESSING_ | |
| 300 | if (ACCESSING_ | |
| 301 | 301 | { |
| 302 | 302 | scroll[offset] = (data >> 8) & 0xff; |
| 303 | 303 | |
| r2241 | r2242 | |
| 310 | 310 | |
| 311 | 311 | WRITE16_HANDLER( nmk_scroll_w ) |
| 312 | 312 | { |
| 313 | if (ACCESSING_ | |
| 313 | if (ACCESSING_ | |
| 314 | 314 | { |
| 315 | 315 | static UINT8 scroll[4]; |
| 316 | 316 | |
| r2241 | r2242 | |
| 325 | 325 | |
| 326 | 326 | WRITE16_HANDLER( nmk_scroll_2_w ) |
| 327 | 327 | { |
| 328 | if (ACCESSING_ | |
| 328 | if (ACCESSING_ | |
| 329 | 329 | { |
| 330 | 330 | static UINT8 scroll[4]; |
| 331 | 331 | |
| r2241 | r2242 | |
| 369 | 369 | |
| 370 | 370 | WRITE16_HANDLER( nmk_flipscreen_w ) |
| 371 | 371 | { |
| 372 | if (ACCESSING_ | |
| 372 | if (ACCESSING_ | |
| 373 | 373 | flip_screen_set(data & 0x01); |
| 374 | 374 | } |
| 375 | 375 | |
| 376 | 376 | WRITE16_HANDLER( nmk_tilebank_w ) |
| 377 | 377 | { |
| 378 | if (ACCESSING_ | |
| 378 | if (ACCESSING_ | |
| 379 | 379 | { |
| 380 | 380 | if (bgbank != (data & 0xff)) |
| 381 | 381 | { |
| r2241 | r2242 | |
| 387 | 387 | |
| 388 | 388 | WRITE16_HANDLER( bioship_scroll_w ) |
| 389 | 389 | { |
| 390 | if (ACCESSING_ | |
| 390 | if (ACCESSING_ | |
| 391 | 391 | bioship_scroll[offset]=data>>8; |
| 392 | 392 | } |
| 393 | 393 | |
| 394 | 394 | WRITE16_HANDLER( bioship_bank_w ) |
| 395 | 395 | { |
| 396 | if (ACCESSING_ | |
| 396 | if (ACCESSING_ | |
| 397 | 397 | { |
| 398 | 398 | if (bioship_background_bank != data) |
| 399 | 399 | { |
| r2241 | r2242 | |
|---|---|---|
| 85 | 85 | # layout dependencies |
| 86 | 86 | #------------------------------------------------- |
| 87 | 87 | |
| 88 | $(DRIVERS)/astrocde.o: $(LAYOUT)/tenpindx.lh | |
| 88 | $(DRIVERS)/astrocde.o: $(LAYOUT)/gorf.lh \ | |
| 89 | $(LAYOUT)/tenpindx.lh | |
| 89 | 90 | $(DRIVERS)/circus.o: $(LAYOUT)/circus.lh \ |
| 90 | 91 | $(LAYOUT)/crash.lh |
| r0 | r2242 | |
|---|---|---|
| 1 | <mamelayout version="2"> | |
| 2 | <element name="overlay"> | |
| 3 | <rect> | |
| 4 | <bounds left="0" top="0" right="512" bottom="35" /> | |
| 5 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 6 | </rect> | |
| 7 | <rect> | |
| 8 | <bounds left="0" top="35" right="256" bottom="96" /> | |
| 9 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 10 | </rect> | |
| 11 | <rect> | |
| 12 | <bounds left="256" top="35" right="450" bottom="96" /> | |
| 13 | <color red="0" green="0.235" blue="0.11" /> | |
| 14 | </rect> | |
| 15 | <rect> | |
| 16 | <bounds left="450" top="35" right="512" bottom="96" /> | |
| 17 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 18 | </rect> | |
| 19 | <rect> | |
| 20 | <bounds left="0" top="96" right="256" bottom="128" /> | |
| 21 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 22 | </rect> | |
| 23 | <rect> | |
| 24 | <bounds left="256" top="96" right="322" bottom="128" /> | |
| 25 | <color red="0" green="0.235" blue="0.11" /> | |
| 26 | </rect> | |
| 27 | <rect> | |
| 28 | <bounds left="322" top="96" right="416" bottom="128" /> | |
| 29 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 30 | </rect> | |
| 31 | <rect> | |
| 32 | <bounds left="416" top="96" right="450" bottom="128" /> | |
| 33 | <color red="0" green="0.235" blue="0.11" /> | |
| 34 | </rect> | |
| 35 | <rect> | |
| 36 | <bounds left="450" top="96" right="512" bottom="128" /> | |
| 37 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 38 | </rect> | |
| 39 | <rect> | |
| 40 | <bounds left="0" top="128" right="224" bottom="160" /> | |
| 41 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 42 | </rect> | |
| 43 | <rect> | |
| 44 | <bounds left="224" top="128" right="322" bottom="160" /> | |
| 45 | <color red="0" green="0.235" blue="0.11" /> | |
| 46 | </rect> | |
| 47 | <rect> | |
| 48 | <bounds left="322" top="128" right="416" bottom="160" /> | |
| 49 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 50 | </rect> | |
| 51 | <rect> | |
| 52 | <bounds left="416" top="128" right="450" bottom="160" /> | |
| 53 | <color red="0" green="0.235" blue="0.11" /> | |
| 54 | </rect> | |
| 55 | <rect> | |
| 56 | <bounds left="450" top="128" right="512" bottom="160" /> | |
| 57 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 58 | </rect> | |
| 59 | <rect> | |
| 60 | <bounds left="0" top="160" right="192" bottom="192" /> | |
| 61 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 62 | </rect> | |
| 63 | <rect> | |
| 64 | <bounds left="192" top="160" right="322" bottom="192" /> | |
| 65 | <color red="0" green="0.235" blue="0.11" /> | |
| 66 | </rect> | |
| 67 | <rect> | |
| 68 | <bounds left="322" top="160" right="384" bottom="192" /> | |
| 69 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 70 | </rect> | |
| 71 | <rect> | |
| 72 | <bounds left="384" top="160" right="512" bottom="192" /> | |
| 73 | <color red="0" green="0.235" blue="0.11" /> | |
| 74 | </rect> | |
| 75 | ||
| 76 | <rect> | |
| 77 | <bounds left="0" top="192" right="35" bottom="226" /> | |
| 78 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 79 | </rect> | |
| 80 | <rect> | |
| 81 | <bounds left="35" top="192" right="450" bottom="226" /> | |
| 82 | <color red="0" green="0.235" blue="0.11" /> | |
| 83 | </rect> | |
| 84 | <rect> | |
| 85 | <bounds left="450" top="192" right="512" bottom="226" /> | |
| 86 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 87 | </rect> | |
| 88 | <rect> | |
| 89 | <bounds left="0" top="226" right="35" bottom="257" /> | |
| 90 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 91 | </rect> | |
| 92 | <rect> | |
| 93 | <bounds left="35" top="226" right="416" bottom="257" /> | |
| 94 | <color red="0" green="0.235" blue="0.11" /> | |
| 95 | </rect> | |
| 96 | <rect> | |
| 97 | <bounds left="416" top="226" right="512" bottom="257" /> | |
| 98 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 99 | </rect> | |
| 100 | <rect> | |
| 101 | <bounds left="0" top="257" right="35" bottom="318" /> | |
| 102 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 103 | </rect> | |
| 104 | <rect> | |
| 105 | <bounds left="35" top="257" right="99" bottom="318" /> | |
| 106 | <color red="0" green="0.235" blue="0.11" /> | |
| 107 | </rect> | |
| 108 | <rect> | |
| 109 | <bounds left="99" top="257" right="288" bottom="318" /> | |
| 110 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 111 | </rect> | |
| 112 | <rect> | |
| 113 | <bounds left="288" top="257" right="384" bottom="318" /> | |
| 114 | <color red="0" green="0.235" blue="0.11" /> | |
| 115 | </rect> | |
| 116 | <rect> | |
| 117 | <bounds left="384" top="257" right="512" bottom="318" /> | |
| 118 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 119 | </rect> | |
| 120 | ||
| 121 | <rect> | |
| 122 | <bounds left="0" top="318" right="35" bottom="351" /> | |
| 123 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 124 | </rect> | |
| 125 | <rect> | |
| 126 | <bounds left="35" top="318" right="224" bottom="351" /> | |
| 127 | <color red="0" green="0.235" blue="0.11" /> | |
| 128 | </rect> | |
| 129 | <rect> | |
| 130 | <bounds left="224" top="318" right="288" bottom="351" /> | |
| 131 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 132 | </rect> | |
| 133 | <rect> | |
| 134 | <bounds left="288" top="318" right="512" bottom="351" /> | |
| 135 | <color red="0" green="0.235" blue="0.11" /> | |
| 136 | </rect> | |
| 137 | ||
| 138 | <rect> | |
| 139 | <bounds left="0" top="351" right="160" bottom="384" /> | |
| 140 | <color red="0.60" green="0.60" blue="0.06" /> | |
| 141 | </rect> | |
| 142 | <rect> | |
| 143 | <bounds left="160" top="351" right="512" bottom="384" /> | |
| 144 | <color red="0" green="0.235" blue="0.11" /> | |
| 145 | </rect> | |
| 146 | </element> | |
| 147 | <view name="Color_Overlay"> | |
| 148 | <overlay element="overlay"> | |
| 149 | <bounds x="0" y="0" width="512" height="384" /> | |
| 150 | </overlay> | |
| 151 | <backdrop element="overlay"> | |
| 152 | <bounds x="0" y="0" width="512" height="384" /> | |
| 153 | <color alpha=".8" /> | |
| 154 | </backdrop> | |
| 155 | <overlay element="overlay"> | |
| 156 | <bounds x="512" y="384" width="512" height="384" /> | |
| 157 | <orientation rotate="180" /> | |
| 158 | </overlay> | |
| 159 | <backdrop element="overlay"> | |
| 160 | <bounds x="512" y="384" width="512" height="384" /> | |
| 161 | <color alpha=".8" /> | |
| 162 | <orientation rotate="180" /> | |
| 163 | </backdrop> | |
| 164 | <overlay element="overlay"> | |
| 165 | <bounds x="512" y="0" width="512" height="384" /> | |
| 166 | <orientation flipx="yes" /> | |
| 167 | </overlay> | |
| 168 | <backdrop element="overlay"> | |
| 169 | <bounds x="512" y="0" width="512" height="384" /> | |
| 170 | <color alpha=".8" /> | |
| 171 | <orientation flipx="yes" /> | |
| 172 | </backdrop> | |
| 173 | <overlay element="overlay"> | |
| 174 | <bounds x="0" y="384" width="512" height="384" /> | |
| 175 | <orientation flipy="yes" /> | |
| 176 | </overlay> | |
| 177 | <backdrop element="overlay"> | |
| 178 | <bounds x="0" y="384" width="512" height="384" /> | |
| 179 | <color alpha=".8" /> | |
| 180 | <orientation flipy="yes" /> | |
| 181 | </backdrop> | |
| 182 | <screen index="0"> | |
| 183 | <bounds x="0" y="0" width="1024" height="768" /> | |
| 184 | </screen> | |
| 185 | </view> | |
| 186 | </mamelayout> |
| r2241 | r2242 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | Bell-Fruit Cobra I/II and Viper Hardware |
| 4 | 4 | |
| 5 | driver by Phil Bennett | |
| 5 | driver by Phil Bennett and Anonymous | |
| 6 | 6 | |
| 7 | 7 | Games supported: |
| 8 | * A Question of Sport (two sets) | |
| 8 | * A Question of Sport [2 sets] | |
| 9 | * Beeline (non-working - missing disk) | |
| 9 | 10 | * Every Second Counts |
| 10 | * Inquizitor (Viper hardware) | |
| 11 | * Inquizitor (Viper hardware, non-working - missing disk) | |
| 11 | 12 | * Quizvaders |
| 12 | 13 | * Treble Top |
| 13 | 14 | |
| r2241 | r2242 | |
| 54 | 55 | |
| 55 | 56 | To do: |
| 56 | 57 | |
| 57 | * Verify blitter modes on real hardware and rewrite code | |
| 58 | * Deduce unknown chipset accesses | |
| 58 | * Complete blitter emulation | |
| 59 | 59 | * Cobra II support |
| 60 | * Implement Flare One DSP (although nothing seems to use it) | |
| 61 | 60 | * Hook up additional inputs, EM meters, lamps etc |
| 62 | * Remove a 'TODO' comment or thirty | |
| 63 | 61 | |
| 64 | 62 | Known issues: |
| 65 | 63 | |
| 66 | * trebltop: During the intro, DLT's signature is drawn incorrectly. | |
| 67 | * escounts: Colours are completely wrong. Is there a palette register | |
| 68 | somewhere that affects blitter/video output? | |
| 69 | * qos: Game clock and score dividers aren't drawn (needs line draw mode) | |
| 70 | * All games bar qos: NVRAM not saved. | |
| 64 | * All games bar qos: NVRAM not saved | |
| 71 | 65 | |
| 66 | * Viper does not have a colour palette - the Flare chipset drives RGB direct. | |
| 67 | To fix this I set default values in the palette when the machine is initialised | |
| 68 | * CPU execution rate is wrong, the hardware adds 1 TCycle to each access which is unaccounted for. | |
| 69 | * Plane priority is probably wrong but it's only used in Treble Top. | |
| 70 | * Blitter loop counts and step are wrong - they are 9 bit counts, not 8. | |
| 71 | * Blitter emulation doesn't support hi-res mode (needed for Inquizitor) | |
| 72 | ||
| 72 | 73 | ******************************************************************************/ |
| 74 | ||
| 73 | 75 | #include "driver.h" |
| 74 | 76 | #include "deprecat.h" |
| 75 | 77 | #include "machine/6850acia.h" |
| r2241 | r2242 | |
| 82 | 84 | /* |
| 83 | 85 | Defines |
| 84 | 86 | */ |
| 85 | #define Z80_XTAL | |
| 87 | #define Z80_XTAL 5910000 /* Unconfirmed */ | |
| 86 | 88 | #define M6809_XTAL 1000000 |
| 87 | 89 | |
| 88 | 90 | |
| r2241 | r2242 | |
| 96 | 98 | static UINT8 v_scroll; |
| 97 | 99 | static UINT8 flip_8; |
| 98 | 100 | static UINT8 flip_22; |
| 101 | static UINT8 videomode; | |
| 99 | 102 | |
| 100 | 103 | /* UART source/sinks */ |
| 101 | 104 | static UINT8 z80_m6809_line; |
| r2241 | r2242 | |
| 103 | 106 | static UINT8 data_r; |
| 104 | 107 | static UINT8 data_t; |
| 105 | 108 | |
| 106 | static int | |
| 109 | static int irq_state; | |
| 107 | 110 | static int acia_irq; |
| 108 | 111 | static int vblank_irq; |
| 109 | 112 | static int blitter_irq; |
| r2241 | r2242 | |
| 139 | 142 | |
| 140 | 143 | ***************************************************************************/ |
| 141 | 144 | |
| 142 | #ifdef MAME_DEBUG | |
| 143 | static int DEBUG_BLITTER = 0; | |
| 144 | #endif | |
| 145 | ||
| 146 | /* Typedefs */ | |
| 147 | 145 | typedef union |
| 148 | 146 | { |
| 149 | 147 | #ifdef LSB_FIRST |
| 148 | struct { UINT16 loword, hiword ; } ; | |
| 150 | 149 | struct { UINT8 addr0, addr1, addr2; }; |
| 151 | 150 | #else |
| 151 | struct { UINT16 hiword, loword ; } ; | |
| 152 | 152 | struct { UINT8 addr2, addr1, addr0; }; |
| 153 | 153 | #endif |
| 154 | 154 | UINT32 addr; |
| r2241 | r2242 | |
| 160 | 160 | #define CMD_PARRD 0x04 /* Never used? */ |
| 161 | 161 | #define CMD_SRCUP 0x08 |
| 162 | 162 | #define CMD_DSTUP 0x10 |
| 163 | #define CMD_SRCEN 0x20 | |
| 164 | #define CMD_DSTEN 0x40 | |
| 163 | #define CMD_LT0 0x20 | |
| 164 | #define CMD_LT1 0x40 | |
| 165 | 165 | #define CMD_LINEDRAW 0x80 |
| 166 | 166 | |
| 167 | ||
| 167 | 168 | /* All unconfirmed */ |
| 168 | 169 | //#define SRCDST_CMP 0x10 |
| 169 | 170 | //#define SRCDST_WRAP 0x20 |
| r2241 | r2242 | |
| 177 | 178 | #define MODE_BITTOBYTE 0x04 |
| 178 | 179 | #define MODE_PALREMAP 0x10 |
| 179 | 180 | |
| 180 | /* All unconfirmed */ | |
| 181 | //#define CMPFUNC_EQ 0x01 | |
| 182 | //#define CMPFUNC_NE 0x02 | |
| 183 | //#define CMPFUNC_GT 0x04 | |
| 184 | //#define CMPFUNC_PLANE 0x08 | |
| 185 | ||
| 186 | #define CMPFUNC_EQ 0x08 | |
| 181 | #define CMPFUNC_LT 0x01 | |
| 182 | #define CMPFUNC_EQ 0x02 | |
| 183 | #define CMPFUNC_GT 0x04 | |
| 184 | #define CMPFUNC_BEQ 0x08 | |
| 187 | 185 | #define CMPFUNC_LOG0 0x10 |
| 188 | 186 | #define CMPFUNC_LOG1 0x20 |
| 189 | 187 | #define CMPFUNC_LOG2 0x40 |
| r2241 | r2242 | |
| 211 | 209 | UINT8 pattern; |
| 212 | 210 | } blitter; |
| 213 | 211 | |
| 212 | #define LOOPTYPE ( ( blitter.command&0x60 ) >> 5 ) | |
| 213 | ||
| 214 | 214 | /* |
| 215 | 215 | MUSIC Semiconductor TR9C1710 RAMDAC or equivalent |
| 216 | 216 | */ |
| r2241 | r2242 | |
| 230 | 230 | UINT8 count_w; |
| 231 | 231 | } ramdac; |
| 232 | 232 | |
| 233 | ||
| 234 | #define BLUE_0 0 | |
| 235 | #define BLUE_1 1 | |
| 236 | #define BLUE_2 2 | |
| 237 | #define BLUE_3 3 | |
| 238 | #define GREEN_0 ( 0 << 2 ) | |
| 239 | #define GREEN_1 ( 1 << 2 ) | |
| 240 | #define GREEN_2 ( 2 << 2 ) | |
| 241 | #define GREEN_3 ( 3 << 2 ) | |
| 242 | #define GREEN_4 ( 4 << 2 ) | |
| 243 | #define GREEN_5 ( 5 << 2 ) | |
| 244 | #define GREEN_6 ( 6 << 2 ) | |
| 245 | #define GREEN_7 ( 7 << 2 ) | |
| 246 | #define RED_0 ( 0 << 5 ) | |
| 247 | #define RED_1 ( 1 << 5 ) | |
| 248 | #define RED_2 ( 2 << 5 ) | |
| 249 | #define RED_3 ( 3 << 5 ) | |
| 250 | #define RED_4 ( 4 << 5 ) | |
| 251 | #define RED_5 ( 5 << 5 ) | |
| 252 | #define RED_6 ( 6 << 5 ) | |
| 253 | #define RED_7 ( 7 << 5 ) | |
| 254 | ||
| 255 | static UINT8 col4bit[16]= | |
| 256 | { | |
| 257 | BLUE_0 | GREEN_0 | RED_0, | |
| 258 | BLUE_1, | |
| 259 | GREEN_2, | |
| 260 | BLUE_1 | GREEN_2, | |
| 261 | RED_2, | |
| 262 | RED_2 | BLUE_1, | |
| 263 | RED_2 | GREEN_2, | |
| 264 | RED_2 | GREEN_2 | BLUE_1, | |
| 265 | BLUE_2 | GREEN_5 | RED_5, | |
| 266 | BLUE_3, | |
| 267 | GREEN_7, | |
| 268 | BLUE_3 | GREEN_7, | |
| 269 | RED_7, | |
| 270 | RED_7 | BLUE_3, | |
| 271 | RED_7 | GREEN_7, | |
| 272 | RED_7 | GREEN_7 | BLUE_3 | |
| 273 | }; | |
| 274 | ||
| 275 | static UINT8 col3bit[16]= | |
| 276 | { | |
| 277 | 0, | |
| 278 | BLUE_3, | |
| 279 | GREEN_7, | |
| 280 | BLUE_3 | GREEN_7, | |
| 281 | RED_7, | |
| 282 | RED_7 | BLUE_3, | |
| 283 | RED_7 | GREEN_7, | |
| 284 | RED_7 | GREEN_7 | BLUE_3, | |
| 285 | 0, | |
| 286 | BLUE_3, | |
| 287 | GREEN_7, | |
| 288 | BLUE_3 | GREEN_7, | |
| 289 | RED_7, | |
| 290 | RED_7 | BLUE_3, | |
| 291 | RED_7 | GREEN_7, | |
| 292 | RED_7 | GREEN_7 | BLUE_3 | |
| 293 | }; | |
| 294 | ||
| 295 | static UINT8 col8bit[256]; | |
| 296 | static UINT8 col7bit[256]; | |
| 297 | static UINT8 col6bit[256]; | |
| 298 | static UINT8 col76index[] = {0, 2, 4, 7}; | |
| 299 | ||
| 300 | ||
| 233 | 301 | static VIDEO_UPDATE( bfcobra ) |
| 234 | 302 | { |
| 303 | static int init_colour_indexes = 1; | |
| 235 | 304 | int x, y; |
| 236 | 305 | UINT8 *src; |
| 237 | 306 | UINT32 *dest; |
| 238 | 307 | UINT32 offset; |
| 308 | UINT8 *hirescol; | |
| 309 | UINT8 *lorescol; | |
| 239 | 310 | |
| 240 | /* A bit dodgy */ | |
| 311 | /* | |
| 312 | The following is a dirty hack to init the palette index tables | |
| 313 | this should really be done elsewhere, preferably at compile time. | |
| 314 | */ | |
| 315 | if (init_colour_indexes == 1) | |
| 316 | { | |
| 317 | init_colour_indexes = 0; | |
| 318 | ||
| 319 | for (x = 0; x < 256; ++x) | |
| 320 | { | |
| 321 | UINT8 col; | |
| 322 | ||
| 323 | col8bit[x] = x; | |
| 324 | col = x & 0x7f; | |
| 325 | col = (col & 0x1f) | (col76index[ ( (col & 0x60) >> 5 ) & 3] << 5); | |
| 326 | col7bit[x] = col; | |
| 327 | ||
| 328 | col = (col & 3) | (col76index[( (col & 0x0c) >> 2) & 3] << 2 ) | | |
| 329 | (col76index[( (col & 0x30) >> 4) & 3] << 5 ); | |
| 330 | col6bit[x] = col; | |
| 331 | } | |
| 332 | } | |
| 333 | ||
| 334 | ||
| 335 | /* Select screen has to be programmed into two registers */ | |
| 336 | /* No idea what happens if the registers are different */ | |
| 241 | 337 | if (flip_8 & 0x40 && flip_22 & 0x40) |
| 242 | 338 | offset = 0x10000; |
| 243 | 339 | else |
| 244 | 340 | offset = 0; |
| 245 | 341 | |
| 342 | if(videomode & 0x20) | |
| 343 | { | |
| 344 | hirescol = col3bit; | |
| 345 | lorescol = col7bit; | |
| 346 | } | |
| 347 | else if(videomode & 0x40) | |
| 348 | { | |
| 349 | hirescol = col4bit; | |
| 350 | lorescol = col6bit; | |
| 351 | } | |
| 352 | else | |
| 353 | { | |
| 354 | hirescol = col4bit; | |
| 355 | lorescol = col8bit; | |
| 356 | } | |
| 357 | ||
| 246 | 358 | for (y = cliprect->min_y; y <= cliprect->max_y; ++y) |
| 247 | 359 | { |
| 248 | 360 | UINT16 y_offset = (y + v_scroll) * 256; |
| 249 | 361 | src = &video_ram[offset + y_offset]; |
| 250 | 362 | dest = BITMAP_ADDR32(bitmap, y, 0); |
| 251 | 363 | |
| 252 | for (x = cliprect->min_x; x <= cliprect->max_x; ++x) | |
| 364 | for (x = cliprect->min_x; x <= cliprect->max_x / 2; ++x) | |
| 253 | 365 | { |
| 254 | 366 | UINT8 x_offset = x + h_scroll; |
| 255 | 367 | UINT8 pen = *(src + x_offset); |
| 256 | 368 | |
| 257 | //*dest++ = screen->machine->pens[pen & ramdac.mask]; | |
| 258 | *dest++ = screen->machine->pens[pen]; | |
| 369 | if ( ( videomode & 0x81 ) == 1 || (videomode & 0x80 && pen & 0x80) ) | |
| 370 | { | |
| 371 | *dest++ = screen->machine->pens[hirescol[pen & 0x0f]]; | |
| 372 | *dest++ = screen->machine->pens[hirescol[(pen >> 4) & 0x0f]]; | |
| 373 | } | |
| 374 | else | |
| 375 | { | |
| 376 | *dest++ = screen->machine->pens[lorescol[pen]]; | |
| 377 | *dest++ = screen->machine->pens[lorescol[pen]]; | |
| 378 | } | |
| 259 | 379 | } |
| 260 | 380 | } |
| 261 | 381 | |
| r2241 | r2242 | |
| 296 | 416 | { |
| 297 | 417 | #define BLITPRG_READ(x) blitter.x = *(blitter_get_addr(blitter.program.addr++)) |
| 298 | 418 | |
| 419 | int cycles_used = 0; | |
| 420 | ||
| 421 | ||
| 299 | 422 | do |
| 300 | 423 | { |
| 301 | 424 | UINT8 srcdata = 0; |
| r2241 | r2242 | |
| 315 | 438 | BLITPRG_READ(step); |
| 316 | 439 | BLITPRG_READ(pattern); |
| 317 | 440 | |
| 318 | #ifdef MAME_DEBUG | |
| 441 | #if 0 | |
| 442 | /* This debug is now wrong ! */ | |
| 319 | 443 | if (DEBUG_BLITTER) |
| 320 | 444 | { |
| 321 | 445 | mame_printf_debug("\nBlitter (%x): Running command from 0x%.5x\n\n", activecpu_get_previouspc(), blitter.program.addr - 12); |
| r2241 | r2242 | |
| 325 | 449 | blitter.command & CMD_COLST ? "COLST" : " ", |
| 326 | 450 | blitter.command & CMD_PARRD ? "PARRD" : " ", |
| 327 | 451 | blitter.command & CMD_SRCUP ? "SRCUP" : " ", |
| 328 | blitter.command & CMD_DSTUP ? "DSTUP" : " ", | |
| 329 | blitter.command & CMD_SRCEN ? "SRCEN" : " ", | |
| 330 | blitter.command & CMD_DSTEN ? "DSTEN" : " "); | |
| 452 | blitter.command & CMD_DSTUP ? "DSTUP" : " "); | |
| 331 | 453 | |
| 332 | 454 | mame_printf_debug("Src Address Byte 0 %.2x\n", blitter.source.addr0); |
| 333 | 455 | mame_printf_debug("Src Address Byte 1 %.2x\n", blitter.source.addr1); |
| r2241 | r2242 | |
| 350 | 472 | |
| 351 | 473 | /* Ignore these writes */ |
| 352 | 474 | if (blitter.dest.addr == 0) |
| 353 | { | |
| 354 | 475 | return; |
| 355 | } | |
| 356 | 476 | |
| 357 | /* Dirty hacks for Quizvaders */ | |
| 358 | if ( (blitter.command == 0x01) || (blitter.command == 0x19) ) | |
| 359 | { | |
| 360 | blitter.command |= CMD_SRCEN; | |
| 361 | } | |
| 362 | ||
| 363 | 477 | /* Begin outer loop */ |
| 364 | 478 | for (;;) |
| 365 | 479 | { |
| 366 | 480 | UINT8 innercnt = blitter.innercnt; |
| 481 | dstdata = blitter.pattern; | |
| 367 | 482 | |
| 368 | 483 | if (blitter.command & CMD_LINEDRAW) |
| 369 | 484 | { |
| 370 | /* | |
| 371 | Line Drawing Mode | |
| 485 | do | |
| 486 | { | |
| 487 | if (blitter.modectl & MODE_YFRAC) | |
| 488 | { | |
| 489 | if (blitter.modectl & MODE_SSIGN ) | |
| 490 | blitter.dest.addr0--; | |
| 491 | else | |
| 492 | blitter.dest.addr0++; | |
| 493 | } | |
| 494 | else | |
| 495 | { | |
| 496 | if (blitter.modectl & MODE_DSIGN ) | |
| 497 | blitter.dest.addr1--; | |
| 498 | else | |
| 499 | blitter.dest.addr1++; | |
| 500 | } | |
| 501 | if( blitter.source.addr0 < blitter.step ) | |
| 502 | { | |
| 372 | 503 | |
| 373 | x1 - x0 | |
| 374 | y1 - y0 | |
| 504 | blitter.source.addr0 -=blitter.step ; | |
| 505 | blitter.source.addr0 +=blitter.source.addr1; | |
| 375 | 506 | |
| 376 | d1 = bigger | |
| 377 | d2 = smaller | |
| 507 | if ( blitter.modectl & MODE_YFRAC ) | |
| 508 | { | |
| 509 | if (blitter.modectl & MODE_DSIGN ) | |
| 510 | blitter.dest.addr1--; | |
| 511 | else | |
| 512 | blitter.dest.addr1++; | |
| 513 | } | |
| 514 | else | |
| 515 | { | |
| 516 | if (blitter.modectl & MODE_SSIGN ) | |
| 517 | blitter.dest.addr0--; | |
| 518 | else | |
| 519 | blitter.dest.addr0++; | |
| 520 | } | |
| 521 | } | |
| 522 | else | |
| 523 | { | |
| 524 | blitter.source.addr0 -=blitter.step; | |
| 525 | } | |
| 378 | 526 | |
| 379 | * SRC0 = d1/2 | |
| 380 | * SRC1 = d1 | |
| 381 | * Inner Count = d1 | |
| 382 | * DST0 = X0 | |
| 383 | * DST1 = Y0 | |
| 384 | * Source control = LSB of d1 | |
| 385 | * Step reg = d2 | |
| 386 | */ | |
| 527 | *blitter_get_addr(blitter.dest.addr) = blitter.pattern; | |
| 528 | cycles_used++; | |
| 529 | ||
| 530 | } while (--innercnt); | |
| 387 | 531 | } |
| 388 | 532 | else do |
| 389 | 533 | { |
| 390 | // UINT32 srcaddr = 0; | |
| 391 | 534 | UINT8 inhibit = 0; |
| 392 | 535 | |
| 393 | 536 | /* TODO: Set this correctly */ |
| 394 | 537 | UINT8 result = blitter.pattern; |
| 395 | 538 | |
| 396 | /* Source value is read only once in character mode */ | |
| 397 | if (blitter.modectl & MODE_BITTOBYTE && innercnt == blitter.innercnt) | |
| 539 | if (LOOPTYPE == 3 && innercnt == blitter.innercnt) | |
| 398 | 540 | { |
| 399 | if (blitter.command & CMD_SRCEN) | |
| 400 | { | |
| 401 | srcdata = *(blitter_get_addr(blitter.source.addr & 0xfffff)); | |
| 402 | } | |
| 541 | srcdata = *(blitter_get_addr(blitter.source.addr & 0xfffff)); | |
| 542 | blitter.source.loword++; | |
| 543 | cycles_used++; | |
| 403 | 544 | } |
| 404 | 545 | |
| 405 | 546 | /* Enable source address read and increment? */ |
| 406 | if ( | |
| 547 | if ( | |
| 407 | 548 | { |
| 408 | if ( | |
| 549 | if (LOOPTYPE | |
| 409 | 550 | { |
| 410 | 551 | srcdata = *(blitter_get_addr(blitter.source.addr & 0xfffff)); |
| 552 | cycles_used++; | |
| 411 | 553 | |
| 412 | /* TODO */ | |
| 413 | 554 | if (blitter.modectl & MODE_SSIGN) |
| 414 | blitter.source. | |
| 555 | blitter.source. | |
| 415 | 556 | else |
| 416 | blitter.source. | |
| 557 | blitter.source. | |
| 417 | 558 | |
| 418 | 559 | result = srcdata; |
| 419 | 560 | } |
| 420 | 561 | } |
| 421 | 562 | |
| 422 | 563 | /* Read destination pixel? */ |
| 423 | if ( | |
| 564 | if (LOOP | |
| 424 | 565 | { |
| 425 | 566 | dstdata = *blitter_get_addr(blitter.dest.addr & 0xfffff); |
| 567 | cycles_used++; | |
| 426 | 568 | } |
| 427 | 569 | |
| 428 | 570 | /* Inhibit depending on the bit selected by the inner count */ |
| r2241 | r2242 | |
| 431 | 573 | if (blitter.modectl & MODE_BITTOBYTE) |
| 432 | 574 | { |
| 433 | 575 | inhibit = !(srcdata & (1 << (8 - innercnt))); |
| 576 | } | |
| 434 | 577 | |
| 435 | if (innercnt == 1) | |
| 578 | if (blitter.compfunc & CMPFUNC_BEQ) | |
| 579 | { | |
| 580 | if (srcdata == blitter.pattern) | |
| 436 | 581 | { |
| 437 | blitter.source.addr = (blitter.source.addr + 1) & 0xfffff; | |
| 582 | inhibit = 1; | |
| 583 | ||
| 584 | /* TODO: Resume from inhibit? */ | |
| 585 | if (blitter.command & CMD_COLST) | |
| 586 | return; | |
| 438 | 587 | } |
| 439 | 588 | } |
| 589 | if (blitter.compfunc & CMPFUNC_LT) | |
| 590 | { | |
| 591 | /* Might be wrong */ | |
| 592 | if ((srcdata & 0xc0) < (dstdata & 0xc0)) | |
| 593 | { | |
| 594 | inhibit = 1; | |
| 440 | 595 | |
| 441 | if (blitter.compfunc & 0x08) | |
| 596 | /* TODO: Resume from inhibit? */ | |
| 597 | if (blitter.command & CMD_COLST) | |
| 598 | return; | |
| 599 | } | |
| 600 | } | |
| 601 | if (blitter.compfunc & CMPFUNC_EQ) | |
| 442 | 602 | { |
| 443 | if (srcdata == | |
| 603 | if ((srcdata & 0xc0) == (dstd | |
| 444 | 604 | { |
| 445 | 605 | inhibit = 1; |
| 446 | 606 | |
| r2241 | r2242 | |
| 449 | 609 | return; |
| 450 | 610 | } |
| 451 | 611 | } |
| 612 | if (blitter.compfunc & CMPFUNC_GT) | |
| 613 | { | |
| 614 | /* Might be wrong */ | |
| 615 | if ((srcdata & 0xc0) > (dstdata & 0xc0)) | |
| 616 | { | |
| 617 | inhibit = 1; | |
| 452 | 618 | |
| 619 | /* TODO: Resume from inhibit? */ | |
| 620 | if (blitter.command & CMD_COLST) | |
| 621 | return; | |
| 622 | } | |
| 623 | } | |
| 624 | ||
| 453 | 625 | /* Write the data if not inhibited */ |
| 454 | 626 | if (!inhibit) |
| 455 | 627 | { |
| r2241 | r2242 | |
| 464 | 636 | UINT8 newcol = *(blitter_get_addr((blitter.source.addr + dest) & 0xfffff)); |
| 465 | 637 | |
| 466 | 638 | *blitter_get_addr(blitter.dest.addr) = newcol; |
| 639 | cycles_used += 3; | |
| 467 | 640 | } |
| 468 | 641 | else |
| 469 | 642 | { |
| 470 | *blitter_get_addr(blitter.dest.addr) = result; | |
| 643 | UINT8 final_result = 0; | |
| 644 | ||
| 645 | if (blitter.compfunc & CMPFUNC_LOG3) | |
| 646 | final_result |= result & dstdata; | |
| 647 | ||
| 648 | if (blitter.compfunc & CMPFUNC_LOG2) | |
| 649 | final_result |= result & ~dstdata; | |
| 650 | ||
| 651 | if (blitter.compfunc & CMPFUNC_LOG1) | |
| 652 | final_result |= ~result & dstdata; | |
| 653 | ||
| 654 | if (blitter.compfunc & CMPFUNC_LOG0) | |
| 655 | final_result |= ~result & ~dstdata; | |
| 656 | ||
| 657 | *blitter_get_addr(blitter.dest.addr) = final_result; | |
| 658 | cycles_used++; | |
| 471 | 659 | } |
| 472 | 660 | } |
| 473 | 661 | |
| 474 | 662 | /* Update destination address */ |
| 475 | blitter.dest.addr = (blitter.dest.addr + 1) & 0xfffff; | |
| 663 | if (blitter.modectl & MODE_DSIGN) | |
| 664 | blitter.dest.loword--; | |
| 665 | else | |
| 666 | blitter.dest.loword++; | |
| 667 | ||
| 476 | 668 | } while (--innercnt); |
| 477 | 669 | |
| 478 | 670 | if (!--blitter.outercnt) |
| r2241 | r2242 | |
| 482 | 674 | else |
| 483 | 675 | { |
| 484 | 676 | if (blitter.command & CMD_DSTUP) |
| 485 | { | |
| 486 | blitter.dest.addr = (blitter.dest.addr + blitter.step) & 0xfffff; | |
| 487 | } | |
| 677 | blitter.dest.loword += blitter.step; | |
| 488 | 678 | |
| 489 | 679 | if (blitter.command & CMD_SRCUP) |
| 490 | { | |
| 491 | blitter.source.addr = (blitter.source.addr + blitter.step) & 0xfffff; | |
| 492 | } | |
| 680 | blitter.source.loword += blitter.step; | |
| 493 | 681 | |
| 494 | 682 | if (blitter.command & CMD_PARRD) |
| 495 | 683 | { |
| r2241 | r2242 | |
| 504 | 692 | BLITPRG_READ(command); |
| 505 | 693 | |
| 506 | 694 | } while (blitter.command & CMD_RUN); |
| 695 | ||
| 696 | /* Burn Z80 cycles while blitter is in operation */ | |
| 697 | cpu_spinuntil_time( ATTOTIME_IN_NSEC( (1000000000 / Z80_XTAL)*cycles_used * 2 ) ); | |
| 507 | 698 | } |
| 508 | 699 | |
| 509 | 700 | |
| r2241 | r2242 | |
| 550 | 741 | |
| 551 | 742 | static WRITE8_HANDLER( ramdac_w ) |
| 552 | 743 | { |
| 744 | ||
| 553 | 745 | switch (offset & 3) |
| 554 | 746 | { |
| 555 | 747 | case 0: |
| r2241 | r2242 | |
| 592 | 784 | |
| 593 | 785 | 06 Interrupt status....................................WR |
| 594 | 786 | 07 Interrupt ack.......................................WR |
| 787 | Writing here sets the line number that vertical interrupt is generated at. | |
| 788 | cmd1, bit2 is the 9th bit of the line number | |
| 595 | 789 | ???? Written with 0x21 |
| 596 | 08 | |
| 597 | 09 ???? Linked with c001...............................W | |
| 790 | 08 cmd1 WR * bit 6 = screen select | |
| 791 | bit2 = 9th bit of vertical interrupt line number | |
| 792 | bit6 = 1 = select screen 1 else screen 0 | |
| 793 | 09 cmd2 Linked with c001...............................W * bit 0 = 1 = hires | |
| 794 | bit0=1=hi res else lo res (as long as bit7 is 0) | |
| 795 | bit5=mask msb of each pixel | |
| 796 | bit6=mask 2 msbits of each lores pixel | |
| 797 | bit7=1=variable resolution - resolution is set by bit 7 of each vram byte. bit7=1=2 hires pixels | |
| 598 | 798 | 0A ???? Written with 0 and 1...........................W |
| 799 | color of border | |
| 599 | 800 | |
| 600 | 801 | 0B Horizontal frame buffer scroll .....................W |
| 601 | 802 | 0C Vertical frame buffer scroll .......................W |
| 602 | 803 | |
| 603 | 0D ???? Written with $FF...............................W | |
| 604 | 0E ???? Written with $A2 (162).........................W | |
| 605 | 0F ???? Written with $B4 (180).........................W | |
| 804 | 0D Colour hold colour..................................W | |
| 805 | 0E Palette value for hi-res magenta....................W | |
| 806 | 0F Palette value for hi-res yellow?....................W | |
| 606 | 807 | 14 ....................................................W |
| 607 | 808 | |
| 608 | 809 | 18 Blitter program low byte............................WR |
| r2241 | r2242 | |
| 685 | 886 | case 0x03: |
| 686 | 887 | { |
| 687 | 888 | if (data > 0x3f) |
| 688 | { | |
| 689 | 889 | popmessage("%x: Unusual bank access (%x)\n", activecpu_get_previouspc(), data); |
| 690 | ||
| 890 | ||
| 691 | 891 | data &= 0x3f; |
| 692 | 892 | bank[offset] = data; |
| 693 | 893 | z80_bank(offset, data); |
| 694 | 894 | break; |
| 695 | 895 | } |
| 896 | ||
| 696 | 897 | case 0x08: |
| 697 | 898 | { |
| 698 | 899 | flip_8 = data; |
| 699 | 900 | break; |
| 700 | 901 | } |
| 902 | case 9: | |
| 903 | videomode = data; | |
| 904 | break; | |
| 905 | ||
| 701 | 906 | case 0x0B: |
| 702 | 907 | { |
| 703 | 908 | h_scroll = data; |
| r2241 | r2242 | |
| 708 | 913 | v_scroll = data; |
| 709 | 914 | break; |
| 710 | 915 | } |
| 916 | case 0x0E: | |
| 917 | { | |
| 918 | col4bit[5] = data; | |
| 919 | col3bit[5] = data; | |
| 920 | col3bit[5 + 8] = data; | |
| 921 | break; | |
| 922 | } | |
| 923 | case 0x0f: | |
| 924 | { | |
| 925 | col4bit[6] = data; | |
| 926 | col3bit[6] = data; | |
| 927 | col3bit[6 + 8] = data; | |
| 928 | break; | |
| 929 | } | |
| 711 | 930 | case 0x18: |
| 712 | 931 | { |
| 713 | 932 | blitter.program.addr0 = data; |
| r2241 | r2242 | |
| 730 | 949 | if (data & CMD_RUN) |
| 731 | 950 | RunBlit(); |
| 732 | 951 | else |
| 733 | mame_printf_debug | |
| 952 | mame_printf_debug | |
| 734 | 953 | |
| 735 | 954 | break; |
| 736 | 955 | } |
| r2241 | r2242 | |
| 904 | 1123 | { |
| 905 | 1124 | fdc.byte_pos = 0; |
| 906 | 1125 | |
| 907 | if(fdc.sector == fdc.stop_track || ++fdc.sector == 11) | |
| 1126 | if (fdc.sector == fdc.stop_track || ++fdc.sector == 11) | |
| 908 | 1127 | { |
| 909 | 1128 | /* End of read operation */ |
| 910 | 1129 | fdc.MSR = 0xd0; |
| r2241 | r2242 | |
| 1031 | 1250 | //mame_printf_debug(" %x\n",data); |
| 1032 | 1251 | } |
| 1033 | 1252 | |
| 1034 | if(fdc.cmd_cnt == fdc.cmd_len) | |
| 1253 | if (fdc.cmd_cnt == fdc.cmd_len) | |
| 1035 | 1254 | { |
| 1036 | 1255 | fdc.phase = fdc.next_phase; |
| 1037 | 1256 | fdc.cmd_cnt = 0; |
| r2241 | r2242 | |
| 1069 | 1288 | |
| 1070 | 1289 | static MACHINE_RESET( bfcobra ) |
| 1071 | 1290 | { |
| 1291 | unsigned int pal; | |
| 1292 | ||
| 1293 | for (pal = 0; pal < 256; ++pal) | |
| 1294 | { | |
| 1295 | palette_set_color_rgb(Machine, pal, pal3bit((pal>>5)&7), pal3bit((pal>>2)&7), pal2bit(pal&3)); | |
| 1296 | } | |
| 1297 | ||
| 1072 | 1298 | bank[0] = 1; |
| 1073 | 1299 | memset(&ramdac, 0, sizeof(ramdac)); |
| 1074 | 1300 | reset_fdc(); |
| r2241 | r2242 | |
| 1149 | 1375 | When a meter is triggered, the current drawn is sensed. If a meter |
| 1150 | 1376 | is connected, the /FIRQ line will be pulsed. |
| 1151 | 1377 | */ |
| 1152 | ||
| 1153 | for (i = 0; i<8; i++) | |
| 1378 | for (i = 0; i < 8; i++) | |
| 1154 | 1379 | { |
| 1155 | if ( | |
| 1380 | if ( | |
| 1156 | 1381 | { |
| 1157 | 1382 | Mechmtr_update(i, cycles, data & (1 << i) ); |
| 1158 | 1383 | cpunum_set_input_line(Machine, 1, M6809_FIRQ_LINE, PULSE_LINE ); |
| r2241 | r2242 | |
| 1247 | 1472 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 1248 | 1473 | |
| 1249 | 1474 | PORT_START_TAG("STROBE1") |
| 1250 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("PASS") PORT_CODE(KEYCODE_A) | |
| 1251 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("CONTINUE") PORT_CODE(KEYCODE_S) | |
| 1252 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("COLLECT") PORT_CODE(KEYCODE_D) | |
| 1253 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("START") | |
| 1254 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("BONUS") PORT_CODE(KEYCODE_F) | |
| 1475 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Pass") PORT_CODE(KEYCODE_A) | |
| 1476 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Continue") PORT_CODE(KEYCODE_S) | |
| 1477 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Collect") PORT_CODE(KEYCODE_D) | |
| 1478 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("Start") | |
| 1479 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Bonus") PORT_CODE(KEYCODE_F) | |
| 1255 | 1480 | // PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) |
| 1256 | 1481 | // PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 1257 | 1482 | // PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) |
| r2241 | r2242 | |
| 1509 | 1734 | |
| 1510 | 1735 | /* TODO */ |
| 1511 | 1736 | MDRV_SCREEN_ADD("main", RASTER) |
| 1512 | MDRV_SCREEN_REFRESH_RATE( | |
| 1737 | MDRV_SCREEN_REFRESH_RATE(50) | |
| 1513 | 1738 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
| 1514 | 1739 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) |
| 1515 | MDRV_SCREEN_SIZE(256, 256) | |
| 1516 | MDRV_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) | |
| 1740 | MDRV_SCREEN_SIZE(512, 256) | |
| 1741 | MDRV_SCREEN_VISIBLE_AREA(0, 512 - 1, 0, 256 - 1) | |
| 1517 | 1742 | MDRV_PALETTE_LENGTH(256) |
| 1518 | 1743 | |
| 1519 | 1744 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r2241 | r2242 | |
| 1578 | 1803 | ROM_LOAD( "95000173.bin", 0x10000, 0x10000, CRC(8bda2c5e) SHA1(79aab5a2af7a5add5fe9132dc13bcc3705c6faf3) ) |
| 1579 | 1804 | ROM_END |
| 1580 | 1805 | |
| 1806 | ROM_START( beeline ) | |
| 1807 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 1808 | ROM_LOAD( "bln12int.a", 0x08000, 0x08000, CRC(cb97905e) SHA1(9725156bf64e53a56bc0f90795d4b07db41d059e) ) | |
| 1809 | ||
| 1810 | ROM_REGION( 0x20000, REGION_USER1, 0 ) | |
| 1811 | ROM_LOAD( "blncob.pa", 0x00000, 0x10000, CRC(8abc0017) SHA1(ecf6e7a4021b35295eb9bb9aed1b88fff27ffbd1) ) | |
| 1812 | ROM_LOAD( "blncob.pb", 0x10000, 0x10000, CRC(feb121fe) SHA1(e83bfd6db00a3264e5076f257e261a1cb4605a83) ) | |
| 1813 | ||
| 1814 | ROM_REGION( 0x1c2000, REGION_USER2, 0 ) | |
| 1815 | ROM_LOAD( "beedisk.img", 0x000000, 0x1c2000, NO_DUMP ) | |
| 1816 | ROM_END | |
| 1817 | ||
| 1581 | 1818 | ROM_START( quizvadr ) |
| 1582 | 1819 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) |
| 1583 | 1820 | ROM_LOAD( "q6809.bin", 0x08000, 0x8000, CRC(a74dff10) SHA1(87578694a022dc3d7ade9cc76d387c1ae5fc74d9) ) |
| r2241 | r2242 | |
| 1639 | 1876 | ROM_END |
| 1640 | 1877 | |
| 1641 | 1878 | GAME( 1989, inquiztr, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Inquizitor", GAME_NOT_WORKING ) |
| 1642 | GAME( 1990, escounts, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Every Second Counts (39-360-053)", GAME_IMPERFECT_GRAPHICS | |
| 1879 | GAME( 1990, escounts, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Every Second Counts (39-360-053)", GAME_IMPERFECT_GRAPHICS | |
| 1643 | 1880 | GAME( 1991, trebltop, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Treble Top (39-360-070)", GAME_IMPERFECT_GRAPHICS ) |
| 1881 | GAME( 1991, beeline, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Beeline (39-360-075)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS ) | |
| 1644 | 1882 | GAME( 1991, quizvadr, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "Quizvaders (39-360-078)", GAME_IMPERFECT_GRAPHICS ) |
| 1645 | 1883 | GAME( 1992, qos, 0, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "A Question of Sport (39-960-107)", GAME_IMPERFECT_GRAPHICS ) |
| 1646 | 1884 | GAME( 1992, qosa, qos, bfcobra, bfcobra, bfcobra, ROT0, "BFM", "A Question of Sport (39-960-099)", GAME_IMPERFECT_GRAPHICS ) |
| r2241 | r2242 | |
|---|---|---|
| 75 | 75 | { |
| 76 | 76 | UINT8 *RAM = memory_region(REGION_SOUND1); |
| 77 | 77 | |
| 78 | if (ACCESSING_ | |
| 78 | if (ACCESSING_ | |
| 79 | 79 | memcpy(&RAM[0x30000], &RAM[0x40000 + (data & 0x0f)*0x10000], 0x10000); |
| 80 | 80 | } |
| 81 | 81 | } |
| r2241 | r2242 | |
|---|---|---|
| 265 | 265 | |
| 266 | 266 | static WRITE16_HANDLER( jumping_sound_w ) |
| 267 | 267 | { |
| 268 | if (ACCESSING_ | |
| 268 | if (ACCESSING_ | |
| 269 | 269 | { |
| 270 | 270 | jumping_latch = data & 0xff; /*M68000 writes .b to $400007*/ |
| 271 | 271 | cpunum_set_input_line(Machine, 1,0,HOLD_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | static WRITE16_HANDLER( soundcommand_w ) |
| 38 | 38 | { |
| 39 | if (ACCESSING_ | |
| 39 | if (ACCESSING_ | |
| 40 | 40 | { |
| 41 | 41 | soundlatch_w(machine,offset,data & 0xff); |
| 42 | 42 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 84 | 84 | /* Input Ports */ |
| 85 | 85 | |
| 86 | 86 | static INPUT_PORTS_START( dynduke ) |
| 87 | SEIBU_COIN_INPUTS / | |
| 87 | SEIBU_COIN_INPUTS /* | |
| 88 | 88 | |
| 89 | 89 | PORT_START_TAG("IN0") |
| 90 | 90 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r2241 | r2242 | |
|---|---|---|
| 123 | 123 | break; |
| 124 | 124 | |
| 125 | 125 | case 0x06/2: |
| 126 | if (ACCESSING_ | |
| 126 | if (ACCESSING_ | |
| 127 | 127 | { |
| 128 | 128 | data = readinputport(1) | EEPROM_read_bit(); |
| 129 | 129 | |
| r2241 | r2242 | |
| 155 | 155 | bit7 : set before massive memory writes |
| 156 | 156 | bit10 : IRQ5 ACK |
| 157 | 157 | */ |
| 158 | if (ACCESSING_ | |
| 158 | if (ACCESSING_ | |
| 159 | 159 | { |
| 160 | 160 | EEPROM_write_bit((data & 0x01) ? 1 : 0); |
| 161 | 161 | EEPROM_set_cs_line((data & 0x02) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
| 180 | 180 | |
| 181 | 181 | static WRITE16_HANDLER( sound_cmd1_w ) |
| 182 | 182 | { |
| 183 | if (ACCESSING_ | |
| 183 | if (ACCESSING_ | |
| 184 | 184 | soundlatch_w(machine, 0, data>>8); |
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | static WRITE16_HANDLER( sound_cmd2_w ) |
| 188 | 188 | { |
| 189 | if (ACCESSING_ | |
| 189 | if (ACCESSING_ | |
| 190 | 190 | soundlatch2_w(machine, 0, data>>8); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | static WRITE16_HANDLER( sound_irq_w ) |
| 194 | 194 | { |
| 195 | if (ACCESSING_ | |
| 195 | if (ACCESSING_ | |
| 196 | 196 | cpunum_set_input_line(Machine, 1, 0, HOLD_LINE); |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | static READ16_HANDLER( sound_status_msb_r ) |
| 200 | 200 | { |
| 201 | if (ACCESSING_ | |
| 201 | if (ACCESSING_ | |
| 202 | 202 | return(rng_sound_status<<8); |
| 203 | 203 | |
| 204 | 204 | return(0); |
| r2241 | r2242 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | static WRITE16_HANDLER( madmotor_sound_w ) |
| 43 | 43 | { |
| 44 | if (ACCESSING_ | |
| 44 | if (ACCESSING_ | |
| 45 | 45 | { |
| 46 | 46 | soundlatch_w(machine,0,data & 0xff); |
| 47 | 47 | cpunum_set_input_line(machine, 1,0,HOLD_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 119 | 119 | static WRITE16_HANDLER( eprom_latch_w ) |
| 120 | 120 | { |
| 121 | 121 | /* reset extra CPU */ |
| 122 | if (ACCESSING_ | |
| 122 | if (ACCESSING_ | |
| 123 | 123 | { |
| 124 | 124 | if (data & 1) |
| 125 | 125 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, CLEAR_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 105 | 105 | |
| 106 | 106 | static WRITE16_HANDLER( sound_command_w ) |
| 107 | 107 | { |
| 108 | if (ACCESSING_ | |
| 108 | if (ACCESSING_ | |
| 109 | 109 | { |
| 110 | 110 | pending_command = 1; |
| 111 | 111 | soundlatch_w(machine,offset,data & 0xff); |
| r2241 | r2242 | |
| 115 | 115 | |
| 116 | 116 | static WRITE16_HANDLER( turbofrc_sound_command_w ) |
| 117 | 117 | { |
| 118 | if (ACCESSING_ | |
| 118 | if (ACCESSING_ | |
| 119 | 119 | { |
| 120 | 120 | pending_command = 1; |
| 121 | 121 | soundlatch_w(machine,offset,(data >> 8) & 0xff); |
| r2241 | r2242 | |
| 349 | 349 | AM_RANGE(0x0fe400, 0x0fe401) AM_WRITENOP |
| 350 | 350 | AM_RANGE(0x0fe402, 0x0fe403) AM_WRITENOP |
| 351 | 351 | AM_RANGE(0x0ff000, 0x0fffff) AM_RAM AM_BASE(&aerofgt_rasterram) /* used only for the scroll registers */ |
| 352 | AM_RANGE(0x10 | |
| 352 | AM_RANGE(0x10 | |
| 353 | 353 | ADDRESS_MAP_END |
| 354 | 354 | |
| 355 | 355 | static ADDRESS_MAP_START( wbbc97_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| r2241 | r2242 | |
|---|---|---|
| 228 | 228 | |
| 229 | 229 | static WRITE16_HANDLER( galsnew_6295_bankswitch_w ) |
| 230 | 230 | { |
| 231 | if (ACCESSING_ | |
| 231 | if (ACCESSING_ | |
| 232 | 232 | { |
| 233 | 233 | UINT8 *rom = memory_region(REGION_SOUND1); |
| 234 | 234 | memcpy(&rom[0x30000],&rom[0x40000 + ((data >> 8) & 0x0f) * 0x10000],0x10000); |
| r2241 | r2242 | |
|---|---|---|
| 51 | 51 | { |
| 52 | 52 | UINT32 r = 0; |
| 53 | 53 | |
| 54 | if ( | |
| 54 | if (ACCESSING_BITS_24_31 | |
| 55 | 55 | r |= (((EEPROM_read_bit()) << 1) | (readinputport(6) << 3)) << 24; |
| 56 | 56 | |
| 57 | 57 | return r; |
| r2241 | r2242 | |
| 59 | 59 | |
| 60 | 60 | static WRITE32_HANDLER( eeprom_w ) |
| 61 | 61 | { |
| 62 | if ( | |
| 62 | if (ACCESSING_BITS_24_31 | |
| 63 | 63 | { |
| 64 | 64 | EEPROM_write_bit((data & 0x01000000) ? 1 : 0); |
| 65 | 65 | EEPROM_set_clock_line((data & 0x02000000) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
| 107 | 107 | UINT16 r = 0; |
| 108 | 108 | int reg = offset * 2; |
| 109 | 109 | |
| 110 | if (ACCESSING_ | |
| 110 | if (ACCESSING_ | |
| 111 | 111 | r |= K054539_0_r(machine, reg+0) << 8; |
| 112 | 112 | |
| 113 | if (ACCESSING_ | |
| 113 | if (ACCESSING_ | |
| 114 | 114 | r |= K054539_0_r(machine, reg+1) << 0; |
| 115 | 115 | |
| 116 | 116 | return r; |
| r2241 | r2242 | |
| 120 | 120 | { |
| 121 | 121 | int reg = offset * 2; |
| 122 | 122 | |
| 123 | if (ACCESSING_ | |
| 123 | if (ACCESSING_ | |
| 124 | 124 | K054539_0_w(machine, reg+0, (data >> 8) & 0xff); |
| 125 | 125 | |
| 126 | if (ACCESSING_ | |
| 126 | if (ACCESSING_ | |
| 127 | 127 | K054539_0_w(machine, reg+1, (data >> 0) & 0xff); |
| 128 | 128 | } |
| 129 | 129 | |
| r2241 | r2242 | |
| 131 | 131 | { |
| 132 | 132 | UINT16 r = 0; |
| 133 | 133 | |
| 134 | if ( | |
| 134 | if (ACCESSING_BITS_8_15 | |
| 135 | 135 | r |= K056800_sound_r(machine, (offset*2)+0, 0xffff) << 8; |
| 136 | 136 | |
| 137 | if ( | |
| 137 | if (ACCESSING_BITS_ | |
| 138 | 138 | r |= K056800_sound_r(machine, (offset*2)+1, 0xffff) << 0; |
| 139 | 139 | |
| 140 | 140 | return r; |
| r2241 | r2242 | |
| 142 | 142 | |
| 143 | 143 | static WRITE16_HANDLER( K056800_68k_w ) |
| 144 | 144 | { |
| 145 | if ( | |
| 145 | if (ACCESSING_BITS_8_15 | |
| 146 | 146 | K056800_sound_w(machine, (offset*2)+0, (data >> 8) & 0xff, 0xffff); |
| 147 | 147 | |
| 148 | if ( | |
| 148 | if (ACCESSING_BITS_ | |
| 149 | 149 | K056800_sound_w(machine, (offset*2)+1, (data >> 0) & 0xff, 0xffff); |
| 150 | 150 | } |
| 151 | 151 |
| r2241 | r2242 | |
|---|---|---|
| 91 | 91 | |
| 92 | 92 | static WRITE16_HANDLER( adpcm_w ) |
| 93 | 93 | { |
| 94 | if (ACCESSING_ | |
| 94 | if (ACCESSING_ | |
| 95 | 95 | OKIM6295_data_0_w(machine, offset, (data >> 8) & 0xff); |
| 96 | 96 | } |
| 97 | 97 | |
| r2241 | r2242 | |
| 105 | 105 | |
| 106 | 106 | static WRITE16_HANDLER( ym2413_w ) |
| 107 | 107 | { |
| 108 | if (ACCESSING_ | |
| 108 | if (ACCESSING_ | |
| 109 | 109 | { |
| 110 | 110 | if (offset & 1) |
| 111 | 111 | YM2413_data_port_0_w(machine, 0, (data >> 8) & 0xff); |
| r2241 | r2242 | |
| 141 | 141 | */ |
| 142 | 142 | |
| 143 | 143 | /* upper byte being modified? */ |
| 144 | if (ACCESSING_ | |
| 144 | if (ACCESSING_ | |
| 145 | 145 | { |
| 146 | 146 | if (data & 0x1000) |
| 147 | 147 | logerror("Color bank set to 1!\n"); |
| r2241 | r2242 | |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | /* lower byte being modified? */ |
| 153 | if (ACCESSING_ | |
| 153 | if (ACCESSING_ | |
| 154 | 154 | { |
| 155 | 155 | atarigen_set_oki6295_vol(machine, (data & 0x0020) ? 100 : 0); |
| 156 | 156 | if (!(data & 0x0010)) |
| r2241 | r2242 | |
|---|---|---|
| 75 | 75 | |
| 76 | 76 | static WRITE16_HANDLER( snowbros_flipscreen_w ) |
| 77 | 77 | { |
| 78 | if (ACCESSING_ | |
| 78 | if (ACCESSING_ | |
| 79 | 79 | flip_screen_set(~data & 0x8000); |
| 80 | 80 | } |
| 81 | 81 | |
| r2241 | r2242 | |
| 145 | 145 | |
| 146 | 146 | static WRITE16_HANDLER( snowbros_68000_sound_w ) |
| 147 | 147 | { |
| 148 | if (ACCESSING_ | |
| 148 | if (ACCESSING_ | |
| 149 | 149 | { |
| 150 | 150 | soundlatch_w(machine,offset,data & 0xff); |
| 151 | 151 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
| 154 | 154 | |
| 155 | 155 | static WRITE16_HANDLER( semicom_soundcmd_w ) |
| 156 | 156 | { |
| 157 | if (ACCESSING_ | |
| 157 | if (ACCESSING_ | |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | |
| r2241 | r2242 | |
| 287 | 287 | |
| 288 | 288 | static WRITE16_HANDLER( twinadv_68000_sound_w ) |
| 289 | 289 | { |
| 290 | if (ACCESSING_ | |
| 290 | if (ACCESSING_ | |
| 291 | 291 | { |
| 292 | 292 | soundlatch_w(machine,offset,data & 0xff); |
| 293 | 293 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 329 | 329 | UINT8 oldval; |
| 330 | 330 | |
| 331 | 331 | /* access is via the low 8 bits */ |
| 332 | if (!ACCESSING_ | |
| 332 | if (!ACCESSING_ | |
| 333 | 333 | return; |
| 334 | 334 | |
| 335 | 335 | data &= 0xff; |
| r2241 | r2242 | |
| 402 | 402 | static WRITE16_HANDLER( iochip_1_w ) |
| 403 | 403 | { |
| 404 | 404 | /* access is via the low 8 bits */ |
| 405 | if (!ACCESSING_ | |
| 405 | if (!ACCESSING_ | |
| 406 | 406 | return; |
| 407 | 407 | |
| 408 | 408 | data &= 0xff; |
| r2241 | r2242 | |
| 417 | 417 | |
| 418 | 418 | static WRITE16_HANDLER( iocontrol_w ) |
| 419 | 419 | { |
| 420 | if (ACCESSING_ | |
| 420 | if (ACCESSING_ | |
| 421 | 421 | { |
| 422 | 422 | logerror("I/O chip force input = %d\n", data & 1); |
| 423 | 423 | /* Racing Hero and ABCop set this and fouls up their output ports */ |
| r2241 | r2242 | |
| 436 | 436 | static WRITE16_HANDLER( aburner2_iochip_0_D_w ) |
| 437 | 437 | { |
| 438 | 438 | /* access is via the low 8 bits */ |
| 439 | if (!ACCESSING_ | |
| 439 | if (!ACCESSING_ | |
| 440 | 440 | return; |
| 441 | 441 | |
| 442 | 442 | iochip_regs[0][3] = data; |
| r2241 | r2242 | |
|---|---|---|
| 173 | 173 | { |
| 174 | 174 | int portdata; |
| 175 | 175 | |
| 176 | if ((!strcmp(Machine->gamedrv->name, "mscoutm")) || | |
| 177 | (!strcmp(Machine->gamedrv->name, "imekura")) || | |
| 178 | (!strcmp(Machine->gamedrv->name, "mjegolf"))) | |
| 176 | if ((!strcmp(machine->gamedrv->name, "mscoutm")) || | |
| 177 | (!strcmp(machine->gamedrv->name, "imekura")) || | |
| 178 | (!strcmp(machine->gamedrv->name, "mjegolf"))) | |
| 179 | 179 | { |
| 180 | 180 | |
| 181 | 181 | switch (offset) |
| r2241 | r2242 | |
| 352 | 352 | |
| 353 | 353 | static void tmpz84c011_pio_w(running_machine *machine, int offset, int data) |
| 354 | 354 | { |
| 355 | if ((!strcmp(Machine->gamedrv->name, "imekura")) || | |
| 356 | (!strcmp(Machine->gamedrv->name, "mscoutm")) || | |
| 357 | (!strcmp(Machine->gamedrv->name, "mjegolf"))) | |
| 355 | if ((!strcmp(machine->gamedrv->name, "imekura")) || | |
| 356 | (!strcmp(machine->gamedrv->name, "mscoutm")) || | |
| 357 | (!strcmp(machine->gamedrv->name, "mjegolf"))) | |
| 358 | 358 | { |
| 359 | 359 | |
| 360 | 360 | switch (offset) |
| r2241 | r2242 | |
|---|---|---|
| 320 | 320 | |
| 321 | 321 | static WRITE16_HANDLER( sslam_snd_w ) |
| 322 | 322 | { |
| 323 | if (ACCESSING_ | |
| 323 | if (ACCESSING_ | |
| 324 | 324 | { |
| 325 | 325 | logerror("PC:%06x Writing %04x to Sound CPU\n",activecpu_get_previouspc(),data); |
| 326 | 326 | if (data >= 0x40) { |
| r2241 | r2242 | |
|---|---|---|
| 92 | 92 | /* Input Ports */ |
| 93 | 93 | |
| 94 | 94 | static INPUT_PORTS_START( deadang ) |
| 95 | SEIBU_COIN_INPUTS /* | |
| 95 | SEIBU_COIN_INPUTS /* | |
| 96 | 96 | |
| 97 | 97 | PORT_START /* IN0 */ |
| 98 | 98 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r2241 | r2242 | |
| 130 | 130 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) |
| 131 | 131 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 132 | 132 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 133 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Cabinet) ) | |
| 133 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Cabinet ) ) | |
| 134 | 134 | PORT_DIPSETTING( 0x0080, DEF_STR( Upright ) ) |
| 135 | 135 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) |
| 136 | 136 | /* Dip switch B */ |
| r2241 | r2242 | |
| 158 | 158 | INPUT_PORTS_END |
| 159 | 159 | |
| 160 | 160 | static INPUT_PORTS_START( ghunter ) |
| 161 | SEIBU_COIN_INPUTS /* | |
| 161 | SEIBU_COIN_INPUTS /* | |
| 162 | 162 | |
| 163 | 163 | PORT_START /* IN0 */ |
| 164 | 164 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r2241 | r2242 | |
| 196 | 196 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Flip_Screen ) ) |
| 197 | 197 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 198 | 198 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 199 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Cabinet) ) | |
| 199 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Cabinet ) ) | |
| 200 | 200 | PORT_DIPSETTING( 0x0080, DEF_STR( Upright ) ) |
| 201 | 201 | PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) ) |
| 202 | 202 | /* Dip switch B */ |
| r2241 | r2242 | |
|---|---|---|
| 44 | 44 | static WRITE16_HANDLER(galpani2_eeprom_w) |
| 45 | 45 | { |
| 46 | 46 | COMBINE_DATA( &eeprom_word ); |
| 47 | if ( ACCESSING_ | |
| 47 | if ( ACCESSING_ | |
| 48 | 48 | { |
| 49 | 49 | // latch the bit |
| 50 | 50 | EEPROM_write_bit(data & 0x02); |
| r2241 | r2242 | |
| 186 | 186 | |
| 187 | 187 | static WRITE16_HANDLER( galpani2_coin_lockout_w ) |
| 188 | 188 | { |
| 189 | if (ACCESSING_ | |
| 189 | if (ACCESSING_ | |
| 190 | 190 | { |
| 191 | 191 | coin_counter_w(0, data & 0x0100); |
| 192 | 192 | coin_counter_w(1, data & 0x0200); |
| r2241 | r2242 | |
| 200 | 200 | |
| 201 | 201 | static WRITE16_HANDLER( galpani2_oki_0_bank_w ) |
| 202 | 202 | { |
| 203 | if (ACCESSING_ | |
| 203 | if (ACCESSING_ | |
| 204 | 204 | { |
| 205 | 205 | UINT8 *ROM = memory_region(REGION_SOUND1); |
| 206 | 206 | logerror("CPU #0 PC %06X : OKI 0 bank %08X\n",activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 210 | 210 | |
| 211 | 211 | static WRITE16_HANDLER( galpani2_oki_1_bank_w ) |
| 212 | 212 | { |
| 213 | if (ACCESSING_ | |
| 213 | if (ACCESSING_ | |
| 214 | 214 | { |
| 215 | 215 | OKIM6295_set_bank_base(1, 0x40000 * (data & 0xf) ); |
| 216 | 216 | logerror("CPU #0 PC %06X : OKI 1 bank %08X\n",activecpu_get_pc(),data); |
| r2241 | r2242 | |
|---|---|---|
| 593 | 593 | UINT32 r = 0; |
| 594 | 594 | if (offset == 0) |
| 595 | 595 | { |
| 596 | if ( | |
| 596 | if (ACCESSING_BITS_24_31 | |
| 597 | 597 | { |
| 598 | 598 | //printf("read sysreg 0\n"); |
| 599 | 599 | r |= readinputport(0) << 24; |
| 600 | 600 | } |
| 601 | if ( | |
| 601 | if (ACCESSING_BITS_16_23 | |
| 602 | 602 | { |
| 603 | 603 | r |= readinputport(1) << 16; |
| 604 | 604 | } |
| 605 | if ( | |
| 605 | if (ACCESSING_BITS_8_15 | |
| 606 | 606 | { |
| 607 | 607 | r |= readinputport(2) << 8; |
| 608 | 608 | } |
| 609 | if ( | |
| 609 | if (ACCESSING_BITS_ | |
| 610 | 610 | { |
| 611 | 611 | r |= 0xf7; |
| 612 | 612 | } |
| 613 | 613 | } |
| 614 | 614 | else if (offset == 1) |
| 615 | 615 | { |
| 616 | if ( | |
| 616 | if (ACCESSING_BITS_24_31 | |
| 617 | 617 | { |
| 618 | 618 | r |= readinputport(3) << 24; |
| 619 | 619 | } |
| r2241 | r2242 | |
| 624 | 624 | static WRITE32_HANDLER( sysreg_w ) |
| 625 | 625 | { |
| 626 | 626 | if( offset == 0 ) { |
| 627 | if ( | |
| 627 | if (ACCESSING_BITS_24_31 | |
| 628 | 628 | { |
| 629 | 629 | led_reg0 = (data >> 24) & 0xff; |
| 630 | 630 | } |
| 631 | if ( | |
| 631 | if (ACCESSING_BITS_16_23 | |
| 632 | 632 | { |
| 633 | 633 | led_reg1 = (data >> 16) & 0xff; |
| 634 | 634 | } |
| r2241 | r2242 | |
| 636 | 636 | } |
| 637 | 637 | if( offset == 1 ) |
| 638 | 638 | { |
| 639 | if ( | |
| 639 | if (ACCESSING_BITS_24_31 | |
| 640 | 640 | { |
| 641 | 641 | } |
| 642 | if ( | |
| 642 | if (ACCESSING_BITS_ | |
| 643 | 643 | { |
| 644 | 644 | if (data & 0x80) /* CG Board 1 IRQ Ack */ |
| 645 | 645 | { |
| r2241 | r2242 | |
|---|---|---|
| 187 | 187 | /* All the outputs are activated on the rising edge */ |
| 188 | 188 | static UINT16 last = 0; |
| 189 | 189 | |
| 190 | if (ACCESSING_ | |
| 190 | if (ACCESSING_ | |
| 191 | 191 | { |
| 192 | 192 | /* Bit 0-1= Resets analog controls */ |
| 193 | 193 | if ((data & 0x0001) && !(last & 0x0001)) |
| r2241 | r2242 | |
| 196 | 196 | aimpos[1] = 0; |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | if (ACCESSING_ | |
| 199 | if (ACCESSING_ | |
| 200 | 200 | { |
| 201 | 201 | /* Bit 13 = Resets the slave CPU */ |
| 202 | 202 | if ((data & 0x2000) && !(last & 0x2000)) |
| r2241 | r2242 | |
| 222 | 222 | |
| 223 | 223 | static WRITE16_HANDLER( sound_latch_w ) |
| 224 | 224 | { |
| 225 | if (ACCESSING_ | |
| 225 | if (ACCESSING_ | |
| 226 | 226 | timer_call_after_resynch(NULL, data & 0xff, sound_delayed_w); |
| 227 | 227 | } |
| 228 | 228 |
| r2241 | r2242 | |
|---|---|---|
| 66 | 66 | #include "driver.h" |
| 67 | 67 | #include "deprecat.h" |
| 68 | 68 | #include "memconv.h" |
| 69 | #include "devconv.h" | |
| 69 | 70 | #include "machine/8237dma.h" |
| 70 | 71 | #include "machine/pic8259.h" |
| 71 | 72 | #include "machine/pit8253.h" |
| r2241 | r2242 | |
| 465 | 466 | { |
| 466 | 467 | UINT32 r = 0; |
| 467 | 468 | // 0x20 - 0x21, PIC |
| 468 | if ( | |
| 469 | if (ACCESSING_BITS_ | |
| 469 | 470 | { |
| 470 | 471 | r |= pic8259_32le_0_r(machine, offset, mem_mask); |
| 471 | 472 | } |
| 472 | 473 | |
| 473 | 474 | // 0x22, 0x23, Cyrix configuration registers |
| 474 | if ( | |
| 475 | if (ACCESSING_BITS_16_23 | |
| 475 | 476 | { |
| 476 | 477 | |
| 477 | 478 | } |
| 478 | if ( | |
| 479 | if (ACCESSING_BITS_24_31 | |
| 479 | 480 | { |
| 480 | 481 | r |= mediagx_config_reg_r() << 24; |
| 481 | 482 | } |
| r2241 | r2242 | |
| 485 | 486 | static WRITE32_HANDLER( io20_w ) |
| 486 | 487 | { |
| 487 | 488 | // 0x20 - 0x21, PIC |
| 488 | if ( | |
| 489 | if (ACCESSING_BITS_ | |
| 489 | 490 | { |
| 490 | 491 | pic8259_32le_0_w(machine, offset, data, mem_mask); |
| 491 | 492 | } |
| 492 | 493 | |
| 493 | 494 | // 0x22, 0x23, Cyrix configuration registers |
| 494 | if ( | |
| 495 | if (ACCESSING_BITS_16_23 | |
| 495 | 496 | { |
| 496 | 497 | mediagx_config_reg_sel = (data >> 16) & 0xff; |
| 497 | 498 | } |
| 498 | if ( | |
| 499 | if (ACCESSING_BITS_24_31 | |
| 499 | 500 | { |
| 500 | 501 | mediagx_config_reg_w((data >> 24) & 0xff); |
| 501 | 502 | } |
| r2241 | r2242 | |
| 505 | 506 | { |
| 506 | 507 | UINT32 r = 0; |
| 507 | 508 | |
| 508 | if ( | |
| 509 | if (ACCESSING_BITS_8_15 | |
| 509 | 510 | { |
| 510 | 511 | UINT8 nibble = parallel_latched;//(readinputport(parallel_pointer / 3) >> (4 * (parallel_pointer % 3))) & 15; |
| 511 | 512 | r |= ((~nibble & 0x08) << 12) | ((nibble & 0x07) << 11); |
| r2241 | r2242 | |
| 525 | 526 | |
| 526 | 527 | //r |= control_read << 8;*/ |
| 527 | 528 | } |
| 528 | if ( | |
| 529 | if (ACCESSING_BITS_16_23 | |
| 529 | 530 | { |
| 530 | 531 | r |= parport & 0xff0000; |
| 531 | 532 | } |
| r2241 | r2242 | |
| 537 | 538 | { |
| 538 | 539 | COMBINE_DATA( &parport ); |
| 539 | 540 | |
| 540 | if ( | |
| 541 | if (ACCESSING_BITS_ | |
| 541 | 542 | { |
| 542 | 543 | /* |
| 543 | 544 | Controls: |
| r2241 | r2242 | |
| 698 | 699 | { |
| 699 | 700 | if (offset == 0) |
| 700 | 701 | { |
| 701 | if ( | |
| 702 | if (ACCESSING_BITS_16_31 | |
| 702 | 703 | { |
| 703 | 704 | UINT16 ldata = (data >> 16) & 0xffff; |
| 704 | 705 | dacl[dacl_ptr++] = ldata; |
| 705 | 706 | } |
| 706 | if ( | |
| 707 | if (ACCESSING_BITS_ | |
| 707 | 708 | { |
| 708 | 709 | UINT16 rdata = data & 0xffff; |
| 709 | 710 | dacr[dacr_ptr++] = rdata; |
| r2241 | r2242 | |
| 718 | 719 | } |
| 719 | 720 | } |
| 720 | 721 | |
| 722 | DEV_READWRITE8TO32LE( mediagx_pit8254_32le, pit8253_r, pit8253_w ) | |
| 723 | ||
| 724 | ||
| 721 | 725 | /*****************************************************************************/ |
| 722 | 726 | |
| 723 | 727 | static ADDRESS_MAP_START( mediagx_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| r2241 | r2242 | |
| 736 | 740 | static ADDRESS_MAP_START(mediagx_io, ADDRESS_SPACE_IO, 32) |
| 737 | 741 | AM_RANGE(0x0000, 0x001f) AM_READWRITE(dma8237_32le_0_r, dma8237_32le_0_w) |
| 738 | 742 | AM_RANGE(0x0020, 0x0023) AM_READWRITE(io20_r, io20_w) |
| 739 | AM_RANGE(0x0040, 0x005f) AM_READWRITE(pit825 | |
| 743 | AM_RANGE(0x0040, 0x005f) AM_DEVREADWRITE(PIT8254, "pit8254", mediagx_pit8254_32le_ | |
| 740 | 744 | AM_RANGE(0x0060, 0x006f) AM_READWRITE(kbdc8042_32le_r, kbdc8042_32le_w) |
| 741 | 745 | AM_RANGE(0x0070, 0x007f) AM_READWRITE(mc146818_port32le_r, mc146818_port32le_w) |
| 742 | 746 | AM_RANGE(0x0080, 0x009f) AM_READWRITE(at_page32_r, at_page32_w) |
| r2241 | r2242 | |
| 860 | 864 | ide_controller_reset(0); |
| 861 | 865 | } |
| 862 | 866 | |
| 867 | static PIT8253_OUTPUT_CHANGED( pc_timer0_w ) | |
| 868 | { | |
| 869 | pic8259_set_irq_line(0, 0, state); | |
| 870 | } | |
| 871 | ||
| 872 | ||
| 873 | static const struct pit8253_config mediagx_pit8254_config = | |
| 874 | { | |
| 875 | { | |
| 876 | { | |
| 877 | 4772720/4, /* heartbeat IRQ */ | |
| 878 | pc_timer0_w, | |
| 879 | NULL | |
| 880 | }, { | |
| 881 | 4772720/4, /* dram refresh */ | |
| 882 | NULL, | |
| 883 | NULL | |
| 884 | }, { | |
| 885 | 4772720/4, /* pio port c pin 4, and speaker polling enough */ | |
| 886 | NULL, | |
| 887 | NULL | |
| 888 | } | |
| 889 | } | |
| 890 | }; | |
| 891 | ||
| 892 | ||
| 863 | 893 | static MACHINE_DRIVER_START(mediagx) |
| 864 | 894 | |
| 865 | 895 | /* basic machine hardware */ |
| r2241 | r2242 | |
| 869 | 899 | |
| 870 | 900 | MDRV_MACHINE_RESET(mediagx) |
| 871 | 901 | |
| 902 | MDRV_DEVICE_ADD( "pit8254", PIT8254 ) | |
| 903 | MDRV_DEVICE_CONFIG( mediagx_pit8254_config ) | |
| 904 | ||
| 872 | 905 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 873 | 906 | |
| 874 | 907 | /* video hardware */ |
| r2241 | r2242 | |
| 927 | 960 | |
| 928 | 961 | static void init_mediagx(running_machine *machine) |
| 929 | 962 | { |
| 930 | init_pc_common(PCCOMMON_KEYBOARD_AT | PCCOMMON_DMA8237_AT | |
| 963 | init_pc_common(PCCOMMON_KEYBOARD_AT | PCCOMMON_DMA8237_AT | |
| 931 | 964 | mc146818_init(MC146818_STANDARD); |
| 932 | 965 | |
| 933 | 966 | pci_init(); |
| r2241 | r2242 | |
|---|---|---|
| 178 | 178 | COMBINE_DATA(&control_data); |
| 179 | 179 | |
| 180 | 180 | /* handle EEPROM I/O */ |
| 181 | if ( | |
| 181 | if (ACCESSING_BITS_16_23 | |
| 182 | 182 | { |
| 183 | 183 | EEPROM_write_bit(data & 0x00800000); |
| 184 | 184 | EEPROM_set_cs_line((data & 0x00200000) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 824 | 824 | |
| 825 | 825 | static WRITE32_HANDLER( sound_fifo_w ) |
| 826 | 826 | { |
| 827 | if( | |
| 827 | if( ACCESSING_BITS_ | |
| 828 | 828 | z80_fifoin_push(data & 0xff); |
| 829 | 829 | } |
| 830 | 830 | } |
| r2241 | r2242 | |
| 852 | 852 | |
| 853 | 853 | static WRITE32_HANDLER( ds2404_reset_w ) |
| 854 | 854 | { |
| 855 | if( ACCESSING_ | |
| 855 | if( ACCESSING_ | |
| 856 | 856 | DS2404_1W_reset_w(machine, offset, data); |
| 857 | 857 | } |
| 858 | 858 | } |
| 859 | 859 | |
| 860 | 860 | static READ32_HANDLER( ds2404_data_r ) |
| 861 | 861 | { |
| 862 | if( ACCESSING_ | |
| 862 | if( ACCESSING_ | |
| 863 | 863 | return DS2404_data_r(machine, offset); |
| 864 | 864 | } |
| 865 | 865 | return 0; |
| r2241 | r2242 | |
| 867 | 867 | |
| 868 | 868 | static WRITE32_HANDLER( ds2404_data_w ) |
| 869 | 869 | { |
| 870 | if( ACCESSING_ | |
| 870 | if( ACCESSING_ | |
| 871 | 871 | DS2404_data_w(machine, offset, data); |
| 872 | 872 | } |
| 873 | 873 | } |
| 874 | 874 | |
| 875 | 875 | static WRITE32_HANDLER( ds2404_clk_w ) |
| 876 | 876 | { |
| 877 | if( ACCESSING_ | |
| 877 | if( ACCESSING_ | |
| 878 | 878 | DS2404_clk_w(machine, offset, data); |
| 879 | 879 | } |
| 880 | 880 | } |
| r2241 | r2242 | |
| 882 | 882 | static WRITE32_HANDLER( eeprom_w ) |
| 883 | 883 | { |
| 884 | 884 | // tile banks |
| 885 | if( | |
| 885 | if( ACCESSING_BITS_16_23 | |
| 886 | 886 | rf2_set_layer_banks(data >> 16); |
| 887 | 887 | EEPROM_write_bit((data & 0x800000) ? 1 : 0); |
| 888 | 888 | EEPROM_set_clock_line((data & 0x400000) ? ASSERT_LINE : CLEAR_LINE); |
| r2241 | r2242 | |
| 896 | 896 | |
| 897 | 897 | static WRITE32_HANDLER( z80_prg_fifo_w ) |
| 898 | 898 | { |
| 899 | if( ACCESSING_ | |
| 899 | if( ACCESSING_ | |
| 900 | 900 | if (z80_prg_fifo_pos<0x40000) z80_rom[z80_prg_fifo_pos] = data & 0xff; |
| 901 | 901 | z80_prg_fifo_pos++; |
| 902 | 902 | } |
| r2241 | r2242 | |
| 905 | 905 | static WRITE32_HANDLER( z80_enable_w ) |
| 906 | 906 | { |
| 907 | 907 | // tile banks |
| 908 | if( | |
| 908 | if( ACCESSING_BITS_16_23 | |
| 909 | 909 | rf2_set_layer_banks(data >> 16); |
| 910 | 910 | } |
| 911 | 911 | |
| 912 | 912 | logerror("z80 data = %08x mask = %08x\n",data,mem_mask); |
| 913 | if( | |
| 913 | if( ACCESSING_BITS_ | |
| 914 | 914 | if( data & 0x1 ) { |
| 915 | 915 | z80_prg_fifo_pos = 0; |
| 916 | 916 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, CLEAR_LINE ); |
| r2241 | r2242 | |
| 922 | 922 | |
| 923 | 923 | static READ32_HANDLER( spi_controls1_r ) |
| 924 | 924 | { |
| 925 | if( ACCESSING_ | |
| 925 | if( ACCESSING_ | |
| 926 | 926 | return (readinputport(1) << 8) | readinputport(0) | 0xffff0000; |
| 927 | 927 | } |
| 928 | 928 | return 0xffffffff; |
| r2241 | r2242 | |
| 930 | 930 | |
| 931 | 931 | static READ32_HANDLER( spi_controls2_r ) |
| 932 | 932 | { |
| 933 | if( ACCESSING_ | |
| 933 | if( ACCESSING_ | |
| 934 | 934 | return ((readinputport(2) | 0xffffff00) & ~0x40) | (EEPROM_read_bit() << 6); |
| 935 | 935 | } |
| 936 | 936 | return 0xffffffff; |
| r2241 | r2242 | |
| 948 | 948 | |
| 949 | 949 | static WRITE32_HANDLER( spi_6295_0_w ) |
| 950 | 950 | { |
| 951 | if( ACCESSING_ | |
| 951 | if( ACCESSING_ | |
| 952 | 952 | OKIM6295_data_0_w(machine, 0, data & 0xff); |
| 953 | 953 | } |
| 954 | 954 | } |
| 955 | 955 | |
| 956 | 956 | static WRITE32_HANDLER( spi_6295_1_w ) |
| 957 | 957 | { |
| 958 | if( ACCESSING_ | |
| 958 | if( ACCESSING_ | |
| 959 | 959 | OKIM6295_data_1_w(machine, 0, data & 0xff); |
| 960 | 960 | } |
| 961 | 961 | } |
| r2241 | r2242 | |
| 1795 | 1795 | MDRV_SCREEN_ADD("main", RASTER) |
| 1796 | 1796 | MDRV_SCREEN_REFRESH_RATE(54) |
| 1797 | 1797 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 1798 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB | |
| 1798 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 1799 | 1799 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 1800 | 1800 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 1801 | 1801 | |
| r2241 | r2242 | |
| 2108 | 2108 | MDRV_SCREEN_ADD("main", RASTER) |
| 2109 | 2109 | MDRV_SCREEN_REFRESH_RATE(54) |
| 2110 | 2110 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 2111 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB | |
| 2111 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 2112 | 2112 | MDRV_SCREEN_SIZE(64*8, 32*8) |
| 2113 | 2113 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 30*8-1) |
| 2114 | 2114 |
| r2241 | r2242 | |
|---|---|---|
| 192 | 192 | static WRITE16_HANDLER( nvram_data_w ) |
| 193 | 193 | { |
| 194 | 194 | /* only the low 8 bits matter */ |
| 195 | if (ACCESSING_ | |
| 195 | if (ACCESSING_ | |
| 196 | 196 | { |
| 197 | 197 | if (nvram_write_enable) |
| 198 | 198 | generic_nvram16[offset] = data & 0xff; |
| r2241 | r2242 | |
|---|---|---|
| 60 | 60 | |
| 61 | 61 | static WRITE16_HANDLER( powerins_okibank_w ) |
| 62 | 62 | { |
| 63 | if (ACCESSING_ | |
| 63 | if (ACCESSING_ | |
| 64 | 64 | { |
| 65 | 65 | UINT8 *RAM = memory_region(REGION_SOUND1); |
| 66 | 66 | int new_bank = data & 0x7; |
| r2241 | r2242 | |
| 75 | 75 | |
| 76 | 76 | static WRITE16_HANDLER( powerins_soundlatch_w ) |
| 77 | 77 | { |
| 78 | if (ACCESSING_ | |
| 78 | if (ACCESSING_ | |
| 79 | 79 | { |
| 80 | 80 | soundlatch_w(machine, 0, data & 0xff); |
| 81 | 81 | } |
| r2241 | r2242 | |
|---|---|---|
| 380 | 380 | switch(adr) { |
| 381 | 381 | case 0x28: |
| 382 | 382 | case 0x2a: |
| 383 | return (UINT16)mame_rand( | |
| 383 | return (UINT16)mame_rand(machine); | |
| 384 | 384 | case 0x00: |
| 385 | 385 | case 0x10: |
| 386 | 386 | return (UINT16)hit.x_in; |
| r2241 | r2242 | |
| 732 | 732 | { |
| 733 | 733 | switch(offset) { |
| 734 | 734 | case 2: |
| 735 | if( | |
| 735 | if(ACCESSING_BITS_24_31 | |
| 736 | 736 | { /* Coin Lock/Count */ |
| 737 | 737 | // coin_counter_w(0, data & 0x01000000); |
| 738 | 738 | // coin_counter_w(1, data & 0x02000000); |
| 739 | 739 | // coin_lockout_w(0, ~data & 0x04000000); |
| 740 | 740 | // coin_lockout_w(1, ~data & 0x08000000); // Works in puzzloop, others behave strange. |
| 741 | 741 | } |
| 742 | if( | |
| 742 | if(ACCESSING_BITS_16_23 | |
| 743 | 743 | { /* Analogue Input Select */ |
| 744 | 744 | } |
| 745 | if( | |
| 745 | if(ACCESSING_BITS_8_15 | |
| 746 | 746 | { /* Extended Output - Port A, Mahjong inputs, Comms etc. */ |
| 747 | 747 | } |
| 748 | if( | |
| 748 | if(ACCESSING_BITS_ | |
| 749 | 749 | { /* Extended Output - Port B */ |
| 750 | 750 | } |
| 751 | 751 | break; |
| 752 | 752 | case 3: |
| 753 | if( | |
| 753 | if(ACCESSING_BITS_8_15 | |
| 754 | 754 | { /* Interrupt Clear, do we need these? */ |
| 755 | 755 | /* if(data&0x01) |
| 756 | cpunum_set_input_line( | |
| 756 | cpunum_set_input_line(machine, 0,1,CLEAR_LINE); | |
| 757 | 757 | if(data&0x02) |
| 758 | cpunum_set_input_line( | |
| 758 | cpunum_set_input_line(machine, 0,3,CLEAR_LINE); | |
| 759 | 759 | if(data&0x04) |
| 760 | cpunum_set_input_line( | |
| 760 | cpunum_set_input_line(machine, 0,5,CLEAR_LINE); | |
| 761 | 761 | if(data&0x08) |
| 762 | cpunum_set_input_line( | |
| 762 | cpunum_set_input_line(machine, 0,7,CLEAR_LINE); | |
| 763 | 763 | if(data&0x10) |
| 764 | cpunum_set_input_line( | |
| 764 | cpunum_set_input_line(machine, 0,9,CLEAR_LINE); | |
| 765 | 765 | if(data&0x20) |
| 766 | cpunum_set_input_line( | |
| 766 | cpunum_set_input_line(machine, 0,0xb,CLEAR_LINE); | |
| 767 | 767 | if(data&0x40) |
| 768 | cpunum_set_input_line( | |
| 768 | cpunum_set_input_line(machine, 0,0xd,CLEAR_LINE); | |
| 769 | 769 | if(data&0x80) |
| 770 | cpunum_set_input_line( | |
| 770 | cpunum_set_input_line(machine, 0,0xf,CLEAR_LINE);*/ | |
| 771 | 771 | |
| 772 | 772 | /* idle skip for vblokbrk/sarukani, i can't find a better place to put it :-( but i think it works ok unless its making the game too fast */ |
| 773 | 773 | if (activecpu_get_pc()==0x04013B44) |
| 774 | 774 | { |
| 775 | if (!strcmp(Machine->gamedrv->name,"vblokbrk") || | |
| 776 | !strcmp(Machine->gamedrv->name,"sarukani")) | |
| 775 | if (!strcmp(machine->gamedrv->name,"vblokbrk") || | |
| 776 | !strcmp(machine->gamedrv->name,"sarukani")) | |
| 777 | 777 | cpu_spinuntil_int(); |
| 778 | 778 | } |
| 779 | 779 | |
| r2241 | r2242 | |
| 795 | 795 | mame_system_time systime; |
| 796 | 796 | long value; |
| 797 | 797 | |
| 798 | mame_get_base_datetime( | |
| 798 | mame_get_base_datetime(machine, &systime); | |
| 799 | 799 | // The clock is not y2k-compatible, wrap back 10 years, screw the leap years |
| 800 | 800 | // tm->tm_year -= 10; |
| 801 | 801 | |
| r2241 | r2242 | |
| 852 | 852 | |
| 853 | 853 | static WRITE32_HANDLER( skns_ymz280_w ) |
| 854 | 854 | { |
| 855 | if ( | |
| 855 | if (ACCESSING_BITS_24_31 | |
| 856 | 856 | YMZ280B_register_0_w(machine,offset,(data >> 24) & 0xff); |
| 857 | if ( | |
| 857 | if (ACCESSING_BITS_16_23 | |
| 858 | 858 | YMZ280B_data_0_w(machine,offset,(data >> 16) & 0xff); |
| 859 | 859 | } |
| 860 | 860 |
| r2241 | r2242 | |
|---|---|---|
| 423 | 423 | |
| 424 | 424 | static WRITE16_HANDLER( seta2_sound_bank_w ) |
| 425 | 425 | { |
| 426 | if (ACCESSING_ | |
| 426 | if (ACCESSING_ | |
| 427 | 427 | { |
| 428 | 428 | UINT8 *ROM = memory_region( REGION_SOUND1 ); |
| 429 | 429 | int banks = (memory_region_length( REGION_SOUND1 ) - 0x100000) / 0x20000; |
| r2241 | r2242 | |
| 443 | 443 | |
| 444 | 444 | static WRITE16_HANDLER( grdians_lockout_w ) |
| 445 | 445 | { |
| 446 | if (ACCESSING_ | |
| 446 | if (ACCESSING_ | |
| 447 | 447 | { |
| 448 | 448 | // initially 0, then either $25 (coin 1) or $2a (coin 2) |
| 449 | 449 | coin_counter_w(0,data & 0x01); // or 0x04 |
| r2241 | r2242 | |
| 575 | 575 | |
| 576 | 576 | static WRITE16_HANDLER( mj4simai_keyboard_w ) |
| 577 | 577 | { |
| 578 | if (ACCESSING_ | |
| 578 | if (ACCESSING_ | |
| 579 | 579 | keyboard_row = data & 0xff; |
| 580 | 580 | } |
| 581 | 581 | |
| r2241 | r2242 | |
| 691 | 691 | |
| 692 | 692 | static WRITE16_HANDLER( pzlbowl_coin_counter_w ) |
| 693 | 693 | { |
| 694 | if (ACCESSING_ | |
| 694 | if (ACCESSING_ | |
| 695 | 695 | { |
| 696 | 696 | coin_counter_w(0,data & 0x10); |
| 697 | 697 | coin_counter_w(1,data & 0x20); |
| r2241 | r2242 | |
| 780 | 780 | |
| 781 | 781 | static WRITE16_HANDLER( samshoot_coin_w ) |
| 782 | 782 | { |
| 783 | if (ACCESSING_ | |
| 783 | if (ACCESSING_ | |
| 784 | 784 | { |
| 785 | 785 | coin_counter_w(0, data & 0x10); |
| 786 | 786 | coin_counter_w(1, data & 0x20); |
| r2241 | r2242 | |
| 2096 | 2096 | ROM_LOAD( "u18.bin", 0x100000, 0x200000, CRC(de4e65e2) SHA1(82d4e590c714b3e9bf0ffaf1500deb24fd315595) ) |
| 2097 | 2097 | ROM_END |
| 2098 | 2098 | |
| 2099 | ROM_START( deerhunt ) /* Deer Hunting USA V4.3 (11/1/2000) */ | |
| 2099 | ROM_START( deerhunt ) /* Deer Hunting USA V4.3 (11/1/2000) - The "E05" breaks version label conventions but is correct & verified */ | |
| 2100 | 2100 | ROM_REGION( 0x200000, REGION_CPU1, 0 ) /* TMP68301 Code */ |
| 2101 | ROM_LOAD16_BYTE( "as0906e01-v4_3.u06", 0x000000, 0x100000, CRC(20c81f17) SHA1(d41d93d6ee88738cec55f7bf3ce6be1dbec68e09) ) | |
| 2102 | ROM_LOAD16_BYTE( "as0907e01-v4_3.u07", 0x000001, 0x100000, CRC(1731aa2a) SHA1(cffae7a99a7f960a62ef0c4454884df17a93c1a6) ) | |
| 2101 | ROM_LOAD16_BYTE( "as0906e05.u06", 0x000000, 0x100000, CRC(20c81f17) SHA1(d41d93d6ee88738cec55f7bf3ce6be1dbec68e09) ) /* CRC16 694E printed on label */ | |
| 2102 | ROM_LOAD16_BYTE( "as0907e05.u07", 0x000001, 0x100000, CRC(1731aa2a) SHA1(cffae7a99a7f960a62ef0c4454884df17a93c1a6) ) /* CRC16 5D89 printed on label */ | |
| 2103 | 2103 | |
| 2104 | 2104 | ROM_REGION( 0x2000000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites */ |
| 2105 | 2105 | ROM_LOAD( "as0901m01.u38", 0x0000000, 0x800000, CRC(1d6acf8f) SHA1(6f61fe21bebb7c87e8e6c3ef3ba73b8cf327dde9) ) |
| r2241 | r2242 | |
| 2114 | 2114 | |
| 2115 | 2115 | ROM_START( deerhuna ) /* Deer Hunting USA V4.2 (xx/x/2000) */ |
| 2116 | 2116 | ROM_REGION( 0x200000, REGION_CPU1, 0 ) /* TMP68301 Code */ |
| 2117 | ROM_LOAD16_BYTE( "as0906e01-v4_2.u06", 0x000000, 0x100000, CRC(bb3af36f) SHA1(f04071347e8ad361bf666fcb6c0136e522f19d47) ) | |
| 2118 | ROM_LOAD16_BYTE( "as0907e01-v4_2.u07", 0x000001, 0x100000, CRC(83f02117) SHA1(70fc2291bc93af3902aae88688be6a8078f7a07e) ) | |
| 2117 | ROM_LOAD16_BYTE( "as0906e04-v4_2.u06", 0x000000, 0x100000, CRC(bb3af36f) SHA1(f04071347e8ad361bf666fcb6c0136e522f19d47) ) /* CRC16 6640 printed on label */ | |
| 2118 | ROM_LOAD16_BYTE( "as0907e04-v4_2.u07", 0x000001, 0x100000, CRC(83f02117) SHA1(70fc2291bc93af3902aae88688be6a8078f7a07e) ) /* CRC16 595A printed on label */ | |
| 2119 | 2119 | |
| 2120 | 2120 | ROM_REGION( 0x2000000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites */ |
| 2121 | 2121 | ROM_LOAD( "as0901m01.u38", 0x0000000, 0x800000, CRC(1d6acf8f) SHA1(6f61fe21bebb7c87e8e6c3ef3ba73b8cf327dde9) ) |
| r2241 | r2242 | |
| 2130 | 2130 | |
| 2131 | 2131 | ROM_START( deerhunb ) /* Deer Hunting USA V4.0 (6/15/2000) */ |
| 2132 | 2132 | ROM_REGION( 0x200000, REGION_CPU1, 0 ) /* TMP68301 Code */ |
| 2133 | ROM_LOAD16_BYTE( "as0906e01-v4.u06", 0x000000, 0x100000, CRC(07d9b64a) SHA1(f9aac644aab920bbac84b14836ee589ccd51f6db) ) | |
| 2134 | ROM_LOAD16_BYTE( "as0907e01-v4.u07", 0x000001, 0x100000, CRC(19973d08) SHA1(da1cc02ce480a62ccaf94d0af1246a340f054b43) ) | |
| 2133 | ROM_LOAD16_BYTE( "as0906e04.u06", 0x000000, 0x100000, CRC(07d9b64a) SHA1(f9aac644aab920bbac84b14836ee589ccd51f6db) ) /* CRC16 7BBB printed on label */ | |
| 2134 | ROM_LOAD16_BYTE( "as0907e04.u07", 0x000001, 0x100000, CRC(19973d08) SHA1(da1cc02ce480a62ccaf94d0af1246a340f054b43) ) /* CRC16 4C78 printed on label */ | |
| 2135 | 2135 | |
| 2136 | 2136 | ROM_REGION( 0x2000000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites */ |
| 2137 | 2137 | ROM_LOAD( "as0901m01.u38", 0x0000000, 0x800000, CRC(1d6acf8f) SHA1(6f61fe21bebb7c87e8e6c3ef3ba73b8cf327dde9) ) |
| r2241 | r2242 | |
| 2144 | 2144 | ROM_LOAD( "as0905m01.u18", 0x100000, 0x400000, CRC(8d8165bb) SHA1(aca7051613d260734ee787b4c3db552c336bd600) ) |
| 2145 | 2145 | ROM_END |
| 2146 | 2146 | |
| 2147 | /* There are known versions 3.x of Deer Hunting USA.... just none are currently dumped. roms should be "AS0906 E03 U06" & "AS0907 E03 U07" */ | |
| 2148 | ||
| 2149 | ROM_START( deerhunc ) /* Deer Hunting USA V2.x - No version number is printed to screen but "E02" in EPROM label signifies V2 */ | |
| 2150 | ROM_REGION( 0x200000, REGION_CPU1, 0 ) /* TMP68301 Code */ | |
| 2151 | ROM_LOAD16_BYTE( "as0906e02.u06", 0x000000, 0x100000, CRC(190cca42) SHA1(aef63f5e8c71ed0156b8b0104c5d23872c119167) ) /* Version in program code is listed as 0.00 */ | |
| 2152 | ROM_LOAD16_BYTE( "as0907e02.u07", 0x000001, 0x100000, CRC(9de2b901) SHA1(d271bc54c41e30c0d9962eedd22f3ef2b7b8c9e5) ) /* Verified with two different sets of chips */ | |
| 2153 | ||
| 2154 | ROM_REGION( 0x2000000, REGION_GFX1, ROMREGION_DISPOSE ) /* Sprites */ | |
| 2155 | ROM_LOAD( "as0901m01.u38", 0x0000000, 0x800000, CRC(1d6acf8f) SHA1(6f61fe21bebb7c87e8e6c3ef3ba73b8cf327dde9) ) | |
| 2156 | ROM_LOAD( "as0902m01.u39", 0x0800000, 0x800000, CRC(c7ca2128) SHA1(86be3a3ec2f86f61acfa3d4d261faea3c27dc378) ) | |
| 2157 | ROM_LOAD( "as0903m01.u40", 0x1000000, 0x800000, CRC(e8ef81b3) SHA1(97666942ca6cca5b8ea6451314a2aaabad9e06ba) ) | |
| 2158 | ROM_LOAD( "as0904m01.u41", 0x1800000, 0x800000, CRC(d0f97fdc) SHA1(776c9d42d03a9f61155521212305e1ed696eaf47) ) | |
| 2159 | ||
| 2160 | ROM_REGION( 0x500000, REGION_SOUND1, 0 ) /* Samples */ | |
| 2161 | /* Leave 1MB empty (addressable by the chip) */ | |
| 2162 | ROM_LOAD( "as0905m01.u18", 0x100000, 0x400000, CRC(8d8165bb) SHA1(aca7051613d260734ee787b4c3db552c336bd600) ) | |
| 2163 | ROM_END | |
| 2164 | ||
| 2147 | 2165 | ROM_START( turkhunt ) /* V1.0 is currently the only known version */ |
| 2148 | 2166 | ROM_REGION( 0x200000, REGION_CPU1, 0 ) /* TMP68301 Code */ |
| 2149 | 2167 | ROM_LOAD16_BYTE( "asx906e01.u06", 0x000000, 0x100000, CRC(c96266e1) SHA1(0ca462b3b0f27198e36384eee6ea5c5d4e7e1293) ) |
| r2241 | r2242 | |
| 2218 | 2236 | GAME( 2000, deerhunt, 0, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.3", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2219 | 2237 | GAME( 2000, deerhuna, deerhunt, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.2", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2220 | 2238 | GAME( 2000, deerhunb, deerhunt, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V4.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2239 | GAME( 2000, deerhunc, deerhunt, samshoot, deerhunt, 0, ROT0, "Sammy USA Corporation", "Deer Hunting USA V2", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) | |
| 2221 | 2240 | GAME( 2001, turkhunt, 0, samshoot, turkhunt, 0, ROT0, "Sammy USA Corporation", "Turkey Hunting USA V1.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2222 | 2241 | GAME( 2001, wschamp, 0, samshoot, wschamp, 0, ROT0, "Sammy USA Corporation", "Wing Shooting Championship V2.0", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| 2223 | 2242 | GAME( 2001, wschampa, wschamp, samshoot, wschamp, 0, ROT0, "Sammy USA Corporation", "Wing Shooting Championship V1.01", GAME_NO_COCKTAIL | GAME_IMPERFECT_GRAPHICS ) |
| r2241 | r2242 | |
|---|---|---|
| 443 | 443 | AM_RANGE(0xc800, 0xcbff) AM_READWRITE(gfx1_vram_r, gfx1_vram_w) AM_BASE(&gfx1_vram) |
| 444 | 444 | AM_RANGE(0xcc00, 0xcfff) AM_READWRITE(gfx1_cram_r, gfx1_cram_w) AM_BASE(&gfx1_cram) |
| 445 | 445 | AM_RANGE(0xd000, 0xdfff) AM_RAM AM_BASE(&sprite_ram) |
| 446 | AM_RANGE(0xe000, 0xe7ff) AM_READWRITE(SMH_RAM, paletteram_xBBBBBGGGGGRRRRR_split1_w) AM_BASE(&paletteram) | |
| 447 | AM_RANGE(0xe800, 0xefff) AM_READWRITE(SMH_RAM, paletteram_xBBBBBGGGGGRRRRR_split2_w) AM_BASE(&paletteram_2) | |
| 446 | AM_RANGE(0xe000, 0xe7ff) AM_RAM AM_WRITE(paletteram_xBBBBBGGGGGRRRRR_split1_w) AM_BASE(&paletteram) | |
| 447 | AM_RANGE(0xe800, 0xefff) AM_RAM AM_WRITE(paletteram_xBBBBBGGGGGRRRRR_split2_w) AM_BASE(&paletteram_2) | |
| 448 | 448 | AM_RANGE(0xf000, 0xf0ff) AM_RAM AM_SHARE(1) |
| 449 | 449 | AM_RANGE(0xf100, 0xf17f) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 450 | 450 | AM_RANGE(0xf180, 0xffff) AM_RAM AM_SHARE(2) |
| r2241 | r2242 | |
|---|---|---|
| 26 | 26 | extern UINT8 *k007121_ram; |
| 27 | 27 | extern int flkatck_irq_enabled; |
| 28 | 28 | |
| 29 | static int multiply_reg[2]; | |
| 30 | ||
| 29 | 31 | /***************************************************************************/ |
| 30 | 32 | |
| 31 | 33 | static MACHINE_RESET( flkatck ) |
| r2241 | r2242 | |
| 92 | 94 | } |
| 93 | 95 | } |
| 94 | 96 | |
| 97 | /* Protection - an external multiplyer connected to the sound CPU */ | |
| 98 | static READ8_HANDLER( multiply_r ) | |
| 99 | { | |
| 100 | return (multiply_reg[0] * multiply_reg[1]) & 0xFF; | |
| 101 | } | |
| 102 | ||
| 103 | static WRITE8_HANDLER( multiply_w ) | |
| 104 | { | |
| 105 | multiply_reg[offset] = data; | |
| 106 | } | |
| 107 | ||
| 108 | ||
| 95 | 109 | static ADDRESS_MAP_START( flkatck_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 96 | 110 | AM_RANGE(0x0000, 0x03ff) AM_READ(SMH_RAM) |
| 97 | 111 | AM_RANGE(0x0400, 0x041f) AM_READ(flkatck_ls138_r) /* inputs + DIPS */ |
| r2241 | r2242 | |
| 116 | 130 | static ADDRESS_MAP_START( flkatck_readmem_sound, ADDRESS_SPACE_PROGRAM, 8 ) |
| 117 | 131 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) /* ROM */ |
| 118 | 132 | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) /* RAM */ |
| 119 | AM_RANGE(0x9000, 0x9000) AM_READ(SMH_RAM) /* ??? */ | |
| 120 | AM_RANGE(0x9001, 0x9001) AM_READ(SMH_RAM) /* ??? */ | |
| 133 | AM_RANGE(0x9000, 0x9000) AM_READ(multiply_r) /* ??? */ | |
| 134 | // AM_RANGE(0x9001, 0x9001) AM_READ(SMH_RAM) /* ??? */ | |
| 121 | 135 | AM_RANGE(0x9004, 0x9004) AM_READ(SMH_RAM) /* ??? */ |
| 122 | 136 | AM_RANGE(0xa000, 0xa000) AM_READ(soundlatch_r) /* soundlatch_r */ |
| 123 | 137 | AM_RANGE(0xb000, 0xb00d) AM_READ(K007232_read_port_0_r) /* 007232 registers */ |
| r2241 | r2242 | |
| 127 | 141 | static ADDRESS_MAP_START( flkatck_writemem_sound, ADDRESS_SPACE_PROGRAM, 8 ) |
| 128 | 142 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) /* ROM */ |
| 129 | 143 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) /* RAM */ |
| 130 | AM_RANGE(0x9000, 0x9000) AM_WRITE(SMH_RAM) /* ??? */ | |
| 131 | AM_RANGE(0x9001, 0x9001) AM_WRITE(SMH_RAM) /* ??? */ | |
| 144 | AM_RANGE(0x9000, 0x9001) AM_WRITE(multiply_w) /* ??? */ | |
| 145 | // AM_RANGE(0x9001, 0x9001) AM_WRITE(SMH_RAM) /* ??? */ | |
| 132 | 146 | AM_RANGE(0x9006, 0x9006) AM_WRITE(SMH_RAM) /* ??? */ |
| 133 | 147 | AM_RANGE(0xb000, 0xb00d) AM_WRITE(K007232_write_port_0_w) /* 007232 registers */ |
| 134 | 148 | AM_RANGE(0xc000, 0xc000) AM_WRITE(YM2151_register_port_0_w) /* YM2151 */ |
| r2241 | r2242 | |
|---|---|---|
| 159 | 159 | |
| 160 | 160 | static WRITE32_HANDLER( namcofl_sysreg_w ) |
| 161 | 161 | { |
| 162 | if ((offset == 2) && | |
| 162 | if ((offset == 2) && ACCESSING_BITS_ | |
| 163 | 163 | { |
| 164 | 164 | if (data == 0) // RAM at 00000000, ROM at 10000000 |
| 165 | 165 | { |
| r2241 | r2242 | |
| 178 | 178 | { |
| 179 | 179 | COMBINE_DATA(&paletteram32[offset]); |
| 180 | 180 | |
| 181 | if ((offset == 0x1808/4) && ACCESSING_ | |
| 181 | if ((offset == 0x1808/4) && ACCESSING_BITS_16_31) | |
| 182 | 182 | { |
| 183 | 183 | UINT16 v = paletteram32[offset] >> 16; |
| 184 | 184 | UINT16 triggerscanline=(((v>>8)&0xff)|((v&0xff)<<8))-(32+1); |
| r2241 | r2242 | |
| 363 | 363 | |
| 364 | 364 | MDRV_SCREEN_ADD("main", RASTER) |
| 365 | 365 | MDRV_SCREEN_REFRESH_RATE(60) |
| 366 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB | |
| 366 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 367 | 367 | MDRV_SCREEN_SIZE(NAMCONB1_HTOTAL, NAMCONB1_VTOTAL) |
| 368 | 368 | MDRV_SCREEN_VISIBLE_AREA(0, NAMCONB1_HBSTART-1, 0, NAMCONB1_VBSTART-1) |
| 369 | 369 |
| r2241 | r2242 | |
|---|---|---|
| 68 | 68 | MEMORY STRUCTURES |
| 69 | 69 | ***********************************************************/ |
| 70 | 70 | |
| 71 | static ADDRESS_MAP_START( volfied_readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 72 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) /* program */ | |
| 73 | AM_RANGE(0x080000, 0x0fffff) AM_READ(SMH_ROM) /* tiles */ | |
| 74 | AM_RANGE(0x100000, 0x103fff) AM_READ(SMH_RAM) /* main */ | |
| 75 | AM_RANGE(0x200000, 0x203fff) AM_READ(PC090OJ_word_0_r) | |
| 76 | AM_RANGE(0x400000, 0x47ffff) AM_READ(volfied_video_ram_r) | |
| 77 | AM_RANGE(0x500000, 0x503fff) AM_READ(SMH_RAM) | |
| 78 | AM_RANGE(0xd00000, 0xd00001) AM_READ(volfied_video_ctrl_r) | |
| 79 | AM_RANGE(0xe00002, 0xe00003) AM_READ(taitosound_comm16_lsb_r) | |
| 80 | AM_RANGE(0xf00000, 0xf007ff) AM_READ(volfied_cchip_ram_r) | |
| 81 | AM_RANGE(0xf00802, 0xf00803) AM_READ(volfied_cchip_ctrl_r) | |
| 82 | ADDRESS_MAP_END | |
| 83 | ||
| 84 | static ADDRESS_MAP_START( volfied_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 85 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) /* program */ | |
| 86 | AM_RANGE(0x080000, 0x0fffff) AM_WRITE(SMH_ROM) /* tiles */ | |
| 87 | AM_RANGE(0x100000, 0x103fff) AM_WRITE(SMH_RAM) /* main */ | |
| 88 | AM_RANGE(0x200000, 0x203fff) AM_WRITE(PC090OJ_word_0_w) | |
| 89 | AM_RANGE(0x400000, 0x47ffff) AM_WRITE(volfied_video_ram_w) | |
| 90 | AM_RANGE(0x500000, 0x503fff) AM_WRITE(paletteram16_xBBBBBGGGGGRRRRR_word_w) AM_BASE(&paletteram16) | |
| 71 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 72 | AM_RANGE(0x000000, 0x03ffff) AM_ROM /* program */ | |
| 73 | AM_RANGE(0x080000, 0x0fffff) AM_ROM /* tiles */ | |
| 74 | AM_RANGE(0x100000, 0x103fff) AM_RAM /* main */ | |
| 75 | AM_RANGE(0x200000, 0x203fff) AM_READWRITE(PC090OJ_word_0_r, PC090OJ_word_0_w) | |
| 76 | AM_RANGE(0x400000, 0x47ffff) AM_READWRITE(volfied_video_ram_r, volfied_video_ram_w) | |
| 77 | AM_RANGE(0x500000, 0x503fff) AM_RAM AM_WRITE(paletteram16_xBBBBBGGGGGRRRRR_word_w) AM_BASE(&paletteram16) | |
| 91 | 78 | AM_RANGE(0x600000, 0x600001) AM_WRITE(volfied_video_mask_w) |
| 92 | 79 | AM_RANGE(0x700000, 0x700001) AM_WRITE(volfied_sprite_ctrl_w) |
| 93 | AM_RANGE(0xd00000, 0xd00001) AM_WRITE(volfied_video_ctrl_w) | |
| 80 | AM_RANGE(0xd00000, 0xd00001) AM_READWRITE(volfied_video_ctrl_r, volfied_video_ctrl_w) | |
| 94 | 81 | AM_RANGE(0xe00000, 0xe00001) AM_WRITE(taitosound_port16_lsb_w) |
| 95 | AM_RANGE(0xe00002, 0xe00003) AM_WRITE(taitosound_comm16_lsb_w) | |
| 96 | AM_RANGE(0xf00000, 0xf007ff) AM_WRITE(volfied_cchip_ram_w) | |
| 97 | AM_RANGE(0xf00802, 0xf00803) AM_WRITE(volfied_cchip_ctrl_w) | |
| 82 | AM_RANGE(0xe00002, 0xe00003) AM_READWRITE(taitosound_comm16_lsb_r, taitosound_comm16_lsb_w) | |
| 83 | AM_RANGE(0xf00000, 0xf007ff) AM_READWRITE(volfied_cchip_ram_r, volfied_cchip_ram_w) | |
| 84 | AM_RANGE(0xf00802, 0xf00803) AM_READWRITE(volfied_cchip_ctrl_r, volfied_cchip_ctrl_w) | |
| 98 | 85 | AM_RANGE(0xf00c00, 0xf00c01) AM_WRITE(volfied_cchip_bank_w) |
| 99 | 86 | ADDRESS_MAP_END |
| 100 | 87 | |
| 101 | static ADDRESS_MAP_START( z80_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 102 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) | |
| 103 | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) | |
| 104 | AM_RANGE(0x8801, 0x8801) AM_READ(taitosound_slave_comm_r) | |
| 105 | AM_RANGE(0x9000, 0x9000) AM_READ(YM2203_status_port_0_r) | |
| 106 | AM_RANGE(0x9001, 0x9001) AM_READ(YM2203_read_port_0_r) | |
| 107 | ADDRESS_MAP_END | |
| 108 | ||
| 109 | static ADDRESS_MAP_START( z80_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 110 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) | |
| 111 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) | |
| 88 | static ADDRESS_MAP_START( z80_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 89 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 90 | AM_RANGE(0x8000, 0x87ff) AM_RAM | |
| 112 | 91 | AM_RANGE(0x8800, 0x8800) AM_WRITE(taitosound_slave_port_w) |
| 113 | AM_RANGE(0x8801, 0x8801) AM_WRITE(taitosound_slave_comm_w) | |
| 114 | AM_RANGE(0x9000, 0x9000) AM_WRITE(YM2203_control_port_0_w) | |
| 115 | AM_RANGE(0x9001, 0x9001) AM_WRITE(YM2203_write_port_0_w) | |
| 92 | AM_RANGE(0x8801, 0x8801) AM_READWRITE(taitosound_slave_comm_r, taitosound_slave_comm_w) | |
| 93 | AM_RANGE(0x9000, 0x9000) AM_READWRITE(YM2203_status_port_0_r, YM2203_control_port_0_w) | |
| 94 | AM_RANGE(0x9001, 0x9001) AM_READWRITE(YM2203_read_port_0_r, YM2203_write_port_0_w) | |
| 116 | 95 | AM_RANGE(0x9800, 0x9800) AM_WRITE(SMH_NOP) /* ? */ |
| 117 | 96 | ADDRESS_MAP_END |
| 118 | 97 | |
| r2241 | r2242 | |
| 264 | 243 | |
| 265 | 244 | /* basic machine hardware */ |
| 266 | 245 | MDRV_CPU_ADD(M68000, 8000000) /* 8MHz */ |
| 267 | MDRV_CPU_PROGRAM_MAP( | |
| 246 | MDRV_CPU_PROGRAM_MAP( | |
| 268 | 247 | MDRV_CPU_VBLANK_INT("main", irq4_line_hold) |
| 269 | 248 | |
| 270 | 249 | MDRV_CPU_ADD(Z80, 4000000) /* sound CPU, required to run the game */ |
| 271 | MDRV_CPU_PROGRAM_MAP(z80_ | |
| 250 | MDRV_CPU_PROGRAM_MAP(z80_ | |
| 272 | 251 | |
| 273 | 252 | MDRV_INTERLEAVE(20) |
| 274 | 253 |
| r2241 | r2242 | |
|---|---|---|
| 895 | 895 | { |
| 896 | 896 | case 0x00: |
| 897 | 897 | case 0x02: |
| 898 | if (!ACCESSING_ | |
| 898 | if (!ACCESSING_ | |
| 899 | 899 | { |
| 900 | 900 | data = (data&0x00ff) | data<<8; |
| 901 | 901 | // mame_printf_debug("8-bit write VDP data port access, offset %04x data %04x mem_mask %04x\n",offset,data,mem_mask); |
| 902 | 902 | } |
| 903 | else if (!ACCESSING_ | |
| 903 | else if (!ACCESSING_ | |
| 904 | 904 | { |
| 905 | 905 | data = (data&0xff00) | data>>8; |
| 906 | 906 | // mame_printf_debug("8-bit write VDP data port access, offset %04x data %04x mem_mask %04x\n",offset,data,mem_mask); |
| r2241 | r2242 | |
| 910 | 910 | |
| 911 | 911 | case 0x04: |
| 912 | 912 | case 0x06: |
| 913 | if ((!ACCESSING_ | |
| 913 | if ((!ACCESSING_ | |
| 914 | 914 | megadriv_vdp_ctrl_port_w(data); |
| 915 | 915 | break; |
| 916 | 916 | |
| r2241 | r2242 | |
| 925 | 925 | case 0x12: |
| 926 | 926 | case 0x14: |
| 927 | 927 | case 0x16: |
| 928 | if (ACCESSING_LSB) SN76496_0_w(machine, 0, data & 0xff); | |
| 929 | //if (ACCESSING_MSB) SN76496_0_w(machine, 0, (data >>8) & 0xff); | |
| 928 | if (ACCESSING_BITS_0_7) SN76496_0_w(machine, 0, data & 0xff); | |
| 929 | //if (ACCESSING_BITS_8_15) SN76496_0_w(machine, 0, (data >>8) & 0xff); | |
| 930 | 930 | break; |
| 931 | 931 | |
| 932 | 932 | default: |
| r2241 | r2242 | |
| 1293 | 1293 | |
| 1294 | 1294 | case 0x00: |
| 1295 | 1295 | case 0x02: |
| 1296 | if ((!ACCESSING_ | |
| 1296 | if ((!ACCESSING_ | |
| 1297 | 1297 | retvalue = megadriv_vdp_data_port_r(); |
| 1298 | 1298 | break; |
| 1299 | 1299 | |
| 1300 | 1300 | case 0x04: |
| 1301 | 1301 | case 0x06: |
| 1302 | // if ((!ACCESSING_ | |
| 1302 | // if ((!ACCESSING_ | |
| 1303 | 1303 | retvalue = megadriv_vdp_ctrl_port_r(); |
| 1304 | 1304 | // retvalue = mame_rand(Machine); |
| 1305 | 1305 | // mame_printf_debug("%06x: Read Control Port at scanline %d hpos %d (return %04x)\n",activecpu_get_pc(),genesis_scanline_counter, get_hposition(),retvalue); |
| r2241 | r2242 | |
| 1309 | 1309 | case 0x0a: |
| 1310 | 1310 | case 0x0c: |
| 1311 | 1311 | case 0x0e: |
| 1312 | // if ((!ACCESSING_ | |
| 1312 | // if ((!ACCESSING_ | |
| 1313 | 1313 | retvalue = megadriv_read_hv_counters(); |
| 1314 | 1314 | // retvalue = mame_rand(Machine); |
| 1315 | 1315 | // mame_printf_debug("%06x: Read HV counters at scanline %d hpos %d (return %04x)\n",activecpu_get_pc(),genesis_scanline_counter, get_hposition(),retvalue); |
| r2241 | r2242 | |
| 1334 | 1334 | switch (offset) |
| 1335 | 1335 | { |
| 1336 | 1336 | case 0: |
| 1337 | if (ACCESSING_ | |
| 1337 | if (ACCESSING_ | |
| 1338 | 1338 | else return YM2612_status_port_0_A_r(machine, 0); |
| 1339 | 1339 | break; |
| 1340 | 1340 | case 1: |
| 1341 | if (ACCESSING_ | |
| 1341 | if (ACCESSING_ | |
| 1342 | 1342 | else return YM2612_status_port_0_A_r(machine, 0); |
| 1343 | 1343 | break; |
| 1344 | 1344 | } |
| r2241 | r2242 | |
| 1362 | 1362 | switch (offset) |
| 1363 | 1363 | { |
| 1364 | 1364 | case 0: |
| 1365 | if (ACCESSING_ | |
| 1365 | if (ACCESSING_ | |
| 1366 | 1366 | else YM2612_data_port_0_A_w (machine, 0, (data >> 0) & 0xff); |
| 1367 | 1367 | break; |
| 1368 | 1368 | case 1: |
| 1369 | if (ACCESSING_ | |
| 1369 | if (ACCESSING_ | |
| 1370 | 1370 | else YM2612_data_port_0_B_w (machine, 0, (data >> 0) & 0xff); |
| 1371 | 1371 | break; |
| 1372 | 1372 | } |
| r2241 | r2242 | |
| 2189 | 2189 | if ((genz80.z80_has_bus==0) && (genz80.z80_is_reset==0)) |
| 2190 | 2190 | { |
| 2191 | 2191 | |
| 2192 | if (!ACCESSING_ | |
| 2192 | if (!ACCESSING_ | |
| 2193 | 2193 | { |
| 2194 | 2194 | genz80.z80_prgram[(offset<<1)] = (data & 0xff00) >> 8; |
| 2195 | 2195 | } |
| 2196 | else if (!ACCESSING_ | |
| 2196 | else if (!ACCESSING_ | |
| 2197 | 2197 | { |
| 2198 | 2198 | genz80.z80_prgram[(offset<<1)^1] = (data & 0x00ff); |
| 2199 | 2199 | } |
| r2241 | r2242 | |
| 2224 | 2224 | |
| 2225 | 2225 | |
| 2226 | 2226 | /* Check if the 68k has the z80 bus */ |
| 2227 | if (!ACCESSING_ | |
| 2227 | if (!ACCESSING_ | |
| 2228 | 2228 | { |
| 2229 | 2229 | if (genz80.z80_has_bus || genz80.z80_is_reset) retvalue = nextvalue | 0x0100; |
| 2230 | 2230 | else retvalue = (nextvalue & 0xfeff); |
| r2241 | r2242 | |
| 2233 | 2233 | return retvalue; |
| 2234 | 2234 | |
| 2235 | 2235 | } |
| 2236 | else if (!ACCESSING_ | |
| 2236 | else if (!ACCESSING_ | |
| 2237 | 2237 | { |
| 2238 | 2238 | //logerror("%06x: 68000 check z80 Bus (byte LSB access) %04x\n", activecpu_get_pc(),mem_mask); |
| 2239 | 2239 | if (genz80.z80_has_bus || genz80.z80_is_reset) retvalue = 0x0001; |
| r2241 | r2242 | |
| 2256 | 2256 | static WRITE16_HANDLER( megadriv_68k_req_z80_bus ) |
| 2257 | 2257 | { |
| 2258 | 2258 | /* Request the Z80 bus, allows 68k to read/write Z80 address space */ |
| 2259 | if (!ACCESSING_ | |
| 2259 | if (!ACCESSING_ | |
| 2260 | 2260 | { |
| 2261 | 2261 | if (data & 0x0100) |
| 2262 | 2262 | { |
| r2241 | r2242 | |
| 2272 | 2272 | |
| 2273 | 2273 | } |
| 2274 | 2274 | } |
| 2275 | else if (!ACCESSING_ | |
| 2275 | else if (!ACCESSING_ | |
| 2276 | 2276 | { |
| 2277 | 2277 | if (data & 0x0001) |
| 2278 | 2278 | { |
| r2241 | r2242 | |
| 2306 | 2306 | |
| 2307 | 2307 | static WRITE16_HANDLER ( megadriv_68k_req_z80_reset ) |
| 2308 | 2308 | { |
| 2309 | if (!ACCESSING_ | |
| 2309 | if (!ACCESSING_ | |
| 2310 | 2310 | { |
| 2311 | 2311 | if (data & 0x0100) |
| 2312 | 2312 | { |
| r2241 | r2242 | |
| 2322 | 2322 | sndti_reset(SOUND_YM2612, 0); |
| 2323 | 2323 | } |
| 2324 | 2324 | } |
| 2325 | else if (!ACCESSING_ | |
| 2325 | else if (!ACCESSING_ | |
| 2326 | 2326 | { |
| 2327 | 2327 | if (data & 0x0001) |
| 2328 | 2328 | { |
| r2241 | r2242 | |
|---|---|---|
| 543 | 543 | |
| 544 | 544 | static WRITE16_HANDLER( sound_data_w ) |
| 545 | 545 | { |
| 546 | if (ACCESSING_ | |
| 546 | if (ACCESSING_ | |
| 547 | 547 | timer_call_after_resynch(NULL, data & 0xff, delayed_sound_data_w); |
| 548 | 548 | } |
| 549 | 549 | |
| r2241 | r2242 | |
| 556 | 556 | |
| 557 | 557 | static WRITE32_HANDLER( sound_data32_w ) |
| 558 | 558 | { |
| 559 | if ( | |
| 559 | if (ACCESSING_BITS_16_23 | |
| 560 | 560 | timer_call_after_resynch(NULL, (data >> 16) & 0xff, delayed_sound_data_w); |
| 561 | 561 | } |
| 562 | 562 | |
| r2241 | r2242 | |
| 890 | 890 | |
| 891 | 891 | static READ32_HANDLER( test1_r ) |
| 892 | 892 | { |
| 893 | if (!(mem_mask & 0xff000000) && !written[0x100 + offset*4+0]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0x100 + offset*4+0); | |
| 894 | if (!(mem_mask & 0x00ff0000) && !written[0x100 + offset*4+1]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0x100 + offset*4+1); | |
| 895 | if (!(mem_mask & 0x0000ff00) && !written[0x100 + offset*4+2]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0x100 + offset*4+2); | |
| 896 | if (!(mem_mask & 0x000000ff) && !written[0x100 + offset*4+3]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0x100 + offset*4+3); | |
| 893 | if (ACCESSING_BITS_24_31 && !written[0x100 + offset*4+0]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0x100 + offset*4+0); | |
| 894 | if (ACCESSING_BITS_16_23 && !written[0x100 + offset*4+1]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0x100 + offset*4+1); | |
| 895 | if (ACCESSING_BITS_8_15 && !written[0x100 + offset*4+2]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0x100 + offset*4+2); | |
| 896 | if (ACCESSING_BITS_0_7 && !written[0x100 + offset*4+3]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0x100 + offset*4+3); | |
| 897 | 897 | return ((UINT32 *)main_ram)[0x100/4 + offset]; |
| 898 | 898 | } |
| 899 | 899 | |
| 900 | 900 | static WRITE32_HANDLER( test1_w ) |
| 901 | 901 | { |
| 902 | if (!(mem_mask & 0xff000000)) written[0x100 + offset*4+0] = 1; | |
| 903 | if (!(mem_mask & 0x00ff0000)) written[0x100 + offset*4+1] = 1; | |
| 904 | if (!(mem_mask & 0x0000ff00)) written[0x100 + offset*4+2] = 1; | |
| 905 | if (!(mem_mask & 0x000000ff)) written[0x100 + offset*4+3] = 1; | |
| 902 | if (ACCESSING_BITS_24_31) written[0x100 + offset*4+0] = 1; | |
| 903 | if (ACCESSING_BITS_16_23) written[0x100 + offset*4+1] = 1; | |
| 904 | if (ACCESSING_BITS_8_15) written[0x100 + offset*4+2] = 1; | |
| 905 | if (ACCESSING_BITS_0_7) written[0x100 + offset*4+3] = 1; | |
| 906 | 906 | COMBINE_DATA(&((UINT32 *)main_ram)[0x100/4 + offset]); |
| 907 | 907 | } |
| 908 | 908 | |
| 909 | 909 | static READ32_HANDLER( test2_r ) |
| 910 | 910 | { |
| 911 | if (!(mem_mask & 0xff000000) && !written[0xc00 + offset*4+0]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0xc00 + offset*4+0); | |
| 912 | if (!(mem_mask & 0x00ff0000) && !written[0xc00 + offset*4+1]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0xc00 + offset*4+1); | |
| 913 | if (!(mem_mask & 0x0000ff00) && !written[0xc00 + offset*4+2]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0xc00 + offset*4+2); | |
| 914 | if (!(mem_mask & 0x000000ff) && !written[0xc00 + offset*4+3]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0xc00 + offset*4+3); | |
| 911 | if (ACCESSING_BITS_24_31 && !written[0xc00 + offset*4+0]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0xc00 + offset*4+0); | |
| 912 | if (ACCESSING_BITS_16_23 && !written[0xc00 + offset*4+1]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0xc00 + offset*4+1); | |
| 913 | if (ACCESSING_BITS_8_15 && !written[0xc00 + offset*4+2]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0xc00 + offset*4+2); | |
| 914 | if (ACCESSING_BITS_0_7 && !written[0xc00 + offset*4+3]) logerror("%06X:read from uninitialized memory %04X\n", activecpu_get_pc(), 0xc00 + offset*4+3); | |
| 915 | 915 | return ((UINT32 *)main_ram)[0xc00/4 + offset]; |
| 916 | 916 | } |
| 917 | 917 | |
| 918 | 918 | static WRITE32_HANDLER( test2_w ) |
| 919 | 919 | { |
| 920 | if (!(mem_mask & 0xff000000)) written[0xc00 + offset*4+0] = 1; | |
| 921 | if (!(mem_mask & 0x00ff0000)) written[0xc00 + offset*4+1] = 1; | |
| 922 | if (!(mem_mask & 0x0000ff00)) written[0xc00 + offset*4+2] = 1; | |
| 923 | if (!(mem_mask & 0x000000ff)) written[0xc00 + offset*4+3] = 1; | |
| 920 | if (ACCESSING_BITS_24_31) written[0xc00 + offset*4+0] = 1; | |
| 921 | if (ACCESSING_BITS_16_23) written[0xc00 + offset*4+1] = 1; | |
| 922 | if (ACCESSING_BITS_8_15) written[0xc00 + offset*4+2] = 1; | |
| 923 | if (ACCESSING_BITS_0_7) written[0xc00 + offset*4+3] = 1; | |
| 924 | 924 | COMBINE_DATA(&((UINT32 *)main_ram)[0xc00/4 + offset]); |
| 925 | 925 | } |
| 926 | 926 | #endif |
| r2241 | r2242 | |
|---|---|---|
| 384 | 384 | return mame_rand(Machine); |
| 385 | 385 | } |
| 386 | 386 | |
| 387 | static | |
| 387 | static PIT8253_OUTPUT_CHANGED( pc_timer0_w | |
| 388 | 388 | { |
| 389 | 389 | //if (state) |
| 390 | 390 | // pic8259_0_issue_irq(0); |
| r2241 | r2242 | |
| 392 | 392 | |
| 393 | 393 | static const struct pit8253_config pc_pit8253_config = |
| 394 | 394 | { |
| 395 | TYPE8253, | |
| 396 | 395 | { |
| 397 | 396 | { |
| 398 | 397 | 4772720/4, /* heartbeat IRQ */ |
| r2241 | r2242 | |
| 405 | 404 | }, { |
| 406 | 405 | 4772720/4, /* pio port c pin 4, and speaker polling enough */ |
| 407 | 406 | NULL, |
| 408 | NULL | |
| 407 | NULL | |
| 409 | 408 | } |
| 410 | 409 | } |
| 411 | 410 | }; |
| r2241 | r2242 | |
| 654 | 653 | static MACHINE_RESET(filetto) |
| 655 | 654 | { |
| 656 | 655 | ppi8255_init(&filetto_ppi8255_intf); |
| 657 | pit8253_init(1, &pc_pit8253_config); | |
| 658 | 656 | } |
| 659 | 657 | |
| 660 | 658 | /* |
| r2241 | r2242 | |
| 739 | 737 | MDRV_CPU_IO_MAP(filetto_io,0) |
| 740 | 738 | MDRV_CPU_VBLANK_INT_HACK(filetto_irq,200) |
| 741 | 739 | |
| 740 | MDRV_DEVICE_ADD( "pit8253", PIT8253 ) | |
| 741 | MDRV_DEVICE_CONFIG( pc_pit8253_config ) | |
| 742 | ||
| 742 | 743 | MDRV_GFXDECODE(filetto) |
| 743 | 744 | |
| 744 | 745 | MDRV_SCREEN_ADD("main", RASTER) |
| r2241 | r2242 | |
|---|---|---|
| 107 | 107 | |
| 108 | 108 | static WRITE16_HANDLER( ashnojoe_soundlatch_w ) |
| 109 | 109 | { |
| 110 | if(ACCESSING_ | |
| 110 | if(ACCESSING_ | |
| 111 | 111 | { |
| 112 | 112 | soundlatch_w(machine,0,data & 0xff); |
| 113 | 113 | //needed? |
| r2241 | r2242 | |
|---|---|---|
| 183 | 183 | |
| 184 | 184 | static WRITE16_HANDLER( amazon_protection_w ) |
| 185 | 185 | { |
| 186 | if( ACCESSING_ | |
| 186 | if( ACCESSING_ | |
| 187 | 187 | { |
| 188 | 188 | if( offset==1 ) |
| 189 | 189 | { |
| r2241 | r2242 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | 3 | Underfire (c) 1993 Taito |
| 4 | Chase Bombers (c) 1994 Taito | |
| 4 | 5 | |
| 5 | 6 | Driver by Bryan McPhail & David Graves. |
| 6 | 7 | |
| 7 | Board Info: | |
| 8 | Board Info (Underfire): | |
| 8 | 9 | |
| 9 | 10 | TC0470LIN : ? |
| 10 | 11 | TC0480SCP : known tilemap chip |
| r2241 | r2242 | |
| 115 | 116 | need to reproduce the $18141a calculations. |
| 116 | 117 | |
| 117 | 118 | |
| 119 | Info (Chase Bombers) | |
| 120 | ||
| 121 | Chase Bombers | |
| 122 | Taito, 1994 | |
| 123 | ||
| 124 | Runs on hardware similar to Ground Effects | |
| 125 | ||
| 126 | ||
| 127 | PCB Layout | |
| 128 | ---------- | |
| 129 | ||
| 130 | MAIN PCB-D | |
| 131 | K1100809A | |
| 132 | J1100342A | |
| 133 | |----------------------------------------------------------------------------------------------| | |
| 134 | | C5 C6 SMC_COM20020 LANOUT| | |
| 135 | | 68EC020 61256 68EC000 61256 68EC000 61256 MB8421 | | |
| 136 | | 61256 61256 61256 LANIN | | |
| 137 | | 61256 61256 PAL | | |
| 138 | | 61256 PAL 61256 PAL | | |
| 139 | | PAL PAL MB8421 | | |
| 140 | | 40MHz | | |
| 141 | | MC68681 | | |
| 142 | | TC511664-80 MB3771 | | |
| 143 | | P1| | |
| 144 | | MACH120 MACH120 | | |
| 145 | | ENSONIC 30.4761MHz 16MHz ADC0809 | | |
| 146 | | ESP-R6 | | |
| 147 | | ENSONIC | | |
| 148 | | ENSONIC 5701 DSW1(8) TC0510NIO | | |
| 149 | | OTIS-R2 Z| | |
| 150 | | 93C46 | | |
| 151 | | C3 C4 | | |
| 152 | | | | |
| 153 | | 61256 |-| | |
| 154 | | 61256 | | |
| 155 | | |-| | |
| 156 | | TC0480SCP TC0620SCC TC0360PRI | | |
| 157 | | | | |
| 158 | | TC0650FDA | | |
| 159 | | 2018 61256 | | |
| 160 | | 61256 | | |
| 161 | | 2018 2088 61256 61256 G| | |
| 162 | | 61256 TC0580PIV | | |
| 163 | | 2018 2088 | | |
| 164 | | | | |
| 165 | | 2018 TL074 TL074 TDA1543 | | |
| 166 | | TC0570SPC TC0470LIN 514256 514256 | | |
| 167 | | 2018 514256 514256 TA8221 TD62064 |-| | |
| 168 | | 514256 514256 TD62064 | | |
| 169 | | 2018 MB87078 TD62064 |-| | |
| 170 | | C1 C2 | | |
| 171 | |----------------------------------------------------------------------------------------------| | |
| 172 | Notes: | |
| 173 | ROM board plugs into C* connectors | |
| 174 | No clocks for now, PCB has light corrosion and will need extensive cleaning before it can be powered up. | |
| 175 | ||
| 176 | ROM Board | |
| 177 | --------- | |
| 178 | ||
| 179 | PCB Numbers - ROM.PCB | |
| 180 | K9100508A | |
| 181 | J9100367A | |
| 182 | ||
| 183 | Board contains only 29 ROMs and not much else. | |
| 184 | ||
| 185 | ||
| 186 | ||
| 118 | 187 | ***************************************************************************/ |
| 119 | 188 | |
| 120 | 189 | #include "driver.h" |
| r2241 | r2242 | |
| 129 | 198 | |
| 130 | 199 | VIDEO_START( undrfire ); |
| 131 | 200 | VIDEO_UPDATE( undrfire ); |
| 201 | VIDEO_UPDATE( cbombers ); | |
| 132 | 202 | |
| 133 | 203 | static UINT16 coin_word; |
| 134 | 204 | static UINT16 port_sel = 0; |
| r2241 | r2242 | |
| 136 | 206 | static int frame_counter=0; |
| 137 | 207 | |
| 138 | 208 | static UINT32 *undrfire_ram; /* will be read in video for gun target calcs */ |
| 209 | static UINT32 *shared_ram; | |
| 139 | 210 | |
| 140 | ||
| 141 | 211 | /*********************************************************** |
| 142 | 212 | COLOR RAM |
| 143 | 213 | |
| r2241 | r2242 | |
| 241 | 311 | { |
| 242 | 312 | case 0x00: |
| 243 | 313 | { |
| 244 | if (ACCESSING_ | |
| 314 | if (ACCESSING_ | |
| 245 | 315 | { |
| 246 | 316 | watchdog_reset(machine); |
| 247 | 317 | } |
| 248 | 318 | |
| 249 | if (ACCESSING_ | |
| 319 | if (ACCESSING_ | |
| 250 | 320 | { |
| 251 | 321 | EEPROM_set_clock_line((data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 252 | 322 | EEPROM_write_bit(data & 0x40); |
| r2241 | r2242 | |
| 259 | 329 | |
| 260 | 330 | case 0x01: |
| 261 | 331 | { |
| 262 | if (ACCESSING_ | |
| 332 | if (ACCESSING_ | |
| 263 | 333 | { |
| 264 | 334 | coin_lockout_w(0,~data & 0x01000000); |
| 265 | 335 | coin_lockout_w(1,~data & 0x02000000); |
| r2241 | r2242 | |
| 272 | 342 | } |
| 273 | 343 | |
| 274 | 344 | |
| 345 | static READ16_HANDLER( shared_ram_r ) | |
| 346 | { | |
| 347 | if ((offset&1)==0) return (shared_ram[offset/2]&0xffff0000)>>16; | |
| 348 | return (shared_ram[offset/2]&0x0000ffff); | |
| 349 | } | |
| 350 | ||
| 351 | static WRITE16_HANDLER( shared_ram_w ) | |
| 352 | { | |
| 353 | if ((offset&1)==0) { | |
| 354 | if (ACCESSING_BITS_8_15) | |
| 355 | shared_ram[offset/2]=(shared_ram[offset/2]&0x00ffffff)|((data&0xff00)<<16); | |
| 356 | if (ACCESSING_BITS_0_7) | |
| 357 | shared_ram[offset/2]=(shared_ram[offset/2]&0xff00ffff)|((data&0x00ff)<<16); | |
| 358 | } else { | |
| 359 | if (ACCESSING_BITS_8_15) | |
| 360 | shared_ram[offset/2]=(shared_ram[offset/2]&0xffff00ff)|((data&0xff00)<< 0); | |
| 361 | if (ACCESSING_BITS_0_7) | |
| 362 | shared_ram[offset/2]=(shared_ram[offset/2]&0xffffff00)|((data&0x00ff)<< 0); | |
| 363 | } | |
| 364 | } | |
| 365 | ||
| 366 | ||
| 367 | ||
| 275 | 368 | /* Some unknown hardware byte mapped at $600002-5 */ |
| 276 | 369 | |
| 277 | 370 | static READ32_HANDLER( unknown_hardware_r ) |
| r2241 | r2242 | |
| 338 | 431 | |
| 339 | 432 | static WRITE32_HANDLER( rotate_control_w ) /* only a guess that it's rotation */ |
| 340 | 433 | { |
| 341 | if (ACCESSING_ | |
| 434 | if (ACCESSING_BITS_0_15) | |
| 342 | 435 | { |
| 343 | 436 | undrfire_rotate_ctrl[port_sel] = data; |
| 344 | 437 | return; |
| 345 | 438 | } |
| 346 | 439 | |
| 347 | if (ACCESSING_ | |
| 440 | if (ACCESSING_BITS_16_31) | |
| 348 | 441 | { |
| 349 | 442 | port_sel = (data &0x70000) >> 16; |
| 350 | 443 | } |
| r2241 | r2242 | |
| 367 | 460 | */ |
| 368 | 461 | } |
| 369 | 462 | |
| 463 | static WRITE32_HANDLER( cbombers_cpua_ctrl_w ) | |
| 464 | { | |
| 465 | cpunum_set_input_line(machine, 2, INPUT_LINE_RESET, (data &0x1000) ? CLEAR_LINE : ASSERT_LINE); | |
| 466 | } | |
| 370 | 467 | |
| 371 | 468 | /*********************************************************** |
| 372 | 469 | MEMORY STRUCTURES |
| r2241 | r2242 | |
| 410 | 507 | ADDRESS_MAP_END |
| 411 | 508 | |
| 412 | 509 | |
| 510 | ||
| 511 | static ADDRESS_MAP_START( cbombers_readmem, ADDRESS_SPACE_PROGRAM, 32 ) | |
| 512 | AM_RANGE(0x000000, 0x1fffff) AM_READ(SMH_ROM) | |
| 513 | AM_RANGE(0x200000, 0x21ffff) AM_READ(SMH_RAM) /* main CPUA ram */ | |
| 514 | AM_RANGE(0x300000, 0x303fff) AM_READ(SMH_RAM) /* Sprite ram */ | |
| 515 | AM_RANGE(0x800000, 0x80ffff) AM_READ(TC0480SCP_long_r) | |
| 516 | AM_RANGE(0x830000, 0x83002f) AM_READ(TC0480SCP_ctrl_long_r) | |
| 517 | // AM_RANGE(0x340000, 0x340003) AM_READ(superchs_stick_r) /* stick coord read */ | |
| 518 | ||
| 519 | AM_RANGE(0x500000, 0x500007) AM_READ(undrfire_input_r) | |
| 520 | AM_RANGE(0xc00000, 0xc00007) AM_READ(undrfire_input_r) | |
| 521 | ||
| 522 | AM_RANGE(0x700000, 0x7007ff) AM_READ(SMH_RAM) /* Sound shared ram */ | |
| 523 | ||
| 524 | AM_RANGE(0x900000, 0x90ffff) AM_READ(SMH_RAM) | |
| 525 | AM_RANGE(0xa00000, 0xa0ffff) AM_READ(SMH_RAM) /* Palette ram */ | |
| 526 | AM_RANGE(0xe00000, 0xe0ffff) AM_READ(SMH_RAM) /* Shared ram */ | |
| 527 | ||
| 528 | ADDRESS_MAP_END | |
| 529 | ||
| 530 | static ADDRESS_MAP_START( cbombers_writemem, ADDRESS_SPACE_PROGRAM, 32 ) | |
| 531 | AM_RANGE(0x000000, 0x1fffff) AM_WRITE(SMH_ROM) | |
| 532 | AM_RANGE(0x200000, 0x21ffff) AM_WRITE(SMH_RAM)// AM_BASE(&superchs_ram) | |
| 533 | AM_RANGE(0x300000, 0x303fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram32) AM_SIZE(&spriteram_size) | |
| 534 | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(TC0480SCP_long_w) | |
| 535 | AM_RANGE(0x830000, 0x83002f) AM_WRITE(TC0480SCP_ctrl_long_w) | |
| 536 | ||
| 537 | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(TC0100SCN_long_w) /* piv tilemaps */ | |
| 538 | AM_RANGE(0x920000, 0x92000f) AM_WRITE(TC0100SCN_ctrl_long_w) | |
| 539 | ||
| 540 | AM_RANGE(0x400000, 0x400003) AM_WRITE(cbombers_cpua_ctrl_w) | |
| 541 | AM_RANGE(0x2c0000, 0x2c07ff) AM_WRITE(SMH_RAM) AM_BASE(&f3_shared_ram) | |
| 542 | // AM_RANGE(0x340000, 0x340003) AM_WRITE(superchs_stick_w) /* stick int request */ | |
| 543 | ||
| 544 | // AM_RANGE(0x500000, 0x500003) AM_WRITE(MWA32_NOP) | |
| 545 | AM_RANGE(0x500000, 0x500007) AM_WRITE(undrfire_input_w) /* eerom etc. */ | |
| 546 | ||
| 547 | // AM_RANGE(0x600000, 0x600007) AM_WRITE(unknown_int_req_w) /* int request for unknown hardware */ | |
| 548 | ||
| 549 | AM_RANGE(0x700000, 0x7007ff) AM_WRITE(SMH_RAM) AM_BASE(&f3_shared_ram) | |
| 550 | ||
| 551 | AM_RANGE(0x900000, 0x90ffff) AM_WRITE(SMH_RAM) | |
| 552 | AM_RANGE(0xa00000, 0xa0ffff) AM_WRITE(color_ram_w) AM_BASE(&paletteram32) | |
| 553 | AM_RANGE(0xe00000, 0xe0ffff) AM_WRITE(SMH_RAM) AM_BASE(&shared_ram) | |
| 554 | ||
| 555 | ADDRESS_MAP_END | |
| 556 | ||
| 557 | static ADDRESS_MAP_START( cbombers_cpub_readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 558 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) | |
| 559 | AM_RANGE(0x400000, 0x40ffff) AM_READ(SMH_RAM) /* local ram */ | |
| 560 | AM_RANGE(0x800000, 0x80ffff) AM_READ(shared_ram_r) | |
| 561 | // AM_RANGE(0xa00000, 0xa001ff) AM_READ(SMH_RAM) | |
| 562 | ADDRESS_MAP_END | |
| 563 | ||
| 564 | static ADDRESS_MAP_START( cbombers_cpub_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 565 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) | |
| 566 | AM_RANGE(0x400000, 0x40ffff) AM_WRITE(SMH_RAM) | |
| 567 | // AM_RANGE(0x600000, 0x60ffff) AM_WRITE(TC0480SCP_word_w) /* Only written upon errors */ | |
| 568 | AM_RANGE(0x800000, 0x80ffff) AM_WRITE(shared_ram_w) | |
| 569 | // AM_RANGE(0xa00000, 0xa001ff) AM_WRITE(SMH_RAM) /* Extra road control?? */ | |
| 570 | ADDRESS_MAP_END | |
| 571 | ||
| 572 | ||
| 573 | ||
| 413 | 574 | /*********************************************************** |
| 414 | 575 | INPUT PORTS (dips in eprom) |
| 415 | 576 | ***********************************************************/ |
| r2241 | r2242 | |
| 483 | 644 | |
| 484 | 645 | |
| 485 | 646 | |
| 647 | static INPUT_PORTS_START( cbombers ) | |
| 648 | PORT_START_TAG("IN0") | |
| 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_UNKNOWN ) | |
| 652 | PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_PLAYER(1) /* ? where is freeze input */ | |
| 653 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 654 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 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_BUTTON4 ) PORT_PLAYER(1) // Nitro | |
| 658 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) // Shift | |
| 659 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) // Accel | |
| 660 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) // Brake | |
| 661 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 662 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 663 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 664 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 665 | ||
| 666 | PORT_START_TAG("IN1") | |
| 667 | PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* Frame counter */ | |
| 668 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 669 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 670 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 671 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 672 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 673 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 674 | PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* reserved for EEROM */ | |
| 675 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 676 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 677 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 678 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 679 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_START1 ) | |
| 680 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_START2 ) | |
| 681 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 682 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 683 | ||
| 684 | PORT_START_TAG("IN2") | |
| 685 | PORT_SERVICE_NO_TOGGLE(0x01, IP_ACTIVE_LOW) | |
| 686 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 687 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 688 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 689 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 690 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 691 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 692 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 693 | ||
| 694 | /* Gun inputs (real range is 0-0xffff: we use standard 0-255 and shift later) */ | |
| 695 | ||
| 696 | PORT_START_TAG("IN3") /* IN 3, P1X */ | |
| 697 | 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) | |
| 698 | ||
| 699 | PORT_START_TAG("IN4") /* IN 4, P1Y */ | |
| 700 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(20) PORT_KEYDELTA(25) PORT_PLAYER(1) | |
| 701 | ||
| 702 | PORT_START_TAG("IN5") /* IN 5, P2X */ | |
| 703 | 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) | |
| 704 | ||
| 705 | PORT_START_TAG("IN6") /* IN 6, P2Y */ | |
| 706 | PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, 1.0, 0.0, 0) PORT_SENSITIVITY(20) PORT_KEYDELTA(25) PORT_PLAYER(2) | |
| 707 | ||
| 708 | PORT_START_TAG("FAKE") | |
| 709 | PORT_BIT( 0x01, 0x00, IPT_DIPSWITCH_NAME ) PORT_NAME("Show gun target") PORT_CODE(KEYCODE_F1) PORT_TOGGLE | |
| 710 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 711 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) | |
| 712 | INPUT_PORTS_END | |
| 713 | ||
| 714 | ||
| 486 | 715 | /********************************************************** |
| 487 | 716 | GFX DECODING |
| 488 | 717 | **********************************************************/ |
| r2241 | r2242 | |
| 527 | 756 | GFXDECODE_ENTRY( REGION_GFX3, 0x0, pivlayout, 0, 512 ) |
| 528 | 757 | GFXDECODE_END |
| 529 | 758 | |
| 759 | static GFXDECODE_START( cbombers ) | |
| 760 | GFXDECODE_ENTRY( REGION_GFX2, 0x0, tile16x16_layout, 0, 512 ) | |
| 761 | GFXDECODE_ENTRY( REGION_GFX1, 0x0, charlayout, 0x1000, 512 ) | |
| 762 | GFXDECODE_ENTRY( REGION_GFX3, 0x0, pivlayout, 0, 512 ) | |
| 763 | GFXDECODE_END | |
| 530 | 764 | |
| 531 | 765 | /*********************************************************** |
| 532 | 766 | MACHINE DRIVERS |
| r2241 | r2242 | |
| 577 | 811 | MACHINE_DRIVER_END |
| 578 | 812 | |
| 579 | 813 | |
| 814 | static MACHINE_DRIVER_START( cbombers ) | |
| 580 | 815 | |
| 816 | /* basic machine hardware */ | |
| 817 | MDRV_CPU_ADD(M68EC020, 16000000) /* 16 MHz */ | |
| 818 | MDRV_CPU_PROGRAM_MAP(cbombers_readmem, cbombers_writemem) | |
| 819 | MDRV_CPU_VBLANK_INT("main", irq4_line_hold) | |
| 820 | ||
| 821 | TAITO_F3_SOUND_SYSTEM_CPU(16000000) | |
| 822 | ||
| 823 | MDRV_CPU_ADD(M68000, 16000000) /* 16 MHz */ | |
| 824 | MDRV_CPU_PROGRAM_MAP(cbombers_cpub_readmem, cbombers_cpub_writemem) | |
| 825 | MDRV_CPU_VBLANK_INT("main", irq4_line_hold) | |
| 826 | ||
| 827 | MDRV_INTERLEAVE(8) /* CPU slices - Need to interleave Cpu's 1 & 3 */ | |
| 828 | ||
| 829 | MDRV_MACHINE_RESET(undrfire) | |
| 830 | MDRV_NVRAM_HANDLER(undrfire) | |
| 831 | ||
| 832 | /* video hardware */ | |
| 833 | MDRV_SCREEN_ADD("main", RASTER) | |
| 834 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 835 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 836 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 837 | MDRV_SCREEN_SIZE(40*8, 32*8) | |
| 838 | MDRV_SCREEN_VISIBLE_AREA(0, 40*8-1, 3*8, 32*8-1) | |
| 839 | ||
| 840 | ||
| 841 | MDRV_GFXDECODE(cbombers) | |
| 842 | MDRV_PALETTE_LENGTH(16384) | |
| 843 | ||
| 844 | MDRV_VIDEO_START(undrfire) | |
| 845 | MDRV_VIDEO_UPDATE(cbombers) | |
| 846 | ||
| 847 | /* sound hardware */ | |
| 848 | TAITO_F3_SOUND_SYSTEM_ES5505(13343000) | |
| 849 | MACHINE_DRIVER_END | |
| 850 | ||
| 851 | ||
| 581 | 852 | /*************************************************************************** |
| 582 | 853 | DRIVERS |
| 583 | 854 | ***************************************************************************/ |
| r2241 | r2242 | |
| 691 | 962 | ROM_LOAD16_BYTE( "d67-02", 0xc00000, 0x200000, CRC(fceb715e) SHA1(9326513acb0696669d4f2345649ab37c8c6ed171) ) |
| 692 | 963 | ROM_END |
| 693 | 964 | |
| 965 | ROM_START( cbombers ) | |
| 966 | ROM_REGION( 0x200000, REGION_CPU1, 0 ) /* 2048K for 68020 code (CPU A) */ | |
| 967 | ROM_LOAD32_BYTE( "d83_39.ic17", 0x00000, 0x80000, CRC(b9f48284) SHA1(acc5d412e8900dda483a89a1ac1febd6d5735f3c) ) | |
| 968 | ROM_LOAD32_BYTE( "d83_41.ic4", 0x00001, 0x80000, CRC(a2f4c8be) SHA1(0f8f3b5ecff34d8c35af1ab11bb5528b52e30109) ) | |
| 969 | ROM_LOAD32_BYTE( "d83_40.ic3", 0x00002, 0x80000, CRC(b05f59ea) SHA1(e46a31737f44be2a3d478b8010fe0d6383290e03) ) | |
| 970 | ROM_LOAD32_BYTE( "d83_38.ic16", 0x00003, 0x80000, CRC(0a10616c) SHA1(c9cfc8c870f8a989f004d2db4f6fb76e5b7b7f9b) ) | |
| 694 | 971 | |
| 972 | ROM_REGION( 0x140000, REGION_CPU2, 0 ) /* Sound cpu */ | |
| 973 | ROM_LOAD16_BYTE( "d83_26.ic37", 0x100000, 0x20000, CRC(4f49b484) SHA1(96daa3cb7fa4aae3aedc91ec27d85945311dfcc9) ) | |
| 974 | ROM_LOAD16_BYTE( "d83_27.ic38", 0x100001, 0x20000, CRC(2aa1a237) SHA1(b809f75bbbbb4eb5d0df725aaa31aae8a6fba552) ) | |
| 975 | ||
| 976 | ROM_REGION( 0x40000, REGION_CPU3, 0 ) /* 256K for 68000 code (CPU B) */ | |
| 977 | ROM_LOAD16_BYTE( "d83_28.ic26", 0x00001, 0x20000, CRC(06328ef7) SHA1(90a14649e56221e47b87958896f6eae4556265c2) ) | |
| 978 | ROM_LOAD16_BYTE( "d83_29.ic27", 0x00000, 0x20000, CRC(771b4080) SHA1(a47c3a6abc07a6a61b694d32baa0ad4c25045841) ) | |
| 979 | ||
| 980 | ROM_REGION( 0x400000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 981 | ROM_LOAD16_BYTE( "d83_04.ic8", 0x000000, 0x200000, CRC(79f36cce) SHA1(2c8dc4cd5c4aa335c1e45888f5947acf94fa628a) ) | |
| 982 | ROM_LOAD16_BYTE( "d83_05.ic7", 0x000001, 0x200000, CRC(7787e495) SHA1(1758de5fdd1d12727368d08d7d4752c3756fc23e) ) | |
| 983 | ||
| 984 | ROM_REGION( 0x1800000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 985 | ROM_LOAD32_BYTE( "d83_06.ic28", 0x000003, 0x200000, CRC(4b71944e) SHA1(e8ed190280c7378fb4edcb192cef0d4d62582ad5) ) | |
| 986 | ROM_LOAD32_BYTE( "d83_07.ic30", 0x000002, 0x200000, CRC(29861b61) SHA1(76562b0243c1bc38623c0ef9d20de7572a979e37) ) | |
| 987 | ROM_LOAD32_BYTE( "d83_08.ic32", 0x000001, 0x200000, CRC(a0e81e01) SHA1(96ad8cfc849caaf85350cfc7cf23ad23635a3813) ) | |
| 988 | ROM_LOAD32_BYTE( "d83_09.ic45", 0x000000, 0x200000, CRC(7e4dec50) SHA1(4d8c1be739d425d8ded07774094b775f35a915bf) ) | |
| 989 | ROM_LOAD32_BYTE( "d83_11.ic41", 0x800003, 0x100000, CRC(a790e490) SHA1(9c57405ef2ef3368eb0958a3e43601110c1cc90d) ) | |
| 990 | ROM_LOAD32_BYTE( "d83_12.ic29", 0x800002, 0x100000, CRC(2f237b0d) SHA1(2ecb947671d263a77510bfebda03f883b55b8df4) ) | |
| 991 | ROM_LOAD32_BYTE( "d83_13.ic31", 0x800001, 0x100000, CRC(c2cceeb6) SHA1(3ec932655326caed13a40394bbf8e8baf836de2a) ) | |
| 992 | ROM_LOAD32_BYTE( "d83_14.ic44", 0x800000, 0x100000, CRC(8b6f4f12) SHA1(6a28004d287f00627622376aa3d6704f2684a6f3) ) | |
| 993 | ROM_LOAD32_BYTE( "d83_10.ic43", 0xc00000, 0x200000, CRC(36c440a0) SHA1(31685d3cdf4e39e1365df7e6a588c28f95d7e0a8) ) | |
| 994 | ROM_LOAD32_BYTE( "d83_15.ic42", 0x1400000, 0x100000, CRC(1b71175e) SHA1(60ad38ce97fd7995ff2f29d6b1a3b873dc2f0eb3) ) | |
| 995 | ||
| 996 | ROM_REGION( 0x400000, REGION_GFX3, ROMREGION_DISPOSE ) | |
| 997 | ROM_LOAD16_BYTE( "d83_16.ic19", 0x000000, 0x100000, CRC(d364cf1e) SHA1(ee43f50edf50ec840acfb98b1314140ee9693839) ) | |
| 998 | ROM_LOAD16_BYTE( "d83_17.ic5", 0x000001, 0x100000, CRC(0ffe737c) SHA1(5923a4edf9d0c8339f793840c2bdc691e2c651e6) ) | |
| 999 | ROM_LOAD ( "d83_18.ic6", 0x300000, 0x100000, CRC(87979155) SHA1(0ffafa970f9f9c98f8938104b97e63d2b5757804) ) | |
| 1000 | ROM_FILL ( 0x200000, 0x100000, 0 ) | |
| 1001 | ||
| 1002 | ROM_REGION16_LE( 0x80000, REGION_USER1, 0 ) | |
| 1003 | ROM_LOAD16_BYTE( "d83_31.ic10", 0x000001, 0x40000, CRC(85c37961) SHA1(15ea5c4904d910575e984e146c8941dff913d45f) ) | |
| 1004 | ROM_LOAD16_BYTE( "d83_32.ic11", 0x000000, 0x40000, CRC(b0db2559) SHA1(2bfae2dbe164b42e95d0a93fab82b7040c3fbc56) ) | |
| 1005 | ||
| 1006 | ROM_REGION( 0x40000, REGION_USER2, 0 ) | |
| 1007 | ROM_LOAD( "d83_30.ic9", 0x00000, 0x40000, CRC(eb86dc67) SHA1(31c7b6f30ff912fafed4b87ce8bf603ee17d1664) ) | |
| 1008 | ||
| 1009 | ROM_REGION16_BE( 0x1000000, REGION_SOUND1 , ROMREGION_ERASE00 ) | |
| 1010 | ROM_LOAD16_BYTE( "d83_01.ic40", 0xc00000, 0x200000, CRC(912799f4) SHA1(22f69e61519d2cddcfc4e4c9601e78a9d5265d5b) ) | |
| 1011 | ROM_LOAD16_BYTE( "d83_02.ic39", 0x000000, 0x200000, CRC(2abca020) SHA1(3491a95651ca89b7fe6d040b8576fa7646bfe84b) ) | |
| 1012 | ROM_RELOAD ( 0x400000, 0x200000 ) | |
| 1013 | ROM_LOAD16_BYTE( "d83_03.ic18", 0x800000, 0x200000, CRC(1b2d9ec3) SHA1(ead6b5542ad3987ef0f9ea01ce7f960abc9119b3) ) | |
| 1014 | ROM_END | |
| 1015 | ||
| 1016 | ||
| 1017 | ||
| 695 | 1018 | static READ32_HANDLER( main_cycle_r ) |
| 696 | 1019 | { |
| 697 | 1020 | int ptr; |
| r2241 | r2242 | |
| 737 | 1060 | } |
| 738 | 1061 | |
| 739 | 1062 | |
| 1063 | static DRIVER_INIT( cbombers ) | |
| 1064 | { | |
| 1065 | UINT32 offset,i; | |
| 1066 | UINT8 *gfx = memory_region(REGION_GFX3); | |
| 1067 | int size=memory_region_length(REGION_GFX3); | |
| 1068 | int data; | |
| 1069 | ||
| 1070 | ||
| 1071 | /* make piv tile GFX format suitable for gfxdecode */ | |
| 1072 | offset = size/2; | |
| 1073 | for (i = size/2+size/4; i<size; i++) | |
| 1074 | { | |
| 1075 | int d1,d2,d3,d4; | |
| 1076 | ||
| 1077 | /* Expand 2bits into 4bits format */ | |
| 1078 | data = gfx[i]; | |
| 1079 | d1 = (data>>0) & 3; | |
| 1080 | d2 = (data>>2) & 3; | |
| 1081 | d3 = (data>>4) & 3; | |
| 1082 | d4 = (data>>6) & 3; | |
| 1083 | ||
| 1084 | gfx[offset] = (d1<<2) | (d2<<6); | |
| 1085 | offset++; | |
| 1086 | ||
| 1087 | gfx[offset] = (d3<<2) | (d4<<6); | |
| 1088 | offset++; | |
| 1089 | } | |
| 1090 | } | |
| 1091 | ||
| 1092 | ||
| 1093 | ||
| 740 | 1094 | GAME( 1993, undrfire, 0, undrfire, undrfire, undrfire, ROT0, "Taito Corporation Japan", "Under Fire (World)", 0 ) |
| 741 | 1095 | GAME( 1993, undrfiru, undrfire, undrfire, undrfire, undrfire, ROT0, "Taito America Corporation", "Under Fire (US)", 0 ) |
| 742 | 1096 | GAME( 1993, undrfirj, undrfire, undrfire, undrfire, undrfire, ROT0, "Taito Corporation", "Under Fire (Japan)", 0 ) |
| 1097 | GAME( 1994, cbombers, 0, cbombers, cbombers, cbombers, ROT0, "Taito Corporation", "Chase Bombers", GAME_NOT_WORKING ) |
| r2241 | r2242 | |
|---|---|---|
| 359 | 359 | |
| 360 | 360 | static WRITE32_HANDLER( fghthist_eeprom_w ) |
| 361 | 361 | { |
| 362 | if (ACCESSING_ | |
| 362 | if (ACCESSING_ | |
| 363 | 363 | EEPROM_set_clock_line((data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 364 | 364 | EEPROM_write_bit(data & 0x10); |
| 365 | 365 | EEPROM_set_cs_line((data & 0x40) ? CLEAR_LINE : ASSERT_LINE); |
| 366 | 366 | } |
| 367 | else if ( | |
| 367 | else if (!ACCESSING_BITS_8_15 | |
| 368 | 368 | { |
| 369 | 369 | // Volume port |
| 370 | 370 | } |
| r2241 | r2242 | |
| 434 | 434 | |
| 435 | 435 | static WRITE32_HANDLER( dragngun_eeprom_w ) |
| 436 | 436 | { |
| 437 | if (ACCESSING_ | |
| 437 | if (ACCESSING_ | |
| 438 | 438 | EEPROM_set_clock_line((data & 0x2) ? ASSERT_LINE : CLEAR_LINE); |
| 439 | 439 | EEPROM_write_bit(data & 0x1); |
| 440 | 440 | EEPROM_set_cs_line((data & 0x4) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
| 635 | 635 | |
| 636 | 636 | static WRITE32_HANDLER( nslasher_eeprom_w ) |
| 637 | 637 | { |
| 638 | if (ACCESSING_ | |
| 638 | if (ACCESSING_ | |
| 639 | 639 | { |
| 640 | 640 | EEPROM_set_clock_line((data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 641 | 641 | EEPROM_write_bit(data & 0x10); |
| r2241 | r2242 | |
|---|---|---|
| 23 | 23 | * |
| 24 | 24 | *************************************/ |
| 25 | 25 | |
| 26 | static READ16_DEVICE_HANDLER( vertigo_pit8254_lsb_r ) { return pit8253_r( device, offset ); } | |
| 27 | static WRITE16_DEVICE_HANDLER( vertigo_pit8254_lsb_w ) { if (ACCESSING_BITS_0_7) pit8253_w(device, offset, data); } | |
| 28 | ||
| 26 | 29 | static ADDRESS_MAP_START( vertigo_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 27 | 30 | AM_RANGE(0x000000, 0x000007) AM_ROM |
| 28 | 31 | AM_RANGE(0x000008, 0x001fff) AM_RAM AM_MIRROR(0x010000) |
| r2241 | r2242 | |
| 35 | 38 | AM_RANGE(0x004050, 0x00405f) AM_READWRITE(SMH_RAM, vertigo_audio_w) AM_MIRROR(0x001000) |
| 36 | 39 | AM_RANGE(0x004060, 0x00406f) AM_WRITE(vertigo_motor_w) AM_MIRROR(0x001000) |
| 37 | 40 | AM_RANGE(0x004070, 0x00407f) AM_WRITE(vertigo_wsot_w) AM_MIRROR(0x001000) |
| 38 | AM_RANGE(0x006000, 0x006007) AM_READWRITE(pit825 | |
| 41 | AM_RANGE(0x006000, 0x006007) AM_DEVREADWRITE(PIT8254, "pit8254", vertigo_pit8254_lsb_r, vertigo_pit8254 | |
| 39 | 42 | AM_RANGE(0x007000, 0x0073ff) AM_RAM AM_BASE(&generic_nvram16) AM_SIZE(&generic_nvram_size) |
| 40 | 43 | AM_RANGE(0x800000, 0x81ffff) AM_ROM |
| 41 | 44 | ADDRESS_MAP_END |
| r2241 | r2242 | |
| 108 | 111 | |
| 109 | 112 | MDRV_IMPORT_FROM(exidy440_audio) |
| 110 | 113 | |
| 114 | MDRV_DEVICE_ADD( "pit8254", PIT8254 ) | |
| 115 | MDRV_DEVICE_CONFIG( vertigo_pit8254_config ) | |
| 116 | ||
| 111 | 117 | /* motor controller */ |
| 112 | 118 | /* |
| 113 | 119 | MDRV_CPU_ADD(M6805, 1000000) |
| r2241 | r2242 | |
|---|---|---|
| 202 | 202 | { |
| 203 | 203 | static const UINT8 ls247_map[16] = |
| 204 | 204 | { 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x58,0x4c,0x62,0x69,0x78,0x00 }; |
| 205 | grchamp_state *state = | |
| 205 | grchamp_state *state = machine->driver_data; | |
| 206 | 206 | |
| 207 | 207 | switch (offset) |
| 208 | 208 | { |
| r2241 | r2242 | |
| 354 | 354 | |
| 355 | 355 | static READ8_HANDLER( pc3259_0_r ) |
| 356 | 356 | { |
| 357 | grchamp_state *state = | |
| 357 | grchamp_state *state = machine->driver_data; | |
| 358 | 358 | return get_pc3259_bits(state, 0); |
| 359 | 359 | } |
| 360 | 360 | |
| 361 | 361 | |
| 362 | 362 | static READ8_HANDLER( pc3259_1_r ) |
| 363 | 363 | { |
| 364 | grchamp_state *state = | |
| 364 | grchamp_state *state = machine->driver_data; | |
| 365 | 365 | return get_pc3259_bits(state, 1); |
| 366 | 366 | } |
| 367 | 367 | |
| 368 | 368 | |
| 369 | 369 | static READ8_HANDLER( pc3259_2_r ) |
| 370 | 370 | { |
| 371 | grchamp_state *state = | |
| 371 | grchamp_state *state = machine->driver_data; | |
| 372 | 372 | return get_pc3259_bits(state, 2); |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | |
| 376 | 376 | static READ8_HANDLER( pc3259_3_r ) |
| 377 | 377 | { |
| 378 | grchamp_state *state = | |
| 378 | grchamp_state *state = machine->driver_data; | |
| 379 | 379 | return get_pc3259_bits(state, 3); |
| 380 | 380 | } |
| 381 | 381 | |
| r2241 | r2242 | |
| 389 | 389 | |
| 390 | 390 | static READ8_HANDLER( sub_to_main_comm_r ) |
| 391 | 391 | { |
| 392 | grchamp_state *state = | |
| 392 | grchamp_state *state = machine->driver_data; | |
| 393 | 393 | return state->comm_latch; |
| 394 | 394 | } |
| 395 | 395 | |
| r2241 | r2242 | |
| 410 | 410 | |
| 411 | 411 | static READ8_HANDLER( main_to_sub_comm_r ) |
| 412 | 412 | { |
| 413 | grchamp_state *state = | |
| 413 | grchamp_state *state = machine->driver_data; | |
| 414 | 414 | return state->comm_latch2[offset]; |
| 415 | 415 | } |
| 416 | 416 |
| r2241 | r2242 | |
|---|---|---|
| 124 | 124 | ADDRESS_MAP_END |
| 125 | 125 | |
| 126 | 126 | static INPUT_PORTS_START( goodejan ) |
| 127 | /* Must be port 0: coin inputs read through sound cpu */ | |
| 128 | SEIBU_COIN_INPUTS | |
| 127 | SEIBU_COIN_INPUTS /* coin inputs read through sound cpu */ | |
| 129 | 128 | |
| 130 | 129 | PORT_START |
| 131 | 130 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) |
| r2241 | r2242 | |
|---|---|---|
| 163 | 163 | |
| 164 | 164 | static WRITE16_HANDLER( gaiden_sound_command_w ) |
| 165 | 165 | { |
| 166 | if (ACCESSING_LSB) soundlatch_w(machine,0,data & 0xff); /* Ninja Gaiden */ | |
| 167 | if (ACCESSING_MSB) soundlatch_w(machine,0,data >> 8); /* Tecmo Knight */ | |
| 166 | if (ACCESSING_BITS_0_7) soundlatch_w(machine,0,data & 0xff); /* Ninja Gaiden */ | |
| 167 | if (ACCESSING_BITS_8_15) soundlatch_w(machine,0,data >> 8); /* Tecmo Knight */ | |
| 168 | 168 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | static WRITE16_HANDLER( drgnbowl_sound_command_w ) |
| 172 | 172 | { |
| 173 | if (ACCESSING_ | |
| 173 | if (ACCESSING_ | |
| 174 | 174 | { |
| 175 | 175 | soundlatch_w(machine,0,data >> 8); |
| 176 | 176 | cpunum_set_input_line(machine, 1,0,HOLD_LINE); |
| r2241 | r2242 | |
| 187 | 187 | |
| 188 | 188 | static WRITE16_HANDLER( wildfang_protection_w ) |
| 189 | 189 | { |
| 190 | if (ACCESSING_ | |
| 190 | if (ACCESSING_ | |
| 191 | 191 | { |
| 192 | 192 | static int jumpcode; |
| 193 | 193 | static const int jumppoints[] = |
| r2241 | r2242 | |
| 321 | 321 | |
| 322 | 322 | static WRITE16_HANDLER( raiga_protection_w ) |
| 323 | 323 | { |
| 324 | if (ACCESSING_ | |
| 324 | if (ACCESSING_ | |
| 325 | 325 | { |
| 326 | 326 | static int jumpcode; |
| 327 | 327 |
| r2241 | r2242 | |
|---|---|---|
| 475 | 475 | static ADDRESS_MAP_START( zaxxon_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 476 | 476 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
| 477 | 477 | AM_RANGE(0x6000, 0x6fff) AM_RAM |
| 478 | AM_RANGE(0x8000, 0x83ff) AM_MIRROR(0x1c00) AM_R | |
| 478 | AM_RANGE(0x8000, 0x83ff) AM_MIRROR(0x1c00) AM_R | |
| 479 | 479 | AM_RANGE(0xa000, 0xa0ff) AM_MIRROR(0x1f00) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) |
| 480 | 480 | AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x18fc) AM_READ_PORT("SW00") |
| 481 | 481 | AM_RANGE(0xc001, 0xc001) AM_MIRROR(0x18fc) AM_READ_PORT("SW01") |
| r2241 | r2242 | |
| 498 | 498 | static ADDRESS_MAP_START( congo_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 499 | 499 | AM_RANGE(0x0000, 0x7fff) AM_ROM |
| 500 | 500 | AM_RANGE(0x8000, 0x8fff) AM_RAM |
| 501 | AM_RANGE(0xa000, 0xa3ff) AM_MIRROR(0x1800) AM_READWRITE(SMH_RAM, zaxxon_videoram_w) AM_BASE(&videoram) | |
| 502 | AM_RANGE(0xa400, 0xa7ff) AM_MIRROR(0x1800) AM_READWRITE(SMH_RAM, congo_colorram_w) AM_BASE(&colorram) | |
| 501 | AM_RANGE(0xa000, 0xa3ff) AM_MIRROR(0x1800) AM_RAM AM_WRITE(zaxxon_videoram_w) AM_BASE(&videoram) | |
| 502 | AM_RANGE(0xa400, 0xa7ff) AM_MIRROR(0x1800) AM_RAM AM_WRITE(congo_colorram_w) AM_BASE(&colorram) | |
| 503 | 503 | AM_RANGE(0xc000, 0xc000) AM_MIRROR(0x1fc4) AM_READ_PORT("SW00") |
| 504 | 504 | AM_RANGE(0xc001, 0xc001) AM_MIRROR(0x1fc4) AM_READ_PORT("SW01") |
| 505 | 505 | AM_RANGE(0xc002, 0xc002) AM_MIRROR(0x1fc4) AM_READ_PORT("DSW02") |
| r2241 | r2242 | |
|---|---|---|
| 125 | 125 | |
| 126 | 126 | static WRITE16_HANDLER( dac_w ) |
| 127 | 127 | { |
| 128 | if (ACCESSING_ | |
| 128 | if (ACCESSING_ | |
| 129 | 129 | DAC_data_w(0, data >> 8); |
| 130 | 130 | } |
| 131 | 131 | |
| r2241 | r2242 | |
| 139 | 139 | |
| 140 | 140 | static WRITE16_HANDLER( bit_controls_w ) |
| 141 | 141 | { |
| 142 | if (ACCESSING_ | |
| 142 | if (ACCESSING_ | |
| 143 | 143 | { |
| 144 | 144 | if (bitvals[offset] != (data & 1)) |
| 145 | 145 | { |
| r2241 | r2242 | |
|---|---|---|
| 1341 | 1341 | |
| 1342 | 1342 | static WRITE32_HANDLER( sio_irq_clear_w ) |
| 1343 | 1343 | { |
| 1344 | if ( | |
| 1344 | if (ACCESSING_BITS_ | |
| 1345 | 1345 | { |
| 1346 | 1346 | sio_irq_clear = data; |
| 1347 | 1347 | |
| r2241 | r2242 | |
| 1370 | 1370 | |
| 1371 | 1371 | static WRITE32_HANDLER( sio_irq_enable_w ) |
| 1372 | 1372 | { |
| 1373 | if ( | |
| 1373 | if (ACCESSING_BITS_ | |
| 1374 | 1374 | { |
| 1375 | 1375 | sio_irq_enable = data; |
| 1376 | 1376 | update_sio_irqs(); |
| r2241 | r2242 | |
| 1392 | 1392 | |
| 1393 | 1393 | static WRITE32_HANDLER( sio_led_w ) |
| 1394 | 1394 | { |
| 1395 | if ( | |
| 1395 | if (ACCESSING_BITS_ | |
| 1396 | 1396 | sio_led_state = data; |
| 1397 | 1397 | } |
| 1398 | 1398 | |
| r2241 | r2242 | |
| 1412 | 1412 | |
| 1413 | 1413 | static WRITE32_HANDLER( sio_w ) |
| 1414 | 1414 | { |
| 1415 | if (!(mem_mask & 0x000000ff)) offset += 0; | |
| 1416 | if (!(mem_mask & 0x0000ff00)) offset += 1; | |
| 1417 | if (!(mem_mask & 0x00ff0000)) offset += 2; | |
| 1418 | if (!(mem_mask & 0xff000000)) offset += 3; | |
| 1415 | if (ACCESSING_BITS_0_7) offset += 0; | |
| 1416 | if (ACCESSING_BITS_8_15) offset += 1; | |
| 1417 | if (ACCESSING_BITS_16_23) offset += 2; | |
| 1418 | if (ACCESSING_BITS_24_31) offset += 3; | |
| 1419 | 1419 | if (LOG_SIO && offset != 0) |
| 1420 | 1420 | logerror("%08X:sio write to offset %X = %02X\n", activecpu_get_pc(), offset, data >> (offset*8)); |
| 1421 | 1421 | if (offset < 4) |
| r2241 | r2242 | |
| 1428 | 1428 | static READ32_HANDLER( sio_r ) |
| 1429 | 1429 | { |
| 1430 | 1430 | UINT32 result = 0; |
| 1431 | if (!(mem_mask & 0x000000ff)) offset += 0; | |
| 1432 | if (!(mem_mask & 0x0000ff00)) offset += 1; | |
| 1433 | if (!(mem_mask & 0x00ff0000)) offset += 2; | |
| 1434 | if (!(mem_mask & 0xff000000)) offset += 3; | |
| 1431 | if (ACCESSING_BITS_0_7) offset += 0; | |
| 1432 | if (ACCESSING_BITS_8_15) offset += 1; | |
| 1433 | if (ACCESSING_BITS_16_23) offset += 2; | |
| 1434 | if (ACCESSING_BITS_24_31) offset += 3; | |
| 1435 | 1435 | if (offset < 4) |
| 1436 | 1436 | result = sio_data[0] | (sio_data[1] << 8) | (sio_data[2] << 16) | (sio_data[3] << 24); |
| 1437 | 1437 | if (LOG_SIO && offset != 2) |
| r2241 | r2242 | |
| 1507 | 1507 | static READ32_HANDLER( ethernet_r ) |
| 1508 | 1508 | { |
| 1509 | 1509 | UINT32 result = 0; |
| 1510 | if ( | |
| 1510 | if (ACCESSING_BITS_ | |
| 1511 | 1511 | result |= smc91c94_r(machine, offset * 2 + 0, mem_mask); |
| 1512 | if ( | |
| 1512 | if (ACCESSING_BITS_16_31 | |
| 1513 | 1513 | result |= smc91c94_r(machine, offset * 2 + 1, mem_mask >> 16) << 16; |
| 1514 | 1514 | return result; |
| 1515 | 1515 | } |
| r2241 | r2242 | |
| 1517 | 1517 | |
| 1518 | 1518 | static WRITE32_HANDLER( ethernet_w ) |
| 1519 | 1519 | { |
| 1520 | if ( | |
| 1520 | if (ACCESSING_BITS_ | |
| 1521 | 1521 | smc91c94_w(machine, offset * 2 + 0, data, mem_mask); |
| 1522 | if ( | |
| 1522 | if (ACCESSING_BITS_16_31 | |
| 1523 | 1523 | smc91c94_w(machine, offset * 2 + 1, data >> 16, mem_mask >> 16); |
| 1524 | 1524 | } |
| 1525 | 1525 |
| r2241 | r2242 | |
|---|---|---|
| 566 | 566 | static MACHINE_DRIVER_START( rygar ) |
| 567 | 567 | |
| 568 | 568 | /* basic machine hardware */ |
| 569 | MDRV_CPU_ADD_TAG("main", Z80, 4 | |
| 569 | MDRV_CPU_ADD_TAG("main", Z80, XTAL_24MHz/4 | |
| 570 | 570 | MDRV_CPU_PROGRAM_MAP(readmem,rygar_writemem) |
| 571 | 571 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 572 | 572 | |
| 573 | MDRV_CPU_ADD_TAG("sound", Z80, 4 | |
| 573 | MDRV_CPU_ADD_TAG("sound", Z80, XTAL_4MHz | |
| 574 | 574 | /* audio CPU */ |
| 575 | 575 | MDRV_CPU_PROGRAM_MAP(rygar_sound_readmem,rygar_sound_writemem) |
| 576 | 576 | |
| r2241 | r2242 | |
| 591 | 591 | /* sound hardware */ |
| 592 | 592 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 593 | 593 | |
| 594 | MDRV_SOUND_ADD(YM3812, 4 | |
| 594 | MDRV_SOUND_ADD(YM3812, XTAL_4MHz | |
| 595 | 595 | MDRV_SOUND_CONFIG(ym3812_interface) |
| 596 | 596 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 597 | 597 | |
| 598 | MDRV_SOUND_ADD(MSM5205, | |
| 598 | MDRV_SOUND_ADD(MSM5205, XTAL_400kHz) /* verified on pcb, even if schematics shows a 384khz resonator */ | |
| 599 | 599 | MDRV_SOUND_CONFIG(msm5205_interface) |
| 600 | 600 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 601 | 601 | MACHINE_DRIVER_END |
| r2241 | r2242 | |
|---|---|---|
| 161 | 161 | |
| 162 | 162 | static WRITE16_HANDLER( galpanic_6295_bankswitch_w ) |
| 163 | 163 | { |
| 164 | if (ACCESSING_ | |
| 164 | if (ACCESSING_ | |
| 165 | 165 | { |
| 166 | 166 | UINT8 *rom = memory_region(REGION_SOUND1); |
| 167 | 167 | |
| r2241 | r2242 | |
| 174 | 174 | |
| 175 | 175 | static WRITE16_HANDLER( galpania_6295_bankswitch_w ) |
| 176 | 176 | { |
| 177 | if (ACCESSING_ | |
| 177 | if (ACCESSING_ | |
| 178 | 178 | { |
| 179 | 179 | UINT8 *rom = memory_region(REGION_SOUND1); |
| 180 | 180 | |
| r2241 | r2242 | |
| 185 | 185 | #ifdef UNUSED_FUNCTION |
| 186 | 186 | static WRITE16_HANDLER( galpania_misc_w ) |
| 187 | 187 | { |
| 188 | if (ACCESSING_ | |
| 188 | if (ACCESSING_ | |
| 189 | 189 | { |
| 190 | 190 | pandora_set_clear_bitmap( data & 0x0004 ); |
| 191 | 191 | } |
| r2241 | r2242 | |
| 196 | 196 | |
| 197 | 197 | static WRITE16_HANDLER( galpanic_coin_w ) |
| 198 | 198 | { |
| 199 | if (ACCESSING_ | |
| 199 | if (ACCESSING_ | |
| 200 | 200 | { |
| 201 | 201 | coin_counter_w(0, data & 0x100); |
| 202 | 202 | coin_counter_w(1, data & 0x200); |
| r2241 | r2242 | |
|---|---|---|
| 217 | 217 | |
| 218 | 218 | static WRITE16_HANDLER( sound_data_w ) |
| 219 | 219 | { |
| 220 | if (ACCESSING_ | |
| 220 | if (ACCESSING_ | |
| 221 | 221 | timer_call_after_resynch(NULL, data & 0xff, delayed_sound_data_w); |
| 222 | 222 | } |
| 223 | 223 | |
| r2241 | r2242 | |
| 344 | 344 | static READ16_HANDLER( analog_r ) |
| 345 | 345 | { |
| 346 | 346 | int result = 0xff; |
| 347 | if (ACCESSING_ | |
| 347 | if (ACCESSING_ | |
| 348 | 348 | { |
| 349 | 349 | result = analog_data[offset & 3] & 0x80; |
| 350 | 350 | analog_data[offset & 3] <<= 1; |
| r2241 | r2242 | |
|---|---|---|
| 126 | 126 | |
| 127 | 127 | static WRITE16_HANDLER( adpcm_w ) |
| 128 | 128 | { |
| 129 | if (ACCESSING_ | |
| 129 | if (ACCESSING_ | |
| 130 | 130 | OKIM6295_data_0_w(machine, offset, data & 0xff); |
| 131 | 131 | } |
| 132 | 132 |
| r2241 | r2242 | |
|---|---|---|
| 411 | 411 | switch (offset & 0x70/2) |
| 412 | 412 | { |
| 413 | 413 | case 0x00/2: |
| 414 | if (ACCESSING_ | |
| 414 | if (ACCESSING_ | |
| 415 | 415 | ppi8255_0_w(machine, offset & 3, data); |
| 416 | 416 | return; |
| 417 | 417 | |
| 418 | 418 | case 0x20/2: |
| 419 | if (ACCESSING_ | |
| 419 | if (ACCESSING_ | |
| 420 | 420 | { |
| 421 | 421 | /* Output port: |
| 422 | 422 | D7: /MUTE |
| r2241 | r2242 | |
|---|---|---|
| 283 | 283 | UINT32 r = 0; |
| 284 | 284 | if (offset == 0) |
| 285 | 285 | { |
| 286 | if ( | |
| 286 | if (ACCESSING_BITS_24_31 | |
| 287 | 287 | { |
| 288 | 288 | r |= readinputport(0) << 24; |
| 289 | 289 | } |
| 290 | if ( | |
| 290 | if (ACCESSING_BITS_16_23 | |
| 291 | 291 | { |
| 292 | 292 | r |= readinputport(1) << 16; |
| 293 | 293 | } |
| 294 | if ( | |
| 294 | if (ACCESSING_BITS_8_15 | |
| 295 | 295 | { |
| 296 | 296 | r |= (adc1038_sars_r() << 7) << 8; |
| 297 | 297 | } |
| 298 | if ( | |
| 298 | if (ACCESSING_BITS_ | |
| 299 | 299 | { |
| 300 | 300 | r |= readinputport(3) << 0; |
| 301 | 301 | } |
| r2241 | r2242 | |
| 303 | 303 | } |
| 304 | 304 | else if (offset == 1) |
| 305 | 305 | { |
| 306 | if ( | |
| 306 | if (ACCESSING_BITS_24_31 | |
| 307 | 307 | { |
| 308 | 308 | // 7 0 |
| 309 | 309 | // |?????ae?| |
| r2241 | r2242 | |
| 328 | 328 | { |
| 329 | 329 | if (offset == 0) |
| 330 | 330 | { |
| 331 | if( | |
| 331 | if( ACCESSING_BITS_24_31 | |
| 332 | 332 | { |
| 333 | 333 | gticlub_led_reg0 = (data >> 24) & 0xff; |
| 334 | 334 | } |
| 335 | if( | |
| 335 | if( ACCESSING_BITS_16_23 | |
| 336 | 336 | { |
| 337 | 337 | gticlub_led_reg1 = (data >> 16) & 0xff; |
| 338 | 338 | } |
| 339 | if( | |
| 339 | if( ACCESSING_BITS_ | |
| 340 | 340 | { |
| 341 | 341 | EEPROM_write_bit((data & 0x01) ? 1 : 0); |
| 342 | 342 | EEPROM_set_clock_line((data & 0x02) ? ASSERT_LINE : CLEAR_LINE); |
| r2241 | r2242 | |
| 345 | 345 | } |
| 346 | 346 | if( offset == 1 ) |
| 347 | 347 | { |
| 348 | if ( | |
| 348 | if (ACCESSING_BITS_24_31 | |
| 349 | 349 | { |
| 350 | 350 | if (data & 0x80000000) /* CG Board 1 IRQ Ack */ |
| 351 | 351 | { |
| r2241 | r2242 | |
| 414 | 414 | UINT32 r = 0; |
| 415 | 415 | int reg = offset * 4; |
| 416 | 416 | |
| 417 | if ( | |
| 417 | if (ACCESSING_BITS_24_31 | |
| 418 | 418 | { |
| 419 | 419 | r |= K056230_r(reg+0) << 24; |
| 420 | 420 | } |
| 421 | if ( | |
| 421 | if (ACCESSING_BITS_16_23 | |
| 422 | 422 | { |
| 423 | 423 | r |= K056230_r(reg+1) << 16; |
| 424 | 424 | } |
| 425 | if ( | |
| 425 | if (ACCESSING_BITS_8_15 | |
| 426 | 426 | { |
| 427 | 427 | r |= K056230_r(reg+2) << 8; |
| 428 | 428 | } |
| 429 | if ( | |
| 429 | if (ACCESSING_BITS_ | |
| 430 | 430 | { |
| 431 | 431 | r |= K056230_r(reg+3) << 0; |
| 432 | 432 | } |
| r2241 | r2242 | |
| 438 | 438 | { |
| 439 | 439 | int reg = offset * 4; |
| 440 | 440 | |
| 441 | if ( | |
| 441 | if (ACCESSING_BITS_24_31 | |
| 442 | 442 | { |
| 443 | 443 | K056230_w(reg+0, (data >> 24) & 0xff); |
| 444 | 444 | } |
| 445 | if ( | |
| 445 | if (ACCESSING_BITS_16_23 | |
| 446 | 446 | { |
| 447 | 447 | K056230_w(reg+1, (data >> 16) & 0xff); |
| 448 | 448 | } |
| 449 | if ( | |
| 449 | if (ACCESSING_BITS_8_15 | |
| 450 | 450 | { |
| 451 | 451 | K056230_w(reg+2, (data >> 8) & 0xff); |
| 452 | 452 | } |
| 453 | if ( | |
| 453 | if (ACCESSING_BITS_ | |
| 454 | 454 | { |
| 455 | 455 | K056230_w(reg+3, (data >> 0) & 0xff); |
| 456 | 456 | } |
| r2241 | r2242 | |
|---|---|---|
| 173 | 173 | |
| 174 | 174 | static WRITE16_HANDLER( digital_w ) |
| 175 | 175 | { |
| 176 | if (ACCESSING_ | |
| 176 | if (ACCESSING_ | |
| 177 | 177 | { |
| 178 | 178 | foodf_set_flip(data & 0x01); |
| 179 | 179 | |
| r2241 | r2242 | |
| 223 | 223 | static READ16_HANDLER( pokey2_word_r ) { return pokey2_r(machine, offset); } |
| 224 | 224 | static READ16_HANDLER( pokey3_word_r ) { return pokey3_r(machine, offset); } |
| 225 | 225 | |
| 226 | static WRITE16_HANDLER( pokey1_word_w ) { if (ACCESSING_LSB) pokey1_w(machine, offset, data & 0xff); } | |
| 227 | static WRITE16_HANDLER( pokey2_word_w ) { if (ACCESSING_LSB) pokey2_w(machine, offset, data & 0xff); } | |
| 228 | static WRITE16_HANDLER( pokey3_word_w ) { if (ACCESSING_LSB) pokey3_w(machine, offset, data & 0xff); } | |
| 226 | static WRITE16_HANDLER( pokey1_word_w ) { if (ACCESSING_BITS_0_7) pokey1_w(machine, offset, data & 0xff); } | |
| 227 | static WRITE16_HANDLER( pokey2_word_w ) { if (ACCESSING_BITS_0_7) pokey2_w(machine, offset, data & 0xff); } | |
| 228 | static WRITE16_HANDLER( pokey3_word_w ) { if (ACCESSING_BITS_0_7) pokey3_w(machine, offset, data & 0xff); } | |
| 229 | 229 | |
| 230 | 230 | |
| 231 | 231 |
| r2241 | r2242 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | - Emeralda: |
| 25 | 25 | After selecting the game type, tilemap scrolling is briefly incorrect |
| 26 | Shadow sprites, if enabled, make the score display invisible | |
| 27 | 26 | The demo sprites are incorrect, you should see a dolphin speaking |
| 28 | 27 | the instructions and the playfield is wrong. |
| 29 | 28 | Byte 0x25 of the NVRAM controls the FBI logo. 0x00 is on, 0x01 is off |
| r2241 | r2242 | |
| 264 | 263 | |
| 265 | 264 | static WRITE16_HANDLER( namcona1_nvram_w ) |
| 266 | 265 | { |
| 267 | if( ACCESSING_ | |
| 266 | if( ACCESSING_ | |
| 268 | 267 | { |
| 269 | 268 | namcona1_nvmem[offset] = data&0xff; |
| 270 | 269 | } |
| r2241 | r2242 | |
| 727 | 726 | old_count = count; |
| 728 | 727 | do |
| 729 | 728 | { |
| 730 | count = mame_rand( | |
| 729 | count = mame_rand(machine); | |
| 731 | 730 | } while( old_count == count ); |
| 732 | 731 | |
| 733 | 732 | switch( namcona1_gametype ) |
| r2241 | r2242 | |
| 798 | 797 | default: |
| 799 | 798 | return 0; |
| 800 | 799 | } |
| 801 | return mame_rand( | |
| 800 | return mame_rand(machine)&0xffff; | |
| 802 | 801 | } /* custom_key_r */ |
| 803 | 802 | |
| 804 | 803 | static WRITE16_HANDLER( custom_key_w ) |
| r2241 | r2242 | |
| 1054 | 1053 | |
| 1055 | 1054 | /***************************************************************/ |
| 1056 | 1055 | |
| 1057 | static WRITE16_HANDLER( bogus_w ) | |
| 1058 | { | |
| 1059 | // DEBUGGER_BREAK; | |
| 1060 | } | |
| 1061 | static READ16_HANDLER( bogus_r ) | |
| 1062 | { | |
| 1063 | // DEBUGGER_BREAK; | |
| 1064 | return 0; | |
| 1065 | } | |
| 1066 | ||
| 1067 | 1056 | // MCU "mailslot" handler - has 8 16-bit slots mirrored |
| 1068 | 1057 | static UINT16 mcu_mailbox[8]; |
| 1069 | 1058 | |
| r2241 | r2242 | |
| 1076 | 1065 | { |
| 1077 | 1066 | // logerror("mailbox_w_68k: %x @ %x\n", data, offset); |
| 1078 | 1067 | |
| 1079 | if (offset == 4) cpunum_set_input_line( | |
| 1068 | if (offset == 4) cpunum_set_input_line(machine, 1, M37710_LINE_IRQ0, HOLD_LINE); | |
| 1080 | 1069 | |
| 1081 | 1070 | COMBINE_DATA(&mcu_mailbox[offset%8]); |
| 1082 | 1071 | } |
| r2241 | r2242 | |
| 1086 | 1075 | COMBINE_DATA(&mcu_mailbox[offset%8]); |
| 1087 | 1076 | } |
| 1088 | 1077 | |
| 1089 | static ADDRESS_MAP_START( namcona1_m | |
| 1078 | static ADDRESS_MAP_START( namcona1_m | |
| 1090 | 1079 | AM_RANGE(0x000000, 0x07ffff) AM_RAM AM_BASE(&namcona1_workram) |
| 1091 | AM_RANGE(0x080000, 0x3f7fff) AM_READ(bogus_r) | |
| 1092 | AM_RANGE(0x3f8000, 0x3fffff) AM_READ(mcu_mailbox_r) | |
| 1080 | AM_RANGE(0x3f8000, 0x3fffff) AM_READWRITE(mcu_mailbox_r, mcu_mailbox_w_68k) | |
| 1093 | 1081 | AM_RANGE(0x400000, 0xbfffff) AM_ROM AM_REGION(REGION_CPU1, 0x280000) /* data */ |
| 1094 | 1082 | AM_RANGE(0xc00000, 0xdfffff) AM_ROM AM_REGION(REGION_CPU1, 0x080000) /* code */ |
| 1095 | AM_RANGE(0xe00000, 0xe00fff) AM_READ(namcona1_nvram_r) | |
| 1096 | AM_RANGE(0xe40000, 0xe4000f) AM_READ(custom_key_r) | |
| 1097 | AM_RANGE(0xe40010, 0xeffeff) AM_READ(bogus_r) | |
| 1098 | AM_RANGE(0xefff00, 0xefffff) AM_READ(namcona1_vreg_r) | |
| 1099 | AM_RANGE(0xf00000, 0xf01fff) AM_READ(namcona1_paletteram_r) | |
| 1100 | AM_RANGE(0xf02000, 0xf3ffff) AM_READ(bogus_r) | |
| 1101 | AM_RANGE(0xf40000, 0xf7ffff) AM_READ(namcona1_gfxram_r) | |
| 1102 | AM_RANGE(0xf80000, 0xfeffff) AM_READ(bogus_r) | |
| 1103 | AM_RANGE(0xff0000, 0xff7fff) AM_READ(namcona1_videoram_r) | |
| 1104 | AM_RANGE(0xff8000, 0xffdfff) AM_READ(SMH_RAM) /* spare videoram */ | |
| 1105 | AM_RANGE(0xffe000, 0xffefff) AM_READ(SMH_RAM) /* scroll registers */ | |
| 1106 | AM_RANGE(0xfff000, 0xffffff) AM_READ(SMH_RAM) /* spriteram */ | |
| 1083 | AM_RANGE(0xe00000, 0xe00fff) AM_READWRITE(namcona1_nvram_r, namcona1_nvram_w) | |
| 1084 | AM_RANGE(0xe40000, 0xe4000f) AM_READWRITE(custom_key_r, custom_key_w) | |
| 1085 | AM_RANGE(0xefff00, 0xefffff) AM_READWRITE(namcona1_vreg_r, namcona1_vreg_w) AM_BASE(&namcona1_vreg) | |
| 1086 | AM_RANGE(0xf00000, 0xf01fff) AM_READWRITE(namcona1_paletteram_r, namcona1_paletteram_w) AM_BASE(&paletteram16) | |
| 1087 | AM_RANGE(0xf40000, 0xf7ffff) AM_READWRITE(namcona1_gfxram_r, namcona1_gfxram_w) | |
| 1088 | AM_RANGE(0xff0000, 0xff7fff) AM_READWRITE(namcona1_videoram_r, namcona1_videoram_w) AM_BASE(&videoram16) | |
| 1089 | AM_RANGE(0xff8000, 0xffdfff) AM_RAM AM_BASE(&namcona1_sparevram) /* spare videoram */ | |
| 1090 | AM_RANGE(0xffe000, 0xffefff) AM_RAM AM_BASE(&namcona1_scroll) /* scroll registers */ | |
| 1091 | AM_RANGE(0xfff000, 0xffffff) AM_RAM AM_BASE(&spriteram16) /* spriteram */ | |
| 1107 | 1092 | ADDRESS_MAP_END |
| 1108 | 1093 | |
| 1109 | static ADDRESS_MAP_START( namcona1_mcu_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 1110 | AM_RANGE(0x000000, 0x07ffff) AM_RAM | |
| 1111 | AM_RANGE(0x080000, 0x3f7fff) AM_WRITE(bogus_w) | |
| 1112 | AM_RANGE(0x3f8000, 0x3fffff) AM_WRITE(mcu_mailbox_w_68k) | |
| 1113 | AM_RANGE(0x400000, 0xdfffff) AM_WRITE(SMH_ROM) /* data + code */ | |
| 1114 | AM_RANGE(0xe00000, 0xe00fff) AM_WRITE(namcona1_nvram_w) | |
| 1115 | AM_RANGE(0xe01000, 0xe3ffff) AM_WRITE(bogus_w) | |
| 1116 | AM_RANGE(0xe40000, 0xe4000f) AM_WRITE(custom_key_w) | |
| 1117 | AM_RANGE(0xe40010, 0xeffeff) AM_WRITE(bogus_w) | |
| 1118 | AM_RANGE(0xefff00, 0xefffff) AM_WRITE(namcona1_vreg_w) AM_BASE(&namcona1_vreg) | |
| 1119 | AM_RANGE(0xf00000, 0xf01fff) AM_WRITE(namcona1_paletteram_w) AM_BASE(&paletteram16) | |
| 1120 | AM_RANGE(0xf02000, 0xf3ffff) AM_WRITE(bogus_w) | |
| 1121 | AM_RANGE(0xf40000, 0xf7ffff) AM_WRITE(namcona1_gfxram_w) | |
| 1122 | AM_RANGE(0xf80000, 0xfeffff) AM_WRITE(bogus_w) | |
| 1123 | AM_RANGE(0xff0000, 0xff7fff) AM_WRITE(namcona1_videoram_w) AM_BASE(&videoram16) | |
| 1124 | AM_RANGE(0xff8000, 0xffdfff) AM_WRITE(SMH_RAM) AM_BASE(&namcona1_sparevram) | |
| 1125 | AM_RANGE(0xffe000, 0xffefff) AM_WRITE(SMH_RAM) AM_BASE(&namcona1_scroll) | |
| 1126 | AM_RANGE(0xfff000, 0xffffff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) | |
| 1127 | ADDRESS_MAP_END | |
| 1128 | ||
| 1129 | 1094 | /* ----- NA-1 MCU handling ----------------------------------- */ |
| 1130 | 1095 | |
| 1131 | 1096 | static READ16_HANDLER( na1mcu_shared_r ) |
| r2241 | r2242 | |
| 1159 | 1124 | |
| 1160 | 1125 | static WRITE16_HANDLER(snd_w) |
| 1161 | 1126 | { |
| 1162 | if (ACCESSING_ | |
| 1127 | if (ACCESSING_ | |
| 1163 | 1128 | { |
| 1164 | 1129 | C140_w(machine,(offset*2)+1, data); |
| 1165 | 1130 | } |
| 1166 | 1131 | |
| 1167 | if (ACCESSING_ | |
| 1132 | if (ACCESSING_ | |
| 1168 | 1133 | { |
| 1169 | 1134 | C140_w(machine,(offset*2), data>>8); |
| 1170 | 1135 | } |
| r2241 | r2242 | |
| 1194 | 1159 | logerror("launching 68k, PC=%x\n", activecpu_get_pc()); |
| 1195 | 1160 | |
| 1196 | 1161 | // reset and launch the 68k |
| 1197 | cpunum_set_input_line( | |
| 1162 | cpunum_set_input_line(machine, 0, INPUT_LINE_RESET, CLEAR_LINE); | |
| 1198 | 1163 | } |
| 1199 | 1164 | |
| 1200 | 1165 | mcu_port4 = data; |
| r2241 | r2242 | |
| 1312 | 1277 | { |
| 1313 | 1278 | simulate_mcu(); |
| 1314 | 1279 | } |
| 1315 | if( mEnableInterrupts ) | |
| 1280 | if(1)// mEnableInterrupts ) | |
| 1316 | 1281 | { |
| 1317 | 1282 | if( (namcona1_vreg[0x1a/2]&(1<<level))==0 ) |
| 1318 | 1283 | { |
| r2241 | r2242 | |
| 1345 | 1310 | static MACHINE_DRIVER_START( namcona1 ) |
| 1346 | 1311 | /* basic machine hardware */ |
| 1347 | 1312 | MDRV_CPU_ADD(M68000, 50113000/4) |
| 1348 | MDRV_CPU_PROGRAM_MAP(namcona1_m | |
| 1313 | MDRV_CPU_PROGRAM_MAP(namcona1_m | |
| 1349 | 1314 | MDRV_CPU_VBLANK_INT_HACK(namcona1_interrupt,5) |
| 1350 | 1315 | |
| 1351 | 1316 | MDRV_CPU_ADD(M37710, 50113000/4) |
| r2241 | r2242 | |
| 1396 | 1361 | |
| 1397 | 1362 | static ADDRESS_MAP_START( namcona2_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1398 | 1363 | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_RAM) /* work RAM */ |
| 1399 | AM_RANGE(0x080000, 0x3fffff) AM_READ(bogus_r) | |
| 1400 | 1364 | AM_RANGE(0x400000, 0xbfffff) AM_ROM AM_REGION(REGION_CPU1, 0x280000) /* data */ |
| 1401 | 1365 | AM_RANGE(0xc00000, 0xdfffff) AM_ROM AM_REGION(REGION_CPU1, 0x080000) /* code */ |
| 1402 | 1366 | AM_RANGE(0xe00000, 0xe00fff) AM_READ(namcona1_nvram_r) |
| 1403 | 1367 | AM_RANGE(0xe40000, 0xe4000f) AM_READ(custom_key_r) |
| 1404 | AM_RANGE(0xe40010, 0xeffeff) AM_READ(bogus_r) | |
| 1405 | 1368 | AM_RANGE(0xefff00, 0xefffff) AM_READ(namcona1_vreg_r) |
| 1406 | 1369 | AM_RANGE(0xf00000, 0xf01fff) AM_READ(namcona1_paletteram_r) |
| 1407 | AM_RANGE(0xf02000, 0xf3ffff) AM_READ(bogus_r) | |
| 1408 | 1370 | AM_RANGE(0xf40000, 0xf7ffff) AM_READ(namcona1_gfxram_r) |
| 1409 | AM_RANGE(0xf80000, 0xfeffff) AM_READ(bogus_r) | |
| 1410 | 1371 | AM_RANGE(0xff0000, 0xff7fff) AM_READ(namcona1_videoram_r) |
| 1411 | 1372 | AM_RANGE(0xff8000, 0xffdfff) AM_READ(SMH_RAM) /* spare videoram */ |
| 1412 | 1373 | AM_RANGE(0xffe000, 0xffefff) AM_READ(SMH_RAM) /* scroll registers */ |
| r2241 | r2242 | |
| 1416 | 1377 | static ADDRESS_MAP_START( namcona2_writemem, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1417 | 1378 | AM_RANGE(0x000000, 0x000fff) AM_WRITE(namcona1_mcu_w) AM_BASE(&mcu_ram) |
| 1418 | 1379 | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_RAM) AM_BASE(&namcona1_workram) |
| 1419 | AM_RANGE(0x080000, 0x3f8007) AM_WRITE(bogus_w) | |
| 1420 | 1380 | AM_RANGE(0x3f8008, 0x3f8009) AM_WRITE(mcu_command_w) |
| 1421 | AM_RANGE(0x3f800a, 0x3fffff) AM_WRITE(bogus_w) | |
| 1422 | 1381 | AM_RANGE(0x400000, 0xdfffff) AM_WRITE(SMH_ROM) /* data + code */ |
| 1423 | 1382 | AM_RANGE(0xe00000, 0xe00fff) AM_WRITE(namcona1_nvram_w) |
| 1424 | AM_RANGE(0xe01000, 0xe3ffff) AM_WRITE(bogus_w) | |
| 1425 | 1383 | AM_RANGE(0xe40000, 0xe4000f) AM_WRITE(custom_key_w) |
| 1426 | AM_RANGE(0xe40010, 0xeffeff) AM_WRITE(bogus_w) | |
| 1427 | 1384 | AM_RANGE(0xefff00, 0xefffff) AM_WRITE(namcona1_vreg_w) AM_BASE(&namcona1_vreg) |
| 1428 | 1385 | AM_RANGE(0xf00000, 0xf01fff) AM_WRITE(namcona1_paletteram_w) AM_BASE(&paletteram16) |
| 1429 | AM_RANGE(0xf02000, 0xf3ffff) AM_WRITE(bogus_w) | |
| 1430 | 1386 | AM_RANGE(0xf40000, 0xf7ffff) AM_WRITE(namcona1_gfxram_w) |
| 1431 | AM_RANGE(0xf80000, 0xfeffff) AM_WRITE(bogus_w) | |
| 1432 | 1387 | AM_RANGE(0xff0000, 0xff7fff) AM_WRITE(namcona1_videoram_w) AM_BASE(&videoram16) |
| 1433 | 1388 | AM_RANGE(0xff8000, 0xffdfff) AM_WRITE(SMH_RAM) AM_BASE(&namcona1_sparevram) |
| 1434 | 1389 | AM_RANGE(0xffe000, 0xffefff) AM_WRITE(SMH_RAM) AM_BASE(&namcona1_scroll) |
| r2241 | r2242 | |
|---|---|---|
| 233 | 233 | |
| 234 | 234 | static WRITE16_HANDLER( sound_command_w ) |
| 235 | 235 | { |
| 236 | if (ACCESSING_ | |
| 236 | if (ACCESSING_ | |
| 237 | 237 | soundlatch_w(machine,0,((data & 0x7f) << 1) | 1); |
| 238 | 238 | } |
| 239 | 239 |
| r2241 | r2242 | |
|---|---|---|
| 2154 | 2154 | ROM_LOAD( "v-2n.bpr", 0x0200, 0x0100, CRC(dbf185bf) SHA1(2697a991a4afdf079dd0b7e732f71c7618f43b70) ) /* character color codes on a per-column basis */ |
| 2155 | 2155 | ROM_END |
| 2156 | 2156 | |
| 2157 | /* only the graphic roms differ from dkongjrb but it's a common bootleg */ | |
| 2158 | ROM_START( jrking ) | |
| 2159 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2160 | ROM_LOAD( "b5.bin", 0x0000, 0x1000, CRC(ec7e097f) SHA1(c10885d8724434030094a106c5b6de7fa6976d0f) ) | |
| 2161 | ROM_CONTINUE( 0x3000, 0x1000 ) | |
| 2162 | ROM_LOAD( "c5.bin", 0x2000, 0x0800, CRC(c0a18f0d) SHA1(6d7396b98c0a7fa508dc233f90e5a8359439c97b) ) | |
| 2163 | ROM_CONTINUE( 0x4800, 0x0800 ) | |
| 2164 | ROM_CONTINUE( 0x1000, 0x0800 ) | |
| 2165 | ROM_CONTINUE( 0x5800, 0x0800 ) | |
| 2166 | ROM_LOAD( "e5.bin", 0x4000, 0x0800, CRC(a81dd00c) SHA1(ec507d963151bb8fcee13a47d7f93aa4cd089b7e) ) | |
| 2167 | ROM_CONTINUE( 0x2800, 0x0800 ) | |
| 2168 | ROM_CONTINUE( 0x5000, 0x0800 ) | |
| 2169 | ROM_CONTINUE( 0x1800, 0x0800 ) | |
| 2170 | ||
| 2171 | ROM_REGION( 0x1000, REGION_CPU2, 0 ) /* sound */ | |
| 2172 | ROM_LOAD( "h3.bin", 0x0000, 0x1000, CRC(715da5f8) SHA1(f708c3fd374da65cbd9fe2e191152f5d865414a0) ) | |
| 2173 | ||
| 2174 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2175 | ROM_LOAD( "n3.bin", 0x0000, 0x1000, CRC(7110715d) SHA1(6d848563bf01b347e374d5cae23e09806e28ea6d) ) | |
| 2176 | ROM_LOAD( "p3.bin", 0x1000, 0x1000, CRC(46476016) SHA1(5af29f816e53fd344d114ebf2369e29359e08ce0) ) | |
| 2177 | ||
| 2178 | ROM_REGION( 0x4000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 2179 | ROM_LOAD( "c7.bin", 0x0000, 0x1000, CRC(9f531527) SHA1(6b426cea91135ae1924506f964d856fc475c08e1) ) | |
| 2180 | ROM_LOAD( "d7.bin", 0x1000, 0x1000, CRC(32fbd41b) SHA1(1f98facc2c20dc4b8722085f269f123601382994) ) | |
| 2181 | ROM_LOAD( "e7.bin", 0x2000, 0x1000, CRC(2286bf8e) SHA1(7511e83aa5a4de988048fc2db4de7b3d5aabee8c) ) | |
| 2182 | ROM_LOAD( "f7.bin", 0x3000, 0x1000, CRC(627007a0) SHA1(f71091b65978f7f386ba3c30a3ffe824412bbe67) ) | |
| 2183 | ||
| 2184 | ROM_REGION( 0x0300, REGION_PROMS, 0 ) | |
| 2185 | ROM_LOAD( "c-2e.bpr", 0x0000, 0x0100, CRC(463dc7ad) SHA1(b2c9f22facc8885be2d953b056eb8dcddd4f34cb) ) /* palette low 4 bits (inverted) */ | |
| 2186 | ROM_LOAD( "c-2f.bpr", 0x0100, 0x0100, CRC(47ba0042) SHA1(dbec3f4b8013628c5b8f83162e5f8b1f82f6ee5f) ) /* palette high 4 bits (inverted) */ | |
| 2187 | ROM_LOAD( "v-2n.bpr", 0x0200, 0x0100, CRC(dbf185bf) SHA1(2697a991a4afdf079dd0b7e732f71c7618f43b70) ) /* character color codes on a per-column basis */ | |
| 2188 | ROM_END | |
| 2189 | ||
| 2157 | 2190 | ROM_START( dkongjre ) |
| 2158 | 2191 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 2159 | 2192 | ROM_LOAD( "djr1-c.5b", 0x0000, 0x1000, CRC(ffe9e1a5) SHA1(715dc79d85169b4c1faf43458592e69b434afefd) ) |
| r2241 | r2242 | |
| 2849 | 2882 | GAME( 1982, dkngjnrj, dkongjr, dkongjr, dkongjr, 0, ROT90, "Nintendo", "Donkey Kong Junior (Japan?)", GAME_SUPPORTS_SAVE ) |
| 2850 | 2883 | GAME( 1982, dkongjrb, dkongjr, dkongjr, dkongjr, 0, ROT90, "bootleg", "Donkey Kong Jr. (bootleg)", GAME_SUPPORTS_SAVE ) |
| 2851 | 2884 | GAME( 1982, dkongjre, dkongjr, dkongjr, dkongjr, 0, ROT90, "Nintendo of America", "Donkey Kong Junior (Easy)", GAME_SUPPORTS_SAVE ) |
| 2885 | GAME( 1982, jrking, dkongjr, dkongjr, dkongjr, 0, ROT90, "bootleg", "Junior King (bootleg of Donkey Kong Jr.)", GAME_SUPPORTS_SAVE ) | |
| 2852 | 2886 | |
| 2853 | 2887 | GAME( 1983, dkong3, 0, dkong3, dkong3, 0, ROT90, "Nintendo of America", "Donkey Kong 3 (US)", GAME_SUPPORTS_SAVE ) |
| 2854 | 2888 | GAME( 1983, dkong3j, dkong3, dkong3, dkong3, 0, ROT90, "Nintendo", "Donkey Kong 3 (Japan)", GAME_SUPPORTS_SAVE ) |
| r2241 | r2242 | |
|---|---|---|
| 224 | 224 | |
| 225 | 225 | static WRITE16_HANDLER( ddenlovr16_bgcolor_w ) |
| 226 | 226 | { |
| 227 | if (ACCESSING_ | |
| 227 | if (ACCESSING_ | |
| 228 | 228 | ddenlovr_bgcolor_w(machine,offset,data); |
| 229 | 229 | } |
| 230 | 230 | |
| r2241 | r2242 | |
| 241 | 241 | |
| 242 | 242 | static WRITE16_HANDLER( ddenlovr16_priority_w ) |
| 243 | 243 | { |
| 244 | if (ACCESSING_ | |
| 244 | if (ACCESSING_ | |
| 245 | 245 | ddenlovr_priority_w(machine,offset,data); |
| 246 | 246 | } |
| 247 | 247 | |
| r2241 | r2242 | |
| 259 | 259 | |
| 260 | 260 | static WRITE16_HANDLER( ddenlovr16_layer_enable_w ) |
| 261 | 261 | { |
| 262 | if (ACCESSING_ | |
| 262 | if (ACCESSING_ | |
| 263 | 263 | ddenlovr_layer_enable_w(machine,offset,data); |
| 264 | 264 | } |
| 265 | 265 | |
| r2241 | r2242 | |
| 1119 | 1119 | |
| 1120 | 1120 | static WRITE16_HANDLER( ddenlovr_blitter_w ) |
| 1121 | 1121 | { |
| 1122 | if (ACCESSING_ | |
| 1122 | if (ACCESSING_ | |
| 1123 | 1123 | blitter_w(machine, 0,offset,data & 0xff,0); |
| 1124 | 1124 | } |
| 1125 | 1125 | |
| 1126 | 1126 | |
| 1127 | 1127 | static WRITE16_HANDLER( ddenlovr_blitter_irq_ack_w ) |
| 1128 | 1128 | { |
| 1129 | if (ACCESSING_ | |
| 1129 | if (ACCESSING_ | |
| 1130 | 1130 | { |
| 1131 | 1131 | if (data & 1) |
| 1132 | 1132 | { |
| r2241 | r2242 | |
| 1312 | 1312 | |
| 1313 | 1313 | static WRITE16_HANDLER( ddenlovr_coincounter_0_w ) |
| 1314 | 1314 | { |
| 1315 | if (ACCESSING_ | |
| 1315 | if (ACCESSING_ | |
| 1316 | 1316 | coin_counter_w(0, data & 1); |
| 1317 | 1317 | } |
| 1318 | 1318 | static WRITE16_HANDLER( ddenlovr_coincounter_1_w ) |
| 1319 | 1319 | { |
| 1320 | if (ACCESSING_ | |
| 1320 | if (ACCESSING_ | |
| 1321 | 1321 | coin_counter_w(1, data & 1); |
| 1322 | 1322 | } |
| 1323 | 1323 | |
| r2241 | r2242 | |
| 1344 | 1344 | |
| 1345 | 1345 | static WRITE16_HANDLER( ddenlovr_palette_w ) |
| 1346 | 1346 | { |
| 1347 | if (ACCESSING_ | |
| 1347 | if (ACCESSING_ | |
| 1348 | 1348 | rongrong_palette_w(machine,offset,data & 0xff); |
| 1349 | 1349 | } |
| 1350 | 1350 | |
| r2241 | r2242 | |
| 1388 | 1388 | |
| 1389 | 1389 | static WRITE16_HANDLER( ddenlovr16_palette_base_w ) |
| 1390 | 1390 | { |
| 1391 | if (ACCESSING_ | |
| 1391 | if (ACCESSING_ | |
| 1392 | 1392 | ddenlovr_palette_base[offset] = data & 0xff; |
| 1393 | 1393 | } |
| 1394 | 1394 | |
| 1395 | 1395 | static WRITE16_HANDLER( ddenlovr16_palette_mask_w ) |
| 1396 | 1396 | { |
| 1397 | if (ACCESSING_ | |
| 1397 | if (ACCESSING_ | |
| 1398 | 1398 | ddenlovr_palette_mask[offset] = data & 0xff; |
| 1399 | 1399 | } |
| 1400 | 1400 | |
| 1401 | 1401 | static WRITE16_HANDLER( ddenlovr16_transparency_pen_w ) |
| 1402 | 1402 | { |
| 1403 | if (ACCESSING_ | |
| 1403 | if (ACCESSING_ | |
| 1404 | 1404 | ddenlovr_transparency_pen[offset] = data & 0xff; |
| 1405 | 1405 | } |
| 1406 | 1406 | |
| 1407 | 1407 | static WRITE16_HANDLER( ddenlovr16_transparency_mask_w ) |
| 1408 | 1408 | { |
| 1409 | if (ACCESSING_ | |
| 1409 | if (ACCESSING_ | |
| 1410 | 1410 | ddenlovr_transparency_mask[offset] = data & 0xff; |
| 1411 | 1411 | } |
| 1412 | 1412 | |
| r2241 | r2242 | |
| 1418 | 1418 | |
| 1419 | 1419 | static WRITE16_HANDLER( ddenlovr_oki_bank_w ) |
| 1420 | 1420 | { |
| 1421 | if (ACCESSING_ | |
| 1421 | if (ACCESSING_ | |
| 1422 | 1422 | OKIM6295_set_bank_base(0, (data & 7) * 0x40000); |
| 1423 | 1423 | } |
| 1424 | 1424 | |
| r2241 | r2242 | |
| 1427 | 1427 | |
| 1428 | 1428 | static WRITE16_HANDLER( quiz365_oki_bank1_w ) |
| 1429 | 1429 | { |
| 1430 | if (ACCESSING_ | |
| 1430 | if (ACCESSING_ | |
| 1431 | 1431 | { |
| 1432 | 1432 | okibank = (okibank & 2) | (data & 1); |
| 1433 | 1433 | OKIM6295_set_bank_base(0, okibank * 0x40000); |
| r2241 | r2242 | |
| 1436 | 1436 | |
| 1437 | 1437 | static WRITE16_HANDLER( quiz365_oki_bank2_w ) |
| 1438 | 1438 | { |
| 1439 | if (ACCESSING_ | |
| 1439 | if (ACCESSING_ | |
| 1440 | 1440 | { |
| 1441 | 1441 | okibank = (okibank & 1) | ((data & 1) << 1); |
| 1442 | 1442 | OKIM6295_set_bank_base(0, okibank * 0x40000); |
| r2241 | r2242 | |
| 1465 | 1465 | |
| 1466 | 1466 | static WRITE16_HANDLER( ddenlovr_select_16_w ) |
| 1467 | 1467 | { |
| 1468 | if (ACCESSING_ | |
| 1468 | if (ACCESSING_ | |
| 1469 | 1469 | ddenlovr_select = data; |
| 1470 | 1470 | } |
| 1471 | 1471 | |
| r2241 | r2242 | |
| 1476 | 1476 | |
| 1477 | 1477 | static WRITE16_HANDLER( ddenlovr_select2_16_w ) |
| 1478 | 1478 | { |
| 1479 | if (ACCESSING_ | |
| 1479 | if (ACCESSING_ | |
| 1480 | 1480 | ddenlovr_select2 = data; |
| 1481 | 1481 | } |
| 1482 | 1482 | |
| r2241 | r2242 | |
| 1540 | 1540 | |
| 1541 | 1541 | static WRITE16_HANDLER( quiz365_coincounter_w ) |
| 1542 | 1542 | { |
| 1543 | if (ACCESSING_ | |
| 1543 | if (ACCESSING_ | |
| 1544 | 1544 | { |
| 1545 | 1545 | if (ddenlovr_select2 == 0x1c) |
| 1546 | 1546 | { |
| r2241 | r2242 | |
| 1623 | 1623 | |
| 1624 | 1624 | static WRITE16_HANDLER( ddenlvrj_coincounter_w ) |
| 1625 | 1625 | { |
| 1626 | if (ACCESSING_ | |
| 1626 | if (ACCESSING_ | |
| 1627 | 1627 | { |
| 1628 | 1628 | coin_counter_w(0, data & 0x01); |
| 1629 | 1629 | coin_counter_w(1, data & 0x04); |
| r2241 | r2242 | |
| 1749 | 1749 | |
| 1750 | 1750 | static WRITE16_HANDLER( nettoqc_coincounter_w ) |
| 1751 | 1751 | { |
| 1752 | if (ACCESSING_ | |
| 1752 | if (ACCESSING_ | |
| 1753 | 1753 | { |
| 1754 | 1754 | coin_counter_w(0, data & 0x01); |
| 1755 | 1755 | coin_counter_w(1, data & 0x04); |
| r2241 | r2242 | |
| 1759 | 1759 | |
| 1760 | 1760 | static WRITE16_HANDLER( nettoqc_oki_bank_w ) |
| 1761 | 1761 | { |
| 1762 | if (ACCESSING_ | |
| 1762 | if (ACCESSING_ | |
| 1763 | 1763 | OKIM6295_set_bank_base(0, (data & 3) * 0x40000); |
| 1764 | 1764 | } |
| 1765 | 1765 |
| r2241 | r2242 | |
|---|---|---|
| 248 | 248 | |
| 249 | 249 | static WRITE16_HANDLER( kaneko16_coin_lockout_w ) |
| 250 | 250 | { |
| 251 | if (ACCESSING_ | |
| 251 | if (ACCESSING_ | |
| 252 | 252 | { |
| 253 | 253 | coin_counter_w(0, data & 0x0100); |
| 254 | 254 | coin_counter_w(1, data & 0x0200); |
| r2241 | r2242 | |
| 270 | 270 | |
| 271 | 271 | static WRITE16_HANDLER( kaneko16_soundlatch_w ) |
| 272 | 272 | { |
| 273 | if (ACCESSING_ | |
| 273 | if (ACCESSING_ | |
| 274 | 274 | { |
| 275 | 275 | soundlatch_w(machine, 0, (data & 0xff00) >> 8 ); |
| 276 | 276 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); |
| r2241 | r2242 | |
| 297 | 297 | /* Each 2149 register is mapped to a different address */ |
| 298 | 298 | AY8910_control_port_0_w(machine,0,offset); |
| 299 | 299 | /* The registers are mapped to odd addresses, except one! */ |
| 300 | if (ACCESSING_ | |
| 300 | if (ACCESSING_ | |
| 301 | 301 | else AY8910_write_port_0_w(machine,0,(data >> 8) & 0xff); |
| 302 | 302 | } |
| 303 | 303 | static WRITE16_HANDLER( kaneko16_YM2149_1_w ) |
| r2241 | r2242 | |
| 305 | 305 | /* Each 2149 register is mapped to a different address */ |
| 306 | 306 | AY8910_control_port_1_w(machine,0,offset); |
| 307 | 307 | /* The registers are mapped to odd addresses, except one! */ |
| 308 | if (ACCESSING_ | |
| 308 | if (ACCESSING_ | |
| 309 | 309 | else AY8910_write_port_1_w(machine,0,(data >> 8) & 0xff); |
| 310 | 310 | } |
| 311 | 311 | |
| r2241 | r2242 | |
| 331 | 331 | |
| 332 | 332 | static WRITE16_HANDLER( kaneko16_eeprom_w ) |
| 333 | 333 | { |
| 334 | if (ACCESSING_ | |
| 334 | if (ACCESSING_ | |
| 335 | 335 | { |
| 336 | 336 | // latch the bit |
| 337 | 337 | EEPROM_write_bit(data & 0x02); |
| r2241 | r2242 | |
| 343 | 343 | EEPROM_set_clock_line((data & 0x01) ? ASSERT_LINE : CLEAR_LINE ); |
| 344 | 344 | } |
| 345 | 345 | |
| 346 | if (ACCESSING_ | |
| 346 | if (ACCESSING_ | |
| 347 | 347 | { |
| 348 | 348 | coin_counter_w(0, data & 0x0100); |
| 349 | 349 | coin_counter_w(1, data & 0x0200); |
| r2241 | r2242 | |
| 402 | 402 | |
| 403 | 403 | static WRITE16_HANDLER( bakubrkr_oki_bank_sw ) |
| 404 | 404 | { |
| 405 | if (ACCESSING_ | |
| 405 | if (ACCESSING_ | |
| 406 | 406 | OKIM6295_set_bank_base(0, 0x40000 * (data & 0x7) ); |
| 407 | 407 | logerror("PC:%06X Selecting OKI bank %02X\n",activecpu_get_pc(),data&0xff); |
| 408 | 408 | } |
| r2241 | r2242 | |
| 472 | 472 | |
| 473 | 473 | static WRITE16_HANDLER( bloodwar_oki_0_bank_w ) |
| 474 | 474 | { |
| 475 | if (ACCESSING_ | |
| 475 | if (ACCESSING_ | |
| 476 | 476 | { |
| 477 | 477 | OKIM6295_set_bank_base(0, 0x40000 * (data & 0xf) ); |
| 478 | 478 | // logerror("CPU #0 PC %06X : OKI0 bank %08X\n",activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 481 | 481 | |
| 482 | 482 | static WRITE16_HANDLER( bloodwar_oki_1_bank_w ) |
| 483 | 483 | { |
| 484 | if (ACCESSING_ | |
| 484 | if (ACCESSING_ | |
| 485 | 485 | { |
| 486 | 486 | OKIM6295_set_bank_base(1, 0x40000 * data ); |
| 487 | 487 | // logerror("CPU #0 PC %06X : OKI1 bank %08X\n",activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 490 | 490 | |
| 491 | 491 | static WRITE16_HANDLER( bloodwar_coin_lockout_w ) |
| 492 | 492 | { |
| 493 | if (ACCESSING_ | |
| 493 | if (ACCESSING_ | |
| 494 | 494 | { |
| 495 | 495 | coin_counter_w(0, data & 0x0100); |
| 496 | 496 | coin_counter_w(1, data & 0x0200); |
| r2241 | r2242 | |
| 542 | 542 | |
| 543 | 543 | static WRITE16_HANDLER( bonkadv_oki_0_bank_w ) |
| 544 | 544 | { |
| 545 | if (ACCESSING_ | |
| 545 | if (ACCESSING_ | |
| 546 | 546 | { |
| 547 | 547 | OKIM6295_set_bank_base(0, 0x40000 * (data & 0xF)); |
| 548 | 548 | logerror("CPU #0 PC %06X : OKI0 bank %08X\n",activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 551 | 551 | |
| 552 | 552 | static WRITE16_HANDLER( bonkadv_oki_1_bank_w ) |
| 553 | 553 | { |
| 554 | if (ACCESSING_ | |
| 554 | if (ACCESSING_ | |
| 555 | 555 | { |
| 556 | 556 | OKIM6295_set_bank_base(1, 0x40000 * data ); |
| 557 | 557 | logerror("CPU #0 PC %06X : OKI1 bank %08X\n",activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 611 | 611 | |
| 612 | 612 | static WRITE16_HANDLER( gtmr_oki_0_bank_w ) |
| 613 | 613 | { |
| 614 | if (ACCESSING_ | |
| 614 | if (ACCESSING_ | |
| 615 | 615 | { |
| 616 | 616 | OKIM6295_set_bank_base(0, 0x40000 * (data & 0xF) ); |
| 617 | 617 | // logerror("CPU #0 PC %06X : OKI0 bank %08X\n",activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 620 | 620 | |
| 621 | 621 | static WRITE16_HANDLER( gtmr_oki_1_bank_w ) |
| 622 | 622 | { |
| 623 | if (ACCESSING_ | |
| 623 | if (ACCESSING_ | |
| 624 | 624 | { |
| 625 | 625 | OKIM6295_set_bank_base(1, 0x40000 * (data & 0x1) ); |
| 626 | 626 | // logerror("CPU #0 PC %06X : OKI1 bank %08X\n",activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 629 | 629 | |
| 630 | 630 | static WRITE16_HANDLER( gtmr_oki_0_data_w ) |
| 631 | 631 | { |
| 632 | if (ACCESSING_ | |
| 632 | if (ACCESSING_ | |
| 633 | 633 | { |
| 634 | 634 | OKIM6295_data_0_w(machine,0,data); |
| 635 | 635 | // logerror("CPU #0 PC %06X : OKI0 <- %08X\n",activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 638 | 638 | |
| 639 | 639 | static WRITE16_HANDLER( gtmr_oki_1_data_w ) |
| 640 | 640 | { |
| 641 | if (ACCESSING_ | |
| 641 | if (ACCESSING_ | |
| 642 | 642 | { |
| 643 | 643 | OKIM6295_data_1_w(machine,0,data); |
| 644 | 644 | // logerror("CPU #0 PC %06X : OKI1 <- %08X\n",activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 796 | 796 | /* Untested */ |
| 797 | 797 | static WRITE16_HANDLER( shogwarr_oki_bank_w ) |
| 798 | 798 | { |
| 799 | if (ACCESSING_ | |
| 799 | if (ACCESSING_ | |
| 800 | 800 | { |
| 801 | 801 | OKIM6295_set_bank_base(0, 0x10000 * ((data >> 0) & 0x3) ); |
| 802 | 802 | OKIM6295_set_bank_base(1, 0x10000 * ((data >> 4) & 0x3) ); |
| r2241 | r2242 | |
|---|---|---|
| 301 | 301 | { |
| 302 | 302 | case 0: |
| 303 | 303 | // sound data |
| 304 | if (ACCESSING_ | |
| 304 | if (ACCESSING_ | |
| 305 | 305 | cpunum_set_input_line(Machine, 2, 0, HOLD_LINE); |
| 306 | 306 | else |
| 307 | 307 | LOG_UNKNOWN_WRITE |
| 308 | 308 | break; |
| 309 | 309 | |
| 310 | 310 | case 2: |
| 311 | if (ACCESSING_ | |
| 311 | if (ACCESSING_ | |
| 312 | 312 | ;//watchdog ? written in similar context to CPU1 @ 0x140002 |
| 313 | 313 | else |
| 314 | 314 | LOG_UNKNOWN_WRITE |
| 315 | 315 | break; |
| 316 | 316 | |
| 317 | 317 | case 6: |
| 318 | if (ACCESSING_ | |
| 318 | if (ACCESSING_ | |
| 319 | 319 | ;//select controller device |
| 320 | 320 | else |
| 321 | 321 | ;//blank inputs |
| 322 | 322 | break; |
| 323 | 323 | |
| 324 | 324 | case 8: |
| 325 | if (ACCESSING_ | |
| 325 | if (ACCESSING_ | |
| 326 | 326 | ;//blank inputs |
| 327 | 327 | else |
| 328 | 328 | LOG_UNKNOWN_WRITE |
| 329 | 329 | break; |
| 330 | 330 | |
| 331 | 331 | case 0xc: |
| 332 | if (ACCESSING_ | |
| 332 | if (ACCESSING_ | |
| 333 | 333 | // This seems to only be written after each irq1 and irq2 |
| 334 | 334 | logerror("irq wrote %04x\n", data); |
| 335 | 335 | else |
| r2241 | r2242 | |
| 337 | 337 | break; |
| 338 | 338 | |
| 339 | 339 | case 0xd4: |
| 340 | if ( ACCESSING_ | |
| 340 | if ( ACCESSING_ | |
| 341 | 341 | ;// controller device data |
| 342 | 342 | else |
| 343 | 343 | LOG_UNKNOWN_WRITE |
| r2241 | r2242 | |
|---|---|---|
| 209 | 209 | |
| 210 | 210 | static WRITE16_HANDLER( sound_reset_w ) |
| 211 | 211 | { |
| 212 | if (ACCESSING_ | |
| 212 | if (ACCESSING_ | |
| 213 | 213 | { |
| 214 | 214 | int oldword = sound_reset_val; |
| 215 | 215 | COMBINE_DATA(&sound_reset_val); |
| r2241 | r2242 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 1 | /*********************************************************************************************************** | |
| 2 | 2 | Barcrest MPU4 highly preliminary driver by J.Wallace, and Anonymous. |
| 3 | 3 | This is the core driver, no game specific stuff should go in here. |
| 4 | 4 | |
| r2241 | r2242 | |
| 239 | 239 | |
| 240 | 240 | TODO: - Fix lamp timing, MAME doesn't update fast enough to see everything |
| 241 | 241 | - Distinguish door switches using manual |
| 242 | *****************************************************************************************/ | |
| 242 | ***********************************************************************************************************/ | |
| 243 | 243 | |
| 244 | 244 | #include "driver.h" |
| 245 | 245 | #include "machine/6821pia.h" |
| 246 | 246 | #include "machine/6840ptm.h" |
| 247 | 247 | |
| 248 | // MPU4 | |
| 249 | 248 | #include "deprecat.h" |
| 250 | 249 | #include "timer.h" |
| 251 | 250 | #include "cpu/m6809/m6809.h" |
| 252 | 251 | #include "sound/ay8910.h" |
| 253 | #include "machine/steppers.h" // stepper motor | |
| 254 | #include "machine/roc10937.h" // vfd | |
| 252 | #include "machine/steppers.h" | |
| 253 | #include "machine/roc10937.h" | |
| 255 | 254 | #include "machine/meters.h" |
| 256 | 255 | |
| 257 | 256 | #ifdef MAME_DEBUG |
| r2241 | r2242 | |
| 266 | 265 | #define LOG_IC3(x) do { if (MPU4VERBOSE) logerror x; } while (0) |
| 267 | 266 | #define LOG_IC8(x) do { if (MPU4VERBOSE) logerror x; } while (0) |
| 268 | 267 | |
| 269 | #ifndef AWP_VIDEO / | |
| 268 | #ifndef AWP_VIDEO /*Defined for fruit machines with mechanical reels*/ | |
| 270 | 269 | #define draw_reel(x) |
| 271 | 270 | #else |
| 272 | 271 | #define draw_reel(x) awp_draw_reel x |
| r2241 | r2242 | |
| 274 | 273 | #include "mpu4.lh" |
| 275 | 274 | #include "connect4.lh" |
| 276 | 275 | #define MPU4_MASTER_CLOCK (6880000) |
| 277 | // local vars ///////////////////////////////////////////////////////////// | |
| 276 | ||
| 277 | /* local vars */ | |
| 278 | 278 | static int mod_number; |
| 279 | 279 | static int mmtr_data; |
| 280 | 280 | static int alpha_data_line; |
| r2241 | r2242 | |
| 297 | 297 | static emu_timer *ic24_timer; |
| 298 | 298 | static TIMER_CALLBACK( ic24_timeout ); |
| 299 | 299 | |
| 300 | static int input_strobe; // IC23 74LS138 A = CA2 IC7, B = CA2 IC4, C = CA2 IC8 | |
| 300 | ||
| 301 | /* 32 multiplexed inputs - but a further 8 possible per AUX. | |
| 302 | Two connectors 'orange' (sampled every 8ms) and 'black' (sampled every 16ms) | |
| 303 | Each connector carries two banks of eight inputs and two enable signals */ | |
| 304 | static int input_strobe; /* IC23 74LS138 A = CA2 IC7, B = CA2 IC4, C = CA2 IC8 */ | |
| 301 | 305 | static UINT8 lamp_strobe,lamp_strobe2; |
| 302 | 306 | static UINT8 lamp_data; |
| 303 | static UINT8 aydata; | |
| 307 | static UINT8 ay_data; | |
| 304 | 308 | |
| 305 | 309 | extern const UINT8 MPU4_chr_lut[72]; |
| 306 | 310 | static UINT8 MPU4_chr_data[72]; |
| 307 | static UINT8 led_segs[8]; | |
| 308 | static UINT8 Lamps[128]; // 128 multiplexed lamps | |
| 309 | // 32 multiplexed inputs - but a further 8 possible per AUX. | |
| 310 | // Two connectors 'orange' (sampled every 8ms) and 'black' (sampled every 16ms) | |
| 311 | // Each connector carries two banks of eight inputs and two enable signals | |
| 311 | ||
| 312 | static UINT8 Lamps[128]; /* 128 multiplexed lamps */ | |
| 312 | 313 | static int optic_pattern; |
| 313 | 314 | |
| 315 | /* Lookup table for CHR data */ | |
| 316 | const UINT8 MPU4_chr_lut[72]= { 0x00,0x1A,0x04,0x10,0x18,0x0F,0x13,0x1B, | |
| 317 | 0x03,0x07,0x17,0x1D,0x36,0x35,0x2B,0x28, | |
| 318 | 0x39,0x21,0x22,0x25,0x2C,0x29,0x31,0x34, | |
| 319 | 0x0A,0x1F,0x06,0x0E,0x1C,0x12,0x1E,0x0D, | |
| 320 | 0x14,0x0A,0x19,0x15,0x06,0x0F,0x08,0x1B, | |
| 321 | 0x1E,0x04,0x01,0x0C,0x18,0x1A,0x11,0x0B, | |
| 322 | 0x03,0x17,0x10,0x1D,0x0E,0x07,0x12,0x09, | |
| 323 | 0x0D,0x1F,0x16,0x05,0x13,0x1C,0x02,0x00, | |
| 324 | 0x00,0x01,0x04,0x09,0x10,0x19,0x24,0x31}; | |
| 325 | ||
| 314 | 326 | /* |
| 315 | 327 | LED Segments related to pins (5 is not connected): |
| 316 | 328 | Unlike the controllers emulated in the layout code, each |
| r2241 | r2242 | |
| 330 | 342 | 8 display enables (pins 10 - 17) |
| 331 | 343 | */ |
| 332 | 344 | |
| 345 | static UINT8 led_segs[8]; | |
| 346 | ||
| 347 | ||
| 348 | /* Process lamp and LED data for output system */ | |
| 333 | 349 | static void mpu4_draw_led(UINT8 id, UINT8 value) |
| 334 | 350 | { |
| 335 | 351 | output_set_digit_value(id,value); |
| 336 | 352 | } |
| 337 | 353 | |
| 354 | ||
| 338 | 355 | static void draw_lamps(void) |
| 339 | 356 | { |
| 340 | 357 | int i; |
| 341 | 358 | |
| 342 | for (i=0; i<8; i++) | |
| 359 | for (i = 0; i < 8; i++) | |
| 343 | 360 | { |
| 344 | 361 | output_set_lamp_value((8*input_strobe)+i, (Lamps[(8*input_strobe)+i])); |
| 345 | 362 | output_set_lamp_value((8*input_strobe)+i+64, (Lamps[(8*input_strobe)+i+64])); |
| 346 | 363 | } |
| 347 | 364 | } |
| 348 | 365 | |
| 366 | ||
| 349 | 367 | static void update_lamps(void) |
| 350 | 368 | { |
| 351 | 369 | int i; |
| 352 | 370 | |
| 353 | for (i=0; i<8; i++) | |
| 371 | for (i = 0; i < 8; i++) | |
| 354 | 372 | { |
| 355 | 373 | Lamps[(8*input_strobe)+i] = (lamp_strobe & (1 << i)) != 0; |
| 356 | 374 | Lamps[(8*input_strobe)+i+64] = (lamp_strobe2 & (1 << i)) != 0; |
| r2241 | r2242 | |
| 358 | 376 | |
| 359 | 377 | if (led_extend) |
| 360 | 378 | { |
| 361 | / | |
| 379 | /* Some games uses 'programmable' LED displays, built from light display lines. */ | |
| 362 | 380 | UINT8 pled_segs[2] = {0,0}; |
| 363 | 381 | |
| 364 | 382 | static const int lamps1[8] = { 106, 107, 108, 109, 104, 105, 110, 133 }; |
| 365 | 383 | static const int lamps2[8] = { 114, 115, 116, 117, 112, 113, 118, 119 }; |
| 366 | 384 | |
| 367 | for (i=0; i<8; i++) | |
| 385 | for (i = 0; i < 8; i++) | |
| 368 | 386 | { |
| 369 | 387 | if (output_get_lamp_value(lamps1[i])) pled_segs[0] |= (1 << i); |
| 370 | 388 | if (output_get_lamp_value(lamps2[i])) pled_segs[1] |= (1 << i); |
| r2241 | r2242 | |
| 376 | 394 | draw_lamps(); |
| 377 | 395 | } |
| 378 | 396 | |
| 379 | /////////////////////////////////////////////////////////////////////////// | |
| 380 | // called if board is reset /////////////////////////////////////////////// | |
| 381 | /////////////////////////////////////////////////////////////////////////// | |
| 382 | 397 | |
| 398 | /* called if board is reset */ | |
| 383 | 399 | static void mpu4_stepper_reset(void) |
| 384 | 400 | { |
| 385 | int pattern = 0,i; | |
| 386 | for ( i = 0; i < 6; i++) | |
| 401 | int pattern = 0,reel; | |
| 402 | for (reel = 0; reel < 6; reel++) | |
| 387 | 403 | { |
| 388 | Stepper_reset_position(i); | |
| 389 | if ( Stepper_optic_state(i) ) pattern |= 1<<i; | |
| 404 | Stepper_reset_position(reel); | |
| 405 | if (Stepper_optic_state(reel)) pattern |= 1<<reel; | |
| 390 | 406 | } |
| 391 | 407 | optic_pattern = pattern; |
| 392 | 408 | } |
| 393 | 409 | |
| 410 | ||
| 394 | 411 | static MACHINE_RESET( mpu4 ) |
| 395 | 412 | { |
| 396 | ROC10937_reset(0); / | |
| 413 | ROC10937_reset(0); /* reset display1 */ | |
| 397 | 414 | |
| 398 | 415 | mpu4_stepper_reset(); |
| 399 | 416 | |
| r2241 | r2242 | |
| 410 | 427 | |
| 411 | 428 | prot_col = 0; |
| 412 | 429 | |
| 413 | // init rom bank //////////////////////////////////////////////////////// | |
| 414 | ||
| 430 | /* init rom bank, some games don't set this */ | |
| 415 | 431 | { |
| 416 | 432 | UINT8 *rom = memory_region(REGION_CPU1); |
| 417 | 433 | |
| r2241 | r2242 | |
| 422 | 438 | |
| 423 | 439 | } |
| 424 | 440 | |
| 425 | /////////////////////////////////////////////////////////////////////////// | |
| 426 | 441 | |
| 442 | /* 6809 IRQ handler */ | |
| 427 | 443 | static void cpu0_irq(int state) |
| 428 | 444 | { |
| 429 | // The PIA and PTM IRQ lines are all connected to a common PCB track, | |
| 430 | // leading directly to the 6809 IRQ line. | |
| 445 | /* The PIA and PTM IRQ lines are all connected to a common PCB track, leading directly to the 6809 IRQ line. */ | |
| 431 | 446 | int combined_state = pia_get_irq_a(0) | pia_get_irq_b(0) | |
| 432 | 447 | pia_get_irq_a(1) | pia_get_irq_b(1) | |
| 433 | 448 | pia_get_irq_a(2) | pia_get_irq_b(2) | |
| r2241 | r2242 | |
| 448 | 463 | } |
| 449 | 464 | } |
| 450 | 465 | |
| 451 | /////////////////////////////////////////////////////////////////////////// | |
| 466 | ||
| 467 | /* Bankswitching */ | |
| 452 | 468 | static WRITE8_HANDLER( bankswitch_w ) |
| 453 | 469 | { |
| 454 | 470 | memory_set_bank(1,data & 0x07); |
| 455 | 471 | } |
| 456 | 472 | |
| 473 | ||
| 457 | 474 | static READ8_HANDLER( bankswitch_r ) |
| 458 | 475 | { |
| 459 | 476 | return memory_get_bank(1); |
| 460 | 477 | } |
| 461 | 478 | |
| 462 | // IC2 6840 PTM handler /////////////////////////////////////////////////////// | |
| 463 | 479 | |
| 480 | /* IC2 6840 PTM handler */ | |
| 464 | 481 | static WRITE8_HANDLER( ic2_o1_callback ) |
| 465 | 482 | { |
| 466 | 483 | ptm6840_set_c2(0,data); |
| 467 | 484 | |
| 468 | // copy output value to IC2 c2 | |
| 469 | // this output is the clock for timer2, | |
| 470 | // the output from timer2 is the input clock for timer3 | |
| 471 | // the output from timer3 is used as a square wave for the alarm output | |
| 472 | // and as an external clock source for timer 1! | |
| 485 | /* copy output value to IC2 c2 | |
| 486 | this output is the clock for timer2 */ | |
| 473 | 487 | } |
| 474 | 488 | |
| 489 | ||
| 475 | 490 | static WRITE8_HANDLER( ic2_o2_callback ) |
| 476 | 491 | { |
| 477 | pia_set_input_ca1(0, data); // copy output value to IC3 ca1 | |
| 478 | ptm6840_set_c3( 0, data); // copy output value to IC2 c3 | |
| 492 | pia_set_input_ca1(0, data); /* copy output value to IC3 ca1 */ | |
| 493 | ||
| 494 | /* the output from timer2 is the input clock for timer3 */ | |
| 495 | ptm6840_set_c3( 0, data); | |
| 479 | 496 | } |
| 480 | 497 | |
| 498 | ||
| 481 | 499 | static WRITE8_HANDLER( ic2_o3_callback ) |
| 482 | 500 | { |
| 483 | ptm6840_set_c1( 0, data); // copy output value to IC2 c1 | |
| 501 | /* the output from timer3 is used as a square wave for the alarm output | |
| 502 | and as an external clock source for timer 1! */ | |
| 503 | ||
| 504 | ptm6840_set_c1( 0, data); | |
| 484 | 505 | } |
| 485 | 506 | |
| 507 | ||
| 486 | 508 | static const ptm6840_interface ptm_ic2_intf = |
| 487 | 509 | { |
| 488 | 510 | MPU4_MASTER_CLOCK/4, |
| r2241 | r2242 | |
| 491 | 513 | cpu0_irq |
| 492 | 514 | }; |
| 493 | 515 | |
| 494 | /*************************************************************************** | |
| 495 | 6821 PIA handlers | |
| 496 | ***************************************************************************/ | |
| 497 | 516 | |
| 498 | // IC3 | |
| 517 | /* 6821 PIA handlers */ | |
| 518 | /* IC3, lamp data lines + alpha numeric display */ | |
| 499 | 519 | static WRITE8_HANDLER( pia_ic3_porta_w ) |
| 500 | 520 | { |
| 501 | 521 | LOG_IC3(("%04x IC3 PIA Port A Set to %2x (lamp strobes 1 - 9)\n", activecpu_get_previouspc(),data)); |
| r2241 | r2242 | |
| 507 | 527 | } |
| 508 | 528 | } |
| 509 | 529 | |
| 530 | ||
| 510 | 531 | static WRITE8_HANDLER( pia_ic3_portb_w ) |
| 511 | 532 | { |
| 512 | 533 | LOG_IC3(("%04x IC3 PIA Port B Set to %2x (lamp strobes 10 - 17)\n", activecpu_get_previouspc(),data)); |
| r2241 | r2242 | |
| 518 | 539 | } |
| 519 | 540 | } |
| 520 | 541 | |
| 542 | ||
| 521 | 543 | static WRITE8_HANDLER( pia_ic3_ca2_w ) |
| 522 | 544 | { |
| 523 | 545 | LOG_IC3(("%04x IC3 PIA Write CA2 (alpha data), %02X\n", activecpu_get_previouspc(),data)); |
| r2241 | r2242 | |
| 526 | 548 | ROC10937_draw_16seg(0); |
| 527 | 549 | } |
| 528 | 550 | |
| 551 | ||
| 529 | 552 | static WRITE8_HANDLER( pia_ic3_cb2_w ) |
| 530 | 553 | { |
| 531 | 554 | LOG_IC3(("%04x IC3 PIA Write CB (alpha reset), %02X\n",activecpu_get_previouspc(),data)); |
| r2241 | r2242 | |
| 534 | 557 | ROC10937_draw_16seg(0); |
| 535 | 558 | } |
| 536 | 559 | |
| 537 | // IC3, lamp data lines + alpha numeric display | |
| 538 | 560 | |
| 539 | 561 | static const pia6821_interface pia_ic3_intf = |
| 540 | 562 | { |
| r2241 | r2242 | |
| 543 | 565 | /*irqs : A/B */ cpu0_irq, cpu0_irq |
| 544 | 566 | }; |
| 545 | 567 | |
| 546 | /*--------------------------------------- | |
| 547 | IC23 emulation | |
| 548 | --------------------------------------- | |
| 568 | /* | |
| 569 | IC23 emulation | |
| 570 | ||
| 549 | 571 | IC23 is a 74LS138 1-of-8 Decoder |
| 550 | 572 | |
| 551 | It is used as a multiplexer for the LEDs, lamp selects and inputs. | |
| 552 | */ | |
| 573 | It is used as a multiplexer for the LEDs, lamp selects and inputs.*/ | |
| 553 | 574 | |
| 554 | 575 | static void ic23_update(void) |
| 555 | 576 | { |
| r2241 | r2242 | |
| 576 | 597 | input_strobe = 0x00; |
| 577 | 598 | } |
| 578 | 599 | } |
| 579 | /*--------------------------------------- | |
| 580 | IC24 emulation | |
| 581 | --------------------------------------- | |
| 600 | ||
| 601 | ||
| 602 | /* | |
| 603 | IC24 emulation | |
| 604 | ||
| 582 | 605 | IC24 is a 74LS122 pulse generator |
| 583 | 606 | |
| 584 | CLEAR and B2 are tied high and A1 and A2 tied low, meaning any pulse on B1 will give a low pulse on the output pin. | |
| 607 | CLEAR and B2 are tied high and A1 and A2 tied low, meaning any pulse | |
| 608 | on B1 will give a low pulse on the output pin. | |
| 585 | 609 | */ |
| 586 | ||
| 587 | 610 | static void ic24_output(int data) |
| 588 | 611 | { |
| 589 | 612 | IC23G2A = data; |
| 590 | 613 | ic23_update(); |
| 591 | 614 | } |
| 592 | 615 | |
| 616 | ||
| 593 | 617 | static void ic24_setup(void) |
| 594 | 618 | { |
| 595 | 619 | if (IC23GA) |
| r2241 | r2242 | |
| 603 | 627 | } |
| 604 | 628 | } |
| 605 | 629 | |
| 630 | ||
| 606 | 631 | static TIMER_CALLBACK( ic24_timeout ) |
| 607 | 632 | { |
| 608 | 633 | ic23_active=0; |
| 609 | 634 | ic24_output(1); |
| 610 | 635 | } |
| 611 | 636 | |
| 612 | // IC4 | |
| 613 | 637 | |
| 638 | /* IC4 IC4, 7 seg leds, 50Hz timer reel sensors, current sensors */ | |
| 614 | 639 | static WRITE8_HANDLER( pia_ic4_porta_w ) |
| 615 | 640 | { |
| 616 | 641 | if(ic23_active) |
| r2241 | r2242 | |
| 620 | 645 | } |
| 621 | 646 | } |
| 622 | 647 | |
| 648 | ||
| 623 | 649 | static READ8_HANDLER( pia_ic4_portb_r ) |
| 624 | 650 | { |
| 625 | 651 | if ( serial_data ) |
| r2241 | r2242 | |
| 633 | 659 | pia_set_input_cb1(1, 0); |
| 634 | 660 | } |
| 635 | 661 | |
| 636 | if ( optic_pattern & 0x01 ) ic4_input_b |= 0x40; / | |
| 662 | if ( optic_pattern & 0x01 ) ic4_input_b |= 0x40; /* reel A tab */ | |
| 637 | 663 | else ic4_input_b &= ~0x40; |
| 638 | 664 | |
| 639 | if ( optic_pattern & 0x02 ) ic4_input_b |= 0x20; / | |
| 665 | if ( optic_pattern & 0x02 ) ic4_input_b |= 0x20; /* reel B tab */ | |
| 640 | 666 | else ic4_input_b &= ~0x20; |
| 641 | 667 | |
| 642 | if ( optic_pattern & 0x04 ) ic4_input_b |= 0x10; / | |
| 668 | if ( optic_pattern & 0x04 ) ic4_input_b |= 0x10; /* reel C tab */ | |
| 643 | 669 | else ic4_input_b &= ~0x10; |
| 644 | 670 | |
| 645 | if ( optic_pattern & 0x08 ) ic4_input_b |= 0x08; / | |
| 671 | if ( optic_pattern & 0x08 ) ic4_input_b |= 0x08; /* reel D tab */ | |
| 646 | 672 | else ic4_input_b &= ~0x08; |
| 647 | 673 | |
| 648 | if ( signal_50hz ) ic4_input_b |= 0x04; / | |
| 674 | if ( signal_50hz ) ic4_input_b |= 0x04; /* 50 Hz */ | |
| 649 | 675 | else ic4_input_b &= ~0x04; |
| 650 | 676 | |
| 651 | // if ( lamp_overcurrent ) ic4_input_b |= 0x02; | |
| 652 | // if ( lamp_undercurrent ) ic4_input_b |= 0x01; | |
| 677 | #ifdef UNUSED_FUNCTION | |
| 678 | if ( lamp_overcurrent ) ic4_input_b |= 0x02; | |
| 679 | if ( lamp_undercurrent ) ic4_input_b |= 0x01; | |
| 680 | #endif | |
| 653 | 681 | |
| 654 | 682 | LOG_IC3(("%04x IC4 PIA Read of Port B %x\n",activecpu_get_previouspc(),ic4_input_b)); |
| 655 | 683 | return ic4_input_b; |
| 656 | 684 | } |
| 657 | 685 | |
| 686 | ||
| 658 | 687 | static WRITE8_HANDLER( pia_ic4_ca2_w ) |
| 659 | 688 | { |
| 660 | 689 | LOG_IC3(("%04x IC4 PIA Write CA (input MUX strobe /LED B), %02X\n", activecpu_get_previouspc(),data)); |
| r2241 | r2242 | |
| 663 | 692 | ic23_update(); |
| 664 | 693 | } |
| 665 | 694 | |
| 666 | // IC4, 7 seg leds, 50Hz timer reel sensors, current sensors | |
| 667 | 695 | |
| 668 | 696 | static const pia6821_interface pia_ic4_intf = |
| 669 | 697 | { |
| r2241 | r2242 | |
| 672 | 700 | /*irqs : A/B */ cpu0_irq, cpu0_irq |
| 673 | 701 | }; |
| 674 | 702 | |
| 675 | //IC5 | |
| 703 | ||
| 704 | /* IC5, AUX ports, coin lockouts and AY sound chip select (MODs below 4 only) */ | |
| 676 | 705 | static READ8_HANDLER( pia_ic5_porta_r ) |
| 677 | 706 | { |
| 678 | 707 | LOG(("%04x IC5 PIA Read of Port A (AUX1)\n",activecpu_get_previouspc())); |
| 679 | // popmessage("%d",(pia_get_output_a(2) & 0x01)); | |
| 680 | 708 | return readinputportbytag("AUX1"); |
| 681 | 709 | } |
| 682 | 710 | |
| 711 | ||
| 683 | 712 | static READ8_HANDLER( pia_ic5_portb_r ) |
| 684 | 713 | { |
| 685 | 714 | LOG(("%04x IC5 PIA Read of Port B (coin input AUX2)\n",activecpu_get_previouspc())); |
| r2241 | r2242 | |
| 690 | 719 | return readinputportbytag("AUX2"); |
| 691 | 720 | } |
| 692 | 721 | |
| 722 | ||
| 693 | 723 | static WRITE8_HANDLER( pia_ic5_ca2_w ) |
| 694 | 724 | { |
| 695 | 725 | LOG(("%04x IC5 PIA Write CA2 (Serial Tx) %2x\n",activecpu_get_previouspc(),data)); |
| 696 | 726 | serial_data = data; |
| 697 | 727 | } |
| 698 | 728 | |
| 729 | ||
| 699 | 730 | /* --------------------------------------- |
| 700 | 731 | AY Chip sound function selection - |
| 701 | 732 | --------------------------------------- |
| r2241 | r2242 | |
| 717 | 748 | 1 0 | Write to selected PSG register. When set, the PSG will take the data at Port A and write it into the selected PSG register. |
| 718 | 749 | 1 1 | Select PSG register. When set, the PSG will take the data at Port A and select a register. |
| 719 | 750 | */ |
| 751 | ||
| 720 | 752 | /* PSG function selected */ |
| 721 | ||
| 722 | 753 | static void update_ay(running_machine *machine) |
| 723 | 754 | { |
| 724 | 755 | if (!pia_get_output_cb2(2)) |
| r2241 | r2242 | |
| 742 | 773 | break; |
| 743 | 774 | } |
| 744 | 775 | case 0x03: |
| 745 | {/* CA2 = 1 CB2 = 1? : The register will now be selected and the user can read from or write to it. The register will remain selected until another is chosen.*/ | |
| 746 | AY8910_control_port_0_w(machine, 0, pia_get_output_a(3)); | |
| 776 | {/* CA2 = 1 CB2 = 1? : The register will now be selected and the user can read from or write to it. | |
| 777 | The register will remain selected until another is chosen.*/ | |
| 778 | AY8910_control_port_0_w(machine, 0, pia_get_output_a(3)); | |
| 747 | 779 | LOG(("AY Chip Select \n")); |
| 748 | 780 | break; |
| 749 | 781 | } |
| r2241 | r2242 | |
| 753 | 785 | } |
| 754 | 786 | } |
| 755 | 787 | } |
| 756 | ||
| 757 | 788 | } |
| 758 | 789 | |
| 790 | ||
| 759 | 791 | static WRITE8_HANDLER( pia_ic5_cb2_w ) |
| 760 | 792 | { |
| 761 | 793 | update_ay(machine); |
| 762 | 794 | } |
| 763 | 795 | |
| 796 | ||
| 764 | 797 | static const pia6821_interface pia_ic5_intf = |
| 765 | 798 | { |
| 766 | 799 | /*inputs : A/B,CA/B1,CA/B2 */ pia_ic5_porta_r, pia_ic5_portb_r, 0, 0, 0, 0, |
| r2241 | r2242 | |
| 768 | 801 | /*irqs : A/B */ cpu0_irq, cpu0_irq |
| 769 | 802 | }; |
| 770 | 803 | |
| 771 | //IC6 | |
| 804 | ||
| 805 | /* IC6, Reel A and B and AY registers (MODs below 4 only) */ | |
| 772 | 806 | static WRITE8_HANDLER( pia_ic6_portb_w ) |
| 773 | 807 | { |
| 774 | 808 | LOG(("%04x IC6 PIA Port B Set to %2x (Reel A and B)\n", activecpu_get_previouspc(),data)); |
| 775 | 809 | Stepper_update(0, data & 0x0F ); |
| 776 | 810 | Stepper_update(1, (data>>4) & 0x0F ); |
| 777 | 811 | |
| 778 | / | |
| 812 | /* if ( pia_get_output_cb2(1)) */ | |
| 779 | 813 | { |
| 780 | 814 | if ( Stepper_optic_state(0) ) optic_pattern |= 0x01; |
| 781 | 815 | else optic_pattern &= ~0x01; |
| r2241 | r2242 | |
| 787 | 821 | draw_reel((1)); |
| 788 | 822 | } |
| 789 | 823 | |
| 824 | ||
| 790 | 825 | static WRITE8_HANDLER( pia_ic6_porta_w ) |
| 791 | 826 | { |
| 792 | 827 | LOG(("%04x IC6 PIA Write A %2x\n", activecpu_get_previouspc(),data)); |
| 793 | 828 | if (mod_number <4) |
| 794 | 829 | { |
| 795 | aydata = data; | |
| 830 | ay_data = data; | |
| 796 | 831 | update_ay(machine); |
| 797 | 832 | } |
| 798 | 833 | } |
| 799 | 834 | |
| 835 | ||
| 800 | 836 | static WRITE8_HANDLER( pia_ic6_ca2_w ) |
| 801 | 837 | { |
| 802 | 838 | LOG(("%04x IC6 PIA write CA2 %2x (AY8913 BC1)\n", activecpu_get_previouspc(),data)); |
| r2241 | r2242 | |
| 808 | 844 | } |
| 809 | 845 | } |
| 810 | 846 | |
| 847 | ||
| 811 | 848 | static WRITE8_HANDLER( pia_ic6_cb2_w ) |
| 812 | 849 | { |
| 813 | 850 | LOG(("%04x IC6 PIA write CB2 %2x (AY8913 BCDIR)\n", activecpu_get_previouspc(),data)); |
| r2241 | r2242 | |
| 819 | 856 | } |
| 820 | 857 | } |
| 821 | 858 | |
| 859 | ||
| 822 | 860 | static const pia6821_interface pia_ic6_intf = |
| 823 | 861 | { |
| 824 | 862 | /*inputs : A/B,CA/B1,CA/B2 */ 0, 0, 0, 0, 0, 0, |
| r2241 | r2242 | |
| 826 | 864 | /*irqs : A/B */ cpu0_irq, cpu0_irq |
| 827 | 865 | }; |
| 828 | 866 | |
| 829 | //IC7 | |
| 867 | ||
| 868 | /* IC7 Reel C and D, mechanical meters/Reel E and F, input strobe bit A */ | |
| 830 | 869 | static WRITE8_HANDLER( pia_ic7_porta_w ) |
| 831 | 870 | { |
| 832 | 871 | LOG(("%04x IC7 PIA Port A Set to %2x (Reel C and D)\n", activecpu_get_previouspc(),data)); |
| 833 | 872 | Stepper_update(2, data & 0x0F ); |
| 834 | 873 | Stepper_update(3, (data >> 4)& 0x0F ); |
| 835 | 874 | |
| 836 | / | |
| 875 | /* if ( pia_get_output_cb2(1)) */ | |
| 837 | 876 | { |
| 838 | 877 | if ( Stepper_optic_state(2) ) optic_pattern |= 0x04; |
| 839 | 878 | else optic_pattern &= ~0x04; |
| r2241 | r2242 | |
| 844 | 883 | draw_reel((3)); |
| 845 | 884 | } |
| 846 | 885 | |
| 886 | ||
| 847 | 887 | static WRITE8_HANDLER( pia_ic7_portb_w ) |
| 848 | 888 | { |
| 849 | int | |
| 889 | int meter; | |
| 850 | 890 | long cycles = ATTOTIME_TO_CYCLES(0, timer_get_time() ); |
| 851 | 891 | |
| 852 | // The meters are connected to a voltage drop sensor, where current | |
| 853 | // flowing through them also passes through pin B7, meaning that when | |
| 854 | // any meter is activated, pin B7 goes high. | |
| 855 | // As for why they connected this to an output port rather than using | |
| 856 | // CB1, no idea. | |
| 857 | // This appears to have confounded the schematic drawer, who has assumed that | |
| 858 | // all eight meters are driven from this port, giving the 8 line driver chip | |
| 859 | // 9 connections in total. | |
| 892 | /* The meters are connected to a voltage drop sensor, where current | |
| 893 | flowing through them also passes through pin B7, meaning that when | |
| 894 | any meter is activated, pin B7 goes high. | |
| 895 | As for why they connected this to an output port rather than using | |
| 896 | CB1, no idea. | |
| 897 | This appears to have confounded the schematic drawer, who has assumed that | |
| 898 | all eight meters are driven from this port, giving the 8 line driver chip | |
| 899 | 9 connections in total. */ | |
| 860 | 900 | |
| 861 | 901 | mmtr_data = data; |
| 862 | 902 | if (mmtr_data) |
| 863 | 903 | { |
| 864 | pia_set_input_b(4,mmtr_data|0x80); | |
| 865 | for (i=0; i<8; i++) | |
| 866 | if ( mmtr_data & (1 << i) ) Mechmtr_update(i, cycles, mmtr_data & (1 << i) ); | |
| 904 | pia_set_input_b(4, mmtr_data | 0x80); | |
| 905 | for (meter = 0; meter < 8; meter ++) | |
| 906 | if (mmtr_data & (1 << meter)) Mechmtr_update(meter, cycles, mmtr_data & (1 << meter)); | |
| 867 | 907 | } |
| 868 | 908 | else |
| 869 | 909 | { |
| 870 | pia_set_input_b(4,mmtr_data&~0x80); | |
| 910 | pia_set_input_b(4, mmtr_data &~0x80); | |
| 871 | 911 | } |
| 872 | 912 | |
| 873 | 913 | LOG(("%04x IC7 PIA Port B Set to %2x (Meters, Reel E and F)\n", activecpu_get_previouspc(),data)); |
| 874 | 914 | } |
| 875 | 915 | |
| 916 | ||
| 876 | 917 | static WRITE8_HANDLER( pia_ic7_ca2_w ) |
| 877 | 918 | { |
| 878 | 919 | LOG(("%04x IC7 PIA write CA2 %2x (input strobe bit 0 / LED A)\n", activecpu_get_previouspc(),data)); |
| r2241 | r2242 | |
| 882 | 923 | ic23_update(); |
| 883 | 924 | } |
| 884 | 925 | |
| 926 | ||
| 885 | 927 | static WRITE8_HANDLER( pia_ic7_cb2_w ) |
| 886 | 928 | { |
| 887 | // The eighth meter is connected here, because the voltage sensor | |
| 888 | // is on PB7. | |
| 929 | /* The eighth meter is connected here, because the voltage sensor | |
| 930 | is on PB7. */ | |
| 889 | 931 | long cycles = ATTOTIME_TO_CYCLES(0, timer_get_time() ); |
| 890 | 932 | if (data) |
| 891 | 933 | { |
| r2241 | r2242 | |
| 895 | 937 | LOG(("%04x IC7 PIA write CB2 %2x \n", activecpu_get_previouspc(),data)); |
| 896 | 938 | } |
| 897 | 939 | |
| 940 | ||
| 898 | 941 | static const pia6821_interface pia_ic7_intf = |
| 899 | 942 | { |
| 900 | 943 | /*inputs : A/B,CA/B1,CA/B2 */ 0, 0, 0, 0, 0, 0, |
| r2241 | r2242 | |
| 902 | 945 | /*irqs : A/B */ cpu0_irq, cpu0_irq |
| 903 | 946 | }; |
| 904 | 947 | |
| 948 | ||
| 949 | /* IC8, Inputs, TRIACS, alpha clock */ | |
| 905 | 950 | static READ8_HANDLER( pia_ic8_porta_r ) |
| 906 | 951 | { |
| 907 | 952 | static const UINT8 ports[8] = { 0, 1, 2, 3, 0, 1, 4, 5 }; |
| 908 | 953 | int input_read = ports[input_strobe]; |
| 909 | 954 | |
| 910 | 955 | LOG_IC8(("%04x IC8 PIA Read of Port A (MUX input data)\n",activecpu_get_previouspc())); |
| 911 | // The orange inputs are polled twice as often as the black ones, for reasons of efficiency. | |
| 912 | // This is achieved via connecting every input line to an AND gate, thus allowing two strobes | |
| 913 | // to represent each orange input bank (strobes are active low). | |
| 956 | /* The orange inputs are polled twice as often as the black ones, for reasons of efficiency. | |
| 957 | This is achieved via connecting every input line to an AND gate, thus allowing two strobes | |
| 958 | to represent each orange input bank (strobes are active low). */ | |
| 914 | 959 | pia_set_input_cb1(2, (readinputportbytag("AUX2") & 0x80)); |
| 915 | 960 | return readinputport(input_read); |
| 916 | 961 | } |
| 917 | 962 | |
| 963 | ||
| 918 | 964 | static WRITE8_HANDLER( pia_ic8_portb_w ) |
| 919 | 965 | { |
| 920 | 966 | int i; |
| 921 | 967 | LOG_IC8(("%04x IC8 PIA Port B Set to %2x (OUTPUT PORT, TRIACS)\n", activecpu_get_previouspc(),data)); |
| 922 | for (i=0; i<8; i++) | |
| 968 | for (i = 0; i < 8; i++) | |
| 923 | 969 | if ( data & (1 << i) ) output_set_indexed_value("triac", i, data & (1 << i)); |
| 924 | 970 | } |
| 925 | 971 | |
| 972 | ||
| 926 | 973 | static WRITE8_HANDLER( pia_ic8_ca2_w ) |
| 927 | 974 | { |
| 928 | 975 | LOG_IC8(("%04x IC8 PIA write CA2 (input_strobe bit 2 / LED C) %02X\n", activecpu_get_previouspc(), data & 0xFF)); |
| r2241 | r2242 | |
| 931 | 978 | ic23_update(); |
| 932 | 979 | } |
| 933 | 980 | |
| 981 | ||
| 934 | 982 | static WRITE8_HANDLER( pia_ic8_cb2_w ) |
| 935 | 983 | { |
| 936 | 984 | LOG_IC8(("%04x IC8 PIA write CB2 (alpha clock) %02X\n", activecpu_get_previouspc(), data & 0xFF)); |
| r2241 | r2242 | |
| 943 | 991 | ROC10937_draw_16seg(0); |
| 944 | 992 | } |
| 945 | 993 | |
| 994 | ||
| 946 | 995 | static const pia6821_interface pia_ic8_intf = |
| 947 | 996 | { |
| 948 | 997 | /*inputs : A/B,CA/B1,CA/B2 */ pia_ic8_porta_r, 0, 0, 0, 0, 0, |
| r2241 | r2242 | |
| 951 | 1000 | }; |
| 952 | 1001 | |
| 953 | 1002 | |
| 954 | // input ports for MPU4 board //////////////////////////////////////// | |
| 955 | ||
| 1003 | /* input ports for MPU4 board */ | |
| 956 | 1004 | static INPUT_PORTS_START( mpu4 ) |
| 957 | 1005 | PORT_START_TAG("ORANGE1") |
| 958 | 1006 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("00") |
| r2241 | r2242 | |
| 1065 | 1113 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5) |
| 1066 | 1114 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5) |
| 1067 | 1115 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_COIN4) PORT_NAME("100p")PORT_IMPULSE(5) |
| 1068 | ||
| 1069 | 1116 | INPUT_PORTS_END |
| 1070 | 1117 | |
| 1118 | ||
| 1071 | 1119 | static INPUT_PORTS_START( connect4 ) |
| 1072 | 1120 | PORT_START_TAG("ORANGE1") |
| 1073 | 1121 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("00") |
| r2241 | r2242 | |
| 1180 | 1228 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5) |
| 1181 | 1229 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5) |
| 1182 | 1230 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_COIN4) PORT_NAME("100p")PORT_IMPULSE(5) |
| 1183 | ||
| 1184 | 1231 | INPUT_PORTS_END |
| 1185 | 1232 | |
| 1233 | ||
| 1234 | /* Common configurations */ | |
| 1186 | 1235 | static void mpu4_config_common(void) |
| 1187 | 1236 | { |
| 1188 | 1237 | pia_config(0,&pia_ic3_intf); |
| r2241 | r2242 | |
| 1193 | 1242 | pia_config(5,&pia_ic8_intf); |
| 1194 | 1243 | |
| 1195 | 1244 | ic24_timer = timer_alloc(ic24_timeout, NULL); |
| 1196 | / | |
| 1245 | /* setup 6840ptm * | |
| 1197 | 1246 | ptm6840_config(0, &ptm_ic2_intf ); |
| 1198 | 1247 | } |
| 1199 | 1248 | |
| r2241 | r2242 | |
| 1205 | 1254 | serial_card_connected=0; |
| 1206 | 1255 | mod_number=2; |
| 1207 | 1256 | |
| 1208 | / | |
| 1257 | /* setup 8 mechanical meters * | |
| 1209 | 1258 | Mechmtr_init(8); |
| 1210 | 1259 | |
| 1211 | / | |
| 1260 | /* setup 4 | |
| 1212 | 1261 | Stepper_init(0, BARCREST_48STEP_REEL); |
| 1213 | 1262 | Stepper_init(1, BARCREST_48STEP_REEL); |
| 1214 | 1263 | Stepper_init(2, BARCREST_48STEP_REEL); |
| 1215 | 1264 | Stepper_init(3, BARCREST_48STEP_REEL); |
| 1216 | 1265 | |
| 1217 | / | |
| 1266 | /* setup the standard oki MSC1937 display * | |
| 1218 | 1267 | ROC10937_init(0, MSC1937,0); |
| 1219 | 1268 | } |
| 1220 | 1269 | |
| 1270 | ||
| 1221 | 1271 | /* |
| 1222 | 1272 | Characteriser (CHR) |
| 1223 | 1273 | |
| r2241 | r2242 | |
| 1264 | 1314 | } |
| 1265 | 1315 | else |
| 1266 | 1316 | { |
| 1267 | for ( | |
| 1317 | for ( | |
| 1268 | 1318 | { |
| 1269 | 1319 | if (MPU4_chr_lut[(x)] == call) |
| 1270 | 1320 | { |
| r2241 | r2242 | |
| 1279 | 1329 | else if (offset == 2) |
| 1280 | 1330 | { |
| 1281 | 1331 | LOG_CHR(("Characteriser write 2 data %02X\n",data)); |
| 1282 | for ( | |
| 1332 | for ( | |
| 1283 | 1333 | { |
| 1284 | 1334 | if (MPU4_chr_lut[(64+x)] == call) |
| 1285 | 1335 | { |
| r2241 | r2242 | |
| 1295 | 1345 | } |
| 1296 | 1346 | } |
| 1297 | 1347 | |
| 1348 | ||
| 1298 | 1349 | static READ8_HANDLER( characteriser_r ) |
| 1299 | 1350 | { |
| 1300 | 1351 | LOG_CHR(("Characteriser read offset %02X \n",offset)); |
| r2241 | r2242 | |
| 1312 | 1363 | return 0; |
| 1313 | 1364 | } |
| 1314 | 1365 | |
| 1315 | // generate a 50 Hz signal (based on an RC time) ////////////////////////// | |
| 1366 | ||
| 1367 | /* generate a 50 Hz signal (based on an RC time) */ | |
| 1316 | 1368 | static TIMER_DEVICE_CALLBACK( gen_50hz ) |
| 1317 | 1369 | { |
| 1318 | // Although reported as a '50Hz' signal, the fact that both rising and | |
| 1319 | // falling edges of the pulse are used, the timer actually gives a 100Hz | |
| 1320 | // oscillating signal. | |
| 1370 | /* Although reported as a '50Hz' signal, the fact that both rising and | |
| 1371 | falling edges of the pulse are used, the timer actually gives a 100Hz | |
| 1372 | oscillating signal.*/ | |
| 1321 | 1373 | signal_50hz = signal_50hz?0:1; |
| 1322 | 1374 | |
| 1323 | pia_set_input_ca1(1,signal_50hz); / | |
| 1375 | pia_set_input_ca1(1,signal_50hz); /* signal is connected to IC4 CA1 */ | |
| 1324 | 1376 | } |
| 1325 | 1377 | |
| 1378 | ||
| 1326 | 1379 | static ADDRESS_MAP_START( mod2_memmap, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1327 | 1380 | AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 1328 | 1381 | AM_RANGE(0x0800, 0x0810) AM_READWRITE(characteriser_r,characteriser_w) |
| 1329 | 1382 | |
| 1330 | AM_RANGE(0x0850, 0x0850) AM_READWRITE(bankswitch_r,bankswitch_w) / | |
| 1383 | AM_RANGE(0x0850, 0x0850) AM_READWRITE(bankswitch_r,bankswitch_w) /* write bank (rom page select) */ | |
| 1331 | 1384 | |
| 1332 | / | |
| 1385 | /* AM_RANGE(0x08E0, 0x08E7) AM_READWRITE(68681_duart_r,68681_duart_w) */ | |
| 1333 | 1386 | |
| 1334 | AM_RANGE(0x0900, 0x0907) AM_READWRITE(ptm6840_0_r,ptm6840_0_w) / | |
| 1387 | AM_RANGE(0x0900, 0x0907) AM_READWRITE(ptm6840_0_r,ptm6840_0_w) /* 6840PTM */ | |
| 1335 | 1388 | |
| 1336 | AM_RANGE(0x0A00, 0x0A03) AM_READWRITE(pia_0_r,pia_0_w) // PIA6821 IC3 | |
| 1337 | AM_RANGE(0x0B00, 0x0B03) AM_READWRITE(pia_1_r,pia_1_w) // PIA6821 IC4 | |
| 1338 | AM_RANGE(0x0C00, 0x0C03) AM_READWRITE(pia_2_r,pia_2_w) // PIA6821 IC5 | |
| 1339 | AM_RANGE(0x0D00, 0x0D03) AM_READWRITE(pia_3_r,pia_3_w) // PIA6821 IC6 | |
| 1340 | AM_RANGE(0x0E00, 0x0E03) AM_READWRITE(pia_4_r,pia_4_w) // PIA6821 IC7 | |
| 1341 | AM_RANGE(0x0F00, 0x0F03) AM_READWRITE(pia_5_r,pia_5_w) // PIA6821 IC8 | |
| 1389 | AM_RANGE(0x0A00, 0x0A03) AM_READWRITE(pia_0_r,pia_0_w) /* PIA6821 IC3 */ | |
| 1390 | AM_RANGE(0x0B00, 0x0B03) AM_READWRITE(pia_1_r,pia_1_w) /* PIA6821 IC4 */ | |
| 1391 | AM_RANGE(0x0C00, 0x0C03) AM_READWRITE(pia_2_r,pia_2_w) /* PIA6821 IC5 */ | |
| 1392 | AM_RANGE(0x0D00, 0x0D03) AM_READWRITE(pia_3_r,pia_3_w) /* PIA6821 IC6 */ | |
| 1393 | AM_RANGE(0x0E00, 0x0E03) AM_READWRITE(pia_4_r,pia_4_w) /* PIA6821 IC7 */ | |
| 1394 | AM_RANGE(0x0F00, 0x0F03) AM_READWRITE(pia_5_r,pia_5_w) /* PIA6821 IC8 */ | |
| 1342 | 1395 | |
| 1343 | AM_RANGE(0x1000, 0xffff) AM_READ(SMH_BANK1) / | |
| 1396 | AM_RANGE(0x1000, 0xffff) AM_READ(SMH_BANK1) /* 64k paged ROM (4 pages) */ | |
| 1344 | 1397 | ADDRESS_MAP_END |
| 1345 | 1398 | |
| 1346 | // machine driver for barcrest mpu4 board ///////////////////////////////// | |
| 1347 | 1399 | |
| 1400 | /* machine driver for MOD 2 board */ | |
| 1348 | 1401 | static MACHINE_DRIVER_START( mpu4mod2 ) |
| 1349 | 1402 | |
| 1350 | 1403 | MDRV_MACHINE_START(mpu4mod2) |
| r2241 | r2242 | |
| 1358 | 1411 | MDRV_SOUND_ADD_TAG("AY8913",AY8913, MPU4_MASTER_CLOCK/4) |
| 1359 | 1412 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1360 | 1413 | |
| 1361 | MDRV_NVRAM_HANDLER(generic_0fill) | |
| 1414 | MDRV_NVRAM_HANDLER(generic_0fill) | |
| 1362 | 1415 | |
| 1363 | /* video hardware */ | |
| 1364 | 1416 | MDRV_DEFAULT_LAYOUT(layout_mpu4) |
| 1365 | 1417 | MACHINE_DRIVER_END |
| 1366 | 1418 | |
| 1367 | const UINT8 MPU4_chr_lut[72]= { 0x00,0x1A,0x04,0x10,0x18,0x0F,0x13,0x1B, | |
| 1368 | 0x03,0x07,0x17,0x1D,0x36,0x35,0x2B,0x28, | |
| 1369 | 0x39,0x21,0x22,0x25,0x2C,0x29,0x31,0x34, | |
| 1370 | 0x0A,0x1F,0x06,0x0E,0x1C,0x12,0x1E,0x0D, | |
| 1371 | 0x14,0x0A,0x19,0x15,0x06,0x0F,0x08,0x1B, | |
| 1372 | 0x1E,0x04,0x01,0x0C,0x18,0x1A,0x11,0x0B, | |
| 1373 | 0x03,0x17,0x10,0x1D,0x0E,0x07,0x12,0x09, | |
| 1374 | 0x0D,0x1F,0x16,0x05,0x13,0x1C,0x02,0x00, | |
| 1375 | 0x00,0x01,0x04,0x09,0x10,0x19,0x24,0x31}; | |
| 1376 | 1419 | |
| 1377 | 1420 | #include "drivers/mpu4drvr.c" |
| r2241 | r2242 | |
|---|---|---|
| 31 | 31 | ***************************************************************************/ |
| 32 | 32 | |
| 33 | 33 | #include "driver.h" |
| 34 | #include "deprecat.h" | |
| 35 | 34 | #include "machine/eeprom.h" |
| 36 | 35 | #include "sound/namco.h" |
| 37 | 36 | #include "sound/dac.h" |
| r2241 | r2242 | |
| 64 | 63 | cpu_interrupt_enable(0, bit); |
| 65 | 64 | |
| 66 | 65 | if (!bit) |
| 67 | cpunum_set_input_line( | |
| 66 | cpunum_set_input_line(machine, 0, 0, CLEAR_LINE ); | |
| 68 | 67 | } |
| 69 | 68 | |
| 70 | 69 | |
| r2241 | r2242 | |
| 161 | 160 | |
| 162 | 161 | static WRITE8_HANDLER( rom_bank_select_w ) |
| 163 | 162 | { |
| 164 | _20pacgal_state *state = | |
| 163 | _20pacgal_state *state = machine->driver_data; | |
| 165 | 164 | |
| 166 | 165 | state->game_selected = data & 1; |
| 167 | 166 | |
| r2241 | r2242 | |
| 172 | 171 | |
| 173 | 172 | static WRITE8_HANDLER( rom_48000_w ) |
| 174 | 173 | { |
| 175 | _20pacgal_state *state = | |
| 174 | _20pacgal_state *state = machine->driver_data; | |
| 176 | 175 | |
| 177 | 176 | if (state->game_selected) |
| 178 | 177 | { |
| r2241 | r2242 | |
|---|---|---|
| 137 | 137 | |
| 138 | 138 | static WRITE16_HANDLER( soundcommand_w ) |
| 139 | 139 | { |
| 140 | if (ACCESSING_ | |
| 140 | if (ACCESSING_ | |
| 141 | 141 | { |
| 142 | 142 | soundlatch_w(machine,offset,data & 0xff); |
| 143 | 143 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 209 | 209 | |
| 210 | 210 | static WRITE16_HANDLER( sys16_3d_coinctrl_w ) |
| 211 | 211 | { |
| 212 | if( ACCESSING_ | |
| 212 | if( ACCESSING_ | |
| 213 | 213 | { |
| 214 | 214 | coinctrl = data&0xff; |
| 215 | 215 | sys16_refreshenable = coinctrl & 0x10; |
| r2241 | r2242 | |
| 409 | 409 | |
| 410 | 410 | static WRITE16_HANDLER( sound_command_w ) |
| 411 | 411 | { |
| 412 | if( ACCESSING_ | |
| 412 | if( ACCESSING_ | |
| 413 | 413 | { |
| 414 | 414 | soundlatch_w( machine,0,data&0xff ); |
| 415 | 415 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE ); |
| r2241 | r2242 | |
| 418 | 418 | |
| 419 | 419 | static WRITE16_HANDLER( sound_command_nmi_w ) |
| 420 | 420 | { |
| 421 | if( ACCESSING_ | |
| 421 | if( ACCESSING_ | |
| 422 | 422 | { |
| 423 | 423 | soundlatch_w( machine,0,data&0xff ); |
| 424 | 424 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); |
| r2241 | r2242 | |
| 430 | 430 | |
| 431 | 431 | static WRITE16_HANDLER( sys16_coinctrl_w ) |
| 432 | 432 | { |
| 433 | if( ACCESSING_ | |
| 433 | if( ACCESSING_ | |
| 434 | 434 | { |
| 435 | 435 | coinctrl = data&0xff; |
| 436 | 436 | sys16_refreshenable = coinctrl & 0x20; |
| r2241 | r2242 | |
| 502 | 502 | |
| 503 | 503 | static WRITE16_HANDLER( sys16_tilebank_w ) |
| 504 | 504 | { |
| 505 | if(ACCESSING_ | |
| 505 | if(ACCESSING_ | |
| 506 | 506 | { |
| 507 | 507 | switch(offset & 1) |
| 508 | 508 | { |
| r2241 | r2242 | |
| 891 | 891 | |
| 892 | 892 | static WRITE16_HANDLER( eswat_tilebank0_w ) |
| 893 | 893 | { |
| 894 | if( ACCESSING_ | |
| 894 | if( ACCESSING_ | |
| 895 | 895 | { |
| 896 | 896 | eswat_tilebank0 = data&0xff; |
| 897 | 897 | } |
| r2241 | r2242 | |
| 1228 | 1228 | static WRITE16_HANDLER( ga_sound_command_w ) |
| 1229 | 1229 | { |
| 1230 | 1230 | COMBINE_DATA( &sys16_workingram[(0xecfc-0xc000)/2] ); |
| 1231 | if( ACCESSING_ | |
| 1231 | if( ACCESSING_ | |
| 1232 | 1232 | { |
| 1233 | 1233 | soundlatch_w( machine,0,data>>8 ); |
| 1234 | 1234 | cpunum_set_input_line(Machine, 1, 0, HOLD_LINE ); |
| r2241 | r2242 | |
|---|---|---|
| 54 | 54 | |
| 55 | 55 | static WRITE16_HANDLER( sound_command_w ) |
| 56 | 56 | { |
| 57 | if (ACCESSING_ | |
| 57 | if (ACCESSING_ | |
| 58 | 58 | { |
| 59 | 59 | soundlatch_w(machine,offset,(data >> 8) & 0xff); |
| 60 | 60 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
| 68 | 68 | |
| 69 | 69 | static WRITE16_HANDLER( deniam16c_oki_rom_bank_w ) |
| 70 | 70 | { |
| 71 | if (ACCESSING_ | |
| 71 | if (ACCESSING_ | |
| 72 | 72 | OKIM6295_set_bank_base(0,(data & 0x01) ? 0x40000 : 0x00000); |
| 73 | 73 | } |
| 74 | 74 | |
| r2241 | r2242 | |
| 80 | 80 | |
| 81 | 81 | static WRITE16_HANDLER( YM3812_control_port_0_msb_w ) |
| 82 | 82 | { |
| 83 | if (ACCESSING_ | |
| 83 | if (ACCESSING_ | |
| 84 | 84 | YM3812_control_port_0_w(machine,0,(data >> 8) & 0xff); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | static WRITE16_HANDLER( YM3812_write_port_0_msb_w ) |
| 88 | 88 | { |
| 89 | if (ACCESSING_ | |
| 89 | if (ACCESSING_ | |
| 90 | 90 | YM3812_write_port_0_w(machine,0,(data >> 8) & 0xff); |
| 91 | 91 | } |
| 92 | 92 |
| r2241 | r2242 | |
|---|---|---|
| 61 | 61 | UINT16 paldata; |
| 62 | 62 | COMBINE_DATA(&paletteram32[offset]); |
| 63 | 63 | |
| 64 | if(ACCESSING_ | |
| 64 | if(ACCESSING_BITS_0_15) | |
| 65 | 65 | { |
| 66 | 66 | paldata = paletteram32[offset] & 0x7fff; |
| 67 | 67 | palette_set_color_rgb(Machine, offset * 2 + 1, pal5bit(paldata >> 0), pal5bit(paldata >> 5), pal5bit(paldata >> 10)); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | if(ACCESSING_ | |
| 70 | if(ACCESSING_BITS_16_31) | |
| 71 | 71 | { |
| 72 | 72 | paldata = (paletteram32[offset] >> 16) & 0x7fff; |
| 73 | 73 | palette_set_color_rgb(Machine, offset * 2 + 0, pal5bit(paldata >> 0), pal5bit(paldata >> 5), pal5bit(paldata >> 10)); |
| r2241 | r2242 | |
|---|---|---|
| 78 | 78 | Pretty Straightforward |
| 79 | 79 | *******************************************************************************/ |
| 80 | 80 | |
| 81 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 82 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) /* Rom */ | |
| 83 | AM_RANGE(0x080000, 0x080fff) AM_READ(SMH_RAM) /* FG0 Ram */ | |
| 84 | AM_RANGE(0x0c0000, 0x0c0fff) AM_READ(SMH_RAM) /* BG0 Ram */ | |
| 85 | AM_RANGE(0x100000, 0x1003ff) AM_READ(SMH_RAM) /* SPR Ram */ | |
| 86 | AM_RANGE(0x180000, 0x180001) AM_READ(input_port_3_word_r) /* DSW0 */ | |
| 87 | AM_RANGE(0x180002, 0x180003) AM_READ(input_port_4_word_r) /* DSW1 */ | |
| 88 | AM_RANGE(0x180004, 0x180005) AM_READ(input_port_0_word_r) /* CTRLS0 */ | |
| 89 | AM_RANGE(0x180006, 0x180007) AM_READ(input_port_1_word_r) /* CTRLS1 */ | |
| 90 | AM_RANGE(0x180008, 0x180009) AM_READ(input_port_2_word_r_cust) /* MISC */ | |
| 91 | AM_RANGE(0x1c0000, 0x1c3fff) AM_READ(SMH_RAM) /* Work Ram */ | |
| 92 | ADDRESS_MAP_END | |
| 93 | ||
| 94 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 95 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) /* Rom */ | |
| 96 | AM_RANGE(0x080000, 0x080fff) AM_WRITE(wwfsstar_fg0_videoram_w) AM_BASE(&wwfsstar_fg0_videoram) /* FG0 Ram */ | |
| 97 | AM_RANGE(0x0c0000, 0x0c0fff) AM_WRITE(wwfsstar_bg0_videoram_w) AM_BASE(&wwfsstar_bg0_videoram) /* BG0 Ram */ | |
| 98 | AM_RANGE(0x100000, 0x1003ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) /* SPR Ram */ | |
| 81 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 82 | AM_RANGE(0x000000, 0x03ffff) AM_ROM | |
| 83 | AM_RANGE(0x080000, 0x080fff) AM_RAM AM_WRITE(wwfsstar_fg0_videoram_w) AM_BASE(&wwfsstar_fg0_videoram) /* FG0 Ram */ | |
| 84 | AM_RANGE(0x0c0000, 0x0c0fff) AM_RAM AM_WRITE(wwfsstar_bg0_videoram_w) AM_BASE(&wwfsstar_bg0_videoram) /* BG0 Ram */ | |
| 85 | AM_RANGE(0x100000, 0x1003ff) AM_RAM AM_BASE(&spriteram16) /* SPR Ram */ | |
| 99 | 86 | AM_RANGE(0x140000, 0x140fff) AM_WRITE(paletteram16_xxxxBBBBGGGGRRRR_word_w) AM_BASE(&paletteram16) |
| 100 | 87 | AM_RANGE(0x180000, 0x180003) AM_WRITE(wwfsstar_irqack_w) |
| 88 | AM_RANGE(0x180000, 0x180001) AM_READ(input_port_3_word_r) /* DSW0 */ | |
| 89 | AM_RANGE(0x180002, 0x180003) AM_READ(input_port_4_word_r) /* DSW1 */ | |
| 90 | AM_RANGE(0x180004, 0x180005) AM_READ(input_port_0_word_r) /* CTRLS0 */ | |
| 101 | 91 | AM_RANGE(0x180004, 0x180007) AM_WRITE(wwfsstar_scrollwrite) |
| 92 | AM_RANGE(0x180006, 0x180007) AM_READ(input_port_1_word_r) /* CTRLS1 */ | |
| 93 | AM_RANGE(0x180008, 0x180009) AM_READ(input_port_2_word_r_cust) /* MISC */ | |
| 102 | 94 | AM_RANGE(0x180008, 0x180009) AM_WRITE(wwfsstar_soundwrite) |
| 103 | 95 | AM_RANGE(0x18000a, 0x18000b) AM_WRITE(wwfsstar_flipscreen_w) |
| 104 | AM_RANGE(0x1c0000, 0x1c3fff) AM_ | |
| 96 | AM_RANGE(0x1c0000, 0x1c3fff) AM_ | |
| 105 | 97 | ADDRESS_MAP_END |
| 106 | 98 | |
| 107 | static ADDRESS_MAP_START( readmem_sound, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 108 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) | |
| 109 | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) | |
| 110 | AM_RANGE(0x8801, 0x8801) AM_READ(YM2151_status_port_0_r) | |
| 111 | AM_RANGE(0x9800, 0x9800) AM_READ(OKIM6295_status_0_r) | |
| 99 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 100 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 101 | AM_RANGE(0x8000, 0x87ff) AM_RAM | |
| 102 | AM_RANGE(0x8800, 0x8800) AM_WRITE(YM2151_register_port_0_w) | |
| 103 | AM_RANGE(0x8801, 0x8801) AM_READWRITE(YM2151_status_port_0_r,YM2151_data_port_0_w) | |
| 104 | AM_RANGE(0x9800, 0x9800) AM_READWRITE(OKIM6295_status_0_r,OKIM6295_data_0_w) | |
| 112 | 105 | AM_RANGE(0xa000, 0xa000) AM_READ(soundlatch_r) |
| 113 | 106 | ADDRESS_MAP_END |
| 114 | 107 | |
| 115 | static ADDRESS_MAP_START( writemem_sound, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 116 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) | |
| 117 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) | |
| 118 | AM_RANGE(0x8800, 0x8800) AM_WRITE(YM2151_register_port_0_w) | |
| 119 | AM_RANGE(0x8801, 0x8801) AM_WRITE(YM2151_data_port_0_w) | |
| 120 | AM_RANGE(0x9800, 0x9800) AM_WRITE(OKIM6295_data_0_w) | |
| 121 | ADDRESS_MAP_END | |
| 122 | 108 | |
| 123 | ||
| 124 | 109 | /******************************************************************************* |
| 125 | 110 | Read / Write Handlers |
| 126 | 111 | ******************************************************************************** |
| r2241 | r2242 | |
| 361 | 346 | |
| 362 | 347 | /* basic machine hardware */ |
| 363 | 348 | MDRV_CPU_ADD(M68000, 10000000) |
| 364 | MDRV_CPU_PROGRAM_MAP( | |
| 349 | MDRV_CPU_PROGRAM_MAP( | |
| 365 | 350 | MDRV_CPU_VBLANK_INT_HACK(wwfsstars_interrupt,272) |
| 366 | 351 | |
| 367 | 352 | MDRV_CPU_ADD(Z80, 3579545) |
| 368 | MDRV_CPU_PROGRAM_MAP( | |
| 353 | MDRV_CPU_PROGRAM_MAP( | |
| 369 | 354 | |
| 370 | 355 | /* video hardware */ |
| 371 | 356 | MDRV_SCREEN_ADD("main", RASTER) |
| r2241 | r2242 | |
|---|---|---|
| 689 | 689 | |
| 690 | 690 | static WRITE16_HANDLER( bank_w ) |
| 691 | 691 | { |
| 692 | if(ACCESSING_ | |
| 692 | if(ACCESSING_ | |
| 693 | 693 | switch(data & 0xf) { |
| 694 | 694 | case 0x1: // 100000-1fffff data roms banking |
| 695 | 695 | memory_set_bankptr(1, memory_region(REGION_CPU1) + 0x1000000 + 0x100000*((data >> 4) & 0xf)); |
| r2241 | r2242 | |
|---|---|---|
| 362 | 362 | |
| 363 | 363 | static WRITE16_HANDLER( gain_control_w ) |
| 364 | 364 | { |
| 365 | if (ACCESSING_ | |
| 365 | if (ACCESSING_ | |
| 366 | 366 | { |
| 367 | 367 | if (offset==0) |
| 368 | 368 | { |
| r2241 | r2242 | |
| 429 | 429 | { |
| 430 | 430 | COMBINE_DATA(&eep_latch); |
| 431 | 431 | |
| 432 | if (ACCESSING_ | |
| 432 | if (ACCESSING_ | |
| 433 | 433 | { |
| 434 | 434 | data >>= 8; /*M68k byte write*/ |
| 435 | 435 |
| r2241 | r2242 | |
|---|---|---|
| 180 | 180 | { |
| 181 | 181 | UINT64 r = 0; |
| 182 | 182 | |
| 183 | if ( | |
| 183 | if (ACCESSING_BITS_1 | |
| 184 | 184 | { |
| 185 | 185 | switch (offset & 0xf) |
| 186 | 186 | { |
| r2241 | r2242 | |
| 201 | 201 | |
| 202 | 202 | static WRITE64_HANDLER(cf_card_data_w) |
| 203 | 203 | { |
| 204 | if ( | |
| 204 | if (ACCESSING_BITS_1 | |
| 205 | 205 | { |
| 206 | 206 | switch (offset & 0xf) |
| 207 | 207 | { |
| r2241 | r2242 | |
| 223 | 223 | { |
| 224 | 224 | UINT64 r = 0; |
| 225 | 225 | |
| 226 | if ( | |
| 226 | if (ACCESSING_BITS_1 | |
| 227 | 227 | { |
| 228 | 228 | if (cf_card_ide) |
| 229 | 229 | { |
| r2241 | r2242 | |
| 286 | 286 | { |
| 287 | 287 | //printf("compact_flash_w: %08X%08X, %08X, %08X%08X at %08X\n", (UINT32)(data>>32), (UINT32)(data), offset, (UINT32)(mem_mask >> 32), (UINT32)(mem_mask), activecpu_get_pc()); |
| 288 | 288 | |
| 289 | if ( | |
| 289 | if (ACCESSING_BITS_1 | |
| 290 | 290 | { |
| 291 | 291 | if (offset < 0x10) |
| 292 | 292 | { |
| r2241 | r2242 | |
| 357 | 357 | |
| 358 | 358 | static WRITE64_HANDLER(unk2_w) |
| 359 | 359 | { |
| 360 | if ( | |
| 360 | if (ACCESSING_BITS_5 | |
| 361 | 361 | { |
| 362 | 362 | cf_card_ide = 0; |
| 363 | 363 | } |
| r2241 | r2242 | |
| 370 | 370 | { |
| 371 | 371 | UINT64 r = 0; |
| 372 | 372 | |
| 373 | if ( | |
| 373 | if (ACCESSING_BITS_1 | |
| 374 | 374 | { |
| 375 | 375 | int reg = (offset >> 4) & 0x7; |
| 376 | 376 | |
| r2241 | r2242 | |
| 382 | 382 | |
| 383 | 383 | static WRITE64_HANDLER(ata_w) |
| 384 | 384 | { |
| 385 | if ( | |
| 385 | if (ACCESSING_BITS_1 | |
| 386 | 386 | { |
| 387 | 387 | int reg = (offset >> 4) & 0x7; |
| 388 | 388 | |
| r2241 | r2242 | |
| 396 | 396 | UINT64 r = 0; |
| 397 | 397 | //return 0;//U64(0x0000400000000000); |
| 398 | 398 | |
| 399 | if ( | |
| 399 | if (ACCESSING_BITS_ | |
| 400 | 400 | { |
| 401 | 401 | r |= (UINT64)(unk1_bit << 5) << 40; |
| 402 | 402 | } |
| r2241 | r2242 | |
| 406 | 406 | |
| 407 | 407 | static WRITE64_HANDLER(unk1a_w) |
| 408 | 408 | { |
| 409 | if ( | |
| 409 | if (ACCESSING_BITS_5 | |
| 410 | 410 | { |
| 411 | 411 | unk1_bit = 1; |
| 412 | 412 | } |
| r2241 | r2242 | |
| 414 | 414 | |
| 415 | 415 | static WRITE64_HANDLER(unk1b_w) |
| 416 | 416 | { |
| 417 | if ( | |
| 417 | if (ACCESSING_BITS_5 | |
| 418 | 418 | { |
| 419 | 419 | unk1_bit = 0; |
| 420 | 420 | } |
| r2241 | r2242 | |
| 563 | 563 | { |
| 564 | 564 | UINT64 r = 0; |
| 565 | 565 | |
| 566 | if ( | |
| 566 | if (ACCESSING_BITS_32_63 | |
| 567 | 567 | { |
| 568 | 568 | r |= (UINT64)timekeeper_0_32be_r(machine, (offset * 2) + 0, (UINT32)(mem_mask >> 32)) << 32; |
| 569 | 569 | } |
| 570 | if ( | |
| 570 | if (ACCESSING_BITS_ | |
| 571 | 571 | { |
| 572 | 572 | r |= timekeeper_0_32be_r(machine, (offset * 2) + 1, (UINT32)(mem_mask)); |
| 573 | 573 | } |
| r2241 | r2242 | |
| 577 | 577 | |
| 578 | 578 | static WRITE64_HANDLER(m48t58_w) |
| 579 | 579 | { |
| 580 | if ( | |
| 580 | if (ACCESSING_BITS_32_63 | |
| 581 | 581 | { |
| 582 | 582 | timekeeper_0_32be_w(machine, (offset * 2) + 0, (UINT32)(data >> 32), (UINT32)(mem_mask >> 32)); |
| 583 | 583 | } |
| 584 | if ( | |
| 584 | if (ACCESSING_BITS_ | |
| 585 | 585 | { |
| 586 | 586 | timekeeper_0_32be_w(machine, (offset * 2) + 1, (UINT32)(data), (UINT32)(mem_mask)); |
| 587 | 587 | } |
| r2241 | r2242 | |
|---|---|---|
| 176 | 176 | |
| 177 | 177 | static READ16_HANDLER( sndram_r ) |
| 178 | 178 | { |
| 179 | if (ACCESSING_ | |
| 179 | if (ACCESSING_ | |
| 180 | 180 | return sndram[offset]; |
| 181 | 181 | |
| 182 | 182 | return 0; |
| r2241 | r2242 | |
| 184 | 184 | |
| 185 | 185 | static WRITE16_HANDLER( sndram_w ) |
| 186 | 186 | { |
| 187 | if (ACCESSING_ | |
| 187 | if (ACCESSING_ | |
| 188 | 188 | { |
| 189 | 189 | sndram[offset] = data & 0xff; |
| 190 | 190 | if (offset >= 0x40000) |
| r2241 | r2242 | |
| 194 | 194 | |
| 195 | 195 | static READ16_HANDLER( k054539_word_r ) |
| 196 | 196 | { |
| 197 | if (ACCESSING_ | |
| 197 | if (ACCESSING_ | |
| 198 | 198 | return K054539_0_r(machine, offset); |
| 199 | 199 | |
| 200 | 200 | return 0; |
| r2241 | r2242 | |
| 202 | 202 | |
| 203 | 203 | static WRITE16_HANDLER( k054539_word_w ) |
| 204 | 204 | { |
| 205 | if (ACCESSING_ | |
| 205 | if (ACCESSING_ | |
| 206 | 206 | K054539_0_w(machine, offset, data); |
| 207 | 207 | } |
| 208 | 208 |
| r2241 | r2242 | |
|---|---|---|
| 238 | 238 | |
| 239 | 239 | static WRITE16_HANDLER( cps1_sound_fade_w ) |
| 240 | 240 | { |
| 241 | if (ACCESSING_ | |
| 241 | if (ACCESSING_ | |
| 242 | 242 | cps1_sound_fade_timer = data & 0xff; |
| 243 | 243 | } |
| 244 | 244 | |
| r2241 | r2242 | |
| 249 | 249 | |
| 250 | 250 | static WRITE16_HANDLER( cps1_sound_command_w ) |
| 251 | 251 | { |
| 252 | if (ACCESSING_ | |
| 252 | if (ACCESSING_ | |
| 253 | 253 | soundlatch_w(machine,0,data & 0xff); |
| 254 | 254 | } |
| 255 | 255 | |
| r2241 | r2242 | |
| 257 | 257 | { |
| 258 | 258 | // popmessage("coinctrl %04x",data); |
| 259 | 259 | |
| 260 | if (ACCESSING_ | |
| 260 | if (ACCESSING_ | |
| 261 | 261 | { |
| 262 | 262 | coin_counter_w(0,data & 0x0100); |
| 263 | 263 | coin_counter_w(1,data & 0x0200); |
| r2241 | r2242 | |
| 265 | 265 | coin_lockout_w(1,~data & 0x0800); |
| 266 | 266 | } |
| 267 | 267 | |
| 268 | if (ACCESSING_ | |
| 268 | if (ACCESSING_ | |
| 269 | 269 | { |
| 270 | 270 | /* mercs sets bit 0 */ |
| 271 | 271 | set_led_status(0,data & 0x02); |
| r2241 | r2242 | |
| 276 | 276 | |
| 277 | 277 | static WRITE16_HANDLER( cpsq_coinctrl2_w ) |
| 278 | 278 | { |
| 279 | if (ACCESSING_ | |
| 279 | if (ACCESSING_ | |
| 280 | 280 | { |
| 281 | 281 | coin_counter_w(2,data & 0x01); |
| 282 | 282 | coin_lockout_w(2,~data & 0x02); |
| r2241 | r2242 | |
| 339 | 339 | |
| 340 | 340 | WRITE16_HANDLER( qsound_sharedram1_w ) |
| 341 | 341 | { |
| 342 | if (ACCESSING_ | |
| 342 | if (ACCESSING_ | |
| 343 | 343 | qsound_sharedram1[offset] = data; |
| 344 | 344 | } |
| 345 | 345 | |
| r2241 | r2242 | |
| 350 | 350 | |
| 351 | 351 | static WRITE16_HANDLER( qsound_sharedram2_w ) |
| 352 | 352 | { |
| 353 | if (ACCESSING_ | |
| 353 | if (ACCESSING_ | |
| 354 | 354 | qsound_sharedram2[offset] = data; |
| 355 | 355 | } |
| 356 | 356 | |
| r2241 | r2242 | |
| 434 | 434 | |
| 435 | 435 | WRITE16_HANDLER( cps1_eeprom_port_w ) |
| 436 | 436 | { |
| 437 | if (ACCESSING_ | |
| 437 | if (ACCESSING_ | |
| 438 | 438 | { |
| 439 | 439 | /* |
| 440 | 440 | bit 0 = data |
| r2241 | r2242 | |
| 3475 | 3475 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) |
| 3476 | 3476 | |
| 3477 | 3477 | MDRV_GFXDECODE(cps1) |
| 3478 | MDRV_PALETTE_LENGTH( | |
| 3478 | MDRV_PALETTE_LENGTH( | |
| 3479 | 3479 | |
| 3480 | 3480 | MDRV_VIDEO_START(cps1) |
| 3481 | 3481 | MDRV_VIDEO_EOF(cps1) |
| r2241 | r2242 | |
|---|---|---|
| 114 | 114 | |
| 115 | 115 | static WRITE16_HANDLER( yunsun16_sound_bank_w ) |
| 116 | 116 | { |
| 117 | if (ACCESSING_ | |
| 117 | if (ACCESSING_ | |
| 118 | 118 | { |
| 119 | 119 | int bank = data & 3; |
| 120 | 120 | UINT8 *dst = memory_region(REGION_SOUND1); |
| r2241 | r2242 | |
| 134 | 134 | AM_RANGE(0x800102, 0x800103) AM_WRITE(SMH_NOP ) // ? $9080 |
| 135 | 135 | AM_RANGE(0x800104, 0x800105) AM_WRITE(SMH_NOP ) // ? $90c0 |
| 136 | 136 | AM_RANGE(0x80010a, 0x80010b) AM_WRITE(SMH_NOP ) // ? $9000 |
| 137 | AM_RANGE(0x80010c, 0x80010f) AM_WRITE(SMH_RAM) AM_BASE(&yunsun16_scroll_1 ) // Scrolling | |
| 138 | AM_RANGE(0x800114, 0x800117) AM_WRITE(SMH_RAM) AM_BASE(&yunsun16_scroll_0 ) // Scrolling | |
| 139 | AM_RANGE(0x800154, 0x800155) AM_WRITE(SMH_RAM) AM_BASE(&yunsun16_priority ) // Priority | |
| 137 | AM_RANGE(0x80010c, 0x80010f) AM_RAM AM_BASE(&yunsun16_scroll_1 ) // Scrolling | |
| 138 | AM_RANGE(0x800114, 0x800117) AM_RAM AM_BASE(&yunsun16_scroll_0 ) // Scrolling | |
| 139 | AM_RANGE(0x800154, 0x800155) AM_RAM AM_BASE(&yunsun16_priority ) // Priority | |
| 140 | 140 | AM_RANGE(0x800180, 0x800181) AM_WRITE(yunsun16_sound_bank_w ) // Sound |
| 141 | 141 | AM_RANGE(0x800188, 0x800189) AM_READWRITE(OKIM6295_status_0_lsb_r, OKIM6295_data_0_lsb_w ) // Sound |
| 142 | 142 | AM_RANGE(0x8001fe, 0x8001ff) AM_WRITE(SMH_NOP ) // ? 0 (during int) |
| 143 | AM_RANGE(0x900000, 0x903fff) AM_READWRITE(SMH_RAM, paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) // Palette | |
| 144 | AM_RANGE(0x908000, 0x90bfff) AM_READWRITE(SMH_RAM, yunsun16_vram_1_w) AM_BASE(&yunsun16_vram_1 ) // Layer 1 | |
| 145 | AM_RANGE(0x90c000, 0x90ffff) AM_READWRITE(SMH_RAM, yunsun16_vram_0_w) AM_BASE(&yunsun16_vram_0 ) // Layer 0 | |
| 143 | AM_RANGE(0x900000, 0x903fff) AM_RAM AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) // Palette | |
| 144 | AM_RANGE(0x908000, 0x90bfff) AM_RAM AM_WRITE(yunsun16_vram_1_w) AM_BASE(&yunsun16_vram_1 ) // Layer 1 | |
| 145 | AM_RANGE(0x90c000, 0x90ffff) AM_RAM AM_WRITE(yunsun16_vram_0_w) AM_BASE(&yunsun16_vram_0 ) // Layer 0 | |
| 146 | 146 | AM_RANGE(0x910000, 0x910fff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites |
| 147 | 147 | AM_RANGE(0xff0000, 0xffffff) AM_RAM |
| 148 | 148 | ADDRESS_MAP_END |
| r2241 | r2242 | |
| 150 | 150 | |
| 151 | 151 | static WRITE16_HANDLER( magicbub_sound_command_w ) |
| 152 | 152 | { |
| 153 | if (ACCESSING_ | |
| 153 | if (ACCESSING_ | |
| 154 | 154 | { |
| 155 | 155 | /* |
| 156 | 156 | HACK: the game continuously sends this. It'll play the oki sample |
| r2241 | r2242 | |
|---|---|---|
| 47 | 47 | |
| 48 | 48 | #include "driver.h" |
| 49 | 49 | #include "machine/8255ppi.h" |
| 50 | #include "galax | |
| 50 | #include "galaxold.h" | |
| 51 | 51 | #include "sound/ay8910.h" |
| 52 | 52 | |
| 53 | 53 | static const gfx_layout scobra_charlayout = |
| r2241 | r2242 | |
| 131 | 131 | static ADDRESS_MAP_START( type1_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 132 | 132 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 133 | 133 | AM_RANGE(0x8000, 0x8bff) AM_READ(SMH_RAM) |
| 134 | AM_RANGE(0x8c00, 0x8fff) AM_READ(galax | |
| 134 | AM_RANGE(0x8c00, 0x8fff) AM_READ(galaxold_videoram_r) /* mirror */ | |
| 135 | 135 | AM_RANGE(0x9000, 0x90ff) AM_READ(SMH_RAM) |
| 136 | 136 | AM_RANGE(0x9800, 0x9803) AM_READ(ppi8255_0_r) |
| 137 | 137 | AM_RANGE(0xa000, 0xa003) AM_READ(ppi8255_1_r) |
| r2241 | r2242 | |
| 141 | 141 | static ADDRESS_MAP_START( type1_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 142 | 142 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 143 | 143 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) |
| 144 | AM_RANGE(0x8800, 0x8bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 145 | AM_RANGE(0x8c00, 0x8fff) AM_WRITE(galaxian_videoram_w) /* mirror */ | |
| 146 | AM_RANGE(0x9000, 0x903f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 147 | AM_RANGE(0x9040, 0x905f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 148 | AM_RANGE(0x9060, 0x907f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 144 | AM_RANGE(0x8800, 0x8bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 145 | AM_RANGE(0x8c00, 0x8fff) AM_WRITE(galaxold_videoram_w) /* mirror */ | |
| 146 | AM_RANGE(0x9000, 0x903f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 147 | AM_RANGE(0x9040, 0x905f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 148 | AM_RANGE(0x9060, 0x907f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 149 | 149 | AM_RANGE(0x9080, 0x90ff) AM_WRITE(SMH_RAM) |
| 150 | 150 | AM_RANGE(0x9800, 0x9803) AM_WRITE(ppi8255_0_w) |
| 151 | 151 | AM_RANGE(0xa000, 0xa003) AM_WRITE(ppi8255_1_w) |
| 152 | AM_RANGE(0xa801, 0xa801) AM_WRITE(galaxian_nmi_enable_w) | |
| 153 | AM_RANGE(0xa802, 0xa802) AM_WRITE(galaxian_coin_counter_w) | |
| 154 | AM_RANGE(0xa804, 0xa804) AM_WRITE(galaxian_stars_enable_w) | |
| 155 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 156 | AM_RANGE(0xa807, 0xa807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 152 | AM_RANGE(0xa801, 0xa801) AM_WRITE(galaxold_nmi_enable_w) | |
| 153 | AM_RANGE(0xa802, 0xa802) AM_WRITE(galaxold_coin_counter_w) | |
| 154 | AM_RANGE(0xa804, 0xa804) AM_WRITE(galaxold_stars_enable_w) | |
| 155 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxold_flip_screen_x_w) | |
| 156 | AM_RANGE(0xa807, 0xa807) AM_WRITE(galaxold_flip_screen_y_w) | |
| 157 | 157 | ADDRESS_MAP_END |
| 158 | 158 | |
| 159 | 159 | static ADDRESS_MAP_START( type2_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 160 | 160 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 161 | 161 | AM_RANGE(0x8000, 0x88ff) AM_READ(SMH_RAM) |
| 162 | 162 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) |
| 163 | AM_RANGE(0x9400, 0x97ff) AM_READ(galax | |
| 163 | AM_RANGE(0x9400, 0x97ff) AM_READ(galaxold_videoram_r) /* mirror */ | |
| 164 | 164 | AM_RANGE(0x9800, 0x9800) AM_READ(watchdog_reset_r) |
| 165 | 165 | AM_RANGE(0xa000, 0xa00f) AM_READ(scobra_type2_ppi8255_0_r) |
| 166 | 166 | AM_RANGE(0xa800, 0xa80f) AM_READ(scobra_type2_ppi8255_1_r) |
| r2241 | r2242 | |
| 169 | 169 | static ADDRESS_MAP_START( type2_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 170 | 170 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 171 | 171 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) |
| 172 | AM_RANGE(0x8800, 0x883f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 173 | AM_RANGE(0x8840, 0x885f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 174 | AM_RANGE(0x8860, 0x887f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 172 | AM_RANGE(0x8800, 0x883f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 173 | AM_RANGE(0x8840, 0x885f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 174 | AM_RANGE(0x8860, 0x887f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 175 | 175 | AM_RANGE(0x8880, 0x88ff) AM_WRITE(SMH_RAM) |
| 176 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 177 | AM_RANGE(0x9400, 0x97ff) AM_WRITE(galaxian_videoram_w) /* mirror */ | |
| 176 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 177 | AM_RANGE(0x9400, 0x97ff) AM_WRITE(galaxold_videoram_w) /* mirror */ | |
| 178 | 178 | AM_RANGE(0xa000, 0xa00f) AM_WRITE(scobra_type2_ppi8255_0_w) |
| 179 | 179 | AM_RANGE(0xa800, 0xa80f) AM_WRITE(scobra_type2_ppi8255_1_w) |
| 180 | AM_RANGE(0xb000, 0xb000) AM_WRITE(galaxian_stars_enable_w) | |
| 181 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxian_nmi_enable_w) | |
| 182 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_coin_counter_0_w) | |
| 183 | AM_RANGE(0xb008, 0xb008) AM_WRITE(galaxian_coin_counter_1_w) | |
| 184 | AM_RANGE(0xb00c, 0xb00c) AM_WRITE(galaxian_flip_screen_y_w) | |
| 185 | AM_RANGE(0xb00e, 0xb00e) AM_WRITE(galaxian_flip_screen_x_w) | |
| 180 | AM_RANGE(0xb000, 0xb000) AM_WRITE(galaxold_stars_enable_w) | |
| 181 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxold_nmi_enable_w) | |
| 182 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxold_coin_counter_0_w) | |
| 183 | AM_RANGE(0xb008, 0xb008) AM_WRITE(galaxold_coin_counter_1_w) | |
| 184 | AM_RANGE(0xb00c, 0xb00c) AM_WRITE(galaxold_flip_screen_y_w) | |
| 185 | AM_RANGE(0xb00e, 0xb00e) AM_WRITE(galaxold_flip_screen_x_w) | |
| 186 | 186 | ADDRESS_MAP_END |
| 187 | 187 | |
| 188 | 188 | static ADDRESS_MAP_START( hustler_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| r2241 | r2242 | |
| 197 | 197 | static ADDRESS_MAP_START( hustler_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 198 | 198 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) |
| 199 | 199 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) |
| 200 | AM_RANGE(0x8800, 0x8bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 201 | AM_RANGE(0x9000, 0x903f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 202 | AM_RANGE(0x9040, 0x905f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 203 | AM_RANGE(0x9060, 0x907f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 200 | AM_RANGE(0x8800, 0x8bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 201 | AM_RANGE(0x9000, 0x903f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 202 | AM_RANGE(0x9040, 0x905f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 203 | AM_RANGE(0x9060, 0x907f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 204 | 204 | AM_RANGE(0x9080, 0x90ff) AM_WRITE(SMH_RAM) |
| 205 | AM_RANGE(0xa802, 0xa802) AM_WRITE(galaxian_flip_screen_x_w) | |
| 206 | AM_RANGE(0xa804, 0xa804) AM_WRITE(galaxian_nmi_enable_w) | |
| 207 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxian_flip_screen_y_w) | |
| 205 | AM_RANGE(0xa802, 0xa802) AM_WRITE(galaxold_flip_screen_x_w) | |
| 206 | AM_RANGE(0xa804, 0xa804) AM_WRITE(galaxold_nmi_enable_w) | |
| 207 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxold_flip_screen_y_w) | |
| 208 | 208 | AM_RANGE(0xa80e, 0xa80e) AM_WRITE(SMH_NOP) /* coin counters */ |
| 209 | 209 | AM_RANGE(0xd000, 0xd01f) AM_WRITE(hustler_ppi8255_0_w) |
| 210 | 210 | AM_RANGE(0xe000, 0xe01f) AM_WRITE(hustler_ppi8255_1_w) |
| r2241 | r2242 | |
| 222 | 222 | static ADDRESS_MAP_START( hustlerb_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 223 | 223 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) |
| 224 | 224 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) |
| 225 | AM_RANGE(0x8800, 0x8bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 226 | AM_RANGE(0x9000, 0x903f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 227 | AM_RANGE(0x9040, 0x905f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 228 | AM_RANGE(0x9060, 0x907f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 225 | AM_RANGE(0x8800, 0x8bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 226 | AM_RANGE(0x9000, 0x903f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 227 | AM_RANGE(0x9040, 0x905f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 228 | AM_RANGE(0x9060, 0x907f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 229 | 229 | AM_RANGE(0x9080, 0x90ff) AM_WRITE(SMH_RAM) |
| 230 | AM_RANGE(0xa801, 0xa801) AM_WRITE(galax | |
| 230 | AM_RANGE(0xa801, 0xa801) AM_WRITE(galaxold_nmi_enable_w) | |
| 231 | 231 | AM_RANGE(0xa802, 0xa802) AM_WRITE(SMH_NOP) /* coin counters */ |
| 232 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxian_flip_screen_y_w) | |
| 233 | AM_RANGE(0xa807, 0xa807) AM_WRITE(galaxian_flip_screen_x_w) | |
| 232 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxold_flip_screen_y_w) | |
| 233 | AM_RANGE(0xa807, 0xa807) AM_WRITE(galaxold_flip_screen_x_w) | |
| 234 | 234 | AM_RANGE(0xc100, 0xc103) AM_WRITE(ppi8255_0_w) |
| 235 | 235 | AM_RANGE(0xc200, 0xc203) AM_WRITE(ppi8255_1_w) |
| 236 | 236 | ADDRESS_MAP_END |
| r2241 | r2242 | |
| 238 | 238 | static ADDRESS_MAP_START( mimonkey_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 239 | 239 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 240 | 240 | AM_RANGE(0x8000, 0x8bff) AM_READ(SMH_RAM) |
| 241 | AM_RANGE(0x8c00, 0x8fff) AM_READ(galax | |
| 241 | AM_RANGE(0x8c00, 0x8fff) AM_READ(galaxold_videoram_r) /* mirror */ | |
| 242 | 242 | AM_RANGE(0x9000, 0x90ff) AM_READ(SMH_RAM) |
| 243 | 243 | AM_RANGE(0x9800, 0x9803) AM_READ(ppi8255_0_r) |
| 244 | 244 | AM_RANGE(0xa000, 0xa003) AM_READ(ppi8255_1_r) |
| r2241 | r2242 | |
| 249 | 249 | static ADDRESS_MAP_START( mimonkey_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 250 | 250 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) |
| 251 | 251 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) |
| 252 | AM_RANGE(0x8800, 0x8bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 253 | AM_RANGE(0x8c00, 0x8fff) AM_WRITE(galaxian_videoram_w) /* mirror */ | |
| 254 | AM_RANGE(0x9000, 0x903f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 255 | AM_RANGE(0x9040, 0x905f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 256 | AM_RANGE(0x9060, 0x907f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 252 | AM_RANGE(0x8800, 0x8bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 253 | AM_RANGE(0x8c00, 0x8fff) AM_WRITE(galaxold_videoram_w) /* mirror */ | |
| 254 | AM_RANGE(0x9000, 0x903f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 255 | AM_RANGE(0x9040, 0x905f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 256 | AM_RANGE(0x9060, 0x907f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 257 | 257 | AM_RANGE(0x9080, 0x90ff) AM_WRITE(SMH_RAM) |
| 258 | 258 | AM_RANGE(0x9800, 0x9803) AM_WRITE(ppi8255_0_w) |
| 259 | 259 | AM_RANGE(0xa000, 0xa003) AM_WRITE(ppi8255_1_w) |
| 260 | AM_RANGE(0xa801, 0xa801) AM_WRITE(galaxian_nmi_enable_w) | |
| 261 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_gfxbank_w) | |
| 262 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 263 | AM_RANGE(0xa807, 0xa807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 260 | AM_RANGE(0xa801, 0xa801) AM_WRITE(galaxold_nmi_enable_w) | |
| 261 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxold_gfxbank_w) | |
| 262 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxold_flip_screen_x_w) | |
| 263 | AM_RANGE(0xa807, 0xa807) AM_WRITE(galaxold_flip_screen_y_w) | |
| 264 | 264 | AM_RANGE(0xc000, 0xffff) AM_WRITE(SMH_ROM) |
| 265 | 265 | ADDRESS_MAP_END |
| 266 | 266 | |
| r2241 | r2242 | |
| 326 | 326 | AM_RANGE(0x2000, 0x20ff) AM_READ(SMH_RAM) |
| 327 | 327 | AM_RANGE(0x4600, 0x4fff) AM_READ(SMH_ROM) |
| 328 | 328 | AM_RANGE(0x6400, 0x7aff) AM_READ(SMH_ROM) |
| 329 | AM_RANGE(0x7c00, 0x7fff) AM_READ(galax | |
| 329 | AM_RANGE(0x7c00, 0x7fff) AM_READ(galaxold_videoram_r) /* mirror */ | |
| 330 | 330 | AM_RANGE(0x8300, 0x98ff) AM_READ(SMH_ROM) |
| 331 | 331 | AM_RANGE(0xa300, 0xa7ff) AM_READ(SMH_ROM) |
| 332 | 332 | AM_RANGE(0xf521, 0xf521) AM_READ(watchdog_reset_r) |
| r2241 | r2242 | |
| 339 | 339 | static ADDRESS_MAP_START( anteatg_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 340 | 340 | AM_RANGE(0x0000, 0x03ff) AM_WRITE(SMH_ROM) |
| 341 | 341 | AM_RANGE(0x0400, 0x0bff) AM_WRITE(SMH_RAM) |
| 342 | AM_RANGE(0x0c00, 0x0fff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 343 | AM_RANGE(0x2000, 0x203f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 344 | AM_RANGE(0x2040, 0x205f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 345 | AM_RANGE(0x2060, 0x207f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 342 | AM_RANGE(0x0c00, 0x0fff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 343 | AM_RANGE(0x2000, 0x203f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 344 | AM_RANGE(0x2040, 0x205f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 345 | AM_RANGE(0x2060, 0x207f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 346 | 346 | AM_RANGE(0x2080, 0x20ff) AM_WRITE(SMH_RAM) |
| 347 | 347 | AM_RANGE(0x2423, 0x2423) AM_WRITE(anteatg_ppi8255_1_reg3_w) |
| 348 | 348 | AM_RANGE(0x2450, 0x2450) AM_WRITE(anteatg_ppi8255_1_reg0_w) |
| 349 | 349 | AM_RANGE(0x2511, 0x2511) AM_WRITE(anteatg_ppi8255_1_reg1_w) |
| 350 | AM_RANGE(0x2621, 0x2621) AM_WRITE(galaxian_nmi_enable_w) | |
| 351 | AM_RANGE(0x2624, 0x2624) AM_WRITE(galaxian_stars_enable_w) | |
| 352 | AM_RANGE(0x2647, 0x2647) AM_WRITE(galaxian_flip_screen_y_w) | |
| 353 | AM_RANGE(0x2653, 0x2653) AM_WRITE(scramble_background_enable_w) | |
| 354 | AM_RANGE(0x2702, 0x2702) AM_WRITE(galaxian_coin_counter_w) | |
| 355 | AM_RANGE(0x2736, 0x2736) AM_WRITE(galaxian_flip_screen_x_w) | |
| 350 | AM_RANGE(0x2621, 0x2621) AM_WRITE(galaxold_nmi_enable_w) | |
| 351 | AM_RANGE(0x2624, 0x2624) AM_WRITE(galaxold_stars_enable_w) | |
| 352 | AM_RANGE(0x2647, 0x2647) AM_WRITE(galaxold_flip_screen_y_w) | |
| 353 | AM_RANGE(0x2653, 0x2653) AM_WRITE(scrambold_background_enable_w) | |
| 354 | AM_RANGE(0x2702, 0x2702) AM_WRITE(galaxold_coin_counter_w) | |
| 355 | AM_RANGE(0x2736, 0x2736) AM_WRITE(galaxold_flip_screen_x_w) | |
| 356 | 356 | AM_RANGE(0x4600, 0x4fff) AM_WRITE(SMH_ROM) |
| 357 | 357 | AM_RANGE(0x6400, 0x7aff) AM_WRITE(SMH_ROM) |
| 358 | AM_RANGE(0x7c00, 0x7fff) AM_WRITE(galax | |
| 358 | AM_RANGE(0x7c00, 0x7fff) AM_WRITE(galaxold_videoram_w) /* mirror */ | |
| 359 | 359 | AM_RANGE(0x8300, 0x98ff) AM_WRITE(SMH_ROM) |
| 360 | 360 | AM_RANGE(0xa300, 0xa7ff) AM_WRITE(SMH_ROM) |
| 361 | 361 | AM_RANGE(0xf612, 0xf612) AM_WRITE(anteatg_ppi8255_0_reg0_w) |
| r2241 | r2242 | |
| 380 | 380 | static ADDRESS_MAP_START( anteatgb_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 381 | 381 | AM_RANGE(0x0000, 0x03ff) AM_WRITE(SMH_ROM) |
| 382 | 382 | AM_RANGE(0x0400, 0x0bff) AM_WRITE(SMH_RAM) |
| 383 | AM_RANGE(0x0c00, 0x0fff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 384 | AM_RANGE(0x1200, 0x123f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 385 | AM_RANGE(0x1240, 0x125f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 386 | AM_RANGE(0x1260, 0x127f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 383 | AM_RANGE(0x0c00, 0x0fff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 384 | AM_RANGE(0x1200, 0x123f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 385 | AM_RANGE(0x1240, 0x125f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 386 | AM_RANGE(0x1260, 0x127f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 387 | 387 | AM_RANGE(0x1280, 0x12ff) AM_WRITE(SMH_RAM) |
| 388 | AM_RANGE(0x1171, 0x1171) AM_WRITE(galaxian_nmi_enable_w) | |
| 389 | AM_RANGE(0x1174, 0x1174) AM_WRITE(galaxian_stars_enable_w) | |
| 390 | AM_RANGE(0x1177, 0x1177) AM_WRITE(galaxian_flip_screen_y_w) | |
| 391 | AM_RANGE(0x1173, 0x1173) AM_WRITE(scramble_background_enable_w) | |
| 392 | AM_RANGE(0x1172, 0x1172) AM_WRITE(galaxian_coin_counter_w) | |
| 393 | AM_RANGE(0x1176, 0x1176) AM_WRITE(galaxian_flip_screen_x_w) | |
| 388 | AM_RANGE(0x1171, 0x1171) AM_WRITE(galaxold_nmi_enable_w) | |
| 389 | AM_RANGE(0x1174, 0x1174) AM_WRITE(galaxold_stars_enable_w) | |
| 390 | AM_RANGE(0x1177, 0x1177) AM_WRITE(galaxold_flip_screen_y_w) | |
| 391 | AM_RANGE(0x1173, 0x1173) AM_WRITE(scrambold_background_enable_w) | |
| 392 | AM_RANGE(0x1172, 0x1172) AM_WRITE(galaxold_coin_counter_w) | |
| 393 | AM_RANGE(0x1176, 0x1176) AM_WRITE(galaxold_flip_screen_x_w) | |
| 394 | 394 | AM_RANGE(0x4600, 0x4fff) AM_WRITE(SMH_ROM) |
| 395 | 395 | AM_RANGE(0x6400, 0x7aff) AM_WRITE(SMH_ROM) |
| 396 | 396 | AM_RANGE(0x8300, 0x98ff) AM_WRITE(SMH_ROM) |
| r2241 | r2242 | |
| 1404 | 1404 | MDRV_GFXDECODE(scobra) |
| 1405 | 1405 | MDRV_PALETTE_LENGTH(32+64+2+1) /* 32 for characters, 64 for stars, 2 for bullets, 1 for background */ |
| 1406 | 1406 | |
| 1407 | MDRV_PALETTE_INIT(scramble) | |
| 1408 | MDRV_VIDEO_START(scramble) | |
| 1409 | MDRV_VIDEO_UPDATE(galaxian) | |
| 1407 | MDRV_PALETTE_INIT(scrambold) | |
| 1408 | MDRV_VIDEO_START(scrambold) | |
| 1409 | MDRV_VIDEO_UPDATE(galaxold) | |
| 1410 | 1410 | |
| 1411 | 1411 | /* sound hardware */ |
| 1412 | 1412 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r2241 | r2242 | |
| 1428 | 1428 | /* video hardware */ |
| 1429 | 1429 | MDRV_PALETTE_LENGTH(32+64+2) /* 32 for characters, 64 for stars, 2 for bullets */ |
| 1430 | 1430 | |
| 1431 | MDRV_PALETTE_INIT(galax | |
| 1431 | MDRV_PALETTE_INIT(galaxold) | |
| 1432 | 1432 | MDRV_VIDEO_START(theend) |
| 1433 | 1433 | MACHINE_DRIVER_END |
| 1434 | 1434 | |
| r2241 | r2242 | |
| 1561 | 1561 | MDRV_GFXDECODE(scobra) |
| 1562 | 1562 | MDRV_PALETTE_LENGTH(32+64+2) /* 32 for characters, 64 for stars, 2 for bullets */ |
| 1563 | 1563 | |
| 1564 | MDRV_PALETTE_INIT(galaxian) | |
| 1565 | MDRV_VIDEO_START(scramble) | |
| 1566 | MDRV_VIDEO_UPDATE(galaxian) | |
| 1564 | MDRV_PALETTE_INIT(galaxold) | |
| 1565 | MDRV_VIDEO_START(scrambold) | |
| 1566 | MDRV_VIDEO_UPDATE(galaxold) | |
| 1567 | 1567 | |
| 1568 | 1568 | /* sound hardware */ |
| 1569 | 1569 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r2241 | r2242 | |
| 2221 | 2221 | ROM_END |
| 2222 | 2222 | |
| 2223 | 2223 | |
| 2224 | GAME( 1981, scobra, 0, type1, scobra, scobra, ROT90, "Konami", "Super Cobra", GAME_SUPPORTS_SAVE ) | |
| 2225 | GAME( 1981, scobras, scobra, type1, scobras, scobra, ROT90, "[Konami] (Stern license)", "Super Cobra (Stern)", GAME_SUPPORTS_SAVE ) | |
| 2226 | GAME( 1981, scobrase, scobra, type1, scobras, scobra, ROT90, "[Konami] (Sega license)", "Super Cobra (Sega)", GAME_SUPPORTS_SAVE ) | |
| 2227 | GAME( 1981, scobrab, scobra, type1, scobras, scobra, ROT90, "bootleg", "Super Cobra (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 2228 | 2224 | GAME( 1981, stratgyx, 0, stratgyx, stratgyx, stratgyx, ROT0, "Konami", "Strategy X", GAME_SUPPORTS_SAVE ) |
| 2229 | 2225 | GAME( 1981, stratgys, stratgyx, stratgyx, stratgyx, stratgyx, ROT0, "[Konami] (Stern license)", "Strategy X (Stern)", GAME_SUPPORTS_SAVE ) |
| 2230 | GAME( 1981, armorcar, 0, armorcar, armorcar, scramble_ppi, ROT90, "Stern", "Armored Car (set 1)", GAME_SUPPORTS_SAVE ) | |
| 2231 | GAME( 1981, armorca2, armorcar, armorcar, armorcar, scramble_ppi, ROT90, "Stern", "Armored Car (set 2)", GAME_SUPPORTS_SAVE ) | |
| 2232 | 2226 | GAME( 1981, moonwar, 0, moonwar, moonwar, moonwar, ROT90, "Stern", "Moonwar", GAME_SUPPORTS_SAVE ) |
| 2233 | 2227 | GAME( 1981, moonwara, moonwar, moonwar, moonwara, moonwar, ROT90, "Stern", "Moonwar (older)", GAME_SUPPORTS_SAVE ) |
| 2234 | 2228 | GAME( 1984, spdcoin, 0, type1, spdcoin, scramble_ppi, ROT90, "Stern", "Speed Coin (prototype)", GAME_SUPPORTS_SAVE ) |
| 2235 | 2229 | GAME( 1982, darkplnt, 0, darkplnt, darkplnt, darkplnt, ROT180, "Stern", "Dark Planet", GAME_SUPPORTS_SAVE ) |
| 2236 | GAME( 1982, tazmania, 0, type1, tazmania, scobra, ROT90, "Stern", "Tazz-Mania (set 1)", GAME_SUPPORTS_SAVE ) | |
| 2237 | 2230 | GAME( 1982, tazmani2, tazmania, type2, tazmania, tazmani2, ROT90, "Stern", "Tazz-Mania (set 2)", GAME_SUPPORTS_SAVE ) |
| 2238 | 2231 | GAME( 1982, calipso, 0, calipso, calipso, scobra, ROT90, "[Stern] (Tago license)", "Calipso", GAME_SUPPORTS_SAVE ) |
| 2239 | GAME( 1982, anteater, 0, type1, anteater, anteater, ROT90, "[Stern] (Tago license)", "Anteater", GAME_SUPPORTS_SAVE ) | |
| 2240 | 2232 | GAME( 1983, anteatg, anteater, anteatg, anteatg, scramble_ppi, ROT90, "TV-Tuning (F.E.G. license)", "Ameisenbaer (German)", GAME_SUPPORTS_SAVE ) |
| 2241 | 2233 | GAME( 1983, anteatgb, anteater, anteatgb, anteatgb, scramble_ppi, ROT90, "Free Enterprise Games", "The Anteater (UK)", GAME_SUPPORTS_SAVE ) |
| 2242 | 2234 | GAME( 1982, rescue, 0, rescue, rescue, rescue, ROT90, "Stern", "Rescue", GAME_SUPPORTS_SAVE ) |
| 2243 | 2235 | GAME( 1982, aponow, rescue, rescue, rescue, rescue, ROT90, "bootleg", "Apocaljpse Now", GAME_SUPPORTS_SAVE ) |
| 2244 | 2236 | GAME( 1983, minefld, 0, minefld, minefld, minefld, ROT90, "Stern", "Minefield", GAME_SUPPORTS_SAVE ) |
| 2245 | GAME( 1982, losttomb, 0, type1, losttomb, losttomb, ROT90, "Stern", "Lost Tomb (easy)", GAME_SUPPORTS_SAVE ) | |
| 2246 | GAME( 1982, losttmbh, losttomb, type1, losttomb, losttomb, ROT90, "Stern", "Lost Tomb (hard)", GAME_SUPPORTS_SAVE ) | |
| 2247 | 2237 | GAME( 198?, superbon, 0, type1, superbon, superbon, ROT90, "bootleg", "Super Bond", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) |
| 2248 | 2238 | GAME( 1981, hustler, 0, hustler, hustler, hustler, ROT90, "Konami", "Video Hustler", GAME_SUPPORTS_SAVE ) |
| 2249 | 2239 | GAME( 1981, billiard, hustler, hustler, hustler, billiard, ROT90, "bootleg", "The Billiards", GAME_SUPPORTS_SAVE ) |
| r2241 | r2242 | |
|---|---|---|
| 225 | 225 | coin_counter_w(offset,data); |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 229 | AM_RANGE(0x0000, 0xbfff) AM_READ(SMH_ROM) | |
| 230 | AM_RANGE(0xc000, 0xc7ff) AM_READ(SMH_RAM) | |
| 231 | AM_RANGE(0xd000, 0xd85f) AM_READ(SMH_RAM) | |
| 232 | AM_RANGE(0xe000, 0xe85f) AM_READ(SMH_RAM) | |
| 233 | AM_RANGE(0xf000, 0xf000) AM_READ(input_port_2_r) /* DSW0 */ | |
| 234 | AM_RANGE(0xf008, 0xf008) AM_READ(input_port_3_r) /* DSW1 */ | |
| 235 | AM_RANGE(0xf010, 0xf010) AM_READ(input_port_0_r) /* IN0 */ | |
| 236 | AM_RANGE(0xf018, 0xf018) AM_READ(input_port_1_r) /* IN1 */ | |
| 237 | AM_RANGE(0xf800, 0xf800) AM_READ(watchdog_reset_r) | |
| 238 | ADDRESS_MAP_END | |
| 239 | ||
| 240 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 241 | AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM) | |
| 242 | AM_RANGE(0xc000, 0xc7ff) AM_WRITE(SMH_RAM) | |
| 228 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 229 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 230 | AM_RANGE(0xc000, 0xc7ff) AM_RAM | |
| 243 | 231 | AM_RANGE(0xc800, 0xc801) AM_WRITE(wiz_coin_counter_w) |
| 244 | AM_RANGE(0xd000, 0xd3ff) AM_WRITE(SMH_RAM) AM_BASE(&wiz_videoram2) | |
| 245 | AM_RANGE(0xd400, 0xd7ff) AM_WRITE(SMH_RAM) AM_BASE(&wiz_colorram2) | |
| 246 | AM_RANGE(0xd800, 0xd83f) AM_WRITE(SMH_RAM) AM_BASE(&wiz_attributesram2) | |
| 247 | AM_RANGE(0xd840, 0xd85f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram_2) AM_SIZE(&spriteram_size) | |
| 248 | AM_RANGE(0xe000, 0xe3ff) AM_WRITE(SMH_RAM) AM_BASE(&videoram) AM_SIZE(&videoram_size) | |
| 249 | AM_RANGE(0xe400, 0xe7ff) AM_WRITE(SMH_RAM) AM_BASE(&colorram) | |
| 250 | AM_RANGE(0xe800, 0xe83f) AM_WRITE(SMH_RAM) AM_BASE(&wiz_attributesram) | |
| 251 | AM_RANGE(0xe840, 0xe85f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) | |
| 252 | AM_RANGE(0xf000, 0xf000) AM_WRITE(SMH_RAM) AM_BASE(&wiz_sprite_bank) | |
| 232 | AM_RANGE(0xd000, 0xd3ff) AM_BASE(&wiz_videoram2) /* Fallthrough */ | |
| 233 | AM_RANGE(0xd400, 0xd7ff) AM_BASE(&wiz_colorram2) | |
| 234 | AM_RANGE(0xd800, 0xd83f) AM_BASE(&wiz_attributesram2) | |
| 235 | AM_RANGE(0xd840, 0xd85f) AM_BASE(&spriteram_2) AM_SIZE(&spriteram_size) | |
| 236 | AM_RANGE(0xd000, 0xd85f) AM_RAM | |
| 237 | AM_RANGE(0xe000, 0xe3ff) AM_BASE(&videoram) AM_SIZE(&videoram_size) /* Fallthrough */ | |
| 238 | AM_RANGE(0xe400, 0xe7ff) AM_BASE(&colorram) | |
| 239 | AM_RANGE(0xe800, 0xe83f) AM_BASE(&wiz_attributesram) | |
| 240 | AM_RANGE(0xe840, 0xe85f) AM_BASE(&spriteram) | |
| 241 | AM_RANGE(0xe000, 0xe85f) AM_RAM | |
| 242 | AM_RANGE(0xf000, 0xf000) AM_READ(input_port_2_r) /* DSW0 */ | |
| 243 | AM_RANGE(0xf000, 0xf000) AM_RAM AM_BASE(&wiz_sprite_bank) | |
| 253 | 244 | AM_RANGE(0xf001, 0xf001) AM_WRITE(interrupt_enable_w) |
| 254 | 245 | AM_RANGE(0xf002, 0xf003) AM_WRITE(wiz_palettebank_w) |
| 255 | 246 | AM_RANGE(0xf004, 0xf005) AM_WRITE(wiz_char_bank_select_w) |
| 256 | 247 | AM_RANGE(0xf006, 0xf006) AM_WRITE(wiz_flipx_w) |
| 257 | 248 | AM_RANGE(0xf007, 0xf007) AM_WRITE(wiz_flipy_w) |
| 258 | AM_RANGE(0xf008, 0xf00f) AM_WRITE(SMH_NOP) // initialized by Stinger/Scion | |
| 259 | AM_RANGE(0xf800, 0xf80f) AM_WRITE(sound_command_w) // sound registers | |
| 249 | AM_RANGE(0xf008, 0xf008) AM_READ(input_port_3_r) /* DSW1 */ | |
| 250 | AM_RANGE(0xf008, 0xf00f) AM_WRITE(SMH_NOP) /* initialized by Stinger/Scion */ | |
| 251 | AM_RANGE(0xf010, 0xf010) AM_READ(input_port_0_r) /* IN0 */ | |
| 252 | AM_RANGE(0xf018, 0xf018) AM_READ(input_port_1_r) /* IN1 */ | |
| 253 | AM_RANGE(0xf800, 0xf800) AM_READ(watchdog_reset_r) | |
| 254 | AM_RANGE(0xf800, 0xf80f) AM_WRITE(sound_command_w) /* sound registers */ | |
| 260 | 255 | AM_RANGE(0xf818, 0xf818) AM_WRITE(wiz_bgcolor_w) |
| 261 | 256 | ADDRESS_MAP_END |
| 262 | 257 | |
| 263 | ||
| 264 | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 265 | AM_RANGE(0x0000, 0x1fff) AM_READ(SMH_ROM) | |
| 266 | AM_RANGE(0x2000, 0x23ff) AM_READ(SMH_RAM) | |
| 267 | AM_RANGE(0x3000, 0x3000) AM_READ(soundlatch_r) /* Stinger/Scion */ | |
| 268 | AM_RANGE(0x7000, 0x7000) AM_READ(soundlatch_r) /* Wiz */ | |
| 269 | ADDRESS_MAP_END | |
| 270 | ||
| 271 | static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 272 | AM_RANGE(0x2000, 0x23ff) AM_WRITE(SMH_RAM) | |
| 273 | AM_RANGE(0x3000, 0x3000) AM_WRITE(interrupt_enable_w) /* Stinger/Scion */ | |
| 258 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 259 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 260 | AM_RANGE(0x2000, 0x23ff) AM_RAM | |
| 261 | AM_RANGE(0x3000, 0x3000) AM_READWRITE(soundlatch_r,interrupt_enable_w) /* Stinger/Scion */ | |
| 274 | 262 | AM_RANGE(0x4000, 0x4000) AM_WRITE(AY8910_control_port_2_w) |
| 275 | 263 | AM_RANGE(0x4001, 0x4001) AM_WRITE(AY8910_write_port_2_w) |
| 276 | 264 | AM_RANGE(0x5000, 0x5000) AM_WRITE(AY8910_control_port_0_w) |
| 277 | 265 | AM_RANGE(0x5001, 0x5001) AM_WRITE(AY8910_write_port_0_w) |
| 278 | AM_RANGE(0x6000, 0x6000) AM_WRITE(AY8910_control_port_1_w) /* Wiz only */ | |
| 279 | AM_RANGE(0x6001, 0x6001) AM_WRITE(AY8910_write_port_1_w) /* Wiz only */ | |
| 280 | AM_RANGE(0x7000, 0x7000) AM_WRITE(interrupt_enable_w) /* Wiz */ | |
| 266 | AM_RANGE(0x6000, 0x6000) AM_WRITE(AY8910_control_port_1_w) /* Wiz only */ | |
| 267 | AM_RANGE(0x6001, 0x6001) AM_WRITE(AY8910_write_port_1_w) /* Wiz only */ | |
| 268 | AM_RANGE(0x7000, 0x7000) AM_READWRITE(soundlatch_r,interrupt_enable_w) /* Wiz */ | |
| 281 | 269 | ADDRESS_MAP_END |
| 282 | 270 | |
| 283 | 271 | |
| r2241 | r2242 | |
| 705 | 693 | |
| 706 | 694 | /* basic machine hardware */ |
| 707 | 695 | MDRV_CPU_ADD(Z80, 18432000/6) /* 3.072 MHz ??? */ |
| 708 | MDRV_CPU_PROGRAM_MAP( | |
| 696 | MDRV_CPU_PROGRAM_MAP( | |
| 709 | 697 | MDRV_CPU_VBLANK_INT("main", nmi_line_pulse) |
| 710 | 698 | |
| 711 | 699 | MDRV_CPU_ADD(Z80, 14318000/8) /* ? */ |
| 712 | 700 | /* audio CPU */ |
| 713 | MDRV_CPU_PROGRAM_MAP(sound_ | |
| 701 | MDRV_CPU_PROGRAM_MAP(sound_ | |
| 714 | 702 | MDRV_CPU_VBLANK_INT_HACK(nmi_line_pulse,4) /* ??? */ |
| 715 | 703 | |
| 716 | 704 | /* video hardware */ |
| r2241 | r2242 | |
|---|---|---|
| 41 | 41 | ****************************************************************************/ |
| 42 | 42 | |
| 43 | 43 | #include "driver.h" |
| 44 | #include "deprecat.h" | |
| 45 | 44 | #include "stactics.h" |
| 46 | 45 | #include "stactics.lh" |
| 47 | 46 | |
| r2241 | r2242 | |
| 65 | 64 | |
| 66 | 65 | static READ8_HANDLER( vert_pos_r ) |
| 67 | 66 | { |
| 68 | stactics_state *state = | |
| 67 | stactics_state *state = machine->driver_data; | |
| 69 | 68 | |
| 70 | 69 | return 0x70 - state->vert_pos; |
| 71 | 70 | } |
| r2241 | r2242 | |
| 73 | 72 | |
| 74 | 73 | static READ8_HANDLER( horiz_pos_r ) |
| 75 | 74 | { |
| 76 | stactics_state *state = | |
| 75 | stactics_state *state = machine->driver_data; | |
| 77 | 76 | |
| 78 | 77 | return state->horiz_pos + 0x88; |
| 79 | 78 | } |
| r2241 | r2242 | |
|---|---|---|
| 10 | 10 | * Rougien |
| 11 | 11 | |
| 12 | 12 | Known issues: |
| 13 | * Hardware collision detection is not implemented. | |
| 14 | 13 | * Are the stars really supposed to go up in Rougien? |
| 15 | 14 | |
| 16 | 15 |
| r2241 | r2242 | |
|---|---|---|
| 253 | 253 | { |
| 254 | 254 | cpunum_set_input_line(Machine, 0, 2, CLEAR_LINE); |
| 255 | 255 | } |
| 256 | static WRITE32_HANDLER( irq_ack_020_w ) { if ( | |
| 256 | static WRITE32_HANDLER( irq_ack_020_w ) { if (ACCESSING_BITS_16_31 | |
| 257 | 257 | |
| 258 | 258 | |
| 259 | 259 | |
| r2241 | r2242 | |
| 276 | 276 | |
| 277 | 277 | static WRITE16_HANDLER( eeprom_data_w ) |
| 278 | 278 | { |
| 279 | if ( | |
| 279 | if (ACCESSING_BITS_ | |
| 280 | 280 | EEPROM_write_bit(data & 0x01); |
| 281 | 281 | } |
| 282 | static WRITE32_HANDLER( eeprom_data_020_w ) { if ( | |
| 282 | static WRITE32_HANDLER( eeprom_data_020_w ) { if (ACCESSING_BITS_ | |
| 283 | 283 | |
| 284 | 284 | |
| 285 | 285 | static WRITE16_HANDLER( eeprom_clock_w ) |
| 286 | 286 | { |
| 287 | if ( | |
| 287 | if (ACCESSING_BITS_ | |
| 288 | 288 | EEPROM_set_clock_line((data & 0x01) ? ASSERT_LINE : CLEAR_LINE); |
| 289 | 289 | } |
| 290 | static WRITE32_HANDLER( eeprom_clock_020_w ) { if ( | |
| 290 | static WRITE32_HANDLER( eeprom_clock_020_w ) { if (ACCESSING_BITS_ | |
| 291 | 291 | |
| 292 | 292 | |
| 293 | 293 | static WRITE16_HANDLER( eeprom_cs_w ) |
| 294 | 294 | { |
| 295 | if ( | |
| 295 | if (ACCESSING_BITS_ | |
| 296 | 296 | EEPROM_set_cs_line((data & 0x01) ? CLEAR_LINE : ASSERT_LINE); |
| 297 | 297 | } |
| 298 | static WRITE32_HANDLER( eeprom_cs_020_w ) { if ( | |
| 298 | static WRITE32_HANDLER( eeprom_cs_020_w ) { if (ACCESSING_BITS_ | |
| 299 | 299 | |
| 300 | 300 | |
| 301 | 301 | |
| r2241 | r2242 | |
| 316 | 316 | static WRITE16_HANDLER( sound_data_w ) |
| 317 | 317 | { |
| 318 | 318 | logerror("%06X:sound_data_w(%02X) = %08X & %08X\n", activecpu_get_pc(), offset, data, ~mem_mask); |
| 319 | if ( | |
| 319 | if (ACCESSING_BITS_ | |
| 320 | 320 | timer_call_after_resynch(NULL, data & 0xff, delayed_sound_w); |
| 321 | 321 | } |
| 322 | static WRITE32_HANDLER( sound_data_020_w ) { if ( | |
| 322 | static WRITE32_HANDLER( sound_data_020_w ) { if (ACCESSING_BITS_16_31 | |
| 323 | 323 | |
| 324 | 324 | |
| 325 | 325 | static READ16_HANDLER( sound_data_r ) |
| r2241 | r2242 | |
| 333 | 333 | static READ16_HANDLER( sound_status_r ) |
| 334 | 334 | { |
| 335 | 335 | logerror("%06X:sound_status_r(%02X) = %02X\n", activecpu_get_pc(), offset, sound_status); |
| 336 | if ( | |
| 336 | if (ACCESSING_BITS_ | |
| 337 | 337 | return sound_status; |
| 338 | 338 | return 0xffff; |
| 339 | 339 | } |
| 340 | static READ32_HANDLER( sound_status_020_r ) { if ( | |
| 340 | static READ32_HANDLER( sound_status_020_r ) { if (ACCESSING_BITS_ | |
| 341 | 341 | |
| 342 | 342 | |
| 343 | 343 | static WRITE16_HANDLER( sound_status_w ) |
| r2241 | r2242 | |
| 370 | 370 | static WRITE16_HANDLER( analog_port_clock_w ) |
| 371 | 371 | { |
| 372 | 372 | /* a zero/one combo is written here to clock the next analog port bit */ |
| 373 | if ( | |
| 373 | if (ACCESSING_BITS_ | |
| 374 | 374 | { |
| 375 | 375 | if (!(data & 0xff)) |
| 376 | 376 | { |
| r2241 | r2242 | |
| 383 | 383 | else |
| 384 | 384 | logerror("%06X:analog_port_clock_w(%02X) = %08X & %08X\n", activecpu_get_pc(), offset, data, ~mem_mask); |
| 385 | 385 | } |
| 386 | static WRITE32_HANDLER( analog_port_clock_020_w ) { if ( | |
| 386 | static WRITE32_HANDLER( analog_port_clock_020_w ) { if (ACCESSING_BITS_ | |
| 387 | 387 | |
| 388 | 388 | |
| 389 | 389 | static WRITE16_HANDLER( analog_port_latch_w ) |
| 390 | 390 | { |
| 391 | 391 | /* a zero is written here to read the analog ports, and a one is written when finished */ |
| 392 | if ( | |
| 392 | if (ACCESSING_BITS_ | |
| 393 | 393 | { |
| 394 | 394 | if (!(data & 0xff)) |
| 395 | 395 | { |
| r2241 | r2242 | |
| 402 | 402 | else |
| 403 | 403 | logerror("%06X:analog_port_latch_w(%02X) = %08X & %08X\n", activecpu_get_pc(), offset, data, ~mem_mask); |
| 404 | 404 | } |
| 405 | static WRITE32_HANDLER( analog_port_latch_020_w ) { if ( | |
| 405 | static WRITE32_HANDLER( analog_port_latch_020_w ) { if (ACCESSING_BITS_ | |
| 406 | 406 | |
| 407 | 407 | |
| 408 | 408 | |
| r2241 | r2242 | |
| 446 | 446 | logerror("%06X:tms_reset_w(%02X) = %08X & %08X\n", activecpu_get_pc(), offset, data, ~mem_mask); |
| 447 | 447 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, (data == 0xffff) ? CLEAR_LINE : ASSERT_LINE); |
| 448 | 448 | } |
| 449 | static WRITE32_HANDLER( tms_reset_020_w ) { if ( | |
| 449 | static WRITE32_HANDLER( tms_reset_020_w ) { if (ACCESSING_BITS_ | |
| 450 | 450 | |
| 451 | 451 | |
| 452 | 452 | static WRITE16_HANDLER( tms_irq_w ) |
| r2241 | r2242 | |
| 454 | 454 | /* this is written twice, 0,1, in quick succession */ |
| 455 | 455 | /* done after uploading, and after modifying the comm area */ |
| 456 | 456 | logerror("%06X:tms_irq_w(%02X) = %08X & %08X\n", activecpu_get_pc(), offset, data, ~mem_mask); |
| 457 | if ( | |
| 457 | if (ACCESSING_BITS_ | |
| 458 | 458 | cpunum_set_input_line(Machine, 1, 0, (data & 0x01) ? CLEAR_LINE : ASSERT_LINE); |
| 459 | 459 | } |
| 460 | static WRITE32_HANDLER( tms_irq_020_w ) { if ( | |
| 460 | static WRITE32_HANDLER( tms_irq_020_w ) { if (ACCESSING_BITS_ | |
| 461 | 461 | |
| 462 | 462 | |
| 463 | 463 | static WRITE16_HANDLER( tms_control3_w ) |
| 464 | 464 | { |
| 465 | 465 | logerror("%06X:tms_control3_w(%02X) = %08X & %08X\n", activecpu_get_pc(), offset, data, ~mem_mask); |
| 466 | 466 | } |
| 467 | static WRITE32_HANDLER( tms_control3_020_w ) { if ( | |
| 467 | static WRITE32_HANDLER( tms_control3_020_w ) { if (ACCESSING_BITS_ | |
| 468 | 468 | |
| 469 | 469 | |
| 470 | 470 | static WRITE16_HANDLER( tms_comm_w ) |
| r2241 | r2242 | |
| 667 | 667 | static WRITE32_HANDLER( unknown_107_w ) |
| 668 | 668 | { |
| 669 | 669 | /* arbitrary data written */ |
| 670 | if ( | |
| 670 | if (ACCESSING_BITS_ | |
| 671 | 671 | logerror("%06X:unknown_107_w = %02X\n", activecpu_get_pc(), data & 0xff); |
| 672 | 672 | else |
| 673 | 673 | logerror("%06X:unknown_107_w(%02X) = %08X & %08X\n", activecpu_get_pc(), offset, data, ~mem_mask); |
| r2241 | r2242 | |
| 676 | 676 | static WRITE32_HANDLER( unknown_127_w ) |
| 677 | 677 | { |
| 678 | 678 | /* arbitrary data written */ |
| 679 | if ( | |
| 679 | if (ACCESSING_BITS_ | |
| 680 | 680 | logerror("%06X:unknown_127_w = %02X\n", activecpu_get_pc(), data & 0xff); |
| 681 | 681 | else |
| 682 | 682 | logerror("%06X:unknown_127_w(%02X) = %08X & %08X\n", activecpu_get_pc(), offset, data, ~mem_mask); |
| r2241 | r2242 | |
| 685 | 685 | static WRITE32_HANDLER( unknown_137_w ) |
| 686 | 686 | { |
| 687 | 687 | /* only written $00 or $ff */ |
| 688 | if ( | |
| 688 | if (ACCESSING_BITS_ | |
| 689 | 689 | logerror("%06X:unknown_137_w = %02X\n", activecpu_get_pc(), data & 0xff); |
| 690 | 690 | else |
| 691 | 691 | logerror("%06X:unknown_137_w(%02X) = %08X & %08X\n", activecpu_get_pc(), offset, data, ~mem_mask); |
| r2241 | r2242 | |
| 694 | 694 | static WRITE32_HANDLER( unknown_13a_w ) |
| 695 | 695 | { |
| 696 | 696 | /* only written $0000 or $0001 */ |
| 697 | if ( | |
| 697 | if (ACCESSING_BITS_ | |
| 698 | 698 | logerror("%06X:unknown_13a_w = %04X\n", activecpu_get_pc(), data & 0xffff); |
| 699 | 699 | else |
| 700 | 700 | logerror("%06X:unknown_13a_w(%02X) = %08X & %08X\n", activecpu_get_pc(), offset, data, ~mem_mask); |
| r2241 | r2242 | |
| 705 | 705 | { |
| 706 | 706 | /* this has $00 written during an IRQ 6, then reset to $ff afterwards */ |
| 707 | 707 | /* LED??? */ |
| 708 | if ( | |
| 708 | if (ACCESSING_BITS_ | |
| 709 | 709 | set_led_status(0, data != 0); |
| 710 | 710 | } |
| 711 | static WRITE32_HANDLER( led_0_020_w ) { if ( | |
| 711 | static WRITE32_HANDLER( led_0_020_w ) { if (ACCESSING_BITS_ | |
| 712 | 712 | |
| 713 | 713 | |
| 714 | 714 | static WRITE16_HANDLER( led_1_w ) |
| 715 | 715 | { |
| 716 | 716 | /* LED??? -- only written $00 or $ff */ |
| 717 | if ( | |
| 717 | if (ACCESSING_BITS_ | |
| 718 | 718 | set_led_status(1, data != 0); |
| 719 | 719 | } |
| 720 | static WRITE32_HANDLER( led_1_020_w ) { if ( | |
| 720 | static WRITE32_HANDLER( led_1_020_w ) { if (ACCESSING_BITS_ | |
| 721 | 721 | |
| 722 | 722 | |
| 723 | 723 | |
| r2241 | r2242 | |
| 959 | 959 | MDRV_SCREEN_ADD("main", RASTER) |
| 960 | 960 | MDRV_SCREEN_REFRESH_RATE(60) |
| 961 | 961 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
| 962 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 962 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 963 | 963 | MDRV_SCREEN_SIZE(576, 432) |
| 964 | 964 | MDRV_SCREEN_VISIBLE_AREA(0, 575, 0, 431) |
| 965 | 965 | |
| 966 | 966 | MDRV_PALETTE_LENGTH(32768) |
| 967 | 967 | |
| 968 | MDRV_PALETTE_INIT(RRRRR_GGGGG_BBBBB) | |
| 968 | 969 | MDRV_VIDEO_START(gaelco3d) |
| 969 | 970 | MDRV_VIDEO_UPDATE(gaelco3d) |
| 970 | 971 |
| r2241 | r2242 | |
|---|---|---|
| 648 | 648 | { |
| 649 | 649 | verboselog( 2, "bankswitch_rom32_w( %08x, %08x, %08x )\n", offset, data, mem_mask ); |
| 650 | 650 | |
| 651 | if( ACCESSING_ | |
| 651 | if( ACCESSING_BITS_0_15 ) | |
| 652 | 652 | { |
| 653 | 653 | bankswitch_rom8( ( offset * 2 ), data & 0xffff ); |
| 654 | 654 | } |
| 655 | if( ACCESSING_ | |
| 655 | if( ACCESSING_BITS_16_31 ) | |
| 656 | 656 | { |
| 657 | 657 | bankswitch_rom8( ( offset * 2 ) + 1, data >> 16 ); |
| 658 | 658 | } |
| r2241 | r2242 | |
| 662 | 662 | { |
| 663 | 663 | verboselog( 2, "bankswitch_rom64_upper_w( %08x, %08x, %08x )\n", offset, data, mem_mask ); |
| 664 | 664 | |
| 665 | if( ACCESSING_ | |
| 665 | if( ACCESSING_BITS_0_15 ) | |
| 666 | 666 | { |
| 667 | 667 | m_n_bankoffset = 0; |
| 668 | 668 | } |
| 669 | if( ACCESSING_ | |
| 669 | if( ACCESSING_BITS_16_31 ) | |
| 670 | 670 | { |
| 671 | 671 | m_n_bankoffset = 16; |
| 672 | 672 | } |
| r2241 | r2242 | |
| 682 | 682 | { |
| 683 | 683 | verboselog( 2, "bankswitch_rom64_w( %08x, %08x, %08x )\n", offset, data, mem_mask ); |
| 684 | 684 | |
| 685 | if( ACCESSING_ | |
| 685 | if( ACCESSING_BITS_0_15 ) | |
| 686 | 686 | { |
| 687 | 687 | bankswitch_rom64( ( offset * 2 ), data & 0xffff ); |
| 688 | 688 | } |
| 689 | if( ACCESSING_ | |
| 689 | if( ACCESSING_BITS_16_31 ) | |
| 690 | 690 | { |
| 691 | 691 | bankswitch_rom64( ( offset * 2 ) + 1, data >> 16 ); |
| 692 | 692 | } |
| r2241 | r2242 | |
| 694 | 694 | |
| 695 | 695 | static WRITE32_HANDLER( lightgun_w ) |
| 696 | 696 | { |
| 697 | if( ACCESSING_ | |
| 697 | if( ACCESSING_BITS_0_15 ) | |
| 698 | 698 | { |
| 699 | 699 | output_set_value( "led0", !( data & 0x08 ) ); |
| 700 | 700 | output_set_value( "led1", !( data & 0x04 ) ); |
| r2241 | r2242 | |
| 703 | 703 | |
| 704 | 704 | verboselog( 1, "lightgun_w: outputs (%08x %08x)\n", data, mem_mask ); |
| 705 | 705 | } |
| 706 | if( ACCESSING_ | |
| 706 | if( ACCESSING_BITS_16_31 ) | |
| 707 | 707 | { |
| 708 | 708 | verboselog( 2, "lightgun_w: start reading (%08x %08x)\n", data, mem_mask ); |
| 709 | 709 | } |
| r2241 | r2242 | |
|---|---|---|
| 106 | 106 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 107 | 107 | |
| 108 | 108 | static INPUT_PORTS_START( dcon ) |
| 109 | SEIBU_COIN_INPUTS /* | |
| 109 | SEIBU_COIN_INPUTS /* | |
| 110 | 110 | |
| 111 | 111 | PORT_START |
| 112 | 112 | PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coin_A ) ) |
| r2241 | r2242 | |
| 164 | 164 | INPUT_PORTS_END |
| 165 | 165 | |
| 166 | 166 | static INPUT_PORTS_START( sdgndmps ) |
| 167 | SEIBU_COIN_INPUTS /* | |
| 167 | SEIBU_COIN_INPUTS /* | |
| 168 | 168 | |
| 169 | 169 | PORT_START |
| 170 | 170 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_B ) ) |
| r2241 | r2242 | |
| 202 | 202 | PORT_DIPSETTING( 0x0090, DEF_STR( 1C_7C ) ) |
| 203 | 203 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) |
| 204 | 204 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) |
| 205 | PORT_DIPSETTING( 0x0200, "2" ) | |
| 206 | PORT_DIPSETTING( 0x0300, "3" ) | |
| 207 | PORT_DIPSETTING( 0x0100, "4" ) | |
| 205 | 208 | PORT_DIPSETTING( 0x0000, "6" ) |
| 206 | PORT_DIPSETTING( 0x0100, "4" ) | |
| 207 | PORT_DIPSETTING( 0x0300, "3" ) | |
| 208 | PORT_DIPSETTING( 0x0200, "2" ) | |
| 209 | 209 | PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unknown ) ) |
| 210 | 210 | PORT_DIPSETTING( 0x0400, DEF_STR( Off ) ) |
| 211 | 211 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| r2241 | r2242 | |
| 416 | 416 | |
| 417 | 417 | |
| 418 | 418 | GAME( 1991, sdgndmps, 0, sdgndmps, sdgndmps, sdgndmps, ROT0, "Banpresto / Bandai", "SD Gundam Psycho Salamander no Kyoui", GAME_NO_COCKTAIL ) |
| 419 | GAME( 1992, dcon, 0, dcon, dcon, 0, ROT0, "Success", "D-Con", GAME_NO_COCKTAIL ) | |
| 419 | GAME( 1992, dcon, 0, dcon, dcon, 0, ROT0, "Success", "D-Con", GAME_NO_COCKTAIL ) |
| r2241 | r2242 | |
|---|---|---|
| 163 | 163 | |
| 164 | 164 | WRITE16_HANDLER( kickgoal_snd_w ) |
| 165 | 165 | { |
| 166 | if (ACCESSING_ | |
| 166 | if (ACCESSING_ | |
| 167 | 167 | { |
| 168 | 168 | logerror("PC:%06x Writing %04x to Sound CPU\n",activecpu_get_previouspc(),data); |
| 169 | 169 | if (data >= 0x40) { |
| r2241 | r2242 | |
| 218 | 218 | { |
| 219 | 219 | logerror("PC:%06x Writing %04x to Sound CPU - mask %04x\n",activecpu_get_previouspc(),data,mem_mask); |
| 220 | 220 | |
| 221 | if (!ACCESSING_ | |
| 221 | if (!ACCESSING_ | |
| 222 | 222 | |
| 223 | 223 | switch (data) |
| 224 | 224 | { |
| r2241 | r2242 | |
| 465 | 465 | |
| 466 | 466 | static READ16_HANDLER( kickgoal_eeprom_r ) |
| 467 | 467 | { |
| 468 | if (ACCESSING_ | |
| 468 | if (ACCESSING_ | |
| 469 | 469 | { |
| 470 | 470 | return EEPROM_read_bit(); |
| 471 | 471 | } |
| r2241 | r2242 | |
| 475 | 475 | |
| 476 | 476 | static WRITE16_HANDLER( kickgoal_eeprom_w ) |
| 477 | 477 | { |
| 478 | if (ACCESSING_ | |
| 478 | if (ACCESSING_ | |
| 479 | 479 | { |
| 480 | 480 | switch (offset) |
| 481 | 481 | { |
| r2241 | r2242 | |
|---|---|---|
| 855 | 855 | |
| 856 | 856 | static WRITE16_HANDLER( sound_data16_w ) |
| 857 | 857 | { |
| 858 | if (ACCESSING_ | |
| 858 | if (ACCESSING_ | |
| 859 | 859 | sound_data_w(machine, 0, data >> 8); |
| 860 | 860 | } |
| 861 | 861 | |
| 862 | 862 | |
| 863 | 863 | static WRITE16_HANDLER( grom_bank16_w ) |
| 864 | 864 | { |
| 865 | if (ACCESSING_ | |
| 865 | if (ACCESSING_ | |
| 866 | 866 | *itech8_grom_bank = data >> 8; |
| 867 | 867 | } |
| 868 | 868 | |
| 869 | 869 | |
| 870 | 870 | static WRITE16_HANDLER( display_page16_w ) |
| 871 | 871 | { |
| 872 | if (ACCESSING_ | |
| 872 | if (ACCESSING_ | |
| 873 | 873 | itech8_page_w(machine, 0, ~data >> 8); |
| 874 | 874 | } |
| 875 | 875 | |
| 876 | 876 | |
| 877 | 877 | static WRITE16_HANDLER( tms34061_latch16_w ) |
| 878 | 878 | { |
| 879 | if (ACCESSING_ | |
| 879 | if (ACCESSING_ | |
| 880 | 880 | tms34061_latch_w(machine, 0, data >> 8); |
| 881 | 881 | } |
| 882 | 882 | |
| r2241 | r2242 | |
| 889 | 889 | |
| 890 | 890 | static WRITE16_HANDLER( palette16_w ) |
| 891 | 891 | { |
| 892 | if (ACCESSING_ | |
| 892 | if (ACCESSING_ | |
| 893 | 893 | itech8_palette_w(machine, offset / 8, data >> 8); |
| 894 | 894 | } |
| 895 | 895 |
| r2241 | r2242 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | Galaxian | |
| 3 | Galaxian-de | |
| 4 | 4 | |
| 5 | Galaxian is the root hardware for many, many systems developed in the | |
| 6 | 1980-1982 timeframe. The basic design, which originated with Namco(?), | |
| 7 | was replicated, tweaked, bootlegged, and used numerous times. | |
| 5 | 8 | |
| 9 | The basic hardware design comprises three sections on a single PCB: | |
| 10 | a CPU section, a sound section, and a video section. | |
| 11 | ||
| 12 | The CPU section is based around a Z80 (though there are modified | |
| 13 | designed that changed this to an S2650). The base galaxian hardware | |
| 14 | is designed to allow access to up to 16k of program ROM and 2k of | |
| 15 | working RAM. | |
| 16 | ||
| 17 | The sound section consists of three parts. The first part is | |
| 18 | a programmable 8-bit down counter that clocks a 4-bit counter which | |
| 19 | generates a primitive waveform whose shape is hardcoded but can be | |
| 20 | controlled by a pair of variable resistors. The second part is | |
| 21 | a set of three 555 timers which can be individually enabled and | |
| 22 | combined to produce square waves at fixed separated pitches. A | |
| 23 | fourth 555 timer is configured via a 4-bit frequency parameter to | |
| 24 | control the overall pitch of the other three. Finally, two single | |
| 25 | bit-triggered noise circuits are available. A 17-bit noise LFSR | |
| 26 | (which also generates stars for the video circuit) feeds into both | |
| 27 | circuits. A "HIT" line enables a simple on/off control of one | |
| 28 | filtered output, while a "FIRE" line triggers a fixed short duration | |
| 29 | pulse (controlled by another 555 timer) of modulated noise. | |
| 30 | ||
| 31 | See video/galaxian.c for a description of the video section. | |
| 32 | ||
| 33 | **************************************************************************** | |
| 34 | ||
| 35 | Schematics are known to exist for these games: | |
| 36 | * Galaxian | |
| 37 | * Moon Alien Part 2 | |
| 38 | * King and Balloon | |
| 39 | ||
| 40 | * Moon Cresta | |
| 41 | * Moon Shuttle | |
| 42 | ||
| 43 | * Frogger | |
| 44 | * Amidar | |
| 45 | * Turtles | |
| 46 | ||
| 47 | * Scramble | |
| 48 | * The End | |
| 49 | ||
| 50 | * Super Cobra | |
| 51 | * Dark Planet | |
| 52 | * Lost Tomb | |
| 53 | ||
| 54 | * Dambusters | |
| 55 | ||
| 56 | **************************************************************************** | |
| 57 | ||
| 6 | 58 | Main clock: XTAL = 18.432 MHz |
| 7 | 59 | Z80 Clock: XTAL/6 = 3.072 MHz |
| 8 | 60 | Horizontal video frequency: HSYNC = XTAL/3/192/2 = 16 kHz |
| r2241 | r2242 | |
| 22 | 74 | |
| 23 | 75 | - Problems with Galaxian based on the observation of a real machine: |
| 24 | 76 | |
| 25 | - Starfield is incorrect. The speed and flashing frequency is fine, but the | |
| 26 | stars appear in different positions. | |
| 27 | 77 | - Background humming is incorrect. It's faster on a real machine |
| 28 | 78 | - Explosion sound is much softer. Filter involved? |
| 29 | 79 | |
| r2241 | r2242 | |
| 35 | 85 | ------------------------------ |
| 36 | 86 | |
| 37 | 87 | mooncrst Nichibutsu - later revision with better demo mode and |
| 38 | text for docking. Encrypted. No ROM/RAM check | |
| 88 | text for docking. Encrypted. No ROM/RAM check | |
| 39 | 89 | mooncrsu Nichibutsu USA - later revision with better demo mode and |
| 40 | text for docking. Unencrypted. No ROM/RAM check | |
| 90 | text for docking. Unencrypted. No ROM/RAM check | |
| 41 | 91 | mooncrsa Nichibutsu - older revision with better demo mode and |
| 42 | text for docking. Encrypted. No ROM/RAM check | |
| 92 | text for docking. Encrypted. No ROM/RAM check | |
| 43 | 93 | mooncrs2 Nichibutsu - probably first revision (no patches) and ROM/RAM check code. |
| 44 | This came from a bootleg board, with the logos erased | |
| 45 | from the graphics | |
| 94 | This came from a bootleg board, with the logos erased | |
| 95 | from the graphics | |
| 46 | 96 | mooncrsg Gremlin - same docking text as mooncrst |
| 47 | 97 | mooncrsb bootleg of mooncrs2. ROM/RAM check erased. |
| 48 | 98 | |
| 49 | 99 | |
| 50 | Stephh's additional notes (based on the games Z80 code and some tests) for "Moon Cresta" and its numerous clones : | |
| 51 | ||
| 52 | a) 'mooncrst' | |
| 53 | ||
| 54 | - made by Nichibutsu | |
| 55 | - inputs : | |
| 56 | * player 1 controls are used by player 1 | |
| 57 | * player 2 controls are used by player 2, even in an "upright" cabinet | |
| 58 | - 2 coins slots with different settings : | |
| 59 | * coin A : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 60 | * coin B : 1C_1C / 1C_2C / 1C_3C / "Free Play" | |
| 61 | - no writes to 0xa003, so no coin counters | |
| 62 | - bonus life at 30000 or 50000 based on a Dip Switch | |
| 63 | - possible partial Japanese text based on a Dip Switch | |
| 64 | - hi-score : 11 chars (even if only 10 will be displayed), 60 seconds to enter | |
| 65 | - players bullet speed : 4 pixels - lower limit : 0x04 | |
| 66 | - ingame bug : if you reset the game when screen is flipped, it isn't flipped back | |
| 67 | - driver possible bug (which occurs for all "Moon Cresta" sets but 'mooncrgx') : | |
| 68 | when the screen is flipped, sprites are too shifted (see for example player 2 | |
| 69 | score which misses ending '0') while bullets shall be good | |
| 70 | as a consequence, square around letters is wrong when entering player name | |
| 71 | for hi-score table when screen is flipped | |
| 72 | ||
| 73 | b) 'mooncrsu' | |
| 74 | ||
| 75 | - made by Nichibutsu | |
| 76 | - very similar to 'mooncrst' with the only following differences : | |
| 77 | * additional "USA" display after "Nichibutsu" (which is shifted left) | |
| 78 | * writes to 0xb000 to 0xb0ff on reset ('mooncrst' only writes to 0xb000), | |
| 79 | so there is no screen flipped ingame bug as in 'mooncrst' | |
| 80 | ||
| 81 | c) 'mooncrsa' | |
| 82 | ||
| 83 | - made by Nichibutsu | |
| 84 | - additional "(c)" display before "Nichibutsu" | |
| 85 | - "(c) 1980 NIHON BUSSAN CO. , LTD" display replaced with "May 1980" in yellow | |
| 86 | - code at 0x1f00 has been removed ! I can't determine was is was supposed to do, | |
| 87 | but it's based on number of enemies left (stored at 0x823c) and possible time | |
| 88 | spent on the level (stored at 0x8226). Any hint is fully welcome ! | |
| 89 | - this version is easier than 'mooncrst' : look at high nibbles that are stored | |
| 90 | at 0x809b and 0x809c via code at 0x0cb8 (0x01 and 0x02 instead of 0x11 and 0x12). | |
| 91 | - 2 coins slots, but same settings : 1C_1C / 1C_2C / 1C_3C / "Free Play" | |
| 92 | - same other infos as in 'mooncrst' | |
| 93 | - same ingame bug as in 'mooncrst' | |
| 94 | ||
| 95 | d) 'mooncrs2' | |
| 96 | ||
| 97 | - bootleg (possibily based on a Gremlin version we don't have) | |
| 98 | - heavily based on 'mooncrsa' with additional RAM/ROM check routine at 0x3ea1 | |
| 99 | - some "chars" have been erased from the GFX ROMS but some routines which | |
| 100 | "prints" them are still there (but there are less than in 'mooncrsa') | |
| 101 | - same other infos as in 'mooncrst' | |
| 102 | - due to numerous writes in the RAM/ROM check routine, there is no screen flipped | |
| 103 | ingame bug as in 'mooncrst' | |
| 104 | ||
| 105 | e) 'mooncrsb' | |
| 106 | ||
| 107 | - bootleg (possibily based on a Gremlin version we don't have) | |
| 108 | - the only difference with 'mooncrs2' is that RAM/ROM check routine at 0x3ea1 | |
| 109 | has completely been "noped" and the jump at address 0x0004 has been changed | |
| 110 | - all "chars" from the GFX ROMS haven't been erased, so you can see the top | |
| 111 | of the "Gremlin" logo as copyright and hi-scores names | |
| 112 | - same ingame bug as in 'mooncrst' | |
| 113 | ||
| 114 | f) 'mooncrs3' | |
| 115 | ||
| 116 | - bootleg | |
| 117 | - very similar to 'mooncrs2' with the only following differences : | |
| 118 | * checksum of ROM area 0x0000-0x3fff is computed, but the result is discarded | |
| 119 | (see "xor a" operation at 0x3fc0 instead of "and a") | |
| 120 | * coins stuff is different (see below) | |
| 121 | - 2 coins slots with different settings (same as 'mooncrst') : | |
| 122 | * coin A : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 123 | * coin B : 1C_1C / 1C_2C / 1C_3C / "Free Play" | |
| 124 | - there are writes to 0xa003 (check code at 0x1b8e and 0x1b9e) which occur | |
| 125 | when you insert a coin, but I can't confirm it's related to coin counters | |
| 126 | as the same value is written when you press COIN1 or COIN2 | |
| 127 | ||
| 128 | g) 'mooncrsg' | |
| 129 | ||
| 130 | - made by Gremlin | |
| 131 | - there are MANY changes and additions, and I wonder if there's such a Nichibutsu set; | |
| 132 | anyway, closest set to this one seems to be 'mooncrst' | |
| 133 | - Gremin "logo" on 2 lines instead of Nichibutsu copyright messages (2 lines) | |
| 134 | - additional test for IN0 bit 7 (code at 0x0174) which always adds 1 credit | |
| 135 | - there are writes to 0xa003 (check code at 0x0158 and 0x0160) which occur | |
| 136 | when you insert a coin, but I can't confirm it's related to coin counters | |
| 137 | as the same value is written when you press COIN1 or COIN2 | |
| 138 | - only English text (Dip Switch has no effect due to code at 0x2f77) | |
| 139 | - hi-score : 3 chars, 10 seconds to enter | |
| 140 | - same difficulty as in 'monncrst' (but stored at 0x809e and 0x809f) | |
| 141 | - same other infos as in 'mooncrst' | |
| 142 | - same ingame bug as in 'mooncrst' | |
| 143 | ||
| 144 | h) 'fantazia' | |
| 145 | ||
| 146 | - made by Subelectro | |
| 147 | - closest set to this one seems to be 'mooncrsb' | |
| 148 | - all intro texts have been changed as well as colors | |
| 149 | - inputs : | |
| 150 | * player 1 controls are used by player 1 | |
| 151 | * player 2 controls are used by player 2, only in a "cocktail" cabinet | |
| 152 | look at additional routine at 0x29e0 | |
| 153 | - 2 coins slots with different settings (inverted coin A/B compared to 'mooncrst') : | |
| 154 | * coin A : 1C_1C / 1C_2C / 1C_3C / "Free Play" | |
| 155 | * coin B : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 156 | - only English text (Dip Switch has no effect due to code at 0x2f53) | |
| 157 | - hi-score : 3 chars, 60 seconds to enter | |
| 158 | - same other infos as in 'mooncrst' | |
| 159 | - same ingame bug as in 'mooncrst' | |
| 160 | ||
| 161 | i) 'eagle' | |
| 162 | ||
| 163 | - made by Centuri | |
| 164 | - very similar to 'mooncrsb' with the only following differences : | |
| 165 | * only 3 chars for hi-score instead of 11 | |
| 166 | * all other changes are modified "strings" to be displayed | |
| 167 | (the intro texts but copyright remains though) as well as | |
| 168 | new GFX (I can't test the sound for now to check) | |
| 169 | - same ingame bug as in 'mooncrst' | |
| 170 | ||
| 171 | j) 'eagle2' | |
| 172 | ||
| 173 | - made by Centuri | |
| 174 | - very similar to 'eagle' with the only following differences : | |
| 175 | * only 20 seconds to enter hi-score instead of 60 | |
| 176 | * coins stuff is different (see below) | |
| 177 | * one GFX ROM is slighlty different | |
| 178 | - 2 coins slots, but same settings : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 179 | - previous "Coin B" Dip Switch is now only tested to see if in "Freeplay" mode | |
| 180 | - same ingame bug as in 'mooncrst' | |
| 181 | ||
| 182 | k) 'eagle3' | |
| 183 | ||
| 184 | - made by Centuri | |
| 185 | - PRG ROMS are the same as for 'eagle' while two GFX ROMS are slighly different | |
| 186 | (so the game is having 'mooncrst' ships and 'eagle' enemies) | |
| 187 | - same ingame bug as in 'mooncrst' | |
| 188 | ||
| 189 | l) 'spctbird' | |
| 190 | ||
| 191 | - made by Fortrek | |
| 192 | - very similar to 'mooncrsb' with the only following difference : | |
| 193 | * coins stuff is different (same as in 'eagle2' - see below) | |
| 194 | - 2 coins slots, but same settings : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 195 | - previous "Coin B" Dip Switch is now only tested to see if in "Freeplay" mode | |
| 196 | - same ingame bug as in 'mooncrst' | |
| 197 | ||
| 198 | m) 'smooncrs' | |
| 199 | ||
| 200 | - made par Gremlin (bootleg based on a Nichibutsu version we don't have ?) | |
| 201 | - same RAM/ROM check routine as in 'mooncrs2' (so there is no screen flipped | |
| 202 | ingame bug as in 'mooncrst'), but LOTS of new features ! | |
| 203 | - only top of the Gremlin logo is displayed and it is also used for hi-scores | |
| 204 | - all intro texts have been changed | |
| 205 | - "2'ST" instead of "2'ND" and "RECORD" instead of "HI-SCORE" | |
| 206 | - additional "PLAYER 1/2" messages when player changes | |
| 207 | - inputs : player 1 controls are used by players 1 and 2, even in a "cocktail" | |
| 208 | cabinet (player 2 inputs are never read due to code at 0x2b1c and 0x3313) | |
| 209 | - 2 coins slots with different settings : | |
| 210 | * coin A : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 211 | * coin B : 1C_1C / 1C_2C / 1C_3C / "Free Play" | |
| 212 | additional wrong (Spanish) text displayed when "Coin B" set to 1C_1C | |
| 213 | (check additional code at 0x0fae) : | |
| 214 | * if "Coin A" set to 4C_1C, "1 MONEDA 1 PARTIDA" on one line | |
| 215 | * if "Coin A" set to 2C_1C, "1 MONEDA 1 PARTIDA" on one line | |
| 216 | and "2 MONEDAS 3 PARTIDAS" on another line below | |
| 217 | when "Coin B" set to "Free Play", "CREDIT 04" instead of "FREE PLAY" string | |
| 218 | (even if this number of credits is decremented when you press a START button, | |
| 219 | it is put back to 04 when the game is over for all players) | |
| 220 | - additional "POR" display after the number of credits | |
| 221 | - bonus life always 50000 due to code at 0x2f68 | |
| 222 | - only English text due to code at 0x2f53 | |
| 223 | - hi-score : 3 chars, 60 seconds to enter | |
| 224 | - players bullet speed : 9 or 12 pixels (using previous "Language" Dip Switch) - | |
| 225 | lower limit : 0x0f (see additional routine at 0x0007 and call from 0x3407) | |
| 226 | - game difficulty using previous "Bonus Life" Dip Switch (code at 0x2962) | |
| 227 | however, even with "Easy" difficulty, the game is much harder as in 'mooncrs2' | |
| 228 | as enemies as enemies move much faster and as they shoot on some levels | |
| 229 | - docking stage is harder has there are gaps of 2 pixels instead of 1 | |
| 230 | - when you complete the 8 stages, "O.K." "FANTASTIC" messages on 2 lines | |
| 231 | instead of "FAR OUT !" message on 1 line | |
| 232 | - same ingame bug as in 'mooncrst' | |
| 233 | - another ingame bug : when in "cocktail mode", "PLAYER 1/2" messages are | |
| 234 | displayed BEFORE the screen is flipped (back) | |
| 235 | - driver other bugs : | |
| 236 | * when screen is flipped, player's bullets aren't displayed | |
| 237 | * when screen is flipped, enemies' bullets aren't flipped | |
| 238 | ||
| 239 | n) 'spcdrag' | |
| 240 | ||
| 241 | - bootleg | |
| 242 | - heavily based on 'smooncrs' (so there's a RAM/ROM check) but some differences though | |
| 243 | - same intro texts as in 'mooncrs2' | |
| 244 | - 2 coins slots with different settings : | |
| 245 | * coin A : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 246 | * coin B : 1C_2C / 1C_3C / 1C_4C / "Free Play" | |
| 247 | additional wrong (Engrish) text displayed when "Coin B" set to 1C_2C | |
| 248 | (check additional code at 0x0fae) : | |
| 249 | * if "Coin A" set to 4C_1C, "1 COIN 1 PLAY " on one line | |
| 250 | * if "Coin A" set to 2C_1C, "1 COIN 1 PLAY " on one line | |
| 251 | and "2 COINS 3 PLAYES " (notice the spelling) on another line below | |
| 252 | when "Coin B" set to "Free Play", "CREDIT 04" instead of "FREE PLAY" string | |
| 253 | (even if this number of credits is decremented when you press a START button, | |
| 254 | it is put back to 04 when the game is over for all players) | |
| 255 | - "CAP 2" display instead of "POR" after the number of credits | |
| 256 | - hi-score : 11 chars (even if only 10 will be displayed), 60 seconds to enter | |
| 257 | (same as in 'mooncrs2') | |
| 258 | - players bullet speed : 6 or 9 pixels (using previous "Language" Dip Switch) - | |
| 259 | lower limit : 0x04 (instead of speed 9/12 and lower limit 0x0f) | |
| 260 | - even if there's also the "Difficulty" Dip Switch, the game is a little bit easier | |
| 261 | (enemies speed is slower and docking stage is back to 1 pixel to fit 'mooncrs2') | |
| 262 | - when you complete the 8 stages, same "FAR OUT !" message as in 'mooncrs2' | |
| 263 | - driver bug : even if player's bullets are displayed when screen is flipped as in | |
| 264 | other sets, enemies' bullets are still not flipped as in 'smooncrs' | |
| 265 | ||
| 266 | o) 'spcdraga' | |
| 267 | ||
| 268 | - bootleg ? (there's a Nichibutsu logo which is displayed in the "title" screen | |
| 269 | as well as in the hi-scores) | |
| 270 | - very similar to 'spcdrag' with the only following (comestical) differences : | |
| 271 | * unused routine at 0x37a8 has been "noped" | |
| 272 | * no text after the number of credits | |
| 273 | * all texts have been translated to Spanish | |
| 274 | ||
| 275 | p) 'mooncrgx' | |
| 276 | ||
| 277 | - bootleg on "Galaxian" hardware | |
| 278 | - very similar to 'mooncrsb' with the only following differences : | |
| 279 | * all unused routines have been "noped" | |
| 280 | * settings are different (see below) | |
| 281 | - 2 coins slots with different settings : | |
| 282 | * coin A : 1C_1C / 2C_1C | |
| 283 | * coin B : 1C_3C / 1C_5C | |
| 284 | - there are writes to 0x6003 when you press COIN1 but not when you press COIN2 | |
| 285 | - there are also writes to (unmapped) 0x6804 when you press either COIN1 or COIN2 : | |
| 286 | * when you press COIN1, 0x00 is written once | |
| 287 | * when you press COIN2, 0x01 is written 5 times, then 0x00 is written once | |
| 288 | - only English text (Dip Switch has no effect due to code at 0x2f4b) | |
| 289 | - no ingame bug due to code at 0x2f77 | |
| 290 | - driver possible bug : while sprites are now correct when screen is flipped, | |
| 291 | they are too shifted when screen is not flipped (again, see for example player 2 | |
| 292 | score which misses ending '0') while bullets shall be good | |
| 293 | as a consequence, square around letters is wrong when entering player name | |
| 294 | for hi-score table when screen not is flipped | |
| 295 | ||
| 296 | ||
| 297 | 100 | Notes about 'azurian' : |
| 298 | 101 | ----------------------- |
| 299 | 102 | |
| 300 | 103 | bit 6 of IN1 is linked with bit 2 of IN2 (check code at 0x05b3) to set difficulty : |
| 301 | 104 | |
| 302 | bit 6 bit 2 contents of | |
| 303 | IN1 IN2 0x40f4 consequences difficulty | |
| 105 | bit 6 bit 2 contents of | |
| 106 | IN1 IN2 0x40f4 consequences difficulty | |
| 304 | 107 | |
| 305 | 108 | OFF OFF 2 aliens move 2 frames out of 3 easy |
| 306 | 109 | ON OFF 4 aliens move 4 frames out of 5 hard |
| r2241 | r2242 | |
| 314 | 117 | - alien 3 moves when 0x4064 != 0 else contents of 0x40f4 is stored at 0x4064 |
| 315 | 118 | |
| 316 | 119 | |
| 120 | Notes about 'smooncrs' : | |
| 121 | ------------------------ | |
| 122 | ||
| 123 | Due to code at 0x2b1c and 0x3306, the game ALWAYS checks the inputs for player 1 | |
| 124 | (even for player 2 when "Cabinet" Dip Switch is set to "Cocktail") | |
| 125 | ||
| 126 | ||
| 317 | 127 | Notes about 'scorpnmc' : |
| 318 | 128 | ----------------------- |
| 319 | 129 | |
| r2241 | r2242 | |
| 324 | 134 | the screens remains flipped (the "flip screen" routine doesn't seem to be called) ! |
| 325 | 135 | |
| 326 | 136 | |
| 327 | ||
| 328 | 137 | Notes about 'frogg' : |
| 329 | 138 | --------------------- |
| 330 | 139 | |
| r2241 | r2242 | |
| 336 | 145 | bit 5 of IN1 is tested if "Cabinet" Dip Switch is set to "Cocktail". |
| 337 | 146 | |
| 338 | 147 | |
| 339 | ||
| 340 | 148 | TO DO : |
| 341 | 149 | ------- |
| 342 | 150 | |
| r2241 | r2242 | |
| 355 | 163 | ***************************************************************************/ |
| 356 | 164 | |
| 357 | 165 | #include "driver.h" |
| 358 | #include "deprecat.h" | |
| 359 | 166 | #include "cpu/z80/z80.h" |
| 360 | 167 | #include "cpu/s2650/s2650.h" |
| 361 | 168 | #include "galaxian.h" |
| 169 | #include "machine/8255ppi.h" | |
| 362 | 170 | #include "sound/ay8910.h" |
| 363 | 171 | #include "sound/sn76496.h" |
| 364 | 172 | #include "sound/dac.h" |
| 365 | #include "sound/flt_rc.h" | |
| 366 | 173 | #include "includes/cclimber.h" |
| 174 | #include "sound/discrete.h" | |
| 367 | 175 | |
| 368 | 176 | |
| 177 | #define KONAMI_SOUND_CLOCK 14318000 | |
| 178 | ||
| 179 | ||
| 180 | ||
| 369 | 181 | /************************************* |
| 370 | 182 | * |
| 371 | * | |
| 183 | * Glob | |
| 372 | 184 | * |
| 373 | 185 | *************************************/ |
| 374 | 186 | |
| 375 | #define MASTER_CLOCK (18432000) | |
| 187 | static UINT8 gmgalax_selected_game; | |
| 188 | static UINT8 zigzag_ay8910_latch; | |
| 189 | static UINT8 kingball_speech_dip; | |
| 190 | static UINT8 kingball_sound; | |
| 191 | static UINT8 mshuttle_ay8910_cs; | |
| 192 | static UINT8 scorpion_sound_data; | |
| 376 | 193 | |
| 377 | #define PIXEL_CLOCK (MASTER_CLOCK/3) | |
| 194 | static UINT16 protection_state; | |
| 195 | static UINT8 protection_result; | |
| 378 | 196 | |
| 379 | /* H counts from 128->511, HBLANK starts at 128 and ends at 256 */ | |
| 380 | #define HTOTAL (384) | |
| 381 | #define HBEND (0) /*(256)*/ | |
| 382 | #define HBSTART (256) /*(128)*/ | |
| 197 | static UINT8 konami_sound_control; | |
| 198 | static UINT8 sfx_sample_control; | |
| 383 | 199 | |
| 384 | #define VTOTAL (264) | |
| 385 | #define VBEND (16) | |
| 386 | #define VBSTART (224+16) | |
| 200 | static UINT8 irq_enabled; | |
| 201 | static int irq_line; | |
| 387 | 202 | |
| 388 | 203 | |
| 389 | 204 | |
| 390 | /* Send sound data to the sound cpu and cause an nmi */ | |
| 391 | static WRITE8_HANDLER( checkman_sound_command_w ) | |
| 205 | /************************************* | |
| 206 | * | |
| 207 | * Interrupts | |
| 208 | * | |
| 209 | *************************************/ | |
| 210 | ||
| 211 | static INTERRUPT_GEN( interrupt_gen ) | |
| 392 | 212 | { |
| 393 | soundlatch_w (machine,0,data); | |
| 394 | cpunum_set_input_line (machine, 1, INPUT_LINE_NMI, PULSE_LINE); | |
| 213 | /* interrupt line is clocked at VBLANK */ | |
| 214 | /* a flip-flop at 6F is held in the preset state based on the NMI ON signal */ | |
| 215 | if (irq_enabled) | |
| 216 | cpunum_set_input_line(machine, 0, irq_line, ASSERT_LINE); | |
| 395 | 217 | } |
| 396 | 218 | |
| 397 | static READ8_HANDLER( drivfrcg_port0_r ) | |
| 219 | ||
| 220 | static WRITE8_HANDLER( irq_enable_w ) | |
| 398 | 221 | { |
| 399 | switch (activecpu_get_pc()) | |
| 400 | { | |
| 401 | case 0x002e: | |
| 402 | case 0x0297: | |
| 403 | return 0x01; | |
| 404 | } | |
| 222 | /* the latched D0 bit here goes to the CLEAR line on the interrupt flip-flop */ | |
| 223 | irq_enabled = data & 1; | |
| 405 | 224 | |
| 406 | return 0; | |
| 225 | /* if CLEAR is held low, we must make sure the interrupt signal is clear */ | |
| 226 | if (!irq_enabled) | |
| 227 | cpunum_set_input_line(machine, 0, irq_line, CLEAR_LINE); | |
| 407 | 228 | } |
| 408 | 229 | |
| 409 | 230 | |
| 410 | static ADDRESS_MAP_START( galaxian_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 411 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 412 | AM_RANGE(0x4000, 0x47ff) AM_READ(SMH_RAM) | |
| 413 | AM_RANGE(0x5000, 0x53ff) AM_READ(SMH_RAM) | |
| 414 | AM_RANGE(0x5400, 0x57ff) AM_READ(galaxian_videoram_r) | |
| 415 | AM_RANGE(0x5800, 0x58ff) AM_READ(SMH_RAM) | |
| 416 | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_0_r) | |
| 417 | AM_RANGE(0x6800, 0x6800) AM_READ(input_port_1_r) | |
| 418 | AM_RANGE(0x7000, 0x7000) AM_READ(input_port_2_r) | |
| 419 | AM_RANGE(0x7800, 0x7fff) AM_READ(watchdog_reset_r) | |
| 420 | AM_RANGE(0xfffc, 0xffff) AM_READ(SMH_RAM) | |
| 421 | ADDRESS_MAP_END | |
| 422 | 231 | |
| 423 | static ADDRESS_MAP_START( galaxian_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 424 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 425 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 426 | AM_RANGE(0x5000, 0x53ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 427 | AM_RANGE(0x5800, 0x583f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 428 | AM_RANGE(0x5840, 0x585f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 429 | AM_RANGE(0x5860, 0x587f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 430 | AM_RANGE(0x5880, 0x58ff) AM_WRITE(SMH_RAM) | |
| 431 | AM_RANGE(0x6000, 0x6001) AM_WRITE(galaxian_leds_w) | |
| 432 | AM_RANGE(0x6002, 0x6002) AM_WRITE(galaxian_coin_lockout_w) | |
| 433 | AM_RANGE(0x6003, 0x6003) AM_WRITE(galaxian_coin_counter_w) | |
| 434 | AM_RANGE(0x6004, 0x6007) AM_WRITE(galaxian_lfo_freq_w) | |
| 435 | AM_RANGE(0x6800, 0x6802) AM_WRITE(galaxian_background_enable_w) | |
| 436 | AM_RANGE(0x6803, 0x6803) AM_WRITE(galaxian_noise_enable_w) | |
| 437 | AM_RANGE(0x6805, 0x6805) AM_WRITE(galaxian_shoot_enable_w) | |
| 438 | AM_RANGE(0x6806, 0x6807) AM_WRITE(galaxian_vol_w) | |
| 439 | AM_RANGE(0x7001, 0x7001) AM_WRITE(galaxian_nmi_enable_w) | |
| 440 | AM_RANGE(0x7004, 0x7004) AM_WRITE(galaxian_stars_enable_w) | |
| 441 | AM_RANGE(0x7006, 0x7006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 442 | AM_RANGE(0x7007, 0x7007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 443 | AM_RANGE(0x7800, 0x7800) AM_WRITE(galaxian_pitch_w) | |
| 444 | AM_RANGE(0xfffc, 0xffff) AM_WRITE(SMH_RAM) | |
| 445 | ADDRESS_MAP_END | |
| 232 | /************************************* | |
| 233 | * | |
| 234 | * DRIVER latch control | |
| 235 | * | |
| 236 | *************************************/ | |
| 446 | 237 | |
| 238 | static WRITE8_HANDLER( start_lamp_w ) | |
| 239 | { | |
| 240 | /* offset 0 = 1P START LAMP */ | |
| 241 | /* offset 1 = 2P START LAMP */ | |
| 242 | set_led_status(offset, data & 1); | |
| 243 | } | |
| 447 | 244 | |
| 448 | static ADDRESS_MAP_START( gmgalax_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 449 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_BANK1) /* banked code */ | |
| 450 | AM_RANGE(0x4000, 0x47ff) AM_READ(SMH_RAM) | |
| 451 | AM_RANGE(0x5000, 0x53ff) AM_READ(SMH_RAM) | |
| 452 | AM_RANGE(0x5400, 0x57ff) AM_READ(galaxian_videoram_r) | |
| 453 | AM_RANGE(0x5800, 0x58ff) AM_READ(SMH_RAM) | |
| 454 | AM_RANGE(0x6000, 0x6000) AM_READ(gmgalax_input_port_0_r) | |
| 455 | AM_RANGE(0x6800, 0x6800) AM_READ(gmgalax_input_port_1_r) | |
| 456 | AM_RANGE(0x7000, 0x7000) AM_READ(gmgalax_input_port_2_r) | |
| 457 | AM_RANGE(0x7800, 0x78ff) AM_READ(watchdog_reset_r) | |
| 458 | ADDRESS_MAP_END | |
| 459 | 245 | |
| 246 | static WRITE8_HANDLER( coin_lock_w ) | |
| 247 | { | |
| 248 | /* many variants and bootlegs don't have this */ | |
| 249 | coin_lockout_global_w(~data & 1); | |
| 250 | } | |
| 460 | 251 | |
| 461 | static ADDRESS_MAP_START( mooncrst_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 462 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 463 | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) | |
| 464 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) | |
| 465 | AM_RANGE(0x9400, 0x97ff) AM_READ(galaxian_videoram_r) | |
| 466 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 467 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 468 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 469 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 470 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) | |
| 471 | ADDRESS_MAP_END | |
| 472 | 252 | |
| 473 | static ADDRESS_MAP_START( mooncrst_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 474 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 475 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) | |
| 476 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 477 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 478 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 479 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 480 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 481 | AM_RANGE(0xa003, 0xa003) AM_WRITE(galaxian_coin_counter_w) | |
| 482 | AM_RANGE(0xa004, 0xa007) AM_WRITE(galaxian_lfo_freq_w) | |
| 483 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_background_enable_w) | |
| 484 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 485 | AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 486 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 487 | AM_RANGE(0xb000, 0xb000) AM_WRITE(galaxian_nmi_enable_w) | |
| 488 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxian_stars_enable_w) | |
| 489 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 490 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 491 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 492 | ADDRESS_MAP_END | |
| 253 | static WRITE8_HANDLER( coin_count_0_w ) | |
| 254 | { | |
| 255 | coin_counter_w(0, data & 1); | |
| 256 | } | |
| 493 | 257 | |
| 494 | static ADDRESS_MAP_START( rockclim_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 495 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 496 | AM_RANGE(0x4000, 0x47ff) AM_READ(rockclim_videoram_r) | |
| 497 | AM_RANGE(0x5000, 0x53ff) AM_READ(SMH_RAM) | |
| 498 | AM_RANGE(0x6000, 0x7fff) AM_READ(SMH_ROM) | |
| 499 | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) | |
| 500 | AM_RANGE(0x8800, 0x8800) AM_READ(input_port_3_r) | |
| 501 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) | |
| 502 | AM_RANGE(0x9400, 0x97ff) AM_READ(galaxian_videoram_r) | |
| 503 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 504 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 505 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 506 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 507 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) | |
| 508 | ADDRESS_MAP_END | |
| 509 | 258 | |
| 510 | static ADDRESS_MAP_START( rockclim_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 511 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 512 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(rockclim_videoram_w) AM_BASE(&rockclim_videoram)//4800 - 4803 = bg scroll ? | |
| 513 | AM_RANGE(0x4800, 0x4803) AM_WRITE(rockclim_scroll_w) | |
| 514 | AM_RANGE(0x5000, 0x53ff) AM_WRITE(SMH_RAM)//? | |
| 515 | AM_RANGE(0x6000, 0x7fff) AM_WRITE(SMH_ROM) | |
| 516 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) | |
| 517 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 518 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 519 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 520 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 521 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 522 | AM_RANGE(0xa000, 0xa002) AM_WRITE(galaxian_gfxbank_w)// a002 - sprite bank | |
| 523 | AM_RANGE(0xa003, 0xa003) AM_WRITE(galaxian_coin_counter_w) | |
| 524 | AM_RANGE(0xa004, 0xa007) AM_WRITE(galaxian_lfo_freq_w) | |
| 525 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_background_enable_w) | |
| 526 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 527 | AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 528 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 529 | AM_RANGE(0xb000, 0xb000) AM_WRITE(galaxian_nmi_enable_w) | |
| 530 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 531 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 532 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 533 | ADDRESS_MAP_END | |
| 259 | static WRITE8_HANDLER( coin_count_1_w ) | |
| 260 | { | |
| 261 | coin_counter_w(1, data & 1); | |
| 262 | } | |
| 534 | 263 | |
| 535 | 264 | |
| 536 | static ADDRESS_MAP_START( mshuttle_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 537 | AM_RANGE(0x0000, 0x4fff) AM_WRITE(SMH_ROM) | |
| 538 | AM_RANGE(0x8000, 0x83ff) AM_WRITE(SMH_RAM) | |
| 539 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 540 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 541 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 542 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 543 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 544 | AM_RANGE(0xa000, 0xa000) AM_WRITE(galaxian_nmi_enable_w) | |
| 545 | AM_RANGE(0xa001, 0xa001) AM_WRITE(galaxian_flip_screen_x_w) | |
| 546 | AM_RANGE(0xa002, 0xa002) AM_WRITE(galaxian_flip_screen_y_w) | |
| 547 | AM_RANGE(0xa004, 0xa004) AM_WRITE(cclimber_sample_trigger_w) | |
| 548 | AM_RANGE(0xa800, 0xa800) AM_WRITE(cclimber_sample_rate_w) | |
| 549 | AM_RANGE(0xb000, 0xb000) AM_WRITE(cclimber_sample_volume_w) | |
| 550 | ADDRESS_MAP_END | |
| 551 | 265 | |
| 552 | static ADDRESS_MAP_START( mshuttle_readport, ADDRESS_SPACE_IO, 8 ) | |
| 553 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 554 | AM_RANGE(0x0c, 0x0c) AM_READ(AY8910_read_port_0_r) | |
| 555 | ADDRESS_MAP_END | |
| 266 | /************************************* | |
| 267 | * | |
| 268 | * General Konami sound I/O | |
| 269 | * | |
| 270 | *************************************/ | |
| 556 | 271 | |
| 557 | static ADDRESS_MAP_START( mshuttle_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 558 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 559 | AM_RANGE(0x08, 0x08) AM_WRITE(AY8910_control_port_0_w) | |
| 560 | AM_RANGE(0x09, 0x09) AM_WRITE(AY8910_write_port_0_w) | |
| 561 | ADDRESS_MAP_END | |
| 272 | static READ8_HANDLER( konami_ay8910_r ) | |
| 273 | { | |
| 274 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 275 | UINT8 result = 0xff; | |
| 276 | if (offset & 0x20) result &= AY8910_read_port_0_r(machine, 0); | |
| 277 | if (offset & 0x80) result &= AY8910_read_port_1_r(machine, 0); | |
| 278 | return result; | |
| 279 | } | |
| 562 | 280 | |
| 563 | 281 | |
| 564 | static ADDRESS_MAP_START( skybase_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 565 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 566 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) | |
| 567 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 568 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 569 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 570 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 571 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 572 | AM_RANGE(0xa002, 0xa002) AM_WRITE(galaxian_gfxbank_w) | |
| 573 | AM_RANGE(0xa004, 0xa007) AM_WRITE(galaxian_lfo_freq_w) | |
| 574 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_background_enable_w) | |
| 575 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 576 | AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 577 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 578 | AM_RANGE(0xb000, 0xb000) AM_WRITE(galaxian_nmi_enable_w) | |
| 579 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxian_stars_enable_w) | |
| 580 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 581 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 582 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 583 | ADDRESS_MAP_END | |
| 282 | static WRITE8_HANDLER( konami_ay8910_w ) | |
| 283 | { | |
| 284 | /* the decoding here is very simplistic, and you can address all four simultaneously */ | |
| 285 | if (offset & 0x10) AY8910_control_port_0_w(machine, 0, data); | |
| 286 | if (offset & 0x20) AY8910_write_port_0_w(machine, 0, data); | |
| 287 | if (offset & 0x40) AY8910_control_port_1_w(machine, 0, data); | |
| 288 | if (offset & 0x80) AY8910_write_port_1_w(machine, 0, data); | |
| 289 | } | |
| 584 | 290 | |
| 585 | 291 | |
| 586 | static ADDRESS_MAP_START( scramblb_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 587 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 588 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) | |
| 589 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) | |
| 590 | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_0_r) | |
| 591 | AM_RANGE(0x6800, 0x6800) AM_READ(input_port_1_r) | |
| 592 | AM_RANGE(0x7000, 0x7000) AM_READ(input_port_2_r) | |
| 593 | AM_RANGE(0x7800, 0x7800) AM_READ(watchdog_reset_r) | |
| 594 | AM_RANGE(0x8102, 0x8102) AM_READ(scramblb_protection_1_r) | |
| 595 | AM_RANGE(0x8202, 0x8202) AM_READ(scramblb_protection_2_r) | |
| 596 | ADDRESS_MAP_END | |
| 292 | static WRITE8_HANDLER( konami_sound_control_w ) | |
| 293 | { | |
| 294 | UINT8 old = konami_sound_control; | |
| 295 | konami_sound_control = data; | |
| 597 | 296 | |
| 598 | static ADDRESS_MAP_START( scramblb_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 599 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 600 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 601 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 602 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 603 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 604 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 605 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) | |
| 606 | AM_RANGE(0x6000, 0x6001) AM_WRITE(SMH_NOP) /* sound triggers */ | |
| 607 | AM_RANGE(0x6003, 0x6003) AM_WRITE(galaxian_coin_counter_w) | |
| 608 | AM_RANGE(0x6004, 0x6007) AM_WRITE(galaxian_lfo_freq_w) | |
| 609 | AM_RANGE(0x6800, 0x6802) AM_WRITE(galaxian_background_enable_w) | |
| 610 | AM_RANGE(0x6803, 0x6803) AM_WRITE(galaxian_noise_enable_w) | |
| 611 | AM_RANGE(0x6805, 0x6805) AM_WRITE(galaxian_shoot_enable_w) | |
| 612 | AM_RANGE(0x6806, 0x6807) AM_WRITE(galaxian_vol_w) | |
| 613 | AM_RANGE(0x7001, 0x7001) AM_WRITE(galaxian_nmi_enable_w) | |
| 614 | AM_RANGE(0x7002, 0x7002) AM_WRITE(galaxian_coin_counter_w) | |
| 615 | AM_RANGE(0x7003, 0x7003) AM_WRITE(scramble_background_enable_w) | |
| 616 | AM_RANGE(0x7004, 0x7004) AM_WRITE(galaxian_stars_enable_w) | |
| 617 | AM_RANGE(0x7006, 0x7006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 618 | AM_RANGE(0x7007, 0x7007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 619 | AM_RANGE(0x7800, 0x7800) AM_WRITE(galaxian_pitch_w) | |
| 620 | ADDRESS_MAP_END | |
| 297 | /* the inverse of bit 3 clocks the flip flop to signal an INT */ | |
| 298 | /* it is automatically cleared on the acknowledge */ | |
| 299 | if ((old & 0x08) && !(data & 0x08)) | |
| 300 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE); | |
| 621 | 301 | |
| 302 | /* bit 4 is sound disable */ | |
| 303 | sound_global_enable(~data & 0x10); | |
| 304 | } | |
| 622 | 305 | |
| 623 | 306 | |
| 624 | static READ8_HANDLER( scramb2_protection_r ) { return 0x25; } | |
| 625 | static READ8_HANDLER( scramb2_port0_r ) { return (readinputport(0)>>offset)&0x1; } | |
| 626 | static READ8_HANDLER( scramb2_port1_r ) { return (readinputport(1)>>offset)&0x1; } | |
| 627 | static READ8_HANDLER( scramb2_port2_r ) { return (readinputport(2)>>offset)&0x1; } | |
| 307 | static READ8_HANDLER( konami_sound_timer_r ) | |
| 308 | { | |
| 309 | /* | |
| 310 | The timer is clocked at KONAMI_SOUND_CLOCK and cascades through a | |
| 311 | series of counters. It first encounters a chained pair of 4-bit | |
| 312 | counters in an LS393, which produce an effective divide-by-256. Next | |
| 313 | it enters the divide-by-2 counter in an LS93, followed by the | |
| 314 | divide-by-8 counter. Finally, it clocks a divide-by-5 counter in an | |
| 315 | LS90, followed by the divide-by-2 counter. This produces an effective | |
| 316 | period of 16*16*2*8*5*2 = 40960 clocks. | |
| 628 | 317 | |
| 629 | static ADDRESS_MAP_START( scramb2_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 630 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 631 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) | |
| 632 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) | |
| 633 | AM_RANGE(0x5800, 0x5fff) AM_READ(scramb2_protection_r) // must return 0x25 | |
| 634 | AM_RANGE(0x6000, 0x6007) AM_READ(scramb2_port0_r) // reads from 8 addresses, 1 bit per address | |
| 635 | AM_RANGE(0x6800, 0x6807) AM_READ(scramb2_port1_r) // reads from 8 addresses, 1 bit per address | |
| 636 | AM_RANGE(0x7000, 0x7007) AM_READ(watchdog_reset_r) | |
| 637 | AM_RANGE(0x7800, 0x7807) AM_READ(scramb2_port2_r) // reads from 8 addresses, 1 bit per address | |
| 638 | ADDRESS_MAP_END | |
| 318 | The clock for the sound CPU comes from output C of the first | |
| 319 | divide-by-16 counter, or KONAMI_SOUND_CLOCK/8. To recover the | |
| 320 | current counter index, we use the sound cpu clock times 8 mod | |
| 321 | 16*16*2*8*5*2. | |
| 322 | */ | |
| 323 | UINT32 cycles = (cpunum_gettotalcycles(1) * 8) % (UINT64)(16*16*2*8*5*2); | |
| 324 | UINT8 hibit = 0; | |
| 639 | 325 | |
| 640 | static ADDRESS_MAP_START( scramb2_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 641 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 642 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 643 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 644 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxian_videoram_w) // mirror | |
| 645 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 646 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 647 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 648 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) | |
| 649 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_nmi_enable_w) | |
| 650 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxian_coin_counter_w) | |
| 651 | AM_RANGE(0x6804, 0x6804) AM_WRITE(galaxian_stars_enable_w) | |
| 652 | AM_RANGE(0x6806, 0x6806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 653 | AM_RANGE(0x6807, 0x6807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 654 | AM_RANGE(0x7006, 0x7006) AM_WRITE(SMH_NOP) | |
| 655 | AM_RANGE(0x7007, 0x7007) AM_WRITE(SMH_NOP) | |
| 656 | AM_RANGE(0x7800, 0x7800) AM_WRITE(galaxian_pitch_w) | |
| 657 | ADDRESS_MAP_END | |
| 326 | /* separate the high bit from the others */ | |
| 327 | if (cycles >= 16*16*2*8*5) | |
| 328 | { | |
| 329 | hibit = 1; | |
| 330 | cycles -= 16*16*2*8*5; | |
| 331 | } | |
| 658 | 332 | |
| 333 | /* the top bits of the counter index map to various bits here */ | |
| 334 | return (hibit << 7) | /* B7 is the output of the final divide-by-2 counter */ | |
| 335 | (BIT(cycles,14) << 6) | /* B6 is the high bit of the divide-by-5 counter */ | |
| 336 | (BIT(cycles,13) << 5) | /* B5 is the 2nd highest bit of the divide-by-5 counter */ | |
| 337 | (BIT(cycles,11) << 4) | /* B4 is the high bit of the divide-by-8 counter */ | |
| 338 | 0x0e; /* assume remaining bits are high, except B0 which is grounded */ | |
| 339 | } | |
| 659 | 340 | |
| 660 | 341 | |
| 661 | static ADDRESS_MAP_START( jumpbug_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 662 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 663 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) | |
| 664 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galaxian_videoram_r) | |
| 665 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) | |
| 666 | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_0_r) | |
| 667 | AM_RANGE(0x6800, 0x6800) AM_READ(input_port_1_r) | |
| 668 | AM_RANGE(0x7000, 0x7000) AM_READ(input_port_2_r) | |
| 669 | AM_RANGE(0x8000, 0xafff) AM_READ(SMH_ROM) | |
| 670 | AM_RANGE(0xb000, 0xbfff) AM_READ(jumpbug_protection_r) | |
| 671 | ADDRESS_MAP_END | |
| 342 | static WRITE8_HANDLER( konami_sound_filter_w ) | |
| 343 | { | |
| 344 | int which, chan; | |
| 672 | 345 | |
| 673 | static ADDRESS_MAP_START( jumpbug_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 674 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 675 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 676 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 677 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxian_videoram_w) | |
| 678 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 679 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 680 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 681 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) | |
| 682 | AM_RANGE(0x5800, 0x5800) AM_WRITE(AY8910_write_port_0_w) | |
| 683 | AM_RANGE(0x5900, 0x5900) AM_WRITE(AY8910_control_port_0_w) | |
| 684 | AM_RANGE(0x6002, 0x6006) AM_WRITE(galaxian_gfxbank_w) | |
| 685 | AM_RANGE(0x7001, 0x7001) AM_WRITE(galaxian_nmi_enable_w) | |
| 686 | AM_RANGE(0x7002, 0x7002) AM_WRITE(galaxian_coin_counter_w) | |
| 687 | AM_RANGE(0x7004, 0x7004) AM_WRITE(galaxian_stars_enable_w) | |
| 688 | AM_RANGE(0x7006, 0x7006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 689 | AM_RANGE(0x7007, 0x7007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 690 | AM_RANGE(0x8000, 0xafff) AM_WRITE(SMH_ROM) | |
| 691 | ADDRESS_MAP_END | |
| 346 | /* the offset is used as data, 6 channels * 2 bits each */ | |
| 347 | for (which = 0; which < 2; which++) | |
| 348 | if (sndti_exists(SOUND_AY8910, which)) | |
| 349 | for (chan = 0; chan < 3; chan++) | |
| 350 | { | |
| 351 | UINT8 bits = (offset >> (2 * chan + 6 * (1 - which))) & 3; | |
| 692 | 352 | |
| 353 | /* low bit goes to 0.22uF capacitor = 220000pF */ | |
| 354 | /* high bit goes to 0.047uF capacitor = 47000pF */ | |
| 355 | discrete_sound_w(machine, NODE(3 * which + chan + 11), bits); | |
| 356 | } | |
| 357 | } | |
| 693 | 358 | |
| 694 | static ADDRESS_MAP_START( checkman_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 695 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 696 | AM_RANGE(0x8000, 0x83ff) AM_WRITE(SMH_RAM) | |
| 697 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 698 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 699 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 700 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 701 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 702 | AM_RANGE(0xa004, 0xa007) AM_WRITE(galaxian_lfo_freq_w) | |
| 703 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_background_enable_w) | |
| 704 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 705 | AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 706 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 707 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxian_nmi_enable_w) | |
| 708 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxian_stars_enable_w) | |
| 709 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 710 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 711 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 712 | ADDRESS_MAP_END | |
| 713 | 359 | |
| 714 | static ADDRESS_MAP_START( checkmaj_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 715 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 716 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 717 | AM_RANGE(0x5000, 0x53ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 718 | AM_RANGE(0x5800, 0x583f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 719 | AM_RANGE(0x5840, 0x585f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 720 | AM_RANGE(0x5860, 0x587f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 721 | AM_RANGE(0x5880, 0x58ff) AM_WRITE(SMH_RAM) | |
| 722 | AM_RANGE(0x7001, 0x7001) AM_WRITE(galaxian_nmi_enable_w) | |
| 723 | AM_RANGE(0x7006, 0x7006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 724 | AM_RANGE(0x7007, 0x7007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 725 | AM_RANGE(0x7800, 0x7800) AM_WRITE(checkman_sound_command_w) | |
| 726 | ADDRESS_MAP_END | |
| 360 | static READ8_HANDLER( konami_porta_0_r ) | |
| 361 | { | |
| 362 | // logerror("%04X:ppi0_porta_r\n", activecpu_get_pc()); | |
| 363 | return readinputportbytag("IN0"); | |
| 364 | } | |
| 727 | 365 | |
| 728 | 366 | |
| 729 | static ADDRESS_MAP_START( checkman_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 730 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 731 | AM_RANGE(0, 0) AM_WRITE(checkman_sound_command_w) | |
| 732 | ADDRESS_MAP_END | |
| 367 | static READ8_HANDLER( konami_portb_0_r ) | |
| 368 | { | |
| 369 | // logerror("%04X:ppi0_portb_r\n", activecpu_get_pc()); | |
| 370 | return readinputportbytag("IN1"); | |
| 371 | } | |
| 733 | 372 | |
| 734 | 373 | |
| 735 | static ADDRESS_MAP_START( checkman_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 736 | AM_RANGE(0x0000, 0x0fff) AM_READ(SMH_ROM) | |
| 737 | AM_RANGE(0x2000, 0x23ff) AM_READ(SMH_RAM) | |
| 738 | ADDRESS_MAP_END | |
| 374 | static READ8_HANDLER( konami_portc_0_r ) | |
| 375 | { | |
| 376 | logerror("%04X:ppi0_portc_r\n", activecpu_get_pc()); | |
| 377 | return readinputportbytag("IN2"); | |
| 378 | } | |
| 739 | 379 | |
| 740 | static ADDRESS_MAP_START( checkman_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 741 | AM_RANGE(0x0000, 0x0fff) AM_WRITE(SMH_ROM) | |
| 742 | AM_RANGE(0x2000, 0x23ff) AM_WRITE(SMH_RAM) | |
| 743 | ADDRESS_MAP_END | |
| 744 | 380 | |
| 381 | static READ8_HANDLER( konami_portc_1_r ) | |
| 382 | { | |
| 383 | logerror("%04X:ppi1_portc_r\n", activecpu_get_pc()); | |
| 384 | return readinputportbytag("IN3"); | |
| 385 | } | |
| 745 | 386 | |
| 746 | static ADDRESS_MAP_START( checkman_sound_readport, ADDRESS_SPACE_IO, 8 ) | |
| 747 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 748 | AM_RANGE(0x03, 0x03) AM_READ(soundlatch_r) | |
| 749 | AM_RANGE(0x06, 0x06) AM_READ(AY8910_read_port_0_r) | |
| 750 | ADDRESS_MAP_END | |
| 751 | 387 | |
| 752 | static ADDRESS_MAP_START( checkman_sound_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 753 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 754 | AM_RANGE(0x04, 0x04) AM_WRITE(AY8910_control_port_0_w) | |
| 755 | AM_RANGE(0x05, 0x05) AM_WRITE(AY8910_write_port_0_w) | |
| 756 | ADDRESS_MAP_END | |
| 388 | static WRITE8_HANDLER( konami_portc_0_w ) | |
| 389 | { | |
| 390 | logerror("%04X:ppi0_portc_w = %02X\n", activecpu_get_pc(), data); | |
| 391 | } | |
| 757 | 392 | |
| 758 | 393 | |
| 759 | static ADDRESS_MAP_START( checkmaj_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 760 | AM_RANGE(0x0000, 0x0fff) AM_READ(SMH_ROM) | |
| 761 | AM_RANGE(0x8000, 0x83ff) AM_READ(SMH_RAM) | |
| 762 | AM_RANGE(0xa002, 0xa002) AM_READ(AY8910_read_port_0_r) | |
| 763 | ADDRESS_MAP_END | |
| 394 | static WRITE8_HANDLER( konami_portc_1_w ) | |
| 395 | { | |
| 396 | logerror("%04X:ppi1_portc_w = %02X\n", activecpu_get_pc(), data); | |
| 397 | } | |
| 764 | 398 | |
| 765 | static ADDRESS_MAP_START( checkmaj_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 766 | AM_RANGE(0x0000, 0x0fff) AM_WRITE(SMH_ROM) | |
| 767 | AM_RANGE(0x8000, 0x83ff) AM_WRITE(SMH_RAM) | |
| 768 | AM_RANGE(0xa000, 0xa000) AM_WRITE(AY8910_control_port_0_w) | |
| 769 | AM_RANGE(0xa001, 0xa001) AM_WRITE(AY8910_write_port_0_w) | |
| 770 | ADDRESS_MAP_END | |
| 771 | 399 | |
| 400 | static const ppi8255_interface konami_ppi8255_intf = | |
| 401 | { | |
| 402 | 2, | |
| 403 | { konami_porta_0_r, NULL }, /* Port A read */ | |
| 404 | { konami_portb_0_r, NULL }, /* Port B read */ | |
| 405 | { konami_portc_0_r, konami_portc_1_r }, /* Port C read */ | |
| 406 | { NULL, soundlatch_w }, /* Port A write */ | |
| 407 | { NULL, konami_sound_control_w }, /* Port B write */ | |
| 408 | { konami_portc_0_w, konami_portc_1_w }, /* Port C write */ | |
| 409 | }; | |
| 772 | 410 | |
| 773 | static ADDRESS_MAP_START( kingball_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 774 | AM_RANGE(0x0000, 0x2fff) AM_WRITE(SMH_ROM) | |
| 775 | AM_RANGE(0x8000, 0x83ff) AM_WRITE(SMH_RAM) | |
| 776 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 777 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 778 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 779 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 780 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 781 | AM_RANGE(0xa000, 0xa001) AM_WRITE(galaxian_leds_w) | |
| 782 | AM_RANGE(0xa002, 0xa002) AM_WRITE(galaxian_coin_lockout_w) | |
| 783 | AM_RANGE(0xa003, 0xa003) AM_WRITE(galaxian_coin_counter_w) | |
| 784 | AM_RANGE(0xa004, 0xa007) AM_WRITE(galaxian_lfo_freq_w) | |
| 785 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_background_enable_w) | |
| 786 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 787 | AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 788 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) // | |
| 789 | AM_RANGE(0xb000, 0xb000) AM_WRITE(kingball_sound1_w) | |
| 790 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxian_nmi_enable_w) | |
| 791 | AM_RANGE(0xb002, 0xb002) AM_WRITE(kingball_sound2_w) | |
| 792 | AM_RANGE(0xb003, 0xb003) AM_WRITE(kingball_speech_dip_w) | |
| 793 | AM_RANGE(0xb004, 0xb004) AM_WRITE(SMH_NOP) /* noise generator enable */ | |
| 794 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 795 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 796 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 797 | ADDRESS_MAP_END | |
| 798 | 411 | |
| 799 | static ADDRESS_MAP_START( kingball_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 800 | AM_RANGE(0x0000, 0x1fff) AM_READ(SMH_ROM) | |
| 801 | ADDRESS_MAP_END | |
| 802 | 412 | |
| 803 | static ADDRESS_MAP_START( kingball_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 804 | AM_RANGE(0x0000, 0x1fff) AM_WRITE(SMH_ROM) | |
| 805 | ADDRESS_MAP_END | |
| 413 | /************************************* | |
| 414 | * | |
| 415 | * The End I/O | |
| 416 | * | |
| 417 | *************************************/ | |
| 806 | 418 | |
| 807 | static ADDRESS_MAP_START( kingball_sound_readport, ADDRESS_SPACE_IO, 8 ) | |
| 808 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 809 | AM_RANGE(0x00, 0x00) AM_READ(soundlatch_r) | |
| 810 | ADDRESS_MAP_END | |
| 811 | ||
| 812 | static ADDRESS_MAP_START( kingball_sound_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 813 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 814 | AM_RANGE(0x00, 0x00) AM_WRITE(DAC_0_data_w) | |
| 815 | ADDRESS_MAP_END | |
| 816 | ||
| 817 | ||
| 818 | static ADDRESS_MAP_START( _4in1_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 819 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_BANK1) /* banked game code */ | |
| 820 | AM_RANGE(0x4000, 0x47ff) AM_READ(SMH_RAM) | |
| 821 | AM_RANGE(0x5000, 0x53ff) AM_READ(SMH_RAM) | |
| 822 | AM_RANGE(0x5400, 0x57ff) AM_READ(galaxian_videoram_r) | |
| 823 | AM_RANGE(0x5800, 0x58ff) AM_READ(SMH_RAM) | |
| 824 | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_0_r) | |
| 825 | AM_RANGE(0x6800, 0x6800) AM_READ(_4in1_input_port_1_r) | |
| 826 | AM_RANGE(0x7000, 0x7000) AM_READ(_4in1_input_port_2_r) | |
| 827 | AM_RANGE(0x7800, 0x78ff) AM_READ(watchdog_reset_r) | |
| 828 | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_ROM) /* fixed menu code */ | |
| 829 | ADDRESS_MAP_END | |
| 830 | ||
| 831 | static ADDRESS_MAP_START( _4in1_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 832 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) /* banked game code */ | |
| 833 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 834 | AM_RANGE(0x5000, 0x53ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 835 | AM_RANGE(0x5800, 0x583f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 836 | AM_RANGE(0x5840, 0x585f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 837 | AM_RANGE(0x5860, 0x587f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 838 | AM_RANGE(0x5880, 0x58ff) AM_WRITE(SMH_RAM) | |
| 839 | AM_RANGE(0x6000, 0x6001) AM_WRITE(galaxian_leds_w) | |
| 840 | // AM_RANGE(0x6002, 0x6002) AM_WRITE(galaxian_coin_lockout_w) | |
| 841 | AM_RANGE(0x6003, 0x6003) AM_WRITE(galaxian_coin_counter_w) | |
| 842 | AM_RANGE(0x6004, 0x6007) AM_WRITE(galaxian_lfo_freq_w) | |
| 843 | AM_RANGE(0x6800, 0x6802) AM_WRITE(galaxian_background_enable_w) | |
| 844 | // AM_RANGE(0x6803, 0x6803) AM_WRITE(galaxian_noise_enable_w) /* not hooked up? */ | |
| 845 | AM_RANGE(0x6805, 0x6805) AM_WRITE(galaxian_shoot_enable_w) | |
| 846 | AM_RANGE(0x6806, 0x6807) AM_WRITE(galaxian_vol_w) | |
| 847 | AM_RANGE(0x7001, 0x7001) AM_WRITE(galaxian_nmi_enable_w) | |
| 848 | AM_RANGE(0x7004, 0x7004) AM_WRITE(galaxian_stars_enable_w) | |
| 849 | AM_RANGE(0x7006, 0x7006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 850 | AM_RANGE(0x7007, 0x7007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 851 | AM_RANGE(0x7800, 0x7800) AM_WRITE(galaxian_pitch_w) | |
| 852 | AM_RANGE(0x8000, 0x8000) AM_WRITE(_4in1_bank_w) | |
| 853 | AM_RANGE(0xc000, 0xdfff) AM_WRITE(SMH_ROM) /* Fixed Menu Code */ | |
| 854 | ADDRESS_MAP_END | |
| 855 | ||
| 856 | ||
| 857 | static ADDRESS_MAP_START( bagmanmc_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 858 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 859 | AM_RANGE(0x6000, 0x67ff) AM_READ(SMH_RAM) | |
| 860 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) | |
| 861 | AM_RANGE(0x9400, 0x97ff) AM_READ(galaxian_videoram_r) | |
| 862 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 863 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 864 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 865 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 866 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) | |
| 867 | ADDRESS_MAP_END | |
| 868 | ||
| 869 | static ADDRESS_MAP_START( bagmanmc_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 870 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 871 | AM_RANGE(0x6000, 0x67ff) AM_WRITE(SMH_RAM) | |
| 872 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 873 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 874 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 875 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 876 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 877 | AM_RANGE(0xa003, 0xa003) AM_WRITE(galaxian_coin_counter_w) | |
| 878 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 879 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxian_nmi_enable_w) | |
| 880 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 881 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 882 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 883 | ADDRESS_MAP_END | |
| 884 | ||
| 885 | static int latch; | |
| 886 | ||
| 887 | static WRITE8_HANDLER( zigzag_8910_latch_w ) | |
| 419 | static READ8_HANDLER( theend_ppi8255_r ) | |
| 888 | 420 | { |
| 889 | latch = offset; | |
| 421 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 422 | UINT8 result = 0xff; | |
| 423 | if (offset & 0x0100) result &= ppi8255_0_r(machine, offset & 3); | |
| 424 | if (offset & 0x0200) result &= ppi8255_1_r(machine, offset & 3); | |
| 425 | return result; | |
| 890 | 426 | } |
| 891 | 427 | |
| 892 | static WRITE8_HANDLER( zigzag_8910_data_trigger_w ) | |
| 428 | ||
| 429 | static WRITE8_HANDLER( theend_ppi8255_w ) | |
| 893 | 430 | { |
| 894 | AY8910_write_port_0_w(machine,0,latch); | |
| 431 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 432 | if (offset & 0x0100) ppi8255_0_w(machine, offset & 3, data); | |
| 433 | if (offset & 0x0200) ppi8255_1_w(machine, offset & 3, data); | |
| 895 | 434 | } |
| 896 | 435 | |
| 897 | static WRITE8_HANDLER( zigzag_8910_control_trigger_w ) | |
| 436 | ||
| 437 | static WRITE8_HANDLER( theend_coin_counter_w ) | |
| 898 | 438 | { |
| 899 | | |
| 439 | coin | |
| 900 | 440 | } |
| 901 | 441 | |
| 902 | static ADDRESS_MAP_START( zigzag_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 903 | AM_RANGE(0x0000, 0x1fff) AM_READ(SMH_ROM) | |
| 904 | AM_RANGE(0x2000, 0x2fff) AM_READ(SMH_BANK1) | |
| 905 | AM_RANGE(0x3000, 0x3fff) AM_READ(SMH_BANK2) | |
| 906 | AM_RANGE(0x4000, 0x47ff) AM_READ(SMH_RAM) | |
| 907 | AM_RANGE(0x5000, 0x53ff) AM_READ(SMH_RAM) | |
| 908 | AM_RANGE(0x5800, 0x58ff) AM_READ(SMH_RAM) | |
| 909 | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_0_r) | |
| 910 | AM_RANGE(0x6800, 0x6800) AM_READ(input_port_1_r) | |
| 911 | AM_RANGE(0x7000, 0x7000) AM_READ(input_port_2_r) | |
| 912 | AM_RANGE(0x7800, 0x7800) AM_READ(watchdog_reset_r) | |
| 913 | ADDRESS_MAP_END | |
| 914 | 442 | |
| 915 | static ADDRESS_MAP_START( zigzag_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 916 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 917 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 918 | AM_RANGE(0x4800, 0x4800) AM_WRITE(SMH_NOP) /* part of the 8910 interface */ | |
| 919 | AM_RANGE(0x4801, 0x4801) AM_WRITE(zigzag_8910_data_trigger_w) | |
| 920 | AM_RANGE(0x4803, 0x4803) AM_WRITE(zigzag_8910_control_trigger_w) | |
| 921 | AM_RANGE(0x4900, 0x49ff) AM_WRITE(zigzag_8910_latch_w) | |
| 922 | AM_RANGE(0x4a00, 0x4a00) AM_WRITE(SMH_NOP) /* part of the 8910 interface */ | |
| 923 | AM_RANGE(0x5000, 0x53ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 924 | AM_RANGE(0x5800, 0x583f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 925 | AM_RANGE(0x5840, 0x587f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) /* no bulletsram, all sprites */ | |
| 926 | AM_RANGE(0x5880, 0x58ff) AM_WRITE(SMH_RAM) | |
| 927 | AM_RANGE(0x7001, 0x7001) AM_WRITE(galaxian_nmi_enable_w) | |
| 928 | AM_RANGE(0x7002, 0x7002) AM_WRITE(zigzag_sillyprotection_w) | |
| 929 | AM_RANGE(0x7006, 0x7006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 930 | AM_RANGE(0x7007, 0x7007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 931 | ADDRESS_MAP_END | |
| 932 | 443 | |
| 444 | /************************************* | |
| 445 | * | |
| 446 | * Scramble I/O | |
| 447 | * | |
| 448 | *************************************/ | |
| 933 | 449 | |
| 934 | static ADDRESS_MAP_START( scorpnmc_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 935 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 936 | AM_RANGE(0x4000, 0x47ff) AM_READ(SMH_RAM) | |
| 937 | AM_RANGE(0x5000, 0x67ff) AM_READ(SMH_ROM) | |
| 938 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) | |
| 939 | AM_RANGE(0x9400, 0x97ff) AM_READ(galaxian_videoram_r) | |
| 940 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 941 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 942 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 943 | AM_RANGE(0xb001, 0xb001) AM_READ(input_port_2_r) | |
| 944 | AM_RANGE(0xb002, 0xb002) AM_READ(input_port_3_r) | |
| 945 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) | |
| 946 | ADDRESS_MAP_END | |
| 947 | ||
| 948 | static ADDRESS_MAP_START( scorpnmc_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 949 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 950 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 951 | AM_RANGE(0x5000, 0x67ff) AM_WRITE(SMH_ROM) | |
| 952 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 953 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 954 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 955 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 956 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 957 | AM_RANGE(0xa003, 0xa003) AM_WRITE(galaxian_coin_counter_w) | |
| 958 | AM_RANGE(0xa004, 0xa007) AM_WRITE(galaxian_lfo_freq_w) | |
| 959 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_background_enable_w) | |
| 960 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 961 | AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 962 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 963 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxian_nmi_enable_w) | |
| 964 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxian_stars_enable_w) | |
| 965 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 966 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 967 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 968 | ADDRESS_MAP_END | |
| 969 | ||
| 970 | ||
| 971 | static ADDRESS_MAP_START( dkongjrm_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 972 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 973 | AM_RANGE(0x6000, 0x6fff) AM_READ(SMH_RAM) | |
| 974 | AM_RANGE(0x7000, 0x7fff) AM_READ(SMH_ROM) | |
| 975 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) | |
| 976 | AM_RANGE(0xa000, 0xa0ff) AM_READ(input_port_0_r) | |
| 977 | AM_RANGE(0xa800, 0xa8ff) AM_READ(input_port_1_r) | |
| 978 | AM_RANGE(0xb000, 0xb0ff) AM_READ(input_port_2_r) | |
| 979 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) | |
| 980 | ADDRESS_MAP_END | |
| 981 | ||
| 982 | static ADDRESS_MAP_START( dkongjrm_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 983 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 984 | AM_RANGE(0x6000, 0x6fff) AM_WRITE(SMH_RAM) | |
| 985 | AM_RANGE(0x7000, 0x7fff) AM_WRITE(SMH_ROM) | |
| 986 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 987 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 988 | AM_RANGE(0x9840, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 989 | AM_RANGE(0x98c0, 0x98ff) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram2) AM_SIZE(&galaxian_spriteram2_size) | |
| 990 | AM_RANGE(0xa003, 0xa003) AM_WRITE(galaxian_coin_counter_w) | |
| 991 | //AM_RANGE(0xa004, 0xa007) AM_WRITE(galaxian_lfo_freq_w) | |
| 992 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_background_enable_w) | |
| 993 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 994 | //AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 995 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 996 | AM_RANGE(0xb000, 0xb000) AM_WRITE(galaxian_gfxbank_w) | |
| 997 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxian_nmi_enable_w) | |
| 998 | //AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxian_stars_enable_w) | |
| 999 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1000 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1001 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 1002 | ADDRESS_MAP_END | |
| 1003 | ||
| 1004 | ||
| 1005 | static ADDRESS_MAP_START( ozon1_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1006 | AM_RANGE(0x0000, 0x2fff) AM_READ(SMH_ROM) | |
| 1007 | AM_RANGE(0x4000, 0x4200) AM_READ(SMH_RAM) | |
| 1008 | AM_RANGE(0x4300, 0x43ff) AM_READ(SMH_RAM) | |
| 1009 | AM_RANGE(0x4800, 0x4bff) AM_READ(galaxian_videoram_r) | |
| 1010 | AM_RANGE(0x5000, 0x503f) AM_READ(SMH_RAM) | |
| 1011 | AM_RANGE(0x5040, 0x505f) AM_READ(SMH_RAM) | |
| 1012 | AM_RANGE(0x8100, 0x8100) AM_READ(input_port_0_r) | |
| 1013 | AM_RANGE(0x8101, 0x8101) AM_READ(input_port_1_r) | |
| 1014 | AM_RANGE(0x8102, 0x8102) AM_READ(input_port_2_r) | |
| 1015 | ADDRESS_MAP_END | |
| 1016 | ||
| 1017 | static ADDRESS_MAP_START( ozon1_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1018 | AM_RANGE(0x0000, 0x2fff) AM_WRITE(SMH_ROM) | |
| 1019 | AM_RANGE(0x4000, 0x4200) AM_WRITE(SMH_RAM) | |
| 1020 | AM_RANGE(0x4300, 0x43ff) AM_WRITE(SMH_RAM) | |
| 1021 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 1022 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxian_videoram_w) | |
| 1023 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 1024 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 1025 | AM_RANGE(0x6801, 0x6801) AM_WRITE(SMH_NOP) //continuosly 0 and 1 | |
| 1026 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxian_coin_counter_w) | |
| 1027 | AM_RANGE(0x6806, 0x6806) AM_WRITE(SMH_NOP) //only one 0 at reset | |
| 1028 | AM_RANGE(0x6807, 0x6807) AM_WRITE(SMH_NOP) //only one 0 at reset | |
| 1029 | AM_RANGE(0x8103, 0x8103) AM_WRITE(SMH_NOP) //only one 9b at reset | |
| 1030 | ADDRESS_MAP_END | |
| 1031 | ||
| 1032 | static ADDRESS_MAP_START( ozon1_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 1033 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 1034 | AM_RANGE(0x00, 0x00) AM_WRITE(AY8910_write_port_0_w) | |
| 1035 | AM_RANGE(0x01, 0x01) AM_WRITE(AY8910_control_port_0_w) | |
| 1036 | ADDRESS_MAP_END | |
| 1037 | ||
| 1038 | static ADDRESS_MAP_START( drivfrcg, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1039 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 1040 | AM_RANGE(0x1480, 0x14bf) AM_MIRROR(0x6000) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 1041 | AM_RANGE(0x14c0, 0x14ff) AM_MIRROR(0x6000) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 1042 | AM_RANGE(0x1500, 0x1500) AM_MIRROR(0x6000) AM_READ(input_port_0_r) | |
| 1043 | AM_RANGE(0x1503, 0x1503) AM_MIRROR(0x6000) AM_WRITE(galaxian_coin_counter_w) | |
| 1044 | AM_RANGE(0x1580, 0x1580) AM_MIRROR(0x6000) AM_READ(input_port_1_r) | |
| 1045 | AM_RANGE(0x1580, 0x1582) AM_MIRROR(0x6000) AM_WRITE(galaxian_background_enable_w) | |
| 1046 | AM_RANGE(0x1583, 0x1583) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 1047 | AM_RANGE(0x1585, 0x1585) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 1048 | AM_RANGE(0x1586, 0x1587) AM_MIRROR(0x6000) AM_WRITE(galaxian_lfo_freq_w) | |
| 1049 | AM_RANGE(0x1600, 0x1600) AM_MIRROR(0x6000) AM_READWRITE(input_port_2_r, galaxian_pitch_w) | |
| 1050 | AM_RANGE(0x1700, 0x1700) AM_MIRROR(0x6000) AM_READWRITE(input_port_3_r, SMH_NOP) | |
| 1051 | AM_RANGE(0x1701, 0x1701) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 1052 | AM_RANGE(0x1704, 0x1707) AM_MIRROR(0x6000) AM_WRITE(galaxian_vol_w) | |
| 1053 | AM_RANGE(0x1800, 0x1bff) AM_MIRROR(0x6000) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 1054 | AM_RANGE(0x1c00, 0x1fff) AM_MIRROR(0x6000) AM_RAM | |
| 1055 | AM_RANGE(0x2000, 0x2fff) AM_ROM | |
| 1056 | AM_RANGE(0x4000, 0x4fff) AM_ROM | |
| 1057 | AM_RANGE(0x6000, 0x6fff) AM_ROM | |
| 1058 | ADDRESS_MAP_END | |
| 1059 | ||
| 1060 | static ADDRESS_MAP_START( drivfrcg_io, ADDRESS_SPACE_IO, 8 ) | |
| 1061 | AM_RANGE(0x00, 0x00) AM_READ(drivfrcg_port0_r) | |
| 1062 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READWRITE(input_port_4_r, SMH_NOP) | |
| 1063 | ADDRESS_MAP_END | |
| 1064 | ||
| 1065 | static ADDRESS_MAP_START( bongo, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1066 | AM_RANGE(0x0000, 0x5fff) AM_ROM | |
| 1067 | AM_RANGE(0x8000, 0x83ff) AM_RAM | |
| 1068 | AM_RANGE(0x8400, 0x87ff) AM_WRITE(SMH_NOP) // not used | |
| 1069 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 1070 | AM_RANGE(0x9400, 0x97ff) AM_WRITE(SMH_NOP) // not used | |
| 1071 | AM_RANGE(0x9800, 0x983f) AM_READWRITE(SMH_RAM, galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 1072 | AM_RANGE(0x9840, 0x985f) AM_RAM AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 1073 | AM_RANGE(0x9860, 0x987f) AM_RAM AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 1074 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 1075 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 1076 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 1077 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxian_nmi_enable_w) | |
| 1078 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxian_stars_enable_w) | |
| 1079 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1080 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1081 | AM_RANGE(0xb800, 0xb800) AM_READWRITE(watchdog_reset_r, SMH_NOP) | |
| 1082 | ADDRESS_MAP_END | |
| 1083 | ||
| 1084 | static ADDRESS_MAP_START( bongo_io, ADDRESS_SPACE_IO, 8 ) | |
| 1085 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 1086 | AM_RANGE(0x00, 0x00) AM_WRITE(AY8910_control_port_0_w) | |
| 1087 | AM_RANGE(0x01, 0x01) AM_WRITE(AY8910_write_port_0_w) | |
| 1088 | AM_RANGE(0x02, 0x02) AM_READ(AY8910_read_port_0_r) | |
| 1089 | ADDRESS_MAP_END | |
| 1090 | ||
| 1091 | ||
| 1092 | static ADDRESS_MAP_START( hunchbkg, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1093 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 1094 | AM_RANGE(0x1480, 0x14bf) AM_MIRROR(0x6000) AM_READWRITE(SMH_RAM, galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 1095 | AM_RANGE(0x14c0, 0x14ff) AM_MIRROR(0x6000) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 1096 | AM_RANGE(0x1500, 0x1500) AM_MIRROR(0x6000) AM_READ(input_port_0_r) | |
| 1097 | AM_RANGE(0x1503, 0x1503) AM_MIRROR(0x6000) AM_WRITE(galaxian_coin_counter_w) | |
| 1098 | AM_RANGE(0x1580, 0x1580) AM_MIRROR(0x6000) AM_READ(input_port_1_r) | |
| 1099 | AM_RANGE(0x1580, 0x1582) AM_MIRROR(0x6000) AM_WRITE(galaxian_background_enable_w) | |
| 1100 | AM_RANGE(0x1583, 0x1583) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 1101 | AM_RANGE(0x1584, 0x1587) AM_MIRROR(0x6000) AM_WRITE(galaxian_lfo_freq_w) | |
| 1102 | AM_RANGE(0x1600, 0x1600) AM_MIRROR(0x6000) AM_READ(input_port_2_r) | |
| 1103 | AM_RANGE(0x1600, 0x1601) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 1104 | AM_RANGE(0x1604, 0x1604) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 1105 | AM_RANGE(0x1606, 0x1606) AM_MIRROR(0x6000) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1106 | AM_RANGE(0x1607, 0x1607) AM_MIRROR(0x6000) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1107 | AM_RANGE(0x1680, 0x1680) AM_MIRROR(0x6000) AM_READWRITE(SMH_NOP, galaxian_pitch_w) | |
| 1108 | AM_RANGE(0x1800, 0x1bff) AM_MIRROR(0x6000) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 1109 | AM_RANGE(0x1c00, 0x1fff) AM_MIRROR(0x6000) AM_RAM | |
| 1110 | AM_RANGE(0x2000, 0x2fff) AM_ROM | |
| 1111 | AM_RANGE(0x4000, 0x4fff) AM_ROM | |
| 1112 | AM_RANGE(0x6000, 0x6fff) AM_ROM | |
| 1113 | ADDRESS_MAP_END | |
| 1114 | ||
| 1115 | static ADDRESS_MAP_START( hunchbkg_io, ADDRESS_SPACE_IO, 8 ) | |
| 1116 | AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ(SMH_NOP) // not used | |
| 1117 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_3_r) | |
| 1118 | ADDRESS_MAP_END | |
| 1119 | ||
| 1120 | static ADDRESS_MAP_START( harem_cpu1, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1121 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 1122 | AM_RANGE(0x2000, 0x27ff) AM_RAM | |
| 1123 | AM_RANGE(0x4000, 0x47ff) AM_RAM | |
| 1124 | AM_RANGE(0x4800, 0x4fff) AM_READWRITE(galaxian_videoram_r, galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 1125 | AM_RANGE(0x5000, 0x5000) AM_WRITENOP | |
| 1126 | AM_RANGE(0x5800, 0x5800) AM_READWRITE(SMH_NOP, interrupt_enable_w) | |
| 1127 | AM_RANGE(0x5801, 0x5807) AM_WRITENOP | |
| 1128 | AM_RANGE(0x6101, 0x6101) AM_READ(input_port_0_r) | |
| 1129 | AM_RANGE(0x6102, 0x6102) AM_READ(input_port_1_r) | |
| 1130 | AM_RANGE(0x6103, 0x6103) AM_WRITENOP | |
| 1131 | AM_RANGE(0x6200, 0x6203) AM_WRITENOP AM_BASE(&galaxian_attributesram) | |
| 1132 | AM_RANGE(0x8000, 0x9fff) AM_ROM | |
| 1133 | AM_RANGE(0xffe6, 0xffff) AM_RAM AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 1134 | ADDRESS_MAP_END | |
| 1135 | ||
| 1136 | static ADDRESS_MAP_START( harem_cpu2, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1137 | AM_RANGE(0x0000, 0x2fff) AM_ROM | |
| 1138 | AM_RANGE(0x8000, 0x83ff) AM_RAM | |
| 1139 | AM_RANGE(0xa000, 0xa000) AM_WRITENOP | |
| 1140 | ADDRESS_MAP_END | |
| 1141 | ||
| 1142 | static ADDRESS_MAP_START( harem_cpu2_io, ADDRESS_SPACE_IO, 8 ) | |
| 1143 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 1144 | AM_RANGE(0x04, 0x04) AM_WRITE(AY8910_control_port_0_w) | |
| 1145 | AM_RANGE(0x08, 0x08) AM_WRITE(AY8910_write_port_0_w) | |
| 1146 | AM_RANGE(0x10, 0x10) AM_WRITE(AY8910_control_port_1_w) | |
| 1147 | AM_RANGE(0x20, 0x20) AM_WRITE(AY8910_write_port_1_w) | |
| 1148 | AM_RANGE(0x40, 0x40) AM_WRITE(AY8910_control_port_2_w) | |
| 1149 | AM_RANGE(0x80, 0x80) AM_WRITE(AY8910_write_port_2_w) | |
| 1150 | AM_RANGE(0x80, 0x80) AM_READ(soundlatch_r) | |
| 1151 | ADDRESS_MAP_END | |
| 1152 | ||
| 1153 | static ADDRESS_MAP_START( tazzmang, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1154 | AM_RANGE(0x0000, 0x5fff) AM_ROM | |
| 1155 | AM_RANGE(0x7000, 0x7000) AM_READ(input_port_2_r) /* mirror */ | |
| 1156 | AM_RANGE(0x8000, 0x87ff) AM_RAM | |
| 1157 | AM_RANGE(0x8800, 0x883f) AM_READWRITE(SMH_RAM, galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 1158 | AM_RANGE(0x8840, 0x885f) AM_RAM AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 1159 | AM_RANGE(0x8860, 0x887f) AM_RAM AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 1160 | AM_RANGE(0x8880, 0x8bff) AM_WRITENOP | |
| 1161 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 1162 | AM_RANGE(0x9800, 0x9800) AM_READ(watchdog_reset_r) | |
| 1163 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 1164 | AM_RANGE(0xa7ff, 0xa7ff) AM_READ(input_port_0_r) /* mirror */ | |
| 1165 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) AM_WRITE(galaxian_background_enable_w) | |
| 1166 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_coin_counter_w) | |
| 1167 | AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 1168 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 1169 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 1170 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxian_nmi_enable_w) | |
| 1171 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxian_stars_enable_w) | |
| 1172 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1173 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1174 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) AM_WRITE(galaxian_pitch_w) | |
| 1175 | ADDRESS_MAP_END | |
| 1176 | ||
| 1177 | static ADDRESS_MAP_START( racknrol, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1178 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 1179 | AM_RANGE(0x1400, 0x143f) AM_MIRROR(0x6000) AM_READWRITE(SMH_RAM, galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 1180 | AM_RANGE(0x1440, 0x14bf) AM_MIRROR(0x6000) AM_RAM AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 1181 | AM_RANGE(0x14c0, 0x14ff) AM_MIRROR(0x6000) AM_RAM | |
| 1182 | AM_RANGE(0x1500, 0x1500) AM_MIRROR(0x6000) AM_READ(input_port_0_r) | |
| 1183 | AM_RANGE(0x1580, 0x1580) AM_MIRROR(0x6000) AM_READ(input_port_1_r) | |
| 1184 | AM_RANGE(0x1600, 0x1600) AM_MIRROR(0x6000) AM_READ(input_port_2_r) | |
| 1185 | AM_RANGE(0x1600, 0x1601) AM_MIRROR(0x6000) AM_WRITENOP | |
| 1186 | AM_RANGE(0x1606, 0x1606) AM_MIRROR(0x6000) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1187 | AM_RANGE(0x1607, 0x1607) AM_MIRROR(0x6000) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1188 | AM_RANGE(0x1680, 0x1680) AM_MIRROR(0x6000) AM_READNOP | |
| 1189 | // AM_RANGE(0x1700, 0x1700) AM_MIRROR(0x6000) AM_READ(trvchlng_question_r) | |
| 1190 | // AM_RANGE(0x1701, 0x1703) AM_MIRROR(0x6000) AM_READ(trvchlng_question_w) | |
| 1191 | AM_RANGE(0x1800, 0x1bff) AM_MIRROR(0x6000) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 1192 | AM_RANGE(0x1c00, 0x1fff) AM_MIRROR(0x6000) AM_RAM | |
| 1193 | AM_RANGE(0x2000, 0x2fff) AM_ROM | |
| 1194 | AM_RANGE(0x4000, 0x4fff) AM_ROM | |
| 1195 | AM_RANGE(0x6000, 0x6fff) AM_ROM | |
| 1196 | ADDRESS_MAP_END | |
| 1197 | ||
| 1198 | static ADDRESS_MAP_START( racknrol_io, ADDRESS_SPACE_IO, 8 ) | |
| 1199 | AM_RANGE(0x1d, 0x1d) AM_WRITE(SN76496_0_w) | |
| 1200 | AM_RANGE(0x1e, 0x1e) AM_WRITE(SN76496_1_w) | |
| 1201 | AM_RANGE(0x1f, 0x1f) AM_WRITE(SN76496_2_w) | |
| 1202 | AM_RANGE(0x20, 0x3f) AM_WRITE(racknrol_tiles_bank_w) AM_BASE(&racknrol_tiles_bank) | |
| 1203 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_3_r) | |
| 1204 | ADDRESS_MAP_END | |
| 1205 | ||
| 1206 | static ADDRESS_MAP_START( ckongg_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1207 | ||
| 1208 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 1209 | AM_RANGE(0x6000, 0x6fff) AM_READ(SMH_RAM) | |
| 1210 | AM_RANGE(0x9000, 0x93ff) AM_READ(galaxian_videoram_r) | |
| 1211 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 1212 | AM_RANGE(0xc000, 0xc000) AM_READ(input_port_0_r) | |
| 1213 | AM_RANGE(0xc400, 0xc400) AM_READ(input_port_1_r) | |
| 1214 | AM_RANGE(0xc800, 0xc800) AM_READ(input_port_2_r) | |
| 1215 | AM_RANGE(0xcc00, 0xcc00) AM_READ(watchdog_reset_r) | |
| 1216 | ||
| 1217 | ADDRESS_MAP_END | |
| 1218 | ||
| 1219 | static ADDRESS_MAP_START( ckongg_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1220 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 1221 | AM_RANGE(0x6000, 0x6fff) AM_WRITE(SMH_RAM) | |
| 1222 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 1223 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 1224 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 1225 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 1226 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 1227 | AM_RANGE(0xc000, 0xc001) AM_WRITE(galaxian_leds_w) | |
| 1228 | AM_RANGE(0xc002, 0xc002) AM_WRITE(galaxian_coin_lockout_w) | |
| 1229 | AM_RANGE(0xc003, 0xc003) AM_WRITE(galaxian_coin_counter_w) | |
| 1230 | AM_RANGE(0xc004, 0xc007) AM_WRITE(galaxian_lfo_freq_w) | |
| 1231 | AM_RANGE(0xc400, 0xc402) AM_WRITE(galaxian_background_enable_w) | |
| 1232 | AM_RANGE(0xc403, 0xc403) AM_WRITE(galaxian_noise_enable_w) | |
| 1233 | AM_RANGE(0xc405, 0xc405) AM_WRITE(galaxian_shoot_enable_w) | |
| 1234 | AM_RANGE(0xc406, 0xc407) AM_WRITE(galaxian_vol_w) | |
| 1235 | AM_RANGE(0xc801, 0xc801) AM_WRITE(galaxian_nmi_enable_w) | |
| 1236 | AM_RANGE(0xc804, 0xc804) AM_WRITE(SMH_NOP) // link cut | |
| 1237 | AM_RANGE(0xc806, 0xc806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1238 | AM_RANGE(0xc807, 0xc807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1239 | AM_RANGE(0xcc00, 0xcc00) AM_WRITE(galaxian_pitch_w) | |
| 1240 | ADDRESS_MAP_END | |
| 1241 | ||
| 1242 | static ADDRESS_MAP_START( kkgalax_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1243 | ||
| 1244 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 1245 | AM_RANGE(0x6000, 0x6fff) AM_READ(SMH_RAM) | |
| 1246 | AM_RANGE(0x9000, 0x93ff) AM_READ(galaxian_videoram_r) | |
| 1247 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 1248 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 1249 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 1250 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 1251 | // AM_RANGE(0xcc00, 0xcc00) AM_READ(watchdog_reset_r) | |
| 1252 | ||
| 1253 | ADDRESS_MAP_END | |
| 1254 | ||
| 1255 | static ADDRESS_MAP_START( kkgalax_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1256 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_NOP) | |
| 1257 | AM_RANGE(0x6000, 0x6fff) AM_WRITE(SMH_RAM) | |
| 1258 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 1259 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 1260 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 1261 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 1262 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 1263 | // AM_RANGE(0xc000, 0xc001) AM_WRITE(galaxian_leds_w) | |
| 1264 | // AM_RANGE(0xc002, 0xc002) AM_WRITE(galaxian_coin_lockout_w) | |
| 1265 | // AM_RANGE(0xc003, 0xc003) AM_WRITE(galaxian_coin_counter_w) | |
| 1266 | // AM_RANGE(0xc004, 0xc007) AM_WRITE(galaxian_lfo_freq_w) | |
| 1267 | // AM_RANGE(0xc400, 0xc402) AM_WRITE(galaxian_background_enable_w) | |
| 1268 | // AM_RANGE(0xc403, 0xc403) AM_WRITE(galaxian_noise_enable_w) | |
| 1269 | // AM_RANGE(0xc405, 0xc405) AM_WRITE(galaxian_shoot_enable_w) | |
| 1270 | // AM_RANGE(0xc406, 0xc407) AM_WRITE(galaxian_vol_w) | |
| 1271 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxian_nmi_enable_w) | |
| 1272 | // AM_RANGE(0xc804, 0xc804) AM_WRITE(SMH_NOP) // link cut | |
| 1273 | // AM_RANGE(0xc806, 0xc806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1274 | // AM_RANGE(0xc807, 0xc807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1275 | // AM_RANGE(0xcc00, 0xcc00) AM_WRITE(galaxian_pitch_w) | |
| 1276 | ADDRESS_MAP_END | |
| 1277 | ||
| 1278 | static READ8_HANDLER( hexpoola_data_port_r ) | |
| 450 | static WRITE8_HANDLER( scramble_protection_w ) | |
| 1279 | 451 | { |
| 1280 | switch (activecpu_get_pc()) | |
| 452 | /* | |
| 453 | This is not fully understood; the low 4 bits of port C are | |
| 454 | inputs; the upper 4 bits are outputs. Scramble main set always | |
| 455 | writes sequences of 3 or more nibbles to the low port and | |
| 456 | expects certain results in the upper nibble afterwards. | |
| 457 | */ | |
| 458 | protection_state = (protection_state << 4) | (data & 0x0f); | |
| 459 | switch (protection_state & 0xfff) | |
| 1281 | 460 | { |
| 1282 | case 0x0022: | |
| 1283 | return 0; | |
| 461 | /* scramble */ | |
| 462 | case 0xf09: protection_result = 0xff; break; | |
| 463 | case 0xa49: protection_result = 0xbf; break; | |
| 464 | case 0x319: protection_result = 0x4f; break; | |
| 465 | case 0x5c9: protection_result = 0x6f; break; | |
| 1284 | 466 | |
| 1285 | case 0x0031: | |
| 1286 | return 1; | |
| 467 | /* scrambls */ | |
| 468 | case 0x246: protection_result ^= 0x80; break; | |
| 469 | case 0xb5f: protection_result = 0x6f; break; | |
| 1287 | 470 | } |
| 1288 | ||
| 1289 | return 0; | |
| 1290 | 471 | } |
| 1291 | 472 | |
| 1292 | static ADDRESS_MAP_START( hexpoola_io, ADDRESS_SPACE_IO, 8 ) | |
| 1293 | AM_RANGE(0x00, 0x00) AM_READNOP | |
| 1294 | AM_RANGE(0x20, 0x3f) AM_WRITE(racknrol_tiles_bank_w) AM_BASE(&racknrol_tiles_bank) | |
| 1295 | AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READWRITE(hexpoola_data_port_r, SN76496_0_w) | |
| 1296 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_3_r) | |
| 1297 | ADDRESS_MAP_END | |
| 1298 | 473 | |
| 1299 | #define GAL_IN0\ | |
| 1300 | PORT_START_TAG("IN0")\ | |
| 1301 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )\ | |
| 1302 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )\ | |
| 1303 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY\ | |
| 1304 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY\ | |
| 1305 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )\ | |
| 1306 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) )\ | |
| 1307 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )\ | |
| 1308 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) )\ | |
| 1309 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH )\ | |
| 1310 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 474 | static READ8_HANDLER( scramble_protection_r ) | |
| 475 | { | |
| 476 | return protection_result; | |
| 477 | } | |
| 1311 | 478 | |
| 1312 | #define GAL_IN1\ | |
| 1313 | PORT_START_TAG("IN1")\ | |
| 1314 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )\ | |
| 1315 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )\ | |
| 1316 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL\ | |
| 1317 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL\ | |
| 1318 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 1319 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )\ | |
| 1320 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) )\ | |
| 1321 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) )\ | |
| 1322 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )\ | |
| 1323 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) )\ | |
| 1324 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1325 | 479 | |
| 1326 | static INPUT_PORTS_START( galaxian ) | |
| 1327 | GAL_IN0 | |
| 1328 | GAL_IN1 | |
| 480 | static CUSTOM_INPUT( scramble_protection_alt_r ) | |
| 481 | { | |
| 482 | /* | |
| 483 | There are two additional bits that are derived from bit 7 of | |
| 484 | the protection result. This is just a guess but works well enough | |
| 485 | to boot scrambls. | |
| 486 | */ | |
| 487 | return (protection_result >> 7) & 1; | |
| 488 | } | |
| 1329 | 489 | |
| 1330 | PORT_START_TAG("DSW0") | |
| 1331 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1332 | PORT_DIPSETTING( 0x00, "7000" ) | |
| 1333 | PORT_DIPSETTING( 0x01, "10000" ) | |
| 1334 | PORT_DIPSETTING( 0x02, "12000" ) | |
| 1335 | PORT_DIPSETTING( 0x03, "20000" ) | |
| 1336 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 1337 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1338 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1339 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 1340 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1341 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1342 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1343 | INPUT_PORTS_END | |
| 1344 | 490 | |
| 1345 | static INPUT_PORTS_START( galtaito ) | |
| 1346 | PORT_START_TAG("IN0") | |
| 1347 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1348 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1349 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1350 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1351 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1352 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) ) | |
| 1353 | PORT_DIPSETTING( 0x20, DEF_STR( Upright ) ) | |
| 1354 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1355 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH ) | |
| 1356 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1357 | 491 | |
| 1358 | GAL_IN1 | |
| 492 | /************************************* | |
| 493 | * | |
| 494 | * Explorer I/O | |
| 495 | * | |
| 496 | *************************************/ | |
| 1359 | 497 | |
| 1360 | PORT_START_TAG("DSW0") | |
| 1361 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) ) | |
| 1362 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1363 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 1364 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 1365 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 1366 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1367 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1368 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1369 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 1370 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1371 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1372 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1373 | INPUT_PORTS_END | |
| 498 | static WRITE8_HANDLER( explorer_sound_control_w ) | |
| 499 | { | |
| 500 | cpunum_set_input_line(machine, 1, 0, ASSERT_LINE); | |
| 501 | } | |
| 1374 | 502 | |
| 1375 | static INPUT_PORTS_START( superg ) | |
| 1376 | GAL_IN0 | |
| 1377 | GAL_IN1 | |
| 1378 | 503 | |
| 1379 | PORT_START_TAG("DSW0") | |
| 1380 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) ) | |
| 1381 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1382 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 1383 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 1384 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 1385 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1386 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1387 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1388 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 1389 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1390 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1391 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1392 | INPUT_PORTS_END | |
| 504 | static READ8_HANDLER( explorer_sound_latch_r ) | |
| 505 | { | |
| 506 | cpunum_set_input_line(machine, 1, 0, CLEAR_LINE); | |
| 507 | return soundlatch_r(machine, 0); | |
| 508 | } | |
| 1393 | 509 | |
| 1394 | static INPUT_PORTS_START( swarm ) | |
| 1395 | GAL_IN0 | |
| 1396 | GAL_IN1 | |
| 1397 | 510 | |
| 1398 | PORT_START_TAG("DSW0") | |
| 1399 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1400 | PORT_DIPSETTING( 0x01, "10000" ) | |
| 1401 | PORT_DIPSETTING( 0x02, "20000" ) | |
| 1402 | PORT_DIPSETTING( 0x03, "40000" ) | |
| 1403 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1404 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1405 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1406 | PORT_DIPSETTING( 0x04, "4" ) | |
| 1407 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Difficulty ) ) /* aliens "flying" simultaneously */ | |
| 1408 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) /* less aliens */ | |
| 1409 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) /* more aliens */ | |
| 1410 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1411 | INPUT_PORTS_END | |
| 1412 | 511 | |
| 1413 | static INPUT_PORTS_START( gmgalax ) | |
| 1414 | PORT_START_TAG("GMIN0") /* Ghost Muncher - IN0 */ | |
| 1415 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1416 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_4WAY PORT_COCKTAIL | |
| 1417 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1418 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1419 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1420 | PORT_DIPNAME( 0x20, 0x00, "Ghost Muncher - Cabinet" ) PORT_CONDITION("FAKE",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 1421 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1422 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 1423 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1424 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 512 | /************************************* | |
| 513 | * | |
| 514 | * SF-X I/O | |
| 515 | * | |
| 516 | *************************************/ | |
| 1425 | 517 | |
| 1426 | PORT_START_TAG("GMIN1") /* Ghost Muncher - IN1 */ | |
| 1427 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1428 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1429 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1430 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1431 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1432 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1433 | PORT_DIPNAME( 0xc0, 0x40, "Ghost Muncher - Bonus Life" ) PORT_CONDITION("FAKE",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 1434 | PORT_DIPSETTING( 0x40, "10000" ) | |
| 1435 | PORT_DIPSETTING( 0x80, "15000" ) | |
| 1436 | PORT_DIPSETTING( 0xc0, "20000" ) | |
| 1437 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 518 | static READ8_HANDLER( sfx_sample_io_r ) | |
| 519 | { | |
| 520 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 521 | UINT8 result = 0xff; | |
| 522 | if (offset & 0x04) result &= ppi8255_2_r(machine, offset & 3); | |
| 523 | return result; | |
| 524 | } | |
| 1438 | 525 | |
| 1439 | PORT_START_TAG("GMDSW0") /* Ghost Muncher - DSW0 */ | |
| 1440 | PORT_DIPNAME( 0x03, 0x02, "Ghost Muncher - Coinage" ) PORT_CONDITION("FAKE",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 1441 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 1442 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 1443 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) | |
| 1444 | PORT_DIPSETTING( 0x03, DEF_STR( Free_Play ) ) | |
| 1445 | PORT_DIPNAME( 0x0c, 0x04, "Ghost Muncher - Lives" ) PORT_CONDITION("FAKE",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 1446 | PORT_DIPSETTING( 0x0c, "1" ) | |
| 1447 | PORT_DIPSETTING( 0x08, "2" ) | |
| 1448 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1449 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1450 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1451 | 526 | |
| 1452 | PORT_START_TAG("IN0") /* Galaxian - IN0 */ | |
| 1453 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1454 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1455 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1456 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1457 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1458 | PORT_DIPNAME( 0x20, 0x00, "Galaxian - Cabinet" ) PORT_CONDITION("FAKE",0x01,PORTCOND_EQUALS,0x01) | |
| 1459 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1460 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 1461 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH ) | |
| 1462 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 527 | static WRITE8_HANDLER( sfx_sample_io_w ) | |
| 528 | { | |
| 529 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 530 | if (offset & 0x04) ppi8255_2_w(machine, offset & 3, data); | |
| 531 | if (offset & 0x10) DAC_0_signed_data_w(machine, offset, data); | |
| 532 | } | |
| 1463 | 533 | |
| 1464 | PORT_START_TAG("IN1") /* Galaxian - IN1 */ | |
| 1465 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1466 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1467 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1468 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1469 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1470 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1471 | PORT_DIPNAME( 0xc0, 0x00, "Galaxian - Coinage" ) PORT_CONDITION("FAKE",0x01,PORTCOND_EQUALS,0x01) | |
| 1472 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 1473 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1474 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 1475 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1476 | 534 | |
| 1477 | PORT_START_TAG("DSW0") /* Galaxian - DSW0 */ | |
| 1478 | PORT_DIPNAME( 0x03, 0x01, "Galaxian - Bonus Life" ) PORT_CONDITION("FAKE",0x01,PORTCOND_EQUALS,0x01) | |
| 1479 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 1480 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 1481 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 1482 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1483 | PORT_DIPNAME( 0x04, 0x00, "Galaxian - Lives" ) PORT_CONDITION("FAKE",0x01,PORTCOND_EQUALS,0x01) | |
| 1484 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1485 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1486 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 1487 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1488 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1489 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 535 | static WRITE8_HANDLER( sfx_sample_control_w ) | |
| 536 | { | |
| 537 | UINT8 old = sfx_sample_control; | |
| 538 | sfx_sample_control = data; | |
| 1490 | 539 | |
| 1491 | PORT_START_TAG("FAKE") /* fake - game select */ | |
| 1492 | PORT_BIT( 0x01, 0x00, IPT_DIPSWITCH_NAME ) PORT_NAME("Game Select") PORT_CODE(KEYCODE_F1) PORT_TOGGLE | |
| 1493 | PORT_DIPSETTING( 0x00, "Ghost Muncher" ) | |
| 1494 | PORT_DIPSETTING( 0x01, "Galaxian" ) | |
| 1495 | INPUT_PORTS_END | |
| 540 | /* the inverse of bit 0 clocks the flip flop to signal an INT */ | |
| 541 | /* it is automatically cleared on the acknowledge */ | |
| 542 | if ((old & 0x01) && !(data & 0x01)) | |
| 543 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE); | |
| 544 | } | |
| 1496 | 545 | |
| 1497 | static INPUT_PORTS_START( zerotime ) | |
| 1498 | GAL_IN0 | |
| 1499 | PORT_START_TAG("IN1") | |
| 1500 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1501 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1502 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1503 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1504 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1505 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1506 | PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Coinage ) ) | |
| 1507 | PORT_DIPSETTING( 0x40, "A 1C/1C 2C/2C B 1C/2C" ) | |
| 1508 | PORT_DIPSETTING( 0xc0, "A 1C/1C 2C/3C B 1C/3C" ) | |
| 1509 | PORT_DIPSETTING( 0x00, "A 1C/2C 2C/4C B 1C/4C" ) | |
| 1510 | PORT_DIPSETTING( 0x80, "A 1C/2C 2C/5C B 1C/5C" ) | |
| 1511 | 546 | |
| 1512 | PORT_START_TAG("DSW0") | |
| 1513 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Bonus_Life ) ) | |
| 1514 | PORT_DIPSETTING( 0x03, "6000" ) | |
| 1515 | PORT_DIPSETTING( 0x02, "7000" ) | |
| 1516 | PORT_DIPSETTING( 0x01, "9000" ) | |
| 1517 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1518 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1519 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1520 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1521 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Difficulty ) ) /* player's bullet speed */ | |
| 1522 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) /* gap of 6 pixels */ | |
| 1523 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) /* gap of 8 pixels */ | |
| 1524 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1525 | INPUT_PORTS_END | |
| 547 | static const ppi8255_interface sfx_ppi8255_intf = | |
| 548 | { | |
| 549 | 3, | |
| 550 | { konami_porta_0_r, NULL, soundlatch2_r }, /* Port A read */ | |
| 551 | { konami_portb_0_r, NULL, NULL }, /* Port B read */ | |
| 552 | { konami_portc_0_r, konami_portc_1_r, NULL }, /* Port C read */ | |
| 553 | { NULL, soundlatch_w, NULL }, /* Port A write */ | |
| 554 | { NULL, konami_sound_control_w, NULL }, /* Port B write */ | |
| 555 | { konami_portc_0_w, konami_portc_1_w, NULL }, /* Port C write */ | |
| 556 | }; | |
| 1526 | 557 | |
| 1527 | #define PISCES_COMMON\ | |
| 1528 | PORT_START_TAG("IN0")\ | |
| 1529 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 )\ | |
| 1530 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 )\ | |
| 1531 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY\ | |
| 1532 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY\ | |
| 1533 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )\ | |
| 1534 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )\ | |
| 1535 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED )\ | |
| 1536 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )\ | |
| 1537 | PORT_START_TAG("IN1")\ | |
| 1538 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )\ | |
| 1539 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )\ | |
| 1540 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL\ | |
| 1541 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL\ | |
| 1542 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 1543 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )\ | |
| 1544 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Lives ) )\ | |
| 1545 | PORT_DIPSETTING( 0x00, "3" )\ | |
| 1546 | PORT_DIPSETTING( 0x40, "4" )\ | |
| 1547 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) )\ | |
| 1548 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )\ | |
| 1549 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 1550 | 558 | |
| 1551 | 559 | |
| 1552 | static INPUT_PORTS_START( pisces ) | |
| 1553 | PISCES_COMMON | |
| 560 | /************************************* | |
| 561 | * | |
| 562 | * Frogger I/O | |
| 563 | * | |
| 564 | *************************************/ | |
| 1554 | 565 | |
| 1555 | PORT_START_TAG("DSW0") | |
| 1556 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1557 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 1558 | PORT_DIPSETTING( 0x01, "20000" ) | |
| 1559 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) ) | |
| 1560 | PORT_DIPSETTING( 0x02, "A 2C/1C B 1C/3C" ) | |
| 1561 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/6C" ) | |
| 1562 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Difficulty ) ) | |
| 1563 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 1564 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 1565 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 1566 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1567 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1568 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1569 | INPUT_PORTS_END | |
| 566 | static READ8_HANDLER( frogger_ppi8255_r ) | |
| 567 | { | |
| 568 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 569 | UINT8 result = 0xff; | |
| 570 | if (offset & 0x1000) result &= ppi8255_1_r(machine, (offset >> 1) & 3); | |
| 571 | if (offset & 0x2000) result &= ppi8255_0_r(machine, (offset >> 1) & 3); | |
| 572 | return result; | |
| 573 | } | |
| 1570 | 574 | |
| 1571 | /* Same as 'pisces', but different "Coinage" Dip Switch */ | |
| 1572 | static INPUT_PORTS_START( piscesb ) | |
| 1573 | PISCES_COMMON | |
| 1574 | PORT_START_TAG("DSW0") | |
| 1575 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1576 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 1577 | PORT_DIPSETTING( 0x01, "20000" ) | |
| 1578 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) ) | |
| 1579 | PORT_DIPSETTING( 0x02, "A 2C/1C B 1C/2C 2C/5C" ) | |
| 1580 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/5C" ) | |
| 1581 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Difficulty ) ) | |
| 1582 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 1583 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 1584 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 1585 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1586 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1587 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1588 | INPUT_PORTS_END | |
| 1589 | 575 | |
| 1590 | #define GTEIKOB_COMMON\ | |
| 1591 | PORT_START_TAG("IN0")\ | |
| 1592 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )\ | |
| 1593 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )\ | |
| 1594 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY\ | |
| 1595 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY\ | |
| 1596 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )\ | |
| 1597 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )\ | |
| 1598 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not tested due to code removed at 0x00ab, 0x1b26 and 0x1c97*/\ | |
| 1599 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not tested due to code removed at 0x1901*/\ | |
| 1600 | PORT_START_TAG("IN1")\ | |
| 1601 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )\ | |
| 1602 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )\ | |
| 1603 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL\ | |
| 1604 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL\ | |
| 1605 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 1606 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )\ | |
| 1607 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) )\ | |
| 1608 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) )\ | |
| 1609 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) )\ | |
| 1610 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) )\ | |
| 1611 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) )\ | |
| 1612 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 576 | static WRITE8_HANDLER( frogger_ppi8255_w ) | |
| 577 | { | |
| 578 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 579 | if (offset & 0x1000) ppi8255_1_w(machine, (offset >> 1) & 3, data); | |
| 580 | if (offset & 0x2000) ppi8255_0_w(machine, (offset >> 1) & 3, data); | |
| 581 | } | |
| 1613 | 582 | |
| 1614 | static INPUT_PORTS_START( gteikokb ) | |
| 1615 | GTEIKOB_COMMON | |
| 1616 | PORT_START_TAG("DSW0") | |
| 1617 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1618 | PORT_DIPSETTING( 0x00, "7000" ) | |
| 1619 | PORT_DIPSETTING( 0x01, DEF_STR( None ) ) | |
| 1620 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) // Not read due to code at 0x012b | |
| 1621 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1622 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1623 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1624 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1625 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1626 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1627 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1628 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1629 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1630 | INPUT_PORTS_END | |
| 1631 | 583 | |
| 1632 | /* same as gteikokb with cabinet reversed */ | |
| 1633 | static INPUT_PORTS_START( gteikob2 ) | |
| 1634 | GTEIKOB_COMMON | |
| 1635 | PORT_START_TAG("DSW0") | |
| 1636 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1637 | PORT_DIPSETTING( 0x00, "7000" ) | |
| 1638 | PORT_DIPSETTING( 0x01, DEF_STR( None ) ) | |
| 1639 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) // Not read due to code at 0x012b | |
| 1640 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1641 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1642 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1643 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1644 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1645 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Cabinet ) ) | |
| 1646 | PORT_DIPSETTING( 0x08, DEF_STR( Upright ) ) | |
| 1647 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1648 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1649 | INPUT_PORTS_END | |
| 584 | static READ8_HANDLER( frogger_ay8910_r ) | |
| 585 | { | |
| 586 | /* the decoding here is very simplistic */ | |
| 587 | UINT8 result = 0xff; | |
| 588 | if (offset & 0x40) result &= AY8910_read_port_0_r(machine, 0); | |
| 589 | return result; | |
| 590 | } | |
| 1650 | 591 | |
| 1651 | static INPUT_PORTS_START( spacbatt ) | |
| 1652 | GAL_IN0 | |
| 1653 | 592 | |
| 1654 | PORT_START_TAG("IN1") | |
| 1655 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1656 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1657 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1658 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1659 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1660 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1661 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 1662 | PORT_DIPSETTING( 0x40, "A 2C/1C B 1C/3C" ) | |
| 1663 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/6C" ) | |
| 1664 | PORT_DIPSETTING( 0x80, "A 1C/2C B 1C/6C" ) | |
| 1665 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 593 | static WRITE8_HANDLER( frogger_ay8910_w ) | |
| 594 | { | |
| 595 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 596 | if (offset & 0x80) AY8910_control_port_0_w(machine, 0, data); | |
| 597 | if (offset & 0x40) AY8910_write_port_0_w(machine, 0, data); | |
| 598 | } | |
| 1666 | 599 | |
| 1667 | PORT_START_TAG("DSW0") | |
| 1668 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) ) | |
| 1669 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 1670 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 1671 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 1672 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1673 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1674 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1675 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1676 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 1677 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1678 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1679 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1680 | INPUT_PORTS_END | |
| 1681 | 600 | |
| 1682 | static INPUT_PORTS_START( batman2 ) | |
| 1683 | PORT_START_TAG("IN0") | |
| 1684 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1685 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1686 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1687 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1688 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1689 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1690 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1691 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 601 | static READ8_HANDLER( frogger_sound_timer_r ) | |
| 602 | { | |
| 603 | /* same as regular Konami sound but with bits 3,5 swapped */ | |
| 604 | UINT8 konami_value = konami_sound_timer_r(machine, 0); | |
| 605 | return BITSWAP8(konami_value, 7,6,3,4,5,2,1,0); | |
| 606 | } | |
| 1692 | 607 | |
| 1693 | PORT_START_TAG("IN1") | |
| 1694 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1695 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1696 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1697 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1698 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1699 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1700 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 1701 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 1702 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 1703 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) ) | |
| 1704 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 1705 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 1706 | 608 | |
| 1707 | PORT_START_TAG("DSW0") | |
| 1708 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1709 | PORT_DIPSETTING( 0x00, "30000" ) | |
| 1710 | PORT_DIPSETTING( 0x01, "50000" ) | |
| 1711 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) | |
| 1712 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1713 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1714 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1715 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1716 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1717 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1718 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1719 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1720 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1721 | INPUT_PORTS_END | |
| 609 | static WRITE8_HANDLER( froggrmc_sound_control_w ) | |
| 610 | { | |
| 611 | cpunum_set_input_line(machine, 1, 0, (data & 1) ? CLEAR_LINE : ASSERT_LINE); | |
| 612 | } | |
| 1722 | 613 | |
| 1723 | static INPUT_PORTS_START( warofbug ) | |
| 1724 | PORT_START_TAG("IN0") | |
| 1725 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1726 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1727 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1728 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1729 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1730 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 1731 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1732 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 1733 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1734 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1735 | 614 | |
| 1736 | PORT_START_TAG("IN1") | |
| 1737 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1738 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1739 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1740 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1741 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1742 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1743 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 1744 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 1745 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1746 | // PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 1747 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1748 | 615 | |
| 1749 | PORT_START_TAG("DSW0") | |
| 1750 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 1751 | PORT_DIPSETTING( 0x00, "1" ) | |
| 1752 | PORT_DIPSETTING( 0x01, "2" ) | |
| 1753 | PORT_DIPSETTING( 0x02, "3" ) | |
| 1754 | PORT_DIPSETTING( 0x03, "4" ) | |
| 1755 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) | |
| 1756 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1757 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1758 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) | |
| 1759 | PORT_DIPSETTING( 0x08, "500000" ) | |
| 1760 | PORT_DIPSETTING( 0x00, "750000" ) | |
| 1761 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1762 | INPUT_PORTS_END | |
| 616 | /************************************* | |
| 617 | * | |
| 618 | * Frog (Falcon) I/O | |
| 619 | * | |
| 620 | *************************************/ | |
| 1763 | 621 | |
| 1764 | static INPUT_PORTS_START( redufo ) | |
| 1765 | GAL_IN0 | |
| 622 | static READ8_HANDLER( frogf_ppi8255_r ) | |
| 623 | { | |
| 624 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 625 | UINT8 result = 0xff; | |
| 626 | if (offset & 0x1000) result &= ppi8255_0_r(machine, (offset >> 3) & 3); | |
| 627 | if (offset & 0x2000) result &= ppi8255_1_r(machine, (offset >> 3) & 3); | |
| 628 | return result; | |
| 629 | } | |
| 1766 | 630 | |
| 1767 | PORT_START_TAG("IN1") | |
| 1768 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1769 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1770 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1771 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1772 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1773 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1774 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 1775 | PORT_DIPSETTING( 0x40, "A 2C/1C B 1C/3C" ) | |
| 1776 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/6C" ) | |
| 1777 | PORT_DIPSETTING( 0x80, "A 1C/2C B 1C/12C" ) | |
| 1778 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1779 | 631 | |
| 1780 | PORT_START_TAG("DSW0") | |
| 1781 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) ) | |
| 1782 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 1783 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 1784 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 1785 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1786 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1787 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1788 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1789 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1790 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1791 | INPUT_PORTS_END | |
| 632 | static WRITE8_HANDLER( frogf_ppi8255_w ) | |
| 633 | { | |
| 634 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 635 | if (offset & 0x1000) ppi8255_0_w(machine, (offset >> 3) & 3, data); | |
| 636 | if (offset & 0x2000) ppi8255_1_w(machine, (offset >> 3) & 3, data); | |
| 637 | } | |
| 1792 | 638 | |
| 1793 | static INPUT_PORTS_START( exodus ) | |
| 1794 | PORT_START_TAG("IN0") | |
| 1795 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1796 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1797 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1798 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1799 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1800 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1801 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH ) | |
| 1802 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) // Not tested due to code removed at 0x1901 and 0x191a | |
| 1803 | 639 | |
| 1804 | PORT_START_TAG("IN1") | |
| 1805 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1806 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1807 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1808 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1809 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1810 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1811 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_B ) ) | |
| 1812 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 1813 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 1814 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_A ) ) | |
| 1815 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 1816 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 1817 | 640 | |
| 1818 | PORT_START_TAG("DSW0") | |
| 1819 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1820 | PORT_DIPSETTING( 0x00, "7000" ) | |
| 1821 | PORT_DIPSETTING( 0x01, DEF_STR( None ) ) | |
| 1822 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) // Not read due to code at 0x012b | |
| 1823 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1824 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1825 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1826 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1827 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1828 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1829 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1830 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1831 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1832 | INPUT_PORTS_END | |
| 641 | /************************************* | |
| 642 | * | |
| 643 | * Turtles I/O | |
| 644 | * | |
| 645 | *************************************/ | |
| 1833 | 646 | |
| 1834 | static INPUT_PORTS_START( streakng ) | |
| 1835 | PORT_START_TAG("IN0") | |
| 1836 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1837 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_4WAY PORT_COCKTAIL | |
| 1838 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1839 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1840 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1841 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 1842 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1843 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 1844 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1845 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 647 | static READ8_HANDLER( turtles_ppi8255_0_r ) { return ppi8255_0_r(machine, (offset >> 4) & 3); } | |
| 648 | static READ8_HANDLER( turtles_ppi8255_1_r ) { return ppi8255_1_r(machine, (offset >> 4) & 3); } | |
| 649 | static WRITE8_HANDLER( turtles_ppi8255_0_w ) { ppi8255_0_w(machine, (offset >> 4) & 3, data); } | |
| 650 | static WRITE8_HANDLER( turtles_ppi8255_1_w ) { ppi8255_1_w(machine, (offset >> 4) & 3, data); } | |
| 1846 | 651 | |
| 1847 | PORT_START_TAG("IN1") | |
| 1848 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1849 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1850 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1851 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1852 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1853 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1854 | PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Bonus_Life ) ) | |
| 1855 | PORT_DIPSETTING( 0x40, "10000" ) | |
| 1856 | PORT_DIPSETTING( 0x80, "15000" ) | |
| 1857 | PORT_DIPSETTING( 0xc0, "20000" ) | |
| 1858 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1859 | 652 | |
| 1860 | PORT_START_TAG("DSW0") | |
| 1861 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coinage ) ) | |
| 1862 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 1863 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 1864 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) | |
| 1865 | PORT_DIPSETTING( 0x03, DEF_STR( Free_Play ) ) | |
| 1866 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) ) | |
| 1867 | PORT_DIPSETTING( 0x0c, "1" ) | |
| 1868 | PORT_DIPSETTING( 0x08, "2" ) | |
| 1869 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1870 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1871 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1872 | INPUT_PORTS_END | |
| 1873 | 653 | |
| 1874 | static INPUT_PORTS_START( pacmanbl ) | |
| 1875 | PORT_START_TAG("IN0") | |
| 1876 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1877 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1878 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1879 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1880 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1881 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1882 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 1883 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 654 | /************************************* | |
| 655 | * | |
| 656 | * Scorpion sound I/O | |
| 657 | * | |
| 658 | *************************************/ | |
| 1884 | 659 | |
| 1885 | PORT_START_TAG("IN1") | |
| 1886 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1887 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1888 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1889 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1890 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1891 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1892 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 1893 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 1894 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 1895 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) ) | |
| 1896 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 1897 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 660 | static READ8_HANDLER( scorpion_ay8910_r ) | |
| 661 | { | |
| 662 | /* the decoding here is very simplistic, and you can address both simultaneously */ | |
| 663 | UINT8 result = 0xff; | |
| 664 | if (offset & 0x08) result &= AY8910_read_port_2_r(machine, 0); | |
| 665 | if (offset & 0x20) result &= AY8910_read_port_0_r(machine, 0); | |
| 666 | if (offset & 0x80) result &= AY8910_read_port_1_r(machine, 0); | |
| 667 | return result; | |
| 668 | } | |
| 1898 | 669 | |
| 1899 | PORT_START_TAG("DSW0") | |
| 1900 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1901 | PORT_DIPSETTING( 0x00, "15000" ) | |
| 1902 | PORT_DIPSETTING( 0x01, "20000" ) | |
| 1903 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Difficulty ) ) | |
| 1904 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 1905 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 1906 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1907 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1908 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1909 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1910 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1911 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1912 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1913 | INPUT_PORTS_END | |
| 1914 | 670 | |
| 1915 | static INPUT_PORTS_START( devilfsg ) | |
| 1916 | PORT_START_TAG("IN0") | |
| 1917 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1918 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1919 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1920 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1921 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1922 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1923 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 1924 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 671 | static WRITE8_HANDLER( scorpion_ay8910_w ) | |
| 672 | { | |
| 673 | /* the decoding here is very simplistic, and you can address all six simultaneously */ | |
| 674 | if (offset & 0x04) AY8910_control_port_2_w(machine, 0, data); | |
| 675 | if (offset & 0x08) AY8910_write_port_2_w(machine, 0, data); | |
| 676 | if (offset & 0x10) AY8910_control_port_0_w(machine, 0, data); | |
| 677 | if (offset & 0x20) AY8910_write_port_0_w(machine, 0, data); | |
| 678 | if (offset & 0x40) AY8910_control_port_1_w(machine, 0, data); | |
| 679 | if (offset & 0x80) AY8910_write_port_1_w(machine, 0, data); | |
| 680 | } | |
| 1925 | 681 | |
| 1926 | PORT_START_TAG("IN1") | |
| 1927 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1928 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1929 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1930 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1931 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1932 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1933 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 1934 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 1935 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 1936 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) ) | |
| 1937 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 1938 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 1939 | 682 | |
| 1940 | PORT_START_TAG("DSW0") | |
| 1941 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1942 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 1943 | PORT_DIPSETTING( 0x01, "15000" ) | |
| 1944 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1945 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1946 | PORT_DIPSETTING( 0x00, "4" ) | |
| 1947 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1948 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1949 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1950 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1951 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1952 | INPUT_PORTS_END | |
| 683 | static READ8_HANDLER( scorpion_protection_r ) | |
| 684 | { | |
| 685 | UINT16 paritybits; | |
| 686 | UINT8 parity = 0; | |
| 1953 | 687 | |
| 1954 | static INPUT_PORTS_START( zigzag ) | |
| 1955 | PORT_START_TAG("IN0") | |
| 1956 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1957 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1958 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1959 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1960 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1961 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 1962 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1963 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 688 | /* compute parity of the current (bitmask & $CE29) */ | |
| 689 | for (paritybits = protection_state & 0xce29; paritybits != 0; paritybits >>= 1) | |
| 690 | if (paritybits & 1) | |
| 691 | parity++; | |
| 1964 | 692 | |
| 1965 | PORT_START_TAG("IN1") | |
| 1966 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1967 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1968 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1969 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1970 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1971 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 1972 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 1973 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 1974 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1975 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 1976 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 693 | /* only the low bit matters for protection, but bit 2 is also checked */ | |
| 694 | return parity; | |
| 695 | } | |
| 1977 | 696 | |
| 1978 | PORT_START_TAG("DSW0") | |
| 1979 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) | |
| 1980 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1981 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1982 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet ) ) | |
| 1983 | PORT_DIPSETTING( 0x02, DEF_STR( Upright ) ) | |
| 1984 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1985 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1986 | PORT_DIPSETTING( 0x00, "10000 60000" ) | |
| 1987 | PORT_DIPSETTING( 0x04, "20000 60000" ) | |
| 1988 | PORT_DIPSETTING( 0x08, "30000 60000" ) | |
| 1989 | PORT_DIPSETTING( 0x0c, "40000 60000" ) | |
| 1990 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1991 | INPUT_PORTS_END | |
| 1992 | 697 | |
| 1993 | static INPUT_PORTS_START( scramblb ) | |
| 1994 | PORT_START_TAG("IN0") | |
| 1995 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1996 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1997 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1998 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1999 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2000 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 2001 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2002 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 698 | static WRITE8_HANDLER( scorpion_protection_w ) | |
| 699 | { | |
| 700 | /* bit 5 low is a reset */ | |
| 701 | if (!(data & 0x20)) | |
| 702 | protection_state = 0x0000; | |
| 2003 | 703 | |
| 2004 | PORT_START_TAG("IN1") | |
| 2005 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2006 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2007 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2008 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2009 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2010 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2011 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 2012 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2013 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 2014 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 704 | /* bit 4 low is a clock */ | |
| 705 | if (!(data & 0x10)) | |
| 706 | { | |
| 707 | /* each clock shifts left one bit and ORs in the inverse of the parity */ | |
| 708 | protection_state = (protection_state << 1) | (~scorpion_protection_r(machine, 0) & 1); | |
| 709 | } | |
| 710 | } | |
| 2015 | 711 | |
| 2016 | PORT_START_TAG("IN2") | |
| 2017 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) | |
| 2018 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2019 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) | |
| 2020 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) | |
| 2021 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) ) | |
| 2022 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Lives ) ) | |
| 2023 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2024 | PORT_DIPSETTING( 0x04, "4" ) | |
| 2025 | PORT_DIPSETTING( 0x08, "5" ) | |
| 2026 | PORT_DIPSETTING( 0x0c, "255 (Cheat)") | |
| 2027 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2028 | INPUT_PORTS_END | |
| 2029 | 712 | |
| 713 | static READ8_HANDLER( scorpion_sound_status_r ) | |
| 714 | { | |
| 715 | logerror("%04X:scorpion_sound_status_r()\n", safe_activecpu_get_pc()); | |
| 716 | return 1; | |
| 717 | } | |
| 2030 | 718 | |
| 2031 | /* the cocktail controls only seem to be used in upright mode, is the flip flag wrong for this bootleg? */ | |
| 2032 | static INPUT_PORTS_START( scramb2 ) | |
| 2033 | PORT_START_TAG("IN0") | |
| 2034 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 2035 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 2036 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2037 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 2038 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2039 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 2040 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) | |
| 2041 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 2042 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2043 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2044 | 719 | |
| 2045 | PORT_START_TAG("IN1") | |
| 2046 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 2047 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2048 | PORT_DIPSETTING( 0x01, "4" ) | |
| 2049 | PORT_DIPSETTING( 0x02, "5" ) | |
| 2050 | PORT_DIPSETTING( 0x03, "255 (Cheat)") | |
| 2051 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2052 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2053 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2054 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2055 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2056 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 720 | static WRITE8_HANDLER( scorpion_sound_data_w ) | |
| 721 | { | |
| 722 | scorpion_sound_data = data; | |
| 723 | // logerror("%04X:scorpion_sound_data_w(%02X)\n", safe_activecpu_get_pc(), data); | |
| 724 | } | |
| 2057 | 725 | |
| 2058 | PORT_START_TAG("IN2") | |
| 2059 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2060 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 2061 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2062 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) | |
| 2063 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_3C ) ) | |
| 2064 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_4C ) ) | |
| 2065 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 2066 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2067 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 2068 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2069 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 2070 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 2071 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2072 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2073 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) | |
| 2074 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 2075 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 2076 | INPUT_PORTS_END | |
| 2077 | 726 | |
| 727 | static WRITE8_HANDLER( scorpion_sound_control_w ) | |
| 728 | { | |
| 729 | if (!(data & 0x04)) | |
| 730 | mame_printf_debug("Secondary sound = %02X\n", scorpion_sound_data); | |
| 731 | // logerror("%04X:scorpion_sound_control_w(%02X)\n", safe_activecpu_get_pc(), data); | |
| 732 | } | |
| 2078 | 733 | |
| 2079 | static INPUT_PORTS_START( jumpbug ) | |
| 2080 | PORT_START_TAG("IN0") | |
| 2081 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2082 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 2083 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 2084 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2085 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2086 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 2087 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2088 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 2089 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2090 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2091 | 734 | |
| 2092 | PORT_START_TAG("IN1") | |
| 2093 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2094 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2095 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2096 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2097 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2098 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2099 | PORT_DIPNAME( 0x40, 0x00, "Difficulty ?" ) | |
| 2100 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 2101 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) | |
| 2102 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2103 | 735 | |
| 2104 | PORT_START_TAG("DSW0") | |
| 2105 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 2106 | PORT_DIPSETTING( 0x01, "3" ) | |
| 2107 | PORT_DIPSETTING( 0x02, "4" ) | |
| 2108 | PORT_DIPSETTING( 0x03, "5" ) | |
| 2109 | PORT_DIPSETTING( 0x00, "Infinite (Cheat)") | |
| 2110 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coinage ) ) | |
| 2111 | PORT_DIPSETTING( 0x04, "A 2C/1C B 2C/1C" ) | |
| 2112 | PORT_DIPSETTING( 0x08, "A 2C/1C B 1C/3C" ) | |
| 2113 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/1C" ) | |
| 2114 | PORT_DIPSETTING( 0x0c, "A 1C/1C B 1C/6C" ) | |
| 2115 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2116 | INPUT_PORTS_END | |
| 736 | /************************************* | |
| 737 | * | |
| 738 | * Ghostmuncher Galaxian I/O | |
| 739 | * | |
| 740 | *************************************/ | |
| 2117 | 741 | |
| 2118 | static INPUT_PORTS_START( levers ) | |
| 2119 | PORT_START_TAG("IN0") | |
| 2120 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2121 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 2122 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 2123 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 2124 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2125 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2126 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 2127 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 742 | static INPUT_CHANGED( gmgalax_game_changed ) | |
| 743 | { | |
| 744 | /* new value is the selected game */ | |
| 745 | gmgalax_selected_game = newval; | |
| 2128 | 746 | |
| 2129 | PORT_START_TAG("IN1") | |
| 2130 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2131 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2132 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 2133 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 2134 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2135 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2136 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2137 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 747 | /* select the bank and graphics bank based on it */ | |
| 748 | memory_set_bank(1, gmgalax_selected_game); | |
| 749 | galaxian_gfxbank_w(machine, 0, gmgalax_selected_game); | |
| 2138 | 750 | |
| 2139 | PORT_START_TAG("DSW0") | |
| 2140 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) /* probably unused */ | |
| 2141 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 2142 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2143 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) /* probably unused */ | |
| 2144 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 2145 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2146 | PORT_DIPNAME( 0x04, 0x00, "Leave On") /* used - MUST be ON */ | |
| 2147 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 2148 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2149 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Free_Play ) ) | |
| 2150 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2151 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 2152 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) /* probably unused */ | |
| 2153 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 2154 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2155 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) /* probably unused */ | |
| 2156 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 2157 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2158 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) /* probably unused */ | |
| 2159 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2160 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2161 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) /* probably unused */ | |
| 2162 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2163 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2164 | INPUT_PORTS_END | |
| 751 | /* reset the starts */ | |
| 752 | galaxian_stars_enable_w(machine, 0, 0); | |
| 2165 | 753 | |
| 2166 | static INPUT_PORTS_START( azurian ) | |
| 2167 | PORT_START_TAG("IN0") | |
| 2168 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2169 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2170 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2171 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 2172 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2173 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2174 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2175 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 754 | /* reset the CPU */ | |
| 755 | cpunum_set_input_line(machine, 0, INPUT_LINE_RESET, PULSE_LINE); | |
| 756 | } | |
| 2176 | 757 | |
| 2177 | PORT_START_TAG("IN1") | |
| 2178 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2179 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2180 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2181 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 2182 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2183 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2184 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* "linked" with bit 2 of IN2 */ | |
| 2185 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Lives ) ) | |
| 2186 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2187 | PORT_DIPSETTING( 0x80, "5" ) | |
| 2188 | 758 | |
| 2189 | PORT_START_TAG("IN2") | |
| 2190 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Coinage ) ) | |
| 2191 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 2192 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2193 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2194 | PORT_DIPSETTING( 0x00, "5000" ) | |
| 2195 | PORT_DIPSETTING( 0x02, "7000" ) | |
| 2196 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* "linked" with bit 6 of IN1 */ | |
| 2197 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 2198 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2199 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 2200 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 759 | static CUSTOM_INPUT( gmgalax_port_r ) | |
| 760 | { | |
| 761 | const char *portname = param; | |
| 762 | if (gmgalax_selected_game != 0) | |
| 763 | portname += strlen(portname) + 1; | |
| 764 | return readinputportbytag(portname); | |
| 765 | } | |
| 2201 | 766 | |
| 2202 | PORT_START_TAG("FAKE") /* fake port to handle routine at 0x05b3 that stores value at 0x40f4 */ | |
| 2203 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Difficulty ) ) | |
| 2204 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 2205 | PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) | |
| 2206 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 2207 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) | |
| 2208 | INPUT_PORTS_END | |
| 2209 | 767 | |
| 2210 | static INPUT_PORTS_START( orbitron ) | |
| 2211 | PORT_START_TAG("IN0") | |
| 2212 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2213 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2214 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 2215 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2216 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2217 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2218 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 2219 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2220 | 768 | |
| 2221 | PORT_START_TAG("IN1") | |
| 2222 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2223 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2224 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2225 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2226 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2227 | PORT_DIPNAME( 0x60, 0x40, DEF_STR( Coinage ) ) /* Routine at 0x00e1 */ | |
| 2228 | PORT_DIPSETTING( 0x00, "A 2C/1C B 1C/3C" ) | |
| 2229 | // PORT_DIPSETTING( 0x20, "A 2C/1C B 1C/3C" ) | |
| 2230 | PORT_DIPSETTING( 0x40, "A 1C/1C B 1C/6C" ) | |
| 2231 | // PORT_DIPSETTING( 0x60, "A 1C/1C B 1C/6C" ) | |
| 2232 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 769 | /************************************* | |
| 770 | * | |
| 771 | * Zig Zag I/O | |
| 772 | * | |
| 773 | *************************************/ | |
| 2233 | 774 | |
| 2234 | PORT_START_TAG("DSW0") | |
| 2235 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unused ) ) | |
| 2236 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2237 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 2238 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) | |
| 2239 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2240 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 2241 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 2242 | PORT_DIPSETTING( 0x04, "2" ) | |
| 2243 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2244 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 2245 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2246 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 2247 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2248 | INPUT_PORTS_END | |
| 775 | static WRITE8_HANDLER( zigzag_bankswap_w ) | |
| 776 | { | |
| 777 | memory_set_bank(1, data & 1); | |
| 778 | memory_set_bank(2, ~data & 1); | |
| 779 | } | |
| 2249 | 780 | |
| 2250 | static INPUT_PORTS_START( blkhole ) | |
| 2251 | PORT_START_TAG("IN0") | |
| 2252 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2253 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2254 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 2255 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 2256 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2257 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2258 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2259 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2260 | 781 | |
| 2261 | PORT_START_TAG("IN1") | |
| 2262 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2263 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2264 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 2265 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 2266 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2267 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2268 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 2269 | PORT_DIPSETTING( 0xc0, DEF_STR( 2C_1C ) ) | |
| 2270 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2271 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) ) | |
| 2272 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 782 | static WRITE8_HANDLER( zigzag_ay8910_w ) | |
| 783 | { | |
| 784 | switch (offset & 0x300) | |
| 785 | { | |
| 786 | case 0x000: | |
| 787 | /* control lines */ | |
| 788 | /* bit 0 = WRITE */ | |
| 789 | /* bit 1 = C/D */ | |
| 790 | if ((offset & 1) != 0) | |
| 791 | { | |
| 792 | if ((offset & 2) == 0) | |
| 793 | AY8910_write_port_0_w(machine, 0, zigzag_ay8910_latch); | |
| 794 | else | |
| 795 | AY8910_control_port_0_w(machine, 0, zigzag_ay8910_latch); | |
| 796 | } | |
| 797 | break; | |
| 2273 | 798 | |
| 2274 | PORT_START_TAG("DSW0") | |
| 2275 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2276 | PORT_DIPSETTING( 0x00, "5000" ) | |
| 2277 | PORT_DIPSETTING( 0x01, "10000" ) | |
| 2278 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet ) ) | |
| 2279 | PORT_DIPSETTING( 0x02, DEF_STR( Upright ) ) | |
| 2280 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 2281 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) | |
| 2282 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2283 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 2284 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 2285 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2286 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 2287 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2288 | INPUT_PORTS_END | |
| 799 | case 0x100: | |
| 800 | /* data latch */ | |
| 801 | zigzag_ay8910_latch = offset & 0xff; | |
| 802 | break; | |
| 2289 | 803 | |
| 2290 | static INPUT_PORTS_START( checkman ) | |
| 2291 | PORT_START_TAG("IN0") | |
| 2292 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2293 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2294 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 2295 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 2296 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Tiles Right") | |
| 2297 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 2298 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 2299 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 804 | case 0x200: | |
| 805 | /* unknown */ | |
| 806 | break; | |
| 807 | } | |
| 808 | } | |
| 2300 | 809 | |
| 2301 | PORT_START_TAG("IN1") | |
| 2302 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("Start 1 / P1 Tiles Left")/* also p1 tiles left */ | |
| 2303 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) PORT_NAME("Start 2 / P1 Tiles Right")/* also p1 tiles right */ | |
| 2304 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 2305 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 2306 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Tiles Left")/* p2 tiles left */ | |
| 2307 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 2308 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Coinage ) ) | |
| 2309 | PORT_DIPSETTING( 0x40, "A 2C/1C B 1C/3C" ) | |
| 2310 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/6C" ) | |
| 2311 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 2312 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2313 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 2314 | 810 | |
| 2315 | PORT_START_TAG("DSW0") | |
| 2316 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 2317 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2318 | PORT_DIPSETTING( 0x01, "4" ) | |
| 2319 | PORT_DIPSETTING( 0x02, "5" ) | |
| 2320 | PORT_DIPSETTING( 0x03, "6" ) | |
| 2321 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2322 | PORT_DIPSETTING( 0x00, "100000" ) | |
| 2323 | PORT_DIPSETTING( 0x04, "200000" ) | |
| 2324 | PORT_DIPNAME( 0x08, 0x00, "Difficulty Increases At Level" ) | |
| 2325 | PORT_DIPSETTING( 0x08, "3" ) | |
| 2326 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2327 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2328 | INPUT_PORTS_END | |
| 2329 | 811 | |
| 2330 | static INPUT_PORTS_START( checkmaj ) | |
| 2331 | PORT_START_TAG("IN0") | |
| 2332 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2333 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2334 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 2335 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 2336 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 2337 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_COCKTAIL PORT_NAME("P2 Tiles Right") | |
| 2338 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 2339 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 812 | /************************************* | |
| 813 | * | |
| 814 | * Azurian I/O | |
| 815 | * | |
| 816 | *************************************/ | |
| 2340 | 817 | |
| 2341 | PORT_START_TAG("IN1") | |
| 2342 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2343 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2344 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 2345 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 2346 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 2347 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_COCKTAIL PORT_NAME("P2 Tiles Left") | |
| 2348 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Coinage ) ) | |
| 2349 | PORT_DIPSETTING( 0x40, "A 2C/1C B 1C/3C" ) | |
| 2350 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/6C" ) | |
| 2351 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 2352 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2353 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 818 | static CUSTOM_INPUT( azurian_port_r ) | |
| 819 | { | |
| 820 | return (readinputportbytag("FAKE") >> (FPTR)param) & 1; | |
| 821 | } | |
| 2354 | 822 | |
| 2355 | PORT_START_TAG("DSW") | |
| 2356 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 2357 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2358 | PORT_DIPSETTING( 0x01, "4" ) | |
| 2359 | PORT_DIPSETTING( 0x02, "5" ) | |
| 2360 | PORT_DIPSETTING( 0x03, "6" ) | |
| 2361 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2362 | PORT_DIPSETTING( 0x00, "100000" ) | |
| 2363 | PORT_DIPSETTING( 0x04, "200000" ) | |
| 2364 | PORT_DIPNAME( 0x08, 0x00, "Difficulty Increases At Level" ) | |
| 2365 | PORT_DIPSETTING( 0x08, "3" ) | |
| 2366 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2367 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("P1 Tiles Right") | |
| 2368 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P1 Tiles Left") | |
| 2369 | INPUT_PORTS_END | |
| 2370 | 823 | |
| 2371 | static INPUT_PORTS_START( dingo ) | |
| 2372 | PORT_START_TAG("IN0") | |
| 2373 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2374 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2375 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 2376 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 2377 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 2378 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL /* 1st Button 1 */ | |
| 2379 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 2380 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 2381 | 824 | |
| 2382 | PORT_START_TAG("IN1") | |
| 2383 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2384 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2385 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 2386 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 2387 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 2388 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL /* 2nd Button 1 */ | |
| 2389 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 2390 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2391 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 2392 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coinage ) ) | |
| 2393 | PORT_DIPSETTING( 0x80, "A 1C/1C B 1C/5C" ) | |
| 2394 | PORT_DIPSETTING( 0x00, "A 2C/1C B 1C/3C" ) | |
| 825 | /************************************* | |
| 826 | * | |
| 827 | * King & Balloon I/O | |
| 828 | * | |
| 829 | *************************************/ | |
| 2395 | 830 | |
| 2396 | PORT_START_TAG("DSW") | |
| 2397 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Difficulty ) ) | |
| 2398 | PORT_DIPSETTING( 0x00, DEF_STR( Easiest ) ) | |
| 2399 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) | |
| 2400 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 2401 | PORT_DIPSETTING( 0x03, DEF_STR( Hardest ) ) | |
| 2402 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 2403 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2404 | PORT_DIPSETTING( 0x04, "4" ) | |
| 2405 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2406 | PORT_DIPSETTING( 0x00, "20000" ) | |
| 2407 | PORT_DIPSETTING( 0x08, "40000" ) | |
| 2408 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* Yes, the game reads both of these */ | |
| 2409 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* Check code at 0x22e1 */ | |
| 2410 | INPUT_PORTS_END | |
| 831 | static CUSTOM_INPUT( kingball_muxbit_r ) | |
| 832 | { | |
| 833 | /* multiplex the service mode switch with a speech DIP switch */ | |
| 834 | return (readinputportbytag("FAKE") >> kingball_speech_dip) & 1; | |
| 835 | } | |
| 2411 | 836 | |
| 2412 | #define MOON_IN0\ | |
| 2413 | PORT_START_TAG("IN0")\ | |
| 2414 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )\ | |
| 2415 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )\ | |
| 2416 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY\ | |
| 2417 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY\ | |
| 2418 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )\ | |
| 2419 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) )\ | |
| 2420 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )\ | |
| 2421 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) )\ | |
| 2422 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* "reset" on schematics */\ | |
| 2423 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2424 | 837 | |
| 2425 | static INPUT_PORTS_START( mooncrst ) | |
| 2426 | MOON_IN0 | |
| 2427 | PORT_START_TAG("IN1") | |
| 2428 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2429 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2430 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) | |
| 2431 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) | |
| 2432 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2433 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2434 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2435 | PORT_DIPSETTING( 0x00, "30000" ) | |
| 2436 | PORT_DIPSETTING( 0x40, "50000" ) | |
| 2437 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) | |
| 2438 | PORT_DIPSETTING( 0x80, DEF_STR( English ) ) | |
| 2439 | PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 838 | static CUSTOM_INPUT( kingball_noise_r ) | |
| 839 | { | |
| 840 | /* bit 5 is the NOISE line from the sound circuit. The code just verifies | |
| 841 | that it's working, doesn't actually use return value, so we can just use | |
| 842 | rand() */ | |
| 843 | return mame_rand(machine) & 1; | |
| 844 | } | |
| 2440 | 845 | |
| 2441 | PORT_START_TAG("DSW") | |
| 2442 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) | |
| 2443 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 2444 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2445 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 2446 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2447 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) ) | |
| 2448 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2449 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 2450 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 2451 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 2452 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2453 | INPUT_PORTS_END | |
| 2454 | 846 | |
| 2455 | static INPUT_PORTS_START( mooncrsa ) | |
| 2456 | MOON_IN0 | |
| 2457 | PORT_START_TAG("IN1") | |
| 2458 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2459 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2460 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) | |
| 2461 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) | |
| 2462 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2463 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2464 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2465 | PORT_DIPSETTING( 0x00, "30000" ) | |
| 2466 | PORT_DIPSETTING( 0x40, "50000" ) | |
| 2467 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) | |
| 2468 | PORT_DIPSETTING( 0x80, DEF_STR( English ) ) | |
| 2469 | PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 847 | static WRITE8_HANDLER( kingball_speech_dip_w ) | |
| 848 | { | |
| 849 | kingball_speech_dip = data; | |
| 850 | } | |
| 2470 | 851 | |
| 2471 | PORT_START_TAG("DSW") | |
| 2472 | // PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) Not used due to code at 0x01c0 | |
| 2473 | // PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 2474 | // PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2475 | // PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 2476 | // PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2477 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coinage ) ) | |
| 2478 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2479 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 2480 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 2481 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 2482 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2483 | INPUT_PORTS_END | |
| 2484 | 852 | |
| 2485 | static INPUT_PORTS_START( mooncrsg ) | |
| 2486 | PORT_START_TAG("IN0") | |
| 2487 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2488 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2489 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 2490 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 2491 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2492 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 2493 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2494 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 2495 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* "reset" on schematics */ | |
| 2496 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 853 | static WRITE8_HANDLER( kingball_sound1_w ) | |
| 854 | { | |
| 855 | kingball_sound = (kingball_sound & ~0x01) | data; | |
| 856 | } | |
| 2497 | 857 | |
| 2498 | PORT_START_TAG("IN1") | |
| 2499 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2500 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2501 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) | |
| 2502 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) | |
| 2503 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2504 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2505 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2506 | PORT_DIPSETTING( 0x00, "30000" ) | |
| 2507 | PORT_DIPSETTING( 0x40, "50000" ) | |
| 2508 | // PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) Always non-Japanese due to code at 0x2f77 | |
| 2509 | // PORT_DIPSETTING( 0x80, DEF_STR( English ) ) | |
| 2510 | // PORT_DIPSETTING( 0x00, DEF_STR( English ) ) | |
| 2511 | 858 | |
| 2512 | PORT_START_TAG("DSW") | |
| 2513 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) | |
| 2514 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 2515 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2516 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 2517 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2518 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) ) | |
| 2519 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2520 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 2521 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 2522 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 2523 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2524 | INPUT_PORTS_END | |
| 859 | static WRITE8_HANDLER( kingball_sound2_w ) | |
| 860 | { | |
| 861 | kingball_sound = (kingball_sound & ~0x02) | (data << 1); | |
| 862 | soundlatch_w(machine, 0, kingball_sound | 0xf0); | |
| 863 | } | |
| 2525 | 864 | |
| 2526 | static INPUT_PORTS_START( fantazia ) | |
| 2527 | MOON_IN0 | |
| 2528 | PORT_START_TAG("IN1") | |
| 2529 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2530 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2531 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 2532 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 2533 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2534 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2535 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2536 | PORT_DIPSETTING( 0x00, "30000" ) | |
| 2537 | PORT_DIPSETTING( 0x40, "50000" ) | |
| 2538 | // PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) Always non-Japanese due to code at 0x2f53 | |
| 2539 | // PORT_DIPSETTING( 0x80, DEF_STR( English ) ) | |
| 2540 | // PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 2541 | 865 | |
| 2542 | PORT_START_TAG("DSW") | |
| 2543 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) ) | |
| 2544 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 2545 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2546 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 2547 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2548 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_A ) ) | |
| 2549 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2550 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 2551 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 2552 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 2553 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2554 | INPUT_PORTS_END | |
| 866 | static WRITE8_HANDLER( kingball_dac_w ) | |
| 867 | { | |
| 868 | DAC_0_data_w(machine, offset, data ^ 0xff); | |
| 869 | } | |
| 2555 | 870 | |
| 2556 | static INPUT_PORTS_START( eagle ) | |
| 2557 | MOON_IN0 | |
| 2558 | PORT_START_TAG("IN1") | |
| 2559 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2560 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2561 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) | |
| 2562 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) | |
| 2563 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2564 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2565 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2566 | PORT_DIPSETTING( 0x00, "30000" ) | |
| 2567 | PORT_DIPSETTING( 0x40, "50000" ) | |
| 2568 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) | |
| 2569 | PORT_DIPSETTING( 0x80, DEF_STR( English ) ) | |
| 2570 | PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 2571 | 871 | |
| 2572 | PORT_START_TAG("DSW") | |
| 2573 | // PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) Not used due to code at 0x01c0 | |
| 2574 | // PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 2575 | // PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2576 | // PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 2577 | // PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2578 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coinage ) ) | |
| 2579 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2580 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 2581 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 2582 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 2583 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2584 | INPUT_PORTS_END | |
| 2585 | 872 | |
| 2586 | static INPUT_PORTS_START( eagle2 ) | |
| 2587 | MOON_IN0 | |
| 2588 | PORT_START_TAG("IN1") | |
| 2589 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2590 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2591 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) | |
| 2592 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) | |
| 2593 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2594 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2595 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2596 | PORT_DIPSETTING( 0x00, "30000" ) | |
| 2597 | PORT_DIPSETTING( 0x40, "50000" ) | |
| 2598 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) | |
| 2599 | PORT_DIPSETTING( 0x80, DEF_STR( English ) ) | |
| 2600 | PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 873 | /************************************* | |
| 874 | * | |
| 875 | * Moon Shuttle I/O | |
| 876 | * | |
| 877 | *************************************/ | |
| 2601 | 878 | |
| 2602 | PORT_START_TAG("DSW") | |
| 2603 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) | |
| 2604 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 2605 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2606 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 2607 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2608 | // PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) ) Not used due to code at 0x01c0, | |
| 2609 | // PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) but "Free Play" is checked | |
| 2610 | // PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 2611 | // PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 2612 | // PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 2613 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Free_Play ) ) | |
| 2614 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2615 | // PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 2616 | // PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 2617 | PORT_DIPSETTING( 0x0c, DEF_STR( On ) ) | |
| 2618 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2619 | INPUT_PORTS_END | |
| 879 | static WRITE8_HANDLER( mshuttle_ay8910_cs_w ) | |
| 880 | { | |
| 881 | mshuttle_ay8910_cs = data & 1; | |
| 882 | } | |
| 2620 | 883 | |
| 2621 | static INPUT_PORTS_START( smooncrs ) | |
| 2622 | MOON_IN0 | |
| 2623 | PORT_START_TAG("IN1") | |
| 2624 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2625 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2626 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not read due to code at 0x2b1c and 0x3313 */ | |
| 2627 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not read due to code at 0x2b1c and 0x3313 */ | |
| 2628 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not read due to code at 0x2b1c and 0x3313 */ | |
| 2629 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2630 | // PORT_DIPNAME( 0x40, 0x00, DEF_STR( Bonus_Life ) ) Always '50000' due to code at 0x2f68 | |
| 2631 | // PORT_DIPSETTING( 0x00, "30000" ) | |
| 2632 | // PORT_DIPSETTING( 0x40, "50000" ) | |
| 2633 | // PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) Always non-Japanese due to code at 0x2f53 | |
| 2634 | // PORT_DIPSETTING( 0x80, DEF_STR( English ) ) | |
| 2635 | // PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 2636 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) /* code at 0x2962 */ | |
| 2637 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) | |
| 2638 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 2639 | PORT_DIPNAME( 0x80, 0x80, "Player's Bullet Speed" ) /* code at 0x0007 */ | |
| 2640 | PORT_DIPSETTING( 0x00, "Slow" ) | |
| 2641 | PORT_DIPSETTING( 0x80, "Fast" ) | |
| 2642 | 884 | |
| 2643 | PORT_START_TAG("DSW") | |
| 2644 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) /* see notes */ | |
| 2645 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 2646 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2647 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 2648 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2649 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) ) | |
| 2650 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2651 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 2652 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 2653 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 2654 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2655 | INPUT_PORTS_END | |
| 885 | static WRITE8_HANDLER( mshuttle_ay8910_control_w ) | |
| 886 | { | |
| 887 | if (!mshuttle_ay8910_cs) | |
| 888 | AY8910_control_port_0_w(machine, offset, data); | |
| 889 | } | |
| 2656 | 890 | |
| 2657 | static INPUT_PORTS_START( spcdrag ) | |
| 2658 | MOON_IN0 | |
| 2659 | PORT_START_TAG("IN1") | |
| 2660 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2661 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2662 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not read due to code at 0x2b1c and 0x3313 */ | |
| 2663 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not read due to code at 0x2b1c and 0x3313 */ | |
| 2664 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not read due to code at 0x2b1c and 0x3313 */ | |
| 2665 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2666 | // PORT_DIPNAME( 0x40, 0x00, DEF_STR( Bonus_Life ) ) Always '50000' due to code at 0x2f68 | |
| 2667 | // PORT_DIPSETTING( 0x00, "30000" ) | |
| 2668 | // PORT_DIPSETTING( 0x40, "50000" ) | |
| 2669 | // PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) Always non-Japanese due to code at 0x2f53 | |
| 2670 | // PORT_DIPSETTING( 0x80, DEF_STR( English ) ) | |
| 2671 | // PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 2672 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) /* code at 0x2962 */ | |
| 2673 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) | |
| 2674 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 2675 | PORT_DIPNAME( 0x80, 0x80, "Player's Bullet Speed" ) /* code at 0x0007 */ | |
| 2676 | PORT_DIPSETTING( 0x00, "Slow" ) | |
| 2677 | PORT_DIPSETTING( 0x80, "Fast" ) | |
| 2678 | 891 | |
| 2679 | PORT_START_TAG("DSW") | |
| 2680 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) /* see notes */ | |
| 2681 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 2682 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2683 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 2684 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2685 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) ) | |
| 2686 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 2687 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_3C ) ) | |
| 2688 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_4C ) ) | |
| 2689 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 2690 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2691 | INPUT_PORTS_END | |
| 892 | static WRITE8_HANDLER( mshuttle_ay8910_data_w ) | |
| 893 | { | |
| 894 | if (!mshuttle_ay8910_cs) | |
| 895 | AY8910_write_port_0_w(machine, offset, data); | |
| 896 | } | |
| 2692 | 897 | |
| 2693 | static INPUT_PORTS_START( mooncrgx ) | |
| 2694 | PORT_START_TAG("IN0") | |
| 2695 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2696 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2697 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) | |
| 2698 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) | |
| 2699 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 2700 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2701 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2702 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2703 | 898 | |
| 2704 | PORT_START_TAG("IN1") | |
| 2705 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2706 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2707 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) | |
| 2708 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) | |
| 2709 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2710 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2711 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 2712 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 2713 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 2714 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) ) | |
| 2715 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 2716 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 899 | static READ8_HANDLER( mshuttle_ay8910_data_r ) | |
| 900 | { | |
| 901 | if (!mshuttle_ay8910_cs) | |
| 902 | return AY8910_read_port_0_r(machine, offset); | |
| 903 | return 0xff; | |
| 904 | } | |
| 2717 | 905 | |
| 2718 | PORT_START_TAG("DSW") | |
| 2719 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Bonus_Life ) ) | |
| 2720 | PORT_DIPSETTING( 0x01, "30000" ) | |
| 2721 | PORT_DIPSETTING( 0x00, "50000" ) | |
| 2722 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) | |
| 2723 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2724 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 2725 | // PORT_DIPNAME( 0x04, 0x04, DEF_STR( Language ) ) Always non-Japanese due to code removed at 0x2f4b | |
| 2726 | // PORT_DIPSETTING( 0x04, DEF_STR( English ) ) | |
| 2727 | // PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 2728 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 2729 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2730 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 2731 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2732 | INPUT_PORTS_END | |
| 2733 | 906 | |
| 2734 | static INPUT_PORTS_START( skybase ) | |
| 2735 | PORT_START_TAG("IN0") | |
| 2736 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2737 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2738 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 2739 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 2740 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2741 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Cabinet ) ) | |
| 2742 | PORT_DIPSETTING( 0x20, DEF_STR( Upright ) ) | |
| 2743 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 2744 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2745 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2746 | 907 | |
| 2747 | PORT_START_TAG("IN1") | |
| 2748 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2749 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2750 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 2751 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 2752 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2753 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2754 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 2755 | PORT_DIPSETTING( 0x80, "1C/1C (2 to start)" ) | |
| 2756 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2757 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) ) | |
| 2758 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 908 | /************************************* | |
| 909 | * | |
| 910 | * Jump Bug I/O | |
| 911 | * | |
| 912 | *************************************/ | |
| 2759 | 913 | |
| 2760 | PORT_START_TAG("IN2") | |
| 2761 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 2762 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2763 | PORT_DIPSETTING( 0x01, "4" ) | |
| 2764 | PORT_DIPSETTING( 0x02, "5" ) | |
| 2765 | PORT_DIPSETTING( 0x03, "Infinite (Cheat)") | |
| 2766 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2767 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 2768 | PORT_DIPSETTING( 0x04, "15000" ) | |
| 2769 | PORT_DIPSETTING( 0x08, "20000" ) | |
| 2770 | PORT_DIPSETTING( 0x0c, DEF_STR( None ) ) | |
| 2771 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2772 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2773 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 2774 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2775 | INPUT_PORTS_END | |
| 914 | static READ8_HANDLER( jumpbug_protection_r ) | |
| 915 | { | |
| 916 | switch (offset) | |
| 917 | { | |
| 918 | case 0x0114: return 0x4f; | |
| 919 | case 0x0118: return 0xd3; | |
| 920 | case 0x0214: return 0xcf; | |
| 921 | case 0x0235: return 0x02; | |
| 922 | case 0x0311: return 0xff; /* not checked */ | |
| 923 | } | |
| 924 | logerror("Unknown protection read. Offset: %04X PC=%04X\n",0xb000+offset,activecpu_get_pc()); | |
| 925 | return 0xff; | |
| 926 | } | |
| 2776 | 927 | |
| 2777 | static INPUT_PORTS_START( omega ) | |
| 2778 | PORT_START_TAG("IN0") | |
| 2779 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2780 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2781 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 2782 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 2783 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2784 | PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2785 | 928 | |
| 2786 | PORT_START_TAG("IN1") | |
| 2787 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2788 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2789 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 2790 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 2791 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2792 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2793 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 2794 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 2795 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 2796 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) ) | |
| 2797 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 2798 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 2799 | 929 | |
| 2800 | PORT_START_TAG("DSW") | |
| 2801 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2802 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 2803 | PORT_DIPSETTING( 0x01, "20000" ) | |
| 2804 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2805 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 2806 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2807 | PORT_DIPSETTING( 0x04, "5" ) | |
| 2808 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 2809 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2810 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 2811 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2812 | INPUT_PORTS_END | |
| 930 | /************************************* | |
| 931 | * | |
| 932 | * Checkman I/O | |
| 933 | * | |
| 934 | *************************************/ | |
| 2813 | 935 | |
| 2814 | static INPUT_PORTS_START( moonqsr ) | |
| 2815 | PORT_START_TAG("IN0") | |
| 2816 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2817 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2818 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 2819 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 2820 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2821 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 2822 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2823 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 2824 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* "reset" on schematics */ | |
| 2825 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 936 | static WRITE8_HANDLER( checkman_sound_command_w ) | |
| 937 | { | |
| 938 | soundlatch_w(machine, 0, data); | |
| 939 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); | |
| 940 | } | |
| 2826 | 941 | |
| 2827 | PORT_START_TAG("IN1") | |
| 2828 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2829 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2830 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) | |
| 2831 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) | |
| 2832 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 2833 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2834 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Difficulty ) ) | |
| 2835 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 2836 | PORT_DIPSETTING( 0x40, DEF_STR( Medium ) ) | |
| 2837 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) | |
| 2838 | PORT_DIPSETTING( 0xc0, DEF_STR( Hardest ) ) | |
| 2839 | 942 | |
| 2840 | PORT_START_TAG("DSW") | |
| 2841 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) | |
| 2842 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 2843 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 2844 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 2845 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2846 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) ) | |
| 2847 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2848 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 2849 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 2850 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 2851 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2852 | INPUT_PORTS_END | |
| 943 | static TIMER_CALLBACK( checkmaj_irq0_gen ) | |
| 944 | { | |
| 945 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE); | |
| 946 | } | |
| 2853 | 947 | |
| 2854 | static INPUT_PORTS_START( moonal2 ) | |
| 2855 | GAL_IN0 | |
| 2856 | GAL_IN1 | |
| 2857 | PORT_START_TAG("DSW") | |
| 2858 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2859 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 2860 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 2861 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 2862 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 2863 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 2864 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2865 | PORT_DIPSETTING( 0x04, "5" ) | |
| 2866 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 2867 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2868 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 2869 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2870 | INPUT_PORTS_END | |
| 2871 | 948 | |
| 2872 | static INPUT_PORTS_START( mshuttle ) | |
| 2873 | PORT_START_TAG("IN0") | |
| 2874 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2875 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2876 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 2877 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 2878 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2879 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 2880 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2881 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 949 | static READ8_HANDLER( checkmaj_protection_r ) | |
| 950 | { | |
| 951 | switch (activecpu_get_pc()) | |
| 952 | { | |
| 953 | case 0x0f15: return 0xf5; | |
| 954 | case 0x0f8f: return 0x7c; | |
| 955 | case 0x10b3: return 0x7c; | |
| 956 | case 0x10e0: return 0x00; | |
| 957 | case 0x10f1: return 0xaa; | |
| 958 | case 0x1402: return 0xaa; | |
| 959 | default: | |
| 960 | logerror("Unknown protection read. PC=%04X\n",activecpu_get_pc()); | |
| 961 | } | |
| 2882 | 962 | |
| 2883 | PORT_START_TAG("IN1") | |
| 2884 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2885 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2886 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 2887 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 2888 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2889 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 2890 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH ) | |
| 2891 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Cabinet ) ) | |
| 2892 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) | |
| 2893 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 963 | return 0; | |
| 964 | } | |
| 2894 | 965 | |
| 2895 | PORT_START_TAG("DSW") | |
| 2896 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 2897 | PORT_DIPSETTING( 0x00, "3" ) | |
| 2898 | PORT_DIPSETTING( 0x01, "4" ) | |
| 2899 | PORT_DIPSETTING( 0x02, "5" ) | |
| 2900 | PORT_DIPSETTING( 0x03, "6" ) | |
| 2901 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2902 | PORT_DIPSETTING( 0x00, "20000" ) | |
| 2903 | PORT_DIPSETTING( 0x04, "30000" ) | |
| 2904 | PORT_DIPNAME( 0x18, 0x00, DEF_STR( Coin_A ) ) | |
| 2905 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) | |
| 2906 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 2907 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 2908 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2909 | PORT_DIPNAME( 0x60, 0x00, DEF_STR( Coin_B ) ) | |
| 2910 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2911 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) | |
| 2912 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 2913 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_4C ) ) | |
| 2914 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 2915 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2916 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 2917 | INPUT_PORTS_END | |
| 2918 | 966 | |
| 2919 | static INPUT_PORTS_START( kingball ) | |
| 2920 | GAL_IN0 | |
| 2921 | /* Relating to above port:Hack? - possibly multiplexed via writes to $b003 */ | |
| 2922 | //PORT_DIPNAME( 0x80, 0x80, "Speech" ) | |
| 2923 | //PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2924 | //PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 2925 | 967 | |
| 2926 | PORT_START_TAG("IN1") | |
| 2927 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2928 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2929 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 2930 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 2931 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2932 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* NOISE line */ | |
| 2933 | PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Coinage ) ) | |
| 2934 | PORT_DIPSETTING( 0xc0, DEF_STR( 2C_1C ) ) | |
| 2935 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 2936 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 2937 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 968 | /************************************* | |
| 969 | * | |
| 970 | * Dingo I/O | |
| 971 | * | |
| 972 | *************************************/ | |
| 2938 | 973 | |
| 2939 | PORT_START_TAG("DSW") | |
| 2940 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) | |
| 2941 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 2942 | PORT_DIPSETTING( 0x01, "12000" ) | |
| 2943 | PORT_DIPSETTING( 0x02, "15000" ) | |
| 2944 | PORT_DIPSETTING( 0x03, DEF_STR( None ) ) | |
| 2945 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 2946 | PORT_DIPSETTING( 0x00, "2" ) | |
| 2947 | PORT_DIPSETTING( 0x04, "3" ) | |
| 2948 | PORT_DIPNAME( 0xf8, 0x00, DEF_STR( Unknown ) ) | |
| 2949 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2950 | PORT_DIPSETTING( 0xf8, DEF_STR( On ) ) | |
| 974 | static READ8_HANDLER( dingo_3000_r ) | |
| 975 | { | |
| 976 | return 0xaa; | |
| 977 | } | |
| 2951 | 978 | |
| 2952 | PORT_START_TAG("FAKE") | |
| 2953 | /* Hack? - possibly multiplexed via writes to $b003 - marked as SLAM */ | |
| 2954 | PORT_DIPNAME( 0x01, 0x01, "Speech" ) | |
| 2955 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2956 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 2957 | INPUT_PORTS_END | |
| 2958 | 979 | |
| 2959 | static INPUT_PORTS_START( scorpnmc ) | |
| 2960 | PORT_START_TAG("IN0") /* 0xa000 */ | |
| 2961 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) // COIN2? (it ALWAYS adds 1 credit) | |
| 2962 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2963 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 2964 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 2965 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 2966 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2967 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 2968 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 980 | static READ8_HANDLER( dingo_3035_r ) | |
| 981 | { | |
| 982 | return 0x8c; | |
| 983 | } | |
| 2969 | 984 | |
| 2970 | PORT_START_TAG("IN1") /* 0xa800 */ | |
| 2971 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("Start 1 / P1 Button 1") /* also P1 Button 1 */ | |
| 2972 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) PORT_NAME("Start 2 / P1 Button 2") /* also P1 Button 2 */ | |
| 2973 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2974 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 2975 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 2976 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2977 | PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Difficulty ) ) // Check code at 0x0118 | |
| 2978 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 2979 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) | |
| 2980 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) | |
| 2981 | PORT_DIPSETTING( 0xc0, DEF_STR( Hardest ) ) | |
| 2982 | 985 | |
| 2983 | PORT_START_TAG("DSW0") /* DSW0? - 0xb001 */ | |
| 2984 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2985 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2986 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) ) // Check code at 0x00eb | |
| 2987 | PORT_DIPSETTING( 0x00, "2" ) | |
| 2988 | PORT_DIPSETTING( 0x04, "3" ) | |
| 2989 | PORT_DIPSETTING( 0x08, "4" ) | |
| 2990 | PORT_DIPSETTING( 0x0c, "5" ) | |
| 2991 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2992 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2993 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2994 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 986 | static READ8_HANDLER( dingoe_3001_r ) | |
| 987 | { | |
| 988 | return 0xaa; | |
| 989 | } | |
| 2995 | 990 | |
| 2996 | PORT_START_TAG("DSW1") /* DSW1? - 0xb002 */ | |
| 2997 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) // Check code at 0x00fe | |
| 2998 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 2999 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 3000 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Coinage ) ) | |
| 3001 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 3002 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 3003 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 3004 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_3C ) ) | |
| 3005 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3006 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3007 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3008 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3009 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3010 | INPUT_PORTS_END | |
| 3011 | 991 | |
| 3012 | static INPUT_PORTS_START( frogg ) | |
| 3013 | PORT_START_TAG("IN0") | |
| 3014 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3015 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3016 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 3017 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 3018 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 3019 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SPECIAL ) // See notes | |
| 3020 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 3021 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 3022 | 992 | |
| 3023 | PORT_START_TAG("IN1") | |
| 3024 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3025 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3026 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 3027 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 3028 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 3029 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SPECIAL ) // See notes | |
| 3030 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) | |
| 3031 | PORT_DIPSETTING( 0xc0, "3" ) | |
| 3032 | PORT_DIPSETTING( 0x40, "5" ) | |
| 3033 | PORT_DIPSETTING( 0x80, "7" ) | |
| 3034 | PORT_DIPSETTING( 0x00, "255 (Cheat)") | |
| 993 | /************************************* | |
| 994 | * | |
| 995 | * Memory maps | |
| 996 | * | |
| 997 | *************************************/ | |
| 3035 | 998 | |
| 3036 | PORT_START_TAG("DSW0") | |
| 3037 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) // also affects coinage (see 'res' intruction at 0x3084) | |
| 3038 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) | |
| 3039 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 3040 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) // not tested due to code at 0x3084 | |
| 3041 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3042 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3043 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Coinage ) ) // when "Cabinet" Dip Switch set to "Upright" | |
| 3044 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) // "A 1/1 B 1/6" if "Cabinet" Dip Switch set to "Cocktail" | |
| 3045 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_1C ) ) // "A 2/1 B 1/3" if "Cabinet" Dip Switch set to "Cocktail" | |
| 3046 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3047 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3048 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3049 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3050 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3051 | INPUT_PORTS_END | |
| 999 | /* | |
| 1000 | 0000-3fff | |
| 3052 | 1001 | |
| 3053 | static INPUT_PORTS_START( 4in1 ) | |
| 3054 | PORT_START_TAG("IN0") | |
| 3055 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3056 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 3057 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 3058 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 3059 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 3060 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 3061 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3062 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 3063 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 3064 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 3065 | 1002 | |
| 3066 | PORT_START_TAG("IN1") | |
| 3067 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3068 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3069 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 3070 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 3071 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 3072 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 3073 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_SPECIAL ) // See fake ports | |
| 1003 | 4000-7fff | |
| 1004 | 4000-47ff -> RAM read/write (10 bits = 0x400) | |
| 1005 | 4800-4fff -> n/c | |
| 1006 | 5000-57ff -> /VRAM RD or /VRAM WR (10 bits = 0x400) | |
| 1007 | 5800-5fff -> /OBJRAM RD or /OBJRAM WR (8 bits = 0x100) | |
| 1008 | 6000-67ff -> /SW0 or /DRIVER | |
| 1009 | 6800-6fff -> /SW1 or /SOUND | |
| 1010 | 7000-77ff -> /DIPSW or LATCH | |
| 1011 | 7800-7fff -> /WDR or /PITCH | |
| 3074 | 1012 | |
| 3075 | PORT_START_TAG("DSW0") | |
| 3076 | PORT_BIT( 0x3b, IP_ACTIVE_HIGH, IPT_SPECIAL ) // See fake ports | |
| 3077 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 3078 | PORT_DIPSETTING( 0x00, "3" ) // 2 when continue (Scramble PT2) | |
| 3079 | PORT_DIPSETTING( 0x04, "5" ) // 2 when continue (Scramble PT2) | |
| 3080 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1013 | /DRIVER: (write 6000-67ff) | |
| 1014 | D0 = data bit | |
| 1015 | A0-A2 = decoder | |
| 1016 | 6000 -> 1P START | |
| 1017 | 6001 -> 2P START | |
| 1018 | 6002 -> COIN LOCKOUT | |
| 1019 | 6003 -> COIN COUNTER | |
| 1020 | 6004 -> 1M resistor (controls 555 timer @ 9R) | |
| 1021 | 6005 -> 470k resistor (controls 555 timer @ 9R) | |
| 1022 | 6006 -> 220k resistor (controls 555 timer @ 9R) | |
| 1023 | 6007 -> 100k resistor (controls 555 timer @ 9R) | |
| 3081 | 1024 | |
| 3082 | PORT_START_TAG("FAKE1") /* The Ghost Muncher PT3 - FAKE DSW0 (bits 0 to 5) and IN1 (bits 6 and 7) */ | |
| 3083 | PORT_DIPNAME( 0x03, 0x00, "Bonus Life (GM PT3)" ) | |
| 3084 | PORT_DIPSETTING( 0x01, "10000" ) | |
| 3085 | PORT_DIPSETTING( 0x02, "15000" ) | |
| 3086 | PORT_DIPSETTING( 0x03, "20000" ) | |
| 3087 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3088 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) // Lives | |
| 3089 | // PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 3090 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3091 | // PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3092 | // PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unused ) ) | |
| 3093 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3094 | // PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3095 | // PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unused ) ) | |
| 3096 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3097 | // PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3098 | PORT_DIPNAME( 0xc0, 0x00, "Coinage (GM PT3)" ) | |
| 3099 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 3100 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 3101 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 3102 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1025 | /SOUND: (write 6800-6fff) | |
| 1026 | D0 = data bit | |
| 1027 | A0-A2 = decoder | |
| 1028 | 6800 -> FS1 (enables 555 timer at 8R) | |
| 1029 | 6801 -> FS2 (enables 555 timer at 8S) | |
| 1030 | 6802 -> FS3 (enables 555 timer at 8T) | |
| 1031 | 6803 -> HIT | |
| 1032 | 6804 -> n/c | |
| 1033 | 6805 -> FIRE | |
| 1034 | 6806 -> VOL1 | |
| 1035 | 6807 -> VOL2 | |
| 3103 | 1036 | |
| 3104 | PORT_START_TAG("FAKE2") /* Scramble PT2 - FAKE DSW0 (bits 0 to 5) and IN1 (bits 6 and 7) */ | |
| 3105 | // PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unused ) ) | |
| 3106 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3107 | // PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3108 | // PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) | |
| 3109 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3110 | // PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3111 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) // Lives | |
| 3112 | PORT_DIPNAME( 0x08, 0x00, "Allow Continue (S PT2)" ) | |
| 3113 | PORT_DIPSETTING( 0x08, DEF_STR( No ) ) | |
| 3114 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 3115 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) // Scramble PT2 - Check code at 0x00c2 | |
| 3116 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3117 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3118 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) // Scramble PT2 - Check code at 0x00cc | |
| 3119 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3120 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3121 | PORT_DIPNAME( 0xc0, 0x00, "Coinage (S PT2)" ) | |
| 3122 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 3123 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 3124 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 3125 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1037 | LATCH: (write 7000-77ff) | |
| 1038 | D0 = data bit | |
| 1039 | A0-A2 = decoder | |
| 1040 | 7000 -> n/c | |
| 1041 | 7001 -> NMI ON | |
| 1042 | 7002 -> n/c | |
| 1043 | 7003 -> n/c | |
| 1044 | 7004 -> STARS ON | |
| 1045 | 7005 -> n/c | |
| 1046 | 7006 -> HFLIP | |
| 1047 | 7007 -> VFLIP | |
| 3126 | 1048 | |
| 3127 | PORT_START_TAG("FAKE3") /* Galaxian PT5 - FAKE DSW0 (bits 0 to 5) and IN1 (bits 6 and 7) */ | |
| 3128 | PORT_DIPNAME( 0x03, 0x00, "Bonus Life (G PT5)" ) | |
| 3129 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 3130 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 3131 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 3132 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 3133 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) // Lives | |
| 3134 | // PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 3135 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3136 | // PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3137 | // PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unused ) ) | |
| 3138 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3139 | // PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3140 | // PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unused ) ) | |
| 3141 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3142 | // PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3143 | PORT_DIPNAME( 0xc0, 0x00, "Coinage (G PT5)" ) | |
| 3144 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 3145 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 3146 | // PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) | |
| 3147 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 3148 | ||
| 3149 | PORT_START_TAG("FAKE4") /* Galactic Convoy - FAKE DSW0 (bits 0 to 5) and IN1 (bits 6 and 7) */ | |
| 3150 | PORT_DIPNAME( 0x01, 0x00, "Bonus Life (GC)" ) | |
| 3151 | PORT_DIPSETTING( 0x00, "50000" ) | |
| 3152 | PORT_DIPSETTING( 0x01, "80000" ) | |
| 3153 | // PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) | |
| 3154 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3155 | // PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3156 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) // Lives | |
| 3157 | // PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 3158 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3159 | // PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3160 | // PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unused ) ) | |
| 3161 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3162 | // PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3163 | // PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unused ) ) | |
| 3164 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3165 | // PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3166 | PORT_DIPNAME( 0xc0, 0x00, "Coinage (GC)" ) | |
| 3167 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 3168 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 3169 | // PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) // 1 credit for 1st coin ! | |
| 3170 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 3171 | INPUT_PORTS_END | |
| 3172 | ||
| 3173 | static INPUT_PORTS_START( bagmanmc ) | |
| 3174 | PORT_START_TAG("IN0") | |
| 3175 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3176 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3177 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3178 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 3179 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 3180 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 3181 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 3182 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 3183 | ||
| 3184 | PORT_START_TAG("IN1") | |
| 3185 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3186 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 3187 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 3188 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 3189 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 3190 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 3191 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3192 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Cabinet ) ) | |
| 3193 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) | |
| 3194 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 3195 | ||
| 3196 | PORT_START_TAG("DSW") | |
| 3197 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 3198 | PORT_DIPSETTING( 0x03, "2" ) | |
| 3199 | PORT_DIPSETTING( 0x02, "3" ) | |
| 3200 | PORT_DIPSETTING( 0x01, "4" ) | |
| 3201 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3202 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Coinage ) ) | |
| 3203 | PORT_DIPSETTING( 0x00, "A 2C/1C B 1C/1C" ) | |
| 3204 | PORT_DIPSETTING( 0x04, "A 1C/1C B 1C/2C" ) | |
| 3205 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) | |
| 3206 | PORT_DIPSETTING( 0x18, DEF_STR( Easy ) ) | |
| 3207 | PORT_DIPSETTING( 0x10, DEF_STR( Medium ) ) | |
| 3208 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) | |
| 3209 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 3210 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Language ) ) | |
| 3211 | PORT_DIPSETTING( 0x20, DEF_STR( English ) ) | |
| 3212 | PORT_DIPSETTING( 0x00, DEF_STR( French ) ) | |
| 3213 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Bonus_Life ) ) | |
| 3214 | PORT_DIPSETTING( 0x40, "30000" ) | |
| 3215 | PORT_DIPSETTING( 0x00, "40000" ) | |
| 3216 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) // Check code at 0x2d78 and 0x2e6b | |
| 3217 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3218 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 3219 | INPUT_PORTS_END | |
| 3220 | ||
| 3221 | static INPUT_PORTS_START( dkongjrm ) | |
| 3222 | PORT_START_TAG("IN0") | |
| 3223 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3224 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3225 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 3226 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 3227 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 3228 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 3229 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 3230 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 3231 | ||
| 3232 | PORT_START_TAG("IN1") | |
| 3233 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3234 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3235 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 3236 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 3237 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 3238 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 3239 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 3240 | PORT_DIPSETTING( 0xc0, DEF_STR( 3C_1C ) ) | |
| 3241 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 3242 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 3243 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 3244 | ||
| 3245 | PORT_START_TAG("IN2") | |
| 3246 | PORT_DIPNAME( 0x01, 0x00, "Coin Multiplier" ) | |
| 3247 | PORT_DIPSETTING( 0x00, "*1" ) | |
| 3248 | PORT_DIPSETTING( 0x01, "*2" ) | |
| 3249 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Lives ) ) | |
| 3250 | PORT_DIPSETTING( 0x00, "3" ) | |
| 3251 | PORT_DIPSETTING( 0x02, "4" ) | |
| 3252 | PORT_DIPSETTING( 0x04, "5" ) | |
| 3253 | PORT_DIPSETTING( 0x06, "6" ) | |
| 3254 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Cabinet ) ) | |
| 3255 | PORT_DIPSETTING( 0x08, DEF_STR( Upright ) ) | |
| 3256 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 3257 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3258 | INPUT_PORTS_END | |
| 3259 | ||
| 3260 | static INPUT_PORTS_START( rockclim ) | |
| 3261 | ||
| 3262 | PORT_START_TAG("IN0") | |
| 3263 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3264 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3265 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICKRIGHT_LEFT ) PORT_8WAY | |
| 3266 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICKRIGHT_RIGHT ) PORT_8WAY | |
| 3267 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY | |
| 3268 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY | |
| 3269 | PORT_DIPNAME( 0x40, 0x40, "Unknown 1" ) //code at $7713 | |
| 3270 | PORT_DIPSETTING( 0x00, "0" ) | |
| 3271 | PORT_DIPSETTING( 0x40, "1" ) | |
| 3272 | ||
| 3273 | PORT_START_TAG("IN1") | |
| 3274 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3275 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3276 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY | |
| 3277 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY | |
| 3278 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_UP ) PORT_8WAY | |
| 3279 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY | |
| 3280 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Bonus_Life ) ) | |
| 3281 | PORT_DIPSETTING( 0x00, "30,000" ) | |
| 3282 | PORT_DIPSETTING( 0x40, "50,000" ) | |
| 3283 | PORT_DIPNAME( 0x80, 0x80, "Coin Slots" ) | |
| 3284 | PORT_DIPSETTING( 0x00, "2" ) | |
| 3285 | PORT_DIPSETTING( 0x80, "1" ) | |
| 3286 | ||
| 3287 | PORT_START_TAG("DSW0") | |
| 3288 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 3289 | PORT_DIPSETTING( 0x00, "3" ) | |
| 3290 | PORT_DIPSETTING( 0x01, "4" ) | |
| 3291 | PORT_DIPSETTING( 0x02, "5" ) | |
| 3292 | PORT_DIPSETTING( 0x03, "6" ) | |
| 3293 | ||
| 3294 | PORT_START_TAG("DSW1") | |
| 3295 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) | |
| 3296 | PORT_DIPSETTING( 0x00, DEF_STR( 9C_1C ) ) | |
| 3297 | PORT_DIPSETTING( 0x01, DEF_STR( 8C_1C ) ) | |
| 3298 | PORT_DIPSETTING( 0x02, DEF_STR( 7C_1C ) ) | |
| 3299 | PORT_DIPSETTING( 0x03, DEF_STR( 6C_1C ) ) | |
| 3300 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_1C ) ) | |
| 3301 | PORT_DIPSETTING( 0x05, DEF_STR( 4C_1C ) ) | |
| 3302 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_1C ) ) | |
| 3303 | PORT_DIPSETTING( 0x07, DEF_STR( 2C_1C ) ) | |
| 3304 | PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) | |
| 3305 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) | |
| 3306 | PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) | |
| 3307 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) | |
| 3308 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) | |
| 3309 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) | |
| 3310 | PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) ) | |
| 3311 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_8C ) ) | |
| 3312 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) | |
| 3313 | PORT_DIPSETTING( 0x00, DEF_STR( 9C_1C ) ) | |
| 3314 | PORT_DIPSETTING( 0x10, DEF_STR( 8C_1C ) ) | |
| 3315 | PORT_DIPSETTING( 0x20, DEF_STR( 7C_1C ) ) | |
| 3316 | PORT_DIPSETTING( 0x30, DEF_STR( 6C_1C ) ) | |
| 3317 | PORT_DIPSETTING( 0x40, DEF_STR( 5C_1C ) ) | |
| 3318 | PORT_DIPSETTING( 0x50, DEF_STR( 4C_1C ) ) | |
| 3319 | PORT_DIPSETTING( 0x60, DEF_STR( 3C_1C ) ) | |
| 3320 | PORT_DIPSETTING( 0x70, DEF_STR( 2C_1C ) ) | |
| 3321 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) | |
| 3322 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) | |
| 3323 | PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) ) | |
| 3324 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) | |
| 3325 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) | |
| 3326 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) | |
| 3327 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) | |
| 3328 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_8C ) ) | |
| 3329 | ||
| 3330 | INPUT_PORTS_END | |
| 3331 | ||
| 3332 | /* | |
| 3333 | ||
| 3334 | Game bug: | |
| 3335 | - you can insert 99 credits 3 times consecutively, then it resets | |
| 3336 | ||
| 1049 | /PITCH: (write 7800-7fff) | |
| 1050 | loads latch at 9J | |
| 3337 | 1051 | */ |
| 3338 | static INPUT_PORTS_START( ozon1 ) | |
| 3339 | PORT_START_TAG("IN0") | |
| 3340 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3341 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3342 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3343 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 3344 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) | |
| 3345 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) | |
| 3346 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 3347 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 3348 | 1052 | |
| 3349 | PORT_START_TAG("IN1") | |
| 3350 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 3351 | PORT_DIPSETTING( 0x00, "3" ) | |
| 3352 | PORT_DIPSETTING( 0x01, "4" ) | |
| 3353 | PORT_DIPSETTING( 0x02, "5" ) | |
| 3354 | PORT_DIPSETTING( 0x03, "6" ) | |
| 3355 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 3356 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 3357 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) | |
| 3358 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) | |
| 3359 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 3360 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1053 | /* map derived from schematics */ | |
| 1054 | static ADDRESS_MAP_START( galaxian_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1055 | ADDRESS_MAP_UNMAP_HIGH | |
| 1056 | AM_RANGE(0x0000, 0x3fff) AM_ROM | |
| 1057 | AM_RANGE(0x4000, 0x43ff) AM_MIRROR(0x0400) AM_RAM | |
| 1058 | AM_RANGE(0x5000, 0x53ff) AM_MIRROR(0x0400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1059 | AM_RANGE(0x5800, 0x58ff) AM_MIRROR(0x0700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1060 | AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x07ff) AM_READ_PORT("IN0") | |
| 1061 | AM_RANGE(0x6000, 0x6001) AM_MIRROR(0x07f8) AM_WRITE(start_lamp_w) | |
| 1062 | AM_RANGE(0x6002, 0x6002) AM_MIRROR(0x07f8) AM_WRITE(coin_lock_w) | |
| 1063 | AM_RANGE(0x6003, 0x6003) AM_MIRROR(0x07f8) AM_WRITE(coin_count_0_w) | |
| 1064 | AM_RANGE(0x6004, 0x6007) AM_MIRROR(0x07f8) AM_WRITE(galaxian_lfo_freq_w) | |
| 1065 | AM_RANGE(0x6800, 0x6800) AM_MIRROR(0x07ff) AM_READ_PORT("IN1") | |
| 1066 | AM_RANGE(0x6800, 0x6807) AM_MIRROR(0x07f8) AM_WRITE(galaxian_sound_w) | |
| 1067 | AM_RANGE(0x7000, 0x7000) AM_MIRROR(0x07ff) AM_READ_PORT("IN2") | |
| 1068 | AM_RANGE(0x7001, 0x7001) AM_MIRROR(0x07f8) AM_WRITE(irq_enable_w) | |
| 1069 | AM_RANGE(0x7004, 0x7004) AM_MIRROR(0x07f8) AM_WRITE(galaxian_stars_enable_w) | |
| 1070 | AM_RANGE(0x7006, 0x7006) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1071 | AM_RANGE(0x7007, 0x7007) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1072 | AM_RANGE(0x7800, 0x7800) AM_MIRROR(0x07ff) AM_WRITE(galaxian_pitch_w) | |
| 1073 | AM_RANGE(0x7800, 0x7800) AM_MIRROR(0x07ff) AM_READ(watchdog_reset_r) | |
| 1074 | ADDRESS_MAP_END | |
| 3361 | 1075 | |
| 3362 | PORT_START_TAG("DSW") | |
| 3363 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 3364 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3365 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3366 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 3367 | PORT_DIPSETTING( 0x00, "A 1C/1C B 2C/1C" ) | |
| 3368 | PORT_DIPSETTING( 0x02, "A 1C/2C B 1C/1C" ) // when you insert a coin with COIN2 it starts an infinite loop | |
| 3369 | PORT_DIPSETTING( 0x04, "A 1C/3C B 3C/1C" ) | |
| 3370 | PORT_DIPSETTING( 0x06, "A 1C/4C B 4C/1C" ) | |
| 3371 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3372 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3373 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3374 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3375 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3376 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3377 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3378 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3379 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3380 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3381 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3382 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3383 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3384 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3385 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 3386 | INPUT_PORTS_END | |
| 3387 | 1076 | |
| 3388 | static INPUT_PORTS_START( ladybugg ) | |
| 3389 | PORT_START_TAG("IN0") | |
| 3390 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3391 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3392 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 3393 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 3394 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3395 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 3396 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3397 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 1077 | /* map derived from schematics */ | |
| 1078 | static ADDRESS_MAP_START( mooncrst_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1079 | ADDRESS_MAP_UNMAP_HIGH | |
| 1080 | AM_RANGE(0x0000, 0x3fff) AM_ROM | |
| 1081 | AM_RANGE(0x8000, 0x83ff) AM_MIRROR(0x0400) AM_RAM | |
| 1082 | AM_RANGE(0x9000, 0x93ff) AM_MIRROR(0x0400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1083 | AM_RANGE(0x9800, 0x98ff) AM_MIRROR(0x0700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1084 | AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x07ff) AM_READ_PORT("IN0") | |
| 1085 | AM_RANGE(0xa000, 0xa002) AM_MIRROR(0x07f8) AM_WRITE(galaxian_gfxbank_w) | |
| 1086 | AM_RANGE(0xa003, 0xa003) AM_MIRROR(0x07f8) AM_WRITE(coin_count_0_w) | |
| 1087 | AM_RANGE(0xa004, 0xa007) AM_MIRROR(0x07f8) AM_WRITE(galaxian_lfo_freq_w) | |
| 1088 | AM_RANGE(0xa800, 0xa800) AM_MIRROR(0x07ff) AM_READ_PORT("IN1") | |
| 1089 | AM_RANGE(0xa800, 0xa807) AM_MIRROR(0x07f8) AM_WRITE(galaxian_sound_w) | |
| 1090 | AM_RANGE(0xb000, 0xb000) AM_MIRROR(0x07ff) AM_READ_PORT("IN2") | |
| 1091 | AM_RANGE(0xb000, 0xb000) AM_MIRROR(0x07f8) AM_WRITE(irq_enable_w) | |
| 1092 | AM_RANGE(0xb004, 0xb004) AM_MIRROR(0x07f8) AM_WRITE(galaxian_stars_enable_w) | |
| 1093 | AM_RANGE(0xb006, 0xb006) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1094 | AM_RANGE(0xb007, 0xb007) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1095 | AM_RANGE(0xb800, 0xb800) AM_MIRROR(0x07ff) AM_WRITE(galaxian_pitch_w) | |
| 1096 | AM_RANGE(0xb800, 0xb800) AM_MIRROR(0x07ff) AM_READ(watchdog_reset_r) | |
| 1097 | ADDRESS_MAP_END | |
| 3398 | 1098 | |
| 3399 | PORT_START_TAG("IN1") | |
| 3400 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3401 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3402 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 3403 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 3404 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 3405 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL /* 2nd Button 1 */ | |
| 3406 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 3407 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3408 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 3409 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coinage ) ) | |
| 3410 | PORT_DIPSETTING( 0x80, "A 1C/1C B 1C/5C" ) | |
| 3411 | PORT_DIPSETTING( 0x00, "A 2C/1C B 1C/3C" ) | |
| 3412 | 1099 | |
| 3413 | PORT_START_TAG("DSW") | |
| 3414 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Difficulty ) ) | |
| 3415 | PORT_DIPSETTING( 0x00, DEF_STR( Easiest ) ) | |
| 3416 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) | |
| 3417 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 3418 | PORT_DIPSETTING( 0x03, DEF_STR( Hardest ) ) | |
| 3419 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 3420 | PORT_DIPSETTING( 0x00, "3" ) | |
| 3421 | PORT_DIPSETTING( 0x04, "4" ) | |
| 3422 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) | |
| 3423 | PORT_DIPSETTING( 0x00, "20000" ) | |
| 3424 | PORT_DIPSETTING( 0x08, "40000" ) | |
| 3425 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* Yes, the game reads both of these */ | |
| 3426 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* Check code at 0x22e1 */ | |
| 3427 | INPUT_PORTS_END | |
| 1100 | /* map derived from schematics */ | |
| 1101 | #if 0 | |
| 1102 | static ADDRESS_MAP_START( dambustr_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1103 | ADDRESS_MAP_UNMAP_HIGH | |
| 1104 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 1105 | // AM_RANGE(0x8000, 0x8000) AM_WRITE(dambustr_bg_color_w) | |
| 1106 | // AM_RANGE(0x8001, 0x8001) AM_WRITE(dambustr_bg_split_line_w) | |
| 1107 | AM_RANGE(0xc000, 0xc3ff) AM_MIRROR(0x0400) AM_RAM | |
| 1108 | AM_RANGE(0xd000, 0xd3ff) AM_MIRROR(0x0400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1109 | AM_RANGE(0xd800, 0xd8ff) AM_MIRROR(0x0700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1110 | AM_RANGE(0xe000, 0xe000) AM_MIRROR(0x07ff) AM_READ_PORT("IN0") | |
| 1111 | AM_RANGE(0xe004, 0xe007) AM_MIRROR(0x07f8) AM_WRITE(galaxian_lfo_freq_w) | |
| 1112 | AM_RANGE(0xe800, 0xe800) AM_MIRROR(0x07ff) AM_READ_PORT("IN1") | |
| 1113 | AM_RANGE(0xe800, 0xe807) AM_MIRROR(0x07f8) AM_WRITE(galaxian_sound_w) | |
| 1114 | AM_RANGE(0xf000, 0xf000) AM_MIRROR(0x07ff) AM_READ_PORT("IN2") | |
| 1115 | AM_RANGE(0xf001, 0xf001) AM_MIRROR(0x07f8) AM_WRITE(irq_enable_w) | |
| 1116 | AM_RANGE(0xf004, 0xf004) AM_MIRROR(0x07f8) AM_WRITE(galaxian_stars_enable_w) | |
| 1117 | AM_RANGE(0xf006, 0xf006) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1118 | AM_RANGE(0xf007, 0xf007) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1119 | AM_RANGE(0xf800, 0xf800) AM_MIRROR(0x07ff) AM_READ(watchdog_reset_r) | |
| 1120 | AM_RANGE(0xf800, 0xf800) AM_MIRROR(0x07ff) AM_WRITE(galaxian_pitch_w) | |
| 1121 | ADDRESS_MAP_END | |
| 1122 | #endif | |
| 3428 | 1123 | |
| 3429 | static INPUT_PORTS_START( vpool ) | |
| 3430 | PORT_START_TAG("IN0") | |
| 3431 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3432 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3433 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 3434 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 3435 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 3436 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 3437 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 3438 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3439 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH ) | |
| 3440 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 3441 | 1124 | |
| 3442 | PORT_START_TAG("IN1") | |
| 3443 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3444 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3445 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 3446 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 3447 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 3448 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 3449 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 3450 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3451 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 3452 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 3453 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3454 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 3455 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3456 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1125 | /* map derived from schematics */ | |
| 1126 | static ADDRESS_MAP_START( theend_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1127 | ADDRESS_MAP_UNMAP_HIGH | |
| 1128 | AM_RANGE(0x0000, 0x3fff) AM_ROM | |
| 1129 | AM_RANGE(0x4000, 0x47ff) AM_RAM | |
| 1130 | AM_RANGE(0x4800, 0x4bff) AM_MIRROR(0x0400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1131 | AM_RANGE(0x5000, 0x50ff) AM_MIRROR(0x0700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1132 | AM_RANGE(0x6801, 0x6801) AM_MIRROR(0x07f8) AM_WRITE(irq_enable_w) | |
| 1133 | AM_RANGE(0x6802, 0x6802) AM_MIRROR(0x07f8) AM_WRITE(coin_count_0_w) | |
| 1134 | AM_RANGE(0x6803, 0x6803) AM_MIRROR(0x07f8) AM_WRITE(scramble_background_enable_w) | |
| 1135 | AM_RANGE(0x6804, 0x6804) AM_MIRROR(0x07f8) AM_WRITE(galaxian_stars_enable_w) | |
| 1136 | AM_RANGE(0x6805, 0x6805) AM_MIRROR(0x07f8) //POUT2 | |
| 1137 | AM_RANGE(0x6806, 0x6806) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1138 | AM_RANGE(0x6807, 0x6807) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1139 | AM_RANGE(0x7000, 0x7000) AM_MIRROR(0x07ff) AM_READ(watchdog_reset_r) | |
| 1140 | AM_RANGE(0x8000, 0xffff) AM_READWRITE(theend_ppi8255_r, theend_ppi8255_w) | |
| 1141 | ADDRESS_MAP_END | |
| 3457 | 1142 | |
| 3458 | PORT_START_TAG("DSW0") | |
| 3459 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 3460 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 3461 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3462 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 3463 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 3464 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3465 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 3466 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 3467 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3468 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 3469 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 3470 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3471 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 3472 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 3473 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3474 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 3475 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 3476 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3477 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 3478 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 3479 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3480 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 3481 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 3482 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 3483 | INPUT_PORTS_END | |
| 3484 | 1143 | |
| 3485 | static INPUT_PORTS_START( drivfrcg ) | |
| 3486 | PORT_START_TAG("IN0") | |
| 3487 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3488 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3489 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 3490 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 3491 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3492 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3493 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3494 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1144 | /* map derived from schematics */ | |
| 1145 | static ADDRESS_MAP_START( scobra_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1146 | ADDRESS_MAP_UNMAP_HIGH | |
| 1147 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 1148 | AM_RANGE(0x8000, 0x87ff) AM_MIRROR(0x4000) AM_RAM | |
| 1149 | AM_RANGE(0x8800, 0x8bff) AM_MIRROR(0x4400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1150 | AM_RANGE(0x9000, 0x90ff) AM_MIRROR(0x4700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1151 | AM_RANGE(0x9800, 0x9803) AM_MIRROR(0x47fc) AM_READWRITE(ppi8255_0_r, ppi8255_0_w) | |
| 1152 | AM_RANGE(0xa000, 0xa003) AM_MIRROR(0x47fc) AM_READWRITE(ppi8255_1_r, ppi8255_1_w) | |
| 1153 | AM_RANGE(0xa801, 0xa801) AM_MIRROR(0x47f8) AM_WRITE(irq_enable_w) | |
| 1154 | AM_RANGE(0xa802, 0xa802) AM_MIRROR(0x47f8) AM_WRITE(coin_count_0_w) | |
| 1155 | AM_RANGE(0xa803, 0xa803) AM_MIRROR(0x47f8) AM_WRITE(scramble_background_enable_w) | |
| 1156 | AM_RANGE(0xa804, 0xa804) AM_MIRROR(0x47f8) AM_WRITE(galaxian_stars_enable_w) | |
| 1157 | AM_RANGE(0xa805, 0xa805) AM_MIRROR(0x47f8) /* POUT2 */ | |
| 1158 | AM_RANGE(0xa806, 0xa806) AM_MIRROR(0x47f8) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1159 | AM_RANGE(0xa807, 0xa807) AM_MIRROR(0x47f8) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1160 | AM_RANGE(0xb000, 0xb000) AM_MIRROR(0x47ff) AM_READ(watchdog_reset_r) | |
| 1161 | ADDRESS_MAP_END | |
| 3495 | 1162 | |
| 3496 | PORT_START_TAG("IN1") | |
| 3497 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 3498 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 3499 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3500 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3501 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3502 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3503 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Coinage ) ) | |
| 3504 | PORT_DIPSETTING( 0x40, "A 2C/1C B 1C/3C" ) | |
| 3505 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/5C" ) | |
| 3506 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3507 | 1163 | |
| 3508 | PORT_START_TAG("DSW0") | |
| 3509 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 3510 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3511 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3512 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 3513 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3514 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3515 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 3516 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3517 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3518 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3519 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3520 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3521 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3522 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3523 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3524 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3525 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3526 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3527 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3528 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3529 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3530 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3531 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3532 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1164 | /* map derived from schematics */ | |
| 1165 | static ADDRESS_MAP_START( frogger_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1166 | ADDRESS_MAP_UNMAP_HIGH | |
| 1167 | AM_RANGE(0x0000, 0x3fff) AM_ROM | |
| 1168 | AM_RANGE(0x8000, 0x87ff) AM_RAM | |
| 1169 | AM_RANGE(0x8800, 0x8800) AM_MIRROR(0x07ff) AM_READ(watchdog_reset_r) | |
| 1170 | AM_RANGE(0xa800, 0xabff) AM_MIRROR(0x0400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1171 | AM_RANGE(0xb000, 0xb0ff) AM_MIRROR(0x0700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1172 | AM_RANGE(0xb808, 0xb808) AM_MIRROR(0x07e3) AM_WRITE(irq_enable_w) | |
| 1173 | AM_RANGE(0xb80c, 0xb80c) AM_MIRROR(0x07e3) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1174 | AM_RANGE(0xb810, 0xb810) AM_MIRROR(0x07e3) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1175 | AM_RANGE(0xb818, 0xb818) AM_MIRROR(0x07e3) AM_WRITE(coin_count_0_w) /* IOPC7 */ | |
| 1176 | AM_RANGE(0xb81c, 0xb81c) AM_MIRROR(0x07e3) AM_WRITE(coin_count_1_w) /* POUT1 */ | |
| 1177 | AM_RANGE(0xc000, 0xffff) AM_READWRITE(frogger_ppi8255_r, frogger_ppi8255_w) | |
| 1178 | ADDRESS_MAP_END | |
| 3533 | 1179 | |
| 3534 | PORT_START_TAG("DSW1") | |
| 3535 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 3536 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3537 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3538 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 3539 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3540 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3541 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 3542 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3543 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3544 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3545 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3546 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3547 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3548 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3549 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3550 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3551 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3552 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3553 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3554 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3555 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3556 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3557 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3558 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 3559 | 1180 | |
| 3560 | PORT_START_TAG("SENSE") | |
| 3561 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 3562 | INPUT_PORTS_END | |
| 1181 | /* map derived from schematics */ | |
| 1182 | static ADDRESS_MAP_START( turtles_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1183 | ADDRESS_MAP_UNMAP_HIGH | |
| 1184 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 1185 | AM_RANGE(0x8000, 0x87ff) AM_MIRROR(0x4000) AM_RAM | |
| 1186 | AM_RANGE(0x9000, 0x93ff) AM_MIRROR(0x4400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1187 | AM_RANGE(0x9800, 0x98ff) AM_MIRROR(0x4700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1188 | AM_RANGE(0xa000, 0xa000) AM_MIRROR(0x47c7) AM_WRITE(scramble_background_red_w) | |
| 1189 | AM_RANGE(0xa008, 0xa008) AM_MIRROR(0x47c7) AM_WRITE(irq_enable_w) | |
| 1190 | AM_RANGE(0xa010, 0xa010) AM_MIRROR(0x47c7) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1191 | AM_RANGE(0xa018, 0xa018) AM_MIRROR(0x47c7) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1192 | AM_RANGE(0xa020, 0xa020) AM_MIRROR(0x47c7) AM_WRITE(scramble_background_green_w) | |
| 1193 | AM_RANGE(0xa028, 0xa028) AM_MIRROR(0x47c7) AM_WRITE(scramble_background_blue_w) | |
| 1194 | AM_RANGE(0xa030, 0xa030) AM_MIRROR(0x47c7) AM_WRITE(coin_count_0_w) | |
| 1195 | AM_RANGE(0xa038, 0xa038) AM_MIRROR(0x47c7) AM_WRITE(coin_count_1_w) | |
| 1196 | AM_RANGE(0xa800, 0xa800) AM_MIRROR(0x47ff) AM_READ(watchdog_reset_r) | |
| 1197 | AM_RANGE(0xb000, 0xb03f) AM_MIRROR(0x47cf) AM_READWRITE(turtles_ppi8255_0_r, turtles_ppi8255_0_w) | |
| 1198 | AM_RANGE(0xb800, 0xb83f) AM_MIRROR(0x47cf) AM_READWRITE(turtles_ppi8255_1_r, turtles_ppi8255_1_w) | |
| 1199 | ADDRESS_MAP_END | |
| 3563 | 1200 | |
| 3564 | static INPUT_PORTS_START( bongo ) | |
| 3565 | PORT_START_TAG("IN0") | |
| 3566 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3567 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // coin? it jumps to an unmapped area at $C003 | |
| 3568 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 3569 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 3570 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3571 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 3572 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3573 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3574 | 1201 | |
| 3575 | PORT_START_TAG("IN1") | |
| 3576 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3577 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3578 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 3579 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 3580 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3581 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 3582 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3583 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1202 | /* this is the same as theend, except for separate RGB background controls | |
| 1203 | and some extra ROM space at $7000 and $C000 */ | |
| 1204 | static ADDRESS_MAP_START( sfx_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1205 | AM_RANGE(0x0000, 0x3fff) AM_ROM | |
| 1206 | AM_RANGE(0x4000, 0x47ff) AM_RAM | |
| 1207 | AM_RANGE(0x4800, 0x4bff) AM_MIRROR(0x0400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1208 | AM_RANGE(0x5000, 0x50ff) AM_MIRROR(0x0700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1209 | AM_RANGE(0x6800, 0x6800) AM_MIRROR(0x07f8) AM_WRITE(scramble_background_red_w) | |
| 1210 | AM_RANGE(0x6801, 0x6801) AM_MIRROR(0x07f8) AM_WRITE(irq_enable_w) | |
| 1211 | AM_RANGE(0x6802, 0x6802) AM_MIRROR(0x07f8) AM_WRITE(coin_count_0_w) | |
| 1212 | AM_RANGE(0x6803, 0x6803) AM_MIRROR(0x07f8) AM_WRITE(scramble_background_blue_w) | |
| 1213 | AM_RANGE(0x6804, 0x6804) AM_MIRROR(0x07f8) AM_WRITE(galaxian_stars_enable_w) | |
| 1214 | AM_RANGE(0x6805, 0x6805) AM_MIRROR(0x07f8) AM_WRITE(scramble_background_green_w) | |
| 1215 | AM_RANGE(0x6806, 0x6806) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1216 | AM_RANGE(0x6807, 0x6807) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1217 | AM_RANGE(0x7000, 0x7fff) AM_ROM | |
| 1218 | AM_RANGE(0x8000, 0xbfff) AM_READWRITE(theend_ppi8255_r, theend_ppi8255_w) | |
| 1219 | AM_RANGE(0xc000, 0xefff) AM_ROM | |
| 1220 | ADDRESS_MAP_END | |
| 3584 | 1221 | |
| 3585 | PORT_START_TAG("DSW0") | |
| 3586 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 3587 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3588 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3589 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 3590 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3591 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3592 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 3593 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3594 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3595 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3596 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3597 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3598 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3599 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3600 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3601 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3602 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3603 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3604 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3605 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3606 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3607 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3608 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3609 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 3610 | 1222 | |
| 3611 | PORT_START_TAG("DSW1") | |
| 3612 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 3613 | PORT_DIPSETTING( 0x0, DEF_STR( Off ) ) | |
| 3614 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3615 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Lives ) ) | |
| 3616 | PORT_DIPSETTING( 0x00, "2" ) | |
| 3617 | PORT_DIPSETTING( 0x02, "3" ) | |
| 3618 | PORT_DIPSETTING( 0x04, "4" ) | |
| 3619 | PORT_DIPSETTING( 0x06, "5" ) | |
| 3620 | PORT_DIPNAME( 0x08, 0x00, "Infinite Lives" ) | |
| 3621 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3622 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3623 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3624 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3625 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3626 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3627 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3628 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3629 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coinage ) ) | |
| 3630 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 3631 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 3632 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 3633 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3634 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 3635 | INPUT_PORTS_END | |
| 1223 | /* changes from galaxian map: | |
| 1224 | galaxian sound removed | |
| 1225 | $4800-$57ff: cointains video and object RAM (normally at $5000-$5fff) | |
| 1226 | $5800-$5fff: AY-8910 access added | |
| 1227 | $6002-$6006: graphics banking controls replace coin lockout, coin counter, and lfo | |
| 1228 | $7002: coin counter (moved from $6003) | |
| 1229 | $8000-$afff: additional ROM area | |
| 1230 | $b000-$bfff: protection | |
| 1231 | */ | |
| 1232 | static ADDRESS_MAP_START( jumpbug_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1233 | ADDRESS_MAP_UNMAP_HIGH | |
| 1234 | AM_RANGE(0x0000, 0x3fff) AM_ROM | |
| 1235 | AM_RANGE(0x4000, 0x47ff) AM_RAM | |
| 1236 | AM_RANGE(0x4800, 0x4bff) AM_MIRROR(0x0400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1237 | AM_RANGE(0x5000, 0x50ff) AM_MIRROR(0x0700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1238 | AM_RANGE(0x5800, 0x5800) AM_MIRROR(0x00ff) AM_WRITE(AY8910_write_port_0_w) | |
| 1239 | AM_RANGE(0x5900, 0x5900) AM_MIRROR(0x00ff) AM_WRITE(AY8910_control_port_0_w) | |
| 1240 | AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x07ff) AM_READ_PORT("IN0") | |
| 1241 | AM_RANGE(0x6002, 0x6006) AM_MIRROR(0x07f8) AM_WRITE(galaxian_gfxbank_w) | |
| 1242 | AM_RANGE(0x6800, 0x6800) AM_MIRROR(0x07ff) AM_READ_PORT("IN1") | |
| 1243 | AM_RANGE(0x7000, 0x7000) AM_MIRROR(0x07ff) AM_READ_PORT("IN2") | |
| 1244 | AM_RANGE(0x7001, 0x7001) AM_MIRROR(0x07f8) AM_WRITE(irq_enable_w) | |
| 1245 | AM_RANGE(0x7002, 0x7002) AM_MIRROR(0x07f8) AM_WRITE(coin_count_0_w) | |
| 1246 | AM_RANGE(0x7004, 0x7004) AM_MIRROR(0x07f8) AM_WRITE(galaxian_stars_enable_w) | |
| 1247 | AM_RANGE(0x7006, 0x7006) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1248 | AM_RANGE(0x7007, 0x7007) AM_MIRROR(0x07f8) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1249 | AM_RANGE(0x8000, 0xafff) AM_ROM | |
| 1250 | AM_RANGE(0xb000, 0xbfff) AM_READ(jumpbug_protection_r) | |
| 1251 | ADDRESS_MAP_END | |
| 3636 | 1252 | |
| 3637 | static INPUT_PORTS_START( hunchbkg ) | |
| 3638 | PORT_START_TAG("IN0") | |
| 3639 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3640 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3641 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(1) | |
| 3642 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(1) | |
| 3643 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3644 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3645 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 3646 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1) | |
| 3647 | 1253 | |
| 3648 | PORT_START_TAG("IN1") | |
| 3649 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Start 1 / P1 Button 1") PORT_PLAYER(1) | |
| 3650 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Start 2 / P1 Button 1") PORT_PLAYER(1) | |
| 3651 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 3652 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 3653 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3654 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 3655 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3656 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1254 | static ADDRESS_MAP_START( frogf_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1255 | ADDRESS_MAP_UNMAP_HIGH | |
| 1256 | AM_RANGE(0x0000, 0x3fff) AM_ROM | |
| 1257 | AM_RANGE(0x8000, 0x87ff) AM_RAM | |
| 1258 | AM_RANGE(0x8800, 0x8bff) AM_MIRROR(0x0400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1259 | AM_RANGE(0x9000, 0x90ff) AM_MIRROR(0x0700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1260 | AM_RANGE(0xa802, 0xa802) AM_MIRROR(0x07f1) AM_WRITE(galaxian_flip_screen_x_w) | |
| 1261 | AM_RANGE(0xa804, 0xa804) AM_MIRROR(0x07f1) AM_WRITE(irq_enable_w) | |
| 1262 | AM_RANGE(0xa806, 0xa806) AM_MIRROR(0x07f1) AM_WRITE(galaxian_flip_screen_y_w) | |
| 1263 | AM_RANGE(0xa808, 0xa808) AM_MIRROR(0x07f1) AM_WRITE(coin_count_1_w) | |
| 1264 | AM_RANGE(0xa80e, 0xa80e) AM_MIRROR(0x07f1) AM_WRITE(coin_count_0_w) | |
| 1265 | AM_RANGE(0xb800, 0xb800) AM_MIRROR(0x07ff) AM_READ(watchdog_reset_r) | |
| 1266 | AM_RANGE(0xc000, 0xffff) AM_READWRITE(frogf_ppi8255_r, frogf_ppi8255_w) | |
| 1267 | ADDRESS_MAP_END | |
| 3657 | 1268 | |
| 3658 | PORT_START_TAG("DSW0") | |
| 3659 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 3660 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3661 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 3662 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 3663 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3664 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3665 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 3666 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3667 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3668 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3669 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3670 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3671 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3672 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3673 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3674 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3675 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3676 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3677 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3678 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3679 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3680 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3681 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3682 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 3683 | 1269 | |
| 3684 | PORT_START_TAG("SENSE") | |
| 3685 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 3686 | INPUT_PORTS_END | |
| 1270 | /* mooncrst */ | |
| 1271 | static ADDRESS_MAP_START( mshuttle_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1272 | ADDRESS_MAP_UNMAP_HIGH | |
| 1273 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 1274 | AM_RANGE(0x8000, 0x83ff) AM_RAM | |
| 1275 | AM_RANGE(0x9000, 0x93ff) AM_MIRROR(0x0400) AM_READWRITE(SMH_RAM, galaxian_videoram_w) AM_BASE(&videoram) | |
| 1276 | AM_RANGE(0x9800, 0x98ff) AM_MIRROR(0x0700) AM_READWRITE(SMH_RAM, galaxian_objram_w) AM_BASE(&spriteram) | |
| 1277 | AM_RANGE(0xa000, 0xa000) AM_READ_PORT("IN0") | |
| 1278 | AM_RANGE(0xa000, 0xa000) AM_WRITE(irq_enable_w) | |
| 1279 | AM_RANGE(0xa001, 0xa001) AM_WRITE(galaxian_stars_enable_w) | |
| 1280 | AM_RANGE(0xa002, 0xa002) AM_WRITE(galaxian_flip_screen_xy_w) | |
| 1281 | AM_RANGE(0xa004, 0xa004) AM_WRITE(cclimber_sample_trigger_w) | |
| 1282 | AM_RANGE(0xa007, 0xa007) AM_WRITE(mshuttle_ay8910_cs_w) | |
| 1283 | AM_RANGE(0xa800, 0xa800) AM_READ_PORT("IN1") | |
| 1284 | AM_RANGE(0xa800, 0xa800) AM_WRITE(cclimber_sample_rate_w) | |
| 1285 | AM_RANGE(0xb000, 0xb000) AM_READ_PORT("IN2") | |
| 1286 | AM_RANGE(0xb000, 0xb000) AM_WRITE(cclimber_sample_volume_w) | |
| 1287 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) | |
| 1288 | ADDRESS_MAP_END | |
| 3687 | 1289 | |
| 3688 | static INPUT_PORTS_START( harem ) | |
| 3689 | PORT_START_TAG("IN0")//Change tag when major usage uncovered. | |
| 3690 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 3691 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3692 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3693 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 3694 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3695 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3696 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 3697 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3698 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3699 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3700 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3701 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3702 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3703 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3704 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3705 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3706 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3707 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3708 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3709 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3710 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3711 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3712 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3713 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1290 | static ADDRESS_MAP_START( mshuttle_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 1291 | ADDRESS_MAP_UNMAP_HIGH | |
| 1292 | ADDRESS_MAP_GLOBAL_MASK(0x0f) | |
| 1293 | AM_RANGE(0x08, 0x08) AM_WRITE(mshuttle_ay8910_control_w) | |
| 1294 | AM_RANGE(0x09, 0x09) AM_WRITE(mshuttle_ay8910_data_w) | |
| 1295 | AM_RANGE(0x0c, 0x0c) AM_READ(mshuttle_ay8910_data_r) | |
| 1296 | ADDRESS_MAP_END | |
| 3714 | 1297 | |
| 3715 | PORT_START_TAG("IN1") | |
| 3716 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 3717 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3718 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3719 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 3720 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3721 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3722 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 3723 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3724 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3725 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3726 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3727 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3728 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3729 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3730 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3731 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3732 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3733 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3734 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3735 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3736 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3737 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3738 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3739 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 3740 | INPUT_PORTS_END | |
| 3741 | 1298 | |
| 3742 | static INPUT_PORTS_START( tazzmang ) | |
| 3743 | PORT_START | |
| 3744 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3745 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3746 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 3747 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 3748 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 3749 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3750 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 3751 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 3752 | 1299 | |
| 3753 | PORT_START | |
| 3754 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("Start 1 / P1 and P2 Button 2") | |
| 3755 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3756 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 3757 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 3758 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 3759 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3760 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 3761 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1300 | /************************************* | |
| 1301 | * | |
| 1302 | * Sound CPU memory maps | |
| 1303 | * | |
| 1304 | *************************************/ | |
| 3762 | 1305 | |
| 3763 | PORT_START | |
| 3764 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 3765 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3766 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 3767 | PORT_DIPNAME( 0x06, 0x04, DEF_STR( Coinage ) ) | |
| 3768 | PORT_DIPSETTING( 0x00, "A 4C/1C B 1C/4C" ) | |
| 3769 | PORT_DIPSETTING( 0x02, "A 3C/1C B 1C/3C" ) | |
| 3770 | PORT_DIPSETTING( 0x06, "A 2C/1C B 1C/2C" ) | |
| 3771 | PORT_DIPSETTING( 0x04, "A 1C/1C B 1C/1C" ) | |
| 3772 | PORT_DIPNAME( 0x08, 0x00, "3" ) | |
| 3773 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3774 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3775 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3776 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3777 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3778 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3779 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3780 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3781 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3782 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3783 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3784 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3785 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3786 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 3787 | INPUT_PORTS_END | |
| 1306 | /* Konami Frogger with 1 x AY-8910A */ | |
| 1307 | static ADDRESS_MAP_START( frogger_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1308 | ADDRESS_MAP_GLOBAL_MASK(0x7fff) | |
| 1309 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 1310 | AM_RANGE(0x4000, 0x43ff) AM_MIRROR(0x1c00) AM_RAM | |
| 1311 | AM_RANGE(0x6000, 0x6fff) AM_MIRROR(0x1000) AM_WRITE(konami_sound_filter_w) | |
| 1312 | ADDRESS_MAP_END | |
| 3788 | 1313 | |
| 3789 | static INPUT_PORTS_START( racknrol ) | |
| 3790 | PORT_START_TAG("IN0") | |
| 3791 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3792 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3793 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 3794 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 3795 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 3796 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 3797 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3798 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1314 | static ADDRESS_MAP_START( frogger_sound_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 1315 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 1316 | AM_RANGE(0x00, 0xff) AM_READWRITE(frogger_ay8910_r, frogger_ay8910_w) | |
| 1317 | ADDRESS_MAP_END | |
| 3799 | 1318 | |
| 3800 | PORT_START_TAG("IN1") | |
| 3801 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3802 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3803 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 3804 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3805 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3806 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3807 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3808 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3809 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3810 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3811 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3812 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3813 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3814 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3815 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3816 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3817 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3818 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3819 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3820 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 3821 | 1319 | |
| 3822 | PORT_START_TAG("DSW0") | |
| 3823 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 3824 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3825 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3826 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 3827 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3828 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3829 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 3830 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3831 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3832 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3833 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3834 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3835 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3836 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3837 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3838 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3839 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3840 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3841 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3842 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3843 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3844 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3845 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3846 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1320 | /* Konami generic with 2 x AY-8910A */ | |
| 1321 | static ADDRESS_MAP_START( konami_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1322 | AM_RANGE(0x0000, 0x2fff) AM_ROM | |
| 1323 | AM_RANGE(0x8000, 0x83ff) AM_MIRROR(0x6c00) AM_RAM | |
| 1324 | AM_RANGE(0x9000, 0x9fff) AM_MIRROR(0x6000) AM_WRITE(konami_sound_filter_w) | |
| 1325 | ADDRESS_MAP_END | |
| 3847 | 1326 | |
| 3848 | PORT_START_TAG("SENSE") | |
| 3849 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 3850 | INPUT_PORTS_END | |
| 1327 | static ADDRESS_MAP_START( konami_sound_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 1328 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 1329 | AM_RANGE(0x00, 0xff) AM_READWRITE(konami_ay8910_r, konami_ay8910_w) | |
| 1330 | ADDRESS_MAP_END | |
| 3851 | 1331 | |
| 3852 | static INPUT_PORTS_START( trvchlng ) | |
| 3853 | PORT_START_TAG("IN0") | |
| 3854 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3855 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3856 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 3857 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 3858 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3859 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON4) | |
| 3860 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3861 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) | |
| 3862 | 1332 | |
| 3863 | PORT_START_TAG("IN1") | |
| 3864 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3865 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3866 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 3867 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3868 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3869 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3870 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3871 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3872 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3873 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3874 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3875 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3876 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3877 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3878 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3879 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3880 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3881 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3882 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3883 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1333 | /* Checkman with 1 x AY-8910A */ | |
| 1334 | static ADDRESS_MAP_START( checkman_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1335 | ADDRESS_MAP_UNMAP_HIGH | |
| 1336 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 1337 | AM_RANGE(0x2000, 0x23ff) AM_RAM | |
| 1338 | ADDRESS_MAP_END | |
| 3884 | 1339 | |
| 3885 | PORT_START_TAG("DSW0") | |
| 3886 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 3887 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3888 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3889 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 3890 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3891 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3892 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 3893 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3894 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 3895 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3896 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3897 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3898 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3899 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3900 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3901 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3902 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3903 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3904 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3905 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3906 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3907 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3908 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3909 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1340 | static ADDRESS_MAP_START( checkman_sound_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 1341 | ADDRESS_MAP_UNMAP_HIGH | |
| 1342 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 1343 | AM_RANGE(0x03, 0x03) AM_READ(soundlatch_r) | |
| 1344 | AM_RANGE(0x04, 0x04) AM_WRITE(AY8910_control_port_0_w) | |
| 1345 | AM_RANGE(0x05, 0x05) AM_WRITE(AY8910_write_port_0_w) | |
| 1346 | AM_RANGE(0x06, 0x06) AM_READ(AY8910_read_port_0_r) | |
| 1347 | ADDRESS_MAP_END | |
| 3910 | 1348 | |
| 3911 | PORT_START_TAG("SENSE") | |
| 3912 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 3913 | INPUT_PORTS_END | |
| 3914 | 1349 | |
| 3915 | static INPUT_PORTS_START( catacomb ) | |
| 3916 | PORT_START_TAG("IN0") | |
| 3917 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3918 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 3919 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 3920 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 3921 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 3922 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 3923 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 3924 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 3925 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3926 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3927 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3928 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3929 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3930 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1350 | /* Checkman alternate with 1 x AY-8910A */ | |
| 1351 | static ADDRESS_MAP_START( checkmaj_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1352 | ADDRESS_MAP_UNMAP_HIGH | |
| 1353 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 1354 | AM_RANGE(0x8000, 0x83ff) AM_RAM | |
| 1355 | AM_RANGE(0xa000, 0xa000) AM_WRITE(AY8910_control_port_0_w) | |
| 1356 | AM_RANGE(0xa001, 0xa001) AM_WRITE(AY8910_write_port_0_w) | |
| 1357 | AM_RANGE(0xa002, 0xa002) AM_READ(AY8910_read_port_0_r) | |
| 1358 | ADDRESS_MAP_END | |
| 3931 | 1359 | |
| 3932 | PORT_START_TAG("IN1") | |
| 3933 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3934 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 3935 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 3936 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 3937 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 3938 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3939 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3940 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3941 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 3942 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 3943 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 3944 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coin_B ) ) | |
| 3945 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_3C ) ) | |
| 3946 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_5C ) ) | |
| 3947 | 1360 | |
| 3948 | PORT_START_TAG("DSW0") | |
| 3949 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 3950 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3951 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 3952 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 3953 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3954 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 3955 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 3956 | PORT_DIPSETTING( 0x04, "3" ) | |
| 3957 | PORT_DIPSETTING( 0x00, "5" ) | |
| 3958 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 3959 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3960 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 3961 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 3962 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3963 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 3964 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 3965 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3966 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 3967 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 3968 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3969 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 3970 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 3971 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 3972 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1361 | /* King and Balloon with DAC */ | |
| 1362 | static ADDRESS_MAP_START( kingball_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1363 | ADDRESS_MAP_UNMAP_HIGH | |
| 1364 | ADDRESS_MAP_GLOBAL_MASK(0x3fff) | |
| 1365 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 1366 | AM_RANGE(0x0000, 0x03ff) AM_MIRROR(0x1c00) AM_RAM | |
| 1367 | ADDRESS_MAP_END | |
| 3973 | 1368 | |
| 3974 | PORT_START_TAG("SENSE") | |
| 3975 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 3976 | INPUT_PORTS_END | |
| 1369 | static ADDRESS_MAP_START( kingball_sound_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 1370 | ADDRESS_MAP_UNMAP_HIGH | |
| 1371 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 1372 | AM_RANGE(0x00, 0x00) AM_MIRROR(0xff) AM_READWRITE(soundlatch_r, kingball_dac_w) | |
| 1373 | ADDRESS_MAP_END | |
| 3977 | 1374 | |
| 3978 | static INPUT_PORTS_START( luctoday ) | |
| 3979 | PORT_START_TAG("IN0") //These inputs are clearly wrong, they need a full test | |
| 3980 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 3981 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3982 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT )PORT_2WAY PORT_NAME("Add Credit to Bet") | |
| 3983 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )PORT_2WAY PORT_NAME("Remove Credit from Bet") | |
| 3984 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 3985 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3986 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 3987 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BILL1 ) | |
| 3988 | 1375 | |
| 3989 | PORT_START_TAG("IN1") | |
| 3990 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 3991 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3992 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3993 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3994 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3995 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3996 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 3997 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1376 | /* SF-X sample player */ | |
| 1377 | static ADDRESS_MAP_START( sfx_sample_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 1378 | AM_RANGE(0x0000, 0x5fff) AM_ROM | |
| 1379 | AM_RANGE(0x8000, 0x83ff) AM_MIRROR(0x6c00) AM_RAM | |
| 1380 | ADDRESS_MAP_END | |
| 3998 | 1381 | |
| 3999 | PORT_START_TAG("DSW0") | |
| 4000 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 4001 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 4002 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 4003 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 4004 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 4005 | INPUT_PORTS_END | |
| 1382 | static ADDRESS_MAP_START( sfx_sample_portmap, ADDRESS_SPACE_IO, 8 ) | |
| 1383 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 1384 | AM_RANGE(0x00, 0xff) AM_READWRITE(sfx_sample_io_r, sfx_sample_io_w) | |
| 1385 | ADDRESS_MAP_END | |
| 4006 | 1386 | |
| 4007 | static INPUT_PORTS_START( ckongg ) | |
| 4008 | PORT_START_TAG("IN0") | |
| 4009 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 4010 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 4011 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 4012 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 4013 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 4014 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 4015 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 4016 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 4017 | 1387 | |
| 4018 | PORT_START_TAG("IN1") | |
| 4019 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 4020 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 4021 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 4022 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 4023 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 4024 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 4025 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 4026 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 4027 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 4028 | // PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 4029 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 4030 | 1388 | |
| 4031 | PORT_START_TAG("DSW0") | |
| 4032 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 4033 | PORT_DIPSETTING( 0x00, "1" ) | |
| 4034 | PORT_DIPSETTING( 0x01, "2" ) | |
| 4035 | PORT_DIPSETTING( 0x02, "3" ) | |
| 4036 | PORT_DIPSETTING( 0x03, "4" ) | |
| 4037 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) | |
| 4038 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 4039 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 4040 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) | |
| 4041 | PORT_DIPSETTING( 0x08, "500000" ) | |
| 4042 | PORT_DIPSETTING( 0x00, "750000" ) | |
| 4043 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 4044 | INPUT_PORTS_END | |
| 1389 | /************************************* | |
| 1390 | * | |
| 1391 | * Graphics layouts | |
| 1392 | * | |
| 1393 | *************************************/ | |
| 4045 | 1394 | |
| 4046 | /* not correct */ | |
| 4047 | static INPUT_PORTS_START( kkgalax ) | |
| 4048 | PORT_START_TAG("IN0") | |
| 4049 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 4050 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 4051 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 4052 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 4053 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 4054 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 4055 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 4056 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 4057 | ||
| 4058 | PORT_START_TAG("IN1") | |
| 4059 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) // button 1 and start 1 | |
| 4060 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL // button 1 and start 2? | |
| 4061 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 4062 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 4063 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 4064 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 4065 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 4066 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 4067 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 4068 | // PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 4069 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 4070 | ||
| 4071 | PORT_START_TAG("DSW0") | |
| 4072 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 4073 | PORT_DIPSETTING( 0x00, "1" ) | |
| 4074 | PORT_DIPSETTING( 0x01, "2" ) | |
| 4075 | PORT_DIPSETTING( 0x02, "3" ) | |
| 4076 | PORT_DIPSETTING( 0x03, "4" ) | |
| 4077 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) | |
| 4078 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 4079 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 4080 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) | |
| 4081 | PORT_DIPSETTING( 0x08, "500000" ) | |
| 4082 | PORT_DIPSETTING( 0x00, "750000" ) | |
| 4083 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 4084 | INPUT_PORTS_END | |
| 4085 | ||
| 4086 | static INPUT_PORTS_START( porter ) | |
| 4087 | PORT_START_TAG("IN0")\ | |
| 4088 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 4089 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 4090 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 4091 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 4092 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 4093 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 4094 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 4095 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4096 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 4097 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 4098 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4099 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 4100 | ||
| 4101 | PORT_START_TAG("IN1") | |
| 4102 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) // and START | |
| 4103 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) // and START2 | |
| 4104 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 4105 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 4106 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 4107 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 4108 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 4109 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4110 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 4111 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 4112 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4113 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 4114 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 4115 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4116 | ||
| 4117 | PORT_START_TAG("DSW") | |
| 4118 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 4119 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 4120 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4121 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 4122 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 4123 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4124 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 4125 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 4126 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4127 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 4128 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 4129 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4130 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 4131 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 4132 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4133 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 4134 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 4135 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4136 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 4137 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 4138 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4139 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 4140 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 4141 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 4142 | INPUT_PORTS_END | |
| 4143 | ||
| 4144 | 1395 | static const gfx_layout galaxian_charlayout = |
| 4145 | 1396 | { |
| 4146 | 1397 | 8,8, |
| 4147 | 1398 | RGN_FRAC(1,2), |
| 4148 | 1399 | 2, |
| 4149 | 1400 | { RGN_FRAC(0,2), RGN_FRAC(1,2) }, |
| 4150 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 4151 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 1401 | { STEP8(0,1) }, | |
| 1402 | { STEP8(0,8) }, | |
| 4152 | 1403 | 8*8 |
| 4153 | 1404 | }; |
| 1405 | ||
| 4154 | 1406 | static const gfx_layout galaxian_spritelayout = |
| 4155 | 1407 | { |
| 4156 | 1408 | 16,16, |
| 4157 | 1409 | RGN_FRAC(1,2), |
| 4158 | 1410 | 2, |
| 4159 | 1411 | { RGN_FRAC(0,2), RGN_FRAC(1,2) }, |
| 4160 | { 0, 1, 2, 3, 4, 5, 6, 7, | |
| 4161 | 8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7 }, | |
| 4162 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, | |
| 4163 | 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 }, | |
| 4164 | 32*8 | |
| 1412 | { STEP8(0,1), STEP8(8*8,1) }, | |
| 1413 | { STEP8(0,8), STEP8(16*8,8) }, | |
| 1414 | 16*16 | |
| 4165 | 1415 | }; |
| 4166 | 1416 | |
| 4167 | static const gfx_layout pacmanbl_charlayout = | |
| 1417 | ||
| 1418 | ||
| 1419 | /************************************* | |
| 1420 | * | |
| 1421 | * Graphics decoding | |
| 1422 | * | |
| 1423 | *************************************/ | |
| 1424 | ||
| 1425 | GFXDECODE_START(galaxian) | |
| 1426 | GFXDECODE_SCALE(REGION_GFX1, 0x0000, galaxian_charlayout, 0, 8, GALAXIAN_XSCALE,1) | |
| 1427 | GFXDECODE_SCALE(REGION_GFX1, 0x0000, galaxian_spritelayout, 0, 8, GALAXIAN_XSCALE,1) | |
| 1428 | GFXDECODE_END | |
| 1429 | ||
| 1430 | GFXDECODE_START(gmgalax) | |
| 1431 | GFXDECODE_SCALE(REGION_GFX1, 0x0000, galaxian_charlayout, 0, 16, GALAXIAN_XSCALE,1) | |
| 1432 | GFXDECODE_SCALE(REGION_GFX1, 0x0000, galaxian_spritelayout, 0, 16, GALAXIAN_XSCALE,1) | |
| 1433 | GFXDECODE_END | |
| 1434 | ||
| 1435 | /* separate character and sprite ROMs */ | |
| 1436 | GFXDECODE_START(pacmanbl) | |
| 1437 | GFXDECODE_SCALE(REGION_GFX1, 0x0000, galaxian_charlayout, 0, 8, GALAXIAN_XSCALE,1) | |
| 1438 | GFXDECODE_SCALE(REGION_GFX2, 0x0000, galaxian_spritelayout, 0, 8, GALAXIAN_XSCALE,1) | |
| 1439 | GFXDECODE_END | |
| 1440 | ||
| 1441 | ||
| 1442 | ||
| 1443 | /************************************* | |
| 1444 | * | |
| 1445 | * Sound configuration | |
| 1446 | * | |
| 1447 | *************************************/ | |
| 1448 | ||
| 1449 | static struct AY8910interface frogger_ay8910_interface = | |
| 4168 | 1450 | { |
| 4169 | 8,8, | |
| 4170 | 256, | |
| 4171 | 2, | |
| 4172 | { 0, 256*8*8 }, | |
| 4173 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 4174 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 4175 | 8*8 | |
| 1451 | soundlatch_r, | |
| 1452 | frogger_sound_timer_r | |
| 4176 | 1453 | }; |
| 4177 | static const gfx_layout pacmanbl_spritelayout = | |
| 1454 | ||
| 1455 | static struct AY8910interface konami_ay8910_interface = | |
| 4178 | 1456 | { |
| 4179 | 16,16, | |
| 4180 | 64, | |
| 4181 | 2, | |
| 4182 | { 0, 64*16*16 }, | |
| 4183 | { 0, 1, 2, 3, 4, 5, 6, 7, | |
| 4184 | 8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7 }, | |
| 4185 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, | |
| 4186 | 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 }, | |
| 4187 | 32*8 | |
| 1457 | soundlatch_r, | |
| 1458 | konami_sound_timer_r | |
| 4188 | 1459 | }; |
| 4189 | 1460 | |
| 4190 | static | |
| 1461 | static | |
| 4191 | 1462 | { |
| 4192 | 8,8, | |
| 4193 | 512, | |
| 4194 | 2, | |
| 4195 | { 0, 512*8*8 }, | |
| 4196 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 4197 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 4198 | 8*8 | |
| 1463 | konami_sound_timer_r | |
| 4199 | 1464 | }; |
| 4200 | 1465 | |
| 4201 | static | |
| 1466 | static | |
| 4202 | 1467 | { |
| 4203 | 8,8, | |
| 4204 | 1024, | |
| 4205 | 2, | |
| 4206 | { 0, 1024*8*8 }, | |
| 4207 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 4208 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 4209 | 8*8 | |
| 1468 | explorer_sound_latch_r | |
| 4210 | 1469 | }; |
| 4211 | static const gfx_layout _4in1_spritelayout = | |
| 1470 | ||
| 1471 | static struct AY8910interface sfx_ay8910_interface = | |
| 4212 | 1472 | { |
| 4213 | 16,16, | |
| 4214 | 256, | |
| 4215 | 2, | |
| 4216 | { 0, 256*16*16 }, | |
| 4217 | { 0, 1, 2, 3, 4, 5, 6, 7, | |
| 4218 | 8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7 }, | |
| 4219 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, | |
| 4220 | 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 }, | |
| 4221 | 32*8 | |
| 1473 | 0, | |
| 1474 | 0, | |
| 1475 | soundlatch2_w, | |
| 1476 | sfx_sample_control_w | |
| 4222 | 1477 | }; |
| 4223 | 1478 | |
| 4224 | static | |
| 1479 | static | |
| 4225 | 1480 | { |
| 4226 | 8,8, | |
| 4227 | 256, | |
| 4228 | 4,//? | |
| 4229 | { 4, 0,4096*8+4,4096*8 }, | |
| 4230 | { 3, 2, 1, 0,11 ,10, 9, 8 }, | |
| 4231 | { 0*8*2, 1*8*2, 2*8*2, 3*8*2, 4*8*2, 5*8*2, 6*8*2, 7*8*2 }, | |
| 4232 | 8*8*2 | |
| 1481 | 0, | |
| 1482 | 0, | |
| 1483 | scorpion_sound_data_w, | |
| 1484 | scorpion_sound_control_w, | |
| 4233 | 1485 | }; |
| 4234 | 1486 | |
| 4235 | static GFXDECODE_START( rockclim ) | |
| 4236 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxian_charlayout, 32, 8 ) | |
| 4237 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxian_spritelayout, 32, 8 ) | |
| 4238 | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, rockclim_charlayout, 0, 1 ) | |
| 4239 | GFXDECODE_END | |
| 1487 | static struct AY8910interface checkmaj_ay8910_interface = | |
| 1488 | { | |
| 1489 | soundlatch_r | |
| 1490 | }; | |
| 4240 | 1491 | |
| 4241 | 1492 | |
| 1493 | static const discrete_mixer_desc konami_sound_mixer_desc = | |
| 1494 | {DISC_MIXER_IS_RESISTOR, | |
| 1495 | {RES_K(5.1), RES_K(5.1), RES_K(5.1), RES_K(5.1), RES_K(5.1), RES_K(5.1)}, | |
| 1496 | {0,0,0,0,0,0}, /* no variable resistors */ | |
| 1497 | {0,0,0,0,0,0}, /* no node capacitors */ | |
| 1498 | 0, RES_K(200), /* actually after an opamp */ | |
| 1499 | 0, | |
| 1500 | CAP_U(0.15), | |
| 1501 | 0, 1}; | |
| 4242 | 1502 | |
| 1503 | static DISCRETE_SOUND_START( konami_sound ) | |
| 4243 | 1504 | |
| 4244 | static GFXDECODE_START( galaxian ) | |
| 4245 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxian_charlayout, 0, 8 ) | |
| 4246 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxian_spritelayout, 0, 8 ) | |
| 4247 | GFXDECODE_END | |
| 1505 | DISCRETE_INPUTX_STREAM(NODE_01, 0, 1.0, 0) | |
| 1506 | DISCRETE_INPUTX_STREAM(NODE_02, 1, 1.0, 0) | |
| 1507 | DISCRETE_INPUTX_STREAM(NODE_03, 2, 1.0, 0) | |
| 4248 | 1508 | |
| 4249 | static GFXDECODE_START( gmgalax ) | |
| 4250 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxian_charlayout, 0, 16 ) | |
| 4251 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxian_spritelayout, 0, 16 ) | |
| 4252 | GFXDECODE_END | |
| 1509 | DISCRETE_INPUTX_STREAM(NODE_04, 3, 1.0, 0) | |
| 1510 | DISCRETE_INPUTX_STREAM(NODE_05, 4, 1.0, 0) | |
| 1511 | DISCRETE_INPUTX_STREAM(NODE_06, 5, 1.0, 0) | |
| 4253 | 1512 | |
| 4254 | /* separate character and sprite ROMs */ | |
| 4255 | static GFXDECODE_START( pacmanbl ) | |
| 4256 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, pacmanbl_charlayout, 0, 8 ) | |
| 4257 | GFXDECODE_ENTRY( REGION_GFX1, 0x1000, pacmanbl_spritelayout, 0, 8 ) | |
| 4258 | GFXDECODE_END | |
| 1513 | DISCRETE_INPUT_DATA(NODE_11) | |
| 1514 | DISCRETE_INPUT_DATA(NODE_12) | |
| 1515 | DISCRETE_INPUT_DATA(NODE_13) | |
| 4259 | 1516 | |
| 4260 | static GFXDECODE_START( bagmanmc ) | |
| 4261 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, bagmanmc_charlayout, 0, 8 ) | |
| 4262 | GFXDECODE_ENTRY( REGION_GFX1, 0x2000, pacmanbl_spritelayout, 0, 8 ) | |
| 4263 | GFXDECODE_END | |
| 1517 | DISCRETE_INPUT_DATA(NODE_14) | |
| 1518 | DISCRETE_INPUT_DATA(NODE_15) | |
| 1519 | DISCRETE_INPUT_DATA(NODE_16) | |
| 4264 | 1520 | |
| 4265 | static GFXDECODE_START( _4in1 ) | |
| 4266 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, _4in1_charlayout, 0, 8 ) | |
| 4267 | GFXDECODE_ENTRY( REGION_GFX1, 0x4000, _4in1_spritelayout, 0, 8 ) | |
| 4268 | GFXDECODE_END | |
| 1521 | DISCRETE_RCFILTER_SW(NODE_21, 1, NODE_01, NODE_11, 1000, CAP_U(0.22), CAP_U(0.047), 0, 0) | |
| 1522 | DISCRETE_RCFILTER_SW(NODE_22, 1, NODE_02, NODE_12, 1000, CAP_U(0.22), CAP_U(0.047), 0, 0) | |
| 1523 | DISCRETE_RCFILTER_SW(NODE_23, 1, NODE_03, NODE_13, 1000, CAP_U(0.22), CAP_U(0.047), 0, 0) | |
| 4269 | 1524 | |
| 4270 | static const struct AY8910interface checkmaj_ay8910_interface = | |
| 4271 | { | |
| 4272 | soundlatch_r | |
| 4273 | }; | |
| 1525 | DISCRETE_RCFILTER_SW(NODE_24, 1, NODE_04, NODE_14, 1000, CAP_U(0.22), CAP_U(0.047), 0, 0) | |
| 1526 | DISCRETE_RCFILTER_SW(NODE_25, 1, NODE_05, NODE_15, 1000, CAP_U(0.22), CAP_U(0.047), 0, 0) | |
| 1527 | DISCRETE_RCFILTER_SW(NODE_26, 1, NODE_06, NODE_16, 1000, CAP_U(0.22), CAP_U(0.047), 0, 0) | |
| 4274 | 1528 | |
| 4275 | static const struct AY8910interface bongo_ay8910_interface = | |
| 4276 | { | |
| 4277 | input_port_3_r | |
| 4278 | }; | |
| 1529 | DISCRETE_MIXER6(NODE_30, 1, NODE_21, NODE_22, NODE_23, NODE_24, NODE_25, NODE_26, &konami_sound_mixer_desc) | |
| 4279 | 1530 | |
| 1531 | /* FIXME the amplifier M51516L has a decay circuit */ | |
| 1532 | /* This is handled with sound_global_enable but */ | |
| 1533 | /* belongs here. */ | |
| 4280 | 1534 | |
| 1535 | DISCRETE_OUTPUT(NODE_30, 5.0 ) | |
| 1536 | ||
| 1537 | DISCRETE_SOUND_END | |
| 1538 | ||
| 1539 | ||
| 1540 | ||
| 1541 | /************************************* | |
| 1542 | * | |
| 1543 | * Core machine driver pieces | |
| 1544 | * | |
| 1545 | *************************************/ | |
| 1546 | ||
| 4281 | 1547 | static MACHINE_DRIVER_START( galaxian_base ) |
| 4282 | 1548 | |
| 4283 | 1549 | /* basic machine hardware */ |
| 4284 | MDRV_CPU_ADD_TAG("main", Z80, PIXEL_CLOCK/2) /* 3.072 MHz */ | |
| 4285 | MDRV_CPU_PROGRAM_MAP(galaxian_readmem,galaxian_writemem) | |
| 1550 | MDRV_CPU_ADD_TAG("main", Z80, GALAXIAN_PIXEL_CLOCK/3/2) | |
| 1551 | MDRV_CPU_PROGRAM_MAP(galaxian_map,0) | |
| 1552 | MDRV_CPU_VBLANK_INT("main", interrupt_gen) | |
| 4286 | 1553 | |
| 4287 | MDRV_ | |
| 1554 | MDRV_WATCHDOG_VBLANK_INI | |
| 4288 | 1555 | |
| 4289 | 1556 | /* video hardware */ |
| 4290 | 1557 | MDRV_GFXDECODE(galaxian) |
| 4291 | MDRV_PALETTE_LENGTH(32 | |
| 1558 | MDRV_PALETTE_LENGTH(32 | |
| 4292 | 1559 | |
| 4293 | 1560 | MDRV_SCREEN_ADD("main", RASTER) |
| 4294 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 4295 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 1561 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 1562 | MDRV_SCREEN_RAW_PARAMS(GALAXIAN_PIXEL_CLOCK, GALAXIAN_HTOTAL, GALAXIAN_HBEND, GALAXIAN_HBSTART, GALAXIAN_VTOTAL, GALAXIAN_VBEND, GALAXIAN_VBSTART) | |
| 4296 | 1563 | |
| 4297 | 1564 | MDRV_PALETTE_INIT(galaxian) |
| 4298 | 1565 | MDRV_VIDEO_START(galaxian) |
| 4299 | 1566 | MDRV_VIDEO_UPDATE(galaxian) |
| 4300 | 1567 | |
| 1568 | /* blinking frequency is determined by 555 counter with Ra=100k, Rb=10k, C=10uF */ | |
| 1569 | MDRV_TIMER_ADD_PERIODIC("stars", galaxian_stars_blink_timer, NSEC(PERIOD_OF_555_ASTABLE_NSEC(100000, 10000, 0.00001))) | |
| 1570 | ||
| 4301 | 1571 | /* sound hardware */ |
| 4302 | 1572 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 4303 | 1573 | MACHINE_DRIVER_END |
| 4304 | 1574 | |
| 4305 | 1575 | |
| 4306 | static MACHINE_DRIVER_START( galaxian ) | |
| 1576 | static MACHINE_DRIVER_START( galaxian_sound ) | |
| 4307 | 1577 | |
| 4308 | /* basic machine hardware */ | |
| 4309 | MDRV_IMPORT_FROM(galaxian_base) | |
| 4310 | ||
| 4311 | 1578 | /* sound hardware */ |
| 4312 | 1579 | MDRV_SOUND_ADD(SAMPLES, 0) |
| 4313 | MDRV_SOUND_CONFIG(galaxian_s | |
| 1580 | MDRV_SOUND_CONFIG(galaxian_custom | |
| 4314 | 1581 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 4315 | 1582 | MACHINE_DRIVER_END |
| 4316 | 1583 | |
| 4317 | 1584 | |
| 4318 | static MACHINE_DRIVER_START( | |
| 1585 | static MACHINE_DRIVER_START( konami_sound_1x_ay8910 ) | |
| 4319 | 1586 | |
| 4320 | /* basic machine hardware */ | |
| 4321 | MDRV_IMPORT_FROM(galaxian) | |
| 4322 | MDRV_CPU_MODIFY("main") | |
| 4323 | MDRV_CPU_PROGRAM_MAP(gmgalax_readmem,galaxian_writemem) | |
| 4324 | MDRV_CPU_VBLANK_INT("main", gmgalax_vh_interrupt) | |
| 1587 | /* 2nd CPU to drive sound */ | |
| 1588 | MDRV_CPU_ADD_TAG("sound", Z80, KONAMI_SOUND_CLOCK/8) | |
| 1589 | MDRV_CPU_PROGRAM_MAP(frogger_sound_map,0) | |
| 1590 | MDRV_CPU_IO_MAP(frogger_sound_portmap,0) | |
| 4325 | 1591 | |
| 4326 | /* video hardware */ | |
| 4327 | MDRV_GFXDECODE(gmgalax) | |
| 4328 | MDRV_PALETTE_LENGTH(64+2+64) /* 64 for the characters, 2 for the bullets, 64 for the stars */ | |
| 1592 | /* sound hardware */ | |
| 1593 | MDRV_SOUND_ADD_TAG("8910.0", AY8910, KONAMI_SOUND_CLOCK/8) | |
| 1594 | MDRV_SOUND_CONFIG(frogger_ay8910_interface) | |
| 1595 | MDRV_SOUND_ROUTE_EX(0, "konami", 1.0, 0) | |
| 1596 | MDRV_SOUND_ROUTE_EX(1, "konami", 1.0, 1) | |
| 1597 | MDRV_SOUND_ROUTE_EX(2, "konami", 1.0, 2) | |
| 4329 | 1598 | |
| 4330 | MDRV_VIDEO_START(gmgalax) | |
| 1599 | MDRV_SOUND_ADD_TAG("konami", DISCRETE, 0) | |
| 1600 | MDRV_SOUND_CONFIG_DISCRETE(konami_sound) | |
| 1601 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 4331 | 1602 | MACHINE_DRIVER_END |
| 4332 | 1603 | |
| 4333 | 1604 | |
| 4334 | static MACHINE_DRIVER_START( | |
| 1605 | static MACHINE_DRIVER_START( konami_sound_2x_ay8910 ) | |
| 4335 | 1606 | |
| 4336 | /* basic machine hardware */ | |
| 4337 | MDRV_IMPORT_FROM(galaxian) | |
| 1607 | /* 2nd CPU to drive sound */ | |
| 1608 | MDRV_CPU_ADD_TAG("sound", Z80, KONAMI_SOUND_CLOCK/8) | |
| 1609 | MDRV_CPU_PROGRAM_MAP(konami_sound_map,0) | |
| 1610 | MDRV_CPU_IO_MAP(konami_sound_portmap,0) | |
| 4338 | 1611 | |
| 4339 | /* video hardware */ | |
| 4340 | MDRV_VIDEO_START(pisces) | |
| 4341 | MACHINE_DRIVER_END | |
| 1612 | /* sound hardware */ | |
| 1613 | MDRV_SOUND_ADD_TAG("8910.0", AY8910, KONAMI_SOUND_CLOCK/8) | |
| 1614 | MDRV_SOUND_ROUTE_EX(0, "konami", 1.0, 0) | |
| 1615 | MDRV_SOUND_ROUTE_EX(1, "konami", 1.0, 1) | |
| 1616 | MDRV_SOUND_ROUTE_EX(2, "konami", 1.0, 2) | |
| 4342 | 1617 | |
| 1618 | MDRV_SOUND_ADD_TAG("8910.1", AY8910, KONAMI_SOUND_CLOCK/8) | |
| 1619 | MDRV_SOUND_CONFIG(konami_ay8910_interface) | |
| 1620 | MDRV_SOUND_ROUTE_EX(0, "konami", 1.0, 3) | |
| 1621 | MDRV_SOUND_ROUTE_EX(1, "konami", 1.0, 4) | |
| 1622 | MDRV_SOUND_ROUTE_EX(2, "konami", 1.0, 5) | |
| 4343 | 1623 | |
| 4344 | static MACHINE_DRIVER_START( gteikob2 ) | |
| 4345 | ||
| 4346 | /* basic machine hardware */ | |
| 4347 | MDRV_IMPORT_FROM(galaxian) | |
| 4348 | ||
| 4349 | /* video hardware */ | |
| 4350 | MDRV_VIDEO_START(gteikob2) | |
| 1624 | MDRV_SOUND_ADD_TAG("konami", DISCRETE, 0) | |
| 1625 | MDRV_SOUND_CONFIG_DISCRETE(konami_sound) | |
| 1626 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 4351 | 1627 | MACHINE_DRIVER_END |
| 4352 | 1628 | |
| 4353 | 1629 | |
| 4354 | static MACHINE_DRIVER_START( batman2 ) | |
| 4355 | 1630 | |
| 4356 | /* basic machine hardware */ | |
| 4357 | MDRV_IMPORT_FROM(galaxian) | |
| 1631 | /************************************* | |
| 1632 | * | |
| 1633 | * Machine drivers | |
| 1634 | * | |
| 1635 | *************************************/ | |
| 4358 | 1636 | |
| 4359 | /* video hardware */ | |
| 4360 | MDRV_VIDEO_START(batman2) | |
| 1637 | static MACHINE_DRIVER_START( galaxian ) | |
| 1638 | MDRV_IMPORT_FROM(galaxian_base) | |
| 1639 | MDRV_IMPORT_FROM(galaxian_sound) | |
| 4361 | 1640 | MACHINE_DRIVER_END |
| 4362 | 1641 | |
| 4363 | 1642 | |
| 4364 | static MACHINE_DRIVER_START( mooncrgx ) | |
| 4365 | ||
| 4366 | /* basic machine hardware */ | |
| 4367 | MDRV_IMPORT_FROM(galaxian) | |
| 4368 | ||
| 4369 | /* video hardware */ | |
| 4370 | MDRV_VIDEO_START(mooncrgx) | |
| 4371 | MACHINE_DRIVER_END | |
| 4372 | ||
| 4373 | ||
| 4374 | 1643 | static MACHINE_DRIVER_START( pacmanbl ) |
| 4375 | ||
| 4376 | /* basic machine hardware */ | |
| 4377 | 1644 | MDRV_IMPORT_FROM(galaxian) |
| 4378 | 1645 | |
| 4379 | /* | |
| 1646 | /* s | |
| 4380 | 1647 | MDRV_GFXDECODE(pacmanbl) |
| 4381 | 1648 | MACHINE_DRIVER_END |
| 4382 | 1649 | |
| 4383 | 1650 | |
| 4384 | static MACHINE_DRIVER_START( devilfsg ) | |
| 1651 | static MACHINE_DRIVER_START( zigzag ) | |
| 1652 | MDRV_IMPORT_FROM(galaxian_base) | |
| 4385 | 1653 | |
| 4386 | /* basic machine hardware */ | |
| 4387 | MDRV_IMPORT_FROM(galaxian) | |
| 4388 | MDRV_CPU_MODIFY("main") | |
| 4389 | ||
| 4390 | MDRV_MACHINE_RESET(devilfsg) | |
| 4391 | ||
| 4392 | /* video hardware */ | |
| 1654 | /* separate tile/sprite ROMs */ | |
| 4393 | 1655 | MDRV_GFXDECODE(pacmanbl) |
| 4394 | MACHINE_DRIVER_END | |
| 4395 | 1656 | |
| 4396 | ||
| 4397 | static MACHINE_DRIVER_START( mooncrst ) | |
| 4398 | ||
| 4399 | /* basic machine hardware */ | |
| 4400 | MDRV_IMPORT_FROM(galaxian) | |
| 4401 | MDRV_CPU_MODIFY("main") | |
| 4402 | MDRV_CPU_PROGRAM_MAP(mooncrst_readmem,mooncrst_writemem) | |
| 4403 | ||
| 4404 | /* video hardware */ | |
| 4405 | MDRV_VIDEO_START(mooncrst) | |
| 4406 | MACHINE_DRIVER_END | |
| 4407 | ||
| 4408 | ||
| 4409 | static MACHINE_DRIVER_START( skybase ) | |
| 4410 | ||
| 4411 | /* basic machine hardware */ | |
| 4412 | MDRV_IMPORT_FROM(galaxian) | |
| 4413 | MDRV_CPU_MODIFY("main") | |
| 4414 | MDRV_CPU_PROGRAM_MAP(mooncrst_readmem,skybase_writemem) | |
| 4415 | ||
| 4416 | /* video hardware */ | |
| 4417 | MDRV_VIDEO_START(pisces) | |
| 4418 | MACHINE_DRIVER_END | |
| 4419 | ||
| 4420 | ||
| 4421 | static MACHINE_DRIVER_START( moonqsr ) | |
| 4422 | ||
| 4423 | /* basic machine hardware */ | |
| 4424 | MDRV_IMPORT_FROM(galaxian) | |
| 4425 | MDRV_CPU_MODIFY("main") | |
| 4426 | MDRV_CPU_PROGRAM_MAP(mooncrst_readmem,mooncrst_writemem) | |
| 4427 | ||
| 4428 | /* video hardware */ | |
| 4429 | MDRV_VIDEO_START(moonqsr) | |
| 4430 | MACHINE_DRIVER_END | |
| 4431 | ||
| 4432 | ||
| 4433 | static MACHINE_DRIVER_START( mshuttle ) | |
| 4434 | ||
| 4435 | /* basic machine hardware */ | |
| 4436 | MDRV_IMPORT_FROM(galaxian_base) | |
| 4437 | MDRV_CPU_MODIFY("main") | |
| 4438 | MDRV_CPU_PROGRAM_MAP(mooncrst_readmem,mshuttle_writemem) | |
| 4439 | MDRV_CPU_IO_MAP(mshuttle_readport,mshuttle_writeport) | |
| 4440 | ||
| 4441 | MDRV_MACHINE_RESET(devilfsg) | |
| 4442 | ||
| 4443 | /* video hardware */ | |
| 4444 | MDRV_VIDEO_START(mshuttle) | |
| 4445 | ||
| 4446 | 1657 | /* sound hardware */ |
| 4447 | MDRV_SOUND_ADD(AY8910, PIXEL_CLOCK/4) | |
| 4448 | MDRV_SOUND_CONFIG(cclimber_ay8910_interface) | |
| 1658 | MDRV_SOUND_ADD(AY8910, 1789750) | |
| 4449 | 1659 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 4450 | ||
| 4451 | MDRV_SOUND_ADD(SAMPLES, 0) | |
| 4452 | MDRV_SOUND_CONFIG(cclimber_samples_interface) | |
| 4453 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) | |
| 4454 | 1660 | MACHINE_DRIVER_END |
| 4455 | 1661 | |
| 4456 | 1662 | |
| 4457 | static MACHINE_DRIVER_START( scramblb ) | |
| 4458 | ||
| 4459 | /* basic machine hardware */ | |
| 1663 | static MACHINE_DRIVER_START( gmgalax ) | |
| 4460 | 1664 | MDRV_IMPORT_FROM(galaxian) |
| 4461 | MDRV_CPU_MODIFY("main") | |
| 4462 | MDRV_CPU_PROGRAM_MAP(scramblb_readmem,scramblb_writemem) | |
| 4463 | 1665 | |
| 4464 | /* video hardware */ | |
| 4465 | MDRV_PALETTE_LENGTH(32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */ | |
| 4466 | ||
| 4467 | MDRV_PALETTE_INIT(scramble) | |
| 4468 | MDRV_VIDEO_START(scramble) | |
| 1666 | /* banked video hardware */ | |
| 1667 | MDRV_GFXDECODE(gmgalax) | |
| 1668 | MDRV_PALETTE_LENGTH(64) | |
| 4469 | 1669 | MACHINE_DRIVER_END |
| 4470 | 1670 | |
| 4471 | static MACHINE_DRIVER_START( scramb2 ) | |
| 4472 | 1671 | |
| 4473 | ||
| 1672 | ||
| 4474 | 1673 | MDRV_IMPORT_FROM(galaxian) |
| 4475 | MDRV_CPU_MODIFY("main") | |
| 4476 | MDRV_CPU_PROGRAM_MAP(scramb2_readmem,scramb2_writemem) | |
| 4477 | 1674 | |
| 4478 | /* video hardware */ | |
| 4479 | MDRV_PALETTE_LENGTH(32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */ | |
| 4480 | ||
| 4481 | MDRV_PALETTE_INIT(scramble) | |
| 4482 | MDRV_VIDEO_START(scramble) | |
| 4483 | MACHINE_DRIVER_END | |
| 4484 | ||
| 4485 | ||
| 4486 | ||
| 4487 | static MACHINE_DRIVER_START( zigzag ) | |
| 4488 | ||
| 4489 | /* basic machine hardware */ | |
| 4490 | MDRV_IMPORT_FROM(galaxian_base) | |
| 1675 | /* alternate memory map */ | |
| 4491 | 1676 | MDRV_CPU_MODIFY("main") |
| 4492 | MDRV_CPU_PROGRAM_MAP(zigzag_readmem,zigzag_writemem) | |
| 4493 | ||
| 4494 | /* video hardware */ | |
| 4495 | MDRV_GFXDECODE(pacmanbl) | |
| 4496 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ | |
| 4497 | ||
| 4498 | ||
| 4499 | MDRV_VIDEO_START(galaxian_plain) | |
| 4500 | ||
| 4501 | /* sound hardware */ | |
| 4502 | MDRV_SOUND_ADD(AY8910, 1789750) | |
| 4503 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 1677 | MDRV_CPU_PROGRAM_MAP(mooncrst_map,0) | |
| 4504 | 1678 | MACHINE_DRIVER_END |
| 4505 | 1679 | |
| 4506 | 1680 | |
| 4507 | 1681 | static MACHINE_DRIVER_START( jumpbug ) |
| 1682 | MDRV_IMPORT_FROM(galaxian_base) | |
| 4508 | 1683 | |
| 1684 | MDRV_WATCHDOG_VBLANK_INIT(0) | |
| 1685 | ||
| 4509 | 1686 | /* basic machine hardware */ |
| 4510 | MDRV_IMPORT_FROM(galaxian_base) | |
| 4511 | 1687 | MDRV_CPU_MODIFY("main") |
| 4512 | MDRV_CPU_PROGRAM_MAP(jumpbug_ | |
| 1688 | MDRV_CPU_PROGRAM_MAP(jumpbug_ | |
| 4513 | 1689 | |
| 4514 | /* video hardware */ | |
| 4515 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ | |
| 4516 | ||
| 4517 | MDRV_VIDEO_START(jumpbug) | |
| 4518 | ||
| 4519 | 1690 | /* sound hardware */ |
| 4520 | 1691 | MDRV_SOUND_ADD(AY8910, 1789750) |
| 4521 | 1692 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 4522 | 1693 | MACHINE_DRIVER_END |
| 4523 | 1694 | |
| 4524 | 1695 | |
| 4525 | static MACHINE_DRIVER_START( azurian ) | |
| 4526 | /* basic machine hardware */ | |
| 4527 | MDRV_IMPORT_FROM(galaxian) | |
| 4528 | ||
| 4529 | /* video hardware */ | |
| 4530 | MDRV_VIDEO_START(azurian) | |
| 4531 | MACHINE_DRIVER_END | |
| 4532 | ||
| 4533 | ||
| 4534 | 1696 | static MACHINE_DRIVER_START( checkman ) |
| 1697 | MDRV_IMPORT_FROM(mooncrst) | |
| 4535 | 1698 | |
| 4536 | 1699 | /* basic machine hardware */ |
| 4537 | MDRV_IMPORT_FROM(galaxian_base) | |
| 4538 | MDRV_CPU_MODIFY("main") | |
| 4539 | MDRV_CPU_PROGRAM_MAP(mooncrst_readmem,checkman_writemem) | |
| 4540 | MDRV_CPU_IO_MAP(0,checkman_writeport) | |
| 4541 | ||
| 4542 | MDRV_CPU_ADD(Z80, 1620000) | |
| 4543 | /* audio CPU */ /* 1.62 MHz */ | |
| 4544 | MDRV_CPU_PROGRAM_MAP(checkman_sound_readmem,checkman_sound_writemem) | |
| 4545 | MDRV_CPU_IO_MAP(checkman_sound_readport,checkman_sound_writeport) | |
| 1700 | MDRV_CPU_ADD(Z80, 1620000) /* 1.62 MHz */ | |
| 1701 | MDRV_CPU_PROGRAM_MAP(checkman_sound_map,0) | |
| 1702 | MDRV_CPU_IO_MAP(checkman_sound_portmap,0) | |
| 4546 | 1703 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) /* NMIs are triggered by the main CPU */ |
| 4547 | 1704 | |
| 4548 | /* video hardware */ | |
| 4549 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ | |
| 4550 | ||
| 4551 | MDRV_VIDEO_START(mooncrst) | |
| 4552 | ||
| 4553 | 1705 | /* sound hardware */ |
| 4554 | 1706 | MDRV_SOUND_ADD(AY8910, 1789750) |
| 4555 | 1707 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 4556 | ||
| 4557 | MDRV_SOUND_ADD(SAMPLES, 0) | |
| 4558 | MDRV_SOUND_CONFIG(galaxian_samples_interface) | |
| 4559 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 4560 | 1708 | MACHINE_DRIVER_END |
| 4561 | 1709 | |
| 4562 | 1710 | |
| 4563 | 1711 | static MACHINE_DRIVER_START( checkmaj ) |
| 1712 | MDRV_IMPORT_FROM(galaxian) | |
| 4564 | 1713 | |
| 4565 | 1714 | /* basic machine hardware */ |
| 4566 | MDRV_IMPORT_FROM(galaxian_base) | |
| 4567 | MDRV_CPU_MODIFY("main") | |
| 4568 | MDRV_CPU_PROGRAM_MAP(galaxian_readmem,checkmaj_writemem) | |
| 4569 | ||
| 4570 | 1715 | MDRV_CPU_ADD(Z80, 1620000) |
| 4571 | /* audio CPU */ | |
| 4572 | MDRV_CPU_PROGRAM_MAP(checkmaj_sound_readmem,checkmaj_sound_writemem) | |
| 4573 | MDRV_CPU_VBLANK_INT_HACK(irq0_line_hold,32) /* NMIs are triggered by the main CPU */ | |
| 1716 | MDRV_CPU_PROGRAM_MAP(checkmaj_sound_map,0) | |
| 4574 | 1717 | |
| 1718 | MDRV_TIMER_ADD_SCANLINE("irq0", checkmaj_irq0_gen, "main", 0, 8) | |
| 4575 | 1719 | |
| 4576 | /* video hardware */ | |
| 4577 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ | |
| 4578 | ||
| 4579 | 1720 | /* sound hardware */ |
| 4580 | 1721 | MDRV_SOUND_ADD(AY8910, 1620000) |
| 4581 | 1722 | MDRV_SOUND_CONFIG(checkmaj_ay8910_interface) |
| 4582 | 1723 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 4583 | 1724 | MACHINE_DRIVER_END |
| 4584 | 1725 | |
| 4585 | static MACHINE_DRIVER_START( dingoe ) | |
| 4586 | 1726 | |
| 4587 | ||
| 1727 | ||
| 4588 | 1728 | MDRV_IMPORT_FROM(galaxian_base) |
| 1729 | ||
| 1730 | /* basic machine hardware */ | |
| 4589 | 1731 | MDRV_CPU_MODIFY("main") |
| 4590 | MDRV_CPU_PROGRAM_MAP(mooncrst_readmem,checkman_writemem) | |
| 4591 | MDRV_CPU_IO_MAP(0,checkman_writeport) | |
| 1732 | MDRV_CPU_PROGRAM_MAP(mshuttle_map,0) | |
| 1733 | MDRV_CPU_IO_MAP(mshuttle_portmap,0) | |
| 4592 | 1734 | |
| 4593 | MDRV_CPU_ADD(Z80, 1620000) | |
| 4594 | /* audio CPU */ /* 1.62 MHz */ | |
| 4595 | MDRV_CPU_PROGRAM_MAP(checkman_sound_readmem,checkman_sound_writemem) | |
| 4596 | MDRV_CPU_IO_MAP(checkman_sound_readport,checkman_sound_writeport) | |
| 4597 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) /* NMIs are triggered by the main CPU */ | |
| 4598 | ||
| 4599 | /* video hardware */ | |
| 4600 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ | |
| 4601 | ||
| 4602 | 1735 | /* sound hardware */ |
| 4603 | MDRV_SOUND_ADD(AY8910, 1789750) | |
| 1736 | MDRV_SOUND_ADD(AY8910, GALAXIAN_PIXEL_CLOCK/3/4) | |
| 1737 | MDRV_SOUND_CONFIG(cclimber_ay8910_interface) | |
| 4604 | 1738 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 1739 | ||
| 1740 | MDRV_SOUND_ADD(SAMPLES, 0) | |
| 1741 | MDRV_SOUND_CONFIG(cclimber_samples_interface) | |
| 1742 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.5) | |
| 4605 | 1743 | MACHINE_DRIVER_END |
| 4606 | 1744 | |
| 1745 | ||
| 4607 | 1746 | static MACHINE_DRIVER_START( kingball ) |
| 1747 | MDRV_IMPORT_FROM(mooncrst) | |
| 4608 | 1748 | |
| 4609 | 1749 | /* basic machine hardware */ |
| 4610 | MDRV_IMPORT_FROM(galaxian) | |
| 4611 | MDRV_CPU_MODIFY("main") | |
| 4612 | MDRV_CPU_PROGRAM_MAP(mooncrst_readmem,kingball_writemem) | |
| 4613 | ||
| 4614 | 1750 | MDRV_CPU_ADD(Z80,5000000/2) |
| 4615 | /* audio CPU */ /* 2.5 MHz */ | |
| 4616 | MDRV_CPU_PROGRAM_MAP(kingball_sound_readmem,kingball_sound_writemem) | |
| 4617 | MDRV_CPU_IO_MAP(kingball_sound_readport,kingball_sound_writeport) | |
| 1751 | MDRV_CPU_PROGRAM_MAP(kingball_sound_map,0) | |
| 1752 | MDRV_CPU_IO_MAP(kingball_sound_portmap,0) | |
| 4618 | 1753 | |
| 4619 | /* video hardware */ | |
| 4620 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ | |
| 4621 | ||
| 4622 | 1754 | /* sound hardware */ |
| 4623 | MDRV_SOUND_ADD_TAG("DAC", DAC, 0) | |
| 4624 | MDRV_SOUND_ROUTE(0, "filter", 1.0) | |
| 4625 | ||
| 4626 | MDRV_SOUND_ADD_TAG("filter", FILTER_RC, 0) | |
| 4627 | MDRV_SOUND_CONFIG(flt_rc_ac_default) | |
| 1755 | MDRV_SOUND_ADD(DAC, 0) | |
| 4628 | 1756 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 4629 | 1757 | MACHINE_DRIVER_END |
| 4630 | 1758 | |
| 4631 | 1759 | |
| 4632 | static MACHINE_DRIVER_START( scorpnmc ) | |
| 1760 | static MACHINE_DRIVER_START( frogger ) | |
| 1761 | MDRV_IMPORT_FROM(galaxian_base) | |
| 1762 | MDRV_IMPORT_FROM(konami_sound_1x_ay8910) | |
| 4633 | 1763 | |
| 4634 | /* basic machine hardware */ | |
| 4635 | MDRV_IMPORT_FROM(galaxian) | |
| 1764 | /* alternate memory map */ | |
| 4636 | 1765 | MDRV_CPU_MODIFY("main") |
| 4637 | MDRV_CPU_PROGRAM_MAP(scorpnmc_readmem,scorpnmc_writemem) | |
| 4638 | ||
| 4639 | /* video hardware */ | |
| 4640 | MDRV_VIDEO_START(batman2) | |
| 1766 | MDRV_CPU_PROGRAM_MAP(frogger_map,0) | |
| 4641 | 1767 | MACHINE_DRIVER_END |
| 4642 | 1768 | |
| 4643 | 1769 | |
| 4644 | static MACHINE_DRIVER_START( frogg ) | |
| 1770 | static MACHINE_DRIVER_START( froggrmc ) | |
| 1771 | MDRV_IMPORT_FROM(galaxian_base) | |
| 1772 | MDRV_IMPORT_FROM(konami_sound_1x_ay8910) | |
| 4645 | 1773 | |
| 4646 | /* basic machine hardware */ | |
| 4647 | MDRV_IMPORT_FROM(galaxian) | |
| 4648 | ||
| 4649 | /* video hardware */ | |
| 4650 | MDRV_PALETTE_LENGTH(32+64+2+1) /* 32 for characters, 64 for stars, 2 for bullets, 1 for background */ | |
| 4651 | ||
| 4652 | MDRV_PALETTE_INIT(frogger) | |
| 4653 | MDRV_VIDEO_START(froggers) | |
| 1774 | /* alternate memory map */ | |
| 1775 | MDRV_CPU_MODIFY("main") | |
| 1776 | MDRV_CPU_PROGRAM_MAP(mooncrst_map,0) | |
| 4654 | 1777 | MACHINE_DRIVER_END |
| 4655 | 1778 | |
| 4656 | 1779 | |
| 4657 | static MACHINE_DRIVER_START( 4in1 ) | |
| 1780 | static MACHINE_DRIVER_START( froggers ) | |
| 1781 | MDRV_IMPORT_FROM(galaxian_base) | |
| 1782 | MDRV_IMPORT_FROM(konami_sound_1x_ay8910) | |
| 4658 | 1783 | |
| 4659 | /* basic machine hardware */ | |
| 4660 | MDRV_IMPORT_FROM(galaxian) | |
| 1784 | /* alternate memory map */ | |
| 4661 | 1785 | MDRV_CPU_MODIFY("main") |
| 4662 | MDRV_CPU_PROGRAM_MAP(_4in1_readmem,_4in1_writemem) | |
| 4663 | ||
| 4664 | /* video hardware */ | |
| 4665 | MDRV_GFXDECODE(_4in1) | |
| 4666 | ||
| 4667 | MDRV_VIDEO_START(pisces) | |
| 1786 | MDRV_CPU_PROGRAM_MAP(theend_map,0) | |
| 4668 | 1787 | MACHINE_DRIVER_END |
| 4669 | 1788 | |
| 4670 | 1789 | |
| 4671 | static MACHINE_DRIVER_START( bagmanmc ) | |
| 1790 | static MACHINE_DRIVER_START( frogf ) | |
| 1791 | MDRV_IMPORT_FROM(galaxian_base) | |
| 1792 | MDRV_IMPORT_FROM(konami_sound_1x_ay8910) | |
| 4672 | 1793 | |
| 4673 | /* basic machine hardware */ | |
| 4674 | MDRV_IMPORT_FROM(galaxian) | |
| 1794 | /* alternate memory map */ | |
| 4675 | 1795 | MDRV_CPU_MODIFY("main") |
| 4676 | MDRV_CPU_PROGRAM_MAP(bagmanmc_readmem,bagmanmc_writemem) | |
| 4677 | ||
| 4678 | MDRV_MACHINE_RESET( devilfsg ) | |
| 4679 | ||
| 4680 | /* video hardware */ | |
| 4681 | MDRV_GFXDECODE(bagmanmc) | |
| 4682 | ||
| 4683 | MDRV_VIDEO_START(pisces) | |
| 1796 | MDRV_CPU_PROGRAM_MAP(frogf_map,0) | |
| 4684 | 1797 | MACHINE_DRIVER_END |
| 4685 | 1798 | |
| 4686 | 1799 | |
| 4687 | static MACHINE_DRIVER_START( dkongjrm ) | |
| 1800 | static MACHINE_DRIVER_START( turtles ) | |
| 1801 | MDRV_IMPORT_FROM(galaxian_base) | |
| 1802 | MDRV_IMPORT_FROM(konami_sound_2x_ay8910) | |
| 4688 | 1803 | |
| 4689 | /* basic machine hardware */ | |
| 4690 | MDRV_IMPORT_FROM(galaxian) | |
| 1804 | /* alternate memory map */ | |
| 4691 | 1805 | MDRV_CPU_MODIFY("main") |
| 4692 | MDRV_CPU_PROGRAM_MAP(dkongjrm_readmem,dkongjrm_writemem) | |
| 4693 | ||
| 4694 | /* video hardware */ | |
| 4695 | MDRV_VIDEO_START(dkongjrm) | |
| 1806 | MDRV_CPU_PROGRAM_MAP(turtles_map,0) | |
| 4696 | 1807 | MACHINE_DRIVER_END |
| 4697 | 1808 | |
| 4698 | static MACHINE_DRIVER_START( rockclim ) | |
| 4699 | /* basic machine hardware */ | |
| 4700 | MDRV_IMPORT_FROM(galaxian) | |
| 4701 | MDRV_CPU_MODIFY("main") | |
| 4702 | MDRV_CPU_PROGRAM_MAP(rockclim_readmem,rockclim_writemem) | |
| 4703 | MDRV_GFXDECODE(rockclim) | |
| 4704 | /* video hardware */ | |
| 4705 | MDRV_VIDEO_START(rockclim) | |
| 4706 | MDRV_PALETTE_LENGTH(64+64+2) /* 64 colors only, but still uses bullets so we need to keep the palette big */ | |
| 4707 | MDRV_PALETTE_INIT(rockclim) | |
| 4708 | 1809 | |
| 4709 | MDRV_SCREEN_MODIFY("main") | |
| 4710 | MDRV_SCREEN_SIZE(64*8, 32*8) | |
| 4711 | ||
| 4712 | MACHINE_DRIVER_END | |
| 4713 | ||
| 4714 | static MACHINE_DRIVER_START( ozon1 ) | |
| 4715 | /* basic machine hardware */ | |
| 1810 | static MACHINE_DRIVER_START( theend ) | |
| 4716 | 1811 | MDRV_IMPORT_FROM(galaxian_base) |
| 4717 | MDRV_CPU_MODIFY("main") | |
| 4718 | MDRV_CPU_PROGRAM_MAP(ozon1_readmem,ozon1_writemem) | |
| 4719 | MDRV_CPU_IO_MAP(0,ozon1_writeport) | |
| 4720 | MDRV_CPU_VBLANK_INT("main", nmi_line_pulse) | |
| 1812 | MDRV_IMPORT_FROM(konami_sound_2x_ay8910) | |
| 4721 | 1813 | |
| 4722 | MDRV_MACHINE_RESET(NULL) | |
| 4723 | ||
| 4724 | MDRV_PALETTE_INIT(rockclim) | |
| 4725 | MDRV_PALETTE_LENGTH(32) | |
| 4726 | ||
| 4727 | MDRV_VIDEO_START(galaxian_plain) | |
| 4728 | MDRV_SOUND_ADD(AY8910, 1789750) | |
| 4729 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 1814 | /* alternate memory map */ | |
| 1815 | MDRV_CPU_MODIFY("main") | |
| 1816 | MDRV_CPU_PROGRAM_MAP(theend_map,0) | |
| 4730 | 1817 | MACHINE_DRIVER_END |
| 4731 | 1818 | |
| 4732 | static MACHINE_DRIVER_START( drivfrcg ) | |
| 4733 | 1819 | |
| 4734 | /* basic machine hardware */ | |
| 4735 | MDRV_CPU_ADD(S2650, 18432000/6) | |
| 4736 | MDRV_CPU_PROGRAM_MAP(drivfrcg,0) | |
| 4737 | MDRV_CPU_IO_MAP(drivfrcg_io,0) | |
| 4738 | MDRV_CPU_VBLANK_INT("main", hunchbks_vh_interrupt) | |
| 1820 | static MACHINE_DRIVER_START( explorer ) | |
| 1821 | MDRV_IMPORT_FROM(galaxian_base) | |
| 4739 | 1822 | |
| 1823 | /* alternate memory map */ | |
| 1824 | MDRV_CPU_MODIFY("main") | |
| 1825 | MDRV_CPU_PROGRAM_MAP(theend_map,0) | |
| 4740 | 1826 | |
| 4741 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4742 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 4743 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 4744 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 4745 | MDRV_SCREEN_SIZE(32*8, 32*8) | |
| 4746 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) | |
| 1827 | /* 2nd CPU to drive sound */ | |
| 1828 | MDRV_CPU_ADD(Z80,KONAMI_SOUND_CLOCK/8) | |
| 1829 | MDRV_CPU_PROGRAM_MAP(konami_sound_map,0) | |
| 1830 | MDRV_CPU_IO_MAP(konami_sound_portmap,0) | |
| 4747 | 1831 | |
| 4748 | MDRV_PALETTE_LENGTH(64) | |
| 4749 | MDRV_GFXDECODE(gmgalax) | |
| 4750 | ||
| 4751 | MDRV_PALETTE_INIT(rockclim) | |
| 4752 | ||
| 4753 | MDRV_VIDEO_START(drivfrcg) | |
| 4754 | MDRV_VIDEO_UPDATE(galaxian) | |
| 4755 | ||
| 4756 | 1832 | /* sound hardware */ |
| 4757 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 4758 | MDRV_SOUND_ADD(SAMPLES, 0) | |
| 4759 | MDRV_SOUND_CONFIG(galaxian_samples_interface) | |
| 4760 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 4761 | MACHINE_DRIVER_END | |
| 1833 | MDRV_SOUND_ADD_TAG("8910.0", AY8910, KONAMI_SOUND_CLOCK/8) | |
| 1834 | MDRV_SOUND_CONFIG(explorer_ay8910_interface_1) | |
| 1835 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) | |
| 4762 | 1836 | |
| 4763 | static MACHINE_DRIVER_START( bongo ) | |
| 4764 | /* basic machine hardware */ | |
| 4765 | MDRV_IMPORT_FROM(galaxian_base) | |
| 4766 | MDRV_CPU_MODIFY("main") | |
| 4767 | MDRV_CPU_PROGRAM_MAP(bongo,0) | |
| 4768 | MDRV_CPU_IO_MAP(bongo_io,0) | |
| 4769 | ||
| 4770 | MDRV_VIDEO_START(bongo) | |
| 4771 | MDRV_VIDEO_UPDATE(galaxian) | |
| 4772 | ||
| 4773 | MDRV_SOUND_ADD(AY8910, 1789750) | |
| 4774 | MDRV_SOUND_CONFIG(bongo_ay8910_interface) | |
| 4775 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 1837 | MDRV_SOUND_ADD_TAG("8910.1", AY8910, KONAMI_SOUND_CLOCK/8) | |
| 1838 | MDRV_SOUND_CONFIG(explorer_ay8910_interface_2) | |
| 1839 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) | |
| 4776 | 1840 | MACHINE_DRIVER_END |
| 4777 | 1841 | |
| 4778 | static MACHINE_DRIVER_START( hunchbkg ) | |
| 4779 | 1842 | |
| 4780 | /* basic machine hardware */ | |
| 4781 | MDRV_CPU_ADD(S2650, PIXEL_CLOCK/2) | |
| 4782 | MDRV_CPU_PROGRAM_MAP(hunchbkg,0) | |
| 4783 | MDRV_CPU_IO_MAP(hunchbkg_io,0) | |
| 4784 | MDRV_CPU_VBLANK_INT("main", hunchbks_vh_interrupt) | |
| 1843 | static MACHINE_DRIVER_START( scorpion ) | |
| 1844 | MDRV_IMPORT_FROM(theend) | |
| 4785 | 1845 | |
| 4786 | MDRV_GFXDECODE(galaxian) | |
| 4787 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ | |
| 4788 | ||
| 4789 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4790 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 4791 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 4792 | ||
| 4793 | MDRV_PALETTE_INIT(galaxian) | |
| 4794 | ||
| 4795 | MDRV_VIDEO_UPDATE(galaxian) | |
| 4796 | MDRV_VIDEO_START(galaxian_plain) | |
| 4797 | ||
| 4798 | /* sound hardware */ | |
| 4799 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 4800 | MDRV_SOUND_ADD(SAMPLES, 0) | |
| 4801 | MDRV_SOUND_CONFIG(galaxian_samples_interface) | |
| 4802 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 1846 | /* extra AY8910 with I/O ports */ | |
| 1847 | MDRV_SOUND_ADD_TAG("8910.2", AY8910, KONAMI_SOUND_CLOCK/8) | |
| 1848 | MDRV_SOUND_CONFIG(scorpion_ay8910_interface) | |
| 1849 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) | |
| 4803 | 1850 | MACHINE_DRIVER_END |
| 4804 | 1851 | |
| 4805 | static MACHINE_DRIVER_START( harem ) | |
| 4806 | /* basic machine hardware */ | |
| 1852 | ||
| 1853 | static MACHINE_DRIVER_START( sfx ) | |
| 4807 | 1854 | MDRV_IMPORT_FROM(galaxian_base) |
| 4808 | MDRV_CPU_MODIFY("main") | |
| 4809 | MDRV_CPU_PROGRAM_MAP(harem_cpu1,0) | |
| 4810 | MDRV_CPU_VBLANK_INT("main", nmi_line_pulse) | |
| 1855 | MDRV_IMPORT_FROM(konami_sound_2x_ay8910) | |
| 4811 | 1856 | |
| 4812 | MDRV_CPU_ADD(Z80, 1620000) | |
| 4813 | /* audio CPU */ | |
| 4814 | MDRV_CPU_PROGRAM_MAP(harem_cpu2,0) | |
| 4815 | MDRV_CPU_IO_MAP(harem_cpu2_io,0) | |
| 1857 | MDRV_WATCHDOG_VBLANK_INIT(0) | |
| 4816 | 1858 | |
| 4817 | MDRV_MACHINE_RESET(NULL) | |
| 4818 | ||
| 4819 | MDRV_PALETTE_INIT(rockclim) | |
| 4820 | MDRV_PALETTE_LENGTH(32) | |
| 4821 | ||
| 4822 | MDRV_VIDEO_START(galaxian_plain) | |
| 4823 | ||
| 4824 | MDRV_SOUND_ADD(AY8910, 2000000) | |
| 4825 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33/3) | |
| 4826 | ||
| 4827 | MDRV_SOUND_ADD(AY8910, 2000000) | |
| 4828 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33/3) | |
| 4829 | ||
| 4830 | MDRV_SOUND_ADD(AY8910, 2000000) | |
| 4831 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33/3) | |
| 4832 | MACHINE_DRIVER_END | |
| 4833 | ||
| 4834 | static MACHINE_DRIVER_START( tazzmang ) | |
| 4835 | /* basic machine hardware */ | |
| 4836 | MDRV_IMPORT_FROM(galaxian) | |
| 1859 | /* alternate memory map */ | |
| 4837 | 1860 | MDRV_CPU_MODIFY("main") |
| 4838 | MDRV_CPU_PROGRAM_MAP(tazzmang,0) | |
| 4839 | MACHINE_DRIVER_END | |
| 1861 | MDRV_CPU_PROGRAM_MAP(sfx_map,0) | |
| 4840 | 1862 | |
| 4841 | static MACHINE_DRIVER_START( racknrol ) | |
| 1863 | /* 3rd CPU for the sample player */ | |
| 1864 | MDRV_CPU_ADD(Z80, KONAMI_SOUND_CLOCK/8) | |
| 1865 | MDRV_CPU_PROGRAM_MAP(sfx_sample_map,0) | |
| 1866 | MDRV_CPU_IO_MAP(sfx_sample_portmap,0) | |
| 4842 | 1867 | |
| 4843 | /* basic machine hardware */ | |
| 4844 | MDRV_CPU_ADD(S2650, PIXEL_CLOCK/2) | |
| 4845 | MDRV_CPU_PROGRAM_MAP(racknrol,0) | |
| 4846 | MDRV_CPU_IO_MAP(racknrol_io,0) | |
| 4847 | MDRV_CPU_VBLANK_INT("main", hunchbks_vh_interrupt) | |
| 1868 | /* port on 1st 8910 is used for communication */ | |
| 1869 | MDRV_SOUND_MODIFY("8910.0") | |
| 1870 | MDRV_SOUND_CONFIG(sfx_ay8910_interface) | |
| 4848 | 1871 | |
| 4849 | MDRV_GFXDECODE(galaxian) | |
| 4850 | MDRV_PALETTE_LENGTH(32) | |
| 4851 | ||
| 4852 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4853 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 4854 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 4855 | ||
| 4856 | MDRV_PALETTE_INIT(rockclim) | |
| 4857 | MDRV_VIDEO_UPDATE(galaxian) | |
| 4858 | MDRV_VIDEO_START(racknrol) | |
| 4859 | ||
| 4860 | /* sound hardware */ | |
| 4861 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 4862 | MDRV_SOUND_ADD(SN76496, PIXEL_CLOCK/2) | |
| 1872 | /* DAC for the sample player */ | |
| 1873 | MDRV_SOUND_ADD(DAC, 0) | |
| 4863 | 1874 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 4864 | ||
| 4865 | MDRV_SOUND_ADD(SN76496, PIXEL_CLOCK/2) | |
| 4866 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 4867 | ||
| 4868 | MDRV_SOUND_ADD(SN76496, PIXEL_CLOCK/2) | |
| 4869 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 4870 | 1875 | MACHINE_DRIVER_END |
| 4871 | 1876 | |
| 4872 | static MACHINE_DRIVER_START( ckongg ) | |
| 4873 | 1877 | |
| 4874 | /* basic machine hardware */ | |
| 4875 | MDRV_IMPORT_FROM(galaxian) | |
| 4876 | MDRV_CPU_MODIFY("main") | |
| 4877 | MDRV_CPU_PROGRAM_MAP(ckongg_readmem,ckongg_writemem) | |
| 1878 | static MACHINE_DRIVER_START( scobra ) | |
| 1879 | MDRV_IMPORT_FROM(galaxian_base) | |
| 1880 | MDRV_IMPORT_FROM(konami_sound_2x_ay8910) | |
| 4878 | 1881 | |
| 4879 | MDRV_GFXDECODE(gmgalax) | |
| 4880 | ||
| 4881 | MDRV_VIDEO_START(ckongs) | |
| 4882 | ||
| 4883 | MACHINE_DRIVER_END | |
| 4884 | ||
| 4885 | static MACHINE_DRIVER_START( kkgalax ) | |
| 4886 | ||
| 4887 | /* basic machine hardware */ | |
| 4888 | MDRV_IMPORT_FROM(galaxian) | |
| 1882 | /* alternate memory map */ | |
| 4889 | 1883 | MDRV_CPU_MODIFY("main") |
| 4890 | MDRV_CPU_PROGRAM_MAP(kkgalax_readmem,kkgalax_writemem) | |
| 4891 | ||
| 4892 | MDRV_GFXDECODE(gmgalax) | |
| 4893 | ||
| 4894 | MDRV_VIDEO_START(ckongs) | |
| 4895 | ||
| 1884 | MDRV_CPU_PROGRAM_MAP(scobra_map,0) | |
| 4896 | 1885 | MACHINE_DRIVER_END |
| 4897 | 1886 | |
| 4898 | 1887 | |
| 4899 | static MACHINE_DRIVER_START( hexpoola ) | |
| 4900 | 1888 | |
| 4901 | /* basic machine hardware */ | |
| 4902 | MDRV_CPU_ADD(S2650, PIXEL_CLOCK/2) | |
| 4903 | MDRV_CPU_PROGRAM_MAP(racknrol,0) | |
| 4904 | MDRV_CPU_IO_MAP(hexpoola_io,0) | |
| 4905 | MDRV_CPU_VBLANK_INT("main", hunchbks_vh_interrupt) | |
| 1889 | /************************************* | |
| 1890 | * | |
| 1891 | * Decryption helpers | |
| 1892 | * | |
| 1893 | *************************************/ | |
| 4906 | 1894 | |
| 4907 | MDRV_GFXDECODE(galaxian) | |
| 4908 | MDRV_PALETTE_LENGTH(32) | |
| 1895 | static void decode_mooncrst(int length, UINT8 *dest) | |
| 1896 | { | |
| 1897 | UINT8 *rom = memory_region(REGION_CPU1); | |
| 1898 | int offs; | |
| 4909 | 1899 | |
| 4910 | MDRV_SCREEN_ADD("main", RASTER) | |
| 4911 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 4912 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 1900 | for (offs = 0; offs < length; offs++) | |
| 1901 | { | |
| 1902 | UINT8 data = rom[offs]; | |
| 1903 | UINT8 res = data; | |
| 1904 | if (BIT(data,1)) res ^= 0x40; | |
| 1905 | if (BIT(data,5)) res ^= 0x04; | |
| 1906 | if ((offs & 1) == 0) res = BITSWAP8(res,7,2,5,4,3,6,1,0); | |
| 1907 | dest[offs] = res; | |
| 1908 | } | |
| 1909 | } | |
| 4913 | 1910 | |
| 4914 | MDRV_PALETTE_INIT(rockclim) | |
| 4915 | MDRV_VIDEO_UPDATE(galaxian) | |
| 4916 | MDRV_VIDEO_START(racknrol) | |
| 4917 | 1911 | |
| 4918 | /* sound hardware */ | |
| 4919 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 4920 | MDRV_SOUND_ADD(SN76496, PIXEL_CLOCK/2) | |
| 4921 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 4922 | MACHINE_DRIVER_END | |
| 1912 | static void decode_checkman(void) | |
| 1913 | { | |
| 1914 | /* | |
| 1915 | Encryption Table | |
| 1916 | ---------------- | |
| 1917 | +---+---+---+------+------+------+------+------+------+------+------+ | |
| 1918 | |A2 |A1 |A0 |D7 |D6 |D5 |D4 |D3 |D2 |D1 |D0 | | |
| 1919 | +---+---+---+------+------+------+------+------+------+------+------+ | |
| 1920 | | 0 | 0 | 0 |D7 |D6 |D5 |D4 |D3 |D2 |D1 |D0^^D6| | |
| 1921 | | 0 | 0 | 1 |D7 |D6 |D5 |D4 |D3 |D2 |D1^^D5|D0 | | |
| 1922 | | 0 | 1 | 0 |D7 |D6 |D5 |D4 |D3 |D2^^D4|D1^^D6|D0 | | |
| 1923 | | 0 | 1 | 1 |D7 |D6 |D5 |D4^^D2|D3 |D2 |D1 |D0^^D5| | |
| 1924 | | 1 | 0 | 0 |D7 |D6^^D4|D5^^D1|D4 |D3 |D2 |D1 |D0 | | |
| 1925 | | 1 | 0 | 1 |D7 |D6^^D0|D5^^D2|D4 |D3 |D2 |D1 |D0 | | |
| 1926 | | 1 | 1 | 0 |D7 |D6 |D5 |D4 |D3 |D2^^D0|D1 |D0 | | |
| 1927 | | 1 | 1 | 1 |D7 |D6 |D5 |D4^^D1|D3 |D2 |D1 |D0 | | |
| 1928 | +---+---+---+------+------+------+------+------+------+------+------+ | |
| 4923 | 1929 | |
| 4924 | /*************************************************************************** | |
| 1930 | For example if A2=1, A1=1 and A0=0 then D2 to the CPU would be an XOR of | |
| 1931 | D2 and D0 from the ROM's. Note that D7 and D3 are not encrypted. | |
| 4925 | 1932 | |
| 4926 | Game driver(s) | |
| 1933 | Encryption PAL 16L8 on cardridge | |
| 1934 | +--- ---+ | |
| 1935 | OE --| U |-- VCC | |
| 1936 | ROMD0 --| |-- D0 | |
| 1937 | ROMD1 --| |-- D1 | |
| 1938 | ROMD2 --|VER 5.2|-- D2 | |
| 1939 | A0 --| |-- NOT USED | |
| 1940 | A1 --| |-- A2 | |
| 1941 | ROMD4 --| |-- D4 | |
| 1942 | ROMD5 --| |-- D5 | |
| 1943 | ROMD6 --| |-- D6 | |
| 1944 | GND --| |-- M1 (NOT USED) | |
| 1945 | +-------+ | |
| 1946 | Pin layout is such that links can replace the PAL if encryption is not used. | |
| 1947 | */ | |
| 1948 | static const UINT8 xortable[8][4] = | |
| 1949 | { | |
| 1950 | { 6,0,6,0 }, | |
| 1951 | { 5,1,5,1 }, | |
| 1952 | { 4,2,6,1 }, | |
| 1953 | { 2,4,5,0 }, | |
| 1954 | { 4,6,1,5 }, | |
| 1955 | { 0,6,2,5 }, | |
| 1956 | { 0,2,0,2 }, | |
| 1957 | { 1,4,1,4 } | |
| 1958 | }; | |
| 1959 | UINT8 *rombase = memory_region(REGION_CPU1); | |
| 1960 | UINT32 romlength = memory_region_length(REGION_CPU1); | |
| 1961 | UINT32 offs; | |
| 4927 | 1962 | |
| 4928 | ***************************************************************************/ | |
| 1963 | for (offs = 0; offs < romlength; offs++) | |
| 1964 | { | |
| 1965 | UINT8 data = rombase[offs]; | |
| 1966 | UINT32 line = offs & 0x07; | |
| 4929 | 1967 | |
| 4930 | ROM_START( galaxian ) | |
| 4931 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4932 | ROM_LOAD( "galmidw.u", 0x0000, 0x0800, CRC(745e2d61) SHA1(e65f74e35b1bfaccd407e168ea55678ae9b68edf) ) | |
| 4933 | ROM_LOAD( "galmidw.v", 0x0800, 0x0800, CRC(9c999a40) SHA1(02fdcd95d8511e64c0d2b007b874112d53e41045) ) | |
| 4934 | ROM_LOAD( "galmidw.w", 0x1000, 0x0800, CRC(b5894925) SHA1(0046b9ed697a34d088de1aead8bd7cbe526a2396) ) | |
| 4935 | ROM_LOAD( "galmidw.y", 0x1800, 0x0800, CRC(6b3ca10b) SHA1(18d8714e5ef52f63ba8888ecc5a25b17b3bf17d1) ) | |
| 4936 | ROM_LOAD( "7l", 0x2000, 0x0800, CRC(1b933207) SHA1(8b44b0f74420871454e27894d0f004859f9e59a9) ) | |
| 1968 | data ^= (BIT(data,xortable[line][0]) << xortable[line][1]) | (BIT(data,xortable[line][2]) << xortable[line][3]); | |
| 1969 | rombase[offs] = data; | |
| 1970 | } | |
| 1971 | } | |
| 4937 | 1972 | |
| 4938 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4939 | ROM_LOAD( "1h.bin", 0x0000, 0x0800, CRC(39fb43a4) SHA1(4755609bd974976f04855d51e08ec0d62ab4bc07) ) | |
| 4940 | ROM_LOAD( "1k.bin", 0x0800, 0x0800, CRC(7e3f56a2) SHA1(a9795d8b7388f404f3b0e2c6ce15d713a4c5bafa) ) | |
| 4941 | 1973 | |
| 4942 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4943 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 4944 | ROM_END | |
| 1974 | static void decode_dingoe(void) | |
| 1975 | { | |
| 1976 | UINT8 *rombase = memory_region(REGION_CPU1); | |
| 1977 | UINT32 romlength = memory_region_length(REGION_CPU1); | |
| 1978 | UINT32 offs; | |
| 4945 | 1979 | |
| 4946 | ROM_START( galaxiaj ) | |
| 4947 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4948 | ROM_LOAD( "7f.bin", 0x0000, 0x1000, CRC(4335b1de) SHA1(e41e3d90dac738cf71377f3b476ec67b14dee27a) ) | |
| 4949 | ROM_LOAD( "7j.bin", 0x1000, 0x1000, CRC(4e6f66a1) SHA1(ee2a675ab34485c0f58c51be7630a51e27a7a8f3) ) | |
| 4950 | ROM_LOAD( "7l.bin", 0x2000, 0x0800, CRC(5341d75a) SHA1(40bc8fcc598f58c6ff944e2a4a9288463e75a09d) ) | |
| 1980 | for (offs = 0; offs < romlength; offs++) | |
| 1981 | { | |
| 1982 | UINT8 data = rombase[offs]; | |
| 4951 | 1983 | |
| 4952 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4953 | ROM_LOAD( "1h.bin", 0x0000, 0x0800, CRC(39fb43a4) SHA1(4755609bd974976f04855d51e08ec0d62ab4bc07) ) | |
| 4954 | ROM_LOAD( "1k.bin", 0x0800, 0x0800, CRC(7e3f56a2) SHA1(a9795d8b7388f404f3b0e2c6ce15d713a4c5bafa) ) | |
| 1984 | /* XOR bit 4 with bit 2, and bit 0 with bit 5, and invert bit 1 */ | |
| 1985 | data ^= BIT(data, 2) << 4; | |
| 1986 | data ^= BIT(data, 5) << 0; | |
| 1987 | data ^= 0x02; | |
| 4955 | 1988 | |
| 4956 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4957 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 4958 | ROM_END | |
| 1989 | /* Swap bit0 with bit4 */ | |
| 1990 | if (offs & 0x02) | |
| 1991 | data = BITSWAP8(data, 7,6,5,0,3,2,1,4); | |
| 1992 | rombase[offs] = data; | |
| 1993 | } | |
| 1994 | } | |
| 4959 | 1995 | |
| 4960 | ROM_START( galmidw ) | |
| 4961 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4962 | ROM_LOAD( "galmidw.u", 0x0000, 0x0800, CRC(745e2d61) SHA1(e65f74e35b1bfaccd407e168ea55678ae9b68edf) ) | |
| 4963 | ROM_LOAD( "galmidw.v", 0x0800, 0x0800, CRC(9c999a40) SHA1(02fdcd95d8511e64c0d2b007b874112d53e41045) ) | |
| 4964 | ROM_LOAD( "galmidw.w", 0x1000, 0x0800, CRC(b5894925) SHA1(0046b9ed697a34d088de1aead8bd7cbe526a2396) ) | |
| 4965 | ROM_LOAD( "galmidw.y", 0x1800, 0x0800, CRC(6b3ca10b) SHA1(18d8714e5ef52f63ba8888ecc5a25b17b3bf17d1) ) | |
| 4966 | ROM_LOAD( "galmidw.z", 0x2000, 0x0800, CRC(cb24f797) SHA1(e6bb977ded0654c2c7388aad188059e1e0647908) ) | |
| 4967 | 1996 | |
| 4968 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4969 | ROM_LOAD( "galaxian.j1", 0x0000, 0x0800, CRC(84decf98) SHA1(2e565cb6057b1816a6b4541e6dfadd3c3762fa36) ) | |
| 4970 | ROM_LOAD( "galaxian.l1", 0x0800, 0x0800, CRC(c31ada9e) SHA1(237ebb48549b34ca59a13cc2706512d957413ec4) ) | |
| 1997 | static void decode_frogger_sound(void) | |
| 1998 | { | |
| 1999 | UINT8 *rombase = memory_region(REGION_CPU2); | |
| 2000 | UINT32 offs; | |
| 4971 | 2001 | |
| 4972 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4973 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 4974 | ROM_END | |
| 2002 | /* the first ROM of the sound CPU has data lines D0 and D1 swapped */ | |
| 2003 | for (offs = 0; offs < 0x0800; offs++) | |
| 2004 | rombase[offs] = BITSWAP8(rombase[offs], 7,6,5,4,3,2,0,1); | |
| 2005 | } | |
| 4975 | 2006 | |
| 4976 | ROM_START( galmidwo ) | |
| 4977 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4978 | ROM_LOAD( "galaxian.u", 0x0000, 0x0800, CRC(fac42d34) SHA1(0b96d9f1c6bf0e0b7f757dcbaeacfbfafefc54d1) ) | |
| 4979 | ROM_LOAD( "galaxian.v", 0x0800, 0x0800, CRC(f58283e3) SHA1(edc6e72516c50fd3402281d9936574d276581ce9) ) | |
| 4980 | ROM_LOAD( "galaxian.w", 0x1000, 0x0800, CRC(4c7031c0) SHA1(97f7ab0cedcd8eba1c8f6f516d84d672a2108258) ) | |
| 4981 | ROM_LOAD( "galaxian.y", 0x1800, 0x0800, CRC(96a7ac94) SHA1(c3c7a43117c8b9fd8621823c872889f8e31bf935) ) | |
| 4982 | ROM_LOAD( "7l.bin", 0x2000, 0x0800, CRC(5341d75a) SHA1(40bc8fcc598f58c6ff944e2a4a9288463e75a09d) ) | |
| 4983 | 2007 | |
| 4984 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4985 | ROM_LOAD( "galaxian.j1", 0x0000, 0x0800, CRC(84decf98) SHA1(2e565cb6057b1816a6b4541e6dfadd3c3762fa36) ) | |
| 4986 | ROM_LOAD( "galaxian.l1", 0x0800, 0x0800, CRC(c31ada9e) SHA1(237ebb48549b34ca59a13cc2706512d957413ec4) ) | |
| 2008 | static void decode_frogger_gfx(void) | |
| 2009 | { | |
| 2010 | UINT8 *rombase = memory_region(REGION_GFX1); | |
| 2011 | UINT32 offs; | |
| 4987 | 2012 | |
| 4988 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4989 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 4990 | ROM_END | |
| 2013 | /* the 2nd gfx ROM has data lines D0 and D1 swapped */ | |
| 2014 | for (offs = 0x0800; offs < 0x1000; offs++) | |
| 2015 | rombase[offs] = BITSWAP8(rombase[offs], 7,6,5,4,3,2,0,1); | |
| 2016 | } | |
| 4991 | 2017 | |
| 4992 | ROM_START( galtaito ) | |
| 4993 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4994 | ROM_LOAD( "gl-03.8g", 0x0000, 0x0800, CRC(e8f3aa67) SHA1(a0e9576784dbe602dd9780e667f01f31defd7c00) ) /* All eprom are HN462716 eproms */ | |
| 4995 | ROM_LOAD( "gl-04.8f", 0x0800, 0x0800, CRC(f58283e3) SHA1(edc6e72516c50fd3402281d9936574d276581ce9) ) | |
| 4996 | ROM_LOAD( "gl-05.8e", 0x1000, 0x0800, CRC(4c7031c0) SHA1(97f7ab0cedcd8eba1c8f6f516d84d672a2108258) ) | |
| 4997 | ROM_LOAD( "gl-06.8d", 0x1800, 0x0800, CRC(097d92a2) SHA1(63ef86657286a4e1fae4f795e0e6b410ca2ef06b) ) | |
| 4998 | ROM_LOAD( "gl-07.8c", 0x2000, 0x0800, CRC(5341d75a) SHA1(40bc8fcc598f58c6ff944e2a4a9288463e75a09d) ) | |
| 4999 | 2018 | |
| 5000 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5001 | ROM_LOAD( "gl-01.1j", 0x0000, 0x0800, CRC(968b6016) SHA1(f13e4a8d0fdeb121d39ca76120acdc6c7e7f377c) ) | |
| 5002 | ROM_LOAD( "gl-02.1k", 0x0800, 0x0800, CRC(d14f7510) SHA1(cd09e6ee0a3890d01b2415f5b8346c42c02d15a3) ) | |
| 2019 | static void decode_anteater_gfx(void) | |
| 2020 | { | |
| 2021 | UINT32 romlength = memory_region_length(REGION_GFX1); | |
| 2022 | UINT8 *rombase = memory_region(REGION_GFX1); | |
| 2023 | UINT8 *scratch = malloc_or_die(romlength); | |
| 2024 | UINT32 offs; | |
| 5003 | 2025 | |
| 5004 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5005 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5006 | ROM_END | |
| 2026 | memcpy(scratch, rombase, romlength); | |
| 2027 | for (offs = 0; offs < romlength; offs++) | |
| 2028 | { | |
| 2029 | UINT32 srcoffs = offs & 0x9bf; | |
| 2030 | srcoffs |= (BIT(offs,4) ^ BIT(offs,9) ^ (BIT(offs,2) & BIT(offs,10))) << 6; | |
| 2031 | srcoffs |= (BIT(offs,2) ^ BIT(offs,10)) << 9; | |
| 2032 | srcoffs |= (BIT(offs,0) ^ BIT(offs,6) ^ 1) << 10; | |
| 2033 | rombase[offs] = scratch[srcoffs]; | |
| 2034 | } | |
| 2035 | free(scratch); | |
| 2036 | } | |
| 5007 | 2037 | |
| 5008 | ROM_START( superg ) | |
| 5009 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5010 | ROM_LOAD( "7f.bin", 0x0000, 0x1000, CRC(4335b1de) SHA1(e41e3d90dac738cf71377f3b476ec67b14dee27a) ) | |
| 5011 | ROM_LOAD( "superg.w", 0x1000, 0x0800, CRC(ddeabdae) SHA1(daa5109a32c7c9a80bdb212dc3e4e3e3c104a731) ) | |
| 5012 | ROM_LOAD( "superg.y", 0x1800, 0x0800, CRC(9463f753) SHA1(d9cb35c19aafec43d08b048bbe2337a790f6ba9d) ) | |
| 5013 | ROM_LOAD( "superg.z", 0x2000, 0x0800, CRC(e6312e35) SHA1(c4010459379d7fe00f605aaf288928b2deffb8b2) ) | |
| 5014 | 2038 | |
| 5015 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5016 | ROM_LOAD( "galmidw.1j", 0x0000, 0x0800, CRC(84decf98) SHA1(2e565cb6057b1816a6b4541e6dfadd3c3762fa36) ) | |
| 5017 | ROM_LOAD( "galmidw.1k", 0x0800, 0x0800, CRC(c31ada9e) SHA1(237ebb48549b34ca59a13cc2706512d957413ec4) ) | |
| 2039 | static void decode_losttomb_gfx(void) | |
| 2040 | { | |
| 2041 | UINT32 romlength = memory_region_length(REGION_GFX1); | |
| 2042 | UINT8 *rombase = memory_region(REGION_GFX1); | |
| 2043 | UINT8 *scratch = malloc_or_die(romlength); | |
| 2044 | UINT32 offs; | |
| 5018 | 2045 | |
| 5019 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5020 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5021 | ROM_END | |
| 2046 | memcpy(scratch, rombase, romlength); | |
| 2047 | for (offs = 0; offs < romlength; offs++) | |
| 2048 | { | |
| 2049 | UINT32 srcoffs = offs & 0xa7f; | |
| 2050 | srcoffs |= ((BIT(offs,1) & BIT(offs,8)) | ((1 ^ BIT(offs,1)) & (BIT(offs,10)))) << 7; | |
| 2051 | srcoffs |= (BIT(offs,7) ^ (BIT(offs,1) & (BIT(offs,7) ^ BIT(offs,10)))) << 8; | |
| 2052 | srcoffs |= ((BIT(offs,1) & BIT(offs,7)) | ((1 ^ BIT(offs,1)) & (BIT(offs,8)))) << 10; | |
| 2053 | rombase[offs] = scratch[srcoffs]; | |
| 2054 | } | |
| 2055 | free(scratch); | |
| 2056 | } | |
| 5022 | 2057 | |
| 5023 | ROM_START( galapx ) | |
| 5024 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5025 | ROM_LOAD( "galx.u", 0x0000, 0x0800, CRC(79e4007d) SHA1(d55050498a670d1c022ba3caad34f8fcaccf4a30) ) | |
| 5026 | ROM_LOAD( "galx.v", 0x0800, 0x0800, CRC(bc16064e) SHA1(4e3220fd63c8184bf9581a89dffb6944d8fae3bb) ) | |
| 5027 | ROM_LOAD( "galx.w", 0x1000, 0x0800, CRC(72d2d3ee) SHA1(96e0c5824e46d7398c7e58dd6b75a9f4ead6f3f5) ) | |
| 5028 | ROM_LOAD( "galx.y", 0x1800, 0x0800, CRC(afe397f3) SHA1(283c6f3b3f07581d88f7a6e11fc36947a9d90e2e) ) | |
| 5029 | ROM_LOAD( "galx.z", 0x2000, 0x0800, CRC(778c0d3c) SHA1(6a81875abfea515d379c6212cb57f8e54573e943) ) | |
| 5030 | 2058 | |
| 5031 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5032 | ROM_LOAD( "galx.1h", 0x0000, 0x0800, CRC(e8810654) SHA1(b6924c7ad765c32714e6abd5bb56b2732edd5855) ) | |
| 5033 | ROM_LOAD( "galx.1k", 0x0800, 0x0800, CRC(cbe84a76) SHA1(c6d72fb452e8213dd40a2eb5dcca726d7cdca658) ) | |
| 5034 | 2059 | |
| 5035 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5036 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5037 | ROM_END | |
| 2060 | /************************************* | |
| 2061 | * | |
| 2062 | * Driver configuration | |
| 2063 | * | |
| 2064 | *************************************/ | |
| 5038 | 2065 | |
| 5039 | ROM_START( moonaln ) | |
| 5040 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5041 | ROM_LOAD( "galx.u", 0x0000, 0x0800, CRC(79e4007d) SHA1(d55050498a670d1c022ba3caad34f8fcaccf4a30) ) // prg1.bin | |
| 5042 | ROM_LOAD( "prg2.bin", 0x0800, 0x0800, CRC(59580b30) SHA1(e659426ad8c4e5e10a7cdd07d8b4fea93f875026) ) | |
| 5043 | ROM_LOAD( "prg3.bin", 0x1000, 0x0800, CRC(b64e9d12) SHA1(3b07902ea61388f54c03d65082e78dfc0fa8d3d2) ) | |
| 5044 | ROM_LOAD( "superg.y", 0x1800, 0x0800, CRC(9463f753) SHA1(d9cb35c19aafec43d08b048bbe2337a790f6ba9d) ) // prg4.bin | |
| 5045 | ROM_LOAD( "prg5.bin", 0x2000, 0x0800, CRC(8bb78987) SHA1(5f24dba0bb31fc8bda5bf570d568472befc4d740) ) | |
| 2066 | static void common_init( | |
| 2067 | running_machine *machine, | |
| 2068 | galaxian_draw_bullet_func draw_bullet, | |
| 2069 | galaxian_draw_background_func draw_background, | |
| 2070 | galaxian_extend_tile_info_func extend_tile_info, | |
| 2071 | galaxian_extend_sprite_info_func extend_sprite_info) | |
| 2072 | { | |
| 2073 | irq_line = INPUT_LINE_NMI; | |
| 2074 | galaxian_frogger_adjust = FALSE; | |
| 2075 | galaxian_sfx_tilemap = FALSE; | |
| 2076 | galaxian_sprite_clip_start = 16; | |
| 2077 | galaxian_sprite_clip_end = 255; | |
| 2078 | galaxian_draw_bullet_ptr = (draw_bullet != NULL) ? draw_bullet : galaxian_draw_bullet; | |
| 2079 | galaxian_draw_background_ptr = (draw_background != NULL) ? draw_background : galaxian_draw_background; | |
| 2080 | galaxian_extend_tile_info_ptr = extend_tile_info; | |
| 2081 | galaxian_extend_sprite_info_ptr = extend_sprite_info; | |
| 2082 | } | |
| 5046 | 2083 | |
| 5047 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5048 | ROM_LOAD( "ca1.bin", 0x0000, 0x0800, CRC(074271dd) SHA1(cd6a40b493bc51c5340d7083f83c51834b95b5fe) ) | |
| 5049 | ROM_LOAD( "ca2.bin", 0x0800, 0x0800, CRC(84d90397) SHA1(93e6ded079c9721d3f9c003e378e8121584671c9) ) | |
| 5050 | 2084 | |
| 5051 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5052 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5053 | ROM_END | |
| 2085 | static void konami_common_init( | |
| 2086 | running_machine *machine, | |
| 2087 | galaxian_draw_bullet_func draw_bullet, | |
| 2088 | galaxian_draw_background_func draw_background, | |
| 2089 | galaxian_extend_tile_info_func extend_tile_info, | |
| 2090 | galaxian_extend_sprite_info_func extend_sprite_info) | |
| 2091 | { | |
| 2092 | /* basic configuration */ | |
| 2093 | common_init(machine, draw_bullet, draw_background, extend_tile_info, extend_sprite_info); | |
| 5054 | 2094 | |
| 5055 | ROM_START( galap1 ) | |
| 5056 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5057 | ROM_LOAD( "7f.bin", 0x0000, 0x1000, CRC(4335b1de) SHA1(e41e3d90dac738cf71377f3b476ec67b14dee27a) ) | |
| 5058 | ROM_LOAD( "galaxian.w", 0x1000, 0x0800, CRC(4c7031c0) SHA1(97f7ab0cedcd8eba1c8f6f516d84d672a2108258) ) | |
| 5059 | ROM_LOAD( "galx_1_4.rom", 0x1800, 0x0800, CRC(e71e1d9e) SHA1(32bf22b06c84d36de7c1280740b9c11e8d6a12b6) ) | |
| 5060 | ROM_LOAD( "galx_1_5.rom", 0x2000, 0x0800, CRC(6e65a3b2) SHA1(c9f20645ad2882e937245a9e90504423bb492158) ) | |
| 2095 | /* configure Konami sound */ | |
| 2096 | ppi8255_init(&konami_ppi8255_intf); | |
| 2097 | } | |
| 5061 | 2098 | |
| 5062 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5063 | ROM_LOAD( "galmidw.1j", 0x0000, 0x0800, CRC(84decf98) SHA1(2e565cb6057b1816a6b4541e6dfadd3c3762fa36) ) | |
| 5064 | ROM_LOAD( "galmidw.1k", 0x0800, 0x0800, CRC(c31ada9e) SHA1(237ebb48549b34ca59a13cc2706512d957413ec4) ) | |
| 5065 | 2099 | |
| 5066 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5067 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5068 | ROM_END | |
| 2100 | static void unmap_galaxian_sound(offs_t base) | |
| 2101 | { | |
| 2102 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, base + 0x0004, base + 0x0007, 0, 0x07f8, SMH_UNMAP); | |
| 2103 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, base + 0x0800, base + 0x0807, 0, 0x07f8, SMH_UNMAP); | |
| 2104 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, base + 0x1800, base + 0x1800, 0, 0x07ff, SMH_UNMAP); | |
| 2105 | } | |
| 5069 | 2106 | |
| 5070 | ROM_START( galap4 ) | |
| 5071 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5072 | ROM_LOAD( "galnamco.u", 0x0000, 0x0800, CRC(acfde501) SHA1(4b72c1ffecaccadc541da2367f3ef70a2a9aed64) ) | |
| 5073 | ROM_LOAD( "galnamco.v", 0x0800, 0x0800, CRC(65cf3c77) SHA1(1c5249815816b395e1e04bf6a7dbb63e40faa0e3) ) | |
| 5074 | ROM_LOAD( "galnamco.w", 0x1000, 0x0800, CRC(9eef9ae6) SHA1(b2282e4edb8911e6aabfa936c3526f90381e1320) ) | |
| 5075 | ROM_LOAD( "galnamco.y", 0x1800, 0x0800, CRC(56a5ddd1) SHA1(1f87f647ebdffba28d5957f195448f6bce17f4d5) ) | |
| 5076 | ROM_LOAD( "galnamco.z", 0x2000, 0x0800, CRC(f4bc7262) SHA1(c4b70e474d49f45cec96f7c250bd77e01e18601a) ) | |
| 5077 | 2107 | |
| 5078 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5079 | ROM_LOAD( "galx_4c1.rom", 0x0000, 0x0800, CRC(d5e88ab4) SHA1(737a22e406fd0a97d10e93a2c91c3aa61aebbdef) ) | |
| 5080 | ROM_LOAD( "galx_4c2.rom", 0x0800, 0x0800, CRC(a57b83e4) SHA1(335d8674df1d237a4b83da00eb9aee346bc2e901) ) | |
| 5081 | 2108 | |
| 5082 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5083 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5084 | ROM_END | |
| 2109 | /************************************* | |
| 2110 | * | |
| 2111 | * Galaxian-derived games | |
| 2112 | * | |
| 2113 | *************************************/ | |
| 5085 | 2114 | |
| 5086 | ROM_START( galturbo ) | |
| 5087 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5088 | ROM_LOAD( "galturbo.u", 0x0000, 0x0800, CRC(e8f3aa67) SHA1(a0e9576784dbe602dd9780e667f01f31defd7c00) ) | |
| 5089 | ROM_LOAD( "galx.v", 0x0800, 0x0800, CRC(bc16064e) SHA1(4e3220fd63c8184bf9581a89dffb6944d8fae3bb) ) | |
| 5090 | ROM_LOAD( "superg.w", 0x1000, 0x0800, CRC(ddeabdae) SHA1(daa5109a32c7c9a80bdb212dc3e4e3e3c104a731) ) | |
| 5091 | ROM_LOAD( "galturbo.y", 0x1800, 0x0800, CRC(a44f450f) SHA1(4009834afb45e9b23c7cf058bcd3378ef8601872) ) | |
| 5092 | ROM_LOAD( "galturbo.z", 0x2000, 0x0800, CRC(3247f3d4) SHA1(5754dedc2d06736629d85514b2e7c262ce27bf2d) ) | |
| 2115 | static DRIVER_INIT( galaxian ) | |
| 2116 | { | |
| 2117 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, NULL, NULL); | |
| 2118 | } | |
| 5093 | 2119 | |
| 5094 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5095 | ROM_LOAD( "galturbo.1h", 0x0000, 0x0800, CRC(a713fd1a) SHA1(abf86fe5cb7243a1a36d7ac0a868577a3360dcca) ) | |
| 5096 | ROM_LOAD( "galturbo.1k", 0x0800, 0x0800, CRC(28511790) SHA1(dec2e183a753295d033a56184c973bbc810abf55) ) | |
| 5097 | 2120 | |
| 5098 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5099 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5100 | ROM_END | |
| 2121 | static DRIVER_INIT( nolock ) | |
| 2122 | { | |
| 2123 | /* same as galaxian... */ | |
| 2124 | DRIVER_INIT_CALL(galaxian); | |
| 5101 | 2125 | |
| 5102 | ROM_START( swarm ) | |
| 5103 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5104 | ROM_LOAD( "swarm1.bin", 0x0000, 0x0800, CRC(21eba3d0) SHA1(d07f141d785c86faca8c40af034c26f2789e9346) ) | |
| 5105 | ROM_LOAD( "swarm2.bin", 0x0800, 0x0800, CRC(f3a436cd) SHA1(8d64e61b823e22f17cb79bf9e0c7b3c80c76413f) ) | |
| 5106 | ROM_LOAD( "swarm3.bin", 0x1000, 0x0800, CRC(2915e38b) SHA1(045d4cc2c363b9ba8d066f902f03b7eacbeb1f5e) ) | |
| 5107 | ROM_LOAD( "swarm4.bin", 0x1800, 0x0800, CRC(8bbbf486) SHA1(84c975562c9c359069fb70f7f416420c74d40622) ) | |
| 5108 | ROM_LOAD( "swarm5.bin", 0x2000, 0x0800, CRC(f1b1987e) SHA1(0c8b57cb156fdd1a81a5e4535464cafab737185b) ) | |
| 2126 | /* ...but coin lockout disabled/disconnected */ | |
| 2127 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6002, 0x6002, 0, 0x7f8, SMH_UNMAP); | |
| 2128 | } | |
| 5109 | 2129 | |
| 5110 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5111 | ROM_LOAD( "swarma.bin", 0x0000, 0x0800, CRC(ef8657bb) SHA1(c942db83231b04041e2794a08ce779331613edcf) ) | |
| 5112 | ROM_LOAD( "swarmb.bin", 0x0800, 0x0800, CRC(60c4bd31) SHA1(a8f22f8d7a9fca2c29091888e243dfa10211e138) ) | |
| 5113 | 2130 | |
| 5114 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5115 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5116 | ROM_END | |
| 2131 | static DRIVER_INIT( azurian ) | |
| 2132 | { | |
| 2133 | /* yellow bullets instead of white ones */ | |
| 2134 | common_init(machine, scramble_draw_bullet, galaxian_draw_background, NULL, NULL); | |
| 5117 | 2135 | |
| 5118 | ROM_START( zerotime ) | |
| 5119 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5120 | ROM_LOAD( "zt-p01c.016", 0x0000, 0x0800, CRC(90a2bc61) SHA1(9d23dfcf5310cf1d4aa1b473ec84279585e1a876) ) | |
| 5121 | ROM_LOAD( "zt-2.016", 0x0800, 0x0800, CRC(a433067e) SHA1(1aed1a2153c4a32a9996fc709e544f2063885599) ) | |
| 5122 | ROM_LOAD( "zt-3.016", 0x1000, 0x0800, CRC(aaf038d4) SHA1(2d070fe7c4e9b26092f0f12a9db3392f7d8a65f1) ) | |
| 5123 | ROM_LOAD( "zt-4.016", 0x1800, 0x0800, CRC(786d690a) SHA1(50c5c07941006e3b71afbf057d27daa2f2274925) ) | |
| 5124 | ROM_LOAD( "zt-5.016", 0x2000, 0x0800, CRC(af9260d7) SHA1(955e466a8989993351dc69d73ca322c1c9af7b63) ) | |
| 2136 | /* coin lockout disabled */ | |
| 2137 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6002, 0x6002, 0, 0x7f8, SMH_UNMAP); | |
| 2138 | } | |
| 5125 | 2139 | |
| 5126 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5127 | ROM_LOAD( "ztc-2.016", 0x0000, 0x0800, CRC(1b13ca05) SHA1(6999068771dacc6bf6c17eb858af593a929d09af) ) | |
| 5128 | ROM_LOAD( "ztc-1.016", 0x0800, 0x0800, CRC(5cd7df03) SHA1(77873408c89546a17b1da3f64b7e96e314fadb17) ) | |
| 5129 | 2140 | |
| 5130 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5131 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5132 | ROM_END | |
| 2141 | static DRIVER_INIT( gmgalax ) | |
| 2142 | { | |
| 2143 | /* video extensions */ | |
| 2144 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, gmgalax_extend_tile_info, gmgalax_extend_sprite_info); | |
| 5133 | 2145 | |
| 5134 | ROM_START( starfght ) | |
| 5135 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5136 | ROM_LOAD( "ja.1", 0x0000, 0x0400, CRC(c6ab558b) SHA1(2b707e332c57b9ec6a61220ab2b79ed5076d0628) ) | |
| 5137 | ROM_LOAD( "jb.2", 0x0400, 0x0400, CRC(34b99fed) SHA1(03d12b19c9aee75313cae6af602c93205d2fd4a8) ) | |
| 5138 | ROM_LOAD( "jc.3", 0x0800, 0x0400, CRC(30e28016) SHA1(07a621e5061d85a9559a920d76716ea4db61b674) ) | |
| 5139 | ROM_LOAD( "jd.4", 0x0c00, 0x0400, CRC(de7e7770) SHA1(b06043a1d898eb323ddabffd3d2a3b1f63df0e5e) ) | |
| 5140 | ROM_LOAD( "je.5", 0x1000, 0x0400, CRC(a916c919) SHA1(b3e264ff92687022a0f2f551d5df36db848b48eb) ) | |
| 5141 | ROM_LOAD( "jf.6", 0x1400, 0x0400, CRC(9175882b) SHA1(d9943efcb9245af7f01aecc533a699bdefc7d283) ) | |
| 5142 | ROM_LOAD( "jg.7", 0x1800, 0x0400, CRC(707c0f02) SHA1(4cfb18b8161ec6a74663b54120bdc6371ee9dbff) ) | |
| 5143 | ROM_LOAD( "jh.8", 0x1c00, 0x0400, CRC(5dd26461) SHA1(173b939287d0261ff069c277a1afd724133f4c88) ) | |
| 5144 | ROM_LOAD( "ji.9", 0x2000, 0x0400, CRC(6651fe93) SHA1(eb1d9466090ef723ae20003e5be27059f5bea57b) ) | |
| 5145 | ROM_LOAD( "jj.10", 0x2400, 0x0400, CRC(12c721b9) SHA1(1944cd5129115d245ced44da7f1eb4574561c457) ) | |
| 2146 | /* ROM is banked */ | |
| 2147 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x3fff, 0, 0, SMH_BANK1); | |
| 2148 | memory_configure_bank(1, 0, 2, memory_region(REGION_CPU1) + 0x10000, 0x4000); | |
| 5146 | 2149 | |
| 5147 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5148 | ROM_LOAD( "k1.7a", 0x0000, 0x0800, CRC(977e37cf) SHA1(88ff1e4edadf5cfc83413a1fe999aecf4ba72232) ) | |
| 5149 | ROM_LOAD( "k2.9a", 0x0800, 0x0800, CRC(15e387ce) SHA1(d804b1391de5a15c336aa53c812b4a885f830191) ) | |
| 2150 | /* callback when the game select is toggled */ | |
| 2151 | gmgalax_game_changed(machine, NULL, 0, 0); | |
| 2152 | state_save_register_global(gmgalax_selected_game); | |
| 2153 | } | |
| 5150 | 2154 | |
| 5151 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5152 | ROM_LOAD( "mmi6331.7f", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) /* Compatible with 82s123 prom */ | |
| 5153 | ROM_END | |
| 5154 | 2155 | |
| 5155 | /* was marked 'star fighter' but doesn't appear to be the above game */ | |
| 5156 | ROM_START( galaxbsf ) | |
| 5157 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5158 | ROM_LOAD( "1.bn", 0x0000, 0x0400, CRC(cc37b774) SHA1(5b7d9e3c896a1f5b0353732806568d4ffead3ead) ) | |
| 5159 | ROM_LOAD( "2.bn", 0x0400, 0x0400, CRC(c6d21f03) SHA1(64784915bf988fd2a3eea5f219c95c8498175018) ) | |
| 5160 | ROM_LOAD( "3.bn", 0x0800, 0x0400, CRC(30e28016) SHA1(07a621e5061d85a9559a920d76716ea4db61b674) ) | |
| 5161 | ROM_LOAD( "4.bn", 0x0c00, 0x0400, CRC(de7e7770) SHA1(b06043a1d898eb323ddabffd3d2a3b1f63df0e5e) ) | |
| 5162 | ROM_LOAD( "5.bn", 0x1000, 0x0400, CRC(a916c919) SHA1(b3e264ff92687022a0f2f551d5df36db848b48eb) ) | |
| 5163 | ROM_LOAD( "6.bn", 0x1400, 0x0400, CRC(9175882b) SHA1(d9943efcb9245af7f01aecc533a699bdefc7d283) ) | |
| 5164 | ROM_LOAD( "7.bn", 0x1800, 0x0400, CRC(1237b9da) SHA1(00e11532c599fca452a816683b361a24476b7100) ) | |
| 5165 | ROM_LOAD( "8.bn", 0x1c00, 0x0400, CRC(78c53607) SHA1(780acff57b594185eb5f4b24ae7d8b4992d96611) ) | |
| 5166 | ROM_LOAD( "9.bn", 0x2000, 0x0400, CRC(901894cc) SHA1(a189a8ab0068e9acc3be7b8e87adc1eadfd6b708) ) | |
| 5167 | ROM_LOAD( "10.bn", 0x2400, 0x0400, CRC(5876f695) SHA1(e8c0d13066cfe4a409293b9e1380513099b35330) ) | |
| 2156 | static DRIVER_INIT( pisces ) | |
| 2157 | { | |
| 2158 | /* video extensions */ | |
| 2159 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, pisces_extend_tile_info, pisces_extend_sprite_info); | |
| 5168 | 2160 | |
| 5169 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5170 | ROM_LOAD( "11.bn", 0x0000, 0x0800, CRC(39fb43a4) SHA1(4755609bd974976f04855d51e08ec0d62ab4bc07) ) | |
| 5171 | ROM_LOAD( "12.bn", 0x0800, 0x0800, CRC(7e3f56a2) SHA1(a9795d8b7388f404f3b0e2c6ce15d713a4c5bafa) ) | |
| 2161 | /* coin lockout replaced by graphics bank */ | |
| 2162 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6002, 0x6002, 0, 0x7f8, galaxian_gfxbank_w); | |
| 2163 | } | |
| 5172 | 2164 | |
| 5173 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5174 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5175 | ROM_END | |
| 5176 | 2165 | |
| 2166 | static DRIVER_INIT( batman2 ) | |
| 2167 | { | |
| 2168 | /* video extensions */ | |
| 2169 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, batman2_extend_tile_info, upper_extend_sprite_info); | |
| 5177 | 2170 | |
| 5178 | ROM_START( tst_galx ) | |
| 5179 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5180 | ROM_LOAD( "test.u", 0x0000, 0x0800, CRC(0614cd7f) SHA1(12440678be8a27a6c3032b6e43c45e27905ffa83) ) /* The Test ROM */ | |
| 5181 | ROM_LOAD( "galmidw.v", 0x0800, 0x0800, CRC(9c999a40) SHA1(02fdcd95d8511e64c0d2b007b874112d53e41045) ) | |
| 5182 | ROM_LOAD( "galmidw.w", 0x1000, 0x0800, CRC(b5894925) SHA1(0046b9ed697a34d088de1aead8bd7cbe526a2396) ) | |
| 5183 | ROM_LOAD( "galmidw.y", 0x1800, 0x0800, CRC(6b3ca10b) SHA1(18d8714e5ef52f63ba8888ecc5a25b17b3bf17d1) ) | |
| 2171 | /* coin lockout replaced by graphics bank */ | |
| 2172 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6002, 0x6002, 0, 0x7f8, galaxian_gfxbank_w); | |
| 2173 | } | |
| 5184 | 2174 | |
| 5185 | ROM_LOAD( "7l", 0x2000, 0x0800, CRC(1b933207) SHA1(8b44b0f74420871454e27894d0f004859f9e59a9) ) | |
| 5186 | 2175 | |
| 5187 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5188 | ROM_LOAD( "1h.bin", 0x0000, 0x0800, CRC(39fb43a4) SHA1(4755609bd974976f04855d51e08ec0d62ab4bc07) ) | |
| 5189 | ROM_LOAD( "1k.bin", 0x0800, 0x0800, CRC(7e3f56a2) SHA1(a9795d8b7388f404f3b0e2c6ce15d713a4c5bafa) ) | |
| 2176 | static DRIVER_INIT( frogg ) | |
| 2177 | { | |
| 2178 | /* same as galaxian... */ | |
| 2179 | common_init(machine, galaxian_draw_bullet, frogger_draw_background, frogger_extend_tile_info, frogger_extend_sprite_info); | |
| 5190 | 2180 | |
| 5191 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5192 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5193 | ROM_END | |
| 2181 | /* ...but needs a full 2k of RAM */ | |
| 2182 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x4000, 0x47ff, 0, 0, SMH_BANK1, SMH_BANK1); | |
| 2183 | memory_set_bankptr(1, auto_malloc(0x800)); | |
| 2184 | } | |
| 5194 | 2185 | |
| 5195 | ROM_START( gmgalax ) | |
| 5196 | ROM_REGION( 0x18000, REGION_CPU1, 0 ) /* 64k for code + 32k for banked code */ | |
| 5197 | ROM_LOAD( "pcb1_pm1.bin",0x10000, 0x1000, CRC(19338c70) SHA1(cc2665b7d534d324627d12025ee099ff415d4214) ) | |
| 5198 | ROM_LOAD( "pcb1_pm2.bin",0x11000, 0x1000, CRC(18db074d) SHA1(a70ed18f632e947493e648e6fc057dfb7a2a3322) ) | |
| 5199 | ROM_LOAD( "pcb1_pm3.bin",0x12000, 0x1000, CRC(abb98b1d) SHA1(bb0109d353359bb192a3e6856a857c2f842838cb) ) | |
| 5200 | ROM_LOAD( "pcb1_pm4.bin",0x13000, 0x1000, CRC(2403c78e) SHA1(52d8c8a4efcf47871485080ab217098a019e6579) ) | |
| 5201 | ROM_LOAD( "pcb1_gx1.bin",0x14000, 0x1000, CRC(2faa9f53) SHA1(1e7010d407601c5da1adc68bc9f4742c79d57286) ) | |
| 5202 | ROM_LOAD( "pcb1_gx2.bin",0x15000, 0x1000, CRC(121c5f16) SHA1(cb1806fa984870133fd883969838dca85f992515) ) | |
| 5203 | ROM_LOAD( "pcb1_gx3.bin",0x16000, 0x1000, CRC(02d81a21) SHA1(39209cfb7cf142a65e157544d93803ea542a8efb) ) | |
| 5204 | 2186 | |
| 5205 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5206 | ROM_LOAD( "pcb2gfx1.bin", 0x0000, 0x0800, CRC(7021bbc0) SHA1(52d2983d74e722fccb31eb02ca56255850c4f41c) ) | |
| 5207 | ROM_CONTINUE( 0x1000, 0x0800 ) | |
| 5208 | ROM_LOAD( "pcb2gfx3.bin", 0x0800, 0x0800, CRC(089c922b) SHA1(f1b81999f63677d4cd58cd547353170e348a1423) ) | |
| 5209 | ROM_CONTINUE( 0x1800, 0x0800 ) | |
| 5210 | ROM_LOAD( "pcb2gfx2.bin", 0x2000, 0x0800, CRC(51bf58ee) SHA1(3546ff03c76a6422b0515bd5c695674bfb032089) ) | |
| 5211 | ROM_CONTINUE( 0x3000, 0x0800 ) | |
| 5212 | ROM_LOAD( "pcb2gfx4.bin", 0x2800, 0x0800, CRC(908fd0dc) SHA1(ac278bd82730e92ff312793244340748b93fa9bb) ) | |
| 5213 | ROM_CONTINUE( 0x3800, 0x0800 ) | |
| 5214 | 2187 | |
| 5215 | ROM_REGION( 0x0040, REGION_PROMS, 0 ) | |
| 5216 | ROM_LOAD( "gmgalax2.clr", 0x0000, 0x0020, CRC(499f4440) SHA1(66d6463a145087041934bdab8bfa6c3db6375317) ) | |
| 5217 | ROM_LOAD( "l06_prom.bin", 0x0020, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5218 | ROM_END | |
| 2188 | /************************************* | |
| 2189 | * | |
| 2190 | * Moon Cresta-derived games | |
| 2191 | * | |
| 2192 | *************************************/ | |
| 5219 | 2193 | |
| 5220 | ROM_START( pisces ) | |
| 5221 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5222 | ROM_LOAD( "p1.bin", 0x0000, 0x0800, CRC(40c5b0e4) SHA1(6c18e6f4719eb0d7eb13b778d7ea58e4b87ac35c) ) | |
| 5223 | ROM_LOAD( "p2.bin", 0x0800, 0x0800, CRC(055f9762) SHA1(9d821874dd48a80651adc58a2f7fe5d2b3ed67bc) ) | |
| 5224 | ROM_LOAD( "p3.bin", 0x1000, 0x0800, CRC(3073dd04) SHA1(b93913a988f412d565abd19dc668976585cc8066) ) | |
| 5225 | ROM_LOAD( "p4.bin", 0x1800, 0x0800, CRC(44aaf525) SHA1(667bf4c3a36169c3ddddd22b2f1f90bcc9308548) ) | |
| 5226 | ROM_LOAD( "p5.bin", 0x2000, 0x0800, CRC(fade512b) SHA1(ccef2650f1d9dc3fdde2d441774246d47febc2cc) ) | |
| 5227 | ROM_LOAD( "p6.bin", 0x2800, 0x0800, CRC(5ab2822f) SHA1(bbcac3aab943dd9b173de11ddf02ff75d16b1582) ) | |
| 2194 | static DRIVER_INIT( mooncrst ) | |
| 2195 | { | |
| 2196 | /* video extensions */ | |
| 2197 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, mooncrst_extend_tile_info, mooncrst_extend_sprite_info); | |
| 5228 | 2198 | |
| 5229 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5230 | // ROM_LOAD( "pisces.1j", 0x0000, 0x1000, CRC(2dba9e0e) ) | |
| 5231 | // ROM_LOAD( "pisces.1k", 0x1000, 0x1000, CRC(cdc5aa26) ) | |
| 5232 | ROM_LOAD( "g09.bin", 0x0000, 0x0800, CRC(9503a23a) SHA1(23848de56841dd1de9ef74d5a9c981c784098175) ) | |
| 5233 | ROM_LOAD( "g11.bin", 0x0800, 0x0800, CRC(0adfc3fe) SHA1(a4da488632d9906066db45ae62747caf5ffbf2d8) ) | |
| 5234 | ROM_LOAD( "g10.bin", 0x1000, 0x0800, CRC(3e61f849) SHA1(efa0059bc843af0c3bb94f4bc0a8286ca5069179) ) | |
| 5235 | ROM_LOAD( "g12.bin", 0x1800, 0x0800, CRC(7130e9eb) SHA1(e6bb7a9b4f2fc001296e1060d0671b7a88599c8b) ) | |
| 2199 | /* decrypt program code */ | |
| 2200 | decode_mooncrst(0x8000, memory_region(REGION_CPU1)); | |
| 2201 | } | |
| 5236 | 2202 | |
| 5237 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5238 | ROM_LOAD( "colour.bin", 0x0000, 0x0020, CRC(57a45057) SHA1(d4ec6a54f72640e5b485aa59e206c090e67ff640) ) // same as checkman.clr | |
| 5239 | ROM_END | |
| 5240 | 2203 | |
| 5241 | ROM_START( piscesb ) | |
| 5242 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5243 | ROM_LOAD( "pisces.a1", 0x0000, 0x0800, CRC(856b8e1f) SHA1(24d468b5f06f54c3fa1cb54ceec8a0c8e285430e) ) | |
| 5244 | ROM_LOAD( "p2.bin", 0x0800, 0x0800, CRC(055f9762) SHA1(9d821874dd48a80651adc58a2f7fe5d2b3ed67bc) ) | |
| 5245 | ROM_LOAD( "pisces.b2", 0x1000, 0x0800, CRC(5540f2e4) SHA1(b069a7e46fa2c1f732371ef056caaf8f343e11a8) ) | |
| 5246 | ROM_LOAD( "p4.bin", 0x1800, 0x0800, CRC(44aaf525) SHA1(667bf4c3a36169c3ddddd22b2f1f90bcc9308548) ) | |
| 5247 | ROM_LOAD( "p5.bin", 0x2000, 0x0800, CRC(fade512b) SHA1(ccef2650f1d9dc3fdde2d441774246d47febc2cc) ) | |
| 5248 | ROM_LOAD( "p6.bin", 0x2800, 0x0800, CRC(5ab2822f) SHA1(bbcac3aab943dd9b173de11ddf02ff75d16b1582) ) | |
| 2204 | static DRIVER_INIT( mooncrsu ) | |
| 2205 | { | |
| 2206 | /* video extensions */ | |
| 2207 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, mooncrst_extend_tile_info, mooncrst_extend_sprite_info); | |
| 2208 | } | |
| 5249 | 2209 | |
| 5250 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5251 | // ROM_LOAD( "pisces.1j", 0x0000, 0x1000, CRC(2dba9e0e) ) | |
| 5252 | // ROM_LOAD( "pisces.1k", 0x1000, 0x1000, CRC(cdc5aa26) ) | |
| 5253 | ROM_LOAD( "g09.bin", 0x0000, 0x0800, CRC(9503a23a) SHA1(23848de56841dd1de9ef74d5a9c981c784098175) ) | |
| 5254 | ROM_LOAD( "g11.bin", 0x0800, 0x0800, CRC(0adfc3fe) SHA1(a4da488632d9906066db45ae62747caf5ffbf2d8) ) | |
| 5255 | ROM_LOAD( "g10.bin", 0x1000, 0x0800, CRC(3e61f849) SHA1(efa0059bc843af0c3bb94f4bc0a8286ca5069179) ) | |
| 5256 | ROM_LOAD( "g12.bin", 0x1800, 0x0800, CRC(7130e9eb) SHA1(e6bb7a9b4f2fc001296e1060d0671b7a88599c8b) ) | |
| 5257 | 2210 | |
| 5258 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5259 | // ROM_LOAD( "6331-1j.86", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) /* very close to Galaxian */ | |
| 5260 | ROM_LOAD( "colour.bin", 0x0000, 0x0020, CRC(57a45057) SHA1(d4ec6a54f72640e5b485aa59e206c090e67ff640) ) // same as checkman.clr | |
| 5261 | ROM_END | |
| 2211 | static DRIVER_INIT( mooncrgx ) | |
| 2212 | { | |
| 2213 | /* video extensions */ | |
| 2214 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, mooncrst_extend_tile_info, mooncrst_extend_sprite_info); | |
| 5262 | 2215 | |
| 5263 | ROM_START( omni ) | |
| 5264 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5265 | ROM_LOAD( "omni1.7f", 0x0000, 0x1000, CRC(a9b7acc6) SHA1(0c6319957b760fea3cfa6c29b37c25f5a89a6d77) ) | |
| 5266 | ROM_LOAD( "omni2.7j", 0x1000, 0x1000, CRC(6ade29b7) SHA1(64f1ce82c761db11d26c385299a7063f5971c99a) ) | |
| 5267 | ROM_LOAD( "omni3.7f", 0x2000, 0x1000, CRC(9e37bb24) SHA1(d90b2ff0297d87687561e1e9b29510b6c051760b) ) | |
| 2216 | /* LEDs and coin lockout replaced by graphics banking */ | |
| 2217 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x6002, 0, 0x7f8, galaxian_gfxbank_w); | |
| 2218 | } | |
| 5268 | 2219 | |
| 5269 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5270 | ROM_LOAD( "omni5b.l1", 0x0000, 0x0800, CRC(9503a23a) SHA1(23848de56841dd1de9ef74d5a9c981c784098175) ) | |
| 5271 | ROM_LOAD( "omni6c.j22", 0x0800, 0x0800, CRC(0adfc3fe) SHA1(a4da488632d9906066db45ae62747caf5ffbf2d8) ) | |
| 5272 | ROM_LOAD( "omni4a.j1", 0x1000, 0x0800, CRC(3e61f849) SHA1(efa0059bc843af0c3bb94f4bc0a8286ca5069179) ) | |
| 5273 | ROM_LOAD( "omni7d.l2", 0x1800, 0x0800, CRC(7130e9eb) SHA1(e6bb7a9b4f2fc001296e1060d0671b7a88599c8b) ) | |
| 5274 | 2220 | |
| 5275 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5276 | ROM_LOAD( "colour.bin", 0x0000, 0x0020, CRC(57a45057) SHA1(d4ec6a54f72640e5b485aa59e206c090e67ff640) ) | |
| 5277 | ROM_END | |
| 2221 | static DRIVER_INIT( moonqsr ) | |
| 2222 | { | |
| 2223 | UINT8 *decrypt = auto_malloc(0x8000); | |
| 5278 | 2224 | |
| 5279 | ROM_START( uniwars ) | |
| 5280 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5281 | ROM_LOAD( "f07_1a.bin", 0x0000, 0x0800, CRC(d975af10) SHA1(a2e2a36a75db8fd09441308b08b6ae073c68b8cf) ) | |
| 5282 | ROM_LOAD( "h07_2a.bin", 0x0800, 0x0800, CRC(b2ed14c3) SHA1(7668df11f64b8e296eedfee53437777dc53a56d5) ) | |
| 5283 | ROM_LOAD( "k07_3a.bin", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) | |
| 5284 | ROM_LOAD( "m07_4a.bin", 0x1800, 0x0800, CRC(ddc80bc5) SHA1(18c3920198baf87267bc7f12db6b23b090d3577a) ) | |
| 5285 | ROM_LOAD( "d08p_5a.bin", 0x2000, 0x0800, CRC(62354351) SHA1(85bf18942f73023b8be0c3659a0dcd3dfcccfc2c) ) | |
| 5286 | ROM_LOAD( "gg6", 0x2800, 0x0800, CRC(270a3f4d) SHA1(20f5097033fca515d70fe47178cbd341a1d07443) ) | |
| 5287 | ROM_LOAD( "m08p_7a.bin", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) | |
| 5288 | ROM_LOAD( "n08p_8a.bin", 0x3800, 0x0800, CRC(797d45c7) SHA1(76fb8b45fcce3622c59c04af32cfa001ef7bf71d) ) | |
| 2225 | /* video extensions */ | |
| 2226 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, moonqsr_extend_tile_info, moonqsr_extend_sprite_info); | |
| 5289 | 2227 | |
| 5290 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5291 | ROM_LOAD( "egg10", 0x0000, 0x0800, CRC(012941e0) SHA1(4f7ec4d95939cb7c4086bb7df43759ac504ae47c) ) | |
| 5292 | ROM_LOAD( "h01_2.bin", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) | |
| 5293 | ROM_LOAD( "egg9", 0x1000, 0x0800, CRC(fc8b58fd) SHA1(72553e2735b0dcc2dcfce9698d49566732492588) ) | |
| 5294 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2228 | /* decrypt program code */ | |
| 2229 | decode_mooncrst(0x8000, decrypt); | |
| 2230 | memory_set_decrypted_region(0, 0x0000, 0x7fff, decrypt); | |
| 2231 | } | |
| 5295 | 2232 | |
| 5296 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5297 | ROM_LOAD( "uniwars.clr", 0x0000, 0x0020, CRC(25c79518) SHA1(e8f7e8b3d0cf1ed9d723948548f58abf0e2c6d1f) ) | |
| 5298 | ROM_END | |
| 5299 | 2233 | |
| 5300 | ROM_START( gteikoku ) | |
| 5301 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5302 | ROM_LOAD( "f07_1a.bin", 0x0000, 0x0800, CRC(d975af10) SHA1(a2e2a36a75db8fd09441308b08b6ae073c68b8cf) ) | |
| 5303 | ROM_LOAD( "h07_2a.bin", 0x0800, 0x0800, CRC(b2ed14c3) SHA1(7668df11f64b8e296eedfee53437777dc53a56d5) ) | |
| 5304 | ROM_LOAD( "k07_3a.bin", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) | |
| 5305 | ROM_LOAD( "m07_4a.bin", 0x1800, 0x0800, CRC(ddc80bc5) SHA1(18c3920198baf87267bc7f12db6b23b090d3577a) ) | |
| 5306 | ROM_LOAD( "d08p_5a.bin", 0x2000, 0x0800, CRC(62354351) SHA1(85bf18942f73023b8be0c3659a0dcd3dfcccfc2c) ) | |
| 5307 | ROM_LOAD( "e08p_6a.bin", 0x2800, 0x0800, CRC(d915a389) SHA1(0e2ff6eec9453856a1276889946b463cfae58eba) ) | |
| 5308 | ROM_LOAD( "m08p_7a.bin", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) | |
| 5309 | ROM_LOAD( "n08p_8a.bin", 0x3800, 0x0800, CRC(797d45c7) SHA1(76fb8b45fcce3622c59c04af32cfa001ef7bf71d) ) | |
| 2234 | static DRIVER_INIT( pacmanbl ) | |
| 2235 | { | |
| 2236 | /* same as galaxian... */ | |
| 2237 | DRIVER_INIT_CALL(galaxian); | |
| 5310 | 2238 | |
| 5311 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5312 | ROM_LOAD( "h01_1.bin", 0x0000, 0x0800, CRC(8313c959) SHA1(b09157c6f824d6e94647728cbb329877fcb4e502) ) | |
| 5313 | ROM_LOAD( "h01_2.bin", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) | |
| 5314 | ROM_LOAD( "k01_1.bin", 0x1000, 0x0800, CRC(c9d4537e) SHA1(65d27066ffec04b755d2f5d3f36f5ec6792e8d6c) ) | |
| 5315 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2239 | /* ...but coin lockout disabled/disconnected */ | |
| 2240 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6002, 0x6002, 0, 0x7f8, SMH_UNMAP); | |
| 5316 | 2241 | |
| 5317 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5318 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5319 | ROM_END | |
| 2242 | /* also shift the sprite clip offset */ | |
| 2243 | galaxian_sprite_clip_start = 7; | |
| 2244 | galaxian_sprite_clip_end = 246; | |
| 2245 | } | |
| 5320 | 2246 | |
| 5321 | ROM_START( gteikokb ) | |
| 5322 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5323 | ROM_LOAD( "1.bin", 0x0000, 0x0800, CRC(bf00252f) SHA1(a4ec48c6b9468f52bcf8b01d1bdb908dcf81d42d) ) | |
| 5324 | ROM_LOAD( "2.bin", 0x0800, 0x0800, CRC(f712b7d5) SHA1(c269db2e9984a3fbd33888bd426c53d319cad36f) ) | |
| 5325 | ROM_LOAD( "k07_3a.bin", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) | |
| 5326 | ROM_LOAD( "4.bin", 0x1800, 0x0800, CRC(808a39a8) SHA1(f3db5175d0c2d10e9e3ded400888f6541490597e) ) | |
| 5327 | ROM_LOAD( "5.bin", 0x2000, 0x0800, CRC(36fe6e67) SHA1(e54a19ad6611fefcdfcf74019a63cc6cea6cf433) ) | |
| 5328 | ROM_LOAD( "6.bin", 0x2800, 0x0800, CRC(c5ea67e8) SHA1(0157eb2ef5ab56cd00e5f4fafd618271d2d4862b) ) | |
| 5329 | ROM_LOAD( "m08p_7a.bin", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) | |
| 5330 | ROM_LOAD( "8.bin", 0x3800, 0x0800, CRC(28df3229) SHA1(fd307c6a7de4fcddce1c2f36a957a31b9a6aaa21) ) | |
| 5331 | 2247 | |
| 5332 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5333 | ROM_LOAD( "h01_1.bin", 0x0000, 0x0800, CRC(8313c959) SHA1(b09157c6f824d6e94647728cbb329877fcb4e502) ) | |
| 5334 | ROM_LOAD( "h01_2.bin", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) | |
| 5335 | ROM_LOAD( "k01_1.bin", 0x1000, 0x0800, CRC(c9d4537e) SHA1(65d27066ffec04b755d2f5d3f36f5ec6792e8d6c) ) | |
| 5336 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2248 | static DRIVER_INIT( devilfsg ) | |
| 2249 | { | |
| 2250 | /* video extensions */ | |
| 2251 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, NULL, NULL); | |
| 5337 | 2252 | |
| 5338 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5339 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5340 | ROM_END | |
| 2253 | /* IRQ line is INT, not NMI */ | |
| 2254 | irq_line = 0; | |
| 2255 | } | |
| 5341 | 2256 | |
| 5342 | ROM_START( gteikob2 ) | |
| 5343 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5344 | ROM_LOAD( "94gnog.bin", 0x0000, 0x0800, CRC(67ec3235) SHA1(f250db867257f474f693012c11008bf92f038cc7) ) | |
| 5345 | ROM_LOAD( "92gnog.bin", 0x0800, 0x0800, CRC(813c41f2) SHA1(bd92e0b53e3c8874d63f3444bca02246cd74b1c6) ) | |
| 5346 | ROM_LOAD( "k07_3a.bin", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) | |
| 5347 | ROM_LOAD( "1gnog.bin", 0x1800, 0x0800, CRC(49ff9658) SHA1(3b7f3dc40b3fbc7d4abe5f5d534951c70409148c) ) | |
| 5348 | ROM_LOAD( "5.bin", 0x2000, 0x0800, CRC(36fe6e67) SHA1(e54a19ad6611fefcdfcf74019a63cc6cea6cf433) ) | |
| 5349 | ROM_LOAD( "e08p_6a.bin", 0x2800, 0x0800, CRC(d915a389) SHA1(0e2ff6eec9453856a1276889946b463cfae58eba) ) | |
| 5350 | ROM_LOAD( "m08p_7a.bin", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) | |
| 5351 | ROM_LOAD( "98gnog.bin", 0x3800, 0x0800, CRC(e9d4ad3c) SHA1(b32b96bebbf59e23b06958f6b16790e9f9f334e2) ) | |
| 5352 | 2257 | |
| 5353 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5354 | ROM_LOAD( "h01_1.bin", 0x0000, 0x0800, CRC(8313c959) SHA1(b09157c6f824d6e94647728cbb329877fcb4e502) ) | |
| 5355 | ROM_LOAD( "h01_2.bin", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) | |
| 5356 | ROM_LOAD( "k01_1.bin", 0x1000, 0x0800, CRC(c9d4537e) SHA1(65d27066ffec04b755d2f5d3f36f5ec6792e8d6c) ) | |
| 5357 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2258 | static DRIVER_INIT( zigzag ) | |
| 2259 | { | |
| 2260 | /* video extensions */ | |
| 2261 | common_init(machine, NULL, galaxian_draw_background, NULL, NULL); | |
| 5358 | 2262 | |
| 5359 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5360 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5361 | ROM_END | |
| 2263 | /* make ROMs 2 & 3 swappable */ | |
| 2264 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x2000, 0x2fff, 0, 0, SMH_BANK1); | |
| 2265 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x3000, 0x3fff, 0, 0, SMH_BANK2); | |
| 2266 | memory_configure_bank(1, 0, 2, memory_region(REGION_CPU1) + 0x2000, 0x1000); | |
| 2267 | memory_configure_bank(2, 0, 2, memory_region(REGION_CPU1) + 0x2000, 0x1000); | |
| 5362 | 2268 | |
| 5363 | ROM_START( spacbatt ) | |
| 5364 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5365 | ROM_LOAD( "sb1", 0x0000, 0x0800, CRC(d975af10) SHA1(a2e2a36a75db8fd09441308b08b6ae073c68b8cf) ) /* Same as f07_1a.bin above */ | |
| 5366 | ROM_LOAD( "sb2", 0x0800, 0x0800, CRC(b2ed14c3) SHA1(7668df11f64b8e296eedfee53437777dc53a56d5) ) /* Same as h07_2a.bin above */ | |
| 5367 | ROM_LOAD( "sb3", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) /* Same as k07_3a.bin above */ | |
| 5368 | ROM_LOAD( "sb4", 0x1800, 0x0800, CRC(8229835c) SHA1(8cfd8f6cab6f80ca69645a184f7e841fc69f47f6) ) | |
| 5369 | ROM_LOAD( "sb5", 0x2000, 0x0800, CRC(f51ef930) SHA1(213e68571a0c7d5ba33a7170d5fa4aea898ea0b9) ) | |
| 5370 | ROM_LOAD( "sb6", 0x2800, 0x0800, CRC(d915a389) SHA1(0e2ff6eec9453856a1276889946b463cfae58eba) ) /* Same as e08p_6a.bin above */ | |
| 5371 | ROM_LOAD( "sb7", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) /* Same as m08p_7a.bin above */ | |
| 5372 | ROM_LOAD( "sb8", 0x3800, 0x0800, CRC(e59ff1ae) SHA1(fef22885cbd3273882f8c7755dd04c28e843b9ea) ) | |
| 2269 | /* handler for doing the swaps */ | |
| 2270 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x7002, 0x7002, 0, 0x07f8, zigzag_bankswap_w); | |
| 2271 | zigzag_bankswap_w(machine, 0, 0); | |
| 5373 | 2272 | |
| 5374 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5375 | ROM_LOAD( "sb12", 0x0000, 0x0800, CRC(8313c959) SHA1(b09157c6f824d6e94647728cbb329877fcb4e502) ) /* Same as h01_1.bin above */ | |
| 5376 | ROM_LOAD( "sb14", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) /* Same as h01_2.bin above */ | |
| 5377 | ROM_LOAD( "sb11", 0x1000, 0x0800, CRC(c9d4537e) SHA1(65d27066ffec04b755d2f5d3f36f5ec6792e8d6c) ) /* Same as k01_1.bin above */ | |
| 5378 | ROM_LOAD( "sb13", 0x1800, 0x0800, CRC(92454380) SHA1(f0cd67b39c760c2b5ac549b27b0a5f83fbb3a86b) ) | |
| 2273 | /* coin lockout disabled */ | |
| 2274 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6002, 0x6002, 0, 0x7f8, SMH_UNMAP); | |
| 5379 | 2275 | |
| 5380 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5381 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) /* MMI 6331 bp-prom, compatible with 82s123 */ | |
| 5382 | ROM_END | |
| 2276 | /* remove the galaxian sound hardware */ | |
| 2277 | unmap_galaxian_sound(0x6000); | |
| 5383 | 2278 | |
| 5384 | ROM_START( spacbat2 ) | |
| 5385 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5386 | ROM_LOAD( "sb1", 0x0000, 0x0800, CRC(d975af10) SHA1(a2e2a36a75db8fd09441308b08b6ae073c68b8cf) ) /* Same as f07_1a.bin above */ | |
| 5387 | ROM_LOAD( "sb2", 0x0800, 0x0800, CRC(b2ed14c3) SHA1(7668df11f64b8e296eedfee53437777dc53a56d5) ) /* Same as h07_2a.bin above */ | |
| 5388 | ROM_LOAD( "sb.3", 0x1000, 0x0800, CRC(c25ce4c1) SHA1(d7a5d435df7868155523d2fb90f331d4b6d9eaa1) ) | |
| 5389 | ROM_LOAD( "sb4", 0x1800, 0x0800, CRC(8229835c) SHA1(8cfd8f6cab6f80ca69645a184f7e841fc69f47f6) ) | |
| 5390 | ROM_LOAD( "sb5", 0x2000, 0x0800, CRC(f51ef930) SHA1(213e68571a0c7d5ba33a7170d5fa4aea898ea0b9) ) | |
| 5391 | ROM_LOAD( "sb6", 0x2800, 0x0800, CRC(d915a389) SHA1(0e2ff6eec9453856a1276889946b463cfae58eba) ) /* Same as e08p_6a.bin above */ | |
| 5392 | ROM_LOAD( "sb7", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) /* Same as m08p_7a.bin above */ | |
| 5393 | ROM_LOAD( "sb8", 0x3800, 0x0800, CRC(e59ff1ae) SHA1(fef22885cbd3273882f8c7755dd04c28e843b9ea) ) | |
| 2279 | /* install our AY-8910 handler */ | |
| 2280 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x4800, 0x4fff, 0, 0, zigzag_ay8910_w); | |
| 2281 | } | |
| 5394 | 2282 | |
| 5395 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5396 | ROM_LOAD( "sb12", 0x0000, 0x0800, CRC(8313c959) SHA1(b09157c6f824d6e94647728cbb329877fcb4e502) ) /* Same as h01_1.bin above */ | |
| 5397 | ROM_LOAD( "sb14", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) /* Same as h01_2.bin above */ | |
| 5398 | ROM_LOAD( "sb11", 0x1000, 0x0800, CRC(c9d4537e) SHA1(65d27066ffec04b755d2f5d3f36f5ec6792e8d6c) ) /* Same as k01_1.bin above */ | |
| 5399 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 5400 | 2283 | |
| 5401 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5402 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5403 | ROM_END | |
| 2284 | static DRIVER_INIT( jumpbug ) | |
| 2285 | { | |
| 2286 | /* video extensions */ | |
| 2287 | common_init(machine, scramble_draw_bullet, jumpbug_draw_background, jumpbug_extend_tile_info, jumpbug_extend_sprite_info); | |
| 2288 | } | |
| 5404 | 2289 | |
| 5405 | ROM_START( skyraidr ) | |
| 5406 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5407 | ROM_LOAD( "f07_1a.bin", 0x0000, 0x0800, CRC(d975af10) SHA1(a2e2a36a75db8fd09441308b08b6ae073c68b8cf) ) | |
| 5408 | ROM_LOAD( "h07_2a.bin", 0x0800, 0x0800, CRC(b2ed14c3) SHA1(7668df11f64b8e296eedfee53437777dc53a56d5) ) | |
| 5409 | ROM_LOAD( "k07_3a.bin", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) | |
| 5410 | ROM_LOAD( "sr.04", 0x1800, 0x0800, CRC(9f61d1f8) SHA1(389b0a0d1a577b302907b2ea4c119aa18a6120d9) ) | |
| 5411 | ROM_LOAD( "sr.05", 0x2000, 0x0800, CRC(4352af0a) SHA1(1b31846ea7025aaf3a79141dfa5a089b8d12d982) ) | |
| 5412 | ROM_LOAD( "sr.06", 0x2800, 0x0800, CRC(d915a389) SHA1(0e2ff6eec9453856a1276889946b463cfae58eba) ) | |
| 5413 | ROM_LOAD( "m08p_7a.bin", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) | |
| 5414 | ROM_LOAD( "n08p_8a.bin", 0x3800, 0x0800, CRC(797d45c7) SHA1(76fb8b45fcce3622c59c04af32cfa001ef7bf71d) ) | |
| 5415 | 2290 | |
| 5416 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5417 | ROM_LOAD( "sr.10", 0x0000, 0x0800, CRC(af069cba) SHA1(12b7d0a57f43613c80afd51c417628090740aabe) ) | |
| 5418 | ROM_LOAD( "h01_2.bin", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) | |
| 5419 | ROM_LOAD( "sr.09", 0x1000, 0x0800, CRC(ff2c20d5) SHA1(48668dc4f008f44f5c15bdcc331cfe133da99cd4) ) | |
| 5420 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2291 | static DRIVER_INIT( checkman ) | |
| 2292 | { | |
| 2293 | /* video extensions */ | |
| 2294 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, mooncrst_extend_tile_info, mooncrst_extend_sprite_info); | |
| 5421 | 2295 | |
| 5422 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5423 | ROM_LOAD( "uniwars.clr", 0x0000, 0x0020, CRC(25c79518) SHA1(e8f7e8b3d0cf1ed9d723948548f58abf0e2c6d1f) ) | |
| 5424 | ROM_END | |
| 2296 | /* move the interrupt enable from $b000 to $b001 */ | |
| 2297 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb000, 0xb000, 0, 0x7f8, SMH_UNMAP); | |
| 2298 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb001, 0xb001, 0, 0x7f8, irq_enable_w); | |
| 5425 | 2299 | |
| 5426 | ROM_START( batman2 ) | |
| 5427 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5428 | ROM_LOAD( "01.bin", 0x0000, 0x0800, CRC(150fbca5) SHA1(a5dc104169eb3225c6200e7e07102f8a9bee6861) ) | |
| 5429 | ROM_LOAD( "02.bin", 0x0800, 0x0800, CRC(b1624fd0) SHA1(ca4678cf7a8b935be2f68d6e342c1f961bf6f1a2) ) | |
| 5430 | ROM_LOAD( "03.bin", 0x1000, 0x0800, CRC(93774188) SHA1(8bdd3290db43459c56b932b582f555d89df30bd1) ) | |
| 5431 | ROM_LOAD( "04.bin", 0x1800, 0x0800, CRC(8a94ec6c) SHA1(dacadab9a05ddee2de188b368f795d74213e020d) ) | |
| 5432 | ROM_LOAD( "05.bin", 0x2000, 0x0800, CRC(a3669461) SHA1(11ea7aa9b55f5790cc2451d80d0eb84388cf47eb) ) | |
| 5433 | ROM_LOAD( "06.bin", 0x2800, 0x0800, CRC(fa1efbfe) SHA1(f7222dd21e0810d0c8c32919ebb6e0e7bbb4c68e) ) | |
| 5434 | ROM_LOAD( "07.bin", 0x3000, 0x0800, CRC(9b77debd) SHA1(1f5521bc0f701d86e61219ad3b9516aaa71a68da) ) | |
| 5435 | ROM_LOAD( "08.bin", 0x3800, 0x0800, CRC(6466177e) SHA1(fc359eadee34586576c557ff7c1dd2c8d49bdf3f) ) | |
| 2300 | /* attach the sound command handler */ | |
| 2301 | memory_install_write8_handler(0, ADDRESS_SPACE_IO, 0x00, 0x00, 0, 0xffff, checkman_sound_command_w); | |
| 5436 | 2302 | |
| 5437 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5438 | ROM_LOAD( "09.bin", 0x0000, 0x0800, CRC(1a657b1f) SHA1(42149dafdde7d9104f0bddda2223bfc211d0154a) ) | |
| 5439 | ROM_LOAD( "11.bin", 0x0800, 0x0800, CRC(7a2b48e5) SHA1(f559799c685dd2cb9de06a356bee95b7d6ffadfc) ) | |
| 5440 | ROM_LOAD( "10.bin", 0x1000, 0x0800, CRC(9b570016) SHA1(44fd2b1caeecdc5200d63c35636f0a605943d30c) ) | |
| 5441 | ROM_LOAD( "12.bin", 0x1800, 0x0800, CRC(73956244) SHA1(e464b587b5ed636816cc9688593f5b6005cb5216) ) | |
| 2303 | /* decrypt program code */ | |
| 2304 | decode_checkman(); | |
| 2305 | } | |
| 5442 | 2306 | |
| 5443 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5444 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5445 | ROM_END | |
| 5446 | 2307 | |
| 5447 | ROM_START( warofbug ) | |
| 5448 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5449 | ROM_LOAD( "warofbug.u", 0x0000, 0x0800, CRC(b8dfb7e3) SHA1(c7c675b2638869a9cd7dbd554e6131d8c71b567a) ) | |
| 5450 | ROM_LOAD( "warofbug.v", 0x0800, 0x0800, CRC(fd8854e0) SHA1(b39ab41b834f18341968dd780f0a3cd07d70c16c) ) | |
| 5451 | ROM_LOAD( "warofbug.w", 0x1000, 0x0800, CRC(4495aa14) SHA1(f1be281db1d831770efa9cc41ea87eb348e70108) ) | |
| 5452 | ROM_LOAD( "warofbug.y", 0x1800, 0x0800, CRC(c14a541f) SHA1(d32e89fd18d9e1db2e4a545186eac728c0b02255) ) | |
| 5453 | ROM_LOAD( "warofbug.z", 0x2000, 0x0800, CRC(c167fe55) SHA1(d85c4d1bd7aa5e14eb2f11dfa14979e5dbc084a8) ) | |
| 2308 | static DRIVER_INIT( checkmaj ) | |
| 2309 | { | |
| 2310 | /* video extensions */ | |
| 2311 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, NULL, NULL); | |
| 5454 | 2312 | |
| 5455 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5456 | ROM_LOAD( "warofbug.1k", 0x0000, 0x0800, CRC(8100fa85) SHA1(06641c431cace36dec98b87555f62e72f3e53a31) ) | |
| 5457 | ROM_LOAD( "warofbug.1j", 0x0800, 0x0800, CRC(d1220ae9) SHA1(e892bc8b0b71d8b07503e474e9c30e6cab460682) ) | |
| 2313 | /* attach the sound command handler */ | |
| 2314 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x7800, 0x7800, 0, 0x7ff, checkman_sound_command_w); | |
| 5458 | 2315 | |
| 5459 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5460 | ROM_LOAD( "warofbug.clr", 0x0000, 0x0020, CRC(8688e64b) SHA1(ed13414257f580b98b50c9892a14159c55e7838d) ) | |
| 5461 | ROM_END | |
| 2316 | /* for the title screen */ | |
| 2317 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x3800, 0x3800, 0, 0, checkmaj_protection_r); | |
| 2318 | } | |
| 5462 | 2319 | |
| 5463 | ROM_START( redufo ) | |
| 5464 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5465 | ROM_LOAD( "ru1a", 0x0000, 0x0800, CRC(5a8e4f37) SHA1(c0957ede91e2dc3f80e4912b877843aed5d15779) ) | |
| 5466 | ROM_LOAD( "ru2a", 0x0800, 0x0800, CRC(c624f52d) SHA1(119a660513ad33e35c9bdaecd588219bf8026d82) ) | |
| 5467 | ROM_LOAD( "ru3a", 0x1000, 0x0800, CRC(e1030d1c) SHA1(80640fbbfa7f84c016366b1084e7f8a7acdcd440) ) | |
| 5468 | ROM_LOAD( "ru4a", 0x1800, 0x0800, CRC(7692069e) SHA1(5130d61c857c3b85eadabcf10f3a6771c72f0f56) ) | |
| 5469 | ROM_LOAD( "ru5a", 0x2000, 0x0800, CRC(cb648ff3) SHA1(e0042251ca7f4a31b5bd9f8cca35278a1e152899) ) | |
| 5470 | ROM_LOAD( "ru6a", 0x2800, 0x0800, CRC(e1a9f58e) SHA1(4fc7489fca057156a7cf5efcb01058ce4f0db69e) ) | |
| 5471 | 2320 | |
| 5472 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5473 | ROM_LOAD( "ruhja", 0x0000, 0x0800, CRC(8a422b0d) SHA1(b886157518f73e7115a225ba230e456179f6e18f) ) | |
| 5474 | ROM_LOAD( "rukla", 0x0800, 0x0800, CRC(1eb84cb1) SHA1(08f360802a90039c0499a1417d06b6eb5f89d67e) ) | |
| 2321 | static DRIVER_INIT( dingo ) | |
| 2322 | { | |
| 2323 | /* video extensions */ | |
| 2324 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, NULL, NULL); | |
| 5475 | 2325 | |
| 5476 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5477 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5478 | ROM_END | |
| 2326 | /* attach the sound command handler */ | |
| 2327 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x7800, 0x7800, 0, 0x7ff, checkman_sound_command_w); | |
| 5479 | 2328 | |
| 5480 | ROM_START( exodus ) | |
| 5481 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5482 | ROM_LOAD( "exodus1.bin", 0x0000, 0x0800, CRC(5dfe65e1) SHA1(5f1ce289b3c98a89d61d4dea952b4b8888d92ed7) ) | |
| 5483 | ROM_LOAD( "exodus2.bin", 0x0800, 0x0800, CRC(6559222f) SHA1(520497f6fb2b0c76be8419702e8af894283ebf0b) ) | |
| 5484 | ROM_LOAD( "exodus3.bin", 0x1000, 0x0800, CRC(bf7030e8) SHA1(59b0624dd91527a916ee6a27d61def82c3c14f49) ) | |
| 5485 | ROM_LOAD( "exodus4.bin", 0x1800, 0x0800, CRC(3607909e) SHA1(93d074fe4b258d496a0998acb3fc47f0a762227a) ) | |
| 5486 | ROM_LOAD( "exodus9.bin", 0x2000, 0x0800, CRC(994a90c4) SHA1(a07e3ce8f69042c45ebe00ab1d40dbb85602a7a2) ) | |
| 5487 | ROM_LOAD( "exodus10.bin", 0x2800, 0x0800, CRC(fbd11187) SHA1(a3bd49c4a79e76b08e6b343b94689159dc239458) ) | |
| 5488 | ROM_LOAD( "exodus11.bin", 0x3000, 0x0800, CRC(fd07d811) SHA1(6b968a7ce452f76a8d26fe694aa4ea6b16e8b6fa) ) | |
| 2329 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x3000, 0x3000, 0, 0, dingo_3000_r); | |
| 2330 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x3035, 0x3035, 0, 0, dingo_3035_r); | |
| 2331 | } | |
| 5489 | 2332 | |
| 5490 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5491 | ROM_LOAD( "exodus5.bin", 0x0000, 0x0800, CRC(b34c7cb4) SHA1(146ed4a02d7540378f4a27a6643055216ad403f7) ) | |
| 5492 | ROM_LOAD( "exodus6.bin", 0x0800, 0x0800, CRC(50a2d447) SHA1(1f97d1096ad2a3a43a480cb1f040f4534fada3c3) ) | |
| 5493 | 2333 | |
| 5494 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5495 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5496 | ROM_END | |
| 2334 | static DRIVER_INIT( dingoe ) | |
| 2335 | { | |
| 2336 | /* video extensions */ | |
| 2337 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, mooncrst_extend_tile_info, mooncrst_extend_sprite_info); | |
| 5497 | 2338 | |
| 5498 | ROM_START( streakng ) | |
| 5499 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5500 | ROM_LOAD( "sk1", 0x0000, 0x1000, CRC(c8866ccb) SHA1(1fc8bc643ecbfa86a50448d79b299f5a3dd586c5) ) | |
| 5501 | ROM_LOAD( "sk2", 0x1000, 0x1000, CRC(7caea29b) SHA1(5b3946ee914b1637db9046abf92d66ceaeb4fc5f) ) | |
| 5502 | ROM_LOAD( "sk3", 0x2000, 0x1000, CRC(7b4bfa76) SHA1(9223bec0c1cc39bc84670869b2a4fab0d0167c6e) ) | |
| 5503 | ROM_LOAD( "sk4", 0x3000, 0x1000, CRC(056fc921) SHA1(de8525571e5a82ddf74dd57b1a6c5bc9f2d2c0fe) ) | |
| 2339 | /* move the interrupt enable from $b000 to $b001 */ | |
| 2340 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb000, 0xb000, 0, 0x7f8, SMH_UNMAP); | |
| 2341 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb001, 0xb001, 0, 0x7f8, irq_enable_w); | |
| 5504 | 2342 | |
| 5505 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5506 | ROM_LOAD( "sk5", 0x0000, 0x1000, CRC(d27f1e0c) SHA1(c3b4ae55a93516b034a16c9f943b360b24c933d6) ) | |
| 5507 | ROM_LOAD( "sk6", 0x1000, 0x1000, CRC(a7089588) SHA1(e76242b043b1d8f060f669da3ddeee3d10122cdb) ) | |
| 2343 | /* attach the sound command handler */ | |
| 2344 | memory_install_write8_handler(0, ADDRESS_SPACE_IO, 0x00, 0x00, 0, 0xffff, checkman_sound_command_w); | |
| 5508 | 2345 | |
| 5509 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5510 | ROM_LOAD( "sk.bpr", 0x0000, 0x0020, CRC(bce79607) SHA1(49d60fde149240bcd025f721b0fbbbdbc549a42f) ) | |
| 5511 | ROM_END | |
| 2346 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x3001, 0x3001, 0, 0, dingoe_3001_r); /* Protection check */ | |
| 5512 | 2347 | |
| 5513 | ROM_START( pacmanbl ) | |
| 5514 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5515 | ROM_LOAD( "blpac1b", 0x0000, 0x0800, CRC(6718df42) SHA1(ee15c3f583d381fba4878f824f83d04479a0cee5) ) | |
| 5516 | ROM_LOAD( "blpac2b", 0x0800, 0x0800, CRC(33be3648) SHA1(50175889cf37fe8a81c931e009b55d10f8d0444a) ) | |
| 5517 | ROM_LOAD( "blpac3b", 0x1000, 0x0800, CRC(f98c0ceb) SHA1(4faf8b2fb3f109d1196a9ea256328485074a31b9) ) | |
| 5518 | ROM_LOAD( "blpac4b", 0x1800, 0x0800, CRC(a9cd0082) SHA1(f44ff1ad15d5ee3096f8f44f9c605f32ae2737d9) ) | |
| 5519 | ROM_LOAD( "blpac5b", 0x2000, 0x0800, CRC(6d475afc) SHA1(4fe6bde352c7dd9572fefaae4b59640b4f4eb8ba) ) | |
| 5520 | ROM_LOAD( "blpac6b", 0x2800, 0x0800, CRC(cbe863d3) SHA1(97a2ffa6ab33e6061c664dcd1ee57c86a456782f) ) | |
| 5521 | ROM_LOAD( "blpac7b", 0x3000, 0x0800, CRC(7daef758) SHA1(4dc8ec0ea8fc04d5bffc1c1335407729309c17f0) ) | |
| 2348 | /* decrypt program code */ | |
| 2349 | decode_dingoe(); | |
| 2350 | } | |
| 5522 | 2351 | |
| 5523 | /* note from f205v: on the PCB I have, 10b and 11b have been joined into one single 2732 EPROM labeled "pmc31" | |
| 5524 | The same goes for 9b and 12b, joined into one single 2732 EPROM labeled "pmc42" */ | |
| 5525 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5526 | ROM_LOAD( "blpac12b", 0x0000, 0x0800, CRC(b2ed320b) SHA1(680a6fdcb65cc2d88d10bc85e0b2628f43375c5c) ) | |
| 5527 | ROM_LOAD( "blpac11b", 0x0800, 0x0800, CRC(ab88b2c4) SHA1(d0c829ea8021eae81a2b82d36c35ad8258b115e0) ) | |
| 5528 | ROM_LOAD( "blpac10b", 0x1000, 0x0800, CRC(44a45b72) SHA1(8abd0684a01d6c23ef5cf5f0765458f982316acf) ) | |
| 5529 | ROM_LOAD( "blpac9b", 0x1800, 0x0800, CRC(fa84659f) SHA1(20c212723f9062f052539190dfe3fc41577543eb) ) | |
| 5530 | 2352 | |
| 5531 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5532 | ROM_LOAD( "blpaccp", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) /* same as pisces */ | |
| 5533 | ROM_END | |
| 2353 | static DRIVER_INIT( skybase ) | |
| 2354 | { | |
| 2355 | /* video extensions */ | |
| 2356 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, pisces_extend_tile_info, pisces_extend_sprite_info); | |
| 5534 | 2357 | |
| 5535 | ROM_START( devilfsg ) | |
| 5536 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5537 | ROM_LOAD( "dfish1.7f", 0x2000, 0x0800, CRC(2ab19698) SHA1(8450981d3cf3fa8abf2fb5487aa98b03a4cf03a1) ) | |
| 5538 | ROM_CONTINUE( 0x0000, 0x0800 ) | |
| 5539 | ROM_LOAD( "dfish2.7h", 0x2800, 0x0800, CRC(4e77f097) SHA1(aeaa5ff210ccbbe77114edf5dee992d2720636ae) ) | |
| 5540 | ROM_CONTINUE( 0x0800, 0x0800 ) | |
| 5541 | ROM_LOAD( "dfish3.7k", 0x3000, 0x0800, CRC(3f16a4c6) SHA1(cc30b27070a12c250cdc2f7289bae7c7a4c05c2c) ) | |
| 5542 | ROM_CONTINUE( 0x1000, 0x0800 ) | |
| 5543 | ROM_LOAD( "dfish4.7m", 0x3800, 0x0800, CRC(11fc7e59) SHA1(2c0182a75bfca085e67483b421f40b3bc9b8ef24) ) | |
| 5544 | ROM_CONTINUE( 0x1800, 0x0800 ) | |
| 2358 | /* coin lockout replaced by graphics bank */ | |
| 2359 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa002, 0xa002, 0, 0x7f8, galaxian_gfxbank_w); | |
| 5545 | 2360 | |
| 5546 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5547 | ROM_LOAD( "dfish5.1h", 0x1000, 0x0800, CRC(ace6e31f) SHA1(23df890fdf8ef275af79e10c8e43ff3a617b28ac) ) | |
| 5548 | ROM_CONTINUE( 0x0000, 0x0800 ) | |
| 5549 | ROM_LOAD( "dfish6.1k", 0x1800, 0x0800, CRC(d7a6c4c4) SHA1(ec5f9182657edb11884ab93f868f1bb3569461ae) ) | |
| 5550 | ROM_CONTINUE( 0x0800, 0x0800 ) | |
| 2361 | /* needs a full 2k of RAM */ | |
| 2362 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x87ff, 0, 0, SMH_BANK1, SMH_BANK1); | |
| 2363 | memory_set_bankptr(1, auto_malloc(0x800)); | |
| 5551 | 2364 | |
| 5552 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5553 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 5554 | ROM_END | |
| 2365 | /* extend ROM */ | |
| 2366 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x5fff, 0, 0, SMH_BANK2); | |
| 2367 | memory_set_bankptr(2, memory_region(REGION_CPU1)); | |
| 2368 | } | |
| 5555 | 2369 | |
| 5556 | ROM_START( zigzag ) | |
| 5557 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5558 | ROM_LOAD( "zz_d1.bin", 0x0000, 0x1000, CRC(8cc08d81) SHA1(be671192ef06dc3ed6963dc39e6bdce3275300e9) ) | |
| 5559 | ROM_LOAD( "zz_d2.bin", 0x1000, 0x1000, CRC(326d8d45) SHA1(563b9fc64c34e36cfadffb107ce30d3a04d62d9c) ) | |
| 5560 | ROM_LOAD( "zz_d4.bin", 0x2000, 0x1000, CRC(a94ed92a) SHA1(d56f32fc2b3f0f7affe658b7726682c60d09bc16) ) | |
| 5561 | ROM_LOAD( "zz_d3.bin", 0x3000, 0x1000, CRC(ce5e7a00) SHA1(93c47d22698a016cb0f0b654ade9ccab0cd1c88b) ) | |
| 5562 | 2370 | |
| 5563 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5564 | ROM_LOAD( "zz_6_h1.bin", 0x0000, 0x0800, CRC(780c162a) SHA1(b0cac68258281917bcada52ce26e0ce38721d633) ) | |
| 5565 | ROM_CONTINUE( 0x1000, 0x0800 ) | |
| 5566 | ROM_LOAD( "zz_5.bin", 0x0800, 0x0800, CRC(f3cdfec5) SHA1(798d631c72d8e6b2e372b4b3ab0c10d8365a1359) ) | |
| 5567 | ROM_CONTINUE( 0x1800, 0x0800 ) | |
| 2371 | static DRIVER_INIT( mshuttle ) | |
| 2372 | { | |
| 2373 | /* video extensions */ | |
| 2374 | common_init(machine, mshuttle_draw_bullet, galaxian_draw_background, mshuttle_extend_tile_info, mshuttle_extend_sprite_info); | |
| 5568 | 2375 | |
| 5569 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5570 | ROM_LOAD( "zzbp_e9.bin", 0x0000, 0x0020, CRC(aa486dd0) SHA1(b845b52715bf6361ceee8c1ac541733963bd47af) ) | |
| 5571 | ROM_END | |
| 2376 | /* IRQ line is INT, not NMI */ | |
| 2377 | irq_line = 0; | |
| 5572 | 2378 | |
| 5573 | ROM_START( zigzag2 ) | |
| 5574 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5575 | ROM_LOAD( "z1", 0x0000, 0x1000, CRC(4c28349a) SHA1(646134ce506deaee88cc2ec5a973f8fedaddb66b) ) | |
| 5576 | ROM_LOAD( "zz_d2.bin", 0x1000, 0x1000, CRC(326d8d45) SHA1(563b9fc64c34e36cfadffb107ce30d3a04d62d9c) ) | |
| 5577 | ROM_LOAD( "zz_d4.bin", 0x2000, 0x1000, CRC(a94ed92a) SHA1(d56f32fc2b3f0f7affe658b7726682c60d09bc16) ) | |
| 5578 | ROM_LOAD( "zz_d3.bin", 0x3000, 0x1000, CRC(ce5e7a00) SHA1(93c47d22698a016cb0f0b654ade9ccab0cd1c88b) ) | |
| 2379 | /* decrypt the code */ | |
| 2380 | mshuttle_decode(); | |
| 2381 | } | |
| 5579 | 2382 | |
| 5580 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5581 | ROM_LOAD( "zz_6_h1.bin", 0x0000, 0x0800, CRC(780c162a) SHA1(b0cac68258281917bcada52ce26e0ce38721d633) ) | |
| 5582 | ROM_CONTINUE( 0x1000, 0x0800 ) | |
| 5583 | ROM_LOAD( "zz_5.bin", 0x0800, 0x0800, CRC(f3cdfec5) SHA1(798d631c72d8e6b2e372b4b3ab0c10d8365a1359) ) | |
| 5584 | ROM_CONTINUE( 0x1800, 0x0800 ) | |
| 5585 | 2383 | |
| 5586 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5587 | ROM_LOAD( "zzbp_e9.bin", 0x0000, 0x0020, CRC(aa486dd0) SHA1(b845b52715bf6361ceee8c1ac541733963bd47af) ) | |
| 5588 | ROM_END | |
| 2384 | static DRIVER_INIT( mshuttlj ) | |
| 2385 | { | |
| 2386 | /* video extensions */ | |
| 2387 | common_init(machine, mshuttle_draw_bullet, galaxian_draw_background, mshuttle_extend_tile_info, mshuttle_extend_sprite_info); | |
| 5589 | 2388 | |
| 5590 | ROM_START( mooncrgx ) | |
| 5591 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5592 | ROM_LOAD( "1", 0x0000, 0x0800, CRC(84cf420b) SHA1(82c979467c51df699337d5878340d05bee606480) ) | |
| 5593 | ROM_LOAD( "2", 0x0800, 0x0800, CRC(4c2a61a1) SHA1(a3759bd2c062f2843cd5b812529c798d5d12086c) ) | |
| 5594 | ROM_LOAD( "3", 0x1000, 0x0800, CRC(1962523a) SHA1(56ea003c3ff37c2bc33383207fccde0ba0ed781a) ) | |
| 5595 | ROM_LOAD( "4", 0x1800, 0x0800, CRC(75dca896) SHA1(017d04501d3d1305491ba843d92ebd74d47d2f9c) ) | |
| 5596 | ROM_LOAD( "5", 0x2000, 0x0800, CRC(32483039) SHA1(23baf136d5b7fc02f999dcb31b8daf68b6ffafd1) ) | |
| 5597 | ROM_LOAD( "6", 0x2800, 0x0800, CRC(43f2ab89) SHA1(f7f0802a12fd89d61f6f00044e077f34a9d3955f) ) | |
| 5598 | ROM_LOAD( "7", 0x3000, 0x0800, CRC(1e9c168c) SHA1(891dc159dfc343322c3241980a0ef76dee510ca9) ) | |
| 5599 | ROM_LOAD( "8", 0x3800, 0x0800, CRC(5e09da94) SHA1(677890912db12df6fa2cb515c198f8ac3f7187af) ) | |
| 2389 | /* IRQ line is INT, not NMI */ | |
| 2390 | irq_line = 0; | |
| 5600 | 2391 | |
| 5601 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5602 | ROM_LOAD( "1h_1_10.bin", 0x0000, 0x0800, CRC(528da705) SHA1(d726ee18b79774c982f88afb2a508eb5d5783193) ) | |
| 5603 | ROM_LOAD( "12.chr", 0x0800, 0x0800, CRC(5a4b17ea) SHA1(8a879dc34fdecc8a121c4a87abb981212fb05945) ) | |
| 5604 | ROM_LOAD( "9.chr", 0x1000, 0x0800, CRC(70df525c) SHA1(f771293494a2234bf80f206ecf1e88773322e503) ) | |
| 5605 | ROM_LOAD( "11.chr", 0x1800, 0x0800, CRC(e0edccbd) SHA1(0839a4c9b6e863d12253ae8e1732e80e08702228) ) | |
| 2392 | /* decrypt the code */ | |
| 2393 | cclimbrj_decode(); | |
| 2394 | } | |
| 5606 | 2395 | |
| 5607 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5608 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5609 | ROM_END | |
| 5610 | 2396 | |
| 5611 | ROM_START( omega ) | |
| 5612 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5613 | ROM_LOAD( "omega1.bin", 0x0000, 0x0800, CRC(fc2a096b) SHA1(071ff30060a1aa0a47ae6e88140b80caed00fc4e) ) | |
| 5614 | ROM_LOAD( "omega2.bin", 0x0800, 0x0800, CRC(ad100357) SHA1(7c5e82c25e65b4a390cf5607f15bf4df407f7f11) ) | |
| 5615 | ROM_LOAD( "omega3.bin", 0x1000, 0x0800, CRC(d7e3be79) SHA1(ffa228043c6c717bee8bbec16432dcfe2e348aef) ) | |
| 5616 | ROM_LOAD( "omega4.bin", 0x1800, 0x0800, CRC(42068171) SHA1(940ca30a5772940b8a437498d22c6121482b38e6) ) | |
| 5617 | ROM_LOAD( "omega5.bin", 0x2000, 0x0800, CRC(d8a93383) SHA1(5f60f127360b14206d4df638e528bf961049e37d) ) | |
| 5618 | ROM_LOAD( "omega6.bin", 0x2800, 0x0800, CRC(32a42f44) SHA1(94f458997ec279dce218a17b665fa8c46067e646) ) | |
| 2397 | static DRIVER_INIT( kingball ) | |
| 2398 | { | |
| 2399 | /* video extensions */ | |
| 2400 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, NULL, NULL); | |
| 5619 | 2401 | |
| 5620 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5621 | ROM_LOAD( "omega1h.bin", 0x0000, 0x0800, CRC(527fd384) SHA1(92a384899d5acd2c689f637da16a0e2d11a9d9c6) ) | |
| 5622 | ROM_LOAD( "omega1k.bin", 0x0800, 0x0800, CRC(36de42c6) SHA1(6fd93d439e3b8eab62049f925d9e8f8deeda2ae3) ) | |
| 2402 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb000, 0xb000, 0, 0x7f8, kingball_sound1_w); | |
| 2403 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb001, 0xb001, 0, 0x7f8, irq_enable_w); | |
| 2404 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb002, 0xb002, 0, 0x7f8, kingball_sound2_w); | |
| 2405 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb003, 0xb003, 0, 0x7f8, kingball_speech_dip_w); | |
| 5623 | 2406 | |
| 5624 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5625 | ROM_LOAD( "6331-1j.86", 0x0000, 0x0020, NO_DUMP ) /* missing */ | |
| 5626 | ROM_END | |
| 2407 | state_save_register_global(kingball_speech_dip); | |
| 2408 | state_save_register_global(kingball_sound); | |
| 2409 | } | |
| 5627 | 2410 | |
| 5628 | ROM_START( scramblb ) | |
| 5629 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5630 | ROM_LOAD( "scramble.1k", 0x0000, 0x0800, CRC(9e025c4a) SHA1(a8cc9391bdd01a5a2fe7f0c4e889b4e2495df891) ) | |
| 5631 | ROM_LOAD( "scramble.2k", 0x0800, 0x0800, CRC(306f783e) SHA1(92d19f90f1123cd211706294d668ab23c8b0760b) ) | |
| 5632 | ROM_LOAD( "scramble.3k", 0x1000, 0x0800, CRC(0500b701) SHA1(54c84ccad2aae34f42fdddcfcd92cd9da2cd7119) ) | |
| 5633 | ROM_LOAD( "scramble.4k", 0x1800, 0x0800, CRC(dd380a22) SHA1(125e713a58cc5f2c1e38f67dad29f8c985ce5a8b) ) | |
| 5634 | ROM_LOAD( "scramble.5k", 0x2000, 0x0800, CRC(df0b9648) SHA1(4ae9150c9441897d5ab7c5a0b3f10e1e8c8e2f6c) ) | |
| 5635 | ROM_LOAD( "scramble.1j", 0x2800, 0x0800, CRC(b8c07b3c) SHA1(33eaedef4b7f49eeef072425541c17206d0a00ec) ) | |
| 5636 | ROM_LOAD( "scramble.2j", 0x3000, 0x0800, CRC(88ac07a0) SHA1(c57061db5984b472039356bf84a050b5b66e3813) ) | |
| 5637 | ROM_LOAD( "scramble.3j", 0x3800, 0x0800, CRC(c67d57ca) SHA1(ba8b14289aef47d48d9750cf2ef3c368e74a60e8) ) | |
| 5638 | 2411 | |
| 5639 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5640 | ROM_LOAD( "5f.k", 0x0000, 0x0800, CRC(4708845b) SHA1(a8b1ad19a95a9d35050a2ab7194cc96fc5afcdc9) ) | |
| 5641 | ROM_LOAD( "5h.k", 0x0800, 0x0800, CRC(11fd2887) SHA1(69844e48bb4d372cac7ae83c953df573c7ecbb7f) ) | |
| 2412 | static DRIVER_INIT( scorpnmc ) | |
| 2413 | { | |
| 2414 | /* video extensions */ | |
| 2415 | common_init(machine, galaxian_draw_bullet, galaxian_draw_background, batman2_extend_tile_info, upper_extend_sprite_info); | |
| 5642 | 2416 | |
| 5643 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5644 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 5645 | ROM_END | |
| 2417 | /* move the interrupt enable from $b000 to $b001 */ | |
| 2418 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb000, 0xb000, 0, 0x7f8, SMH_UNMAP); | |
| 2419 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb001, 0xb001, 0, 0x7f8, irq_enable_w); | |
| 5646 | 2420 | |
| 2421 | /* extra ROM */ | |
| 2422 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x5000, 0x67ff, 0, 0, SMH_BANK1); | |
| 2423 | memory_set_bankptr(1, memory_region(REGION_CPU1) + 0x5000); | |
| 5647 | 2424 | |
| 5648 | ROM_START( scramb2 ) | |
| 5649 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5650 | ROM_LOAD( "r1.7f1", 0x0000, 0x0800, CRC(4a43148c) SHA1(ea27fd3acf661101296a58a7a50fb8e4d5292760) ) | |
| 5651 | ROM_LOAD( "r1.7f2", 0x0800, 0x0800, CRC(215a3b86) SHA1(bfddfea9f74064123629d89556240c7a59f7bea2) ) | |
| 5652 | ROM_LOAD( "r2.7h1", 0x1000, 0x0800, CRC(28779444) SHA1(0abd3a89c8cdd5af2ac06afd38bcd2dcd6010bee) ) | |
| 5653 | ROM_LOAD( "r2.7h2", 0x1800, 0x0800, CRC(5b4b300b) SHA1(6d69dbdab66bc8f4a16c3d9d3b4581799e4bbfab) ) | |
| 5654 | ROM_LOAD( "r3.7k1", 0x2000, 0x0800, CRC(b478aa53) SHA1(68cf134482092534ef0a3ceee3aa842f86660065) ) | |
| 5655 | ROM_LOAD( "r3.7k2", 0x2800, 0x0800, CRC(c33f072e) SHA1(28d61e35f3d5c971e070d7e0cc20b831fe8d52c5) ) | |
| 5656 | ROM_LOAD( "r4.7l1", 0x3000, 0x0800, CRC(88ac07a0) SHA1(c57061db5984b472039356bf84a050b5b66e3813) ) | |
| 5657 | ROM_LOAD( "r4.7l2", 0x3800, 0x0800, CRC(321fd003) SHA1(61f33c2709913da4cb20f311501df707d755917e) ) | |
| 5658 | /* Also exists in the following Rom config */ | |
| 5659 | // ROM_LOAD( "r1.7f", 0x0000, 0x1000, CRC(75208a74) SHA1(e77afe4b906d08d6763f31dd70d7cb772be97102) ) | |
| 5660 | // ROM_LOAD( "r2.7h", 0x1000, 0x1000, CRC(f2179cf5) SHA1(5c38aa9bd1d5ebdccf16d2e50acc56f0b3f042d0) ) | |
| 5661 | // ROM_LOAD( "r3.7k", 0x2000, 0x1000, CRC(941c804e) SHA1(f1eedf719a234cf98071e6a46120765e231f0730) ) | |
| 5662 | // ROM_LOAD( "r4.7l", 0x3000, 0x1000, CRC(f1506edc) SHA1(66689bb3d7570848e4d020a5f44d6de03b4bff99) ) | |
| 2425 | /* install RAM at $4000-$4800 */ | |
| 2426 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x4000, 0x47ff, 0, 0, SMH_BANK2, SMH_BANK2); | |
| 2427 | memory_set_bankptr(2, auto_malloc(0x800)); | |
| 5663 | 2428 | |
| 5664 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5665 | ROM_LOAD( "r6.1j", 0x0000, 0x0800, CRC(4708845b) SHA1(a8b1ad19a95a9d35050a2ab7194cc96fc5afcdc9) ) | |
| 5666 | ROM_LOAD( "r5.1l", 0x0800, 0x0800, CRC(11fd2887) SHA1(69844e48bb4d372cac7ae83c953df573c7ecbb7f) ) | |
| 2429 | /* doesn't appear to use original RAM */ | |
| 2430 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x87ff, 0, 0, SMH_UNMAP, SMH_UNMAP); | |
| 2431 | } | |
| 5667 | 2432 | |
| 5668 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5669 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 5670 | ROM_END | |
| 5671 | 2433 | |
| 5672 | 2434 | |
| 5673 | ROM_START( jumpbug ) | |
| 5674 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5675 | ROM_LOAD( "jb1", 0x0000, 0x1000, CRC(415aa1b7) SHA1(4f9edd7e9720acf085dd8910849c2f2fac5cb547) ) | |
| 5676 | ROM_LOAD( "jb2", 0x1000, 0x1000, CRC(b1c27510) SHA1(66fbe0b94b6c101cb50d7a3ff78160110415dff9) ) | |
| 5677 | ROM_LOAD( "jb3", 0x2000, 0x1000, CRC(97c24be2) SHA1(1beb9fbc3a52610b416af8b5fee156d8b6b3125a) ) | |
| 5678 | ROM_LOAD( "jb4", 0x3000, 0x1000, CRC(66751d12) SHA1(26c68cfb59596ae164ee9ae4a24ddf8dc7a923a7) ) | |
| 5679 | ROM_LOAD( "jb5", 0x8000, 0x1000, CRC(e2d66faf) SHA1(3dec0796642856359de57afb896cc668c0245b40) ) | |
| 5680 | ROM_LOAD( "jb6", 0x9000, 0x1000, CRC(49e0bdfd) SHA1(8d89d9cd7134b153264fdc49d2c68e8c14004b0d) ) | |
| 5681 | ROM_LOAD( "jb7", 0xa000, 0x0800, CRC(83d71302) SHA1(9292088d26ba29fbf8817df03461b8bb6bf27639) ) | |
| 2435 | /************************************* | |
| 2436 | * | |
| 2437 | * Konami games | |
| 2438 | * | |
| 2439 | *************************************/ | |
| 5682 | 2440 | |
| 5683 | ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5684 | ROM_LOAD( "jbl", 0x0000, 0x0800, CRC(9a091b0a) SHA1(19b88f802ee80ff8901ef99e3688f2869f1a69c5) ) | |
| 5685 | ROM_LOAD( "jbm", 0x0800, 0x0800, CRC(8a0fc082) SHA1(58b72a3161950a2fb71cdab3f30bb3abb19c7978) ) | |
| 5686 | ROM_LOAD( "jbn", 0x1000, 0x0800, CRC(155186e0) SHA1(717ddaecc52a4ef03a01fcddb520acdbfb0d722a) ) | |
| 5687 | ROM_LOAD( "jbi", 0x1800, 0x0800, CRC(7749b111) SHA1(55071ce04708bd52177644298f76ae79d23f6ac9) ) | |
| 5688 | ROM_LOAD( "jbj", 0x2000, 0x0800, CRC(06e8d7df) SHA1(d04f1503d9fde5aae92652cb9d2eb16bd6a0fe9c) ) | |
| 5689 | ROM_LOAD( "jbk", 0x2800, 0x0800, CRC(b8dbddf3) SHA1(043de444890a93459789dc99c43ef88ff66b79e4) ) | |
| 2441 | static DRIVER_INIT( theend ) | |
| 2442 | { | |
| 2443 | /* video extensions */ | |
| 2444 | konami_common_init(machine, theend_draw_bullet, galaxian_draw_background, NULL, NULL); | |
| 5690 | 2445 | |
| 5691 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5692 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5693 | ROM_END | |
| 2446 | /* coin counter on the upper bit of port C */ | |
| 2447 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6802, 0x6802, 0, 0x7f8, SMH_UNMAP); | |
| 2448 | ppi8255_set_portCwrite(0, theend_coin_counter_w); | |
| 2449 | } | |
| 5694 | 2450 | |
| 5695 | ROM_START( jumpbugb ) | |
| 5696 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5697 | ROM_LOAD( "jb1", 0x0000, 0x1000, CRC(415aa1b7) SHA1(4f9edd7e9720acf085dd8910849c2f2fac5cb547) ) | |
| 5698 | ROM_LOAD( "jb2", 0x1000, 0x1000, CRC(b1c27510) SHA1(66fbe0b94b6c101cb50d7a3ff78160110415dff9) ) | |
| 5699 | ROM_LOAD( "jb3b", 0x2000, 0x1000, CRC(cb8b8a0f) SHA1(9e8591471dda2cb964ba2a866d4a5a3ef65d8707) ) | |
| 5700 | ROM_LOAD( "jb4", 0x3000, 0x1000, CRC(66751d12) SHA1(26c68cfb59596ae164ee9ae4a24ddf8dc7a923a7) ) | |
| 5701 | ROM_LOAD( "jb5b", 0x8000, 0x1000, CRC(7553b5e2) SHA1(6439585e713581dd36cea6324414f803d683216f) ) | |
| 5702 | ROM_LOAD( "jb6b", 0x9000, 0x1000, CRC(47be9843) SHA1(495d6fc732267bfd19a953b0b70df3f94b3c1e38) ) | |
| 5703 | ROM_LOAD( "jb7b", 0xa000, 0x0800, CRC(460aed61) SHA1(449ab1bb502f98da74c0955ce1364f8708fd3f81) ) | |
| 5704 | 2451 | |
| 5705 | ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5706 | ROM_LOAD( "jbl", 0x0000, 0x0800, CRC(9a091b0a) SHA1(19b88f802ee80ff8901ef99e3688f2869f1a69c5) ) | |
| 5707 | ROM_LOAD( "jbm", 0x0800, 0x0800, CRC(8a0fc082) SHA1(58b72a3161950a2fb71cdab3f30bb3abb19c7978) ) | |
| 5708 | ROM_LOAD( "jbn", 0x1000, 0x0800, CRC(155186e0) SHA1(717ddaecc52a4ef03a01fcddb520acdbfb0d722a) ) | |
| 5709 | ROM_LOAD( "jbi", 0x1800, 0x0800, CRC(7749b111) SHA1(55071ce04708bd52177644298f76ae79d23f6ac9) ) | |
| 5710 | ROM_LOAD( "jbj", 0x2000, 0x0800, CRC(06e8d7df) SHA1(d04f1503d9fde5aae92652cb9d2eb16bd6a0fe9c) ) | |
| 5711 | ROM_LOAD( "jbk", 0x2800, 0x0800, CRC(b8dbddf3) SHA1(043de444890a93459789dc99c43ef88ff66b79e4) ) | |
| 2452 | static DRIVER_INIT( scramble ) | |
| 2453 | { | |
| 2454 | /* video extensions */ | |
| 2455 | konami_common_init(machine, scramble_draw_bullet, scramble_draw_background, NULL, NULL); | |
| 5712 | 2456 | |
| 5713 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5714 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5715 | ROM_END | |
| 2457 | /* configure protection */ | |
| 2458 | ppi8255_set_portCread (1, scramble_protection_r); | |
| 2459 | ppi8255_set_portCwrite(1, scramble_protection_w); | |
| 2460 | } | |
| 5716 | 2461 | |
| 5717 | ROM_START( levers ) | |
| 5718 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5719 | ROM_LOAD( "g96059.a8", 0x0000, 0x1000, CRC(9550627a) SHA1(3da9a614622d5b880852fe2bb2e8e4a60afb2d34) ) | |
| 5720 | ROM_LOAD( "g96060.d8", 0x2000, 0x1000, CRC(5ac64646) SHA1(459755932a033095eff72d78d1e916932964c5cc) ) | |
| 5721 | ROM_LOAD( "g96061.e8", 0x3000, 0x1000, CRC(9db8e520) SHA1(1ff10e221e45cc4afb77571a171937f8501aa509) ) | |
| 5722 | ROM_LOAD( "g96062.h8", 0x8000, 0x1000, CRC(7c8e8b3a) SHA1(ad281f801e818ea529be8ec43096212e834f69ef) ) | |
| 5723 | ROM_LOAD( "g96063.j8", 0x9000, 0x1000, CRC(fa61e793) SHA1(7aad77f3de05a7bd3dcb0c9c97a3cccd1136f352) ) | |
| 5724 | ROM_LOAD( "g96064.l8", 0xa000, 0x1000, CRC(f797f389) SHA1(b961f0506defa9884ac47b2316884318e1e90bff) ) | |
| 5725 | 2462 | |
| 5726 | ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5727 | ROM_LOAD( "g95948.n1", 0x0000, 0x0800, CRC(d8a0c692) SHA1(dd64623f4072bcb8c528b5b7b95a7bd858b79d6c) ) | |
| 5728 | /*0x0800- 0x0fff empty */ | |
| 5729 | ROM_LOAD( "g95949.s1", 0x1000, 0x0800, CRC(3660a552) SHA1(bebfd30f90da55d6d42945717b9b38d5b0c9623a) ) | |
| 5730 | ROM_LOAD( "g95946.j1", 0x1800, 0x0800, CRC(73b61b2d) SHA1(fdb75eea1778daa6f9c48243361e418044b471f8) ) | |
| 5731 | /*0x2000- 0x27ff empty */ | |
| 5732 | ROM_LOAD( "g95947.m1", 0x2800, 0x0800, CRC(72ff67e2) SHA1(dcc12f17a857271c253d06d5ac170b9d6bb6a2bd) ) | |
| 2463 | static DRIVER_INIT( explorer ) | |
| 2464 | { | |
| 2465 | /* video extensions */ | |
| 2466 | konami_common_init(machine, scramble_draw_bullet, scramble_draw_background, NULL, NULL); | |
| 5733 | 2467 | |
| 5734 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5735 | ROM_LOAD( "g960lev.clr", 0x0000, 0x0020, CRC(01febbbe) SHA1(11b1dab7983ba29e830ccb7f14eb1a99465c9e81) ) | |
| 5736 | ROM_END | |
| 2468 | /* watchdog works for writes as well? (or is it just disabled?) */ | |
| 2469 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x7000, 0x7000, 0, 0x7ff, watchdog_reset_w); | |
| 5737 | 2470 | |
| 5738 | ROM_START( azurian ) | |
| 5739 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5740 | ROM_LOAD( "pgm.1", 0x0000, 0x1000, CRC(17a0fca7) SHA1(0ffb80d433fbaa0631d0d982a453f9e6cccab297) ) | |
| 5741 | ROM_LOAD( "pgm.2", 0x1000, 0x1000, CRC(14659848) SHA1(bb9d9c01b074bf7ed7a1c29379bbef41728dd27a) ) | |
| 5742 | ROM_LOAD( "pgm.3", 0x2000, 0x1000, CRC(8f60fb97) SHA1(d0f4d65e568ac1a5d41e550f2f626cbf72884959) ) | |
| 2471 | /* I/O appears to be direct, not via PPIs */ | |
| 2472 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0xffff, 0, 0, SMH_UNMAP, SMH_UNMAP); | |
| 2473 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x8000, 0, 0xffc, input_port_0_r); | |
| 2474 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8001, 0x8001, 0, 0xffc, input_port_1_r); | |
| 2475 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8002, 0x8002, 0, 0xffc, input_port_2_r); | |
| 2476 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8003, 0x8003, 0, 0xffc, input_port_3_r); | |
| 2477 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x8000, 0, 0xfff, soundlatch_w); | |
| 2478 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x9000, 0x9000, 0, 0xfff, explorer_sound_control_w); | |
| 2479 | } | |
| 5743 | 2480 | |
| 5744 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5745 | ROM_LOAD( "gfx.1", 0x0000, 0x0800, CRC(f5afb803) SHA1(ffc8f86a35179d7715ef618004b79003e0236a93) ) | |
| 5746 | ROM_LOAD( "gfx.2", 0x0800, 0x0800, CRC(ae96e5d1) SHA1(df667fb96d7353ccf9ce0acf788371ef2221e97d) ) | |
| 5747 | 2481 | |
| 5748 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5749 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5750 | ROM_END | |
| 2482 | static DRIVER_INIT( sfx ) | |
| 2483 | { | |
| 2484 | /* basic configuration */ | |
| 2485 | common_init(machine, scramble_draw_bullet, scramble_draw_background, upper_extend_tile_info, NULL); | |
| 2486 | galaxian_sfx_tilemap = TRUE; | |
| 5751 | 2487 | |
| 5752 | ROM_START( orbitron ) | |
| 5753 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5754 | ROM_LOAD( "orbitron.3", 0x0600, 0x0200, CRC(419f9c9b) SHA1(788a3920f4270b886b3a578f8c2df33e6314a1c3) ) | |
| 5755 | ROM_CONTINUE( 0x0400, 0x0200) | |
| 5756 | ROM_CONTINUE( 0x0200, 0x0200) | |
| 2488 | /* sfx uses 3 x 8255, so we need a non-standard interface */ | |
| 2489 | ppi8255_init(&sfx_ppi8255_intf); | |
| 5757 | 2490 | |
| 2491 | /* sound board has space for extra ROM */ | |
| 2492 | memory_install_read8_handler(1, ADDRESS_SPACE_PROGRAM, 0x0000, 0x3fff, 0, 0, SMH_BANK1); | |
| 2493 | memory_set_bankptr(1, memory_region(REGION_CPU2)); | |
| 2494 | } | |
| 5758 | 2495 | |
| 5759 | ROM_CONTINUE( 0x0000, 0x0200) | |
| 5760 | ROM_LOAD( "orbitron.4", 0x0e00, 0x0200, CRC(44ad56ac) SHA1(3a8339cdee50912a16ac0fb448e6659e32542c0c) ) | |
| 5761 | ROM_CONTINUE( 0x0c00, 0x0200) | |
| 5762 | ROM_CONTINUE( 0x0a00, 0x0200) | |
| 5763 | ROM_CONTINUE( 0x0800, 0x0200) | |
| 5764 | ROM_LOAD( "orbitron.1", 0x1600, 0x0200, CRC(da3f5168) SHA1(1927cc7cd3b9d15b629e09781557f4c75d684182) ) | |
| 5765 | ROM_CONTINUE( 0x1400, 0x0200) | |
| 5766 | ROM_CONTINUE( 0x1200, 0x0200) | |
| 5767 | ROM_CONTINUE( 0x1000, 0x0200) | |
| 5768 | ROM_LOAD( "orbitron.2", 0x1e00, 0x0200, CRC(a3b813fc) SHA1(7f0f22667bee897b474fb485d65a74d74a36991a) ) | |
| 5769 | ROM_CONTINUE( 0x1c00, 0x0200) | |
| 5770 | ROM_CONTINUE( 0x1a00, 0x0200) | |
| 5771 | ROM_CONTINUE( 0x1800, 0x0200) | |
| 5772 | ROM_LOAD( "orbitron.5", 0x2000, 0x0800, CRC(20cd8bb8) SHA1(a5309cb04a656c6e1e18bb19910474af8ef814a5) ) | |
| 5773 | 2496 | |
| 5774 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5775 | ROM_LOAD( "orbitron.6", 0x0000, 0x0800, CRC(2c91b83f) SHA1(29c73b7ad0dc5a3ba739492c902ad9201eae6ef2) ) | |
| 5776 | ROM_LOAD( "orbitron.7", 0x0800, 0x0800, CRC(46f4cca4) SHA1(e5fb616b1d17b5b5167f05f7840638840deb2d13) ) | |
| 2497 | static DRIVER_INIT( atlantis ) | |
| 2498 | { | |
| 2499 | /* video extensions */ | |
| 2500 | konami_common_init(machine, scramble_draw_bullet, scramble_draw_background, NULL, NULL); | |
| 5777 | 2501 | |
| 5778 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5779 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 5780 | ROM_END | |
| 2502 | /* watchdog is at $7800? (or is it just disabled?) */ | |
| 2503 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x7000, 0x7000, 0, 0x7ff, SMH_UNMAP); | |
| 2504 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x7800, 0x7800, 0, 0x7ff, watchdog_reset_r); | |
| 2505 | } | |
| 5781 | 2506 | |
| 5782 | ROM_START( checkman ) | |
| 5783 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5784 | ROM_LOAD( "cm1", 0x0000, 0x0800, CRC(e8cbdd28) SHA1(ba0b41e375b94bbfed6a2c949cc7958474c8ba6e) ) | |
| 5785 | ROM_LOAD( "cm2", 0x0800, 0x0800, CRC(b8432d4d) SHA1(d331476f1f88b7ef1426bed7442392f369e0650b) ) | |
| 5786 | ROM_LOAD( "cm3", 0x1000, 0x0800, CRC(15a97f61) SHA1(3c06c734cef1eed68b401d0d36f7ec9126986d73) ) | |
| 5787 | ROM_LOAD( "cm4", 0x1800, 0x0800, CRC(8c12ecc0) SHA1(1c2d61ef84404b6a524c453a3d339aaaadb38229) ) | |
| 5788 | ROM_LOAD( "cm5", 0x2000, 0x0800, CRC(2352cfd6) SHA1(77db5f925ee5f83c17a05a78af5191eefe70ca5a) ) | |
| 5789 | 2507 | |
| 5790 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 5791 | ROM_LOAD( "cm13", 0x0000, 0x0800, CRC(0b09a3e8) SHA1(e4e65da306e22f61790f0a68d953cc017c3ce762) ) | |
| 5792 | ROM_LOAD( "cm14", 0x0800, 0x0800, CRC(47f043be) SHA1(44d8892d93849cbc989561387c0a05baead58446) ) | |
| 2508 | static DRIVER_INIT( scobra ) | |
| 2509 | { | |
| 2510 | /* video extensions */ | |
| 2511 | konami_common_init(machine, scramble_draw_bullet, scramble_draw_background, NULL, NULL); | |
| 2512 | } | |
| 5793 | 2513 | |
| 5794 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5795 | ROM_LOAD( "cm11", 0x0000, 0x0800, CRC(8d1bcca0) SHA1(28fc7fb76180820e84d59e6836ed1f8136e8f138) ) | |
| 5796 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 5797 | ROM_LOAD( "cm9", 0x1000, 0x0800, CRC(3cd5c751) SHA1(a769fdd30752da8fb331aa0f7a0181a93f0b3378) ) | |
| 5798 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 5799 | 2514 | |
| 5800 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5801 | ROM_LOAD( "checkman.clr", 0x0000, 0x0020, CRC(57a45057) SHA1(d4ec6a54f72640e5b485aa59e206c090e67ff640) ) | |
| 5802 | ROM_END | |
| 2515 | static DRIVER_INIT( losttomb ) | |
| 2516 | { | |
| 2517 | /* video extensions */ | |
| 2518 | konami_common_init(machine, scramble_draw_bullet, scramble_draw_background, NULL, NULL); | |
| 5803 | 2519 | |
| 5804 | ROM_START( checkmaj ) | |
| 5805 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5806 | ROM_LOAD( "cm_1.bin", 0x0000, 0x1000, CRC(456a118f) SHA1(7c2e8343360f446af4391012784a1ccfecae3299) ) | |
| 5807 | ROM_LOAD( "cm_2.bin", 0x1000, 0x1000, CRC(146b2c44) SHA1(80455396a9b1802fcefaec1340b76461c0601bf9) ) | |
| 5808 | ROM_LOAD( "cm_3.bin", 0x2000, 0x0800, CRC(73e1c945) SHA1(bcf2558958a30e5936f19ff53687f2316e0b822e) ) | |
| 2520 | /* decrypt */ | |
| 2521 | decode_losttomb_gfx(); | |
| 2522 | } | |
| 5809 | 2523 | |
| 5810 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 5811 | ROM_LOAD( "cm_4.bin", 0x0000, 0x1000, CRC(923cffa1) SHA1(132822d20de2ad1ecc561e811ca40c5642500631) ) | |
| 5812 | 2524 | |
| 5813 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5814 | ROM_LOAD( "cm_6.bin", 0x0000, 0x0800, CRC(476a7cc3) SHA1(3c343b0dcfb2f4cbec2f8b5854a303a1660fea22) ) | |
| 5815 | ROM_LOAD( "cm_5.bin", 0x0800, 0x0800, CRC(b3df2b5f) SHA1(519a0894d1794211659abeb6b2a2c610e6c2af25) ) | |
| 2525 | static DRIVER_INIT( frogger ) | |
| 2526 | { | |
| 2527 | /* video extensions */ | |
| 2528 | konami_common_init(machine, NULL, frogger_draw_background, frogger_extend_tile_info, frogger_extend_sprite_info); | |
| 2529 | galaxian_frogger_adjust = TRUE; | |
| 5816 | 2530 | |
| 5817 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5818 | ROM_LOAD( "checkman.clr", 0x0000, 0x0020, CRC(57a45057) SHA1(d4ec6a54f72640e5b485aa59e206c090e67ff640) ) | |
| 5819 | ROM_END | |
| 2531 | /* decrypt */ | |
| 2532 | decode_frogger_sound(); | |
| 2533 | decode_frogger_gfx(); | |
| 2534 | } | |
| 5820 | 2535 | |
| 5821 | ROM_START( dingo ) | |
| 5822 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5823 | ROM_LOAD( "003.e7", 0x0000, 0x1000, CRC(d088550f) SHA1(13b87995881e484825c45ab4e558ac3d90bf162a) ) | |
| 5824 | ROM_LOAD( "004.h7", 0x1000, 0x1000, CRC(a228446a) SHA1(4b7e611edd6bce308cc7b17caa068445f5438f4f) ) | |
| 5825 | ROM_LOAD( "005.j7", 0x2000, 0x0800, CRC(14d680bb) SHA1(e9d84d1a62ed5300c390a7326c16cebd0aceae3b) ) | |
| 5826 | 2536 | |
| 5827 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 5828 | ROM_LOAD( "6.7l", 0x0000, 0x1000, CRC(047092e0) SHA1(24014c999c904b4be571121b0f6808713d95add1) ) | |
| 2537 | static DRIVER_INIT( froggrmc ) | |
| 2538 | { | |
| 2539 | /* video extensions */ | |
| 2540 | common_init(machine, NULL, frogger_draw_background, frogger_extend_tile_info, frogger_extend_sprite_info); | |
| 5829 | 2541 | |
| 5830 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5831 | ROM_LOAD( "001.h1", 0x0000, 0x0800, CRC(1ab1dd4d) SHA1(74ef2226e1f1d2583b0c7718325da193f411a97d) ) | |
| 5832 | ROM_LOAD( "002.k1", 0x0800, 0x0800, CRC(4be375ee) SHA1(7379b037887baca0f932d910f8f94f7edf39bb26) ) | |
| 2542 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xa800, 0xa800, 0, 0x7ff, soundlatch_w); | |
| 2543 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xb001, 0xb001, 0, 0x7f8, froggrmc_sound_control_w); | |
| 5833 | 2544 | |
| 5834 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5835 | ROM_LOAD( "18s030.l6", 0x0000, 0x0020, CRC(3061d0f9) SHA1(5af85499c6219137dc57d9fba79cb5afa3548ab1) ) | |
| 5836 | ROM_END | |
| 2545 | /* actually needs 2k of RAM */ | |
| 2546 | memory_install_readwrite8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x87ff, 0, 0, SMH_BANK1, SMH_BANK1); | |
| 2547 | memory_set_bankptr(1, auto_malloc(0x800)); | |
| 5837 | 2548 | |
| 5838 | ROM_START( dingoe ) | |
| 5839 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5840 | ROM_LOAD( "unk.2b", 0x0000, 0x1000, CRC(0df7ac6d) SHA1(c1d45a7694848e66426c3510d0749c98e51571cb) ) | |
| 5841 | ROM_LOAD( "unk.2d", 0x1000, 0x1000, CRC(0881e204) SHA1(4ba59d73e04b5337cfbd68d6a708e7321cb629f1) ) | |
| 5842 | ROM_LOAD( "unk.3b", 0x2000, 0x1000, BAD_DUMP CRC(0b6aeab5) SHA1(ebfab3227dd23e3e1802b881a5662f634f86e382) ) // both halves identical (bad?) | |
| 2549 | /* decrypt */ | |
| 2550 | decode_frogger_sound(); | |
| 2551 | } | |
| 5843 | 2552 | |
| 5844 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 5845 | ROM_LOAD( "unk.1c", 0x0000, 0x0800, CRC(8e354c38) SHA1(87608c1fa55e6fcf482f5d3bcc506a84673719cc) ) | |
| 5846 | ROM_LOAD( "unk.1d", 0x0800, 0x0800, CRC(092878d6) SHA1(8a3b25e27df5aee2023a7e1a193ab152df171ede) ) | |
| 5847 | 2553 | |
| 5848 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5849 | ROM_LOAD( "unk.4d", 0x0000, 0x0800, CRC(76a00a56) SHA1(2a696b9ce3e148529c731231852dc104729bb916) ) | |
| 5850 | ROM_LOAD( "unk.4b", 0x0800, 0x0800, CRC(5acf57aa) SHA1(bb05be53728e7867085dad5854fcadfa687ff5d7) ) | |
| 2554 | static DRIVER_INIT( froggers ) | |
| 2555 | { | |
| 2556 | /* video extensions */ | |
| 2557 | konami_common_init(machine, NULL, frogger_draw_background, frogger_extend_tile_info, frogger_extend_sprite_info); | |
| 5851 | 2558 | |
| 5852 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5853 | ROM_LOAD( "82s123n.001", 0x0000, 0x0020, CRC(02b11865) SHA1(70053db9635a9194e4372835379a82f6ea64ef83) ) /* Unknown */ | |
| 5854 | ROM_END | |
| 2559 | /* decrypt */ | |
| 2560 | decode_frogger_sound(); | |
| 2561 | } | |
| 5855 | 2562 | |
| 5856 | 2563 | |
| 5857 | ROM_START( blkhole ) | |
| 5858 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5859 | ROM_LOAD( "bh1", 0x0000, 0x0800, CRC(64998819) SHA1(69fe5dfbe6cde18ef4cae62da12b5c692c2c72b9) ) | |
| 5860 | ROM_LOAD( "bh2", 0x0800, 0x0800, CRC(26f26ce4) SHA1(720ce7af05ef596fb9a109591534c74d282955e8) ) | |
| 5861 | ROM_LOAD( "bh3", 0x1000, 0x0800, CRC(3418bc45) SHA1(088bbbde66b7b5c36fa48cf14c22146e1444e67c) ) | |
| 5862 | ROM_LOAD( "bh4", 0x1800, 0x0800, CRC(735ff481) SHA1(d9b32db048a0e2a1195cd6f7326005e6622242a9) ) | |
| 5863 | ROM_LOAD( "bh5", 0x2000, 0x0800, CRC(3f657be9) SHA1(3ed1ee0bc199c1625156d2771eecd18a57a0e6ed) ) | |
| 5864 | ROM_LOAD( "bh6", 0x2800, 0x0800, CRC(a057ab35) SHA1(430261bafe20fc182e6e6659019cf42643e95d54) ) | |
| 2564 | static DRIVER_INIT( turtles ) | |
| 2565 | { | |
| 2566 | /* video extensions */ | |
| 2567 | konami_common_init(machine, NULL, turtles_draw_background, NULL, NULL); | |
| 2568 | } | |
| 5865 | 2569 | |
| 5866 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5867 | ROM_LOAD( "bh7", 0x0000, 0x0800, CRC(975ba821) SHA1(c50d55f6ab81b803d67f5e18c1243ef85a1a2df1) ) | |
| 5868 | ROM_LOAD( "bh8", 0x0800, 0x0800, CRC(03d11020) SHA1(5768b573fac9aac168db2723462cca76d4d80552) ) | |
| 5869 | 2570 | |
| 5870 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5871 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 5872 | ROM_END | |
| 2571 | #ifdef UNUSED_CODE | |
| 2572 | static DRIVER_INIT( amidar ) | |
| 2573 | { | |
| 2574 | /* no existing amidar sets run on Amidar hardware as described by Amidar schematics! */ | |
| 2575 | /* video extensions */ | |
| 2576 | konami_common_init(machine, scramble_draw_bullet, amidar_draw_background, NULL, NULL); | |
| 2577 | } | |
| 2578 | #endif | |
| 5873 | 2579 | |
| 5874 | ROM_START( mooncrst ) | |
| 5875 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5876 | ROM_LOAD( "mc1", 0x0000, 0x0800, CRC(7d954a7a) SHA1(a93ee403cfd7887538ad12d33f6dd6c71bea2a32) ) | |
| 5877 | ROM_LOAD( "mc2", 0x0800, 0x0800, CRC(44bb7cfa) SHA1(349c2e23a9fce73f95bb8168d369082fa129fe3d) ) | |
| 5878 | ROM_LOAD( "mc3", 0x1000, 0x0800, CRC(9c412104) SHA1(1b40054ebb1ace965a8522119bb23f09797bc5f6) ) | |
| 5879 | ROM_LOAD( "mc4", 0x1800, 0x0800, CRC(7e9b1ab5) SHA1(435f603c0c3e788a509dd144a7916a34e791ae44) ) | |
| 5880 | ROM_LOAD( "mc5.7r", 0x2000, 0x0800, CRC(16c759af) SHA1(3b48050411f65f9d3fb41ff22901e22d82bf1cf6) ) | |
| 5881 | ROM_LOAD( "mc6.8d", 0x2800, 0x0800, CRC(69bcafdb) SHA1(939c8c6ed1cd4660a3d99b8f17ed99cbd7e1352a) ) | |
| 5882 | ROM_LOAD( "mc7.8e", 0x3000, 0x0800, CRC(b50dbc46) SHA1(4fa084fd1ba5f78e7703e684c57af15ca7a844e4) ) | |
| 5883 | ROM_LOAD( "mc8", 0x3800, 0x0800, CRC(18ca312b) SHA1(39219059003b949e38305553fea2d33071062c64) ) | |
| 5884 | 2580 | |
| 5885 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5886 | ROM_LOAD( "mcs_b", 0x0000, 0x0800, CRC(fb0f1f81) SHA1(38a6679a8b69bc1870a0e67e692131c42f9535c8) ) | |
| 5887 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 5888 | ROM_LOAD( "mcs_a", 0x1000, 0x0800, CRC(631ebb5a) SHA1(5bc9493afa76c55858b8c8849524cbc77dc838fc) ) | |
| 5889 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 2581 | static DRIVER_INIT( scorpion ) | |
| 2582 | { | |
| 2583 | konami_common_init(machine, scramble_draw_bullet, scramble_draw_background, batman2_extend_tile_info, upper_extend_sprite_info); | |
| 5890 | 2584 | |
| 5891 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5892 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 5893 | ROM_END | |
| 2585 | /* hook up AY8910 */ | |
| 2586 | memory_install_readwrite8_handler(1, ADDRESS_SPACE_IO, 0x00, 0xff, 0, 0, scorpion_ay8910_r, scorpion_ay8910_w); | |
| 5894 | 2587 | |
| 5895 | ROM_START( mooncrsu ) | |
| 5896 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5897 | ROM_LOAD( "smc1f", 0x0000, 0x0800, CRC(389ca0d6) SHA1(51cf6d190a0ebf23b70c2bcf1ccaa4705e29cd09) ) | |
| 5898 | ROM_LOAD( "smc2f", 0x0800, 0x0800, CRC(410ab430) SHA1(d89abff6ac4afbf69377a1d63043d629a634aab7) ) | |
| 5899 | ROM_LOAD( "smc3f", 0x1000, 0x0800, CRC(a6b4144b) SHA1(2b27ad54d716286c0dc9476d47df182ae01bcfd7) ) | |
| 5900 | ROM_LOAD( "smc4f", 0x1800, 0x0800, CRC(4cc046fe) SHA1(465eaacd50967d768babadd09ab9cad35380f6bf) ) | |
| 5901 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 5902 | ROM_LOAD( "bepr199", 0x2800, 0x0800, CRC(6e84a927) SHA1(82e8e825d157c3c947a3a222bca059a735169c7d) ) | |
| 5903 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 5904 | ROM_LOAD( "smc8f", 0x3800, 0x0800, CRC(f42164c5) SHA1(e0d1680f193889568edf005786e2767d4fb086f4) ) | |
| 2588 | /* configure protection */ | |
| 2589 | ppi8255_set_portCwrite(1, scorpion_protection_w); | |
| 2590 | ppi8255_set_portCread(1, scorpion_protection_r); | |
| 5905 | 2591 | |
| 5906 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5907 | ROM_LOAD( "mcs_b", 0x0000, 0x0800, CRC(fb0f1f81) SHA1(38a6679a8b69bc1870a0e67e692131c42f9535c8) ) | |
| 5908 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 5909 | ROM_LOAD( "mcs_a", 0x1000, 0x0800, CRC(631ebb5a) SHA1(5bc9493afa76c55858b8c8849524cbc77dc838fc) ) | |
| 5910 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 2592 | /* extra ROM */ | |
| 2593 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0x5800, 0x67ff, 0, 0, SMH_BANK1); | |
| 2594 | memory_set_bankptr(1, memory_region(REGION_CPU1) + 0x5800); | |
| 5911 | 2595 | |
| 5912 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5913 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 5914 | ROM_END | |
| 2596 | /* no background related */ | |
| 2597 | // memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x6803, 0x6803, 0, 0, SMH_NOP); | |
| 5915 | 2598 | |
| 5916 | ROM_START( mooncrsa ) | |
| 5917 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5918 | ROM_LOAD( "mc1.7d", 0x0000, 0x0800, CRC(92a86aac) SHA1(f5818ac97d8b779e1fb29bf903f74185d24afb0d) ) | |
| 5919 | ROM_LOAD( "mc2.7e", 0x0800, 0x0800, CRC(438c2b4b) SHA1(11f56b489b5489999952e91919c5e1f622c59c36) ) | |
| 5920 | ROM_LOAD( "mc3.7j", 0x1000, 0x0800, CRC(67e3d21d) SHA1(59579d19931ef11b30fdc3912d838200bef92c81) ) | |
| 5921 | ROM_LOAD( "mc4.7p", 0x1800, 0x0800, CRC(f4db39f6) SHA1(454931f80b35608793590b3843c69ba64cbf6772) ) | |
| 5922 | ROM_LOAD( "mc5.7r", 0x2000, 0x0800, CRC(16c759af) SHA1(3b48050411f65f9d3fb41ff22901e22d82bf1cf6) ) | |
| 5923 | ROM_LOAD( "mc6.8d", 0x2800, 0x0800, CRC(69bcafdb) SHA1(939c8c6ed1cd4660a3d99b8f17ed99cbd7e1352a) ) | |
| 5924 | ROM_LOAD( "mc7.8e", 0x3000, 0x0800, CRC(b50dbc46) SHA1(4fa084fd1ba5f78e7703e684c57af15ca7a844e4) ) | |
| 5925 | ROM_LOAD( "mc8.8h", 0x3800, 0x0800, CRC(7e2b1928) SHA1(4f0de8e80c2e2ec6df8612755caf93671ea965b0) ) | |
| 2599 | memory_install_read8_handler(1, ADDRESS_SPACE_PROGRAM, 0x3000, 0x3000, 0, 0, scorpion_sound_status_r); | |
| 2600 | /* | |
| 2601 | { | |
| 2602 | const UINT8 *rom = memory_region(REGION_SOUND1); | |
| 2603 | int i; | |
| 5926 | 2604 | |
| 5927 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5928 | ROM_LOAD( "mcs_b", 0x0000, 0x0800, CRC(fb0f1f81) SHA1(38a6679a8b69bc1870a0e67e692131c42f9535c8) ) | |
| 5929 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 5930 | ROM_LOAD( "mcs_a", 0x1000, 0x0800, CRC(631ebb5a) SHA1(5bc9493afa76c55858b8c8849524cbc77dc838fc) ) | |
| 5931 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 2605 | for (i = 0; i < 0x2c; i++) | |
| 2606 | { | |
| 2607 | UINT16 addr = (rom[2*i] << 8) | rom[2*i+1]; | |
| 2608 | UINT16 endaddr = (rom[2*i+2] << 8) | rom[2*i+3]; | |
| 2609 | int j; | |
| 2610 | printf("Cmd %02X -> %04X-%04X:", i, addr, endaddr - 1); | |
| 2611 | for (j = 0; j < 32 && addr < endaddr; j++) | |
| 2612 | printf(" %02X", rom[addr++]); | |
| 2613 | printf("\n"); | |
| 2614 | } | |
| 2615 | } | |
| 2616 | */ | |
| 2617 | } | |
| 5932 | 2618 | |
| 5933 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5934 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 5935 | ROM_END | |
| 5936 | 2619 | |
| 5937 | ROM_START( mooncrsg ) | |
| 5938 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5939 | ROM_LOAD( "epr194", 0x0000, 0x0800, CRC(0e5582b1) SHA1(946ad4aeb10c0b7b3f93fd24925cc9bcb49e443c) ) | |
| 5940 | ROM_LOAD( "epr195", 0x0800, 0x0800, CRC(12cb201b) SHA1(ebb01ec646b9e015cbcb93f70dfdaf448afefc12) ) | |
| 5941 | ROM_LOAD( "epr196", 0x1000, 0x0800, CRC(18255614) SHA1(b373e22d47c0f7facba13148ca9c462ec9a0d732) ) | |
| 5942 | ROM_LOAD( "epr197", 0x1800, 0x0800, CRC(05ac1466) SHA1(cbf93a8ce0925fa1c073c74f1274b190d9faefaf) ) | |
| 5943 | ROM_LOAD( "epr198", 0x2000, 0x0800, CRC(c28a2e8f) SHA1(9ff6bab1e1185597ba55cb0d6086091a1fce01a6) ) | |
| 5944 | ROM_LOAD( "epr199", 0x2800, 0x0800, CRC(5a4571de) SHA1(2a4170dee105922fc69c99b79f6f328098e81918) ) | |
| 5945 | ROM_LOAD( "epr200", 0x3000, 0x0800, CRC(b7c85bf1) SHA1(cc9f593658ea39c849d80c83ee0c2170cc29879e) ) | |
| 5946 | ROM_LOAD( "epr201", 0x3800, 0x0800, CRC(2caba07f) SHA1(8fec4904e12b4cfb6068784007278be986a3eede) ) | |
| 2620 | static DRIVER_INIT( anteater ) | |
| 2621 | { | |
| 2622 | /* video extensions */ | |
| 2623 | konami_common_init(machine, scramble_draw_bullet, scramble_draw_background, NULL, NULL); | |
| 5947 | 2624 | |
| 5948 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5949 | ROM_LOAD( "epr203", 0x0000, 0x0800, CRC(be26b561) SHA1(cc27de6888eaf4ee18c0d37d9bcb528dd282b838) ) | |
| 5950 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 5951 | ROM_LOAD( "epr202", 0x1000, 0x0800, CRC(26c7e800) SHA1(034192e5e2cbac4b66a9828f5ec2311c2c368781) ) | |
| 5952 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 2625 | /* decode graphics */ | |
| 2626 | decode_anteater_gfx(); | |
| 2627 | } | |
| 5953 | 2628 | |
| 5954 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5955 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 5956 | ROM_END | |
| 5957 | 2629 | |
| 5958 | ROM_START( smooncrs ) | |
| 5959 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5960 | ROM_LOAD( "927", 0x0000, 0x0800, CRC(55c5b994) SHA1(3451b121fa22361b2684385cf5d4455fa6963215) ) | |
| 5961 | ROM_LOAD( "928a", 0x0800, 0x0800, CRC(77ae26d3) SHA1(cbc16a024b73bedff76a6c47336d6ef098e92c53) ) | |
| 5962 | ROM_LOAD( "929", 0x1000, 0x0800, CRC(716eaa10) SHA1(780fc785e6651f19dc1a0ccf48cf9485d6562a71) ) | |
| 5963 | ROM_LOAD( "930", 0x1800, 0x0800, CRC(cea864f2) SHA1(aaaf9f8dd126dfb4a4f52f39863fee02a56a6485) ) | |
| 5964 | ROM_LOAD( "931", 0x2000, 0x0800, CRC(702c5f51) SHA1(5ba8d87c93c4810b8e7c2ad4ee376cd806e83686) ) | |
| 5965 | ROM_LOAD( "932a", 0x2800, 0x0800, CRC(e6a2039f) SHA1(f0f240dd8ac7cd2d9994cb7341b59d7a0a3eaf26) ) | |
| 5966 | ROM_LOAD( "933", 0x3000, 0x0800, CRC(73783cee) SHA1(69760e25ba22645572ec16b4f9136ee84ed0c766) ) | |
| 5967 | ROM_LOAD( "934", 0x3800, 0x0800, CRC(c1a14aa2) SHA1(99f6b01a0acd5e936d6ae61c13599db603b73191) ) | |
| 5968 | ||
| 5969 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5970 | ROM_LOAD( "epr203", 0x0000, 0x0800, CRC(be26b561) SHA1(cc27de6888eaf4ee18c0d37d9bcb528dd282b838) ) | |
| 5971 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 5972 | ROM_LOAD( "epr202", 0x1000, 0x0800, CRC(26c7e800) SHA1(034192e5e2cbac4b66a9828f5ec2311c2c368781) ) | |
| 5973 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 5974 | ||
| 5975 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5976 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 5977 | ROM_END | |
| 5978 | ||
| 5979 | ROM_START( mooncrsb ) | |
| 5980 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 5981 | ROM_LOAD( "bepr194", 0x0000, 0x0800, CRC(6a23ec6d) SHA1(df2214bdde26a71db59ffd39a745052076563f65) ) | |
| 5982 | ROM_LOAD( "bepr195", 0x0800, 0x0800, CRC(ee262ff2) SHA1(4e2202023ad53109ea58304071735d2425a617f3) ) | |
| 5983 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 5984 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 5985 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 5986 | ROM_LOAD( "bepr199", 0x2800, 0x0800, CRC(6e84a927) SHA1(82e8e825d157c3c947a3a222bca059a735169c7d) ) | |
| 5987 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 5988 | ROM_LOAD( "bepr201", 0x3800, 0x0800, CRC(66da55d5) SHA1(39e2f6107e77ee97860147f64b9673cd9a2ae612) ) | |
| 5989 | ||
| 5990 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 5991 | ROM_LOAD( "epr203", 0x0000, 0x0800, CRC(be26b561) SHA1(cc27de6888eaf4ee18c0d37d9bcb528dd282b838) ) | |
| 5992 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 5993 | ROM_LOAD( "epr202", 0x1000, 0x0800, CRC(26c7e800) SHA1(034192e5e2cbac4b66a9828f5ec2311c2c368781) ) | |
| 5994 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 5995 | ||
| 5996 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 5997 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 5998 | ROM_END | |
| 5999 | ||
| 6000 | ROM_START( mooncrs2 ) | |
| 6001 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6002 | ROM_LOAD( "f8.bin", 0x0000, 0x0800, CRC(d36003e5) SHA1(562b27f1bccce6ae29de18b93fa51c508446cda9) ) | |
| 6003 | ROM_LOAD( "bepr195", 0x0800, 0x0800, CRC(ee262ff2) SHA1(4e2202023ad53109ea58304071735d2425a617f3) ) | |
| 6004 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 6005 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 6006 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 6007 | ROM_LOAD( "bepr199", 0x2800, 0x0800, CRC(6e84a927) SHA1(82e8e825d157c3c947a3a222bca059a735169c7d) ) | |
| 6008 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 6009 | ROM_LOAD( "m7.bin", 0x3800, 0x0800, CRC(957ee078) SHA1(472038dedfc01c995be889ea93d4df8bef2b874c) ) | |
| 6010 | ||
| 6011 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6012 | ROM_LOAD( "1h_1_10.bin", 0x0000, 0x0800, CRC(528da705) SHA1(d726ee18b79774c982f88afb2a508eb5d5783193) ) | |
| 6013 | ROM_LOAD( "12.chr", 0x0800, 0x0200, CRC(5a4b17ea) SHA1(8a879dc34fdecc8a121c4a87abb981212fb05945) ) | |
| 6014 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 6015 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 6016 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 6017 | ROM_LOAD( "1k_1_11.bin", 0x1000, 0x0800, CRC(4e79ff6b) SHA1(f72386a3766a7fcc7b4b8cedfa58b8d57f911f6f) ) | |
| 6018 | ROM_LOAD( "11.chr", 0x1800, 0x0200, CRC(e0edccbd) SHA1(0839a4c9b6e863d12253ae8e1732e80e08702228) ) | |
| 6019 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 6020 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 6021 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 6022 | ||
| 6023 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6024 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 6025 | ROM_END | |
| 6026 | ||
| 6027 | ROM_START( mooncrs3 ) /* Bootleg by Jeutel, very simular to Moon Cresta (bootleg set 2) */ | |
| 6028 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6029 | ROM_LOAD( "b1.7f", 0x0000, 0x0800, CRC(0b28cd8a) SHA1(a1aa0ec63e1dddf4263aa39f6a5fda93108b6e98) ) | |
| 6030 | ROM_CONTINUE( 0x2000, 0x0800 ) | |
| 6031 | ROM_LOAD( "b2.7h", 0x0800, 0x0800, CRC(74a6f0ca) SHA1(cc8e8193bb6bd62f6cb9ea924e4da5ddc44c4685) ) | |
| 6032 | ROM_CONTINUE( 0x2800, 0x0800 ) | |
| 6033 | ROM_LOAD( "b3.7j", 0x1000, 0x0800, CRC(eeb34cc9) SHA1(c5e7d5e1989211be949972e4281403b7b4866922) ) | |
| 6034 | ROM_CONTINUE( 0x3000, 0x0800 ) | |
| 6035 | ROM_LOAD( "b4.7k", 0x1800, 0x0800, CRC(714330e5) SHA1(c681752732c73a6c9bcc9acdcd5c978c455acba0) ) | |
| 6036 | ROM_CONTINUE( 0x3800, 0x0800 ) | |
| 6037 | ||
| 6038 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6039 | ROM_LOAD( "o.1h", 0x0000, 0x0800, CRC(528da705) SHA1(d726ee18b79774c982f88afb2a508eb5d5783193) ) | |
| 6040 | ROM_LOAD( "q.1h", 0x0800, 0x0200, CRC(5a4b17ea) SHA1(8a879dc34fdecc8a121c4a87abb981212fb05945) ) | |
| 6041 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 6042 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 6043 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 6044 | ROM_LOAD( "p.1k", 0x1000, 0x0800, CRC(4e79ff6b) SHA1(f72386a3766a7fcc7b4b8cedfa58b8d57f911f6f) ) | |
| 6045 | ROM_LOAD( "r.1k", 0x1800, 0x0200, CRC(e0edccbd) SHA1(0839a4c9b6e863d12253ae8e1732e80e08702228) ) | |
| 6046 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 6047 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 6048 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 6049 | ||
| 6050 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6051 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 6052 | ROM_END | |
| 6053 | ||
| 6054 | ||
| 6055 | ROM_START( mooncmw ) | |
| 6056 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6057 | ROM_LOAD( "60.1x", 0x0000, 0x0800, CRC(322859e6) SHA1(292dccb66c38c8de837ec3ac10928d092494958e) ) | |
| 6058 | ROM_LOAD( "61.2x", 0x0800, 0x0800, CRC(c249902d) SHA1(0015461173fb991fd99c824e0eab054c3c17d0f1) ) | |
| 6059 | ROM_LOAD( "62.3x", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 6060 | ROM_LOAD( "63.4x", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 6061 | ROM_LOAD( "64.5x", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 6062 | ROM_LOAD( "65.6x", 0x2800, 0x0800, CRC(6e84a927) SHA1(82e8e825d157c3c947a3a222bca059a735169c7d) ) | |
| 6063 | ROM_LOAD( "66.7x", 0x3000, 0x0800, CRC(f23cd8ce) SHA1(a77e7eca239de6a72a8cabed6444ae8efb9e40bd) ) | |
| 6064 | ROM_LOAD( "67.8x", 0x3800, 0x0800, CRC(66da55d5) SHA1(39e2f6107e77ee97860147f64b9673cd9a2ae612) ) | |
| 6065 | ||
| 6066 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6067 | ROM_LOAD( "68.1h", 0x0000, 0x1000, CRC(78663d86) SHA1(8648a3e60259404a05ad58b1641190e5b33a24eb) ) | |
| 6068 | ROM_LOAD( "69.1k", 0x1000, 0x1000, CRC(162c50d3) SHA1(67d9c87782cf29c443590d7ad687fbeaa6218346) ) | |
| 6069 | ||
| 6070 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6071 | ROM_LOAD( "prom-sn74s288n-71.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 6072 | ROM_END | |
| 6073 | ||
| 6074 | ROM_START( spcdrag ) | |
| 6075 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6076 | ROM_LOAD( "a.bin", 0x0000, 0x0800, CRC(38cc9839) SHA1(71c5853fc14a9c0b93e3b7660b925021680a0fe1) ) | |
| 6077 | ROM_LOAD( "b.bin", 0x0800, 0x0800, CRC(419fa8d6) SHA1(709b096d43c15cbfb98745e1f5e7c1bc921e3241) ) | |
| 6078 | ROM_LOAD( "c.bin", 0x1000, 0x0800, CRC(a1939def) SHA1(c9be93d325dde496d89e0735ec4e7abca932c0f6) ) | |
| 6079 | ROM_LOAD( "d.bin", 0x1800, 0x0800, CRC(cbcf17c5) SHA1(9aa3ca6dc30e4a19ed2bdb2be6ba90bde4cb7542) ) | |
| 6080 | ROM_LOAD( "em.bin", 0x2000, 0x0800, CRC(eb81c19c) SHA1(e5dd61704938c837b87a3155d54698482235c513) ) | |
| 6081 | ROM_LOAD( "fm.bin", 0x2800, 0x0800, CRC(757b7672) SHA1(d042e4bc17d2a8c9f1db55d57d5c235338cdb20c) ) | |
| 6082 | ROM_LOAD( "g.bin", 0x3000, 0x0800, CRC(57713b91) SHA1(ba01ed3f047ebbd0f9e6956e649bec0e8b730a45) ) | |
| 6083 | ROM_LOAD( "h.bin", 0x3800, 0x0800, CRC(159ad847) SHA1(9d46f380c868ac07964e571c54e800c683a6a679) ) | |
| 6084 | ||
| 6085 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6086 | ROM_LOAD( "203.bin", 0x0000, 0x0800, CRC(a2e82527) SHA1(5e9236ba102728213b4651db984b3a169b4a0410) ) | |
| 6087 | ROM_LOAD( "172.bin", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 6088 | ROM_LOAD( "202.bin", 0x1000, 0x0800, CRC(80c3ad74) SHA1(0fd2269543d123bd427f5a648a17f8bee65b20a2) ) | |
| 6089 | ROM_LOAD( "171.bin", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 6090 | ||
| 6091 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6092 | // not present in this set | |
| 6093 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 6094 | ROM_END | |
| 6095 | ||
| 6096 | ROM_START( spcdraga ) | |
| 6097 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6098 | ROM_LOAD( "1.7g", 0x0000, 0x0800, CRC(38cc9839) SHA1(71c5853fc14a9c0b93e3b7660b925021680a0fe1) ) | |
| 6099 | ROM_LOAD( "2.7g", 0x0800, 0x0800, CRC(29e00ae4) SHA1(574bdfb621e084485e6621229cd569486831e4ba) ) | |
| 6100 | ROM_LOAD( "3.7g", 0x1000, 0x0800, CRC(a1939def) SHA1(c9be93d325dde496d89e0735ec4e7abca932c0f6) ) | |
| 6101 | ROM_LOAD( "4.7g", 0x1800, 0x0800, CRC(068f8830) SHA1(e12d590401878d9f2695e5c7aa38387ed9ccfb06) ) | |
| 6102 | ROM_LOAD( "5.10g", 0x2000, 0x0800, CRC(32cd9adc) SHA1(3143690712465d092d6c63f4826f220839d78958) ) | |
| 6103 | ROM_LOAD( "6.10g", 0x2800, 0x0800, CRC(50db67c5) SHA1(69ad219332ac0d9f4e328b314f7bdc34d5599393) ) | |
| 6104 | ROM_LOAD( "7.10g", 0x3000, 0x0800, CRC(22415271) SHA1(60b1ca2dc044c0863c6f38280a3bd0ff9397c869) ) | |
| 6105 | ROM_LOAD( "8.10g", 0x3800, 0x0800, CRC(159ad847) SHA1(9d46f380c868ac07964e571c54e800c683a6a679) ) | |
| 6106 | ||
| 6107 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6108 | ROM_LOAD( "a2.7a", 0x0000, 0x0800, CRC(38b042dd) SHA1(bd452dae4cbc22a900cf783f84d1f9d8cb1218f9) ) | |
| 6109 | ROM_LOAD( "a4.7a", 0x0800, 0x0200, CRC(5a4b17ea) SHA1(8a879dc34fdecc8a121c4a87abb981212fb05945) ) | |
| 6110 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 6111 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 6112 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 6113 | ROM_LOAD( "a1.9a", 0x1000, 0x0800, CRC(24441ab3) SHA1(8c9d2bd062cb2360f3dd3df2d7d212e9485f91ad) ) | |
| 6114 | ROM_LOAD( "a3.9a", 0x1800, 0x0200, CRC(e0edccbd) SHA1(0839a4c9b6e863d12253ae8e1732e80e08702228) ) | |
| 6115 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 6116 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 6117 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 6118 | ||
| 6119 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6120 | // not present in this set | |
| 6121 | ROM_LOAD( "prom_6331.10f", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 6122 | ROM_END | |
| 6123 | ||
| 6124 | ||
| 6125 | ROM_START( fantazia ) | |
| 6126 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6127 | ROM_LOAD( "f01.bin", 0x0000, 0x0800, CRC(d3e23863) SHA1(f0a6f7491fdf8aae214f40078b29b7aecdcf2f1e) ) | |
| 6128 | ROM_LOAD( "f02.bin", 0x0800, 0x0800, CRC(63fa4149) SHA1(603ee6d4d2952cc08b3f6e98b1a2053671875e44) ) | |
| 6129 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 6130 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 6131 | ROM_LOAD( "f09.bin", 0x2000, 0x0800, CRC(75fd5ca1) SHA1(45f2dd33f0e437cb95d9373f86490e5432338737) ) | |
| 6132 | ROM_LOAD( "f10.bin", 0x2800, 0x0800, CRC(e4da2dd4) SHA1(7a53efd5b583f656c87b7d7a5ba7c239ced7d87b) ) | |
| 6133 | ROM_LOAD( "f11.bin", 0x3000, 0x0800, CRC(42869646) SHA1(a3640b2ace31ce99c056bc14d1d96f3404698d6a) ) | |
| 6134 | ROM_LOAD( "f12.bin", 0x3800, 0x0800, CRC(a48d7fb0) SHA1(6206036a9d85e87fb7f8a88c17bfe090fc70caf4) ) | |
| 6135 | ||
| 6136 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6137 | ROM_LOAD( "1h_1_10.bin", 0x0000, 0x0800, CRC(528da705) SHA1(d726ee18b79774c982f88afb2a508eb5d5783193) ) | |
| 6138 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 6139 | ROM_LOAD( "1k_1_11.bin", 0x1000, 0x0800, CRC(4e79ff6b) SHA1(f72386a3766a7fcc7b4b8cedfa58b8d57f911f6f) ) | |
| 6140 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 6141 | ||
| 6142 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6143 | ROM_LOAD( "fantazia.clr", 0x0000, 0x0020, CRC(a84ff0af) SHA1(c300dc937c608d2d1c113ca7a53c649472c72379) ) | |
| 6144 | ROM_END | |
| 6145 | ||
| 6146 | ROM_START( eagle ) | |
| 6147 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6148 | ROM_LOAD( "e1", 0x0000, 0x0800, CRC(224c9526) SHA1(4c014d60d4ee80de7f60b4609269461688c181d0) ) | |
| 6149 | ROM_LOAD( "e2", 0x0800, 0x0800, CRC(cc538ebd) SHA1(4ef3c7363e2dcd9ed99779039ccc50a9f2084dbd) ) | |
| 6150 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 6151 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 6152 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 6153 | ROM_LOAD( "e6", 0x2800, 0x0800, CRC(0dea20d5) SHA1(405b51d4e3b1065f78afd2297e075e977ae19196) ) | |
| 6154 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 6155 | ROM_LOAD( "e8", 0x3800, 0x0800, CRC(c437a876) SHA1(845941b873970ac62ba9bb6353bee53d0fcfa292) ) | |
| 6156 | ||
| 6157 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6158 | ROM_LOAD( "e10", 0x0000, 0x0800, CRC(40ce58bf) SHA1(67ea99e1afe4fff3e17252b22d11d3c96a416041) ) | |
| 6159 | ROM_LOAD( "e12", 0x0800, 0x0200, CRC(628fdeed) SHA1(a798530c65e639fbf00ed3a4e8c428935bf5f38e) ) | |
| 6160 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 6161 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 6162 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 6163 | ROM_LOAD( "e9", 0x1000, 0x0800, CRC(ba664099) SHA1(9509123bed02a9d47f2c056e1562b80206da5579) ) | |
| 6164 | ROM_LOAD( "e11", 0x1800, 0x0200, CRC(ee4ec5fd) SHA1(bf08b3f111f780dc8c81275e4e6247388183a8da) ) | |
| 6165 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 6166 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 6167 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 6168 | ||
| 6169 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6170 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 6171 | ROM_END | |
| 6172 | ||
| 6173 | ROM_START( eagle2 ) | |
| 6174 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6175 | ROM_LOAD( "e1.7f", 0x0000, 0x0800, CRC(45aab7a3) SHA1(52ae0463f363dc0964b976faa2c0c428d85a4f12) ) | |
| 6176 | ROM_LOAD( "e2", 0x0800, 0x0800, CRC(cc538ebd) SHA1(4ef3c7363e2dcd9ed99779039ccc50a9f2084dbd) ) | |
| 6177 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 6178 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 6179 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 6180 | ROM_LOAD( "e6.6", 0x2800, 0x0800, CRC(9f09f8c6) SHA1(47c600629e02357389dd78c7fcaec862e0da4ef0) ) | |
| 6181 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 6182 | ROM_LOAD( "e8", 0x3800, 0x0800, CRC(c437a876) SHA1(845941b873970ac62ba9bb6353bee53d0fcfa292) ) | |
| 6183 | ||
| 6184 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6185 | ROM_LOAD( "e10.2", 0x0000, 0x0800, CRC(25b38ebd) SHA1(f679c2f2cb5892680fec102fafbdfeae156ce373) ) | |
| 6186 | ROM_LOAD( "e12", 0x0800, 0x0200, CRC(628fdeed) SHA1(a798530c65e639fbf00ed3a4e8c428935bf5f38e) ) | |
| 6187 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 6188 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 6189 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 6190 | ROM_LOAD( "e9", 0x1000, 0x0800, CRC(ba664099) SHA1(9509123bed02a9d47f2c056e1562b80206da5579) ) | |
| 6191 | ROM_LOAD( "e11", 0x1800, 0x0200, CRC(ee4ec5fd) SHA1(bf08b3f111f780dc8c81275e4e6247388183a8da) ) | |
| 6192 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 6193 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 6194 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 6195 | ||
| 6196 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6197 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 6198 | ROM_END | |
| 6199 | ||
| 6200 | ROM_START( eagle3 ) | |
| 6201 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6202 | ROM_LOAD( "e1", 0x0000, 0x0800, CRC(224c9526) SHA1(4c014d60d4ee80de7f60b4609269461688c181d0) ) | |
| 6203 | ROM_LOAD( "e2", 0x0800, 0x0800, CRC(cc538ebd) SHA1(4ef3c7363e2dcd9ed99779039ccc50a9f2084dbd) ) | |
| 6204 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 6205 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 6206 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 6207 | ROM_LOAD( "e6", 0x2800, 0x0800, CRC(0dea20d5) SHA1(405b51d4e3b1065f78afd2297e075e977ae19196) ) | |
| 6208 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 6209 | ROM_LOAD( "e8", 0x3800, 0x0800, CRC(c437a876) SHA1(845941b873970ac62ba9bb6353bee53d0fcfa292) ) | |
| 6210 | ||
| 6211 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6212 | ROM_LOAD( "e10a", 0x0000, 0x0800, CRC(e3c63d4c) SHA1(ad2b22e316da6bb819c58934d51cd4b2819b18f0) ) | |
| 6213 | ROM_LOAD( "e12", 0x0800, 0x0200, CRC(628fdeed) SHA1(a798530c65e639fbf00ed3a4e8c428935bf5f38e) ) | |
| 6214 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 6215 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 6216 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 6217 | ROM_LOAD( "e9a", 0x1000, 0x0800, CRC(59429e47) SHA1(b7629c81d122fd1e4d390aa7abba44df898387d3) ) | |
| 6218 | ROM_LOAD( "e11", 0x1800, 0x0200, CRC(ee4ec5fd) SHA1(bf08b3f111f780dc8c81275e4e6247388183a8da) ) | |
| 6219 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 6220 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 6221 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 6222 | ||
| 6223 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6224 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 6225 | ROM_END | |
| 6226 | ||
| 6227 | ROM_START( spctbird ) | |
| 6228 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6229 | ROM_LOAD( "tssa-7f", 0x0000, 0x0800, CRC(45aab7a3) SHA1(52ae0463f363dc0964b976faa2c0c428d85a4f12) ) | |
| 6230 | ROM_LOAD( "tssa-7h", 0x0800, 0x0800, CRC(8b328f48) SHA1(d4f549e90e0bf1f546e2c3dc5a5a16e0415e709e) ) | |
| 6231 | ROM_LOAD( "tssa-7k", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 6232 | ROM_LOAD( "tssa-7m", 0x1800, 0x0800, CRC(99c9166d) SHA1(c108d84330bc958ff2812dc807e68c246a5a5ad5) ) | |
| 6233 | ROM_LOAD( "tssa-5", 0x2000, 0x0800, CRC(797b6261) SHA1(9a60e504e2aa0201b7311485c0dd411bbe2dc70b) ) | |
| 6234 | ROM_LOAD( "tssa-6", 0x2800, 0x0800, CRC(4825692c) SHA1(41a7e305c3d93f2245fb0413398d951eab9d16c0) ) | |
| 6235 | ROM_LOAD( "tssa-7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 6236 | ROM_LOAD( "tssa-8", 0x3800, 0x0800, CRC(c9b77b85) SHA1(00797f126b4cdacd9ec2df7e747aa1892933b8b8) ) | |
| 6237 | ||
| 6238 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6239 | ROM_LOAD( "tssb-2", 0x0000, 0x0800, CRC(7d23e1f2) SHA1(6902e44ff6f805a8d589c57b236e471b7fb609f8) ) | |
| 6240 | ROM_LOAD( "tssb-4", 0x0800, 0x0200, CRC(e4977833) SHA1(85aca9bccc6c1a5a2d792a9c4a77ee1b114934c9) ) | |
| 6241 | ROM_CONTINUE( 0x0c00, 0x0200 ) | |
| 6242 | ROM_CONTINUE( 0x0a00, 0x0200 ) | |
| 6243 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 6244 | ROM_LOAD( "tssb-1", 0x1000, 0x0800, CRC(9b9267c3) SHA1(2bbbff7a8a2d3e4524634de5e1c5a2426612c18f) ) | |
| 6245 | ROM_LOAD( "tssb-3", 0x1800, 0x0200, CRC(5ca5e233) SHA1(2115faecd07940547d0ee09776da6fcb1a008287) ) | |
| 6246 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 6247 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 6248 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 6249 | ||
| 6250 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6251 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 6252 | ROM_END | |
| 6253 | ||
| 6254 | ROM_START( skybase ) | |
| 6255 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6256 | ROM_LOAD( "skybase.9a", 0x0000, 0x1000, CRC(845b87a5) SHA1(8a249c1ec921532cb1bb85ed7fec11396634ca38) ) | |
| 6257 | ROM_LOAD( "skybase.8a", 0x1000, 0x1000, CRC(096785c2) SHA1(a0833bc1984e1f198587195e58b6fed6657922bd) ) | |
| 6258 | ROM_LOAD( "skybase.7a", 0x2000, 0x1000, CRC(d50c715b) SHA1(3d0fa15514b210bccd4aeed06540122a4f56fd7a) ) | |
| 6259 | ROM_LOAD( "skybase.6a", 0x3000, 0x1000, CRC(f57edb27) SHA1(4b5c376017700315345241fad96c00478a14fc8f) ) | |
| 6260 | ROM_LOAD( "skybase.5a", 0x4000, 0x1000, CRC(50365d95) SHA1(9b3d360c9d1df0ebf047bef1b30765ea9bb42b42) ) | |
| 6261 | ROM_LOAD( "skybase.4a", 0x5000, 0x1000, CRC(cbd6647f) SHA1(7a167c9df6b5f3346c37e5c45d0680b0b29852a6) ) | |
| 6262 | ||
| 6263 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6264 | ROM_LOAD( "skybase.7t", 0x0000, 0x1000, CRC(9b471686) SHA1(b35831daa8ce57e498c2c4f75763a74c340cfaf0) ) | |
| 6265 | ROM_LOAD( "skybase.8t", 0x1000, 0x1000, CRC(1cf723da) SHA1(f2e41ab89413298571626d13b2b5853eb35dcb96) ) | |
| 6266 | ROM_LOAD( "skybase.10t", 0x2000, 0x1000, CRC(fe02e72c) SHA1(bf7c078e984b13dcc12d529904f1096d65e41bec) ) | |
| 6267 | ROM_LOAD( "skybase.9t", 0x3000, 0x1000, CRC(0871291f) SHA1(2e4e802316b55711bcfeb48d84bacd11afff8cb3) ) | |
| 6268 | ||
| 6269 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6270 | ROM_LOAD( "82s123.bpr", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Color prom */ | |
| 6271 | ROM_END | |
| 6272 | ||
| 6273 | ROM_START( moonqsr ) | |
| 6274 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6275 | ROM_LOAD( "mq1", 0x0000, 0x0800, CRC(132c13ec) SHA1(d95166b025442f184e44a70312fb3b4f6366f324) ) | |
| 6276 | ROM_LOAD( "mq2", 0x0800, 0x0800, CRC(c8eb74f1) SHA1(4efa85c40349852da47a0f725ae06873efe4ce1c) ) | |
| 6277 | ROM_LOAD( "mq3", 0x1000, 0x0800, CRC(33965a89) SHA1(92912cea76a472d9b709c664d9818844a07fcc32) ) | |
| 6278 | ROM_LOAD( "mq4", 0x1800, 0x0800, CRC(a3861d17) SHA1(d7037d93b7838ccdd9a6a1a1476571cfa869fca1) ) | |
| 6279 | ROM_LOAD( "mq5", 0x2000, 0x0800, CRC(8bcf9c67) SHA1(7af0d9308d20c52675301acf5d1a5d62358352a6) ) | |
| 6280 | ROM_LOAD( "mq6", 0x2800, 0x0800, CRC(5750cda9) SHA1(17c2bc38037833fdb8923d4a2262264386ef916b) ) | |
| 6281 | ROM_LOAD( "mq7", 0x3000, 0x0800, CRC(78d7fe5b) SHA1(4085562a0af94c65dad2a3550409727e597c0d5b) ) | |
| 6282 | ROM_LOAD( "mq8", 0x3800, 0x0800, CRC(4919eed5) SHA1(526aaedd25e0f7c525eb7c66519218ae09b0407e) ) | |
| 6283 | ||
| 6284 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6285 | ||
| 6286 | ROM_LOAD( "mqb", 0x0000, 0x0800, CRC(b55ec806) SHA1(fb52e53dfa3ae9dec162622d22de9cfdb0b5f9d6) ) | |
| 6287 | ROM_LOAD( "mqd", 0x0800, 0x0800, CRC(9e7d0e13) SHA1(18951080d307ac13344f89745f671595e26d282c) ) | |
| 6288 | ROM_LOAD( "mqa", 0x1000, 0x0800, CRC(66eee0db) SHA1(eeb08efd226e15e248999558240488ffd0e39688) ) | |
| 6289 | ROM_LOAD( "mqc", 0x1800, 0x0800, CRC(a6db5b0d) SHA1(476e197df047e991d2ea3c1fad92c799510f1647) ) | |
| 6290 | ||
| 6291 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6292 | ROM_LOAD( "vid_e6.bin", 0x0000, 0x0020, CRC(0b878b54) SHA1(3667aca564ebfef5b88d7f74fabbd16dd23183b4) ) | |
| 6293 | ROM_END | |
| 6294 | ||
| 6295 | ROM_START( moonal2 ) | |
| 6296 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6297 | ROM_LOAD( "ali1", 0x0000, 0x0400, CRC(0dcecab4) SHA1(493628640de1a7e3bb9914ee3459b74cedc599fd) ) | |
| 6298 | ROM_LOAD( "ali2", 0x0400, 0x0400, CRC(c6ee75a7) SHA1(36503351380f7638069637c22bd06da06da54a1c) ) | |
| 6299 | ROM_LOAD( "ali3", 0x0800, 0x0400, CRC(cd1be7e9) SHA1(684f1923090f0d53338705f6972778712e27577f) ) | |
| 6300 | ROM_LOAD( "ali4", 0x0c00, 0x0400, CRC(83b03f08) SHA1(a1fd422051aa7f17f857188b503031cce3fdc275) ) | |
| 6301 | ROM_LOAD( "ali5", 0x1000, 0x0400, CRC(6f3cf61d) SHA1(e238ed6f9c0813f0177abe9090e29562529eeef8) ) | |
| 6302 | ROM_LOAD( "ali6", 0x1400, 0x0400, CRC(e169d432) SHA1(a5189d7322a240863afee7ac0ecf68599498cb87) ) | |
| 6303 | ROM_LOAD( "ali7", 0x1800, 0x0400, CRC(41f64b73) SHA1(dff786a74575da9fbaca3ac610ad2f367983c7fc) ) | |
| 6304 | ROM_LOAD( "ali8", 0x1c00, 0x0400, CRC(f72ee876) SHA1(8e50a516f10d77652ff3692bb85adb66bc128e26) ) | |
| 6305 | ROM_LOAD( "ali9", 0x2000, 0x0400, CRC(b7fb763c) SHA1(4e7c4995f52dec2ea61424c79d79797933dad604) ) | |
| 6306 | ROM_LOAD( "ali10", 0x2400, 0x0400, CRC(b1059179) SHA1(86de04c82a7604cb57958a52d5585837481f94a5) ) | |
| 6307 | ROM_LOAD( "ali11", 0x2800, 0x0400, CRC(9e79a1c6) SHA1(2f59e3a2a81a224b163b23bd2c184385f64e1565) ) | |
| 6308 | ||
| 6309 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6310 | ROM_LOAD( "ali13.1h", 0x0000, 0x0800, CRC(a1287bf6) SHA1(eeeaba4b9e186454a5e2f1c26e333e8fccd97af8) ) | |
| 6311 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 6312 | ROM_LOAD( "ali12.1k", 0x1000, 0x0800, CRC(528f1481) SHA1(e266a75c3109bcfa2a0394f2ed0ac136fc3158ba) ) | |
| 6313 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 6314 | ||
| 6315 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6316 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 6317 | ROM_END | |
| 6318 | ||
| 6319 | ROM_START( moonal2b ) | |
| 6320 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6321 | ROM_LOAD( "ali1", 0x0000, 0x0400, CRC(0dcecab4) SHA1(493628640de1a7e3bb9914ee3459b74cedc599fd) ) | |
| 6322 | ROM_LOAD( "ali2", 0x0400, 0x0400, CRC(c6ee75a7) SHA1(36503351380f7638069637c22bd06da06da54a1c) ) | |
| 6323 | ROM_LOAD( "md-2", 0x0800, 0x0800, CRC(8318b187) SHA1(75bb113db1111cd2a335139fa6cb94d9522f5860) ) | |
| 6324 | ROM_LOAD( "ali5", 0x1000, 0x0400, CRC(6f3cf61d) SHA1(e238ed6f9c0813f0177abe9090e29562529eeef8) ) | |
| 6325 | ROM_LOAD( "ali6", 0x1400, 0x0400, CRC(e169d432) SHA1(a5189d7322a240863afee7ac0ecf68599498cb87) ) | |
| 6326 | ROM_LOAD( "ali7", 0x1800, 0x0400, CRC(41f64b73) SHA1(dff786a74575da9fbaca3ac610ad2f367983c7fc) ) | |
| 6327 | ROM_LOAD( "ali8", 0x1c00, 0x0400, CRC(f72ee876) SHA1(8e50a516f10d77652ff3692bb85adb66bc128e26) ) | |
| 6328 | ROM_LOAD( "ali9", 0x2000, 0x0400, CRC(b7fb763c) SHA1(4e7c4995f52dec2ea61424c79d79797933dad604) ) | |
| 6329 | ROM_LOAD( "ali10", 0x2400, 0x0400, CRC(b1059179) SHA1(86de04c82a7604cb57958a52d5585837481f94a5) ) | |
| 6330 | ROM_LOAD( "md-6", 0x2800, 0x0800, CRC(9cc973e0) SHA1(8d96448794e0869036a3fac7f7fbcad459149a98) ) | |
| 6331 | ||
| 6332 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6333 | ROM_LOAD( "ali13.1h", 0x0000, 0x0800, CRC(a1287bf6) SHA1(eeeaba4b9e186454a5e2f1c26e333e8fccd97af8) ) | |
| 6334 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 6335 | ROM_LOAD( "ali12.1k", 0x1000, 0x0800, CRC(528f1481) SHA1(e266a75c3109bcfa2a0394f2ed0ac136fc3158ba) ) | |
| 6336 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 6337 | ||
| 6338 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6339 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 6340 | ROM_END | |
| 6341 | ||
| 6342 | ROM_START( supergx ) | |
| 6343 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6344 | ROM_LOAD( "sg1", 0x0000, 0x0800, CRC(b83f4578) SHA1(9a5d5fc291839f7f1e0a52cca7bea29e99c13315) ) | |
| 6345 | ROM_LOAD( "sg2", 0x0800, 0x0800, CRC(d12ca054) SHA1(8eb7f6904c3c650bfa80908a5988622d5e693bd1) ) | |
| 6346 | ROM_LOAD( "sg3", 0x1000, 0x0800, CRC(53714cb1) SHA1(7dffcd3ced1c3354339bb69477f8aa4c708708db) ) | |
| 6347 | ROM_LOAD( "sg4", 0x1800, 0x0800, CRC(2f36fc69) SHA1(d310dcb0a79b03ee26b0575db9cba6d920cb9273) ) | |
| 6348 | ROM_LOAD( "sg5", 0x2000, 0x0800, CRC(1e0ed4fd) SHA1(183d8990dbff1954921f8c5b67cec09f2d380794) ) | |
| 6349 | ROM_LOAD( "sg6", 0x2800, 0x0800, BAD_DUMP CRC(4f3d97a8) SHA1(b9fcab182ab57e8374fef93f7fd314a155a8d04d) ) | |
| 6350 | ||
| 6351 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6352 | ROM_LOAD( "sgg1", 0x0000, 0x0800, CRC(a1287bf6) SHA1(eeeaba4b9e186454a5e2f1c26e333e8fccd97af8) ) | |
| 6353 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 6354 | ROM_LOAD( "sgg2", 0x1000, 0x0800, CRC(528f1481) SHA1(e266a75c3109bcfa2a0394f2ed0ac136fc3158ba) ) | |
| 6355 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 6356 | ||
| 6357 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6358 | ROM_LOAD( "supergx.prm", 0x0000, 0x0020, NO_DUMP ) | |
| 6359 | ROM_END | |
| 6360 | ||
| 6361 | ROM_START( mshuttle ) | |
| 6362 | ROM_REGION( 2*0x10000, REGION_CPU1, 0 ) /* 64k for code + 64k for decrypted opcodes */ | |
| 6363 | ROM_LOAD( "my05", 0x0000, 0x1000, CRC(83574af1) SHA1(d69c2a0538a49d6c72c3346ac4e3959d91da6c98) ) | |
| 6364 | ROM_LOAD( "my04", 0x1000, 0x1000, CRC(1cfae2c8) SHA1(6c7eeee70e91b8498c41525dcc60f8086cff8da7) ) | |
| 6365 | ROM_LOAD( "my03", 0x2000, 0x1000, CRC(c8b8a368) SHA1(140ba60f55285d1e9f7a262634f5ce5c3470ab71) ) | |
| 6366 | ROM_LOAD( "my02", 0x3000, 0x1000, CRC(b6aeee6e) SHA1(032af7000aebe9d34319231cdb3f2fe5de7158ba) ) | |
| 6367 | ROM_LOAD( "my01", 0x4000, 0x1000, CRC(def82adc) SHA1(2fb963299468c52d50b7460b55bf69c9659ee21d) ) | |
| 6368 | ||
| 6369 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6370 | ROM_LOAD( "my09", 0x0000, 0x1000, CRC(3601b380) SHA1(c0b9d1801f58a16449708d514d2fd88e34af340b) ) | |
| 6371 | ROM_LOAD( "my11", 0x1000, 0x0800, CRC(b659e932) SHA1(3f63c99e81cb93c9553a5e274546525f598d50c4) ) | |
| 6372 | ROM_LOAD( "my08", 0x2000, 0x1000, CRC(992b06cd) SHA1(8645ccad8169601bbe25b9f2b17b99004c0a584f) ) | |
| 6373 | ROM_LOAD( "my10", 0x3000, 0x0800, CRC(d860e6ce) SHA1(2912d13bf69496f8f18358a36366a1f60afd0070) ) | |
| 6374 | ||
| 6375 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6376 | ROM_LOAD( "mscprom1.bin", 0x0000, 0x0020, CRC(ea0d1af0) SHA1(cb59e04c02307dfe847e3170cf0a7f62829b6094) ) | |
| 6377 | ||
| 6378 | ROM_REGION( 0x2000, REGION_SOUND1, 0 ) /* samples */ | |
| 6379 | ROM_LOAD( "my07", 0x0000, 0x1000, CRC(522a2920) SHA1(a64d821a8ff6bd6e2b0bdb1e632181e65a97363b) ) | |
| 6380 | ROM_LOAD( "my06", 0x1000, 0x1000, CRC(466415f2) SHA1(a05f8238cdcebe926a564ef6268b3cd677987fa2) ) | |
| 6381 | ROM_END | |
| 6382 | ||
| 6383 | ROM_START( mshuttlj ) | |
| 6384 | ROM_REGION( 2*0x10000, REGION_CPU1, 0 ) /* 64k for code + 64k for decrypted opcodes */ | |
| 6385 | ROM_LOAD( "mcs.5", 0x0000, 0x1000, CRC(a5a292b4) SHA1(b4e9d969c762f4114eba88051917df122fc7181f) ) | |
| 6386 | ROM_LOAD( "mcs.4", 0x1000, 0x1000, CRC(acdc0f9e) SHA1(8cd6d6566fe3f4090ccb625c3c1e5850a371826f) ) | |
| 6387 | ROM_LOAD( "mcs.3", 0x2000, 0x1000, CRC(c1e3f5d8) SHA1(d3af89d485b1ca21ac879dbe15490dcd1cd64f2a) ) | |
| 6388 | ROM_LOAD( "mcs.2", 0x3000, 0x1000, CRC(14577703) SHA1(51537982dd06ba44e95e4c7d1f7fa41ff186421d) ) | |
| 6389 | ||
| 6390 | ROM_LOAD( "mcs.1", 0x4000, 0x1000, CRC(27d46772) SHA1(848a47ba30823a55933bb55792991f0535078f0c) ) | |
| 6391 | ||
| 6392 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6393 | ROM_LOAD( "my09", 0x0000, 0x1000, CRC(3601b380) SHA1(c0b9d1801f58a16449708d514d2fd88e34af340b) ) | |
| 6394 | ROM_LOAD( "my11", 0x1000, 0x0800, CRC(b659e932) SHA1(3f63c99e81cb93c9553a5e274546525f598d50c4) ) | |
| 6395 | ROM_LOAD( "my08", 0x2000, 0x1000, CRC(992b06cd) SHA1(8645ccad8169601bbe25b9f2b17b99004c0a584f) ) | |
| 6396 | ROM_LOAD( "my10", 0x3000, 0x0800, CRC(d860e6ce) SHA1(2912d13bf69496f8f18358a36366a1f60afd0070) ) | |
| 6397 | ||
| 6398 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6399 | ROM_LOAD( "mscprom1.bin", 0x0000, 0x0020, CRC(ea0d1af0) SHA1(cb59e04c02307dfe847e3170cf0a7f62829b6094) ) | |
| 6400 | ||
| 6401 | ROM_REGION( 0x2000, REGION_SOUND1, 0 ) /* samples */ | |
| 6402 | ROM_LOAD( "my07", 0x0000, 0x1000, CRC(522a2920) SHA1(a64d821a8ff6bd6e2b0bdb1e632181e65a97363b) ) | |
| 6403 | ROM_LOAD( "my06", 0x1000, 0x1000, CRC(466415f2) SHA1(a05f8238cdcebe926a564ef6268b3cd677987fa2) ) | |
| 6404 | ROM_END | |
| 6405 | ||
| 6406 | ROM_START( mshutlj2 ) | |
| 6407 | ROM_REGION( 2*0x10000, REGION_CPU1, 0 ) /* 64k for code + 64k for decrypted opcodes */ | |
| 6408 | ROM_LOAD( "ali5.bin", 0x0000, 0x1000, CRC(320fe630) SHA1(df4fe25989783c8851f41c9b4b63dedfa365c1e9) ) | |
| 6409 | ROM_LOAD( "mcs.4", 0x1000, 0x1000, CRC(acdc0f9e) SHA1(8cd6d6566fe3f4090ccb625c3c1e5850a371826f) ) | |
| 6410 | ROM_LOAD( "mcs.3", 0x2000, 0x1000, CRC(c1e3f5d8) SHA1(d3af89d485b1ca21ac879dbe15490dcd1cd64f2a) ) | |
| 6411 | ROM_LOAD( "ali2.bin", 0x3000, 0x1000, CRC(9ed169e1) SHA1(75a24d0fcbdfc7c4e6fa0d8c7f8b4a3bccaa4439) ) | |
| 6412 | ||
| 6413 | ROM_LOAD( "ali1.bin", 0x4000, 0x1000, CRC(7f8a52d9) SHA1(4e62f6265289bae1a46e60cdd3230e188b2aec3c) ) | |
| 6414 | ||
| 6415 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6416 | ROM_LOAD( "my09", 0x0000, 0x1000, CRC(3601b380) SHA1(c0b9d1801f58a16449708d514d2fd88e34af340b) ) | |
| 6417 | ROM_LOAD( "my11", 0x1000, 0x0800, CRC(b659e932) SHA1(3f63c99e81cb93c9553a5e274546525f598d50c4) ) | |
| 6418 | ROM_LOAD( "my08", 0x2000, 0x1000, CRC(992b06cd) SHA1(8645ccad8169601bbe25b9f2b17b99004c0a584f) ) | |
| 6419 | ROM_LOAD( "my10", 0x3000, 0x0800, CRC(d860e6ce) SHA1(2912d13bf69496f8f18358a36366a1f60afd0070) ) | |
| 6420 | ||
| 6421 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6422 | ROM_LOAD( "mscprom1.bin", 0x0000, 0x0020, CRC(ea0d1af0) SHA1(cb59e04c02307dfe847e3170cf0a7f62829b6094) ) | |
| 6423 | ||
| 6424 | ROM_REGION( 0x2000, REGION_SOUND1, 0 ) /* samples */ | |
| 6425 | ROM_LOAD( "my07", 0x0000, 0x1000, CRC(522a2920) SHA1(a64d821a8ff6bd6e2b0bdb1e632181e65a97363b) ) | |
| 6426 | ROM_LOAD( "my06", 0x1000, 0x1000, CRC(466415f2) SHA1(a05f8238cdcebe926a564ef6268b3cd677987fa2) ) | |
| 6427 | ROM_END | |
| 6428 | ||
| 6429 | ROM_START( kingball ) | |
| 6430 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6431 | ROM_LOAD( "prg1.7f", 0x0000, 0x1000, CRC(6cb49046) SHA1(a0891605dff7f9ff51bc7ad85f831a749f2f61e9) ) | |
| 6432 | ROM_LOAD( "prg2.7j", 0x1000, 0x1000, CRC(c223b416) SHA1(ca2d9f6b8ef6db4f382089161f4147d9828c3554) ) | |
| 6433 | ROM_LOAD( "prg3.7l", 0x2000, 0x0800, CRC(453634c0) SHA1(0025ccd91e165692092a37541e730010e85e37f2) ) | |
| 6434 | ||
| 6435 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 6436 | ROM_LOAD( "kbe1.ic4", 0x0000, 0x0800, CRC(5be2c80a) SHA1(f719a80357bed3d66bce40569690f419740148c5) ) | |
| 6437 | ROM_LOAD( "kbe2.ic5", 0x0800, 0x0800, CRC(bb59e965) SHA1(830e0c415f051e932d76df604025e4e33118a799) ) | |
| 6438 | ROM_LOAD( "kbe3.ic6", 0x1000, 0x0800, CRC(1c94dd31) SHA1(14ab59b8eee741eb1f10ae99ddb99bf7c2dab957) ) | |
| 6439 | ROM_LOAD( "kbe2.ic7", 0x1800, 0x0800, CRC(bb59e965) SHA1(830e0c415f051e932d76df604025e4e33118a799) ) | |
| 6440 | ||
| 6441 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6442 | ROM_LOAD( "chg1.1h", 0x0000, 0x0800, CRC(9cd550e7) SHA1(d2989e6b7a4d7b37a711ef1cfb536fe13e0c5482) ) | |
| 6443 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 6444 | ROM_LOAD( "chg2.1k", 0x1000, 0x0800, CRC(a206757d) SHA1(46b50005876b7f61ab4a118d0a4caaebce8ce3e1) ) | |
| 6445 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 6446 | ||
| 6447 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6448 | ROM_LOAD( "kb2-1", 0x0000, 0x0020, CRC(15dd5b16) SHA1(3d2ca2b42bf508a9e5198e970abcbbedf5729164) ) | |
| 6449 | ROM_END | |
| 6450 | ||
| 6451 | ROM_START( kingbalj ) | |
| 6452 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6453 | ROM_LOAD( "prg1.7f", 0x0000, 0x1000, CRC(6cb49046) SHA1(a0891605dff7f9ff51bc7ad85f831a749f2f61e9) ) | |
| 6454 | ROM_LOAD( "prg2.7j", 0x1000, 0x1000, CRC(c223b416) SHA1(ca2d9f6b8ef6db4f382089161f4147d9828c3554) ) | |
| 6455 | ROM_LOAD( "prg3.7l", 0x2000, 0x0800, CRC(453634c0) SHA1(0025ccd91e165692092a37541e730010e85e37f2) ) | |
| 6456 | ||
| 6457 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 6458 | ROM_LOAD( "kbj1.ic4", 0x0000, 0x0800, CRC(ba16beb7) SHA1(8c2c91a9e941d858a49edd6c0c8a912e1135653e) ) | |
| 6459 | ROM_LOAD( "kbj2.ic5", 0x0800, 0x0800, CRC(56686a63) SHA1(8e624df57a63a556941fdbebcd886488799fad17) ) | |
| 6460 | ROM_LOAD( "kbj3.ic6", 0x1000, 0x0800, CRC(fbc570a5) SHA1(d0dbaf86396bca65e067338a3b5b60b24990b8be) ) | |
| 6461 | ROM_LOAD( "kbj2.ic7", 0x1800, 0x0800, CRC(56686a63) SHA1(8e624df57a63a556941fdbebcd886488799fad17) ) | |
| 6462 | ||
| 6463 | ||
| 6464 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6465 | ROM_LOAD( "chg1.1h", 0x0000, 0x0800, CRC(9cd550e7) SHA1(d2989e6b7a4d7b37a711ef1cfb536fe13e0c5482) ) | |
| 6466 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 6467 | ROM_LOAD( "chg2.1k", 0x1000, 0x0800, CRC(a206757d) SHA1(46b50005876b7f61ab4a118d0a4caaebce8ce3e1) ) | |
| 6468 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 6469 | ||
| 6470 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6471 | ROM_LOAD( "kb2-1", 0x0000, 0x0020, CRC(15dd5b16) SHA1(3d2ca2b42bf508a9e5198e970abcbbedf5729164) ) | |
| 6472 | ROM_END | |
| 6473 | ||
| 6474 | ROM_START( scorpnmc ) | |
| 6475 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6476 | ROM_LOAD( "p1.bin", 0x0000, 0x0800, CRC(58818d88) SHA1(d9fbfb6fff9ba1d078c3735889b8878ab0442ded) ) | |
| 6477 | ROM_LOAD( "p2.bin", 0x0800, 0x0800, CRC(8bec5f9f) SHA1(78642124edbf946140f62985bafe2dca314cb257) ) | |
| 6478 | ROM_LOAD( "p3.bin", 0x1000, 0x0800, CRC(24b7fdff) SHA1(1382199c85af3aa101b4ca01a0b096d801bc61a6) ) | |
| 6479 | ROM_LOAD( "p4.bin", 0x1800, 0x0800, CRC(9082e2f0) SHA1(8e3beebca33e73901cb8c4fa0af39a299b831d32) ) | |
| 6480 | ROM_LOAD( "p5.bin", 0x2000, 0x0800, CRC(20387fc0) SHA1(1aa2f16fb1630e65fd8aaedd21d8e4bac343678b) ) | |
| 6481 | ROM_LOAD( "p6.bin", 0x2800, 0x0800, CRC(f66c48e1) SHA1(bbfd68309d1f6b6bb3ec0879c8bde80b3f30fa02) ) | |
| 6482 | ROM_LOAD( "p7.bin", 0x3000, 0x0800, CRC(931e34c7) SHA1(8b6c1099634b5d693faab9edf5e29b3c476c7f52) ) | |
| 6483 | ROM_LOAD( "p8.bin", 0x3800, 0x0800, CRC(ab5ab61d) SHA1(eb78d7dc8d424f6ed4f7cbec02485cd769bac5c6) ) | |
| 6484 | ROM_LOAD( "p9.bin", 0x5000, 0x1000, CRC(b551b974) SHA1(c19e61dd8b6daf808ba42fa318dfd179a020d20e) ) | |
| 6485 | ROM_LOAD( "p10.bin", 0x6000, 0x0800, CRC(a7bd8d20) SHA1(c8131279de58298546c5af2c34ff18116c3a2d3b) ) | |
| 6486 | ||
| 6487 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6488 | ROM_LOAD( "h.bin", 0x0000, 0x1000, CRC(1e5da9d6) SHA1(ca8b27e6dd40e4ca13e7e6b5f813bafca78b62f4) ) | |
| 6489 | ROM_LOAD( "k.bin", 0x1000, 0x1000, CRC(a57adb0a) SHA1(d97c7dc4a6c5efb59cc0148e2498156c682c6714) ) | |
| 6490 | ||
| 6491 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6492 | ROM_LOAD( "mmi6331.bpr", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 6493 | ROM_END | |
| 6494 | ||
| 6495 | ROM_START( frogg ) | |
| 6496 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6497 | ROM_LOAD( "p1.bin", 0x0000, 0x0800, CRC(1762b266) SHA1(2cf34dcfe00dc476b327f9d762a8d2aa268a2d25) ) | |
| 6498 | ROM_LOAD( "p2.bin", 0x0800, 0x0800, CRC(322f3916) SHA1(9236aaa260c4db4adbd92c8bba3674d07d7235a8) ) | |
| 6499 | ROM_LOAD( "p3.bin", 0x1000, 0x0800, CRC(28bd6151) SHA1(1a5bc540168fa5fef01bd7bc2cdbdb910c9a4ba4) ) | |
| 6500 | ROM_LOAD( "p4.bin", 0x1800, 0x0800, CRC(5a69ab18) SHA1(40b7bf200f87e0fb3fb54726ba79387889446052) ) | |
| 6501 | ROM_LOAD( "p5.bin", 0x2000, 0x0800, CRC(b4f17745) SHA1(2f237a667f6c95af213b787620142c1530d3cdd8) ) | |
| 6502 | ROM_LOAD( "p6.bin", 0x2800, 0x0800, CRC(34be71b5) SHA1(3088fc5817a397d0a87610d62845c7b8c4440f57) ) | |
| 6503 | ROM_LOAD( "p7.bin", 0x3000, 0x0800, CRC(de3edc8c) SHA1(634d54fb19b422b56576a196bdaf95733c52c7ee) ) | |
| 6504 | ||
| 6505 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6506 | ROM_LOAD( "k.bin", 0x0000, 0x0800, CRC(05f7d883) SHA1(78831fd287da18928651a8adb7e578d291493eff) ) | |
| 6507 | ROM_LOAD( "h.bin", 0x0800, 0x0800, CRC(658745f8) SHA1(e4e5c3e011c8a7233a36d29e10e08905873500aa) ) | |
| 6508 | ||
| 6509 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6510 | ROM_LOAD( "pr-91.6l", 0x0000, 0x0020, CRC(413703bf) SHA1(66648b2b28d3dcbda5bdb2605d1977428939dd3c) ) | |
| 6511 | ROM_END | |
| 6512 | ||
| 6513 | ROM_START( 4in1 ) | |
| 6514 | ROM_REGION( 0x20000, REGION_CPU1, 0 ) /* 64k for code 64k for banked code, encrypted */ | |
| 6515 | /* Menu Code, Fixed at 0xc000 - 0xdfff */ | |
| 6516 | ROM_LOAD( "rom1a", 0xc000, 0x1000, CRC(ce1af4d9) SHA1(260d81cb703ab33fa5f282454214dea06e59a5d6) ) | |
| 6517 | ROM_LOAD( "rom1b", 0xd000, 0x1000, CRC(18484f9b) SHA1(2439841ba5882c287bd9656fbf79190ff9efe4ee) ) | |
| 6518 | /* Ghost Muncher PT3 - banked at 0x0000 - 0x3fff */ | |
| 6519 | ROM_LOAD( "rom1c", 0x10000, 0x1000, CRC(83248a8b) SHA1(65af22b9a4516ab52c3327cb3b714d90c2c77284) ) | |
| 6520 | ROM_LOAD( "rom1d", 0x11000, 0x1000, CRC(053f6da0) SHA1(fa69de09a2162dfaa82ea566f0808433f26e4854) ) | |
| 6521 | ROM_LOAD( "rom1e", 0x12000, 0x1000, CRC(43c546f3) SHA1(c32a2281f8dca1f2b218dc76192d8e09f2eee460) ) | |
| 6522 | ROM_LOAD( "rom1f", 0x13000, 0x1000, CRC(3a086b46) SHA1(1fd65fd139a650a5c246cead5141b81764faf98c) ) | |
| 6523 | /* Scramble PT2 - banked at 0x0000 - 0x3fff */ | |
| 6524 | ROM_LOAD( "rom1g", 0x14000, 0x1000, CRC(ac0e2050) SHA1(02961a41f54d55f2ae07a2694a14fb6e6e4a766b) ) | |
| 6525 | ROM_LOAD( "rom1h", 0x15000, 0x1000, CRC(dc11a513) SHA1(2785c08d890f2f8e86b7f793f7989d7605570cc3) ) | |
| 6526 | ROM_LOAD( "rom1i", 0x16000, 0x1000, CRC(a5fb6be4) SHA1(f575ca70037134084aff152fcee7fdd0a1163c33) ) | |
| 6527 | ROM_LOAD( "rom1j", 0x17000, 0x1000, CRC(9054cfbe) SHA1(99ad74491cf8682daf45f2786e0bf275160c9826) ) | |
| 6528 | /* Galaxian PT5 - banked at 0x0000 - 0x3fff */ | |
| 6529 | ROM_LOAD( "rom2c", 0x18000, 0x1000, CRC(7cd98e11) SHA1(7ef49866a5c5fd871acf5bfe3d899a9ae0d37405) ) | |
| 6530 | ROM_LOAD( "rom2d", 0x19000, 0x1000, CRC(9402f32e) SHA1(feb5cb09ea719612a22949f34fb97e172305c7b0) ) | |
| 6531 | ROM_LOAD( "rom2e", 0x1a000, 0x1000, CRC(468e81df) SHA1(4ac30c170ce63637c77227833cef8839e2b0b8ab) ) | |
| 6532 | /* Galactic Convoy - banked at 0x0000 - 0x3fff */ | |
| 6533 | ROM_LOAD( "rom2g", 0x1c000, 0x1000, CRC(b1ce3976) SHA1(365e643948e982126198714bb1e07340ded7d4a5) ) | |
| 6534 | ROM_LOAD( "rom2h", 0x1d000, 0x1000, CRC(7eab5670) SHA1(d9648fc314bc6a685536c6acb17b17737813d902) ) | |
| 6535 | ROM_LOAD( "rom2i", 0x1e000, 0x1000, CRC(44565ac5) SHA1(cc8141cbdb9280a15b40761448e00a3b30a94ec7) ) | |
| 6536 | ||
| 6537 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6538 | /* Ghost Muncher PT3 GFX */ | |
| 6539 | ROM_LOAD( "rom4b", 0x4000, 0x0800, CRC(7e6495af) SHA1(32db70bca5c60eea6b37a943e076bc5a8dc3870b) ) | |
| 6540 | ROM_CONTINUE( 0x0000, 0x0800 ) | |
| 6541 | ROM_LOAD( "rom3b", 0x6000, 0x0800, CRC(7475f72f) SHA1(834873b6a587760cbbd0ac9435af55f6cb20097a) ) | |
| 6542 | ROM_CONTINUE( 0x2000, 0x0800 ) | |
| 6543 | /* Scramble PT2 GFX */ | |
| 6544 | ROM_LOAD( "rom4c", 0x4800, 0x0800, CRC(3355d46d) SHA1(e5476d2053298958f141e11a97017ea465621d89) ) | |
| 6545 | ROM_RELOAD( 0x0800, 0x0800) | |
| 6546 | ROM_LOAD( "rom3c", 0x6800, 0x0800, CRC(ac755a25) SHA1(70af05d32554682be6c3f74936e57b4050d283c7) ) | |
| 6547 | ROM_RELOAD( 0x2800, 0x0800) | |
| 6548 | /* Galaxians PT5 GFX */ | |
| 6549 | ROM_LOAD( "rom4d", 0x5000, 0x0800, CRC(bbdddb65) SHA1(fc2dcfd969b1ee51a6413117e83f8a0c29278658) ) | |
| 6550 | ROM_CONTINUE( 0x1000, 0x0800) | |
| 6551 | ROM_LOAD( "rom3d", 0x7000, 0x0800, CRC(91a00204) SHA1(eea8a8bd8439260dde9131693e9b53b0238ce7a7) ) | |
| 6552 | ROM_CONTINUE( 0x3000, 0x0800) | |
| 6553 | /* Galactic Convoy GFX */ | |
| 6554 | ROM_LOAD( "rom4e", 0x5800, 0x0800, CRC(0cb9e297) SHA1(a9be2951851deed0ffefb980fc7751a399dc131e) ) | |
| 6555 | ROM_CONTINUE( 0x1800, 0x0800 ) | |
| 6556 | ROM_LOAD( "rom3e", 0x7800, 0x0800, CRC(a1fe77f9) SHA1(dc7972b7aa77fb4f95d7349d4cd7fc4674f9032d) ) | |
| 6557 | ROM_CONTINUE( 0x3800, 0x0800 ) | |
| 6558 | ||
| 6559 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6560 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 6561 | ROM_END | |
| 6562 | ||
| 6563 | ROM_START( bagmanmc ) | |
| 6564 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6565 | ROM_LOAD( "b1.bin", 0x0000, 0x1000, CRC(b74c75ee) SHA1(620083c30136e24a37b79eb4647d99b997107693) ) | |
| 6566 | ROM_LOAD( "b2.bin", 0x1000, 0x1000, CRC(a7d99916) SHA1(13185e8ff6de92ad5135895e5a7fc8b956f009d3) ) | |
| 6567 | ROM_LOAD( "b3.bin", 0x2000, 0x1000, CRC(c78f5360) SHA1(7ce9e94c33f1b8e60cc12a3df5f9555f1ca6130f) ) | |
| 6568 | ROM_LOAD( "b4.bin", 0x3000, 0x1000, CRC(eebd3bd1) SHA1(03200383e87b0759f607888d9b290a0a777b597e) ) | |
| 6569 | ROM_LOAD( "b5.bin", 0x4000, 0x1000, CRC(0fe24b8c) SHA1(205a36fd346d49d2dda6911198295e202caae81f) ) | |
| 6570 | ROM_LOAD( "b6.bin", 0x5000, 0x1000, CRC(f50390e7) SHA1(b4ebe647458c26e52461750d63856aea4262f110) ) | |
| 6571 | ||
| 6572 | ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6573 | ROM_LOAD( "g1-u.bin", 0x0000, 0x0800, CRC(b63cfae4) SHA1(3e0cb3dbeec8ad790bc482176ca599721bac31ee) ) | |
| 6574 | ROM_CONTINUE( 0x2000, 0x0800 ) | |
| 6575 | ROM_LOAD( "g2-u.bin", 0x1000, 0x0800, CRC(a2790089) SHA1(7eb8634f26f6af52fb79bf90ec90b4e258c7c79f) ) | |
| 6576 | ROM_CONTINUE( 0x2800, 0x0800 ) | |
| 6577 | ROM_LOAD( "g1-l.bin", 0x0800, 0x0800, CRC(2ae6b5ab) SHA1(59bdebf75d28a247293440ec2ad83eaf30e3de00) ) | |
| 6578 | ROM_LOAD( "g2-l.bin", 0x1800, 0x0800, CRC(98b37397) SHA1(29914435a10cebbbce04382c45e13a64a0cd18cb) ) | |
| 6579 | ||
| 6580 | ||
| 6581 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6582 | ROM_LOAD( "bagmanmc.clr", 0x0000, 0x0020, NO_DUMP ) // missing | |
| 6583 | ROM_END | |
| 6584 | ||
| 6585 | ROM_START( dkongjrm ) | |
| 6586 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6587 | ROM_LOAD( "a1", 0x0000, 0x1000, CRC(299486e9) SHA1(cc4143ff8cb7a37c151bebab007a932381ae733b) ) | |
| 6588 | ROM_LOAD( "a2", 0x1000, 0x1000, CRC(a74a193b) SHA1(46f208293c0944b468550738d1238de9b672f403) ) | |
| 6589 | ROM_LOAD( "b2", 0x2000, 0x1000, CRC(7bc4f236) SHA1(84e7f5fcbea7d047f2a9a9006ae3ed646417c5e0) ) | |
| 6590 | ROM_LOAD( "c1", 0x3000, 0x1000, CRC(0f594c21) SHA1(eb15bd9cc37794786e2ad24753172e88aa7c4f98) ) | |
| 6591 | ROM_LOAD( "d1", 0x4000, 0x1000, CRC(cf7d7296) SHA1(9a817eca2ebef3f5208bb29ee7eece2ec0efe158) ) | |
| 6592 | ROM_LOAD( "e2", 0x5000, 0x1000, CRC(f7528a52) SHA1(e9d3c57934ee97fcc1f17ecdf3bc954574212220) ) | |
| 6593 | ROM_LOAD( "f1", 0x7000, 0x1000, CRC(9b1d4cc5) SHA1(9a412fec82f39b9389ff99cceba2e49b2a74df17) ) | |
| 6594 | ||
| 6595 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6596 | ROM_LOAD( "v_3pa.bin", 0x0000, 0x1000, CRC(4974ffef) SHA1(7bb1e207dd3c5214e405bf32c57ec1b048061050) ) | |
| 6597 | ROM_LOAD( "a2.gfx", 0x1000, 0x1000, CRC(51845eaf) SHA1(43970d69329f3d49ea1ff57d54abe8340ceef275) ) | |
| 6598 | ROM_LOAD( "v_3na.bin", 0x2000, 0x1000, CRC(a95c4c63) SHA1(75e312b6872958f3bfc7bafd0743efdf7a74e8f0) ) | |
| 6599 | ROM_LOAD( "b2.gfx", 0x3000, 0x1000, CRC(7b39c3d0) SHA1(4b8cebb4cdaaca9e1b6fd378f6c390ab05984590) ) | |
| 6600 | ||
| 6601 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6602 | ROM_LOAD( "hustler.clr", 0x0000, 0x0020, CRC(aa1f7f5e) SHA1(311dd17aa11490a1173c76223e4ccccf8ea29850) ) | |
| 6603 | ROM_END | |
| 6604 | ||
| 6605 | ROM_START( rockclim ) | |
| 6606 | ||
| 6607 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6608 | ROM_LOAD( "lc01.a1", 0x0000, 0x1000, CRC(8601ae8d) SHA1(6e0c3b34ce5e6879ce7a116c5c2660889a68320d) ) | |
| 6609 | ROM_LOAD( "lc02.a2", 0x1000, 0x1000, CRC(2dde9d4c) SHA1(7e343113116b94894558819a7f77f77e4e952da7) ) | |
| 6610 | ROM_LOAD( "lc03.a3", 0x2000, 0x1000, CRC(82c48a67) SHA1(abf95062eb5c9bd4bb3c9b9af59396a4ca6905d8) ) | |
| 6611 | ROM_LOAD( "lc04.a4", 0x3000, 0x1000, CRC(7cd3a04a) SHA1(756c12288e120e6f761b266b91920d17cab6926c) ) | |
| 6612 | ROM_LOAD( "lc05.a5", 0x6000, 0x1000, CRC(5e542149) SHA1(425a5a8769c3fa0887db8ff04e2a4f32f18d2679) ) | |
| 6613 | ROM_LOAD( "lc06.a6", 0x7000, 0x1000, CRC(b2bdca64) SHA1(e72e63725164c922816dda90ac964a94062eab1b) ) | |
| 6614 | ||
| 6615 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6616 | ROM_LOAD( "lc08.a9", 0x0000, 0x800, CRC(7f18e1ef) SHA1(2a160b994708ec0f06774dde3ec613af7e3f32c6) ) | |
| 6617 | ROM_LOAD( "lc07.a7", 0x0800, 0x800, CRC(f18b50ac) SHA1(a2328eb55882a09403cae1a497c611b494649cac) ) | |
| 6618 | ROM_LOAD( "lc10.c9", 0x1000, 0x800, CRC(dec5781b) SHA1(b6277fc890d153db24bd48293780cf239a6aa0e7) ) | |
| 6619 | ROM_LOAD( "lc09.c7", 0x1800, 0x800, CRC(06c0b5de) SHA1(561cf99a6be03205c7bc5fd15d4d51ee4d6d164b) ) | |
| 6620 | ||
| 6621 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 6622 | ROM_LOAD( "lc13.g5", 0x0000, 0x1000, CRC(19475f2b) SHA1(5d42aa45a7b519dacdecd3d2edbfee6971693034) ) | |
| 6623 | ROM_LOAD( "lc14.g7", 0x1000, 0x1000, CRC(cc96d1db) SHA1(9713b47b723a5d8837f2a8e8c43e46dc41a62e5b) ) | |
| 6624 | ||
| 6625 | ROM_REGION( 0x0040, REGION_PROMS, 0 ) | |
| 6626 | ROM_LOAD( "lc12.e9", 0x0000, 0x0020, CRC(f6e76547) SHA1(c9ea78d1876156561b3bbf327d7e0299e1d9fd4a) ) | |
| 6627 | ROM_LOAD( "lc11.f4", 0x0020, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 6628 | ROM_END | |
| 6629 | ||
| 6630 | ROM_START( ozon1 ) | |
| 6631 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6632 | ROM_LOAD( "rom1.bin", 0x0000, 0x1000, CRC(54899e8b) SHA1(270af76ae4396ebda767f160535fa77c0b49726a) ) | |
| 6633 | ROM_LOAD( "rom2.bin", 0x1000, 0x1000, CRC(3c90fbfc) SHA1(92da614dba3a644eac144bb0ed434d78a31fcb1a) ) | |
| 6634 | ROM_LOAD( "rom3.bin", 0x2000, 0x1000, CRC(79fe313b) SHA1(ef8fd70f5669b7e7d7184eca2baaddcecb55c22d) ) | |
| 6635 | ||
| 6636 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6637 | ROM_LOAD( "rom7.bin", 0x0000, 0x0800, CRC(464285e8) SHA1(fff36b034b95050219c70cdfe05ff3bbc452b73e) ) | |
| 6638 | ROM_LOAD( "rom8.bin", 0x0800, 0x0800, CRC(92056dcc) SHA1(b162da8701bfee465205e8f274ee494063c52c7b) ) | |
| 6639 | ||
| 6640 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6641 | ROM_LOAD( "ozon1.clr", 0x0000, 0x0020, CRC(605ea6e9) SHA1(d3471e6ef756059c2f7feb32fb8e41181cc1718e) ) | |
| 6642 | ROM_END | |
| 6643 | ||
| 6644 | ROM_START( ladybugg ) | |
| 6645 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6646 | ROM_LOAD( "lbuggx.1", 0x0000, 0x0800, CRC(e67e241d) SHA1(42b8eaca71c6b346ab54bc722850d6e6d169c517) ) | |
| 6647 | ROM_LOAD( "lbuggx.2", 0x0800, 0x0800, CRC(3cb1fb9a) SHA1(ee76758c94329dfcc740571195a74d9242aaf49f) ) | |
| 6648 | ROM_LOAD( "lbuggx.3", 0x1000, 0x0800, CRC(0937009e) SHA1(ef57ebf3d6ab3d6ac0e1faa10c3109d2c80a1248) ) | |
| 6649 | ROM_LOAD( "lbuggx.4", 0x1800, 0x0800, CRC(3e773f62) SHA1(6348e61f48e5d1f04289098c4c0395335ea5e2a5) ) | |
| 6650 | ROM_LOAD( "lbuggx.5", 0x2000, 0x0800, CRC(2b0d42e5) SHA1(1547b8127f964eb10862b566f5779f8011c3441d) ) | |
| 6651 | ROM_LOAD( "lbuggx.6", 0x2800, 0x0800, CRC(159f9433) SHA1(93341a4de1e1e4a3fb004019fc1edba73db6a4c8) ) | |
| 6652 | ROM_LOAD( "lbuggx.7", 0x3000, 0x0800, CRC(f2be06d5) SHA1(1354332d2d107ad810aa2e261b595285394dfb49) ) | |
| 6653 | ROM_LOAD( "lbuggx.8", 0x3800, 0x0800, CRC(646fe79f) SHA1(03223d6c4f9050fd6c1c313f0e366ab4989feca4) ) | |
| 6654 | ||
| 6655 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6656 | ROM_LOAD( "lbuggx.a", 0x0800, 0x0800, CRC(7efb9dc5) SHA1(5e02ea8cd1a1c8efa6708a8615cc2dc9da65a455) ) | |
| 6657 | ROM_CONTINUE ( 0x0000, 0x0800) | |
| 6658 | ROM_LOAD( "lbuggx.b", 0x1800, 0x0800, CRC(351d4ddc) SHA1(048e8a60e57c6eb0a4d7c2175ddd46c4273756c5) ) | |
| 6659 | ROM_CONTINUE ( 0x1000, 0x0800) | |
| 6660 | ||
| 6661 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6662 | ROM_LOAD( "lbuggx.clr", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 6663 | ROM_END | |
| 6664 | ||
| 6665 | ROM_START( vpool ) | |
| 6666 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6667 | ROM_LOAD( "vidpool1.bin", 0x0000, 0x0800, CRC(333f4732) SHA1(b57460c039c69137645bd4280ad877aa789277d6) ) | |
| 6668 | ROM_CONTINUE( 0x2000, 0x0800 ) | |
| 6669 | ROM_LOAD( "vidpool2.bin", 0x0800, 0x0800, CRC(eea6c0f1) SHA1(5b18caa78e246f55fd9cd778d6e83f79f0b3f157) ) | |
| 6670 | ROM_CONTINUE( 0x2800, 0x0800 ) | |
| 6671 | ROM_LOAD( "vidpool3.bin", 0x1000, 0x0800, CRC(309972a6) SHA1(8269d2f677f55dda71d6a7b0796d2d53a4def59d) ) | |
| 6672 | ROM_CONTINUE( 0x3000, 0x0800 ) | |
| 6673 | ROM_LOAD( "vidpool4.bin", 0x1800, 0x0800, CRC(c4f71c1d) SHA1(e1d01135d5ccc1a53308ce89dc2a8fc0992207d5) ) | |
| 6674 | ROM_CONTINUE( 0x3800, 0x0800 ) | |
| 6675 | ||
| 6676 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6677 | ROM_LOAD( "hustler.5f", 0x0000, 0x0800, CRC(0bdfad0e) SHA1(8e6f1737604f3801c03fa2e9a5e6a2778b54bae8) ) // vidpoolh.bin | |
| 6678 | ROM_LOAD( "hustler.5h", 0x0800, 0x0800, CRC(8e062177) SHA1(7e52a1669804b6c2f694cfc64b04abc8246bb0c2) ) // vidpoolk.bin | |
| 6679 | ||
| 6680 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6681 | ROM_LOAD( "hustler.clr", 0x0000, 0x0020, CRC(aa1f7f5e) SHA1(311dd17aa11490a1173c76223e4ccccf8ea29850) ) | |
| 6682 | ROM_END | |
| 6683 | ||
| 6684 | ROM_START( drivfrcg ) | |
| 6685 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 6686 | ROM_LOAD( "dfgp1.bin", 0x2800, 0x0400, CRC(52d5e77d) SHA1(4e68ac1274bbc8cb5b6a7dfb511232bd83482453) ) | |
| 6687 | ROM_CONTINUE( 0x2c00, 0x0400 ) | |
| 6688 | ROM_CONTINUE( 0x0000, 0x0400 ) | |
| 6689 | ROM_CONTINUE( 0x0400, 0x0400 ) | |
| 6690 | ROM_LOAD( "dfgp2.bin", 0x0800, 0x0400, CRC(9cf4dbce) SHA1(028c168ad0987f21d76c6ac4f756f4fa86c2f8e3) ) | |
| 6691 | ROM_CONTINUE( 0x0c00, 0x0400 ) | |
| 6692 | ROM_CONTINUE( 0x2000, 0x0400 ) | |
| 6693 | ROM_CONTINUE( 0x2400, 0x0400 ) | |
| 6694 | ROM_LOAD( "dfgp3.bin", 0x6800, 0x0400, CRC(79763f62) SHA1(2bb8921fcd2a8b9543e398e248fd47d7e03dc24d) ) | |
| 6695 | ROM_CONTINUE( 0x6c00, 0x0400 ) | |
| 6696 | ROM_CONTINUE( 0x4000, 0x0400 ) | |
| 6697 | ROM_CONTINUE( 0x4400, 0x0400 ) | |
| 6698 | ROM_LOAD( "dfgp4.bin", 0x4800, 0x0400, CRC(dd95338b) SHA1(9054986f7b8fee36f458362836ae969e7d1e2456) ) | |
| 6699 | ROM_CONTINUE( 0x4c00, 0x0400 ) | |
| 6700 | ROM_CONTINUE( 0x6000, 0x0400 ) | |
| 6701 | ROM_CONTINUE( 0x6400, 0x0400 ) | |
| 6702 | ||
| 6703 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6704 | ROM_LOAD( "dfgj2.bin", 0x0000, 0x1000, CRC(8e19f1e7) SHA1(addd5add2117ef29ce38c0c80584e5d481b9d820) ) | |
| 6705 | ROM_LOAD( "dfgj1.bin", 0x1000, 0x1000, CRC(86b60ca8) SHA1(be266e2d69e12a196c2195d48b495c0fb9ef8a43) ) | |
| 6706 | ROM_LOAD( "dfgl2.bin", 0x2000, 0x1000, CRC(ea5e9959) SHA1(6b638d22adf19224cf741458c8ad34d7f7e17e58) ) | |
| 6707 | ROM_LOAD( "dfgl1.bin", 0x3000, 0x1000, CRC(b7ed195c) SHA1(81b2b444153dacb962a33a5d86a280ed5088637a) ) | |
| 6708 | ||
| 6709 | /* piggy-backed colour proms */ | |
| 6710 | ROM_REGION( 0x0040, REGION_PROMS, 0 ) | |
| 6711 | ROM_LOAD( "top.clr", 0x0000, 0x0020, CRC(3110ddae) SHA1(53b2e1cc07915592f6c868131ec296c63a407f04) ) | |
| 6712 | ROM_LOAD( "bot.clr", 0x0020, 0x0020, CRC(0f0782af) SHA1(32c0dd09ead5c70cee2657e9cb8cb9fcf54c5a6a) ) | |
| 6713 | ROM_END | |
| 6714 | ||
| 6715 | ROM_START( drivfrcb ) | |
| 6716 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 6717 | ROM_LOAD( "dfp.bin", 0x2800, 0x0400, CRC(b5b2981d) SHA1(c9ff19791895bf05b569457b1e53dfa0aaeb8e95) ) | |
| 6718 | ROM_CONTINUE( 0x2c00, 0x0400 ) | |
| 6719 | ROM_CONTINUE( 0x0000, 0x0400 ) | |
| 6720 | ROM_CONTINUE( 0x0400, 0x0400 ) | |
| 6721 | ROM_CONTINUE( 0x0800, 0x0400 ) | |
| 6722 | ROM_CONTINUE( 0x0c00, 0x0400 ) | |
| 6723 | ROM_CONTINUE( 0x2000, 0x0400 ) | |
| 6724 | ROM_CONTINUE( 0x2400, 0x0400 ) | |
| 6725 | ROM_CONTINUE( 0x6800, 0x0400 ) | |
| 6726 | ROM_CONTINUE( 0x6c00, 0x0400 ) | |
| 6727 | ROM_CONTINUE( 0x4000, 0x0400 ) | |
| 6728 | ROM_CONTINUE( 0x4400, 0x0400 ) | |
| 6729 | ROM_CONTINUE( 0x4800, 0x0400 ) | |
| 6730 | ROM_CONTINUE( 0x4c00, 0x0400 ) | |
| 6731 | ROM_CONTINUE( 0x6000, 0x0400 ) | |
| 6732 | ROM_CONTINUE( 0x6400, 0x0400 ) | |
| 6733 | ||
| 6734 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6735 | ROM_LOAD( "df1.bin", 0x1000, 0x1000, CRC(8adc3de0) SHA1(046fb92913171c621bb62edb0174f04298bfd283) ) | |
| 6736 | ROM_CONTINUE( 0x0000, 0x1000 ) | |
| 6737 | ROM_LOAD( "df2.bin", 0x3000, 0x1000, CRC(6d95ec35) SHA1(c745ee2bc7b1fb53e8bc1ac3a4238bbe00f30cfe) ) | |
| 6738 | ROM_CONTINUE( 0x2000, 0x1000 ) | |
| 6739 | ||
| 6740 | /* piggy-backed colour proms */ | |
| 6741 | ROM_REGION( 0x0040, REGION_PROMS, 0 ) | |
| 6742 | ROM_LOAD( "top.clr", 0x0000, 0x0020, CRC(3110ddae) SHA1(53b2e1cc07915592f6c868131ec296c63a407f04) ) | |
| 6743 | ROM_LOAD( "bot.clr", 0x0020, 0x0020, CRC(0f0782af) SHA1(32c0dd09ead5c70cee2657e9cb8cb9fcf54c5a6a) ) | |
| 6744 | ROM_END | |
| 6745 | ||
| 6746 | ROM_START( bongo ) | |
| 6747 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6748 | ROM_LOAD( "bg1.bin", 0x0000, 0x1000, CRC(de9a8ec6) SHA1(b5ee99b26d1a39e31b643ad0f5723ee8e364023e) ) | |
| 6749 | ROM_LOAD( "bg2.bin", 0x1000, 0x1000, CRC(a19da662) SHA1(a2674392d489c5e5eeb9abc51572a37cc6045220) ) | |
| 6750 | ROM_LOAD( "bg3.bin", 0x2000, 0x1000, CRC(9f6f2150) SHA1(26a1f872686ddddcdb690d7b826ba26c20cdec35) ) | |
| 6751 | ROM_LOAD( "bg4.bin", 0x3000, 0x1000, CRC(f80372d2) SHA1(078e2c8b947103c168c0c85430f8ebc9d09f8ba7) ) | |
| 6752 | ROM_LOAD( "bg5.bin", 0x4000, 0x1000, CRC(fc92eade) SHA1(f4012a1c4631388a3e8109a8381bc4084ddc8757) ) | |
| 6753 | ROM_LOAD( "bg6.bin", 0x5000, 0x1000, CRC(561d9e5d) SHA1(68d7fab3cfb5b3360fe8064c70bf21bb1341032f) ) | |
| 6754 | ||
| 6755 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6756 | ROM_LOAD( "b-h.bin", 0x0000, 0x1000, CRC(fc79d103) SHA1(dac1152221ebdc4cd9bf353b4cc5d45021ca5d9e) ) | |
| 6757 | ROM_LOAD( "b-k.bin", 0x1000, 0x1000, CRC(94d17bf3) SHA1(2a70968249946de52c5a4cfabafbbf4ecda844a8) ) | |
| 6758 | ||
| 6759 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6760 | ROM_LOAD( "b-clr.bin", 0x0000, 0x0020, CRC(c4761ada) SHA1(067d12b2d3635ffa6337ed234ba42717447bea00) ) | |
| 6761 | ROM_END | |
| 6762 | ||
| 6763 | ROM_START( hunchbkg ) | |
| 6764 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 6765 | ROM_LOAD( "gal_hb_1", 0x0000, 0x0800, CRC(46590e9b) SHA1(5d26578c91adec20d8d8a17d5dade9ef2febcbe5) ) | |
| 6766 | ROM_LOAD( "gal_hb_2", 0x0800, 0x0800, CRC(4e6e671c) SHA1(5948fc7f390f0343b367d333395427ce2f9b2931) ) | |
| 6767 | ROM_LOAD( "gal_hb_3", 0x2000, 0x0800, CRC(d29dc242) SHA1(3f6087fe962ee63c2886ad3f502c1a37d357ba87) ) | |
| 6768 | ROM_LOAD( "gal_hb_4", 0x2800, 0x0800, CRC(d409d292) SHA1(d631c9106106b31b605b6fdf1d4f40e237a725ac) ) | |
| 6769 | ROM_LOAD( "gal_hb_5", 0x4000, 0x0800, CRC(29d3a8c4) SHA1(2e1ef20d980e5033503d8095e9576dcb8f532f41) ) | |
| 6770 | ROM_LOAD( "gal_hb_6", 0x4800, 0x0800, CRC(b016fd15) SHA1(cdfbd531e23438f05a7c3aad99a94ce55912aac3) ) | |
| 6771 | ROM_LOAD( "gal_hb_7", 0x6000, 0x0800, CRC(d2731d27) SHA1(8c4a3d2303d85c3b11803c577a9ad21e6e69011e) ) | |
| 6772 | ROM_LOAD( "gal_hb_8", 0x6800, 0x0800, CRC(e4b1a666) SHA1(9f73d17cff208374d587536e783be024fc9ab700) ) | |
| 6773 | ||
| 6774 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6775 | ROM_LOAD( "gal_hb_kl", 0x0000, 0x0800, CRC(3977650e) SHA1(1de05d6ceed3f2ed0925caa8235b63a93f03f61e) ) | |
| 6776 | ROM_LOAD( "gal_hb_hj", 0x0800, 0x0800, CRC(db489c3d) SHA1(df08607ad07222c1c1c4b3589b50b785bdeefbf2) ) | |
| 6777 | ||
| 6778 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6779 | ROM_LOAD( "gal_hb_cp", 0x0000, 0x0020, CRC(cbff6762) SHA1(4515a6e12a0a5c485a55291feee17a571120a549) ) | |
| 6780 | ROM_END | |
| 6781 | ||
| 6782 | ROM_START( harem ) | |
| 6783 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6784 | ROM_LOAD( "p0_ic85.bin", 0x0000, 0x2000, CRC(4521b753) SHA1(9033f9c3be8fec1e5ff251e9f60faaf3848a1a1e) ) | |
| 6785 | ROM_LOAD( "p1_ic87.bin", 0x8000, 0x2000, BAD_DUMP CRC(3cc5d1e8) SHA1(827e2d20de2a00ec016ead249ed3afdccd0c856c) ) | |
| 6786 | ||
| 6787 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 6788 | ROM_LOAD( "s1_ic12.bin", 0x0000, 0x2000, CRC(b54799dd) SHA1(b6aeb010257cba48a52afd33b4f8031c7d99550c) ) | |
| 6789 | ROM_LOAD( "s2_ic13.bin", 0x2000, 0x1000, CRC(2d5573a4) SHA1(1fdcd99d89e078509634742b2116a35bb199fe4b) ) | |
| 6790 | ||
| 6791 | ROM_REGION( 0x2000, REGION_SOUND1, 0 ) | |
| 6792 | ROM_LOAD( "a1_ic25.bin", 0x0000, 0x2000, CRC(279f923a) SHA1(166b1b625997766f0de7cc18af52c42268022fcb) ) | |
| 6793 | ||
| 6794 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6795 | ROM_LOAD( "m0_ic36.bin", 0x0000, 0x2000, CRC(64b3c6d6) SHA1(e71092585f7ffdae85b2a4c9add1bc71e5a608a8) ) | |
| 6796 | ROM_LOAD( "m1_ic37.bin", 0x2000, 0x2000, CRC(cb0324fb) SHA1(61612f683810339d5d5f31daa4c475d0338d446f) ) | |
| 6797 | ||
| 6798 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6799 | ROM_LOAD( "harem.clr", 0x0000, 0x0020, CRC(c9a2bf73) SHA1(dad65ebf43a5df147e334afd552e67f5fcd26df7) ) | |
| 6800 | ROM_END | |
| 6801 | ||
| 6802 | ROM_START( tazzmang ) | |
| 6803 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6804 | ROM_LOAD( "tazzm1.4k", 0x0000, 0x1000, CRC(a14480a1) SHA1(60dac6b57e8331cc4daedaf87faf3e3acc68f378) ) | |
| 6805 | ROM_LOAD( "tazzm2.5j", 0x1000, 0x1000, CRC(5609f5db) SHA1(3fc50109ea0e012e3e310ae4f5dd0cf460bdca52) ) | |
| 6806 | ROM_LOAD( "tazzm3.6f", 0x2000, 0x1000, CRC(fe7f7002) SHA1(ac4134c07a798328b18994010bcaf6b3f728466a) ) | |
| 6807 | ROM_LOAD( "tazzm4.7e", 0x3000, 0x1000, CRC(c9ca1d0a) SHA1(d420ca2e926174e17215212278c86ba9bbb3d9dc) ) | |
| 6808 | ROM_LOAD( "tazzm5.7l", 0x4000, 0x1000, CRC(f50cd8a6) SHA1(b59ca37171b9acc9854f1beae43cfa5643219a5f) ) | |
| 6809 | ROM_LOAD( "tazzm6.7l", 0x5000, 0x1000, CRC(5cf2e7d2) SHA1(ad89e2655164e0fc5ecc9af70c5f0dd9b094d432) ) | |
| 6810 | ||
| 6811 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6812 | ROM_LOAD( "tazm8.1lk", 0x0000, 0x0800, CRC(2c5b612b) SHA1(32e3a41a9a4a8b1285b6a195213ff0d98012360a) ) | |
| 6813 | ROM_LOAD( "tazzm7.1jh", 0x0800, 0x0800, CRC(3f5ff3ac) SHA1(bc70eef54a45b52c14e35464e5f06b5eec554eb6) ) | |
| 6814 | ||
| 6815 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6816 | ROM_LOAD( "prom.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 6817 | ROM_END | |
| 6818 | ||
| 6819 | ROM_START( racknrol ) | |
| 6820 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 6821 | ROM_LOAD( "horz_p.bin", 0x0000, 0x1000, CRC(32ca5b43) SHA1(f3e7662f947dcdd80f6eae4f002d2fe64a825aff) ) | |
| 6822 | ROM_CONTINUE( 0x2000, 0x1000 ) | |
| 6823 | ROM_CONTINUE( 0x4000, 0x1000 ) | |
| 6824 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 6825 | ||
| 6826 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6827 | ROM_LOAD( "horz_g.bin", 0x0000, 0x4000, CRC(97069ad5) SHA1(50199c7bc5083be23a34849cff17906795bf4067) ) | |
| 6828 | ROM_LOAD( "horz_r.bin", 0x4000, 0x4000, CRC(ff64e84b) SHA1(ceabd522bae26743804987632f35f3c4b5aff179) ) | |
| 6829 | ||
| 6830 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6831 | ROM_LOAD( "82s123.bin", 0x0000, 0x0020, CRC(737802bf) SHA1(9b0476c51ce63898cd690e01e16ee83bae361cb2) ) | |
| 6832 | ||
| 6833 | ROM_REGION( 0x0200, REGION_USER1, 0 ) /* unknown */ | |
| 6834 | ROM_LOAD( "82s147.bin", 0x0000, 0x0200, CRC(aace7fa5) SHA1(6761530bb3585d2eaa97b7ae77b52e96782ffe0a) ) | |
| 6835 | ROM_END | |
| 6836 | ||
| 6837 | ROM_START( hexpool ) | |
| 6838 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 6839 | ROM_LOAD( "vert_p.bin", 0x0000, 0x1000, CRC(bdb078fc) SHA1(85a65c3038dc05a98eae71edf9efdd6659a2966a) ) | |
| 6840 | ROM_CONTINUE( 0x2000, 0x1000 ) | |
| 6841 | ROM_CONTINUE( 0x4000, 0x1000 ) | |
| 6842 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 6843 | ||
| 6844 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6845 | ROM_LOAD( "vert_g.bin", 0x0000, 0x4000, CRC(7e257e80) SHA1(dabb10d076dc49fc130f58e6d1c4b04e6debce55) ) | |
| 6846 | ROM_LOAD( "vert_r.bin", 0x4000, 0x4000, CRC(c5f0851e) SHA1(cedcdb29962c6cd65af9d57d0cb2533397d58f99) ) | |
| 6847 | ||
| 6848 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6849 | ROM_LOAD( "82s123.bin", 0x0000, 0x0020, CRC(737802bf) SHA1(9b0476c51ce63898cd690e01e16ee83bae361cb2) ) | |
| 6850 | ||
| 6851 | ROM_REGION( 0x0200, REGION_USER1, 0 ) /* unknown */ | |
| 6852 | ROM_LOAD( "82s147.bin", 0x0000, 0x0200, CRC(aace7fa5) SHA1(6761530bb3585d2eaa97b7ae77b52e96782ffe0a) ) | |
| 6853 | ROM_END | |
| 6854 | ||
| 6855 | ROM_START( hexpoola ) | |
| 6856 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 6857 | ROM_LOAD( "rom.4l", 0x0000, 0x1000, CRC(2ca8018d) SHA1(f0784d18bc7e77515bf2140d8993ae8178919853) ) | |
| 6858 | ROM_CONTINUE( 0x2000, 0x1000 ) | |
| 6859 | ROM_CONTINUE( 0x4000, 0x1000 ) | |
| 6860 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 6861 | ||
| 6862 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6863 | ROM_LOAD( "rom.1m", 0x0000, 0x4000, CRC(7e257e80) SHA1(dabb10d076dc49fc130f58e6d1c4b04e6debce55) ) | |
| 6864 | ROM_LOAD( "rom.1l", 0x4000, 0x4000, CRC(c5f0851e) SHA1(cedcdb29962c6cd65af9d57d0cb2533397d58f99) ) | |
| 6865 | ||
| 6866 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6867 | ROM_LOAD( "82s123.11r", 0x0000, 0x0020, CRC(deb2fcf4) SHA1(cdec737a9d9feae912f7cc04ca0adb48f859b5c2) ) | |
| 6868 | ||
| 6869 | ROM_REGION( 0x0200, REGION_USER1, 0 ) /* unknown */ | |
| 6870 | ROM_LOAD( "82s147.5pr", 0x0000, 0x0200, CRC(cf496b1e) SHA1(5b5ca52b3cc46e18990dae53a98984aeaf264241) ) | |
| 6871 | ||
| 6872 | ROM_REGION( 0x00eb, REGION_PLDS, 0 ) | |
| 6873 | ROM_LOAD( "82s153.6pr.bin", 0x0000, 0x00eb, CRC(bc07939a) SHA1(615b085575ad215662eab2777a2d8b9167c4b9c3) ) | |
| 6874 | ROM_END | |
| 6875 | ||
| 6876 | ROM_START( trvchlng ) | |
| 6877 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 6878 | ROM_LOAD( "senko11.bin", 0x0000, 0x1000, CRC(3657331d) SHA1(d9a9a4e4e2e696e70dfb888725c959ec8ce24e3d) ) | |
| 6879 | ROM_CONTINUE( 0x2000, 0x1000 ) | |
| 6880 | ROM_CONTINUE( 0x4000, 0x1000 ) | |
| 6881 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 6882 | ||
| 6883 | ROM_REGION( 0x100000, REGION_USER1, 0 ) | |
| 6884 | ROM_LOAD( "questions", 0x000000, 0x100000, NO_DUMP ) | |
| 6885 | ||
| 6886 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6887 | ROM_LOAD( "senko10.bin", 0x0000, 0x4000, CRC(234b59d0) SHA1(5eafdfc6d6a73575835b68361fe29a2dc61e8a83) ) | |
| 6888 | ROM_LOAD( "senko12.bin", 0x4000, 0x4000, CRC(0bf6b92d) SHA1(6ca993c0642949a52fafea3bc57a08c6881e8120) ) | |
| 6889 | ||
| 6890 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6891 | ROM_LOAD( "senko1.bin", 0x0000, 0x0020, CRC(1434c7ff) SHA1(0ee5f5351dd84fbf8d3d8eaafbdbe86dd29960f8) ) | |
| 6892 | ROM_END | |
| 6893 | ||
| 6894 | ROM_START( luctoday ) | |
| 6895 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6896 | ROM_LOAD( "ltprog1.bin", 0x0000, 0x0800, CRC(59c389b9) SHA1(1e158ced3b56db2c51e422fb4c0b8893565f1956)) | |
| 6897 | ROM_LOAD( "ltprog2.bin", 0x2000, 0x0800, CRC(ac3893b1) SHA1(f6b9cd8111b367ff7030cba52fe965959d92568f)) | |
| 6898 | ||
| 6899 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6900 | ROM_LOAD( "ltchar2.bin", 0x0000, 0x0800, CRC(8cd73bdc) SHA1(6174f7347d2c96f9c5074bc0da5a370c9b07461b)) | |
| 6901 | ROM_LOAD( "ltchar1.bin", 0x0800, 0x0800, CRC(b5ba9946) SHA1(7222cbe8c41ca74b214f4dd5439bf69d90f4644e)) | |
| 6902 | ||
| 6903 | ROM_REGION( 0x0020, REGION_PROMS, 0 )//This may not be the correct prom | |
| 6904 | ROM_LOAD( "74s288.ch", 0x0000, 0x0020, BAD_DUMP CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d)) | |
| 6905 | ROM_END | |
| 6906 | ||
| 6907 | ROM_START( chewing ) | |
| 6908 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6909 | ROM_LOAD( "1.bin", 0x0000, 0x1000, CRC(7470b347) SHA1(315d2631b50a6e469b9538318d95452e8d2e1f69) ) | |
| 6910 | ROM_LOAD( "7l.bin", 0x2000, 0x0800, CRC(78ebed36) SHA1(e80185737c8ac448901cf0e60ca50d967c323b34) ) | |
| 6911 | ||
| 6912 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6913 | ROM_LOAD( "2.bin", 0x0000, 0x0800, CRC(88c605f3) SHA1(938a9fadfa0994a1d2fc9b3266ec4ccdb5ec6d3a) ) | |
| 6914 | ROM_LOAD( "3.bin", 0x0800, 0x0800, CRC(77ac016a) SHA1(fa5b1e79603ca8d2ee7b3d0a78f12d9ffeec3fd4) ) | |
| 6915 | ||
| 6916 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6917 | ROM_LOAD( "74s288.ch", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) | |
| 6918 | ROM_END | |
| 6919 | ||
| 6920 | ROM_START( catacomb ) | |
| 6921 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6922 | ROM_LOAD( "catacomb.u", 0x0000, 0x0800, CRC(35cc28d2) SHA1(e1dbd75fc21ec88b8119bf9508c87d78e1d5c4f6) ) | |
| 6923 | ROM_LOAD( "catacomb.v", 0x0800, 0x0800, CRC(1d1ce133) SHA1(e22a169003a2238004bdf6c2558198216c2353b7) ) | |
| 6924 | ROM_LOAD( "catacomb.w", 0x1000, 0x0800, CRC(479bbde7) SHA1(9981662cb6351de7c1730de45f645fb0e26ea467) ) | |
| 6925 | /* no .x */ | |
| 6926 | ROM_LOAD( "catacomb.y", 0x2000, 0x0800, CRC(5e3da534) SHA1(a9b960ae96c8ef0b2d590bc58b711aad949025e2) ) | |
| 6927 | ||
| 6928 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6929 | ROM_LOAD( "cat-gfx1", 0x0000, 0x0800, CRC(e871e65c) SHA1(0b528dfab0f57153db9406798848cdedee0323a0) ) | |
| 6930 | ROM_LOAD( "cat-gfx2", 0x0800, 0x0800, CRC(b14dafaa) SHA1(592d5931a76563b3565f22ac4c0120b9a120193f) ) | |
| 6931 | ||
| 6932 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6933 | /* No color PROM came with the conversion - the Moon Cresta one seems more appropriate than Galaxian, | |
| 6934 | (the game is unplayable with a Galaxian PROM) but which was intended for use with the kit is unclear */ | |
| 6935 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, BAD_DUMP CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 6936 | ROM_END | |
| 6937 | ||
| 6938 | ROM_START( ckongg ) | |
| 6939 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6940 | ROM_LOAD( "ck1.bin", 0x2400, 0x0400, CRC(a4323b94) SHA1(1fed47e1df5efa8f40585bedab07b60067edc2bb) ) | |
| 6941 | ROM_CONTINUE( 0x1C00, 0x0400) | |
| 6942 | ROM_CONTINUE( 0x4800, 0x0400) | |
| 6943 | ROM_CONTINUE( 0x0C00, 0x0400) | |
| 6944 | ROM_LOAD( "ck2.bin", 0x4400, 0x0400, CRC(1e532996) SHA1(fe1feeca347fccd266925614a46c98cff683f5d3) ) | |
| 6945 | ROM_CONTINUE( 0x0000, 0x0400) | |
| 6946 | ROM_CONTINUE( 0x1800, 0x0400) | |
| 6947 | ROM_CONTINUE( 0x2800, 0x0400) | |
| 6948 | ROM_LOAD( "ck3.bin", 0x3400, 0x0400, CRC(65157cde) SHA1(572b9bd56894600e21220356d0bf193c7920672c) ) | |
| 6949 | ROM_CONTINUE( 0x4c00, 0x0400) | |
| 6950 | ROM_CONTINUE( 0x5000, 0x0400) | |
| 6951 | ROM_CONTINUE( 0x0400, 0x0400) | |
| 6952 | ROM_LOAD( "ck4.bin", 0x2000, 0x0400, CRC(43827bc6) SHA1(a2ca9afff0dd1bdcfc3a6ead9ff30b7c91caa7ea) ) | |
| 6953 | ROM_CONTINUE( 0x3800, 0x0400) | |
| 6954 | ROM_CONTINUE( 0x1000, 0x0400) | |
| 6955 | ROM_CONTINUE( 0x4000, 0x0400) | |
| 6956 | ROM_LOAD( "ck5.bin", 0x0800, 0x0400, CRC(a74ed96e) SHA1(1e845d693a728fea9d52953b5493ec98fdec63e3) ) | |
| 6957 | ROM_CONTINUE( 0x5400, 0x0400) // fill | |
| 6958 | ROM_CONTINUE( 0x2c00, 0x0400) | |
| 6959 | ROM_CONTINUE( 0x1400, 0x0400) | |
| 6960 | ROM_LOAD( "ck7.bin", 0x3000, 0x0400, CRC(2c4d8129) SHA1(ab1708ff72ee027106fe8da0caea03a796b3212b) ) | |
| 6961 | ROM_CONTINUE( 0x3c00, 0x0400) | |
| 6962 | ||
| 6963 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6964 | ROM_LOAD( "ckvid10.bin", 0x0000, 0x1000, CRC(7866d2cb) SHA1(62dd8b80bc0459c7337d8a8cb83e53b999e7f4a9) ) | |
| 6965 | ROM_LOAD( "ckvid7.bin", 0x1000, 0x1000, CRC(7311a101) SHA1(49d54c8b94cae4ba81d7a7684eaa4e87815bb4da) ) | |
| 6966 | ||
| 6967 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 6968 | ROM_LOAD( "ck_cp.bin", 0x0000, 0x0020, CRC(7e0b79cb) SHA1(72ef3eb5f09e10c13dcf6fd568a6d16658055a16) ) | |
| 6969 | ROM_END | |
| 6970 | ||
| 6971 | ROM_START( kkgalax ) | |
| 6972 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6973 | ROM_LOAD( "kc1.bin", 0x0000, 0x0800, CRC(a87fc828) SHA1(f66b72427d8cdfabdf2274e22bdb10018ac7d2f9) ) | |
| 6974 | ROM_CONTINUE( 0x2000, 0x0800) | |
| 6975 | ROM_LOAD( "kc2.bin", 0x0800, 0x0800, CRC(94a13dec) SHA1(d3bfd5a266bb1f0e66d847e15b51bdd4c9a15e37) ) | |
| 6976 | ROM_CONTINUE( 0x2800, 0x0800) | |
| 6977 | ROM_LOAD( "kc3.bin", 0x1000, 0x0800, CRC(5efc6705) SHA1(9af59a9cb58599b1c7ce0a063929531f6c73b912) ) | |
| 6978 | ROM_CONTINUE( 0x3000, 0x0800) | |
| 6979 | ROM_LOAD( "kc4.bin", 0x1800, 0x0800, CRC(ac917d66) SHA1(63a0db01bb93e052fec64fa69ebcbae3b0b8aa04) ) | |
| 6980 | ROM_CONTINUE( 0x3800, 0x0800) | |
| 6981 | ROM_LOAD( "kc5.bin", 0x4000, 0x0800, CRC(5a9ee1ed) SHA1(1bc420a42a4931c389b4f8db451de7c59786dfbc) ) | |
| 6982 | ROM_LOAD( "kc6.bin", 0x4800, 0x0800, CRC(f787431e) SHA1(5cee497b8f4072509920d982470cbe06bd18f88b) ) | |
| 6983 | ROM_LOAD( "kc7.bin", 0x5000, 0x0800, CRC(7a185e31) SHA1(a257f32958af6b2c1c9007b46bd1dc984670b0d9) ) | |
| 6984 | ||
| 6985 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6986 | ROM_LOAD( "kc8carat.bin", 0x0000, 0x1000, CRC(7866d2cb) SHA1(62dd8b80bc0459c7337d8a8cb83e53b999e7f4a9) ) | |
| 6987 | ROM_LOAD( "kc9carat.bin", 0x1000, 0x1000, CRC(7311a101) SHA1(49d54c8b94cae4ba81d7a7684eaa4e87815bb4da) ) | |
| 6988 | ||
| 6989 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) // not in this set | |
| 6990 | ROM_LOAD( "ck_cp.bin", 0x0000, 0x0020, CRC(7e0b79cb) SHA1(72ef3eb5f09e10c13dcf6fd568a6d16658055a16) ) | |
| 6991 | ROM_END | |
| 6992 | ||
| 6993 | ||
| 6994 | ROM_START( porter ) | |
| 6995 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 6996 | ROM_LOAD( "port1.bin", 0x0000, 0x0800, CRC(babaf7fe) SHA1(2138abf57990df9b6f9953efd3be9b2bede49520) ) | |
| 6997 | ROM_CONTINUE( 0x2000, 0x0800) | |
| 6998 | ROM_LOAD( "port2.bin", 0x0800, 0x0800, CRC(8f7eb0e3) SHA1(7ac5bfc0bb8b6a7a3e9acab5ce9a53f7cba1fca5) ) | |
| 6999 | ROM_CONTINUE( 0x2800, 0x0800) | |
| 7000 | ROM_LOAD( "port3.bin", 0x1000, 0x0800, CRC(683939b5) SHA1(caf69b03794cb5cf63b1aa52cf8ef355a3aeef87) ) | |
| 7001 | ROM_CONTINUE( 0x3000, 0x0800) | |
| 7002 | ROM_LOAD( "port4.bin", 0x1800, 0x0800, CRC(6a65d58d) SHA1(05824a41b2912f12bff7887e7483cb3f4367d339) ) | |
| 7003 | ROM_CONTINUE( 0x3800,0x0800) | |
| 7004 | ROM_LOAD( "port5.bin", 0x4000, 0x0800, CRC(2978a9aa) SHA1(99ec75c7f83f4858b26e083b50fde41fbcfe449a) ) | |
| 7005 | ROM_LOAD( "port6.bin", 0x4800, 0x0800, CRC(7ecdffb5) SHA1(18ce71b670503bef039c6bfb0aed5e8c10e9eb2d) ) | |
| 7006 | ||
| 7007 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 7008 | ROM_LOAD( "port7.bin", 0x0000, 0x1000, CRC(603294f9) SHA1(168b90fdf38cd2e2c7f54cde16b4d83dc5bb3046) ) | |
| 7009 | ROM_LOAD( "port8.bin", 0x1000, 0x1000, CRC(b66a763d) SHA1(995b473b1942ff666b0989993587e41e89542172) ) | |
| 7010 | ||
| 7011 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) // not in the set | |
| 7012 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, BAD_DUMP CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 7013 | ROM_END | |
| 7014 | ||
| 7015 | GAME( 1979, galaxian, 0, galaxian, galaxian, 0, ROT90, "Namco", "Galaxian (Namco set 1)", GAME_SUPPORTS_SAVE ) | |
| 7016 | GAME( 1979, galaxiaj, galaxian, galaxian, superg, 0, ROT90, "Namco", "Galaxian (Namco set 2)", GAME_SUPPORTS_SAVE ) | |
| 7017 | GAME( 1979, galmidw, galaxian, galaxian, galaxian, 0, ROT90, "[Namco] (Midway license)", "Galaxian (Midway)", GAME_SUPPORTS_SAVE ) | |
| 7018 | GAME( 1979, galmidwo, galaxian, galaxian, galaxian, 0, ROT90, "[Namco] (Midway license)", "Galaxian (Midway, old rev)", GAME_SUPPORTS_SAVE ) | |
| 7019 | GAME( 1979, galtaito, galaxian, galaxian, galtaito, 0, ROT90, "[Namco] (Taito license)", "Galaxian (Taito)", GAME_SUPPORTS_SAVE ) | |
| 7020 | GAME( 1979, superg, galaxian, galaxian, superg, 0, ROT90, "hack", "Super Galaxians", GAME_SUPPORTS_SAVE ) | |
| 7021 | GAME( 1979, galapx, galaxian, galaxian, superg, 0, ROT90, "hack", "Galaxian Part X", GAME_SUPPORTS_SAVE ) | |
| 7022 | GAME( 19??, moonaln, galaxian, galaxian, superg, 0, ROT90, "[Nichibutsu] (Karateco license)", "Moon Alien", GAME_SUPPORTS_SAVE ) | |
| 7023 | GAME( 1979, galap1, galaxian, galaxian, superg, 0, ROT90, "hack", "Space Invaders Galactica", GAME_SUPPORTS_SAVE ) | |
| 7024 | GAME( 1979, galap4, galaxian, galaxian, superg, 0, ROT90, "hack", "Galaxian Part 4", GAME_SUPPORTS_SAVE ) | |
| 7025 | GAME( 1979, galturbo, galaxian, galaxian, superg, 0, ROT90, "hack", "Galaxian Turbo", GAME_SUPPORTS_SAVE ) | |
| 7026 | GAME( 1979, swarm, galaxian, galaxian, swarm, 0, ROT90, "[Namco] (Sub-Electro bootleg)", "Swarm (hack of Galaxian)", GAME_SUPPORTS_SAVE ) | |
| 7027 | GAME( 1979, zerotime, galaxian, galaxian, zerotime, 0, ROT90, "Petaco S.A.", "Zero Time", GAME_SUPPORTS_SAVE ) | |
| 7028 | GAME( 1979, starfght, galaxian, galaxian, swarm, 0, ROT90, "Jeutel", "Star Fighter (bootleg of Galaxian)", GAME_SUPPORTS_SAVE ) | |
| 7029 | GAME( 1979, galaxbsf, galaxian, galaxian, galaxian, 0, ROT90, "bootleg", "Galaxian (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 7030 | GAME( 19??, tst_galx, galaxian, galaxian, galaxian, 0, ROT90, "Test ROM", "Galaxian Test ROM", GAME_SUPPORTS_SAVE ) | |
| 7031 | GAME( 1981, gmgalax, 0, gmgalax, gmgalax, gmgalax, ROT90, "bootleg", "Ghostmuncher Galaxian (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 7032 | GAME( 19??, pisces, 0, pisces, pisces, pisces, ROT90, "Subelectro", "Pisces", GAME_SUPPORTS_SAVE ) | |
| 7033 | GAME( 19??, piscesb, pisces, pisces, piscesb, pisces, ROT90, "bootleg", "Pisces (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 7034 | GAME( 19??, omni, pisces, pisces, piscesb, pisces, ROT90, "bootleg", "Omni", GAME_SUPPORTS_SAVE ) | |
| 7035 | GAME( 1980, uniwars, 0, pisces, superg, pisces, ROT90, "Irem", "UniWar S", GAME_SUPPORTS_SAVE ) | |
| 7036 | GAME( 1980, gteikoku, uniwars, pisces, superg, pisces, ROT90, "Irem", "Gingateikoku No Gyakushu", GAME_SUPPORTS_SAVE ) | |
| 7037 | GAME( 1980, gteikokb, uniwars, pisces, gteikokb, pisces, ROT270, "bootleg", "Gingateikoku No Gyakushu (bootleg set 1)", GAME_SUPPORTS_SAVE ) | |
| 7038 | GAME( 1980, gteikob2, uniwars, gteikob2, gteikob2, gteikob2, ROT270, "bootleg", "Gingateikoku No Gyakushu (bootleg set 2)", GAME_SUPPORTS_SAVE ) | |
| 7039 | GAME( 1980, spacbatt, uniwars, pisces, spacbatt, pisces, ROT90, "bootleg", "Space Battle (bootleg set 1)", GAME_SUPPORTS_SAVE ) | |
| 7040 | GAME( 1980, spacbat2, uniwars, pisces, spacbatt, pisces, ROT90, "bootleg", "Space Battle (bootleg set 2)", GAME_SUPPORTS_SAVE ) | |
| 7041 | GAME( 1980, skyraidr, uniwars, pisces, superg, pisces, ROT90, "bootleg", "Sky Raiders", GAME_SUPPORTS_SAVE ) | |
| 7042 | GAME( 1981, batman2, phoenix, batman2, batman2, pisces, ROT270, "bootleg", "Batman Part 2", GAME_SUPPORTS_SAVE ) | |
| 7043 | GAME( 1981, warofbug, 0, galaxian, warofbug, pisces, ROT90, "Armenia", "War of the Bugs or Monsterous Manouvers in a Mushroom Maze", GAME_SUPPORTS_SAVE ) | |
| 7044 | GAME( 19??, redufo, 0, galaxian, redufo, pisces, ROT90, "bootleg", "Defend the Terra Attack on the Red UFO", GAME_SUPPORTS_SAVE ) | |
| 7045 | GAME( 19??, exodus, redufo, galaxian, exodus, pisces, ROT90, "Subelectro", "Exodus (bootleg?)", GAME_SUPPORTS_SAVE ) | |
| 7046 | GAME( 1981, streakng, 0, pacmanbl, streakng, 0, ROT90, "Shoei", "Streaking", GAME_IMPERFECT_COLORS | GAME_SUPPORTS_SAVE ) | |
| 7047 | GAME( 1981, pacmanbl, puckman, pacmanbl, pacmanbl, pisces, ROT270, "bootleg", "Pac-Man (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 7048 | GAME( 1984, devilfsg, devilfsh, devilfsg, devilfsg, 0, ROT270, "Vision / Artic", "Devil Fish (Galaxian hardware, bootleg?)", GAME_SUPPORTS_SAVE ) | |
| 7049 | GAME( 1982, zigzag, 0, zigzag, zigzag, zigzag, ROT90, "LAX", "Zig Zag (Galaxian hardware, set 1)", GAME_SUPPORTS_SAVE ) | |
| 7050 | GAME( 1982, zigzag2, zigzag, zigzag, zigzag, zigzag, ROT90, "LAX", "Zig Zag (Galaxian hardware, set 2)", GAME_SUPPORTS_SAVE ) | |
| 7051 | GAME( 1981, scramblb, scramble, scramblb, scramblb, 0, ROT90, "bootleg", "Scramble (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 7052 | GAME( 1981, scramb2, scramble, scramb2, scramb2, 0, ROT90, "bootleg", "Scramble (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 7053 | GAME( 1981, jumpbug, 0, jumpbug, jumpbug, 0, ROT90, "Rock-ola", "Jump Bug", GAME_SUPPORTS_SAVE ) | |
| 7054 | GAME( 1981, jumpbugb, jumpbug, jumpbug, jumpbug, 0, ROT90, "bootleg", "Jump Bug (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 7055 | GAME( 1983, levers, 0, jumpbug, levers, 0, ROT90, "Rock-ola", "Levers", GAME_SUPPORTS_SAVE ) | |
| 7056 | GAME( 1982, azurian, 0, azurian, azurian, azurian, ROT90, "Rait Electronics Ltd", "Azurian Attack", GAME_SUPPORTS_SAVE ) | |
| 7057 | GAME( 19??, orbitron, 0, galaxian, orbitron, pisces, ROT270, "Signatron USA", "Orbitron", GAME_SUPPORTS_SAVE ) | |
| 7058 | GAME( 1982, checkman, 0, checkman, checkman, checkman, ROT90, "Zilec-Zenitone", "Check Man", GAME_SUPPORTS_SAVE ) | |
| 7059 | GAME( 1982, checkmaj, checkman, checkmaj, checkmaj, checkmaj, ROT90, "Jaleco", "Check Man (Japan)", GAME_SUPPORTS_SAVE ) | |
| 7060 | GAME( 1983, dingo, 0, checkmaj, dingo, dingo, ROT90, "Ashby Computers and Graphics LTD. (Jaleco license)", "Dingo", GAME_SUPPORTS_SAVE ) | |
| 7061 | GAME( 1983, dingoe, 0, dingoe, dingo, dingoe, ROT90, "Ashby Computers and Graphics LTD.", "Dingo (encrypted)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 7062 | GAME( 1981, blkhole, 0, galaxian, blkhole, 0, ROT90, "TDS", "Black Hole", GAME_SUPPORTS_SAVE ) | |
| 7063 | GAME( 1980, mooncrst, 0, mooncrst, mooncrst, mooncrst, ROT90, "Nichibutsu", "Moon Cresta (Nichibutsu)", GAME_SUPPORTS_SAVE ) | |
| 7064 | GAME( 1980, mooncrsu, mooncrst, mooncrst, mooncrst, mooncrsu, ROT90, "Nichibutsu USA", "Moon Cresta (Nichibutsu, unencrypted)", GAME_SUPPORTS_SAVE ) | |
| 7065 | GAME( 1980, mooncrsa, mooncrst, mooncrst, mooncrsa, mooncrst, ROT90, "Nichibutsu", "Moon Cresta (Nichibutsu, old rev)", GAME_SUPPORTS_SAVE ) | |
| 7066 | GAME( 1980, mooncrsg, mooncrst, mooncrst, mooncrsg, mooncrsu, ROT90, "Gremlin", "Moon Cresta (Gremlin)", GAME_SUPPORTS_SAVE ) | |
| 7067 | GAME( 1980, mooncrsb, mooncrst, mooncrst, mooncrsa, mooncrsu, ROT90, "bootleg", "Moon Cresta (bootleg set 1)", GAME_SUPPORTS_SAVE ) | |
| 7068 | GAME( 1980, mooncrs2, mooncrst, mooncrst, mooncrsa, mooncrsu, ROT90, "Nichibutsu", "Moon Cresta (bootleg set 2)", GAME_SUPPORTS_SAVE ) | |
| 7069 | GAME( 1980, mooncrs3, mooncrst, mooncrst, mooncrst, mooncrsu, ROT90, "bootleg", "Moon Cresta (bootleg set 3)", GAME_SUPPORTS_SAVE ) /* Jeutel bootleg, similar to bootleg set 2 */ | |
| 7070 | GAME( 1980, fantazia, mooncrst, mooncrst, fantazia, mooncrsu, ROT90, "Subelectro", "Fantazia (bootleg?)", GAME_SUPPORTS_SAVE ) | |
| 7071 | GAME( 1980, eagle, mooncrst, mooncrst, eagle, mooncrsu, ROT90, "Centuri", "Eagle (set 1)", GAME_SUPPORTS_SAVE ) | |
| 7072 | GAME( 1980, eagle2, mooncrst, mooncrst, eagle2, mooncrsu, ROT90, "Centuri", "Eagle (set 2)", GAME_SUPPORTS_SAVE ) | |
| 7073 | GAME( 1980, eagle3, mooncrst, mooncrst, eagle, mooncrsu, ROT90, "Centuri", "Eagle (set 3)", GAME_SUPPORTS_SAVE ) | |
| 7074 | GAME( 1981?,spctbird, mooncrst, mooncrst, eagle2, mooncrsu, ROT90, "Fortrek", "Space Thunderbird", GAME_SUPPORTS_SAVE ) | |
| 7075 | GAME( 1980?,smooncrs, mooncrst, mooncrst, smooncrs, mooncrsu, ROT90, "Gremlin", "Super Moon Cresta", GAME_SUPPORTS_SAVE ) | |
| 7076 | GAME( 198?, mooncmw, mooncrst, mooncrst, mooncrsa, mooncrsu, ROT90, "bootleg", "Moon War (Moon Cresta bootleg)", GAME_SUPPORTS_SAVE ) | |
| 7077 | // The boards were marked 'Space Dragon' although this doesn't appear in the games. | |
| 7078 | GAME( 1980, spcdrag, mooncrst, mooncrst, spcdrag, mooncrsu, ROT90, "bootleg", "Space Dragon (Moon Cresta bootleg, set 1)", GAME_SUPPORTS_SAVE ) | |
| 7079 | GAME( 1980, spcdraga, mooncrst, mooncrst, spcdrag, mooncrsu, ROT90, "bootleg", "Space Dragon (Moon Cresta bootleg, set 2)", GAME_SUPPORTS_SAVE ) | |
| 7080 | GAME( 1980, mooncrgx, mooncrst, mooncrgx, mooncrgx, mooncrgx, ROT270, "bootleg", "Moon Cresta (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 7081 | GAME( 1980, moonqsr, 0, moonqsr, moonqsr, moonqsr, ROT90, "Nichibutsu", "Moon Quasar", GAME_SUPPORTS_SAVE ) | |
| 7082 | GAME( 1981, mshuttle, 0, mshuttle, mshuttle, mshuttle, ROT0, "Nichibutsu", "Moon Shuttle (US?)", GAME_SUPPORTS_SAVE ) | |
| 7083 | GAME( 1981, mshuttlj, mshuttle, mshuttle, mshuttle, cclimbrj, ROT0, "Nichibutsu", "Moon Shuttle (Japan set 1)", GAME_SUPPORTS_SAVE ) | |
| 7084 | GAME( 1981, mshutlj2, mshuttle, mshuttle, mshuttle, cclimbrj, ROT0, "Nichibutsu", "Moon Shuttle (Japan set 2)", GAME_SUPPORTS_SAVE ) | |
| 7085 | GAME( 1980, moonal2, 0, mooncrst, moonal2, 0, ROT90, "Nichibutsu", "Moon Alien Part 2", GAME_SUPPORTS_SAVE ) | |
| 7086 | GAME( 1980, moonal2b, moonal2, mooncrst, moonal2, 0, ROT90, "Nichibutsu", "Moon Alien Part 2 (older version)", GAME_SUPPORTS_SAVE ) | |
| 7087 | GAME( 1980, supergx, moonal2, galaxian, superg, 0, ROT90, "Nichibutsu", "Super GX", GAME_NOT_WORKING | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) | |
| 7088 | GAME( 1982, skybase, 0, skybase, skybase, 0, ROT90, "Omori Electric Co., Ltd.", "Sky Base", GAME_SUPPORTS_SAVE ) | |
| 7089 | GAME( 19??, omega, theend, galaxian, omega, 0, ROT270, "bootleg?", "Omega", GAME_SUPPORTS_SAVE ) | |
| 7090 | GAME( 1980, kingball, 0, kingball, kingball, kingball, ROT90, "Namco", "King & Balloon (US)", GAME_SUPPORTS_SAVE ) | |
| 7091 | GAME( 1980, kingbalj, kingball, kingball, kingball, kingball, ROT90, "Namco", "King & Balloon (Japan)", GAME_SUPPORTS_SAVE ) | |
| 7092 | GAME( 19??, scorpnmc, scorpion, scorpnmc, scorpnmc, 0, ROT90, "Dorneer", "Scorpion (Moon Cresta hardware)", GAME_SUPPORTS_SAVE ) | |
| 7093 | GAME( 1981, frogg, frogger, frogg, frogg, 0, ROT90, "bootleg", "Frog (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 7094 | GAME( 1981, 4in1, 0, 4in1, 4in1, 4in1, ROT90, "Armenia / Food and Fun", "4 Fun in 1", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 7095 | GAME( 1982, bagmanmc, bagman, bagmanmc, bagmanmc, 0, ROT90, "bootleg", "Bagman (Moon Cresta hardware)", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) | |
| 7096 | GAME( 1982, dkongjrm, dkongjr, dkongjrm, dkongjrm, 0, ROT90, "bootleg", "Donkey Kong Jr. (Moon Cresta hardware)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 7097 | GAME( 1981, rockclim, 0, rockclim, rockclim, 0, ROT180, "Taito", "Rock Climber", GAME_SUPPORTS_SAVE ) | |
| 7098 | GAME( 1983, ozon1, 0, ozon1, ozon1, 0, ROT90, "Proma", "Ozon I", GAME_SUPPORTS_SAVE ) | |
| 7099 | GAME( 1983, ladybugg, ladybug, batman2, ladybugg, ladybugg, ROT270, "bootleg", "Ladybug (bootleg on Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 7100 | GAME( 1980, vpool, hustler, mooncrst, vpool, 0, ROT90, "bootleg", "Video Pool (bootleg on Moon Cresta hardware)", GAME_SUPPORTS_SAVE ) | |
| 7101 | GAME( 1984, drivfrcg, drivfrcp, drivfrcg, drivfrcg, 0, ROT90, "Shinkai Inc. (Magic Eletronics USA licence)", "Driving Force (Galaxian conversion)", GAME_SUPPORTS_SAVE ) | |
| 7102 | GAME( 1985, drivfrcb, drivfrcp, drivfrcg, drivfrcg, 0, ROT90, "bootleg", "Driving Force (Galaxian conversion bootleg)", GAME_SUPPORTS_SAVE ) | |
| 7103 | GAME( 1983, bongo, 0, bongo, bongo, 0, ROT90, "Jetsoft", "Bongo", GAME_SUPPORTS_SAVE ) | |
| 7104 | GAME( 1983, hunchbkg, hunchbak, hunchbkg, hunchbkg, 0, ROT90, "Century Electronics", "Hunchback (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 7105 | GAME( 1983, harem, 0, harem, harem, 0, ROT90, "I.G.R.", "Harem", GAME_NO_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 7106 | GAME( 1982, tazzmang, tazmania, tazzmang, tazzmang, 0, ROT90, "bootleg", "Tazz-Mania (Galaxian Hardware)", GAME_SUPPORTS_SAVE ) | |
| 7107 | GAME( 1986, racknrol, 0, racknrol, racknrol, 0, ROT0, "Status (Shinkai License)", "Rack + Roll", GAME_SUPPORTS_SAVE ) | |
| 7108 | GAME( 1986, hexpool, racknrol, racknrol, racknrol, 0, ROT90, "Shinkai", "Hex Pool (Shinkai)", GAME_SUPPORTS_SAVE ) | |
| 7109 | GAME( 1985, hexpoola, racknrol, hexpoola, racknrol, 0, ROT90, "Senko", "Hex Pool (Senko)", GAME_SUPPORTS_SAVE ) | |
| 7110 | GAME( 1985, trvchlng, 0, racknrol, trvchlng, 0, ROT90, "Joyland (Senko License)", "Trivia Challenge", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 7111 | GAME( 1980, luctoday, 0, galaxian, luctoday, 0, ROT270, "Sigma", "Lucky Today",GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) | |
| 7112 | GAME( 19??, chewing, 0, galaxian, luctoday, 0, ROT90, "unknown", "Chewing Gum", GAME_SUPPORTS_SAVE ) | |
| 7113 | GAME( 1982, catacomb, 0, galaxian, catacomb, 0, ROT90, "MTM Games", "Catacomb", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) | |
| 7114 | GAME( 1981, ckongg, 0, ckongg, ckongg, 0, ROT90, "bootleg", "Crazy Kong (bootleg on Galaxian hardware, set 1)", GAME_SUPPORTS_SAVE ) | |
| 7115 | GAME( 1981, kkgalax, ckongg, kkgalax, kkgalax, 0, ROT90, "bootleg", "Crazy Kong (bootleg on Galaxian hardware, set 2)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) // set was marked as 'King Kong on Galaxian' | |
| 7116 | GAME( 19??, porter, 0, mooncrst, porter, 0, ROT90, "[Nova Games Ltd.] (bootleg)", "Port Man (bootleg on Moon Cresta hardware)", GAME_IMPERFECT_GRAPHICS ) // missing GFX bank switch! | |
| 2630 | #include "galdrvr.c" |
| r2241 | r2242 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | static WRITE16_HANDLER( oki_bankswitch_w ) |
| 47 | 47 | { |
| 48 | if (ACCESSING_ | |
| 48 | if (ACCESSING_ | |
| 49 | 49 | OKIM6295_set_bank_base(0, (data & 1) * 0x40000); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | static WRITE16_HANDLER( coinctrl_w ) |
| 53 | 53 | { |
| 54 | if (ACCESSING_ | |
| 54 | if (ACCESSING_ | |
| 55 | 55 | { |
| 56 | 56 | coin_counter_w(0,data & 1); |
| 57 | 57 | coin_counter_w(1,data & 2); |
| r2241 | r2242 | |
|---|---|---|
| 203 | 203 | |
| 204 | 204 | static WRITE16_HANDLER( sound_command_w ) |
| 205 | 205 | { |
| 206 | if (ACCESSING_ | |
| 206 | if (ACCESSING_ | |
| 207 | 207 | { |
| 208 | 208 | pending_command = 1; |
| 209 | 209 | soundlatch_w(machine,offset,data & 0xff); |
| r2241 | r2242 | |
|---|---|---|
| 107 | 107 | |
| 108 | 108 | static WRITE16_HANDLER( hyprduel_irq_cause_w ) |
| 109 | 109 | { |
| 110 | if (ACCESSING_ | |
| 110 | if (ACCESSING_ | |
| 111 | 111 | { |
| 112 | 112 | if (data == int_num) |
| 113 | 113 | requested_int &= ~(int_num & ~*hypr_irq_enable); |
| r2241 | r2242 | |
|---|---|---|
| 133 | 133 | |
| 134 | 134 | static WRITE16_HANDLER( adpcm_w ) |
| 135 | 135 | { |
| 136 | if (ACCESSING_ | |
| 136 | if (ACCESSING_ | |
| 137 | 137 | OKIM6295_data_0_w(machine, offset, (data >> 8) & 0xff); |
| 138 | 138 | } |
| 139 | 139 | |
| r2241 | r2242 | |
| 154 | 154 | */ |
| 155 | 155 | |
| 156 | 156 | /* lower byte being modified? */ |
| 157 | if (ACCESSING_ | |
| 157 | if (ACCESSING_ | |
| 158 | 158 | { |
| 159 | 159 | OKIM6295_set_bank_base(0, (data & 0x80) ? 0x40000 : 0x00000); |
| 160 | 160 | atarigen_set_oki6295_vol(machine, (data & 0x001f) * 100 / 0x1f); |
| r2241 | r2242 | |
|---|---|---|
| 103 | 103 | |
| 104 | 104 | static WRITE16_HANDLER( sound_command_w ) |
| 105 | 105 | { |
| 106 | if (ACCESSING_ | |
| 106 | if (ACCESSING_ | |
| 107 | 107 | { |
| 108 | 108 | pending_command = 1; |
| 109 | 109 | soundlatch_w(machine,offset,data & 0xff); |
| r2241 | r2242 | |
|---|---|---|
| 121 | 121 | |
| 122 | 122 | // write game settings |
| 123 | 123 | |
| 124 | if(ACCESSING_ | |
| 124 | if(ACCESSING_BITS_0_15) | |
| 125 | 125 | rom[BYTE_XOR_BE(offset*2 + 1)] = data & 0xffff; |
| 126 | 126 | else |
| 127 | 127 | rom[BYTE_XOR_BE(offset*2 + 0)] = (data & 0xffff0000) >> 16; |
| r2241 | r2242 | |
|---|---|---|
| 415 | 415 | static WRITE32_HANDLER(pal32_w) |
| 416 | 416 | { |
| 417 | 417 | COMBINE_DATA(paletteram32+offset); |
| 418 | if(ACCESSING_ | |
| 418 | if(ACCESSING_BITS_0_15) | |
| 419 | 419 | chcolor(offset*2, paletteram32[offset]); |
| 420 | if(ACCESSING_ | |
| 420 | if(ACCESSING_BITS_16_31) | |
| 421 | 421 | chcolor(offset*2+1, paletteram32[offset]>>16); |
| 422 | 422 | } |
| 423 | 423 | |
| 424 | 424 | static WRITE32_HANDLER(ctrl0_w) |
| 425 | 425 | { |
| 426 | if( | |
| 426 | if(ACCESSING_BITS_ | |
| 427 | 427 | model2_ctrlmode = data & 0x01; |
| 428 | 428 | EEPROM_write_bit(data & 0x20); |
| 429 | 429 | EEPROM_set_clock_line((data & 0x80) ? ASSERT_LINE : CLEAR_LINE); |
| r2241 | r2242 | |
| 494 | 494 | |
| 495 | 495 | static READ32_HANDLER(copro_prg_r) |
| 496 | 496 | { |
| 497 | if ((strcmp( | |
| 497 | if ((strcmp(machine->gamedrv->name, "manxtt" ) == 0) || (strcmp(machine->gamedrv->name, "srallyc" ) == 0)) | |
| 498 | 498 | { |
| 499 | 499 | return 8; |
| 500 | 500 | } |
| r2241 | r2242 | |
| 530 | 530 | logerror("Boot copro, %d dwords\n", model2_coprocnt); |
| 531 | 531 | if (dsp_type != DSP_TYPE_TGPX4) |
| 532 | 532 | { |
| 533 | cpunum_set_input_line( | |
| 533 | cpunum_set_input_line(machine, 2, INPUT_LINE_HALT, CLEAR_LINE); | |
| 534 | 534 | } |
| 535 | 535 | } |
| 536 | 536 | } |
| r2241 | r2242 | |
| 550 | 550 | |
| 551 | 551 | static READ32_HANDLER(copro_fifo_r) |
| 552 | 552 | { |
| 553 | if ((strcmp( | |
| 553 | if ((strcmp(machine->gamedrv->name, "manxtt" ) == 0) || (strcmp(machine->gamedrv->name, "srallyc" ) == 0)) | |
| 554 | 554 | { |
| 555 | 555 | return 8; |
| 556 | 556 | } |
| r2241 | r2242 | |
| 589 | 589 | static UINT32 iop_data = 0; |
| 590 | 590 | static WRITE32_HANDLER(copro_sharc_iop_w) |
| 591 | 591 | { |
| 592 | if ((strcmp(Machine->gamedrv->name, "schamp" ) == 0) || | |
| 593 | (strcmp(Machine->gamedrv->name, "fvipers" ) == 0) || | |
| 594 | (strcmp(Machine->gamedrv->name, "vstriker" ) == 0) || | |
| 595 | (strcmp(Machine->gamedrv->name, "gunblade" ) == 0)) | |
| 592 | if ((strcmp(machine->gamedrv->name, "schamp" ) == 0) || | |
| 593 | (strcmp(machine->gamedrv->name, "fvipers" ) == 0) || | |
| 594 | (strcmp(machine->gamedrv->name, "vstriker" ) == 0) || | |
| 595 | (strcmp(machine->gamedrv->name, "gunblade" ) == 0)) | |
| 596 | 596 | { |
| 597 | 597 | cpuintrf_push_context(2); |
| 598 | 598 | sharc_external_iop_write(offset, data); |
| r2241 | r2242 | |
| 659 | 659 | else |
| 660 | 660 | { |
| 661 | 661 | logerror("Boot geo, %d dwords\n", model2_geocnt); |
| 662 | cpunum_set_input_line( | |
| 662 | cpunum_set_input_line(machine, 3, INPUT_LINE_HALT, CLEAR_LINE); | |
| 663 | 663 | //cpu_spinuntil_time(ATTOTIME_IN_USEC(1000)); // Give the SHARC enough time to boot itself |
| 664 | 664 | } |
| 665 | 665 | } |
| r2241 | r2242 | |
| 669 | 669 | |
| 670 | 670 | static READ32_HANDLER(geo_sharc_fifo_r) |
| 671 | 671 | { |
| 672 | if ((strcmp( | |
| 672 | if ((strcmp(machine->gamedrv->name, "manxtt" ) == 0) || (strcmp(machine->gamedrv->name, "srallyc" ) == 0)) | |
| 673 | 673 | { |
| 674 | 674 | return 8; |
| 675 | 675 | } |
| r2241 | r2242 | |
| 700 | 700 | static UINT32 geo_iop_data = 0; |
| 701 | 701 | static WRITE32_HANDLER(geo_sharc_iop_w) |
| 702 | 702 | { |
| 703 | if ((strcmp( | |
| 703 | if ((strcmp(machine->gamedrv->name, "schamp" ) == 0)) | |
| 704 | 704 | { |
| 705 | 705 | cpuintrf_push_context(3); |
| 706 | 706 | sharc_external_iop_write(offset, data); |
| r2241 | r2242 | |
| 942 | 942 | |
| 943 | 943 | static WRITE32_HANDLER( model2_serial_w ) |
| 944 | 944 | { |
| 945 | if ( | |
| 945 | if (ACCESSING_BITS_ | |
| 946 | 946 | { |
| 947 | 947 | SCSP_MidiIn(machine, 0, data&0xff, 0); |
| 948 | 948 |
| r2241 | r2242 | |
|---|---|---|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | |
| 96 | ||
| 97 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 98 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 99 | AM_RANGE(0x8000, 0x8bff) AM_READ(SMH_RAM) | |
| 100 | AM_RANGE(0x9000, 0x93ff) AM_READ(shared1_r) | |
| 101 | AM_RANGE(0x9800, 0x9bff) AM_READ(shared2_r) | |
| 102 | AM_RANGE(0xa800, 0xa807) AM_READ(ports_r) | |
| 103 | AM_RANGE(0xb000, 0xb7ff) AM_READ(SMH_RAM) | |
| 104 | ADDRESS_MAP_END | |
| 105 | ||
| 106 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 107 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 108 | AM_RANGE(0x8000, 0x83ff) AM_WRITE(SMH_RAM) AM_BASE(&videoram) AM_SIZE(&videoram_size) | |
| 109 | AM_RANGE(0x8400, 0x87ff) AM_WRITE(SMH_RAM) AM_BASE(&colorram) | |
| 110 | AM_RANGE(0x8800, 0x88ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 111 | AM_RANGE(0x8900, 0x8bff) AM_WRITE(SMH_RAM) | |
| 112 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(shared1_w) AM_BASE(&sharedram1) | |
| 113 | AM_RANGE(0x9800, 0x9bff) AM_WRITE(shared2_w) AM_BASE(&sharedram2) | |
| 96 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 97 | AM_RANGE(0x0000, 0x5fff) AM_ROM | |
| 98 | AM_RANGE(0x8000, 0x83ff) AM_BASE(&videoram) AM_SIZE(&videoram_size) /* Fallthrough */ | |
| 99 | AM_RANGE(0x8400, 0x87ff) AM_BASE(&colorram) | |
| 100 | AM_RANGE(0x8800, 0x88ff) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 101 | AM_RANGE(0x8000, 0x8bff) AM_RAM | |
| 102 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(shared1_r,shared1_w) AM_BASE(&sharedram1) | |
| 103 | AM_RANGE(0x9800, 0x9bff) AM_READWRITE(shared2_r,shared2_w) AM_BASE(&sharedram2) | |
| 114 | 104 | AM_RANGE(0xa000, 0xa000) AM_WRITE(interrupt_enable_w) |
| 115 | 105 | AM_RANGE(0xa002, 0xa002) AM_WRITE(wiping_flipscreen_w) |
| 116 | 106 | AM_RANGE(0xa003, 0xa003) AM_WRITE(subcpu_reset_w) |
| 117 | AM_RANGE(0xb000, 0xb7ff) AM_WRITE(SMH_RAM) | |
| 107 | AM_RANGE(0xa800, 0xa807) AM_READ(ports_r) | |
| 108 | AM_RANGE(0xb000, 0xb7ff) AM_RAM | |
| 118 | 109 | AM_RANGE(0xb800, 0xb800) AM_WRITE(watchdog_reset_w) |
| 119 | 110 | ADDRESS_MAP_END |
| 120 | 111 | |
| 121 | ||
| 122 | /* Sound cpu data */ | |
| 123 | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 124 | AM_RANGE(0x0000, 0x1fff) AM_READ(SMH_ROM) | |
| 125 | AM_RANGE(0x9000, 0x93ff) AM_READ(shared1_r) | |
| 126 | AM_RANGE(0x9800, 0x9bff) AM_READ(shared2_r) | |
| 127 | ADDRESS_MAP_END | |
| 128 | ||
| 129 | static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 130 | AM_RANGE(0x0000, 0x1fff) AM_WRITE(SMH_ROM) | |
| 112 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 113 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 131 | 114 | AM_RANGE(0x4000, 0x7fff) AM_WRITE(wiping_sound_w) AM_BASE(&wiping_soundregs) |
| 132 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(shared1_w) | |
| 133 | AM_RANGE(0x9800, 0x9bff) AM_WRITE(shared2_w) | |
| 115 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(shared1_r,shared1_w) | |
| 116 | AM_RANGE(0x9800, 0x9bff) AM_READWRITE(shared2_r,shared2_w) | |
| 134 | 117 | AM_RANGE(0xa001, 0xa001) AM_WRITE(interrupt_enable_w) |
| 135 | 118 | ADDRESS_MAP_END |
| 136 | 119 | |
| 137 | 120 | |
| 138 | ||
| 139 | 121 | static INPUT_PORTS_START( wiping ) |
| 140 | 122 | PORT_START /* 0 */ |
| 141 | 123 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY |
| r2241 | r2242 | |
| 309 | 291 | |
| 310 | 292 | /* basic machine hardware */ |
| 311 | 293 | MDRV_CPU_ADD(Z80,18432000/6) /* 3.072 MHz */ |
| 312 | MDRV_CPU_PROGRAM_MAP( | |
| 294 | MDRV_CPU_PROGRAM_MAP( | |
| 313 | 295 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 314 | 296 | |
| 315 | 297 | MDRV_CPU_ADD(Z80,18432000/6) |
| 316 | 298 | /* audio CPU */ /* 3.072 MHz */ |
| 317 | MDRV_CPU_PROGRAM_MAP(sound_ | |
| 299 | MDRV_CPU_PROGRAM_MAP(sound_ | |
| 318 | 300 | MDRV_CPU_PERIODIC_INT(irq0_line_hold,120) /* periodic interrupt, don't know about the frequency */ |
| 319 | 301 | |
| 320 | 302 | /* video hardware */ |
| r2241 | r2242 | |
|---|---|---|
| 126 | 126 | { |
| 127 | 127 | COMBINE_DATA(&gstream_vram[offset]); |
| 128 | 128 | |
| 129 | if (ACCESSING_ | |
| 129 | if (ACCESSING_ | |
| 130 | 130 | { |
| 131 | 131 | if (offset>=0x000/4 && offset<0x400/4) |
| 132 | 132 | { |
| r2241 | r2242 | |
|---|---|---|
| 584 | 584 | ***************************************************************************/ |
| 585 | 585 | |
| 586 | 586 | #include "driver.h" |
| 587 | #include "deprecat.h" | |
| 588 | 587 | #include "machine/eeprom.h" |
| 589 | 588 | #include "cpu/m68000/m68000.h" |
| 590 | 589 | #include "sound/qsound.h" |
| r2241 | r2242 | |
| 727 | 726 | |
| 728 | 727 | static WRITE16_HANDLER( cps2_eeprom_port_w ) |
| 729 | 728 | { |
| 730 | if (ACCESSING_ | |
| 729 | if (ACCESSING_ | |
| 731 | 730 | { |
| 732 | 731 | /* bit 0 - Unused */ |
| 733 | 732 | /* bit 1 - Unused */ |
| r2241 | r2242 | |
| 744 | 743 | EEPROM_set_cs_line((data & 0x4000) ? CLEAR_LINE : ASSERT_LINE); |
| 745 | 744 | } |
| 746 | 745 | |
| 747 | if (ACCESSING_ | |
| 746 | if (ACCESSING_ | |
| 748 | 747 | { |
| 749 | 748 | /* bit 0 - coin counter 1 */ |
| 750 | 749 | /* bit 0 - coin counter 2 */ |
| r2241 | r2242 | |
| 756 | 755 | /* bit 7 - */ |
| 757 | 756 | |
| 758 | 757 | /* Z80 Reset */ |
| 759 | cpunum_set_input_line( | |
| 758 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, (data & 0x0008) ? CLEAR_LINE : ASSERT_LINE); | |
| 760 | 759 | |
| 761 | 760 | coin_counter_w(0, data & 0x0001); |
| 762 | if( (strncmp(Machine->gamedrv->name,"pzloop2",8)==0) || | |
| 763 | (strncmp(Machine->gamedrv->name,"pzloop2j",8)==0) ) | |
| 761 | if( (strncmp(machine->gamedrv->name,"pzloop2",8)==0) || | |
| 762 | (strncmp(machine->gamedrv->name,"pzloop2j",8)==0) ) | |
| 764 | 763 | { |
| 765 | 764 | // Puzz Loop 2 uses coin counter 2 input to switch between stick and paddle controls |
| 766 | 765 | readpaddle = data & 0x0002; |
| r2241 | r2242 | |
| 770 | 769 | coin_counter_w(1, data & 0x0002); |
| 771 | 770 | } |
| 772 | 771 | |
| 773 | if(strncmp( | |
| 772 | if(strncmp(machine->gamedrv->name,"mmatrix",7)==0) // Mars Matrix seems to require the coin lockout bit to be reversed | |
| 774 | 773 | { |
| 775 | 774 | coin_lockout_w(0,data & 0x0010); |
| 776 | 775 | coin_lockout_w(1,data & 0x0020); |
| r2241 | r2242 | |
| 1262 | 1261 | MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 ) |
| 1263 | 1262 | |
| 1264 | 1263 | MDRV_GFXDECODE(cps2) |
| 1265 | MDRV_PALETTE_LENGTH( | |
| 1264 | MDRV_PALETTE_LENGTH( | |
| 1266 | 1265 | |
| 1267 | 1266 | MDRV_VIDEO_START(cps2) |
| 1268 | 1267 | MDRV_VIDEO_EOF(cps1) |
| r2241 | r2242 | |
|---|---|---|
| 166 | 166 | |
| 167 | 167 | static WRITE16_HANDLER( lordgun_soundlatch_w ) |
| 168 | 168 | { |
| 169 | if (ACCESSING_LSB) soundlatch_w (machine, 0, (data >> 0) & 0xff); | |
| 170 | if (ACCESSING_MSB) soundlatch2_w(machine, 0, (data >> 8) & 0xff); | |
| 169 | if (ACCESSING_BITS_0_7) soundlatch_w (machine, 0, (data >> 0) & 0xff); | |
| 170 | if (ACCESSING_BITS_8_15) soundlatch2_w(machine, 0, (data >> 8) & 0xff); | |
| 171 | 171 | |
| 172 | 172 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); |
| 173 | 173 | } |
| r2241 | r2242 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | static WRITE16_HANDLER( pushman_control_w ) |
| 41 | 41 | { |
| 42 | if (ACCESSING_ | |
| 42 | if (ACCESSING_ | |
| 43 | 43 | soundlatch_w(machine,0,(data>>8)&0xff); |
| 44 | 44 | } |
| 45 | 45 | |
| r2241 | r2242 | |
| 56 | 56 | |
| 57 | 57 | static WRITE16_HANDLER( pushman_68705_w ) |
| 58 | 58 | { |
| 59 | if (ACCESSING_ | |
| 59 | if (ACCESSING_ | |
| 60 | 60 | shared_ram[2*offset]=data>>8; |
| 61 | if (ACCESSING_ | |
| 61 | if (ACCESSING_ | |
| 62 | 62 | shared_ram[2*offset+1]=data&0xff; |
| 63 | 63 | |
| 64 | 64 | if (offset==1) |
| r2241 | r2242 | |
| 87 | 87 | |
| 88 | 88 | static WRITE16_HANDLER( bballs_68705_w ) |
| 89 | 89 | { |
| 90 | if (ACCESSING_ | |
| 90 | if (ACCESSING_ | |
| 91 | 91 | shared_ram[2*offset]=data>>8; |
| 92 | if (ACCESSING_ | |
| 92 | if (ACCESSING_ | |
| 93 | 93 | shared_ram[2*offset+1]=data&0xff; |
| 94 | 94 | |
| 95 | 95 | if(offset==0) |
| r2241 | r2242 | |
|---|---|---|
| 59 | 59 | |
| 60 | 60 | static WRITE16_HANDLER( zerozone_sound_w ) |
| 61 | 61 | { |
| 62 | if (ACCESSING_ | |
| 62 | if (ACCESSING_ | |
| 63 | 63 | { |
| 64 | 64 | soundlatch_w(machine,offset,data >> 8); |
| 65 | 65 | cpunum_set_input_line_and_vector(machine, 1,0,HOLD_LINE,0xff); |
| r2241 | r2242 | |
|---|---|---|
| 620 | 620 | static WRITE16_HANDLER( HD63484_address_w ) |
| 621 | 621 | { |
| 622 | 622 | /* only low 8 bits are used */ |
| 623 | if (ACCESSING_ | |
| 623 | if (ACCESSING_ | |
| 624 | 624 | regno = data; |
| 625 | 625 | } |
| 626 | 626 | |
| r2241 | r2242 | |
| 739 | 739 | |
| 740 | 740 | static WRITE16_HANDLER( shanghai_coin_w ) |
| 741 | 741 | { |
| 742 | if (ACCESSING_ | |
| 742 | if (ACCESSING_ | |
| 743 | 743 | { |
| 744 | 744 | coin_counter_w(0,data & 1); |
| 745 | 745 | coin_counter_w(1,data & 2); |
| r2241 | r2242 | |
| 807 | 807 | ADDRESS_MAP_END |
| 808 | 808 | |
| 809 | 809 | static INPUT_PORTS_START( kothello ) |
| 810 | SEIBU_COIN_INPUTS | |
| 810 | SEIBU_COIN_INPUTS /* coin inputs read through sound cpu */ | |
| 811 | 811 | INPUT_PORTS_END |
| 812 | 812 | |
| 813 | 813 |
| r2241 | r2242 | |
|---|---|---|
| 134 | 134 | { |
| 135 | 135 | /* it seems that a word write is supposed to affect only the MSB. The */ |
| 136 | 136 | /* "ROUND 1" text in punkshtj goes lost otherwise. */ |
| 137 | if (ACCESSING_ | |
| 137 | if (ACCESSING_ | |
| 138 | 138 | K052109_w(machine,offset,(data >> 8) & 0xff); |
| 139 | else if (ACCESSING_ | |
| 139 | else if (ACCESSING_ | |
| 140 | 140 | K052109_w(machine,offset + 0x2000,data & 0xff); |
| 141 | 141 | } |
| 142 | 142 | |
| r2241 | r2242 | |
| 185 | 185 | { |
| 186 | 186 | offset &= ~1; /* handle mirror address */ |
| 187 | 187 | |
| 188 | if (ACCESSING_ | |
| 188 | if (ACCESSING_ | |
| 189 | 189 | K053244_w(machine,offset,(data >> 8) & 0xff); |
| 190 | if (ACCESSING_ | |
| 190 | if (ACCESSING_ | |
| 191 | 191 | K053244_w(machine,offset + 1,data & 0xff); |
| 192 | 192 | } |
| 193 | 193 | |
| r2241 | r2242 | |
| 223 | 223 | |
| 224 | 224 | static WRITE16_HANDLER( tmnt_sound_command_w ) |
| 225 | 225 | { |
| 226 | if (ACCESSING_ | |
| 226 | if (ACCESSING_ | |
| 227 | 227 | soundlatch_w(machine,0,data & 0xff); |
| 228 | 228 | } |
| 229 | 229 | |
| r2241 | r2242 | |
| 250 | 250 | |
| 251 | 251 | static WRITE16_HANDLER( glfgreat_sound_w ) |
| 252 | 252 | { |
| 253 | if (ACCESSING_ | |
| 253 | if (ACCESSING_ | |
| 254 | 254 | K053260_0_w(machine, offset, (data >> 8) & 0xff); |
| 255 | 255 | |
| 256 | 256 | if (offset) |
| r2241 | r2242 | |
| 264 | 264 | |
| 265 | 265 | static WRITE16_HANDLER( prmrsocr_sound_cmd_w ) |
| 266 | 266 | { |
| 267 | if (ACCESSING_ | |
| 267 | if (ACCESSING_ | |
| 268 | 268 | { |
| 269 | 269 | data &= 0xff; |
| 270 | 270 | if (offset == 0) soundlatch_w(machine,0,data); |
| r2241 | r2242 | |
| 551 | 551 | |
| 552 | 552 | static WRITE16_HANDLER( blswhstl_eeprom_w ) |
| 553 | 553 | { |
| 554 | if (ACCESSING_ | |
| 554 | if (ACCESSING_ | |
| 555 | 555 | { |
| 556 | 556 | /* bit 0 is data */ |
| 557 | 557 | /* bit 1 is cs (active low) */ |
| r2241 | r2242 | |
| 625 | 625 | { |
| 626 | 626 | static int last; |
| 627 | 627 | |
| 628 | if (ACCESSING_ | |
| 628 | if (ACCESSING_ | |
| 629 | 629 | { |
| 630 | 630 | /* bit 0 is data */ |
| 631 | 631 | /* bit 1 is cs (active low) */ |
| r2241 | r2242 | |
| 668 | 668 | |
| 669 | 669 | static WRITE16_HANDLER( prmrsocr_eeprom_w ) |
| 670 | 670 | { |
| 671 | if (ACCESSING_ | |
| 671 | if (ACCESSING_ | |
| 672 | 672 | { |
| 673 | 673 | prmrsocr_122000_w(machine,offset,data,mem_mask); |
| 674 | 674 | } |
| 675 | 675 | |
| 676 | if (ACCESSING_ | |
| 676 | if (ACCESSING_ | |
| 677 | 677 | { |
| 678 | 678 | /* bit 8 is data */ |
| 679 | 679 | /* bit 9 is cs (active low) */ |
| r2241 | r2242 | |
| 932 | 932 | |
| 933 | 933 | COMBINE_DATA(tmnt2_1c0800 + offset); |
| 934 | 934 | |
| 935 | if (offset != 0x18/2 || !ACCESSING_ | |
| 935 | if (offset != 0x18/2 || !ACCESSING_ | |
| 936 | 936 | |
| 937 | 937 | mcu = tmnt2_1c0800; |
| 938 | 938 | if ((mcu[8] & 0xff00) != 0x8200) return; |
| r2241 | r2242 | |
|---|---|---|
| 508 | 508 | *************************************/ |
| 509 | 509 | static WRITE16_HANDLER( volume_w ) |
| 510 | 510 | { |
| 511 | if (ACCESSING_ | |
| 511 | if (ACCESSING_ | |
| 512 | 512 | { |
| 513 | 513 | upd7759_set_bank_base(0, 0x20000 * ((data >> 1) & 3)); |
| 514 | 514 | upd7759_reset_w(0, data & 0x01); |
| r2241 | r2242 | |
| 517 | 517 | |
| 518 | 518 | static WRITE16_HANDLER( upd7759_w ) |
| 519 | 519 | { |
| 520 | if (ACCESSING_ | |
| 520 | if (ACCESSING_ | |
| 521 | 521 | { |
| 522 | 522 | upd7759_port_w(0, data); |
| 523 | 523 | upd7759_start_w(0, 0); |
| r2241 | r2242 | |
| 527 | 527 | |
| 528 | 528 | static READ16_HANDLER( upd7759_r ) |
| 529 | 529 | { |
| 530 | if (ACCESSING_ | |
| 530 | if (ACCESSING_ | |
| 531 | 531 | { |
| 532 | 532 | return upd7759_busy_r(0); |
| 533 | 533 | } |
| r2241 | r2242 | |
|---|---|---|
| 922 | 922 | */ |
| 923 | 923 | |
| 924 | 924 | #include "driver.h" |
| 925 | #include "deprecat.h" | |
| 926 | 925 | #include "cpu/mips/psx.h" |
| 927 | 926 | #include "cpu/h83002/h83002.h" |
| 928 | 927 | #include "includes/psx.h" |
| r2241 | r2242 | |
| 984 | 983 | static WRITE32_HANDLER( bankoffset_w ) |
| 985 | 984 | { |
| 986 | 985 | // Golgo 13 has different banking (maybe the keycus controls it?) |
| 987 | if( strcmp( Machine->gamedrv->name, "golgo13" ) == 0 || | |
| 988 | strcmp( Machine->gamedrv->name, "g13knd" ) == 0 ) | |
| 986 | if( strcmp( machine->gamedrv->name, "golgo13" ) == 0 || | |
| 987 | strcmp( machine->gamedrv->name, "g13knd" ) == 0 ) | |
| 989 | 988 | { |
| 990 | 989 | if( ( data & 8 ) != 0 ) |
| 991 | 990 | { |
| r2241 | r2242 | |
| 1012 | 1011 | |
| 1013 | 1012 | static WRITE32_HANDLER( dmaoffset_w ) |
| 1014 | 1013 | { |
| 1015 | if( ACCESSING_ | |
| 1014 | if( ACCESSING_BITS_0_15 ) | |
| 1016 | 1015 | { |
| 1017 | 1016 | m_n_dmaoffset = ( offset * 4 ) | ( data << 16 ); |
| 1018 | 1017 | } |
| 1019 | if( ACCESSING_ | |
| 1018 | if( ACCESSING_BITS_16_31 ) | |
| 1020 | 1019 | { |
| 1021 | 1020 | m_n_dmaoffset = ( ( offset + 2 ) * 4 ) | ( data & 0xffff0000 ); |
| 1022 | 1021 | } |
| r2241 | r2242 | |
| 1122 | 1121 | |
| 1123 | 1122 | static WRITE32_HANDLER( system11gun_w ) |
| 1124 | 1123 | { |
| 1125 | if( ACCESSING_ | |
| 1124 | if( ACCESSING_BITS_0_15 ) | |
| 1126 | 1125 | { |
| 1127 | 1126 | /* start 1 */ |
| 1128 | 1127 | set_led_status(0, !(data & 0x08)); |
| r2241 | r2242 | |
| 1134 | 1133 | /* !(data & 0x01) */ |
| 1135 | 1134 | verboselog( 1, "system11gun_w: outputs (%08x %08x)\n", data, mem_mask ); |
| 1136 | 1135 | } |
| 1137 | if( ACCESSING_ | |
| 1136 | if( ACCESSING_BITS_16_31 ) | |
| 1138 | 1137 | { |
| 1139 | 1138 | verboselog( 2, "system11gun_w: start reading (%08x %08x)\n", data, mem_mask ); |
| 1140 | 1139 | } |
| r2241 | r2242 | |
| 1300 | 1299 | mame_system_time systime; |
| 1301 | 1300 | static const int weekday[7] = { 7, 1, 2, 3, 4, 5, 6 }; |
| 1302 | 1301 | |
| 1303 | mame_get_current_datetime( | |
| 1302 | mame_get_current_datetime(machine, &systime); | |
| 1304 | 1303 | |
| 1305 | 1304 | switch (s12_rtcstate) |
| 1306 | 1305 | { |
| r2241 | r2242 | |
|---|---|---|
| 2043 | 2043 | |
| 2044 | 2044 | static WRITE16_HANDLER( rdx_v33_eeprom_w ) |
| 2045 | 2045 | { |
| 2046 | if (ACCESSING_ | |
| 2046 | if (ACCESSING_ | |
| 2047 | 2047 | { |
| 2048 | 2048 | EEPROM_set_clock_line((data & 0x10) ? ASSERT_LINE : CLEAR_LINE); |
| 2049 | 2049 | EEPROM_write_bit(data & 0x20); |
| r2241 | r2242 | |
| 2102 | 2102 | |
| 2103 | 2103 | static WRITE16_HANDLER( rdx_v33_oki_w ) |
| 2104 | 2104 | { |
| 2105 | if (ACCESSING_LSB) OKIM6295_data_0_w(machine, 0, data & 0x00ff); | |
| 2106 | if (ACCESSING_MSB) logerror("rdx_v33_oki_w MSB %04x\n",data); | |
| 2105 | if (ACCESSING_BITS_0_7) OKIM6295_data_0_w(machine, 0, data & 0x00ff); | |
| 2106 | if (ACCESSING_BITS_8_15) logerror("rdx_v33_oki_w MSB %04x\n",data); | |
| 2107 | 2107 | } |
| 2108 | 2108 | |
| 2109 | 2109 | static READ16_HANDLER( rdx_v33_unknown_r ) |
| r2241 | r2242 | |
|---|---|---|
| 30 | 30 | #include "machine/8255ppi.h" |
| 31 | 31 | #include "sound/ay8910.h" |
| 32 | 32 | #include "sound/dac.h" |
| 33 | #include "galax | |
| 33 | #include "galaxold.h" | |
| 34 | 34 | |
| 35 | 35 | |
| 36 | //cpu #0 (PC=00003F6C): warning - op-code execute on mapped I/O | |
| 37 | extern int monsterz_count; | |
| 38 | static READ8_HANDLER( monsterz_prot_r ) | |
| 39 | { | |
| 40 | int pc = activecpu_get_pc(); | |
| 41 | if(pc != 0xc5e0 && pc != 0xC604 && pc != 0xc62c) | |
| 42 | printf("%X\n",pc); | |
| 43 | 36 | |
| 44 | if( !(monsterz_count % 0x200) ) | |
| 45 | { | |
| 46 | ||
| 47 | UINT8 ret = memory_region(REGION_CPU1)[0x19 - monsterz_count / 0x200]; | |
| 48 | ||
| 49 | printf("count = %X\n",monsterz_count ); | |
| 50 | ||
| 51 | ret ^= memory_region(REGION_CPU1)[0x100 + monsterz_count / 2]; | |
| 52 | monsterz_count++; | |
| 53 | return ret; | |
| 54 | } | |
| 55 | else | |
| 56 | { | |
| 57 | UINT8 ret; | |
| 58 | ||
| 59 | if(monsterz_count & 0x100) | |
| 60 | // missing data? | |
| 61 | ret = 0;//memory_region(REGION_CPU1)[0xc000 + monsterz_count2+ (monsterz_count / 0x200) * 0x100 + (monsterz_count % 0x200)]; | |
| 62 | else | |
| 63 | ret = memory_region(REGION_CPU1)[0x100 + (monsterz_count / 0x200) * 0x100 + (monsterz_count % 0x200)]; | |
| 64 | ||
| 65 | printf("count = %X\n",monsterz_count); | |
| 66 | ||
| 67 | monsterz_count++; | |
| 68 | ||
| 69 | if(monsterz_count == 0x200*9) | |
| 70 | { | |
| 71 | UINT8 *ROM = memory_region(REGION_CPU1); | |
| 72 | memcpy(&ROM[0x3800],&ROM[0xc01f],0x800); | |
| 73 | monsterz_count = 0; | |
| 74 | } | |
| 75 | ||
| 76 | return ret; | |
| 77 | } | |
| 78 | } | |
| 79 | ||
| 80 | ||
| 81 | 37 | static ADDRESS_MAP_START( scramble_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 82 | 38 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 83 | 39 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) |
| 84 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galax | |
| 40 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galaxold_videoram_r) /* mirror */ | |
| 85 | 41 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) |
| 86 | 42 | AM_RANGE(0x7000, 0x7000) AM_READ(watchdog_reset_r) |
| 87 | 43 | AM_RANGE(0x7800, 0x7800) AM_READ(watchdog_reset_r) |
| r2241 | r2242 | |
| 93 | 49 | static ADDRESS_MAP_START( scramble_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 94 | 50 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) |
| 95 | 51 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) |
| 96 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 97 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxian_videoram_w) /* mirror address */ | |
| 98 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 99 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 100 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 52 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 53 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxold_videoram_w) /* mirror address */ | |
| 54 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 55 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 56 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 101 | 57 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) |
| 102 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_nmi_enable_w) | |
| 103 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxian_coin_counter_w) | |
| 104 | AM_RANGE(0x6804, 0x6804) AM_WRITE(galaxian_stars_enable_w) | |
| 105 | AM_RANGE(0x6806, 0x6806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 106 | AM_RANGE(0x6807, 0x6807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 58 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxold_nmi_enable_w) | |
| 59 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxold_coin_counter_w) | |
| 60 | AM_RANGE(0x6804, 0x6804) AM_WRITE(galaxold_stars_enable_w) | |
| 61 | AM_RANGE(0x6806, 0x6806) AM_WRITE(galaxold_flip_screen_x_w) | |
| 62 | AM_RANGE(0x6807, 0x6807) AM_WRITE(galaxold_flip_screen_y_w) | |
| 107 | 63 | AM_RANGE(0x8100, 0x8103) AM_WRITE(ppi8255_0_w) |
| 108 | 64 | AM_RANGE(0x8200, 0x8203) AM_WRITE(ppi8255_1_w) |
| 109 | 65 | ADDRESS_MAP_END |
| r2241 | r2242 | |
| 113 | 69 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) |
| 114 | 70 | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) |
| 115 | 71 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) |
| 116 | AM_RANGE(0x9400, 0x97ff) AM_READ(galax | |
| 72 | AM_RANGE(0x9400, 0x97ff) AM_READ(galaxold_videoram_r) | |
| 117 | 73 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) |
| 118 | 74 | |
| 119 | 75 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) |
| r2241 | r2242 | |
| 130 | 86 | static ADDRESS_MAP_START( turpins_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 131 | 87 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) |
| 132 | 88 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) |
| 133 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 134 | AM_RANGE(0x9400, 0x97ff) AM_WRITE(galaxian_videoram_w) | |
| 135 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 136 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 137 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 89 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 90 | AM_RANGE(0x9400, 0x97ff) AM_WRITE(galaxold_videoram_w) | |
| 91 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 92 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 93 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 138 | 94 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) |
| 139 | 95 | |
| 140 | AM_RANGE(0xa801, 0xa801) AM_WRITE(galaxian_nmi_enable_w) | |
| 141 | AM_RANGE(0xa802, 0xa802) AM_WRITE(galaxian_coin_counter_w) | |
| 142 | AM_RANGE(0xa804, 0xa804) AM_WRITE(galaxian_stars_enable_w) | |
| 143 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 144 | AM_RANGE(0xa807, 0xa807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 96 | AM_RANGE(0xa801, 0xa801) AM_WRITE(galaxold_nmi_enable_w) | |
| 97 | AM_RANGE(0xa802, 0xa802) AM_WRITE(galaxold_coin_counter_w) | |
| 98 | AM_RANGE(0xa804, 0xa804) AM_WRITE(galaxold_stars_enable_w) | |
| 99 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxold_flip_screen_x_w) | |
| 100 | AM_RANGE(0xa807, 0xa807) AM_WRITE(galaxold_flip_screen_y_w) | |
| 145 | 101 | /* don't know where these are */ |
| 146 | 102 | // AM_RANGE(0x8100, 0x8103) AM_WRITE(ppi8255_0_w) |
| 147 | 103 | // AM_RANGE(0x8200, 0x8203) AM_WRITE(ppi8255_1_w) |
| r2241 | r2242 | |
| 150 | 106 | static ADDRESS_MAP_START( explorer_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 151 | 107 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 152 | 108 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) |
| 153 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galax | |
| 109 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galaxold_videoram_r) /* mirror */ | |
| 154 | 110 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) |
| 155 | 111 | AM_RANGE(0x5100, 0x51ff) AM_READ(SMH_NOP) /* test mode mirror? */ |
| 156 | 112 | AM_RANGE(0x7000, 0x7000) AM_READ(watchdog_reset_r) |
| r2241 | r2242 | |
| 163 | 119 | static ADDRESS_MAP_START( explorer_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 164 | 120 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) |
| 165 | 121 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) |
| 166 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 167 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxian_videoram_w) /* mirror address */ | |
| 168 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 169 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 170 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 122 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 123 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxold_videoram_w) /* mirror address */ | |
| 124 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 125 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 126 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 171 | 127 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) |
| 172 | 128 | AM_RANGE(0x5100, 0x51ff) AM_WRITE(SMH_NOP) /* test mode mirror? */ |
| 173 | 129 | AM_RANGE(0x6800, 0x6800) AM_WRITE(SMH_NOP) |
| 174 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_nmi_enable_w) | |
| 175 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxian_coin_counter_w) | |
| 130 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxold_nmi_enable_w) | |
| 131 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxold_coin_counter_w) | |
| 176 | 132 | AM_RANGE(0x6803, 0x6803) AM_WRITE(SMH_NOP) |
| 177 | AM_RANGE(0x6804, 0x6804) AM_WRITE(galaxian_stars_enable_w) | |
| 178 | AM_RANGE(0x6806, 0x6806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 179 | AM_RANGE(0x6807, 0x6807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 133 | AM_RANGE(0x6804, 0x6804) AM_WRITE(galaxold_stars_enable_w) | |
| 134 | AM_RANGE(0x6806, 0x6806) AM_WRITE(galaxold_flip_screen_x_w) | |
| 135 | AM_RANGE(0x6807, 0x6807) AM_WRITE(galaxold_flip_screen_y_w) | |
| 180 | 136 | AM_RANGE(0x7000, 0x7000) AM_WRITE(SMH_NOP) |
| 181 | 137 | AM_RANGE(0x8000, 0x8000) AM_WRITE(soundlatch_w) |
| 182 | 138 | AM_RANGE(0x9000, 0x9000) AM_WRITE(hotshock_sh_irqtrigger_w) |
| r2241 | r2242 | |
| 198 | 154 | AM_RANGE(0x6000, 0x6bff) AM_WRITE(SMH_RAM) |
| 199 | 155 | AM_RANGE(0x7000, 0x7003) AM_WRITE(ppi8255_0_w) |
| 200 | 156 | AM_RANGE(0x7800, 0x7803) AM_WRITE(ppi8255_1_w) |
| 201 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 202 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 203 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 204 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 157 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 158 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 159 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 160 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 205 | 161 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) |
| 206 | AM_RANGE(0xa801, 0xa801) AM_WRITE(galaxian_nmi_enable_w) | |
| 207 | AM_RANGE(0xa802, 0xa802) AM_WRITE(galaxian_coin_counter_w) | |
| 208 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 209 | AM_RANGE(0xa807, 0xa807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 162 | AM_RANGE(0xa801, 0xa801) AM_WRITE(galaxold_nmi_enable_w) | |
| 163 | AM_RANGE(0xa802, 0xa802) AM_WRITE(galaxold_coin_counter_w) | |
| 164 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxold_flip_screen_x_w) | |
| 165 | AM_RANGE(0xa807, 0xa807) AM_WRITE(galaxold_flip_screen_y_w) | |
| 210 | 166 | ADDRESS_MAP_END |
| 211 | 167 | |
| 212 | 168 | |
| r2241 | r2242 | |
| 234 | 190 | static ADDRESS_MAP_START( mars_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 235 | 191 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 236 | 192 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) |
| 237 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galax | |
| 193 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galaxold_videoram_r) | |
| 238 | 194 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) |
| 239 | 195 | AM_RANGE(0x7000, 0x7000) AM_READ(watchdog_reset_r) |
| 240 | 196 | AM_RANGE(0x7000, 0x7000) AM_READ(SMH_NOP) |
| r2241 | r2242 | |
| 245 | 201 | static ADDRESS_MAP_START( mars_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 246 | 202 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) |
| 247 | 203 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) |
| 248 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 249 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 250 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 251 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 204 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 205 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 206 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 207 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 252 | 208 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) |
| 253 | AM_RANGE(0x6800, 0x6800) AM_WRITE(galaxian_coin_counter_1_w) | |
| 254 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_stars_enable_w) | |
| 255 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxian_nmi_enable_w) | |
| 256 | AM_RANGE(0x6808, 0x6808) AM_WRITE(galaxian_coin_counter_0_w) | |
| 257 | AM_RANGE(0x6809, 0x6809) AM_WRITE(galaxian_flip_screen_x_w) | |
| 258 | AM_RANGE(0x680b, 0x680b) AM_WRITE(galaxian_flip_screen_y_w) | |
| 209 | AM_RANGE(0x6800, 0x6800) AM_WRITE(galaxold_coin_counter_1_w) | |
| 210 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxold_stars_enable_w) | |
| 211 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxold_nmi_enable_w) | |
| 212 | AM_RANGE(0x6808, 0x6808) AM_WRITE(galaxold_coin_counter_0_w) | |
| 213 | AM_RANGE(0x6809, 0x6809) AM_WRITE(galaxold_flip_screen_x_w) | |
| 214 | AM_RANGE(0x680b, 0x680b) AM_WRITE(galaxold_flip_screen_y_w) | |
| 259 | 215 | AM_RANGE(0x8100, 0x810f) AM_WRITE(mars_ppi8255_0_w) |
| 260 | 216 | AM_RANGE(0x8200, 0x820f) AM_WRITE(mars_ppi8255_1_w) |
| 261 | 217 | ADDRESS_MAP_END |
| r2241 | r2242 | |
| 264 | 220 | static ADDRESS_MAP_START( newsin7_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 265 | 221 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 266 | 222 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) |
| 267 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galax | |
| 223 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galaxold_videoram_r) | |
| 268 | 224 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) |
| 269 | 225 | AM_RANGE(0x7000, 0x7000) AM_READ(watchdog_reset_r) |
| 270 | 226 | AM_RANGE(0x8200, 0x820f) AM_READ(mars_ppi8255_1_r) |
| r2241 | r2242 | |
| 275 | 231 | static ADDRESS_MAP_START( newsin7_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 276 | 232 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) |
| 277 | 233 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) |
| 278 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 279 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 280 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 281 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 234 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 235 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 236 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 237 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 282 | 238 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) |
| 283 | AM_RANGE(0x6800, 0x6800) AM_WRITE(galaxian_coin_counter_1_w) | |
| 284 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_stars_enable_w) | |
| 285 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxian_nmi_enable_w) | |
| 286 | AM_RANGE(0x6808, 0x6808) AM_WRITE(galaxian_coin_counter_0_w) | |
| 287 | AM_RANGE(0x6809, 0x6809) AM_WRITE(galaxian_flip_screen_x_w) | |
| 288 | AM_RANGE(0x680b, 0x680b) AM_WRITE(galaxian_flip_screen_y_w) | |
| 239 | AM_RANGE(0x6800, 0x6800) AM_WRITE(galaxold_coin_counter_1_w) | |
| 240 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxold_stars_enable_w) | |
| 241 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxold_nmi_enable_w) | |
| 242 | AM_RANGE(0x6808, 0x6808) AM_WRITE(galaxold_coin_counter_0_w) | |
| 243 | AM_RANGE(0x6809, 0x6809) AM_WRITE(galaxold_flip_screen_x_w) | |
| 244 | AM_RANGE(0x680b, 0x680b) AM_WRITE(galaxold_flip_screen_y_w) | |
| 289 | 245 | AM_RANGE(0x8200, 0x820f) AM_WRITE(mars_ppi8255_1_w) |
| 290 | 246 | AM_RANGE(0xa000, 0xafff) AM_WRITE(SMH_ROM) |
| 291 | 247 | AM_RANGE(0xc100, 0xc10f) AM_WRITE(mars_ppi8255_0_w) |
| r2241 | r2242 | |
| 295 | 251 | static ADDRESS_MAP_START( mrkougar_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 296 | 252 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) |
| 297 | 253 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) |
| 298 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 299 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxian_videoram_w) /* mirror address */ | |
| 300 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 301 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 302 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 254 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 255 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxold_videoram_w) /* mirror address */ | |
| 256 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 257 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 258 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 303 | 259 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) |
| 304 | AM_RANGE(0x6800, 0x6800) AM_WRITE(galaxian_coin_counter_1_w) | |
| 305 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_nmi_enable_w) | |
| 306 | AM_RANGE(0x6808, 0x6808) AM_WRITE(galaxian_coin_counter_0_w) | |
| 307 | AM_RANGE(0x6809, 0x6809) AM_WRITE(galaxian_flip_screen_x_w) | |
| 308 | AM_RANGE(0x680b, 0x680b) AM_WRITE(galaxian_flip_screen_y_w) | |
| 260 | AM_RANGE(0x6800, 0x6800) AM_WRITE(galaxold_coin_counter_1_w) | |
| 261 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxold_nmi_enable_w) | |
| 262 | AM_RANGE(0x6808, 0x6808) AM_WRITE(galaxold_coin_counter_0_w) | |
| 263 | AM_RANGE(0x6809, 0x6809) AM_WRITE(galaxold_flip_screen_x_w) | |
| 264 | AM_RANGE(0x680b, 0x680b) AM_WRITE(galaxold_flip_screen_y_w) | |
| 309 | 265 | AM_RANGE(0x8100, 0x810f) AM_WRITE(mars_ppi8255_0_w) |
| 310 | 266 | AM_RANGE(0x8200, 0x820f) AM_WRITE(mars_ppi8255_1_w) |
| 311 | 267 | ADDRESS_MAP_END |
| r2241 | r2242 | |
| 314 | 270 | static ADDRESS_MAP_START( hotshock_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 315 | 271 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 316 | 272 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) |
| 317 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galax | |
| 273 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galaxold_videoram_r) | |
| 318 | 274 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) |
| 319 | 275 | AM_RANGE(0x8000, 0x8000) AM_READ(input_port_0_r) |
| 320 | 276 | AM_RANGE(0x8001, 0x8001) AM_READ(input_port_1_r) |
| r2241 | r2242 | |
| 325 | 281 | static ADDRESS_MAP_START( hotshock_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 326 | 282 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) |
| 327 | 283 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) |
| 328 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 329 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 330 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 331 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 284 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 285 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 286 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 287 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 332 | 288 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) |
| 333 | AM_RANGE(0x6000, 0x6000) AM_WRITE(galaxian_coin_counter_2_w) | |
| 334 | AM_RANGE(0x6002, 0x6002) AM_WRITE(galaxian_coin_counter_1_w) | |
| 289 | AM_RANGE(0x6000, 0x6000) AM_WRITE(galaxold_coin_counter_2_w) | |
| 290 | AM_RANGE(0x6002, 0x6002) AM_WRITE(galaxold_coin_counter_1_w) | |
| 335 | 291 | AM_RANGE(0x6004, 0x6004) AM_WRITE(hotshock_flip_screen_w) |
| 336 | AM_RANGE(0x6005, 0x6005) AM_WRITE(galaxian_coin_counter_0_w) | |
| 337 | AM_RANGE(0x6006, 0x6006) AM_WRITE(galaxian_gfxbank_w) | |
| 338 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_nmi_enable_w) | |
| 292 | AM_RANGE(0x6005, 0x6005) AM_WRITE(galaxold_coin_counter_0_w) | |
| 293 | AM_RANGE(0x6006, 0x6006) AM_WRITE(galaxold_gfxbank_w) | |
| 294 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxold_nmi_enable_w) | |
| 339 | 295 | AM_RANGE(0x7000, 0x7000) AM_WRITE(watchdog_reset_w) |
| 340 | 296 | AM_RANGE(0x8000, 0x8000) AM_WRITE(soundlatch_w) |
| 341 | 297 | AM_RANGE(0x9000, 0x9000) AM_WRITE(hotshock_sh_irqtrigger_w) |
| r2241 | r2242 | |
| 361 | 317 | static ADDRESS_MAP_START( hunchbks_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 362 | 318 | AM_RANGE(0x0000, 0x0fff) AM_WRITE(SMH_ROM) |
| 363 | 319 | AM_RANGE(0x1210, 0x1213) AM_WRITE(ppi8255_1_w) |
| 364 | AM_RANGE(0x1400, 0x143f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 365 | AM_RANGE(0x1440, 0x145f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 366 | AM_RANGE(0x1460, 0x147f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 320 | AM_RANGE(0x1400, 0x143f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 321 | AM_RANGE(0x1440, 0x145f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 322 | AM_RANGE(0x1460, 0x147f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 367 | 323 | AM_RANGE(0x1480, 0x14ff) AM_WRITE(SMH_RAM) |
| 368 | 324 | AM_RANGE(0x1500, 0x1503) AM_WRITE(ppi8255_0_w) |
| 369 | AM_RANGE(0x1606, 0x1606) AM_WRITE(galaxian_flip_screen_x_w) | |
| 370 | AM_RANGE(0x1607, 0x1607) AM_WRITE(galaxian_flip_screen_y_w) | |
| 371 | AM_RANGE(0x1800, 0x1bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 325 | AM_RANGE(0x1606, 0x1606) AM_WRITE(galaxold_flip_screen_x_w) | |
| 326 | AM_RANGE(0x1607, 0x1607) AM_WRITE(galaxold_flip_screen_y_w) | |
| 327 | AM_RANGE(0x1800, 0x1bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 372 | 328 | AM_RANGE(0x1c00, 0x1fff) AM_WRITE(SMH_RAM) |
| 373 | 329 | AM_RANGE(0x2000, 0x2fff) AM_WRITE(SMH_ROM) |
| 374 | 330 | AM_RANGE(0x3000, 0x3fff) AM_WRITE(hunchbks_mirror_w) |
| r2241 | r2242 | |
| 379 | 335 | ADDRESS_MAP_END |
| 380 | 336 | |
| 381 | 337 | |
| 382 | static ADDRESS_MAP_START( sfx_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 383 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 384 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) | |
| 385 | AM_RANGE(0x4c00, 0x4fff) AM_READ(galaxian_videoram_r) /* mirror */ | |
| 386 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) | |
| 387 | AM_RANGE(0x7000, 0x7fff) AM_READ(SMH_ROM) | |
| 388 | AM_RANGE(0x8100, 0x8103) AM_READ(ppi8255_0_r) | |
| 389 | AM_RANGE(0x8200, 0x8203) AM_READ(ppi8255_1_r) | |
| 390 | AM_RANGE(0xc000, 0xefff) AM_READ(SMH_ROM) | |
| 391 | ADDRESS_MAP_END | |
| 392 | ||
| 393 | static ADDRESS_MAP_START( sfx_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 394 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 395 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 396 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 397 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxian_videoram_w) /* mirror address */ | |
| 398 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 399 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 400 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 401 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) | |
| 402 | AM_RANGE(0x6800, 0x6800) AM_WRITE(scramble_background_red_w) | |
| 403 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_nmi_enable_w) | |
| 404 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxian_coin_counter_w) | |
| 405 | AM_RANGE(0x6803, 0x6803) AM_WRITE(scramble_background_blue_w) | |
| 406 | AM_RANGE(0x6804, 0x6804) AM_WRITE(galaxian_stars_enable_w) | |
| 407 | AM_RANGE(0x6805, 0x6805) AM_WRITE(scramble_background_green_w) | |
| 408 | AM_RANGE(0x6806, 0x6806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 409 | AM_RANGE(0x6807, 0x6807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 410 | AM_RANGE(0x7000, 0x7fff) AM_WRITE(SMH_ROM) | |
| 411 | AM_RANGE(0x8100, 0x8103) AM_WRITE(ppi8255_0_w) | |
| 412 | AM_RANGE(0x8200, 0x8203) AM_WRITE(ppi8255_1_w) | |
| 413 | AM_RANGE(0xc000, 0xefff) AM_WRITE(SMH_ROM) | |
| 414 | ADDRESS_MAP_END | |
| 415 | ||
| 416 | static ADDRESS_MAP_START( sfx_sample_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 417 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 418 | AM_RANGE(0x8000, 0x83ff) AM_READ(SMH_RAM) | |
| 419 | ADDRESS_MAP_END | |
| 420 | ||
| 421 | static ADDRESS_MAP_START( sfx_sample_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 422 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 423 | AM_RANGE(0x8000, 0x83ff) AM_WRITE(SMH_RAM) | |
| 424 | ADDRESS_MAP_END | |
| 425 | ||
| 426 | static ADDRESS_MAP_START( sfx_sample_readport, ADDRESS_SPACE_IO, 8 ) | |
| 427 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 428 | AM_RANGE(0x04, 0x07) AM_READ(ppi8255_2_r) | |
| 429 | ADDRESS_MAP_END | |
| 430 | ||
| 431 | static ADDRESS_MAP_START( sfx_sample_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 432 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 433 | AM_RANGE(0x04, 0x07) AM_WRITE(ppi8255_2_w) | |
| 434 | AM_RANGE(0x10, 0x10) AM_WRITE(DAC_0_signed_data_w) | |
| 435 | ADDRESS_MAP_END | |
| 436 | ||
| 437 | ||
| 438 | static READ8_HANDLER( monsterz_sound_status_r ) | |
| 439 | { | |
| 440 | return 0x80; | |
| 441 | } | |
| 442 | ||
| 443 | static ADDRESS_MAP_START( monsterz_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 444 | AM_RANGE(0x0000, 0x37ff) AM_ROM | |
| 445 | AM_RANGE(0x3800, 0x3fff) AM_RAM | |
| 446 | AM_RANGE(0x4000, 0x47ff) AM_RAM | |
| 447 | AM_RANGE(0x4800, 0x4bff) AM_READWRITE(galaxian_videoram_r, galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 448 | AM_RANGE(0x4c00, 0x4fff) AM_READWRITE(galaxian_videoram_r, galaxian_videoram_w) /* mirror address */ | |
| 449 | AM_RANGE(0x5000, 0x503f) AM_RAM AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 450 | AM_RANGE(0x5040, 0x505f) AM_RAM AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 451 | AM_RANGE(0x5060, 0x507f) AM_RAM AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 452 | AM_RANGE(0x7000, 0x7000) AM_READ(watchdog_reset_r) | |
| 453 | AM_RANGE(0x8100, 0x8103) AM_READWRITE(ppi8255_0_r, ppi8255_0_w) | |
| 454 | AM_RANGE(0x8200, 0x8203) AM_READWRITE(ppi8255_1_r, ppi8255_1_w) | |
| 455 | AM_RANGE(0x6800, 0x6800) AM_WRITE(scramble_background_red_w) | |
| 456 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_nmi_enable_w) | |
| 457 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxian_coin_counter_w) | |
| 458 | AM_RANGE(0x6803, 0x6803) AM_WRITE(scramble_background_blue_w) | |
| 459 | AM_RANGE(0x6804, 0x6804) AM_WRITE(galaxian_stars_enable_w) | |
| 460 | AM_RANGE(0x6805, 0x6805) AM_WRITE(scramble_background_green_w) | |
| 461 | AM_RANGE(0x6806, 0x6806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 462 | AM_RANGE(0x6807, 0x6807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 463 | AM_RANGE(0xc000, 0xd7ff) AM_ROM | |
| 464 | AM_RANGE(0xd800, 0xd800) AM_READ(monsterz_prot_r) | |
| 465 | ADDRESS_MAP_END | |
| 466 | ||
| 467 | static ADDRESS_MAP_START( monsterz_sound_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 468 | AM_RANGE(0x04, 0x04) AM_READ(monsterz_sound_status_r) | |
| 469 | AM_RANGE(0x10, 0x10) AM_WRITE(AY8910_control_port_0_w) | |
| 470 | AM_RANGE(0x20, 0x20) AM_READWRITE(AY8910_read_port_0_r, AY8910_write_port_0_w) | |
| 471 | AM_RANGE(0x40, 0x40) AM_WRITE(AY8910_control_port_1_w) | |
| 472 | AM_RANGE(0x80, 0x80) AM_READWRITE(AY8910_read_port_1_r, AY8910_write_port_1_w) | |
| 473 | ADDRESS_MAP_END | |
| 474 | ||
| 475 | ||
| 476 | 338 | static ADDRESS_MAP_START( mimonscr_readmem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 477 | 339 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) |
| 478 | AM_RANGE(0x4000, 0x43ff) AM_READ(galax | |
| 340 | AM_RANGE(0x4000, 0x43ff) AM_READ(galaxold_videoram_r) /* mirror address?, probably not */ | |
| 479 | 341 | AM_RANGE(0x4400, 0x4bff) AM_READ(SMH_RAM) |
| 480 | 342 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) |
| 481 | 343 | AM_RANGE(0x7000, 0x7000) AM_READ(watchdog_reset_r) |
| r2241 | r2242 | |
| 486 | 348 | |
| 487 | 349 | static ADDRESS_MAP_START( mimonscr_writemem, ADDRESS_SPACE_PROGRAM, 8 ) |
| 488 | 350 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) |
| 489 | AM_RANGE(0x4000, 0x43ff) AM_WRITE(galax | |
| 351 | AM_RANGE(0x4000, 0x43ff) AM_WRITE(galaxold_videoram_w) /* mirror address?, probably not */ | |
| 490 | 352 | AM_RANGE(0x4400, 0x47ff) AM_WRITE(SMH_RAM) |
| 491 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 492 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 493 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 494 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 353 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 354 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 355 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 356 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 495 | 357 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) |
| 496 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_nmi_enable_w) | |
| 497 | AM_RANGE(0x6800, 0x6802) AM_WRITE(galaxian_gfxbank_w) | |
| 498 | AM_RANGE(0x6806, 0x6806) AM_WRITE(galaxian_flip_screen_x_w) | |
| 499 | AM_RANGE(0x6807, 0x6807) AM_WRITE(galaxian_flip_screen_y_w) | |
| 358 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxold_nmi_enable_w) | |
| 359 | AM_RANGE(0x6800, 0x6802) AM_WRITE(galaxold_gfxbank_w) | |
| 360 | AM_RANGE(0x6806, 0x6806) AM_WRITE(galaxold_flip_screen_x_w) | |
| 361 | AM_RANGE(0x6807, 0x6807) AM_WRITE(galaxold_flip_screen_y_w) | |
| 500 | 362 | AM_RANGE(0x8100, 0x8103) AM_WRITE(ppi8255_0_w) |
| 501 | 363 | AM_RANGE(0x8200, 0x8203) AM_WRITE(ppi8255_1_w) |
| 502 | 364 | AM_RANGE(0xc000, 0xffff) AM_WRITE(SMH_ROM) |
| r2241 | r2242 | |
| 526 | 388 | static ADDRESS_MAP_START( frogf_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 527 | 389 | AM_RANGE(0x0000, 0x2fff) AM_ROM |
| 528 | 390 | AM_RANGE(0x8000, 0x87ff) AM_RAM |
| 529 | AM_RANGE(0x8800, 0x8bff) AM_RAM AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 530 | AM_RANGE(0x9000, 0x903f) AM_RAM AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 531 | AM_RANGE(0x9040, 0x905f) AM_RAM AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 391 | AM_RANGE(0x8800, 0x8bff) AM_RAM AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 392 | AM_RANGE(0x9000, 0x903f) AM_RAM AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 393 | AM_RANGE(0x9040, 0x905f) AM_RAM AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 532 | 394 | AM_RANGE(0x9060, 0x90ff) AM_RAM |
| 533 | AM_RANGE(0xa802, 0xa802) AM_WRITE(galaxian_flip_screen_x_w) | |
| 534 | AM_RANGE(0xa804, 0xa804) AM_WRITE(galaxian_nmi_enable_w) | |
| 535 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxian_flip_screen_y_w) | |
| 536 | AM_RANGE(0xa808, 0xa808) AM_WRITE(galaxian_coin_counter_1_w) | |
| 537 | AM_RANGE(0xa80e, 0xa80e) AM_WRITE(galaxian_coin_counter_0_w) | |
| 395 | AM_RANGE(0xa802, 0xa802) AM_WRITE(galaxold_flip_screen_x_w) | |
| 396 | AM_RANGE(0xa804, 0xa804) AM_WRITE(galaxold_nmi_enable_w) | |
| 397 | AM_RANGE(0xa806, 0xa806) AM_WRITE(galaxold_flip_screen_y_w) | |
| 398 | AM_RANGE(0xa808, 0xa808) AM_WRITE(galaxold_coin_counter_1_w) | |
| 399 | AM_RANGE(0xa80e, 0xa80e) AM_WRITE(galaxold_coin_counter_0_w) | |
| 538 | 400 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) |
| 539 | 401 | AM_RANGE(0xd000, 0xd018) AM_READWRITE(frogf_ppi8255_0_r, frogf_ppi8255_0_w) |
| 540 | 402 | AM_RANGE(0xe000, 0xe018) AM_READWRITE(frogf_ppi8255_1_r, frogf_ppi8255_1_w) |
| r2241 | r2242 | |
| 543 | 405 | static ADDRESS_MAP_START( ad2083_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 544 | 406 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 545 | 407 | AM_RANGE(0x4000, 0x47ff) AM_RAM |
| 546 | AM_RANGE(0x4800, 0x4bff) AM_READWRITE(galaxian_videoram_r, galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 547 | AM_RANGE(0x5000, 0x503f) AM_RAM AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 548 | AM_RANGE(0x5040, 0x505f) AM_RAM AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 549 | AM_RANGE(0x5060, 0x507f) AM_RAM AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 408 | AM_RANGE(0x4800, 0x4bff) AM_READWRITE(galaxold_videoram_r, galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 409 | AM_RANGE(0x5000, 0x503f) AM_RAM AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 410 | AM_RANGE(0x5040, 0x505f) AM_RAM AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 411 | AM_RANGE(0x5060, 0x507f) AM_RAM AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 550 | 412 | AM_RANGE(0x6004, 0x6004) AM_WRITE(hotshock_flip_screen_w) |
| 551 | AM_RANGE(0x6800, 0x6800) AM_WRITE(galaxian_coin_counter_2_w) | |
| 552 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxian_nmi_enable_w) | |
| 553 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxian_coin_counter_0_w) | |
| 554 | AM_RANGE(0x6803, 0x6803) AM_WRITE(scramble_background_blue_w) | |
| 555 | AM_RANGE(0x6805, 0x6805) AM_WRITE(galaxian_coin_counter_1_w) | |
| 556 | AM_RANGE(0x6806, 0x6806) AM_WRITE(scramble_background_red_w) | |
| 557 | AM_RANGE(0x6807, 0x6807) AM_WRITE(scramble_background_green_w) | |
| 413 | AM_RANGE(0x6800, 0x6800) AM_WRITE(galaxold_coin_counter_2_w) | |
| 414 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxold_nmi_enable_w) | |
| 415 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxold_coin_counter_0_w) | |
| 416 | AM_RANGE(0x6803, 0x6803) AM_WRITE(scrambold_background_blue_w) | |
| 417 | AM_RANGE(0x6805, 0x6805) AM_WRITE(galaxold_coin_counter_1_w) | |
| 418 | AM_RANGE(0x6806, 0x6806) AM_WRITE(scrambold_background_red_w) | |
| 419 | AM_RANGE(0x6807, 0x6807) AM_WRITE(scrambold_background_green_w) | |
| 558 | 420 | AM_RANGE(0x8000, 0x8000) AM_WRITE(soundlatch_w) |
| 559 | 421 | AM_RANGE(0x9000, 0x9000) AM_WRITE(hotshock_sh_irqtrigger_w) |
| 560 | 422 | AM_RANGE(0x7000, 0x7000) AM_READ(watchdog_reset_r) |
| r2241 | r2242 | |
| 2009 | 1871 | MDRV_GFXDECODE(scramble) |
| 2010 | 1872 | MDRV_PALETTE_LENGTH(32+64+2+1) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2011 | 1873 | |
| 2012 | MDRV_PALETTE_INIT(scramble) | |
| 2013 | MDRV_VIDEO_START(scramble) | |
| 2014 | MDRV_VIDEO_UPDATE(galaxian) | |
| 1874 | MDRV_PALETTE_INIT(scrambold) | |
| 1875 | MDRV_VIDEO_START(scrambold) | |
| 1876 | MDRV_VIDEO_UPDATE(galaxold) | |
| 2015 | 1877 | |
| 2016 | 1878 | /* sound hardware */ |
| 2017 | 1879 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r2241 | r2242 | |
| 2080 | 1942 | /* video hardware */ |
| 2081 | 1943 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2082 | 1944 | |
| 2083 | MDRV_PALETTE_INIT(galax | |
| 1945 | MDRV_PALETTE_INIT(galaxold) | |
| 2084 | 1946 | MDRV_VIDEO_START(theend) |
| 2085 | 1947 | MACHINE_DRIVER_END |
| 2086 | 1948 | |
| 2087 | 1949 | |
| 2088 | static ADDRESS_MAP_START( frogger_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 2089 | AM_RANGE(0x0000, 0x1fff) AM_READ(SMH_ROM) | |
| 2090 | AM_RANGE(0x4000, 0x43ff) AM_READ(SMH_RAM) | |
| 2091 | ADDRESS_MAP_END | |
| 2092 | ||
| 2093 | static ADDRESS_MAP_START( frogger_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 2094 | AM_RANGE(0x0000, 0x1fff) AM_WRITE(SMH_ROM) | |
| 2095 | AM_RANGE(0x4000, 0x43ff) AM_WRITE(SMH_RAM) | |
| 2096 | AM_RANGE(0x6000, 0x6fff) AM_WRITE(frogger_filter_w) | |
| 2097 | ADDRESS_MAP_END | |
| 2098 | ||
| 2099 | ||
| 2100 | static ADDRESS_MAP_START( frogger_sound_readport, ADDRESS_SPACE_IO, 8 ) | |
| 2101 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 2102 | AM_RANGE(0x40, 0x40) AM_READ(AY8910_read_port_0_r) | |
| 2103 | ADDRESS_MAP_END | |
| 2104 | ||
| 2105 | static ADDRESS_MAP_START( frogger_sound_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 2106 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 2107 | AM_RANGE(0x40, 0x40) AM_WRITE(AY8910_write_port_0_w) | |
| 2108 | AM_RANGE(0x80, 0x80) AM_WRITE(AY8910_control_port_0_w) | |
| 2109 | ADDRESS_MAP_END | |
| 2110 | ||
| 2111 | static const struct AY8910interface frogger_ay8910_interface = | |
| 2112 | { | |
| 2113 | soundlatch_r, | |
| 2114 | frogger_portB_r | |
| 2115 | }; | |
| 2116 | ||
| 2117 | ||
| 2118 | static MACHINE_DRIVER_START( froggers ) | |
| 2119 | ||
| 2120 | /* basic machine hardware */ | |
| 2121 | MDRV_IMPORT_FROM(scramble) | |
| 2122 | MDRV_CPU_MODIFY("audio") | |
| 2123 | MDRV_CPU_PROGRAM_MAP(frogger_sound_readmem,frogger_sound_writemem) | |
| 2124 | MDRV_CPU_IO_MAP(frogger_sound_readport,frogger_sound_writeport) | |
| 2125 | ||
| 2126 | /* video hardware */ | |
| 2127 | MDRV_PALETTE_INIT(frogger) | |
| 2128 | MDRV_VIDEO_START(froggers) | |
| 2129 | ||
| 2130 | /* sound hardware */ | |
| 2131 | MDRV_SOUND_MODIFY("8910.1") | |
| 2132 | MDRV_SOUND_CONFIG(frogger_ay8910_interface) | |
| 2133 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33) | |
| 2134 | ||
| 2135 | MDRV_SOUND_REMOVE("8910.2") | |
| 2136 | MACHINE_DRIVER_END | |
| 2137 | ||
| 2138 | ||
| 2139 | static MACHINE_DRIVER_START( frogf ) | |
| 2140 | ||
| 2141 | /* basic machine hardware */ | |
| 2142 | MDRV_IMPORT_FROM(scramble) | |
| 2143 | ||
| 2144 | MDRV_CPU_MODIFY("main") | |
| 2145 | MDRV_CPU_PROGRAM_MAP(frogf_map,0) | |
| 2146 | ||
| 2147 | MDRV_CPU_MODIFY("audio") | |
| 2148 | MDRV_CPU_PROGRAM_MAP(frogger_sound_readmem,frogger_sound_writemem) | |
| 2149 | MDRV_CPU_IO_MAP(frogger_sound_readport,frogger_sound_writeport) | |
| 2150 | ||
| 2151 | /* video hardware */ | |
| 2152 | MDRV_PALETTE_INIT(frogger) | |
| 2153 | MDRV_VIDEO_START(froggers) | |
| 2154 | ||
| 2155 | /* sound hardware */ | |
| 2156 | MDRV_SOUND_MODIFY("8910.1") | |
| 2157 | MDRV_SOUND_CONFIG(frogger_ay8910_interface) | |
| 2158 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33) | |
| 2159 | ||
| 2160 | MDRV_SOUND_REMOVE("8910.2") | |
| 2161 | MACHINE_DRIVER_END | |
| 2162 | ||
| 2163 | 1950 | static MACHINE_DRIVER_START( mars ) |
| 2164 | 1951 | |
| 2165 | 1952 | /* basic machine hardware */ |
| r2241 | r2242 | |
| 2169 | 1956 | |
| 2170 | 1957 | /* video hardware */ |
| 2171 | 1958 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2172 | MDRV_PALETTE_INIT(galax | |
| 1959 | MDRV_PALETTE_INIT(galaxold) | |
| 2173 | 1960 | MACHINE_DRIVER_END |
| 2174 | 1961 | |
| 2175 | 1962 | static MACHINE_DRIVER_START( devilfsh ) |
| r2241 | r2242 | |
| 2182 | 1969 | /* video hardware */ |
| 2183 | 1970 | MDRV_GFXDECODE(devilfsh) |
| 2184 | 1971 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2185 | MDRV_PALETTE_INIT(galax | |
| 1972 | MDRV_PALETTE_INIT(galaxold) | |
| 2186 | 1973 | MACHINE_DRIVER_END |
| 2187 | 1974 | |
| 2188 | 1975 | static MACHINE_DRIVER_START( newsin7 ) |
| r2241 | r2242 | |
| 2195 | 1982 | /* video hardware */ |
| 2196 | 1983 | MDRV_GFXDECODE(newsin7) |
| 2197 | 1984 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2198 | MDRV_PALETTE_INIT(galax | |
| 1985 | MDRV_PALETTE_INIT(galaxold) | |
| 2199 | 1986 | MDRV_VIDEO_START(newsin7) |
| 2200 | 1987 | MACHINE_DRIVER_END |
| 2201 | 1988 | |
| r2241 | r2242 | |
| 2209 | 1996 | /* video hardware */ |
| 2210 | 1997 | MDRV_GFXDECODE(mrkougar) |
| 2211 | 1998 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2212 | MDRV_PALETTE_INIT(galax | |
| 1999 | MDRV_PALETTE_INIT(galaxold) | |
| 2213 | 2000 | MACHINE_DRIVER_END |
| 2214 | 2001 | |
| 2215 | 2002 | static MACHINE_DRIVER_START( mrkougb ) |
| r2241 | r2242 | |
| 2221 | 2008 | |
| 2222 | 2009 | /* video hardware */ |
| 2223 | 2010 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2224 | MDRV_PALETTE_INIT(galax | |
| 2011 | MDRV_PALETTE_INIT(galaxold) | |
| 2225 | 2012 | MACHINE_DRIVER_END |
| 2226 | 2013 | |
| 2227 | 2014 | static MACHINE_DRIVER_START( ckongs ) |
| r2241 | r2242 | |
| 2233 | 2020 | |
| 2234 | 2021 | /* video hardware */ |
| 2235 | 2022 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2236 | MDRV_PALETTE_INIT(galax | |
| 2023 | MDRV_PALETTE_INIT(galaxold) | |
| 2237 | 2024 | MDRV_VIDEO_START(ckongs) |
| 2238 | 2025 | MACHINE_DRIVER_END |
| 2239 | 2026 | |
| r2241 | r2242 | |
| 2247 | 2034 | MDRV_CPU_MODIFY("audio") |
| 2248 | 2035 | MDRV_CPU_IO_MAP(hotshock_sound_readport,hotshock_sound_writeport) |
| 2249 | 2036 | |
| 2250 | MDRV_MACHINE_RESET(galax | |
| 2037 | MDRV_MACHINE_RESET(galaxold) | |
| 2251 | 2038 | |
| 2252 | 2039 | /* video hardware */ |
| 2253 | 2040 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2254 | MDRV_PALETTE_INIT(galax | |
| 2041 | MDRV_PALETTE_INIT(galaxold) | |
| 2255 | 2042 | MDRV_VIDEO_START(pisces) |
| 2256 | 2043 | |
| 2257 | 2044 | MDRV_SOUND_MODIFY("8910.1") |
| r2241 | r2242 | |
| 2269 | 2056 | |
| 2270 | 2057 | /* video hardware */ |
| 2271 | 2058 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets, 0/1 for background */ |
| 2272 | MDRV_PALETTE_INIT(galax | |
| 2059 | MDRV_PALETTE_INIT(galaxold) | |
| 2273 | 2060 | MDRV_VIDEO_START(ckongs) |
| 2274 | 2061 | MACHINE_DRIVER_END |
| 2275 | 2062 | |
| 2276 | static MACHINE_DRIVER_START( sfx ) | |
| 2277 | 2063 | |
| 2278 | /* basic machine hardware */ | |
| 2279 | MDRV_IMPORT_FROM(scramble) | |
| 2280 | MDRV_CPU_MODIFY("main") | |
| 2281 | MDRV_CPU_PROGRAM_MAP(sfx_readmem,sfx_writemem) | |
| 2282 | 2064 | |
| 2283 | MDRV_CPU_ADD(Z80, 14318000/8) /* 1.78975 MHz */ | |
| 2284 | /* audio CPU */ | |
| 2285 | MDRV_CPU_PROGRAM_MAP(sfx_sample_readmem,sfx_sample_writemem) | |
| 2286 | MDRV_CPU_IO_MAP(sfx_sample_readport,sfx_sample_writeport) | |
| 2287 | 2065 | |
| 2288 | MDRV_MACHINE_RESET(sfx) | |
| 2289 | 2066 | |
| 2290 | /* video hardware */ | |
| 2291 | MDRV_SCREEN_MODIFY("main") | |
| 2292 | MDRV_SCREEN_VISIBLE_AREA(2*8, 30*8-1, 2*8, 30*8-1) | |
| 2293 | MDRV_PALETTE_LENGTH(32+64+2+8) /* 32 for characters, 64 for stars, 2 for bullets, 8 for background */ | |
| 2294 | MDRV_GFXDECODE(sfx) | |
| 2295 | MDRV_PALETTE_INIT(turtles) | |
| 2296 | MDRV_VIDEO_START(sfx) | |
| 2297 | 2067 | |
| 2298 | /* sound hardware */ | |
| 2299 | MDRV_SOUND_MODIFY("8910.1") | |
| 2300 | MDRV_SOUND_CONFIG(sfx_ay8910_interface_1) | |
| 2301 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.16) | |
| 2302 | ||
| 2303 | MDRV_SOUND_MODIFY("8910.2") | |
| 2304 | MDRV_SOUND_CONFIG(scramble_ay8910_interface_2) | |
| 2305 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.16) | |
| 2306 | ||
| 2307 | MDRV_SOUND_ADD(DAC, 0) | |
| 2308 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2309 | MACHINE_DRIVER_END | |
| 2310 | ||
| 2311 | ||
| 2312 | ||
| 2313 | ||
| 2314 | ||
| 2315 | ||
| 2316 | static MACHINE_DRIVER_START( monsterz ) | |
| 2317 | ||
| 2318 | /* basic machine hardware */ | |
| 2319 | MDRV_IMPORT_FROM(scramble) | |
| 2320 | MDRV_CPU_MODIFY("main") | |
| 2321 | MDRV_CPU_PROGRAM_MAP(monsterz_map,0) | |
| 2322 | MDRV_CPU_PERIODIC_INT(irq0_line_hold,16*4) //? | |
| 2323 | ||
| 2324 | MDRV_CPU_MODIFY("audio") | |
| 2325 | MDRV_CPU_IO_MAP(monsterz_sound_io_map,0) | |
| 2326 | ||
| 2327 | MDRV_CPU_ADD(Z80, 14318000/8) /* 1.78975 MHz */ | |
| 2328 | /* audio CPU */ | |
| 2329 | MDRV_CPU_PROGRAM_MAP(sfx_sample_readmem,sfx_sample_writemem) | |
| 2330 | MDRV_CPU_IO_MAP(sfx_sample_readport,sfx_sample_writeport) | |
| 2331 | ||
| 2332 | MDRV_MACHINE_RESET(monsterz) | |
| 2333 | ||
| 2334 | /* video hardware */ | |
| 2335 | MDRV_SCREEN_MODIFY("main") | |
| 2336 | MDRV_SCREEN_VISIBLE_AREA(2*8, 30*8-1, 2*8, 30*8-1) | |
| 2337 | MDRV_PALETTE_LENGTH(32+64+2+8) /* 32 for characters, 64 for stars, 2 for bullets, 8 for background */ | |
| 2338 | MDRV_GFXDECODE(sfx) | |
| 2339 | MDRV_PALETTE_INIT(turtles) | |
| 2340 | MDRV_VIDEO_START(sfx) | |
| 2341 | ||
| 2342 | /* sound hardware */ | |
| 2343 | MDRV_SOUND_MODIFY("8910.1") | |
| 2344 | MDRV_SOUND_CONFIG(sfx_ay8910_interface_1) | |
| 2345 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.16) | |
| 2346 | ||
| 2347 | MDRV_SOUND_MODIFY("8910.2") | |
| 2348 | MDRV_SOUND_CONFIG(scramble_ay8910_interface_2) | |
| 2349 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.16) | |
| 2350 | ||
| 2351 | MDRV_SOUND_ADD(DAC, 0) | |
| 2352 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2353 | MACHINE_DRIVER_END | |
| 2354 | ||
| 2355 | 2068 | static MACHINE_DRIVER_START( mimonscr ) |
| 2356 | 2069 | |
| 2357 | 2070 | /* basic machine hardware */ |
| r2241 | r2242 | |
| 2376 | 2089 | /* video hardware */ |
| 2377 | 2090 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets */ |
| 2378 | 2091 | |
| 2379 | MDRV_PALETTE_INIT(galax | |
| 2092 | MDRV_PALETTE_INIT(galaxold) | |
| 2380 | 2093 | |
| 2381 | 2094 | /* sound hardware */ |
| 2382 | 2095 | MDRV_SOUND_MODIFY("8910.1") |
| r2241 | r2242 | |
| 2414 | 2127 | /* video hardware */ |
| 2415 | 2128 | MDRV_PALETTE_LENGTH(32+64+2+0) /* 32 for characters, 64 for stars, 2 for bullets */ |
| 2416 | 2129 | |
| 2417 | MDRV_PALETTE_INIT(galax | |
| 2130 | MDRV_PALETTE_INIT(galaxold) | |
| 2418 | 2131 | MACHINE_DRIVER_END |
| 2419 | 2132 | |
| 2420 | 2133 | static MACHINE_DRIVER_START( hncholms ) |
| r2241 | r2242 | |
| 2455 | 2168 | MDRV_CPU_ADD(Z80, 18432000/6) /* 3.072 MHz */ |
| 2456 | 2169 | MDRV_CPU_PROGRAM_MAP(ad2083_map,0) |
| 2457 | 2170 | |
| 2458 | MDRV_MACHINE_RESET(galax | |
| 2171 | MDRV_MACHINE_RESET(galaxold) | |
| 2459 | 2172 | |
| 2460 | 2173 | /* video hardware */ |
| 2461 | 2174 | MDRV_SCREEN_ADD("main", RASTER) |
| r2241 | r2242 | |
| 2470 | 2183 | |
| 2471 | 2184 | MDRV_PALETTE_INIT(turtles) |
| 2472 | 2185 | MDRV_VIDEO_START(ad2083) |
| 2473 | MDRV_VIDEO_UPDATE(galax | |
| 2186 | MDRV_VIDEO_UPDATE(galaxold) | |
| 2474 | 2187 | |
| 2475 | 2188 | /* sound hardware */ |
| 2476 | 2189 | |
| r2241 | r2242 | |
| 2671 | 2384 | ROM_LOAD( "6331-1j.86", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) |
| 2672 | 2385 | ROM_END |
| 2673 | 2386 | |
| 2674 | ROM_START( froggers ) | |
| 2675 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2676 | ROM_LOAD( "vid_d2.bin", 0x0000, 0x0800, CRC(c103066e) SHA1(8c2d4c825e9c4180fe70b0db18a547dc3ddc3c2c) ) | |
| 2677 | ROM_LOAD( "vid_e2.bin", 0x0800, 0x0800, CRC(f08bc094) SHA1(23ad1e57f244d6b63fd9640249dcb1eeafb8206e) ) | |
| 2678 | ROM_LOAD( "vid_f2.bin", 0x1000, 0x0800, CRC(637a2ff8) SHA1(e9b9fc692ca5d8deb9cd30d9d73ad25c8d8bafe1) ) | |
| 2679 | ROM_LOAD( "vid_h2.bin", 0x1800, 0x0800, CRC(04c027a5) SHA1(193550731513c02cad464661a1ceb230819ca70f) ) | |
| 2680 | ROM_LOAD( "vid_j2.bin", 0x2000, 0x0800, CRC(fbdfbe74) SHA1(48d5d1247d09eaea2a9a29f4ed6543d0411597aa) ) | |
| 2681 | ROM_LOAD( "vid_l2.bin", 0x2800, 0x0800, CRC(8a4389e1) SHA1(b2c74afb93927dac0d8bb24e02e0b2a069f2d3c8) ) | |
| 2682 | ||
| 2683 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 2684 | ROM_LOAD( "frogger.608", 0x0000, 0x0800, CRC(e8ab0256) SHA1(f090afcfacf5f13cdfa0dfda8e3feb868c6ce8bc) ) | |
| 2685 | ROM_LOAD( "frogger.609", 0x0800, 0x0800, CRC(7380a48f) SHA1(75582a94b696062cbdb66a4c5cf0bc0bb94f81ee) ) | |
| 2686 | ROM_LOAD( "frogger.610", 0x1000, 0x0800, CRC(31d7eb27) SHA1(2e1d34ae4da385fd7cac94707d25eeddf4604e1a) ) | |
| 2687 | ||
| 2688 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2689 | ROM_LOAD( "frogger.607", 0x0000, 0x0800, CRC(05f7d883) SHA1(78831fd287da18928651a8adb7e578d291493eff) ) | |
| 2690 | ROM_LOAD( "epr-1036.1k", 0x0800, 0x0800, CRC(658745f8) SHA1(e4e5c3e011c8a7233a36d29e10e08905873500aa) ) | |
| 2691 | ||
| 2692 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2693 | ROM_LOAD( "pr-91.6l", 0x0000, 0x0020, CRC(413703bf) SHA1(66648b2b28d3dcbda5bdb2605d1977428939dd3c) ) | |
| 2694 | ROM_END | |
| 2695 | ||
| 2696 | ||
| 2697 | ||
| 2698 | ROM_START( frogf ) | |
| 2699 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2700 | ROM_LOAD( "6.bin", 0x0000, 0x1000, CRC(8ff0a973) SHA1(adb1c28617d915fbcfa9190bd8589a56a8858e25) ) | |
| 2701 | ROM_LOAD( "7.bin", 0x1000, 0x1000, CRC(3087bb4b) SHA1(3fe1f68a2ad12b1cadba89d99afe574cf5342d81) ) | |
| 2702 | ROM_LOAD( "8.bin", 0x2000, 0x1000, CRC(c3869d12) SHA1(7bd95c12fc1fe1a3cfc0140b64cf76fa57aa3fb4) ) | |
| 2703 | ||
| 2704 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 2705 | ROM_LOAD( "frogger.608", 0x0000, 0x0800, CRC(e8ab0256) SHA1(f090afcfacf5f13cdfa0dfda8e3feb868c6ce8bc) ) | |
| 2706 | ROM_LOAD( "frogger.609", 0x0800, 0x0800, CRC(7380a48f) SHA1(75582a94b696062cbdb66a4c5cf0bc0bb94f81ee) ) | |
| 2707 | ROM_LOAD( "frogger.610", 0x1000, 0x0800, CRC(31d7eb27) SHA1(2e1d34ae4da385fd7cac94707d25eeddf4604e1a) ) | |
| 2708 | ||
| 2709 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2710 | ROM_LOAD( "frogger.607", 0x0000, 0x0800, CRC(05f7d883) SHA1(78831fd287da18928651a8adb7e578d291493eff) ) | |
| 2711 | ROM_LOAD( "epr-1036.1k", 0x0800, 0x0800, CRC(658745f8) SHA1(e4e5c3e011c8a7233a36d29e10e08905873500aa) ) | |
| 2712 | ||
| 2713 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2714 | ROM_LOAD( "pr-91.6l", 0x0000, 0x0020, CRC(413703bf) SHA1(66648b2b28d3dcbda5bdb2605d1977428939dd3c) ) | |
| 2715 | ROM_END | |
| 2716 | ||
| 2717 | ROM_START( amidars ) | |
| 2718 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2719 | ROM_LOAD( "am2d", 0x0000, 0x0800, CRC(24b79547) SHA1(eca735c6a35561a9a6ba8a20dca1e1c78ed073fc) ) | |
| 2720 | ROM_LOAD( "am2e", 0x0800, 0x0800, CRC(4c64161e) SHA1(5b2e49ff915295617671b13f15b566046a5dbc15) ) | |
| 2721 | ROM_LOAD( "am2f", 0x1000, 0x0800, CRC(b3987a72) SHA1(1d72e9ae3005029628c6f9beb6ca65afcb1f7893) ) | |
| 2722 | ROM_LOAD( "am2h", 0x1800, 0x0800, CRC(29873461) SHA1(7d0ee9a82f02163b4cc6a7097e88ae34e96ebf58) ) | |
| 2723 | ROM_LOAD( "am2j", 0x2000, 0x0800, CRC(0fdd54d8) SHA1(c32fdc8e292d91159e6c80c7033abea6404a4f2c) ) | |
| 2724 | ROM_LOAD( "am2l", 0x2800, 0x0800, CRC(5382f7ed) SHA1(425ec2c2caf404fc8ab13ee38d6567413022e1a1) ) | |
| 2725 | ROM_LOAD( "am2m", 0x3000, 0x0800, CRC(1d7109e9) SHA1(e0d24475547bbe5a94b45be6abefb84ad84d2534) ) | |
| 2726 | ROM_LOAD( "am2p", 0x3800, 0x0800, CRC(c9163ac6) SHA1(46d757180426b71c827d14a35824a248f2c787b6) ) | |
| 2727 | ||
| 2728 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 2729 | ROM_LOAD( "amidarus.5c", 0x0000, 0x1000, CRC(8ca7b750) SHA1(4f4c2915503b85abe141d717fd254ee10c9da99e) ) | |
| 2730 | ROM_LOAD( "amidarus.5d", 0x1000, 0x1000, CRC(9b5bdc0a) SHA1(84d953618c8bf510d23b42232a856ac55f1baff5) ) | |
| 2731 | ||
| 2732 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2733 | ROM_LOAD( "2716.a6", 0x0000, 0x0800, CRC(2082ad0a) SHA1(c6014d9575e92adf09b0961c2158a779ebe940c4) ) /* Same graphics ROMs as Amigo */ | |
| 2734 | ROM_LOAD( "2716.a5", 0x0800, 0x0800, CRC(3029f94f) SHA1(3b432b42e79f8b0a7d65e197f373a04e3c92ff20) ) | |
| 2735 | ||
| 2736 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2737 | ROM_LOAD( "amidar.clr", 0x0000, 0x0020, CRC(f940dcc3) SHA1(1015e56f37c244a850a8f4bf0e36668f047fd46d) ) | |
| 2738 | ROM_END | |
| 2739 | ||
| 2740 | 2387 | ROM_START( triplep ) |
| 2741 | 2388 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 2742 | 2389 | ROM_LOAD( "triplep.2g", 0x0000, 0x1000, CRC(c583a93d) SHA1(2bd4a02f945d64ef3ff814d0b8cbf32380d3f790) ) |
| r2241 | r2242 | |
| 3098 | 2745 | ROM_LOAD( "cavelon.clr", 0x0000, 0x0020, CRC(d133356b) SHA1(58db4013a9ad77107f0d462c96363d7c38d86fa2) ) |
| 3099 | 2746 | ROM_END |
| 3100 | 2747 | |
| 3101 | ROM_START( sfx ) | |
| 3102 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3103 | ROM_LOAD( "sfx_b-0.1j", 0x0000, 0x1000, CRC(e5bc6952) SHA1(7bfb772418d738d3c49fd59c0bfc04590945977a) ) | |
| 3104 | ROM_CONTINUE( 0xe000, 0x1000 ) | |
| 3105 | ROM_LOAD( "1.1c", 0x1000, 0x1000, CRC(1b3c48e7) SHA1(2f245aaf9b4bb5d949aae18ee89a0be639e7b2df) ) | |
| 3106 | ROM_LOAD( "22.1d", 0x2000, 0x1000, CRC(ed44950d) SHA1(f8c54ff89ac461171df951d703d5571be1b8da38) ) | |
| 3107 | ROM_LOAD( "23.1e", 0x3000, 0x1000, CRC(f44a3ca0) SHA1(3917ea960329a06d3d0c447cb6a4ba710fb7ca92) ) | |
| 3108 | ROM_LOAD( "27.1a", 0x7000, 0x1000, CRC(ed86839f) SHA1(a0d8c941a6e01058eab66d5da9b49b6b5695b981) ) | |
| 3109 | ROM_LOAD( "24.1g", 0xc000, 0x1000, CRC(e6d7dc74) SHA1(c1e6d9598fb837775ee6550fea3cd4910572615e) ) | |
| 3110 | ROM_LOAD( "5.1h", 0xd000, 0x1000, CRC(d1e8d390) SHA1(f8fe9f69e6500fbcf25f8151c1070d9a1a20a38c) ) | |
| 3111 | ||
| 3112 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3113 | ROM_LOAD( "5.5j", 0x0000, 0x1000, CRC(59028fb6) SHA1(94105b5b03c81a948a409f7ea20312bb9c79c150) ) | |
| 3114 | ROM_LOAD( "6.6j", 0x1000, 0x1000, CRC(5427670f) SHA1(ffc3f7186d0319f0fd7ed25eb97bb0db7bc107c6) ) | |
| 3115 | ||
| 3116 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) /* 64k for the sample CPU */ | |
| 3117 | ROM_LOAD( "1.1j", 0x0000, 0x1000, CRC(2f172c58) SHA1(4706d55fcfad4d5a87d96a0a0187f59997ef9720) ) | |
| 3118 | ROM_LOAD( "2.2j", 0x1000, 0x1000, CRC(a6ad2f6b) SHA1(14d1a93e507c349b14a1b26408cce23f089fa33c) ) | |
| 3119 | ROM_LOAD( "3.3j", 0x2000, 0x1000, CRC(fa1274fa) SHA1(e98cb602b265b209eaa4a9b3972e47c869ff863b) ) | |
| 3120 | ROM_LOAD( "4.4j", 0x3000, 0x1000, CRC(1cd33f3a) SHA1(cf9248fd6cb56ec81d354afe032a2dea810e834b) ) | |
| 3121 | ROM_LOAD( "10.3h", 0x4000, 0x1000, CRC(b833a15b) SHA1(0d21aaa0ca5ccba89118b205a6b3b36b15663c47) ) | |
| 3122 | ROM_LOAD( "11.4h", 0x5000, 0x1000, CRC(cbd76ec2) SHA1(9434350ee93ca71efe78018b69913386353306ff) ) | |
| 3123 | ||
| 3124 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3125 | ROM_LOAD( "28.5a", 0x0000, 0x1000, CRC(d73a8252) SHA1(59d14f41f1a806f98ee33596b84fe5aefe606944) ) | |
| 3126 | ROM_LOAD( "29.5c", 0x1000, 0x1000, CRC(1401ccf2) SHA1(5762eafd9f402330e1d4ac677f46595087716c47) ) | |
| 3127 | ||
| 3128 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3129 | ROM_LOAD( "6331.9g", 0x0000, 0x0020, CRC(ca1d9ccd) SHA1(27124759a06497c1bc1a64b6d3faa6ba924a8447) ) | |
| 3130 | ROM_END | |
| 3131 | ||
| 3132 | 2748 | ROM_START( skelagon ) |
| 3133 | 2749 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 3134 | 2750 | /* first half of 36.bin is missing */ |
| r2241 | r2242 | |
| 3160 | 2776 | ROM_LOAD( "6331.9g", 0x0000, 0x0020, CRC(ca1d9ccd) SHA1(27124759a06497c1bc1a64b6d3faa6ba924a8447) ) |
| 3161 | 2777 | ROM_END |
| 3162 | 2778 | |
| 3163 | /* | |
| 3164 | Monster Zero | |
| 3165 | ||
| 3166 | CPU: Z80 (x3) | |
| 3167 | Sound: AY-3-8910 (x2) | |
| 3168 | Other: 8255 (x3) | |
| 3169 | RAM: 2114 (x2), 2114 (x2), TMM2016P, TMM314A (x4), MPB8216 (x2), MPB8216 (x2), 2114 (x2), TMM314A (x2), D2125A (x5) | |
| 3170 | PAL: 16R8C (protected x2) | |
| 3171 | PROM: 82S123 | |
| 3172 | X1: 1431818 | |
| 3173 | X2: 16000 | |
| 3174 | */ | |
| 3175 | ||
| 3176 | ROM_START( monsterz ) | |
| 3177 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3178 | ROM_LOAD( "b-1e.a1", 0x0000, 0x1000, CRC(97886542) SHA1(01f4f9bd55f9eae28162cbb22a26f7cda22cd3f3) ) | |
| 3179 | ROM_LOAD( "b-2e.c1", 0x1000, 0x1000, CRC(184ffcb4) SHA1(829d6ca13773aba7c3a81e122171befbe3666110) ) | |
| 3180 | ROM_LOAD( "b-3e.d1", 0x2000, 0x1000, CRC(b7b10ac7) SHA1(51d544d4db456df756a95d7f1853fffed9259647) ) | |
| 3181 | ROM_LOAD( "b-4e.e1", 0x3000, 0x1000, CRC(fb02c736) SHA1(24466116dd07b856b1afff62b8312c67ff466b95) ) | |
| 3182 | ROM_LOAD( "b-5e.g1", 0xc000, 0x1000, CRC(b2788ab9) SHA1(eb1a6b41f4c7a243481bfccf2b068ce1bc292366) ) | |
| 3183 | ROM_LOAD( "b-6e.h1", 0xd000, 0x1000, CRC(77d7aa8d) SHA1(62aaf582ba55f7b21f6cf13b4fb6c2c54bb729f5) ) | |
| 3184 | ||
| 3185 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3186 | ROM_LOAD( "a-1e.k1", 0x0000, 0x1000, CRC(b88ba44e) SHA1(85c141fb411d541b1e20412f5fefd18395f635ae) ) | |
| 3187 | ROM_LOAD( "a-2.k2", 0x1000, 0x1000, CRC(8913c94e) SHA1(6c4fe065217a234d45761f8ad4d2c4e7078a0abd) ) | |
| 3188 | ROM_LOAD( "a-3e.k3", 0x2000, 0x1000, CRC(a8fa5095) SHA1(5cabe5497a79a0c43e78a84ae87c824af60a2a3f) ) | |
| 3189 | ROM_LOAD( "a-4.k4", 0x3000, 0x1000, CRC(93f81317) SHA1(167708be94cb9a47290067a20bc5ff6f018b93b6) ) | |
| 3190 | ||
| 3191 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) /* 64k for the sample CPU */ | |
| 3192 | ROM_LOAD( "a-5e.k5", 0x0000, 0x1000, CRC(b5bcdb4e) SHA1(db0965e5636e0f4e9cd4f4a7d808c413ecf733db) ) | |
| 3193 | ROM_LOAD( "a-6.k6", 0x1000, 0x1000, CRC(24832b2e) SHA1(2a67888e86ce1a3182303e841513ba2a07977359) ) | |
| 3194 | ROM_LOAD( "a-7e.k7", 0x2000, 0x1000, CRC(20ebea81) SHA1(473c688365b256d8593663ff95768f4a5bb1289d) ) | |
| 3195 | // 0x3000 empty ? | |
| 3196 | ROM_LOAD( "a-8.k8", 0x4000, 0x1000, CRC(b833a15b) SHA1(0d21aaa0ca5ccba89118b205a6b3b36b15663c47) ) | |
| 3197 | ROM_LOAD( "a-9.k9", 0x5000, 0x1000, CRC(cbd76ec2) SHA1(9434350ee93ca71efe78018b69913386353306ff) ) | |
| 3198 | ||
| 3199 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3200 | ROM_LOAD( "b-7e.a5", 0x0000, 0x1000, CRC(ddd4158d) SHA1(9701e2d8a0226455dfbed650e58bb4be05918fe8) ) | |
| 3201 | ROM_LOAD( "b-8e.c5", 0x1000, 0x1000, CRC(b1331b4c) SHA1(fa1af406ecd6919b4846aea68d3edb70106f9273) ) | |
| 3202 | ||
| 3203 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3204 | ROM_LOAD( "prom.g9", 0x0000, 0x0020, CRC(b7ea00d7) SHA1(f658c6ac8123ae1e6b68ae513cc02c4d9d2b4e47) ) | |
| 3205 | ROM_END | |
| 3206 | ||
| 3207 | 2779 | ROM_START( mimonscr ) |
| 3208 | 2780 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 3209 | 2781 | ROM_LOAD( "mm1", 0x0000, 0x1000, CRC(0399a0c4) SHA1(8314124f9b535ce531663625d19cd3a76782ed3b) ) |
| r2241 | r2242 | |
| 3355 | 2927 | ROM_LOAD( "turtles.clr", 0x0000, 0x0020, CRC(f3ef02dd) SHA1(09fd795170d7d30f101d579f57553da5ff3800ab) ) |
| 3356 | 2928 | ROM_END |
| 3357 | 2929 | |
| 3358 | GAME( 1981, scramble, 0, fscramble,scramble, scramble, ROT90, "Konami", "Scramble", GAME_SUPPORTS_SAVE ) | |
| 3359 | GAME( 1981, scrambls, scramble, fscramble,scramble, scrambls, ROT90, "[Konami] (Stern license)", "Scramble (Stern)", GAME_SUPPORTS_SAVE ) | |
| 3360 | GAME( 1981, explorer, scramble, explorer, explorer, 0, ROT90, "bootleg", "Explorer", GAME_SUPPORTS_SAVE ) | |
| 3361 | GAME( 1981, strfbomb, scramble, scramble, strfbomb, scramble, ROT90, "Omni", "Strafe Bomb", GAME_SUPPORTS_SAVE ) | |
| 3362 | GAME( 1981, atlantis, 0, scramble, atlantis, atlantis, ROT90, "Comsoft", "Battle of Atlantis (set 1)", GAME_SUPPORTS_SAVE ) | |
| 3363 | GAME( 1981, atlants2, atlantis, scramble, atlantis, atlantis, ROT90, "Comsoft", "Battle of Atlantis (set 2)", GAME_SUPPORTS_SAVE ) | |
| 3364 | GAME( 1980, theend, 0, theend, theend, theend, ROT90, "Konami", "The End", GAME_SUPPORTS_SAVE ) | |
| 3365 | GAME( 1980, theends, theend, theend, theend, theend, ROT90, "[Konami] (Stern license)", "The End (Stern)", GAME_SUPPORTS_SAVE ) | |
| 3366 | GAME( 1981, froggers, frogger, froggers, froggers, froggers, ROT90, "bootleg", "Frog", GAME_SUPPORTS_SAVE ) | |
| 3367 | GAME( 1981, frogf, frogger, frogf, froggers, froggers, ROT90, "Falcon", "Frogger (Falcon bootleg)", GAME_SUPPORTS_SAVE ) | |
| 3368 | GAME( 1982, amidars, amidar, scramble, amidars, atlantis, ROT90, "Konami", "Amidar (Scramble hardware)", GAME_SUPPORTS_SAVE ) | |
| 3369 | 2930 | GAME( 1982, triplep, 0, triplep, triplep, scramble_ppi, ROT90, "KKI", "Triple Punch", GAME_SUPPORTS_SAVE ) |
| 3370 | 2931 | GAME( 1982, knockout, triplep, triplep, triplep, scramble_ppi, ROT90, "KKK", "Knock Out!!", GAME_SUPPORTS_SAVE ) |
| 3371 | 2932 | GAME( 1981, mariner, 0, mariner, scramble, mariner, ROT90, "Amenip", "Mariner", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE) |
| r2241 | r2242 | |
| 3383 | 2944 | GAME( 1983, hunchbks, hunchbak, hunchbks, hunchbks, scramble_ppi, ROT90, "Century Electronics", "Hunchback (Scramble hardware)", GAME_SUPPORTS_SAVE ) |
| 3384 | 2945 | GAME( 1984, hncholms, huncholy, hncholms, hncholms, scramble_ppi, ROT90, "Century Electronics", "Hunchback Olympic (Scramble hardware)", GAME_SUPPORTS_SAVE ) |
| 3385 | 2946 | GAME( 1983, cavelon, 0, cavelon, cavelon, cavelon, ROT90, "Jetsoft", "Cavelon", GAME_SUPPORTS_SAVE ) |
| 3386 | GAME( 1983, sfx, 0, sfx, sfx, sfx, ORIENTATION_FLIP_X, "Nichibutsu", "SF-X", GAME_SUPPORTS_SAVE ) | |
| 3387 | GAME( 1983, skelagon, sfx, sfx, sfx, sfx, ORIENTATION_FLIP_X, "Nichibutsu USA", "Skelagon", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE) | |
| 3388 | GAME( 198?, monsterz, 0, monsterz, sfx, monsterz, ORIENTATION_FLIP_X, "Nihon", "Monster Zero", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 3389 | 2947 | GAME( 198?, mimonscr, mimonkey, mimonscr, mimonscr, mimonscr, ROT90, "bootleg", "Mighty Monkey (bootleg on Scramble hardware)", GAME_SUPPORTS_SAVE ) |
| 3390 | GAME( 1982, scorpion, 0, scorpion, scorpion, scorpion, ROT90, "Zaccaria", "Scorpion (set 1)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE) | |
| 3391 | GAME( 1982, scrpiona, scorpion, scorpion, scorpion, scorpion, ROT90, "Zaccaria", "Scorpion (set 2)", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE) | |
| 3392 | GAME( 1982, scrpionb, scorpion, scorpion, scorpion, scorpion, ROT90, "Zaccaria", "Scorpion (set 3)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE) | |
| 3393 | 2948 | GAME( 1983, ad2083, 0, ad2083, ad2083, ad2083, ROT90, "Midcoin", "A. D. 2083", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE) |
| 3394 | 2949 | GAME( 1981, turpins, turtles, turpins, turpins, 0, ROT90, "[Sega] (bootleg)", "Turpin (bootleg on Scramble hardware)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) // haven't hooked up the sound CPU yet |
| r2241 | r2242 | |
|---|---|---|
| 1 | 1 | /* Mogura Desse */ |
| 2 | 2 | |
| 3 | 3 | #include "driver.h" |
| 4 | #include "deprecat.h" | |
| 5 | 4 | #include "sound/dac.h" |
| 6 | 5 | |
| 7 | 6 | static UINT8 *mogura_tileram; |
| r2241 | r2242 | |
| 117 | 116 | { |
| 118 | 117 | mogura_gfxram[offset] = data ; |
| 119 | 118 | |
| 120 | decodechar( | |
| 119 | decodechar(machine->gfx[0], offset/16, mogura_gfxram); | |
| 121 | 120 | |
| 122 | 121 | tilemap_mark_all_tiles_dirty(mogura_tilemap); |
| 123 | 122 | } |
| r2241 | r2242 | |
|---|---|---|
| 86 | 86 | |
| 87 | 87 | static WRITE16_HANDLER( sys18_refreshenable_w ) |
| 88 | 88 | { |
| 89 | if(ACCESSING_ | |
| 89 | if(ACCESSING_ | |
| 90 | 90 | { |
| 91 | 91 | sys16_refreshenable = data & 0x02; |
| 92 | 92 | } |
| r2241 | r2242 | |
| 94 | 94 | |
| 95 | 95 | static WRITE16_HANDLER( sys18_tilebank_w ) |
| 96 | 96 | { |
| 97 | if(ACCESSING_ | |
| 97 | if(ACCESSING_ | |
| 98 | 98 | { |
| 99 | 99 | sys16_tile_bank0 = (data >> 0) & 0x0F; |
| 100 | 100 | sys16_tile_bank1 = (data >> 4) & 0x0F; |
| r2241 | r2242 | |
| 193 | 193 | static UINT8* shdancbl_soundbank_ptr = NULL; /* Pointer to currently selected portion of ROM */ |
| 194 | 194 | |
| 195 | 195 | static WRITE16_HANDLER( sound_command_irq_w ){ |
| 196 | if( ACCESSING_ | |
| 196 | if( ACCESSING_ | |
| 197 | 197 | soundlatch_w( machine,0,data&0xff ); |
| 198 | 198 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE ); |
| 199 | 199 | } |
| r2241 | r2242 | |
| 337 | 337 | ADDRESS_MAP_END |
| 338 | 338 | |
| 339 | 339 | static WRITE16_HANDLER( sound_command_nmi_w ){ |
| 340 | if( ACCESSING_ | |
| 340 | if( ACCESSING_ | |
| 341 | 341 | soundlatch_w( machine,0,data&0xff ); |
| 342 | 342 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); |
| 343 | 343 | } |
| r2241 | r2242 | |
| 478 | 478 | |
| 479 | 479 | static READ16_HANDLER( sys18_io_r ) |
| 480 | 480 | { |
| 481 | if(ACCESSING_ | |
| 481 | if(ACCESSING_ | |
| 482 | 482 | { |
| 483 | 483 | switch(offset & 0x3000/2) |
| 484 | 484 | { |
| r2241 | r2242 | |
| 576 | 576 | |
| 577 | 577 | static WRITE16_HANDLER( sys18_io_w ) |
| 578 | 578 | { |
| 579 | if(ACCESSING_ | |
| 579 | if(ACCESSING_ | |
| 580 | 580 | { |
| 581 | 581 | switch(offset & 0x3000/2) |
| 582 | 582 | { |
| r2241 | r2242 | |
|---|---|---|
| 419 | 419 | { |
| 420 | 420 | case 0x0: |
| 421 | 421 | { |
| 422 | if ( | |
| 422 | if (ACCESSING_BITS_24_31 | |
| 423 | 423 | { |
| 424 | 424 | r |= ((readinputport(0) & 0x2) << 2) << 24; |
| 425 | 425 | } |
| r2241 | r2242 | |
| 427 | 427 | } |
| 428 | 428 | case 0x1: |
| 429 | 429 | { |
| 430 | if ( | |
| 430 | if (ACCESSING_BITS_24_31 | |
| 431 | 431 | { |
| 432 | 432 | UINT32 data = EEPROM_read_bit() & 1; |
| 433 | 433 | data |= readinputport(0) & 0xfe; |
| r2241 | r2242 | |
| 437 | 437 | } |
| 438 | 438 | case 0x2: |
| 439 | 439 | { |
| 440 | if ( | |
| 440 | if (ACCESSING_BITS_24_31 | |
| 441 | 441 | { |
| 442 | 442 | r |= readinputport(1) << 24; |
| 443 | 443 | } |
| r2241 | r2242 | |
| 445 | 445 | } |
| 446 | 446 | case 0x3: |
| 447 | 447 | { |
| 448 | if ( | |
| 448 | if (ACCESSING_BITS_24_31 | |
| 449 | 449 | { |
| 450 | 450 | r |= readinputport(2) << 24; |
| 451 | 451 | } |
| r2241 | r2242 | |
| 453 | 453 | } |
| 454 | 454 | case 0x4: |
| 455 | 455 | { |
| 456 | if ( | |
| 456 | if (ACCESSING_BITS_24_31 | |
| 457 | 457 | { |
| 458 | 458 | //r |= (mame_rand(Machine) & 0xff) << 24; |
| 459 | 459 | } |
| r2241 | r2242 | |
| 461 | 461 | } |
| 462 | 462 | case 0x7: |
| 463 | 463 | { |
| 464 | if ( | |
| 464 | if (ACCESSING_BITS_24_31 | |
| 465 | 465 | { |
| 466 | 466 | r |= readinputport(3) << 24; |
| 467 | 467 | } |
| r2241 | r2242 | |
| 483 | 483 | { |
| 484 | 484 | case 0x3: |
| 485 | 485 | { |
| 486 | if ( | |
| 486 | if (ACCESSING_BITS_24_31 | |
| 487 | 487 | { |
| 488 | 488 | EEPROM_set_clock_line(((data >> 24) & 0x08) ? ASSERT_LINE : CLEAR_LINE); |
| 489 | 489 | EEPROM_write_bit(((data >> 24) & 0x04) ? 1 : 0); |
| r2241 | r2242 | |
| 562 | 562 | UINT32 r = 0; |
| 563 | 563 | int reg = offset * 4; |
| 564 | 564 | |
| 565 | if ( | |
| 565 | if (ACCESSING_BITS_24_31 | |
| 566 | 566 | { |
| 567 | 567 | r |= mcu_comm_reg_r(reg + 0) << 24; |
| 568 | 568 | } |
| 569 | if ( | |
| 569 | if (ACCESSING_BITS_16_23 | |
| 570 | 570 | { |
| 571 | 571 | r |= mcu_comm_reg_r(reg + 1) << 16; |
| 572 | 572 | } |
| 573 | if ( | |
| 573 | if (ACCESSING_BITS_8_15 | |
| 574 | 574 | { |
| 575 | 575 | r |= mcu_comm_reg_r(reg + 2) << 8; |
| 576 | 576 | } |
| 577 | if ( | |
| 577 | if (ACCESSING_BITS_ | |
| 578 | 578 | { |
| 579 | 579 | r |= mcu_comm_reg_r(reg + 3) << 0; |
| 580 | 580 | } |
| r2241 | r2242 | |
| 586 | 586 | { |
| 587 | 587 | int reg = offset * 4; |
| 588 | 588 | |
| 589 | if ( | |
| 589 | if (ACCESSING_BITS_24_31 | |
| 590 | 590 | { |
| 591 | 591 | mcu_comm_reg_w(reg + 0, (data >> 24) & 0xff); |
| 592 | 592 | } |
| 593 | if ( | |
| 593 | if (ACCESSING_BITS_16_23 | |
| 594 | 594 | { |
| 595 | 595 | mcu_comm_reg_w(reg + 1, (data >> 16) & 0xff); |
| 596 | 596 | } |
| 597 | if ( | |
| 597 | if (ACCESSING_BITS_8_15 | |
| 598 | 598 | { |
| 599 | 599 | mcu_comm_reg_w(reg + 2, (data >> 8) & 0xff); |
| 600 | 600 | } |
| 601 | if ( | |
| 601 | if (ACCESSING_BITS_ | |
| 602 | 602 | { |
| 603 | 603 | mcu_comm_reg_w(reg + 3, (data >> 0) & 0xff); |
| 604 | 604 | } |
| r2241 | r2242 | |
| 752 | 752 | static WRITE32_HANDLER(dsp_shared_w) |
| 753 | 753 | { |
| 754 | 754 | //mame_printf_debug("dsp_shared_ram: %08X, %04X at %08X\n", offset, data >> 16, activecpu_get_pc()); |
| 755 | if ( | |
| 755 | if (ACCESSING_BITS_24_31 | |
| 756 | 756 | { |
| 757 | 757 | dsp_shared_ram[offset] &= 0x00ff; |
| 758 | 758 | dsp_shared_ram[offset] |= (data >> 16) & 0xff00; |
| 759 | 759 | } |
| 760 | if ( | |
| 760 | if (ACCESSING_BITS_16_23 | |
| 761 | 761 | { |
| 762 | 762 | dsp_shared_ram[offset] &= 0xff00; |
| 763 | 763 | dsp_shared_ram[offset] |= (data >> 16) & 0x00ff; |
| r2241 | r2242 | |
|---|---|---|
| 171 | 171 | |
| 172 | 172 | static WRITE32_HANDLER( psikyo_soundlatch_w ) |
| 173 | 173 | { |
| 174 | if (ACCESSING_ | |
| 174 | if (ACCESSING_ | |
| 175 | 175 | timer_call_after_resynch(NULL, data & 0xff, psikyo_soundlatch_callback); |
| 176 | 176 | } |
| 177 | 177 | |
| r2241 | r2242 | |
| 181 | 181 | |
| 182 | 182 | static WRITE32_HANDLER( s1945_soundlatch_w ) |
| 183 | 183 | { |
| 184 | if ( | |
| 184 | if (ACCESSING_BITS_16_23 | |
| 185 | 185 | timer_call_after_resynch(NULL, (data >> 16) & 0xff, psikyo_soundlatch_callback); |
| 186 | 186 | } |
| 187 | 187 | |
| r2241 | r2242 | |
| 330 | 330 | static WRITE32_HANDLER( paletteram32_xRRRRRGGGGGBBBBB_dword_w ) |
| 331 | 331 | { |
| 332 | 332 | paletteram16 = (UINT16 *)paletteram32; |
| 333 | if (ACCESSING_ | |
| 333 | if (ACCESSING_BITS_16_31) | |
| 334 | 334 | paletteram16_xRRRRRGGGGGBBBBB_word_w(machine, offset*2, data >> 16, mem_mask >> 16); |
| 335 | if (ACCESSING_ | |
| 335 | if (ACCESSING_BITS_0_15) | |
| 336 | 336 | paletteram16_xRRRRRGGGGGBBBBB_word_w(machine, offset*2+1, data, mem_mask); |
| 337 | 337 | } |
| 338 | 338 |
| r2241 | r2242 | |
|---|---|---|
| 81 | 81 | |
| 82 | 82 | static WRITE16_HANDLER( coinctrl_w ) |
| 83 | 83 | { |
| 84 | if (ACCESSING_ | |
| 84 | if (ACCESSING_ | |
| 85 | 85 | { |
| 86 | 86 | coin_counter_w(0,data & 0x0100); |
| 87 | 87 | coin_counter_w(1,data & 0x0200); |
| r2241 | r2242 | |
| 151 | 151 | |
| 152 | 152 | static WRITE16_HANDLER( wbeachvl_coin_eeprom_w ) |
| 153 | 153 | { |
| 154 | if (ACCESSING_ | |
| 154 | if (ACCESSING_ | |
| 155 | 155 | { |
| 156 | 156 | /* bits 0-3 are coin counters? (only 0 used?) */ |
| 157 | 157 | coin_counter_w(0,data & 0x01); |
| r2241 | r2242 | |
| 168 | 168 | |
| 169 | 169 | static WRITE16_HANDLER( hotmind_coin_eeprom_w ) |
| 170 | 170 | { |
| 171 | if (ACCESSING_ | |
| 171 | if (ACCESSING_ | |
| 172 | 172 | { |
| 173 | 173 | coin_counter_w(0,data & 0x20); |
| 174 | 174 | |
| r2241 | r2242 | |
| 186 | 186 | |
| 187 | 187 | static WRITE16_HANDLER( playmark_snd_command_w ) |
| 188 | 188 | { |
| 189 | if (ACCESSING_ | |
| 189 | if (ACCESSING_ | |
| 190 | 190 | playmark_snd_command = (data & 0xff); |
| 191 | 191 | playmark_snd_flag = 1; |
| 192 | 192 | cpu_yield(); |
| r2241 | r2242 | |
|---|---|---|
| 68 | 68 | |
| 69 | 69 | static WRITE16_HANDLER( esd16_sound_command_w ) |
| 70 | 70 | { |
| 71 | if (ACCESSING_ | |
| 71 | if (ACCESSING_ | |
| 72 | 72 | { |
| 73 | 73 | soundlatch_w(machine,0,data & 0xff); |
| 74 | 74 | cpunum_set_input_line(machine, 1,0,ASSERT_LINE); // Generate an IRQ |
| r2241 | r2242 | |
| 129 | 129 | |
| 130 | 130 | static READ16_HANDLER( esd_eeprom_r ) |
| 131 | 131 | { |
| 132 | if (ACCESSING_ | |
| 132 | if (ACCESSING_ | |
| 133 | 133 | { |
| 134 | 134 | return ((EEPROM_read_bit() & 0x01) << 15); |
| 135 | 135 | } |
| r2241 | r2242 | |
| 140 | 140 | |
| 141 | 141 | static WRITE16_HANDLER( esd_eeprom_w ) |
| 142 | 142 | { |
| 143 | if (ACCESSING_ | |
| 143 | if (ACCESSING_ | |
| 144 | 144 | { |
| 145 | 145 | // data line |
| 146 | 146 | EEPROM_write_bit((data & 0x0400) >> 6); |
| r2241 | r2242 | |
|---|---|---|
| 549 | 549 | |
| 550 | 550 | static READ64_HANDLER( mpc105_addr_r ) |
| 551 | 551 | { |
| 552 | if ( | |
| 552 | if (ACCESSING_BITS_32_63 | |
| 553 | 553 | { |
| 554 | 554 | return (UINT64)mpc105_addr << 32; |
| 555 | 555 | } |
| r2241 | r2242 | |
| 558 | 558 | |
| 559 | 559 | static WRITE64_HANDLER( mpc105_addr_w ) |
| 560 | 560 | { |
| 561 | if ( | |
| 561 | if (ACCESSING_BITS_32_63 | |
| 562 | 562 | { |
| 563 | 563 | UINT32 d = BYTE_REVERSE32((UINT32)(data >> 32)); |
| 564 | 564 | mpc105_addr = data >> 32; |
| r2241 | r2242 | |
| 586 | 586 | mpc105_regs[(pci_reg/2)+0] = BYTE_REVERSE32((UINT32)(data)); |
| 587 | 587 | return; |
| 588 | 588 | } |
| 589 | if ( | |
| 589 | if (ACCESSING_BITS_ | |
| 590 | 590 | { |
| 591 | 591 | pci_device_set_reg(pci_device, pci_reg, BYTE_REVERSE32((UINT32)data)); |
| 592 | 592 | } |
| r2241 | r2242 | |
| 627 | 627 | |
| 628 | 628 | static READ64_HANDLER( mpc106_addr_r ) |
| 629 | 629 | { |
| 630 | if ( | |
| 630 | if (ACCESSING_BITS_32_63 | |
| 631 | 631 | { |
| 632 | 632 | return (UINT64)mpc106_addr << 32; |
| 633 | 633 | } |
| r2241 | r2242 | |
| 636 | 636 | |
| 637 | 637 | static WRITE64_HANDLER( mpc106_addr_w ) |
| 638 | 638 | { |
| 639 | if ( | |
| 639 | if (ACCESSING_BITS_32_63 | |
| 640 | 640 | { |
| 641 | 641 | UINT32 d = BYTE_REVERSE32((UINT32)(data >> 32)); |
| 642 | 642 | |
| r2241 | r2242 | |
| 662 | 662 | return ((UINT64)(BYTE_REVERSE32(mpc106_regs[(pci_reg/2)+1])) << 32) | |
| 663 | 663 | ((UINT64)(BYTE_REVERSE32(mpc106_regs[(pci_reg/2)+0]))); |
| 664 | 664 | } |
| 665 | if ( | |
| 665 | if (ACCESSING_BITS_32_63 | |
| 666 | 666 | { |
| 667 | 667 | return (UINT64)(BYTE_REVERSE32(pci_device_get_reg(pci_device, pci_reg))) << 32; |
| 668 | 668 | } |
| r2241 | r2242 | |
| 679 | 679 | mpc106_regs[(pci_reg/2)+0] = BYTE_REVERSE32((UINT32)(data)); |
| 680 | 680 | return; |
| 681 | 681 | } |
| 682 | if ( | |
| 682 | if (ACCESSING_BITS_ | |
| 683 | 683 | { |
| 684 | 684 | pci_device_set_reg(pci_device, pci_reg, BYTE_REVERSE32((UINT32)data)); |
| 685 | 685 | } |
| r2241 | r2242 | |
| 723 | 723 | { |
| 724 | 724 | int reg = offset*8; |
| 725 | 725 | UINT64 r = 0; |
| 726 | if ( | |
| 726 | if (ACCESSING_BITS_5 | |
| 727 | 727 | r |= (UINT64)lsi53c810_reg_r(reg+0) << 56; |
| 728 | 728 | } |
| 729 | if ( | |
| 729 | if (ACCESSING_BITS_ | |
| 730 | 730 | r |= (UINT64)lsi53c810_reg_r(reg+1) << 48; |
| 731 | 731 | } |
| 732 | if ( | |
| 732 | if (ACCESSING_BITS_ | |
| 733 | 733 | r |= (UINT64)lsi53c810_reg_r(reg+2) << 40; |
| 734 | 734 | } |
| 735 | if ( | |
| 735 | if (ACCESSING_BITS_32_39 | |
| 736 | 736 | r |= (UINT64)lsi53c810_reg_r(reg+3) << 32; |
| 737 | 737 | } |
| 738 | if ( | |
| 738 | if (ACCESSING_BITS_2 | |
| 739 | 739 | r |= (UINT64)lsi53c810_reg_r(reg+4) << 24; |
| 740 | 740 | } |
| 741 | if ( | |
| 741 | if (ACCESSING_BITS_1 | |
| 742 | 742 | r |= (UINT64)lsi53c810_reg_r(reg+5) << 16; |
| 743 | 743 | } |
| 744 | if ( | |
| 744 | if (ACCESSING_BITS_8_15 | |
| 745 | 745 | r |= (UINT64)lsi53c810_reg_r(reg+6) << 8; |
| 746 | 746 | } |
| 747 | if ( | |
| 747 | if (ACCESSING_BITS_ | |
| 748 | 748 | r |= (UINT64)lsi53c810_reg_r(reg+7) << 0; |
| 749 | 749 | } |
| 750 | 750 | |
| r2241 | r2242 | |
| 754 | 754 | static WRITE64_HANDLER(scsi_w) |
| 755 | 755 | { |
| 756 | 756 | int reg = offset*8; |
| 757 | if ( | |
| 757 | if (ACCESSING_BITS_5 | |
| 758 | 758 | lsi53c810_reg_w(reg+0, data >> 56); |
| 759 | 759 | } |
| 760 | if ( | |
| 760 | if (ACCESSING_BITS_ | |
| 761 | 761 | lsi53c810_reg_w(reg+1, data >> 48); |
| 762 | 762 | } |
| 763 | if ( | |
| 763 | if (ACCESSING_BITS_ | |
| 764 | 764 | lsi53c810_reg_w(reg+2, data >> 40); |
| 765 | 765 | } |
| 766 | if ( | |
| 766 | if (ACCESSING_BITS_32_39 | |
| 767 | 767 | lsi53c810_reg_w(reg+3, data >> 32); |
| 768 | 768 | } |
| 769 | if ( | |
| 769 | if (ACCESSING_BITS_2 | |
| 770 | 770 | lsi53c810_reg_w(reg+4, data >> 24); |
| 771 | 771 | } |
| 772 | if ( | |
| 772 | if (ACCESSING_BITS_1 | |
| 773 | 773 | lsi53c810_reg_w(reg+5, data >> 16); |
| 774 | 774 | } |
| 775 | if ( | |
| 775 | if (ACCESSING_BITS_8_15 | |
| 776 | 776 | lsi53c810_reg_w(reg+6, data >> 8); |
| 777 | 777 | } |
| 778 | if ( | |
| 778 | if (ACCESSING_BITS_ | |
| 779 | 779 | lsi53c810_reg_w(reg+7, data >> 0); |
| 780 | 780 | } |
| 781 | 781 | } |
| r2241 | r2242 | |
| 810 | 810 | case 1: |
| 811 | 811 | return (dma_irq << 24) | (dma_endian << 8); |
| 812 | 812 | case 2: |
| 813 | if( | |
| 813 | if(ACCESSING_BITS_ | |
| 814 | 814 | return dma_data; |
| 815 | 815 | } |
| 816 | 816 | break; |
| r2241 | r2242 | |
| 824 | 824 | switch(offset) |
| 825 | 825 | { |
| 826 | 826 | case 0: |
| 827 | if( | |
| 827 | if(ACCESSING_BITS_32_63 | |
| 828 | 828 | dma_source = BYTE_REVERSE32((UINT32)(data >> 32)); |
| 829 | 829 | return; |
| 830 | 830 | } |
| 831 | if( | |
| 831 | if(ACCESSING_BITS_ | |
| 832 | 832 | dma_dest = BYTE_REVERSE32((UINT32)(data)); |
| 833 | 833 | return; |
| 834 | 834 | } |
| 835 | 835 | break; |
| 836 | 836 | case 1: |
| 837 | if( | |
| 837 | if(ACCESSING_BITS_32_63 | |
| 838 | 838 | { |
| 839 | 839 | int length = BYTE_REVERSE32((UINT32)(data >> 32)) * 4; |
| 840 | 840 | if (dma_endian & 0x80) |
| r2241 | r2242 | |
| 849 | 849 | scsi_irq_callback(); |
| 850 | 850 | return; |
| 851 | 851 | } |
| 852 | else if( | |
| 852 | else if(ACCESSING_BITS_1 | |
| 853 | 853 | { |
| 854 | 854 | if(data & 0x10000) { |
| 855 | 855 | dma_irq &= ~0x1; |
| 856 | 856 | } |
| 857 | 857 | return; |
| 858 | 858 | } |
| 859 | else if( | |
| 859 | else if(ACCESSING_BITS_8_15 | |
| 860 | 860 | { |
| 861 | 861 | dma_endian = (data >> 8) & 0xff; |
| 862 | 862 | return; |
| 863 | 863 | } |
| 864 | 864 | break; |
| 865 | 865 | case 2: |
| 866 | if( | |
| 866 | if(ACCESSING_BITS_32_63 | |
| 867 | 867 | UINT32 cmd = BYTE_REVERSE32((UINT32)(data >> 32)); |
| 868 | 868 | if(cmd & 0x20000000) { |
| 869 | 869 | dma_data = BYTE_REVERSE32(real3d_device_id); /* (PCI Vendor & Device ID) */ |
| r2241 | r2242 | |
| 874 | 874 | } |
| 875 | 875 | return; |
| 876 | 876 | } |
| 877 | if( | |
| 877 | if(ACCESSING_BITS_ | |
| 878 | 878 | dma_data = 0xffffffff; |
| 879 | 879 | return; |
| 880 | 880 | } |
| r2241 | r2242 | |
| 1015 | 1015 | model3_tap_reset(); |
| 1016 | 1016 | |
| 1017 | 1017 | if(step < 0x20) { |
| 1018 | if( mame_stricmp(Machine->gamedrv->name, "vs215") == 0 || | |
| 1019 | mame_stricmp(Machine->gamedrv->name, "vs29815") == 0 || | |
| 1020 | mame_stricmp(Machine->gamedrv->name, "bass") == 0 ) | |
| 1018 | if( mame_stricmp(machine->gamedrv->name, "vs215") == 0 || | |
| 1019 | mame_stricmp(machine->gamedrv->name, "vs29815") == 0 || | |
| 1020 | mame_stricmp(machine->gamedrv->name, "bass") == 0 ) | |
| 1021 | 1021 | { |
| 1022 | 1022 | mpc106_init(); |
| 1023 | 1023 | } else { |
| r2241 | r2242 | |
| 1050 | 1050 | switch( offset ) |
| 1051 | 1051 | { |
| 1052 | 1052 | case 0: |
| 1053 | if ( | |
| 1053 | if (ACCESSING_BITS_5 | |
| 1054 | 1054 | { |
| 1055 | 1055 | return (UINT64)model3_controls_bank << 56; |
| 1056 | 1056 | } |
| 1057 | else if ( | |
| 1057 | else if (ACCESSING_BITS_24_31 | |
| 1058 | 1058 | { |
| 1059 | 1059 | if(model3_controls_bank & 0x1) { |
| 1060 | 1060 | eeprom_bit = EEPROM_read_bit() << 5; |
| r2241 | r2242 | |
| 1067 | 1067 | break; |
| 1068 | 1068 | |
| 1069 | 1069 | case 1: |
| 1070 | if ( | |
| 1070 | if (ACCESSING_BITS_5 | |
| 1071 | 1071 | { |
| 1072 | 1072 | return (UINT64)readinputport(2) << 56; |
| 1073 | 1073 | } |
| 1074 | else if ( | |
| 1074 | else if (ACCESSING_BITS_24_31 | |
| 1075 | 1075 | { |
| 1076 | 1076 | return readinputport(3) << 24; |
| 1077 | 1077 | } |
| r2241 | r2242 | |
| 1087 | 1087 | return U64(0xffffffffffffffff); |
| 1088 | 1088 | |
| 1089 | 1089 | case 5: |
| 1090 | if ( | |
| 1090 | if (ACCESSING_BITS_24_31 | |
| 1091 | 1091 | { |
| 1092 | 1092 | return (UINT64)model3_serial_fifo1 << 24; |
| 1093 | 1093 | } |
| 1094 | 1094 | break; |
| 1095 | 1095 | |
| 1096 | 1096 | case 6: |
| 1097 | if ( | |
| 1097 | if (ACCESSING_BITS_5 | |
| 1098 | 1098 | { |
| 1099 | 1099 | return (UINT64)model3_serial_fifo2 << 56; |
| 1100 | 1100 | } |
| 1101 | else if ( | |
| 1101 | else if (ACCESSING_BITS_24_31 | |
| 1102 | 1102 | { |
| 1103 | 1103 | return 0x0c << 24; |
| 1104 | 1104 | } |
| 1105 | 1105 | break; |
| 1106 | 1106 | |
| 1107 | 1107 | case 7: |
| 1108 | if ( | |
| 1108 | if (ACCESSING_BITS_24_31 | |
| 1109 | 1109 | { |
| 1110 | 1110 | UINT8 adc_data = readinputport(5 + adc_channel); |
| 1111 | 1111 | adc_channel++; |
| r2241 | r2242 | |
| 1124 | 1124 | switch(offset) |
| 1125 | 1125 | { |
| 1126 | 1126 | case 0: |
| 1127 | if ( | |
| 1127 | if (ACCESSING_BITS_5 | |
| 1128 | 1128 | { |
| 1129 | 1129 | int reg = (data >> 56) & 0xff; |
| 1130 | 1130 | EEPROM_write_bit((reg & 0x20) ? 1 : 0); |
| r2241 | r2242 | |
| 1143 | 1143 | return; |
| 1144 | 1144 | |
| 1145 | 1145 | case 4: |
| 1146 | if ( | |
| 1146 | if (ACCESSING_BITS_5 | |
| 1147 | 1147 | { |
| 1148 | 1148 | |
| 1149 | 1149 | } |
| 1150 | if ( | |
| 1150 | if (ACCESSING_BITS_24_31 | |
| 1151 | 1151 | { /* Used for reading the light gun in Lost World */ |
| 1152 | 1152 | switch(data >> 24) |
| 1153 | 1153 | { |
| r2241 | r2242 | |
| 1198 | 1198 | return; |
| 1199 | 1199 | |
| 1200 | 1200 | case 5: |
| 1201 | if ( | |
| 1201 | if (ACCESSING_BITS_5 | |
| 1202 | 1202 | { |
| 1203 | 1203 | model3_serial_fifo2 = data >> 56; |
| 1204 | 1204 | return; |
| r2241 | r2242 | |
| 1206 | 1206 | break; |
| 1207 | 1207 | |
| 1208 | 1208 | case 7: |
| 1209 | if ( | |
| 1209 | if (ACCESSING_BITS_2 | |
| 1210 | 1210 | { |
| 1211 | 1211 | adc_channel = (data >> 24) & 0xf; |
| 1212 | 1212 | } |
| r2241 | r2242 | |
| 1221 | 1221 | switch (offset) |
| 1222 | 1222 | { |
| 1223 | 1223 | case 0x08/8: |
| 1224 | if ( | |
| 1224 | if (ACCESSING_BITS_5 | |
| 1225 | 1225 | { |
| 1226 | 1226 | return ((UINT64)model3_crom_bank << 56); |
| 1227 | 1227 | } |
| 1228 | 1228 | break; |
| 1229 | 1229 | |
| 1230 | 1230 | case 0x10/8: |
| 1231 | if ( | |
| 1231 | if (ACCESSING_BITS_5 | |
| 1232 | 1232 | { |
| 1233 | 1233 | UINT64 res = model3_tap_read(); |
| 1234 | 1234 | |
| 1235 | 1235 | return res<<61; |
| 1236 | 1236 | } |
| 1237 | else if ( | |
| 1237 | else if (ACCESSING_BITS_24_31 | |
| 1238 | 1238 | { |
| 1239 | 1239 | return (model3_irq_enable<<24); |
| 1240 | 1240 | } |
| r2241 | r2242 | |
| 1254 | 1254 | switch (offset) |
| 1255 | 1255 | { |
| 1256 | 1256 | case 0x10/8: |
| 1257 | if ( | |
| 1257 | if (ACCESSING_BITS_24_31 | |
| 1258 | 1258 | { |
| 1259 | 1259 | model3_irq_enable = (data>>24)&0xff; |
| 1260 | 1260 | } |
| 1261 | 1261 | else logerror("m3_sys: unknown mask on IRQen write\n"); |
| 1262 | 1262 | break; |
| 1263 | 1263 | case 0x08/8: |
| 1264 | if ( | |
| 1264 | if (ACCESSING_BITS_5 | |
| 1265 | 1265 | { |
| 1266 | 1266 | model3_crom_bank = data >> 56; |
| 1267 | 1267 | |
| r2241 | r2242 | |
| 1269 | 1269 | data = (~data) & 0xf; |
| 1270 | 1270 | memory_set_bankptr( 1, memory_region( REGION_USER1 ) + 0x800000 + (data * 0x800000)); /* banked CROM */ |
| 1271 | 1271 | } |
| 1272 | if ( | |
| 1272 | if (ACCESSING_BITS_24_31 | |
| 1273 | 1273 | { |
| 1274 | 1274 | data >>= 24; |
| 1275 | 1275 | model3_tap_write( |
| r2241 | r2242 | |
| 1286 | 1286 | static READ64_HANDLER( model3_rtc_r ) |
| 1287 | 1287 | { |
| 1288 | 1288 | UINT64 r = 0; |
| 1289 | if( | |
| 1289 | if(ACCESSING_BITS_5 | |
| 1290 | 1290 | r |= (UINT64)rtc72421_r(machine, (offset*2)+0, (UINT32)(mem_mask >> 32)) << 32; |
| 1291 | 1291 | } |
| 1292 | if( | |
| 1292 | if(ACCESSING_BITS_2 | |
| 1293 | 1293 | r |= (UINT64)rtc72421_r(machine, (offset*2)+1, (UINT32)(mem_mask)); |
| 1294 | 1294 | } |
| 1295 | 1295 | return r; |
| r2241 | r2242 | |
| 1297 | 1297 | |
| 1298 | 1298 | static WRITE64_HANDLER( model3_rtc_w ) |
| 1299 | 1299 | { |
| 1300 | if( | |
| 1300 | if(ACCESSING_BITS_5 | |
| 1301 | 1301 | rtc72421_w(machine, (offset*2)+0, (UINT32)(data >> 32), (UINT32)(mem_mask >> 32)); |
| 1302 | 1302 | } |
| 1303 | if( | |
| 1303 | if(ACCESSING_BITS_2 | |
| 1304 | 1304 | rtc72421_w(machine, (offset*2)+1, (UINT32)(data), (UINT32)(mem_mask)); |
| 1305 | 1305 | } |
| 1306 | 1306 | } |
| r2241 | r2242 | |
| 1420 | 1420 | case 0x00/8: return 0; /* status */ |
| 1421 | 1421 | case 0x1c/8: /* security board data read */ |
| 1422 | 1422 | { |
| 1423 | if (mame_stricmp(Machine->gamedrv->name, "vs299") == 0 || | |
| 1424 | mame_stricmp(Machine->gamedrv->name, "vs2v991") == 0) | |
| 1423 | if (mame_stricmp(machine->gamedrv->name, "vs299") == 0 || | |
| 1424 | mame_stricmp(machine->gamedrv->name, "vs2v991") == 0) | |
| 1425 | 1425 | { |
| 1426 | 1426 | return (UINT64)vs299_prot_data[prot_data_ptr++] << 48; |
| 1427 | 1427 | } |
| 1428 | else if (mame_stricmp(Machine->gamedrv->name, "swtrilgy") == 0 || | |
| 1429 | mame_stricmp(Machine->gamedrv->name, "swtrilga") == 0) | |
| 1428 | else if (mame_stricmp(machine->gamedrv->name, "swtrilgy") == 0 || | |
| 1429 | mame_stricmp(machine->gamedrv->name, "swtrilga") == 0) | |
| 1430 | 1430 | { |
| 1431 | 1431 | UINT64 data = (UINT64)swt_prot_data[prot_data_ptr++] << 16; |
| 1432 | 1432 | if (prot_data_ptr > 0x38) |
| r2241 | r2242 | |
| 1435 | 1435 | } |
| 1436 | 1436 | return data; |
| 1437 | 1437 | } |
| 1438 | else if (mame_stricmp( | |
| 1438 | else if (mame_stricmp(machine->gamedrv->name, "fvipers2") == 0) | |
| 1439 | 1439 | { |
| 1440 | 1440 | UINT64 data = (UINT64)fvipers2_prot_data[prot_data_ptr++] << 16; |
| 1441 | 1441 | if (prot_data_ptr >= 0x41) |
| r2241 | r2242 | |
| 1444 | 1444 | } |
| 1445 | 1445 | return data; |
| 1446 | 1446 | } |
| 1447 | else if (mame_stricmp(Machine->gamedrv->name, "spikeout") == 0 || | |
| 1448 | mame_stricmp(Machine->gamedrv->name, "spikeofe") == 0) | |
| 1447 | else if (mame_stricmp(machine->gamedrv->name, "spikeout") == 0 || | |
| 1448 | mame_stricmp(machine->gamedrv->name, "spikeofe") == 0) | |
| 1449 | 1449 | { |
| 1450 | 1450 | UINT64 data = (UINT64)spikeout_prot_data[prot_data_ptr++] << 16; |
| 1451 | 1451 | if (prot_data_ptr >= 0x55) |
| r2241 | r2242 | |
| 1454 | 1454 | } |
| 1455 | 1455 | return data; |
| 1456 | 1456 | } |
| 1457 | else if (mame_stricmp( | |
| 1457 | else if (mame_stricmp(machine->gamedrv->name, "eca") == 0) | |
| 1458 | 1458 | { |
| 1459 | 1459 | UINT64 data = (UINT64)eca_prot_data[prot_data_ptr++] << 16; |
| 1460 | 1460 | if (prot_data_ptr >= 0x31) |
| r2241 | r2242 | |
| 1474 | 1474 | |
| 1475 | 1475 | static WRITE64_HANDLER(daytona2_rombank_w) |
| 1476 | 1476 | { |
| 1477 | if ( | |
| 1477 | if (ACCESSING_BITS_5 | |
| 1478 | 1478 | { |
| 1479 | 1479 | data >>= 56; |
| 1480 | 1480 | data = (~data) & 0xf; |
| r2241 | r2242 | |
| 4096 | 4096 | |
| 4097 | 4097 | |
| 4098 | 4098 | MDRV_SCREEN_ADD("main", RASTER) |
| 4099 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 4099 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 4100 | 4100 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4101 | 4101 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 4102 | 4102 | MDRV_SCREEN_SIZE(496, 384) |
| 4103 | 4103 | MDRV_SCREEN_VISIBLE_AREA(0, 495, 0, 383) |
| 4104 | 4104 | |
| 4105 | MDRV_PALETTE_LENGTH(65536) | |
| 4105 | MDRV_PALETTE_LENGTH(32768) | |
| 4106 | MDRV_PALETTE_INIT(RRRRR_GGGGG_BBBBB) | |
| 4106 | 4107 | |
| 4107 | 4108 | MDRV_VIDEO_START(model3) |
| 4108 | 4109 | MDRV_VIDEO_UPDATE(model3) |
| r2241 | r2242 | |
| 4133 | 4134 | |
| 4134 | 4135 | |
| 4135 | 4136 | MDRV_SCREEN_ADD("main", RASTER) |
| 4136 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 4137 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 4137 | 4138 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4138 | 4139 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 4139 | 4140 | MDRV_SCREEN_SIZE(496, 384) |
| 4140 | 4141 | MDRV_SCREEN_VISIBLE_AREA(0, 495, 0, 383) |
| 4141 | 4142 | |
| 4142 | MDRV_PALETTE_LENGTH(65536) | |
| 4143 | MDRV_PALETTE_LENGTH(32768) | |
| 4144 | MDRV_PALETTE_INIT(RRRRR_GGGGG_BBBBB) | |
| 4143 | 4145 | |
| 4144 | 4146 | MDRV_VIDEO_START(model3) |
| 4145 | 4147 | MDRV_VIDEO_UPDATE(model3) |
| r2241 | r2242 | |
| 4169 | 4171 | |
| 4170 | 4172 | |
| 4171 | 4173 | MDRV_SCREEN_ADD("main", RASTER) |
| 4172 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 4174 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 4173 | 4175 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4174 | 4176 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 4175 | 4177 | MDRV_SCREEN_SIZE(496, 384) |
| 4176 | 4178 | MDRV_SCREEN_VISIBLE_AREA(0, 495, 0, 383) |
| 4177 | 4179 | |
| 4178 | MDRV_PALETTE_LENGTH(65536) | |
| 4180 | MDRV_PALETTE_LENGTH(32768) | |
| 4181 | MDRV_PALETTE_INIT(RRRRR_GGGGG_BBBBB) | |
| 4179 | 4182 | |
| 4180 | 4183 | MDRV_VIDEO_START(model3) |
| 4181 | 4184 | MDRV_VIDEO_UPDATE(model3) |
| r2241 | r2242 | |
| 4205 | 4208 | |
| 4206 | 4209 | |
| 4207 | 4210 | MDRV_SCREEN_ADD("main", RASTER) |
| 4208 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 4211 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 4209 | 4212 | MDRV_SCREEN_REFRESH_RATE(60) |
| 4210 | 4213 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 4211 | 4214 | MDRV_SCREEN_SIZE(496, 384) |
| 4212 | 4215 | MDRV_SCREEN_VISIBLE_AREA(0, 495, 0, 383) |
| 4213 | 4216 | |
| 4214 | MDRV_PALETTE_LENGTH(65536) | |
| 4217 | MDRV_PALETTE_LENGTH(32768) | |
| 4218 | MDRV_PALETTE_INIT(RRRRR_GGGGG_BBBBB) | |
| 4215 | 4219 | |
| 4216 | 4220 | MDRV_VIDEO_START(model3) |
| 4217 | 4221 | MDRV_VIDEO_UPDATE(model3) |
| r2241 | r2242 | |
|---|---|---|
| 985 | 985 | |
| 986 | 986 | static WRITE16_HANDLER( pointram_data_w ) |
| 987 | 987 | { |
| 988 | if( ACCESSING_ | |
| 988 | if( ACCESSING_ | |
| 989 | 989 | { |
| 990 | 990 | // if( (pointram_idx%6)==0 ) logerror("\n" ); |
| 991 | 991 | // logerror( " %02x", data ); |
| r2241 | r2242 | |
| 1003 | 1003 | } |
| 1004 | 1004 | static WRITE16_HANDLER( namcos21_depthcue_w ) |
| 1005 | 1005 | { |
| 1006 | if( ACCESSING_ | |
| 1006 | if( ACCESSING_ | |
| 1007 | 1007 | { |
| 1008 | 1008 | int bank = (pointram_control&0x20)?1:0; |
| 1009 | 1009 | namcos21_depthcue[bank][offset] = data; |
| r2241 | r2242 | |
| 1021 | 1021 | |
| 1022 | 1022 | static WRITE16_HANDLER( namcos2_68k_dualportram_word_w ) |
| 1023 | 1023 | { |
| 1024 | if( ACCESSING_ | |
| 1024 | if( ACCESSING_ | |
| 1025 | 1025 | { |
| 1026 | 1026 | mpDualPortRAM[offset] = data&0xff; |
| 1027 | 1027 | } |
| r2241 | r2242 | |
|---|---|---|
| 404 | 404 | static WRITE16_HANDLER ( z80_ram_w ) |
| 405 | 405 | { |
| 406 | 406 | int pc = activecpu_get_pc(); |
| 407 | if(ACCESSING_ | |
| 407 | if(ACCESSING_ | |
| 408 | 408 | z80_mainram[offset*2] = data >> 8; |
| 409 | if(ACCESSING_ | |
| 409 | if(ACCESSING_ | |
| 410 | 410 | z80_mainram[offset*2+1] = data; |
| 411 | 411 | |
| 412 | 412 | if(pc != 0xf12 && pc != 0xde2 && pc != 0x100c50 && pc != 0x100b20) |
| r2241 | r2242 | |
| 443 | 443 | |
| 444 | 444 | static WRITE16_HANDLER ( m68k_l1_w ) |
| 445 | 445 | { |
| 446 | if(ACCESSING_ | |
| 446 | if(ACCESSING_ | |
| 447 | 447 | if (PGMLOGERROR) logerror("SL 1 m68.w %02x (%06x) IRQ\n", data & 0xff, activecpu_get_pc()); |
| 448 | 448 | soundlatch_w(machine, 0, data); |
| 449 | 449 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE ); |
| r2241 | r2242 | |
| 755 | 755 | |
| 756 | 756 | static WRITE32_HANDLER( kovsh_arm7_protlatch_w ) |
| 757 | 757 | { |
| 758 | if ( | |
| 758 | if (ACCESSING_BITS_16_31 | |
| 759 | 759 | { |
| 760 | 760 | kovsh_highlatch = data>>16; |
| 761 | 761 | } |
| 762 | if ( | |
| 762 | if (ACCESSING_BITS_ | |
| 763 | 763 | { |
| 764 | 764 | kovsh_lowlatch = data; |
| 765 | 765 | } |
| r2241 | r2242 | |
|---|---|---|
| 80 | 80 | |
| 81 | 81 | static WRITE8_HANDLER( io_select_w ) |
| 82 | 82 | { |
| 83 | gameplan_state *state = | |
| 83 | gameplan_state *state = machine->driver_data; | |
| 84 | 84 | |
| 85 | 85 | switch (data) |
| 86 | 86 | { |
| r2241 | r2242 | |
| 96 | 96 | |
| 97 | 97 | static READ8_HANDLER( io_port_r ) |
| 98 | 98 | { |
| 99 | gameplan_state *state = | |
| 99 | gameplan_state *state = machine->driver_data; | |
| 100 | 100 | |
| 101 | 101 | return readinputport(state->current_port); |
| 102 | 102 | } |
| r2241 | r2242 | |
| 127 | 127 | |
| 128 | 128 | static WRITE8_HANDLER( audio_reset_w ) |
| 129 | 129 | { |
| 130 | cpunum_set_input_line( | |
| 130 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, (data & 1) ? CLEAR_LINE : ASSERT_LINE); | |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | |
| 134 | 134 | static WRITE8_HANDLER( audio_cmd_w ) |
| 135 | 135 | { |
| 136 | gameplan_state *state = | |
| 136 | gameplan_state *state = machine->driver_data; | |
| 137 | 137 | |
| 138 | 138 | state->audio_cmd = data & 0x7f; |
| 139 | 139 | } |
| r2241 | r2242 | |
|---|---|---|
| 310 | 310 | |
| 311 | 311 | static WRITE32_HANDLER( sound_data_w ) |
| 312 | 312 | { |
| 313 | if (ACCESSING_ | |
| 313 | if (ACCESSING_ | |
| 314 | 314 | atarigen_sound_w(machine,offset, data, mem_mask); |
| 315 | 315 | } |
| 316 | 316 |
| r2241 | r2242 | |
|---|---|---|
| 252 | 252 | |
| 253 | 253 | static WRITE16_HANDLER( sound_cmd1_w ) |
| 254 | 254 | { |
| 255 | if(ACCESSING_ | |
| 255 | if(ACCESSING_ | |
| 256 | 256 | { |
| 257 | 257 | // anyone knows why 0x1a keeps lurking the sound queue in the world version??? |
| 258 | 258 | if (xexex_strip0x1a) |
| r2241 | r2242 | |
| 264 | 264 | |
| 265 | 265 | static WRITE16_HANDLER( sound_cmd2_w ) |
| 266 | 266 | { |
| 267 | if (ACCESSING_ | |
| 267 | if (ACCESSING_ | |
| 268 | 268 | { |
| 269 | 269 | soundlatch2_w(machine, 0, data & 0xff); |
| 270 | 270 | } |
| r2241 | r2242 | |
| 377 | 377 | AM_RANGE(0x182000, 0x183fff) AM_READWRITE(K056832_ram_word_r, K056832_ram_word_w) |
| 378 | 378 | AM_RANGE(0x190000, 0x191fff) AM_READWRITE(K056832_rom_word_r, SMH_ROM) // Passthrough to tile roms |
| 379 | 379 | AM_RANGE(0x1a0000, 0x1a1fff) AM_READ(K053250_0_rom_r) |
| 380 | AM_RANGE(0x1b0000, 0x1b1fff) AM_R | |
| 380 | AM_RANGE(0x1b0000, 0x1b1fff) AM_R | |
| 381 | 381 | |
| 382 | 382 | #if XE_DEBUG |
| 383 | 383 | AM_RANGE(0x0c0000, 0x0c003f) AM_READ(K056832_word_r) |
| r2241 | r2242 | |
|---|---|---|
| 10 | 10 | #include "deprecat.h" |
| 11 | 11 | #include "cpu/m6809/m6809.h" |
| 12 | 12 | #include "sound/2203intf.h" |
| 13 | #include "sound/ | |
| 13 | #include "sound/dis | |
| 14 | 14 | |
| 15 | ||
| 16 | 15 | extern UINT8 *ironhors_scroll; |
| 17 | 16 | static UINT8 *ironhors_interrupt_enable; |
| 18 | 17 | |
| r2241 | r2242 | |
| 48 | 47 | |
| 49 | 48 | static WRITE8_HANDLER( ironhors_filter_w ) |
| 50 | 49 | { |
| 51 | if (sndti_exists(SOUND_ | |
| 50 | if (sndti_exists(SOUND_DISCRETE | |
| 52 | 51 | { |
| 53 | filter_rc_set_RC(0,FLT_RC_LOWPASS, 1000,2200,1000,data & 0x04 ? CAP_N(220) : 0); /* YM2203-SSG-A */ | |
| 54 | filter_rc_set_RC(1,FLT_RC_LOWPASS, 1000,2200,1000,data & 0x02 ? CAP_N(220) : 0); /* YM2203-SSG-B */ | |
| 55 | filter_rc_set_RC(2,FLT_RC_LOWPASS, 1000,2200,1000,data & 0x01 ? CAP_N(220) : 0); /* YM2203-SSG-C */ | |
| 52 | discrete_sound_w(machine, NODE_11, (data & 0x04) >> 2); | |
| 53 | discrete_sound_w(machine, NODE_12, (data & 0x02) >> 1); | |
| 54 | discrete_sound_w(machine, NODE_13, (data & 0x01) >> 0); | |
| 56 | 55 | } |
| 57 | 56 | } |
| 58 | 57 | |
| 59 | ||
| 60 | 58 | static ADDRESS_MAP_START( master_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 61 | 59 | AM_RANGE(0x0000, 0x0002) AM_RAM |
| 62 | 60 | AM_RANGE(0x0003, 0x0003) AM_RAM AM_WRITE(ironhors_charbank_w) |
| r2241 | r2242 | |
| 382 | 380 | GFXDECODE_ENTRY( REGION_GFX2, 0, farwest_spritelayout2,16*8*16, 16*8 ) /* to handle 8x8 sprites */ |
| 383 | 381 | GFXDECODE_END |
| 384 | 382 | |
| 383 | static const discrete_mixer_desc ironhors_mixer_desc = | |
| 384 | {DISC_MIXER_IS_RESISTOR, | |
| 385 | {RES_K(2.2), RES_K(2.2), RES_K(2.2)}, | |
| 386 | {0,0,0,0,0,0}, /* no variable resistors */ | |
| 387 | {0,0,0,0,0,0}, /* no node capacitors */ | |
| 388 | 0, RES_K(1), /* RF */ | |
| 389 | 0, | |
| 390 | 0, | |
| 391 | 0, 1}; | |
| 385 | 392 | |
| 393 | static const discrete_mixer_desc ironhors_mixer_desc_final = | |
| 394 | {DISC_MIXER_IS_RESISTOR, | |
| 395 | {RES_K(0.5), RES_K(1)}, | |
| 396 | {0,0,0,0,0,0}, /* no variable resistors */ | |
| 397 | {CAP_U(4.7), CAP_U(4.7)}, /* node capacitors */ | |
| 398 | 0, RES_K(1), /* RF */ | |
| 399 | 0, | |
| 400 | 0, | |
| 401 | 0, 1}; | |
| 402 | ||
| 403 | static DISCRETE_SOUND_START( ironhors ) | |
| 404 | ||
| 405 | DISCRETE_INPUTX_STREAM(NODE_01, 0, 1.0, 0) | |
| 406 | DISCRETE_INPUTX_STREAM(NODE_02, 1, 1.0, 0) | |
| 407 | DISCRETE_INPUTX_STREAM(NODE_03, 2, 1.0, 0) | |
| 408 | ||
| 409 | DISCRETE_INPUTX_STREAM(NODE_04, 3, 1.0, 0) | |
| 410 | ||
| 411 | DISCRETE_INPUT_DATA(NODE_11) | |
| 412 | DISCRETE_INPUT_DATA(NODE_12) | |
| 413 | DISCRETE_INPUT_DATA(NODE_13) | |
| 414 | ||
| 415 | DISCRETE_RCFILTER_SW(NODE_21, 1, NODE_01, NODE_11, 1000, CAP_U(0.22), 0, 0, 0) | |
| 416 | DISCRETE_RCFILTER_SW(NODE_22, 1, NODE_02, NODE_12, 1000, CAP_U(0.22), 0, 0, 0) | |
| 417 | DISCRETE_RCFILTER_SW(NODE_23, 1, NODE_03, NODE_13, 1000, CAP_U(0.22), 0, 0, 0) | |
| 418 | ||
| 419 | DISCRETE_MIXER3(NODE_30, 1, NODE_21, NODE_22, NODE_23, &ironhors_mixer_desc) | |
| 420 | ||
| 421 | DISCRETE_RCFILTER(NODE_31,1,NODE_04, RES_K(1), CAP_N(33) ) | |
| 422 | DISCRETE_MIXER2(NODE_33, 1, NODE_30, NODE_31, &ironhors_mixer_desc_final) | |
| 423 | ||
| 424 | DISCRETE_OUTPUT(NODE_33, 5.0 ) | |
| 425 | ||
| 426 | DISCRETE_SOUND_END | |
| 427 | ||
| 386 | 428 | static const struct YM2203interface ym2203_interface = |
| 387 | 429 | { |
| 388 | 430 | 0, |
| r2241 | r2242 | |
| 422 | 464 | /* sound hardware */ |
| 423 | 465 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 424 | 466 | |
| 425 | MDRV_SOUND_ADD(YM2203, 18432000/6) | |
| 467 | MDRV_SOUND_ADD_TAG("ym2203", YM2203, 18432000/6) | |
| 426 | 468 | MDRV_SOUND_CONFIG(ym2203_interface) |
| 427 | MDRV_SOUND_ROUTE(0, "filter1", 0.40) | |
| 428 | MDRV_SOUND_ROUTE(1, "filter2", 0.40) | |
| 429 | MDRV_SOUND_ROUTE(2, "filter3", 0.40) | |
| 430 | MDRV_SOUND_ROUTE(3, "mono", 0.40) | |
| 431 | 469 | |
| 432 | MDRV_SOUND_ADD_TAG("filter1", FILTER_RC, 0) | |
| 470 | MDRV_SOUND_ROUTE_EX(0, "disc_ih", 1.0, 0) | |
| 471 | MDRV_SOUND_ROUTE_EX(1, "disc_ih", 1.0, 1) | |
| 472 | MDRV_SOUND_ROUTE_EX(2, "disc_ih", 1.0, 2) | |
| 473 | MDRV_SOUND_ROUTE_EX(3, "disc_ih", 1.0, 3) | |
| 474 | ||
| 475 | MDRV_SOUND_ADD_TAG("disc_ih", DISCRETE, 0) | |
| 476 | MDRV_SOUND_CONFIG_DISCRETE(ironhors) | |
| 433 | 477 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 434 | MDRV_SOUND_ADD_TAG("filter2", FILTER_RC, 0) | |
| 435 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 436 | MDRV_SOUND_ADD_TAG("filter3", FILTER_RC, 0) | |
| 437 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 478 | ||
| 438 | 479 | MACHINE_DRIVER_END |
| 439 | 480 | |
| 440 | 481 |
| r2241 | r2242 | |
|---|---|---|
| 62 | 62 | |
| 63 | 63 | static WRITE32_HANDLER( soundr3k_w ) |
| 64 | 64 | { |
| 65 | if( ACCESSING_ | |
| 65 | if( ACCESSING_BITS_16_31 ) | |
| 66 | 66 | { |
| 67 | 67 | sndto000[ ( offset << 1 ) + 1 ] = data >> 16; |
| 68 | 68 | if( offset == 3 ) |
| r2241 | r2242 | |
| 70 | 70 | cpunum_set_input_line(Machine, 1, 1, HOLD_LINE ); |
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | if( ACCESSING_ | |
| 73 | if( ACCESSING_BITS_0_15 ) | |
| 74 | 74 | { |
| 75 | 75 | sndto000[ offset << 1 ] = data; |
| 76 | 76 | } |
| r2241 | r2242 | |
| 155 | 155 | |
| 156 | 156 | static WRITE32_HANDLER( pcmram_w ) |
| 157 | 157 | { |
| 158 | if( ACCESSING_ | |
| 158 | if( ACCESSING_ | |
| 159 | 159 | { |
| 160 | 160 | m_p_n_pcmram[ offset << 1 ] = data; |
| 161 | 161 | } |
| 162 | if( | |
| 162 | if( ACCESSING_BITS_16_23 | |
| 163 | 163 | { |
| 164 | 164 | m_p_n_pcmram[ ( offset << 1 ) + 1 ] = data >> 16; |
| 165 | 165 | } |
| r2241 | r2242 | |
| 223 | 223 | UINT16 data; |
| 224 | 224 | |
| 225 | 225 | data = 0; |
| 226 | if( ACCESSING_ | |
| 226 | if( ACCESSING_ | |
| 227 | 227 | { |
| 228 | 228 | data |= K054539_1_r( machine, offset ); |
| 229 | 229 | } |
| 230 | if( ACCESSING_ | |
| 230 | if( ACCESSING_ | |
| 231 | 231 | { |
| 232 | 232 | data |= K054539_0_r( machine, offset ) << 8; |
| 233 | 233 | } |
| r2241 | r2242 | |
| 236 | 236 | |
| 237 | 237 | static WRITE16_HANDLER( dual539_w ) |
| 238 | 238 | { |
| 239 | if( ACCESSING_ | |
| 239 | if( ACCESSING_ | |
| 240 | 240 | { |
| 241 | 241 | K054539_1_w( machine, offset, data ); |
| 242 | 242 | } |
| 243 | if( ACCESSING_ | |
| 243 | if( ACCESSING_ | |
| 244 | 244 | { |
| 245 | 245 | K054539_0_w( machine, offset, data >> 8 ); |
| 246 | 246 | } |
| r2241 | r2242 | |
|---|---|---|
| 1387 | 1387 | |
| 1388 | 1388 | static WRITE32_HANDLER( cram_bank_w ) |
| 1389 | 1389 | { |
| 1390 | if (ACCESSING_ | |
| 1390 | if (ACCESSING_ | |
| 1391 | 1391 | { |
| 1392 | 1392 | // this seems to be related to accesses to the 0x04100000 region |
| 1393 | 1393 | if (cram_bank != data) |
| r2241 | r2242 | |
| 1445 | 1445 | |
| 1446 | 1446 | if(DEBUG_PRINTF) printf("gfxflash_r\n"); |
| 1447 | 1447 | |
| 1448 | if ( | |
| 1448 | if (ACCESSING_BITS_24_31 | |
| 1449 | 1449 | { |
| 1450 | 1450 | logerror("read GFX flash chip %d addr %02x\n", flash1-8, (offset<<1)); |
| 1451 | 1451 | result |= intelflash_read(flash1, (offset<<1) ) << 24; |
| 1452 | 1452 | } |
| 1453 | if ( | |
| 1453 | if (ACCESSING_BITS_16_23 | |
| 1454 | 1454 | { |
| 1455 | 1455 | logerror("read GFX flash chip %d addr %02x\n", flash2-8, (offset<<1)); |
| 1456 | 1456 | result |= intelflash_read(flash2, (offset<<1) ) << 16; |
| 1457 | 1457 | } |
| 1458 | if ( | |
| 1458 | if (ACCESSING_BITS_8_15 | |
| 1459 | 1459 | { |
| 1460 | 1460 | logerror("read GFX flash chip %d addr %02x\n", flash1-8, (offset<<1)+1); |
| 1461 | 1461 | result |= intelflash_read(flash1, (offset<<1)+0x1 ) << 8; |
| 1462 | 1462 | } |
| 1463 | if ( | |
| 1463 | if (ACCESSING_BITS_ | |
| 1464 | 1464 | { |
| 1465 | 1465 | logerror("read GFX flash chip %d addr %02x\n", flash2-8, (offset<<1)+1); |
| 1466 | 1466 | result |= intelflash_read(flash2, (offset<<1)+0x1 ) << 0; |
| r2241 | r2242 | |
| 1485 | 1485 | // if(DEBUG_PRINTF) printf("cps3_gfxflash_w %08x %08x %08x\n", offset *2, data, mem_mask); |
| 1486 | 1486 | |
| 1487 | 1487 | |
| 1488 | if ( | |
| 1488 | if (ACCESSING_BITS_24_31 | |
| 1489 | 1489 | { |
| 1490 | 1490 | command = (data >> 24) & 0xff; |
| 1491 | 1491 | logerror("write to GFX flash chip %d addr %02x cmd %02x\n", flash1-8, (offset<<1), command); |
| 1492 | 1492 | intelflash_write(flash1, (offset<<1), command); |
| 1493 | 1493 | } |
| 1494 | if ( | |
| 1494 | if (ACCESSING_BITS_16_23 | |
| 1495 | 1495 | { |
| 1496 | 1496 | command = (data >> 16) & 0xff; |
| 1497 | 1497 | logerror("write to GFX flash chip %d addr %02x cmd %02x\n", flash2-8, (offset<<1), command); |
| 1498 | 1498 | intelflash_write(flash2, (offset<<1), command); |
| 1499 | 1499 | } |
| 1500 | if ( | |
| 1500 | if (ACCESSING_BITS_8_15 | |
| 1501 | 1501 | { |
| 1502 | 1502 | command = (data >> 8) & 0xff; |
| 1503 | 1503 | logerror("write to GFX flash chip %d addr %02x cmd %02x\n", flash1-8, (offset<<1)+1, command); |
| 1504 | 1504 | intelflash_write(flash1, (offset<<1)+0x1, command); |
| 1505 | 1505 | } |
| 1506 | if ( | |
| 1506 | if (ACCESSING_BITS_ | |
| 1507 | 1507 | { |
| 1508 | 1508 | command = (data >> 0) & 0xff; |
| 1509 | 1509 | //if ( ((offset<<1)+1) != 0x555) printf("write to GFX flash chip %d addr %02x cmd %02x\n", flash1-8, (offset<<1)+1, command); |
| r2241 | r2242 | |
| 1536 | 1536 | { |
| 1537 | 1537 | UINT32 result = 0; |
| 1538 | 1538 | |
| 1539 | if ( | |
| 1539 | if (ACCESSING_BITS_24_31 | |
| 1540 | 1540 | { |
| 1541 | 1541 | // logerror("read flash chip %d addr %02x\n", base+0, offset*4 ); |
| 1542 | 1542 | result |= (intelflash_read(base+0, offset)<<24); |
| 1543 | 1543 | } |
| 1544 | if ( | |
| 1544 | if (ACCESSING_BITS_16_23 | |
| 1545 | 1545 | { |
| 1546 | 1546 | // logerror("read flash chip %d addr %02x\n", base+1, offset*4 ); |
| 1547 | 1547 | result |= (intelflash_read(base+1, offset)<<16); |
| 1548 | 1548 | } |
| 1549 | if ( | |
| 1549 | if (ACCESSING_BITS_8_15 | |
| 1550 | 1550 | { |
| 1551 | 1551 | // logerror("read flash chip %d addr %02x\n", base+2, offset*4 ); |
| 1552 | 1552 | result |= (intelflash_read(base+2, offset)<<8); |
| 1553 | 1553 | } |
| 1554 | if ( | |
| 1554 | if (ACCESSING_BITS_ | |
| 1555 | 1555 | { |
| 1556 | 1556 | // logerror("read flash chip %d addr %02x\n", base+3, offset*4 ); |
| 1557 | 1557 | result |= (intelflash_read(base+3, offset)<<0); |
| r2241 | r2242 | |
| 1649 | 1649 | static void cps3_flashmain_w(int base, UINT32 offset, UINT32 data, UINT32 mem_mask) |
| 1650 | 1650 | { |
| 1651 | 1651 | int command; |
| 1652 | if ( | |
| 1652 | if (ACCESSING_BITS_24_31 | |
| 1653 | 1653 | { |
| 1654 | 1654 | command = (data >> 24) & 0xff; |
| 1655 | 1655 | logerror("write to flash chip %d addr %02x cmd %02x\n", base+0, offset, command); |
| 1656 | 1656 | intelflash_write(base+0, offset, command); |
| 1657 | 1657 | } |
| 1658 | if ( | |
| 1658 | if (ACCESSING_BITS_16_23 | |
| 1659 | 1659 | { |
| 1660 | 1660 | command = (data >> 16) & 0xff; |
| 1661 | 1661 | logerror("write to flash chip %d addr %02x cmd %02x\n", base+1, offset, command); |
| 1662 | 1662 | intelflash_write(base+1, offset, command); |
| 1663 | 1663 | } |
| 1664 | if ( | |
| 1664 | if (ACCESSING_BITS_8_15 | |
| 1665 | 1665 | { |
| 1666 | 1666 | command = (data >> 8) & 0xff; |
| 1667 | 1667 | logerror("write to flash chip %d addr %02x cmd %02x\n", base+2, offset, command); |
| 1668 | 1668 | intelflash_write(base+2, offset, command); |
| 1669 | 1669 | } |
| 1670 | if ( | |
| 1670 | if (ACCESSING_BITS_ | |
| 1671 | 1671 | { |
| 1672 | 1672 | command = (data >> 0) & 0xff; |
| 1673 | 1673 | logerror("write to flash chip %d addr %02x cmd %02x\n", base+3, offset, command); |
| r2241 | r2242 | |
| 1727 | 1727 | |
| 1728 | 1728 | static WRITE32_HANDLER( cram_gfxflash_bank_w ) |
| 1729 | 1729 | { |
| 1730 | if (ACCESSING_ | |
| 1730 | if (ACCESSING_ | |
| 1731 | 1731 | { |
| 1732 | 1732 | //printf("cram_gfxflash_bank_w MSB32 %08x\n",data); |
| 1733 | 1733 | /* |
| r2241 | r2242 | |
| 1774 | 1774 | cram_gfxflash_bank-= 0x0002;// as with sound access etc. first 4 meg is 'special' and skipped |
| 1775 | 1775 | } |
| 1776 | 1776 | |
| 1777 | if (ACCESSING_ | |
| 1777 | if (ACCESSING_ | |
| 1778 | 1778 | { |
| 1779 | 1779 | /* if(DEBUG_PRINTF)*/ printf("cram_gfxflash_bank_LSB_w LSB32 %08x\n",data); |
| 1780 | 1780 | } |
| r2241 | r2242 | |
| 1822 | 1822 | |
| 1823 | 1823 | if (addr>=0x100 && addr<=0x17f) |
| 1824 | 1824 | { |
| 1825 | if (ACCESSING_ | |
| 1825 | if (ACCESSING_ | |
| 1826 | 1826 | else cps3_current_eeprom_read = (cps3_eeprom[offset-0x100/4] & 0x0000ffff)>>0; |
| 1827 | 1827 | // read word to latch... |
| 1828 | 1828 | return 0x00000000; |
| r2241 | r2242 | |
| 1830 | 1830 | else if (addr == 0x200) |
| 1831 | 1831 | { |
| 1832 | 1832 | // busy flag / read data.. |
| 1833 | if (ACCESSING_ | |
| 1833 | if (ACCESSING_ | |
| 1834 | 1834 | else |
| 1835 | 1835 | { |
| 1836 | 1836 | //if(DEBUG_PRINTF) printf("reading %04x from eeprom\n", cps3_current_eeprom_read); |
| r2241 | r2242 | |
| 1871 | 1871 | { |
| 1872 | 1872 | UINT32 retval = 0; |
| 1873 | 1873 | |
| 1874 | if (ACCESSING_ | |
| 1874 | if (ACCESSING_ | |
| 1875 | 1875 | { |
| 1876 | 1876 | retval |= ((UINT16)wd33c93_r(machine,0))<<16; |
| 1877 | 1877 | } |
| 1878 | 1878 | |
| 1879 | if (ACCESSING_ | |
| 1879 | if (ACCESSING_ | |
| 1880 | 1880 | { |
| 1881 | 1881 | retval |= (UINT16)wd33c93_r(machine,1); |
| 1882 | 1882 | } |
| r2241 | r2242 | |
| 1886 | 1886 | |
| 1887 | 1887 | static WRITE32_HANDLER( cps3_cdrom_w ) |
| 1888 | 1888 | { |
| 1889 | if (ACCESSING_ | |
| 1889 | if (ACCESSING_ | |
| 1890 | 1890 | { |
| 1891 | 1891 | wd33c93_w(machine,0,(data & 0x00ff0000)>>16); |
| 1892 | 1892 | } |
| 1893 | 1893 | |
| 1894 | if (ACCESSING_ | |
| 1894 | if (ACCESSING_ | |
| 1895 | 1895 | { |
| 1896 | 1896 | wd33c93_w(machine,1,(data & 0x000000ff)>>0); |
| 1897 | 1897 | } |
| r2241 | r2242 | |
| 1910 | 1910 | { |
| 1911 | 1911 | if(DEBUG_PRINTF) printf ("cps3_ss_pal_base_w %08x %08x\n", data, mem_mask); |
| 1912 | 1912 | |
| 1913 | if(ACCESSING_ | |
| 1913 | if(ACCESSING_ | |
| 1914 | 1914 | { |
| 1915 | 1915 | cps3_ss_pal_base = (data & 0x00ff0000)>>16; |
| 1916 | 1916 | |
| r2241 | r2242 | |
| 1951 | 1951 | { |
| 1952 | 1952 | COMBINE_DATA(&paldma_other2); |
| 1953 | 1953 | |
| 1954 | if (ACCESSING_ | |
| 1954 | if (ACCESSING_ | |
| 1955 | 1955 | { |
| 1956 | 1956 | paldma_length = (data & 0xffff0000)>>16; |
| 1957 | 1957 | } |
| 1958 | if (ACCESSING_ | |
| 1958 | if (ACCESSING_ | |
| 1959 | 1959 | { |
| 1960 | 1960 | if (data & 0x0002) |
| 1961 | 1961 | { |
| r2241 | r2242 | |
| 2226 | 2226 | if (offset==0) |
| 2227 | 2227 | { |
| 2228 | 2228 | //COMBINE_DATA(&chardma_source); |
| 2229 | if (ACCESSING_ | |
| 2229 | if (ACCESSING_ | |
| 2230 | 2230 | { |
| 2231 | 2231 | chardma_source = data & 0x0000ffff; |
| 2232 | 2232 | } |
| 2233 | if (ACCESSING_ | |
| 2233 | if (ACCESSING_ | |
| 2234 | 2234 | { |
| 2235 | 2235 | if(DEBUG_PRINTF) printf("chardma_w accessing MSB32 of offset 0"); |
| 2236 | 2236 | } |
| r2241 | r2242 | |
| 2239 | 2239 | { |
| 2240 | 2240 | COMBINE_DATA(&chardma_other); |
| 2241 | 2241 | |
| 2242 | if (ACCESSING_ | |
| 2242 | if (ACCESSING_ | |
| 2243 | 2243 | { |
| 2244 | 2244 | if ((data>>16) & 0x0040) |
| 2245 | 2245 | { |
| r2241 | r2242 | |
| 2290 | 2290 | { |
| 2291 | 2291 | // COMBINE_DATA(&cps3_colourram[offset]); |
| 2292 | 2292 | |
| 2293 | if (ACCESSING_ | |
| 2293 | if (ACCESSING_ | |
| 2294 | 2294 | { |
| 2295 | 2295 | cps3_set_mame_colours(machine, offset*2, (data & 0xffff0000) >> 16, 0); |
| 2296 | 2296 | } |
| 2297 | 2297 | |
| 2298 | if (ACCESSING_ | |
| 2298 | if (ACCESSING_ | |
| 2299 | 2299 | { |
| 2300 | 2300 | cps3_set_mame_colours(machine, offset*2+1, (data & 0x0000ffff) >> 0, 0); |
| 2301 | 2301 | } |
| r2241 | r2242 | |
|---|---|---|
| 87 | 87 | { |
| 88 | 88 | UINT8 *RAM = memory_region(REGION_SOUND1); |
| 89 | 89 | |
| 90 | if (ACCESSING_ | |
| 90 | if (ACCESSING_ | |
| 91 | 91 | memcpy(&RAM[0x30000], &RAM[0x40000 + (data & 0x0f)*0x10000], 0x10000); |
| 92 | 92 | } |
| 93 | 93 | } |
| r2241 | r2242 | |
|---|---|---|
| 168 | 168 | #if 0 // mcat only.. install read handler? |
| 169 | 169 | static WRITE16_HANDLER( mcat_coin_w ) |
| 170 | 170 | { |
| 171 | if(ACCESSING_ | |
| 171 | if(ACCESSING_ | |
| 172 | 172 | { |
| 173 | 173 | coin_counter_w(0, data & 0x1000); |
| 174 | 174 | coin_counter_w(1, data & 0x2000); |
| r2241 | r2242 | |
|---|---|---|
| 36 | 36 | #include "cinemat.h" |
| 37 | 37 | #include "rendlay.h" |
| 38 | 38 | |
| 39 | #include "armora.lh" | |
| 39 | 40 | #include "starcas.lh" |
| 40 | 41 | #include "solarq.lh" |
| 41 | 42 | |
| r2241 | r2242 | |
| 1487 | 1488 | GAMEL(1979, sundance, 0, sundance, sundance, sundance, ORIENTATION_FLIP_X ^ ROT270, "Cinematronics", "Sundance", GAME_SUPPORTS_SAVE, layout_voffff20 ) |
| 1488 | 1489 | GAMEL(1979, tailg, 0, tailg, tailg, tailg, ORIENTATION_FLIP_Y, "Cinematronics", "Tailgunner", GAME_SUPPORTS_SAVE, layout_ho20ffff ) |
| 1489 | 1490 | GAME( 1979, warrior, 0, warrior, warrior, 0, ORIENTATION_FLIP_Y, "Vectorbeam", "Warrior", GAME_SUPPORTS_SAVE ) |
| 1490 | GAME( 1980, armora, 0, armora, armora, 0, ORIENTATION_FLIP_Y, "Cinematronics", "Armor Attack", GAME_SUPPORTS_SAVE ) | |
| 1491 | GAME( 1980, armorap, armora, armora, armora, 0, ORIENTATION_FLIP_Y, "Cinematronics", "Armor Attack (prototype)", GAME_SUPPORTS_SAVE ) | |
| 1492 | GAME( 1980, armorar, armora, armora, armora, 0, ORIENTATION_FLIP_Y, "Cinematronics (Rock-ola license)", "Armor Attack (Rock-ola)", GAME_SUPPORTS_SAVE ) | |
| 1491 | GAMEL(1980, armora, 0, armora, armora, 0, ORIENTATION_FLIP_Y, "Cinematronics", "Armor Attack", GAME_SUPPORTS_SAVE, layout_armora ) | |
| 1492 | GAMEL(1980, armorap, armora, armora, armora, 0, ORIENTATION_FLIP_Y, "Cinematronics", "Armor Attack (prototype)", GAME_SUPPORTS_SAVE, layout_armora ) | |
| 1493 | GAMEL(1980, armorar, armora, armora, armora, 0, ORIENTATION_FLIP_Y, "Cinematronics (Rock-ola license)", "Armor Attack (Rock-ola)", GAME_SUPPORTS_SAVE, layout_armora ) | |
| 1493 | 1494 | GAME( 1980, ripoff, 0, ripoff, ripoff, 0, ORIENTATION_FLIP_Y, "Cinematronics", "Rip Off", GAME_SUPPORTS_SAVE ) |
| 1494 | 1495 | GAMEL(1980, starcas, 0, starcas, starcas, 0, ORIENTATION_FLIP_Y, "Cinematronics", "Star Castle (version 3)", GAME_SUPPORTS_SAVE, layout_starcas ) |
| 1495 | 1496 | GAMEL(1980, starcas1, starcas, starcas, starcas, 0, ORIENTATION_FLIP_Y, "Cinematronics", "Star Castle (older)", GAME_SUPPORTS_SAVE, layout_starcas ) |
| r2241 | r2242 | |
|---|---|---|
| 653 | 653 | |
| 654 | 654 | static WRITE16_HANDLER( toaplan2_coin_word_w ) |
| 655 | 655 | { |
| 656 | if (ACCESSING_ | |
| 656 | if (ACCESSING_ | |
| 657 | 657 | { |
| 658 | 658 | toaplan2_coin_w(machine, offset, data & 0xff); |
| 659 | 659 | } |
| 660 | if (ACCESSING_ | |
| 660 | if (ACCESSING_ | |
| 661 | 661 | { |
| 662 | 662 | logerror("Writing unknown upper MSB command (%04x) to coin control\n",data & 0xff00); |
| 663 | 663 | } |
| r2241 | r2242 | |
| 665 | 665 | |
| 666 | 666 | static WRITE16_HANDLER( shippumd_coin_word_w ) |
| 667 | 667 | { |
| 668 | if (ACCESSING_ | |
| 668 | if (ACCESSING_ | |
| 669 | 669 | { |
| 670 | 670 | toaplan2_coin_w(machine, offset, data & 0xff); |
| 671 | 671 | OKIM6295_set_bank_base(0, (((data & 0x10) >> 4) * 0x40000)); |
| 672 | 672 | } |
| 673 | if (ACCESSING_ | |
| 673 | if (ACCESSING_ | |
| 674 | 674 | { |
| 675 | 675 | logerror("Writing unknown upper MSB command (%04x) to coin control\n",data & 0xff00); |
| 676 | 676 | } |
| r2241 | r2242 | |
| 683 | 683 | |
| 684 | 684 | static WRITE16_HANDLER( toaplan2_shared_w ) |
| 685 | 685 | { |
| 686 | if (ACCESSING_ | |
| 686 | if (ACCESSING_ | |
| 687 | 687 | { |
| 688 | 688 | toaplan2_shared_ram[offset] = data & 0xff; |
| 689 | 689 | } |
| r2241 | r2242 | |
| 694 | 694 | /* Command sent to secondary CPU. Support for HD647180 will be |
| 695 | 695 | required when a ROM dump becomes available for this hardware */ |
| 696 | 696 | |
| 697 | if (ACCESSING_ | |
| 697 | if (ACCESSING_ | |
| 698 | 698 | { |
| 699 | 699 | if (toaplan2_sub_cpu == CPU_2_Z80) /* Whoopee */ |
| 700 | 700 | { |
| r2241 | r2242 | |
| 731 | 731 | |
| 732 | 732 | static WRITE16_HANDLER( pipibibi_z80_task_w ) |
| 733 | 733 | { |
| 734 | if (ACCESSING_ | |
| 734 | if (ACCESSING_ | |
| 735 | 735 | { |
| 736 | 736 | toaplan2_shared_ram[0] = data & 0xff; |
| 737 | 737 | } |
| r2241 | r2242 | |
| 766 | 766 | |
| 767 | 767 | static WRITE16_HANDLER( ghox_mcu_w ) |
| 768 | 768 | { |
| 769 | if (ACCESSING_ | |
| 769 | if (ACCESSING_ | |
| 770 | 770 | { |
| 771 | 771 | mcu_data = data; |
| 772 | 772 | if ((data >= 0xd0) && (data < 0xe0)) |
| r2241 | r2242 | |
| 825 | 825 | |
| 826 | 826 | static WRITE16_HANDLER( ghox_shared_ram_w ) |
| 827 | 827 | { |
| 828 | if (ACCESSING_ | |
| 828 | if (ACCESSING_ | |
| 829 | 829 | { |
| 830 | 830 | toaplan2_shared_ram16[offset] = data & 0xff; |
| 831 | 831 | } |
| r2241 | r2242 | |
| 842 | 842 | |
| 843 | 843 | static WRITE16_HANDLER( shared_ram_w ) |
| 844 | 844 | { |
| 845 | if (ACCESSING_ | |
| 845 | if (ACCESSING_ | |
| 846 | 846 | { |
| 847 | 847 | data &= 0xff; |
| 848 | 848 | switch (offset * 2) |
| r2241 | r2242 | |
| 883 | 883 | |
| 884 | 884 | static WRITE16_HANDLER( dogyuun_snd_cpu_w ) |
| 885 | 885 | { |
| 886 | if (ACCESSING_ | |
| 886 | if (ACCESSING_ | |
| 887 | 887 | { |
| 888 | 888 | mcu_data = data; |
| 889 | 889 | dogyuun_okisnd_w(machine, data); |
| r2241 | r2242 | |
| 903 | 903 | |
| 904 | 904 | static WRITE16_HANDLER( kbash_snd_cpu_w ) |
| 905 | 905 | { |
| 906 | if (ACCESSING_ | |
| 906 | if (ACCESSING_ | |
| 907 | 907 | { |
| 908 | 908 | kbash_okisnd_w(machine, data); |
| 909 | 909 | } |
| r2241 | r2242 | |
| 937 | 937 | |
| 938 | 938 | static WRITE16_HANDLER( fixeight_sec_cpu_w ) |
| 939 | 939 | { |
| 940 | if (ACCESSING_ | |
| 940 | if (ACCESSING_ | |
| 941 | 941 | { |
| 942 | 942 | if (mcu_data & 0xff00) |
| 943 | 943 | { |
| r2241 | r2242 | |
| 974 | 974 | |
| 975 | 975 | static WRITE16_HANDLER( vfive_snd_cpu_w ) |
| 976 | 976 | { |
| 977 | if (ACCESSING_ | |
| 977 | if (ACCESSING_ | |
| 978 | 978 | { |
| 979 | 979 | mcu_data = data; |
| 980 | 980 | } |
| r2241 | r2242 | |
| 983 | 983 | |
| 984 | 984 | static WRITE16_HANDLER( batsugun_snd_cpu_w ) |
| 985 | 985 | { |
| 986 | if (ACCESSING_ | |
| 986 | if (ACCESSING_ | |
| 987 | 987 | { |
| 988 | 988 | mcu_data = data; |
| 989 | 989 | batsugun_okisnd_w(machine, data); |
| r2241 | r2242 | |
| 998 | 998 | |
| 999 | 999 | static WRITE16_HANDLER( V25_sharedram_w ) |
| 1000 | 1000 | { |
| 1001 | if (ACCESSING_ | |
| 1001 | if (ACCESSING_ | |
| 1002 | 1002 | { |
| 1003 | 1003 | V25_shared_ram[offset] = data & 0xff; |
| 1004 | 1004 | } |
| r2241 | r2242 | |
| 1006 | 1006 | |
| 1007 | 1007 | static WRITE16_HANDLER( oki_bankswitch_w ) |
| 1008 | 1008 | { |
| 1009 | if (ACCESSING_ | |
| 1009 | if (ACCESSING_ | |
| 1010 | 1010 | { |
| 1011 | 1011 | OKIM6295_set_bank_base(0, (data & 1) * 0x40000); |
| 1012 | 1012 | } |
| r2241 | r2242 | |
| 1014 | 1014 | |
| 1015 | 1015 | static WRITE16_HANDLER( fixeighb_oki_bankswitch_w ) |
| 1016 | 1016 | { |
| 1017 | if (ACCESSING_ | |
| 1017 | if (ACCESSING_ | |
| 1018 | 1018 | { |
| 1019 | 1019 | data &= 7; |
| 1020 | 1020 | if (data <= 4) |
| r2241 | r2242 | |
| 1039 | 1039 | |
| 1040 | 1040 | static WRITE16_HANDLER( raizing_shared_ram_w ) |
| 1041 | 1041 | { |
| 1042 | if (ACCESSING_ | |
| 1042 | if (ACCESSING_ | |
| 1043 | 1043 | { |
| 1044 | 1044 | raizing_shared_ram[offset] = data & 0xff; |
| 1045 | 1045 | } |
| r2241 | r2242 | |
| 1048 | 1048 | |
| 1049 | 1049 | static WRITE16_HANDLER( bgaregga_soundlatch_w ) |
| 1050 | 1050 | { |
| 1051 | if (ACCESSING_ | |
| 1051 | if (ACCESSING_ | |
| 1052 | 1052 | { |
| 1053 | 1053 | soundlatch_w(machine, offset, data & 0xff); |
| 1054 | 1054 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE); |
| r2241 | r2242 | |
| 1155 | 1155 | |
| 1156 | 1156 | static WRITE16_HANDLER( batrider_z80_busreq_w ) |
| 1157 | 1157 | { |
| 1158 | if (ACCESSING_ | |
| 1158 | if (ACCESSING_ | |
| 1159 | 1159 | { |
| 1160 | 1160 | raizing_Z80_busreq = (data & 0xff); |
| 1161 | 1161 | } |
| r2241 | r2242 | |
| 1176 | 1176 | // these two latches are always written together, via a single move.l instruction |
| 1177 | 1177 | static WRITE16_HANDLER( batrider_soundlatch_w ) |
| 1178 | 1178 | { |
| 1179 | if (ACCESSING_ | |
| 1179 | if (ACCESSING_ | |
| 1180 | 1180 | { |
| 1181 | 1181 | soundlatch_w(machine, offset, data & 0xff); |
| 1182 | 1182 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, ASSERT_LINE); |
| r2241 | r2242 | |
| 1186 | 1186 | |
| 1187 | 1187 | static WRITE16_HANDLER( batrider_soundlatch2_w ) |
| 1188 | 1188 | { |
| 1189 | if (ACCESSING_ | |
| 1189 | if (ACCESSING_ | |
| 1190 | 1190 | { |
| 1191 | 1191 | soundlatch2_w(machine, offset, data & 0xff); |
| 1192 | 1192 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, ASSERT_LINE); |
| r2241 | r2242 | |
| 1320 | 1320 | if (data & ~0x001f) |
| 1321 | 1321 | logerror("CPU #0 PC:%06X - Unknown EEPROM data being written %04X\n",activecpu_get_pc(),data); |
| 1322 | 1322 | |
| 1323 | if ( ACCESSING_ | |
| 1323 | if ( ACCESSING_ | |
| 1324 | 1324 | { |
| 1325 | 1325 | // chip select |
| 1326 | 1326 | EEPROM_set_cs_line((data & 0x01) ? CLEAR_LINE : ASSERT_LINE ); |
| r2241 | r2242 | |
|---|---|---|
| 76 | 76 | |
| 77 | 77 | static WRITE16_HANDLER( bigkarnk_sound_command_w ) |
| 78 | 78 | { |
| 79 | if (ACCESSING_ | |
| 79 | if (ACCESSING_ | |
| 80 | 80 | soundlatch_w(machine,0,data & 0xff); |
| 81 | 81 | cpunum_set_input_line(machine, 1,M6809_FIRQ_LINE,HOLD_LINE); |
| 82 | 82 | } |
| r2241 | r2242 | |
| 84 | 84 | |
| 85 | 85 | static WRITE16_HANDLER( bigkarnk_coin_w ) |
| 86 | 86 | { |
| 87 | if (ACCESSING_ | |
| 87 | if (ACCESSING_ | |
| 88 | 88 | switch ((offset >> 3)){ |
| 89 | 89 | case 0x00: /* Coin Lockouts */ |
| 90 | 90 | case 0x01: |
| r2241 | r2242 | |
| 302 | 302 | { |
| 303 | 303 | UINT8 *RAM = memory_region(REGION_SOUND1); |
| 304 | 304 | |
| 305 | if (ACCESSING_ | |
| 305 | if (ACCESSING_ | |
| 306 | 306 | memcpy(&RAM[0x30000], &RAM[0x40000 + (data & 0x0f)*0x10000], 0x10000); |
| 307 | 307 | } |
| 308 | 308 | } |
| r2241 | r2242 | |
|---|---|---|
| 366 | 366 | */ |
| 367 | 367 | static WRITE16_HANDLER( irqctrl_w ) |
| 368 | 368 | { |
| 369 | if (ACCESSING_ | |
| 369 | if (ACCESSING_ | |
| 370 | 370 | { |
| 371 | 371 | // logerror("CPU #0 - PC = %06X - $140005 <- %02X (old value: %02X)\n",activecpu_get_pc(), data&0xFF, old_data&0xFF); |
| 372 | 372 | |
| r2241 | r2242 | |
| 400 | 400 | */ |
| 401 | 401 | static WRITE16_HANDLER( selected_ip_w ) |
| 402 | 402 | { |
| 403 | if (ACCESSING_ | |
| 403 | if (ACCESSING_ | |
| 404 | 404 | } |
| 405 | 405 | |
| 406 | 406 | /* $140021.b - Return the previously selected input port's value */ |
| r2241 | r2242 | |
| 456 | 456 | COMBINE_DATA(&blitter_regs[offset]); |
| 457 | 457 | |
| 458 | 458 | /* do a blit if $80010.b has been written */ |
| 459 | if ( (offset == 0x10/2) && (ACCESSING_ | |
| 459 | if ( (offset == 0x10/2) && (ACCESSING_ | |
| 460 | 460 | { |
| 461 | 461 | /* 80000.b = ?? usually 0 - other values: 02 ; 00 - ? logic function ? */ |
| 462 | 462 | /* 80001.b = ?? usually 0 - other values: 3f ; 01 - ? height ? */ |
| r2241 | r2242 | |
| 573 | 573 | |
| 574 | 574 | static WRITE16_HANDLER( hotchase_K051316_0_w ) |
| 575 | 575 | { |
| 576 | if (ACCESSING_ | |
| 576 | if (ACCESSING_ | |
| 577 | 577 | } |
| 578 | 578 | |
| 579 | 579 | static WRITE16_HANDLER( hotchase_K051316_1_w ) |
| 580 | 580 | { |
| 581 | if (ACCESSING_ | |
| 581 | if (ACCESSING_ | |
| 582 | 582 | } |
| 583 | 583 | |
| 584 | 584 | static WRITE16_HANDLER( hotchase_K051316_ctrl_0_w ) |
| 585 | 585 | { |
| 586 | if (ACCESSING_ | |
| 586 | if (ACCESSING_ | |
| 587 | 587 | } |
| 588 | 588 | |
| 589 | 589 | static WRITE16_HANDLER( hotchase_K051316_ctrl_1_w ) |
| 590 | 590 | { |
| 591 | if (ACCESSING_ | |
| 591 | if (ACCESSING_ | |
| 592 | 592 | } |
| 593 | 593 | |
| 594 | 594 | static WRITE16_HANDLER( hotchase_soundlatch_w ); |
| r2241 | r2242 | |
| 649 | 649 | /* 140001.b */ |
| 650 | 650 | WRITE16_HANDLER( wecleman_soundlatch_w ) |
| 651 | 651 | { |
| 652 | if (ACCESSING_ | |
| 652 | if (ACCESSING_ | |
| 653 | 653 | { |
| 654 | 654 | soundlatch_w(machine,0,data & 0xFF); |
| 655 | 655 | cpunum_set_input_line(machine, 2,0, HOLD_LINE); |
| r2241 | r2242 | |
| 717 | 717 | /* 140001.b */ |
| 718 | 718 | static WRITE16_HANDLER( hotchase_soundlatch_w ) |
| 719 | 719 | { |
| 720 | if (ACCESSING_ | |
| 720 | if (ACCESSING_ | |
| 721 | 721 | { |
| 722 | 722 | soundlatch_w(machine,0,data & 0xFF); |
| 723 | 723 | cpunum_set_input_line(machine, 2,M6809_IRQ_LINE, HOLD_LINE); |
| r2241 | r2242 | |
| 1133 | 1133 | MDRV_SCREEN_ADD("main", RASTER) |
| 1134 | 1134 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1135 | 1135 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 1136 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB | |
| 1136 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 1137 | 1137 | MDRV_SCREEN_SIZE(320 +16, 224 +16) |
| 1138 | 1138 | MDRV_SCREEN_VISIBLE_AREA(0 +8, 320-1 +8, 0 +8, 224-1 +8) |
| 1139 | 1139 |
| r2241 | r2242 | |
|---|---|---|
| 1641 | 1641 | |
| 1642 | 1642 | static WRITE32_HANDLER( status_leds_w ) |
| 1643 | 1643 | { |
| 1644 | if ( | |
| 1644 | if (ACCESSING_BITS_ | |
| 1645 | 1645 | status_leds = data; |
| 1646 | 1646 | } |
| 1647 | 1647 |
| r2241 | r2242 | |
|---|---|---|
| 77 | 77 | |
| 78 | 78 | static WRITE16_HANDLER( main_sound_w ) |
| 79 | 79 | { |
| 80 | if (ACCESSING_ | |
| 80 | if (ACCESSING_ | |
| 81 | 81 | timer_call_after_resynch(NULL, data & 0xff, delayed_sound_w); |
| 82 | 82 | } |
| 83 | 83 |
| r2241 | r2242 | |
|---|---|---|
| 97 | 97 | |
| 98 | 98 | static WRITE16_HANDLER( tetrisp2_systemregs_w ) |
| 99 | 99 | { |
| 100 | if (ACCESSING_ | |
| 100 | if (ACCESSING_ | |
| 101 | 101 | { |
| 102 | 102 | tetrisp2_systemregs[offset] = data; |
| 103 | 103 | } |
| r2241 | r2242 | |
| 107 | 107 | |
| 108 | 108 | static WRITE16_HANDLER( rockn_systemregs_w ) |
| 109 | 109 | { |
| 110 | if (ACCESSING_ | |
| 110 | if (ACCESSING_ | |
| 111 | 111 | { |
| 112 | 112 | tetrisp2_systemregs[offset] = data; |
| 113 | 113 | if (offset == 0x0c) |
| r2241 | r2242 | |
| 121 | 121 | |
| 122 | 122 | static WRITE16_HANDLER( rocknms_sub_systemregs_w ) |
| 123 | 123 | { |
| 124 | if (ACCESSING_ | |
| 124 | if (ACCESSING_ | |
| 125 | 125 | { |
| 126 | 126 | rocknms_sub_systemregs[offset] = data; |
| 127 | 127 | if (offset == 0x0c) |
| r2241 | r2242 | |
| 148 | 148 | |
| 149 | 149 | static WRITE16_HANDLER( tetrisp2_sound_w ) |
| 150 | 150 | { |
| 151 | if (ACCESSING_ | |
| 151 | if (ACCESSING_ | |
| 152 | 152 | { |
| 153 | 153 | if (offset) YMZ280B_data_0_w (machine, offset, data & 0xff); |
| 154 | 154 | else YMZ280B_register_0_w (machine, offset, data & 0xff); |
| r2241 | r2242 | |
| 300 | 300 | |
| 301 | 301 | static WRITE16_HANDLER( rocknms_main2sub_w ) |
| 302 | 302 | { |
| 303 | if (ACCESSING_ | |
| 303 | if (ACCESSING_ | |
| 304 | 304 | rocknms_main2sub = (data ^ 0xffff); |
| 305 | 305 | } |
| 306 | 306 | |
| r2241 | r2242 | |
| 311 | 311 | |
| 312 | 312 | static WRITE16_HANDLER( rocknms_sub2main_w ) |
| 313 | 313 | { |
| 314 | if (ACCESSING_ | |
| 314 | if (ACCESSING_ | |
| 315 | 315 | rocknms_sub2main = (data ^ 0xffff); |
| 316 | 316 | } |
| 317 | 317 |
| r2241 | r2242 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | static WRITE16_HANDLER( lastduel_sound_w ) |
| 41 | 41 | { |
| 42 | if (ACCESSING_ | |
| 42 | if (ACCESSING_ | |
| 43 | 43 | soundlatch_w(machine,0,data & 0xff); |
| 44 | 44 | } |
| 45 | 45 |
| r2241 | r2242 | |
|---|---|---|
| 257 | 257 | { |
| 258 | 258 | logerror("%04x: Alpha write trigger at %04x (%04x)\n",activecpu_get_pc(),offset,data); |
| 259 | 259 | /* 0x44 = coin clear signal to microcontroller? */ |
| 260 | if (offset==0x2d && ACCESSING_ | |
| 260 | if (offset==0x2d && ACCESSING_ | |
| 261 | 261 | alpha68k_flipscreen_w(data & 1); |
| 262 | 262 | } |
| 263 | 263 | |
| r2241 | r2242 | |
| 322 | 322 | |
| 323 | 323 | static WRITE16_HANDLER( kyros_sound_w ) |
| 324 | 324 | { |
| 325 | if(ACCESSING_ | |
| 325 | if(ACCESSING_ | |
| 326 | 326 | soundlatch_w(machine, 0, (data>>8)&0xff); |
| 327 | 327 | } |
| 328 | 328 | |
| 329 | 329 | static WRITE16_HANDLER( alpha68k_II_sound_w ) |
| 330 | 330 | { |
| 331 | if(ACCESSING_ | |
| 331 | if(ACCESSING_ | |
| 332 | 332 | soundlatch_w(machine, 0, data&0xff); |
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | static WRITE16_HANDLER( alpha68k_V_sound_w ) |
| 336 | 336 | { |
| 337 | 337 | /* Sound & fix bank select are in the same word */ |
| 338 | if(ACCESSING_ | |
| 338 | if(ACCESSING_ | |
| 339 | 339 | soundlatch_w(machine,0,data&0xff); |
| 340 | if(ACCESSING_ | |
| 340 | if(ACCESSING_ | |
| 341 | 341 | alpha68k_V_video_bank_w((data>>8)&0xff); |
| 342 | 342 | } |
| 343 | 343 | //AT |
| 344 | 344 | static WRITE16_HANDLER( paddlema_soundlatch_w ) |
| 345 | 345 | { |
| 346 | if (ACCESSING_ | |
| 346 | if (ACCESSING_ | |
| 347 | 347 | { |
| 348 | 348 | soundlatch_w(machine, 0, data); |
| 349 | cpunum_set_input_line( | |
| 349 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE); | |
| 350 | 350 | } |
| 351 | 351 | } |
| 352 | 352 | |
| 353 | 353 | static WRITE16_HANDLER( tnexspce_soundlatch_w ) |
| 354 | 354 | { |
| 355 | if (ACCESSING_ | |
| 355 | if (ACCESSING_ | |
| 356 | 356 | { |
| 357 | 357 | soundlatch_w(machine, 0, data); |
| 358 | cpunum_set_input_line( | |
| 358 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); | |
| 359 | 359 | } |
| 360 | 360 | } |
| 361 | 361 | //ZT |
| r2241 | r2242 | |
| 418 | 418 | { |
| 419 | 419 | if (microcontroller_id == 0x00ff) /* Super Stingry */ |
| 420 | 420 | { |
| 421 | if (trigstate >= 12 || !strcmp( | |
| 421 | if (trigstate >= 12 || !strcmp(machine->gamedrv->name, "jongbou")) /* arbitrary value ! */ | |
| 422 | 422 | { |
| 423 | 423 | trigstate = 0; |
| 424 | 424 | microcontroller_data = 0x21; // timer |
| r2241 | r2242 | |
| 477 | 477 | |
| 478 | 478 | if ((coin_id&0xff) == 0x22) |
| 479 | 479 | { |
| 480 | if(!strcmp( | |
| 480 | if(!strcmp(machine->gamedrv->name, "btlfildb")) | |
| 481 | 481 | coinvalue = (readinputportbytag("IN4")>>0) & 7; |
| 482 | 482 | else |
| 483 | 483 | coinvalue = (~readinputportbytag("IN4")>>0) & 7; |
| r2241 | r2242 | |
| 500 | 500 | |
| 501 | 501 | if ((coin_id>>8) == 0x22) |
| 502 | 502 | { |
| 503 | if(!strcmp( | |
| 503 | if(!strcmp(machine->gamedrv->name, "btlfildb")) | |
| 504 | 504 | coinvalue = (readinputportbytag("IN4")>>0) & 7; |
| 505 | 505 | else |
| 506 | 506 | coinvalue = (~readinputportbytag("IN4")>>0) & 7; |
| r2241 | r2242 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | static WRITE16_HANDLER( drgnmst_snd_command_w ) |
| 47 | 47 | { |
| 48 | if (ACCESSING_ | |
| 48 | if (ACCESSING_ | |
| 49 | 49 | drgnmst_snd_command = (data & 0xff); |
| 50 | 50 | cpu_yield(); |
| 51 | 51 | } |
| r2241 | r2242 | |
| 54 | 54 | static WRITE16_HANDLER( drgnmst_snd_flag_w ) |
| 55 | 55 | { |
| 56 | 56 | /* Enables the following 68K write operation to latch through to the PIC */ |
| 57 | if (ACCESSING_ | |
| 57 | if (ACCESSING_ | |
| 58 | 58 | drgnmst_snd_flag = 1; |
| 59 | 59 | } |
| 60 | 60 |
| r2241 | r2242 | |
|---|---|---|
| 46 | 46 | static int okibank; |
| 47 | 47 | static WRITE16_HANDLER( tmaster_oki_bank_w ) |
| 48 | 48 | { |
| 49 | if (ACCESSING_ | |
| 49 | if (ACCESSING_ | |
| 50 | 50 | { |
| 51 | 51 | // data & 0x0800? |
| 52 | 52 | okibank = ((data >> 8) & 3); |
| 53 | 53 | OKIM6295_set_bank_base(0, okibank * 0x40000); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | if (ACCESSING_ | |
| 56 | if (ACCESSING_ | |
| 57 | 57 | { |
| 58 | 58 | // data & 0x0002? |
| 59 | 59 | } |
| r2241 | r2242 | |
| 76 | 76 | |
| 77 | 77 | static WRITE16_HANDLER( tmaster_tscreen_reset_w ) |
| 78 | 78 | { |
| 79 | if (ACCESSING_ | |
| 79 | if (ACCESSING_ | |
| 80 | 80 | { |
| 81 | 81 | touchscreen = 0; |
| 82 | 82 | show_touchscreen(); |
| r2241 | r2242 | |
| 419 | 419 | if (data & ~0x0003) |
| 420 | 420 | logerror("CPU #0 PC: %06X - Unknown EEPROM bit written %04X\n",activecpu_get_pc(),data); |
| 421 | 421 | |
| 422 | if ( ACCESSING_ | |
| 422 | if ( ACCESSING_ | |
| 423 | 423 | { |
| 424 | 424 | // latch the bit |
| 425 | 425 | EEPROM_write_bit(data & 0x0001); |
| r2241 | r2242 | |
| 447 | 447 | |
| 448 | 448 | static WRITE16_HANDLER( galgames_palette_offset_w ) |
| 449 | 449 | { |
| 450 | if (ACCESSING_ | |
| 450 | if (ACCESSING_ | |
| 451 | 451 | { |
| 452 | 452 | palette_offset = data & 0xff; |
| 453 | 453 | palette_index = 0; |
| r2241 | r2242 | |
| 455 | 455 | } |
| 456 | 456 | static WRITE16_HANDLER( galgames_palette_data_w ) |
| 457 | 457 | { |
| 458 | if (ACCESSING_ | |
| 458 | if (ACCESSING_ | |
| 459 | 459 | { |
| 460 | 460 | palette_data[palette_index] = data & 0xff; |
| 461 | 461 | if (++palette_index == 3) |
| r2241 | r2242 | |
| 474 | 474 | } |
| 475 | 475 | static WRITE16_HANDLER( galgames_okiram_w ) |
| 476 | 476 | { |
| 477 | if (ACCESSING_ | |
| 477 | if (ACCESSING_ | |
| 478 | 478 | memory_region(REGION_SOUND1)[offset] = data & 0xff; |
| 479 | 479 | } |
| 480 | 480 | |
| r2241 | r2242 | |
| 486 | 486 | // cart selection (0 1 2 3 4 7) |
| 487 | 487 | |
| 488 | 488 | // 7 resets the eeprom |
| 489 | if (ACCESSING_ | |
| 489 | if (ACCESSING_ | |
| 490 | 490 | EEPROM_set_cs_line(((data&0xff) == 0x07) ? ASSERT_LINE : CLEAR_LINE); |
| 491 | 491 | } |
| 492 | 492 | |
| r2241 | r2242 | |
| 497 | 497 | |
| 498 | 498 | static WRITE16_HANDLER( galgames_cart_clock_w ) |
| 499 | 499 | { |
| 500 | if (ACCESSING_ | |
| 500 | if (ACCESSING_ | |
| 501 | 501 | { |
| 502 | 502 | // bit 3 = clock |
| 503 | 503 |
| r2241 | r2242 | |
|---|---|---|
| 542 | 542 | */ |
| 543 | 543 | static WRITE16_HANDLER( scudhamm_leds_w ) |
| 544 | 544 | { |
| 545 | if (ACCESSING_ | |
| 545 | if (ACCESSING_ | |
| 546 | 546 | { |
| 547 | 547 | set_led_status(0, data & 0x0100); // 3 buttons |
| 548 | 548 | set_led_status(1, data & 0x0200); |
| 549 | 549 | set_led_status(2, data & 0x0400); |
| 550 | 550 | } |
| 551 | 551 | |
| 552 | if (ACCESSING_ | |
| 552 | if (ACCESSING_ | |
| 553 | 553 | { |
| 554 | 554 | // set_led_status(3, data & 0x0010); // if we had more leds.. |
| 555 | 555 | // set_led_status(4, data & 0x0020); |
| r2241 | r2242 | |
| 568 | 568 | |
| 569 | 569 | static WRITE16_HANDLER( scudhamm_oki_bank_w ) |
| 570 | 570 | { |
| 571 | if (ACCESSING_ | |
| 571 | if (ACCESSING_ | |
| 572 | 572 | { |
| 573 | 573 | OKIM6295_set_bank_base(0, 0x40000 * ((data >> 0) & 0x3) ); |
| 574 | 574 | OKIM6295_set_bank_base(1, 0x40000 * ((data >> 4) & 0x3) ); |
| r2241 | r2242 | |
| 656 | 656 | */ |
| 657 | 657 | static WRITE16_HANDLER( armchmp2_leds_w ) |
| 658 | 658 | { |
| 659 | if (ACCESSING_ | |
| 659 | if (ACCESSING_ | |
| 660 | 660 | { |
| 661 | 661 | set_led_status(0, data & 0x0100); |
| 662 | 662 | set_led_status(1, data & 0x1000); |
| r2241 | r2242 | |
| 664 | 664 | set_led_status(3, data & 0x4000); |
| 665 | 665 | } |
| 666 | 666 | |
| 667 | if (ACCESSING_ | |
| 667 | if (ACCESSING_ | |
| 668 | 668 | { |
| 669 | 669 | coin_counter_w(0, data & 0x0040); |
| 670 | 670 | coin_counter_w(1, data & 0x0080); |
| r2241 | r2242 | |
| 832 | 832 | |
| 833 | 833 | static WRITE16_HANDLER( bigrun_soundbank_w ) |
| 834 | 834 | { |
| 835 | if (ACCESSING_ | |
| 835 | if (ACCESSING_ | |
| 836 | 836 | { |
| 837 | 837 | OKIM6295_set_bank_base(0, 0x40000 * ((data >> 0) & 1) ); |
| 838 | 838 | OKIM6295_set_bank_base(1, 0x40000 * ((data >> 4) & 1) ); |
| r2241 | r2242 | |
| 866 | 866 | |
| 867 | 867 | static WRITE16_HANDLER( cischeat_soundbank_0_w ) |
| 868 | 868 | { |
| 869 | if (ACCESSING_ | |
| 869 | if (ACCESSING_ | |
| 870 | 870 | } |
| 871 | 871 | static WRITE16_HANDLER( cischeat_soundbank_1_w ) |
| 872 | 872 | { |
| 873 | if (ACCESSING_ | |
| 873 | if (ACCESSING_ | |
| 874 | 874 | } |
| 875 | 875 | |
| 876 | 876 | static ADDRESS_MAP_START( cischeat_sound_readmem, ADDRESS_SPACE_PROGRAM, 16 ) |
| r2241 | r2242 | |
|---|---|---|
| 1170 | 1170 | { /* SUBCPU enable for Super System 22 */ |
| 1171 | 1171 | if (data) |
| 1172 | 1172 | { |
| 1173 | cpunum_set_input_line( | |
| 1173 | cpunum_set_input_line(machine, 3, INPUT_LINE_RESET, CLEAR_LINE); | |
| 1174 | 1174 | } |
| 1175 | 1175 | else |
| 1176 | 1176 | { |
| 1177 | cpunum_set_input_line( | |
| 1177 | cpunum_set_input_line(machine, 3,INPUT_LINE_RESET,ASSERT_LINE); /* M37710 MCU */ | |
| 1178 | 1178 | } |
| 1179 | 1179 | } |
| 1180 | 1180 | } |
| r2241 | r2242 | |
| 1196 | 1196 | { |
| 1197 | 1197 | if( newReg == 0 ) |
| 1198 | 1198 | { /* disable DSPs */ |
| 1199 | cpunum_set_input_line(Machine, 1,INPUT_LINE_RESET,ASSERT_LINE); /* master DSP */ | |
| 1200 | cpunum_set_input_line(Machine, 2,INPUT_LINE_RESET,ASSERT_LINE); /* slave DSP */ | |
| 1199 | cpunum_set_input_line(machine, 1,INPUT_LINE_RESET,ASSERT_LINE); /* master DSP */ | |
| 1200 | cpunum_set_input_line(machine, 2,INPUT_LINE_RESET,ASSERT_LINE); /* slave DSP */ | |
| 1201 | 1201 | mbEnableDspIrqs = 0; |
| 1202 | 1202 | } |
| 1203 | 1203 | else if( newReg==1 ) |
| 1204 | 1204 | { /*enable dsp and rendering subsystem */ |
| 1205 | cpunum_set_input_line( | |
| 1205 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, CLEAR_LINE); | |
| 1206 | 1206 | namcos22_enable_slave_simulation(); |
| 1207 | 1207 | mbEnableDspIrqs = 1; |
| 1208 | 1208 | } |
| 1209 | 1209 | else if( newReg==0xff ) |
| 1210 | 1210 | { /* used to upload game-specific code to master/slave dsps */ |
| 1211 | cpunum_set_input_line( | |
| 1211 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, CLEAR_LINE); | |
| 1212 | 1212 | mbEnableDspIrqs = 0; |
| 1213 | 1213 | } |
| 1214 | 1214 | } |
| r2241 | r2242 | |
| 1357 | 1357 | */ |
| 1358 | 1358 | if( offset==0 ) |
| 1359 | 1359 | { |
| 1360 | if( | |
| 1360 | if( !ACCESSING_BITS_16_31 | |
| 1361 | 1361 | { |
| 1362 | 1362 | if( mSpotRAM.portW>=SPOTRAM_SIZE ) |
| 1363 | 1363 | { |
| r2241 | r2242 | |
| 1589 | 1589 | // bit 1 = fan |
| 1590 | 1590 | // bit 2 = button light |
| 1591 | 1591 | |
| 1592 | if (!strcmp( | |
| 1592 | if (!strcmp(machine->gamedrv->name, "propcycl")) | |
| 1593 | 1593 | { |
| 1594 | 1594 | output_set_value("fan0", data & 1); |
| 1595 | 1595 | set_led_status(0, data & 2); |
| r2241 | r2242 | |
| 1630 | 1630 | int i; |
| 1631 | 1631 | for (i = 0; i < 16; i++) |
| 1632 | 1632 | { |
| 1633 | cpunum_set_input_line( | |
| 1633 | cpunum_set_input_line(machine, 3, M37710_LINE_TIMERA3TICK, PULSE_LINE); | |
| 1634 | 1634 | } |
| 1635 | 1635 | } |
| 1636 | 1636 |
| r0 | r2242 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | Galaxian/Moon Cresta hardware | |
| 4 | ||
| 5 | ||
| 6 | Main clock: XTAL = 18.432 MHz | |
| 7 | Z80 Clock: XTAL/6 = 3.072 MHz | |
| 8 | Horizontal video frequency: HSYNC = XTAL/3/192/2 = 16 kHz | |
| 9 | Video frequency: VSYNC = HSYNC/132/2 = 60.606060 Hz | |
| 10 | VBlank duration: 1/VSYNC * (20/132) = 2500 us | |
| 11 | ||
| 12 | ||
| 13 | Notes: | |
| 14 | ----- | |
| 15 | ||
| 16 | - The only code difference between 'galaxian' and 'galmidw' is that the | |
| 17 | 'BONUS SHIP' text is printed on a different line. | |
| 18 | ||
| 19 | ||
| 20 | TODO: | |
| 21 | ---- | |
| 22 | ||
| 23 | - Problems with Galaxian based on the observation of a real machine: | |
| 24 | ||
| 25 | - Starfield is incorrect. The speed and flashing frequency is fine, but the | |
| 26 | stars appear in different positions. | |
| 27 | - Background humming is incorrect. It's faster on a real machine | |
| 28 | - Explosion sound is much softer. Filter involved? | |
| 29 | ||
| 30 | - $4800-4bff in Streaking/Ghost Muncher | |
| 31 | ||
| 32 | ||
| 33 | ||
| 34 | Moon Cresta versions supported: | |
| 35 | ------------------------------ | |
| 36 | ||
| 37 | mooncrst Nichibutsu - later revision with better demo mode and | |
| 38 | text for docking. Encrypted. No ROM/RAM check | |
| 39 | mooncrsu Nichibutsu USA - later revision with better demo mode and | |
| 40 | text for docking. Unencrypted. No ROM/RAM check | |
| 41 | mooncrsa Nichibutsu - older revision with better demo mode and | |
| 42 | text for docking. Encrypted. No ROM/RAM check | |
| 43 | mooncrs2 Nichibutsu - probably first revision (no patches) and ROM/RAM check code. | |
| 44 | This came from a bootleg board, with the logos erased | |
| 45 | from the graphics | |
| 46 | mooncrsg Gremlin - same docking text as mooncrst | |
| 47 | mooncrsb bootleg of mooncrs2. ROM/RAM check erased. | |
| 48 | ||
| 49 | ||
| 50 | Stephh's additional notes (based on the games Z80 code and some tests) for "Moon Cresta" and its numerous clones : | |
| 51 | ||
| 52 | a) 'mooncrst' | |
| 53 | ||
| 54 | - made by Nichibutsu | |
| 55 | - inputs : | |
| 56 | * player 1 controls are used by player 1 | |
| 57 | * player 2 controls are used by player 2, even in an "upright" cabinet | |
| 58 | - 2 coins slots with different settings : | |
| 59 | * coin A : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 60 | * coin B : 1C_1C / 1C_2C / 1C_3C / "Free Play" | |
| 61 | - no writes to 0xa003, so no coin counters | |
| 62 | - bonus life at 30000 or 50000 based on a Dip Switch | |
| 63 | - possible partial Japanese text based on a Dip Switch | |
| 64 | - hi-score : 11 chars (even if only 10 will be displayed), 60 seconds to enter | |
| 65 | - players bullet speed : 4 pixels - lower limit : 0x04 | |
| 66 | - ingame bug : if you reset the game when screen is flipped, it isn't flipped back | |
| 67 | - driver possible bug (which occurs for all "Moon Cresta" sets but 'mooncrgx') : | |
| 68 | when the screen is flipped, sprites are too shifted (see for example player 2 | |
| 69 | score which misses ending '0') while bullets shall be good | |
| 70 | as a consequence, square around letters is wrong when entering player name | |
| 71 | for hi-score table when screen is flipped | |
| 72 | ||
| 73 | b) 'mooncrsu' | |
| 74 | ||
| 75 | - made by Nichibutsu | |
| 76 | - very similar to 'mooncrst' with the only following differences : | |
| 77 | * additional "USA" display after "Nichibutsu" (which is shifted left) | |
| 78 | * writes to 0xb000 to 0xb0ff on reset ('mooncrst' only writes to 0xb000), | |
| 79 | so there is no screen flipped ingame bug as in 'mooncrst' | |
| 80 | ||
| 81 | c) 'mooncrsa' | |
| 82 | ||
| 83 | - made by Nichibutsu | |
| 84 | - additional "(c)" display before "Nichibutsu" | |
| 85 | - "(c) 1980 NIHON BUSSAN CO. , LTD" display replaced with "May 1980" in yellow | |
| 86 | - code at 0x1f00 has been removed ! I can't determine was is was supposed to do, | |
| 87 | but it's based on number of enemies left (stored at 0x823c) and possible time | |
| 88 | spent on the level (stored at 0x8226). Any hint is fully welcome ! | |
| 89 | - this version is easier than 'mooncrst' : look at high nibbles that are stored | |
| 90 | at 0x809b and 0x809c via code at 0x0cb8 (0x01 and 0x02 instead of 0x11 and 0x12). | |
| 91 | - 2 coins slots, but same settings : 1C_1C / 1C_2C / 1C_3C / "Free Play" | |
| 92 | - same other infos as in 'mooncrst' | |
| 93 | - same ingame bug as in 'mooncrst' | |
| 94 | ||
| 95 | d) 'mooncrs2' | |
| 96 | ||
| 97 | - bootleg (possibily based on a Gremlin version we don't have) | |
| 98 | - heavily based on 'mooncrsa' with additional RAM/ROM check routine at 0x3ea1 | |
| 99 | - some "chars" have been erased from the GFX ROMS but some routines which | |
| 100 | "prints" them are still there (but there are less than in 'mooncrsa') | |
| 101 | - same other infos as in 'mooncrst' | |
| 102 | - due to numerous writes in the RAM/ROM check routine, there is no screen flipped | |
| 103 | ingame bug as in 'mooncrst' | |
| 104 | ||
| 105 | e) 'mooncrsb' | |
| 106 | ||
| 107 | - bootleg (possibily based on a Gremlin version we don't have) | |
| 108 | - the only difference with 'mooncrs2' is that RAM/ROM check routine at 0x3ea1 | |
| 109 | has completely been "noped" and the jump at address 0x0004 has been changed | |
| 110 | - all "chars" from the GFX ROMS haven't been erased, so you can see the top | |
| 111 | of the "Gremlin" logo as copyright and hi-scores names | |
| 112 | - same ingame bug as in 'mooncrst' | |
| 113 | ||
| 114 | f) 'mooncrs3' | |
| 115 | ||
| 116 | - bootleg | |
| 117 | - very similar to 'mooncrs2' with the only following differences : | |
| 118 | * checksum of ROM area 0x0000-0x3fff is computed, but the result is discarded | |
| 119 | (see "xor a" operation at 0x3fc0 instead of "and a") | |
| 120 | * coins stuff is different (see below) | |
| 121 | - 2 coins slots with different settings (same as 'mooncrst') : | |
| 122 | * coin A : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 123 | * coin B : 1C_1C / 1C_2C / 1C_3C / "Free Play" | |
| 124 | - there are writes to 0xa003 (check code at 0x1b8e and 0x1b9e) which occur | |
| 125 | when you insert a coin, but I can't confirm it's related to coin counters | |
| 126 | as the same value is written when you press COIN1 or COIN2 | |
| 127 | ||
| 128 | g) 'mooncrsg' | |
| 129 | ||
| 130 | - made by Gremlin | |
| 131 | - there are MANY changes and additions, and I wonder if there's such a Nichibutsu set; | |
| 132 | anyway, closest set to this one seems to be 'mooncrst' | |
| 133 | - Gremin "logo" on 2 lines instead of Nichibutsu copyright messages (2 lines) | |
| 134 | - additional test for IN0 bit 7 (code at 0x0174) which always adds 1 credit | |
| 135 | - there are writes to 0xa003 (check code at 0x0158 and 0x0160) which occur | |
| 136 | when you insert a coin, but I can't confirm it's related to coin counters | |
| 137 | as the same value is written when you press COIN1 or COIN2 | |
| 138 | - only English text (Dip Switch has no effect due to code at 0x2f77) | |
| 139 | - hi-score : 3 chars, 10 seconds to enter | |
| 140 | - same difficulty as in 'monncrst' (but stored at 0x809e and 0x809f) | |
| 141 | - same other infos as in 'mooncrst' | |
| 142 | - same ingame bug as in 'mooncrst' | |
| 143 | ||
| 144 | h) 'fantazia' | |
| 145 | ||
| 146 | - made by Subelectro | |
| 147 | - closest set to this one seems to be 'mooncrsb' | |
| 148 | - all intro texts have been changed as well as colors | |
| 149 | - inputs : | |
| 150 | * player 1 controls are used by player 1 | |
| 151 | * player 2 controls are used by player 2, only in a "cocktail" cabinet | |
| 152 | look at additional routine at 0x29e0 | |
| 153 | - 2 coins slots with different settings (inverted coin A/B compared to 'mooncrst') : | |
| 154 | * coin A : 1C_1C / 1C_2C / 1C_3C / "Free Play" | |
| 155 | * coin B : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 156 | - only English text (Dip Switch has no effect due to code at 0x2f53) | |
| 157 | - hi-score : 3 chars, 60 seconds to enter | |
| 158 | - same other infos as in 'mooncrst' | |
| 159 | - same ingame bug as in 'mooncrst' | |
| 160 | ||
| 161 | i) 'eagle' | |
| 162 | ||
| 163 | - made by Centuri | |
| 164 | - very similar to 'mooncrsb' with the only following differences : | |
| 165 | * only 3 chars for hi-score instead of 11 | |
| 166 | * all other changes are modified "strings" to be displayed | |
| 167 | (the intro texts but copyright remains though) as well as | |
| 168 | new GFX (I can't test the sound for now to check) | |
| 169 | - same ingame bug as in 'mooncrst' | |
| 170 | ||
| 171 | j) 'eagle2' | |
| 172 | ||
| 173 | - made by Centuri | |
| 174 | - very similar to 'eagle' with the only following differences : | |
| 175 | * only 20 seconds to enter hi-score instead of 60 | |
| 176 | * coins stuff is different (see below) | |
| 177 | * one GFX ROM is slighlty different | |
| 178 | - 2 coins slots, but same settings : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 179 | - previous "Coin B" Dip Switch is now only tested to see if in "Freeplay" mode | |
| 180 | - same ingame bug as in 'mooncrst' | |
| 181 | ||
| 182 | k) 'eagle3' | |
| 183 | ||
| 184 | - made by Centuri | |
| 185 | - PRG ROMS are the same as for 'eagle' while two GFX ROMS are slighly different | |
| 186 | (so the game is having 'mooncrst' ships and 'eagle' enemies) | |
| 187 | - same ingame bug as in 'mooncrst' | |
| 188 | ||
| 189 | l) 'spctbird' | |
| 190 | ||
| 191 | - made by Fortrek | |
| 192 | - very similar to 'mooncrsb' with the only following difference : | |
| 193 | * coins stuff is different (same as in 'eagle2' - see below) | |
| 194 | - 2 coins slots, but same settings : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 195 | - previous "Coin B" Dip Switch is now only tested to see if in "Freeplay" mode | |
| 196 | - same ingame bug as in 'mooncrst' | |
| 197 | ||
| 198 | m) 'smooncrs' | |
| 199 | ||
| 200 | - made par Gremlin (bootleg based on a Nichibutsu version we don't have ?) | |
| 201 | - same RAM/ROM check routine as in 'mooncrs2' (so there is no screen flipped | |
| 202 | ingame bug as in 'mooncrst'), but LOTS of new features ! | |
| 203 | - only top of the Gremlin logo is displayed and it is also used for hi-scores | |
| 204 | - all intro texts have been changed | |
| 205 | - "2'ST" instead of "2'ND" and "RECORD" instead of "HI-SCORE" | |
| 206 | - additional "PLAYER 1/2" messages when player changes | |
| 207 | - inputs : player 1 controls are used by players 1 and 2, even in a "cocktail" | |
| 208 | cabinet (player 2 inputs are never read due to code at 0x2b1c and 0x3313) | |
| 209 | - 2 coins slots with different settings : | |
| 210 | * coin A : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 211 | * coin B : 1C_1C / 1C_2C / 1C_3C / "Free Play" | |
| 212 | additional wrong (Spanish) text displayed when "Coin B" set to 1C_1C | |
| 213 | (check additional code at 0x0fae) : | |
| 214 | * if "Coin A" set to 4C_1C, "1 MONEDA 1 PARTIDA" on one line | |
| 215 | * if "Coin A" set to 2C_1C, "1 MONEDA 1 PARTIDA" on one line | |
| 216 | and "2 MONEDAS 3 PARTIDAS" on another line below | |
| 217 | when "Coin B" set to "Free Play", "CREDIT 04" instead of "FREE PLAY" string | |
| 218 | (even if this number of credits is decremented when you press a START button, | |
| 219 | it is put back to 04 when the game is over for all players) | |
| 220 | - additional "POR" display after the number of credits | |
| 221 | - bonus life always 50000 due to code at 0x2f68 | |
| 222 | - only English text due to code at 0x2f53 | |
| 223 | - hi-score : 3 chars, 60 seconds to enter | |
| 224 | - players bullet speed : 9 or 12 pixels (using previous "Language" Dip Switch) - | |
| 225 | lower limit : 0x0f (see additional routine at 0x0007 and call from 0x3407) | |
| 226 | - game difficulty using previous "Bonus Life" Dip Switch (code at 0x2962) | |
| 227 | however, even with "Easy" difficulty, the game is much harder as in 'mooncrs2' | |
| 228 | as enemies as enemies move much faster and as they shoot on some levels | |
| 229 | - docking stage is harder has there are gaps of 2 pixels instead of 1 | |
| 230 | - when you complete the 8 stages, "O.K." "FANTASTIC" messages on 2 lines | |
| 231 | instead of "FAR OUT !" message on 1 line | |
| 232 | - same ingame bug as in 'mooncrst' | |
| 233 | - another ingame bug : when in "cocktail mode", "PLAYER 1/2" messages are | |
| 234 | displayed BEFORE the screen is flipped (back) | |
| 235 | - driver other bugs : | |
| 236 | * when screen is flipped, player's bullets aren't displayed | |
| 237 | * when screen is flipped, enemies' bullets aren't flipped | |
| 238 | ||
| 239 | n) 'spcdrag' | |
| 240 | ||
| 241 | - bootleg | |
| 242 | - heavily based on 'smooncrs' (so there's a RAM/ROM check) but some differences though | |
| 243 | - same intro texts as in 'mooncrs2' | |
| 244 | - 2 coins slots with different settings : | |
| 245 | * coin A : 1C_1C / 2C_1C / 3C_1C / 4C_1C | |
| 246 | * coin B : 1C_2C / 1C_3C / 1C_4C / "Free Play" | |
| 247 | additional wrong (Engrish) text displayed when "Coin B" set to 1C_2C | |
| 248 | (check additional code at 0x0fae) : | |
| 249 | * if "Coin A" set to 4C_1C, "1 COIN 1 PLAY " on one line | |
| 250 | * if "Coin A" set to 2C_1C, "1 COIN 1 PLAY " on one line | |
| 251 | and "2 COINS 3 PLAYES " (notice the spelling) on another line below | |
| 252 | when "Coin B" set to "Free Play", "CREDIT 04" instead of "FREE PLAY" string | |
| 253 | (even if this number of credits is decremented when you press a START button, | |
| 254 | it is put back to 04 when the game is over for all players) | |
| 255 | - "CAP 2" display instead of "POR" after the number of credits | |
| 256 | - hi-score : 11 chars (even if only 10 will be displayed), 60 seconds to enter | |
| 257 | (same as in 'mooncrs2') | |
| 258 | - players bullet speed : 6 or 9 pixels (using previous "Language" Dip Switch) - | |
| 259 | lower limit : 0x04 (instead of speed 9/12 and lower limit 0x0f) | |
| 260 | - even if there's also the "Difficulty" Dip Switch, the game is a little bit easier | |
| 261 | (enemies speed is slower and docking stage is back to 1 pixel to fit 'mooncrs2') | |
| 262 | - when you complete the 8 stages, same "FAR OUT !" message as in 'mooncrs2' | |
| 263 | - driver bug : even if player's bullets are displayed when screen is flipped as in | |
| 264 | other sets, enemies' bullets are still not flipped as in 'smooncrs' | |
| 265 | ||
| 266 | o) 'spcdraga' | |
| 267 | ||
| 268 | - bootleg ? (there's a Nichibutsu logo which is displayed in the "title" screen | |
| 269 | as well as in the hi-scores) | |
| 270 | - very similar to 'spcdrag' with the only following (comestical) differences : | |
| 271 | * unused routine at 0x37a8 has been "noped" | |
| 272 | * no text after the number of credits | |
| 273 | * all texts have been translated to Spanish | |
| 274 | ||
| 275 | p) 'mooncrgx' | |
| 276 | ||
| 277 | - bootleg on "Galaxian" hardware | |
| 278 | - very similar to 'mooncrsb' with the only following differences : | |
| 279 | * all unused routines have been "noped" | |
| 280 | * settings are different (see below) | |
| 281 | - 2 coins slots with different settings : | |
| 282 | * coin A : 1C_1C / 2C_1C | |
| 283 | * coin B : 1C_3C / 1C_5C | |
| 284 | - there are writes to 0x6003 when you press COIN1 but not when you press COIN2 | |
| 285 | - there are also writes to (unmapped) 0x6804 when you press either COIN1 or COIN2 : | |
| 286 | * when you press COIN1, 0x00 is written once | |
| 287 | * when you press COIN2, 0x01 is written 5 times, then 0x00 is written once | |
| 288 | - only English text (Dip Switch has no effect due to code at 0x2f4b) | |
| 289 | - no ingame bug due to code at 0x2f77 | |
| 290 | - driver possible bug : while sprites are now correct when screen is flipped, | |
| 291 | they are too shifted when screen is not flipped (again, see for example player 2 | |
| 292 | score which misses ending '0') while bullets shall be good | |
| 293 | as a consequence, square around letters is wrong when entering player name | |
| 294 | for hi-score table when screen not is flipped | |
| 295 | ||
| 296 | ||
| 297 | Notes about 'azurian' : | |
| 298 | ----------------------- | |
| 299 | ||
| 300 | bit 6 of IN1 is linked with bit 2 of IN2 (check code at 0x05b3) to set difficulty : | |
| 301 | ||
| 302 | bit 6 bit 2 contents of | |
| 303 | IN1 IN2 0x40f4 consequences difficulty | |
| 304 | ||
| 305 | OFF OFF 2 aliens move 2 frames out of 3 easy | |
| 306 | ON OFF 4 aliens move 4 frames out of 5 hard | |
| 307 | OFF ON 3 aliens move 3 frames out of 4 normal | |
| 308 | ON ON 5 aliens move 5 frames out of 6 very hard | |
| 309 | ||
| 310 | aliens movements is handled by routine at 0x1d59 : | |
| 311 | ||
| 312 | - alien 1 moves when 0x4044 != 0 else contents of 0x40f4 is stored at 0x4044 | |
| 313 | - alien 2 moves when 0x4054 != 0 else contents of 0x40f4 is stored at 0x4054 | |
| 314 | - alien 3 moves when 0x4064 != 0 else contents of 0x40f4 is stored at 0x4064 | |
| 315 | ||
| 316 | ||
| 317 | Notes about 'scorpnmc' : | |
| 318 | ----------------------- | |
| 319 | ||
| 320 | As the START buttons are also the buttons for player 1, how should I map them ? | |
| 321 | I've coded this the same way as in 'checkman', but I'm not sure this is correct. | |
| 322 | ||
| 323 | I can't tell if it's a bug, but if you reset the game when the screen is flipped, | |
| 324 | the screens remains flipped (the "flip screen" routine doesn't seem to be called) ! | |
| 325 | ||
| 326 | ||
| 327 | ||
| 328 | Notes about 'frogg' : | |
| 329 | --------------------- | |
| 330 | ||
| 331 | If bit 5 of IN0 or bit 5 of IN1 is HIGH, something strange occurs (check code | |
| 332 | at 0x3580) : each time you press START2 a counter at 0x47da is incremented. | |
| 333 | When this counter reaches 0x2f, each next time you press START2, it acts as if | |
| 334 | you had pressed COIN2, so credits are added ! | |
| 335 | Bit 5 of IN0 is tested if "Cabinet" Dip Switch is set to "Upright" and | |
| 336 | bit 5 of IN1 is tested if "Cabinet" Dip Switch is set to "Cocktail". | |
| 337 | ||
| 338 | ||
| 339 | ||
| 340 | TO DO : | |
| 341 | ------- | |
| 342 | ||
| 343 | - smooncrs : fix read/writes at/to unmapped memory (when player 2, "cocktail" mode) | |
| 344 | fix the ?#! bug with "bullets" (when player 2, "cocktail" mode) | |
| 345 | - frogg : fix read/writes at/to unmapped/wrong memory | |
| 346 | - scprpng : fix read/writes at/to unmapped/wrong memory | |
| 347 | ||
| 348 | ***************************************************************************/ | |
| 349 | ||
| 350 | #include "driver.h" | |
| 351 | #include "deprecat.h" | |
| 352 | #include "cpu/z80/z80.h" | |
| 353 | #include "cpu/s2650/s2650.h" | |
| 354 | #include "galaxold.h" | |
| 355 | #include "sound/ay8910.h" | |
| 356 | #include "sound/sn76496.h" | |
| 357 | #include "sound/dac.h" | |
| 358 | #include "sound/flt_rc.h" | |
| 359 | #include "includes/cclimber.h" | |
| 360 | ||
| 361 | ||
| 362 | /************************************* | |
| 363 | * | |
| 364 | * Constants | |
| 365 | * | |
| 366 | *************************************/ | |
| 367 | ||
| 368 | #define MASTER_CLOCK (18432000) | |
| 369 | ||
| 370 | #define PIXEL_CLOCK (MASTER_CLOCK/3) | |
| 371 | ||
| 372 | /* H counts from 128->511, HBLANK starts at 128 and ends at 256 */ | |
| 373 | #define HTOTAL (384) | |
| 374 | #define HBEND (0) /*(256)*/ | |
| 375 | #define HBSTART (256) /*(128)*/ | |
| 376 | ||
| 377 | #define VTOTAL (264) | |
| 378 | #define VBEND (16) | |
| 379 | #define VBSTART (224+16) | |
| 380 | ||
| 381 | ||
| 382 | ||
| 383 | /* Send sound data to the sound cpu and cause an nmi */ | |
| 384 | static READ8_HANDLER( drivfrcg_port0_r ) | |
| 385 | { | |
| 386 | switch (activecpu_get_pc()) | |
| 387 | { | |
| 388 | case 0x002e: | |
| 389 | case 0x0297: | |
| 390 | return 0x01; | |
| 391 | } | |
| 392 | ||
| 393 | return 0; | |
| 394 | } | |
| 395 | ||
| 396 | ||
| 397 | static ADDRESS_MAP_START( galaxold_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 398 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 399 | AM_RANGE(0x4000, 0x47ff) AM_READ(SMH_RAM) | |
| 400 | AM_RANGE(0x5000, 0x53ff) AM_READ(SMH_RAM) | |
| 401 | AM_RANGE(0x5400, 0x57ff) AM_READ(galaxold_videoram_r) | |
| 402 | AM_RANGE(0x5800, 0x58ff) AM_READ(SMH_RAM) | |
| 403 | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_0_r) | |
| 404 | AM_RANGE(0x6800, 0x6800) AM_READ(input_port_1_r) | |
| 405 | AM_RANGE(0x7000, 0x7000) AM_READ(input_port_2_r) | |
| 406 | AM_RANGE(0x7800, 0x7fff) AM_READ(watchdog_reset_r) | |
| 407 | AM_RANGE(0xfffc, 0xffff) AM_READ(SMH_RAM) | |
| 408 | ADDRESS_MAP_END | |
| 409 | ||
| 410 | static ADDRESS_MAP_START( galaxold_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 411 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 412 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 413 | AM_RANGE(0x5000, 0x53ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 414 | AM_RANGE(0x5800, 0x583f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 415 | AM_RANGE(0x5840, 0x585f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 416 | AM_RANGE(0x5860, 0x587f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 417 | AM_RANGE(0x5880, 0x58ff) AM_WRITE(SMH_RAM) | |
| 418 | AM_RANGE(0x6000, 0x6001) AM_WRITE(galaxold_leds_w) | |
| 419 | AM_RANGE(0x6002, 0x6002) AM_WRITE(galaxold_coin_lockout_w) | |
| 420 | AM_RANGE(0x6003, 0x6003) AM_WRITE(galaxold_coin_counter_w) | |
| 421 | AM_RANGE(0x6004, 0x6007) AM_WRITE(galaxian_lfo_freq_w) | |
| 422 | AM_RANGE(0x6800, 0x6802) AM_WRITE(galaxian_background_enable_w) | |
| 423 | AM_RANGE(0x6803, 0x6803) AM_WRITE(galaxian_noise_enable_w) | |
| 424 | AM_RANGE(0x6805, 0x6805) AM_WRITE(galaxian_shoot_enable_w) | |
| 425 | AM_RANGE(0x6806, 0x6807) AM_WRITE(galaxian_vol_w) | |
| 426 | AM_RANGE(0x7001, 0x7001) AM_WRITE(galaxold_nmi_enable_w) | |
| 427 | AM_RANGE(0x7004, 0x7004) AM_WRITE(galaxold_stars_enable_w) | |
| 428 | AM_RANGE(0x7006, 0x7006) AM_WRITE(galaxold_flip_screen_x_w) | |
| 429 | AM_RANGE(0x7007, 0x7007) AM_WRITE(galaxold_flip_screen_y_w) | |
| 430 | AM_RANGE(0x7800, 0x7800) AM_WRITE(galaxian_pitch_w) | |
| 431 | AM_RANGE(0xfffc, 0xffff) AM_WRITE(SMH_RAM) | |
| 432 | ADDRESS_MAP_END | |
| 433 | ||
| 434 | ||
| 435 | static ADDRESS_MAP_START( mooncrst_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 436 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 437 | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) | |
| 438 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) | |
| 439 | AM_RANGE(0x9400, 0x97ff) AM_READ(galaxold_videoram_r) | |
| 440 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 441 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 442 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 443 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 444 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) | |
| 445 | ADDRESS_MAP_END | |
| 446 | ||
| 447 | static ADDRESS_MAP_START( mooncrst_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 448 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 449 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) | |
| 450 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 451 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 452 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 453 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 454 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 455 | AM_RANGE(0xa003, 0xa003) AM_WRITE(galaxold_coin_counter_w) | |
| 456 | AM_RANGE(0xa004, 0xa007) AM_WRITE(galaxian_lfo_freq_w) | |
| 457 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_background_enable_w) | |
| 458 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 459 | AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 460 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 461 | AM_RANGE(0xb000, 0xb000) AM_WRITE(galaxold_nmi_enable_w) | |
| 462 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxold_stars_enable_w) | |
| 463 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxold_flip_screen_x_w) | |
| 464 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxold_flip_screen_y_w) | |
| 465 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 466 | ADDRESS_MAP_END | |
| 467 | ||
| 468 | static ADDRESS_MAP_START( rockclim_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 469 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 470 | AM_RANGE(0x4000, 0x47ff) AM_READ(rockclim_videoram_r) | |
| 471 | AM_RANGE(0x5000, 0x53ff) AM_READ(SMH_RAM) | |
| 472 | AM_RANGE(0x6000, 0x7fff) AM_READ(SMH_ROM) | |
| 473 | AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM) | |
| 474 | AM_RANGE(0x8800, 0x8800) AM_READ(input_port_3_r) | |
| 475 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) | |
| 476 | AM_RANGE(0x9400, 0x97ff) AM_READ(galaxold_videoram_r) | |
| 477 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 478 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 479 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 480 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 481 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) | |
| 482 | ADDRESS_MAP_END | |
| 483 | ||
| 484 | static ADDRESS_MAP_START( rockclim_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 485 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 486 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(rockclim_videoram_w) AM_BASE(&rockclim_videoram)//4800 - 4803 = bg scroll ? | |
| 487 | AM_RANGE(0x4800, 0x4803) AM_WRITE(rockclim_scroll_w) | |
| 488 | AM_RANGE(0x5000, 0x53ff) AM_WRITE(SMH_RAM)//? | |
| 489 | AM_RANGE(0x6000, 0x7fff) AM_WRITE(SMH_ROM) | |
| 490 | AM_RANGE(0x8000, 0x87ff) AM_WRITE(SMH_RAM) | |
| 491 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 492 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 493 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 494 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 495 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 496 | AM_RANGE(0xa000, 0xa002) AM_WRITE(galaxold_gfxbank_w)// a002 - sprite bank | |
| 497 | AM_RANGE(0xa003, 0xa003) AM_WRITE(galaxold_coin_counter_w) | |
| 498 | AM_RANGE(0xa004, 0xa007) AM_WRITE(galaxian_lfo_freq_w) | |
| 499 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_background_enable_w) | |
| 500 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 501 | AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 502 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 503 | AM_RANGE(0xb000, 0xb000) AM_WRITE(galaxold_nmi_enable_w) | |
| 504 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxold_flip_screen_x_w) | |
| 505 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxold_flip_screen_y_w) | |
| 506 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 507 | ADDRESS_MAP_END | |
| 508 | ||
| 509 | ||
| 510 | static ADDRESS_MAP_START( scramblb_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 511 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 512 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) | |
| 513 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) | |
| 514 | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_0_r) | |
| 515 | AM_RANGE(0x6800, 0x6800) AM_READ(input_port_1_r) | |
| 516 | AM_RANGE(0x7000, 0x7000) AM_READ(input_port_2_r) | |
| 517 | AM_RANGE(0x7800, 0x7800) AM_READ(watchdog_reset_r) | |
| 518 | AM_RANGE(0x8102, 0x8102) AM_READ(scramblb_protection_1_r) | |
| 519 | AM_RANGE(0x8202, 0x8202) AM_READ(scramblb_protection_2_r) | |
| 520 | ADDRESS_MAP_END | |
| 521 | ||
| 522 | static ADDRESS_MAP_START( scramblb_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 523 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 524 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 525 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 526 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 527 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 528 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 529 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) | |
| 530 | AM_RANGE(0x6000, 0x6001) AM_WRITE(SMH_NOP) /* sound triggers */ | |
| 531 | AM_RANGE(0x6003, 0x6003) AM_WRITE(galaxold_coin_counter_w) | |
| 532 | AM_RANGE(0x6004, 0x6007) AM_WRITE(galaxian_lfo_freq_w) | |
| 533 | AM_RANGE(0x6800, 0x6802) AM_WRITE(galaxian_background_enable_w) | |
| 534 | AM_RANGE(0x6803, 0x6803) AM_WRITE(galaxian_noise_enable_w) | |
| 535 | AM_RANGE(0x6805, 0x6805) AM_WRITE(galaxian_shoot_enable_w) | |
| 536 | AM_RANGE(0x6806, 0x6807) AM_WRITE(galaxian_vol_w) | |
| 537 | AM_RANGE(0x7001, 0x7001) AM_WRITE(galaxold_nmi_enable_w) | |
| 538 | AM_RANGE(0x7002, 0x7002) AM_WRITE(galaxold_coin_counter_w) | |
| 539 | AM_RANGE(0x7003, 0x7003) AM_WRITE(scrambold_background_enable_w) | |
| 540 | AM_RANGE(0x7004, 0x7004) AM_WRITE(galaxold_stars_enable_w) | |
| 541 | AM_RANGE(0x7006, 0x7006) AM_WRITE(galaxold_flip_screen_x_w) | |
| 542 | AM_RANGE(0x7007, 0x7007) AM_WRITE(galaxold_flip_screen_y_w) | |
| 543 | AM_RANGE(0x7800, 0x7800) AM_WRITE(galaxian_pitch_w) | |
| 544 | ADDRESS_MAP_END | |
| 545 | ||
| 546 | ||
| 547 | ||
| 548 | static READ8_HANDLER( scramb2_protection_r ) { return 0x25; } | |
| 549 | static READ8_HANDLER( scramb2_port0_r ) { return (readinputport(0)>>offset)&0x1; } | |
| 550 | static READ8_HANDLER( scramb2_port1_r ) { return (readinputport(1)>>offset)&0x1; } | |
| 551 | static READ8_HANDLER( scramb2_port2_r ) { return (readinputport(2)>>offset)&0x1; } | |
| 552 | ||
| 553 | static ADDRESS_MAP_START( scramb2_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 554 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 555 | AM_RANGE(0x4000, 0x4bff) AM_READ(SMH_RAM) | |
| 556 | AM_RANGE(0x5000, 0x50ff) AM_READ(SMH_RAM) | |
| 557 | AM_RANGE(0x5800, 0x5fff) AM_READ(scramb2_protection_r) // must return 0x25 | |
| 558 | AM_RANGE(0x6000, 0x6007) AM_READ(scramb2_port0_r) // reads from 8 addresses, 1 bit per address | |
| 559 | AM_RANGE(0x6800, 0x6807) AM_READ(scramb2_port1_r) // reads from 8 addresses, 1 bit per address | |
| 560 | AM_RANGE(0x7000, 0x7007) AM_READ(watchdog_reset_r) | |
| 561 | AM_RANGE(0x7800, 0x7807) AM_READ(scramb2_port2_r) // reads from 8 addresses, 1 bit per address | |
| 562 | ADDRESS_MAP_END | |
| 563 | ||
| 564 | static ADDRESS_MAP_START( scramb2_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 565 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 566 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 567 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 568 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxold_videoram_w) // mirror | |
| 569 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 570 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 571 | AM_RANGE(0x5060, 0x507f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 572 | AM_RANGE(0x5080, 0x50ff) AM_WRITE(SMH_RAM) | |
| 573 | AM_RANGE(0x6801, 0x6801) AM_WRITE(galaxold_nmi_enable_w) | |
| 574 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxold_coin_counter_w) | |
| 575 | AM_RANGE(0x6804, 0x6804) AM_WRITE(galaxold_stars_enable_w) | |
| 576 | AM_RANGE(0x6806, 0x6806) AM_WRITE(galaxold_flip_screen_x_w) | |
| 577 | AM_RANGE(0x6807, 0x6807) AM_WRITE(galaxold_flip_screen_y_w) | |
| 578 | AM_RANGE(0x7006, 0x7006) AM_WRITE(SMH_NOP) | |
| 579 | AM_RANGE(0x7007, 0x7007) AM_WRITE(SMH_NOP) | |
| 580 | AM_RANGE(0x7800, 0x7800) AM_WRITE(galaxian_pitch_w) | |
| 581 | ADDRESS_MAP_END | |
| 582 | ||
| 583 | ||
| 584 | ||
| 585 | static ADDRESS_MAP_START( _4in1_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 586 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_BANK1) /* banked game code */ | |
| 587 | AM_RANGE(0x4000, 0x47ff) AM_READ(SMH_RAM) | |
| 588 | AM_RANGE(0x5000, 0x53ff) AM_READ(SMH_RAM) | |
| 589 | AM_RANGE(0x5400, 0x57ff) AM_READ(galaxold_videoram_r) | |
| 590 | AM_RANGE(0x5800, 0x58ff) AM_READ(SMH_RAM) | |
| 591 | AM_RANGE(0x6000, 0x6000) AM_READ(input_port_0_r) | |
| 592 | AM_RANGE(0x6800, 0x6800) AM_READ(_4in1_input_port_1_r) | |
| 593 | AM_RANGE(0x7000, 0x7000) AM_READ(_4in1_input_port_2_r) | |
| 594 | AM_RANGE(0x7800, 0x78ff) AM_READ(watchdog_reset_r) | |
| 595 | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_ROM) /* fixed menu code */ | |
| 596 | ADDRESS_MAP_END | |
| 597 | ||
| 598 | static ADDRESS_MAP_START( _4in1_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 599 | AM_RANGE(0x0000, 0x3fff) AM_WRITE(SMH_ROM) /* banked game code */ | |
| 600 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) | |
| 601 | AM_RANGE(0x5000, 0x53ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 602 | AM_RANGE(0x5800, 0x583f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 603 | AM_RANGE(0x5840, 0x585f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 604 | AM_RANGE(0x5860, 0x587f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 605 | AM_RANGE(0x5880, 0x58ff) AM_WRITE(SMH_RAM) | |
| 606 | AM_RANGE(0x6000, 0x6001) AM_WRITE(galaxold_leds_w) | |
| 607 | // AM_RANGE(0x6002, 0x6002) AM_WRITE(galaxold_coin_lockout_w) | |
| 608 | AM_RANGE(0x6003, 0x6003) AM_WRITE(galaxold_coin_counter_w) | |
| 609 | AM_RANGE(0x6004, 0x6007) AM_WRITE(galaxian_lfo_freq_w) | |
| 610 | AM_RANGE(0x6800, 0x6802) AM_WRITE(galaxian_background_enable_w) | |
| 611 | // AM_RANGE(0x6803, 0x6803) AM_WRITE(galaxian_noise_enable_w) /* not hooked up? */ | |
| 612 | AM_RANGE(0x6805, 0x6805) AM_WRITE(galaxian_shoot_enable_w) | |
| 613 | AM_RANGE(0x6806, 0x6807) AM_WRITE(galaxian_vol_w) | |
| 614 | AM_RANGE(0x7001, 0x7001) AM_WRITE(galaxold_nmi_enable_w) | |
| 615 | AM_RANGE(0x7004, 0x7004) AM_WRITE(galaxold_stars_enable_w) | |
| 616 | AM_RANGE(0x7006, 0x7006) AM_WRITE(galaxold_flip_screen_x_w) | |
| 617 | AM_RANGE(0x7007, 0x7007) AM_WRITE(galaxold_flip_screen_y_w) | |
| 618 | AM_RANGE(0x7800, 0x7800) AM_WRITE(galaxian_pitch_w) | |
| 619 | AM_RANGE(0x8000, 0x8000) AM_WRITE(_4in1_bank_w) | |
| 620 | AM_RANGE(0xc000, 0xdfff) AM_WRITE(SMH_ROM) /* Fixed Menu Code */ | |
| 621 | ADDRESS_MAP_END | |
| 622 | ||
| 623 | ||
| 624 | static ADDRESS_MAP_START( bagmanmc_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 625 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 626 | AM_RANGE(0x6000, 0x67ff) AM_READ(SMH_RAM) | |
| 627 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) | |
| 628 | AM_RANGE(0x9400, 0x97ff) AM_READ(galaxold_videoram_r) | |
| 629 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 630 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 631 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 632 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 633 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) | |
| 634 | ADDRESS_MAP_END | |
| 635 | ||
| 636 | static ADDRESS_MAP_START( bagmanmc_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 637 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 638 | AM_RANGE(0x6000, 0x67ff) AM_WRITE(SMH_RAM) | |
| 639 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 640 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 641 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 642 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 643 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 644 | AM_RANGE(0xa003, 0xa003) AM_WRITE(galaxold_coin_counter_w) | |
| 645 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 646 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxold_nmi_enable_w) | |
| 647 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxold_flip_screen_x_w) | |
| 648 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxold_flip_screen_y_w) | |
| 649 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 650 | ADDRESS_MAP_END | |
| 651 | ||
| 652 | static ADDRESS_MAP_START( dkongjrm_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 653 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 654 | AM_RANGE(0x6000, 0x6fff) AM_READ(SMH_RAM) | |
| 655 | AM_RANGE(0x7000, 0x7fff) AM_READ(SMH_ROM) | |
| 656 | AM_RANGE(0x9000, 0x93ff) AM_READ(SMH_RAM) | |
| 657 | AM_RANGE(0xa000, 0xa0ff) AM_READ(input_port_0_r) | |
| 658 | AM_RANGE(0xa800, 0xa8ff) AM_READ(input_port_1_r) | |
| 659 | AM_RANGE(0xb000, 0xb0ff) AM_READ(input_port_2_r) | |
| 660 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) | |
| 661 | ADDRESS_MAP_END | |
| 662 | ||
| 663 | static ADDRESS_MAP_START( dkongjrm_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 664 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 665 | AM_RANGE(0x6000, 0x6fff) AM_WRITE(SMH_RAM) | |
| 666 | AM_RANGE(0x7000, 0x7fff) AM_WRITE(SMH_ROM) | |
| 667 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 668 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 669 | AM_RANGE(0x9840, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 670 | AM_RANGE(0x98c0, 0x98ff) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram2) AM_SIZE(&galaxold_spriteram2_size) | |
| 671 | AM_RANGE(0xa003, 0xa003) AM_WRITE(galaxold_coin_counter_w) | |
| 672 | //AM_RANGE(0xa004, 0xa007) AM_WRITE(galaxian_lfo_freq_w) | |
| 673 | AM_RANGE(0xa800, 0xa802) AM_WRITE(galaxian_background_enable_w) | |
| 674 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxian_noise_enable_w) | |
| 675 | //AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian) | |
| 676 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 677 | AM_RANGE(0xb000, 0xb000) AM_WRITE(galaxold_gfxbank_w) | |
| 678 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxold_nmi_enable_w) | |
| 679 | //AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxold_stars_enable_w) | |
| 680 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxold_flip_screen_x_w) | |
| 681 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxold_flip_screen_y_w) | |
| 682 | AM_RANGE(0xb800, 0xb800) AM_WRITE(galaxian_pitch_w) | |
| 683 | ADDRESS_MAP_END | |
| 684 | ||
| 685 | ||
| 686 | static ADDRESS_MAP_START( ozon1_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 687 | AM_RANGE(0x0000, 0x2fff) AM_READ(SMH_ROM) | |
| 688 | AM_RANGE(0x4000, 0x4200) AM_READ(SMH_RAM) | |
| 689 | AM_RANGE(0x4300, 0x43ff) AM_READ(SMH_RAM) | |
| 690 | AM_RANGE(0x4800, 0x4bff) AM_READ(galaxold_videoram_r) | |
| 691 | AM_RANGE(0x5000, 0x503f) AM_READ(SMH_RAM) | |
| 692 | AM_RANGE(0x5040, 0x505f) AM_READ(SMH_RAM) | |
| 693 | AM_RANGE(0x8100, 0x8100) AM_READ(input_port_0_r) | |
| 694 | AM_RANGE(0x8101, 0x8101) AM_READ(input_port_1_r) | |
| 695 | AM_RANGE(0x8102, 0x8102) AM_READ(input_port_2_r) | |
| 696 | ADDRESS_MAP_END | |
| 697 | ||
| 698 | static ADDRESS_MAP_START( ozon1_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 699 | AM_RANGE(0x0000, 0x2fff) AM_WRITE(SMH_ROM) | |
| 700 | AM_RANGE(0x4000, 0x4200) AM_WRITE(SMH_RAM) | |
| 701 | AM_RANGE(0x4300, 0x43ff) AM_WRITE(SMH_RAM) | |
| 702 | AM_RANGE(0x4800, 0x4bff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 703 | AM_RANGE(0x4c00, 0x4fff) AM_WRITE(galaxold_videoram_w) | |
| 704 | AM_RANGE(0x5000, 0x503f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 705 | AM_RANGE(0x5040, 0x505f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 706 | AM_RANGE(0x6801, 0x6801) AM_WRITE(SMH_NOP) //continuosly 0 and 1 | |
| 707 | AM_RANGE(0x6802, 0x6802) AM_WRITE(galaxold_coin_counter_w) | |
| 708 | AM_RANGE(0x6806, 0x6806) AM_WRITE(SMH_NOP) //only one 0 at reset | |
| 709 | AM_RANGE(0x6807, 0x6807) AM_WRITE(SMH_NOP) //only one 0 at reset | |
| 710 | AM_RANGE(0x8103, 0x8103) AM_WRITE(SMH_NOP) //only one 9b at reset | |
| 711 | ADDRESS_MAP_END | |
| 712 | ||
| 713 | static ADDRESS_MAP_START( ozon1_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 714 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 715 | AM_RANGE(0x00, 0x00) AM_WRITE(AY8910_write_port_0_w) | |
| 716 | AM_RANGE(0x01, 0x01) AM_WRITE(AY8910_control_port_0_w) | |
| 717 | ADDRESS_MAP_END | |
| 718 | ||
| 719 | static ADDRESS_MAP_START( drivfrcg, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 720 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 721 | AM_RANGE(0x1480, 0x14bf) AM_MIRROR(0x6000) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 722 | AM_RANGE(0x14c0, 0x14ff) AM_MIRROR(0x6000) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 723 | AM_RANGE(0x1500, 0x1500) AM_MIRROR(0x6000) AM_READ(input_port_0_r) | |
| 724 | AM_RANGE(0x1503, 0x1503) AM_MIRROR(0x6000) AM_WRITE(galaxold_coin_counter_w) | |
| 725 | AM_RANGE(0x1580, 0x1580) AM_MIRROR(0x6000) AM_READ(input_port_1_r) | |
| 726 | AM_RANGE(0x1580, 0x1582) AM_MIRROR(0x6000) AM_WRITE(galaxian_background_enable_w) | |
| 727 | AM_RANGE(0x1583, 0x1583) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 728 | AM_RANGE(0x1585, 0x1585) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 729 | AM_RANGE(0x1586, 0x1587) AM_MIRROR(0x6000) AM_WRITE(galaxian_lfo_freq_w) | |
| 730 | AM_RANGE(0x1600, 0x1600) AM_MIRROR(0x6000) AM_READWRITE(input_port_2_r, galaxian_pitch_w) | |
| 731 | AM_RANGE(0x1700, 0x1700) AM_MIRROR(0x6000) AM_READWRITE(input_port_3_r, SMH_NOP) | |
| 732 | AM_RANGE(0x1701, 0x1701) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 733 | AM_RANGE(0x1704, 0x1707) AM_MIRROR(0x6000) AM_WRITE(galaxian_vol_w) | |
| 734 | AM_RANGE(0x1800, 0x1bff) AM_MIRROR(0x6000) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 735 | AM_RANGE(0x1c00, 0x1fff) AM_MIRROR(0x6000) AM_RAM | |
| 736 | AM_RANGE(0x2000, 0x2fff) AM_ROM | |
| 737 | AM_RANGE(0x4000, 0x4fff) AM_ROM | |
| 738 | AM_RANGE(0x6000, 0x6fff) AM_ROM | |
| 739 | ADDRESS_MAP_END | |
| 740 | ||
| 741 | static ADDRESS_MAP_START( drivfrcg_io, ADDRESS_SPACE_IO, 8 ) | |
| 742 | AM_RANGE(0x00, 0x00) AM_READ(drivfrcg_port0_r) | |
| 743 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READWRITE(input_port_4_r, SMH_NOP) | |
| 744 | ADDRESS_MAP_END | |
| 745 | ||
| 746 | static ADDRESS_MAP_START( bongo, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 747 | AM_RANGE(0x0000, 0x5fff) AM_ROM | |
| 748 | AM_RANGE(0x8000, 0x83ff) AM_RAM | |
| 749 | AM_RANGE(0x8400, 0x87ff) AM_WRITE(SMH_NOP) // not used | |
| 750 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(SMH_RAM, galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 751 | AM_RANGE(0x9400, 0x97ff) AM_WRITE(SMH_NOP) // not used | |
| 752 | AM_RANGE(0x9800, 0x983f) AM_READWRITE(SMH_RAM, galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 753 | AM_RANGE(0x9840, 0x985f) AM_RAM AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 754 | AM_RANGE(0x9860, 0x987f) AM_RAM AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 755 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 756 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 757 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 758 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxold_nmi_enable_w) | |
| 759 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxold_stars_enable_w) | |
| 760 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxold_flip_screen_x_w) | |
| 761 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxold_flip_screen_y_w) | |
| 762 | AM_RANGE(0xb800, 0xb800) AM_READWRITE(watchdog_reset_r, SMH_NOP) | |
| 763 | ADDRESS_MAP_END | |
| 764 | ||
| 765 | static ADDRESS_MAP_START( bongo_io, ADDRESS_SPACE_IO, 8 ) | |
| 766 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 767 | AM_RANGE(0x00, 0x00) AM_WRITE(AY8910_control_port_0_w) | |
| 768 | AM_RANGE(0x01, 0x01) AM_WRITE(AY8910_write_port_0_w) | |
| 769 | AM_RANGE(0x02, 0x02) AM_READ(AY8910_read_port_0_r) | |
| 770 | ADDRESS_MAP_END | |
| 771 | ||
| 772 | ||
| 773 | static ADDRESS_MAP_START( hunchbkg, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 774 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 775 | AM_RANGE(0x1480, 0x14bf) AM_MIRROR(0x6000) AM_READWRITE(SMH_RAM, galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 776 | AM_RANGE(0x14c0, 0x14ff) AM_MIRROR(0x6000) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 777 | AM_RANGE(0x1500, 0x1500) AM_MIRROR(0x6000) AM_READ(input_port_0_r) | |
| 778 | AM_RANGE(0x1503, 0x1503) AM_MIRROR(0x6000) AM_WRITE(galaxold_coin_counter_w) | |
| 779 | AM_RANGE(0x1580, 0x1580) AM_MIRROR(0x6000) AM_READ(input_port_1_r) | |
| 780 | AM_RANGE(0x1580, 0x1582) AM_MIRROR(0x6000) AM_WRITE(galaxian_background_enable_w) | |
| 781 | AM_RANGE(0x1583, 0x1583) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 782 | AM_RANGE(0x1584, 0x1587) AM_MIRROR(0x6000) AM_WRITE(galaxian_lfo_freq_w) | |
| 783 | AM_RANGE(0x1600, 0x1600) AM_MIRROR(0x6000) AM_READ(input_port_2_r) | |
| 784 | AM_RANGE(0x1600, 0x1601) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 785 | AM_RANGE(0x1604, 0x1604) AM_MIRROR(0x6000) AM_WRITE(SMH_NOP) | |
| 786 | AM_RANGE(0x1606, 0x1606) AM_MIRROR(0x6000) AM_WRITE(galaxold_flip_screen_x_w) | |
| 787 | AM_RANGE(0x1607, 0x1607) AM_MIRROR(0x6000) AM_WRITE(galaxold_flip_screen_y_w) | |
| 788 | AM_RANGE(0x1680, 0x1680) AM_MIRROR(0x6000) AM_READWRITE(SMH_NOP, galaxian_pitch_w) | |
| 789 | AM_RANGE(0x1800, 0x1bff) AM_MIRROR(0x6000) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 790 | AM_RANGE(0x1c00, 0x1fff) AM_MIRROR(0x6000) AM_RAM | |
| 791 | AM_RANGE(0x2000, 0x2fff) AM_ROM | |
| 792 | AM_RANGE(0x4000, 0x4fff) AM_ROM | |
| 793 | AM_RANGE(0x6000, 0x6fff) AM_ROM | |
| 794 | ADDRESS_MAP_END | |
| 795 | ||
| 796 | static ADDRESS_MAP_START( hunchbkg_io, ADDRESS_SPACE_IO, 8 ) | |
| 797 | AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ(SMH_NOP) // not used | |
| 798 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_3_r) | |
| 799 | ADDRESS_MAP_END | |
| 800 | ||
| 801 | static ADDRESS_MAP_START( harem_cpu1, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 802 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 803 | AM_RANGE(0x2000, 0x27ff) AM_RAM | |
| 804 | AM_RANGE(0x4000, 0x47ff) AM_RAM | |
| 805 | AM_RANGE(0x4800, 0x4fff) AM_READWRITE(galaxold_videoram_r, galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 806 | AM_RANGE(0x5000, 0x5000) AM_WRITENOP | |
| 807 | AM_RANGE(0x5800, 0x5800) AM_READWRITE(SMH_NOP, interrupt_enable_w) | |
| 808 | AM_RANGE(0x5801, 0x5807) AM_WRITENOP | |
| 809 | AM_RANGE(0x6101, 0x6101) AM_READ(input_port_0_r) | |
| 810 | AM_RANGE(0x6102, 0x6102) AM_READ(input_port_1_r) | |
| 811 | AM_RANGE(0x6103, 0x6103) AM_WRITENOP | |
| 812 | AM_RANGE(0x6200, 0x6203) AM_WRITENOP AM_BASE(&galaxold_attributesram) | |
| 813 | AM_RANGE(0x8000, 0x9fff) AM_ROM | |
| 814 | AM_RANGE(0xffe6, 0xffff) AM_RAM AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 815 | ADDRESS_MAP_END | |
| 816 | ||
| 817 | static ADDRESS_MAP_START( harem_cpu2, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 818 | AM_RANGE(0x0000, 0x2fff) AM_ROM | |
| 819 | AM_RANGE(0x8000, 0x83ff) AM_RAM | |
| 820 | AM_RANGE(0xa000, 0xa000) AM_WRITENOP | |
| 821 | ADDRESS_MAP_END | |
| 822 | ||
| 823 | static ADDRESS_MAP_START( harem_cpu2_io, ADDRESS_SPACE_IO, 8 ) | |
| 824 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 825 | AM_RANGE(0x04, 0x04) AM_WRITE(AY8910_control_port_0_w) | |
| 826 | AM_RANGE(0x08, 0x08) AM_WRITE(AY8910_write_port_0_w) | |
| 827 | AM_RANGE(0x10, 0x10) AM_WRITE(AY8910_control_port_1_w) | |
| 828 | AM_RANGE(0x20, 0x20) AM_WRITE(AY8910_write_port_1_w) | |
| 829 | AM_RANGE(0x40, 0x40) AM_WRITE(AY8910_control_port_2_w) | |
| 830 | AM_RANGE(0x80, 0x80) AM_WRITE(AY8910_write_port_2_w) | |
| 831 | AM_RANGE(0x80, 0x80) AM_READ(soundlatch_r) | |
| 832 | ADDRESS_MAP_END | |
| 833 | ||
| 834 | static ADDRESS_MAP_START( tazzmang, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 835 | AM_RANGE(0x0000, 0x5fff) AM_ROM | |
| 836 | AM_RANGE(0x7000, 0x7000) AM_READ(input_port_2_r) /* mirror */ | |
| 837 | AM_RANGE(0x8000, 0x87ff) AM_RAM | |
| 838 | AM_RANGE(0x8800, 0x883f) AM_READWRITE(SMH_RAM, galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 839 | AM_RANGE(0x8840, 0x885f) AM_RAM AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 840 | AM_RANGE(0x8860, 0x887f) AM_RAM AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 841 | AM_RANGE(0x8880, 0x8bff) AM_WRITENOP | |
| 842 | AM_RANGE(0x9000, 0x93ff) AM_READWRITE(SMH_RAM, galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 843 | AM_RANGE(0x9800, 0x9800) AM_READ(watchdog_reset_r) | |
| 844 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 845 | AM_RANGE(0xa7ff, 0xa7ff) AM_READ(input_port_0_r) /* mirror */ | |
| 846 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) AM_WRITE(galaxian_background_enable_w) | |
| 847 | AM_RANGE(0xa803, 0xa803) AM_WRITE(galaxold_coin_counter_w) | |
| 848 | AM_RANGE(0xa805, 0xa805) AM_WRITE(galaxian_shoot_enable_w) | |
| 849 | AM_RANGE(0xa806, 0xa807) AM_WRITE(galaxian_vol_w) | |
| 850 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 851 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxold_nmi_enable_w) | |
| 852 | AM_RANGE(0xb004, 0xb004) AM_WRITE(galaxold_stars_enable_w) | |
| 853 | AM_RANGE(0xb006, 0xb006) AM_WRITE(galaxold_flip_screen_x_w) | |
| 854 | AM_RANGE(0xb007, 0xb007) AM_WRITE(galaxold_flip_screen_y_w) | |
| 855 | AM_RANGE(0xb800, 0xb800) AM_READ(watchdog_reset_r) AM_WRITE(galaxian_pitch_w) | |
| 856 | ADDRESS_MAP_END | |
| 857 | ||
| 858 | static ADDRESS_MAP_START( racknrol, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 859 | AM_RANGE(0x0000, 0x0fff) AM_ROM | |
| 860 | AM_RANGE(0x1400, 0x143f) AM_MIRROR(0x6000) AM_READWRITE(SMH_RAM, galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 861 | AM_RANGE(0x1440, 0x14bf) AM_MIRROR(0x6000) AM_RAM AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 862 | AM_RANGE(0x14c0, 0x14ff) AM_MIRROR(0x6000) AM_RAM | |
| 863 | AM_RANGE(0x1500, 0x1500) AM_MIRROR(0x6000) AM_READ(input_port_0_r) | |
| 864 | AM_RANGE(0x1580, 0x1580) AM_MIRROR(0x6000) AM_READ(input_port_1_r) | |
| 865 | AM_RANGE(0x1600, 0x1600) AM_MIRROR(0x6000) AM_READ(input_port_2_r) | |
| 866 | AM_RANGE(0x1600, 0x1601) AM_MIRROR(0x6000) AM_WRITENOP | |
| 867 | AM_RANGE(0x1606, 0x1606) AM_MIRROR(0x6000) AM_WRITE(galaxold_flip_screen_x_w) | |
| 868 | AM_RANGE(0x1607, 0x1607) AM_MIRROR(0x6000) AM_WRITE(galaxold_flip_screen_y_w) | |
| 869 | AM_RANGE(0x1680, 0x1680) AM_MIRROR(0x6000) AM_READNOP | |
| 870 | // AM_RANGE(0x1700, 0x1700) AM_MIRROR(0x6000) AM_READ(trvchlng_question_r) | |
| 871 | // AM_RANGE(0x1701, 0x1703) AM_MIRROR(0x6000) AM_READ(trvchlng_question_w) | |
| 872 | AM_RANGE(0x1800, 0x1bff) AM_MIRROR(0x6000) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 873 | AM_RANGE(0x1c00, 0x1fff) AM_MIRROR(0x6000) AM_RAM | |
| 874 | AM_RANGE(0x2000, 0x2fff) AM_ROM | |
| 875 | AM_RANGE(0x4000, 0x4fff) AM_ROM | |
| 876 | AM_RANGE(0x6000, 0x6fff) AM_ROM | |
| 877 | ADDRESS_MAP_END | |
| 878 | ||
| 879 | static ADDRESS_MAP_START( racknrol_io, ADDRESS_SPACE_IO, 8 ) | |
| 880 | AM_RANGE(0x1d, 0x1d) AM_WRITE(SN76496_0_w) | |
| 881 | AM_RANGE(0x1e, 0x1e) AM_WRITE(SN76496_1_w) | |
| 882 | AM_RANGE(0x1f, 0x1f) AM_WRITE(SN76496_2_w) | |
| 883 | AM_RANGE(0x20, 0x3f) AM_WRITE(racknrol_tiles_bank_w) AM_BASE(&racknrol_tiles_bank) | |
| 884 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_3_r) | |
| 885 | ADDRESS_MAP_END | |
| 886 | ||
| 887 | static ADDRESS_MAP_START( ckongg_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 888 | ||
| 889 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 890 | AM_RANGE(0x6000, 0x6fff) AM_READ(SMH_RAM) | |
| 891 | AM_RANGE(0x9000, 0x93ff) AM_READ(galaxold_videoram_r) | |
| 892 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 893 | AM_RANGE(0xc000, 0xc000) AM_READ(input_port_0_r) | |
| 894 | AM_RANGE(0xc400, 0xc400) AM_READ(input_port_1_r) | |
| 895 | AM_RANGE(0xc800, 0xc800) AM_READ(input_port_2_r) | |
| 896 | AM_RANGE(0xcc00, 0xcc00) AM_READ(watchdog_reset_r) | |
| 897 | ||
| 898 | ADDRESS_MAP_END | |
| 899 | ||
| 900 | static ADDRESS_MAP_START( ckongg_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 901 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_ROM) | |
| 902 | AM_RANGE(0x6000, 0x6fff) AM_WRITE(SMH_RAM) | |
| 903 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 904 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 905 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 906 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 907 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 908 | AM_RANGE(0xc000, 0xc001) AM_WRITE(galaxold_leds_w) | |
| 909 | AM_RANGE(0xc002, 0xc002) AM_WRITE(galaxold_coin_lockout_w) | |
| 910 | AM_RANGE(0xc003, 0xc003) AM_WRITE(galaxold_coin_counter_w) | |
| 911 | AM_RANGE(0xc004, 0xc007) AM_WRITE(galaxian_lfo_freq_w) | |
| 912 | AM_RANGE(0xc400, 0xc402) AM_WRITE(galaxian_background_enable_w) | |
| 913 | AM_RANGE(0xc403, 0xc403) AM_WRITE(galaxian_noise_enable_w) | |
| 914 | AM_RANGE(0xc405, 0xc405) AM_WRITE(galaxian_shoot_enable_w) | |
| 915 | AM_RANGE(0xc406, 0xc407) AM_WRITE(galaxian_vol_w) | |
| 916 | AM_RANGE(0xc801, 0xc801) AM_WRITE(galaxold_nmi_enable_w) | |
| 917 | AM_RANGE(0xc804, 0xc804) AM_WRITE(SMH_NOP) // link cut | |
| 918 | AM_RANGE(0xc806, 0xc806) AM_WRITE(galaxold_flip_screen_x_w) | |
| 919 | AM_RANGE(0xc807, 0xc807) AM_WRITE(galaxold_flip_screen_y_w) | |
| 920 | AM_RANGE(0xcc00, 0xcc00) AM_WRITE(galaxian_pitch_w) | |
| 921 | ADDRESS_MAP_END | |
| 922 | ||
| 923 | static ADDRESS_MAP_START( kkgalax_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 924 | ||
| 925 | AM_RANGE(0x0000, 0x5fff) AM_READ(SMH_ROM) | |
| 926 | AM_RANGE(0x6000, 0x6fff) AM_READ(SMH_RAM) | |
| 927 | AM_RANGE(0x9000, 0x93ff) AM_READ(galaxold_videoram_r) | |
| 928 | AM_RANGE(0x9800, 0x98ff) AM_READ(SMH_RAM) | |
| 929 | AM_RANGE(0xa000, 0xa000) AM_READ(input_port_0_r) | |
| 930 | AM_RANGE(0xa800, 0xa800) AM_READ(input_port_1_r) | |
| 931 | AM_RANGE(0xb000, 0xb000) AM_READ(input_port_2_r) | |
| 932 | // AM_RANGE(0xcc00, 0xcc00) AM_READ(watchdog_reset_r) | |
| 933 | ||
| 934 | ADDRESS_MAP_END | |
| 935 | ||
| 936 | static ADDRESS_MAP_START( kkgalax_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 937 | AM_RANGE(0x0000, 0x5fff) AM_WRITE(SMH_NOP) | |
| 938 | AM_RANGE(0x6000, 0x6fff) AM_WRITE(SMH_RAM) | |
| 939 | AM_RANGE(0x9000, 0x93ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 940 | AM_RANGE(0x9800, 0x983f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 941 | AM_RANGE(0x9840, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 942 | AM_RANGE(0x9860, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 943 | AM_RANGE(0x9880, 0x98ff) AM_WRITE(SMH_RAM) | |
| 944 | // AM_RANGE(0xc000, 0xc001) AM_WRITE(galaxold_leds_w) | |
| 945 | // AM_RANGE(0xc002, 0xc002) AM_WRITE(galaxold_coin_lockout_w) | |
| 946 | // AM_RANGE(0xc003, 0xc003) AM_WRITE(galaxold_coin_counter_w) | |
| 947 | // AM_RANGE(0xc004, 0xc007) AM_WRITE(galaxian_lfo_freq_w) | |
| 948 | // AM_RANGE(0xc400, 0xc402) AM_WRITE(galaxian_background_enable_w) | |
| 949 | // AM_RANGE(0xc403, 0xc403) AM_WRITE(galaxian_noise_enable_w) | |
| 950 | // AM_RANGE(0xc405, 0xc405) AM_WRITE(galaxian) | |
| 951 | // AM_RANGE(0xc406, 0xc407) AM_WRITE(galaxian_vol_w) | |
| 952 | AM_RANGE(0xb001, 0xb001) AM_WRITE(galaxold_nmi_enable_w) | |
| 953 | // AM_RANGE(0xc804, 0xc804) AM_WRITE(SMH_NOP) // link cut | |
| 954 | // AM_RANGE(0xc806, 0xc806) AM_WRITE(galaxold_flip_screen_x_w) | |
| 955 | // AM_RANGE(0xc807, 0xc807) AM_WRITE(galaxold_flip_screen_y_w) | |
| 956 | // AM_RANGE(0xcc00, 0xcc00) AM_WRITE(galaxian_pitch_w) | |
| 957 | ADDRESS_MAP_END | |
| 958 | ||
| 959 | static READ8_HANDLER( hexpoola_data_port_r ) | |
| 960 | { | |
| 961 | switch (activecpu_get_pc()) | |
| 962 | { | |
| 963 | case 0x0022: | |
| 964 | return 0; | |
| 965 | ||
| 966 | case 0x0031: | |
| 967 | return 1; | |
| 968 | } | |
| 969 | ||
| 970 | return 0; | |
| 971 | } | |
| 972 | ||
| 973 | static ADDRESS_MAP_START( hexpoola_io, ADDRESS_SPACE_IO, 8 ) | |
| 974 | AM_RANGE(0x00, 0x00) AM_READNOP | |
| 975 | AM_RANGE(0x20, 0x3f) AM_WRITE(racknrol_tiles_bank_w) AM_BASE(&racknrol_tiles_bank) | |
| 976 | AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READWRITE(hexpoola_data_port_r, SN76496_0_w) | |
| 977 | AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(input_port_3_r) | |
| 978 | ADDRESS_MAP_END | |
| 979 | ||
| 980 | #define GAL_IN0\ | |
| 981 | PORT_START_TAG("IN0")\ | |
| 982 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )\ | |
| 983 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )\ | |
| 984 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY\ | |
| 985 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY\ | |
| 986 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )\ | |
| 987 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) )\ | |
| 988 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )\ | |
| 989 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) )\ | |
| 990 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH )\ | |
| 991 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 992 | ||
| 993 | #define GAL_IN1\ | |
| 994 | PORT_START_TAG("IN1")\ | |
| 995 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )\ | |
| 996 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )\ | |
| 997 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL\ | |
| 998 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL\ | |
| 999 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL\ | |
| 1000 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED )\ | |
| 1001 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) )\ | |
| 1002 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) )\ | |
| 1003 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )\ | |
| 1004 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) )\ | |
| 1005 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1006 | ||
| 1007 | static INPUT_PORTS_START( scramblb ) | |
| 1008 | PORT_START_TAG("IN0") | |
| 1009 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1010 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1011 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1012 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1013 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1014 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 1015 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1016 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1017 | ||
| 1018 | PORT_START_TAG("IN1") | |
| 1019 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1020 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1021 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1022 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1023 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1024 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1025 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 1026 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1027 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 1028 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1029 | ||
| 1030 | PORT_START_TAG("IN2") | |
| 1031 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) | |
| 1032 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1033 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) | |
| 1034 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) | |
| 1035 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) ) | |
| 1036 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Lives ) ) | |
| 1037 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1038 | PORT_DIPSETTING( 0x04, "4" ) | |
| 1039 | PORT_DIPSETTING( 0x08, "5" ) | |
| 1040 | PORT_DIPSETTING( 0x0c, "255 (Cheat)") | |
| 1041 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1042 | INPUT_PORTS_END | |
| 1043 | ||
| 1044 | ||
| 1045 | /* the cocktail controls only seem to be used in upright mode, is the flip flag wrong for this bootleg? */ | |
| 1046 | static INPUT_PORTS_START( scramb2 ) | |
| 1047 | PORT_START_TAG("IN0") | |
| 1048 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1049 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1050 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1051 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1052 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1053 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1054 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) | |
| 1055 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 1056 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1057 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1058 | ||
| 1059 | PORT_START_TAG("IN1") | |
| 1060 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 1061 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1062 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1063 | PORT_DIPSETTING( 0x02, "5" ) | |
| 1064 | PORT_DIPSETTING( 0x03, "255 (Cheat)") | |
| 1065 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1066 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1067 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1068 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1069 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1070 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1071 | ||
| 1072 | PORT_START_TAG("IN2") | |
| 1073 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1074 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 1075 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1076 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_2C ) ) | |
| 1077 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_3C ) ) | |
| 1078 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_4C ) ) | |
| 1079 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1080 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1081 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1082 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1083 | PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Unknown ) ) | |
| 1084 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 1085 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1086 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1087 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Unknown ) ) | |
| 1088 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 1089 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 1090 | INPUT_PORTS_END | |
| 1091 | ||
| 1092 | ||
| 1093 | #define MOON_IN0\ | |
| 1094 | PORT_START_TAG("IN0")\ | |
| 1095 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 )\ | |
| 1096 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 )\ | |
| 1097 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY\ | |
| 1098 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY\ | |
| 1099 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 )\ | |
| 1100 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) )\ | |
| 1101 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )\ | |
| 1102 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) )\ | |
| 1103 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* "reset" on schematics */\ | |
| 1104 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1105 | ||
| 1106 | static INPUT_PORTS_START( 4in1 ) | |
| 1107 | PORT_START_TAG("IN0") | |
| 1108 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1109 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1110 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1111 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1112 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1113 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 1114 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1115 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 1116 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1117 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1118 | ||
| 1119 | PORT_START_TAG("IN1") | |
| 1120 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1121 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1122 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1123 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1124 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1125 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1126 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_SPECIAL ) // See fake ports | |
| 1127 | ||
| 1128 | PORT_START_TAG("DSW0") | |
| 1129 | PORT_BIT( 0x3b, IP_ACTIVE_HIGH, IPT_SPECIAL ) // See fake ports | |
| 1130 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1131 | PORT_DIPSETTING( 0x00, "3" ) // 2 when continue (Scramble PT2) | |
| 1132 | PORT_DIPSETTING( 0x04, "5" ) // 2 when continue (Scramble PT2) | |
| 1133 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1134 | ||
| 1135 | PORT_START_TAG("FAKE1") /* The Ghost Muncher PT3 - FAKE DSW0 (bits 0 to 5) and IN1 (bits 6 and 7) */ | |
| 1136 | PORT_DIPNAME( 0x03, 0x00, "Bonus Life (GM PT3)" ) | |
| 1137 | PORT_DIPSETTING( 0x01, "10000" ) | |
| 1138 | PORT_DIPSETTING( 0x02, "15000" ) | |
| 1139 | PORT_DIPSETTING( 0x03, "20000" ) | |
| 1140 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1141 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) // Lives | |
| 1142 | // PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 1143 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1144 | // PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1145 | // PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unused ) ) | |
| 1146 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1147 | // PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1148 | // PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unused ) ) | |
| 1149 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1150 | // PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1151 | PORT_DIPNAME( 0xc0, 0x00, "Coinage (GM PT3)" ) | |
| 1152 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 1153 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1154 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 1155 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1156 | ||
| 1157 | PORT_START_TAG("FAKE2") /* Scramble PT2 - FAKE DSW0 (bits 0 to 5) and IN1 (bits 6 and 7) */ | |
| 1158 | // PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unused ) ) | |
| 1159 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1160 | // PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 1161 | // PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) | |
| 1162 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1163 | // PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1164 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) // Lives | |
| 1165 | PORT_DIPNAME( 0x08, 0x00, "Allow Continue (S PT2)" ) | |
| 1166 | PORT_DIPSETTING( 0x08, DEF_STR( No ) ) | |
| 1167 | PORT_DIPSETTING( 0x00, DEF_STR( Yes ) ) | |
| 1168 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) // Scramble PT2 - Check code at 0x00c2 | |
| 1169 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1170 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1171 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) // Scramble PT2 - Check code at 0x00cc | |
| 1172 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1173 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1174 | PORT_DIPNAME( 0xc0, 0x00, "Coinage (S PT2)" ) | |
| 1175 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 1176 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1177 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 1178 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1179 | ||
| 1180 | PORT_START_TAG("FAKE3") /* Galaxian PT5 - FAKE DSW0 (bits 0 to 5) and IN1 (bits 6 and 7) */ | |
| 1181 | PORT_DIPNAME( 0x03, 0x00, "Bonus Life (G PT5)" ) | |
| 1182 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 1183 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 1184 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 1185 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 1186 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) // Lives | |
| 1187 | // PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 1188 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1189 | // PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1190 | // PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unused ) ) | |
| 1191 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1192 | // PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1193 | // PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unused ) ) | |
| 1194 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1195 | // PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1196 | PORT_DIPNAME( 0xc0, 0x00, "Coinage (G PT5)" ) | |
| 1197 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 1198 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1199 | // PORT_DIPSETTING( 0x80, DEF_STR( 1C_1C ) ) | |
| 1200 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1201 | ||
| 1202 | PORT_START_TAG("FAKE4") /* Galactic Convoy - FAKE DSW0 (bits 0 to 5) and IN1 (bits 6 and 7) */ | |
| 1203 | PORT_DIPNAME( 0x01, 0x00, "Bonus Life (GC)" ) | |
| 1204 | PORT_DIPSETTING( 0x00, "50000" ) | |
| 1205 | PORT_DIPSETTING( 0x01, "80000" ) | |
| 1206 | // PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unused ) ) | |
| 1207 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1208 | // PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1209 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) // Lives | |
| 1210 | // PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 1211 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1212 | // PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1213 | // PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unused ) ) | |
| 1214 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1215 | // PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1216 | // PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unused ) ) | |
| 1217 | // PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1218 | // PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1219 | PORT_DIPNAME( 0xc0, 0x00, "Coinage (GC)" ) | |
| 1220 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 1221 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1222 | // PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) // 1 credit for 1st coin ! | |
| 1223 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 1224 | INPUT_PORTS_END | |
| 1225 | ||
| 1226 | static INPUT_PORTS_START( bagmanmc ) | |
| 1227 | PORT_START_TAG("IN0") | |
| 1228 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1229 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1230 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1231 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1232 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1233 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1234 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1235 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1236 | ||
| 1237 | PORT_START_TAG("IN1") | |
| 1238 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1239 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1240 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1241 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1242 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1243 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1244 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1245 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Cabinet ) ) | |
| 1246 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) | |
| 1247 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1248 | ||
| 1249 | PORT_START_TAG("DSW") | |
| 1250 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 1251 | PORT_DIPSETTING( 0x03, "2" ) | |
| 1252 | PORT_DIPSETTING( 0x02, "3" ) | |
| 1253 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1254 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1255 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Coinage ) ) | |
| 1256 | PORT_DIPSETTING( 0x00, "A 2C/1C B 1C/1C" ) | |
| 1257 | PORT_DIPSETTING( 0x04, "A 1C/1C B 1C/2C" ) | |
| 1258 | PORT_DIPNAME( 0x18, 0x18, DEF_STR( Difficulty ) ) | |
| 1259 | PORT_DIPSETTING( 0x18, DEF_STR( Easy ) ) | |
| 1260 | PORT_DIPSETTING( 0x10, DEF_STR( Medium ) ) | |
| 1261 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) | |
| 1262 | PORT_DIPSETTING( 0x00, DEF_STR( Hardest ) ) | |
| 1263 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Language ) ) | |
| 1264 | PORT_DIPSETTING( 0x20, DEF_STR( English ) ) | |
| 1265 | PORT_DIPSETTING( 0x00, DEF_STR( French ) ) | |
| 1266 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Bonus_Life ) ) | |
| 1267 | PORT_DIPSETTING( 0x40, "30000" ) | |
| 1268 | PORT_DIPSETTING( 0x00, "40000" ) | |
| 1269 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) // Check code at 0x2d78 and 0x2e6b | |
| 1270 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1271 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1272 | INPUT_PORTS_END | |
| 1273 | ||
| 1274 | static INPUT_PORTS_START( dkongjrm ) | |
| 1275 | PORT_START_TAG("IN0") | |
| 1276 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1277 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1278 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1279 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1280 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 1281 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1282 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1283 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1284 | ||
| 1285 | PORT_START_TAG("IN1") | |
| 1286 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1287 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1288 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1289 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1290 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 1291 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1292 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 1293 | PORT_DIPSETTING( 0xc0, DEF_STR( 3C_1C ) ) | |
| 1294 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 1295 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1296 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 1297 | ||
| 1298 | PORT_START_TAG("IN2") | |
| 1299 | PORT_DIPNAME( 0x01, 0x00, "Coin Multiplier" ) | |
| 1300 | PORT_DIPSETTING( 0x00, "*1" ) | |
| 1301 | PORT_DIPSETTING( 0x01, "*2" ) | |
| 1302 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Lives ) ) | |
| 1303 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1304 | PORT_DIPSETTING( 0x02, "4" ) | |
| 1305 | PORT_DIPSETTING( 0x04, "5" ) | |
| 1306 | PORT_DIPSETTING( 0x06, "6" ) | |
| 1307 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Cabinet ) ) | |
| 1308 | PORT_DIPSETTING( 0x08, DEF_STR( Upright ) ) | |
| 1309 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1310 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1311 | INPUT_PORTS_END | |
| 1312 | ||
| 1313 | static INPUT_PORTS_START( rockclim ) | |
| 1314 | ||
| 1315 | PORT_START_TAG("IN0") | |
| 1316 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1317 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1318 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICKRIGHT_LEFT ) PORT_8WAY | |
| 1319 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICKRIGHT_RIGHT ) PORT_8WAY | |
| 1320 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY | |
| 1321 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY | |
| 1322 | PORT_DIPNAME( 0x40, 0x40, "Unknown 1" ) //code at $7713 | |
| 1323 | PORT_DIPSETTING( 0x00, "0" ) | |
| 1324 | PORT_DIPSETTING( 0x40, "1" ) | |
| 1325 | ||
| 1326 | PORT_START_TAG("IN1") | |
| 1327 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1328 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1329 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY | |
| 1330 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY | |
| 1331 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_UP ) PORT_8WAY | |
| 1332 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY | |
| 1333 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Bonus_Life ) ) | |
| 1334 | PORT_DIPSETTING( 0x00, "30,000" ) | |
| 1335 | PORT_DIPSETTING( 0x40, "50,000" ) | |
| 1336 | PORT_DIPNAME( 0x80, 0x80, "Coin Slots" ) | |
| 1337 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1338 | PORT_DIPSETTING( 0x80, "1" ) | |
| 1339 | ||
| 1340 | PORT_START_TAG("DSW0") | |
| 1341 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 1342 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1343 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1344 | PORT_DIPSETTING( 0x02, "5" ) | |
| 1345 | PORT_DIPSETTING( 0x03, "6" ) | |
| 1346 | ||
| 1347 | PORT_START_TAG("DSW1") | |
| 1348 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) | |
| 1349 | PORT_DIPSETTING( 0x00, DEF_STR( 9C_1C ) ) | |
| 1350 | PORT_DIPSETTING( 0x01, DEF_STR( 8C_1C ) ) | |
| 1351 | PORT_DIPSETTING( 0x02, DEF_STR( 7C_1C ) ) | |
| 1352 | PORT_DIPSETTING( 0x03, DEF_STR( 6C_1C ) ) | |
| 1353 | PORT_DIPSETTING( 0x04, DEF_STR( 5C_1C ) ) | |
| 1354 | PORT_DIPSETTING( 0x05, DEF_STR( 4C_1C ) ) | |
| 1355 | PORT_DIPSETTING( 0x06, DEF_STR( 3C_1C ) ) | |
| 1356 | PORT_DIPSETTING( 0x07, DEF_STR( 2C_1C ) ) | |
| 1357 | PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) | |
| 1358 | PORT_DIPSETTING( 0x0e, DEF_STR( 1C_2C ) ) | |
| 1359 | PORT_DIPSETTING( 0x0d, DEF_STR( 1C_3C ) ) | |
| 1360 | PORT_DIPSETTING( 0x0c, DEF_STR( 1C_4C ) ) | |
| 1361 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_5C ) ) | |
| 1362 | PORT_DIPSETTING( 0x0a, DEF_STR( 1C_6C ) ) | |
| 1363 | PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) ) | |
| 1364 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_8C ) ) | |
| 1365 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) | |
| 1366 | PORT_DIPSETTING( 0x00, DEF_STR( 9C_1C ) ) | |
| 1367 | PORT_DIPSETTING( 0x10, DEF_STR( 8C_1C ) ) | |
| 1368 | PORT_DIPSETTING( 0x20, DEF_STR( 7C_1C ) ) | |
| 1369 | PORT_DIPSETTING( 0x30, DEF_STR( 6C_1C ) ) | |
| 1370 | PORT_DIPSETTING( 0x40, DEF_STR( 5C_1C ) ) | |
| 1371 | PORT_DIPSETTING( 0x50, DEF_STR( 4C_1C ) ) | |
| 1372 | PORT_DIPSETTING( 0x60, DEF_STR( 3C_1C ) ) | |
| 1373 | PORT_DIPSETTING( 0x70, DEF_STR( 2C_1C ) ) | |
| 1374 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) | |
| 1375 | PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) ) | |
| 1376 | PORT_DIPSETTING( 0xd0, DEF_STR( 1C_3C ) ) | |
| 1377 | PORT_DIPSETTING( 0xc0, DEF_STR( 1C_4C ) ) | |
| 1378 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) ) | |
| 1379 | PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) ) | |
| 1380 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) | |
| 1381 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_8C ) ) | |
| 1382 | ||
| 1383 | INPUT_PORTS_END | |
| 1384 | ||
| 1385 | /* | |
| 1386 | ||
| 1387 | Game bug: | |
| 1388 | - you can insert 99 credits 3 times consecutively, then it resets | |
| 1389 | ||
| 1390 | */ | |
| 1391 | static INPUT_PORTS_START( ozon1 ) | |
| 1392 | PORT_START_TAG("IN0") | |
| 1393 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1394 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1395 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1396 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) | |
| 1397 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(1) | |
| 1398 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(1) | |
| 1399 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1400 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1401 | ||
| 1402 | PORT_START_TAG("IN1") | |
| 1403 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 1404 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1405 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1406 | PORT_DIPSETTING( 0x02, "5" ) | |
| 1407 | PORT_DIPSETTING( 0x03, "6" ) | |
| 1408 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1409 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) | |
| 1410 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_PLAYER(2) | |
| 1411 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_PLAYER(2) | |
| 1412 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1413 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1414 | ||
| 1415 | PORT_START_TAG("DSW") | |
| 1416 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 1417 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1418 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 1419 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 1420 | PORT_DIPSETTING( 0x00, "A 1C/1C B 2C/1C" ) | |
| 1421 | PORT_DIPSETTING( 0x02, "A 1C/2C B 1C/1C" ) // when you insert a coin with COIN2 it starts an infinite loop | |
| 1422 | PORT_DIPSETTING( 0x04, "A 1C/3C B 3C/1C" ) | |
| 1423 | PORT_DIPSETTING( 0x06, "A 1C/4C B 4C/1C" ) | |
| 1424 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1425 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1426 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1427 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1428 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1429 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1430 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1431 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1432 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1433 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1434 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1435 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1436 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1437 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1438 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1439 | INPUT_PORTS_END | |
| 1440 | ||
| 1441 | static INPUT_PORTS_START( ladybugg ) | |
| 1442 | PORT_START_TAG("IN0") | |
| 1443 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1444 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1445 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 1446 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 1447 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1448 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 1449 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1450 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 1451 | ||
| 1452 | PORT_START_TAG("IN1") | |
| 1453 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1454 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1455 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 1456 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 1457 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 1458 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL /* 2nd Button 1 */ | |
| 1459 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 1460 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1461 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 1462 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coinage ) ) | |
| 1463 | PORT_DIPSETTING( 0x80, "A 1C/1C B 1C/5C" ) | |
| 1464 | PORT_DIPSETTING( 0x00, "A 2C/1C B 1C/3C" ) | |
| 1465 | ||
| 1466 | PORT_START_TAG("DSW") | |
| 1467 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Difficulty ) ) | |
| 1468 | PORT_DIPSETTING( 0x00, DEF_STR( Easiest ) ) | |
| 1469 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) | |
| 1470 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 1471 | PORT_DIPSETTING( 0x03, DEF_STR( Hardest ) ) | |
| 1472 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1473 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1474 | PORT_DIPSETTING( 0x04, "4" ) | |
| 1475 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1476 | PORT_DIPSETTING( 0x00, "20000" ) | |
| 1477 | PORT_DIPSETTING( 0x08, "40000" ) | |
| 1478 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* Yes, the game reads both of these */ | |
| 1479 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* Check code at 0x22e1 */ | |
| 1480 | INPUT_PORTS_END | |
| 1481 | ||
| 1482 | static INPUT_PORTS_START( vpool ) | |
| 1483 | PORT_START_TAG("IN0") | |
| 1484 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1485 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1486 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1487 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1488 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1489 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 1490 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1491 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1492 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH ) | |
| 1493 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1494 | ||
| 1495 | PORT_START_TAG("IN1") | |
| 1496 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1497 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1498 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1499 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1500 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1501 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 1502 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1503 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1504 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 1505 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1506 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1507 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 1508 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1509 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1510 | ||
| 1511 | PORT_START_TAG("DSW0") | |
| 1512 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) | |
| 1513 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 1514 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1515 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 1516 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1517 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1518 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) | |
| 1519 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1520 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1521 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) | |
| 1522 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 1523 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1524 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) | |
| 1525 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 1526 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1527 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) | |
| 1528 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 1529 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1530 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) | |
| 1531 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 1532 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1533 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) | |
| 1534 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 1535 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1536 | INPUT_PORTS_END | |
| 1537 | ||
| 1538 | static INPUT_PORTS_START( drivfrcg ) | |
| 1539 | PORT_START_TAG("IN0") | |
| 1540 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1541 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1542 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1543 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1544 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1545 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1546 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1547 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1548 | ||
| 1549 | PORT_START_TAG("IN1") | |
| 1550 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1551 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 1552 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1553 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1554 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1555 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1556 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Coinage ) ) | |
| 1557 | PORT_DIPSETTING( 0x40, "A 2C/1C B 1C/3C" ) | |
| 1558 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/5C" ) | |
| 1559 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1560 | ||
| 1561 | PORT_START_TAG("DSW0") | |
| 1562 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 1563 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1564 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 1565 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 1566 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1567 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1568 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 1569 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1570 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1571 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1572 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1573 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1574 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1575 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1576 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1577 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1578 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1579 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1580 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1581 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1582 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1583 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1584 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1585 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1586 | ||
| 1587 | PORT_START_TAG("DSW1") | |
| 1588 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 1589 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1590 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 1591 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 1592 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1593 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1594 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 1595 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1596 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1597 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1598 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1599 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1600 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1601 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1602 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1603 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1604 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1605 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1606 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1607 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1608 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1609 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1610 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1611 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1612 | ||
| 1613 | PORT_START_TAG("SENSE") | |
| 1614 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 1615 | INPUT_PORTS_END | |
| 1616 | ||
| 1617 | static INPUT_PORTS_START( bongo ) | |
| 1618 | PORT_START_TAG("IN0") | |
| 1619 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1620 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // coin? it jumps to an unmapped area at $C003 | |
| 1621 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 1622 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 1623 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1624 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 1625 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1626 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1627 | ||
| 1628 | PORT_START_TAG("IN1") | |
| 1629 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1630 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1631 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 1632 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 1633 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1634 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 1635 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1636 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1637 | ||
| 1638 | PORT_START_TAG("DSW0") | |
| 1639 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 1640 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1641 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 1642 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 1643 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1644 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1645 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 1646 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1647 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1648 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1649 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1650 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1651 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1652 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1653 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1654 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1655 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1656 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1657 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1658 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1659 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1660 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1661 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1662 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1663 | ||
| 1664 | PORT_START_TAG("DSW1") | |
| 1665 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 1666 | PORT_DIPSETTING( 0x0, DEF_STR( Off ) ) | |
| 1667 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 1668 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Lives ) ) | |
| 1669 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1670 | PORT_DIPSETTING( 0x02, "3" ) | |
| 1671 | PORT_DIPSETTING( 0x04, "4" ) | |
| 1672 | PORT_DIPSETTING( 0x06, "5" ) | |
| 1673 | PORT_DIPNAME( 0x08, 0x00, "Infinite Lives" ) | |
| 1674 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1675 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1676 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1677 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1678 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1679 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1680 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1681 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1682 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coinage ) ) | |
| 1683 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 1684 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 1685 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 1686 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1687 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 1688 | INPUT_PORTS_END | |
| 1689 | ||
| 1690 | static INPUT_PORTS_START( hunchbkg ) | |
| 1691 | PORT_START_TAG("IN0") | |
| 1692 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1693 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1694 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_PLAYER(1) | |
| 1695 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_PLAYER(1) | |
| 1696 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1697 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1698 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1699 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_PLAYER(1) | |
| 1700 | ||
| 1701 | PORT_START_TAG("IN1") | |
| 1702 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Start 1 / P1 Button 1") PORT_PLAYER(1) | |
| 1703 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Start 2 / P1 Button 1") PORT_PLAYER(1) | |
| 1704 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1705 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1706 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1707 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1708 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1709 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1710 | ||
| 1711 | PORT_START_TAG("DSW0") | |
| 1712 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 1713 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1714 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 1715 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 1716 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1717 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1718 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 1719 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1720 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1721 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1722 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1723 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1724 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1725 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1726 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1727 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1728 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1729 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1730 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1731 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1732 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1733 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1734 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1735 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1736 | ||
| 1737 | PORT_START_TAG("SENSE") | |
| 1738 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK ) | |
| 1739 | INPUT_PORTS_END | |
| 1740 | ||
| 1741 | static INPUT_PORTS_START( harem ) | |
| 1742 | PORT_START_TAG("IN0")//Change tag when major usage uncovered. | |
| 1743 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 1744 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1745 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 1746 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 1747 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1748 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1749 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 1750 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1751 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1752 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1753 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1754 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1755 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1756 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1757 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1758 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1759 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1760 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1761 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1762 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1763 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1764 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1765 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1766 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1767 | ||
| 1768 | PORT_START_TAG("IN1") | |
| 1769 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 1770 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1771 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 1772 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 1773 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1774 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1775 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 1776 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1777 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1778 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1779 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1780 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1781 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1782 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1783 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1784 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1785 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1786 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1787 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1788 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1789 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1790 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1791 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1792 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1793 | INPUT_PORTS_END | |
| 1794 | ||
| 1795 | static INPUT_PORTS_START( tazzmang ) | |
| 1796 | PORT_START | |
| 1797 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1798 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1799 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1800 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1801 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1802 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1803 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1804 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1805 | ||
| 1806 | PORT_START | |
| 1807 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("Start 1 / P1 and P2 Button 2") | |
| 1808 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1809 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1810 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1811 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1812 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1813 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1814 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1815 | ||
| 1816 | PORT_START | |
| 1817 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 1818 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1819 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 1820 | PORT_DIPNAME( 0x06, 0x04, DEF_STR( Coinage ) ) | |
| 1821 | PORT_DIPSETTING( 0x00, "A 4C/1C B 1C/4C" ) | |
| 1822 | PORT_DIPSETTING( 0x02, "A 3C/1C B 1C/3C" ) | |
| 1823 | PORT_DIPSETTING( 0x06, "A 2C/1C B 1C/2C" ) | |
| 1824 | PORT_DIPSETTING( 0x04, "A 1C/1C B 1C/1C" ) | |
| 1825 | PORT_DIPNAME( 0x08, 0x00, "3" ) | |
| 1826 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1827 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1828 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1829 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1830 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1831 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1832 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1833 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1834 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1835 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1836 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1837 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1838 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1839 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1840 | INPUT_PORTS_END | |
| 1841 | ||
| 1842 | static INPUT_PORTS_START( racknrol ) | |
| 1843 | PORT_START_TAG("IN0") | |
| 1844 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1845 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1846 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1847 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1848 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1849 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1850 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1851 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1852 | ||
| 1853 | PORT_START_TAG("IN1") | |
| 1854 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1855 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1856 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 1857 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1858 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1859 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1860 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1861 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1862 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1863 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1864 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1865 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1866 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1867 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1868 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1869 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1870 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1871 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1872 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1873 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1874 | ||
| 1875 | PORT_START_TAG("DSW0") | |
| 1876 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 1877 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1878 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 1879 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 1880 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1881 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1882 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 1883 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1884 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1885 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1886 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1887 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1888 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1889 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1890 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1891 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1892 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1893 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1894 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1895 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1896 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1897 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1898 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1899 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1900 | ||
| 1901 | PORT_START_TAG("SENSE") | |
| 1902 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 1903 | INPUT_PORTS_END | |
| 1904 | ||
| 1905 | static INPUT_PORTS_START( trvchlng ) | |
| 1906 | PORT_START_TAG("IN0") | |
| 1907 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1908 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1909 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 1910 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1911 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1912 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON4) | |
| 1913 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1914 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON3 ) | |
| 1915 | ||
| 1916 | PORT_START_TAG("IN1") | |
| 1917 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1918 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1919 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 1920 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1921 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1922 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1923 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1924 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1925 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1926 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1927 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1928 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1929 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1930 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1931 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1932 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1933 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1934 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1935 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1936 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1937 | ||
| 1938 | PORT_START_TAG("DSW0") | |
| 1939 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 1940 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1941 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 1942 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 1943 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1944 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1945 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 1946 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1947 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 1948 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 1949 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1950 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1951 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 1952 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1953 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 1954 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1955 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1956 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1957 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1958 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1959 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1960 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1961 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1962 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1963 | ||
| 1964 | PORT_START_TAG("SENSE") | |
| 1965 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 1966 | INPUT_PORTS_END | |
| 1967 | ||
| 1968 | static INPUT_PORTS_START( catacomb ) | |
| 1969 | PORT_START_TAG("IN0") | |
| 1970 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1971 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1972 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 1973 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 1974 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1975 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 1976 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1977 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 1978 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 1979 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1980 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1981 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1982 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1983 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1984 | ||
| 1985 | PORT_START_TAG("IN1") | |
| 1986 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1987 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1988 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 1989 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 1990 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1991 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 1992 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1993 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 1994 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 1995 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 1996 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 1997 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coin_B ) ) | |
| 1998 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_3C ) ) | |
| 1999 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_5C ) ) | |
| 2000 | ||
| 2001 | PORT_START_TAG("DSW0") | |
| 2002 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 2003 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2004 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 2005 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 2006 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2007 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 2008 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 2009 | PORT_DIPSETTING( 0x04, "3" ) | |
| 2010 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2011 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 2012 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2013 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 2014 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 2015 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2016 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 2017 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 2018 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2019 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 2020 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 2021 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2022 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 2023 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 2024 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2025 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 2026 | ||
| 2027 | PORT_START_TAG("SENSE") | |
| 2028 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_VBLANK ) | |
| 2029 | INPUT_PORTS_END | |
| 2030 | ||
| 2031 | static INPUT_PORTS_START( luctoday ) | |
| 2032 | PORT_START_TAG("IN0") //These inputs are clearly wrong, they need a full test | |
| 2033 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2034 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2035 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT )PORT_2WAY PORT_NAME("Add Credit to Bet") | |
| 2036 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT )PORT_2WAY PORT_NAME("Remove Credit from Bet") | |
| 2037 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2038 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2039 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2040 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BILL1 ) | |
| 2041 | ||
| 2042 | PORT_START_TAG("IN1") | |
| 2043 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2044 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2045 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2046 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2047 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2048 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2049 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2050 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2051 | ||
| 2052 | PORT_START_TAG("DSW0") | |
| 2053 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2054 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2055 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2056 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 2057 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2058 | INPUT_PORTS_END | |
| 2059 | ||
| 2060 | static INPUT_PORTS_START( ckongg ) | |
| 2061 | PORT_START_TAG("IN0") | |
| 2062 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2063 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 2064 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 2065 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 2066 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 2067 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 2068 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 2069 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 2070 | ||
| 2071 | PORT_START_TAG("IN1") | |
| 2072 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 2073 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 2074 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 2075 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 2076 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2077 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 2078 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 2079 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 2080 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2081 | // PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 2082 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 2083 | ||
| 2084 | PORT_START_TAG("DSW0") | |
| 2085 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 2086 | PORT_DIPSETTING( 0x00, "1" ) | |
| 2087 | PORT_DIPSETTING( 0x01, "2" ) | |
| 2088 | PORT_DIPSETTING( 0x02, "3" ) | |
| 2089 | PORT_DIPSETTING( 0x03, "4" ) | |
| 2090 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) | |
| 2091 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2092 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 2093 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) | |
| 2094 | PORT_DIPSETTING( 0x08, "500000" ) | |
| 2095 | PORT_DIPSETTING( 0x00, "750000" ) | |
| 2096 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2097 | INPUT_PORTS_END | |
| 2098 | ||
| 2099 | /* not correct */ | |
| 2100 | static INPUT_PORTS_START( kkgalax ) | |
| 2101 | PORT_START_TAG("IN0") | |
| 2102 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2103 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 2104 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 2105 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 2106 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 2107 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2108 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2109 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 2110 | ||
| 2111 | PORT_START_TAG("IN1") | |
| 2112 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) // button 1 and start 1 | |
| 2113 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL // button 1 and start 2? | |
| 2114 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 2115 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 2116 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2117 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 2118 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 2119 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 2120 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 2121 | // PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 2122 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 2123 | ||
| 2124 | PORT_START_TAG("DSW0") | |
| 2125 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 2126 | PORT_DIPSETTING( 0x00, "1" ) | |
| 2127 | PORT_DIPSETTING( 0x01, "2" ) | |
| 2128 | PORT_DIPSETTING( 0x02, "3" ) | |
| 2129 | PORT_DIPSETTING( 0x03, "4" ) | |
| 2130 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unused ) ) | |
| 2131 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 2132 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 2133 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) | |
| 2134 | PORT_DIPSETTING( 0x08, "500000" ) | |
| 2135 | PORT_DIPSETTING( 0x00, "750000" ) | |
| 2136 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 2137 | INPUT_PORTS_END | |
| 2138 | ||
| 2139 | static INPUT_PORTS_START( porter ) | |
| 2140 | PORT_START_TAG("IN0")\ | |
| 2141 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 2142 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 2143 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 2144 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 2145 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 2146 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 2147 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 2148 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2149 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 2150 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2151 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2152 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 2153 | ||
| 2154 | PORT_START_TAG("IN1") | |
| 2155 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) // and START | |
| 2156 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) // and START2 | |
| 2157 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 2158 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 2159 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 2160 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 2161 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 2162 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2163 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 2164 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2165 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2166 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 2167 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2168 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2169 | ||
| 2170 | PORT_START_TAG("DSW") | |
| 2171 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 2172 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) | |
| 2173 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2174 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) ) | |
| 2175 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 2176 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2177 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 2178 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 2179 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2180 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 2181 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 2182 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2183 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 2184 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) | |
| 2185 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2186 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 2187 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) | |
| 2188 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2189 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 2190 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) | |
| 2191 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2192 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 2193 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) | |
| 2194 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2195 | INPUT_PORTS_END | |
| 2196 | ||
| 2197 | static const gfx_layout galaxold_charlayout = | |
| 2198 | { | |
| 2199 | 8,8, | |
| 2200 | RGN_FRAC(1,2), | |
| 2201 | 2, | |
| 2202 | { RGN_FRAC(0,2), RGN_FRAC(1,2) }, | |
| 2203 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 2204 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 2205 | 8*8 | |
| 2206 | }; | |
| 2207 | static const gfx_layout galaxold_spritelayout = | |
| 2208 | { | |
| 2209 | 16,16, | |
| 2210 | RGN_FRAC(1,2), | |
| 2211 | 2, | |
| 2212 | { RGN_FRAC(0,2), RGN_FRAC(1,2) }, | |
| 2213 | { 0, 1, 2, 3, 4, 5, 6, 7, | |
| 2214 | 8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7 }, | |
| 2215 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, | |
| 2216 | 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 }, | |
| 2217 | 32*8 | |
| 2218 | }; | |
| 2219 | ||
| 2220 | static const gfx_layout pacmanbl_charlayout = | |
| 2221 | { | |
| 2222 | 8,8, | |
| 2223 | 256, | |
| 2224 | 2, | |
| 2225 | { 0, 256*8*8 }, | |
| 2226 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 2227 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 2228 | 8*8 | |
| 2229 | }; | |
| 2230 | static const gfx_layout pacmanbl_spritelayout = | |
| 2231 | { | |
| 2232 | 16,16, | |
| 2233 | 64, | |
| 2234 | 2, | |
| 2235 | { 0, 64*16*16 }, | |
| 2236 | { 0, 1, 2, 3, 4, 5, 6, 7, | |
| 2237 | 8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7 }, | |
| 2238 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, | |
| 2239 | 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 }, | |
| 2240 | 32*8 | |
| 2241 | }; | |
| 2242 | ||
| 2243 | static const gfx_layout bagmanmc_charlayout = | |
| 2244 | { | |
| 2245 | 8,8, | |
| 2246 | 512, | |
| 2247 | 2, | |
| 2248 | { 0, 512*8*8 }, | |
| 2249 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 2250 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 2251 | 8*8 | |
| 2252 | }; | |
| 2253 | ||
| 2254 | static const gfx_layout _4in1_charlayout = | |
| 2255 | { | |
| 2256 | 8,8, | |
| 2257 | 1024, | |
| 2258 | 2, | |
| 2259 | { 0, 1024*8*8 }, | |
| 2260 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 2261 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 2262 | 8*8 | |
| 2263 | }; | |
| 2264 | static const gfx_layout _4in1_spritelayout = | |
| 2265 | { | |
| 2266 | 16,16, | |
| 2267 | 256, | |
| 2268 | 2, | |
| 2269 | { 0, 256*16*16 }, | |
| 2270 | { 0, 1, 2, 3, 4, 5, 6, 7, | |
| 2271 | 8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7 }, | |
| 2272 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, | |
| 2273 | 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 }, | |
| 2274 | 32*8 | |
| 2275 | }; | |
| 2276 | ||
| 2277 | static const gfx_layout rockclim_charlayout = | |
| 2278 | { | |
| 2279 | 8,8, | |
| 2280 | 256, | |
| 2281 | 4,//? | |
| 2282 | { 4, 0,4096*8+4,4096*8 }, | |
| 2283 | { 3, 2, 1, 0,11 ,10, 9, 8 }, | |
| 2284 | { 0*8*2, 1*8*2, 2*8*2, 3*8*2, 4*8*2, 5*8*2, 6*8*2, 7*8*2 }, | |
| 2285 | 8*8*2 | |
| 2286 | }; | |
| 2287 | ||
| 2288 | static GFXDECODE_START( rockclim ) | |
| 2289 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxold_charlayout, 32, 8 ) | |
| 2290 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxold_spritelayout, 32, 8 ) | |
| 2291 | GFXDECODE_ENTRY( REGION_GFX2, 0x0000, rockclim_charlayout, 0, 1 ) | |
| 2292 | GFXDECODE_END | |
| 2293 | ||
| 2294 | ||
| 2295 | ||
| 2296 | ||
| 2297 | static GFXDECODE_START( galaxian ) | |
| 2298 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxold_charlayout, 0, 8 ) | |
| 2299 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxold_spritelayout, 0, 8 ) | |
| 2300 | GFXDECODE_END | |
| 2301 | ||
| 2302 | static GFXDECODE_START( gmgalax ) | |
| 2303 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxold_charlayout, 0, 16 ) | |
| 2304 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, galaxold_spritelayout, 0, 16 ) | |
| 2305 | GFXDECODE_END | |
| 2306 | ||
| 2307 | /* separate character and sprite ROMs */ | |
| 2308 | static GFXDECODE_START( pacmanbl ) | |
| 2309 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, pacmanbl_charlayout, 0, 8 ) | |
| 2310 | GFXDECODE_ENTRY( REGION_GFX1, 0x1000, pacmanbl_spritelayout, 0, 8 ) | |
| 2311 | GFXDECODE_END | |
| 2312 | ||
| 2313 | static GFXDECODE_START( bagmanmc ) | |
| 2314 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, bagmanmc_charlayout, 0, 8 ) | |
| 2315 | GFXDECODE_ENTRY( REGION_GFX1, 0x2000, pacmanbl_spritelayout, 0, 8 ) | |
| 2316 | GFXDECODE_END | |
| 2317 | ||
| 2318 | static GFXDECODE_START( _4in1 ) | |
| 2319 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, _4in1_charlayout, 0, 8 ) | |
| 2320 | GFXDECODE_ENTRY( REGION_GFX1, 0x4000, _4in1_spritelayout, 0, 8 ) | |
| 2321 | GFXDECODE_END | |
| 2322 | ||
| 2323 | static const struct AY8910interface checkmaj_ay8910_interface = | |
| 2324 | { | |
| 2325 | soundlatch_r | |
| 2326 | }; | |
| 2327 | ||
| 2328 | static const struct AY8910interface bongo_ay8910_interface = | |
| 2329 | { | |
| 2330 | input_port_3_r | |
| 2331 | }; | |
| 2332 | ||
| 2333 | ||
| 2334 | static MACHINE_DRIVER_START( galaxold_base ) | |
| 2335 | ||
| 2336 | /* basic machine hardware */ | |
| 2337 | MDRV_CPU_ADD_TAG("main", Z80, PIXEL_CLOCK/2) /* 3.072 MHz */ | |
| 2338 | MDRV_CPU_PROGRAM_MAP(galaxold_readmem,galaxold_writemem) | |
| 2339 | ||
| 2340 | MDRV_MACHINE_RESET(galaxold) | |
| 2341 | ||
| 2342 | /* video hardware */ | |
| 2343 | MDRV_GFXDECODE(galaxian) | |
| 2344 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ | |
| 2345 | ||
| 2346 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2347 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 2348 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 2349 | ||
| 2350 | MDRV_PALETTE_INIT(galaxold) | |
| 2351 | MDRV_VIDEO_START(galaxold) | |
| 2352 | MDRV_VIDEO_UPDATE(galaxold) | |
| 2353 | ||
| 2354 | /* sound hardware */ | |
| 2355 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 2356 | MACHINE_DRIVER_END | |
| 2357 | ||
| 2358 | ||
| 2359 | static MACHINE_DRIVER_START( galaxian ) | |
| 2360 | ||
| 2361 | /* basic machine hardware */ | |
| 2362 | MDRV_IMPORT_FROM(galaxold_base) | |
| 2363 | ||
| 2364 | /* sound hardware */ | |
| 2365 | MDRV_SOUND_ADD(SAMPLES, 0) | |
| 2366 | MDRV_SOUND_CONFIG(galaxian_samples_interface) | |
| 2367 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2368 | MACHINE_DRIVER_END | |
| 2369 | ||
| 2370 | ||
| 2371 | static MACHINE_DRIVER_START( batman2 ) | |
| 2372 | ||
| 2373 | /* basic machine hardware */ | |
| 2374 | MDRV_IMPORT_FROM(galaxian) | |
| 2375 | ||
| 2376 | /* video hardware */ | |
| 2377 | MDRV_VIDEO_START(batman2) | |
| 2378 | MACHINE_DRIVER_END | |
| 2379 | ||
| 2380 | ||
| 2381 | static MACHINE_DRIVER_START( mooncrst ) | |
| 2382 | ||
| 2383 | /* basic machine hardware */ | |
| 2384 | MDRV_IMPORT_FROM(galaxian) | |
| 2385 | MDRV_CPU_MODIFY("main") | |
| 2386 | MDRV_CPU_PROGRAM_MAP(mooncrst_readmem,mooncrst_writemem) | |
| 2387 | ||
| 2388 | /* video hardware */ | |
| 2389 | MDRV_VIDEO_START(mooncrst) | |
| 2390 | MACHINE_DRIVER_END | |
| 2391 | ||
| 2392 | ||
| 2393 | static MACHINE_DRIVER_START( scramblb ) | |
| 2394 | ||
| 2395 | /* basic machine hardware */ | |
| 2396 | MDRV_IMPORT_FROM(galaxian) | |
| 2397 | MDRV_CPU_MODIFY("main") | |
| 2398 | MDRV_CPU_PROGRAM_MAP(scramblb_readmem,scramblb_writemem) | |
| 2399 | ||
| 2400 | /* video hardware */ | |
| 2401 | MDRV_PALETTE_LENGTH(32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */ | |
| 2402 | ||
| 2403 | MDRV_PALETTE_INIT(scrambold) | |
| 2404 | MDRV_VIDEO_START(scrambold) | |
| 2405 | MACHINE_DRIVER_END | |
| 2406 | ||
| 2407 | static MACHINE_DRIVER_START( scramb2 ) | |
| 2408 | ||
| 2409 | /* basic machine hardware */ | |
| 2410 | MDRV_IMPORT_FROM(galaxian) | |
| 2411 | MDRV_CPU_MODIFY("main") | |
| 2412 | MDRV_CPU_PROGRAM_MAP(scramb2_readmem,scramb2_writemem) | |
| 2413 | ||
| 2414 | /* video hardware */ | |
| 2415 | MDRV_PALETTE_LENGTH(32+2+64+1) /* 32 for the characters, 2 for the bullets, 64 for the stars, 1 for background */ | |
| 2416 | ||
| 2417 | MDRV_PALETTE_INIT(scrambold) | |
| 2418 | MDRV_VIDEO_START(scrambold) | |
| 2419 | MACHINE_DRIVER_END | |
| 2420 | ||
| 2421 | ||
| 2422 | ||
| 2423 | static MACHINE_DRIVER_START( 4in1 ) | |
| 2424 | ||
| 2425 | /* basic machine hardware */ | |
| 2426 | MDRV_IMPORT_FROM(galaxian) | |
| 2427 | MDRV_CPU_MODIFY("main") | |
| 2428 | MDRV_CPU_PROGRAM_MAP(_4in1_readmem,_4in1_writemem) | |
| 2429 | ||
| 2430 | /* video hardware */ | |
| 2431 | MDRV_GFXDECODE(_4in1) | |
| 2432 | ||
| 2433 | MDRV_VIDEO_START(pisces) | |
| 2434 | MACHINE_DRIVER_END | |
| 2435 | ||
| 2436 | ||
| 2437 | static MACHINE_DRIVER_START( bagmanmc ) | |
| 2438 | ||
| 2439 | /* basic machine hardware */ | |
| 2440 | MDRV_IMPORT_FROM(galaxian) | |
| 2441 | MDRV_CPU_MODIFY("main") | |
| 2442 | MDRV_CPU_PROGRAM_MAP(bagmanmc_readmem,bagmanmc_writemem) | |
| 2443 | ||
| 2444 | MDRV_MACHINE_RESET( devilfsg ) | |
| 2445 | ||
| 2446 | /* video hardware */ | |
| 2447 | MDRV_GFXDECODE(bagmanmc) | |
| 2448 | ||
| 2449 | MDRV_VIDEO_START(pisces) | |
| 2450 | MACHINE_DRIVER_END | |
| 2451 | ||
| 2452 | ||
| 2453 | static MACHINE_DRIVER_START( dkongjrm ) | |
| 2454 | ||
| 2455 | /* basic machine hardware */ | |
| 2456 | MDRV_IMPORT_FROM(galaxian) | |
| 2457 | MDRV_CPU_MODIFY("main") | |
| 2458 | MDRV_CPU_PROGRAM_MAP(dkongjrm_readmem,dkongjrm_writemem) | |
| 2459 | ||
| 2460 | /* video hardware */ | |
| 2461 | MDRV_VIDEO_START(dkongjrm) | |
| 2462 | MACHINE_DRIVER_END | |
| 2463 | ||
| 2464 | static MACHINE_DRIVER_START( rockclim ) | |
| 2465 | /* basic machine hardware */ | |
| 2466 | MDRV_IMPORT_FROM(galaxian) | |
| 2467 | MDRV_CPU_MODIFY("main") | |
| 2468 | MDRV_CPU_PROGRAM_MAP(rockclim_readmem,rockclim_writemem) | |
| 2469 | MDRV_GFXDECODE(rockclim) | |
| 2470 | /* video hardware */ | |
| 2471 | MDRV_VIDEO_START(rockclim) | |
| 2472 | MDRV_PALETTE_LENGTH(64+64+2) /* 64 colors only, but still uses bullets so we need to keep the palette big */ | |
| 2473 | MDRV_PALETTE_INIT(rockclim) | |
| 2474 | ||
| 2475 | MDRV_SCREEN_MODIFY("main") | |
| 2476 | MDRV_SCREEN_SIZE(64*8, 32*8) | |
| 2477 | ||
| 2478 | MACHINE_DRIVER_END | |
| 2479 | ||
| 2480 | static MACHINE_DRIVER_START( ozon1 ) | |
| 2481 | /* basic machine hardware */ | |
| 2482 | MDRV_IMPORT_FROM(galaxold_base) | |
| 2483 | MDRV_CPU_MODIFY("main") | |
| 2484 | MDRV_CPU_PROGRAM_MAP(ozon1_readmem,ozon1_writemem) | |
| 2485 | MDRV_CPU_IO_MAP(0,ozon1_writeport) | |
| 2486 | MDRV_CPU_VBLANK_INT("main", nmi_line_pulse) | |
| 2487 | ||
| 2488 | MDRV_MACHINE_RESET(NULL) | |
| 2489 | ||
| 2490 | MDRV_PALETTE_INIT(rockclim) | |
| 2491 | MDRV_PALETTE_LENGTH(32) | |
| 2492 | ||
| 2493 | MDRV_VIDEO_START(galaxold_plain) | |
| 2494 | MDRV_SOUND_ADD(AY8910, 1789750) | |
| 2495 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 2496 | MACHINE_DRIVER_END | |
| 2497 | ||
| 2498 | static MACHINE_DRIVER_START( drivfrcg ) | |
| 2499 | ||
| 2500 | /* basic machine hardware */ | |
| 2501 | MDRV_CPU_ADD(S2650, 18432000/6) | |
| 2502 | MDRV_CPU_PROGRAM_MAP(drivfrcg,0) | |
| 2503 | MDRV_CPU_IO_MAP(drivfrcg_io,0) | |
| 2504 | MDRV_CPU_VBLANK_INT("main", hunchbks_vh_interrupt) | |
| 2505 | ||
| 2506 | ||
| 2507 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2508 | MDRV_SCREEN_REFRESH_RATE(16000.0/132/2) | |
| 2509 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 2510 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 2511 | MDRV_SCREEN_SIZE(32*8, 32*8) | |
| 2512 | MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1) | |
| 2513 | ||
| 2514 | MDRV_PALETTE_LENGTH(64) | |
| 2515 | MDRV_GFXDECODE(gmgalax) | |
| 2516 | ||
| 2517 | MDRV_PALETTE_INIT(rockclim) | |
| 2518 | ||
| 2519 | MDRV_VIDEO_START(drivfrcg) | |
| 2520 | MDRV_VIDEO_UPDATE(galaxold) | |
| 2521 | ||
| 2522 | /* sound hardware */ | |
| 2523 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 2524 | MDRV_SOUND_ADD(SAMPLES, 0) | |
| 2525 | MDRV_SOUND_CONFIG(galaxian_samples_interface) | |
| 2526 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2527 | MACHINE_DRIVER_END | |
| 2528 | ||
| 2529 | static MACHINE_DRIVER_START( bongo ) | |
| 2530 | /* basic machine hardware */ | |
| 2531 | MDRV_IMPORT_FROM(galaxold_base) | |
| 2532 | MDRV_CPU_MODIFY("main") | |
| 2533 | MDRV_CPU_PROGRAM_MAP(bongo,0) | |
| 2534 | MDRV_CPU_IO_MAP(bongo_io,0) | |
| 2535 | ||
| 2536 | MDRV_VIDEO_START(bongo) | |
| 2537 | MDRV_VIDEO_UPDATE(galaxold) | |
| 2538 | ||
| 2539 | MDRV_SOUND_ADD(AY8910, 1789750) | |
| 2540 | MDRV_SOUND_CONFIG(bongo_ay8910_interface) | |
| 2541 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 2542 | MACHINE_DRIVER_END | |
| 2543 | ||
| 2544 | static MACHINE_DRIVER_START( hunchbkg ) | |
| 2545 | ||
| 2546 | /* basic machine hardware */ | |
| 2547 | MDRV_CPU_ADD(S2650, PIXEL_CLOCK/2) | |
| 2548 | MDRV_CPU_PROGRAM_MAP(hunchbkg,0) | |
| 2549 | MDRV_CPU_IO_MAP(hunchbkg_io,0) | |
| 2550 | MDRV_CPU_VBLANK_INT("main", hunchbks_vh_interrupt) | |
| 2551 | ||
| 2552 | MDRV_GFXDECODE(galaxian) | |
| 2553 | MDRV_PALETTE_LENGTH(32+2+64) /* 32 for the characters, 2 for the bullets, 64 for the stars */ | |
| 2554 | ||
| 2555 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2556 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 2557 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 2558 | ||
| 2559 | MDRV_PALETTE_INIT(galaxold) | |
| 2560 | ||
| 2561 | MDRV_VIDEO_UPDATE(galaxold) | |
| 2562 | MDRV_VIDEO_START(galaxold_plain) | |
| 2563 | ||
| 2564 | /* sound hardware */ | |
| 2565 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 2566 | MDRV_SOUND_ADD(SAMPLES, 0) | |
| 2567 | MDRV_SOUND_CONFIG(galaxian_samples_interface) | |
| 2568 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2569 | MACHINE_DRIVER_END | |
| 2570 | ||
| 2571 | static MACHINE_DRIVER_START( harem ) | |
| 2572 | /* basic machine hardware */ | |
| 2573 | MDRV_IMPORT_FROM(galaxold_base) | |
| 2574 | MDRV_CPU_MODIFY("main") | |
| 2575 | MDRV_CPU_PROGRAM_MAP(harem_cpu1,0) | |
| 2576 | MDRV_CPU_VBLANK_INT("main", nmi_line_pulse) | |
| 2577 | ||
| 2578 | MDRV_CPU_ADD(Z80, 1620000) | |
| 2579 | /* audio CPU */ | |
| 2580 | MDRV_CPU_PROGRAM_MAP(harem_cpu2,0) | |
| 2581 | MDRV_CPU_IO_MAP(harem_cpu2_io,0) | |
| 2582 | ||
| 2583 | MDRV_MACHINE_RESET(NULL) | |
| 2584 | ||
| 2585 | MDRV_PALETTE_INIT(rockclim) | |
| 2586 | MDRV_PALETTE_LENGTH(32) | |
| 2587 | ||
| 2588 | MDRV_VIDEO_START(galaxold_plain) | |
| 2589 | ||
| 2590 | MDRV_SOUND_ADD(AY8910, 2000000) | |
| 2591 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33/3) | |
| 2592 | ||
| 2593 | MDRV_SOUND_ADD(AY8910, 2000000) | |
| 2594 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33/3) | |
| 2595 | ||
| 2596 | MDRV_SOUND_ADD(AY8910, 2000000) | |
| 2597 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33/3) | |
| 2598 | MACHINE_DRIVER_END | |
| 2599 | ||
| 2600 | static MACHINE_DRIVER_START( tazzmang ) | |
| 2601 | /* basic machine hardware */ | |
| 2602 | MDRV_IMPORT_FROM(galaxian) | |
| 2603 | MDRV_CPU_MODIFY("main") | |
| 2604 | MDRV_CPU_PROGRAM_MAP(tazzmang,0) | |
| 2605 | MACHINE_DRIVER_END | |
| 2606 | ||
| 2607 | static MACHINE_DRIVER_START( racknrol ) | |
| 2608 | ||
| 2609 | /* basic machine hardware */ | |
| 2610 | MDRV_CPU_ADD(S2650, PIXEL_CLOCK/2) | |
| 2611 | MDRV_CPU_PROGRAM_MAP(racknrol,0) | |
| 2612 | MDRV_CPU_IO_MAP(racknrol_io,0) | |
| 2613 | MDRV_CPU_VBLANK_INT("main", hunchbks_vh_interrupt) | |
| 2614 | ||
| 2615 | MDRV_GFXDECODE(galaxian) | |
| 2616 | MDRV_PALETTE_LENGTH(32) | |
| 2617 | ||
| 2618 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2619 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 2620 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 2621 | ||
| 2622 | MDRV_PALETTE_INIT(rockclim) | |
| 2623 | MDRV_VIDEO_UPDATE(galaxold) | |
| 2624 | MDRV_VIDEO_START(racknrol) | |
| 2625 | ||
| 2626 | /* sound hardware */ | |
| 2627 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 2628 | MDRV_SOUND_ADD(SN76496, PIXEL_CLOCK/2) | |
| 2629 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2630 | ||
| 2631 | MDRV_SOUND_ADD(SN76496, PIXEL_CLOCK/2) | |
| 2632 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2633 | ||
| 2634 | MDRV_SOUND_ADD(SN76496, PIXEL_CLOCK/2) | |
| 2635 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2636 | MACHINE_DRIVER_END | |
| 2637 | ||
| 2638 | static MACHINE_DRIVER_START( ckongg ) | |
| 2639 | ||
| 2640 | /* basic machine hardware */ | |
| 2641 | MDRV_IMPORT_FROM(galaxian) | |
| 2642 | MDRV_CPU_MODIFY("main") | |
| 2643 | MDRV_CPU_PROGRAM_MAP(ckongg_readmem,ckongg_writemem) | |
| 2644 | ||
| 2645 | MDRV_GFXDECODE(gmgalax) | |
| 2646 | ||
| 2647 | MDRV_VIDEO_START(ckongs) | |
| 2648 | ||
| 2649 | MACHINE_DRIVER_END | |
| 2650 | ||
| 2651 | static MACHINE_DRIVER_START( kkgalax ) | |
| 2652 | ||
| 2653 | /* basic machine hardware */ | |
| 2654 | MDRV_IMPORT_FROM(galaxian) | |
| 2655 | MDRV_CPU_MODIFY("main") | |
| 2656 | MDRV_CPU_PROGRAM_MAP(kkgalax_readmem,kkgalax_writemem) | |
| 2657 | ||
| 2658 | MDRV_GFXDECODE(gmgalax) | |
| 2659 | ||
| 2660 | MDRV_VIDEO_START(ckongs) | |
| 2661 | ||
| 2662 | MACHINE_DRIVER_END | |
| 2663 | ||
| 2664 | ||
| 2665 | static MACHINE_DRIVER_START( hexpoola ) | |
| 2666 | ||
| 2667 | /* basic machine hardware */ | |
| 2668 | MDRV_CPU_ADD(S2650, PIXEL_CLOCK/2) | |
| 2669 | MDRV_CPU_PROGRAM_MAP(racknrol,0) | |
| 2670 | MDRV_CPU_IO_MAP(hexpoola_io,0) | |
| 2671 | MDRV_CPU_VBLANK_INT("main", hunchbks_vh_interrupt) | |
| 2672 | ||
| 2673 | MDRV_GFXDECODE(galaxian) | |
| 2674 | MDRV_PALETTE_LENGTH(32) | |
| 2675 | ||
| 2676 | MDRV_SCREEN_ADD("main", RASTER) | |
| 2677 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 2678 | MDRV_SCREEN_RAW_PARAMS(PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) | |
| 2679 | ||
| 2680 | MDRV_PALETTE_INIT(rockclim) | |
| 2681 | MDRV_VIDEO_UPDATE(galaxold) | |
| 2682 | MDRV_VIDEO_START(racknrol) | |
| 2683 | ||
| 2684 | /* sound hardware */ | |
| 2685 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 2686 | MDRV_SOUND_ADD(SN76496, PIXEL_CLOCK/2) | |
| 2687 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 2688 | MACHINE_DRIVER_END | |
| 2689 | ||
| 2690 | /*************************************************************************** | |
| 2691 | ||
| 2692 | Game driver(s) | |
| 2693 | ||
| 2694 | ***************************************************************************/ | |
| 2695 | ||
| 2696 | ROM_START( scramblb ) | |
| 2697 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2698 | ROM_LOAD( "scramble.1k", 0x0000, 0x0800, CRC(9e025c4a) SHA1(a8cc9391bdd01a5a2fe7f0c4e889b4e2495df891) ) | |
| 2699 | ROM_LOAD( "scramble.2k", 0x0800, 0x0800, CRC(306f783e) SHA1(92d19f90f1123cd211706294d668ab23c8b0760b) ) | |
| 2700 | ROM_LOAD( "scramble.3k", 0x1000, 0x0800, CRC(0500b701) SHA1(54c84ccad2aae34f42fdddcfcd92cd9da2cd7119) ) | |
| 2701 | ROM_LOAD( "scramble.4k", 0x1800, 0x0800, CRC(dd380a22) SHA1(125e713a58cc5f2c1e38f67dad29f8c985ce5a8b) ) | |
| 2702 | ROM_LOAD( "scramble.5k", 0x2000, 0x0800, CRC(df0b9648) SHA1(4ae9150c9441897d5ab7c5a0b3f10e1e8c8e2f6c) ) | |
| 2703 | ROM_LOAD( "scramble.1j", 0x2800, 0x0800, CRC(b8c07b3c) SHA1(33eaedef4b7f49eeef072425541c17206d0a00ec) ) | |
| 2704 | ROM_LOAD( "scramble.2j", 0x3000, 0x0800, CRC(88ac07a0) SHA1(c57061db5984b472039356bf84a050b5b66e3813) ) | |
| 2705 | ROM_LOAD( "scramble.3j", 0x3800, 0x0800, CRC(c67d57ca) SHA1(ba8b14289aef47d48d9750cf2ef3c368e74a60e8) ) | |
| 2706 | ||
| 2707 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2708 | ROM_LOAD( "5f.k", 0x0000, 0x0800, CRC(4708845b) SHA1(a8b1ad19a95a9d35050a2ab7194cc96fc5afcdc9) ) | |
| 2709 | ROM_LOAD( "5h.k", 0x0800, 0x0800, CRC(11fd2887) SHA1(69844e48bb4d372cac7ae83c953df573c7ecbb7f) ) | |
| 2710 | ||
| 2711 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2712 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 2713 | ROM_END | |
| 2714 | ||
| 2715 | ||
| 2716 | ROM_START( scramb2 ) | |
| 2717 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2718 | ROM_LOAD( "r1.7f1", 0x0000, 0x0800, CRC(4a43148c) SHA1(ea27fd3acf661101296a58a7a50fb8e4d5292760) ) | |
| 2719 | ROM_LOAD( "r1.7f2", 0x0800, 0x0800, CRC(215a3b86) SHA1(bfddfea9f74064123629d89556240c7a59f7bea2) ) | |
| 2720 | ROM_LOAD( "r2.7h1", 0x1000, 0x0800, CRC(28779444) SHA1(0abd3a89c8cdd5af2ac06afd38bcd2dcd6010bee) ) | |
| 2721 | ROM_LOAD( "r2.7h2", 0x1800, 0x0800, CRC(5b4b300b) SHA1(6d69dbdab66bc8f4a16c3d9d3b4581799e4bbfab) ) | |
| 2722 | ROM_LOAD( "r3.7k1", 0x2000, 0x0800, CRC(b478aa53) SHA1(68cf134482092534ef0a3ceee3aa842f86660065) ) | |
| 2723 | ROM_LOAD( "r3.7k2", 0x2800, 0x0800, CRC(c33f072e) SHA1(28d61e35f3d5c971e070d7e0cc20b831fe8d52c5) ) | |
| 2724 | ROM_LOAD( "r4.7l1", 0x3000, 0x0800, CRC(88ac07a0) SHA1(c57061db5984b472039356bf84a050b5b66e3813) ) | |
| 2725 | ROM_LOAD( "r4.7l2", 0x3800, 0x0800, CRC(321fd003) SHA1(61f33c2709913da4cb20f311501df707d755917e) ) | |
| 2726 | /* Also exists in the following Rom config */ | |
| 2727 | // ROM_LOAD( "r1.7f", 0x0000, 0x1000, CRC(75208a74) SHA1(e77afe4b906d08d6763f31dd70d7cb772be97102) ) | |
| 2728 | // ROM_LOAD( "r2.7h", 0x1000, 0x1000, CRC(f2179cf5) SHA1(5c38aa9bd1d5ebdccf16d2e50acc56f0b3f042d0) ) | |
| 2729 | // ROM_LOAD( "r3.7k", 0x2000, 0x1000, CRC(941c804e) SHA1(f1eedf719a234cf98071e6a46120765e231f0730) ) | |
| 2730 | // ROM_LOAD( "r4.7l", 0x3000, 0x1000, CRC(f1506edc) SHA1(66689bb3d7570848e4d020a5f44d6de03b4bff99) ) | |
| 2731 | ||
| 2732 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2733 | ROM_LOAD( "r6.1j", 0x0000, 0x0800, CRC(4708845b) SHA1(a8b1ad19a95a9d35050a2ab7194cc96fc5afcdc9) ) | |
| 2734 | ROM_LOAD( "r5.1l", 0x0800, 0x0800, CRC(11fd2887) SHA1(69844e48bb4d372cac7ae83c953df573c7ecbb7f) ) | |
| 2735 | ||
| 2736 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2737 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 2738 | ROM_END | |
| 2739 | ||
| 2740 | ||
| 2741 | ROM_START( 4in1 ) | |
| 2742 | ROM_REGION( 0x20000, REGION_CPU1, 0 ) /* 64k for code 64k for banked code, encrypted */ | |
| 2743 | /* Menu Code, Fixed at 0xc000 - 0xdfff */ | |
| 2744 | ROM_LOAD( "rom1a", 0xc000, 0x1000, CRC(ce1af4d9) SHA1(260d81cb703ab33fa5f282454214dea06e59a5d6) ) | |
| 2745 | ROM_LOAD( "rom1b", 0xd000, 0x1000, CRC(18484f9b) SHA1(2439841ba5882c287bd9656fbf79190ff9efe4ee) ) | |
| 2746 | /* Ghost Muncher PT3 - banked at 0x0000 - 0x3fff */ | |
| 2747 | ROM_LOAD( "rom1c", 0x10000, 0x1000, CRC(83248a8b) SHA1(65af22b9a4516ab52c3327cb3b714d90c2c77284) ) | |
| 2748 | ROM_LOAD( "rom1d", 0x11000, 0x1000, CRC(053f6da0) SHA1(fa69de09a2162dfaa82ea566f0808433f26e4854) ) | |
| 2749 | ROM_LOAD( "rom1e", 0x12000, 0x1000, CRC(43c546f3) SHA1(c32a2281f8dca1f2b218dc76192d8e09f2eee460) ) | |
| 2750 | ROM_LOAD( "rom1f", 0x13000, 0x1000, CRC(3a086b46) SHA1(1fd65fd139a650a5c246cead5141b81764faf98c) ) | |
| 2751 | /* Scramble PT2 - banked at 0x0000 - 0x3fff */ | |
| 2752 | ROM_LOAD( "rom1g", 0x14000, 0x1000, CRC(ac0e2050) SHA1(02961a41f54d55f2ae07a2694a14fb6e6e4a766b) ) | |
| 2753 | ROM_LOAD( "rom1h", 0x15000, 0x1000, CRC(dc11a513) SHA1(2785c08d890f2f8e86b7f793f7989d7605570cc3) ) | |
| 2754 | ROM_LOAD( "rom1i", 0x16000, 0x1000, CRC(a5fb6be4) SHA1(f575ca70037134084aff152fcee7fdd0a1163c33) ) | |
| 2755 | ROM_LOAD( "rom1j", 0x17000, 0x1000, CRC(9054cfbe) SHA1(99ad74491cf8682daf45f2786e0bf275160c9826) ) | |
| 2756 | /* Galaxian PT5 - banked at 0x0000 - 0x3fff */ | |
| 2757 | ROM_LOAD( "rom2c", 0x18000, 0x1000, CRC(7cd98e11) SHA1(7ef49866a5c5fd871acf5bfe3d899a9ae0d37405) ) | |
| 2758 | ROM_LOAD( "rom2d", 0x19000, 0x1000, CRC(9402f32e) SHA1(feb5cb09ea719612a22949f34fb97e172305c7b0) ) | |
| 2759 | ROM_LOAD( "rom2e", 0x1a000, 0x1000, CRC(468e81df) SHA1(4ac30c170ce63637c77227833cef8839e2b0b8ab) ) | |
| 2760 | /* Galactic Convoy - banked at 0x0000 - 0x3fff */ | |
| 2761 | ROM_LOAD( "rom2g", 0x1c000, 0x1000, CRC(b1ce3976) SHA1(365e643948e982126198714bb1e07340ded7d4a5) ) | |
| 2762 | ROM_LOAD( "rom2h", 0x1d000, 0x1000, CRC(7eab5670) SHA1(d9648fc314bc6a685536c6acb17b17737813d902) ) | |
| 2763 | ROM_LOAD( "rom2i", 0x1e000, 0x1000, CRC(44565ac5) SHA1(cc8141cbdb9280a15b40761448e00a3b30a94ec7) ) | |
| 2764 | ||
| 2765 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2766 | /* Ghost Muncher PT3 GFX */ | |
| 2767 | ROM_LOAD( "rom4b", 0x4000, 0x0800, CRC(7e6495af) SHA1(32db70bca5c60eea6b37a943e076bc5a8dc3870b) ) | |
| 2768 | ROM_CONTINUE( 0x0000, 0x0800 ) | |
| 2769 | ROM_LOAD( "rom3b", 0x6000, 0x0800, CRC(7475f72f) SHA1(834873b6a587760cbbd0ac9435af55f6cb20097a) ) | |
| 2770 | ROM_CONTINUE( 0x2000, 0x0800 ) | |
| 2771 | /* Scramble PT2 GFX */ | |
| 2772 | ROM_LOAD( "rom4c", 0x4800, 0x0800, CRC(3355d46d) SHA1(e5476d2053298958f141e11a97017ea465621d89) ) | |
| 2773 | ROM_RELOAD( 0x0800, 0x0800) | |
| 2774 | ROM_LOAD( "rom3c", 0x6800, 0x0800, CRC(ac755a25) SHA1(70af05d32554682be6c3f74936e57b4050d283c7) ) | |
| 2775 | ROM_RELOAD( 0x2800, 0x0800) | |
| 2776 | /* Galaxians PT5 GFX */ | |
| 2777 | ROM_LOAD( "rom4d", 0x5000, 0x0800, CRC(bbdddb65) SHA1(fc2dcfd969b1ee51a6413117e83f8a0c29278658) ) | |
| 2778 | ROM_CONTINUE( 0x1000, 0x0800) | |
| 2779 | ROM_LOAD( "rom3d", 0x7000, 0x0800, CRC(91a00204) SHA1(eea8a8bd8439260dde9131693e9b53b0238ce7a7) ) | |
| 2780 | ROM_CONTINUE( 0x3000, 0x0800) | |
| 2781 | /* Galactic Convoy GFX */ | |
| 2782 | ROM_LOAD( "rom4e", 0x5800, 0x0800, CRC(0cb9e297) SHA1(a9be2951851deed0ffefb980fc7751a399dc131e) ) | |
| 2783 | ROM_CONTINUE( 0x1800, 0x0800 ) | |
| 2784 | ROM_LOAD( "rom3e", 0x7800, 0x0800, CRC(a1fe77f9) SHA1(dc7972b7aa77fb4f95d7349d4cd7fc4674f9032d) ) | |
| 2785 | ROM_CONTINUE( 0x3800, 0x0800 ) | |
| 2786 | ||
| 2787 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2788 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2789 | ROM_END | |
| 2790 | ||
| 2791 | ROM_START( bagmanmc ) | |
| 2792 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2793 | ROM_LOAD( "b1.bin", 0x0000, 0x1000, CRC(b74c75ee) SHA1(620083c30136e24a37b79eb4647d99b997107693) ) | |
| 2794 | ROM_LOAD( "b2.bin", 0x1000, 0x1000, CRC(a7d99916) SHA1(13185e8ff6de92ad5135895e5a7fc8b956f009d3) ) | |
| 2795 | ROM_LOAD( "b3.bin", 0x2000, 0x1000, CRC(c78f5360) SHA1(7ce9e94c33f1b8e60cc12a3df5f9555f1ca6130f) ) | |
| 2796 | ROM_LOAD( "b4.bin", 0x3000, 0x1000, CRC(eebd3bd1) SHA1(03200383e87b0759f607888d9b290a0a777b597e) ) | |
| 2797 | ROM_LOAD( "b5.bin", 0x4000, 0x1000, CRC(0fe24b8c) SHA1(205a36fd346d49d2dda6911198295e202caae81f) ) | |
| 2798 | ROM_LOAD( "b6.bin", 0x5000, 0x1000, CRC(f50390e7) SHA1(b4ebe647458c26e52461750d63856aea4262f110) ) | |
| 2799 | ||
| 2800 | ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2801 | ROM_LOAD( "g1-u.bin", 0x0000, 0x0800, CRC(b63cfae4) SHA1(3e0cb3dbeec8ad790bc482176ca599721bac31ee) ) | |
| 2802 | ROM_CONTINUE( 0x2000, 0x0800 ) | |
| 2803 | ROM_LOAD( "g2-u.bin", 0x1000, 0x0800, CRC(a2790089) SHA1(7eb8634f26f6af52fb79bf90ec90b4e258c7c79f) ) | |
| 2804 | ROM_CONTINUE( 0x2800, 0x0800 ) | |
| 2805 | ROM_LOAD( "g1-l.bin", 0x0800, 0x0800, CRC(2ae6b5ab) SHA1(59bdebf75d28a247293440ec2ad83eaf30e3de00) ) | |
| 2806 | ROM_LOAD( "g2-l.bin", 0x1800, 0x0800, CRC(98b37397) SHA1(29914435a10cebbbce04382c45e13a64a0cd18cb) ) | |
| 2807 | ||
| 2808 | ||
| 2809 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2810 | ROM_LOAD( "bagmanmc.clr", 0x0000, 0x0020, NO_DUMP ) // missing | |
| 2811 | ROM_END | |
| 2812 | ||
| 2813 | ROM_START( dkongjrm ) | |
| 2814 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2815 | ROM_LOAD( "a1", 0x0000, 0x1000, CRC(299486e9) SHA1(cc4143ff8cb7a37c151bebab007a932381ae733b) ) | |
| 2816 | ROM_LOAD( "a2", 0x1000, 0x1000, CRC(a74a193b) SHA1(46f208293c0944b468550738d1238de9b672f403) ) | |
| 2817 | ROM_LOAD( "b2", 0x2000, 0x1000, CRC(7bc4f236) SHA1(84e7f5fcbea7d047f2a9a9006ae3ed646417c5e0) ) | |
| 2818 | ROM_LOAD( "c1", 0x3000, 0x1000, CRC(0f594c21) SHA1(eb15bd9cc37794786e2ad24753172e88aa7c4f98) ) | |
| 2819 | ROM_LOAD( "d1", 0x4000, 0x1000, CRC(cf7d7296) SHA1(9a817eca2ebef3f5208bb29ee7eece2ec0efe158) ) | |
| 2820 | ROM_LOAD( "e2", 0x5000, 0x1000, CRC(f7528a52) SHA1(e9d3c57934ee97fcc1f17ecdf3bc954574212220) ) | |
| 2821 | ROM_LOAD( "f1", 0x7000, 0x1000, CRC(9b1d4cc5) SHA1(9a412fec82f39b9389ff99cceba2e49b2a74df17) ) | |
| 2822 | ||
| 2823 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2824 | ROM_LOAD( "v_3pa.bin", 0x0000, 0x1000, CRC(4974ffef) SHA1(7bb1e207dd3c5214e405bf32c57ec1b048061050) ) | |
| 2825 | ROM_LOAD( "a2.gfx", 0x1000, 0x1000, CRC(51845eaf) SHA1(43970d69329f3d49ea1ff57d54abe8340ceef275) ) | |
| 2826 | ROM_LOAD( "v_3na.bin", 0x2000, 0x1000, CRC(a95c4c63) SHA1(75e312b6872958f3bfc7bafd0743efdf7a74e8f0) ) | |
| 2827 | ROM_LOAD( "b2.gfx", 0x3000, 0x1000, CRC(7b39c3d0) SHA1(4b8cebb4cdaaca9e1b6fd378f6c390ab05984590) ) | |
| 2828 | ||
| 2829 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2830 | ROM_LOAD( "hustler.clr", 0x0000, 0x0020, CRC(aa1f7f5e) SHA1(311dd17aa11490a1173c76223e4ccccf8ea29850) ) | |
| 2831 | ROM_END | |
| 2832 | ||
| 2833 | ROM_START( rockclim ) | |
| 2834 | ||
| 2835 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2836 | ROM_LOAD( "lc01.a1", 0x0000, 0x1000, CRC(8601ae8d) SHA1(6e0c3b34ce5e6879ce7a116c5c2660889a68320d) ) | |
| 2837 | ROM_LOAD( "lc02.a2", 0x1000, 0x1000, CRC(2dde9d4c) SHA1(7e343113116b94894558819a7f77f77e4e952da7) ) | |
| 2838 | ROM_LOAD( "lc03.a3", 0x2000, 0x1000, CRC(82c48a67) SHA1(abf95062eb5c9bd4bb3c9b9af59396a4ca6905d8) ) | |
| 2839 | ROM_LOAD( "lc04.a4", 0x3000, 0x1000, CRC(7cd3a04a) SHA1(756c12288e120e6f761b266b91920d17cab6926c) ) | |
| 2840 | ROM_LOAD( "lc05.a5", 0x6000, 0x1000, CRC(5e542149) SHA1(425a5a8769c3fa0887db8ff04e2a4f32f18d2679) ) | |
| 2841 | ROM_LOAD( "lc06.a6", 0x7000, 0x1000, CRC(b2bdca64) SHA1(e72e63725164c922816dda90ac964a94062eab1b) ) | |
| 2842 | ||
| 2843 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2844 | ROM_LOAD( "lc08.a9", 0x0000, 0x800, CRC(7f18e1ef) SHA1(2a160b994708ec0f06774dde3ec613af7e3f32c6) ) | |
| 2845 | ROM_LOAD( "lc07.a7", 0x0800, 0x800, CRC(f18b50ac) SHA1(a2328eb55882a09403cae1a497c611b494649cac) ) | |
| 2846 | ROM_LOAD( "lc10.c9", 0x1000, 0x800, CRC(dec5781b) SHA1(b6277fc890d153db24bd48293780cf239a6aa0e7) ) | |
| 2847 | ROM_LOAD( "lc09.c7", 0x1800, 0x800, CRC(06c0b5de) SHA1(561cf99a6be03205c7bc5fd15d4d51ee4d6d164b) ) | |
| 2848 | ||
| 2849 | ROM_REGION( 0x2000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 2850 | ROM_LOAD( "lc13.g5", 0x0000, 0x1000, CRC(19475f2b) SHA1(5d42aa45a7b519dacdecd3d2edbfee6971693034) ) | |
| 2851 | ROM_LOAD( "lc14.g7", 0x1000, 0x1000, CRC(cc96d1db) SHA1(9713b47b723a5d8837f2a8e8c43e46dc41a62e5b) ) | |
| 2852 | ||
| 2853 | ROM_REGION( 0x0040, REGION_PROMS, 0 ) | |
| 2854 | ROM_LOAD( "lc12.e9", 0x0000, 0x0020, CRC(f6e76547) SHA1(c9ea78d1876156561b3bbf327d7e0299e1d9fd4a) ) | |
| 2855 | ROM_LOAD( "lc11.f4", 0x0020, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2856 | ROM_END | |
| 2857 | ||
| 2858 | ROM_START( ozon1 ) | |
| 2859 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2860 | ROM_LOAD( "rom1.bin", 0x0000, 0x1000, CRC(54899e8b) SHA1(270af76ae4396ebda767f160535fa77c0b49726a) ) | |
| 2861 | ROM_LOAD( "rom2.bin", 0x1000, 0x1000, CRC(3c90fbfc) SHA1(92da614dba3a644eac144bb0ed434d78a31fcb1a) ) | |
| 2862 | ROM_LOAD( "rom3.bin", 0x2000, 0x1000, CRC(79fe313b) SHA1(ef8fd70f5669b7e7d7184eca2baaddcecb55c22d) ) | |
| 2863 | ||
| 2864 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2865 | ROM_LOAD( "rom7.bin", 0x0000, 0x0800, CRC(464285e8) SHA1(fff36b034b95050219c70cdfe05ff3bbc452b73e) ) | |
| 2866 | ROM_LOAD( "rom8.bin", 0x0800, 0x0800, CRC(92056dcc) SHA1(b162da8701bfee465205e8f274ee494063c52c7b) ) | |
| 2867 | ||
| 2868 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2869 | ROM_LOAD( "ozon1.clr", 0x0000, 0x0020, CRC(605ea6e9) SHA1(d3471e6ef756059c2f7feb32fb8e41181cc1718e) ) | |
| 2870 | ROM_END | |
| 2871 | ||
| 2872 | ROM_START( ladybugg ) | |
| 2873 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2874 | ROM_LOAD( "lbuggx.1", 0x0000, 0x0800, CRC(e67e241d) SHA1(42b8eaca71c6b346ab54bc722850d6e6d169c517) ) | |
| 2875 | ROM_LOAD( "lbuggx.2", 0x0800, 0x0800, CRC(3cb1fb9a) SHA1(ee76758c94329dfcc740571195a74d9242aaf49f) ) | |
| 2876 | ROM_LOAD( "lbuggx.3", 0x1000, 0x0800, CRC(0937009e) SHA1(ef57ebf3d6ab3d6ac0e1faa10c3109d2c80a1248) ) | |
| 2877 | ROM_LOAD( "lbuggx.4", 0x1800, 0x0800, CRC(3e773f62) SHA1(6348e61f48e5d1f04289098c4c0395335ea5e2a5) ) | |
| 2878 | ROM_LOAD( "lbuggx.5", 0x2000, 0x0800, CRC(2b0d42e5) SHA1(1547b8127f964eb10862b566f5779f8011c3441d) ) | |
| 2879 | ROM_LOAD( "lbuggx.6", 0x2800, 0x0800, CRC(159f9433) SHA1(93341a4de1e1e4a3fb004019fc1edba73db6a4c8) ) | |
| 2880 | ROM_LOAD( "lbuggx.7", 0x3000, 0x0800, CRC(f2be06d5) SHA1(1354332d2d107ad810aa2e261b595285394dfb49) ) | |
| 2881 | ROM_LOAD( "lbuggx.8", 0x3800, 0x0800, CRC(646fe79f) SHA1(03223d6c4f9050fd6c1c313f0e366ab4989feca4) ) | |
| 2882 | ||
| 2883 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2884 | ROM_LOAD( "lbuggx.a", 0x0800, 0x0800, CRC(7efb9dc5) SHA1(5e02ea8cd1a1c8efa6708a8615cc2dc9da65a455) ) | |
| 2885 | ROM_CONTINUE ( 0x0000, 0x0800) | |
| 2886 | ROM_LOAD( "lbuggx.b", 0x1800, 0x0800, CRC(351d4ddc) SHA1(048e8a60e57c6eb0a4d7c2175ddd46c4273756c5) ) | |
| 2887 | ROM_CONTINUE ( 0x1000, 0x0800) | |
| 2888 | ||
| 2889 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2890 | ROM_LOAD( "lbuggx.clr", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 2891 | ROM_END | |
| 2892 | ||
| 2893 | ROM_START( vpool ) | |
| 2894 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2895 | ROM_LOAD( "vidpool1.bin", 0x0000, 0x0800, CRC(333f4732) SHA1(b57460c039c69137645bd4280ad877aa789277d6) ) | |
| 2896 | ROM_CONTINUE( 0x2000, 0x0800 ) | |
| 2897 | ROM_LOAD( "vidpool2.bin", 0x0800, 0x0800, CRC(eea6c0f1) SHA1(5b18caa78e246f55fd9cd778d6e83f79f0b3f157) ) | |
| 2898 | ROM_CONTINUE( 0x2800, 0x0800 ) | |
| 2899 | ROM_LOAD( "vidpool3.bin", 0x1000, 0x0800, CRC(309972a6) SHA1(8269d2f677f55dda71d6a7b0796d2d53a4def59d) ) | |
| 2900 | ROM_CONTINUE( 0x3000, 0x0800 ) | |
| 2901 | ROM_LOAD( "vidpool4.bin", 0x1800, 0x0800, CRC(c4f71c1d) SHA1(e1d01135d5ccc1a53308ce89dc2a8fc0992207d5) ) | |
| 2902 | ROM_CONTINUE( 0x3800, 0x0800 ) | |
| 2903 | ||
| 2904 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2905 | ROM_LOAD( "hustler.5f", 0x0000, 0x0800, CRC(0bdfad0e) SHA1(8e6f1737604f3801c03fa2e9a5e6a2778b54bae8) ) // vidpoolh.bin | |
| 2906 | ROM_LOAD( "hustler.5h", 0x0800, 0x0800, CRC(8e062177) SHA1(7e52a1669804b6c2f694cfc64b04abc8246bb0c2) ) // vidpoolk.bin | |
| 2907 | ||
| 2908 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2909 | ROM_LOAD( "hustler.clr", 0x0000, 0x0020, CRC(aa1f7f5e) SHA1(311dd17aa11490a1173c76223e4ccccf8ea29850) ) | |
| 2910 | ROM_END | |
| 2911 | ||
| 2912 | ROM_START( drivfrcg ) | |
| 2913 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 2914 | ROM_LOAD( "dfgp1.bin", 0x2800, 0x0400, CRC(52d5e77d) SHA1(4e68ac1274bbc8cb5b6a7dfb511232bd83482453) ) | |
| 2915 | ROM_CONTINUE( 0x2c00, 0x0400 ) | |
| 2916 | ROM_CONTINUE( 0x0000, 0x0400 ) | |
| 2917 | ROM_CONTINUE( 0x0400, 0x0400 ) | |
| 2918 | ROM_LOAD( "dfgp2.bin", 0x0800, 0x0400, CRC(9cf4dbce) SHA1(028c168ad0987f21d76c6ac4f756f4fa86c2f8e3) ) | |
| 2919 | ROM_CONTINUE( 0x0c00, 0x0400 ) | |
| 2920 | ROM_CONTINUE( 0x2000, 0x0400 ) | |
| 2921 | ROM_CONTINUE( 0x2400, 0x0400 ) | |
| 2922 | ROM_LOAD( "dfgp3.bin", 0x6800, 0x0400, CRC(79763f62) SHA1(2bb8921fcd2a8b9543e398e248fd47d7e03dc24d) ) | |
| 2923 | ROM_CONTINUE( 0x6c00, 0x0400 ) | |
| 2924 | ROM_CONTINUE( 0x4000, 0x0400 ) | |
| 2925 | ROM_CONTINUE( 0x4400, 0x0400 ) | |
| 2926 | ROM_LOAD( "dfgp4.bin", 0x4800, 0x0400, CRC(dd95338b) SHA1(9054986f7b8fee36f458362836ae969e7d1e2456) ) | |
| 2927 | ROM_CONTINUE( 0x4c00, 0x0400 ) | |
| 2928 | ROM_CONTINUE( 0x6000, 0x0400 ) | |
| 2929 | ROM_CONTINUE( 0x6400, 0x0400 ) | |
| 2930 | ||
| 2931 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2932 | ROM_LOAD( "dfgj2.bin", 0x0000, 0x1000, CRC(8e19f1e7) SHA1(addd5add2117ef29ce38c0c80584e5d481b9d820) ) | |
| 2933 | ROM_LOAD( "dfgj1.bin", 0x1000, 0x1000, CRC(86b60ca8) SHA1(be266e2d69e12a196c2195d48b495c0fb9ef8a43) ) | |
| 2934 | ROM_LOAD( "dfgl2.bin", 0x2000, 0x1000, CRC(ea5e9959) SHA1(6b638d22adf19224cf741458c8ad34d7f7e17e58) ) | |
| 2935 | ROM_LOAD( "dfgl1.bin", 0x3000, 0x1000, CRC(b7ed195c) SHA1(81b2b444153dacb962a33a5d86a280ed5088637a) ) | |
| 2936 | ||
| 2937 | /* piggy-backed colour proms */ | |
| 2938 | ROM_REGION( 0x0040, REGION_PROMS, 0 ) | |
| 2939 | ROM_LOAD( "top.clr", 0x0000, 0x0020, CRC(3110ddae) SHA1(53b2e1cc07915592f6c868131ec296c63a407f04) ) | |
| 2940 | ROM_LOAD( "bot.clr", 0x0020, 0x0020, CRC(0f0782af) SHA1(32c0dd09ead5c70cee2657e9cb8cb9fcf54c5a6a) ) | |
| 2941 | ROM_END | |
| 2942 | ||
| 2943 | ROM_START( drivfrcb ) | |
| 2944 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 2945 | ROM_LOAD( "dfp.bin", 0x2800, 0x0400, CRC(b5b2981d) SHA1(c9ff19791895bf05b569457b1e53dfa0aaeb8e95) ) | |
| 2946 | ROM_CONTINUE( 0x2c00, 0x0400 ) | |
| 2947 | ROM_CONTINUE( 0x0000, 0x0400 ) | |
| 2948 | ROM_CONTINUE( 0x0400, 0x0400 ) | |
| 2949 | ROM_CONTINUE( 0x0800, 0x0400 ) | |
| 2950 | ROM_CONTINUE( 0x0c00, 0x0400 ) | |
| 2951 | ROM_CONTINUE( 0x2000, 0x0400 ) | |
| 2952 | ROM_CONTINUE( 0x2400, 0x0400 ) | |
| 2953 | ROM_CONTINUE( 0x6800, 0x0400 ) | |
| 2954 | ROM_CONTINUE( 0x6c00, 0x0400 ) | |
| 2955 | ROM_CONTINUE( 0x4000, 0x0400 ) | |
| 2956 | ROM_CONTINUE( 0x4400, 0x0400 ) | |
| 2957 | ROM_CONTINUE( 0x4800, 0x0400 ) | |
| 2958 | ROM_CONTINUE( 0x4c00, 0x0400 ) | |
| 2959 | ROM_CONTINUE( 0x6000, 0x0400 ) | |
| 2960 | ROM_CONTINUE( 0x6400, 0x0400 ) | |
| 2961 | ||
| 2962 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2963 | ROM_LOAD( "df1.bin", 0x1000, 0x1000, CRC(8adc3de0) SHA1(046fb92913171c621bb62edb0174f04298bfd283) ) | |
| 2964 | ROM_CONTINUE( 0x0000, 0x1000 ) | |
| 2965 | ROM_LOAD( "df2.bin", 0x3000, 0x1000, CRC(6d95ec35) SHA1(c745ee2bc7b1fb53e8bc1ac3a4238bbe00f30cfe) ) | |
| 2966 | ROM_CONTINUE( 0x2000, 0x1000 ) | |
| 2967 | ||
| 2968 | /* piggy-backed colour proms */ | |
| 2969 | ROM_REGION( 0x0040, REGION_PROMS, 0 ) | |
| 2970 | ROM_LOAD( "top.clr", 0x0000, 0x0020, CRC(3110ddae) SHA1(53b2e1cc07915592f6c868131ec296c63a407f04) ) | |
| 2971 | ROM_LOAD( "bot.clr", 0x0020, 0x0020, CRC(0f0782af) SHA1(32c0dd09ead5c70cee2657e9cb8cb9fcf54c5a6a) ) | |
| 2972 | ROM_END | |
| 2973 | ||
| 2974 | ROM_START( bongo ) | |
| 2975 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2976 | ROM_LOAD( "bg1.bin", 0x0000, 0x1000, CRC(de9a8ec6) SHA1(b5ee99b26d1a39e31b643ad0f5723ee8e364023e) ) | |
| 2977 | ROM_LOAD( "bg2.bin", 0x1000, 0x1000, CRC(a19da662) SHA1(a2674392d489c5e5eeb9abc51572a37cc6045220) ) | |
| 2978 | ROM_LOAD( "bg3.bin", 0x2000, 0x1000, CRC(9f6f2150) SHA1(26a1f872686ddddcdb690d7b826ba26c20cdec35) ) | |
| 2979 | ROM_LOAD( "bg4.bin", 0x3000, 0x1000, CRC(f80372d2) SHA1(078e2c8b947103c168c0c85430f8ebc9d09f8ba7) ) | |
| 2980 | ROM_LOAD( "bg5.bin", 0x4000, 0x1000, CRC(fc92eade) SHA1(f4012a1c4631388a3e8109a8381bc4084ddc8757) ) | |
| 2981 | ROM_LOAD( "bg6.bin", 0x5000, 0x1000, CRC(561d9e5d) SHA1(68d7fab3cfb5b3360fe8064c70bf21bb1341032f) ) | |
| 2982 | ||
| 2983 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2984 | ROM_LOAD( "b-h.bin", 0x0000, 0x1000, CRC(fc79d103) SHA1(dac1152221ebdc4cd9bf353b4cc5d45021ca5d9e) ) | |
| 2985 | ROM_LOAD( "b-k.bin", 0x1000, 0x1000, CRC(94d17bf3) SHA1(2a70968249946de52c5a4cfabafbbf4ecda844a8) ) | |
| 2986 | ||
| 2987 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2988 | ROM_LOAD( "b-clr.bin", 0x0000, 0x0020, CRC(c4761ada) SHA1(067d12b2d3635ffa6337ed234ba42717447bea00) ) | |
| 2989 | ROM_END | |
| 2990 | ||
| 2991 | ROM_START( hunchbkg ) | |
| 2992 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 2993 | ROM_LOAD( "gal_hb_1", 0x0000, 0x0800, CRC(46590e9b) SHA1(5d26578c91adec20d8d8a17d5dade9ef2febcbe5) ) | |
| 2994 | ROM_LOAD( "gal_hb_2", 0x0800, 0x0800, CRC(4e6e671c) SHA1(5948fc7f390f0343b367d333395427ce2f9b2931) ) | |
| 2995 | ROM_LOAD( "gal_hb_3", 0x2000, 0x0800, CRC(d29dc242) SHA1(3f6087fe962ee63c2886ad3f502c1a37d357ba87) ) | |
| 2996 | ROM_LOAD( "gal_hb_4", 0x2800, 0x0800, CRC(d409d292) SHA1(d631c9106106b31b605b6fdf1d4f40e237a725ac) ) | |
| 2997 | ROM_LOAD( "gal_hb_5", 0x4000, 0x0800, CRC(29d3a8c4) SHA1(2e1ef20d980e5033503d8095e9576dcb8f532f41) ) | |
| 2998 | ROM_LOAD( "gal_hb_6", 0x4800, 0x0800, CRC(b016fd15) SHA1(cdfbd531e23438f05a7c3aad99a94ce55912aac3) ) | |
| 2999 | ROM_LOAD( "gal_hb_7", 0x6000, 0x0800, CRC(d2731d27) SHA1(8c4a3d2303d85c3b11803c577a9ad21e6e69011e) ) | |
| 3000 | ROM_LOAD( "gal_hb_8", 0x6800, 0x0800, CRC(e4b1a666) SHA1(9f73d17cff208374d587536e783be024fc9ab700) ) | |
| 3001 | ||
| 3002 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3003 | ROM_LOAD( "gal_hb_kl", 0x0000, 0x0800, CRC(3977650e) SHA1(1de05d6ceed3f2ed0925caa8235b63a93f03f61e) ) | |
| 3004 | ROM_LOAD( "gal_hb_hj", 0x0800, 0x0800, CRC(db489c3d) SHA1(df08607ad07222c1c1c4b3589b50b785bdeefbf2) ) | |
| 3005 | ||
| 3006 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3007 | ROM_LOAD( "gal_hb_cp", 0x0000, 0x0020, CRC(cbff6762) SHA1(4515a6e12a0a5c485a55291feee17a571120a549) ) | |
| 3008 | ROM_END | |
| 3009 | ||
| 3010 | ROM_START( harem ) | |
| 3011 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3012 | ROM_LOAD( "p0_ic85.bin", 0x0000, 0x2000, CRC(4521b753) SHA1(9033f9c3be8fec1e5ff251e9f60faaf3848a1a1e) ) | |
| 3013 | ROM_LOAD( "p1_ic87.bin", 0x8000, 0x2000, BAD_DUMP CRC(3cc5d1e8) SHA1(827e2d20de2a00ec016ead249ed3afdccd0c856c) ) | |
| 3014 | ||
| 3015 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3016 | ROM_LOAD( "s1_ic12.bin", 0x0000, 0x2000, CRC(b54799dd) SHA1(b6aeb010257cba48a52afd33b4f8031c7d99550c) ) | |
| 3017 | ROM_LOAD( "s2_ic13.bin", 0x2000, 0x1000, CRC(2d5573a4) SHA1(1fdcd99d89e078509634742b2116a35bb199fe4b) ) | |
| 3018 | ||
| 3019 | ROM_REGION( 0x2000, REGION_SOUND1, 0 ) | |
| 3020 | ROM_LOAD( "a1_ic25.bin", 0x0000, 0x2000, CRC(279f923a) SHA1(166b1b625997766f0de7cc18af52c42268022fcb) ) | |
| 3021 | ||
| 3022 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3023 | ROM_LOAD( "m0_ic36.bin", 0x0000, 0x2000, CRC(64b3c6d6) SHA1(e71092585f7ffdae85b2a4c9add1bc71e5a608a8) ) | |
| 3024 | ROM_LOAD( "m1_ic37.bin", 0x2000, 0x2000, CRC(cb0324fb) SHA1(61612f683810339d5d5f31daa4c475d0338d446f) ) | |
| 3025 | ||
| 3026 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3027 | ROM_LOAD( "harem.clr", 0x0000, 0x0020, CRC(c9a2bf73) SHA1(dad65ebf43a5df147e334afd552e67f5fcd26df7) ) | |
| 3028 | ROM_END | |
| 3029 | ||
| 3030 | ROM_START( tazzmang ) | |
| 3031 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3032 | ROM_LOAD( "tazzm1.4k", 0x0000, 0x1000, CRC(a14480a1) SHA1(60dac6b57e8331cc4daedaf87faf3e3acc68f378) ) | |
| 3033 | ROM_LOAD( "tazzm2.5j", 0x1000, 0x1000, CRC(5609f5db) SHA1(3fc50109ea0e012e3e310ae4f5dd0cf460bdca52) ) | |
| 3034 | ROM_LOAD( "tazzm3.6f", 0x2000, 0x1000, CRC(fe7f7002) SHA1(ac4134c07a798328b18994010bcaf6b3f728466a) ) | |
| 3035 | ROM_LOAD( "tazzm4.7e", 0x3000, 0x1000, CRC(c9ca1d0a) SHA1(d420ca2e926174e17215212278c86ba9bbb3d9dc) ) | |
| 3036 | ROM_LOAD( "tazzm5.7l", 0x4000, 0x1000, CRC(f50cd8a6) SHA1(b59ca37171b9acc9854f1beae43cfa5643219a5f) ) | |
| 3037 | ROM_LOAD( "tazzm6.7l", 0x5000, 0x1000, CRC(5cf2e7d2) SHA1(ad89e2655164e0fc5ecc9af70c5f0dd9b094d432) ) | |
| 3038 | ||
| 3039 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3040 | ROM_LOAD( "tazm8.1lk", 0x0000, 0x0800, CRC(2c5b612b) SHA1(32e3a41a9a4a8b1285b6a195213ff0d98012360a) ) | |
| 3041 | ROM_LOAD( "tazzm7.1jh", 0x0800, 0x0800, CRC(3f5ff3ac) SHA1(bc70eef54a45b52c14e35464e5f06b5eec554eb6) ) | |
| 3042 | ||
| 3043 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3044 | ROM_LOAD( "prom.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 3045 | ROM_END | |
| 3046 | ||
| 3047 | ROM_START( racknrol ) | |
| 3048 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3049 | ROM_LOAD( "horz_p.bin", 0x0000, 0x1000, CRC(32ca5b43) SHA1(f3e7662f947dcdd80f6eae4f002d2fe64a825aff) ) | |
| 3050 | ROM_CONTINUE( 0x2000, 0x1000 ) | |
| 3051 | ROM_CONTINUE( 0x4000, 0x1000 ) | |
| 3052 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 3053 | ||
| 3054 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3055 | ROM_LOAD( "horz_g.bin", 0x0000, 0x4000, CRC(97069ad5) SHA1(50199c7bc5083be23a34849cff17906795bf4067) ) | |
| 3056 | ROM_LOAD( "horz_r.bin", 0x4000, 0x4000, CRC(ff64e84b) SHA1(ceabd522bae26743804987632f35f3c4b5aff179) ) | |
| 3057 | ||
| 3058 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3059 | ROM_LOAD( "82s123.bin", 0x0000, 0x0020, CRC(737802bf) SHA1(9b0476c51ce63898cd690e01e16ee83bae361cb2) ) | |
| 3060 | ||
| 3061 | ROM_REGION( 0x0200, REGION_USER1, 0 ) /* unknown */ | |
| 3062 | ROM_LOAD( "82s147.bin", 0x0000, 0x0200, CRC(aace7fa5) SHA1(6761530bb3585d2eaa97b7ae77b52e96782ffe0a) ) | |
| 3063 | ROM_END | |
| 3064 | ||
| 3065 | ROM_START( hexpool ) | |
| 3066 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3067 | ROM_LOAD( "vert_p.bin", 0x0000, 0x1000, CRC(bdb078fc) SHA1(85a65c3038dc05a98eae71edf9efdd6659a2966a) ) | |
| 3068 | ROM_CONTINUE( 0x2000, 0x1000 ) | |
| 3069 | ROM_CONTINUE( 0x4000, 0x1000 ) | |
| 3070 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 3071 | ||
| 3072 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3073 | ROM_LOAD( "vert_g.bin", 0x0000, 0x4000, CRC(7e257e80) SHA1(dabb10d076dc49fc130f58e6d1c4b04e6debce55) ) | |
| 3074 | ROM_LOAD( "vert_r.bin", 0x4000, 0x4000, CRC(c5f0851e) SHA1(cedcdb29962c6cd65af9d57d0cb2533397d58f99) ) | |
| 3075 | ||
| 3076 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3077 | ROM_LOAD( "82s123.bin", 0x0000, 0x0020, CRC(737802bf) SHA1(9b0476c51ce63898cd690e01e16ee83bae361cb2) ) | |
| 3078 | ||
| 3079 | ROM_REGION( 0x0200, REGION_USER1, 0 ) /* unknown */ | |
| 3080 | ROM_LOAD( "82s147.bin", 0x0000, 0x0200, CRC(aace7fa5) SHA1(6761530bb3585d2eaa97b7ae77b52e96782ffe0a) ) | |
| 3081 | ROM_END | |
| 3082 | ||
| 3083 | ROM_START( hexpoola ) | |
| 3084 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3085 | ROM_LOAD( "rom.4l", 0x0000, 0x1000, CRC(2ca8018d) SHA1(f0784d18bc7e77515bf2140d8993ae8178919853) ) | |
| 3086 | ROM_CONTINUE( 0x2000, 0x1000 ) | |
| 3087 | ROM_CONTINUE( 0x4000, 0x1000 ) | |
| 3088 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 3089 | ||
| 3090 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3091 | ROM_LOAD( "rom.1m", 0x0000, 0x4000, CRC(7e257e80) SHA1(dabb10d076dc49fc130f58e6d1c4b04e6debce55) ) | |
| 3092 | ROM_LOAD( "rom.1l", 0x4000, 0x4000, CRC(c5f0851e) SHA1(cedcdb29962c6cd65af9d57d0cb2533397d58f99) ) | |
| 3093 | ||
| 3094 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3095 | ROM_LOAD( "82s123.11r", 0x0000, 0x0020, CRC(deb2fcf4) SHA1(cdec737a9d9feae912f7cc04ca0adb48f859b5c2) ) | |
| 3096 | ||
| 3097 | ROM_REGION( 0x0200, REGION_USER1, 0 ) /* unknown */ | |
| 3098 | ROM_LOAD( "82s147.5pr", 0x0000, 0x0200, CRC(cf496b1e) SHA1(5b5ca52b3cc46e18990dae53a98984aeaf264241) ) | |
| 3099 | ||
| 3100 | ROM_REGION( 0x00eb, REGION_PLDS, 0 ) | |
| 3101 | ROM_LOAD( "82s153.6pr.bin", 0x0000, 0x00eb, CRC(bc07939a) SHA1(615b085575ad215662eab2777a2d8b9167c4b9c3) ) | |
| 3102 | ROM_END | |
| 3103 | ||
| 3104 | ROM_START( trvchlng ) | |
| 3105 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3106 | ROM_LOAD( "senko11.bin", 0x0000, 0x1000, CRC(3657331d) SHA1(d9a9a4e4e2e696e70dfb888725c959ec8ce24e3d) ) | |
| 3107 | ROM_CONTINUE( 0x2000, 0x1000 ) | |
| 3108 | ROM_CONTINUE( 0x4000, 0x1000 ) | |
| 3109 | ROM_CONTINUE( 0x6000, 0x1000 ) | |
| 3110 | ||
| 3111 | ROM_REGION( 0x100000, REGION_USER1, 0 ) | |
| 3112 | ROM_LOAD( "questions", 0x000000, 0x100000, NO_DUMP ) | |
| 3113 | ||
| 3114 | ROM_REGION( 0x8000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3115 | ROM_LOAD( "senko10.bin", 0x0000, 0x4000, CRC(234b59d0) SHA1(5eafdfc6d6a73575835b68361fe29a2dc61e8a83) ) | |
| 3116 | ROM_LOAD( "senko12.bin", 0x4000, 0x4000, CRC(0bf6b92d) SHA1(6ca993c0642949a52fafea3bc57a08c6881e8120) ) | |
| 3117 | ||
| 3118 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3119 | ROM_LOAD( "senko1.bin", 0x0000, 0x0020, CRC(1434c7ff) SHA1(0ee5f5351dd84fbf8d3d8eaafbdbe86dd29960f8) ) | |
| 3120 | ROM_END | |
| 3121 | ||
| 3122 | ROM_START( luctoday ) | |
| 3123 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3124 | ROM_LOAD( "ltprog1.bin", 0x0000, 0x0800, CRC(59c389b9) SHA1(1e158ced3b56db2c51e422fb4c0b8893565f1956)) | |
| 3125 | ROM_LOAD( "ltprog2.bin", 0x2000, 0x0800, CRC(ac3893b1) SHA1(f6b9cd8111b367ff7030cba52fe965959d92568f)) | |
| 3126 | ||
| 3127 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3128 | ROM_LOAD( "ltchar2.bin", 0x0000, 0x0800, CRC(8cd73bdc) SHA1(6174f7347d2c96f9c5074bc0da5a370c9b07461b)) | |
| 3129 | ROM_LOAD( "ltchar1.bin", 0x0800, 0x0800, CRC(b5ba9946) SHA1(7222cbe8c41ca74b214f4dd5439bf69d90f4644e)) | |
| 3130 | ||
| 3131 | ROM_REGION( 0x0020, REGION_PROMS, 0 )//This may not be the correct prom | |
| 3132 | ROM_LOAD( "74s288.ch", 0x0000, 0x0020, BAD_DUMP CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d)) | |
| 3133 | ROM_END | |
| 3134 | ||
| 3135 | ROM_START( chewing ) | |
| 3136 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3137 | ROM_LOAD( "1.bin", 0x0000, 0x1000, CRC(7470b347) SHA1(315d2631b50a6e469b9538318d95452e8d2e1f69) ) | |
| 3138 | ROM_LOAD( "7l.bin", 0x2000, 0x0800, CRC(78ebed36) SHA1(e80185737c8ac448901cf0e60ca50d967c323b34) ) | |
| 3139 | ||
| 3140 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3141 | ROM_LOAD( "2.bin", 0x0000, 0x0800, CRC(88c605f3) SHA1(938a9fadfa0994a1d2fc9b3266ec4ccdb5ec6d3a) ) | |
| 3142 | ROM_LOAD( "3.bin", 0x0800, 0x0800, CRC(77ac016a) SHA1(fa5b1e79603ca8d2ee7b3d0a78f12d9ffeec3fd4) ) | |
| 3143 | ||
| 3144 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3145 | ROM_LOAD( "74s288.ch", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) | |
| 3146 | ROM_END | |
| 3147 | ||
| 3148 | ROM_START( catacomb ) | |
| 3149 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3150 | ROM_LOAD( "catacomb.u", 0x0000, 0x0800, CRC(35cc28d2) SHA1(e1dbd75fc21ec88b8119bf9508c87d78e1d5c4f6) ) | |
| 3151 | ROM_LOAD( "catacomb.v", 0x0800, 0x0800, CRC(1d1ce133) SHA1(e22a169003a2238004bdf6c2558198216c2353b7) ) | |
| 3152 | ROM_LOAD( "catacomb.w", 0x1000, 0x0800, CRC(479bbde7) SHA1(9981662cb6351de7c1730de45f645fb0e26ea467) ) | |
| 3153 | /* no .x */ | |
| 3154 | ROM_LOAD( "catacomb.y", 0x2000, 0x0800, CRC(5e3da534) SHA1(a9b960ae96c8ef0b2d590bc58b711aad949025e2) ) | |
| 3155 | ||
| 3156 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3157 | ROM_LOAD( "cat-gfx1", 0x0000, 0x0800, CRC(e871e65c) SHA1(0b528dfab0f57153db9406798848cdedee0323a0) ) | |
| 3158 | ROM_LOAD( "cat-gfx2", 0x0800, 0x0800, CRC(b14dafaa) SHA1(592d5931a76563b3565f22ac4c0120b9a120193f) ) | |
| 3159 | ||
| 3160 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3161 | /* No color PROM came with the conversion - the Moon Cresta one seems more appropriate than Galaxian, | |
| 3162 | (the game is unplayable with a Galaxian PROM) but which was intended for use with the kit is unclear */ | |
| 3163 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, BAD_DUMP CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 3164 | ROM_END | |
| 3165 | ||
| 3166 | ROM_START( ckongg ) | |
| 3167 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3168 | ROM_LOAD( "ck1.bin", 0x2400, 0x0400, CRC(a4323b94) SHA1(1fed47e1df5efa8f40585bedab07b60067edc2bb) ) | |
| 3169 | ROM_CONTINUE( 0x1C00, 0x0400) | |
| 3170 | ROM_CONTINUE( 0x4800, 0x0400) | |
| 3171 | ROM_CONTINUE( 0x0C00, 0x0400) | |
| 3172 | ROM_LOAD( "ck2.bin", 0x4400, 0x0400, CRC(1e532996) SHA1(fe1feeca347fccd266925614a46c98cff683f5d3) ) | |
| 3173 | ROM_CONTINUE( 0x0000, 0x0400) | |
| 3174 | ROM_CONTINUE( 0x1800, 0x0400) | |
| 3175 | ROM_CONTINUE( 0x2800, 0x0400) | |
| 3176 | ROM_LOAD( "ck3.bin", 0x3400, 0x0400, CRC(65157cde) SHA1(572b9bd56894600e21220356d0bf193c7920672c) ) | |
| 3177 | ROM_CONTINUE( 0x4c00, 0x0400) | |
| 3178 | ROM_CONTINUE( 0x5000, 0x0400) | |
| 3179 | ROM_CONTINUE( 0x0400, 0x0400) | |
| 3180 | ROM_LOAD( "ck4.bin", 0x2000, 0x0400, CRC(43827bc6) SHA1(a2ca9afff0dd1bdcfc3a6ead9ff30b7c91caa7ea) ) | |
| 3181 | ROM_CONTINUE( 0x3800, 0x0400) | |
| 3182 | ROM_CONTINUE( 0x1000, 0x0400) | |
| 3183 | ROM_CONTINUE( 0x4000, 0x0400) | |
| 3184 | ROM_LOAD( "ck5.bin", 0x0800, 0x0400, CRC(a74ed96e) SHA1(1e845d693a728fea9d52953b5493ec98fdec63e3) ) | |
| 3185 | ROM_CONTINUE( 0x5400, 0x0400) // fill | |
| 3186 | ROM_CONTINUE( 0x2c00, 0x0400) | |
| 3187 | ROM_CONTINUE( 0x1400, 0x0400) | |
| 3188 | ROM_LOAD( "ck7.bin", 0x3000, 0x0400, CRC(2c4d8129) SHA1(ab1708ff72ee027106fe8da0caea03a796b3212b) ) | |
| 3189 | ROM_CONTINUE( 0x3c00, 0x0400) | |
| 3190 | ||
| 3191 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3192 | ROM_LOAD( "ckvid10.bin", 0x0000, 0x1000, CRC(7866d2cb) SHA1(62dd8b80bc0459c7337d8a8cb83e53b999e7f4a9) ) | |
| 3193 | ROM_LOAD( "ckvid7.bin", 0x1000, 0x1000, CRC(7311a101) SHA1(49d54c8b94cae4ba81d7a7684eaa4e87815bb4da) ) | |
| 3194 | ||
| 3195 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3196 | ROM_LOAD( "ck_cp.bin", 0x0000, 0x0020, CRC(7e0b79cb) SHA1(72ef3eb5f09e10c13dcf6fd568a6d16658055a16) ) | |
| 3197 | ROM_END | |
| 3198 | ||
| 3199 | ROM_START( kkgalax ) | |
| 3200 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3201 | ROM_LOAD( "kc1.bin", 0x0000, 0x0800, CRC(a87fc828) SHA1(f66b72427d8cdfabdf2274e22bdb10018ac7d2f9) ) | |
| 3202 | ROM_CONTINUE( 0x2000, 0x0800) | |
| 3203 | ROM_LOAD( "kc2.bin", 0x0800, 0x0800, CRC(94a13dec) SHA1(d3bfd5a266bb1f0e66d847e15b51bdd4c9a15e37) ) | |
| 3204 | ROM_CONTINUE( 0x2800, 0x0800) | |
| 3205 | ROM_LOAD( "kc3.bin", 0x1000, 0x0800, CRC(5efc6705) SHA1(9af59a9cb58599b1c7ce0a063929531f6c73b912) ) | |
| 3206 | ROM_CONTINUE( 0x3000, 0x0800) | |
| 3207 | ROM_LOAD( "kc4.bin", 0x1800, 0x0800, CRC(ac917d66) SHA1(63a0db01bb93e052fec64fa69ebcbae3b0b8aa04) ) | |
| 3208 | ROM_CONTINUE( 0x3800, 0x0800) | |
| 3209 | ROM_LOAD( "kc5.bin", 0x4000, 0x0800, CRC(5a9ee1ed) SHA1(1bc420a42a4931c389b4f8db451de7c59786dfbc) ) | |
| 3210 | ROM_LOAD( "kc6.bin", 0x4800, 0x0800, CRC(f787431e) SHA1(5cee497b8f4072509920d982470cbe06bd18f88b) ) | |
| 3211 | ROM_LOAD( "kc7.bin", 0x5000, 0x0800, CRC(7a185e31) SHA1(a257f32958af6b2c1c9007b46bd1dc984670b0d9) ) | |
| 3212 | ||
| 3213 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3214 | ROM_LOAD( "kc8carat.bin", 0x0000, 0x1000, CRC(7866d2cb) SHA1(62dd8b80bc0459c7337d8a8cb83e53b999e7f4a9) ) | |
| 3215 | ROM_LOAD( "kc9carat.bin", 0x1000, 0x1000, CRC(7311a101) SHA1(49d54c8b94cae4ba81d7a7684eaa4e87815bb4da) ) | |
| 3216 | ||
| 3217 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) // not in this set | |
| 3218 | ROM_LOAD( "ck_cp.bin", 0x0000, 0x0020, CRC(7e0b79cb) SHA1(72ef3eb5f09e10c13dcf6fd568a6d16658055a16) ) | |
| 3219 | ROM_END | |
| 3220 | ||
| 3221 | ||
| 3222 | ROM_START( porter ) | |
| 3223 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3224 | ROM_LOAD( "port1.bin", 0x0000, 0x0800, CRC(babaf7fe) SHA1(2138abf57990df9b6f9953efd3be9b2bede49520) ) | |
| 3225 | ROM_CONTINUE( 0x2000, 0x0800) | |
| 3226 | ROM_LOAD( "port2.bin", 0x0800, 0x0800, CRC(8f7eb0e3) SHA1(7ac5bfc0bb8b6a7a3e9acab5ce9a53f7cba1fca5) ) | |
| 3227 | ROM_CONTINUE( 0x2800, 0x0800) | |
| 3228 | ROM_LOAD( "port3.bin", 0x1000, 0x0800, CRC(683939b5) SHA1(caf69b03794cb5cf63b1aa52cf8ef355a3aeef87) ) | |
| 3229 | ROM_CONTINUE( 0x3000, 0x0800) | |
| 3230 | ROM_LOAD( "port4.bin", 0x1800, 0x0800, CRC(6a65d58d) SHA1(05824a41b2912f12bff7887e7483cb3f4367d339) ) | |
| 3231 | ROM_CONTINUE( 0x3800,0x0800) | |
| 3232 | ROM_LOAD( "port5.bin", 0x4000, 0x0800, CRC(2978a9aa) SHA1(99ec75c7f83f4858b26e083b50fde41fbcfe449a) ) | |
| 3233 | ROM_LOAD( "port6.bin", 0x4800, 0x0800, CRC(7ecdffb5) SHA1(18ce71b670503bef039c6bfb0aed5e8c10e9eb2d) ) | |
| 3234 | ||
| 3235 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3236 | ROM_LOAD( "port7.bin", 0x0000, 0x1000, CRC(603294f9) SHA1(168b90fdf38cd2e2c7f54cde16b4d83dc5bb3046) ) | |
| 3237 | ROM_LOAD( "port8.bin", 0x1000, 0x1000, CRC(b66a763d) SHA1(995b473b1942ff666b0989993587e41e89542172) ) | |
| 3238 | ||
| 3239 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) // not in the set | |
| 3240 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, BAD_DUMP CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 3241 | ROM_END | |
| 3242 | ||
| 3243 | GAME( 1981, scramblb, scramble, scramblb, scramblb, 0, ROT90, "bootleg", "Scramble (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 3244 | GAME( 1981, scramb2, scramble, scramb2, scramb2, 0, ROT90, "bootleg", "Scramble (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 3245 | ||
| 3246 | GAME( 1981, 4in1, 0, 4in1, 4in1, 4in1, ROT90, "Armenia / Food and Fun", "4 Fun in 1", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 3247 | GAME( 1982, bagmanmc, bagman, bagmanmc, bagmanmc, 0, ROT90, "bootleg", "Bagman (Moon Cresta hardware)", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) | |
| 3248 | GAME( 1982, dkongjrm, dkongjr, dkongjrm, dkongjrm, 0, ROT90, "bootleg", "Donkey Kong Jr. (Moon Cresta hardware)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 3249 | GAME( 1981, rockclim, 0, rockclim, rockclim, 0, ROT180, "Taito", "Rock Climber", GAME_SUPPORTS_SAVE ) | |
| 3250 | GAME( 1983, ozon1, 0, ozon1, ozon1, 0, ROT90, "Proma", "Ozon I", GAME_SUPPORTS_SAVE ) | |
| 3251 | GAME( 1983, ladybugg, ladybug, batman2, ladybugg, ladybugg, ROT270, "bootleg", "Ladybug (bootleg on Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 3252 | GAME( 1980, vpool, hustler, mooncrst, vpool, 0, ROT90, "bootleg", "Video Pool (bootleg on Moon Cresta hardware)", GAME_SUPPORTS_SAVE ) | |
| 3253 | GAME( 1984, drivfrcg, drivfrcp, drivfrcg, drivfrcg, 0, ROT90, "Shinkai Inc. (Magic Eletronics USA licence)", "Driving Force (Galaxian conversion)", GAME_SUPPORTS_SAVE ) | |
| 3254 | GAME( 1985, drivfrcb, drivfrcp, drivfrcg, drivfrcg, 0, ROT90, "bootleg", "Driving Force (Galaxian conversion bootleg)", GAME_SUPPORTS_SAVE ) | |
| 3255 | GAME( 1983, bongo, 0, bongo, bongo, 0, ROT90, "Jetsoft", "Bongo", GAME_SUPPORTS_SAVE ) | |
| 3256 | GAME( 1983, hunchbkg, hunchbak, hunchbkg, hunchbkg, 0, ROT90, "Century Electronics", "Hunchback (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 3257 | GAME( 1983, harem, 0, harem, harem, 0, ROT90, "I.G.R.", "Harem", GAME_NO_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 3258 | GAME( 1982, tazzmang, tazmania, tazzmang, tazzmang, 0, ROT90, "bootleg", "Tazz-Mania (Galaxian Hardware)", GAME_SUPPORTS_SAVE ) | |
| 3259 | GAME( 1986, racknrol, 0, racknrol, racknrol, 0, ROT0, "Status (Shinkai License)", "Rack + Roll", GAME_SUPPORTS_SAVE ) | |
| 3260 | GAME( 1986, hexpool, racknrol, racknrol, racknrol, 0, ROT90, "Shinkai", "Hex Pool (Shinkai)", GAME_SUPPORTS_SAVE ) | |
| 3261 | GAME( 1985, hexpoola, racknrol, hexpoola, racknrol, 0, ROT90, "Senko", "Hex Pool (Senko)", GAME_SUPPORTS_SAVE ) | |
| 3262 | GAME( 1985, trvchlng, 0, racknrol, trvchlng, 0, ROT90, "Joyland (Senko License)", "Trivia Challenge", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 3263 | GAME( 1981, ckongg, 0, ckongg, ckongg, 0, ROT90, "bootleg", "Crazy Kong (bootleg on Galaxian hardware, set 1)", GAME_SUPPORTS_SAVE ) | |
| 3264 | GAME( 1981, kkgalax, ckongg, kkgalax, kkgalax, 0, ROT90, "bootleg", "Crazy Kong (bootleg on Galaxian hardware, set 2)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) // set was marked as 'King Kong on Galaxian' | |
| 3265 | GAME( 19??, porter, 0, mooncrst, porter, 0, ROT90, "[Nova Games Ltd.] (bootleg)", "Port Man (bootleg on Moon Cresta hardware)", GAME_IMPERFECT_GRAPHICS ) // missing GFX bank switch! |
| r2241 | r2242 | |
|---|---|---|
| 653 | 653 | MEMORY STRUCTURES |
| 654 | 654 | *****************************************************************/ |
| 655 | 655 | |
| 656 | static ADDRESS_MAP_START( wgp_readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 657 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) | |
| 658 | AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) /* main CPUA ram */ | |
| 659 | AM_RANGE(0x140000, 0x143fff) AM_READ(SMH_RAM) | |
| 660 | AM_RANGE(0x180000, 0x18000f) AM_READ(TC0220IOC_halfword_byteswap_r) | |
| 661 | AM_RANGE(0x200000, 0x20000f) AM_READ(wgp_adinput_r) | |
| 662 | AM_RANGE(0x300000, 0x30ffff) AM_READ(TC0100SCN_word_0_r) /* tilemaps */ | |
| 663 | AM_RANGE(0x320000, 0x32000f) AM_READ(TC0100SCN_ctrl_word_0_r) | |
| 664 | AM_RANGE(0x400000, 0x40bfff) AM_READ(SMH_RAM) /* sprite tilemaps */ | |
| 665 | AM_RANGE(0x40c000, 0x40dfff) AM_READ(SMH_RAM) /* sprite ram */ | |
| 666 | AM_RANGE(0x500000, 0x501fff) AM_READ(SMH_RAM) /* unknown/unused */ | |
| 667 | AM_RANGE(0x502000, 0x517fff) AM_READ(wgp_pivram_word_r) /* piv tilemaps */ | |
| 668 | AM_RANGE(0x520000, 0x52001f) AM_READ(wgp_piv_ctrl_word_r) | |
| 669 | AM_RANGE(0x700000, 0x701fff) AM_READ(SMH_RAM) | |
| 670 | ADDRESS_MAP_END | |
| 671 | ||
| 672 | static ADDRESS_MAP_START( wgp_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 673 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM) | |
| 674 | AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM) | |
| 675 | AM_RANGE(0x140000, 0x143fff) AM_WRITE(SMH_RAM) AM_BASE(&sharedram) AM_SIZE(&sharedram_size) | |
| 676 | AM_RANGE(0x180000, 0x18000f) AM_WRITE(TC0220IOC_halfword_byteswap_w) | |
| 656 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 657 | AM_RANGE(0x000000, 0x0fffff) AM_ROM | |
| 658 | AM_RANGE(0x100000, 0x10ffff) AM_RAM /* main CPUA ram */ | |
| 659 | AM_RANGE(0x140000, 0x143fff) AM_RAM AM_BASE(&sharedram) AM_SIZE(&sharedram_size) | |
| 660 | AM_RANGE(0x180000, 0x18000f) AM_READWRITE(TC0220IOC_halfword_byteswap_r,TC0220IOC_halfword_byteswap_w) | |
| 677 | 661 | AM_RANGE(0x1c0000, 0x1c0001) AM_WRITE(cpua_ctrl_w) |
| 678 | AM_RANGE(0x200000, 0x20000f) AM_WRITE(wgp_adinput_w) | |
| 679 | AM_RANGE(0x300000, 0x30ffff) AM_WRITE(TC0100SCN_word_0_w) /* tilemaps */ | |
| 680 | AM_RANGE(0x320000, 0x32000f) AM_WRITE(TC0100SCN_ctrl_word_0_w) | |
| 681 | AM_RANGE(0x400000, 0x40bfff) AM_WRITE(SMH_RAM) AM_BASE(&wgp_spritemap) AM_SIZE(&wgp_spritemap_size) | |
| 682 | AM_RANGE(0x40c000, 0x40dfff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* sprite ram */ | |
| 683 | AM_RANGE(0x40fff0, 0x40fff1) AM_WRITE(SMH_NOP) // ?? (writes 0x8000 and 0 alternately - Wgp2 just 0) | |
| 684 | AM_RANGE(0x500000, 0x501fff) AM_WRITE(SMH_RAM) /* unknown/unused */ | |
| 685 | AM_RANGE(0x502000, 0x517fff) AM_WRITE(wgp_pivram_word_w) AM_BASE(&wgp_pivram) /* piv tilemaps */ | |
| 686 | AM_RANGE(0x520000, 0x52001f) AM_WRITE(wgp_piv_ctrl_word_w) AM_BASE(&wgp_piv_ctrlram) | |
| 662 | AM_RANGE(0x200000, 0x20000f) AM_READWRITE(wgp_adinput_r,wgp_adinput_w) | |
| 663 | AM_RANGE(0x300000, 0x30ffff) AM_READWRITE(TC0100SCN_word_0_r,TC0100SCN_word_0_w) /* tilemaps */ | |
| 664 | AM_RANGE(0x320000, 0x32000f) AM_READWRITE(TC0100SCN_ctrl_word_0_r,TC0100SCN_ctrl_word_0_w) | |
| 665 | AM_RANGE(0x400000, 0x40bfff) AM_RAM AM_BASE(&wgp_spritemap) AM_SIZE(&wgp_spritemap_size) /* sprite tilemaps */ | |
| 666 | AM_RANGE(0x40c000, 0x40dfff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* sprite ram */ | |
| 667 | AM_RANGE(0x40fff0, 0x40fff1) AM_WRITE(SMH_NOP) /* ?? (writes 0x8000 and 0 alternately - Wgp2 just 0) */ | |
| 668 | AM_RANGE(0x500000, 0x501fff) AM_RAM /* unknown/unused */ | |
| 669 | AM_RANGE(0x502000, 0x517fff) AM_READWRITE(wgp_pivram_word_r,wgp_pivram_word_w) AM_BASE(&wgp_pivram) /* piv tilemaps */ | |
| 670 | AM_RANGE(0x520000, 0x52001f) AM_READWRITE(wgp_piv_ctrl_word_r,wgp_piv_ctrl_word_w) AM_BASE(&wgp_piv_ctrlram) | |
| 687 | 671 | AM_RANGE(0x600000, 0x600003) AM_WRITE(rotate_port_w) /* rotation control ? */ |
| 688 | AM_RANGE(0x700000, 0x701fff) AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) | |
| 672 | AM_RANGE(0x700000, 0x701fff) AM_RAM AM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_BASE(&paletteram16) | |
| 689 | 673 | ADDRESS_MAP_END |
| 690 | 674 | |
| 691 | static ADDRESS_MAP_START( wgp_cpub_readmem, ADDRESS_SPACE_PROGRAM, 16 ) /* LAN areas not mapped... */ | |
| 692 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) | |
| 693 | AM_RANGE(0x100000, 0x103fff) AM_READ(SMH_RAM) | |
| 694 | AM_RANGE(0x140000, 0x143fff) AM_READ(sharedram_r) | |
| 695 | AM_RANGE(0x200000, 0x200003) AM_READ(wgp_sound_r) | |
| 696 | // AM_RANGE(0x380000, 0x383fff) AM_READ(SMH_RAM) // LAN RAM | |
| 675 | static ADDRESS_MAP_START( cpu2_map, ADDRESS_SPACE_PROGRAM, 16 ) /* LAN areas not mapped... */ | |
| 676 | AM_RANGE(0x000000, 0x03ffff) AM_ROM | |
| 677 | AM_RANGE(0x100000, 0x103fff) AM_RAM | |
| 678 | AM_RANGE(0x140000, 0x143fff) AM_READWRITE(sharedram_r,sharedram_w) | |
| 679 | AM_RANGE(0x200000, 0x200003) AM_READWRITE(wgp_sound_r,wgp_sound_w) | |
| 680 | // AM_RANGE(0x380000, 0x383fff) AM_READ(SMH_RAM) // LAN RAM | |
| 681 | // AM_RANGE(0x380000, 0x383fff) AM_WRITE(SMH_RAM) // LAN RAM | |
| 697 | 682 | AM_RANGE(0x380000, 0x380001) AM_READ(lan_status_r) // ?? |
| 698 | 683 | // a lan input area is read somewhere above the status |
| 699 | 684 | // (make the status return 0 and log)... |
| 700 | 685 | ADDRESS_MAP_END |
| 701 | 686 | |
| 702 | static ADDRESS_MAP_START( wgp_cpub_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 703 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) | |
| 704 | AM_RANGE(0x100000, 0x103fff) AM_WRITE(SMH_RAM) | |
| 705 | AM_RANGE(0x140000, 0x143fff) AM_WRITE(sharedram_w) | |
| 706 | AM_RANGE(0x200000, 0x200003) AM_WRITE(wgp_sound_w) | |
| 707 | // AM_RANGE(0x380000, 0x383fff) AM_WRITE(SMH_RAM) // LAN RAM | |
| 708 | ADDRESS_MAP_END | |
| 709 | 687 | |
| 710 | ||
| 711 | 688 | /***************************************************************************/ |
| 712 | 689 | |
| 713 | static ADDRESS_MAP_START( z80_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 714 | AM_RANGE(0x0000, 0x3fff) AM_READ(SMH_ROM) | |
| 715 | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK10) | |
| 716 | AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_RAM) | |
| 717 | AM_RANGE(0xe000, 0xe000) AM_READ(YM2610_status_port_0_A_r) | |
| 718 | AM_RANGE(0xe001, 0xe001) AM_READ(YM2610_read_port_0_r) | |
| 719 | AM_RANGE(0xe002, 0xe002) AM_READ(YM2610_status_port_0_B_r) | |
| 720 | AM_RANGE(0xe200, 0xe200) AM_READ(SMH_NOP) | |
| 721 | AM_RANGE(0xe201, 0xe201) AM_READ(taitosound_slave_comm_r) | |
| 722 | AM_RANGE(0xea00, 0xea00) AM_READ(SMH_NOP) | |
| 723 | ADDRESS_MAP_END | |
| 724 | ||
| 725 | static ADDRESS_MAP_START( z80_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 726 | AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM) | |
| 727 | AM_RANGE(0xc000, 0xdfff) AM_WRITE(SMH_RAM) | |
| 728 | AM_RANGE(0xe000, 0xe000) AM_WRITE(YM2610_control_port_0_A_w) | |
| 729 | AM_RANGE(0xe001, 0xe001) AM_WRITE(YM2610_data_port_0_A_w) | |
| 730 | AM_RANGE(0xe002, 0xe002) AM_WRITE(YM2610_control_port_0_B_w) | |
| 690 | static ADDRESS_MAP_START( z80_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 691 | AM_RANGE(0x4000, 0x7fff) AM_READ(SMH_BANK10) /* Fallthrough */ | |
| 692 | AM_RANGE(0x0000, 0x7fff) AM_ROM | |
| 693 | AM_RANGE(0xc000, 0xdfff) AM_RAM | |
| 694 | AM_RANGE(0xe000, 0xe000) AM_READWRITE(YM2610_status_port_0_A_r,YM2610_control_port_0_A_w) | |
| 695 | AM_RANGE(0xe001, 0xe001) AM_READWRITE(YM2610_read_port_0_r,YM2610_data_port_0_A_w) | |
| 696 | AM_RANGE(0xe002, 0xe002) AM_READWRITE(YM2610_status_port_0_B_r,YM2610_control_port_0_B_w) | |
| 731 | 697 | AM_RANGE(0xe003, 0xe003) AM_WRITE(YM2610_data_port_0_B_w) |
| 732 | AM_RANGE(0xe200, 0xe200) AM_WRITE(taitosound_slave_port_w) | |
| 733 | AM_RANGE(0xe201, 0xe201) AM_WRITE(taitosound_slave_comm_w) | |
| 698 | AM_RANGE(0xe200, 0xe200) AM_READWRITE(SMH_NOP,taitosound_slave_port_w) | |
| 699 | AM_RANGE(0xe201, 0xe201) AM_READWRITE(taitosound_slave_comm_r,taitosound_slave_comm_w) | |
| 734 | 700 | AM_RANGE(0xe400, 0xe403) AM_WRITE(SMH_NOP) /* pan */ |
| 701 | AM_RANGE(0xea00, 0xea00) AM_READ(SMH_NOP) | |
| 735 | 702 | AM_RANGE(0xee00, 0xee00) AM_WRITE(SMH_NOP) /* ? */ |
| 736 | 703 | AM_RANGE(0xf000, 0xf000) AM_WRITE(SMH_NOP) /* ? */ |
| 737 | 704 | AM_RANGE(0xf200, 0xf200) AM_WRITE(sound_bankswitch_w) |
| r2241 | r2242 | |
| 981 | 948 | |
| 982 | 949 | /* basic machine hardware */ |
| 983 | 950 | MDRV_CPU_ADD(M68000, 12000000) /* 12 MHz ??? */ |
| 984 | MDRV_CPU_PROGRAM_MAP( | |
| 951 | MDRV_CPU_PROGRAM_MAP( | |
| 985 | 952 | MDRV_CPU_VBLANK_INT("main", irq4_line_hold) |
| 986 | 953 | |
| 987 | 954 | MDRV_CPU_ADD(Z80, 16000000/4) /* 4 MHz ??? */ |
| 988 | 955 | /* audio CPU */ |
| 989 | MDRV_CPU_PROGRAM_MAP(z80_sound_ | |
| 956 | MDRV_CPU_PROGRAM_MAP(z80_sound_ | |
| 990 | 957 | |
| 991 | 958 | MDRV_CPU_ADD(M68000, 12000000) /* 12 MHz ??? */ |
| 992 | MDRV_CPU_PROGRAM_MAP( | |
| 959 | MDRV_CPU_PROGRAM_MAP( | |
| 993 | 960 | MDRV_CPU_VBLANK_INT("main", wgp_cpub_interrupt) |
| 994 | 961 | |
| 995 | 962 | MDRV_MACHINE_START(wgp) |
| r2241 | r2242 | |
| 1023 | 990 | |
| 1024 | 991 | |
| 1025 | 992 | static MACHINE_DRIVER_START( wgp2 ) |
| 993 | MDRV_IMPORT_FROM(wgp) | |
| 1026 | 994 | |
| 1027 | /* basic machine hardware */ | |
| 1028 | MDRV_CPU_ADD(M68000, 12000000) /* 12 MHz ??? */ | |
| 1029 | MDRV_CPU_PROGRAM_MAP(wgp_readmem,wgp_writemem) | |
| 1030 | MDRV_CPU_VBLANK_INT("main", irq4_line_hold) | |
| 1031 | ||
| 1032 | MDRV_CPU_ADD(Z80, 16000000/4) /* 4 MHz ??? */ | |
| 1033 | /* audio CPU */ | |
| 1034 | MDRV_CPU_PROGRAM_MAP(z80_sound_readmem,z80_sound_writemem) | |
| 1035 | ||
| 1036 | MDRV_CPU_ADD(M68000, 12000000) /* 12 MHz ??? */ | |
| 1037 | MDRV_CPU_PROGRAM_MAP(wgp_cpub_readmem,wgp_cpub_writemem) | |
| 1038 | MDRV_CPU_VBLANK_INT("main", wgp_cpub_interrupt) | |
| 1039 | ||
| 1040 | MDRV_MACHINE_START(wgp) | |
| 1041 | ||
| 1042 | 995 | MDRV_INTERLEAVE(200) |
| 1043 | ||
| 1044 | 996 | /* video hardware */ |
| 1045 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1046 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 1047 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 1048 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 1049 | MDRV_SCREEN_SIZE(40*8, 32*8) | |
| 1050 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 2*8, 32*8-1) | |
| 1051 | ||
| 1052 | MDRV_GFXDECODE(wgp) | |
| 1053 | MDRV_PALETTE_LENGTH(4096) | |
| 1054 | ||
| 1055 | 997 | MDRV_VIDEO_START(wgp2) |
| 1056 | MDRV_VIDEO_UPDATE(wgp) | |
| 1057 | ||
| 1058 | /* sound hardware */ | |
| 1059 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") | |
| 1060 | ||
| 1061 | MDRV_SOUND_ADD(YM2610, 16000000/2) | |
| 1062 | MDRV_SOUND_CONFIG(ym2610_interface) | |
| 1063 | MDRV_SOUND_ROUTE(0, "left", 0.25) | |
| 1064 | MDRV_SOUND_ROUTE(0, "right", 0.25) | |
| 1065 | MDRV_SOUND_ROUTE(1, "left", 1.0) | |
| 1066 | MDRV_SOUND_ROUTE(2, "right", 1.0) | |
| 1067 | 998 | MACHINE_DRIVER_END |
| 1068 | 999 | |
| 1069 | 1000 |
| r2241 | r2242 | |
|---|---|---|
| 344 | 344 | |
| 345 | 345 | static WRITE16_HANDLER( sound_command_w ) |
| 346 | 346 | { |
| 347 | if (ACCESSING_ | |
| 347 | if (ACCESSING_ | |
| 348 | 348 | { |
| 349 | 349 | pending_command = 1; |
| 350 | 350 | soundlatch_w(machine, 0, data & 0xff); |
| r2241 | r2242 | |
| 363 | 363 | } |
| 364 | 364 | |
| 365 | 365 | |
| 366 | static ADDRESS_MAP_START( welltris_readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 367 | AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM) | |
| 368 | AM_RANGE(0x100000, 0x17ffff) AM_READ(SMH_ROM) | |
| 369 | AM_RANGE(0x800000, 0x81ffff) AM_READ(SMH_RAM) /* Graph_1 & 2*/ | |
| 370 | AM_RANGE(0xff8000, 0xffbfff) AM_READ(SMH_RAM) /* Work */ | |
| 371 | AM_RANGE(0xffc000, 0xffc3ff) AM_READ(SMH_RAM) /* Sprite */ | |
| 372 | AM_RANGE(0xffd000, 0xffdfff) AM_READ(SMH_RAM) /* Char */ | |
| 373 | AM_RANGE(0xffe000, 0xffefff) AM_READ(SMH_RAM) /* Palette */ | |
| 374 | ||
| 375 | AM_RANGE(0xfff000, 0xfff001) AM_READ(input_port_1_word_r) /* Bottom Controls */ | |
| 376 | AM_RANGE(0xfff002, 0xfff003) AM_READ(input_port_2_word_r) /* Top Controls */ | |
| 377 | AM_RANGE(0xfff004, 0xfff005) AM_READ(input_port_3_word_r) /* Left Side Ctrls */ | |
| 378 | AM_RANGE(0xfff006, 0xfff007) AM_READ(input_port_4_word_r) /* Right Side Ctrls */ | |
| 379 | ||
| 380 | AM_RANGE(0xfff008, 0xfff009) AM_READ(in0_r) /* Coinage, Start Buttons, pending sound command etc. */ /* Bit 5 Tested at start of irq 1 */ | |
| 381 | AM_RANGE(0xfff00a, 0xfff00b) AM_READ(input_port_5_word_r) /* P3+P4 Coin + Start Buttons */ | |
| 382 | AM_RANGE(0xfff00c, 0xfff00d) AM_READ(input_port_6_word_r) /* DSW0 Coinage */ | |
| 383 | AM_RANGE(0xfff00e, 0xfff00f) AM_READ(input_port_7_word_r) /* DSW1 Game Options */ | |
| 384 | ADDRESS_MAP_END | |
| 385 | ||
| 386 | static ADDRESS_MAP_START( welltris_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 387 | AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM) | |
| 388 | AM_RANGE(0x100000, 0x17ffff) AM_WRITE(SMH_ROM) | |
| 389 | AM_RANGE(0x800000, 0x81ffff) AM_WRITE(SMH_RAM) AM_BASE(&welltris_pixelram) | |
| 390 | AM_RANGE(0xff8000, 0xffbfff) AM_WRITE(SMH_RAM) | |
| 391 | ||
| 392 | AM_RANGE(0xffc000, 0xffc3ff) AM_WRITE(welltris_spriteram_w) AM_BASE(&welltris_spriteram) | |
| 393 | AM_RANGE(0xffd000, 0xffdfff) AM_WRITE(welltris_charvideoram_w) AM_BASE(&welltris_charvideoram) | |
| 394 | AM_RANGE(0xffe000, 0xffefff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) | |
| 395 | ||
| 366 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 367 | AM_RANGE(0x000000, 0x03ffff) AM_ROM | |
| 368 | AM_RANGE(0x100000, 0x17ffff) AM_ROM | |
| 369 | AM_RANGE(0x800000, 0x81ffff) AM_RAM AM_BASE(&welltris_pixelram) /* Graph_1 & 2*/ | |
| 370 | AM_RANGE(0xff8000, 0xffbfff) AM_RAM /* work */ | |
| 371 | AM_RANGE(0xffc000, 0xffc3ff) AM_RAM AM_WRITE(welltris_spriteram_w) AM_BASE(&welltris_spriteram) /* Sprite */ | |
| 372 | AM_RANGE(0xffd000, 0xffdfff) AM_RAM AM_WRITE(welltris_charvideoram_w) AM_BASE(&welltris_charvideoram) /* Char */ | |
| 373 | AM_RANGE(0xffe000, 0xffefff) AM_RAM AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16) /* Palette */ | |
| 374 | AM_RANGE(0xfff000, 0xfff001) AM_READ(input_port_1_word_r) /* Bottom Controls */ | |
| 396 | 375 | AM_RANGE(0xfff000, 0xfff001) AM_WRITE(welltris_palette_bank_w) |
| 376 | AM_RANGE(0xfff002, 0xfff003) AM_READ(input_port_2_word_r) /* Top Controls */ | |
| 397 | 377 | AM_RANGE(0xfff002, 0xfff003) AM_WRITE(welltris_gfxbank_w) |
| 378 | AM_RANGE(0xfff004, 0xfff005) AM_READ(input_port_3_word_r) /* Left Side Ctrls */ | |
| 398 | 379 | AM_RANGE(0xfff004, 0xfff007) AM_WRITE(welltris_scrollreg_w) |
| 380 | AM_RANGE(0xfff006, 0xfff007) AM_READ(input_port_4_word_r) /* Right Side Ctrls */ | |
| 381 | AM_RANGE(0xfff008, 0xfff009) AM_READ(in0_r) /* Coinage, Start Buttons, pending sound command etc. */ /* Bit 5 Tested at start of irq 1 */ | |
| 399 | 382 | AM_RANGE(0xfff008, 0xfff009) AM_WRITE(sound_command_w) |
| 400 | AM_RANGE(0xfff00c, 0xfff00d) AM_WRITE(SMH_NOP) // ?? | |
| 401 | AM_RANGE(0xfff00e, 0xfff00f) AM_WRITE(SMH_NOP) // ?? | |
| 383 | AM_RANGE(0xfff00a, 0xfff00b) AM_READ(input_port_5_word_r) /* P3+P4 Coin + Start Buttons */ | |
| 384 | AM_RANGE(0xfff00c, 0xfff00d) AM_READ(input_port_6_word_r) /* DSW0 Coinage */ | |
| 385 | AM_RANGE(0xfff00c, 0xfff00d) AM_WRITE(SMH_NOP) /* ?? */ | |
| 386 | AM_RANGE(0xfff00e, 0xfff00f) AM_READ(input_port_7_word_r) /* DSW1 Game Options */ | |
| 387 | AM_RANGE(0xfff00e, 0xfff00f) AM_WRITE(SMH_NOP) /* ?? */ | |
| 402 | 388 | ADDRESS_MAP_END |
| 403 | 389 | |
| 404 | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 405 | AM_RANGE(0x0000, 0x77ff) AM_READ(SMH_ROM) | |
| 406 | AM_RANGE(0x7800, 0x7fff) AM_READ(SMH_RAM) | |
| 407 | AM_RANGE(0x8000, 0xffff) AM_READ(SMH_BANK1) | |
| 390 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 391 | AM_RANGE(0x0000, 0x77ff) AM_ROM | |
| 392 | AM_RANGE(0x7800, 0x7fff) AM_RAM | |
| 393 | AM_RANGE(0x8000, 0xffff) AM_ROM AM_READ(SMH_BANK1) | |
| 408 | 394 | ADDRESS_MAP_END |
| 409 | 395 | |
| 410 | static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 411 | AM_RANGE(0x0000, 0x77ff) AM_WRITE(SMH_ROM) | |
| 412 | AM_RANGE(0x7800, 0x7fff) AM_WRITE(SMH_RAM) | |
| 413 | AM_RANGE(0x8000, 0xffff) AM_WRITE(SMH_ROM) | |
| 414 | ADDRESS_MAP_END | |
| 415 | ||
| 416 | static ADDRESS_MAP_START( sound_readport, ADDRESS_SPACE_IO, 8 ) | |
| 396 | static ADDRESS_MAP_START( sound_port_map, ADDRESS_SPACE_IO, 8 ) | |
| 417 | 397 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 418 | AM_RANGE(0x08, 0x08) AM_READ(YM2610_status_port_0_A_r) | |
| 419 | AM_RANGE(0x0a, 0x0a) AM_READ(YM2610_status_port_0_B_r) | |
| 420 | AM_RANGE(0x10, 0x10) AM_READ(soundlatch_r) | |
| 421 | ADDRESS_MAP_END | |
| 422 | ||
| 423 | static ADDRESS_MAP_START( sound_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 424 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 425 | 398 | AM_RANGE(0x00, 0x00) AM_WRITE(welltris_sh_bankswitch_w) |
| 426 | AM_RANGE(0x08, 0x08) AM_WRITE(YM2610_control_port_0_A_w) | |
| 399 | AM_RANGE(0x08, 0x08) AM_READWRITE(YM2610_status_port_0_A_r,YM2610_control_port_0_A_w) | |
| 427 | 400 | AM_RANGE(0x09, 0x09) AM_WRITE(YM2610_data_port_0_A_w) |
| 428 | AM_RANGE(0x0a, 0x0a) AM_WRITE(YM2610_control_port_0_B_w) | |
| 401 | AM_RANGE(0x0a, 0x0a) AM_READWRITE(YM2610_status_port_0_B_r,YM2610_control_port_0_B_w) | |
| 429 | 402 | AM_RANGE(0x0b, 0x0b) AM_WRITE(YM2610_data_port_0_B_w) |
| 403 | AM_RANGE(0x10, 0x10) AM_READ(soundlatch_r) | |
| 430 | 404 | AM_RANGE(0x18, 0x18) AM_WRITE(pending_command_clear_w) |
| 431 | 405 | ADDRESS_MAP_END |
| 432 | 406 | |
| 433 | ||
| 434 | ||
| 435 | 407 | static INPUT_PORTS_START( welltris ) |
| 436 | 408 | PORT_START |
| 437 | 409 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) |
| r2241 | r2242 | |
| 751 | 723 | |
| 752 | 724 | /* basic machine hardware */ |
| 753 | 725 | MDRV_CPU_ADD(M68000,20000000/2) /* 10 MHz */ |
| 754 | MDRV_CPU_PROGRAM_MAP( | |
| 726 | MDRV_CPU_PROGRAM_MAP( | |
| 755 | 727 | MDRV_CPU_VBLANK_INT("main", irq1_line_hold) |
| 756 | 728 | |
| 757 | MDRV_CPU_ADD(Z80,8000000/2) /* 4 MHz ??? */ | |
| 758 | 729 | /* audio CPU */ |
| 759 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) | |
| 760 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) | |
| 761 | /* IRQs are triggered by the YM2610 */ | |
| 730 | MDRV_CPU_ADD(Z80,8000000/2) /* 4 MHz ??? */ | |
| 731 | MDRV_CPU_PROGRAM_MAP(sound_map,0) | |
| 732 | MDRV_CPU_IO_MAP(sound_port_map,0) /* IRQs are triggered by the YM2610 */ | |
| 762 | 733 | |
| 763 | 734 | /* video hardware */ |
| 764 | 735 | MDRV_SCREEN_ADD("main", RASTER) |
| r2241 | r2242 | |
|---|---|---|
| 65 | 65 | break; |
| 66 | 66 | |
| 67 | 67 | case 4: /* 6502 sound cpu */ |
| 68 | if (ACCESSING_ | |
| 68 | if (ACCESSING_ | |
| 69 | 69 | { |
| 70 | 70 | soundlatch_w(machine,0,data & 0xff); |
| 71 | 71 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
| 101 | 101 | { |
| 102 | 102 | switch (offset<<1) { |
| 103 | 103 | case 0: |
| 104 | if (ACCESSING_ | |
| 104 | if (ACCESSING_ | |
| 105 | 105 | { |
| 106 | 106 | soundlatch_w(machine,0,data & 0xff); |
| 107 | 107 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
| 115 | 115 | |
| 116 | 116 | static WRITE16_HANDLER( midres_sound_w ) |
| 117 | 117 | { |
| 118 | if (ACCESSING_ | |
| 118 | if (ACCESSING_ | |
| 119 | 119 | { |
| 120 | 120 | soundlatch_w(machine,0,data & 0xff); |
| 121 | 121 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 308 | 308 | static WRITE16_HANDLER( ssv_lockout_w ) |
| 309 | 309 | { |
| 310 | 310 | // popmessage("%02X",data & 0xff); |
| 311 | if (ACCESSING_ | |
| 311 | if (ACCESSING_ | |
| 312 | 312 | { |
| 313 | 313 | coin_lockout_w(1,~data & 0x01); |
| 314 | 314 | coin_lockout_w(0,~data & 0x02); |
| r2241 | r2242 | |
| 323 | 323 | static WRITE16_HANDLER( ssv_lockout_inv_w ) |
| 324 | 324 | { |
| 325 | 325 | // popmessage("%02X",data & 0xff); |
| 326 | if (ACCESSING_ | |
| 326 | if (ACCESSING_ | |
| 327 | 327 | { |
| 328 | 328 | coin_lockout_w(1, data & 0x01); |
| 329 | 329 | coin_lockout_w(0, data & 0x02); |
| r2241 | r2242 | |
| 501 | 501 | if (data & ~0x7b00) |
| 502 | 502 | logerror("CPU #0 PC: %06X - Unknown EEPROM bit written %04X\n",activecpu_get_pc(),data); |
| 503 | 503 | |
| 504 | if ( ACCESSING_ | |
| 504 | if ( ACCESSING_ | |
| 505 | 505 | { |
| 506 | 506 | // data & 0x8000 ? (near palette writes) |
| 507 | 507 | // data & 0x0001 ? |
| r2241 | r2242 | |
| 561 | 561 | if (data & ~0x43) |
| 562 | 562 | logerror("CPU #0 PC: %06X - Unknown gdfs_gfxram_bank bit written %04X\n",activecpu_get_pc(),data); |
| 563 | 563 | |
| 564 | if (ACCESSING_ | |
| 564 | if (ACCESSING_ | |
| 565 | 565 | gdfs_gfxram_bank = data & 3; |
| 566 | 566 | } |
| 567 | 567 | break; |
| r2241 | r2242 | |
| 828 | 828 | |
| 829 | 829 | static WRITE16_HANDLER( srmp7_sound_bank_w ) |
| 830 | 830 | { |
| 831 | if (ACCESSING_ | |
| 831 | if (ACCESSING_ | |
| 832 | 832 | { |
| 833 | 833 | int bank = 0x400000/2 * (data & 1); // UINT16 address |
| 834 | 834 | int voice; |
| r2241 | r2242 | |
| 908 | 908 | |
| 909 | 909 | static WRITE16_HANDLER( sxyreact_dial_w ) |
| 910 | 910 | { |
| 911 | if (ACCESSING_ | |
| 911 | if (ACCESSING_ | |
| 912 | 912 | { |
| 913 | 913 | static int old; |
| 914 | 914 | |
| r2241 | r2242 | |
| 1063 | 1063 | |
| 1064 | 1064 | static WRITE16_HANDLER( eaglshot_gfxrom_w ) |
| 1065 | 1065 | { |
| 1066 | if (ACCESSING_ | |
| 1066 | if (ACCESSING_ | |
| 1067 | 1067 | gfxrom_select = data; |
| 1068 | 1068 | } |
| 1069 | 1069 | |
| r2241 | r2242 | |
| 1082 | 1082 | |
| 1083 | 1083 | static WRITE16_HANDLER( eaglshot_trackball_w ) |
| 1084 | 1084 | { |
| 1085 | if (ACCESSING_ | |
| 1085 | if (ACCESSING_ | |
| 1086 | 1086 | trackball_select = data; |
| 1087 | 1087 | } |
| 1088 | 1088 |
| r2241 | r2242 | |
|---|---|---|
| 240 | 240 | |
| 241 | 241 | static WRITE16_HANDLER( system_control_w ) |
| 242 | 242 | { |
| 243 | if ((ACCESSING_ | |
| 243 | if ((ACCESSING_ | |
| 244 | 244 | { |
| 245 | 245 | data >>= 8; |
| 246 | 246 | } |
| r2241 | r2242 | |
| 259 | 259 | |
| 260 | 260 | static WRITE16_HANDLER( lineram_w ) |
| 261 | 261 | { |
| 262 | if (ACCESSING_ | |
| 262 | if (ACCESSING_ | |
| 263 | 263 | taitoair_line_ram[offset] = data; |
| 264 | 264 | } |
| 265 | 265 | |
| r2241 | r2242 | |
| 270 | 270 | |
| 271 | 271 | static WRITE16_HANDLER( dspram_w ) |
| 272 | 272 | { |
| 273 | if (ACCESSING_ | |
| 273 | if (ACCESSING_ | |
| 274 | 274 | dsp_ram[offset] = data; |
| 275 | 275 | } |
| 276 | 276 |
| r2241 | r2242 | |
|---|---|---|
| 106 | 106 | static WRITE16_HANDLER( io_latch_w ) |
| 107 | 107 | { |
| 108 | 108 | /* upper byte */ |
| 109 | if (ACCESSING_ | |
| 109 | if (ACCESSING_ | |
| 110 | 110 | { |
| 111 | 111 | /* bit 14 controls the ASIC65 reset line */ |
| 112 | 112 | asic65_reset((~data >> 14) & 1); |
| r2241 | r2242 | |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /* lower byte */ |
| 119 | if (ACCESSING_ | |
| 119 | if (ACCESSING_ | |
| 120 | 120 | { |
| 121 | 121 | /* bit 4 resets the sound CPU */ |
| 122 | 122 | cpunum_set_input_line(machine, 2, INPUT_LINE_RESET, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 52 | 52 | |
| 53 | 53 | static WRITE16_HANDLER( m68k_shared_word_w ) |
| 54 | 54 | { |
| 55 | if (ACCESSING_ | |
| 55 | if (ACCESSING_ | |
| 56 | 56 | m68k_shared_ram[offset] = data & 0xff; |
| 57 | 57 | } |
| 58 | 58 |
| r2241 | r2242 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 1 | /*********************************************************************************************************** | |
| 2 | 2 | Barcrest MPU4 highly preliminary driver by J.Wallace, and Anonymous. |
| 3 | 3 | |
| 4 | 4 | Any MAME-approved games should go here. |
| r2241 | r2242 | |
| 6 | 6 | See http://www.mameworld.net/agemame/techinfo/mpu4.php for Information. |
| 7 | 7 | |
| 8 | 8 | --- Board Setup --- |
| 9 | For the Barcrest MPU4 Video system, the GAME CARD (cartridge) contains the MPU4 video bios in the usual ROM space (occupying 16k), | |
| 10 | an interface card to connect an additional Video board, and a 6850 serial IO to communicate with said board. | |
| 9 | For the Barcrest MPU4 Video system, the GAME CARD (cartridge) contains the MPU4 video bios in the usual ROM | |
| 10 | space (occupying 16k), an interface card to connect an additional Video board, and a 6850 serial IO to | |
| 11 | communicate with said board. | |
| 11 | 12 | This version of the game card does not have the OKI chip, or the characteriser. |
| 12 | 13 | |
| 13 | The VIDEO BOARD is driven by a 10mhz 68000 processor, and contains a 6840PTM, 6850 serial IO (the other end of the | |
| 14 | communications), an SAA1099 for stereo sound and SCN2674 gfx chip. | |
| 14 | The VIDEO BOARD is driven by a 10mhz 68000 processor, and contains a 6840PTM, 6850 serial IO | |
| 15 | (the other end of the communications), an SAA1099 for stereo sound and SCN2674 gfx chip. | |
| 15 | 16 | |
| 16 | The VIDEO CARTRIDGE plugs into the video board, and contains the program roms for the video based game. Like the MPU4 game | |
| 17 | card, in some cases an extra OKI sound chip is added to the video board's game card,as well as extra RAM. | |
| 18 | There is a protection chip similar to and replacing the MPU4 Characteriser, which is often fed question data to descramble | |
| 19 | (unknown how it works). In non-question cases, however, the protection chip works near identically to the original. | |
| 17 | The VIDEO CARTRIDGE plugs into the video board, and contains the program roms for the video based game. | |
| 18 | Like the MPU4 game card, in some cases an extra OKI sound chip is added to the video board's game card, | |
| 19 | as well as extra RAM. | |
| 20 | There is a protection chip similar to and replacing the MPU4 Characteriser, which is often fed question | |
| 21 | data to descramble (unknown how it works). In non-question cases, however, the protection chip works | |
| 22 | near identically to the original. | |
| 20 | 23 | |
| 21 | 24 | No video card schematics ever left the PCB factory, but some decent scans of the board have been made, |
| 22 | 25 | now also available for review. |
| r2241 | r2242 | |
| 169 | 172 | -----------+---+-----------------+-------------------------------------------------------------------------- |
| 170 | 173 | C000-FFFF | R | D D D D D D D D | ROM |
| 171 | 174 | -----------+---+-----------------+-------------------------------------------------------------------------- |
| 172 | TODO: | |
| 175 | TODO: | |
| 173 | 176 | - MPU4 Master clock value taken from schematic, but 68k value is not. |
| 174 | - Deal 'Em lockouts vary on certain cabinets (normally connected to AUX, but not there?) | |
| 177 | - Deal 'Em lockouts vary on certain cabinets (normally connected to AUX2, but not there?) | |
| 175 | 178 | - Deal 'Em has bad tiles (apostrophe, logo, bottom corner), black should actually be transparent |
| 176 | 179 | - to give black on green. |
| 177 | *****************************************************************************************/ | |
| 180 | ***********************************************************************************************************/ | |
| 178 | 181 | |
| 179 | / | |
| 182 | /* MPU4 Video */ | |
| 180 | 183 | #include "cpu/m68000/m68000.h" |
| 181 | 184 | #include "machine/6850acia.h" |
| 182 | 185 | #include "sound/saa1099.h" |
| r2241 | r2242 | |
| 191 | 194 | |
| 192 | 195 | #define LOGSTUFF(x) do { if (MPU4VIDVERBOSE) logerror x; } while (0) |
| 193 | 196 | |
| 194 | #define VIDEO_MASTER_CLOCK (10 | |
| 197 | #define VIDEO_MASTER_CLOCK (XTAL_10MHz | |
| 195 | 198 | |
| 199 | /* IRQ states for 68k */ | |
| 196 | 200 | static UINT8 m6840_irq_state; |
| 197 | 201 | static UINT8 m6850_irq_state; |
| 198 | 202 | static UINT8 scn2674_irq_state; |
| r2241 | r2242 | |
| 205 | 209 | static UINT8 m6809_acia_rts; |
| 206 | 210 | static UINT8 m6809_acia_dcd; |
| 207 | 211 | |
| 212 | /* SCN2674 AVDC stuff */ | |
| 208 | 213 | static int mpu4_gfx_index; |
| 209 | 214 | static UINT16 * mpu4_vid_vidram; |
| 210 | static UINT8 * mpu4_vid_vidram_is_dirty; | |
| 215 | static UINT8 * mpu4_vid_vidram_is_dirty; | |
| 211 | 216 | static UINT16 * mpu4_vid_mainram; |
| 212 | 217 | |
| 213 | 218 | static UINT8 scn2674_IR[16]; |
| r2241 | r2242 | |
| 219 | 224 | static UINT8 scn2674_screen2_l; |
| 220 | 225 | static UINT8 scn2674_screen2_h; |
| 221 | 226 | |
| 222 | /////////////////////////////////////////////////////////////////////////// | |
| 223 | 227 | |
| 228 | /* called if board is reset */ | |
| 224 | 229 | static MACHINE_RESET( mpu4_vid ) |
| 225 | 230 | { |
| 226 | ROC10937_reset(0); | |
| 231 | ROC10937_reset(0); | |
| 227 | 232 | |
| 228 | / | |
| 233 | /* cpunum_set_input_line(machine, 1, INPUT_LINE_HALT, ASSERT_LINE); */ | |
| 229 | 234 | mpu4_stepper_reset(); |
| 230 | 235 | |
| 231 | 236 | lamp_strobe = 0; |
| r2241 | r2242 | |
| 242 | 247 | prot_col = 0; |
| 243 | 248 | } |
| 244 | 249 | |
| 250 | ||
| 245 | 251 | /************************************* |
| 246 | 252 | * |
| 247 | 253 | * Interrupt system |
| r2241 | r2242 | |
| 262 | 268 | 0 - Unused |
| 263 | 269 | */ |
| 264 | 270 | |
| 271 | ||
| 265 | 272 | static void update_mpu68_interrupts(void) |
| 266 | 273 | { |
| 267 | 274 | int newstate = 0; |
| 268 | 275 | |
| 269 | if (m6840_irq_state) | |
| 276 | if (m6840_irq_state) | |
| 270 | 277 | newstate = 1; |
| 271 | if (m6850_irq_state) | |
| 278 | if (m6850_irq_state) | |
| 272 | 279 | newstate = 2; |
| 273 | if (scn2674_irq_state) | |
| 280 | if (scn2674_irq_state) | |
| 274 | 281 | newstate = 3; |
| 275 | 282 | |
| 276 | 283 | /* set the new state of the IRQ lines */ |
| r2241 | r2242 | |
| 286 | 293 | } |
| 287 | 294 | } |
| 288 | 295 | |
| 289 | // Communications //////////////////////////////////////////////////////// | |
| 290 | /* Clock values are currently unknown, and are derived from the 68k board. | |
| 291 | It *should* be the case that the rx and tx pins are triggered solely by | |
| 292 | the 6840 timeout, but the ACIA core doesn't allow that. | |
| 293 | For now, it's fixed to the frequency set by the PTM on initialisation.*/ | |
| 296 | /* Communications with 6809 board */ | |
| 297 | /* Clock values are currently unknown, and are derived from the 68k board.*/ | |
| 298 | ||
| 294 | 299 | static void m6809_acia_irq(int state) |
| 295 | 300 | { |
| 296 | 301 | m68k_acia_cts = state; |
| 297 | 302 | cpunum_set_input_line(Machine, 0, M6809_IRQ_LINE, state?ASSERT_LINE:CLEAR_LINE); |
| 298 | 303 | } |
| 299 | 304 | |
| 305 | ||
| 300 | 306 | static void m68k_acia_irq(int state) |
| 301 | 307 | { |
| 302 | 308 | m6809_acia_cts = state; |
| r2241 | r2242 | |
| 304 | 310 | update_mpu68_interrupts(); |
| 305 | 311 | } |
| 306 | 312 | |
| 313 | ||
| 307 | 314 | static const struct acia6850_interface m6809_acia_if = |
| 308 | 315 | { |
| 309 | 1,//This isn't a real division, this is just to work around | |
| 310 | 1,//the ACIA code's hard coding | |
| 316 | 0, | |
| 317 | 0, | |
| 311 | 318 | &m68k_m6809_line, |
| 312 | 319 | &m6809_m68k_line, |
| 313 | 320 | &m6809_acia_cts, |
| r2241 | r2242 | |
| 316 | 323 | m6809_acia_irq |
| 317 | 324 | }; |
| 318 | 325 | |
| 326 | ||
| 319 | 327 | static const struct acia6850_interface m68k_acia_if = |
| 320 | 328 | { |
| 321 | 1, | |
| 322 | 1, | |
| 329 | 0, | |
| 330 | 0, | |
| 323 | 331 | &m6809_m68k_line, |
| 324 | 332 | &m68k_m6809_line, |
| 325 | 333 | &m68k_acia_cts, |
| r2241 | r2242 | |
| 328 | 336 | m68k_acia_irq |
| 329 | 337 | }; |
| 330 | 338 | |
| 339 | ||
| 331 | 340 | static void cpu1_ptm_irq(int state) |
| 332 | 341 | { |
| 333 | 342 | m6840_irq_state = state; |
| 334 | 343 | update_mpu68_interrupts(); |
| 335 | 344 | } |
| 336 | 345 | |
| 346 | ||
| 337 | 347 | static WRITE8_HANDLER( vid_o1_callback ) |
| 338 | 348 | { |
| 339 | i | |
| 349 | ptm6840_set_c2( 1, data); /* this output is the clock for timer2 */ | |
| 340 | 350 | |
| 341 | ptm6840_set_c2( 1, data); // copy output value to c2 | |
| 342 | ||
| 343 | 351 | if (data) |
| 344 | 352 | { |
| 345 | clock = MPU4_MASTER_CLOCK/44; | |
| 346 | LOGSTUFF(("acia on for %d cycles \n",ptm6840_get_count(1,0))); | |
| 353 | acia_tx_clock_in(0); | |
| 354 | acia_rx_clock_in(0); | |
| 355 | acia_tx_clock_in(1); | |
| 356 | acia_rx_clock_in(1); | |
| 347 | 357 | } |
| 348 | else | |
| 349 | { | |
| 350 | clock = 1; //as low as we can go, ideally we need to switch the ACIAs off | |
| 351 | } | |
| 352 | acia6850_set_rx_clock(0, clock); | |
| 353 | acia6850_set_tx_clock(0, clock); | |
| 354 | acia6850_set_rx_clock(1, clock); | |
| 355 | acia6850_set_tx_clock(1, clock); | |
| 356 | 358 | } |
| 357 | 359 | |
| 360 | ||
| 358 | 361 | static WRITE8_HANDLER( vid_o2_callback ) |
| 359 | 362 | { |
| 360 | ptm6840_set_c3( 1, data); / | |
| 363 | ptm6840_set_c3( 1, data); /* this output is | |
| 361 | 364 | } |
| 362 | 365 | |
| 366 | ||
| 363 | 367 | static WRITE8_HANDLER( vid_o3_callback ) |
| 364 | 368 | { |
| 365 | ptm6840_set_c1( 1, data); / | |
| 369 | ptm6840_set_c1( 1, data); /* this output is | |
| 366 | 370 | } |
| 367 | 371 | |
| 368 | ||
| 372 | ||
| 369 | 373 | static const ptm6840_interface ptm_vid_intf = |
| 370 | 374 | { |
| 371 | VIDEO_MASTER_CLOCK/10, | |
| 375 | VIDEO_MASTER_CLOCK/10, /* 68k E clock */ | |
| 372 | 376 | { 0,0,0 }, |
| 373 | 377 | { vid_o1_callback, vid_o2_callback, vid_o3_callback }, |
| 374 | 378 | cpu1_ptm_irq |
| 375 | 379 | }; |
| 376 | 380 | |
| 377 | // SCN2674 AVDC emulation | |
| 378 | 381 | |
| 382 | /* SCN2674 AVDC emulation */ | |
| 379 | 383 | /* the chip is actually more complex than this.. character aren't limited to 8 rows high... but I |
| 380 | don't *think* the MPU4 stuff needs otherwise.. yet .. */ | |
| 384 | don't *think* the MPU4 stuff needs otherwise.. yet .. */ | |
| 381 | 385 | |
| 382 | 386 | static const gfx_layout mpu4_vid_char_8x8_layout = |
| 383 | 387 | { |
| 384 | 388 | 8,8, |
| 385 | 0x1000, / | |
| 389 | 0x1000, /* 0x1000 tiles (128k of GFX RAM, 0x20 bytes per tile) */ | |
| 386 | 390 | 4, |
| 387 | 391 | { 0,8,16,24 }, |
| 388 | 392 | { 0,1,2,3,4,5,6,7 }, |
| r2241 | r2242 | |
| 390 | 394 | 8*32 |
| 391 | 395 | }; |
| 392 | 396 | |
| 397 | ||
| 393 | 398 | /* double height */ |
| 394 | 399 | static const gfx_layout mpu4_vid_char_8x16_layout = |
| 395 | 400 | { |
| 396 | 401 | 8,16, |
| 397 | 0x1000, / | |
| 402 | 0x1000, /* 0x1000 tiles (128k of GFX RAM, 0x20 bytes per tile) */ | |
| 398 | 403 | 4, |
| 399 | 404 | { 0,8,16,24 }, |
| 400 | 405 | { 0,1,2,3,4,5,6,7 }, |
| r2241 | r2242 | |
| 402 | 407 | 8*32 |
| 403 | 408 | }; |
| 404 | 409 | |
| 410 | ||
| 405 | 411 | /* double width */ |
| 406 | 412 | static const gfx_layout mpu4_vid_char_16x8_layout = |
| 407 | 413 | { |
| 408 | 414 | 16,8, |
| 409 | 0x1000, / | |
| 415 | 0x1000, /* 0x1000 tiles (128k of GFX RAM, 0x20 bytes per tile) */ | |
| 410 | 416 | 4, |
| 411 | 417 | { 0,8,16,24 }, |
| 412 | 418 | { 0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7 }, |
| r2241 | r2242 | |
| 414 | 420 | 8*32 |
| 415 | 421 | }; |
| 416 | 422 | |
| 423 | ||
| 417 | 424 | /* double height & width */ |
| 418 | 425 | static const gfx_layout mpu4_vid_char_16x16_layout = |
| 419 | 426 | { |
| 420 | 427 | 16,16, |
| 421 | 0x1000, / | |
| 428 | 0x1000, /* 0x1000 tiles (128k of GFX RAM, 0x20 bytes per tile) */ | |
| 422 | 429 | 4, |
| 423 | 430 | { 0,8,16,24 }, |
| 424 | 431 | { 0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7 }, |
| r2241 | r2242 | |
| 426 | 433 | 8*32 |
| 427 | 434 | }; |
| 428 | 435 | |
| 429 | /////////////////////////////////////////////////////////////////////////// | |
| 430 | 436 | |
| 431 | 437 | static UINT8 IR0_scn2674_double_ht_wd; |
| 432 | 438 | static UINT8 IR0_scn2674_scanline_per_char_row; |
| r2241 | r2242 | |
| 452 | 458 | static UINT8 IR13_scn2674_scroll_end; |
| 453 | 459 | static UINT8 IR13_scn2674_split_register_2; |
| 454 | 460 | |
| 461 | ||
| 455 | 462 | static VIDEO_UPDATE( mpu4_vid ) |
| 456 | 463 | { |
| 457 | 464 | int i; |
| r2241 | r2242 | |
| 460 | 467 | |
| 461 | 468 | fillbitmap(bitmap,0,cliprect); |
| 462 | 469 | |
| 463 | for (i=0; i < 0x1000; i++) | |
| 470 | for (i = 0; i < 0x1000; i++) | |
| 464 | 471 | { |
| 465 | 472 | if (mpu4_vid_vidram_is_dirty[i]==1) |
| 466 | 473 | { |
| r2241 | r2242 | |
| 473 | 480 | } |
| 474 | 481 | |
| 475 | 482 | /* this is in main ram.. i think it must transfer it out of here??? */ |
| 476 | // count = 0x0018b6/2; // crmaze | |
| 477 | // count = 0x004950/2; // turnover | |
| 483 | /* count = 0x0018b6/2; - crmaze count = 0x004950/2; - turnover */ | |
| 478 | 484 | |
| 479 | 485 | /* we're in row table mode...thats why */ |
| 480 | ||
| 481 | for(y=0;y<=IR4_scn2674_rows_per_screen;y++) | |
| 486 | for(y = 0; y <= IR4_scn2674_rows_per_screen; y++) | |
| 482 | 487 | { |
| 483 | 488 | int screen2_base = (scn2674_screen2_h<<8)|(scn2674_screen2_l); |
| 484 | 489 | |
| r2241 | r2242 | |
| 486 | 491 | int dbl_size; |
| 487 | 492 | int gfxregion = 0; |
| 488 | 493 | |
| 489 | dbl_size = (rowbase & 0xc000)>>14; / | |
| 494 | dbl_size = (rowbase & 0xc000)>>14; /* ONLY if double size is enabled.. otherwise it can address more chars given more RAM */ | |
| 490 | 495 | |
| 491 | 496 | if (dbl_size&2) gfxregion = 1; |
| 492 | 497 | |
| 493 | ||
| 494 | for(x=0;x<=IR5_scn2674_character_per_row;x++) | |
| 498 | for(x = 0; x <= IR5_scn2674_character_per_row; x++) | |
| 495 | 499 | { |
| 496 | 500 | UINT16 tiledat; |
| 497 | 501 | UINT16 colattr; |
| r2241 | r2242 | |
| 505 | 509 | count++; |
| 506 | 510 | } |
| 507 | 511 | |
| 508 | if (dbl_size&2) y++; / | |
| 512 | if (dbl_size&2) y++; /* skip a row? */ | |
| 509 | 513 | |
| 510 | 514 | } |
| 511 | 515 | |
| 512 | 516 | popmessage("%02x %02x %02x %02x %02x %02x",scn2674_screen1_l,scn2674_screen1_h,scn2674_cursor_l, scn2674_cursor_h,scn2674_screen2_l,scn2674_screen2_h); |
| 513 | 517 | |
| 514 | for (i=0; i<8; i++) | |
| 518 | for (i = 0; i < 8; i++) | |
| 515 | 519 | mpu4_draw_led(i, led_segs[i]); |
| 516 | 520 | |
| 517 | 521 | return 0; |
| 518 | 522 | } |
| 519 | 523 | |
| 524 | ||
| 520 | 525 | static READ16_HANDLER( mpu4_vid_vidram_r ) |
| 521 | 526 | { |
| 522 | 527 | return mpu4_vid_vidram[offset]; |
| 523 | 528 | } |
| 524 | 529 | |
| 530 | ||
| 525 | 531 | static WRITE16_HANDLER( mpu4_vid_vidram_w ) |
| 526 | 532 | { |
| 527 | 533 | COMBINE_DATA(&mpu4_vid_vidram[offset]); |
| r2241 | r2242 | |
| 529 | 535 | mpu4_vid_vidram_is_dirty[offset/0x20]=1; |
| 530 | 536 | } |
| 531 | 537 | |
| 538 | ||
| 532 | 539 | /* |
| 533 | 540 | SCN2674 - Advanced Video Display Controller (AVDC) (Video Chip) |
| 534 | 541 | |
| r2241 | r2242 | |
| 551 | 558 | IR12 ---- ---- |
| 552 | 559 | IR13 ---- ---- |
| 553 | 560 | IR14 ---- ---- |
| 554 | ||
| 555 | 561 | */ |
| 556 | 562 | |
| 563 | ||
| 557 | 564 | static void scn2674_write_init_regs(UINT8 data) |
| 558 | 565 | { |
| 559 | 566 | LOGSTUFF(("scn2674_write_init_regs %02x %02x\n",scn2675_IR_pointer,data)); |
| r2241 | r2242 | |
| 561 | 568 | scn2674_IR[scn2675_IR_pointer]=data; |
| 562 | 569 | |
| 563 | 570 | |
| 564 | switch ( scn2675_IR_pointer) / | |
| 571 | switch ( scn2675_IR_pointer) /* display some debug info, set mame specific variables */ | |
| 565 | 572 | { |
| 566 | 573 | case 0: |
| 567 | 574 | IR0_scn2674_double_ht_wd = (data & 0x80)>>7; |
| r2241 | r2242 | |
| 662 | 669 | case 14: |
| 663 | 670 | break; |
| 664 | 671 | |
| 665 | case 15: / | |
| 672 | case 15: /* not valid! */ | |
| 666 | 673 | break; |
| 667 | 674 | |
| 668 | 675 | } |
| r2241 | r2242 | |
| 687 | 694 | |
| 688 | 695 | if (data==0x00) |
| 689 | 696 | { |
| 690 | / | |
| 697 | /* master reset, configures registers */ | |
| 691 | 698 | LOGSTUFF(("master reset\n")); |
| 692 | 699 | scn2675_IR_pointer=0; |
| 693 | 700 | scn2674_irq_register = 0x20; |
| r2241 | r2242 | |
| 701 | 708 | |
| 702 | 709 | if ((data&0xf0)==0x10) |
| 703 | 710 | { |
| 704 | / | |
| 711 | /* set IR pointer */ | |
| 705 | 712 | LOGSTUFF(("set IR pointer %02x\n",data)); |
| 706 | 713 | |
| 707 | 714 | oprand = data & 0x0f; |
| r2241 | r2242 | |
| 709 | 716 | |
| 710 | 717 | } |
| 711 | 718 | |
| 712 | /* | |
| 719 | /* | |
| 713 | 720 | |
| 714 | 721 | if ((data&0xe3)==0x22) |
| 715 | 722 | { |
| 716 | / | |
| 723 | /* Disable GFX */ | |
| 717 | 724 | LOGSTUFF(("disable GFX %02x\n",data)); |
| 718 | 725 | scn2674_gfx_enabled = 0; |
| 719 | 726 | } |
| 720 | 727 | |
| 721 | 728 | if ((data&0xe3)==0x23) |
| 722 | 729 | { |
| 723 | / | |
| 730 | /* Enable GFX */ | |
| 724 | 731 | LOGSTUFF(("enable GFX %02x\n",data)); |
| 725 | 732 | scn2674_gfx_enabled = 1; |
| 726 | 733 | } |
| 727 | 734 | |
| 728 | 735 | if ((data&0xe9)==0x28) |
| 729 | 736 | { |
| 730 | / | |
| 737 | /* Display off */ | |
| 731 | 738 | oprand = data & 0x04; |
| 732 | 739 | |
| 733 | 740 | scn2674_display_enabled = 0; |
| r2241 | r2242 | |
| 740 | 747 | |
| 741 | 748 | if ((data&0xe9)==0x29) |
| 742 | 749 | { |
| 743 | / | |
| 750 | /* Display on */ | |
| 744 | 751 | oprand = data & 0x04; |
| 745 | 752 | |
| 746 | 753 | scn2674_display_enabled = 1; |
| r2241 | r2242 | |
| 749 | 756 | LOGSTUFF(("display ON - next field %02x\n",data)); |
| 750 | 757 | else |
| 751 | 758 | LOGSTUFF(("display ON - next scanline %02x\n",data)); |
| 752 | ||
| 753 | 759 | } |
| 754 | 760 | |
| 755 | 761 | if ((data&0xf1)==0x30) |
| 756 | 762 | { |
| 757 | / | |
| 763 | /* Cursor Off */ | |
| 758 | 764 | LOGSTUFF(("cursor off %02x\n",data)); |
| 759 | 765 | scn2674_cursor_enabled = 0; |
| 760 | 766 | } |
| 761 | 767 | |
| 762 | 768 | if ((data&0xf1)==0x31) |
| 763 | 769 | { |
| 764 | / | |
| 770 | /* Cursor On */ | |
| 765 | 771 | LOGSTUFF(("cursor on %02x\n",data)); |
| 766 | 772 | scn2674_cursor_enabled = 1; |
| 767 | 773 | } |
| 768 | 774 | |
| 769 | /* | |
| 775 | /* | |
| 770 | 776 | |
| 771 | 777 | if ((data&0xe0)==0x40) |
| 772 | 778 | { |
| 773 | / | |
| 779 | /* Reset Interrupt / Status bit */ | |
| 774 | 780 | oprand = data & 0x1f; |
| 775 | 781 | LOGSTUFF(("reset interrupt / status bit %02x\n",data)); |
| 776 | 782 | |
| r2241 | r2242 | |
| 792 | 798 | } |
| 793 | 799 | if ((data&0xe0)==0x80) |
| 794 | 800 | { |
| 795 | / | |
| 801 | /* Disable Interrupt */ | |
| 796 | 802 | oprand = data & 0x1f; |
| 797 | 803 | LOGSTUFF(("disable interrupt %02x\n",data)); |
| 798 | 804 | LOGSTUFF(("Split 2 IRQ: %d Disabled\n",(data>>0)&1)); |
| r2241 | r2242 | |
| 801 | 807 | LOGSTUFF(("Line Zero IRQ: %d Disabled\n",(data>>3)&1)); |
| 802 | 808 | LOGSTUFF(("V-Blank IRQ: %d Disabled\n",(data>>4)&1)); |
| 803 | 809 | |
| 804 | / | |
| 810 | /* scn2674_irq_mask &= ((data & 0x1f)^0x1f); | |
| 805 | 811 | |
| 806 | 812 | scn2674_irq_mask &= ~(data & 0x1f); |
| 807 | ||
| 813 | ||
| 808 | 814 | scn2674_irq_state = 0; |
| 809 | 815 | |
| 810 | for (i=0; i<5; i++) | |
| 816 | for (i = 0; i < 5; i++) | |
| 811 | 817 | { |
| 812 | 818 | if ((scn2674_irq_register>>i&1)&(scn2674_irq_mask>>i&1)) |
| 813 | 819 | { |
| r2241 | r2242 | |
| 815 | 821 | } |
| 816 | 822 | } |
| 817 | 823 | update_mpu68_interrupts(); |
| 818 | ||
| 824 | ||
| 819 | 825 | } |
| 820 | 826 | |
| 821 | 827 | if ((data&0xe0)==0x60) |
| 822 | 828 | { |
| 823 | / | |
| 829 | /* Enable Interrupt */ | |
| 824 | 830 | LOGSTUFF(("enable interrupt %02x\n",data)); |
| 825 | 831 | LOGSTUFF(("Split 2 IRQ: %d Enabled\n",(data>>0)&1)); |
| 826 | 832 | LOGSTUFF(("Ready IRQ: %d Enabled\n",(data>>1)&1)); |
| r2241 | r2242 | |
| 828 | 834 | LOGSTUFF(("Line Zero IRQ: %d Enabled\n",(data>>3)&1)); |
| 829 | 835 | LOGSTUFF(("V-Blank IRQ: %d Enabled\n",(data>>4)&1)); |
| 830 | 836 | |
| 831 | scn2674_irq_mask |= (data & 0x1f); / | |
| 837 | scn2674_irq_mask |= (data & 0x1f); /* enables .. doesn't disable? */ | |
| 832 | 838 | |
| 833 | //New code | |
| 834 | 839 | scn2674_irq_state = 0; |
| 835 | 840 | |
| 836 | for (i=0; i<5; i++) | |
| 841 | for (i = 0; i < 5; i++) | |
| 837 | 842 | { |
| 838 | 843 | if ((scn2674_irq_register>>i&1)&(scn2674_irq_mask>>i&1)) |
| 839 | 844 | { |
| r2241 | r2242 | |
| 841 | 846 | } |
| 842 | 847 | } |
| 843 | 848 | update_mpu68_interrupts(); |
| 844 | // end new code | |
| 845 | 849 | } |
| 846 | 850 | |
| 847 | /* | |
| 851 | /* | |
| 848 | 852 | |
| 849 | 853 | if (data == 0xa4) |
| 850 | 854 | { |
| 851 | / | |
| 855 | /* read at pointer address */ | |
| 852 | 856 | LOGSTUFF(("read at pointer address %02x\n",data)); |
| 853 | 857 | } |
| 854 | 858 | |
| 855 | 859 | if (data == 0xa2) |
| 856 | 860 | { |
| 857 | / | |
| 861 | /* write at pointer address */ | |
| 858 | 862 | LOGSTUFF(("write at pointer address %02x\n",data)); |
| 859 | 863 | } |
| 860 | 864 | |
| 861 | 865 | if (data == 0xa9) |
| 862 | 866 | { |
| 863 | / | |
| 867 | /* increase cursor address */ | |
| 864 | 868 | LOGSTUFF(("increase cursor address %02x\n",data)); |
| 865 | 869 | } |
| 866 | 870 | |
| 867 | 871 | if (data == 0xac) |
| 868 | 872 | { |
| 869 | / | |
| 873 | /* read at cursor address */ | |
| 870 | 874 | LOGSTUFF(("read at cursor address %02x\n",data)); |
| 871 | 875 | } |
| 872 | 876 | |
| 873 | 877 | if (data == 0xaa) |
| 874 | 878 | { |
| 875 | / | |
| 879 | /* write at cursor address */ | |
| 876 | 880 | LOGSTUFF(("write at cursor address %02x\n",data)); |
| 877 | 881 | } |
| 878 | 882 | |
| 879 | 883 | if (data == 0xad) |
| 880 | 884 | { |
| 881 | / | |
| 885 | /* read at cursor address + increment */ | |
| 882 | 886 | LOGSTUFF(("read at cursor address+increment %02x\n",data)); |
| 883 | 887 | } |
| 884 | 888 | |
| 885 | 889 | if (data == 0xab) |
| 886 | 890 | { |
| 887 | / | |
| 891 | /* write at cursor address + increment */ | |
| 888 | 892 | LOGSTUFF(("write at cursor address+increment %02x\n",data)); |
| 889 | 893 | } |
| 890 | 894 | |
| 891 | 895 | if (data == 0xbb) |
| 892 | 896 | { |
| 893 | / | |
| 897 | /* write from cursor address to pointer address */ | |
| 894 | 898 | LOGSTUFF(("write from cursor address to pointer address %02x\n",data)); |
| 895 | 899 | } |
| 896 | 900 | |
| 897 | 901 | if (data == 0xbd) |
| 898 | 902 | { |
| 899 | / | |
| 903 | /* read from cursor address to pointer address */ | |
| 900 | 904 | LOGSTUFF(("read from cursor address to pointer address %02x\n",data)); |
| 901 | 905 | } |
| 902 | ||
| 903 | 906 | } |
| 904 | 907 | |
| 908 | ||
| 905 | 909 | static READ16_HANDLER( mpu4_vid_scn2674_r ) |
| 906 | 910 | { |
| 907 | 911 | /* |
| r2241 | r2242 | |
| 931 | 935 | R = Ready |
| 932 | 936 | s = Split 2 |
| 933 | 937 | */ |
| 938 | ||
| 934 | 939 | case 0: |
| 935 | 940 | LOGSTUFF(("Read Irq Register %06x\n",activecpu_get_pc())); |
| 936 | 941 | return scn2674_irq_register; |
| r2241 | r2242 | |
| 950 | 955 | return 0xffff; |
| 951 | 956 | } |
| 952 | 957 | |
| 958 | ||
| 953 | 959 | static WRITE16_HANDLER( mpu4_vid_scn2674_w ) |
| 954 | 960 | { |
| 955 | 961 | /* |
| r2241 | r2242 | |
| 964 | 970 | 7 Screen Start 2 Upper Register |
| 965 | 971 | */ |
| 966 | 972 | |
| 967 | data &=0x00ff; / | |
| 973 | data &=0x00ff; /* it's an 8-bit chip on a 16-bit board, feel the cheapness. */ | |
| 968 | 974 | |
| 969 | 975 | switch (offset) |
| 970 | 976 | { |
| r2241 | r2242 | |
| 985 | 991 | } |
| 986 | 992 | } |
| 987 | 993 | |
| 994 | ||
| 988 | 995 | static VIDEO_START( mpu4_vid ) |
| 989 | 996 | { |
| 990 | 997 | /* if anything uses tile sizes other than 8x8 we can't really do it this way.. we'll have to draw tiles by hand. |
| r2241 | r2242 | |
| 1018 | 1025 | scn2675_IR_pointer = 0; |
| 1019 | 1026 | } |
| 1020 | 1027 | |
| 1021 | /* palette support is very preliminary */ | |
| 1022 | static UINT8 ef9369_palette[32]; | |
| 1023 | static UINT8 ef9369_counter; | |
| 1024 | 1028 | |
| 1025 | static WRITE16_HANDLER( ef9369_data_w ) | |
| 1029 | ||
| 1030 | /**************************** | |
| 1031 | * EF9369 color palette IC | |
| 1032 | * (16 colors from 4096) | |
| 1033 | ****************************/ | |
| 1034 | ||
| 1035 | static struct ef9369 | |
| 1026 | 1036 | { |
| 1027 | int color; | |
| 1028 | UINT16 coldat; | |
| 1037 | UINT32 addr; | |
| 1038 | UINT16 clut[16]; /* 13-bits - a marking bit and a 444 color */ | |
| 1039 | } pal; | |
| 1029 | 1040 | |
| 1030 | data &=0x00ff; | |
| 1031 | 1041 | |
| 1032 | ||
| 1042 | /* Non-multip | |
| 1033 | 1043 | |
| 1034 | color = ef9369_counter/2; | |
| 1035 | coldat = (ef9369_palette[color*2+1]<<8)|ef9369_palette[color*2]; | |
| 1036 | palette_set_color_rgb(Machine,color,pal4bit(coldat >> 0),pal4bit(coldat >> 8),pal4bit(coldat >> 4)); | |
| 1044 | static WRITE16_HANDLER( ef9369_w ) | |
| 1045 | { | |
| 1046 | data &= 0x00ff; | |
| 1037 | 1047 | |
| 1038 | ef9369_counter++; | |
| 1039 | if (ef9369_counter>31) ef9369_counter = 31; | |
| 1048 | /* Address register */ | |
| 1049 | if (offset & 1) | |
| 1050 | { | |
| 1051 | pal.addr = data & 0x1f; | |
| 1052 | } | |
| 1053 | /* Data register */ | |
| 1054 | else | |
| 1055 | { | |
| 1056 | UINT32 entry = pal.addr >> 1; | |
| 1057 | ||
| 1058 | if ((pal.addr & 1) == 0) | |
| 1059 | { | |
| 1060 | pal.clut[entry] &= ~0x00ff; | |
| 1061 | pal.clut[entry] |= data; | |
| 1062 | } | |
| 1063 | else | |
| 1064 | { | |
| 1065 | UINT16 col; | |
| 1066 | ||
| 1067 | pal.clut[entry] &= ~0x1f00; | |
| 1068 | pal.clut[entry] |= (data & 0x1f) << 8; | |
| 1069 | ||
| 1070 | /* Remove the marking bit */ | |
| 1071 | col = pal.clut[entry] & 0xfff; | |
| 1072 | ||
| 1073 | /* Update the MAME palette */ | |
| 1074 | palette_set_color_rgb(Machine, entry, pal4bit(col >> 0), pal4bit(col >> 4), pal4bit(col >> 8)); | |
| 1075 | } | |
| 1076 | ||
| 1077 | /* Address register auto-increment */ | |
| 1078 | if (++pal.addr == 32) | |
| 1079 | pal.addr = 0; | |
| 1080 | } | |
| 1040 | 1081 | } |
| 1041 | 1082 | |
| 1042 | static WRITE16_HANDLER( ef9369_address_w ) | |
| 1083 | ||
| 1084 | static READ16_HANDLER( ef9369_r ) | |
| 1043 | 1085 | { |
| 1044 | data &=0x00ff; | |
| 1086 | if ((offset & 1) == 0) | |
| 1087 | { | |
| 1088 | UINT16 col = pal.clut[pal.addr >> 1]; | |
| 1045 | 1089 | |
| 1046 | ef9369_counter = data*2; // = 0? | |
| 1047 | ||
| 1048 | if (ef9369_counter>30) ef9369_counter = 30; | |
| 1090 | if ((pal.addr & 1) == 0) | |
| 1091 | return col & 0xff; | |
| 1092 | else | |
| 1093 | return col >> 8; | |
| 1094 | } | |
| 1095 | else | |
| 1096 | { | |
| 1097 | /* Address register is write only */ | |
| 1098 | return 0xffff; | |
| 1099 | } | |
| 1049 | 1100 | } |
| 1050 | 1101 | |
| 1051 | 1102 | static INPUT_PORTS_START( crmaze ) |
| r2241 | r2242 | |
| 1086 | 1137 | PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Left Yellow") |
| 1087 | 1138 | PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Left Red") |
| 1088 | 1139 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Getout Yellow") |
| 1089 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Getout Red")/ | |
| 1140 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("Getout Red")/* Labelled Escape on cabinet */ | |
| 1090 | 1141 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_SERVICE) PORT_NAME("100p Service?")PORT_IMPULSE(100) |
| 1091 | 1142 | |
| 1092 | 1143 | PORT_START_TAG("DIL1") |
| r2241 | r2242 | |
| 1141 | 1192 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 1142 | 1193 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) |
| 1143 | 1194 | |
| 1144 | PORT_START_TAG("AUX1")/ | |
| 1195 | PORT_START_TAG("AUX1")/* Presumed to be trackball, but only one phase available? */ | |
| 1145 | 1196 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("0") |
| 1146 | 1197 | PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("1") |
| 1147 | 1198 | PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_OTHER) PORT_NAME("2") |
| r2241 | r2242 | |
| 1160 | 1211 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5) |
| 1161 | 1212 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5) |
| 1162 | 1213 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_COIN4) PORT_NAME("100p")PORT_IMPULSE(5) |
| 1163 | ||
| 1164 | 1214 | INPUT_PORTS_END |
| 1165 | 1215 | |
| 1166 | 1216 | static INPUT_PORTS_START( dealem ) |
| r2241 | r2242 | |
| 1289 | 1339 | PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_COIN2) PORT_NAME("20p")PORT_IMPULSE(5) |
| 1290 | 1340 | PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_COIN3) PORT_NAME("50p")PORT_IMPULSE(5) |
| 1291 | 1341 | PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_COIN4) PORT_NAME("100p")PORT_IMPULSE(5) |
| 1292 | ||
| 1293 | 1342 | INPUT_PORTS_END |
| 1294 | 1343 | |
| 1344 | ||
| 1295 | 1345 | static INTERRUPT_GEN(mpu4_vid_irq) |
| 1296 | 1346 | { |
| 1297 | 1347 | LOGSTUFF(("scn2674_irq_mask %02x\n",scn2674_irq_mask)); |
| 1298 | if (cpu_getiloops()==0) / | |
| 1348 | if (cpu_getiloops()==0) /* vbl */ | |
| 1299 | 1349 | { |
| 1300 | / | |
| 1350 | /* if (scn2674_display_enabled) | |
| 1301 | 1351 | { |
| 1302 | 1352 | if (scn2674_irq_mask&0x10) |
| 1303 | 1353 | { |
| r2241 | r2242 | |
| 1312 | 1362 | } |
| 1313 | 1363 | } |
| 1314 | 1364 | |
| 1315 | // machine start (called only once) ///////////////////////////////////// | |
| 1316 | 1365 | |
| 1366 | /* machine start (called only once) */ | |
| 1317 | 1367 | MACHINE_START( mpu4_vid ) |
| 1318 | 1368 | { |
| 1319 | 1369 | mpu4_config_common(); |
| r2241 | r2242 | |
| 1321 | 1371 | |
| 1322 | 1372 | ptm6840_config(1, &ptm_vid_intf ); |
| 1323 | 1373 | |
| 1324 | / | |
| 1374 | /* setup communications * | |
| 1325 | 1375 | serial_card_connected=1; |
| 1326 | 1376 | acia6850_config(0, &m6809_acia_if); |
| 1327 | 1377 | acia6850_config(1, &m68k_acia_if); |
| 1328 | 1378 | |
| 1329 | / | |
| 1379 | /* setup 8 mechanical meters * | |
| 1330 | 1380 | Mechmtr_init(8); |
| 1331 | 1381 | |
| 1332 | / | |
| 1382 | /* setup 4 ree | |
| 1333 | 1383 | |
| 1334 | 1384 | Stepper_init(0, BARCREST_48STEP_REEL); |
| 1335 | 1385 | Stepper_init(1, BARCREST_48STEP_REEL); |
| 1336 | 1386 | Stepper_init(2, BARCREST_48STEP_REEL); |
| 1337 | 1387 | Stepper_init(3, BARCREST_48STEP_REEL); |
| 1338 | 1388 | |
| 1339 | / | |
| 1389 | /* setup the standard oki MSC1937 display * | |
| 1340 | 1390 | |
| 1341 | ROC10937_init(0, MSC1937,0); | |
| 1391 | ROC10937_init(0, MSC1937,0); | |
| 1342 | 1392 | } |
| 1343 | 1393 | |
| 1344 | 1394 | /* |
| r2241 | r2242 | |
| 1348 | 1398 | capacity to affect lamp matrices in the same way as before, as no software seen makes any request for the 'lamp' row. |
| 1349 | 1399 | It has been left in the table, as it clearly exists, but is unused. |
| 1350 | 1400 | The 'quiz' games on the board did use an address-scrambling PAL for encryption, and the very last mod of this board had |
| 1351 | a | |
| 1401 | a | |
| 1352 | 1402 | */ |
| 1403 | ||
| 1353 | 1404 | static WRITE16_HANDLER( characteriser16_w ) |
| 1354 | 1405 | { |
| 1355 | 1406 | int x; |
| 1356 | 1407 | int call=data; |
| 1357 | 1408 | LOG_CHR_FULL(("%04x Characteriser write offset %02X data %02X", activecpu_get_previouspc(),offset,data)); |
| 1358 | for ( | |
| 1409 | for ( | |
| 1359 | 1410 | { |
| 1360 | 1411 | if (call == 0) |
| 1361 | 1412 | { |
| r2241 | r2242 | |
| 1373 | 1424 | } |
| 1374 | 1425 | } |
| 1375 | 1426 | |
| 1427 | ||
| 1376 | 1428 | static READ16_HANDLER( characteriser16_r ) |
| 1377 | 1429 | { |
| 1378 | 1430 | LOG_CHR_FULL(("%04x Characteriser read offset %02X,data %02X", activecpu_get_previouspc(),offset,MPU4_chr_data[prot_col])); |
| r2241 | r2242 | |
| 1381 | 1433 | return MPU4_chr_data[prot_col]; |
| 1382 | 1434 | } |
| 1383 | 1435 | |
| 1436 | ||
| 1384 | 1437 | static ADDRESS_MAP_START( mpu4_68k_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1385 | 1438 | AM_RANGE(0x000000, 0x7fffff) AM_ROM |
| 1386 | 1439 | |
| 1387 | / | |
| 1440 | /* AM_RANGE(0x600000, 0x63ffff) AM_RAM? In expanded games (mating) */ | |
| 1388 | 1441 | |
| 1389 | AM_RANGE(0x800000, 0x80ffff) AM_RAM AM_BASE(&mpu4_vid_mainram) / | |
| 1442 | AM_RANGE(0x800000, 0x80ffff) AM_RAM AM_BASE(&mpu4_vid_mainram) /* mainram / char address ram? */ | |
| 1390 | 1443 | |
| 1391 | 1444 | /* what is here, the sound chip? Assume so */ |
| 1392 | 1445 | AM_RANGE(0x900000, 0x900001) AM_WRITE(saa1099_control_port_0_lsb_w) |
| 1393 | 1446 | AM_RANGE(0x900002, 0x900003) AM_WRITE(saa1099_write_port_0_lsb_w) |
| 1394 | 1447 | |
| 1395 | /* the palette chip */ | |
| 1396 | AM_RANGE(0xa00000, 0xa00001) AM_WRITE(ef9369_data_w) | |
| 1397 | AM_RANGE(0xa00002, 0xa00003) AM_WRITE(ef9369_address_w) | |
| 1398 | AM_RANGE(0xa00004, 0xa0000f) //AM_READWRITE(mpu4_vid_unmap_r, mpu4_vid_unmap_w) | |
| 1448 | AM_RANGE(0xa00000, 0xa00003) AM_READWRITE(ef9369_r, ef9369_w) /* the palette chip */ | |
| 1449 | /* AM_RANGE(0xa00004, 0xa0000f) AM_READWRITE(mpu4_vid_unmap_r, mpu4_vid_unmap_w) */ | |
| 1399 | 1450 | |
| 1400 | 1451 | AM_RANGE(0xb00000, 0xb0000f) AM_READWRITE(mpu4_vid_scn2674_r, mpu4_vid_scn2674_w) |
| 1401 | 1452 | |
| r2241 | r2242 | |
| 1405 | 1456 | AM_RANGE(0xff8000, 0xff8001) AM_READWRITE(acia6850_1_stat_lsb_r, acia6850_1_ctrl_lsb_w) |
| 1406 | 1457 | AM_RANGE(0xff8002, 0xff8003) AM_READWRITE(acia6850_1_data_lsb_r, acia6850_1_data_lsb_w) |
| 1407 | 1458 | |
| 1408 | AM_RANGE(0xff9000, 0xff900f) AM_READWRITE(ptm6840_1_lsb_r,ptm6840_1_lsb_w) | |
| 1459 | AM_RANGE(0xff9000, 0xff900f) AM_READWRITE(ptm6840_1_lsb_r,ptm6840_1_lsb_w) /* 6840PTM */ | |
| 1409 | 1460 | |
| 1410 | /* characterizer */ | |
| 1411 | AM_RANGE(0xffd000, 0xffd00f) AM_READWRITE(characteriser16_r, characteriser16_w) // Word-based version of old CHR??? | |
| 1461 | AM_RANGE(0xffd000, 0xffd00f) AM_READWRITE(characteriser16_r, characteriser16_w) /* characterizer */ | |
| 1412 | 1462 | ADDRESS_MAP_END |
| 1413 | 1463 | |
| 1414 | 1464 | /* TODO: Fix up MPU4 map*/ |
| r2241 | r2242 | |
| 1418 | 1468 | AM_RANGE(0x0800, 0x0800) AM_READWRITE(acia6850_0_stat_r, acia6850_0_ctrl_w) |
| 1419 | 1469 | AM_RANGE(0x0801, 0x0801) AM_READWRITE(acia6850_0_data_r, acia6850_0_data_w) |
| 1420 | 1470 | |
| 1421 | AM_RANGE(0x0880, 0x0881) AM_NOP / | |
| 1471 | AM_RANGE(0x0880, 0x0881) AM_NOP /* Could be a UART datalogger is here. */ | |
| 1422 | 1472 | |
| 1423 | AM_RANGE(0x0900, 0x0907) AM_READWRITE(ptm6840_0_r,ptm6840_0_w) / | |
| 1473 | AM_RANGE(0x0900, 0x0907) AM_READWRITE(ptm6840_0_r,ptm6840_0_w) /* 6840PTM */ | |
| 1424 | 1474 | |
| 1425 | AM_RANGE(0x0A00, 0x0A03) AM_READWRITE(pia_0_r,pia_0_w) // PIA6821 IC3 | |
| 1426 | AM_RANGE(0x0B00, 0x0B03) AM_READWRITE(pia_1_r,pia_1_w) // PIA6821 IC4 | |
| 1427 | AM_RANGE(0x0C00, 0x0C03) AM_READWRITE(pia_2_r,pia_2_w) // PIA6821 IC5 | |
| 1428 | AM_RANGE(0x0D00, 0x0D03) AM_READWRITE(pia_3_r,pia_3_w) // PIA6821 IC6 | |
| 1429 | AM_RANGE(0x0E00, 0x0E03) AM_READWRITE(pia_4_r,pia_4_w) // PIA6821 IC7 | |
| 1430 | AM_RANGE(0x0F00, 0x0F03) AM_READWRITE(pia_5_r,pia_5_w) // PIA6821 IC8 | |
| 1475 | AM_RANGE(0x0A00, 0x0A03) AM_READWRITE(pia_0_r,pia_0_w) /* PIA6821 IC3 */ | |
| 1476 | AM_RANGE(0x0B00, 0x0B03) AM_READWRITE(pia_1_r,pia_1_w) /* PIA6821 IC4 */ | |
| 1477 | AM_RANGE(0x0C00, 0x0C03) AM_READWRITE(pia_2_r,pia_2_w) /* PIA6821 IC5 */ | |
| 1478 | AM_RANGE(0x0D00, 0x0D03) AM_READWRITE(pia_3_r,pia_3_w) /* PIA6821 IC6 */ | |
| 1479 | AM_RANGE(0x0E00, 0x0E03) AM_READWRITE(pia_4_r,pia_4_w) /* PIA6821 IC7 */ | |
| 1480 | AM_RANGE(0x0F00, 0x0F03) AM_READWRITE(pia_5_r,pia_5_w) /* PIA6821 IC8 */ | |
| 1431 | 1481 | |
| 1432 | AM_RANGE(0x4000, 0x40FF) AM_RAM / | |
| 1482 | AM_RANGE(0x4000, 0x40FF) AM_RAM /* it actually runs code from here... */ | |
| 1433 | 1483 | |
| 1434 | AM_RANGE(0xBE00, 0xBFFF) AM_RAM //00 written on startup | |
| 1435 | AM_RANGE(0xC000, 0xFFFF) AM_ROM AM_REGION(REGION_CPU1,0) // 64k EPROM on board, only this region read | |
| 1484 | AM_RANGE(0xBE00, 0xBFFF) AM_RAM /* 00 written on startup */ | |
| 1485 | AM_RANGE(0xC000, 0xFFFF) AM_ROM AM_REGION(REGION_CPU1,0) /* 64k EPROM on board, only this region read */ | |
| 1436 | 1486 | ADDRESS_MAP_END |
| 1437 | 1487 | |
| 1438 | 1488 | static ADDRESS_MAP_START( vp_68k_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 1439 | 1489 | AM_RANGE(0x000000, 0x7fffff) AM_ROM |
| 1440 | 1490 | |
| 1441 | / | |
| 1491 | /* AM_RANGE(0x600000, 0x63ffff) AM_RAM? In expanded games (mating) */ | |
| 1442 | 1492 | |
| 1443 | AM_RANGE(0x800000, 0x80ffff) AM_RAM AM_BASE(&mpu4_vid_mainram) / | |
| 1493 | AM_RANGE(0x800000, 0x80ffff) AM_RAM AM_BASE(&mpu4_vid_mainram) /* mainram / char address ram? */ | |
| 1444 | 1494 | |
| 1445 | AM_RANGE(0x810000, 0x81ffff) AM_RAM/ | |
| 1495 | AM_RANGE(0x810000, 0x81ffff) AM_RAM /* ? */ | |
| 1446 | 1496 | |
| 1447 | 1497 | /* what is here, the sound chip? Assume so */ |
| 1448 | 1498 | AM_RANGE(0x900000, 0x900001) AM_WRITE(saa1099_control_port_0_lsb_w) |
| 1449 | 1499 | AM_RANGE(0x900002, 0x900003) AM_WRITE(saa1099_write_port_0_lsb_w) |
| 1450 | 1500 | |
| 1451 | 1501 | /* the palette chip */ |
| 1452 | AM_RANGE(0xa00000, 0xa00001) AM_WRITE(ef9369_data_w) | |
| 1453 | AM_RANGE(0xa00002, 0xa00003) AM_WRITE(ef9369_address_w) | |
| 1454 | AM_RANGE(0xa00004, 0xa0000f) //AM_READWRITE(mpu4_vid_unmap_r, mpu4_vid_unmap_w) | |
| 1502 | AM_RANGE(0xa00000, 0xa00003) AM_READWRITE(ef9369_r, ef9369_w) /* the palette chip */ | |
| 1503 | /* AM_RANGE(0xa00004, 0xa0000f) AM_READWRITE(mpu4_vid_unmap_r, mpu4_vid_unmap_w) */ | |
| 1455 | 1504 | |
| 1456 | 1505 | AM_RANGE(0xb00000, 0xb0000f) AM_READWRITE(mpu4_vid_scn2674_r, mpu4_vid_scn2674_w) |
| 1457 | 1506 | |
| 1458 | 1507 | AM_RANGE(0xc00000, 0xc1ffff) AM_READWRITE(mpu4_vid_vidram_r, mpu4_vid_vidram_w) |
| 1459 | 1508 | |
| 1460 | / | |
| 1509 | /* AM_RANGE(0xe05000, 0xe05001) | |
| 1461 | 1510 | |
| 1462 | 1511 | /* comms with the MPU4 */ |
| 1463 | 1512 | AM_RANGE(0xff8000, 0xff8001) AM_READWRITE(acia6850_1_stat_lsb_r, acia6850_1_ctrl_lsb_w) |
| r2241 | r2242 | |
| 1467 | 1516 | AM_RANGE(0xff9000, 0xff900f) AM_WRITE( ptm6840_1_lsb_w) |
| 1468 | 1517 | |
| 1469 | 1518 | /* characterizer */ |
| 1470 | / | |
| 1519 | /* AM_RANGE(0xffd000, 0xffd00f) AM_READWRITE(characteriser16_r, characteriser16_w) | |
| 1471 | 1520 | ADDRESS_MAP_END |
| 1472 | 1521 | |
| 1473 | //Deal 'Em was designed as an enhanced gamecard, to fit into an existing MPU4 cabinet | |
| 1474 | //It's an unoffical addon, and does all its work through the existing 6809 CPU. | |
| 1475 | //Although given unofficial status, Barcrest's patent on the MPU4 Video hardware (GB1596363) describes | |
| 1476 | //the Deal 'Em board design, rather than the one they ultimately used. | |
| 1522 | /* Deal 'Em */ | |
| 1523 | /* Deal 'Em was designed as an enhanced gamecard, to fit into an existing MPU4 cabinet | |
| 1524 | It's an unoffical addon, and does all its work through the existing 6809 CPU. | |
| 1525 | Although given unofficial status, Barcrest's patent on the MPU4 Video hardware (GB1596363) describes | |
| 1526 | the Deal 'Em board design, rather than the one they ultimately used, suggesting some sort of licensing deal. */ | |
| 1477 | 1527 | |
| 1478 | 1528 | static const gfx_layout dealemcharlayout = |
| 1479 | 1529 | { |
| r2241 | r2242 | |
| 1486 | 1536 | 32*8 |
| 1487 | 1537 | }; |
| 1488 | 1538 | |
| 1539 | ||
| 1489 | 1540 | static GFXDECODE_START( dealem ) |
| 1490 | 1541 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, dealemcharlayout, 0, 32 ) |
| 1491 | 1542 | GFXDECODE_END |
| 1492 | 1543 | |
| 1544 | ||
| 1493 | 1545 | static UINT8 *dealem_videoram; |
| 1494 | 1546 | |
| 1495 | 1547 | /*************************************************************************** |
| r2241 | r2242 | |
| 1509 | 1561 | Blue: 470R |
| 1510 | 1562 | 220R Bit 7 |
| 1511 | 1563 | |
| 1512 | Everything is also tied to a 1K pulldown | |
| 1564 | Everything is also tied to a 1K pulldown resistor | |
| 1513 | 1565 | ***************************************************************************/ |
| 1514 | 1566 | |
| 1567 | ||
| 1515 | 1568 | static PALETTE_INIT( dealem ) |
| 1516 | 1569 | { |
| 1517 | 1570 | int i; |
| r2241 | r2242 | |
| 1548 | 1601 | } |
| 1549 | 1602 | } |
| 1550 | 1603 | |
| 1604 | ||
| 1551 | 1605 | static VIDEO_UPDATE(dealem) |
| 1552 | 1606 | { |
| 1553 | 1607 | int x,y; |
| 1554 | 1608 | int count = 0; |
| 1555 | 1609 | |
| 1556 | for (y=0;y<32;y++) | |
| 1610 | for (y = 0; y < 32; y++) | |
| 1557 | 1611 | { |
| 1558 | for (x=0;x<40;x++) | |
| 1612 | for (x = 0; x < 40; x++) | |
| 1559 | 1613 | { |
| 1560 | int tile = dealem_videoram[count+0x1000] | (dealem_videoram[count] << 8); | |
| 1614 | int tile = dealem_videoram[count + 0x1000] | (dealem_videoram[count] << 8); | |
| 1561 | 1615 | count++; |
| 1562 | drawgfx(bitmap,screen->machine->gfx[0],tile,0,0,0,x*8,y*8,cliprect,TRANSPARENCY_NONE,0); | |
| 1616 | drawgfx(bitmap,screen->machine->gfx[0],tile,0,0,0,x * 8,y * 8,cliprect,TRANSPARENCY_NONE,0); | |
| 1563 | 1617 | } |
| 1564 | 1618 | } |
| 1565 | 1619 | |
| 1566 | 1620 | return 0; |
| 1567 | 1621 | } |
| 1568 | 1622 | |
| 1623 | ||
| 1569 | 1624 | static MC6845_ON_VSYNC_CHANGED( dealem_vsync_changed ) |
| 1570 | 1625 | { |
| 1571 | 1626 | cpunum_set_input_line(device->machine, 0, INPUT_LINE_NMI, vsync); |
| r2241 | r2242 | |
| 1579 | 1634 | |
| 1580 | 1635 | static const mc6845_interface hd6845_intf = |
| 1581 | 1636 | { |
| 1582 | "main", /* screen we are acting on */ | |
| 1583 | MPU4_MASTER_CLOCK/4/8, /* the clock (pin 21) of the chip (educated guess)*/ | |
| 1584 | 8, /* number of pixels per video memory address */ | |
| 1585 | NULL, /* before pixel update callback */ | |
| 1586 | NULL, /* row update callback */ | |
| 1587 | NULL, /* after pixel update callback */ | |
| 1588 | NULL, /* callback for display state changes */ | |
| 1589 | NULL, /* HSYNC callback */ | |
| 1590 | dealem_vsync_changed /* VSYNC callback */ | |
| 1637 | "main", /* screen we are acting on */ | |
| 1638 | MPU4_MASTER_CLOCK / 4 / 8, /* the clock (pin 21) of the chip (educated guess)*/ | |
| 1639 | 8, /* number of pixels per video memory address */ | |
| 1640 | NULL, /* before pixel update callback */ | |
| 1641 | NULL, /* row update callback */ | |
| 1642 | NULL, /* after pixel update callback */ | |
| 1643 | NULL, /* callback for display state changes */ | |
| 1644 | NULL, /* HSYNC callback */ | |
| 1645 | dealem_vsync_changed /* VSYNC callback */ | |
| 1591 | 1646 | }; |
| 1592 | 1647 | |
| 1648 | ||
| 1593 | 1649 | static ADDRESS_MAP_START( dealem_memmap, ADDRESS_SPACE_PROGRAM, 8 ) |
| 1594 | ||
| 1595 | 1650 | AM_RANGE(0x0000, 0x07ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 1596 | 1651 | |
| 1597 | 1652 | AM_RANGE(0x0800, 0x0800) AM_DEVWRITE(HD6845, "crtc", mc6845_address_w) |
| 1598 | 1653 | AM_RANGE(0x0801, 0x0801) AM_DEVREADWRITE(HD6845, "crtc", mc6845_register_r, mc6845_register_w) |
| 1599 | 1654 | |
| 1600 | / | |
| 1655 | /* AM_RANGE(0x08E0, 0x08E7) AM_READWRITE(68681_duar | |
| 1601 | 1656 | |
| 1602 | ||
| 1657 | | |
| 1603 | 1658 | |
| 1604 | AM_RANGE(0x0900, 0x0907) AM_READWRITE(ptm6840_0_r,ptm6840_0_w) // 6840PTM | |
| 1659 | AM_RANGE(0x0A00, 0x0A03) AM_READWRITE(pia_0_r,pia_0_w) /* PIA6821 IC3 */ | |
| 1660 | AM_RANGE(0x0B00, 0x0B03) AM_READWRITE(pia_1_r,pia_1_w) /* PIA6821 IC4 */ | |
| 1661 | AM_RANGE(0x0C00, 0x0C03) AM_READWRITE(pia_2_r,pia_2_w) /* PIA6821 IC5 */ | |
| 1662 | AM_RANGE(0x0D00, 0x0D03) AM_READWRITE(pia_3_r,pia_3_w) /* PIA6821 IC6 */ | |
| 1663 | AM_RANGE(0x0E00, 0x0E03) AM_READWRITE(pia_4_r,pia_4_w) /* PIA6821 IC7 */ | |
| 1664 | AM_RANGE(0x0F00, 0x0F03) AM_READWRITE(pia_5_r,pia_5_w) /* PIA6821 IC8 */ | |
| 1605 | 1665 | |
| 1606 | AM_RANGE(0x0A00, 0x0A03) AM_READWRITE(pia_0_r,pia_0_w) // PIA6821 IC3 | |
| 1607 | AM_RANGE(0x0B00, 0x0B03) AM_READWRITE(pia_1_r,pia_1_w) // PIA6821 IC4 | |
| 1608 | AM_RANGE(0x0C00, 0x0C03) AM_READWRITE(pia_2_r,pia_2_w) // PIA6821 IC5 | |
| 1609 | AM_RANGE(0x0D00, 0x0D03) AM_READWRITE(pia_3_r,pia_3_w) // PIA6821 IC6 | |
| 1610 | AM_RANGE(0x0E00, 0x0E03) AM_READWRITE(pia_4_r,pia_4_w) // PIA6821 IC7 | |
| 1611 | AM_RANGE(0x0F00, 0x0F03) AM_READWRITE(pia_5_r,pia_5_w) // PIA6821 IC8 | |
| 1612 | ||
| 1613 | 1666 | AM_RANGE(0x1000, 0x2fff) AM_RAM AM_BASE(&dealem_videoram) |
| 1614 | AM_RANGE(0x8000, 0xffff) AM_ROM AM_WRITENOP// 64k paged ROM (4 pages) | |
| 1615 | ||
| 1667 | AM_RANGE(0x8000, 0xffff) AM_ROM AM_WRITENOP/* 64k paged ROM (4 pages) */ | |
| 1616 | 1668 | ADDRESS_MAP_END |
| 1617 | 1669 | |
| 1670 | ||
| 1618 | 1671 | static MACHINE_DRIVER_START( mpu4_vid ) |
| 1619 | ||
| 1620 | 1672 | MDRV_CPU_ADD_TAG("main", M6809, MPU4_MASTER_CLOCK/4 ) |
| 1621 | 1673 | MDRV_CPU_PROGRAM_MAP(mpu4_6809_map,0) |
| 1622 | 1674 | MDRV_TIMER_ADD_PERIODIC("50HZ",gen_50hz, HZ(100)) |
| 1623 | 1675 | |
| 1624 | MDRV_NVRAM_HANDLER(generic_0fill) / | |
| 1676 | MDRV_NVRAM_HANDLER(generic_0fill) /* confirm */ | |
| 1625 | 1677 | |
| 1626 | 1678 | /* video hardware */ |
| 1627 | 1679 | MDRV_SCREEN_ADD("main", RASTER) |
| r2241 | r2242 | |
| 1647 | 1699 | MDRV_SOUND_ADD_TAG("AY8913",AY8913, MPU4_MASTER_CLOCK/4) |
| 1648 | 1700 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1649 | 1701 | |
| 1650 | MDRV_SPEAKER_STANDARD_STEREO("left", "right")/ | |
| 1702 | MDRV_SPEAKER_STANDARD_STEREO("left", "right")/* Present on all video cards */ | |
| 1651 | 1703 | MDRV_SOUND_ADD(SAA1099, 8000000) |
| 1652 | 1704 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.00) |
| 1653 | 1705 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.00) |
| 1654 | ||
| 1655 | 1706 | MACHINE_DRIVER_END |
| 1656 | 1707 | |
| 1657 | 1708 | static MACHINE_DRIVER_START( vgpoker ) |
| 1658 | ||
| 1659 | 1709 | MDRV_IMPORT_FROM( mpu4_vid ) |
| 1660 | 1710 | MDRV_CPU_MODIFY("video") |
| 1661 | 1711 | MDRV_CPU_PROGRAM_MAP(vp_68k_map,0) |
| 1662 | ||
| 1663 | 1712 | MACHINE_DRIVER_END |
| 1664 | 1713 | |
| 1665 | // machine driver for zenitone dealem board ///////////////////////////////// | |
| 1666 | 1714 | |
| 1715 | /* machine driver for Zenitone Deal 'Em board */ | |
| 1667 | 1716 | static MACHINE_DRIVER_START( dealem ) |
| 1668 | ||
| 1669 | MDRV_MACHINE_START(mpu4mod2) // main mpu4 board initialisation | |
| 1717 | MDRV_MACHINE_START(mpu4mod2) /* main mpu4 board initialisation */ | |
| 1670 | 1718 | MDRV_MACHINE_RESET(mpu4_vid) |
| 1671 | 1719 | MDRV_CPU_ADD_TAG("main", M6809, MPU4_MASTER_CLOCK/4) |
| 1672 | 1720 | MDRV_CPU_PROGRAM_MAP(dealem_memmap,0) |
| r2241 | r2242 | |
| 1677 | 1725 | MDRV_SOUND_ADD_TAG("AY8913",AY8913, MPU4_MASTER_CLOCK/4) |
| 1678 | 1726 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 1679 | 1727 | |
| 1680 | MDRV_NVRAM_HANDLER(generic_0fill) | |
| 1728 | MDRV_NVRAM_HANDLER(generic_0fill) | |
| 1681 | 1729 | |
| 1682 | 1730 | /* video hardware */ |
| 1683 | 1731 | MDRV_SCREEN_ADD("main", RASTER) |
| 1684 | 1732 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1685 | 1733 | MDRV_SCREEN_SIZE((54+1)*8, (32+1)*8) /* Taken from 6845 init, registers 00 & 04. Normally programmed with (value-1) */ |
| 1686 | 1734 | MDRV_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 31*8-1) /* Taken from 6845 init, registers 01 & 06 */ |
| 1687 | MDRV_SCREEN_REFRESH_RATE(56) /* Measured accurately from the flip-flop */ | |
| 1735 | MDRV_SCREEN_REFRESH_RATE(56) /* Measured accurately from the flip-flop, but 6845 handles this */ | |
| 1688 | 1736 | |
| 1689 | 1737 | MDRV_GFXDECODE(dealem) |
| 1690 | 1738 | MDRV_VIDEO_UPDATE(dealem) |
| r2241 | r2242 | |
| 1692 | 1740 | MDRV_PALETTE_LENGTH(32) |
| 1693 | 1741 | MDRV_PALETTE_INIT(dealem) |
| 1694 | 1742 | |
| 1695 | MDRV_DEVICE_ADD("crtc", HD6845) / | |
| 1743 | MDRV_DEVICE_ADD("crtc", HD6845) /* HD68B45 */ | |
| 1696 | 1744 | MDRV_DEVICE_CONFIG(hd6845_intf) |
| 1697 | 1745 | MACHINE_DRIVER_END |
| 1698 | 1746 | |
| 1747 | ||
| 1699 | 1748 | static DRIVER_INIT (crmaze) |
| 1700 | 1749 | { |
| 1701 | 1750 | int x; |
| r2241 | r2242 | |
| 1709 | 1758 | 0x20,0xAC,0x74,0x04,0xA4,0x94,0x3C,0x00, |
| 1710 | 1759 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; |
| 1711 | 1760 | |
| 1712 | for (x=0; x < 72; x++) | |
| 1761 | for (x = 0; x < 72; x++) | |
| 1713 | 1762 | { |
| 1714 | 1763 | MPU4_chr_data[(x)] = chr_table[(x)]; |
| 1715 | 1764 | } |
| 1716 | 1765 | } |
| 1717 | 1766 | |
| 1767 | ||
| 1718 | 1768 | static DRIVER_INIT (mating) |
| 1719 | 1769 | { |
| 1720 | 1770 | int x; |
| r2241 | r2242 | |
| 1728 | 1778 | 0x2C,0x90,0x44,0x18,0xE8,0x84,0x3C,0x00, |
| 1729 | 1779 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; |
| 1730 | 1780 | |
| 1731 | for (x=0; x < 72; x++) | |
| 1781 | for (x = 0; x < 72; x++) | |
| 1732 | 1782 | { |
| 1733 | 1783 | MPU4_chr_data[(x)] = chr_table[(x)]; |
| 1734 | 1784 | } |
| 1735 | 1785 | } |
| 1736 | 1786 | |
| 1787 | ||
| 1737 | 1788 | ROM_START( dealem ) |
| 1738 | 1789 | ROM_REGION( 0x10000, REGION_CPU1, ROMREGION_ERASE00 ) |
| 1739 | 1790 | ROM_LOAD( "zenndlem.u6", 0x8000, 0x8000, CRC(571e5c05) SHA1(89b4c331407a04eae34bb187b036791e0a671533) ) |
| r2241 | r2242 | |
| 1762 | 1813 | VID_BIOS |
| 1763 | 1814 | ROM_END |
| 1764 | 1815 | |
| 1765 | ROM_START( crmaze ) | |
| 1816 | ROM_START( crmaze ) | |
| 1766 | 1817 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 1767 | 1818 | VID_BIOS |
| 1768 | 1819 | |
| r2241 | r2242 | |
| 1907 | 1958 | VID_BIOS |
| 1908 | 1959 | |
| 1909 | 1960 | ROM_REGION( 0x800000, REGION_CPU2, 0 ) |
| 1910 | ROM_LOAD16_BYTE( "mats.p1", 0x000000, 0x080000, CRC(ebc7ea7e) SHA1(11015489a803ba5c8dbdafd632424bbd6080aece) ) // 3 bytes changed from above set... | |
| 1911 | ROM_LOAD16_BYTE( "mats.p2", 0x000001, 0x080000, CRC(a4c7e9b4) SHA1(30148c0257181bb88159e02d2b7cd79995ee84a7) ) // Just enough to disable the data logger | |
| 1961 | ROM_LOAD16_BYTE( "mats.p1", 0x000000, 0x080000, CRC(ebc7ea7e) SHA1(11015489a803ba5c8dbdafd632424bbd6080aece) ) /* 3 bytes changed from above set...*/ | |
| 1962 | ROM_LOAD16_BYTE( "mats.p2", 0x000001, 0x080000, CRC(a4c7e9b4) SHA1(30148c0257181bb88159e02d2b7cd79995ee84a7) ) /* Just enough to disable the data logger */ | |
| 1912 | 1963 | ROM_LOAD16_BYTE( "matg.p3", 0x100000, 0x080000, CRC(571f4e8e) SHA1(51babacb5d9fb1cc9e1e56a3b2a355597d04f178) ) |
| 1913 | 1964 | ROM_LOAD16_BYTE( "matg.p4", 0x100001, 0x080000, CRC(52d8657b) SHA1(e44e1db13c4abd4fedcd72df9dce1df594f74e44) ) |
| 1914 | 1965 | ROM_LOAD16_BYTE( "matg.p5", 0x200000, 0x080000, CRC(9f0c9552) SHA1(8b1197f20853e18841a8f64fd5ff58cdd0bd1dbd) ) |
| r2241 | r2242 | |
| 1926 | 1977 | ROM_LOAD( "matsnd.p4", 0x180000, 0x080000, CRC(d7e65c5b) SHA1(5575fb9f948158f2e94c986bf4bca9c9ee66a489) ) |
| 1927 | 1978 | ROM_END |
| 1928 | 1979 | |
| 1929 | / | |
| 1980 | /* Vegas Poker Protoype dumped by HIGHWAYMAN */ | |
| 1930 | 1981 | ROM_START( vgpoker ) |
| 1931 | 1982 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 1932 | 1983 | ROM_LOAD("comms-v2.0.bin", 0x00000, 0x10000, CRC(1717581f) SHA1(40f8cae39a2ab0c89d2bbfd8a37725aaae229c96)) |
| r2241 | r2242 | |
| 1968 | 2019 | led_extend=1; |
| 1969 | 2020 | } |
| 1970 | 2021 | |
| 1971 | //Deal 'Em was a conversion kit designed to make early MPU4 machines into video games by replacing the top glass | |
| 1972 | //and reel assembly with this kit and a supplied monitor. | |
| 1973 | //The real Deal 'Em ran on Summit Coin hardware, and was made by someone else. | |
| 1974 | //A further different release was made in 2000, running on the Barcrest MPU4 Video, rather than this one. | |
| 2022 | /*Deal 'Em was a conversion kit designed to make early MPU4 machines into video games by replacing the top glass | |
| 2023 | and reel assembly with this kit and a supplied monitor. | |
| 2024 | The real Deal 'Em ran on Summit Coin hardware, and was made by someone else. | |
| 2025 | A further different release was made in 2000, running on the Barcrest MPU4 Video, rather than this one. */ | |
| 2026 | ||
| 1975 | 2027 | GAME( 1987, dealem, 0, dealem, dealem, 0, ROT0, "Zenitone", "Deal 'Em (MPU4 Conversion Kit, v7.0)", GAME_IMPERFECT_GRAPHICS ) |
| 1976 | 2028 | |
| 1977 | 2029 | GAME( 199?, bctvidbs,0, mpu4mod2, mpu4, 0, ROT0, "Barcrest", "MPU4 Video Firmware", GAME_IS_BIOS_ROOT ) |
| 1978 | 2030 | |
| 1979 | 2031 | GAME( 1994?,crmaze, bctvidbs,mpu4_vid, crmaze, crmaze,ROT0, "Barcrest", "The Crystal Maze Team Challenge (SWP)", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| 1980 | 2032 | GAME( 1992?,crmazea, crmaze, mpu4_vid, crmaze, crmaze,ROT0, "Barcrest", "The Crystal Maze (AMLD Version)", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| 1981 | GAME( 1993?,crmazeb, crmaze, mpu4_vid, crmaze, 0, ROT0, "Barcrest", "The New Crystal Maze Featuring Ocean Zone (AMLD Version)", GAME_NOT_WORKING|GAME_NO_SOUND ) // unprotected? | |
| 1982 | GAME( 1990, turnover,bctvidbs,mpu4_vid, mpu4, 0, ROT0, "Barcrest", "Turnover", GAME_NOT_WORKING|GAME_NO_SOUND ) // unprotected? | |
| 1983 | GAME( 1992, skiltrek,bctvidbs,mpu4_vid, mpu4, 0, ROT0, "Barcrest", "Skill Trek", GAME_NOT_WORKING|GAME_NO_SOUND ) // unprotected? | |
| 1984 | GAME( 1990, timemchn,bctvidbs,mpu4_vid, mpu4, 0, ROT0, "Barcrest", "Time Machine (v2.0)", GAME_NOT_WORKING|GAME_NO_SOUND ) // unprotected? | |
| 2033 | GAME( 1993?,crmazeb, crmaze, mpu4_vid, crmaze, 0, ROT0, "Barcrest", "The New Crystal Maze Featuring Ocean Zone (AMLD Version)", GAME_NOT_WORKING|GAME_NO_SOUND ) /* unprotected? */ | |
| 2034 | GAME( 1990, turnover,bctvidbs,mpu4_vid, mpu4, 0, ROT0, "Barcrest", "Turnover", GAME_NOT_WORKING|GAME_NO_SOUND ) /* unprotected? */ | |
| 2035 | GAME( 1992, skiltrek,bctvidbs,mpu4_vid, mpu4, 0, ROT0, "Barcrest", "Skill Trek", GAME_NOT_WORKING|GAME_NO_SOUND ) /* unprotected? */ | |
| 2036 | GAME( 1990, timemchn,bctvidbs,mpu4_vid, mpu4, 0, ROT0, "Barcrest", "Time Machine (v2.0)", GAME_NOT_WORKING|GAME_NO_SOUND ) /* unprotected? */ | |
| 1985 | 2037 | GAME( 199?, mating, bctvidbs,mpu4_vid, mpu4, mating,ROT0, "Barcrest", "The Mating Game (Datapak)", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| 1986 | 2038 | GAME( 199?, matinga, mating, mpu4_vid, mpu4, mating,ROT0, "Barcrest", "The Mating Game (Standard)", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| 1987 | 2039 | GAME( 199?, vgpoker, 0, vgpoker, mpu4, 0, ROT0, "BwB", "Vegas Poker (Prototype)", GAME_NOT_WORKING|GAME_NO_SOUND ) |
| r2241 | r2242 | |
|---|---|---|
| 206 | 206 | { |
| 207 | 207 | //if (data & ~0x15) logerror("CPU #0 PC %06X : unknown bits of irqcause written: %04X\n",activecpu_get_pc(),data); |
| 208 | 208 | |
| 209 | if (ACCESSING_ | |
| 209 | if (ACCESSING_ | |
| 210 | 210 | { |
| 211 | 211 | data &= ~*metro_irq_enable; |
| 212 | 212 | |
| r2241 | r2242 | |
| 357 | 357 | |
| 358 | 358 | static WRITE16_HANDLER( metro_soundlatch_w ) |
| 359 | 359 | { |
| 360 | if (ACCESSING_ | |
| 360 | if (ACCESSING_ | |
| 361 | 361 | { |
| 362 | 362 | soundlatch_w(machine,0,data & 0xff); |
| 363 | 363 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); |
| r2241 | r2242 | |
| 379 | 379 | |
| 380 | 380 | static WRITE16_HANDLER( metro_soundstatus_w ) |
| 381 | 381 | { |
| 382 | if (ACCESSING_ | |
| 382 | if (ACCESSING_ | |
| 383 | 383 | metro_soundstatus = data & 0x01; |
| 384 | 384 | } |
| 385 | 385 | |
| r2241 | r2242 | |
| 534 | 534 | |
| 535 | 535 | static WRITE16_HANDLER( ymf278b_w ) |
| 536 | 536 | { |
| 537 | if(ACCESSING_ | |
| 537 | if(ACCESSING_ | |
| 538 | 538 | switch(offset) |
| 539 | 539 | { |
| 540 | 540 | case 0: |
| r2241 | r2242 | |
| 578 | 578 | |
| 579 | 579 | static WRITE16_HANDLER( metro_coin_lockout_1word_w ) |
| 580 | 580 | { |
| 581 | if (ACCESSING_ | |
| 581 | if (ACCESSING_ | |
| 582 | 582 | { |
| 583 | 583 | // coin_lockout_w(0, data & 1); |
| 584 | 584 | // coin_lockout_w(1, data & 2); |
| r2241 | r2242 | |
| 1393 | 1393 | |
| 1394 | 1394 | static WRITE16_HANDLER( gakusai_oki_bank_hi_w ) |
| 1395 | 1395 | { |
| 1396 | if (ACCESSING_ | |
| 1396 | if (ACCESSING_ | |
| 1397 | 1397 | { |
| 1398 | 1398 | gakusai_oki_bank_hi = data & 0xff; |
| 1399 | 1399 | gakusai_oki_bank_set(); |
| r2241 | r2242 | |
| 1402 | 1402 | |
| 1403 | 1403 | static WRITE16_HANDLER( gakusai_oki_bank_lo_w ) |
| 1404 | 1404 | { |
| 1405 | if (ACCESSING_ | |
| 1405 | if (ACCESSING_ | |
| 1406 | 1406 | { |
| 1407 | 1407 | gakusai_oki_bank_lo = data & 0xff; |
| 1408 | 1408 | gakusai_oki_bank_set(); |
| r2241 | r2242 | |
| 1430 | 1430 | |
| 1431 | 1431 | static WRITE16_HANDLER( gakusai_eeprom_w ) |
| 1432 | 1432 | { |
| 1433 | if (ACCESSING_ | |
| 1433 | if (ACCESSING_ | |
| 1434 | 1434 | { |
| 1435 | 1435 | // latch the bit |
| 1436 | 1436 | EEPROM_write_bit(data & 0x01); |
| r2241 | r2242 | |
| 1562 | 1562 | |
| 1563 | 1563 | static WRITE16_HANDLER( dokyusp_eeprom_bit_w ) |
| 1564 | 1564 | { |
| 1565 | if (ACCESSING_ | |
| 1565 | if (ACCESSING_ | |
| 1566 | 1566 | { |
| 1567 | 1567 | // latch the bit |
| 1568 | 1568 | EEPROM_write_bit(data & 0x01); |
| r2241 | r2242 | |
| 1575 | 1575 | |
| 1576 | 1576 | static WRITE16_HANDLER( dokyusp_eeprom_reset_w ) |
| 1577 | 1577 | { |
| 1578 | if (ACCESSING_ | |
| 1578 | if (ACCESSING_ | |
| 1579 | 1579 | { |
| 1580 | 1580 | // reset line asserted: reset. |
| 1581 | 1581 | EEPROM_set_cs_line((data & 0x01) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
| 2034 | 2034 | |
| 2035 | 2035 | static WRITE16_HANDLER( mouja_sound_rombank_w ) |
| 2036 | 2036 | { |
| 2037 | if (ACCESSING_ | |
| 2037 | if (ACCESSING_ | |
| 2038 | 2038 | OKIM6295_set_bank_base(0, ((data >> 3) & 0x07) * 0x40000); |
| 2039 | 2039 | } |
| 2040 | 2040 | |
| r2241 | r2242 | |
| 2102 | 2102 | |
| 2103 | 2103 | static WRITE16_HANDLER( puzzlet_irq_enable_w ) |
| 2104 | 2104 | { |
| 2105 | if (ACCESSING_ | |
| 2105 | if (ACCESSING_ | |
| 2106 | 2106 | *metro_irq_enable = data^0xffff; |
| 2107 | 2107 | } |
| 2108 | 2108 |
| r2241 | r2242 | |
|---|---|---|
| 18 | 18 | #include "cpu/m6809/m6809.h" |
| 19 | 19 | #include "sound/dac.h" |
| 20 | 20 | #include "sound/sn76496.h" |
| 21 | #include "sound/ | |
| 21 | #include "sound/dis | |
| 22 | 22 | |
| 23 | ||
| 24 | 23 | void konami1_decode(void); |
| 25 | 24 | |
| 26 | 25 | extern UINT8 *circusc_spritebank; |
| r2241 | r2242 | |
| 82 | 81 | |
| 83 | 82 | static WRITE8_HANDLER(circusc_sound_w) |
| 84 | 83 | { |
| 85 | int c; | |
| 84 | //int c; | |
| 86 | 85 | |
| 87 | 86 | switch (offset & 7) |
| 88 | 87 | { |
| r2241 | r2242 | |
| 103 | 102 | |
| 104 | 103 | /* CS5 */ |
| 105 | 104 | case 3: |
| 106 | | |
| 105 | | |
| 107 | 106 | break; |
| 108 | 107 | |
| 109 | 108 | /* CS6 */ |
| 110 | 109 | case 4: |
| 111 | c = (offset & 0x20) ? 470000 : 0; | |
| 112 | filter_rc_set_RC(0, FLT_RC_LOWPASS, 1000, 2200, 1000, CAP_P(c)); | |
| 113 | ||
| 114 | c = 0; | |
| 115 | if (offset & 0x10) c += 470000; | |
| 116 | if (offset & 0x08) c += 47000; | |
| 117 | filter_rc_set_RC(1, FLT_RC_LOWPASS, 1000, 2200, 1000, CAP_P(c)); | |
| 118 | ||
| 119 | c = (offset & 0x40) ? 470000 : 0; | |
| 120 | filter_rc_set_RC(2, FLT_RC_LOWPASS, 1000, 10000, 1000, CAP_P(c)); | |
| 110 | discrete_sound_w(machine, NODE_05, (offset & 0x20) >> 5); | |
| 111 | discrete_sound_w(machine, NODE_06, (offset & 0x18) >> 3); | |
| 112 | discrete_sound_w(machine, NODE_07, (offset & 0x40) >> 6); | |
| 113 | break; | |
| 121 | 114 | } |
| 122 | 115 | } |
| 123 | 116 | |
| r2241 | r2242 | |
| 296 | 289 | GFXDECODE_ENTRY( REGION_GFX2, 0, spritelayout, 16*16, 16 ) |
| 297 | 290 | GFXDECODE_END |
| 298 | 291 | |
| 292 | static const discrete_mixer_desc circusc_mixer_desc = | |
| 293 | {DISC_MIXER_IS_RESISTOR, | |
| 294 | {RES_K(2.2), RES_K(2.2), RES_K(10)}, | |
| 295 | {0,0,0}, // no variable resistors | |
| 296 | {0,0,0}, // no node capacitors | |
| 297 | 0, RES_K(1), | |
| 298 | CAP_U(0.1), | |
| 299 | CAP_U(0.47), | |
| 300 | 0, 1}; | |
| 299 | 301 | |
| 302 | static DISCRETE_SOUND_START( circusc ) | |
| 300 | 303 | |
| 304 | DISCRETE_INPUTX_STREAM(NODE_01, 0, 1.0, 0) | |
| 305 | DISCRETE_INPUTX_STREAM(NODE_02, 1, 1.0, 0) | |
| 306 | DISCRETE_INPUTX_DATA(NODE_03, 255, 0, 0) //DAC | |
| 307 | ||
| 308 | DISCRETE_INPUT_DATA(NODE_05) | |
| 309 | DISCRETE_INPUT_DATA(NODE_06) | |
| 310 | DISCRETE_INPUT_DATA(NODE_07) | |
| 311 | ||
| 312 | DISCRETE_RCFILTER_SW(NODE_10, 1, NODE_01, NODE_05, 1000, CAP_U(0.47), 0, 0, 0) | |
| 313 | DISCRETE_RCFILTER_SW(NODE_11, 1, NODE_02, NODE_06, 1000, CAP_U(0.047), CAP_U(0.47), 0, 0) | |
| 314 | DISCRETE_RCFILTER_SW(NODE_12, 1, NODE_03, NODE_07, 1000, CAP_U(0.47), 0, 0, 0) | |
| 315 | ||
| 316 | DISCRETE_MIXER3(NODE_20, 1, NODE_10, NODE_11, NODE_12, &circusc_mixer_desc) | |
| 317 | ||
| 318 | DISCRETE_OUTPUT(NODE_20, 10.0 ) | |
| 319 | ||
| 320 | DISCRETE_SOUND_END | |
| 321 | ||
| 301 | 322 | static MACHINE_DRIVER_START( circusc ) |
| 302 | 323 | |
| 303 | 324 | /* basic machine hardware */ |
| r2241 | r2242 | |
| 332 | 353 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 333 | 354 | |
| 334 | 355 | MDRV_SOUND_ADD(SN76496, 14318180/8) |
| 335 | MDRV_SOUND_ROUTE(0, "f | |
| 356 | MDRV_SOUND_ROUTE_EX(0, "f | |
| 336 | 357 | |
| 337 | 358 | MDRV_SOUND_ADD(SN76496, 14318180/8) |
| 338 | MDRV_SOUND_ROUTE(0, "f | |
| 359 | MDRV_SOUND_ROUTE_EX(0, "f | |
| 339 | 360 | |
| 340 | MDRV_SOUND_ADD(DAC, 0) | |
| 341 | MDRV_SOUND_ROUTE(0, "filter.3", 1.0) | |
| 361 | MDRV_SOUND_ADD_TAG("fltdisc", DISCRETE, 0) | |
| 342 | 362 | |
| 343 | MDRV_SOUND_ | |
| 363 | MDRV_SOUND_CONFIG_DISCRETE | |
| 344 | 364 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 345 | MDRV_SOUND_ADD_TAG("filter.2", FILTER_RC, 0) | |
| 346 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 347 | MDRV_SOUND_ADD_TAG("filter.3", FILTER_RC, 0) | |
| 348 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 349 | 365 | |
| 350 | 366 | MACHINE_DRIVER_END |
| 351 | 367 |
| r2241 | r2242 | |
|---|---|---|
| 5 | 5 | driver by Aaron Giles |
| 6 | 6 | |
| 7 | 7 | Games supported: |
| 8 | * Cruis'n USA (1994) [3 sets] | |
| 9 | * Cruis'n World (1996) [4 sets] | |
| 8 | * Cruis'n USA (1994) [3 sets] | |
| 9 | * Cruis'n World (1996) [4 sets] | |
| 10 | 10 | * War Gods (1996) |
| 11 | * Off Road Challenge (1997) | |
| 11 | * Off Road Challenge (1997) [3 sets] | |
| 12 | 12 | |
| 13 | 13 | Known bugs: |
| 14 | 14 | * textures for automatic/manual selection get overwritten in Cruis'n World |
| r2241 | r2242 | |
| 1057 | 1057 | * |
| 1058 | 1058 | *************************************/ |
| 1059 | 1059 | |
| 1060 | ROM_START( crusnusa ) | |
| 1060 | ROM_START( crusnusa ) /* Version 4.1, Mon Feb 13 1995 - 16:53:40 */ | |
| 1061 | 1061 | ROM_REGION16_LE( 0x1000000, REGION_SOUND1, ROMREGION_ERASEFF ) /* sound data */ |
| 1062 | 1062 | ROM_LOAD16_BYTE( "cusa.u2", 0x000000, 0x80000, CRC(b9338332) SHA1(e5c420e63c4eba0010a68c7e0a57ef210e2c83d2) ) |
| 1063 | 1063 | ROM_LOAD16_BYTE( "cusa.u3", 0x200000, 0x80000, CRC(cd8325d6) SHA1(d65d7263e056ca1d637adb44cafef523e0831a34) ) |
| r2241 | r2242 | |
| 1092 | 1092 | ROM_END |
| 1093 | 1093 | |
| 1094 | 1094 | |
| 1095 | ROM_START( crusnu40 ) | |
| 1095 | ROM_START( crusnu40 ) /* Version 4.0, Wed Feb 08 1995 - 10:45:14 */ | |
| 1096 | 1096 | ROM_REGION16_LE( 0x1000000, REGION_SOUND1, ROMREGION_ERASEFF ) /* sound data */ |
| 1097 | 1097 | ROM_LOAD16_BYTE( "cusa.u2", 0x000000, 0x80000, CRC(b9338332) SHA1(e5c420e63c4eba0010a68c7e0a57ef210e2c83d2) ) |
| 1098 | 1098 | ROM_LOAD16_BYTE( "cusa.u3", 0x200000, 0x80000, CRC(cd8325d6) SHA1(d65d7263e056ca1d637adb44cafef523e0831a34) ) |
| r2241 | r2242 | |
| 1127 | 1127 | ROM_END |
| 1128 | 1128 | |
| 1129 | 1129 | |
| 1130 | ROM_START( crusnu21 ) | |
| 1130 | ROM_START( crusnu21 ) /* Version 2.1, Wed Nov 09 1994 - 16:28:10 */ | |
| 1131 | 1131 | ROM_REGION16_LE( 0x1000000, REGION_SOUND1, ROMREGION_ERASEFF ) /* sound data */ |
| 1132 | 1132 | ROM_LOAD16_BYTE( "cusa.u2", 0x000000, 0x80000, CRC(b9338332) SHA1(e5c420e63c4eba0010a68c7e0a57ef210e2c83d2) ) |
| 1133 | 1133 | ROM_LOAD16_BYTE( "cusa.u3", 0x200000, 0x80000, CRC(cd8325d6) SHA1(d65d7263e056ca1d637adb44cafef523e0831a34) ) |
| r2241 | r2242 | |
| 1162 | 1162 | ROM_END |
| 1163 | 1163 | |
| 1164 | 1164 | |
| 1165 | ROM_START( crusnwld ) | |
| 1165 | ROM_START( crusnwld ) /* Version 2.4, Thu Feb 19 1998 - 13:43:26 */ | |
| 1166 | 1166 | ROM_REGION16_LE( 0x1000000, REGION_SOUND1, ROMREGION_ERASEFF ) /* sound data */ |
| 1167 | 1167 | ROM_LOAD16_BYTE( "cwld.u2", 0x000000, 0x80000, CRC(7a233c89) SHA1(ecfad4bc48a69cd3399e3b3266c81574082e0169) ) |
| 1168 | 1168 | ROM_LOAD16_BYTE( "cwld.u3", 0x200000, 0x80000, CRC(be9a5ff0) SHA1(98d69dbfa6aa8462cdd46772e991ee418b79c653) ) |
| r2241 | r2242 | |
| 1193 | 1193 | ROM_END |
| 1194 | 1194 | |
| 1195 | 1195 | |
| 1196 | ROM_START( crusnw23 ) | |
| 1196 | ROM_START( crusnw23 ) /* Version 2.3, Fri Jan 09 1998 - 10:25:49 */ | |
| 1197 | 1197 | ROM_REGION16_LE( 0x1000000, REGION_SOUND1, ROMREGION_ERASEFF ) /* sound data */ |
| 1198 | 1198 | ROM_LOAD16_BYTE( "cwld.u2", 0x000000, 0x80000, CRC(7a233c89) SHA1(ecfad4bc48a69cd3399e3b3266c81574082e0169) ) |
| 1199 | 1199 | ROM_LOAD16_BYTE( "cwld.u3", 0x200000, 0x80000, CRC(be9a5ff0) SHA1(98d69dbfa6aa8462cdd46772e991ee418b79c653) ) |
| r2241 | r2242 | |
| 1224 | 1224 | ROM_END |
| 1225 | 1225 | |
| 1226 | 1226 | |
| 1227 | ROM_START( crusnw20 ) | |
| 1227 | ROM_START( crusnw20 ) /* Version 2.0, Tue Mar 18 1997 - 12:32:57 */ | |
| 1228 | 1228 | ROM_REGION16_LE( 0x1000000, REGION_SOUND1, ROMREGION_ERASEFF ) /* sound data */ |
| 1229 | 1229 | ROM_LOAD16_BYTE( "cwld.u2", 0x000000, 0x80000, CRC(7a233c89) SHA1(ecfad4bc48a69cd3399e3b3266c81574082e0169) ) |
| 1230 | 1230 | ROM_LOAD16_BYTE( "cwld.u3", 0x200000, 0x80000, CRC(be9a5ff0) SHA1(98d69dbfa6aa8462cdd46772e991ee418b79c653) ) |
| r2241 | r2242 | |
| 1255 | 1255 | ROM_END |
| 1256 | 1256 | |
| 1257 | 1257 | |
| 1258 | ROM_START( crusnw13 ) | |
| 1258 | ROM_START( crusnw13 ) /* Version 1.3, Mon Nov 25 1996 - 23:22:45 */ | |
| 1259 | 1259 | ROM_REGION16_LE( 0x1000000, REGION_SOUND1, ROMREGION_ERASEFF ) /* sound data */ |
| 1260 | 1260 | ROM_LOAD16_BYTE( "cwld.u2", 0x000000, 0x80000, CRC(7a233c89) SHA1(ecfad4bc48a69cd3399e3b3266c81574082e0169) ) |
| 1261 | 1261 | ROM_LOAD16_BYTE( "cwld.u3", 0x200000, 0x80000, CRC(be9a5ff0) SHA1(98d69dbfa6aa8462cdd46772e991ee418b79c653) ) |
| r2241 | r2242 | |
| 1286 | 1286 | ROM_END |
| 1287 | 1287 | |
| 1288 | 1288 | |
| 1289 | ROM_START( offroadc ) | |
| 1289 | ROM_START( offroadc ) /* Version 1.40, Mon 10-06-97 */ | |
| 1290 | 1290 | ROM_REGION16_LE( 0x1000000, REGION_SOUND1, ROMREGION_ERASEFF ) /* sound data */ |
| 1291 | 1291 | ROM_LOAD16_BYTE( "offroadc.u2", 0x000000, 0x80000, CRC(69976e9d) SHA1(63c886ac2563c43a10840f49f929f8613cd94de2) ) |
| 1292 | 1292 | ROM_LOAD16_BYTE( "offroadc.u3", 0x200000, 0x80000, CRC(2db9b548) SHA1(4f454a3e6a8851b0ef5d325dd28102d57ea11a11) ) |
| r2241 | r2242 | |
| 1298 | 1298 | ROM_LOAD16_BYTE( "offroadc.u9", 0xe00000, 0x80000, CRC(7ad27f69) SHA1(b33665d0593a95b58d529720aae49e90449bf714) ) |
| 1299 | 1299 | |
| 1300 | 1300 | ROM_REGION32_LE( 0x1000000, REGION_USER1, 0 ) |
| 1301 | ROM_LOAD32_BYTE( "offroadc.u10", 0x0000000, 0x100000, CRC(4729660c) SHA1(0baff6a27015f4eb3fe0a981ecbac33d140e872a) ) | |
| 1302 | ROM_LOAD32_BYTE( "offroadc.u11", 0x0000001, 0x100000, CRC(6272d013) SHA1(860121184282627ed692e56a0dafee8b64562811) ) | |
| 1303 | ROM_LOAD32_BYTE( "offroadc.u12", 0x0000002, 0x100000, CRC(9c8326be) SHA1(55f16d14379f57d08ed84d82f9db1a582bc223a1) ) | |
| 1304 | ROM_LOAD32_BYTE( "offroadc.u13", 0x0000003, 0x100000, CRC(53bbc181) SHA1(1ab29a27a216eb09d69a9f3d681865de1a904717) ) | |
| 1301 | ROM_LOAD32_BYTE( "orc-1_4.u10", 0x0000000, 0x100000, CRC(d263b078) SHA1(d376e120e05cf8526b002300db345fd0b9775702) ) /* Version 1.40 program roms */ | |
| 1302 | ROM_LOAD32_BYTE( "orc-1_4.u11", 0x0000001, 0x100000, CRC(1b443a72) SHA1(0e16d923f0e97f21e92c8d5b431fcaa0815b2c87) ) | |
| 1303 | ROM_LOAD32_BYTE( "orc-1_4.u12", 0x0000002, 0x100000, CRC(4e82a34b) SHA1(c22a3f638b7e226add511147982339b1f59821e9) ) | |
| 1304 | ROM_LOAD32_BYTE( "orc-1_4.u13", 0x0000003, 0x100000, CRC(558b859c) SHA1(b7946a4b44976b08a691622000e1457021267d1a) ) | |
| 1305 | 1305 | ROM_LOAD32_BYTE( "offroadc.u14", 0x0400000, 0x100000, CRC(1e41d14b) SHA1(3f7c5fae1f8b82ddd811720837fa298785a8dd27) ) |
| 1306 | 1306 | ROM_LOAD32_BYTE( "offroadc.u15", 0x0400001, 0x100000, CRC(654d623d) SHA1(a944b8f8d71b099d7b5bbd7df6effb90afc3aec8) ) |
| 1307 | 1307 | ROM_LOAD32_BYTE( "offroadc.u16", 0x0400002, 0x100000, CRC(259774d8) SHA1(90cdf659324b84b3c2c59497cc5611e8f12629a6) ) |
| r2241 | r2242 | |
| 1317 | 1317 | ROM_END |
| 1318 | 1318 | |
| 1319 | 1319 | |
| 1320 | ROM_START( wargods ) | |
| 1320 | ROM_START( offrodc3 ) /* Version 1.30, Mon 09-15-97 */ | |
| 1321 | ROM_REGION16_LE( 0x1000000, REGION_SOUND1, ROMREGION_ERASEFF ) /* sound data */ | |
| 1322 | ROM_LOAD16_BYTE( "offroadc.u2", 0x000000, 0x80000, CRC(69976e9d) SHA1(63c886ac2563c43a10840f49f929f8613cd94de2) ) | |
| 1323 | ROM_LOAD16_BYTE( "offroadc.u3", 0x200000, 0x80000, CRC(2db9b548) SHA1(4f454a3e6a8851b0ef5d325dd28102d57ea11a11) ) | |
| 1324 | ROM_LOAD16_BYTE( "offroadc.u4", 0x400000, 0x80000, CRC(42bdf9d0) SHA1(04add0f0ee7fa61de1913cc0b988345d3d430cde) ) | |
| 1325 | ROM_LOAD16_BYTE( "offroadc.u5", 0x600000, 0x80000, CRC(569cc84b) SHA1(08b917cc41fae6b6a3e9d9461a783d3d2865e72a) ) | |
| 1326 | ROM_LOAD16_BYTE( "offroadc.u6", 0x800000, 0x80000, CRC(0896f679) SHA1(dde39ef17834256909ef2c9fcd5b5fb9939d5178) ) | |
| 1327 | ROM_LOAD16_BYTE( "offroadc.u7", 0xa00000, 0x80000, CRC(fe242d6a) SHA1(8fbac22ed23044841f309ce58c5b1affcdd5d114) ) | |
| 1328 | ROM_LOAD16_BYTE( "offroadc.u8", 0xc00000, 0x80000, CRC(5da13f12) SHA1(2bb5e929e8bc6c70cb4475024a6b0bb07ac25244) ) | |
| 1329 | ROM_LOAD16_BYTE( "offroadc.u9", 0xe00000, 0x80000, CRC(7ad27f69) SHA1(b33665d0593a95b58d529720aae49e90449bf714) ) | |
| 1330 | ||
| 1331 | ROM_REGION32_LE( 0x1000000, REGION_USER1, 0 ) | |
| 1332 | ROM_LOAD32_BYTE( "orc-1_3.u10", 0x0000000, 0x100000, CRC(71c62ce2) SHA1(e6bdbf3df4795f4cf29a08641cc59d90aed73b57) ) /* Version 1.30 program roms */ | |
| 1333 | ROM_LOAD32_BYTE( "orc-1_3.u11", 0x0000001, 0x100000, CRC(9e362dbb) SHA1(2480710f1081679ff87239a8e28a9a3f235bd3dc) ) | |
| 1334 | ROM_LOAD32_BYTE( "orc-1_3.u12", 0x0000002, 0x100000, CRC(9e0a5b06) SHA1(63bbe427713fc966c65dab575dd42cdce6b00874) ) | |
| 1335 | ROM_LOAD32_BYTE( "orc-1_3.u13", 0x0000003, 0x100000, CRC(d602db7e) SHA1(48bc762a83baeb382476619f54631ccbe12d1b2c) ) | |
| 1336 | ROM_LOAD32_BYTE( "offroadc.u14", 0x0400000, 0x100000, CRC(1e41d14b) SHA1(3f7c5fae1f8b82ddd811720837fa298785a8dd27) ) | |
| 1337 | ROM_LOAD32_BYTE( "offroadc.u15", 0x0400001, 0x100000, CRC(654d623d) SHA1(a944b8f8d71b099d7b5bbd7df6effb90afc3aec8) ) | |
| 1338 | ROM_LOAD32_BYTE( "offroadc.u16", 0x0400002, 0x100000, CRC(259774d8) SHA1(90cdf659324b84b3c2c59497cc5611e8f12629a6) ) | |
| 1339 | ROM_LOAD32_BYTE( "offroadc.u17", 0x0400003, 0x100000, CRC(50c61434) SHA1(52bc603101b4f88b7d892af683b7c8358cabbf4a) ) | |
| 1340 | ROM_LOAD32_BYTE( "offroadc.u18", 0x0800000, 0x100000, CRC(015be91c) SHA1(1624537068c6bc5fa6235bf0b0343347c337e8d8) ) | |
| 1341 | ROM_LOAD32_BYTE( "offroadc.u19", 0x0800001, 0x100000, CRC(cfc6b70e) SHA1(8c5ad84c50ca142726db0595153cf04caaabec9c) ) | |
| 1342 | ROM_LOAD32_BYTE( "offroadc.u20", 0x0800002, 0x100000, CRC(f48d6e33) SHA1(8b9c205e24f217ac110cdd82388c056ebbbb09b0) ) | |
| 1343 | ROM_LOAD32_BYTE( "offroadc.u21", 0x0800003, 0x100000, CRC(17794b56) SHA1(8bfd8f5b43056bfe7f62524bb8c3a8564a3a9413) ) | |
| 1344 | ROM_LOAD32_BYTE( "offroadc.u22", 0x0c00000, 0x100000, CRC(f2a6e622) SHA1(a7d7004e95b058124cc02e8073dab8fbed8813c5) ) | |
| 1345 | ROM_LOAD32_BYTE( "offroadc.u23", 0x0c00001, 0x100000, CRC(1cba6e20) SHA1(a7c9c58bfc4d26decb08979d83cccedb27528eb6) ) | |
| 1346 | ROM_LOAD32_BYTE( "offroadc.u24", 0x0c00002, 0x100000, CRC(fd3ce11f) SHA1(78c65267712488784bc6dc14eef98a90494a9553) ) | |
| 1347 | ROM_LOAD32_BYTE( "offroadc.u25", 0x0c00003, 0x100000, CRC(78f8e5db) SHA1(7ec2a5add27d66c43ba5cb7182554321007f5798) ) | |
| 1348 | ROM_END | |
| 1349 | ||
| 1350 | ||
| 1351 | ROM_START( offrodc1 ) /* Version 1.10, Mon 08-18-97 */ | |
| 1352 | ROM_REGION16_LE( 0x1000000, REGION_SOUND1, ROMREGION_ERASEFF ) /* sound data */ | |
| 1353 | ROM_LOAD16_BYTE( "offroadc.u2", 0x000000, 0x80000, CRC(69976e9d) SHA1(63c886ac2563c43a10840f49f929f8613cd94de2) ) | |
| 1354 | ROM_LOAD16_BYTE( "offroadc.u3", 0x200000, 0x80000, CRC(2db9b548) SHA1(4f454a3e6a8851b0ef5d325dd28102d57ea11a11) ) | |
| 1355 | ROM_LOAD16_BYTE( "offroadc.u4", 0x400000, 0x80000, CRC(42bdf9d0) SHA1(04add0f0ee7fa61de1913cc0b988345d3d430cde) ) | |
| 1356 | ROM_LOAD16_BYTE( "offroadc.u5", 0x600000, 0x80000, CRC(569cc84b) SHA1(08b917cc41fae6b6a3e9d9461a783d3d2865e72a) ) | |
| 1357 | ROM_LOAD16_BYTE( "offroadc.u6", 0x800000, 0x80000, CRC(0896f679) SHA1(dde39ef17834256909ef2c9fcd5b5fb9939d5178) ) | |
| 1358 | ROM_LOAD16_BYTE( "offroadc.u7", 0xa00000, 0x80000, CRC(fe242d6a) SHA1(8fbac22ed23044841f309ce58c5b1affcdd5d114) ) | |
| 1359 | ROM_LOAD16_BYTE( "offroadc.u8", 0xc00000, 0x80000, CRC(5da13f12) SHA1(2bb5e929e8bc6c70cb4475024a6b0bb07ac25244) ) | |
| 1360 | ROM_LOAD16_BYTE( "offroadc.u9", 0xe00000, 0x80000, CRC(7ad27f69) SHA1(b33665d0593a95b58d529720aae49e90449bf714) ) | |
| 1361 | ||
| 1362 | ROM_REGION32_LE( 0x1000000, REGION_USER1, 0 ) | |
| 1363 | ROM_LOAD32_BYTE( "orc-1_1.u10", 0x0000000, 0x100000, CRC(4729660c) SHA1(0baff6a27015f4eb3fe0a981ecbac33d140e872a) ) /* Version 1.10 program roms */ | |
| 1364 | ROM_LOAD32_BYTE( "orc-1_1.u11", 0x0000001, 0x100000, CRC(6272d013) SHA1(860121184282627ed692e56a0dafee8b64562811) ) | |
| 1365 | ROM_LOAD32_BYTE( "orc-1_1.u12", 0x0000002, 0x100000, CRC(9c8326be) SHA1(55f16d14379f57d08ed84d82f9db1a582bc223a1) ) | |
| 1366 | ROM_LOAD32_BYTE( "orc-1_1.u13", 0x0000003, 0x100000, CRC(53bbc181) SHA1(1ab29a27a216eb09d69a9f3d681865de1a904717) ) | |
| 1367 | ROM_LOAD32_BYTE( "offroadc.u14", 0x0400000, 0x100000, CRC(1e41d14b) SHA1(3f7c5fae1f8b82ddd811720837fa298785a8dd27) ) | |
| 1368 | ROM_LOAD32_BYTE( "offroadc.u15", 0x0400001, 0x100000, CRC(654d623d) SHA1(a944b8f8d71b099d7b5bbd7df6effb90afc3aec8) ) | |
| 1369 | ROM_LOAD32_BYTE( "offroadc.u16", 0x0400002, 0x100000, CRC(259774d8) SHA1(90cdf659324b84b3c2c59497cc5611e8f12629a6) ) | |
| 1370 | ROM_LOAD32_BYTE( "offroadc.u17", 0x0400003, 0x100000, CRC(50c61434) SHA1(52bc603101b4f88b7d892af683b7c8358cabbf4a) ) | |
| 1371 | ROM_LOAD32_BYTE( "offroadc.u18", 0x0800000, 0x100000, CRC(015be91c) SHA1(1624537068c6bc5fa6235bf0b0343347c337e8d8) ) | |
| 1372 | ROM_LOAD32_BYTE( "offroadc.u19", 0x0800001, 0x100000, CRC(cfc6b70e) SHA1(8c5ad84c50ca142726db0595153cf04caaabec9c) ) | |
| 1373 | ROM_LOAD32_BYTE( "offroadc.u20", 0x0800002, 0x100000, CRC(f48d6e33) SHA1(8b9c205e24f217ac110cdd82388c056ebbbb09b0) ) | |
| 1374 | ROM_LOAD32_BYTE( "offroadc.u21", 0x0800003, 0x100000, CRC(17794b56) SHA1(8bfd8f5b43056bfe7f62524bb8c3a8564a3a9413) ) | |
| 1375 | ROM_LOAD32_BYTE( "offroadc.u22", 0x0c00000, 0x100000, CRC(f2a6e622) SHA1(a7d7004e95b058124cc02e8073dab8fbed8813c5) ) | |
| 1376 | ROM_LOAD32_BYTE( "offroadc.u23", 0x0c00001, 0x100000, CRC(1cba6e20) SHA1(a7c9c58bfc4d26decb08979d83cccedb27528eb6) ) | |
| 1377 | ROM_LOAD32_BYTE( "offroadc.u24", 0x0c00002, 0x100000, CRC(fd3ce11f) SHA1(78c65267712488784bc6dc14eef98a90494a9553) ) | |
| 1378 | ROM_LOAD32_BYTE( "offroadc.u25", 0x0c00003, 0x100000, CRC(78f8e5db) SHA1(7ec2a5add27d66c43ba5cb7182554321007f5798) ) | |
| 1379 | ROM_END | |
| 1380 | ||
| 1381 | ||
| 1382 | ROM_START( wargods ) /* Boot EPROM Version 1.0, Game Type: 452 (12/11/1995) */ | |
| 1321 | 1383 | ROM_REGION16_LE( 0x10000, REGION_SOUND1, 0 ) /* sound data */ |
| 1322 | 1384 | ROM_LOAD16_BYTE( "u2.rom", 0x000000, 0x8000, CRC(bec7d3ae) SHA1(db80aa4a645804a4574b07b9f34dec6b6b64190d) ) |
| 1323 | 1385 | |
| r2241 | r2242 | |
| 1449 | 1511 | GAME( 1996, crusnw23, crusnwld, midvunit, crusnwld, crusnwld, ROT0, "Midway", "Cruis'n World (rev L2.3)", GAME_SUPPORTS_SAVE ) |
| 1450 | 1512 | GAME( 1996, crusnw20, crusnwld, midvunit, crusnwld, crusnwld, ROT0, "Midway", "Cruis'n World (rev L2.0)", GAME_SUPPORTS_SAVE ) |
| 1451 | 1513 | GAME( 1996, crusnw13, crusnwld, midvunit, crusnwld, crusnwld, ROT0, "Midway", "Cruis'n World (rev L1.3)", GAME_SUPPORTS_SAVE ) |
| 1452 | GAME( 1997, offroadc, 0, midvunit, offroadc, offroadc, ROT0, "Midway", "Off Road Challenge", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 1514 | GAME( 1997, offroadc, 0, midvunit, offroadc, offroadc, ROT0, "Midway", "Off Road Challenge (v1.40)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 1515 | GAME( 1997, offrodc3, offroadc, midvunit, offroadc, offroadc, ROT0, "Midway", "Off Road Challenge (v1.30)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 1516 | GAME( 1997, offrodc1, offroadc, midvunit, offroadc, offroadc, ROT0, "Midway", "Off Road Challenge (v1.10)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 1453 | 1517 | |
| 1454 | 1518 | GAME( 1995, wargods, 0, midvplus, wargods, wargods, ROT0, "Midway", "War Gods", GAME_SUPPORTS_SAVE ) |
| r2241 | r2242 | |
|---|---|---|
| 51 | 51 | |
| 52 | 52 | static WRITE16_HANDLER( suna16_soundlatch_w ) |
| 53 | 53 | { |
| 54 | if (ACCESSING_ | |
| 54 | if (ACCESSING_ | |
| 55 | 55 | { |
| 56 | 56 | soundlatch_w( machine, 0, data & 0xff ); |
| 57 | 57 | } |
| r2241 | r2242 | |
| 61 | 61 | |
| 62 | 62 | static WRITE16_HANDLER( bssoccer_leds_w ) |
| 63 | 63 | { |
| 64 | if (ACCESSING_ | |
| 64 | if (ACCESSING_ | |
| 65 | 65 | { |
| 66 | 66 | set_led_status(0, data & 0x01); |
| 67 | 67 | set_led_status(1, data & 0x02); |
| r2241 | r2242 | |
| 75 | 75 | |
| 76 | 76 | static WRITE16_HANDLER( uballoon_leds_w ) |
| 77 | 77 | { |
| 78 | if (ACCESSING_ | |
| 78 | if (ACCESSING_ | |
| 79 | 79 | { |
| 80 | 80 | coin_counter_w(0, data & 0x01); |
| 81 | 81 | set_led_status(0, data & 0x02); |
| r2241 | r2242 | |
| 87 | 87 | |
| 88 | 88 | static WRITE16_HANDLER( bestbest_coin_w ) |
| 89 | 89 | { |
| 90 | if (ACCESSING_ | |
| 90 | if (ACCESSING_ | |
| 91 | 91 | { |
| 92 | 92 | coin_counter_w(0, data & 0x04); |
| 93 | 93 | } |
| r2241 | r2242 | |
| 205 | 205 | |
| 206 | 206 | static WRITE16_HANDLER( bestbest_prot_w ) |
| 207 | 207 | { |
| 208 | if (ACCESSING_ | |
| 208 | if (ACCESSING_ | |
| 209 | 209 | { |
| 210 | 210 | switch (data & 0xff) |
| 211 | 211 | { |
| r2241 | r2242 | |
|---|---|---|
| 286 | 286 | return 0x40; /* Jack Rabbit */ |
| 287 | 287 | |
| 288 | 288 | case 6: |
| 289 | if ( | |
| 289 | if (machine->gamedrv == &driver_monymony) | |
| 290 | 290 | return 0x70; /* Money Money */ |
| 291 | 291 | return 0xa0; /* Jack Rabbit */ |
| 292 | 292 |
| r2241 | r2242 | |
|---|---|---|
| 210 | 210 | |
| 211 | 211 | static WRITE16_HANDLER ( shadfrce_sound_brt_w ) |
| 212 | 212 | { |
| 213 | if (ACCESSING_ | |
| 213 | if (ACCESSING_ | |
| 214 | 214 | { |
| 215 | 215 | soundlatch_w(machine,1,data >> 8); |
| 216 | 216 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE ); |
| r2241 | r2242 | |
|---|---|---|
| 204 | 204 | AM_RANGE(0xa7fc, 0xa7fc) AM_WRITE(prot_lock_w) |
| 205 | 205 | AM_RANGE(0xa7ff, 0xa7ff) AM_WRITE(eeprom_w) |
| 206 | 206 | AM_RANGE(0xaf80, 0xafff) AM_READWRITE(custom_ram_r, custom_ram_w) AM_BASE(&cus_ram) /*260d - 2626*/ |
| 207 | AM_RANGE(0xb000, 0xb0ff) AM_READWRITE(SMH_RAM, paletteram_RRRGGGBB_w) AM_BASE(&paletteram) /*Wrong format*/ | |
| 208 | AM_RANGE(0xc000, 0xc3ff) AM_READWRITE(SMH_RAM, yumefuda_vram_w) AM_BASE(&videoram) | |
| 209 | AM_RANGE(0xd000, 0xd3ff) AM_READWRITE(SMH_RAM, yumefuda_cram_w) AM_BASE(&colorram) | |
| 207 | AM_RANGE(0xb000, 0xb0ff) AM_RAM AM_WRITE(paletteram_RRRGGGBB_w) AM_BASE(&paletteram) /*Wrong format*/ | |
| 208 | AM_RANGE(0xc000, 0xc3ff) AM_RAM AM_WRITE(yumefuda_vram_w) AM_BASE(&videoram) | |
| 209 | AM_RANGE(0xd000, 0xd3ff) AM_RAM AM_WRITE(yumefuda_cram_w) AM_BASE(&colorram) | |
| 210 | 210 | AM_RANGE(0xe000, 0xffff) AM_RAM |
| 211 | 211 | ADDRESS_MAP_END |
| 212 | 212 |
| r2241 | r2242 | |
|---|---|---|
| 593 | 593 | //case 0x3c: |
| 594 | 594 | { |
| 595 | 595 | COMBINE_DATA( &gcu[chip].visible_area ); |
| 596 | if (ACCESSING_ | |
| 596 | if (ACCESSING_BITS_0_15) | |
| 597 | 597 | { |
| 598 | 598 | const device_config *screen = device_list_find_by_index(machine->config->devicelist, VIDEO_SCREEN, chip); |
| 599 | 599 | |
| r2241 | r2242 | |
| 672 | 672 | { |
| 673 | 673 | UINT32 r = 0; |
| 674 | 674 | |
| 675 | if ( | |
| 675 | if (ACCESSING_BITS_24_31 | |
| 676 | 676 | { |
| 677 | 677 | r |= (readinputport(0) & 0xff) << 24; |
| 678 | 678 | } |
| 679 | if ( | |
| 679 | if (ACCESSING_BITS_8_15 | |
| 680 | 680 | { |
| 681 | 681 | r |= (readinputport(1) & 0xff) << 8; |
| 682 | 682 | } |
| 683 | if ( | |
| 683 | if (ACCESSING_BITS_ | |
| 684 | 684 | { |
| 685 | 685 | r |= (readinputport(2) & 0xff); |
| 686 | 686 | } |
| r2241 | r2242 | |
| 703 | 703 | static READ32_HANDLER(flashram_r) |
| 704 | 704 | { |
| 705 | 705 | UINT32 r = 0; |
| 706 | if ( | |
| 706 | if (ACCESSING_BITS_24_31 | |
| 707 | 707 | { |
| 708 | 708 | r |= (intelflash_read(0, (offset*4)+0) & 0xff) << 24; |
| 709 | 709 | } |
| 710 | if ( | |
| 710 | if (ACCESSING_BITS_16_23 | |
| 711 | 711 | { |
| 712 | 712 | r |= (intelflash_read(0, (offset*4)+1) & 0xff) << 16; |
| 713 | 713 | } |
| 714 | if ( | |
| 714 | if (ACCESSING_BITS_8_15 | |
| 715 | 715 | { |
| 716 | 716 | r |= (intelflash_read(0, (offset*4)+2) & 0xff) << 8; |
| 717 | 717 | } |
| 718 | if ( | |
| 718 | if (ACCESSING_BITS_ | |
| 719 | 719 | { |
| 720 | 720 | r |= (intelflash_read(0, (offset*4)+3) & 0xff) << 0; |
| 721 | 721 | } |
| r2241 | r2242 | |
| 724 | 724 | |
| 725 | 725 | static WRITE32_HANDLER(flashram_w) |
| 726 | 726 | { |
| 727 | if ( | |
| 727 | if (ACCESSING_BITS_24_31 | |
| 728 | 728 | { |
| 729 | 729 | intelflash_write(0, (offset*4)+0, (data >> 24) & 0xff); |
| 730 | 730 | } |
| 731 | if ( | |
| 731 | if (ACCESSING_BITS_16_23 | |
| 732 | 732 | { |
| 733 | 733 | intelflash_write(0, (offset*4)+1, (data >> 16) & 0xff); |
| 734 | 734 | } |
| 735 | if ( | |
| 735 | if (ACCESSING_BITS_8_15 | |
| 736 | 736 | { |
| 737 | 737 | intelflash_write(0, (offset*4)+2, (data >> 8) & 0xff); |
| 738 | 738 | } |
| 739 | if ( | |
| 739 | if (ACCESSING_BITS_ | |
| 740 | 740 | { |
| 741 | 741 | intelflash_write(0, (offset*4)+3, (data >> 0) & 0xff); |
| 742 | 742 | } |
| r2241 | r2242 | |
| 757 | 757 | |
| 758 | 758 | offset &= 0x7ffff; |
| 759 | 759 | |
| 760 | if ( | |
| 760 | if (ACCESSING_BITS_24_31 | |
| 761 | 761 | { |
| 762 | 762 | r |= (intelflash_read(chip, (offset*4)+0) & 0xff) << 24; |
| 763 | 763 | } |
| 764 | if ( | |
| 764 | if (ACCESSING_BITS_16_23 | |
| 765 | 765 | { |
| 766 | 766 | r |= (intelflash_read(chip, (offset*4)+1) & 0xff) << 16; |
| 767 | 767 | } |
| 768 | if ( | |
| 768 | if (ACCESSING_BITS_8_15 | |
| 769 | 769 | { |
| 770 | 770 | r |= (intelflash_read(chip, (offset*4)+2) & 0xff) << 8; |
| 771 | 771 | } |
| 772 | if ( | |
| 772 | if (ACCESSING_BITS_ | |
| 773 | 773 | { |
| 774 | 774 | r |= (intelflash_read(chip, (offset*4)+3) & 0xff) << 0; |
| 775 | 775 | } |
| r2241 | r2242 | |
| 790 | 790 | |
| 791 | 791 | offset &= 0x7ffff; |
| 792 | 792 | |
| 793 | if ( | |
| 793 | if (ACCESSING_BITS_24_31 | |
| 794 | 794 | { |
| 795 | 795 | intelflash_write(chip, (offset*4)+0, (data >> 24) & 0xff); |
| 796 | 796 | } |
| 797 | if ( | |
| 797 | if (ACCESSING_BITS_16_23 | |
| 798 | 798 | { |
| 799 | 799 | intelflash_write(chip, (offset*4)+1, (data >> 16) & 0xff); |
| 800 | 800 | } |
| 801 | if ( | |
| 801 | if (ACCESSING_BITS_8_15 | |
| 802 | 802 | { |
| 803 | 803 | intelflash_write(chip, (offset*4)+2, (data >> 8) & 0xff); |
| 804 | 804 | } |
| 805 | if ( | |
| 805 | if (ACCESSING_BITS_ | |
| 806 | 806 | { |
| 807 | 807 | intelflash_write(chip, (offset*4)+3, (data >> 0) & 0xff); |
| 808 | 808 | } |
| r2241 | r2242 | |
| 1222 | 1222 | { |
| 1223 | 1223 | UINT32 r = 0; |
| 1224 | 1224 | |
| 1225 | if ( | |
| 1225 | if (ACCESSING_BITS_24_31 | |
| 1226 | 1226 | { |
| 1227 | 1227 | r |= pc16552d_0_r(machine, (offset*4)+0) << 24; |
| 1228 | 1228 | } |
| 1229 | if ( | |
| 1229 | if (ACCESSING_BITS_16_23 | |
| 1230 | 1230 | { |
| 1231 | 1231 | r |= pc16552d_0_r(machine, (offset*4)+1) << 16; |
| 1232 | 1232 | } |
| 1233 | if ( | |
| 1233 | if (ACCESSING_BITS_8_15 | |
| 1234 | 1234 | { |
| 1235 | 1235 | r |= pc16552d_0_r(machine, (offset*4)+2) << 8; |
| 1236 | 1236 | } |
| 1237 | if ( | |
| 1237 | if (ACCESSING_BITS_ | |
| 1238 | 1238 | { |
| 1239 | 1239 | r |= pc16552d_0_r(machine, (offset*4)+3) << 0; |
| 1240 | 1240 | } |
| r2241 | r2242 | |
| 1244 | 1244 | |
| 1245 | 1245 | static WRITE32_HANDLER( comm_uart_w ) |
| 1246 | 1246 | { |
| 1247 | if ( | |
| 1247 | if (ACCESSING_BITS_24_31 | |
| 1248 | 1248 | { |
| 1249 | 1249 | pc16552d_0_w(machine, (offset*4)+0, (data >> 24) & 0xff); |
| 1250 | 1250 | } |
| 1251 | if ( | |
| 1251 | if (ACCESSING_BITS_16_23 | |
| 1252 | 1252 | { |
| 1253 | 1253 | pc16552d_0_w(machine, (offset*4)+1, (data >> 16) & 0xff); |
| 1254 | 1254 | } |
| 1255 | if ( | |
| 1255 | if (ACCESSING_BITS_8_15 | |
| 1256 | 1256 | { |
| 1257 | 1257 | pc16552d_0_w(machine, (offset*4)+2, (data >> 8) & 0xff); |
| 1258 | 1258 | } |
| 1259 | if ( | |
| 1259 | if (ACCESSING_BITS_ | |
| 1260 | 1260 | { |
| 1261 | 1261 | pc16552d_0_w(machine, (offset*4)+3, (data >> 0) & 0xff); |
| 1262 | 1262 | } |
| r2241 | r2242 | |
| 1276 | 1276 | int reg = offset * 4; |
| 1277 | 1277 | UINT32 r = 0; |
| 1278 | 1278 | |
| 1279 | if ( | |
| 1279 | if (ACCESSING_BITS_24_31 | |
| 1280 | 1280 | { |
| 1281 | 1281 | r |= rtc65271_r((reg >> 8) & 0x1, (reg & 0xff) + 0) << 24; |
| 1282 | 1282 | } |
| 1283 | if ( | |
| 1283 | if (ACCESSING_BITS_16_23 | |
| 1284 | 1284 | { |
| 1285 | 1285 | r |= rtc65271_r((reg >> 8) & 0x1, (reg & 0xff) + 1) << 16; |
| 1286 | 1286 | } |
| 1287 | if ( | |
| 1287 | if (ACCESSING_BITS_8_15 | |
| 1288 | 1288 | { |
| 1289 | 1289 | r |= rtc65271_r((reg >> 8) & 0x1, (reg & 0xff) + 2) << 8; |
| 1290 | 1290 | } |
| 1291 | if ( | |
| 1291 | if (ACCESSING_BITS_ | |
| 1292 | 1292 | { |
| 1293 | 1293 | r |= rtc65271_r((reg >> 8) & 0x1, (reg & 0xff) + 3) << 0; |
| 1294 | 1294 | } |
| r2241 | r2242 | |
| 1299 | 1299 | static WRITE32_HANDLER( rtc_w ) |
| 1300 | 1300 | { |
| 1301 | 1301 | int reg = offset * 4; |
| 1302 | if ( | |
| 1302 | if (ACCESSING_BITS_24_31 | |
| 1303 | 1303 | { |
| 1304 | 1304 | rtc65271_w((reg >> 8) & 0x1, (reg & 0xff) + 0, (data >> 24) & 0xff); |
| 1305 | 1305 | } |
| 1306 | if ( | |
| 1306 | if (ACCESSING_BITS_16_23 | |
| 1307 | 1307 | { |
| 1308 | 1308 | rtc65271_w((reg >> 8) & 0x1, (reg & 0xff) + 1, (data >> 16) & 0xff); |
| 1309 | 1309 | } |
| 1310 | if ( | |
| 1310 | if (ACCESSING_BITS_8_15 | |
| 1311 | 1311 | { |
| 1312 | 1312 | rtc65271_w((reg >> 8) & 0x1, (reg & 0xff) + 2, (data >> 8) & 0xff); |
| 1313 | 1313 | } |
| 1314 | if ( | |
| 1314 | if (ACCESSING_BITS_ | |
| 1315 | 1315 | { |
| 1316 | 1316 | rtc65271_w((reg >> 8) & 0x1, (reg & 0xff) + 3, (data >> 0) & 0xff); |
| 1317 | 1317 | } |
| r2241 | r2242 | |
| 1325 | 1325 | |
| 1326 | 1326 | // printf("sound_r: %08X, %08X\n", offset, mem_mask); |
| 1327 | 1327 | |
| 1328 | if ( | |
| 1328 | if (ACCESSING_BITS_24_31 | |
| 1329 | 1329 | { |
| 1330 | 1330 | r |= YMZ280B_data_0_r(machine, offset) << 24; |
| 1331 | 1331 | } |
| 1332 | if ( | |
| 1332 | if (ACCESSING_BITS_16_23 | |
| 1333 | 1333 | { |
| 1334 | 1334 | r |= YMZ280B_status_0_r(machine, offset) << 16; |
| 1335 | 1335 | } |
| r2241 | r2242 | |
| 1340 | 1340 | static WRITE32_HANDLER( sound_w ) |
| 1341 | 1341 | { |
| 1342 | 1342 | // printf("sound_w: %08X, %08X, %08X\n", offset, data, mem_mask); |
| 1343 | if ( | |
| 1343 | if (ACCESSING_BITS_24_31 | |
| 1344 | 1344 | { |
| 1345 | 1345 | YMZ280B_register_0_w(machine, offset, (data >> 24) & 0xff); |
| 1346 | 1346 | } |
| 1347 | if ( | |
| 1347 | if (ACCESSING_BITS_16_23 | |
| 1348 | 1348 | { |
| 1349 | 1349 | YMZ280B_data_0_w(machine, offset, (data >> 16) & 0xff); |
| 1350 | 1350 | } |
| r2241 | r2242 | |
| 1397 | 1397 | { |
| 1398 | 1398 | UINT32 r = 0; |
| 1399 | 1399 | |
| 1400 | if ( | |
| 1400 | if (ACCESSING_BITS_24_31 | |
| 1401 | 1401 | { |
| 1402 | 1402 | r |= pc16552d_1_r(machine, offset >> 6) << 24; |
| 1403 | 1403 | } |
| r2241 | r2242 | |
| 1407 | 1407 | |
| 1408 | 1408 | static WRITE32_HANDLER( midi_uart_w ) |
| 1409 | 1409 | { |
| 1410 | if ( | |
| 1410 | if (ACCESSING_BITS_24_31 | |
| 1411 | 1411 | { |
| 1412 | 1412 | pc16552d_1_w(machine, offset >> 6, (data >> 24) & 0xff); |
| 1413 | 1413 | } |
| r2241 | r2242 | |
| 1518 | 1518 | { |
| 1519 | 1519 | UINT32 r = 0; |
| 1520 | 1520 | |
| 1521 | if ( | |
| 1521 | if (ACCESSING_BITS_24_31 | |
| 1522 | 1522 | { |
| 1523 | 1523 | r |= (~extend_board_irq_active) << 24; |
| 1524 | 1524 | } |
| r2241 | r2242 | |
| 1530 | 1530 | { |
| 1531 | 1531 | // printf("extend_board_irq_w: %08X, %08X, %08X\n", data, offset, mem_mask); |
| 1532 | 1532 | |
| 1533 | if ( | |
| 1533 | if (ACCESSING_BITS_24_31 | |
| 1534 | 1534 | { |
| 1535 | 1535 | extend_board_irq_active &= ~((data >> 24) & 0xff); |
| 1536 | 1536 | |
| r2241 | r2242 | |
| 1543 | 1543 | static WRITE32_HANDLER( lamp_output_w ) |
| 1544 | 1544 | { |
| 1545 | 1545 | // -------- -------- -------- xxxxxxxx Status LEDs (active low) |
| 1546 | if ( | |
| 1546 | if (ACCESSING_BITS_ | |
| 1547 | 1547 | { |
| 1548 | 1548 | output_set_value("status_led_0", (data & 0x01) ? 0 : 1); |
| 1549 | 1549 | output_set_value("status_led_1", (data & 0x02) ? 0 : 1); |
| r2241 | r2242 | |
| 1562 | 1562 | { |
| 1563 | 1563 | lamp_output_w(machine, offset, data, mem_mask); |
| 1564 | 1564 | |
| 1565 | if ( | |
| 1565 | if (ACCESSING_BITS_24_31 | |
| 1566 | 1566 | { |
| 1567 | 1567 | output_set_value("door_lamp", (data & 0x10000000) ? 1 : 0); |
| 1568 | 1568 | output_set_value("start1p", (data & 0x01000000) ? 1 : 0); |
| 1569 | 1569 | output_set_value("start2p", (data & 0x02000000) ? 1 : 0); |
| 1570 | 1570 | } |
| 1571 | if ( | |
| 1571 | if (ACCESSING_BITS_8_15 | |
| 1572 | 1572 | { |
| 1573 | 1573 | output_set_value("lamp1", (data & 0x00000100) ? 1 : 0); |
| 1574 | 1574 | output_set_value("lamp2", (data & 0x00000200) ? 1 : 0); |
| r2241 | r2242 | |
| 1595 | 1595 | // 0x00020000 Stage LED 5 |
| 1596 | 1596 | // 0x00040000 Stage LED 6 |
| 1597 | 1597 | // 0x00080000 Stage LED 7 |
| 1598 | if ( | |
| 1598 | if (ACCESSING_BITS_8_15 | |
| 1599 | 1599 | { |
| 1600 | 1600 | output_set_value("left", (data & 0x00000100) ? 1 : 0); |
| 1601 | 1601 | output_set_value("right", (data & 0x00000200) ? 1 : 0); |
| r2241 | r2242 | |
| 1603 | 1603 | output_set_value("ok", (data & 0x00000800) ? 1 : 0); |
| 1604 | 1604 | output_set_value("slim", (data & 0x00008000) ? 1 : 0); |
| 1605 | 1605 | } |
| 1606 | if ( | |
| 1606 | if (ACCESSING_BITS_24_31 | |
| 1607 | 1607 | { |
| 1608 | 1608 | output_set_value("stage_led_0", (data & 0x01000000) ? 1 : 0); |
| 1609 | 1609 | output_set_value("stage_led_1", (data & 0x02000000) ? 1 : 0); |
| 1610 | 1610 | output_set_value("stage_led_2", (data & 0x04000000) ? 1 : 0); |
| 1611 | 1611 | output_set_value("stage_led_3", (data & 0x08000000) ? 1 : 0); |
| 1612 | 1612 | } |
| 1613 | if ( | |
| 1613 | if (ACCESSING_BITS_16_23 | |
| 1614 | 1614 | { |
| 1615 | 1615 | output_set_value("stage_led_4", (data & 0x00010000) ? 1 : 0); |
| 1616 | 1616 | output_set_value("stage_led_5", (data & 0x00020000) ? 1 : 0); |
| r2241 | r2242 | |
| 1637 | 1637 | // 0x00000002 Top LED 5 |
| 1638 | 1638 | // 0x00000004 Top LED 6 |
| 1639 | 1639 | // 0x00000008 Top LED 7 |
| 1640 | if ( | |
| 1640 | if (ACCESSING_BITS_16_23 | |
| 1641 | 1641 | { |
| 1642 | 1642 | output_set_value("top_led_0", (data & 0x00010000) ? 1 : 0); |
| 1643 | 1643 | output_set_value("top_led_1", (data & 0x00020000) ? 1 : 0); |
| 1644 | 1644 | output_set_value("top_led_2", (data & 0x00040000) ? 1 : 0); |
| 1645 | 1645 | output_set_value("top_led_3", (data & 0x00080000) ? 1 : 0); |
| 1646 | 1646 | } |
| 1647 | if ( | |
| 1647 | if (ACCESSING_BITS_ | |
| 1648 | 1648 | { |
| 1649 | 1649 | output_set_value("top_led_4", (data & 0x00000001) ? 1 : 0); |
| 1650 | 1650 | output_set_value("top_led_5", (data & 0x00000002) ? 1 : 0); |
| r2241 | r2242 | |
| 1667 | 1667 | // 0x00040000 Lamp 1 |
| 1668 | 1668 | // 0x00100000 Lamp 2 |
| 1669 | 1669 | // 0x00400000 Lamp 3 |
| 1670 | if ( | |
| 1670 | if (ACCESSING_BITS_16_23 | |
| 1671 | 1671 | { |
| 1672 | 1672 | output_set_value("lamp_0", (data & 0x00010000) ? 1 : 0); |
| 1673 | 1673 | output_set_value("lamp_1", (data & 0x00040000) ? 1 : 0); |
| r2241 | r2242 | |
| 1684 | 1684 | { |
| 1685 | 1685 | UINT32 r = 0; |
| 1686 | 1686 | |
| 1687 | if ( | |
| 1687 | if (ACCESSING_BITS_24_31 | |
| 1688 | 1688 | { |
| 1689 | 1689 | r |= spu_shared_ram[(offset * 4) + 0] << 24; |
| 1690 | 1690 | } |
| 1691 | if ( | |
| 1691 | if (ACCESSING_BITS_16_23 | |
| 1692 | 1692 | { |
| 1693 | 1693 | r |= spu_shared_ram[(offset * 4) + 1] << 16; |
| 1694 | 1694 | } |
| 1695 | if ( | |
| 1695 | if (ACCESSING_BITS_8_15 | |
| 1696 | 1696 | { |
| 1697 | 1697 | r |= spu_shared_ram[(offset * 4) + 2] << 8; |
| 1698 | 1698 | } |
| 1699 | if ( | |
| 1699 | if (ACCESSING_BITS_ | |
| 1700 | 1700 | { |
| 1701 | 1701 | r |= spu_shared_ram[(offset * 4) + 3] << 0; |
| 1702 | 1702 | } |
| r2241 | r2242 | |
| 1706 | 1706 | |
| 1707 | 1707 | static WRITE32_HANDLER(ppc_spu_share_w) |
| 1708 | 1708 | { |
| 1709 | if ( | |
| 1709 | if (ACCESSING_BITS_24_31 | |
| 1710 | 1710 | { |
| 1711 | 1711 | spu_shared_ram[(offset * 4) + 0] = (data >> 24) & 0xff; |
| 1712 | 1712 | } |
| 1713 | if ( | |
| 1713 | if (ACCESSING_BITS_16_23 | |
| 1714 | 1714 | { |
| 1715 | 1715 | spu_shared_ram[(offset * 4) + 1] = (data >> 16) & 0xff; |
| 1716 | 1716 | } |
| 1717 | if ( | |
| 1717 | if (ACCESSING_BITS_8_15 | |
| 1718 | 1718 | { |
| 1719 | 1719 | spu_shared_ram[(offset * 4) + 2] = (data >> 8) & 0xff; |
| 1720 | 1720 | } |
| 1721 | if ( | |
| 1721 | if (ACCESSING_BITS_ | |
| 1722 | 1722 | { |
| 1723 | 1723 | spu_shared_ram[(offset * 4) + 3] = (data >> 0) & 0xff; |
| 1724 | 1724 | } |
| r2241 | r2242 | |
| 2005 | 2005 | MDRV_SCREEN_ADD("main", RASTER) |
| 2006 | 2006 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2007 | 2007 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
| 2008 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 2008 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 2009 | 2009 | MDRV_SCREEN_SIZE(640, 480) |
| 2010 | 2010 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479) |
| 2011 | 2011 | |
| 2012 | 2012 | MDRV_PALETTE_LENGTH(32768) |
| 2013 | 2013 | |
| 2014 | MDRV_PALETTE_INIT(RRRRR_GGGGG_BBBBB) | |
| 2014 | 2015 | MDRV_VIDEO_START(firebeat) |
| 2015 | 2016 | MDRV_VIDEO_UPDATE(firebeat) |
| 2016 | 2017 | |
| r2241 | r2242 | |
| 2041 | 2042 | |
| 2042 | 2043 | /* video hardware */ |
| 2043 | 2044 | MDRV_PALETTE_LENGTH(32768) |
| 2045 | MDRV_PALETTE_INIT(RRRRR_GGGGG_BBBBB) | |
| 2044 | 2046 | |
| 2045 | 2047 | MDRV_SCREEN_ADD("left", RASTER) |
| 2046 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 2048 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 2047 | 2049 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2048 | 2050 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
| 2049 | 2051 | MDRV_SCREEN_SIZE(640, 480) |
| 2050 | 2052 | MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479) |
| 2051 | 2053 | |
| 2052 | 2054 | MDRV_SCREEN_ADD("right", RASTER) |
| 2053 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 2055 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 2054 | 2056 | MDRV_SCREEN_REFRESH_RATE(60) |
| 2055 | 2057 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
| 2056 | 2058 | MDRV_SCREEN_SIZE(640, 480) |
| r2241 | r2242 | |
|---|---|---|
| 528 | 528 | { |
| 529 | 529 | COMBINE_DATA(&namcos23_charram[offset] ); |
| 530 | 530 | |
| 531 | decodechar( | |
| 531 | decodechar( machine->gfx[0],offset/32,(UINT8 *)namcos23_charram ); | |
| 532 | 532 | |
| 533 | 533 | tilemap_mark_all_tiles_dirty(bgtilemap); |
| 534 | 534 | } |
| r2241 | r2242 | |
| 608 | 608 | if (data) |
| 609 | 609 | { |
| 610 | 610 | logerror("S23: booting H8/3002\n"); |
| 611 | cpunum_set_input_line( | |
| 611 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, CLEAR_LINE); | |
| 612 | 612 | } |
| 613 | 613 | else |
| 614 | 614 | { |
| 615 | 615 | logerror("S23: stopping H8/3002\n"); |
| 616 | cpunum_set_input_line( | |
| 616 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, ASSERT_LINE); | |
| 617 | 617 | } |
| 618 | 618 | } |
| 619 | 619 | } |
| r2241 | r2242 | |
| 701 | 701 | mame_system_time systime; |
| 702 | 702 | static const int weekday[7] = { 7, 1, 2, 3, 4, 5, 6 }; |
| 703 | 703 | |
| 704 | mame_get_current_datetime( | |
| 704 | mame_get_current_datetime(machine, &systime); | |
| 705 | 705 | |
| 706 | 706 | switch (s23_rtcstate) |
| 707 | 707 | { |
| r2241 | r2242 | |
|---|---|---|
| 103 | 103 | |
| 104 | 104 | static WRITE16_HANDLER( inufuku_soundcommand_w ) |
| 105 | 105 | { |
| 106 | if (ACCESSING_ | |
| 106 | if (ACCESSING_ | |
| 107 | 107 | |
| 108 | 108 | /* hack... sound doesn't work otherwise */ |
| 109 | 109 | if (data == 0x08) return; |
| r2241 | r2242 | |
|---|---|---|
| 301 | 301 | static WRITE16_HANDLER( int1_ack_w ) |
| 302 | 302 | { |
| 303 | 303 | /* reset sound CPU */ |
| 304 | if (ACCESSING_ | |
| 304 | if (ACCESSING_ | |
| 305 | 305 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, (data & 1) ? ASSERT_LINE : CLEAR_LINE); |
| 306 | 306 | } |
| 307 | 307 | |
| r2241 | r2242 | |
| 314 | 314 | |
| 315 | 315 | static WRITE16_HANDLER( int_enable_w ) |
| 316 | 316 | { |
| 317 | if (offset == 0 && ACCESSING_ | |
| 317 | if (offset == 0 && ACCESSING_ | |
| 318 | 318 | timer_call_after_resynch(NULL, data, delayed_int_enable_w); |
| 319 | 319 | } |
| 320 | 320 | |
| r2241 | r2242 | |
| 906 | 906 | static INPUT_PORTS_START( ssprint ) |
| 907 | 907 | PORT_INCLUDE( paperboy ) |
| 908 | 908 | |
| 909 | PORT_MODIFY("1840") | |
| 910 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 911 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 912 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 ) | |
| 913 | ||
| 909 | 914 | PORT_MODIFY("1800") |
| 910 | 915 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 911 | 916 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START3 ) |
| r2241 | r2242 | |
| 965 | 970 | |
| 966 | 971 | PORT_MODIFY("1840") |
| 967 | 972 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 973 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 974 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 968 | 975 | |
| 969 | 976 | PORT_MODIFY("1800") |
| 970 | 977 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| r2241 | r2242 | |
| 988 | 995 | static INPUT_PORTS_START( apb ) |
| 989 | 996 | PORT_INCLUDE( paperboy ) |
| 990 | 997 | |
| 998 | PORT_MODIFY("1840") | |
| 999 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1000 | ||
| 991 | 1001 | PORT_MODIFY("1800") |
| 992 | 1002 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 993 | 1003 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) |
| r2241 | r2242 | |
|---|---|---|
| 72 | 72 | |
| 73 | 73 | static WRITE32_HANDLER( aga_overlay_w ) |
| 74 | 74 | { |
| 75 | if ( | |
| 75 | if (ACCESSING_BITS_16_23 | |
| 76 | 76 | { |
| 77 | 77 | data = (data >> 16) & 1; |
| 78 | 78 |
| r2241 | r2242 | |
|---|---|---|
| 490 | 490 | MDRV_SCREEN_ADD("main", RASTER) |
| 491 | 491 | MDRV_SCREEN_REFRESH_RATE(60) |
| 492 | 492 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
| 493 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB | |
| 493 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32) | |
| 494 | 494 | MDRV_SCREEN_SIZE(1024, 1024) |
| 495 | 495 | MDRV_SCREEN_VISIBLE_AREA(0, 319, 0, 239) |
| 496 | 496 |
| r2241 | r2242 | |
|---|---|---|
| 145 | 145 | **************************************************************************/ |
| 146 | 146 | |
| 147 | 147 | #include "driver.h" |
| 148 | #include "deprecat.h" | |
| 149 | 148 | #include "machine/8255ppi.h" |
| 150 | 149 | #include "turbo.h" |
| 151 | 150 | #include "machine/segacrpt.h" |
| r2241 | r2242 | |
| 212 | 211 | static WRITE8_HANDLER( turbo_ppi0a_w ) |
| 213 | 212 | { |
| 214 | 213 | /* bit0-7 = 0PA0-7 */ |
| 215 | turbo_state *state = | |
| 214 | turbo_state *state = machine->driver_data; | |
| 216 | 215 | state->turbo_opa = data; |
| 217 | 216 | } |
| 218 | 217 | |
| r2241 | r2242 | |
| 220 | 219 | static WRITE8_HANDLER( turbo_ppi0b_w ) |
| 221 | 220 | { |
| 222 | 221 | /* bit0-7 = 0PB0-7 */ |
| 223 | turbo_state *state = | |
| 222 | turbo_state *state = machine->driver_data; | |
| 224 | 223 | state->turbo_opb = data; |
| 225 | 224 | } |
| 226 | 225 | |
| r2241 | r2242 | |
| 228 | 227 | static WRITE8_HANDLER( turbo_ppi0c_w ) |
| 229 | 228 | { |
| 230 | 229 | /* bit0-7 = 0PC0-7 */ |
| 231 | turbo_state *state = | |
| 230 | turbo_state *state = machine->driver_data; | |
| 232 | 231 | state->turbo_opc = data; |
| 233 | 232 | } |
| 234 | 233 | |
| r2241 | r2242 | |
| 236 | 235 | static WRITE8_HANDLER( turbo_ppi1a_w ) |
| 237 | 236 | { |
| 238 | 237 | /* bit0-7 = 1PA0-7 */ |
| 239 | turbo_state *state = | |
| 238 | turbo_state *state = machine->driver_data; | |
| 240 | 239 | state->turbo_ipa = data; |
| 241 | 240 | } |
| 242 | 241 | |
| r2241 | r2242 | |
| 244 | 243 | static WRITE8_HANDLER( turbo_ppi1b_w ) |
| 245 | 244 | { |
| 246 | 245 | /* bit0-7 = 1PB0-7 */ |
| 247 | turbo_state *state = | |
| 246 | turbo_state *state = machine->driver_data; | |
| 248 | 247 | state->turbo_ipb = data; |
| 249 | 248 | } |
| 250 | 249 | |
| r2241 | r2242 | |
| 252 | 251 | static WRITE8_HANDLER( turbo_ppi1c_w ) |
| 253 | 252 | { |
| 254 | 253 | /* bit0-7 = 1PC0-7 */ |
| 255 | turbo_state *state = | |
| 254 | turbo_state *state = machine->driver_data; | |
| 256 | 255 | state->turbo_ipc = data; |
| 257 | 256 | } |
| 258 | 257 | |
| r2241 | r2242 | |
| 262 | 261 | /* bit 0-3 = PLA0-3 */ |
| 263 | 262 | /* bit 4-6 = COL0-2 */ |
| 264 | 263 | /* bit 7 = n/c */ |
| 265 | turbo_state *state = | |
| 264 | turbo_state *state = machine->driver_data; | |
| 266 | 265 | state->turbo_fbpla = data & 0x0f; |
| 267 | 266 | state->turbo_fbcol = (data >> 4) & 0x07; |
| 268 | 267 | } |
| r2241 | r2242 | |
| 285 | 284 | { |
| 286 | 285 | /* bit 0-3 = PLY0-3 */ |
| 287 | 286 | /* bit 4-7 = n/c */ |
| 288 | turbo_state *state = | |
| 287 | turbo_state *state = machine->driver_data; | |
| 289 | 288 | state->subroc3d_ply = data & 0x0f; |
| 290 | 289 | } |
| 291 | 290 | |
| r2241 | r2242 | |
| 293 | 292 | static WRITE8_HANDLER( subroc3d_ppi0c_w ) |
| 294 | 293 | { |
| 295 | 294 | /* bit 0-3 = COL0-3 */ |
| 296 | turbo_state *state = | |
| 295 | turbo_state *state = machine->driver_data; | |
| 297 | 296 | state->subroc3d_col = data & 0x0f; |
| 298 | 297 | } |
| 299 | 298 | |
| r2241 | r2242 | |
| 305 | 304 | /* bit 2 = STLA (START LAMP) */ |
| 306 | 305 | /* bit 3 = NOUSE (n/c) */ |
| 307 | 306 | /* bit 4 = FLIP (not really flip, just offset) */ |
| 308 | turbo_state *state = | |
| 307 | turbo_state *state = machine->driver_data; | |
| 309 | 308 | coin_counter_w(0, data & 0x01); |
| 310 | 309 | coin_counter_w(1, data & 0x02); |
| 311 | 310 | set_led_status(0, data & 0x04); |
| r2241 | r2242 | |
| 323 | 322 | static WRITE8_HANDLER( buckrog_ppi0a_w ) |
| 324 | 323 | { |
| 325 | 324 | /* bit 0-7 = data to be read on the /IOREQ */ |
| 326 | turbo_state *state = | |
| 325 | turbo_state *state = machine->driver_data; | |
| 327 | 326 | state->buckrog_command = data; |
| 328 | 327 | } |
| 329 | 328 | |
| r2241 | r2242 | |
| 332 | 331 | { |
| 333 | 332 | /* bit 0-5 = MOV0-5 */ |
| 334 | 333 | /* bit 6-7 = n/c */ |
| 335 | turbo_state *state = | |
| 334 | turbo_state *state = machine->driver_data; | |
| 336 | 335 | state->buckrog_mov = data & 0x3f; |
| 337 | 336 | } |
| 338 | 337 | |
| r2241 | r2242 | |
| 343 | 342 | /* bit 3-5 = n/c */ |
| 344 | 343 | /* bit 6 = /IOREQ on the 2nd CPU */ |
| 345 | 344 | /* bit 7 = /INT on the 2nd CPU */ |
| 346 | turbo_state *state = | |
| 345 | turbo_state *state = machine->driver_data; | |
| 347 | 346 | state->buckrog_fchg = data & 0x07; |
| 348 | cpunum_set_input_line( | |
| 347 | cpunum_set_input_line(machine, 1, 0, (data & 0x80) ? CLEAR_LINE : ASSERT_LINE); | |
| 349 | 348 | } |
| 350 | 349 | |
| 351 | 350 | |
| r2241 | r2242 | |
| 357 | 356 | /* bit 5 = COM2 (COIN METER 2) */ |
| 358 | 357 | /* bit 6 = STLA (START LAMP) */ |
| 359 | 358 | /* bit 7 = NOUSE (BODY SONIC) */ |
| 360 | turbo_state *state = | |
| 359 | turbo_state *state = machine->driver_data; | |
| 361 | 360 | state->buckrog_obch = data & 0x07; |
| 362 | 361 | coin_counter_w(0, data & 0x10); |
| 363 | 362 | coin_counter_w(1, data & 0x20); |
| r2241 | r2242 | |
| 399 | 398 | |
| 400 | 399 | static READ8_HANDLER( turbo_8279_r ) |
| 401 | 400 | { |
| 402 | turbo_state *state = | |
| 401 | turbo_state *state = machine->driver_data; | |
| 403 | 402 | i8279_state *chip = &state->i8279; |
| 404 | 403 | UINT8 result = 0xff; |
| 405 | 404 | UINT8 addr; |
| r2241 | r2242 | |
| 440 | 439 | |
| 441 | 440 | static WRITE8_HANDLER( turbo_8279_w ) |
| 442 | 441 | { |
| 443 | turbo_state *state = | |
| 442 | turbo_state *state = machine->driver_data; | |
| 444 | 443 | i8279_state *chip = &state->i8279; |
| 445 | 444 | UINT8 addr; |
| 446 | 445 | |
| r2241 | r2242 | |
| 544 | 543 | |
| 545 | 544 | static READ8_HANDLER( turbo_collision_r ) |
| 546 | 545 | { |
| 547 | turbo_state *state = | |
| 546 | turbo_state *state = machine->driver_data; | |
| 548 | 547 | video_screen_update_partial(machine->primary_screen, video_screen_get_vpos(machine->primary_screen)); |
| 549 | 548 | return readinputport(3) | (state->turbo_collision & 15); |
| 550 | 549 | } |
| r2241 | r2242 | |
| 552 | 551 | |
| 553 | 552 | static WRITE8_HANDLER( turbo_collision_clear_w ) |
| 554 | 553 | { |
| 555 | turbo_state *state = | |
| 554 | turbo_state *state = machine->driver_data; | |
| 556 | 555 | video_screen_update_partial(machine->primary_screen, video_screen_get_vpos(machine->primary_screen)); |
| 557 | 556 | state->turbo_collision = 0; |
| 558 | 557 | } |
| r2241 | r2242 | |
| 560 | 559 | |
| 561 | 560 | static READ8_HANDLER( turbo_analog_r ) |
| 562 | 561 | { |
| 563 | turbo_state *state = | |
| 562 | turbo_state *state = machine->driver_data; | |
| 564 | 563 | return readinputport(4) - state->turbo_last_analog; |
| 565 | 564 | } |
| 566 | 565 | |
| 567 | 566 | |
| 568 | 567 | static WRITE8_HANDLER( turbo_analog_reset_w ) |
| 569 | 568 | { |
| 570 | turbo_state *state = | |
| 569 | turbo_state *state = machine->driver_data; | |
| 571 | 570 | state->turbo_last_analog = readinputport(4); |
| 572 | 571 | } |
| 573 | 572 | |
| r2241 | r2242 | |
| 599 | 598 | static READ8_HANDLER( buckrog_cpu2_command_r ) |
| 600 | 599 | { |
| 601 | 600 | /* assert ACK */ |
| 602 | turbo_state *state = | |
| 601 | turbo_state *state = machine->driver_data; | |
| 603 | 602 | ppi8255_set_portC(0, 0x00); |
| 604 | 603 | return state->buckrog_command; |
| 605 | 604 | } |
| r2241 | r2242 | |
|---|---|---|
| 1476 | 1476 | |
| 1477 | 1477 | static WRITE16_HANDLER( sharedram_68000_w ) |
| 1478 | 1478 | { |
| 1479 | if (ACCESSING_ | |
| 1479 | if (ACCESSING_ | |
| 1480 | 1480 | } |
| 1481 | 1481 | |
| 1482 | 1482 | |
| r2241 | r2242 | |
| 1494 | 1494 | switch(offset) |
| 1495 | 1495 | { |
| 1496 | 1496 | case 0/2: // bit 0: reset sub cpu? |
| 1497 | if (ACCESSING_ | |
| 1497 | if (ACCESSING_ | |
| 1498 | 1498 | { |
| 1499 | 1499 | if ( !(old_data&1) && (data&1) ) |
| 1500 | 1500 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, PULSE_LINE); |
| r2241 | r2242 | |
| 1506 | 1506 | break; |
| 1507 | 1507 | |
| 1508 | 1508 | case 4/2: // not sure |
| 1509 | if (ACCESSING_ | |
| 1509 | if (ACCESSING_ | |
| 1510 | 1510 | break; |
| 1511 | 1511 | |
| 1512 | 1512 | case 6/2: // not sure |
| 1513 | if (ACCESSING_ | |
| 1513 | if (ACCESSING_ | |
| 1514 | 1514 | break; |
| 1515 | 1515 | } |
| 1516 | 1516 | |
| r2241 | r2242 | |
| 1677 | 1677 | |
| 1678 | 1678 | static WRITE16_HANDLER( calibr50_soundlatch_w ) |
| 1679 | 1679 | { |
| 1680 | if (ACCESSING_ | |
| 1680 | if (ACCESSING_ | |
| 1681 | 1681 | { |
| 1682 | 1682 | soundlatch_word_w(machine,0,data,mem_mask); |
| 1683 | 1683 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); |
| r2241 | r2242 | |
| 1762 | 1762 | { |
| 1763 | 1763 | static int old_tiles_offset = 0; |
| 1764 | 1764 | |
| 1765 | if (ACCESSING_ | |
| 1765 | if (ACCESSING_ | |
| 1766 | 1766 | { |
| 1767 | 1767 | seta_tiles_offset = (data & 0x10) ? 0x4000: 0; |
| 1768 | 1768 | if (old_tiles_offset != seta_tiles_offset) tilemap_mark_all_tiles_dirty(ALL_TILEMAPS); |
| r2241 | r2242 | |
| 2589 | 2589 | |
| 2590 | 2590 | static WRITE16_HANDLER( kiwame_nvram_w ) |
| 2591 | 2591 | { |
| 2592 | if (ACCESSING_ | |
| 2592 | if (ACCESSING_ | |
| 2593 | 2593 | } |
| 2594 | 2594 | |
| 2595 | 2595 | static READ16_HANDLER( kiwame_input_r ) |
| r2241 | r2242 | |
| 2760 | 2760 | |
| 2761 | 2761 | static WRITE16_HANDLER( utoukond_soundlatch_w ) |
| 2762 | 2762 | { |
| 2763 | if (ACCESSING_ | |
| 2763 | if (ACCESSING_ | |
| 2764 | 2764 | { |
| 2765 | 2765 | cpunum_set_input_line(machine, 1,0,HOLD_LINE); |
| 2766 | 2766 | soundlatch_w(machine,0,data & 0xff); |
| r2241 | r2242 | |
| 3069 | 3069 | Crazy Fight |
| 3070 | 3070 | ***************************************************************************/ |
| 3071 | 3071 | |
| 3072 | static WRITE16_HANDLER( YM3812_control_port_0_lsb_w ) { if (ACCESSING_LSB) YM3812_control_port_0_w(machine, 0, data & 0xff); } | |
| 3073 | static WRITE16_HANDLER( YM3812_write_port_0_lsb_w ) { if (ACCESSING_LSB) YM3812_write_port_0_w(machine, 0, data & 0xff); } | |
| 3072 | static WRITE16_HANDLER( YM3812_control_port_0_lsb_w ) { if (ACCESSING_BITS_0_7) YM3812_control_port_0_w(machine, 0, data & 0xff); } | |
| 3073 | static WRITE16_HANDLER( YM3812_write_port_0_lsb_w ) { if (ACCESSING_BITS_0_7) YM3812_write_port_0_w(machine, 0, data & 0xff); } | |
| 3074 | 3074 | |
| 3075 | 3075 | static ADDRESS_MAP_START( crazyfgt_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 3076 | 3076 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| r2241 | r2242 | |
| 9278 | 9278 | static WRITE16_HANDLER( twineagl_200100_w ) |
| 9279 | 9279 | { |
| 9280 | 9280 | logerror("%04x: twineagl_200100_w %d = %02x\n",activecpu_get_pc(),offset,data); |
| 9281 | if (ACCESSING_ | |
| 9281 | if (ACCESSING_ | |
| 9282 | 9282 | xram[offset] = data & 0xff; |
| 9283 | 9283 | } |
| 9284 | 9284 |
| r2241 | r2242 | |
|---|---|---|
| 35 | 35 | */ |
| 36 | 36 | |
| 37 | 37 | #include "driver.h" |
| 38 | #include "deprecat.h" | |
| 39 | 38 | #include "machine/6522via.h" |
| 40 | 39 | #include "sound/ay8910.h" |
| 41 | 40 | #include "gameplan.h" |
| 42 | 41 | |
| 43 | 42 | static READ8_HANDLER( trvquest_question_r ) |
| 44 | 43 | { |
| 45 | gameplan_state *state = | |
| 44 | gameplan_state *state = machine->driver_data; | |
| 46 | 45 | |
| 47 | 46 | return memory_region(REGION_USER1)[*state->trvquest_question * 0x2000 + offset]; |
| 48 | 47 | } |
| r2241 | r2242 | |
|---|---|---|
| 101 | 101 | |
| 102 | 102 | static READ32_HANDLER( polygonet_eeprom_r ) |
| 103 | 103 | { |
| 104 | if (ACCESSING_ | |
| 104 | if (ACCESSING_BITS_0_15) | |
| 105 | 105 | { |
| 106 | 106 | return 0x0200 | (EEPROM_read_bit()<<8); |
| 107 | 107 | } |
| r2241 | r2242 | |
| 120 | 120 | |
| 121 | 121 | static WRITE32_HANDLER( polygonet_eeprom_w ) |
| 122 | 122 | { |
| 123 | if (ACCESSING_ | |
| 123 | if (ACCESSING_ | |
| 124 | 124 | { |
| 125 | 125 | EEPROM_write_bit((data & 0x01000000) ? ASSERT_LINE : CLEAR_LINE); |
| 126 | 126 | EEPROM_set_cs_line((data & 0x02000000) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
| 175 | 175 | |
| 176 | 176 | static WRITE32_HANDLER( sound_w ) |
| 177 | 177 | { |
| 178 | if (ACCESSING_ | |
| 178 | if (ACCESSING_ | |
| 179 | 179 | { |
| 180 | 180 | soundlatch_w(machine, 0, (data>>8)&0xff); |
| 181 | 181 | } |
| r2241 | r2242 | |
|---|---|---|
| 574 | 574 | UINT8 *ROM = (UINT8 *)memory_region(REGION_USER1); |
| 575 | 575 | |
| 576 | 576 | // ROM_DATA |
| 577 | if ((offset == 1) && | |
| 577 | if ((offset == 1) && ACCESSING_BITS_ | |
| 578 | 578 | { |
| 579 | 579 | UINT64 ret; |
| 580 | 580 | |
| r2241 | r2242 | |
| 584 | 584 | |
| 585 | 585 | return ret; |
| 586 | 586 | } |
| 587 | else if ((offset == 15) && | |
| 587 | else if ((offset == 15) && ACCESSING_BITS_32_ | |
| 588 | 588 | { |
| 589 | 589 | UINT64 ret; |
| 590 | 590 | |
| r2241 | r2242 | |
| 602 | 602 | |
| 603 | 603 | static WRITE64_HANDLER( naomi_rom_board_w ) |
| 604 | 604 | { |
| 605 | if ((offset == 1) && | |
| 605 | if ((offset == 1) && ACCESSING_BITS_32_ | |
| 606 | 606 | { |
| 607 | 607 | // DMA_OFFSETH |
| 608 | 608 | dma_offset &= 0xffff; |
| 609 | 609 | dma_offset |= (data >> 16) & 0x1fff0000; |
| 610 | 610 | } |
| 611 | else if ((offset == 2) && | |
| 611 | else if ((offset == 2) && ACCESSING_BITS_ | |
| 612 | 612 | { |
| 613 | 613 | // DMA_OFFSETL |
| 614 | 614 | dma_offset &= 0xffff0000; |
| 615 | 615 | dma_offset |= (data & 0xffff); |
| 616 | 616 | } |
| 617 | else if ((offset == 0) && | |
| 617 | else if ((offset == 0) && ACCESSING_BITS_ | |
| 618 | 618 | { |
| 619 | 619 | // ROM_OFFSETH |
| 620 | 620 | rom_offset &= 0xffff; |
| 621 | 621 | rom_offset |= (data & 0x1fff)<<16; |
| 622 | 622 | } |
| 623 | else if ((offset == 0) && | |
| 623 | else if ((offset == 0) && ACCESSING_BITS_32_ | |
| 624 | 624 | { |
| 625 | 625 | // ROM_OFFSETL |
| 626 | 626 | rom_offset &= 0xffff0000; |
| 627 | 627 | rom_offset |= (data & 0xffff); |
| 628 | 628 | } |
| 629 | else if ((offset == 15) && | |
| 629 | else if ((offset == 15) && ACCESSING_BITS_ | |
| 630 | 630 | { |
| 631 | 631 | // NAOMI_BOARDID_WRITE |
| 632 | 632 | x76f100_cs_write(0, (data >> 2) & 1 ); |
| r2241 | r2242 | |
| 634 | 634 | x76f100_scl_write(0, (data >> 1) & 1 ); |
| 635 | 635 | x76f100_sda_write(0, (data >> 0) & 1 ); |
| 636 | 636 | } |
| 637 | else if ((offset == 2) && | |
| 637 | else if ((offset == 2) && ACCESSING_BITS_32_63 | |
| 638 | 638 | { |
| 639 | 639 | // NAOMI_DMA_COUNT |
| 640 | 640 | dma_count = data >> 32; |
| r2241 | r2242 | |
|---|---|---|
| 101 | 101 | |
| 102 | 102 | static WRITE16_HANDLER( salamand_soundlatch_word_w ) |
| 103 | 103 | { |
| 104 | if(ACCESSING_ | |
| 104 | if(ACCESSING_ | |
| 105 | 105 | soundlatch_w(machine,offset,data & 0xff); |
| 106 | 106 | cpunum_set_input_line(machine, 1,0,HOLD_LINE); |
| 107 | 107 | } |
| r2241 | r2242 | |
| 141 | 141 | |
| 142 | 142 | static WRITE16_HANDLER( gx400_irq1_enable_word_w ) |
| 143 | 143 | { |
| 144 | if (ACCESSING_ | |
| 144 | if (ACCESSING_ | |
| 145 | 145 | irq1_on = data & 0x0001; |
| 146 | 146 | /* else |
| 147 | 147 | logerror("irq1en = %08x\n",data);*/ |
| r2241 | r2242 | |
| 149 | 149 | |
| 150 | 150 | static WRITE16_HANDLER( gx400_irq2_enable_word_w ) |
| 151 | 151 | { |
| 152 | if (ACCESSING_ | |
| 152 | if (ACCESSING_ | |
| 153 | 153 | irq2_on = data & 0x0001; |
| 154 | 154 | /* else |
| 155 | 155 | logerror("irq2en = %08x\n",data);*/ |
| r2241 | r2242 | |
| 157 | 157 | |
| 158 | 158 | static WRITE16_HANDLER( gx400_irq4_enable_word_w ) |
| 159 | 159 | { |
| 160 | if (ACCESSING_ | |
| 160 | if (ACCESSING_ | |
| 161 | 161 | irq4_on = data & 0x0100; |
| 162 | 162 | /* else |
| 163 | 163 | logerror("irq4en = %08x\n",data);*/ |
| r2241 | r2242 | |
| 172 | 172 | |
| 173 | 173 | static WRITE16_HANDLER( gx400_sharedram_word_w ) |
| 174 | 174 | { |
| 175 | if(ACCESSING_ | |
| 175 | if(ACCESSING_ | |
| 176 | 176 | gx400_shared_ram[offset] = data; |
| 177 | 177 | } |
| 178 | 178 | |
| r2241 | r2242 | |
| 192 | 192 | |
| 193 | 193 | static WRITE16_HANDLER( nemesis_irq_enable_word_w ) |
| 194 | 194 | { |
| 195 | if(ACCESSING_ | |
| 195 | if(ACCESSING_ | |
| 196 | 196 | irq_on = data & 0xff; |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | static WRITE16_HANDLER( konamigt_irq_enable_word_w ) |
| 200 | 200 | { |
| 201 | if(ACCESSING_ | |
| 201 | if(ACCESSING_ | |
| 202 | 202 | irq_on = data & 0xff; |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | static WRITE16_HANDLER( konamigt_irq2_enable_word_w ) |
| 206 | 206 | { |
| 207 | if(ACCESSING_ | |
| 207 | if(ACCESSING_ | |
| 208 | 208 | irq2_on = data & 0xff; |
| 209 | 209 | } |
| 210 | 210 | |
| r2241 | r2242 | |
| 238 | 238 | |
| 239 | 239 | static WRITE16_HANDLER( selected_ip_w ) |
| 240 | 240 | { |
| 241 | if (ACCESSING_ | |
| 241 | if (ACCESSING_ | |
| 242 | 242 | } |
| 243 | 243 | |
| 244 | 244 | static READ16_HANDLER( selected_ip_r ) |
| r2241 | r2242 | |
| 256 | 256 | |
| 257 | 257 | static WRITE16_HANDLER( nemesis_soundlatch_word_w ) |
| 258 | 258 | { |
| 259 | if(ACCESSING_ | |
| 259 | if(ACCESSING_ | |
| 260 | 260 | soundlatch_w(machine,offset,data & 0xff); |
| 261 | 261 | } |
| 262 | 262 | } |
| r2241 | r2242 | |
|---|---|---|
| 31 | 31 | |
| 32 | 32 | static WRITE16_HANDLER( magmax_sound_w ) |
| 33 | 33 | { |
| 34 | if (ACCESSING_ | |
| 34 | if (ACCESSING_ | |
| 35 | 35 | { |
| 36 | 36 | sound_latch = (data & 0xff) << 1; |
| 37 | 37 | cpunum_set_input_line(Machine, 1, 0, ASSERT_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 68 | 68 | |
| 69 | 69 | static WRITE16_HANDLER( magicstk_coin_eeprom_w ) |
| 70 | 70 | { |
| 71 | if (ACCESSING_ | |
| 71 | if (ACCESSING_ | |
| 72 | 72 | { |
| 73 | 73 | coin_counter_w(0,data & 0x20); |
| 74 | 74 |
| r2241 | r2242 | |
|---|---|---|
| 538 | 538 | { |
| 539 | 539 | mame_system_time systime; |
| 540 | 540 | |
| 541 | mame_get_base_datetime( | |
| 541 | mame_get_base_datetime(machine, &systime); | |
| 542 | 542 | |
| 543 | 543 | // if(LOG_SMPC) logerror ("8-bit SMPC Write to Offset %02x with Data %02x\n", offset, data); |
| 544 | 544 | smpc_ram[offset] = data; |
| r2241 | r2242 | |
| 630 | 630 | if(LOG_SMPC) logerror ("SMPC: Slave OFF\n"); |
| 631 | 631 | smpc_ram[0x5f]=0x03; |
| 632 | 632 | stv_enable_slave_sh2 = 0; |
| 633 | cpu_trigger( | |
| 633 | cpu_trigger(machine, 1000); | |
| 634 | 634 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, ASSERT_LINE); |
| 635 | 635 | break; |
| 636 | 636 | case 0x06: |
| r2241 | r2242 | |
| 769 | 769 | /* registers are all byte accesses, convert here */ |
| 770 | 770 | offset = offset << 2; // multiply offset by 4 |
| 771 | 771 | |
| 772 | if (!(mem_mask & 0xff000000)) { byte = 0; readdata = stv_SMPC_r8(offset+byte) << 24; } | |
| 773 | if (!(mem_mask & 0x00ff0000)) { byte = 1; readdata = stv_SMPC_r8(offset+byte) << 16; } | |
| 774 | if (!(mem_mask & 0x0000ff00)) { byte = 2; readdata = stv_SMPC_r8(offset+byte) << 8; } | |
| 775 | if (!(mem_mask & 0x000000ff)) { byte = 3; readdata = stv_SMPC_r8(offset+byte) << 0; } | |
| 772 | if (ACCESSING_BITS_24_31) { byte = 0; readdata = stv_SMPC_r8(offset+byte) << 24; } | |
| 773 | if (ACCESSING_BITS_16_23) { byte = 1; readdata = stv_SMPC_r8(offset+byte) << 16; } | |
| 774 | if (ACCESSING_BITS_8_15) { byte = 2; readdata = stv_SMPC_r8(offset+byte) << 8; } | |
| 775 | if (ACCESSING_BITS_0_7) { byte = 3; readdata = stv_SMPC_r8(offset+byte) << 0; } | |
| 776 | 776 | |
| 777 | 777 | return readdata; |
| 778 | 778 | } |
| r2241 | r2242 | |
| 785 | 785 | /* registers are all byte accesses, convert here so we can use the data more easily later */ |
| 786 | 786 | offset = offset << 2; // multiply offset by 4 |
| 787 | 787 | |
| 788 | if (!(mem_mask & 0xff000000)) { byte = 0; writedata = data >> 24; } | |
| 789 | if (!(mem_mask & 0x00ff0000)) { byte = 1; writedata = data >> 16; } | |
| 790 | if (!(mem_mask & 0x0000ff00)) { byte = 2; writedata = data >> 8; } | |
| 791 | if (!(mem_mask & 0x000000ff)) { byte = 3; writedata = data >> 0; } | |
| 788 | if (ACCESSING_BITS_24_31) { byte = 0; writedata = data >> 24; } | |
| 789 | if (ACCESSING_BITS_16_23) { byte = 1; writedata = data >> 16; } | |
| 790 | if (ACCESSING_BITS_8_15) { byte = 2; writedata = data >> 8; } | |
| 791 | if (ACCESSING_BITS_0_7) { byte = 3; writedata = data >> 0; } | |
| 792 | 792 | |
| 793 | 793 | writedata &= 0xff; |
| 794 | 794 | |
| 795 | 795 | offset += byte; |
| 796 | 796 | |
| 797 | stv_SMPC_w8( | |
| 797 | stv_SMPC_w8(machine, offset,writedata); | |
| 798 | 798 | } |
| 799 | 799 | |
| 800 | 800 | |
| r2241 | r2242 | |
| 942 | 942 | |
| 943 | 943 | static UINT8 port_sel,mux_data; |
| 944 | 944 | |
| 945 | #define HI_WORD_ACCESS (mem_mask & 0x00ff0000) == 0 | |
| 946 | #define LO_WORD_ACCESS (mem_mask & 0x000000ff) == 0 | |
| 947 | ||
| 948 | 945 | static READ32_HANDLER ( stv_io_r32 ) |
| 949 | 946 | { |
| 950 | 947 | static int i= -1; |
| r2241 | r2242 | |
| 974 | 971 | } |
| 975 | 972 | case 0x47: |
| 976 | 973 | { |
| 977 | if ( strcmp( | |
| 974 | if ( strcmp(machine->gamedrv->name,"critcrsh") == 0 ) | |
| 978 | 975 | { |
| 979 | 976 | int data1 = 0, data2 = 0; |
| 980 | 977 | |
| r2241 | r2242 | |
| 995 | 992 | return (readinputport(2) << 16) | (readinputport(3)); |
| 996 | 993 | } |
| 997 | 994 | case 1: |
| 998 | if ( strcmp( | |
| 995 | if ( strcmp(machine->gamedrv->name,"critcrsh") == 0 ) | |
| 999 | 996 | { |
| 1000 | 997 | return ((readinputport(4) << 16) & ((readinputport(2) & 1) ? 0xffef0000 : 0xffff0000)) | (ioga[1]); |
| 1001 | 998 | } |
| r2241 | r2242 | |
| 1051 | 1048 | switch(offset) |
| 1052 | 1049 | { |
| 1053 | 1050 | case 1: |
| 1054 | if( | |
| 1051 | if( | |
| 1055 | 1052 | { |
| 1056 | 1053 | /*Why does the BIOS tests these as ACTIVE HIGH?A program bug?*/ |
| 1057 | 1054 | ioga[1] = (data) & 0xff; |
| r2241 | r2242 | |
| 1065 | 1062 | } |
| 1066 | 1063 | break; |
| 1067 | 1064 | case 2: |
| 1068 | if( | |
| 1065 | if( | |
| 1069 | 1066 | { |
| 1070 | 1067 | ioga[2] = data >> 16; |
| 1071 | 1068 | mux_data = ioga[2]; |
| 1072 | 1069 | } |
| 1073 | else if( | |
| 1070 | else if( | |
| 1074 | 1071 | ioga[2] = data; |
| 1075 | 1072 | break; |
| 1076 | 1073 | case 3: |
| 1077 | if( | |
| 1074 | if( | |
| 1078 | 1075 | ioga[3] = data; |
| 1079 | 1076 | break; |
| 1080 | 1077 | case 4: |
| 1081 | if( | |
| 1078 | if( | |
| 1082 | 1079 | port_sel = (data & 0xffff0000) >> 16; |
| 1083 | 1080 | break; |
| 1084 | 1081 | case 5: |
| 1085 | if( | |
| 1082 | if( | |
| 1086 | 1083 | ioga[5] = data; |
| 1087 | 1084 | break; |
| 1088 | 1085 | } |
| r2241 | r2242 | |
| 1295 | 1292 | /*Sound IRQ*/ |
| 1296 | 1293 | if(/*(!(stv_scu[40] & 0x40)) &&*/ scsp_to_main_irq == 1) |
| 1297 | 1294 | { |
| 1298 | //cpunum_set_input_line_and_vector( | |
| 1295 | //cpunum_set_input_line_and_vector(machine, 0, 9, HOLD_LINE , 0x46); | |
| 1299 | 1296 | logerror("SCSP: Main CPU interrupt\n"); |
| 1300 | 1297 | #if 0 |
| 1301 | 1298 | if((scu_dst_0 & 0x7ffffff) != 0x05a00000) |
| 1302 | 1299 | { |
| 1303 | 1300 | if(!(stv_scu[40] & 0x1000)) |
| 1304 | 1301 | { |
| 1305 | cpunum_set_input_line_and_vector( | |
| 1302 | cpunum_set_input_line_and_vector(machine, 0, 3, HOLD_LINE, 0x4c); | |
| 1306 | 1303 | logerror("SCU: Illegal DMA interrupt\n"); |
| 1307 | 1304 | } |
| 1308 | 1305 | } |
| r2241 | r2242 | |
| 1356 | 1353 | /*Sound IRQ*/ |
| 1357 | 1354 | if(/*(!(stv_scu[40] & 0x40)) &&*/ scsp_to_main_irq == 1) |
| 1358 | 1355 | { |
| 1359 | //cpunum_set_input_line_and_vector( | |
| 1356 | //cpunum_set_input_line_and_vector(machine, 0, 9, HOLD_LINE , 0x46); | |
| 1360 | 1357 | logerror("SCSP: Main CPU interrupt\n"); |
| 1361 | 1358 | } |
| 1362 | 1359 | } |
| r2241 | r2242 | |
| 1406 | 1403 | /*Sound IRQ*/ |
| 1407 | 1404 | if(/*(!(stv_scu[40] & 0x40)) &&*/ scsp_to_main_irq == 1) |
| 1408 | 1405 | { |
| 1409 | //cpunum_set_input_line_and_vector( | |
| 1406 | //cpunum_set_input_line_and_vector(machine, 0, 9, HOLD_LINE , 0x46); | |
| 1410 | 1407 | logerror("SCSP: Main CPU interrupt\n"); |
| 1411 | 1408 | } |
| 1412 | 1409 | } |
| r2241 | r2242 | |
| 2052 | 2049 | { |
| 2053 | 2050 | logerror("cpu #%d (PC=%08X) MINIT write = %08x\n",cpu_getactivecpu(), activecpu_get_pc(),data); |
| 2054 | 2051 | cpu_boost_interleave(minit_boost_timeslice, ATTOTIME_IN_USEC(minit_boost)); |
| 2055 | cpu_trigger( | |
| 2052 | cpu_trigger(machine, 1000); | |
| 2056 | 2053 | cpunum_set_info_int(1, CPUINFO_INT_SH2_FRT_INPUT, PULSE_LINE); |
| 2057 | 2054 | } |
| 2058 | 2055 |
| r2241 | r2242 | |
|---|---|---|
| 627 | 627 | case 0x00: |
| 628 | 628 | COMBINE_DATA(&igs_input_sel2); |
| 629 | 629 | |
| 630 | if (ACCESSING_ | |
| 630 | if (ACCESSING_ | |
| 631 | 631 | { |
| 632 | 632 | coin_counter_w(0, data & 0x20); |
| 633 | 633 | // coin out data & 0x40 |
| r2241 | r2242 | |
| 640 | 640 | break; |
| 641 | 641 | |
| 642 | 642 | case 0x02: |
| 643 | if (ACCESSING_ | |
| 643 | if (ACCESSING_ | |
| 644 | 644 | { |
| 645 | 645 | chmplst2_pen_hi = data & 0x07; |
| 646 | 646 | |
| r2241 | r2242 | |
| 718 | 718 | { |
| 719 | 719 | |
| 720 | 720 | case 0x00: |
| 721 | if (ACCESSING_ | |
| 721 | if (ACCESSING_ | |
| 722 | 722 | coin_counter_w(0,data & 2); |
| 723 | 723 | |
| 724 | 724 | if (data & ~0x2) |
| r2241 | r2242 | |
| 781 | 781 | switch(igs_magic[0]) |
| 782 | 782 | { |
| 783 | 783 | case 0x02: |
| 784 | if (ACCESSING_ | |
| 784 | if (ACCESSING_ | |
| 785 | 785 | { |
| 786 | 786 | coin_counter_w(0,data & 0x01); |
| 787 | 787 | |
| r2241 | r2242 | |
| 838 | 838 | |
| 839 | 839 | static WRITE16_HANDLER( lhb_okibank_w ) |
| 840 | 840 | { |
| 841 | if (ACCESSING_ | |
| 841 | if (ACCESSING_ | |
| 842 | 842 | { |
| 843 | 843 | OKIM6295_set_bank_base(0, (data & 0x200) ? 0x40000 : 0); |
| 844 | 844 | } |
| r2241 | r2242 | |
| 853 | 853 | { |
| 854 | 854 | COMBINE_DATA(&igs_input_sel2); |
| 855 | 855 | |
| 856 | if (ACCESSING_ | |
| 856 | if (ACCESSING_ | |
| 857 | 857 | { |
| 858 | 858 | coin_counter_w(0, data & 0x20 ); |
| 859 | 859 | // coin out data & 0x40 |
| r2241 | r2242 | |
| 897 | 897 | switch(igs_magic[0]) |
| 898 | 898 | { |
| 899 | 899 | case 0x02: |
| 900 | if (ACCESSING_ | |
| 900 | if (ACCESSING_ | |
| 901 | 901 | { |
| 902 | 902 | coin_counter_w(0,data & 1); |
| 903 | 903 | coin_counter_w(1,data & 2); |
| r2241 | r2242 | |
| 964 | 964 | case 0x01: |
| 965 | 965 | COMBINE_DATA(&igs_input_sel2); |
| 966 | 966 | |
| 967 | if (ACCESSING_ | |
| 967 | if (ACCESSING_ | |
| 968 | 968 | { |
| 969 | 969 | coin_counter_w(0, data & 0x20); |
| 970 | 970 | // coin out data & 0x40 |
| r2241 | r2242 | |
| 1012 | 1012 | |
| 1013 | 1013 | static WRITE16_HANDLER( igs_YM3812_control_port_0_w ) |
| 1014 | 1014 | { |
| 1015 | if (ACCESSING_ | |
| 1015 | if (ACCESSING_ | |
| 1016 | 1016 | YM3812_control_port_0_w(machine,0,data); |
| 1017 | 1017 | } |
| 1018 | 1018 | |
| 1019 | 1019 | static WRITE16_HANDLER( igs_YM3812_write_port_0_w ) |
| 1020 | 1020 | { |
| 1021 | if (ACCESSING_ | |
| 1021 | if (ACCESSING_ | |
| 1022 | 1022 | YM3812_write_port_0_w(machine,0,data); |
| 1023 | 1023 | } |
| 1024 | 1024 | |
| r2241 | r2242 | |
| 1170 | 1170 | switch(offset) |
| 1171 | 1171 | { |
| 1172 | 1172 | case 1: |
| 1173 | if (ACCESSING_ | |
| 1173 | if (ACCESSING_ | |
| 1174 | 1174 | break; |
| 1175 | 1175 | case 2: |
| 1176 | if (ACCESSING_LSB) ics2115_w(machine,2,data); | |
| 1177 | if (ACCESSING_MSB) ics2115_w(machine,3,data>>8); | |
| 1176 | if (ACCESSING_BITS_0_7) ics2115_w(machine,2,data); | |
| 1177 | if (ACCESSING_BITS_8_15) ics2115_w(machine,3,data>>8); | |
| 1178 | 1178 | break; |
| 1179 | 1179 | } |
| 1180 | 1180 | } |
| r2241 | r2242 | |
| 1199 | 1199 | |
| 1200 | 1200 | static WRITE16_HANDLER( vbowl_pen_hi_w ) |
| 1201 | 1201 | { |
| 1202 | if (ACCESSING_ | |
| 1202 | if (ACCESSING_ | |
| 1203 | 1203 | { |
| 1204 | 1204 | chmplst2_pen_hi = data & 0x07; |
| 1205 | 1205 | } |
| r2241 | r2242 | |
|---|---|---|
| 29 | 29 | |
| 30 | 30 | static WRITE16_HANDLER( goal92_sound_command_w ) |
| 31 | 31 | { |
| 32 | if (ACCESSING_ | |
| 32 | if (ACCESSING_ | |
| 33 | 33 | { |
| 34 | 34 | soundlatch_w(machine, 0, (data >> 8) & 0xff); |
| 35 | 35 | cpunum_set_input_line(machine, 1,0,HOLD_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | Bishi Bashi Champ Mini Game Senshuken | |
| 4 | (c) 1996 Konami | |
| 3 | Bishi Bashi Champ Mini Game Senshuken (c) 1996 Konami | |
| 4 | Super Bishi Bashi Championship (c) 1998 Konami | |
| 5 | 5 | |
| 6 | 6 | Driver by R. Belmont |
| 7 | 7 | |
| 8 | 8 | WORKING: ram/rom test passes, IRQs, sound/music, inputs, colors. |
| 9 | 9 | TODO: "bishi" needs a ROM redumped, K056832 needs per-tile priority |
| 10 | 10 | |
| 11 | ||
| 12 | ***************************************************************************** | |
| 13 | ||
| 14 | ||
| 15 | Super Bishi Bashi Champ (Korean version) | |
| 16 | Konami, 1998 | |
| 17 | ||
| 18 | PCB Layout ROM | |
| 19 | ---------- Daughterboard (on top) | |
| 20 | || | |
| 21 | GS562 PWB(A)400625A \/ | |
| 22 | |----------------------|-------------------| | |
| 23 | | VOL SM5875 675KAA01|24MHz MB3790 CN4 | | |
| 24 | |16.9344MHz | | | |
| 25 | | YMZ280B 675KAA02| 6264 | | |
| 26 | | 056232 | CN3| | |
| 27 | | 675KAA03| 6264 68000 | | |
| 28 | | | | | |
| 29 | | 675KAA04| 62256 | | |
| 30 | | PAL | | | |
| 31 | |CN1 DSW1(8) | 058143 62256 | | |
| 32 | | 056879 DSW2(8) |-------------------- | |
| 33 | | 62256 | | |
| 34 | | 675KAA07 | | |
| 35 | | 056832 | | |
| 36 | | 675KAA09 | | |
| 37 | | 6264 | | |
| 38 | | 675KAA08 | | |
| 39 | | 6264 055555 | | |
| 40 | | 056766 675KAA10 | | |
| 41 | |056820 6264 | | |
| 42 | | | | |
| 43 | |------------------------------------------| | |
| 44 | Notes: | |
| 45 | 68000 - clock 12.000MHz (24/2) | |
| 46 | YMZ280 - clock 16.9344MHz | |
| 47 | CN3/4 - connector for ROM daugterboard | |
| 48 | CN1 - large flat cable connector for power/controls | |
| 49 | 675KAA01 to 04 - 27C040 EPROMs | |
| 50 | 675KAA07 to 10 - 27C240 EPROMs | |
| 51 | ||
| 52 | Konami Custom ICs - | |
| 53 | 056143 (QFP160) | |
| 54 | 056832 (QFP144) | |
| 55 | 055555 (QFP240) | |
| 56 | 056879 (QFP144) | |
| 57 | 056232 (ceramic SIL14) | |
| 58 | 056820 (ceramic SIL13) | |
| 59 | ||
| 60 | ||
| 61 | Daughterboard | |
| 62 | ------------- | |
| 63 | PWB 402005(B) ROM BOARD | |
| 64 | |-------------------| | |
| 65 | |CN7 4AK16 CN8 | | |
| 66 | | PAL | | |
| 67 | | | | |
| 68 | |CN5 4AK16 | | |
| 69 | | | | |
| 70 | | 675KAA05 | | |
| 71 | | 4AK16 | | |
| 72 | |CN6 675KAA06 | | |
| 73 | |-------------------| | |
| 74 | Notes: | |
| 75 | CN5/6 - 15 pin connector for lights maybe? | |
| 76 | CN7/8 - 8 pin connector for power | |
| 77 | 4AK16 - power amp IC tied to CN5/6 | |
| 78 | 675* - 27C240 EPROMs | |
| 79 | ||
| 11 | 80 | ***************************************************************************/ |
| 12 | 81 | |
| 82 | #define CPU_CLOCK (XTAL_24MHz / 2) /* 68000 clock */ | |
| 83 | #define SOUND_CLOCK XTAL_16_9344MHz /* YMZ280 clock */ | |
| 84 | ||
| 13 | 85 | #include "driver.h" |
| 14 | 86 | #include "deprecat.h" |
| 15 | 87 | #include "video/konamiic.h" |
| r2241 | r2242 | |
| 266 | 338 | static MACHINE_DRIVER_START( bishi ) |
| 267 | 339 | |
| 268 | 340 | /* basic machine hardware */ |
| 269 | MDRV_CPU_ADD_TAG("main", M68000, 1 | |
| 341 | MDRV_CPU_ADD_TAG("main", M68000, CPU_CLOCK) /* 12MHz (24MHz OSC / 2 ) */ | |
| 270 | 342 | MDRV_CPU_PROGRAM_MAP(readmem,writemem) |
| 271 | 343 | MDRV_CPU_VBLANK_INT_HACK(bishi_interrupt, 2) |
| 272 | 344 | |
| r2241 | r2242 | |
| 291 | 363 | /* sound hardware */ |
| 292 | 364 | MDRV_SPEAKER_STANDARD_STEREO("left", "right") |
| 293 | 365 | |
| 294 | MDRV_SOUND_ADD(YMZ280B, 169344 | |
| 366 | MDRV_SOUND_ADD(YMZ280B, SOUND_CLOCK) /* 16.9344MHz */ | |
| 295 | 367 | MDRV_SOUND_CONFIG(ymz280b_intf) |
| 296 | 368 | MDRV_SOUND_ROUTE(0, "left", 1.0) |
| 297 | 369 | MDRV_SOUND_ROUTE(1, "right", 1.0) |
| r2241 | r2242 | |
| 302 | 374 | |
| 303 | 375 | ROM_START( bishi ) |
| 304 | 376 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) |
| 305 | ROM_LOAD16_WORD_SWAP( "575jaa05.12f", 0x000000, 0x80000, CRC(7d354567) SHA1(7fc11585693c91c0ef7a8e00df4f2f01b356210f) ) | |
| 306 | ROM_LOAD16_WORD_SWAP( "575jaa06.15f", 0x080000, 0x80000, CRC(9b2f7fbb) SHA1(26c828085c44a9c4d4e713e8fcc0bc8fc973d107) ) | |
| 377 | ROM_LOAD16_WORD_SWAP( "575jaa05.12e", 0x000000, 0x80000, CRC(7d354567) SHA1(7fc11585693c91c0ef7a8e00df4f2f01b356210f) ) | |
| 378 | ROM_LOAD16_WORD_SWAP( "575jaa06.15e", 0x080000, 0x80000, CRC(9b2f7fbb) SHA1(26c828085c44a9c4d4e713e8fcc0bc8fc973d107) ) | |
| 307 | 379 | |
| 308 | 380 | ROM_REGION( 0x200000, REGION_GFX1, 0 ) |
| 309 | 381 | ROM_LOAD16_BYTE( "575jaa07.14n", 0x000000, 0x080000, CRC(37bbf387) SHA1(dcf7b151b865d251f3122611b6339dd84eb1f990) ) |
| r2241 | r2242 | |
| 318 | 390 | ROM_LOAD( "575jaa01.2f", 0x000000, 0x080000, CRC(e1e9f7b2) SHA1(4da93e384a6018d829cbb02cfde98fc3662c5267) ) |
| 319 | 391 | ROM_LOAD( "575jaa02.4f", 0x080000, 0x080000, CRC(d228eb06) SHA1(075bd48242b5f590bfbfc45bc430578375fad70f) ) |
| 320 | 392 | ROM_LOAD( "575jaa03.6f", 0x100000, 0x080000, CRC(9ec0321f) SHA1(03999dc415f556d0cd58e6358f826b97e85b477b) ) |
| 321 | ROM_LOAD( "575jaa04. | |
| 393 | ROM_LOAD( "575jaa04.8f", 0x180000, 0x080000, CRC(0120967f) SHA1(14cc2b9269f46859d1de418c8d4c76a6bdb09d16) ) | |
| 322 | 394 | ROM_END |
| 323 | 395 | |
| 324 | 396 | ROM_START( sbishi ) |
| 325 | 397 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) |
| 326 | ROM_LOAD16_WORD_SWAP( "675jaa05.12f", 0x000000, 0x80000, CRC(28a09c01) SHA1(627f6c9b9e88434ff3198c778ae5c57d9cda82c5) ) | |
| 327 | ROM_LOAD16_WORD_SWAP( "675jaa06.15f", 0x080000, 0x80000, CRC(e4998b33) SHA1(3012f7661542b38b1a113c5c10e2729c6a37e709) ) | |
| 398 | ROM_LOAD16_WORD_SWAP( "675jaa05.12e", 0x000000, 0x80000, CRC(28a09c01) SHA1(627f6c9b9e88434ff3198c778ae5c57d9cda82c5) ) | |
| 399 | ROM_LOAD16_WORD_SWAP( "675jaa06.15e", 0x080000, 0x80000, CRC(e4998b33) SHA1(3012f7661542b38b1a113c5c10e2729c6a37e709) ) | |
| 328 | 400 | |
| 329 | 401 | ROM_REGION( 0x200000, REGION_GFX1, 0 ) |
| 330 | 402 | ROM_LOAD16_BYTE( "675jaa07.14n", 0x000000, 0x080000, CRC(6fe7c658) SHA1(a786a417053a5fc62f967bdd564e8d3bdc89f958) ) |
| r2241 | r2242 | |
| 339 | 411 | ROM_LOAD( "675jaa01.2f", 0x000000, 0x080000, CRC(67910b15) SHA1(6566e2344ebe9d61c584a1ab9ecbc8e7dd0a9a5b) ) |
| 340 | 412 | ROM_LOAD( "675jaa02.4f", 0x080000, 0x080000, CRC(3313a7ae) SHA1(a49df87446a5b1bbf77fdf13a298ed486d7d7476) ) |
| 341 | 413 | ROM_LOAD( "675jaa03.6f", 0x100000, 0x080000, CRC(ec977e6a) SHA1(9beb13e716d1694a64ce787fa3db4ba986a07d51) ) |
| 342 | ROM_LOAD( "675jaa04. | |
| 414 | ROM_LOAD( "675jaa04.8f", 0x180000, 0x080000, CRC(1d1de34e) SHA1(1671216545cc0842cf8c128eaa0c612e6d91875c) ) | |
| 343 | 415 | ROM_END |
| 344 | 416 | |
| 417 | ROM_START( sbishik ) | |
| 418 | ROM_REGION( 0x100000, REGION_CPU1, 0 ) | |
| 419 | ROM_LOAD16_WORD_SWAP( "675kaa05.12e", 0x000000, 0x80000, CRC(23600e1d) SHA1(b3224c84e41e3077425a60232bb91775107f37a8) ) | |
| 420 | ROM_LOAD16_WORD_SWAP( "675kaa06.15e", 0x080000, 0x80000, CRC(bd1091f5) SHA1(29872abc49fe8209d0f414ca40a34fc494ff9b96) ) | |
| 345 | 421 | |
| 346 | GAME( 1996, bishi, 0, bishi, bishi, 0, ROT0, "Konami", "Bishi Bashi Championship Mini Game Senshuken (ver JAA)", GAME_IMPERFECT_GRAPHICS) | |
| 347 | GAME( 1998, sbishi, 0, bishi, bishi, 0, ROT0, "Konami", "Super Bishi Bashi Championship (ver JAA)", GAME_IMPERFECT_GRAPHICS) | |
| 422 | ROM_REGION( 0x200000, REGION_GFX1, 0 ) | |
| 423 | ROM_LOAD16_BYTE( "675kaa07.14n", 0x000000, 0x080000, CRC(1177c1f8) SHA1(42c6f3c3a6bd0adb7d927386fd99f1497e5df30c) ) | |
| 424 | ROM_LOAD16_BYTE( "675kaa08.17n", 0x000001, 0x080000, CRC(7117e9cd) SHA1(5a9b4b7427edcc10725d5936869927874fef6463) ) | |
| 425 | ROM_LOAD16_BYTE( "675kaa09.19n", 0x100000, 0x080000, CRC(8d49c765) SHA1(7921f8f3671fbbc3d5ea529234268a1e23ea622c) ) | |
| 426 | ROM_LOAD16_BYTE( "675kaa10.22n", 0x100001, 0x080000, CRC(c16acf32) SHA1(df3eeb5ab3bab8e707eaa79ffc500e1dc2332a82) ) | |
| 427 | ||
| 428 | // dummy region (game has no sprites, but we want to use the GX mixer) | |
| 429 | ROM_REGION( 0x80000, REGION_GFX2, ROMREGION_ERASE00 ) | |
| 430 | ||
| 431 | ROM_REGION( 0x200000, REGION_SOUND1, 0 ) | |
| 432 | ROM_LOAD( "675kaa01.2f", 0x000000, 0x080000, CRC(73ac6ae6) SHA1(37e4722647a13275c5f51d2bfa50df3e12ea1ebf) ) | |
| 433 | ROM_LOAD( "675kaa02.4f", 0x080000, 0x080000, CRC(4c341e7c) SHA1(b944ea59d94f9ea5cea8ed8ad68da2a52c4bbfd7) ) | |
| 434 | ROM_LOAD( "675kaa03.6f", 0x100000, 0x080000, CRC(83f91beb) SHA1(3af95f503f26fc88e75c786a9fef8a333c21d1d6) ) | |
| 435 | ROM_LOAD( "675kaa04.8f", 0x180000, 0x080000, CRC(ebcbd813) SHA1(d67540d0ea303f09866f4a766e2d5162f05cd4ac) ) | |
| 436 | ROM_END | |
| 437 | ||
| 438 | ||
| 439 | GAME( 1996, bishi, 0, bishi, bishi, 0, ROT0, "Konami", "Bishi Bashi Championship Mini Game Senshuken (ver JAA)", GAME_IMPERFECT_GRAPHICS) | |
| 440 | GAME( 1998, sbishi, 0, bishi, bishi, 0, ROT0, "Konami", "Super Bishi Bashi Championship (ver JAA)", GAME_IMPERFECT_GRAPHICS) | |
| 441 | GAME( 1998, sbishik, sbishi, bishi, bishi, 0, ROT0, "Konami", "Super Bishi Bashi Championship (ver KAA)", GAME_IMPERFECT_GRAPHICS) |
| r2241 | r2242 | |
|---|---|---|
| 57 | 57 | entering the initials (code at 0x004a1e, 0x014bb0 and 0x014c84) |
| 58 | 58 | |
| 59 | 59 | |
| 60 | 2) ' | |
| 60 | 2) 'bloodbra' | |
| 61 | 61 | |
| 62 | - When "Starting Coin" Dip Switch is set to "x2", you need 2 coins to start | |
| 63 | a game (but 1 coin to join), then 1 coin to continue. | |
| 64 | However, it you insert 2 coins, and press START2, you start a 2 players game. | |
| 65 | Also note that when "Starting Coin" Dip Switch is set to "x2", SERVICE1 | |
| 66 | adds 2 credits instead of 1. | |
| 67 | ||
| 68 | - Bits 6 and 7 of DSW are told to be unused, but they are tested before | |
| 69 | entering the initials (code at 0x004a46, 0x014bd8 and 0x014cac) | |
| 70 | ||
| 71 | ||
| 72 | 3) 'weststry' | |
| 73 | ||
| 62 | 74 | - This bootleg has been realised by Datsu in 1991. This "company" also |
| 63 | 75 | bootlegged "Toki" (another TAD game) in 1990. |
| 64 | 76 | |
| r2241 | r2242 | |
| 72 | 84 | - Bit 7 of DSW is also "merged" with bit 6 (code at 0x0002f6 and 0x000326). |
| 73 | 85 | |
| 74 | 86 | |
| 75 | ||
| 87 | 4) 'skysmash' | |
| 76 | 88 | |
| 77 | 89 | - This game only has 2 buttons : bits 6 and 14 of players inputs are NEVER tested ! |
| 78 | 90 | |
| r2241 | r2242 | |
| 90 | 102 | Dip Switch as in 'toki' (same manufacturer and similar hardware). |
| 91 | 103 | |
| 92 | 104 | |
| 105 | DIP locations verified for: | |
| 106 | - bloodbro (manual) | |
| 107 | ||
| 93 | 108 | **************************************************************************/ |
| 94 | 109 | |
| 95 | 110 | #include "driver.h" |
| r2241 | r2242 | |
| 131 | 146 | AM_RANGE(0x0c0080, 0x0c0081) AM_WRITENOP // ??? IRQ Ack VBL? |
| 132 | 147 | AM_RANGE(0x0c00c0, 0x0c00c1) AM_WRITENOP // ??? watchdog? |
| 133 | 148 | AM_RANGE(0x0c0100, 0x0c0101) AM_WRITENOP // ??? written once |
| 134 | AM_RANGE(0x0e0000, 0x0e0001) AM_READ(input_port_1_word_r) | |
| 135 | AM_RANGE(0x0e0002, 0x0e0003) AM_READ(input_port_2_word_r) | |
| 136 | AM_RANGE(0x0e0004, 0x0e0005) AM_READ(input_port_3_word_r) | |
| 149 | AM_RANGE(0x0e0000, 0x0e0001) AM_READ_PORT("DSW") | |
| 150 | AM_RANGE(0x0e0002, 0x0e0003) AM_READ_PORT("IN0") | |
| 151 | AM_RANGE(0x0e0004, 0x0e0005) AM_READ_PORT("IN1") | |
| 137 | 152 | ADDRESS_MAP_END |
| 138 | 153 | |
| 139 | 154 | static ADDRESS_MAP_START( weststry_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| r2241 | r2242 | |
| 146 | 161 | AM_RANGE(0x08d400, 0x08d7ff) AM_RAM |
| 147 | 162 | AM_RANGE(0x08d800, 0x08dfff) AM_RAM AM_WRITE(bloodbro_txvideoram_w) AM_BASE(&bloodbro_txvideoram) |
| 148 | 163 | AM_RANGE(0x08e000, 0x08ffff) AM_RAM |
| 149 | AM_RANGE(0x0c1000, 0x0c1001) AM_READ(input_port_0_word_r) | |
| 150 | AM_RANGE(0x0c1002, 0x0c1003) AM_READ(input_port_1_word_r) | |
| 151 | AM_RANGE(0x0c1004, 0x0c1005) AM_READ(input_port_2_word_r) | |
| 164 | AM_RANGE(0x0c1000, 0x0c1001) AM_READ_PORT("DSW") | |
| 165 | AM_RANGE(0x0c1002, 0x0c1003) AM_READ_PORT("IN0") | |
| 166 | AM_RANGE(0x0c1004, 0x0c1005) AM_READ_PORT("IN1") | |
| 152 | 167 | AM_RANGE(0x0c1000, 0x0c17ff) AM_RAM |
| 153 | 168 | AM_RANGE(0x128000, 0x1287ff) AM_RAM AM_WRITE(paletteram16_xxxxBBBBGGGGRRRR_word_w) AM_BASE(&paletteram16) |
| 154 | 169 | AM_RANGE(0x120000, 0x128fff) AM_RAM |
| r2241 | r2242 | |
| 156 | 171 | |
| 157 | 172 | /* Input Ports */ |
| 158 | 173 | |
| 159 | static INPUT_PORTS_START( bloodbro ) | |
| 160 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ | |
| 174 | #define BLOODBRO_COINAGE \ | |
| 175 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Mode" ) PORT_DIPLOCATION("SW1:1") \ | |
| 176 | PORT_DIPSETTING( 0x0001, "Mode 1" ) \ | |
| 177 | PORT_DIPSETTING( 0x0000, "Mode 2" ) \ | |
| 178 | /* Coin Mode 1 */ \ | |
| 179 | PORT_DIPNAME( 0x001e, 0x001e, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:2,3,4,5") PORT_CONDITION("DSW",0x0001,PORTCOND_EQUALS,0x0001) \ | |
| 180 | PORT_DIPSETTING( 0x0014, DEF_STR( 6C_1C ) ) \ | |
| 181 | PORT_DIPSETTING( 0x0016, DEF_STR( 5C_1C ) ) \ | |
| 182 | PORT_DIPSETTING( 0x0018, DEF_STR( 4C_1C ) ) \ | |
| 183 | PORT_DIPSETTING( 0x001a, DEF_STR( 3C_1C ) ) \ | |
| 184 | PORT_DIPSETTING( 0x0002, DEF_STR( 8C_3C ) ) \ | |
| 185 | PORT_DIPSETTING( 0x001c, DEF_STR( 2C_1C ) ) \ | |
| 186 | PORT_DIPSETTING( 0x0004, DEF_STR( 5C_3C ) ) \ | |
| 187 | PORT_DIPSETTING( 0x0006, DEF_STR( 3C_2C ) ) \ | |
| 188 | PORT_DIPSETTING( 0x001e, DEF_STR( 1C_1C ) ) \ | |
| 189 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_3C ) ) \ | |
| 190 | PORT_DIPSETTING( 0x0012, DEF_STR( 1C_2C ) ) \ | |
| 191 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) \ | |
| 192 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_4C ) ) \ | |
| 193 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_5C ) ) \ | |
| 194 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) \ | |
| 195 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) \ | |
| 196 | /* Coin Mode 2 */ \ | |
| 197 | PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:2,3") PORT_CONDITION("DSW",0x0001,PORTCOND_EQUALS,0x0000) \ | |
| 198 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) \ | |
| 199 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) \ | |
| 200 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) \ | |
| 201 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_1C ) ) \ | |
| 202 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:4,5") PORT_CONDITION("DSW",0x0001,PORTCOND_EQUALS,0x0000) \ | |
| 203 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) \ | |
| 204 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) \ | |
| 205 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) \ | |
| 206 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) \ | |
| 207 | PORT_DIPNAME( 0x0020, 0x0020, "Starting Coin" ) PORT_DIPLOCATION("SW1:6") \ | |
| 208 | PORT_DIPSETTING( 0x0020, DEF_STR( Normal ) ) \ | |
| 209 | PORT_DIPSETTING( 0x0000, "x2" ) | |
| 161 | 210 | |
| 162 | PORT_START | |
| 163 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Mode" ) | |
| 164 | PORT_DIPSETTING( 0x0001, "Mode 1" ) | |
| 165 | PORT_DIPSETTING( 0x0000, "Mode 2" ) | |
| 166 | /* Coin Mode 1 */ | |
| 167 | PORT_DIPNAME( 0x001e, 0x001e, DEF_STR( Coinage ) ) | |
| 168 | PORT_DIPSETTING( 0x0014, DEF_STR( 6C_1C ) ) | |
| 169 | PORT_DIPSETTING( 0x0016, DEF_STR( 5C_1C ) ) | |
| 170 | PORT_DIPSETTING( 0x0018, DEF_STR( 4C_1C ) ) | |
| 171 | PORT_DIPSETTING( 0x001a, DEF_STR( 3C_1C ) ) | |
| 172 | PORT_DIPSETTING( 0x0002, DEF_STR( 8C_3C ) ) | |
| 173 | PORT_DIPSETTING( 0x001c, DEF_STR( 2C_1C ) ) | |
| 174 | PORT_DIPSETTING( 0x0004, DEF_STR( 5C_3C ) ) | |
| 175 | PORT_DIPSETTING( 0x0006, DEF_STR( 3C_2C ) ) | |
| 176 | PORT_DIPSETTING( 0x001e, DEF_STR( 1C_1C ) ) | |
| 177 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_3C ) ) | |
| 178 | PORT_DIPSETTING( 0x0012, DEF_STR( 1C_2C ) ) | |
| 179 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 180 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_4C ) ) | |
| 181 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_5C ) ) | |
| 182 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) | |
| 183 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 184 | /* Coin Mode 2 | |
| 185 | PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Coin_A ) ) | |
| 186 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 187 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) | |
| 188 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) | |
| 189 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_1C ) ) | |
| 190 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Coin_B ) ) | |
| 191 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) | |
| 192 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 193 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) | |
| 194 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) | |
| 211 | static INPUT_PORTS_START( weststry ) | |
| 212 | PORT_START_TAG("DSW") | |
| 213 | BLOODBRO_COINAGE | |
| 214 | /* SW1:7,8 is listed as "ROM change option", "optional" | |
| 215 | A B C D | |
| 216 | Coin Up 0 1 1 1 | |
| 217 | Screen Complete 0 0 0 1 | |
| 218 | Stage Complete 1 1 3 1 | |
| 219 | Top 10 1 3 3 3 | |
| 220 | High Score 1 4 5 4 | |
| 221 | Complete Game 5 5 10 15 | |
| 222 | ||
| 223 | D limits 8 tickets/coin except completion | |
| 224 | ||
| 225 | The sets handled in MAME don't seem to have this "feature" | |
| 226 | PORT_DIPNAME( 0x00c0, 0x00c0, "Ticket Dispenser Payout Mode" ) PORT_DIPLOCATION("SW1:7,8") | |
| 227 | PORT_DIPSETTING( 0x00c0, "A" ) | |
| 228 | PORT_DIPSETTING( 0x0080, "B" ) | |
| 229 | PORT_DIPSETTING( 0x0040, "C" ) | |
| 230 | PORT_DIPSETTING( 0x0000, "D" ) | |
| 195 | 231 | */ |
| 196 | PORT_DIPNAME( 0x0020, 0x0020, "Starting Coin" ) | |
| 197 | PORT_DIPSETTING( 0x0020, DEF_STR( Normal ) ) | |
| 198 | PORT_DIPSETTING( 0x0000, "x2" ) | |
| 199 | PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 200 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 232 | PORT_DIPUNKNOWN_DIPLOC( 0x0040, IP_ACTIVE_LOW, "SW1:7" ) | |
| 233 | PORT_DIPUNKNOWN_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) | |
| 234 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 201 | 235 | PORT_DIPSETTING( 0x0000, "1" ) |
| 202 | 236 | PORT_DIPSETTING( 0x0200, "2" ) |
| 203 | 237 | PORT_DIPSETTING( 0x0300, "3" ) |
| 204 | 238 | PORT_DIPSETTING( 0x0100, "5" ) |
| 205 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Bonus_Life ) ) | |
| 239 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 206 | 240 | PORT_DIPSETTING( 0x0c00, "300K 500K+" ) |
| 207 | 241 | PORT_DIPSETTING( 0x0800, "500K+" ) |
| 208 | 242 | PORT_DIPSETTING( 0x0400, "500K" ) |
| 209 | 243 | PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) |
| 210 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) | |
| 244 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 211 | 245 | PORT_DIPSETTING( 0x2000, DEF_STR( Easy ) ) |
| 212 | 246 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) |
| 213 | 247 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) |
| 214 | 248 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) |
| 215 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Allow_Continue ) ) | |
| 249 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7") | |
| 216 | 250 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 217 | 251 | PORT_DIPSETTING( 0x4000, DEF_STR( Yes ) ) |
| 218 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Demo_Sounds ) ) | |
| 252 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:8") | |
| 219 | 253 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 220 | 254 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) |
| 221 | 255 | |
| 222 | PORT_START | |
| 256 | PORT_START_TAG("IN0") | |
| 223 | 257 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 224 | 258 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 225 | 259 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r2241 | r2242 | |
| 237 | 271 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) // "Dynamite" |
| 238 | 272 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* tested - check code at 0x0005fe - VBLANK ? */ |
| 239 | 273 | |
| 240 | PORT_START | |
| 274 | PORT_START_TAG("IN1") | |
| 275 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 276 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 277 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 278 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) | |
| 279 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) | |
| 280 | PORT_BIT( 0x00e0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 281 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 282 | INPUT_PORTS_END | |
| 283 | ||
| 284 | static INPUT_PORTS_START( bloodbro ) | |
| 285 | PORT_INCLUDE( weststry ) | |
| 286 | ||
| 287 | PORT_MODIFY("IN1") | |
| 241 | 288 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 242 | 289 | PORT_BIT( 0x000e, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 243 | 290 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) |
| r2241 | r2242 | |
| 246 | 293 | PORT_BIT( 0x0e00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 247 | 294 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 248 | 295 | PORT_BIT( 0xe000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 249 | INPUT_PORTS_END | |
| 250 | 296 | |
| 251 | static INPUT_PORTS_START( weststry ) | |
| 252 | PORT_START | |
| 253 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Mode" ) | |
| 254 | PORT_DIPSETTING( 0x0001, "Mode 1" ) | |
| 255 | PORT_DIPSETTING( 0x0000, "Mode 2" ) | |
| 256 | /* Coin Mode 1 */ | |
| 257 | PORT_DIPNAME( 0x001e, 0x001e, DEF_STR( Coinage ) ) | |
| 258 | PORT_DIPSETTING( 0x0014, DEF_STR( 6C_1C ) ) | |
| 259 | PORT_DIPSETTING( 0x0016, DEF_STR( 5C_1C ) ) | |
| 260 | PORT_DIPSETTING( 0x0018, DEF_STR( 4C_1C ) ) | |
| 261 | PORT_DIPSETTING( 0x001a, DEF_STR( 3C_1C ) ) | |
| 262 | PORT_DIPSETTING( 0x0002, DEF_STR( 8C_3C ) ) | |
| 263 | PORT_DIPSETTING( 0x001c, DEF_STR( 2C_1C ) ) | |
| 264 | PORT_DIPSETTING( 0x0004, DEF_STR( 5C_3C ) ) | |
| 265 | PORT_DIPSETTING( 0x0006, DEF_STR( 3C_2C ) ) | |
| 266 | PORT_DIPSETTING( 0x001e, DEF_STR( 1C_1C ) ) | |
| 267 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_3C ) ) | |
| 268 | PORT_DIPSETTING( 0x0012, DEF_STR( 1C_2C ) ) | |
| 269 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 270 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_4C ) ) | |
| 271 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_5C ) ) | |
| 272 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) | |
| 273 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 274 | /* Coin Mode 2 | |
| 275 | PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Coin_A ) ) | |
| 276 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 277 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) | |
| 278 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) | |
| 279 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_1C ) ) | |
| 280 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Coin_B ) ) | |
| 281 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) | |
| 282 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 283 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) | |
| 284 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) | |
| 285 | */ | |
| 286 | PORT_DIPNAME( 0x0020, 0x0020, "Starting Coin" ) | |
| 287 | PORT_DIPSETTING( 0x0020, DEF_STR( Normal ) ) | |
| 288 | PORT_DIPSETTING( 0x0000, "x2" ) | |
| 289 | PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 290 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 291 | PORT_DIPSETTING( 0x0000, "1" ) | |
| 292 | PORT_DIPSETTING( 0x0200, "2" ) | |
| 293 | PORT_DIPSETTING( 0x0300, "3" ) | |
| 294 | PORT_DIPSETTING( 0x0100, "5" ) | |
| 295 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Bonus_Life ) ) | |
| 296 | PORT_DIPSETTING( 0x0c00, "300K 500K+" ) | |
| 297 | PORT_DIPSETTING( 0x0800, "500K+" ) | |
| 298 | PORT_DIPSETTING( 0x0400, "500K" ) | |
| 299 | PORT_DIPSETTING( 0x0000, DEF_STR( None ) ) | |
| 300 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) | |
| 301 | PORT_DIPSETTING( 0x2000, DEF_STR( Easy ) ) | |
| 302 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) | |
| 303 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) | |
| 304 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) | |
| 305 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Allow_Continue ) ) | |
| 306 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 307 | PORT_DIPSETTING( 0x4000, DEF_STR( Yes ) ) | |
| 308 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Demo_Sounds ) ) | |
| 309 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 310 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) | |
| 311 | ||
| 312 | PORT_START | |
| 313 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 314 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 315 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 316 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 317 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) // "Fire" | |
| 318 | PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) // "Roll" | |
| 319 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) // "Dynamite" | |
| 320 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 321 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 322 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 323 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 324 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 325 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) // "Fire" | |
| 326 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) // "Roll" | |
| 327 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2) // "Dynamite" | |
| 328 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 329 | ||
| 330 | PORT_START | |
| 331 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 332 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 333 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 334 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START1 ) | |
| 335 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) | |
| 336 | PORT_BIT( 0x00e0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 337 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 297 | SEIBU_COIN_INPUTS /* coin inputs read through sound cpu */ | |
| 338 | 298 | INPUT_PORTS_END |
| 339 | 299 | |
| 340 | 300 | static INPUT_PORTS_START( skysmash ) |
| 341 | SEIBU_COIN_INPUTS /* Must be port 0: coin inputs read through sound cpu */ | |
| 342 | ||
| 343 | PORT_START | |
| 344 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Mode" ) | |
| 345 | PORT_DIPSETTING( 0x0001, "Mode 1" ) | |
| 346 | PORT_DIPSETTING( 0x0000, "Mode 2" ) | |
| 347 | /* Coin Mode 1 */ | |
| 348 | PORT_DIPNAME( 0x001e, 0x001e, DEF_STR( Coinage ) ) | |
| 349 | PORT_DIPSETTING( 0x0014, DEF_STR( 6C_1C ) ) | |
| 350 | PORT_DIPSETTING( 0x0016, DEF_STR( 5C_1C ) ) | |
| 351 | PORT_DIPSETTING( 0x0018, DEF_STR( 4C_1C ) ) | |
| 352 | PORT_DIPSETTING( 0x001a, DEF_STR( 3C_1C ) ) | |
| 353 | PORT_DIPSETTING( 0x0002, DEF_STR( 8C_3C ) ) | |
| 354 | PORT_DIPSETTING( 0x001c, DEF_STR( 2C_1C ) ) | |
| 355 | PORT_DIPSETTING( 0x0004, DEF_STR( 5C_3C ) ) | |
| 356 | PORT_DIPSETTING( 0x0006, DEF_STR( 3C_2C ) ) | |
| 357 | PORT_DIPSETTING( 0x001e, DEF_STR( 1C_1C ) ) | |
| 358 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_3C ) ) | |
| 359 | PORT_DIPSETTING( 0x0012, DEF_STR( 1C_2C ) ) | |
| 360 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 361 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_4C ) ) | |
| 362 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_5C ) ) | |
| 363 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) | |
| 364 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 365 | /* Coin Mode 2 | |
| 366 | PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Coin_A ) ) | |
| 367 | PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) ) | |
| 368 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) | |
| 369 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) | |
| 370 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_1C ) ) | |
| 371 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Coin_B ) ) | |
| 372 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) | |
| 373 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 374 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) | |
| 375 | PORT_DIPSETTING( 0x0000, DEF_STR( 1C_6C ) ) | |
| 376 | */ | |
| 377 | PORT_DIPNAME( 0x0020, 0x0020, "Starting Coin" ) | |
| 378 | PORT_DIPSETTING( 0x0020, DEF_STR( Normal ) ) | |
| 379 | PORT_DIPSETTING( 0x0000, "x2" ) | |
| 380 | PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 381 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) | |
| 301 | PORT_START_TAG("DSW") | |
| 302 | BLOODBRO_COINAGE | |
| 303 | PORT_DIPUNUSED_DIPLOC( 0x0040, IP_ACTIVE_LOW, "SW1:7" ) /* see notes */ | |
| 304 | PORT_DIPUNUSED_DIPLOC( 0x0080, IP_ACTIVE_LOW, "SW1:8" ) /* see notes */ | |
| 305 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2") | |
| 382 | 306 | PORT_DIPSETTING( 0x0200, "2" ) |
| 383 | 307 | PORT_DIPSETTING( 0x0300, "3" ) |
| 384 | 308 | PORT_DIPSETTING( 0x0100, "5" ) |
| 385 | 309 | PORT_DIPSETTING( 0x0000, DEF_STR( Infinite ) ) |
| 386 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Bonus_Life ) ) | |
| 310 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:3,4") | |
| 387 | 311 | PORT_DIPSETTING( 0x0c00, "120K 200K+" ) |
| 388 | 312 | PORT_DIPSETTING( 0x0800, "200K+" ) |
| 389 | 313 | PORT_DIPSETTING( 0x0400, "250K+" ) |
| 390 | 314 | PORT_DIPSETTING( 0x0000, "200K" ) |
| 391 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) | |
| 315 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:5,6") | |
| 392 | 316 | PORT_DIPSETTING( 0x0000, DEF_STR( Easy ) ) |
| 393 | 317 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) |
| 394 | 318 | PORT_DIPSETTING( 0x2000, DEF_STR( Hard ) ) |
| 395 | 319 | PORT_DIPSETTING( 0x1000, DEF_STR( Very_Hard ) ) |
| 396 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Allow_Continue ) ) | |
| 320 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:7") | |
| 397 | 321 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) |
| 398 | 322 | PORT_DIPSETTING( 0x4000, DEF_STR( Yes ) ) |
| 399 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Demo_Sounds ) ) | |
| 323 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:8") | |
| 400 | 324 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) |
| 401 | 325 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) |
| 402 | 326 | |
| 403 | PORT_START | |
| 327 | PORT_START_TAG("IN0") | |
| 404 | 328 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 405 | 329 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| 406 | 330 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) |
| r2241 | r2242 | |
| 418 | 342 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 419 | 343 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 420 | 344 | |
| 421 | PORT_START | |
| 345 | PORT_START_TAG("IN1") | |
| 422 | 346 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 ) |
| 423 | 347 | PORT_BIT( 0x000e, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 424 | 348 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START2 ) |
| r2241 | r2242 | |
| 427 | 351 | PORT_BIT( 0x0e00, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 428 | 352 | PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_SERVICE1 ) |
| 429 | 353 | PORT_BIT( 0xe000, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 354 | ||
| 355 | SEIBU_COIN_INPUTS /* coin inputs read through sound cpu */ | |
| 430 | 356 | INPUT_PORTS_END |
| 431 | 357 | |
| 358 | ||
| 432 | 359 | /* Graphics Layouts */ |
| 433 | 360 | |
| 434 | 361 | static const gfx_layout textlayout = |
| r2241 | r2242 | |
|---|---|---|
| 97 | 97 | /******************************************************************************/ |
| 98 | 98 | |
| 99 | 99 | static INPUT_PORTS_START( raiden ) |
| 100 | SEIBU_COIN_INPUTS /* | |
| 100 | SEIBU_COIN_INPUTS /* | |
| 101 | 101 | |
| 102 | 102 | PORT_START /* IN0 */ |
| 103 | 103 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| r2241 | r2242 | |
| 119 | 119 | |
| 120 | 120 | PORT_START /* Dip switch A */ |
| 121 | 121 | PORT_DIPNAME( 0x0001, 0x0001, "Coin Mode" ) |
| 122 | PORT_DIPSETTING( 0x0001, "A" ) | |
| 123 | PORT_DIPSETTING( 0x0000, "B" ) | |
| 122 | PORT_DIPSETTING( 0x0001, "A" ) | |
| 123 | PORT_DIPSETTING( 0x0000, "B" ) | |
| 124 | 124 | /* Coin Mode A */ |
| 125 | 125 | PORT_DIPNAME( 0x001e, 0x001e, DEF_STR( Coinage ) ) |
| 126 | PORT_DIPSETTING( 0x0014, DEF_STR( 6C_1C ) ) | |
| 127 | PORT_DIPSETTING( 0x0016, DEF_STR( 5C_1C ) ) | |
| 128 | PORT_DIPSETTING( 0x0018, DEF_STR( 4C_1C ) ) | |
| 129 | PORT_DIPSETTING( 0x001a, DEF_STR( 3C_1C ) ) | |
| 130 | PORT_DIPSETTING( 0x0002, DEF_STR( 8C_3C ) ) | |
| 131 | PORT_DIPSETTING( 0x001c, DEF_STR( 2C_1C ) ) | |
| 132 | PORT_DIPSETTING( 0x0004, DEF_STR( 5C_3C ) ) | |
| 133 | PORT_DIPSETTING( 0x0006, DEF_STR( 3C_2C ) ) | |
| 134 | PORT_DIPSETTING( 0x001e, DEF_STR( 1C_1C ) ) | |
| 135 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_3C ) ) | |
| 136 | PORT_DIPSETTING( 0x0012, DEF_STR( 1C_2C ) ) | |
| 137 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 138 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_4C ) ) | |
| 139 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_5C ) ) | |
| 140 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) | |
| 141 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 126 | PORT_DIPSETTING( 0x0014, DEF_STR( 6C_1C ) ) | |
| 127 | PORT_DIPSETTING( 0x0016, DEF_STR( 5C_1C ) ) | |
| 128 | PORT_DIPSETTING( 0x0018, DEF_STR( 4C_1C ) ) | |
| 129 | PORT_DIPSETTING( 0x001a, DEF_STR( 3C_1C ) ) | |
| 130 | PORT_DIPSETTING( 0x0002, DEF_STR( 8C_3C ) ) | |
| 131 | PORT_DIPSETTING( 0x001c, DEF_STR( 2C_1C ) ) | |
| 132 | PORT_DIPSETTING( 0x0004, DEF_STR( 5C_3C ) ) | |
| 133 | PORT_DIPSETTING( 0x0006, DEF_STR( 3C_2C ) ) | |
| 134 | PORT_DIPSETTING( 0x001e, DEF_STR( 1C_1C ) ) | |
| 135 | PORT_DIPSETTING( 0x0008, DEF_STR( 2C_3C ) ) | |
| 136 | PORT_DIPSETTING( 0x0012, DEF_STR( 1C_2C ) ) | |
| 137 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 138 | PORT_DIPSETTING( 0x000e, DEF_STR( 1C_4C ) ) | |
| 139 | PORT_DIPSETTING( 0x000c, DEF_STR( 1C_5C ) ) | |
| 140 | PORT_DIPSETTING( 0x000a, DEF_STR( 1C_6C ) ) | |
| 141 | PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) ) | |
| 142 | 142 | /* PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Coin_A ) ) |
| 143 | PORT_DIPSETTING( 0x0000, "5C/1C or Free if Coin B too" ) | |
| 144 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) | |
| 145 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) | |
| 146 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_1C ) ) | |
| 143 | PORT_DIPSETTING( 0x0000, "5C/1C or Free if Coin B too" ) | |
| 144 | PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) ) | |
| 145 | PORT_DIPSETTING( 0x0004, DEF_STR( 2C_1C ) ) | |
| 146 | PORT_DIPSETTING( 0x0006, DEF_STR( 1C_1C ) ) | |
| 147 | 147 | PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Coin_B ) ) |
| 148 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) | |
| 149 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 150 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) | |
| 151 | PORT_DIPSETTING( 0x0000, "1C/6C or Free if Coin A too" ) */ | |
| 148 | PORT_DIPSETTING( 0x0018, DEF_STR( 1C_2C ) ) | |
| 149 | PORT_DIPSETTING( 0x0010, DEF_STR( 1C_3C ) ) | |
| 150 | PORT_DIPSETTING( 0x0008, DEF_STR( 1C_5C ) ) | |
| 151 | PORT_DIPSETTING( 0x0000, "1C/6C or Free if Coin A too" ) */ | |
| 152 | 152 | PORT_DIPNAME( 0x0020, 0x0020, "Credits to Start" ) |
| 153 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 154 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 153 | PORT_DIPSETTING( 0x0020, "1" ) | |
| 154 | PORT_DIPSETTING( 0x0000, "2" ) | |
| 155 | 155 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unused ) ) |
| 156 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 157 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 156 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 157 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 158 | 158 | PORT_DIPNAME( 0x0080, 0x0080, DEF_STR( Flip_Screen ) ) |
| 159 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 160 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 159 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 160 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 161 | 161 | PORT_DIPNAME( 0x0300, 0x0300, DEF_STR( Lives ) ) |
| 162 | PORT_DIPSETTING( 0x0200, "1" ) | |
| 163 | PORT_DIPSETTING( 0x0100, "2" ) | |
| 164 | PORT_DIPSETTING( 0x0300, "3" ) | |
| 165 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 162 | PORT_DIPSETTING( 0x0200, "1" ) | |
| 163 | PORT_DIPSETTING( 0x0100, "2" ) | |
| 164 | PORT_DIPSETTING( 0x0300, "3" ) | |
| 165 | PORT_DIPSETTING( 0x0000, "5" ) | |
| 166 | 166 | PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Bonus_Life ) ) |
| 167 | PORT_DIPSETTING( 0x0800, "80000 300000" ) | |
| 168 | PORT_DIPSETTING( 0x0c00, "150000 400000" ) | |
| 169 | PORT_DIPSETTING( 0x0400, "300000 1000000" ) | |
| 170 | PORT_DIPSETTING( 0x0000, "1000000 5000000" ) | |
| 167 | PORT_DIPSETTING( 0x0800, "80000 300000" ) | |
| 168 | PORT_DIPSETTING( 0x0c00, "150000 400000" ) | |
| 169 | PORT_DIPSETTING( 0x0400, "300000 1000000" ) | |
| 170 | PORT_DIPSETTING( 0x0000, "1000000 5000000" ) | |
| 171 | 171 | PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) ) |
| 172 | PORT_DIPSETTING( 0x2000, DEF_STR( Easy ) ) | |
| 173 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) | |
| 174 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) | |
| 175 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) | |
| 172 | PORT_DIPSETTING( 0x2000, DEF_STR( Easy ) ) | |
| 173 | PORT_DIPSETTING( 0x3000, DEF_STR( Normal ) ) | |
| 174 | PORT_DIPSETTING( 0x1000, DEF_STR( Hard ) ) | |
| 175 | PORT_DIPSETTING( 0x0000, DEF_STR( Very_Hard ) ) | |
| 176 | 176 | PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Allow_Continue ) ) |
| 177 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 178 | PORT_DIPSETTING( 0x4000, DEF_STR( Yes ) ) | |
| 177 | PORT_DIPSETTING( 0x0000, DEF_STR( No ) ) | |
| 178 | PORT_DIPSETTING( 0x4000, DEF_STR( Yes ) ) | |
| 179 | 179 | PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Demo_Sounds ) ) |
| 180 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 181 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) | |
| 180 | PORT_DIPSETTING( 0x0000, DEF_STR( Off ) ) | |
| 181 | PORT_DIPSETTING( 0x8000, DEF_STR( On ) ) | |
| 182 | 182 | INPUT_PORTS_END |
| 183 | 183 | |
| 184 | 184 | /******************************************************************************/ |
| r2241 | r2242 | |
|---|---|---|
| 194 | 194 | |
| 195 | 195 | static WRITE16_HANDLER( fromanc2_eeprom_w ) |
| 196 | 196 | { |
| 197 | if (ACCESSING_ | |
| 197 | if (ACCESSING_ | |
| 198 | 198 | // latch the bit |
| 199 | 199 | EEPROM_write_bit(data & 0x0100); |
| 200 | 200 | |
| r2241 | r2242 | |
| 208 | 208 | |
| 209 | 209 | static WRITE16_HANDLER( fromancr_eeprom_w ) |
| 210 | 210 | { |
| 211 | if (ACCESSING_ | |
| 211 | if (ACCESSING_ | |
| 212 | 212 | fromancr_gfxbank_w(data & 0xfff8); |
| 213 | 213 | |
| 214 | 214 | // latch the bit |
| r2241 | r2242 | |
| 224 | 224 | |
| 225 | 225 | static WRITE16_HANDLER( fromanc4_eeprom_w ) |
| 226 | 226 | { |
| 227 | if (ACCESSING_ | |
| 227 | if (ACCESSING_ | |
| 228 | 228 | // latch the bit |
| 229 | 229 | EEPROM_write_bit(data & 0x0004); |
| 230 | 230 |
| r2241 | r2242 | |
|---|---|---|
| 38 | 38 | ***************************************************************************/ |
| 39 | 39 | |
| 40 | 40 | static READ16_HANDLER ( YM3812_status_port_0_msb_r ) { return YM3812_status_port_0_r(machine,0) << 8; } |
| 41 | static WRITE16_HANDLER( YM3812_register_port_0_msb_w ) { if (ACCESSING_MSB) YM3812_control_port_0_w(machine,0,data >> 8); } | |
| 42 | static WRITE16_HANDLER( YM3812_data_port_0_msb_w ) { if (ACCESSING_MSB) YM3812_write_port_0_w(machine,0,data >> 8); } | |
| 41 | static WRITE16_HANDLER( YM3812_register_port_0_msb_w ) { if (ACCESSING_BITS_8_15) YM3812_control_port_0_w(machine,0,data >> 8); } | |
| 42 | static WRITE16_HANDLER( YM3812_data_port_0_msb_w ) { if (ACCESSING_BITS_8_15) YM3812_write_port_0_w(machine,0,data >> 8); } | |
| 43 | 43 | |
| 44 | 44 | |
| 45 | 45 | /* |
| r2241 | r2242 | |
| 54 | 54 | |
| 55 | 55 | static WRITE16_HANDLER( burglarx_sound_bank_w ) |
| 56 | 56 | { |
| 57 | if (ACCESSING_ | |
| 57 | if (ACCESSING_ | |
| 58 | 58 | { |
| 59 | 59 | int bank = (data >> 8 ) & 1; |
| 60 | 60 | OKIM6295_set_bank_base(0, 0x40000 * bank ); |
| r2241 | r2242 | |
| 109 | 109 | |
| 110 | 110 | static WRITE16_HANDLER( zeropnt_sound_bank_w ) |
| 111 | 111 | { |
| 112 | if (ACCESSING_ | |
| 112 | if (ACCESSING_ | |
| 113 | 113 | { |
| 114 | 114 | /* Banked sound samples. The 3rd quarter of the ROM |
| 115 | 115 | contains garbage. Indeed, only banks 0&1 are used */ |
| r2241 | r2242 | |
| 226 | 226 | |
| 227 | 227 | static READ32_HANDLER ( zeropnt2_oki0_r ) { return OKIM6295_status_0_r(machine,0) << 16; } |
| 228 | 228 | static READ32_HANDLER ( zeropnt2_oki1_r ) { return OKIM6295_status_1_r(machine,0) << 16; } |
| 229 | static WRITE32_HANDLER( zeropnt2_oki0_w ) { if ((mem_mask & 0x00ff0000) == 0) OKIM6295_data_0_w(machine,0,(data >> 16) & 0xff); } | |
| 230 | static WRITE32_HANDLER( zeropnt2_oki1_w ) { if ((mem_mask & 0x00ff0000) == 0) OKIM6295_data_1_w(machine,0,(data >> 16) & 0xff); } | |
| 229 | static WRITE32_HANDLER( zeropnt2_oki0_w ) { if (ACCESSING_BITS_16_23) OKIM6295_data_0_w(machine,0,(data >> 16) & 0xff); } | |
| 230 | static WRITE32_HANDLER( zeropnt2_oki1_w ) { if (ACCESSING_BITS_16_23) OKIM6295_data_1_w(machine,0,(data >> 16) & 0xff); } | |
| 231 | 231 | |
| 232 | 232 | static READ32_HANDLER( zeropnt2_ym2151_status_r ) { return YM2151_status_port_0_r(machine,0) << 16; } |
| 233 | static WRITE32_HANDLER( zeropnt2_ym2151_reg_w ) { if ((mem_mask & 0x00ff0000) == 0) YM2151_register_port_0_w(machine,0,(data >> 16) & 0xff); } | |
| 234 | static WRITE32_HANDLER( zeropnt2_ym2151_data_w ) { if ((mem_mask & 0x00ff0000) == 0) YM2151_data_port_0_w(machine,0,(data >> 16) & 0xff); } | |
| 233 | static WRITE32_HANDLER( zeropnt2_ym2151_reg_w ) { if (ACCESSING_BITS_16_23) YM2151_register_port_0_w(machine,0,(data >> 16) & 0xff); } | |
| 234 | static WRITE32_HANDLER( zeropnt2_ym2151_data_w ) { if (ACCESSING_BITS_16_23) YM2151_data_port_0_w(machine,0,(data >> 16) & 0xff); } | |
| 235 | 235 | |
| 236 | 236 | static WRITE32_HANDLER( zeropnt2_sound_bank_w ) |
| 237 | 237 | { |
| 238 | if (ACCESSING_ | |
| 238 | if (ACCESSING_ | |
| 239 | 239 | { |
| 240 | 240 | int bank = ((data >> 24) & 3) % 4; |
| 241 | 241 | UINT8 *dst = memory_region(REGION_SOUND1); |
| r2241 | r2242 | |
| 246 | 246 | |
| 247 | 247 | static WRITE32_HANDLER( zeropnt2_leds_w ) |
| 248 | 248 | { |
| 249 | if ( | |
| 249 | if (ACCESSING_BITS_16_23 | |
| 250 | 250 | { |
| 251 | 251 | coin_counter_w(0,data & 0x00010000); |
| 252 | 252 | set_led_status(0,data & 0x00800000); // Start 1 |
| r2241 | r2242 | |
| 259 | 259 | if (data & ~0xfe00000) |
| 260 | 260 | logerror("CPU #0 PC: %06X - Unknown EEPROM bit written %04X\n",activecpu_get_pc(),data); |
| 261 | 261 | |
| 262 | if ( ACCESSING_ | |
| 262 | if ( ACCESSING_ | |
| 263 | 263 | { |
| 264 | 264 | // latch the bit |
| 265 | 265 | EEPROM_write_bit(data & 0x04000000); |
| r2241 | r2242 | |
|---|---|---|
| 59 | 59 | |
| 60 | 60 | static WRITE16_HANDLER( soundcmd_w ) |
| 61 | 61 | { |
| 62 | if (ACCESSING_ | |
| 62 | if (ACCESSING_ | |
| 63 | 63 | { |
| 64 | 64 | soundlatch_w(machine,0,data & 0xff); |
| 65 | 65 | cpunum_set_input_line(machine, 1,0,HOLD_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 63 | 63 | static WRITE16_HANDLER( shared_ram_w ) |
| 64 | 64 | { |
| 65 | 65 | if ((offset&1)==0) { |
| 66 | if (ACCESSING_ | |
| 66 | if (ACCESSING_ | |
| 67 | 67 | shared_ram[offset/2]=(shared_ram[offset/2]&0x00ffffff)|((data&0xff00)<<16); |
| 68 | if (ACCESSING_ | |
| 68 | if (ACCESSING_ | |
| 69 | 69 | shared_ram[offset/2]=(shared_ram[offset/2]&0xff00ffff)|((data&0x00ff)<<16); |
| 70 | 70 | } else { |
| 71 | if (ACCESSING_ | |
| 71 | if (ACCESSING_ | |
| 72 | 72 | shared_ram[offset/2]=(shared_ram[offset/2]&0xffff00ff)|((data&0xff00)<< 0); |
| 73 | if (ACCESSING_ | |
| 73 | if (ACCESSING_ | |
| 74 | 74 | shared_ram[offset/2]=(shared_ram[offset/2]&0xffffff00)|((data&0x00ff)<< 0); |
| 75 | 75 | } |
| 76 | 76 | } |
| r2241 | r2242 | |
| 86 | 86 | is there an irq enable in the top nibble? |
| 87 | 87 | */ |
| 88 | 88 | |
| 89 | if (ACCESSING_ | |
| 89 | if (ACCESSING_ | |
| 90 | 90 | { |
| 91 | 91 | cpunum_set_input_line(Machine, 2, INPUT_LINE_RESET, (data &0x200) ? CLEAR_LINE : ASSERT_LINE); |
| 92 | 92 | if (data&0x8000) cpunum_set_input_line(Machine, 0,3,HOLD_LINE); /* Guess */ |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | if (ACCESSING_ | |
| 95 | if (ACCESSING_ | |
| 96 | 96 | { |
| 97 | 97 | /* Lamp control bits of some sort in the lsb */ |
| 98 | 98 | } |
| r2241 | r2242 | |
| 143 | 143 | { |
| 144 | 144 | case 0x00: |
| 145 | 145 | { |
| 146 | if (ACCESSING_ | |
| 146 | if (ACCESSING_ | |
| 147 | 147 | { |
| 148 | 148 | watchdog_reset(machine); |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | if (ACCESSING_ | |
| 151 | if (ACCESSING_ | |
| 152 | 152 | { |
| 153 | 153 | EEPROM_set_clock_line((data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 154 | 154 | EEPROM_write_bit(data & 0x40); |
| r2241 | r2242 | |
| 163 | 163 | |
| 164 | 164 | case 0x01: |
| 165 | 165 | { |
| 166 | if (ACCESSING_ | |
| 166 | if (ACCESSING_ | |
| 167 | 167 | { |
| 168 | 168 | coin_lockout_w(0,~data & 0x01000000); |
| 169 | 169 | coin_lockout_w(1,~data & 0x02000000); |
| r2241 | r2242 | |
|---|---|---|
| 226 | 226 | |
| 227 | 227 | static WRITE32_HANDLER(dreamwld_6295_0_w) |
| 228 | 228 | { |
| 229 | if ( | |
| 229 | if (ACCESSING_BITS_24_31 | |
| 230 | 230 | { |
| 231 | 231 | OKIM6295_data_0_w(machine, 0, (data>>24) & 0xff); |
| 232 | 232 | } |
| r2241 | r2242 | |
| 248 | 248 | |
| 249 | 249 | static WRITE32_HANDLER( dreamwld_6295_0_bank_w ) |
| 250 | 250 | { |
| 251 | if ( | |
| 251 | if (ACCESSING_BITS_ | |
| 252 | 252 | { |
| 253 | 253 | dreamwld_oki_setbank(0,data&0x3); |
| 254 | 254 | } |
| r2241 | r2242 | |
| 265 | 265 | |
| 266 | 266 | static WRITE32_HANDLER(dreamwld_6295_1_w) |
| 267 | 267 | { |
| 268 | if ( | |
| 268 | if (ACCESSING_BITS_24_31 | |
| 269 | 269 | { |
| 270 | 270 | OKIM6295_data_1_w(machine, 0, (data>>24) & 0xff); |
| 271 | 271 | } |
| r2241 | r2242 | |
| 277 | 277 | |
| 278 | 278 | static WRITE32_HANDLER( dreamwld_6295_1_bank_w ) |
| 279 | 279 | { |
| 280 | if ( | |
| 280 | if (ACCESSING_BITS_ | |
| 281 | 281 | { |
| 282 | 282 | dreamwld_oki_setbank(1,data&0x3); |
| 283 | 283 | } |
| r0 | r2242 | |
|---|---|---|
| 1 | /************************************* | |
| 2 | * | |
| 3 | * Input Ports | |
| 4 | * Galaxian-derived games | |
| 5 | * | |
| 6 | *************************************/ | |
| 7 | ||
| 8 | INPUT_PORTS_START( galaxian ) | |
| 9 | PORT_START_TAG("IN0") | |
| 10 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 11 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 12 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 13 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 14 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 15 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 16 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 17 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 18 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH ) | |
| 19 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 20 | ||
| 21 | PORT_START_TAG("IN1") | |
| 22 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 23 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 24 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 25 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 26 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 27 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 28 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 29 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 30 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 31 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 32 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 33 | ||
| 34 | PORT_START_TAG("IN2") | |
| 35 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) | |
| 36 | PORT_DIPSETTING( 0x00, "7000" ) | |
| 37 | PORT_DIPSETTING( 0x01, "10000" ) | |
| 38 | PORT_DIPSETTING( 0x02, "12000" ) | |
| 39 | PORT_DIPSETTING( 0x03, "20000" ) | |
| 40 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 41 | PORT_DIPSETTING( 0x00, "2" ) | |
| 42 | PORT_DIPSETTING( 0x04, "3" ) | |
| 43 | PORT_DIPUNUSED( 0x08, 0x00 ) | |
| 44 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 45 | INPUT_PORTS_END | |
| 46 | ||
| 47 | ||
| 48 | INPUT_PORTS_START( superg ) | |
| 49 | PORT_INCLUDE(galaxian) | |
| 50 | ||
| 51 | PORT_MODIFY("IN2") | |
| 52 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) ) | |
| 53 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 54 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 55 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 56 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 57 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 58 | PORT_DIPSETTING( 0x00, "3" ) | |
| 59 | PORT_DIPSETTING( 0x04, "5" ) | |
| 60 | INPUT_PORTS_END | |
| 61 | ||
| 62 | ||
| 63 | static INPUT_PORTS_START( galtaito ) | |
| 64 | PORT_INCLUDE(galaxian) | |
| 65 | ||
| 66 | PORT_MODIFY("IN2") | |
| 67 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) ) | |
| 68 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 69 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 70 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 71 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 72 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 73 | PORT_DIPSETTING( 0x00, "3" ) | |
| 74 | PORT_DIPSETTING( 0x04, "5" ) | |
| 75 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unused ) ) | |
| 76 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 77 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 78 | INPUT_PORTS_END | |
| 79 | ||
| 80 | ||
| 81 | INPUT_PORTS_START( swarm ) | |
| 82 | PORT_INCLUDE(galaxian) | |
| 83 | ||
| 84 | PORT_MODIFY("IN2") | |
| 85 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) | |
| 86 | PORT_DIPSETTING( 0x01, "10000" ) | |
| 87 | PORT_DIPSETTING( 0x02, "20000" ) | |
| 88 | PORT_DIPSETTING( 0x03, "40000" ) | |
| 89 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 90 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 91 | PORT_DIPSETTING( 0x00, "3" ) | |
| 92 | PORT_DIPSETTING( 0x04, "4" ) | |
| 93 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Difficulty ) ) /* aliens "flying" simultaneously */ | |
| 94 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) /* less aliens */ | |
| 95 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) /* more aliens */ | |
| 96 | INPUT_PORTS_END | |
| 97 | ||
| 98 | ||
| 99 | INPUT_PORTS_START( zerotime ) | |
| 100 | PORT_INCLUDE(galaxian) | |
| 101 | ||
| 102 | PORT_MODIFY("IN1") | |
| 103 | PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Coinage ) ) | |
| 104 | PORT_DIPSETTING( 0x40, "A 1C/1C 2C/2C B 1C/2C" ) | |
| 105 | PORT_DIPSETTING( 0xc0, "A 1C/1C 2C/3C B 1C/3C" ) | |
| 106 | PORT_DIPSETTING( 0x00, "A 1C/2C 2C/4C B 1C/4C" ) | |
| 107 | PORT_DIPSETTING( 0x80, "A 1C/2C 2C/5C B 1C/5C" ) | |
| 108 | ||
| 109 | PORT_MODIFY("IN2") | |
| 110 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Bonus_Life ) ) | |
| 111 | PORT_DIPSETTING( 0x03, "6000" ) | |
| 112 | PORT_DIPSETTING( 0x02, "7000" ) | |
| 113 | PORT_DIPSETTING( 0x01, "9000" ) | |
| 114 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 115 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 116 | PORT_DIPSETTING( 0x00, "3" ) | |
| 117 | PORT_DIPSETTING( 0x04, "5" ) | |
| 118 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Difficulty ) ) /* player's bullet speed */ | |
| 119 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) /* gap of 6 pixels */ | |
| 120 | PORT_DIPSETTING( 0x08, DEF_STR( Hard ) ) /* gap of 8 pixels */ | |
| 121 | INPUT_PORTS_END | |
| 122 | ||
| 123 | ||
| 124 | INPUT_PORTS_START( blkhole ) | |
| 125 | PORT_INCLUDE(galaxian) | |
| 126 | ||
| 127 | PORT_MODIFY("IN0") | |
| 128 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 129 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 130 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 131 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 132 | ||
| 133 | PORT_MODIFY("IN1") | |
| 134 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 135 | PORT_DIPSETTING( 0xc0, DEF_STR( 2C_1C ) ) | |
| 136 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 137 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) ) | |
| 138 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 139 | ||
| 140 | PORT_MODIFY("IN2") | |
| 141 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 142 | PORT_DIPSETTING( 0x00, "5000" ) | |
| 143 | PORT_DIPSETTING( 0x01, "10000" ) | |
| 144 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet ) ) | |
| 145 | PORT_DIPSETTING( 0x02, DEF_STR( Upright ) ) | |
| 146 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 147 | PORT_DIPUNUSED( 0x04, 0x00 ) | |
| 148 | PORT_DIPUNUSED( 0x08, 0x00 ) | |
| 149 | INPUT_PORTS_END | |
| 150 | ||
| 151 | ||
| 152 | INPUT_PORTS_START( orbitron ) | |
| 153 | PORT_INCLUDE(galaxian) | |
| 154 | ||
| 155 | PORT_MODIFY("IN0") | |
| 156 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 157 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 158 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 159 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 160 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 161 | ||
| 162 | PORT_MODIFY("IN1") | |
| 163 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 164 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 165 | PORT_DIPNAME( 0x60, 0x40, DEF_STR( Coinage ) ) /* Routine at 0x00e1 */ | |
| 166 | PORT_DIPSETTING( 0x00, "A 2C/1C B 1C/3C" ) | |
| 167 | // PORT_DIPSETTING( 0x20, "A 2C/1C B 1C/3C" ) | |
| 168 | PORT_DIPSETTING( 0x40, "A 1C/1C B 1C/6C" ) | |
| 169 | // PORT_DIPSETTING( 0x60, "A 1C/1C B 1C/6C" ) | |
| 170 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 171 | ||
| 172 | PORT_MODIFY("IN2") | |
| 173 | PORT_DIPUNUSED( 0x01, 0x00 ) | |
| 174 | PORT_DIPUNUSED( 0x02, 0x00 ) | |
| 175 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 176 | PORT_DIPSETTING( 0x04, "2" ) | |
| 177 | PORT_DIPSETTING( 0x00, "3" ) | |
| 178 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 179 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 180 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 181 | INPUT_PORTS_END | |
| 182 | ||
| 183 | ||
| 184 | /* These inputs are clearly wrong, they need a full test */ | |
| 185 | INPUT_PORTS_START( luctoday ) | |
| 186 | PORT_START_TAG("IN0") | |
| 187 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 188 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 189 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_NAME("Add Credit to Bet") | |
| 190 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_NAME("Remove Credit from Bet") | |
| 191 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 192 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 193 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 194 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BILL1 ) | |
| 195 | ||
| 196 | PORT_START_TAG("IN1") | |
| 197 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 198 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 199 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 200 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 201 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 202 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 203 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 204 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 205 | ||
| 206 | PORT_START_TAG("IN2") | |
| 207 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 208 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 209 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 210 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 211 | INPUT_PORTS_END | |
| 212 | ||
| 213 | ||
| 214 | INPUT_PORTS_START( catacomb ) | |
| 215 | PORT_INCLUDE(galaxian) | |
| 216 | ||
| 217 | PORT_MODIFY("IN0") | |
| 218 | PORT_DIPUNKNOWN( 0x40, 0x00 ) | |
| 219 | PORT_DIPUNKNOWN( 0x80, 0x00 ) | |
| 220 | ||
| 221 | PORT_MODIFY("IN1") | |
| 222 | PORT_DIPUNKNOWN( 0x20, 0x00 ) | |
| 223 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 224 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 225 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 226 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coin_B ) ) | |
| 227 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_3C ) ) | |
| 228 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_5C ) ) | |
| 229 | ||
| 230 | PORT_MODIFY("IN2") | |
| 231 | PORT_DIPUNKNOWN( 0x01, 0x00 ) | |
| 232 | PORT_DIPUNKNOWN( 0x02, 0x00 ) | |
| 233 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Lives ) ) | |
| 234 | PORT_DIPSETTING( 0x04, "3" ) | |
| 235 | PORT_DIPSETTING( 0x00, "5" ) | |
| 236 | PORT_DIPUNKNOWN( 0x08, 0x00 ) | |
| 237 | INPUT_PORTS_END | |
| 238 | ||
| 239 | ||
| 240 | INPUT_PORTS_START( omega ) | |
| 241 | PORT_INCLUDE(galaxian) | |
| 242 | ||
| 243 | PORT_MODIFY("IN0") | |
| 244 | PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 245 | ||
| 246 | PORT_MODIFY("IN1") | |
| 247 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 248 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 249 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 250 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 251 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) ) | |
| 252 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 253 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 254 | ||
| 255 | PORT_MODIFY("IN2") | |
| 256 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 257 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 258 | PORT_DIPSETTING( 0x01, "20000" ) | |
| 259 | PORT_DIPUNUSED( 0x02, 0x00 ) | |
| 260 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 261 | PORT_DIPSETTING( 0x00, "3" ) | |
| 262 | PORT_DIPSETTING( 0x04, "5" ) | |
| 263 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 264 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 265 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 266 | INPUT_PORTS_END | |
| 267 | ||
| 268 | ||
| 269 | INPUT_PORTS_START( warofbug ) | |
| 270 | PORT_INCLUDE(galaxian) | |
| 271 | ||
| 272 | PORT_MODIFY("IN0") | |
| 273 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 274 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 275 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 276 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 277 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 278 | ||
| 279 | PORT_MODIFY("IN1") | |
| 280 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 281 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 282 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 283 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 284 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 285 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 286 | // PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 287 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 288 | ||
| 289 | PORT_MODIFY("IN2") | |
| 290 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 291 | PORT_DIPSETTING( 0x00, "1" ) | |
| 292 | PORT_DIPSETTING( 0x01, "2" ) | |
| 293 | PORT_DIPSETTING( 0x02, "3" ) | |
| 294 | PORT_DIPSETTING( 0x03, "4" ) | |
| 295 | PORT_DIPUNUSED( 0x04, 0x00 ) | |
| 296 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Bonus_Life ) ) | |
| 297 | PORT_DIPSETTING( 0x08, "500000" ) | |
| 298 | PORT_DIPSETTING( 0x00, "750000" ) | |
| 299 | INPUT_PORTS_END | |
| 300 | ||
| 301 | ||
| 302 | INPUT_PORTS_START( redufo ) | |
| 303 | PORT_INCLUDE(galaxian) | |
| 304 | ||
| 305 | PORT_MODIFY("IN1") | |
| 306 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 307 | PORT_DIPSETTING( 0x40, "A 2C/1C B 1C/3C" ) | |
| 308 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/6C" ) | |
| 309 | PORT_DIPSETTING( 0x80, "A 1C/2C B 1C/12C" ) | |
| 310 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 311 | ||
| 312 | PORT_MODIFY("IN2") | |
| 313 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) ) | |
| 314 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 315 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 316 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 317 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 318 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 319 | PORT_DIPSETTING( 0x00, "3" ) | |
| 320 | PORT_DIPSETTING( 0x04, "5" ) | |
| 321 | INPUT_PORTS_END | |
| 322 | ||
| 323 | ||
| 324 | INPUT_PORTS_START( exodus ) | |
| 325 | PORT_INCLUDE(galaxian) | |
| 326 | ||
| 327 | PORT_MODIFY("IN0") | |
| 328 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 329 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) // Not tested due to code removed at 0x1901 and 0x191a | |
| 330 | ||
| 331 | PORT_MODIFY("IN1") | |
| 332 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_B ) ) | |
| 333 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 334 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 335 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_A ) ) | |
| 336 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 337 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 338 | ||
| 339 | PORT_MODIFY("IN2") | |
| 340 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 341 | PORT_DIPSETTING( 0x00, "7000" ) | |
| 342 | PORT_DIPSETTING( 0x01, DEF_STR( None ) ) | |
| 343 | PORT_DIPUNUSED( 0x02, 0x00 ) // Not read due to code at 0x012b | |
| 344 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 345 | PORT_DIPSETTING( 0x00, "3" ) | |
| 346 | PORT_DIPSETTING( 0x04, "5" ) | |
| 347 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 348 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 349 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 350 | INPUT_PORTS_END | |
| 351 | ||
| 352 | ||
| 353 | INPUT_PORTS_START( azurian ) | |
| 354 | PORT_START_TAG("IN0") | |
| 355 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 356 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 357 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 358 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 359 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 360 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 361 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 362 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 363 | ||
| 364 | PORT_START_TAG("IN1") | |
| 365 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 366 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 367 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 368 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 369 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 370 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 371 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(azurian_port_r, (void *)0) /* "linked" with bit 2 of IN2 */ | |
| 372 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Lives ) ) | |
| 373 | PORT_DIPSETTING( 0x00, "3" ) | |
| 374 | PORT_DIPSETTING( 0x80, "5" ) | |
| 375 | ||
| 376 | PORT_START_TAG("IN2") | |
| 377 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Coinage ) ) | |
| 378 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 379 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 380 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Bonus_Life ) ) | |
| 381 | PORT_DIPSETTING( 0x00, "5000" ) | |
| 382 | PORT_DIPSETTING( 0x02, "7000" ) | |
| 383 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(azurian_port_r, (void *)1) /* "linked" with bit 6 of IN1 */ | |
| 384 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 385 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 386 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 387 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 388 | ||
| 389 | PORT_START_TAG("FAKE") /* fake port to handle routine at 0x05b3 that stores value at 0x40f4 */ | |
| 390 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Difficulty ) ) | |
| 391 | PORT_DIPSETTING( 0x03, DEF_STR( Easy ) ) | |
| 392 | PORT_DIPSETTING( 0x01, DEF_STR( Normal ) ) | |
| 393 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 394 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) | |
| 395 | INPUT_PORTS_END | |
| 396 | ||
| 397 | ||
| 398 | INPUT_PORTS_START( pisces ) | |
| 399 | PORT_INCLUDE(galaxian) | |
| 400 | ||
| 401 | PORT_MODIFY("IN0") | |
| 402 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 403 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 404 | PORT_BIT( 0xe0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 405 | ||
| 406 | PORT_MODIFY("IN1") | |
| 407 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Lives ) ) | |
| 408 | PORT_DIPSETTING( 0x00, "3" ) | |
| 409 | PORT_DIPSETTING( 0x40, "4" ) | |
| 410 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 411 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 412 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 413 | ||
| 414 | PORT_MODIFY("IN2") | |
| 415 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 416 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 417 | PORT_DIPSETTING( 0x01, "20000" ) | |
| 418 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) ) | |
| 419 | PORT_DIPSETTING( 0x02, "A 2C/1C B 1C/3C" ) | |
| 420 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/6C" ) | |
| 421 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Difficulty ) ) | |
| 422 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 423 | PORT_DIPSETTING( 0x04, DEF_STR( Hard ) ) | |
| 424 | INPUT_PORTS_END | |
| 425 | ||
| 426 | ||
| 427 | INPUT_PORTS_START( piscesb ) | |
| 428 | PORT_INCLUDE(pisces) | |
| 429 | ||
| 430 | PORT_MODIFY("IN2") | |
| 431 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) ) | |
| 432 | PORT_DIPSETTING( 0x02, "A 2C/1C B 1C/2C 2C/5C" ) | |
| 433 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/5C" ) | |
| 434 | INPUT_PORTS_END | |
| 435 | ||
| 436 | ||
| 437 | INPUT_PORTS_START( gteikokb ) | |
| 438 | PORT_INCLUDE(galaxian) | |
| 439 | ||
| 440 | PORT_MODIFY("IN0") | |
| 441 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 442 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not tested due to code removed at 0x00ab, 0x1b26 and 0x1c97*/ | |
| 443 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not tested due to code removed at 0x1901*/ | |
| 444 | ||
| 445 | PORT_MODIFY("IN1") | |
| 446 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 447 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 448 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 449 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) ) | |
| 450 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 451 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 452 | ||
| 453 | PORT_MODIFY("IN2") | |
| 454 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 455 | PORT_DIPSETTING( 0x00, "7000" ) | |
| 456 | PORT_DIPSETTING( 0x01, DEF_STR( None ) ) | |
| 457 | PORT_DIPUNUSED( 0x02, 0x00 ) // Not read due to code at 0x012b | |
| 458 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 459 | PORT_DIPSETTING( 0x00, "3" ) | |
| 460 | PORT_DIPSETTING( 0x04, "5" ) | |
| 461 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 462 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 463 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 464 | INPUT_PORTS_END | |
| 465 | ||
| 466 | ||
| 467 | INPUT_PORTS_START( gteikob2 ) | |
| 468 | PORT_INCLUDE(gteikokb) | |
| 469 | ||
| 470 | PORT_MODIFY("IN2") | |
| 471 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Cabinet ) ) | |
| 472 | PORT_DIPSETTING( 0x08, DEF_STR( Upright ) ) | |
| 473 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 474 | INPUT_PORTS_END | |
| 475 | ||
| 476 | ||
| 477 | INPUT_PORTS_START( spacbatt ) | |
| 478 | PORT_INCLUDE(galaxian) | |
| 479 | ||
| 480 | PORT_MODIFY("IN1") | |
| 481 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 482 | PORT_DIPSETTING( 0x40, "A 2C/1C B 1C/3C" ) | |
| 483 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/6C" ) | |
| 484 | PORT_DIPSETTING( 0x80, "A 1C/2C B 1C/6C" ) | |
| 485 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 486 | ||
| 487 | PORT_MODIFY("IN2") | |
| 488 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Bonus_Life ) ) | |
| 489 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 490 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 491 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 492 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 493 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 494 | PORT_DIPSETTING( 0x00, "3" ) | |
| 495 | PORT_DIPSETTING( 0x04, "5" ) | |
| 496 | INPUT_PORTS_END | |
| 497 | ||
| 498 | ||
| 499 | INPUT_PORTS_START( batman2 ) | |
| 500 | PORT_INCLUDE(galaxian) | |
| 501 | ||
| 502 | PORT_MODIFY("IN0") | |
| 503 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 504 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 505 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 506 | ||
| 507 | PORT_MODIFY("IN1") | |
| 508 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 509 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 510 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_2C ) ) | |
| 511 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) ) | |
| 512 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 513 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 514 | ||
| 515 | PORT_MODIFY("IN2") | |
| 516 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 517 | PORT_DIPSETTING( 0x00, "30000" ) | |
| 518 | PORT_DIPSETTING( 0x01, "50000" ) | |
| 519 | PORT_DIPUNUSED( 0x02, 0x00 ) | |
| 520 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 521 | PORT_DIPSETTING( 0x00, "3" ) | |
| 522 | PORT_DIPSETTING( 0x04, "5" ) | |
| 523 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 524 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 525 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 526 | INPUT_PORTS_END | |
| 527 | ||
| 528 | ||
| 529 | INPUT_PORTS_START( streakng ) | |
| 530 | PORT_START_TAG("IN0") | |
| 531 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 532 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 533 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 534 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 535 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 536 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 537 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 538 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 539 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 540 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 541 | ||
| 542 | PORT_START_TAG("IN1") | |
| 543 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 544 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 545 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 546 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 547 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 548 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 549 | PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Bonus_Life ) ) | |
| 550 | PORT_DIPSETTING( 0x40, "10000" ) | |
| 551 | PORT_DIPSETTING( 0x80, "15000" ) | |
| 552 | PORT_DIPSETTING( 0xc0, "20000" ) | |
| 553 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 554 | ||
| 555 | PORT_START_TAG("IN2") | |
| 556 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coinage ) ) | |
| 557 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 558 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 559 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) | |
| 560 | PORT_DIPSETTING( 0x03, DEF_STR( Free_Play ) ) | |
| 561 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) ) | |
| 562 | PORT_DIPSETTING( 0x0c, "1" ) | |
| 563 | PORT_DIPSETTING( 0x08, "2" ) | |
| 564 | PORT_DIPSETTING( 0x04, "3" ) | |
| 565 | PORT_DIPSETTING( 0x00, "5" ) | |
| 566 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 567 | INPUT_PORTS_END | |
| 568 | ||
| 569 | ||
| 570 | INPUT_PORTS_START( pacmanbl ) | |
| 571 | PORT_START_TAG("IN0") | |
| 572 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 573 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 574 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 575 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 576 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 577 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 578 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 579 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 580 | ||
| 581 | PORT_START_TAG("IN1") | |
| 582 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 583 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 584 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 585 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 586 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 587 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 588 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 589 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 590 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 591 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) ) | |
| 592 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 593 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 594 | ||
| 595 | PORT_START_TAG("IN2") | |
| 596 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 597 | PORT_DIPSETTING( 0x00, "15000" ) | |
| 598 | PORT_DIPSETTING( 0x01, "20000" ) | |
| 599 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Difficulty ) ) | |
| 600 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 601 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 602 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 603 | PORT_DIPSETTING( 0x00, "3" ) | |
| 604 | PORT_DIPSETTING( 0x04, "5" ) | |
| 605 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 606 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 607 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 608 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 609 | INPUT_PORTS_END | |
| 610 | ||
| 611 | ||
| 612 | INPUT_PORTS_START( devilfsg ) | |
| 613 | PORT_INCLUDE(pacmanbl) | |
| 614 | ||
| 615 | PORT_MODIFY("IN0") | |
| 616 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 617 | ||
| 618 | PORT_MODIFY("IN1") | |
| 619 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 620 | ||
| 621 | PORT_MODIFY("IN2") | |
| 622 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Bonus_Life ) ) | |
| 623 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 624 | PORT_DIPSETTING( 0x01, "15000" ) | |
| 625 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 626 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 627 | PORT_DIPSETTING( 0x00, "4" ) | |
| 628 | PORT_DIPSETTING( 0x04, "5" ) | |
| 629 | INPUT_PORTS_END | |
| 630 | ||
| 631 | ||
| 632 | INPUT_PORTS_START( zigzag ) | |
| 633 | PORT_START_TAG("IN0") | |
| 634 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 635 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 636 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 637 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 638 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 639 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 640 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 641 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 642 | ||
| 643 | PORT_START_TAG("IN1") | |
| 644 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 645 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 646 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 647 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 648 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 649 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 650 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 651 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 652 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 653 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 654 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 655 | ||
| 656 | PORT_START_TAG("IN2") | |
| 657 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Lives ) ) | |
| 658 | PORT_DIPSETTING( 0x00, "3" ) | |
| 659 | PORT_DIPSETTING( 0x01, "4" ) | |
| 660 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet ) ) | |
| 661 | PORT_DIPSETTING( 0x02, DEF_STR( Upright ) ) | |
| 662 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 663 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) ) | |
| 664 | PORT_DIPSETTING( 0x00, "10000 60000" ) | |
| 665 | PORT_DIPSETTING( 0x04, "20000 60000" ) | |
| 666 | PORT_DIPSETTING( 0x08, "30000 60000" ) | |
| 667 | PORT_DIPSETTING( 0x0c, "40000 60000" ) | |
| 668 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 669 | INPUT_PORTS_END | |
| 670 | ||
| 671 | ||
| 672 | INPUT_PORTS_START( gmgalax ) | |
| 673 | PORT_START_TAG("IN0") | |
| 674 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM(gmgalax_port_r, "GMIN0\0GLIN0") | |
| 675 | ||
| 676 | PORT_START_TAG("IN1") | |
| 677 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM(gmgalax_port_r, "GMIN1\0GLIN1") | |
| 678 | ||
| 679 | PORT_START_TAG("IN2") | |
| 680 | PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM(gmgalax_port_r, "GMIN2\0GLIN2") | |
| 681 | ||
| 682 | PORT_START_TAG("GMIN0") /* Ghost Muncher - IN0 */ | |
| 683 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 684 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP) PORT_4WAY PORT_COCKTAIL PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 685 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 686 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 687 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 688 | PORT_DIPNAME( 0x20, 0x00, "Ghost Muncher - Cabinet" ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 689 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 690 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 691 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 692 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 693 | ||
| 694 | PORT_START_TAG("GMIN1") /* Ghost Muncher - IN1 */ | |
| 695 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 696 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 697 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 698 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 699 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 700 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 701 | PORT_DIPNAME( 0xc0, 0x40, "Ghost Muncher - Bonus Life" ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 702 | PORT_DIPSETTING( 0x40, "10000" ) | |
| 703 | PORT_DIPSETTING( 0x80, "15000" ) | |
| 704 | PORT_DIPSETTING( 0xc0, "20000" ) | |
| 705 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 706 | ||
| 707 | PORT_START_TAG("GMIN2") /* Ghost Muncher - IN2 */ | |
| 708 | PORT_DIPNAME( 0x03, 0x02, "Ghost Muncher - Coinage" ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 709 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 710 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 711 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) | |
| 712 | PORT_DIPSETTING( 0x03, DEF_STR( Free_Play ) ) | |
| 713 | PORT_DIPNAME( 0x0c, 0x04, "Ghost Muncher - Lives" ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_NOTEQUALS,0x01) | |
| 714 | PORT_DIPSETTING( 0x0c, "1" ) | |
| 715 | PORT_DIPSETTING( 0x08, "2" ) | |
| 716 | PORT_DIPSETTING( 0x04, "3" ) | |
| 717 | PORT_DIPSETTING( 0x00, "5" ) | |
| 718 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 719 | ||
| 720 | PORT_START_TAG("GLIN0") /* Galaxian - IN0 */ | |
| 721 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 722 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 723 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 724 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 725 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 726 | PORT_DIPNAME( 0x20, 0x00, "Galaxian - Cabinet" ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 727 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 728 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 729 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 730 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 731 | ||
| 732 | PORT_START_TAG("GLIN1") /* Galaxian - IN1 */ | |
| 733 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 734 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 735 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 736 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 737 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 738 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 739 | PORT_DIPNAME( 0xc0, 0x00, "Galaxian - Coinage" ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 740 | PORT_DIPSETTING( 0x40, DEF_STR( 2C_1C ) ) | |
| 741 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 742 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_2C ) ) | |
| 743 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 744 | ||
| 745 | PORT_START_TAG("GLIN2") /* Galaxian - IN2 */ | |
| 746 | PORT_DIPNAME( 0x03, 0x01, "Galaxian - Bonus Life" ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 747 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 748 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 749 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 750 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 751 | PORT_DIPNAME( 0x04, 0x00, "Galaxian - Lives" ) PORT_CONDITION("GAMESEL",0x01,PORTCOND_EQUALS,0x01) | |
| 752 | PORT_DIPSETTING( 0x00, "3" ) | |
| 753 | PORT_DIPSETTING( 0x04, "5" ) | |
| 754 | PORT_DIPUNUSED( 0x08, 0x00 ) | |
| 755 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 756 | ||
| 757 | PORT_START_TAG("GAMESEL") /* fake - game select */ | |
| 758 | PORT_BIT( 0x01, 0x00, IPT_DIPSWITCH_NAME ) PORT_NAME("Game Select") PORT_CODE(KEYCODE_F1) PORT_TOGGLE PORT_CHANGED(gmgalax_game_changed, NULL) | |
| 759 | PORT_DIPSETTING( 0x00, "Ghost Muncher" ) | |
| 760 | PORT_DIPSETTING( 0x01, "Galaxian" ) | |
| 761 | INPUT_PORTS_END | |
| 762 | ||
| 763 | ||
| 764 | ||
| 765 | /************************************* | |
| 766 | * | |
| 767 | * Input Ports | |
| 768 | * Moon Cresta-derived games | |
| 769 | * | |
| 770 | *************************************/ | |
| 771 | ||
| 772 | static INPUT_PORTS_START( mooncrst ) | |
| 773 | PORT_START_TAG("IN0") | |
| 774 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 775 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 776 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY | |
| 777 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY | |
| 778 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 779 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 780 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 781 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 782 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* "reset" on schematics */ | |
| 783 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 784 | ||
| 785 | PORT_START_TAG("IN1") | |
| 786 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 787 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 788 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_2WAY PORT_COCKTAIL | |
| 789 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_2WAY PORT_COCKTAIL | |
| 790 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 791 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 792 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Bonus_Life ) ) | |
| 793 | PORT_DIPSETTING( 0x00, "30000" ) | |
| 794 | PORT_DIPSETTING( 0x40, "50000" ) | |
| 795 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Language ) ) | |
| 796 | PORT_DIPSETTING( 0x80, DEF_STR( English ) ) | |
| 797 | PORT_DIPSETTING( 0x00, DEF_STR( Japanese ) ) | |
| 798 | ||
| 799 | PORT_START_TAG("IN2") | |
| 800 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_A ) ) | |
| 801 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 802 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 803 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 804 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 805 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) ) | |
| 806 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 807 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 808 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 809 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 810 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 811 | INPUT_PORTS_END | |
| 812 | ||
| 813 | ||
| 814 | static INPUT_PORTS_START( mooncrsa ) | |
| 815 | PORT_INCLUDE(mooncrst) | |
| 816 | ||
| 817 | PORT_MODIFY("IN2") | |
| 818 | PORT_DIPUNUSED( 0x03, IP_ACTIVE_HIGH ) /* Not used due to code at 0x01c0 */ | |
| 819 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coinage ) ) | |
| 820 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 821 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 822 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 823 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 824 | INPUT_PORTS_END | |
| 825 | ||
| 826 | ||
| 827 | static INPUT_PORTS_START( mooncrsg ) | |
| 828 | PORT_INCLUDE(mooncrst) | |
| 829 | ||
| 830 | PORT_MODIFY("IN1") | |
| 831 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_HIGH ) /* Always non-Japanese due to code at 0x2f77 */ | |
| 832 | INPUT_PORTS_END | |
| 833 | ||
| 834 | ||
| 835 | static INPUT_PORTS_START( fantazia ) | |
| 836 | PORT_INCLUDE(mooncrst) | |
| 837 | ||
| 838 | PORT_MODIFY("IN1") | |
| 839 | PORT_DIPUNUSED( 0x80, IP_ACTIVE_HIGH ) /* Always non-Japanese due to code at 0x2f53 */ | |
| 840 | ||
| 841 | PORT_MODIFY("IN2") | |
| 842 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coin_B ) ) | |
| 843 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 844 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 845 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 846 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 847 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_A ) ) | |
| 848 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 849 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 850 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_3C ) ) | |
| 851 | PORT_DIPSETTING( 0x0c, DEF_STR( Free_Play ) ) | |
| 852 | INPUT_PORTS_END | |
| 853 | ||
| 854 | ||
| 855 | static INPUT_PORTS_START( eagle2 ) | |
| 856 | PORT_INCLUDE(mooncrst) | |
| 857 | ||
| 858 | PORT_MODIFY("IN2") | |
| 859 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Coinage ) ) | |
| 860 | PORT_DIPSETTING( 0x03, DEF_STR( 4C_1C ) ) | |
| 861 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_1C ) ) | |
| 862 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 863 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 864 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Free_Play ) ) /* Not used due to code at 0x01c0, but "Free Play" is checked */ | |
| 865 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 866 | // PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 867 | // PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) | |
| 868 | PORT_DIPSETTING( 0x0c, DEF_STR( On ) ) | |
| 869 | INPUT_PORTS_END | |
| 870 | ||
| 871 | ||
| 872 | static INPUT_PORTS_START( smooncrs ) | |
| 873 | PORT_INCLUDE(mooncrst) | |
| 874 | ||
| 875 | PORT_MODIFY("IN1") | |
| 876 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not read due to code at 0x2b1c and 0x3313 */ | |
| 877 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not read due to code at 0x2b1c and 0x3313 */ | |
| 878 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Not read due to code at 0x2b1c and 0x3313 */ | |
| 879 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) /* code at 0x2962 (0x2f68 in spcdrag) */ | |
| 880 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) | |
| 881 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 882 | PORT_DIPNAME( 0x80, 0x80, "Player's Bullet Speed" ) /* code at 0x0007 (0x2f53 in spcdrag) */ | |
| 883 | PORT_DIPSETTING( 0x00, "Slow" ) | |
| 884 | PORT_DIPSETTING( 0x80, "Fast" ) | |
| 885 | /* Bonus life is always '50000' due to code at 0x2f68 */ | |
| 886 | /* Language is always non-Japanese due to code at 0x2f53 */ | |
| 887 | INPUT_PORTS_END | |
| 888 | ||
| 889 | ||
| 890 | static INPUT_PORTS_START( mooncrgx ) | |
| 891 | PORT_INCLUDE(mooncrst) | |
| 892 | ||
| 893 | PORT_MODIFY("IN1") | |
| 894 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_A ) ) | |
| 895 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 896 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_1C ) ) | |
| 897 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coin_B ) ) | |
| 898 | PORT_DIPSETTING( 0x80, DEF_STR( 1C_3C ) ) | |
| 899 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) | |
| 900 | ||
| 901 | PORT_MODIFY("IN2") | |
| 902 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Bonus_Life ) ) | |
| 903 | PORT_DIPSETTING( 0x01, "30000" ) | |
| 904 | PORT_DIPSETTING( 0x00, "50000" ) | |
| 905 | PORT_DIPUNUSED( 0x02, 0x00 ) | |
| 906 | PORT_DIPUNUSED( 0x04, 0x00 ) /* Always non-Japanese due to code removed at 0x2f4b */ | |
| 907 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 908 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 909 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 910 | INPUT_PORTS_END | |
| 911 | ||
| 912 | ||
| 913 | INPUT_PORTS_START( moonqsr ) | |
| 914 | PORT_INCLUDE(mooncrst) | |
| 915 | ||
| 916 | PORT_MODIFY("IN1") | |
| 917 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Difficulty ) ) | |
| 918 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 919 | PORT_DIPSETTING( 0x40, DEF_STR( Medium ) ) | |
| 920 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) | |
| 921 | PORT_DIPSETTING( 0xc0, DEF_STR( Hardest ) ) | |
| 922 | INPUT_PORTS_END | |
| 923 | ||
| 924 | ||
| 925 | INPUT_PORTS_START( moonal2 ) | |
| 926 | PORT_INCLUDE(galaxian) | |
| 927 | ||
| 928 | PORT_MODIFY("IN2") | |
| 929 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) | |
| 930 | PORT_DIPSETTING( 0x01, "4000" ) | |
| 931 | PORT_DIPSETTING( 0x02, "5000" ) | |
| 932 | PORT_DIPSETTING( 0x03, "7000" ) | |
| 933 | PORT_DIPSETTING( 0x00, DEF_STR( None ) ) | |
| 934 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 935 | PORT_DIPSETTING( 0x00, "3" ) | |
| 936 | PORT_DIPSETTING( 0x04, "5" ) | |
| 937 | PORT_DIPUNUSED( 0x08, 0x00 ) | |
| 938 | INPUT_PORTS_END | |
| 939 | ||
| 940 | ||
| 941 | INPUT_PORTS_START( skybase ) | |
| 942 | PORT_INCLUDE(mooncrst) | |
| 943 | ||
| 944 | PORT_MODIFY("IN0") | |
| 945 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 946 | ||
| 947 | PORT_MODIFY("IN1") | |
| 948 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Coinage ) ) | |
| 949 | PORT_DIPSETTING( 0x80, "1C/1C (2 to start)" ) | |
| 950 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 951 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) ) | |
| 952 | PORT_DIPSETTING( 0xc0, DEF_STR( Free_Play ) ) | |
| 953 | ||
| 954 | PORT_MODIFY("IN2") | |
| 955 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 956 | PORT_DIPSETTING( 0x00, "3" ) | |
| 957 | PORT_DIPSETTING( 0x01, "4" ) | |
| 958 | PORT_DIPSETTING( 0x02, "5" ) | |
| 959 | PORT_DIPSETTING( 0x03, "Infinite (Cheat)") | |
| 960 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) ) | |
| 961 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 962 | PORT_DIPSETTING( 0x04, "15000" ) | |
| 963 | PORT_DIPSETTING( 0x08, "20000" ) | |
| 964 | PORT_DIPSETTING( 0x0c, DEF_STR( None ) ) | |
| 965 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 966 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 967 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 968 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 969 | INPUT_PORTS_END | |
| 970 | ||
| 971 | ||
| 972 | INPUT_PORTS_START( jumpbug ) | |
| 973 | PORT_START_TAG("IN0") | |
| 974 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 975 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 976 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 977 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 978 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 979 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Cabinet ) ) | |
| 980 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 981 | PORT_DIPSETTING( 0x20, DEF_STR( Cocktail ) ) | |
| 982 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 983 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 984 | ||
| 985 | PORT_START_TAG("IN1") | |
| 986 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 987 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 988 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 989 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 990 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 991 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 992 | PORT_DIPNAME( 0x40, 0x00, "Difficulty ?" ) | |
| 993 | PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) | |
| 994 | PORT_DIPSETTING( 0x40, DEF_STR( Easy ) ) | |
| 995 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 996 | ||
| 997 | PORT_START_TAG("IN2") | |
| 998 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 999 | PORT_DIPSETTING( 0x01, "3" ) | |
| 1000 | PORT_DIPSETTING( 0x02, "4" ) | |
| 1001 | PORT_DIPSETTING( 0x03, "5" ) | |
| 1002 | PORT_DIPSETTING( 0x00, "Infinite (Cheat)") | |
| 1003 | PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coinage ) ) | |
| 1004 | PORT_DIPSETTING( 0x04, "A 2C/1C B 2C/1C" ) | |
| 1005 | PORT_DIPSETTING( 0x08, "A 2C/1C B 1C/3C" ) | |
| 1006 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/1C" ) | |
| 1007 | PORT_DIPSETTING( 0x0c, "A 1C/1C B 1C/6C" ) | |
| 1008 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1009 | INPUT_PORTS_END | |
| 1010 | ||
| 1011 | ||
| 1012 | INPUT_PORTS_START( levers ) | |
| 1013 | PORT_START_TAG("IN0") | |
| 1014 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1015 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1016 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1017 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1018 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1019 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1020 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1021 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1022 | ||
| 1023 | PORT_START_TAG("IN1") | |
| 1024 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1025 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1026 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1027 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1028 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1029 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1030 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1031 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1032 | ||
| 1033 | PORT_START_TAG("IN2") | |
| 1034 | PORT_DIPUNKNOWN( 0x01, 0x01 ) /* probably unused */ | |
| 1035 | PORT_DIPUNKNOWN( 0x02, 0x02 ) /* probably unused */ | |
| 1036 | PORT_DIPNAME( 0x04, 0x00, "Leave On" ) /* used - MUST be ON */ | |
| 1037 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) | |
| 1038 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1039 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Free_Play ) ) | |
| 1040 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1041 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 1042 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1043 | INPUT_PORTS_END | |
| 1044 | ||
| 1045 | ||
| 1046 | INPUT_PORTS_START( checkman ) | |
| 1047 | PORT_START_TAG("IN0") | |
| 1048 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1049 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1050 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 1051 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 1052 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL PORT_NAME("P2 Tiles Right") | |
| 1053 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 1054 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 1055 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 1056 | ||
| 1057 | PORT_START_TAG("IN1") | |
| 1058 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("Start 1 / P1 Tiles Left")/* also p1 tiles left */ | |
| 1059 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) PORT_NAME("Start 2 / P1 Tiles Right")/* also p1 tiles right */ | |
| 1060 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 1061 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 1062 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL PORT_NAME("P2 Tiles Left")/* p2 tiles left */ | |
| 1063 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 1064 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Coinage ) ) | |
| 1065 | PORT_DIPSETTING( 0x40, "A 2C/1C B 1C/3C" ) | |
| 1066 | PORT_DIPSETTING( 0x00, "A 1C/1C B 1C/6C" ) | |
| 1067 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Cabinet ) ) | |
| 1068 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1069 | PORT_DIPSETTING( 0x80, DEF_STR( Cocktail ) ) | |
| 1070 | ||
| 1071 | PORT_START_TAG("IN2") | |
| 1072 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 1073 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1074 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1075 | PORT_DIPSETTING( 0x02, "5" ) | |
| 1076 | PORT_DIPSETTING( 0x03, "6" ) | |
| 1077 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1078 | PORT_DIPSETTING( 0x00, "100000" ) | |
| 1079 | PORT_DIPSETTING( 0x04, "200000" ) | |
| 1080 | PORT_DIPNAME( 0x08, 0x00, "Difficulty Increases At Level" ) | |
| 1081 | PORT_DIPSETTING( 0x08, "3" ) | |
| 1082 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1083 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1084 | INPUT_PORTS_END | |
| 1085 | ||
| 1086 | ||
| 1087 | INPUT_PORTS_START( checkmaj ) | |
| 1088 | PORT_INCLUDE(checkman) | |
| 1089 | ||
| 1090 | PORT_MODIFY("IN0") | |
| 1091 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1092 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1093 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 1094 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 1095 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 1096 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2) PORT_COCKTAIL PORT_NAME("P2 Tiles Right") | |
| 1097 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 1098 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 1099 | ||
| 1100 | PORT_MODIFY("IN1") | |
| 1101 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1102 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1103 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 1104 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 1105 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 1106 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1) PORT_COCKTAIL PORT_NAME("P2 Tiles Left") | |
| 1107 | ||
| 1108 | PORT_MODIFY("IN2") | |
| 1109 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("P1 Tiles Right") | |
| 1110 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("P1 Tiles Left") | |
| 1111 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1112 | INPUT_PORTS_END | |
| 1113 | ||
| 1114 | ||
| 1115 | INPUT_PORTS_START( dingo ) | |
| 1116 | PORT_START_TAG("IN0") | |
| 1117 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1118 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1119 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) | |
| 1120 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 1121 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 1122 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL /* 1st Button 1 */ | |
| 1123 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 1124 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 1125 | ||
| 1126 | PORT_START_TAG("IN1") | |
| 1127 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1128 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1129 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_COCKTAIL | |
| 1130 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 1131 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 1132 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL /* 2nd Button 1 */ | |
| 1133 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) | |
| 1134 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1135 | PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) ) | |
| 1136 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Coinage ) ) | |
| 1137 | PORT_DIPSETTING( 0x80, "A 1C/1C B 1C/5C" ) | |
| 1138 | PORT_DIPSETTING( 0x00, "A 2C/1C B 1C/3C" ) | |
| 1139 | ||
| 1140 | PORT_START_TAG("IN2") | |
| 1141 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Difficulty ) ) | |
| 1142 | PORT_DIPSETTING( 0x00, DEF_STR( Easiest ) ) | |
| 1143 | PORT_DIPSETTING( 0x01, DEF_STR( Easy ) ) | |
| 1144 | PORT_DIPSETTING( 0x02, DEF_STR( Hard ) ) | |
| 1145 | PORT_DIPSETTING( 0x03, DEF_STR( Hardest ) ) | |
| 1146 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Lives ) ) | |
| 1147 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1148 | PORT_DIPSETTING( 0x04, "4" ) | |
| 1149 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1150 | PORT_DIPSETTING( 0x00, "20000" ) | |
| 1151 | PORT_DIPSETTING( 0x08, "40000" ) | |
| 1152 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* Yes, the game reads both of these */ | |
| 1153 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) /* Check code at 0x22e1 */ | |
| 1154 | INPUT_PORTS_END | |
| 1155 | ||
| 1156 | ||
| 1157 | INPUT_PORTS_START( mshuttle ) | |
| 1158 | PORT_START_TAG("IN0") | |
| 1159 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1160 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1161 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) | |
| 1162 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) | |
| 1163 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1164 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) | |
| 1165 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1166 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1167 | ||
| 1168 | PORT_START_TAG("IN1") | |
| 1169 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1170 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1171 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_COCKTAIL | |
| 1172 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_COCKTAIL | |
| 1173 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1174 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_COCKTAIL | |
| 1175 | PORT_SERVICE( 0x40, IP_ACTIVE_HIGH ) | |
| 1176 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Cabinet ) ) | |
| 1177 | PORT_DIPSETTING( 0x80, DEF_STR( Upright ) ) | |
| 1178 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1179 | ||
| 1180 | PORT_START_TAG("IN2") | |
| 1181 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 1182 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1183 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1184 | PORT_DIPSETTING( 0x02, "5" ) | |
| 1185 | PORT_DIPSETTING( 0x03, "6" ) | |
| 1186 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1187 | PORT_DIPSETTING( 0x00, "20000" ) | |
| 1188 | PORT_DIPSETTING( 0x04, "30000" ) | |
| 1189 | PORT_DIPNAME( 0x18, 0x00, DEF_STR( Coin_A ) ) | |
| 1190 | PORT_DIPSETTING( 0x18, DEF_STR( 4C_1C ) ) | |
| 1191 | PORT_DIPSETTING( 0x10, DEF_STR( 3C_1C ) ) | |
| 1192 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 1193 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1194 | PORT_DIPNAME( 0x60, 0x00, DEF_STR( Coin_B ) ) | |
| 1195 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1196 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_2C ) ) | |
| 1197 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) | |
| 1198 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_4C ) ) | |
| 1199 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 1200 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1201 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 1202 | INPUT_PORTS_END | |
| 1203 | ||
| 1204 | ||
| 1205 | INPUT_PORTS_START( kingball ) | |
| 1206 | PORT_INCLUDE(galaxian) | |
| 1207 | ||
| 1208 | PORT_MODIFY("IN0") | |
| 1209 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(kingball_muxbit_r, 0) | |
| 1210 | /* Relating to above port:Hack? - possibly multiplexed via writes to $b003 */ | |
| 1211 | //PORT_DIPNAME( 0x40, 0x40, "Speech" ) | |
| 1212 | //PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1213 | //PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 1214 | ||
| 1215 | PORT_MODIFY("IN1") | |
| 1216 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(kingball_noise_r, 0) /* NOISE line */ | |
| 1217 | ||
| 1218 | PORT_MODIFY("IN2") | |
| 1219 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1220 | PORT_DIPSETTING( 0x00, "10000" ) | |
| 1221 | PORT_DIPSETTING( 0x01, "12000" ) | |
| 1222 | PORT_DIPSETTING( 0x02, "15000" ) | |
| 1223 | PORT_DIPSETTING( 0x03, DEF_STR( None ) ) | |
| 1224 | ||
| 1225 | PORT_START_TAG("FAKE") | |
| 1226 | PORT_SERVICE( 0x01, IP_ACTIVE_HIGH ) | |
| 1227 | PORT_DIPNAME( 0x02, 0x02, "Speech" ) | |
| 1228 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 1229 | PORT_DIPSETTING( 0x02, DEF_STR( On ) ) | |
| 1230 | INPUT_PORTS_END | |
| 1231 | ||
| 1232 | ||
| 1233 | ||
| 1234 | /************************************* | |
| 1235 | * | |
| 1236 | * Input Ports | |
| 1237 | * Konami games | |
| 1238 | * | |
| 1239 | *************************************/ | |
| 1240 | ||
| 1241 | INPUT_PORTS_START( frogger ) | |
| 1242 | PORT_START_TAG("IN0") | |
| 1243 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 1244 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* 1P shoot2 - unused */ | |
| 1245 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1246 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* 1P shoot1 - unused */ | |
| 1247 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1248 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1249 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1250 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1251 | ||
| 1252 | PORT_START_TAG("IN1") | |
| 1253 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 1254 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1255 | PORT_DIPSETTING( 0x01, "5" ) | |
| 1256 | PORT_DIPSETTING( 0x02, "7" ) | |
| 1257 | PORT_DIPSETTING( 0x03, "256 (Cheat)") | |
| 1258 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* 2P shoot2 - unused */ | |
| 1259 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* 2P shoot1 - unused */ | |
| 1260 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1261 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1262 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1263 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1264 | ||
| 1265 | PORT_START_TAG("IN2") | |
| 1266 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1267 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 1268 | PORT_DIPSETTING( 0x02, "A 2/1 B 2/1 C 2/1" ) | |
| 1269 | PORT_DIPSETTING( 0x04, "A 2/1 B 1/3 C 2/1" ) | |
| 1270 | PORT_DIPSETTING( 0x00, "A 1/1 B 1/1 C 1/1" ) | |
| 1271 | PORT_DIPSETTING( 0x06, "A 1/1 B 1/6 C 1/1" ) | |
| 1272 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1273 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1274 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1275 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 1276 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1277 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1278 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1279 | INPUT_PORTS_END | |
| 1280 | ||
| 1281 | ||
| 1282 | INPUT_PORTS_START( froggrmc ) | |
| 1283 | PORT_START_TAG("IN0") | |
| 1284 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1285 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1286 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1287 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1288 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 1289 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1290 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1291 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SERVICE1 ) | |
| 1292 | ||
| 1293 | PORT_START_TAG("IN1") | |
| 1294 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1295 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1296 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1297 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1298 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 1299 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1300 | PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Lives ) ) | |
| 1301 | PORT_DIPSETTING( 0xc0, "3" ) | |
| 1302 | PORT_DIPSETTING( 0x80, "5" ) | |
| 1303 | PORT_DIPSETTING( 0x40, "7" ) | |
| 1304 | PORT_DIPSETTING( 0x00, "256 (Cheat)") | |
| 1305 | ||
| 1306 | PORT_START_TAG("IN2") | |
| 1307 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Cabinet ) ) | |
| 1308 | PORT_DIPSETTING( 0x01, DEF_STR( Upright ) ) | |
| 1309 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1310 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Coinage ) ) | |
| 1311 | PORT_DIPSETTING( 0x02, "A 2/1 B 2/1 C 2/1" ) | |
| 1312 | PORT_DIPSETTING( 0x04, "A 2/1 B 1/3 C 2/1" ) | |
| 1313 | PORT_DIPSETTING( 0x06, "A 1/1 B 1/1 C 1/1" ) | |
| 1314 | PORT_DIPSETTING( 0x00, "A 1/1 B 1/6 C 1/1" ) | |
| 1315 | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNKNOWN ) | |
| 1316 | INPUT_PORTS_END | |
| 1317 | ||
| 1318 | ||
| 1319 | INPUT_PORTS_START( frogg ) | |
| 1320 | PORT_INCLUDE(froggrmc) | |
| 1321 | ||
| 1322 | PORT_MODIFY("IN0") | |
| 1323 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SPECIAL ) // See notes | |
| 1324 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1325 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1326 | ||
| 1327 | PORT_MODIFY("IN1") | |
| 1328 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SPECIAL ) // See notes | |
| 1329 | ||
| 1330 | PORT_MODIFY("IN2") | |
| 1331 | PORT_DIPUNUSED( 0x02, 0x00 ) // not tested due to code at 0x3084 | |
| 1332 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Coinage ) ) // when "Cabinet" Dip Switch set to "Upright" | |
| 1333 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) // "A 1/1 B 1/6" if "Cabinet" Dip Switch set to "Cocktail" | |
| 1334 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_1C ) ) // "A 2/1 B 1/3" if "Cabinet" Dip Switch set to "Cocktail" | |
| 1335 | PORT_DIPUNUSED( 0x08, 0x00 ) | |
| 1336 | INPUT_PORTS_END | |
| 1337 | ||
| 1338 | ||
| 1339 | INPUT_PORTS_START( turtles ) | |
| 1340 | PORT_START_TAG("IN0") | |
| 1341 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 1342 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1343 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1344 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1345 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1346 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1347 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1348 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1349 | ||
| 1350 | PORT_START_TAG("IN1") | |
| 1351 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 1352 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1353 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1354 | PORT_DIPSETTING( 0x02, "5" ) | |
| 1355 | PORT_DIPSETTING( 0x03, "126 (Cheat)") | |
| 1356 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1357 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1358 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1359 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1360 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1361 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1362 | ||
| 1363 | PORT_START_TAG("IN2") | |
| 1364 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1365 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 1366 | PORT_DIPSETTING( 0x00, "A 1/1 B 2/1 C 1/1" ) | |
| 1367 | PORT_DIPSETTING( 0x02, "A 1/2 B 1/1 C 1/2" ) | |
| 1368 | PORT_DIPSETTING( 0x04, "A 1/3 B 3/1 C 1/3" ) | |
| 1369 | PORT_DIPSETTING( 0x06, "A 1/4 B 4/1 C 1/4" ) | |
| 1370 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1371 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1372 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1373 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 1374 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1375 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1376 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 1377 | INPUT_PORTS_END | |
| 1378 | ||
| 1379 | ||
| 1380 | INPUT_PORTS_START( turpin ) | |
| 1381 | PORT_INCLUDE(turtles) | |
| 1382 | ||
| 1383 | PORT_MODIFY("IN1") | |
| 1384 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 1385 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1386 | PORT_DIPSETTING( 0x01, "5" ) | |
| 1387 | PORT_DIPSETTING( 0x02, "7" ) | |
| 1388 | PORT_DIPSETTING( 0x03, "126 (Cheat)") | |
| 1389 | ||
| 1390 | PORT_MODIFY("IN2") | |
| 1391 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 1392 | PORT_DIPSETTING( 0x06, DEF_STR( 4C_1C ) ) | |
| 1393 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) | |
| 1394 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1395 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 1396 | ||
| 1397 | PORT_START_TAG("IN3") | |
| 1398 | PORT_BIT( 0xff, 0x00, IPT_UNKNOWN ) | |
| 1399 | INPUT_PORTS_END | |
| 1400 | ||
| 1401 | ||
| 1402 | INPUT_PORTS_START( amidar ) | |
| 1403 | PORT_INCLUDE(turtles) | |
| 1404 | ||
| 1405 | PORT_MODIFY("IN1") | |
| 1406 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 1407 | PORT_DIPSETTING( 0x03, "3" ) | |
| 1408 | PORT_DIPSETTING( 0x02, "4" ) | |
| 1409 | PORT_DIPSETTING( 0x01, "5" ) | |
| 1410 | PORT_DIPSETTING( 0x00, "255 (Cheat)") | |
| 1411 | ||
| 1412 | PORT_MODIFY("IN2") | |
| 1413 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1414 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1415 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1416 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1417 | PORT_DIPSETTING( 0x00, "30000 50000" ) | |
| 1418 | PORT_DIPSETTING( 0x04, "50000 50000" ) | |
| 1419 | ||
| 1420 | PORT_START_TAG("IN3") | |
| 1421 | PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coin_A ) ) | |
| 1422 | PORT_DIPSETTING( 0x04, DEF_STR( 4C_1C ) ) | |
| 1423 | PORT_DIPSETTING( 0x0a, DEF_STR( 3C_1C ) ) | |
| 1424 | PORT_DIPSETTING( 0x01, DEF_STR( 2C_1C ) ) | |
| 1425 | PORT_DIPSETTING( 0x02, DEF_STR( 3C_2C ) ) | |
| 1426 | PORT_DIPSETTING( 0x08, DEF_STR( 4C_3C ) ) | |
| 1427 | PORT_DIPSETTING( 0x0f, DEF_STR( 1C_1C ) ) | |
| 1428 | PORT_DIPSETTING( 0x0c, DEF_STR( 3C_4C ) ) | |
| 1429 | PORT_DIPSETTING( 0x0e, DEF_STR( 2C_3C ) ) | |
| 1430 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_2C ) ) | |
| 1431 | PORT_DIPSETTING( 0x06, DEF_STR( 2C_5C ) ) | |
| 1432 | PORT_DIPSETTING( 0x0b, DEF_STR( 1C_3C ) ) | |
| 1433 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) ) | |
| 1434 | PORT_DIPSETTING( 0x0d, DEF_STR( 1C_5C ) ) | |
| 1435 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_6C ) ) | |
| 1436 | PORT_DIPSETTING( 0x09, DEF_STR( 1C_7C ) ) | |
| 1437 | PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) ) | |
| 1438 | PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coin_B ) ) | |
| 1439 | PORT_DIPSETTING( 0x40, DEF_STR( 4C_1C ) ) | |
| 1440 | PORT_DIPSETTING( 0xa0, DEF_STR( 3C_1C ) ) | |
| 1441 | PORT_DIPSETTING( 0x10, DEF_STR( 2C_1C ) ) | |
| 1442 | PORT_DIPSETTING( 0x20, DEF_STR( 3C_2C ) ) | |
| 1443 | PORT_DIPSETTING( 0x80, DEF_STR( 4C_3C ) ) | |
| 1444 | PORT_DIPSETTING( 0xf0, DEF_STR( 1C_1C ) ) | |
| 1445 | PORT_DIPSETTING( 0xc0, DEF_STR( 3C_4C ) ) | |
| 1446 | PORT_DIPSETTING( 0xe0, DEF_STR( 2C_3C ) ) | |
| 1447 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_2C ) ) | |
| 1448 | PORT_DIPSETTING( 0x60, DEF_STR( 2C_5C ) ) | |
| 1449 | PORT_DIPSETTING( 0xb0, DEF_STR( 1C_3C ) ) | |
| 1450 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_4C ) ) | |
| 1451 | PORT_DIPSETTING( 0xd0, DEF_STR( 1C_5C ) ) | |
| 1452 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_6C ) ) | |
| 1453 | PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) ) | |
| 1454 | PORT_DIPSETTING( 0x00, "Disable All Coins" ) | |
| 1455 | INPUT_PORTS_END | |
| 1456 | ||
| 1457 | ||
| 1458 | INPUT_PORTS_START( amidaru ) | |
| 1459 | PORT_INCLUDE(amidar) | |
| 1460 | ||
| 1461 | PORT_MODIFY("IN2") | |
| 1462 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1463 | PORT_DIPSETTING( 0x00, "30000 70000" ) | |
| 1464 | PORT_DIPSETTING( 0x04, "50000 80000" ) | |
| 1465 | INPUT_PORTS_END | |
| 1466 | ||
| 1467 | ||
| 1468 | INPUT_PORTS_START( amidaro ) | |
| 1469 | PORT_INCLUDE(amidar) | |
| 1470 | ||
| 1471 | PORT_MODIFY("IN1") | |
| 1472 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 1473 | PORT_DIPSETTING( 0x03, "1" ) | |
| 1474 | PORT_DIPSETTING( 0x02, "2" ) | |
| 1475 | PORT_DIPSETTING( 0x01, "3" ) | |
| 1476 | PORT_DIPSETTING( 0x00, "4" ) | |
| 1477 | ||
| 1478 | PORT_MODIFY("IN2") | |
| 1479 | PORT_DIPNAME( 0x02, 0x00, "Level Progression" ) | |
| 1480 | PORT_DIPSETTING( 0x00, "Slow" ) | |
| 1481 | PORT_DIPSETTING( 0x02, "Fast" ) | |
| 1482 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1483 | PORT_DIPSETTING( 0x00, "30000 70000" ) | |
| 1484 | PORT_DIPSETTING( 0x04, "50000 80000" ) | |
| 1485 | INPUT_PORTS_END | |
| 1486 | ||
| 1487 | ||
| 1488 | INPUT_PORTS_START( amidars ) | |
| 1489 | PORT_INCLUDE(turtles) | |
| 1490 | ||
| 1491 | PORT_MODIFY("IN1") | |
| 1492 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 1493 | PORT_DIPSETTING( 0x03, "2" ) | |
| 1494 | PORT_DIPSETTING( 0x02, "3" ) | |
| 1495 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1496 | PORT_DIPSETTING( 0x00, "256 (Cheat)") | |
| 1497 | ||
| 1498 | PORT_MODIFY("IN2") | |
| 1499 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) ) | |
| 1500 | PORT_DIPSETTING( 0x00, "A 1/1 B 1/6" ) | |
| 1501 | PORT_DIPSETTING( 0x02, "A 2/1 B 1/3" ) | |
| 1502 | PORT_DIPUNKNOWN( 0x04, 0x00 ) | |
| 1503 | INPUT_PORTS_END | |
| 1504 | ||
| 1505 | ||
| 1506 | INPUT_PORTS_START( theend ) | |
| 1507 | PORT_START_TAG("IN0") | |
| 1508 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1509 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1510 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1511 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1512 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1513 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1514 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1515 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1516 | ||
| 1517 | PORT_START_TAG("IN1") | |
| 1518 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 1519 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1520 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1521 | PORT_DIPSETTING( 0x02, "5" ) | |
| 1522 | PORT_DIPSETTING( 0x03, "256 (Cheat)") | |
| 1523 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1524 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1525 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1526 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1527 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1528 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1529 | ||
| 1530 | PORT_START_TAG("IN2") | |
| 1531 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1532 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 1533 | PORT_DIPSETTING( 0x04, DEF_STR( 3C_1C ) ) | |
| 1534 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) | |
| 1535 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1536 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_2C ) ) | |
| 1537 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1538 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1539 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1540 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) /* output bits */ | |
| 1541 | INPUT_PORTS_END | |
| 1542 | ||
| 1543 | ||
| 1544 | INPUT_PORTS_START( scramble ) | |
| 1545 | PORT_START_TAG("IN0") | |
| 1546 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1547 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1548 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1549 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1550 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1551 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1552 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1553 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1554 | ||
| 1555 | PORT_START_TAG("IN1") | |
| 1556 | PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) ) | |
| 1557 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1558 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1559 | PORT_DIPSETTING( 0x02, "5" ) | |
| 1560 | PORT_DIPSETTING( 0x03, "255 (Cheat)") | |
| 1561 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1562 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1563 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1564 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1565 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1566 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1567 | ||
| 1568 | PORT_START_TAG("IN2") | |
| 1569 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1570 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 1571 | PORT_DIPSETTING( 0x00, "A 1/1 B 2/1 C 1/1" ) | |
| 1572 | PORT_DIPSETTING( 0x02, "A 1/2 B 1/1 C 1/2" ) | |
| 1573 | PORT_DIPSETTING( 0x04, "A 1/3 B 3/1 C 1/3" ) | |
| 1574 | PORT_DIPSETTING( 0x06, "A 1/4 B 4/1 C 1/4" ) | |
| 1575 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1576 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1577 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1578 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1579 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(scramble_protection_alt_r, (void *)0) /* protection bit */ | |
| 1580 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1581 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM(scramble_protection_alt_r, (void *)1) /* protection bit */ | |
| 1582 | INPUT_PORTS_END | |
| 1583 | ||
| 1584 | ||
| 1585 | INPUT_PORTS_START( strfbomb ) | |
| 1586 | PORT_INCLUDE(scramble) | |
| 1587 | ||
| 1588 | PORT_MODIFY("IN2") | |
| 1589 | PORT_DIPNAME( 0x06, 0x00, DEF_STR( Coinage ) ) | |
| 1590 | PORT_DIPSETTING( 0x00, "A 1/2 B 4/1 C 1/2" ) | |
| 1591 | PORT_DIPSETTING( 0x02, "A 1/3 B 2/1 C 1/3" ) | |
| 1592 | PORT_DIPSETTING( 0x04, "A 1/4 B 3/1 C 1/4" ) | |
| 1593 | PORT_DIPSETTING( 0x06, "A 1/5 B 1/1 C 1/5" ) | |
| 1594 | INPUT_PORTS_END | |
| 1595 | ||
| 1596 | ||
| 1597 | INPUT_PORTS_START( explorer ) | |
| 1598 | PORT_START_TAG("IN0") | |
| 1599 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1600 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON2 ) | |
| 1601 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1602 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 1603 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1604 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1605 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 1606 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1607 | ||
| 1608 | PORT_START_TAG("IN1") | |
| 1609 | PORT_DIPUNKNOWN( 0x01, 0x00 ) | |
| 1610 | PORT_DIPUNKNOWN( 0x02, 0x00 ) | |
| 1611 | PORT_DIPUNKNOWN( 0x04, 0x00 ) | |
| 1612 | PORT_DIPUNKNOWN( 0x08, 0x00 ) | |
| 1613 | PORT_DIPUNKNOWN( 0x10, 0x00 ) | |
| 1614 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN ) /* pressing this disables the coins */ | |
| 1615 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 1616 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 1617 | ||
| 1618 | PORT_START_TAG("IN2") | |
| 1619 | PORT_DIPNAME( 0x0f, 0x00, DEF_STR( Coin_A ) ) | |
| 1620 | PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) ) | |
| 1621 | PORT_DIPSETTING( 0x09, DEF_STR( 2C_2C ) ) | |
| 1622 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1623 | PORT_DIPSETTING( 0x0a, DEF_STR( 2C_3C ) ) | |
| 1624 | PORT_DIPSETTING( 0x0b, DEF_STR( 2C_4C ) ) | |
| 1625 | PORT_DIPSETTING( 0x01, DEF_STR( 1C_2C ) ) | |
| 1626 | PORT_DIPSETTING( 0x0c, DEF_STR( 2C_5C ) ) | |
| 1627 | PORT_DIPSETTING( 0x0d, DEF_STR( 2C_6C ) ) | |
| 1628 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_3C ) ) | |
| 1629 | PORT_DIPSETTING( 0x0e, DEF_STR( 2C_7C ) ) | |
| 1630 | PORT_DIPSETTING( 0x0f, DEF_STR( 2C_8C ) ) | |
| 1631 | PORT_DIPSETTING( 0x03, DEF_STR( 1C_4C ) ) | |
| 1632 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_5C ) ) | |
| 1633 | PORT_DIPSETTING( 0x05, DEF_STR( 1C_6C ) ) | |
| 1634 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_7C ) ) | |
| 1635 | PORT_DIPSETTING( 0x07, DEF_STR( 1C_8C ) ) | |
| 1636 | PORT_DIPNAME( 0xf0, 0x00, DEF_STR( Coin_B ) ) | |
| 1637 | PORT_DIPSETTING( 0x80, DEF_STR( 2C_1C ) ) | |
| 1638 | PORT_DIPSETTING( 0x90, DEF_STR( 2C_2C ) ) | |
| 1639 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) | |
| 1640 | PORT_DIPSETTING( 0xa0, DEF_STR( 2C_3C ) ) | |
| 1641 | PORT_DIPSETTING( 0xb0, DEF_STR( 2C_4C ) ) | |
| 1642 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_2C ) ) | |
| 1643 | PORT_DIPSETTING( 0xc0, DEF_STR( 2C_5C ) ) | |
| 1644 | PORT_DIPSETTING( 0xd0, DEF_STR( 2C_6C ) ) | |
| 1645 | PORT_DIPSETTING( 0x20, DEF_STR( 1C_3C ) ) | |
| 1646 | PORT_DIPSETTING( 0xe0, DEF_STR( 2C_7C ) ) | |
| 1647 | PORT_DIPSETTING( 0xf0, DEF_STR( 2C_8C ) ) | |
| 1648 | PORT_DIPSETTING( 0x30, DEF_STR( 1C_4C ) ) | |
| 1649 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_5C ) ) | |
| 1650 | PORT_DIPSETTING( 0x50, DEF_STR( 1C_6C ) ) | |
| 1651 | PORT_DIPSETTING( 0x60, DEF_STR( 1C_7C ) ) | |
| 1652 | PORT_DIPSETTING( 0x70, DEF_STR( 1C_8C ) ) | |
| 1653 | ||
| 1654 | PORT_START_TAG("IN3") | |
| 1655 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 1656 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1657 | PORT_DIPSETTING( 0x01, "3" ) | |
| 1658 | PORT_DIPSETTING( 0x02, "4" ) | |
| 1659 | PORT_DIPSETTING( 0x03, "5" ) | |
| 1660 | PORT_DIPNAME( 0x1c, 0x00, DEF_STR( Bonus_Life ) ) | |
| 1661 | PORT_DIPSETTING( 0x04, "10000" ) | |
| 1662 | PORT_DIPSETTING( 0x0c, "15000" ) | |
| 1663 | PORT_DIPSETTING( 0x14, "20000" ) | |
| 1664 | PORT_DIPSETTING( 0x1c, "25000" ) | |
| 1665 | PORT_DIPSETTING( 0x00, "30000" ) | |
| 1666 | PORT_DIPSETTING( 0x08, "50000" ) | |
| 1667 | PORT_DIPSETTING( 0x10, "70000" ) | |
| 1668 | PORT_DIPSETTING( 0x18, "90000" ) | |
| 1669 | PORT_DIPUNKNOWN( 0x20, 0x00 ) | |
| 1670 | PORT_DIPUNKNOWN( 0x40, 0x00 ) | |
| 1671 | PORT_SERVICE( 0x80, IP_ACTIVE_HIGH ) | |
| 1672 | INPUT_PORTS_END | |
| 1673 | ||
| 1674 | ||
| 1675 | INPUT_PORTS_START( atlantis ) | |
| 1676 | PORT_START_TAG("IN0") | |
| 1677 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1678 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1679 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* probably unused */ | |
| 1680 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1681 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1682 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1683 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1684 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1685 | ||
| 1686 | PORT_START_TAG("IN1") | |
| 1687 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) | |
| 1688 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1689 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 1690 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Lives ) ) | |
| 1691 | PORT_DIPSETTING( 0x02, "3" ) | |
| 1692 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1693 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1694 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1695 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1696 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1697 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1698 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1699 | ||
| 1700 | PORT_START_TAG("IN2") | |
| 1701 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1702 | PORT_DIPNAME( 0x0e, 0x00, DEF_STR( Coinage ) ) | |
| 1703 | PORT_DIPSETTING( 0x02, "A 1/3 B 2/1" ) | |
| 1704 | PORT_DIPSETTING( 0x00, "A 1/6 B 1/1" ) | |
| 1705 | PORT_DIPSETTING( 0x04, "A 1/99 B 1/99") | |
| 1706 | /* all the other combos give 99 credits */ | |
| 1707 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1708 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1709 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1710 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1711 | INPUT_PORTS_END | |
| 1712 | ||
| 1713 | ||
| 1714 | INPUT_PORTS_START( scorpion ) | |
| 1715 | PORT_START_TAG("IN0") | |
| 1716 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1717 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1718 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1719 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1720 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1721 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1722 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1723 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1724 | ||
| 1725 | PORT_START_TAG("IN1") | |
| 1726 | PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) ) | |
| 1727 | PORT_DIPSETTING( 0x03, "3") | |
| 1728 | PORT_DIPSETTING( 0x02, "4" ) | |
| 1729 | PORT_DIPSETTING( 0x01, "5" ) | |
| 1730 | PORT_DIPSETTING( 0x00, "255" ) | |
| 1731 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1732 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1733 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1734 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1735 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1736 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1737 | ||
| 1738 | PORT_START_TAG("IN2") | |
| 1739 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1740 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) | |
| 1741 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1742 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1743 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) ) | |
| 1744 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1745 | PORT_DIPSETTING( 0x04, DEF_STR( Cocktail ) ) | |
| 1746 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Coinage ) ) | |
| 1747 | PORT_DIPSETTING( 0x08, "A 1/1 B 1/1" ) | |
| 1748 | PORT_DIPSETTING( 0x00, "A 1/1 B 1/3" ) | |
| 1749 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1750 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1751 | PORT_DIPNAME( 0xa0, 0xa0, DEF_STR( Difficulty ) ) | |
| 1752 | PORT_DIPSETTING( 0xa0, DEF_STR( Normal ) ) | |
| 1753 | PORT_DIPSETTING( 0x80, DEF_STR( Medium ) ) | |
| 1754 | PORT_DIPSETTING( 0x20, DEF_STR( Hard ) ) | |
| 1755 | PORT_DIPSETTING( 0x00, DEF_STR( Very_Hard ) ) | |
| 1756 | INPUT_PORTS_END | |
| 1757 | ||
| 1758 | ||
| 1759 | INPUT_PORTS_START( scorpnmc ) | |
| 1760 | PORT_START_TAG("IN0") /* 0xa000 */ | |
| 1761 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 ) // COIN2? (it ALWAYS adds 1 credit) | |
| 1762 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 1763 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1764 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1765 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1766 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1767 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1768 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1769 | ||
| 1770 | PORT_START_TAG("IN1") /* 0xa800 */ | |
| 1771 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 ) PORT_NAME("Start 1 / P1 Button 1") /* also P1 Button 1 */ | |
| 1772 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) PORT_NAME("Start 2 / P1 Button 2") /* also P1 Button 2 */ | |
| 1773 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1774 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1775 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1776 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1777 | PORT_DIPNAME( 0xc0, 0x40, DEF_STR( Difficulty ) ) // Check code at 0x0118 | |
| 1778 | PORT_DIPSETTING( 0x00, DEF_STR( Easy ) ) | |
| 1779 | PORT_DIPSETTING( 0x40, DEF_STR( Normal ) ) | |
| 1780 | PORT_DIPSETTING( 0x80, DEF_STR( Hard ) ) | |
| 1781 | PORT_DIPSETTING( 0xc0, DEF_STR( Hardest ) ) | |
| 1782 | ||
| 1783 | PORT_START_TAG("IN2") /* 0xb001 */ | |
| 1784 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1785 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1786 | PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Lives ) ) // Check code at 0x00eb | |
| 1787 | PORT_DIPSETTING( 0x00, "2" ) | |
| 1788 | PORT_DIPSETTING( 0x04, "3" ) | |
| 1789 | PORT_DIPSETTING( 0x08, "4" ) | |
| 1790 | PORT_DIPSETTING( 0x0c, "5" ) | |
| 1791 | PORT_BIT( 0xf0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1792 | ||
| 1793 | PORT_START_TAG("IN3") /* 0xb002 */ | |
| 1794 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Cabinet ) ) // Check code at 0x00fe | |
| 1795 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1796 | PORT_DIPSETTING( 0x01, DEF_STR( Cocktail ) ) | |
| 1797 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Coinage ) ) | |
| 1798 | PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) | |
| 1799 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 1800 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 1801 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_3C ) ) | |
| 1802 | PORT_BIT( 0xf8, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 1803 | INPUT_PORTS_END | |
| 1804 | ||
| 1805 | ||
| 1806 | INPUT_PORTS_START( sfx ) | |
| 1807 | PORT_START_TAG("IN0") | |
| 1808 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2) | |
| 1809 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) // "Fire" left | |
| 1810 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1811 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) // "Fire" right | |
| 1812 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1) | |
| 1813 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1) | |
| 1814 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1815 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1816 | ||
| 1817 | PORT_START_TAG("IN1") | |
| 1818 | PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) | |
| 1819 | PORT_DIPSETTING( 0x02, "3" ) | |
| 1820 | PORT_DIPSETTING( 0x01, "4" ) | |
| 1821 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1822 | PORT_DIPSETTING( 0x03, "Invulnerability (Cheat)") | |
| 1823 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) // "Fire" left | |
| 1824 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) // "Fire" right | |
| 1825 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) | |
| 1826 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2) | |
| 1827 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1828 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1829 | ||
| 1830 | PORT_START_TAG("IN2") | |
| 1831 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2) | |
| 1832 | PORT_DIPNAME( 0x06, 0x06, DEF_STR( Coinage ) ) | |
| 1833 | PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) | |
| 1834 | PORT_DIPSETTING( 0x02, DEF_STR( 2C_1C ) ) | |
| 1835 | PORT_DIPSETTING( 0x06, DEF_STR( 1C_1C ) ) | |
| 1836 | PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) ) | |
| 1837 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1838 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1839 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1840 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) | |
| 1841 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused */ | |
| 1842 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) | |
| 1843 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* unused */ | |
| 1844 | INPUT_PORTS_END | |
| 1845 | ||
| 1846 | ||
| 1847 | INPUT_PORTS_START( scobra ) | |
| 1848 | PORT_START_TAG("IN0") | |
| 1849 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1850 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1851 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 ) | |
| 1852 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1853 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1854 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1855 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1856 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1857 | ||
| 1858 | PORT_START_TAG("IN1") | |
| 1859 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Allow_Continue ) ) | |
| 1860 | PORT_DIPSETTING( 0x00, DEF_STR( No ) ) | |
| 1861 | PORT_DIPSETTING( 0x01, DEF_STR( Yes ) ) | |
| 1862 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Lives ) ) | |
| 1863 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1864 | PORT_DIPSETTING( 0x02, "4" ) | |
| 1865 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1866 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1867 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1868 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 1869 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1870 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1871 | ||
| 1872 | PORT_START_TAG("IN2") | |
| 1873 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1874 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Coinage ) ) | |
| 1875 | PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) | |
| 1876 | PORT_DIPSETTING( 0x06, DEF_STR( 4C_3C ) ) | |
| 1877 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 1878 | PORT_DIPSETTING( 0x00, "1 Coin/99 Credits" ) | |
| 1879 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 1880 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) | |
| 1881 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) | |
| 1882 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1883 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1884 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1885 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1886 | INPUT_PORTS_END | |
| 1887 | ||
| 1888 | ||
| 1889 | INPUT_PORTS_START( scobras ) | |
| 1890 | PORT_INCLUDE(scobra) | |
| 1891 | ||
| 1892 | PORT_MODIFY("IN1") | |
| 1893 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Lives ) ) | |
| 1894 | PORT_DIPSETTING( 0x00, "3" ) | |
| 1895 | PORT_DIPSETTING( 0x02, "5" ) | |
| 1896 | INPUT_PORTS_END | |
| 1897 | ||
| 1898 | ||
| 1899 | /* cocktail mode is N/A */ | |
| 1900 | INPUT_PORTS_START( losttomb ) | |
| 1901 | PORT_START_TAG("IN0") | |
| 1902 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1903 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1904 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_UP ) PORT_8WAY | |
| 1905 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY | |
| 1906 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_RIGHT) PORT_8WAY | |
| 1907 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY | |
| 1908 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1909 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1910 | ||
| 1911 | PORT_START_TAG("IN1") | |
| 1912 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 1913 | PORT_DIPSETTING( 0x01, "3" ) | |
| 1914 | PORT_DIPSETTING( 0x02, "5" ) | |
| 1915 | PORT_DIPSETTING( 0x03, DEF_STR( Free_Play ) ) | |
| 1916 | PORT_DIPSETTING( 0x00, "Invulnerability (Cheat)") | |
| 1917 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_UP ) PORT_8WAY | |
| 1918 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_DOWN ) PORT_8WAY | |
| 1919 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_RIGHT) PORT_8WAY | |
| 1920 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICKRIGHT_LEFT ) PORT_8WAY | |
| 1921 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1922 | PORT_DIPUNKNOWN( 0x80, 0x00 ) | |
| 1923 | ||
| 1924 | PORT_START_TAG("IN2") | |
| 1925 | PORT_DIPUNKNOWN( 0x01, 0x00 ) | |
| 1926 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Coinage ) ) | |
| 1927 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 1928 | PORT_DIPSETTING( 0x00, "A 1/2 B 2/1" ) | |
| 1929 | PORT_DIPSETTING( 0x04, "A 1/3 B 3/1" ) | |
| 1930 | PORT_DIPSETTING( 0x06, "A 1/4 B 4/1" ) | |
| 1931 | PORT_DIPUNKNOWN( 0x08, 0x00 ) | |
| 1932 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1933 | INPUT_PORTS_END | |
| 1934 | ||
| 1935 | ||
| 1936 | INPUT_PORTS_START( armorcar ) | |
| 1937 | PORT_START_TAG("IN0") | |
| 1938 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 1939 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1940 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1941 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1942 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 1943 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 1944 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1945 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1946 | ||
| 1947 | PORT_START_TAG("IN1") | |
| 1948 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) | |
| 1949 | PORT_DIPSETTING( 0x01, "3" ) | |
| 1950 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1951 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1952 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1953 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1954 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 1955 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 1956 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 1957 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 1958 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 1959 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START1 ) | |
| 1960 | ||
| 1961 | PORT_START_TAG("IN2") | |
| 1962 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 1963 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Coinage ) ) | |
| 1964 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 1965 | PORT_DIPSETTING( 0x00, "Coin A 1/2 Coin B 2/1" ) | |
| 1966 | PORT_DIPSETTING( 0x04, "Coin A 1/3 Coin B 3/1" ) | |
| 1967 | PORT_DIPSETTING( 0x06, "Coin A 1/4 Coin B 4/1" ) | |
| 1968 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Cabinet ) ) | |
| 1969 | PORT_DIPSETTING( 0x08, DEF_STR( Upright ) ) | |
| 1970 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 1971 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 1972 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1973 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 1974 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 1975 | INPUT_PORTS_END | |
| 1976 | ||
| 1977 | ||
| 1978 | INPUT_PORTS_START( tazmania ) | |
| 1979 | PORT_START_TAG("IN0") | |
| 1980 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) | |
| 1981 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 1982 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 1983 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 1984 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 1985 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 1986 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 1987 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 1988 | ||
| 1989 | PORT_START_TAG("IN1") | |
| 1990 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) | |
| 1991 | PORT_DIPSETTING( 0x01, "3" ) | |
| 1992 | PORT_DIPSETTING( 0x00, "5" ) | |
| 1993 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 1994 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 1995 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 1996 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 1997 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 1998 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 1999 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 2000 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL | |
| 2001 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2002 | ||
| 2003 | PORT_START_TAG("IN2") | |
| 2004 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2005 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Coinage ) ) | |
| 2006 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 2007 | PORT_DIPSETTING( 0x00, "Coin A 1/2 Coin B 2/1" ) | |
| 2008 | PORT_DIPSETTING( 0x04, "Coin A 1/3 Coin B 3/1" ) | |
| 2009 | PORT_DIPSETTING( 0x06, "Coin A 1/4 Coin B 4/1" ) | |
| 2010 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Cabinet ) ) | |
| 2011 | PORT_DIPSETTING( 0x08, DEF_STR( Upright ) ) | |
| 2012 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 2013 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2014 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2015 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2016 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2017 | INPUT_PORTS_END | |
| 2018 | ||
| 2019 | ||
| 2020 | /* cocktail mode not working due to bug in game code */ | |
| 2021 | INPUT_PORTS_START( anteater ) | |
| 2022 | PORT_START_TAG("IN0") | |
| 2023 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) | |
| 2024 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2025 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY | |
| 2026 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY | |
| 2027 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY | |
| 2028 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY | |
| 2029 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) | |
| 2030 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) | |
| 2031 | ||
| 2032 | PORT_START_TAG("IN1") | |
| 2033 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Lives ) ) | |
| 2034 | PORT_DIPSETTING( 0x01, "3" ) | |
| 2035 | PORT_DIPSETTING( 0x00, "5" ) | |
| 2036 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Demo_Sounds ) ) | |
| 2037 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) | |
| 2038 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) | |
| 2039 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL | |
| 2040 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL | |
| 2041 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_4WAY PORT_COCKTAIL | |
| 2042 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL | |
| 2043 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 2044 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2045 | ||
| 2046 | PORT_START_TAG("IN2") | |
| 2047 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) | |
| 2048 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Coinage ) ) | |
| 2049 | PORT_DIPSETTING( 0x02, DEF_STR( 1C_1C ) ) | |
| 2050 | PORT_DIPSETTING( 0x00, "Coin A 1/2 Coin B 2/1" ) | |
| 2051 | PORT_DIPSETTING( 0x04, "Coin A 1/3 Coin B 3/1" ) | |
| 2052 | PORT_DIPSETTING( 0x06, "Coin A 1/4 Coin B 4/1" ) | |
| 2053 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Cabinet ) ) | |
| 2054 | PORT_DIPSETTING( 0x08, DEF_STR( Upright ) ) | |
| 2055 | PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) ) | |
| 2056 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2057 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2058 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 ) | |
| 2059 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN ) | |
| 2060 | INPUT_PORTS_END | |
| 2061 | ||
| 2062 | ||
| 2063 | ||
| 2064 | /************************************* | |
| 2065 | * | |
| 2066 | * ROM definitions | |
| 2067 | * Galaxian-derived games | |
| 2068 | * | |
| 2069 | *************************************/ | |
| 2070 | ||
| 2071 | ROM_START( galaxian ) | |
| 2072 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2073 | ROM_LOAD( "galmidw.u", 0x0000, 0x0800, CRC(745e2d61) SHA1(e65f74e35b1bfaccd407e168ea55678ae9b68edf) ) | |
| 2074 | ROM_LOAD( "galmidw.v", 0x0800, 0x0800, CRC(9c999a40) SHA1(02fdcd95d8511e64c0d2b007b874112d53e41045) ) | |
| 2075 | ROM_LOAD( "galmidw.w", 0x1000, 0x0800, CRC(b5894925) SHA1(0046b9ed697a34d088de1aead8bd7cbe526a2396) ) | |
| 2076 | ROM_LOAD( "galmidw.y", 0x1800, 0x0800, CRC(6b3ca10b) SHA1(18d8714e5ef52f63ba8888ecc5a25b17b3bf17d1) ) | |
| 2077 | ROM_LOAD( "7l", 0x2000, 0x0800, CRC(1b933207) SHA1(8b44b0f74420871454e27894d0f004859f9e59a9) ) | |
| 2078 | ||
| 2079 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2080 | ROM_LOAD( "1h.bin", 0x0000, 0x0800, CRC(39fb43a4) SHA1(4755609bd974976f04855d51e08ec0d62ab4bc07) ) | |
| 2081 | ROM_LOAD( "1k.bin", 0x0800, 0x0800, CRC(7e3f56a2) SHA1(a9795d8b7388f404f3b0e2c6ce15d713a4c5bafa) ) | |
| 2082 | ||
| 2083 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2084 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2085 | ROM_END | |
| 2086 | ||
| 2087 | ROM_START( galaxiaj ) | |
| 2088 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2089 | ROM_LOAD( "7f.bin", 0x0000, 0x1000, CRC(4335b1de) SHA1(e41e3d90dac738cf71377f3b476ec67b14dee27a) ) | |
| 2090 | ROM_LOAD( "7j.bin", 0x1000, 0x1000, CRC(4e6f66a1) SHA1(ee2a675ab34485c0f58c51be7630a51e27a7a8f3) ) | |
| 2091 | ROM_LOAD( "7l.bin", 0x2000, 0x0800, CRC(5341d75a) SHA1(40bc8fcc598f58c6ff944e2a4a9288463e75a09d) ) | |
| 2092 | ||
| 2093 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2094 | ROM_LOAD( "1h.bin", 0x0000, 0x0800, CRC(39fb43a4) SHA1(4755609bd974976f04855d51e08ec0d62ab4bc07) ) | |
| 2095 | ROM_LOAD( "1k.bin", 0x0800, 0x0800, CRC(7e3f56a2) SHA1(a9795d8b7388f404f3b0e2c6ce15d713a4c5bafa) ) | |
| 2096 | ||
| 2097 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2098 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2099 | ROM_END | |
| 2100 | ||
| 2101 | ROM_START( galmidw ) | |
| 2102 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2103 | ROM_LOAD( "galmidw.u", 0x0000, 0x0800, CRC(745e2d61) SHA1(e65f74e35b1bfaccd407e168ea55678ae9b68edf) ) | |
| 2104 | ROM_LOAD( "galmidw.v", 0x0800, 0x0800, CRC(9c999a40) SHA1(02fdcd95d8511e64c0d2b007b874112d53e41045) ) | |
| 2105 | ROM_LOAD( "galmidw.w", 0x1000, 0x0800, CRC(b5894925) SHA1(0046b9ed697a34d088de1aead8bd7cbe526a2396) ) | |
| 2106 | ROM_LOAD( "galmidw.y", 0x1800, 0x0800, CRC(6b3ca10b) SHA1(18d8714e5ef52f63ba8888ecc5a25b17b3bf17d1) ) | |
| 2107 | ROM_LOAD( "galmidw.z", 0x2000, 0x0800, CRC(cb24f797) SHA1(e6bb977ded0654c2c7388aad188059e1e0647908) ) | |
| 2108 | ||
| 2109 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2110 | ROM_LOAD( "galaxian.j1", 0x0000, 0x0800, CRC(84decf98) SHA1(2e565cb6057b1816a6b4541e6dfadd3c3762fa36) ) | |
| 2111 | ROM_LOAD( "galaxian.l1", 0x0800, 0x0800, CRC(c31ada9e) SHA1(237ebb48549b34ca59a13cc2706512d957413ec4) ) | |
| 2112 | ||
| 2113 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2114 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2115 | ROM_END | |
| 2116 | ||
| 2117 | ROM_START( galmidwo ) | |
| 2118 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2119 | ROM_LOAD( "galaxian.u", 0x0000, 0x0800, CRC(fac42d34) SHA1(0b96d9f1c6bf0e0b7f757dcbaeacfbfafefc54d1) ) | |
| 2120 | ROM_LOAD( "galaxian.v", 0x0800, 0x0800, CRC(f58283e3) SHA1(edc6e72516c50fd3402281d9936574d276581ce9) ) | |
| 2121 | ROM_LOAD( "galaxian.w", 0x1000, 0x0800, CRC(4c7031c0) SHA1(97f7ab0cedcd8eba1c8f6f516d84d672a2108258) ) | |
| 2122 | ROM_LOAD( "galaxian.y", 0x1800, 0x0800, CRC(96a7ac94) SHA1(c3c7a43117c8b9fd8621823c872889f8e31bf935) ) | |
| 2123 | ROM_LOAD( "7l.bin", 0x2000, 0x0800, CRC(5341d75a) SHA1(40bc8fcc598f58c6ff944e2a4a9288463e75a09d) ) | |
| 2124 | ||
| 2125 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2126 | ROM_LOAD( "galaxian.j1", 0x0000, 0x0800, CRC(84decf98) SHA1(2e565cb6057b1816a6b4541e6dfadd3c3762fa36) ) | |
| 2127 | ROM_LOAD( "galaxian.l1", 0x0800, 0x0800, CRC(c31ada9e) SHA1(237ebb48549b34ca59a13cc2706512d957413ec4) ) | |
| 2128 | ||
| 2129 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2130 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2131 | ROM_END | |
| 2132 | ||
| 2133 | ROM_START( galtaito ) | |
| 2134 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2135 | ROM_LOAD( "gl-03.8g", 0x0000, 0x0800, CRC(e8f3aa67) SHA1(a0e9576784dbe602dd9780e667f01f31defd7c00) ) /* All eprom are HN462716 eproms */ | |
| 2136 | ROM_LOAD( "gl-04.8f", 0x0800, 0x0800, CRC(f58283e3) SHA1(edc6e72516c50fd3402281d9936574d276581ce9) ) | |
| 2137 | ROM_LOAD( "gl-05.8e", 0x1000, 0x0800, CRC(4c7031c0) SHA1(97f7ab0cedcd8eba1c8f6f516d84d672a2108258) ) | |
| 2138 | ROM_LOAD( "gl-06.8d", 0x1800, 0x0800, CRC(097d92a2) SHA1(63ef86657286a4e1fae4f795e0e6b410ca2ef06b) ) | |
| 2139 | ROM_LOAD( "gl-07.8c", 0x2000, 0x0800, CRC(5341d75a) SHA1(40bc8fcc598f58c6ff944e2a4a9288463e75a09d) ) | |
| 2140 | ||
| 2141 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2142 | ROM_LOAD( "gl-01.1j", 0x0000, 0x0800, CRC(968b6016) SHA1(f13e4a8d0fdeb121d39ca76120acdc6c7e7f377c) ) | |
| 2143 | ROM_LOAD( "gl-02.1k", 0x0800, 0x0800, CRC(d14f7510) SHA1(cd09e6ee0a3890d01b2415f5b8346c42c02d15a3) ) | |
| 2144 | ||
| 2145 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2146 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2147 | ROM_END | |
| 2148 | ||
| 2149 | ||
| 2150 | ROM_START( moonaln ) | |
| 2151 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2152 | ROM_LOAD( "galx.u", 0x0000, 0x0800, CRC(79e4007d) SHA1(d55050498a670d1c022ba3caad34f8fcaccf4a30) ) // prg1.bin | |
| 2153 | ROM_LOAD( "prg2.bin", 0x0800, 0x0800, CRC(59580b30) SHA1(e659426ad8c4e5e10a7cdd07d8b4fea93f875026) ) | |
| 2154 | ROM_LOAD( "prg3.bin", 0x1000, 0x0800, CRC(b64e9d12) SHA1(3b07902ea61388f54c03d65082e78dfc0fa8d3d2) ) | |
| 2155 | ROM_LOAD( "superg.y", 0x1800, 0x0800, CRC(9463f753) SHA1(d9cb35c19aafec43d08b048bbe2337a790f6ba9d) ) // prg4.bin | |
| 2156 | ROM_LOAD( "prg5.bin", 0x2000, 0x0800, CRC(8bb78987) SHA1(5f24dba0bb31fc8bda5bf570d568472befc4d740) ) | |
| 2157 | ||
| 2158 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2159 | ROM_LOAD( "ca1.bin", 0x0000, 0x0800, CRC(074271dd) SHA1(cd6a40b493bc51c5340d7083f83c51834b95b5fe) ) | |
| 2160 | ROM_LOAD( "ca2.bin", 0x0800, 0x0800, CRC(84d90397) SHA1(93e6ded079c9721d3f9c003e378e8121584671c9) ) | |
| 2161 | ||
| 2162 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2163 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2164 | ROM_END | |
| 2165 | ||
| 2166 | ROM_START( superg ) | |
| 2167 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2168 | ROM_LOAD( "7f.bin", 0x0000, 0x1000, CRC(4335b1de) SHA1(e41e3d90dac738cf71377f3b476ec67b14dee27a) ) | |
| 2169 | ROM_LOAD( "superg.w", 0x1000, 0x0800, CRC(ddeabdae) SHA1(daa5109a32c7c9a80bdb212dc3e4e3e3c104a731) ) | |
| 2170 | ROM_LOAD( "superg.y", 0x1800, 0x0800, CRC(9463f753) SHA1(d9cb35c19aafec43d08b048bbe2337a790f6ba9d) ) | |
| 2171 | ROM_LOAD( "superg.z", 0x2000, 0x0800, CRC(e6312e35) SHA1(c4010459379d7fe00f605aaf288928b2deffb8b2) ) | |
| 2172 | ||
| 2173 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2174 | ROM_LOAD( "galmidw.1j", 0x0000, 0x0800, CRC(84decf98) SHA1(2e565cb6057b1816a6b4541e6dfadd3c3762fa36) ) | |
| 2175 | ROM_LOAD( "galmidw.1k", 0x0800, 0x0800, CRC(c31ada9e) SHA1(237ebb48549b34ca59a13cc2706512d957413ec4) ) | |
| 2176 | ||
| 2177 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2178 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2179 | ROM_END | |
| 2180 | ||
| 2181 | ROM_START( galturbo ) | |
| 2182 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2183 | ROM_LOAD( "galturbo.u", 0x0000, 0x0800, CRC(e8f3aa67) SHA1(a0e9576784dbe602dd9780e667f01f31defd7c00) ) | |
| 2184 | ROM_LOAD( "galx.v", 0x0800, 0x0800, CRC(bc16064e) SHA1(4e3220fd63c8184bf9581a89dffb6944d8fae3bb) ) | |
| 2185 | ROM_LOAD( "superg.w", 0x1000, 0x0800, CRC(ddeabdae) SHA1(daa5109a32c7c9a80bdb212dc3e4e3e3c104a731) ) | |
| 2186 | ROM_LOAD( "galturbo.y", 0x1800, 0x0800, CRC(a44f450f) SHA1(4009834afb45e9b23c7cf058bcd3378ef8601872) ) | |
| 2187 | ROM_LOAD( "galturbo.z", 0x2000, 0x0800, CRC(3247f3d4) SHA1(5754dedc2d06736629d85514b2e7c262ce27bf2d) ) | |
| 2188 | ||
| 2189 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2190 | ROM_LOAD( "galturbo.1h", 0x0000, 0x0800, CRC(a713fd1a) SHA1(abf86fe5cb7243a1a36d7ac0a868577a3360dcca) ) | |
| 2191 | ROM_LOAD( "galturbo.1k", 0x0800, 0x0800, CRC(28511790) SHA1(dec2e183a753295d033a56184c973bbc810abf55) ) | |
| 2192 | ||
| 2193 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2194 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2195 | ROM_END | |
| 2196 | ||
| 2197 | ROM_START( galapx ) | |
| 2198 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2199 | ROM_LOAD( "galx.u", 0x0000, 0x0800, CRC(79e4007d) SHA1(d55050498a670d1c022ba3caad34f8fcaccf4a30) ) | |
| 2200 | ROM_LOAD( "galx.v", 0x0800, 0x0800, CRC(bc16064e) SHA1(4e3220fd63c8184bf9581a89dffb6944d8fae3bb) ) | |
| 2201 | ROM_LOAD( "galx.w", 0x1000, 0x0800, CRC(72d2d3ee) SHA1(96e0c5824e46d7398c7e58dd6b75a9f4ead6f3f5) ) | |
| 2202 | ROM_LOAD( "galx.y", 0x1800, 0x0800, CRC(afe397f3) SHA1(283c6f3b3f07581d88f7a6e11fc36947a9d90e2e) ) | |
| 2203 | ROM_LOAD( "galx.z", 0x2000, 0x0800, CRC(778c0d3c) SHA1(6a81875abfea515d379c6212cb57f8e54573e943) ) | |
| 2204 | ||
| 2205 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2206 | ROM_LOAD( "galx.1h", 0x0000, 0x0800, CRC(e8810654) SHA1(b6924c7ad765c32714e6abd5bb56b2732edd5855) ) | |
| 2207 | ROM_LOAD( "galx.1k", 0x0800, 0x0800, CRC(cbe84a76) SHA1(c6d72fb452e8213dd40a2eb5dcca726d7cdca658) ) | |
| 2208 | ||
| 2209 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2210 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2211 | ROM_END | |
| 2212 | ||
| 2213 | ROM_START( galap1 ) | |
| 2214 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2215 | ROM_LOAD( "7f.bin", 0x0000, 0x1000, CRC(4335b1de) SHA1(e41e3d90dac738cf71377f3b476ec67b14dee27a) ) | |
| 2216 | ROM_LOAD( "galaxian.w", 0x1000, 0x0800, CRC(4c7031c0) SHA1(97f7ab0cedcd8eba1c8f6f516d84d672a2108258) ) | |
| 2217 | ROM_LOAD( "galx_1_4.rom", 0x1800, 0x0800, CRC(e71e1d9e) SHA1(32bf22b06c84d36de7c1280740b9c11e8d6a12b6) ) | |
| 2218 | ROM_LOAD( "galx_1_5.rom", 0x2000, 0x0800, CRC(6e65a3b2) SHA1(c9f20645ad2882e937245a9e90504423bb492158) ) | |
| 2219 | ||
| 2220 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2221 | ROM_LOAD( "galmidw.1j", 0x0000, 0x0800, CRC(84decf98) SHA1(2e565cb6057b1816a6b4541e6dfadd3c3762fa36) ) | |
| 2222 | ROM_LOAD( "galmidw.1k", 0x0800, 0x0800, CRC(c31ada9e) SHA1(237ebb48549b34ca59a13cc2706512d957413ec4) ) | |
| 2223 | ||
| 2224 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2225 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2226 | ROM_END | |
| 2227 | ||
| 2228 | ROM_START( galap4 ) | |
| 2229 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2230 | ROM_LOAD( "galnamco.u", 0x0000, 0x0800, CRC(acfde501) SHA1(4b72c1ffecaccadc541da2367f3ef70a2a9aed64) ) | |
| 2231 | ROM_LOAD( "galnamco.v", 0x0800, 0x0800, CRC(65cf3c77) SHA1(1c5249815816b395e1e04bf6a7dbb63e40faa0e3) ) | |
| 2232 | ROM_LOAD( "galnamco.w", 0x1000, 0x0800, CRC(9eef9ae6) SHA1(b2282e4edb8911e6aabfa936c3526f90381e1320) ) | |
| 2233 | ROM_LOAD( "galnamco.y", 0x1800, 0x0800, CRC(56a5ddd1) SHA1(1f87f647ebdffba28d5957f195448f6bce17f4d5) ) | |
| 2234 | ROM_LOAD( "galnamco.z", 0x2000, 0x0800, CRC(f4bc7262) SHA1(c4b70e474d49f45cec96f7c250bd77e01e18601a) ) | |
| 2235 | ||
| 2236 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2237 | ROM_LOAD( "galx_4c1.rom", 0x0000, 0x0800, CRC(d5e88ab4) SHA1(737a22e406fd0a97d10e93a2c91c3aa61aebbdef) ) | |
| 2238 | ROM_LOAD( "galx_4c2.rom", 0x0800, 0x0800, CRC(a57b83e4) SHA1(335d8674df1d237a4b83da00eb9aee346bc2e901) ) | |
| 2239 | ||
| 2240 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2241 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2242 | ROM_END | |
| 2243 | ||
| 2244 | ROM_START( swarm ) | |
| 2245 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2246 | ROM_LOAD( "swarm1.bin", 0x0000, 0x0800, CRC(21eba3d0) SHA1(d07f141d785c86faca8c40af034c26f2789e9346) ) | |
| 2247 | ROM_LOAD( "swarm2.bin", 0x0800, 0x0800, CRC(f3a436cd) SHA1(8d64e61b823e22f17cb79bf9e0c7b3c80c76413f) ) | |
| 2248 | ROM_LOAD( "swarm3.bin", 0x1000, 0x0800, CRC(2915e38b) SHA1(045d4cc2c363b9ba8d066f902f03b7eacbeb1f5e) ) | |
| 2249 | ROM_LOAD( "swarm4.bin", 0x1800, 0x0800, CRC(8bbbf486) SHA1(84c975562c9c359069fb70f7f416420c74d40622) ) | |
| 2250 | ROM_LOAD( "swarm5.bin", 0x2000, 0x0800, CRC(f1b1987e) SHA1(0c8b57cb156fdd1a81a5e4535464cafab737185b) ) | |
| 2251 | ||
| 2252 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2253 | ROM_LOAD( "swarma.bin", 0x0000, 0x0800, CRC(ef8657bb) SHA1(c942db83231b04041e2794a08ce779331613edcf) ) | |
| 2254 | ROM_LOAD( "swarmb.bin", 0x0800, 0x0800, CRC(60c4bd31) SHA1(a8f22f8d7a9fca2c29091888e243dfa10211e138) ) | |
| 2255 | ||
| 2256 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2257 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2258 | ROM_END | |
| 2259 | ||
| 2260 | ROM_START( zerotime ) | |
| 2261 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2262 | ROM_LOAD( "zt-p01c.016", 0x0000, 0x0800, CRC(90a2bc61) SHA1(9d23dfcf5310cf1d4aa1b473ec84279585e1a876) ) | |
| 2263 | ROM_LOAD( "zt-2.016", 0x0800, 0x0800, CRC(a433067e) SHA1(1aed1a2153c4a32a9996fc709e544f2063885599) ) | |
| 2264 | ROM_LOAD( "zt-3.016", 0x1000, 0x0800, CRC(aaf038d4) SHA1(2d070fe7c4e9b26092f0f12a9db3392f7d8a65f1) ) | |
| 2265 | ROM_LOAD( "zt-4.016", 0x1800, 0x0800, CRC(786d690a) SHA1(50c5c07941006e3b71afbf057d27daa2f2274925) ) | |
| 2266 | ROM_LOAD( "zt-5.016", 0x2000, 0x0800, CRC(af9260d7) SHA1(955e466a8989993351dc69d73ca322c1c9af7b63) ) | |
| 2267 | ||
| 2268 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2269 | ROM_LOAD( "ztc-2.016", 0x0000, 0x0800, CRC(1b13ca05) SHA1(6999068771dacc6bf6c17eb858af593a929d09af) ) | |
| 2270 | ROM_LOAD( "ztc-1.016", 0x0800, 0x0800, CRC(5cd7df03) SHA1(77873408c89546a17b1da3f64b7e96e314fadb17) ) | |
| 2271 | ||
| 2272 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2273 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2274 | ROM_END | |
| 2275 | ||
| 2276 | ROM_START( starfght ) | |
| 2277 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2278 | ROM_LOAD( "ja.1", 0x0000, 0x0400, CRC(c6ab558b) SHA1(2b707e332c57b9ec6a61220ab2b79ed5076d0628) ) | |
| 2279 | ROM_LOAD( "jb.2", 0x0400, 0x0400, CRC(34b99fed) SHA1(03d12b19c9aee75313cae6af602c93205d2fd4a8) ) | |
| 2280 | ROM_LOAD( "jc.3", 0x0800, 0x0400, CRC(30e28016) SHA1(07a621e5061d85a9559a920d76716ea4db61b674) ) | |
| 2281 | ROM_LOAD( "jd.4", 0x0c00, 0x0400, CRC(de7e7770) SHA1(b06043a1d898eb323ddabffd3d2a3b1f63df0e5e) ) | |
| 2282 | ROM_LOAD( "je.5", 0x1000, 0x0400, CRC(a916c919) SHA1(b3e264ff92687022a0f2f551d5df36db848b48eb) ) | |
| 2283 | ROM_LOAD( "jf.6", 0x1400, 0x0400, CRC(9175882b) SHA1(d9943efcb9245af7f01aecc533a699bdefc7d283) ) | |
| 2284 | ROM_LOAD( "jg.7", 0x1800, 0x0400, CRC(707c0f02) SHA1(4cfb18b8161ec6a74663b54120bdc6371ee9dbff) ) | |
| 2285 | ROM_LOAD( "jh.8", 0x1c00, 0x0400, CRC(5dd26461) SHA1(173b939287d0261ff069c277a1afd724133f4c88) ) | |
| 2286 | ROM_LOAD( "ji.9", 0x2000, 0x0400, CRC(6651fe93) SHA1(eb1d9466090ef723ae20003e5be27059f5bea57b) ) | |
| 2287 | ROM_LOAD( "jj.10", 0x2400, 0x0400, CRC(12c721b9) SHA1(1944cd5129115d245ced44da7f1eb4574561c457) ) | |
| 2288 | ||
| 2289 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2290 | ROM_LOAD( "k1.7a", 0x0000, 0x0800, CRC(977e37cf) SHA1(88ff1e4edadf5cfc83413a1fe999aecf4ba72232) ) | |
| 2291 | ROM_LOAD( "k2.9a", 0x0800, 0x0800, CRC(15e387ce) SHA1(d804b1391de5a15c336aa53c812b4a885f830191) ) | |
| 2292 | ||
| 2293 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2294 | ROM_LOAD( "mmi6331.7f", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) /* Compatible with 82s123 prom */ | |
| 2295 | ROM_END | |
| 2296 | ||
| 2297 | /* was marked 'star fighter' but doesn't appear to be the above game */ | |
| 2298 | ROM_START( galaxbsf ) | |
| 2299 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2300 | ROM_LOAD( "1.bn", 0x0000, 0x0400, CRC(cc37b774) SHA1(5b7d9e3c896a1f5b0353732806568d4ffead3ead) ) | |
| 2301 | ROM_LOAD( "2.bn", 0x0400, 0x0400, CRC(c6d21f03) SHA1(64784915bf988fd2a3eea5f219c95c8498175018) ) | |
| 2302 | ROM_LOAD( "3.bn", 0x0800, 0x0400, CRC(30e28016) SHA1(07a621e5061d85a9559a920d76716ea4db61b674) ) | |
| 2303 | ROM_LOAD( "4.bn", 0x0c00, 0x0400, CRC(de7e7770) SHA1(b06043a1d898eb323ddabffd3d2a3b1f63df0e5e) ) | |
| 2304 | ROM_LOAD( "5.bn", 0x1000, 0x0400, CRC(a916c919) SHA1(b3e264ff92687022a0f2f551d5df36db848b48eb) ) | |
| 2305 | ROM_LOAD( "6.bn", 0x1400, 0x0400, CRC(9175882b) SHA1(d9943efcb9245af7f01aecc533a699bdefc7d283) ) | |
| 2306 | ROM_LOAD( "7.bn", 0x1800, 0x0400, CRC(1237b9da) SHA1(00e11532c599fca452a816683b361a24476b7100) ) | |
| 2307 | ROM_LOAD( "8.bn", 0x1c00, 0x0400, CRC(78c53607) SHA1(780acff57b594185eb5f4b24ae7d8b4992d96611) ) | |
| 2308 | ROM_LOAD( "9.bn", 0x2000, 0x0400, CRC(901894cc) SHA1(a189a8ab0068e9acc3be7b8e87adc1eadfd6b708) ) | |
| 2309 | ROM_LOAD( "10.bn", 0x2400, 0x0400, CRC(5876f695) SHA1(e8c0d13066cfe4a409293b9e1380513099b35330) ) | |
| 2310 | ||
| 2311 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2312 | ROM_LOAD( "11.bn", 0x0000, 0x0800, CRC(39fb43a4) SHA1(4755609bd974976f04855d51e08ec0d62ab4bc07) ) | |
| 2313 | ROM_LOAD( "12.bn", 0x0800, 0x0800, CRC(7e3f56a2) SHA1(a9795d8b7388f404f3b0e2c6ce15d713a4c5bafa) ) | |
| 2314 | ||
| 2315 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2316 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2317 | ROM_END | |
| 2318 | ||
| 2319 | ROM_START( supergx ) | |
| 2320 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2321 | ROM_LOAD( "sg1", 0x0000, 0x0800, CRC(b83f4578) SHA1(9a5d5fc291839f7f1e0a52cca7bea29e99c13315) ) | |
| 2322 | ROM_LOAD( "sg2", 0x0800, 0x0800, CRC(d12ca054) SHA1(8eb7f6904c3c650bfa80908a5988622d5e693bd1) ) | |
| 2323 | ROM_LOAD( "sg3", 0x1000, 0x0800, CRC(53714cb1) SHA1(7dffcd3ced1c3354339bb69477f8aa4c708708db) ) | |
| 2324 | ROM_LOAD( "sg4", 0x1800, 0x0800, CRC(2f36fc69) SHA1(d310dcb0a79b03ee26b0575db9cba6d920cb9273) ) | |
| 2325 | ROM_LOAD( "sg5", 0x2000, 0x0800, CRC(1e0ed4fd) SHA1(183d8990dbff1954921f8c5b67cec09f2d380794) ) | |
| 2326 | ROM_LOAD( "sg6", 0x2800, 0x0800, BAD_DUMP CRC(4f3d97a8) SHA1(b9fcab182ab57e8374fef93f7fd314a155a8d04d) ) | |
| 2327 | ||
| 2328 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2329 | ROM_LOAD( "sgg1", 0x0000, 0x0800, CRC(a1287bf6) SHA1(eeeaba4b9e186454a5e2f1c26e333e8fccd97af8) ) | |
| 2330 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 2331 | ROM_LOAD( "sgg2", 0x1000, 0x0800, CRC(528f1481) SHA1(e266a75c3109bcfa2a0394f2ed0ac136fc3158ba) ) | |
| 2332 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 2333 | ||
| 2334 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2335 | ROM_LOAD( "supergx.prm", 0x0000, 0x0020, NO_DUMP ) | |
| 2336 | ROM_END | |
| 2337 | ||
| 2338 | ROM_START( tst_galx ) | |
| 2339 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2340 | ROM_LOAD( "test.u", 0x0000, 0x0800, CRC(0614cd7f) SHA1(12440678be8a27a6c3032b6e43c45e27905ffa83) ) /* The Test ROM */ | |
| 2341 | ROM_LOAD( "galmidw.v", 0x0800, 0x0800, CRC(9c999a40) SHA1(02fdcd95d8511e64c0d2b007b874112d53e41045) ) | |
| 2342 | ROM_LOAD( "galmidw.w", 0x1000, 0x0800, CRC(b5894925) SHA1(0046b9ed697a34d088de1aead8bd7cbe526a2396) ) | |
| 2343 | ROM_LOAD( "galmidw.y", 0x1800, 0x0800, CRC(6b3ca10b) SHA1(18d8714e5ef52f63ba8888ecc5a25b17b3bf17d1) ) | |
| 2344 | ||
| 2345 | ROM_LOAD( "7l", 0x2000, 0x0800, CRC(1b933207) SHA1(8b44b0f74420871454e27894d0f004859f9e59a9) ) | |
| 2346 | ||
| 2347 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2348 | ROM_LOAD( "1h.bin", 0x0000, 0x0800, CRC(39fb43a4) SHA1(4755609bd974976f04855d51e08ec0d62ab4bc07) ) | |
| 2349 | ROM_LOAD( "1k.bin", 0x0800, 0x0800, CRC(7e3f56a2) SHA1(a9795d8b7388f404f3b0e2c6ce15d713a4c5bafa) ) | |
| 2350 | ||
| 2351 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2352 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2353 | ROM_END | |
| 2354 | ||
| 2355 | ||
| 2356 | ROM_START( blkhole ) | |
| 2357 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2358 | ROM_LOAD( "bh1", 0x0000, 0x0800, CRC(64998819) SHA1(69fe5dfbe6cde18ef4cae62da12b5c692c2c72b9) ) | |
| 2359 | ROM_LOAD( "bh2", 0x0800, 0x0800, CRC(26f26ce4) SHA1(720ce7af05ef596fb9a109591534c74d282955e8) ) | |
| 2360 | ROM_LOAD( "bh3", 0x1000, 0x0800, CRC(3418bc45) SHA1(088bbbde66b7b5c36fa48cf14c22146e1444e67c) ) | |
| 2361 | ROM_LOAD( "bh4", 0x1800, 0x0800, CRC(735ff481) SHA1(d9b32db048a0e2a1195cd6f7326005e6622242a9) ) | |
| 2362 | ROM_LOAD( "bh5", 0x2000, 0x0800, CRC(3f657be9) SHA1(3ed1ee0bc199c1625156d2771eecd18a57a0e6ed) ) | |
| 2363 | ROM_LOAD( "bh6", 0x2800, 0x0800, CRC(a057ab35) SHA1(430261bafe20fc182e6e6659019cf42643e95d54) ) | |
| 2364 | ||
| 2365 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2366 | ROM_LOAD( "bh7", 0x0000, 0x0800, CRC(975ba821) SHA1(c50d55f6ab81b803d67f5e18c1243ef85a1a2df1) ) | |
| 2367 | ROM_LOAD( "bh8", 0x0800, 0x0800, CRC(03d11020) SHA1(5768b573fac9aac168db2723462cca76d4d80552) ) | |
| 2368 | ||
| 2369 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2370 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2371 | ROM_END | |
| 2372 | ||
| 2373 | ROM_START( orbitron ) | |
| 2374 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2375 | ROM_LOAD( "orbitron.3", 0x0600, 0x0200, CRC(419f9c9b) SHA1(788a3920f4270b886b3a578f8c2df33e6314a1c3) ) | |
| 2376 | ROM_CONTINUE( 0x0400, 0x0200) | |
| 2377 | ROM_CONTINUE( 0x0200, 0x0200) | |
| 2378 | ROM_CONTINUE( 0x0000, 0x0200) | |
| 2379 | ROM_LOAD( "orbitron.4", 0x0e00, 0x0200, CRC(44ad56ac) SHA1(3a8339cdee50912a16ac0fb448e6659e32542c0c) ) | |
| 2380 | ROM_CONTINUE( 0x0c00, 0x0200) | |
| 2381 | ROM_CONTINUE( 0x0a00, 0x0200) | |
| 2382 | ROM_CONTINUE( 0x0800, 0x0200) | |
| 2383 | ROM_LOAD( "orbitron.1", 0x1600, 0x0200, CRC(da3f5168) SHA1(1927cc7cd3b9d15b629e09781557f4c75d684182) ) | |
| 2384 | ROM_CONTINUE( 0x1400, 0x0200) | |
| 2385 | ROM_CONTINUE( 0x1200, 0x0200) | |
| 2386 | ROM_CONTINUE( 0x1000, 0x0200) | |
| 2387 | ROM_LOAD( "orbitron.2", 0x1e00, 0x0200, CRC(a3b813fc) SHA1(7f0f22667bee897b474fb485d65a74d74a36991a) ) | |
| 2388 | ROM_CONTINUE( 0x1c00, 0x0200) | |
| 2389 | ROM_CONTINUE( 0x1a00, 0x0200) | |
| 2390 | ROM_CONTINUE( 0x1800, 0x0200) | |
| 2391 | ROM_LOAD( "orbitron.5", 0x2000, 0x0800, CRC(20cd8bb8) SHA1(a5309cb04a656c6e1e18bb19910474af8ef814a5) ) | |
| 2392 | ||
| 2393 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2394 | ROM_LOAD( "orbitron.6", 0x0000, 0x0800, CRC(2c91b83f) SHA1(29c73b7ad0dc5a3ba739492c902ad9201eae6ef2) ) | |
| 2395 | ROM_LOAD( "orbitron.7", 0x0800, 0x0800, CRC(46f4cca4) SHA1(e5fb616b1d17b5b5167f05f7840638840deb2d13) ) | |
| 2396 | ||
| 2397 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2398 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2399 | ROM_END | |
| 2400 | ||
| 2401 | ROM_START( luctoday ) | |
| 2402 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2403 | ROM_LOAD( "ltprog1.bin", 0x0000, 0x0800, CRC(59c389b9) SHA1(1e158ced3b56db2c51e422fb4c0b8893565f1956)) | |
| 2404 | ROM_LOAD( "ltprog2.bin", 0x2000, 0x0800, CRC(ac3893b1) SHA1(f6b9cd8111b367ff7030cba52fe965959d92568f)) | |
| 2405 | ||
| 2406 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2407 | ROM_LOAD( "ltchar2.bin", 0x0000, 0x0800, CRC(8cd73bdc) SHA1(6174f7347d2c96f9c5074bc0da5a370c9b07461b)) | |
| 2408 | ROM_LOAD( "ltchar1.bin", 0x0800, 0x0800, CRC(b5ba9946) SHA1(7222cbe8c41ca74b214f4dd5439bf69d90f4644e)) | |
| 2409 | ||
| 2410 | ROM_REGION( 0x0020, REGION_PROMS, 0 )//This may not be the correct prom | |
| 2411 | ROM_LOAD( "74s288.ch", 0x0000, 0x0020, BAD_DUMP CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d)) | |
| 2412 | ROM_END | |
| 2413 | ||
| 2414 | ROM_START( chewing ) | |
| 2415 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2416 | ROM_LOAD( "1.bin", 0x0000, 0x1000, CRC(7470b347) SHA1(315d2631b50a6e469b9538318d95452e8d2e1f69) ) | |
| 2417 | ROM_LOAD( "7l.bin", 0x2000, 0x0800, CRC(78ebed36) SHA1(e80185737c8ac448901cf0e60ca50d967c323b34) ) | |
| 2418 | ||
| 2419 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2420 | ROM_LOAD( "2.bin", 0x0000, 0x0800, CRC(88c605f3) SHA1(938a9fadfa0994a1d2fc9b3266ec4ccdb5ec6d3a) ) | |
| 2421 | ROM_LOAD( "3.bin", 0x0800, 0x0800, CRC(77ac016a) SHA1(fa5b1e79603ca8d2ee7b3d0a78f12d9ffeec3fd4) ) | |
| 2422 | ||
| 2423 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2424 | ROM_LOAD( "74s288.ch", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) | |
| 2425 | ROM_END | |
| 2426 | ||
| 2427 | ROM_START( catacomb ) | |
| 2428 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2429 | ROM_LOAD( "catacomb.u", 0x0000, 0x0800, CRC(35cc28d2) SHA1(e1dbd75fc21ec88b8119bf9508c87d78e1d5c4f6) ) | |
| 2430 | ROM_LOAD( "catacomb.v", 0x0800, 0x0800, CRC(1d1ce133) SHA1(e22a169003a2238004bdf6c2558198216c2353b7) ) | |
| 2431 | ROM_LOAD( "catacomb.w", 0x1000, 0x0800, CRC(479bbde7) SHA1(9981662cb6351de7c1730de45f645fb0e26ea467) ) | |
| 2432 | /* no .x */ | |
| 2433 | ROM_LOAD( "catacomb.y", 0x2000, 0x0800, CRC(5e3da534) SHA1(a9b960ae96c8ef0b2d590bc58b711aad949025e2) ) | |
| 2434 | ||
| 2435 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2436 | ROM_LOAD( "cat-gfx1", 0x0000, 0x0800, CRC(e871e65c) SHA1(0b528dfab0f57153db9406798848cdedee0323a0) ) | |
| 2437 | ROM_LOAD( "cat-gfx2", 0x0800, 0x0800, CRC(b14dafaa) SHA1(592d5931a76563b3565f22ac4c0120b9a120193f) ) | |
| 2438 | ||
| 2439 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2440 | /* No color PROM came with the conversion - the Moon Cresta one seems more appropriate than Galaxian, | |
| 2441 | (the game is unplayable with a Galaxian PROM) but which was intended for use with the kit is unclear */ | |
| 2442 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, BAD_DUMP CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2443 | ROM_END | |
| 2444 | ||
| 2445 | ROM_START( omega ) | |
| 2446 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2447 | ROM_LOAD( "omega1.bin", 0x0000, 0x0800, CRC(fc2a096b) SHA1(071ff30060a1aa0a47ae6e88140b80caed00fc4e) ) | |
| 2448 | ROM_LOAD( "omega2.bin", 0x0800, 0x0800, CRC(ad100357) SHA1(7c5e82c25e65b4a390cf5607f15bf4df407f7f11) ) | |
| 2449 | ROM_LOAD( "omega3.bin", 0x1000, 0x0800, CRC(d7e3be79) SHA1(ffa228043c6c717bee8bbec16432dcfe2e348aef) ) | |
| 2450 | ROM_LOAD( "omega4.bin", 0x1800, 0x0800, CRC(42068171) SHA1(940ca30a5772940b8a437498d22c6121482b38e6) ) | |
| 2451 | ROM_LOAD( "omega5.bin", 0x2000, 0x0800, CRC(d8a93383) SHA1(5f60f127360b14206d4df638e528bf961049e37d) ) | |
| 2452 | ROM_LOAD( "omega6.bin", 0x2800, 0x0800, CRC(32a42f44) SHA1(94f458997ec279dce218a17b665fa8c46067e646) ) | |
| 2453 | ||
| 2454 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2455 | ROM_LOAD( "omega1h.bin", 0x0000, 0x0800, CRC(527fd384) SHA1(92a384899d5acd2c689f637da16a0e2d11a9d9c6) ) | |
| 2456 | ROM_LOAD( "omega1k.bin", 0x0800, 0x0800, CRC(36de42c6) SHA1(6fd93d439e3b8eab62049f925d9e8f8deeda2ae3) ) | |
| 2457 | ||
| 2458 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2459 | ROM_LOAD( "6331-1j.86", 0x0000, 0x0020, NO_DUMP ) /* missing */ | |
| 2460 | ROM_END | |
| 2461 | ||
| 2462 | ||
| 2463 | ROM_START( warofbug ) | |
| 2464 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2465 | ROM_LOAD( "warofbug.u", 0x0000, 0x0800, CRC(b8dfb7e3) SHA1(c7c675b2638869a9cd7dbd554e6131d8c71b567a) ) | |
| 2466 | ROM_LOAD( "warofbug.v", 0x0800, 0x0800, CRC(fd8854e0) SHA1(b39ab41b834f18341968dd780f0a3cd07d70c16c) ) | |
| 2467 | ROM_LOAD( "warofbug.w", 0x1000, 0x0800, CRC(4495aa14) SHA1(f1be281db1d831770efa9cc41ea87eb348e70108) ) | |
| 2468 | ROM_LOAD( "warofbug.y", 0x1800, 0x0800, CRC(c14a541f) SHA1(d32e89fd18d9e1db2e4a545186eac728c0b02255) ) | |
| 2469 | ROM_LOAD( "warofbug.z", 0x2000, 0x0800, CRC(c167fe55) SHA1(d85c4d1bd7aa5e14eb2f11dfa14979e5dbc084a8) ) | |
| 2470 | ||
| 2471 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2472 | ROM_LOAD( "warofbug.1k", 0x0000, 0x0800, CRC(8100fa85) SHA1(06641c431cace36dec98b87555f62e72f3e53a31) ) | |
| 2473 | ROM_LOAD( "warofbug.1j", 0x0800, 0x0800, CRC(d1220ae9) SHA1(e892bc8b0b71d8b07503e474e9c30e6cab460682) ) | |
| 2474 | ||
| 2475 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2476 | ROM_LOAD( "warofbug.clr", 0x0000, 0x0020, CRC(8688e64b) SHA1(ed13414257f580b98b50c9892a14159c55e7838d) ) | |
| 2477 | ROM_END | |
| 2478 | ||
| 2479 | ROM_START( redufo ) | |
| 2480 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2481 | ROM_LOAD( "ru1a", 0x0000, 0x0800, CRC(5a8e4f37) SHA1(c0957ede91e2dc3f80e4912b877843aed5d15779) ) | |
| 2482 | ROM_LOAD( "ru2a", 0x0800, 0x0800, CRC(c624f52d) SHA1(119a660513ad33e35c9bdaecd588219bf8026d82) ) | |
| 2483 | ROM_LOAD( "ru3a", 0x1000, 0x0800, CRC(e1030d1c) SHA1(80640fbbfa7f84c016366b1084e7f8a7acdcd440) ) | |
| 2484 | ROM_LOAD( "ru4a", 0x1800, 0x0800, CRC(7692069e) SHA1(5130d61c857c3b85eadabcf10f3a6771c72f0f56) ) | |
| 2485 | ROM_LOAD( "ru5a", 0x2000, 0x0800, CRC(cb648ff3) SHA1(e0042251ca7f4a31b5bd9f8cca35278a1e152899) ) | |
| 2486 | ROM_LOAD( "ru6a", 0x2800, 0x0800, CRC(e1a9f58e) SHA1(4fc7489fca057156a7cf5efcb01058ce4f0db69e) ) | |
| 2487 | ||
| 2488 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2489 | ROM_LOAD( "ruhja", 0x0000, 0x0800, CRC(8a422b0d) SHA1(b886157518f73e7115a225ba230e456179f6e18f) ) | |
| 2490 | ROM_LOAD( "rukla", 0x0800, 0x0800, CRC(1eb84cb1) SHA1(08f360802a90039c0499a1417d06b6eb5f89d67e) ) | |
| 2491 | ||
| 2492 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2493 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 2494 | ROM_END | |
| 2495 | ||
| 2496 | ROM_START( exodus ) | |
| 2497 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2498 | ROM_LOAD( "exodus1.bin", 0x0000, 0x0800, CRC(5dfe65e1) SHA1(5f1ce289b3c98a89d61d4dea952b4b8888d92ed7) ) | |
| 2499 | ROM_LOAD( "exodus2.bin", 0x0800, 0x0800, CRC(6559222f) SHA1(520497f6fb2b0c76be8419702e8af894283ebf0b) ) | |
| 2500 | ROM_LOAD( "exodus3.bin", 0x1000, 0x0800, CRC(bf7030e8) SHA1(59b0624dd91527a916ee6a27d61def82c3c14f49) ) | |
| 2501 | ROM_LOAD( "exodus4.bin", 0x1800, 0x0800, CRC(3607909e) SHA1(93d074fe4b258d496a0998acb3fc47f0a762227a) ) | |
| 2502 | ROM_LOAD( "exodus9.bin", 0x2000, 0x0800, CRC(994a90c4) SHA1(a07e3ce8f69042c45ebe00ab1d40dbb85602a7a2) ) | |
| 2503 | ROM_LOAD( "exodus10.bin", 0x2800, 0x0800, CRC(fbd11187) SHA1(a3bd49c4a79e76b08e6b343b94689159dc239458) ) | |
| 2504 | ROM_LOAD( "exodus11.bin", 0x3000, 0x0800, CRC(fd07d811) SHA1(6b968a7ce452f76a8d26fe694aa4ea6b16e8b6fa) ) | |
| 2505 | ||
| 2506 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2507 | ROM_LOAD( "exodus5.bin", 0x0000, 0x0800, CRC(b34c7cb4) SHA1(146ed4a02d7540378f4a27a6643055216ad403f7) ) | |
| 2508 | ROM_LOAD( "exodus6.bin", 0x0800, 0x0800, CRC(50a2d447) SHA1(1f97d1096ad2a3a43a480cb1f040f4534fada3c3) ) | |
| 2509 | ||
| 2510 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2511 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2512 | ROM_END | |
| 2513 | ||
| 2514 | ||
| 2515 | ROM_START( azurian ) | |
| 2516 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2517 | ROM_LOAD( "pgm.1", 0x0000, 0x1000, CRC(17a0fca7) SHA1(0ffb80d433fbaa0631d0d982a453f9e6cccab297) ) | |
| 2518 | ROM_LOAD( "pgm.2", 0x1000, 0x1000, CRC(14659848) SHA1(bb9d9c01b074bf7ed7a1c29379bbef41728dd27a) ) | |
| 2519 | ROM_LOAD( "pgm.3", 0x2000, 0x1000, CRC(8f60fb97) SHA1(d0f4d65e568ac1a5d41e550f2f626cbf72884959) ) | |
| 2520 | ||
| 2521 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2522 | ROM_LOAD( "gfx.1", 0x0000, 0x0800, CRC(f5afb803) SHA1(ffc8f86a35179d7715ef618004b79003e0236a93) ) | |
| 2523 | ROM_LOAD( "gfx.2", 0x0800, 0x0800, CRC(ae96e5d1) SHA1(df667fb96d7353ccf9ce0acf788371ef2221e97d) ) | |
| 2524 | ||
| 2525 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2526 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2527 | ROM_END | |
| 2528 | ||
| 2529 | ROM_START( pisces ) | |
| 2530 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2531 | ROM_LOAD( "p1.bin", 0x0000, 0x0800, CRC(40c5b0e4) SHA1(6c18e6f4719eb0d7eb13b778d7ea58e4b87ac35c) ) | |
| 2532 | ROM_LOAD( "p2.bin", 0x0800, 0x0800, CRC(055f9762) SHA1(9d821874dd48a80651adc58a2f7fe5d2b3ed67bc) ) | |
| 2533 | ROM_LOAD( "p3.bin", 0x1000, 0x0800, CRC(3073dd04) SHA1(b93913a988f412d565abd19dc668976585cc8066) ) | |
| 2534 | ROM_LOAD( "p4.bin", 0x1800, 0x0800, CRC(44aaf525) SHA1(667bf4c3a36169c3ddddd22b2f1f90bcc9308548) ) | |
| 2535 | ROM_LOAD( "p5.bin", 0x2000, 0x0800, CRC(fade512b) SHA1(ccef2650f1d9dc3fdde2d441774246d47febc2cc) ) | |
| 2536 | ROM_LOAD( "p6.bin", 0x2800, 0x0800, CRC(5ab2822f) SHA1(bbcac3aab943dd9b173de11ddf02ff75d16b1582) ) | |
| 2537 | ||
| 2538 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2539 | // ROM_LOAD( "pisces.1j", 0x0000, 0x1000, CRC(2dba9e0e) ) | |
| 2540 | // ROM_LOAD( "pisces.1k", 0x1000, 0x1000, CRC(cdc5aa26) ) | |
| 2541 | ROM_LOAD( "g09.bin", 0x0000, 0x0800, CRC(9503a23a) SHA1(23848de56841dd1de9ef74d5a9c981c784098175) ) | |
| 2542 | ROM_LOAD( "g11.bin", 0x0800, 0x0800, CRC(0adfc3fe) SHA1(a4da488632d9906066db45ae62747caf5ffbf2d8) ) | |
| 2543 | ROM_LOAD( "g10.bin", 0x1000, 0x0800, CRC(3e61f849) SHA1(efa0059bc843af0c3bb94f4bc0a8286ca5069179) ) | |
| 2544 | ROM_LOAD( "g12.bin", 0x1800, 0x0800, CRC(7130e9eb) SHA1(e6bb7a9b4f2fc001296e1060d0671b7a88599c8b) ) | |
| 2545 | ||
| 2546 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2547 | ROM_LOAD( "colour.bin", 0x0000, 0x0020, CRC(57a45057) SHA1(d4ec6a54f72640e5b485aa59e206c090e67ff640) ) // same as checkman.clr | |
| 2548 | ROM_END | |
| 2549 | ||
| 2550 | ROM_START( piscesb ) | |
| 2551 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2552 | ROM_LOAD( "pisces.a1", 0x0000, 0x0800, CRC(856b8e1f) SHA1(24d468b5f06f54c3fa1cb54ceec8a0c8e285430e) ) | |
| 2553 | ROM_LOAD( "p2.bin", 0x0800, 0x0800, CRC(055f9762) SHA1(9d821874dd48a80651adc58a2f7fe5d2b3ed67bc) ) | |
| 2554 | ROM_LOAD( "pisces.b2", 0x1000, 0x0800, CRC(5540f2e4) SHA1(b069a7e46fa2c1f732371ef056caaf8f343e11a8) ) | |
| 2555 | ROM_LOAD( "p4.bin", 0x1800, 0x0800, CRC(44aaf525) SHA1(667bf4c3a36169c3ddddd22b2f1f90bcc9308548) ) | |
| 2556 | ROM_LOAD( "p5.bin", 0x2000, 0x0800, CRC(fade512b) SHA1(ccef2650f1d9dc3fdde2d441774246d47febc2cc) ) | |
| 2557 | ROM_LOAD( "p6.bin", 0x2800, 0x0800, CRC(5ab2822f) SHA1(bbcac3aab943dd9b173de11ddf02ff75d16b1582) ) | |
| 2558 | ||
| 2559 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2560 | // ROM_LOAD( "pisces.1j", 0x0000, 0x1000, CRC(2dba9e0e) ) | |
| 2561 | // ROM_LOAD( "pisces.1k", 0x1000, 0x1000, CRC(cdc5aa26) ) | |
| 2562 | ROM_LOAD( "g09.bin", 0x0000, 0x0800, CRC(9503a23a) SHA1(23848de56841dd1de9ef74d5a9c981c784098175) ) | |
| 2563 | ROM_LOAD( "g11.bin", 0x0800, 0x0800, CRC(0adfc3fe) SHA1(a4da488632d9906066db45ae62747caf5ffbf2d8) ) | |
| 2564 | ROM_LOAD( "g10.bin", 0x1000, 0x0800, CRC(3e61f849) SHA1(efa0059bc843af0c3bb94f4bc0a8286ca5069179) ) | |
| 2565 | ROM_LOAD( "g12.bin", 0x1800, 0x0800, CRC(7130e9eb) SHA1(e6bb7a9b4f2fc001296e1060d0671b7a88599c8b) ) | |
| 2566 | ||
| 2567 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2568 | // ROM_LOAD( "6331-1j.86", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) /* very close to Galaxian */ | |
| 2569 | ROM_LOAD( "colour.bin", 0x0000, 0x0020, CRC(57a45057) SHA1(d4ec6a54f72640e5b485aa59e206c090e67ff640) ) // same as checkman.clr | |
| 2570 | ROM_END | |
| 2571 | ||
| 2572 | ROM_START( omni ) | |
| 2573 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2574 | ROM_LOAD( "omni1.7f", 0x0000, 0x1000, CRC(a9b7acc6) SHA1(0c6319957b760fea3cfa6c29b37c25f5a89a6d77) ) | |
| 2575 | ROM_LOAD( "omni2.7j", 0x1000, 0x1000, CRC(6ade29b7) SHA1(64f1ce82c761db11d26c385299a7063f5971c99a) ) | |
| 2576 | ROM_LOAD( "omni3.7f", 0x2000, 0x1000, CRC(9e37bb24) SHA1(d90b2ff0297d87687561e1e9b29510b6c051760b) ) | |
| 2577 | ||
| 2578 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2579 | ROM_LOAD( "omni5b.l1", 0x0000, 0x0800, CRC(9503a23a) SHA1(23848de56841dd1de9ef74d5a9c981c784098175) ) | |
| 2580 | ROM_LOAD( "omni6c.j22", 0x0800, 0x0800, CRC(0adfc3fe) SHA1(a4da488632d9906066db45ae62747caf5ffbf2d8) ) | |
| 2581 | ROM_LOAD( "omni4a.j1", 0x1000, 0x0800, CRC(3e61f849) SHA1(efa0059bc843af0c3bb94f4bc0a8286ca5069179) ) | |
| 2582 | ROM_LOAD( "omni7d.l2", 0x1800, 0x0800, CRC(7130e9eb) SHA1(e6bb7a9b4f2fc001296e1060d0671b7a88599c8b) ) | |
| 2583 | ||
| 2584 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2585 | ROM_LOAD( "colour.bin", 0x0000, 0x0020, CRC(57a45057) SHA1(d4ec6a54f72640e5b485aa59e206c090e67ff640) ) | |
| 2586 | ROM_END | |
| 2587 | ||
| 2588 | ROM_START( uniwars ) | |
| 2589 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2590 | ROM_LOAD( "f07_1a.bin", 0x0000, 0x0800, CRC(d975af10) SHA1(a2e2a36a75db8fd09441308b08b6ae073c68b8cf) ) | |
| 2591 | ROM_LOAD( "h07_2a.bin", 0x0800, 0x0800, CRC(b2ed14c3) SHA1(7668df11f64b8e296eedfee53437777dc53a56d5) ) | |
| 2592 | ROM_LOAD( "k07_3a.bin", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) | |
| 2593 | ROM_LOAD( "m07_4a.bin", 0x1800, 0x0800, CRC(ddc80bc5) SHA1(18c3920198baf87267bc7f12db6b23b090d3577a) ) | |
| 2594 | ROM_LOAD( "d08p_5a.bin", 0x2000, 0x0800, CRC(62354351) SHA1(85bf18942f73023b8be0c3659a0dcd3dfcccfc2c) ) | |
| 2595 | ROM_LOAD( "gg6", 0x2800, 0x0800, CRC(270a3f4d) SHA1(20f5097033fca515d70fe47178cbd341a1d07443) ) | |
| 2596 | ROM_LOAD( "m08p_7a.bin", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) | |
| 2597 | ROM_LOAD( "n08p_8a.bin", 0x3800, 0x0800, CRC(797d45c7) SHA1(76fb8b45fcce3622c59c04af32cfa001ef7bf71d) ) | |
| 2598 | ||
| 2599 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2600 | ROM_LOAD( "egg10", 0x0000, 0x0800, CRC(012941e0) SHA1(4f7ec4d95939cb7c4086bb7df43759ac504ae47c) ) | |
| 2601 | ROM_LOAD( "h01_2.bin", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) | |
| 2602 | ROM_LOAD( "egg9", 0x1000, 0x0800, CRC(fc8b58fd) SHA1(72553e2735b0dcc2dcfce9698d49566732492588) ) | |
| 2603 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2604 | ||
| 2605 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2606 | ROM_LOAD( "uniwars.clr", 0x0000, 0x0020, CRC(25c79518) SHA1(e8f7e8b3d0cf1ed9d723948548f58abf0e2c6d1f) ) | |
| 2607 | ROM_END | |
| 2608 | ||
| 2609 | ROM_START( gteikoku ) | |
| 2610 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2611 | ROM_LOAD( "f07_1a.bin", 0x0000, 0x0800, CRC(d975af10) SHA1(a2e2a36a75db8fd09441308b08b6ae073c68b8cf) ) | |
| 2612 | ROM_LOAD( "h07_2a.bin", 0x0800, 0x0800, CRC(b2ed14c3) SHA1(7668df11f64b8e296eedfee53437777dc53a56d5) ) | |
| 2613 | ROM_LOAD( "k07_3a.bin", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) | |
| 2614 | ROM_LOAD( "m07_4a.bin", 0x1800, 0x0800, CRC(ddc80bc5) SHA1(18c3920198baf87267bc7f12db6b23b090d3577a) ) | |
| 2615 | ROM_LOAD( "d08p_5a.bin", 0x2000, 0x0800, CRC(62354351) SHA1(85bf18942f73023b8be0c3659a0dcd3dfcccfc2c) ) | |
| 2616 | ROM_LOAD( "e08p_6a.bin", 0x2800, 0x0800, CRC(d915a389) SHA1(0e2ff6eec9453856a1276889946b463cfae58eba) ) | |
| 2617 | ROM_LOAD( "m08p_7a.bin", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) | |
| 2618 | ROM_LOAD( "n08p_8a.bin", 0x3800, 0x0800, CRC(797d45c7) SHA1(76fb8b45fcce3622c59c04af32cfa001ef7bf71d) ) | |
| 2619 | ||
| 2620 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2621 | ROM_LOAD( "h01_1.bin", 0x0000, 0x0800, CRC(8313c959) SHA1(b09157c6f824d6e94647728cbb329877fcb4e502) ) | |
| 2622 | ROM_LOAD( "h01_2.bin", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) | |
| 2623 | ROM_LOAD( "k01_1.bin", 0x1000, 0x0800, CRC(c9d4537e) SHA1(65d27066ffec04b755d2f5d3f36f5ec6792e8d6c) ) | |
| 2624 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2625 | ||
| 2626 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2627 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2628 | ROM_END | |
| 2629 | ||
| 2630 | ROM_START( gteikokb ) | |
| 2631 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2632 | ROM_LOAD( "1.bin", 0x0000, 0x0800, CRC(bf00252f) SHA1(a4ec48c6b9468f52bcf8b01d1bdb908dcf81d42d) ) | |
| 2633 | ROM_LOAD( "2.bin", 0x0800, 0x0800, CRC(f712b7d5) SHA1(c269db2e9984a3fbd33888bd426c53d319cad36f) ) | |
| 2634 | ROM_LOAD( "k07_3a.bin", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) | |
| 2635 | ROM_LOAD( "4.bin", 0x1800, 0x0800, CRC(808a39a8) SHA1(f3db5175d0c2d10e9e3ded400888f6541490597e) ) | |
| 2636 | ROM_LOAD( "5.bin", 0x2000, 0x0800, CRC(36fe6e67) SHA1(e54a19ad6611fefcdfcf74019a63cc6cea6cf433) ) | |
| 2637 | ROM_LOAD( "6.bin", 0x2800, 0x0800, CRC(c5ea67e8) SHA1(0157eb2ef5ab56cd00e5f4fafd618271d2d4862b) ) | |
| 2638 | ROM_LOAD( "m08p_7a.bin", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) | |
| 2639 | ROM_LOAD( "8.bin", 0x3800, 0x0800, CRC(28df3229) SHA1(fd307c6a7de4fcddce1c2f36a957a31b9a6aaa21) ) | |
| 2640 | ||
| 2641 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2642 | ROM_LOAD( "h01_1.bin", 0x0000, 0x0800, CRC(8313c959) SHA1(b09157c6f824d6e94647728cbb329877fcb4e502) ) | |
| 2643 | ROM_LOAD( "h01_2.bin", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) | |
| 2644 | ROM_LOAD( "k01_1.bin", 0x1000, 0x0800, CRC(c9d4537e) SHA1(65d27066ffec04b755d2f5d3f36f5ec6792e8d6c) ) | |
| 2645 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2646 | ||
| 2647 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2648 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2649 | ROM_END | |
| 2650 | ||
| 2651 | ROM_START( gteikob2 ) | |
| 2652 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2653 | ROM_LOAD( "94gnog.bin", 0x0000, 0x0800, CRC(67ec3235) SHA1(f250db867257f474f693012c11008bf92f038cc7) ) | |
| 2654 | ROM_LOAD( "92gnog.bin", 0x0800, 0x0800, CRC(813c41f2) SHA1(bd92e0b53e3c8874d63f3444bca02246cd74b1c6) ) | |
| 2655 | ROM_LOAD( "k07_3a.bin", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) | |
| 2656 | ROM_LOAD( "1gnog.bin", 0x1800, 0x0800, CRC(49ff9658) SHA1(3b7f3dc40b3fbc7d4abe5f5d534951c70409148c) ) | |
| 2657 | ROM_LOAD( "5.bin", 0x2000, 0x0800, CRC(36fe6e67) SHA1(e54a19ad6611fefcdfcf74019a63cc6cea6cf433) ) | |
| 2658 | ROM_LOAD( "e08p_6a.bin", 0x2800, 0x0800, CRC(d915a389) SHA1(0e2ff6eec9453856a1276889946b463cfae58eba) ) | |
| 2659 | ROM_LOAD( "m08p_7a.bin", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) | |
| 2660 | ROM_LOAD( "98gnog.bin", 0x3800, 0x0800, CRC(e9d4ad3c) SHA1(b32b96bebbf59e23b06958f6b16790e9f9f334e2) ) | |
| 2661 | ||
| 2662 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2663 | ROM_LOAD( "h01_1.bin", 0x0000, 0x0800, CRC(8313c959) SHA1(b09157c6f824d6e94647728cbb329877fcb4e502) ) | |
| 2664 | ROM_LOAD( "h01_2.bin", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) | |
| 2665 | ROM_LOAD( "k01_1.bin", 0x1000, 0x0800, CRC(c9d4537e) SHA1(65d27066ffec04b755d2f5d3f36f5ec6792e8d6c) ) | |
| 2666 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2667 | ||
| 2668 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2669 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2670 | ROM_END | |
| 2671 | ||
| 2672 | ROM_START( spacbatt ) | |
| 2673 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2674 | ROM_LOAD( "sb1", 0x0000, 0x0800, CRC(d975af10) SHA1(a2e2a36a75db8fd09441308b08b6ae073c68b8cf) ) /* Same as f07_1a.bin above */ | |
| 2675 | ROM_LOAD( "sb2", 0x0800, 0x0800, CRC(b2ed14c3) SHA1(7668df11f64b8e296eedfee53437777dc53a56d5) ) /* Same as h07_2a.bin above */ | |
| 2676 | ROM_LOAD( "sb3", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) /* Same as k07_3a.bin above */ | |
| 2677 | ROM_LOAD( "sb4", 0x1800, 0x0800, CRC(8229835c) SHA1(8cfd8f6cab6f80ca69645a184f7e841fc69f47f6) ) | |
| 2678 | ROM_LOAD( "sb5", 0x2000, 0x0800, CRC(f51ef930) SHA1(213e68571a0c7d5ba33a7170d5fa4aea898ea0b9) ) | |
| 2679 | ROM_LOAD( "sb6", 0x2800, 0x0800, CRC(d915a389) SHA1(0e2ff6eec9453856a1276889946b463cfae58eba) ) /* Same as e08p_6a.bin above */ | |
| 2680 | ROM_LOAD( "sb7", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) /* Same as m08p_7a.bin above */ | |
| 2681 | ROM_LOAD( "sb8", 0x3800, 0x0800, CRC(e59ff1ae) SHA1(fef22885cbd3273882f8c7755dd04c28e843b9ea) ) | |
| 2682 | ||
| 2683 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2684 | ROM_LOAD( "sb12", 0x0000, 0x0800, CRC(8313c959) SHA1(b09157c6f824d6e94647728cbb329877fcb4e502) ) /* Same as h01_1.bin above */ | |
| 2685 | ROM_LOAD( "sb14", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) /* Same as h01_2.bin above */ | |
| 2686 | ROM_LOAD( "sb11", 0x1000, 0x0800, CRC(c9d4537e) SHA1(65d27066ffec04b755d2f5d3f36f5ec6792e8d6c) ) /* Same as k01_1.bin above */ | |
| 2687 | ROM_LOAD( "sb13", 0x1800, 0x0800, CRC(92454380) SHA1(f0cd67b39c760c2b5ac549b27b0a5f83fbb3a86b) ) | |
| 2688 | ||
| 2689 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2690 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) /* MMI 6331 bp-prom, compatible with 82s123 */ | |
| 2691 | ROM_END | |
| 2692 | ||
| 2693 | ROM_START( spacbat2 ) | |
| 2694 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2695 | ROM_LOAD( "sb1", 0x0000, 0x0800, CRC(d975af10) SHA1(a2e2a36a75db8fd09441308b08b6ae073c68b8cf) ) /* Same as f07_1a.bin above */ | |
| 2696 | ROM_LOAD( "sb2", 0x0800, 0x0800, CRC(b2ed14c3) SHA1(7668df11f64b8e296eedfee53437777dc53a56d5) ) /* Same as h07_2a.bin above */ | |
| 2697 | ROM_LOAD( "sb.3", 0x1000, 0x0800, CRC(c25ce4c1) SHA1(d7a5d435df7868155523d2fb90f331d4b6d9eaa1) ) | |
| 2698 | ROM_LOAD( "sb4", 0x1800, 0x0800, CRC(8229835c) SHA1(8cfd8f6cab6f80ca69645a184f7e841fc69f47f6) ) | |
| 2699 | ROM_LOAD( "sb5", 0x2000, 0x0800, CRC(f51ef930) SHA1(213e68571a0c7d5ba33a7170d5fa4aea898ea0b9) ) | |
| 2700 | ROM_LOAD( "sb6", 0x2800, 0x0800, CRC(d915a389) SHA1(0e2ff6eec9453856a1276889946b463cfae58eba) ) /* Same as e08p_6a.bin above */ | |
| 2701 | ROM_LOAD( "sb7", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) /* Same as m08p_7a.bin above */ | |
| 2702 | ROM_LOAD( "sb8", 0x3800, 0x0800, CRC(e59ff1ae) SHA1(fef22885cbd3273882f8c7755dd04c28e843b9ea) ) | |
| 2703 | ||
| 2704 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2705 | ROM_LOAD( "sb12", 0x0000, 0x0800, CRC(8313c959) SHA1(b09157c6f824d6e94647728cbb329877fcb4e502) ) /* Same as h01_1.bin above */ | |
| 2706 | ROM_LOAD( "sb14", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) /* Same as h01_2.bin above */ | |
| 2707 | ROM_LOAD( "sb11", 0x1000, 0x0800, CRC(c9d4537e) SHA1(65d27066ffec04b755d2f5d3f36f5ec6792e8d6c) ) /* Same as k01_1.bin above */ | |
| 2708 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2709 | ||
| 2710 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2711 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2712 | ROM_END | |
| 2713 | ||
| 2714 | ROM_START( skyraidr ) | |
| 2715 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2716 | ROM_LOAD( "f07_1a.bin", 0x0000, 0x0800, CRC(d975af10) SHA1(a2e2a36a75db8fd09441308b08b6ae073c68b8cf) ) | |
| 2717 | ROM_LOAD( "h07_2a.bin", 0x0800, 0x0800, CRC(b2ed14c3) SHA1(7668df11f64b8e296eedfee53437777dc53a56d5) ) | |
| 2718 | ROM_LOAD( "k07_3a.bin", 0x1000, 0x0800, CRC(945f4160) SHA1(5fbe879f51e14c4c7ae551e5b3089f8e148770a4) ) | |
| 2719 | ROM_LOAD( "sr.04", 0x1800, 0x0800, CRC(9f61d1f8) SHA1(389b0a0d1a577b302907b2ea4c119aa18a6120d9) ) | |
| 2720 | ROM_LOAD( "sr.05", 0x2000, 0x0800, CRC(4352af0a) SHA1(1b31846ea7025aaf3a79141dfa5a089b8d12d982) ) | |
| 2721 | ROM_LOAD( "sr.06", 0x2800, 0x0800, CRC(d915a389) SHA1(0e2ff6eec9453856a1276889946b463cfae58eba) ) | |
| 2722 | ROM_LOAD( "m08p_7a.bin", 0x3000, 0x0800, CRC(c9245346) SHA1(239bad3fe64eaab2dfc3febd06d1124103a10504) ) | |
| 2723 | ROM_LOAD( "n08p_8a.bin", 0x3800, 0x0800, CRC(797d45c7) SHA1(76fb8b45fcce3622c59c04af32cfa001ef7bf71d) ) | |
| 2724 | ||
| 2725 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2726 | ROM_LOAD( "sr.10", 0x0000, 0x0800, CRC(af069cba) SHA1(12b7d0a57f43613c80afd51c417628090740aabe) ) | |
| 2727 | ROM_LOAD( "h01_2.bin", 0x0800, 0x0800, CRC(c26132af) SHA1(7ae125a911dfd47aeca4f129f580762ce4d8d91a) ) | |
| 2728 | ROM_LOAD( "sr.09", 0x1000, 0x0800, CRC(ff2c20d5) SHA1(48668dc4f008f44f5c15bdcc331cfe133da99cd4) ) | |
| 2729 | ROM_LOAD( "k01_2.bin", 0x1800, 0x0800, CRC(dcc2b33b) SHA1(c3a5ac935c519400dfabb28909f7e460769d1837) ) | |
| 2730 | ||
| 2731 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2732 | ROM_LOAD( "uniwars.clr", 0x0000, 0x0020, CRC(25c79518) SHA1(e8f7e8b3d0cf1ed9d723948548f58abf0e2c6d1f) ) | |
| 2733 | ROM_END | |
| 2734 | ||
| 2735 | ||
| 2736 | ROM_START( batman2 ) | |
| 2737 | ROM_REGION( 0x4000, REGION_CPU1, 0 ) | |
| 2738 | ROM_LOAD( "01.bin", 0x0000, 0x0800, CRC(150fbca5) SHA1(a5dc104169eb3225c6200e7e07102f8a9bee6861) ) | |
| 2739 | ROM_LOAD( "02.bin", 0x0800, 0x0800, CRC(b1624fd0) SHA1(ca4678cf7a8b935be2f68d6e342c1f961bf6f1a2) ) | |
| 2740 | ROM_LOAD( "03.bin", 0x1000, 0x0800, CRC(93774188) SHA1(8bdd3290db43459c56b932b582f555d89df30bd1) ) | |
| 2741 | ROM_LOAD( "04.bin", 0x1800, 0x0800, CRC(8a94ec6c) SHA1(dacadab9a05ddee2de188b368f795d74213e020d) ) | |
| 2742 | ROM_LOAD( "05.bin", 0x2000, 0x0800, CRC(a3669461) SHA1(11ea7aa9b55f5790cc2451d80d0eb84388cf47eb) ) | |
| 2743 | ROM_LOAD( "06.bin", 0x2800, 0x0800, CRC(fa1efbfe) SHA1(f7222dd21e0810d0c8c32919ebb6e0e7bbb4c68e) ) | |
| 2744 | ROM_LOAD( "07.bin", 0x3000, 0x0800, CRC(9b77debd) SHA1(1f5521bc0f701d86e61219ad3b9516aaa71a68da) ) | |
| 2745 | ROM_LOAD( "08.bin", 0x3800, 0x0800, CRC(6466177e) SHA1(fc359eadee34586576c557ff7c1dd2c8d49bdf3f) ) | |
| 2746 | ||
| 2747 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2748 | ROM_LOAD( "09.bin", 0x0000, 0x0800, CRC(1a657b1f) SHA1(42149dafdde7d9104f0bddda2223bfc211d0154a) ) | |
| 2749 | ROM_LOAD( "11.bin", 0x0800, 0x0800, CRC(7a2b48e5) SHA1(f559799c685dd2cb9de06a356bee95b7d6ffadfc) ) | |
| 2750 | ROM_LOAD( "10.bin", 0x1000, 0x0800, CRC(9b570016) SHA1(44fd2b1caeecdc5200d63c35636f0a605943d30c) ) | |
| 2751 | ROM_LOAD( "12.bin", 0x1800, 0x0800, CRC(73956244) SHA1(e464b587b5ed636816cc9688593f5b6005cb5216) ) | |
| 2752 | ||
| 2753 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2754 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2755 | ROM_END | |
| 2756 | ||
| 2757 | ||
| 2758 | ROM_START( streakng ) | |
| 2759 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2760 | ROM_LOAD( "sk1", 0x0000, 0x1000, CRC(c8866ccb) SHA1(1fc8bc643ecbfa86a50448d79b299f5a3dd586c5) ) | |
| 2761 | ROM_LOAD( "sk2", 0x1000, 0x1000, CRC(7caea29b) SHA1(5b3946ee914b1637db9046abf92d66ceaeb4fc5f) ) | |
| 2762 | ROM_LOAD( "sk3", 0x2000, 0x1000, CRC(7b4bfa76) SHA1(9223bec0c1cc39bc84670869b2a4fab0d0167c6e) ) | |
| 2763 | ROM_LOAD( "sk4", 0x3000, 0x1000, CRC(056fc921) SHA1(de8525571e5a82ddf74dd57b1a6c5bc9f2d2c0fe) ) | |
| 2764 | ||
| 2765 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2766 | ROM_LOAD( "sk5", 0x0000, 0x1000, CRC(d27f1e0c) SHA1(c3b4ae55a93516b034a16c9f943b360b24c933d6) ) | |
| 2767 | ||
| 2768 | ROM_REGION( 0x1000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 2769 | ROM_LOAD( "sk6", 0x0000, 0x1000, CRC(a7089588) SHA1(e76242b043b1d8f060f669da3ddeee3d10122cdb) ) | |
| 2770 | ||
| 2771 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2772 | ROM_LOAD( "sk.bpr", 0x0000, 0x0020, CRC(bce79607) SHA1(49d60fde149240bcd025f721b0fbbbdbc549a42f) ) | |
| 2773 | ROM_END | |
| 2774 | ||
| 2775 | ROM_START( pacmanbl ) | |
| 2776 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2777 | ROM_LOAD( "blpac1b", 0x0000, 0x0800, CRC(6718df42) SHA1(ee15c3f583d381fba4878f824f83d04479a0cee5) ) | |
| 2778 | ROM_LOAD( "blpac2b", 0x0800, 0x0800, CRC(33be3648) SHA1(50175889cf37fe8a81c931e009b55d10f8d0444a) ) | |
| 2779 | ROM_LOAD( "blpac3b", 0x1000, 0x0800, CRC(f98c0ceb) SHA1(4faf8b2fb3f109d1196a9ea256328485074a31b9) ) | |
| 2780 | ROM_LOAD( "blpac4b", 0x1800, 0x0800, CRC(a9cd0082) SHA1(f44ff1ad15d5ee3096f8f44f9c605f32ae2737d9) ) | |
| 2781 | ROM_LOAD( "blpac5b", 0x2000, 0x0800, CRC(6d475afc) SHA1(4fe6bde352c7dd9572fefaae4b59640b4f4eb8ba) ) | |
| 2782 | ROM_LOAD( "blpac6b", 0x2800, 0x0800, CRC(cbe863d3) SHA1(97a2ffa6ab33e6061c664dcd1ee57c86a456782f) ) | |
| 2783 | ROM_LOAD( "blpac7b", 0x3000, 0x0800, CRC(7daef758) SHA1(4dc8ec0ea8fc04d5bffc1c1335407729309c17f0) ) | |
| 2784 | ||
| 2785 | /* note from f205v: on the PCB I have, 10b and 11b have been joined into one single 2732 EPROM labeled "pmc31" | |
| 2786 | The same goes for 9b and 12b, joined into one single 2732 EPROM labeled "pmc42" */ | |
| 2787 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2788 | ROM_LOAD( "blpac12b", 0x0000, 0x0800, CRC(b2ed320b) SHA1(680a6fdcb65cc2d88d10bc85e0b2628f43375c5c) ) | |
| 2789 | ROM_LOAD( "blpac11b", 0x0800, 0x0800, CRC(ab88b2c4) SHA1(d0c829ea8021eae81a2b82d36c35ad8258b115e0) ) | |
| 2790 | ||
| 2791 | ROM_REGION( 0x1000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 2792 | ROM_LOAD( "blpac10b", 0x0000, 0x0800, CRC(44a45b72) SHA1(8abd0684a01d6c23ef5cf5f0765458f982316acf) ) | |
| 2793 | ROM_LOAD( "blpac9b", 0x0800, 0x0800, CRC(fa84659f) SHA1(20c212723f9062f052539190dfe3fc41577543eb) ) | |
| 2794 | ||
| 2795 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2796 | ROM_LOAD( "blpaccp", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) /* same as pisces */ | |
| 2797 | ROM_END | |
| 2798 | ||
| 2799 | ||
| 2800 | ROM_START( devilfsg ) | |
| 2801 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2802 | ROM_LOAD( "dfish1.7f", 0x2000, 0x0800, CRC(2ab19698) SHA1(8450981d3cf3fa8abf2fb5487aa98b03a4cf03a1) ) | |
| 2803 | ROM_CONTINUE( 0x0000, 0x0800 ) | |
| 2804 | ROM_LOAD( "dfish2.7h", 0x2800, 0x0800, CRC(4e77f097) SHA1(aeaa5ff210ccbbe77114edf5dee992d2720636ae) ) | |
| 2805 | ROM_CONTINUE( 0x0800, 0x0800 ) | |
| 2806 | ROM_LOAD( "dfish3.7k", 0x3000, 0x0800, CRC(3f16a4c6) SHA1(cc30b27070a12c250cdc2f7289bae7c7a4c05c2c) ) | |
| 2807 | ROM_CONTINUE( 0x1000, 0x0800 ) | |
| 2808 | ROM_LOAD( "dfish4.7m", 0x3800, 0x0800, CRC(11fc7e59) SHA1(2c0182a75bfca085e67483b421f40b3bc9b8ef24) ) | |
| 2809 | ROM_CONTINUE( 0x1800, 0x0800 ) | |
| 2810 | ||
| 2811 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2812 | ROM_LOAD( "dfish5.1h", 0x0000, 0x0800, CRC(ace6e31f) SHA1(23df890fdf8ef275af79e10c8e43ff3a617b28ac) ) | |
| 2813 | ROM_CONTINUE( 0x0000, 0x0800 ) | |
| 2814 | ROM_LOAD( "dfish6.1k", 0x0800, 0x0800, CRC(d7a6c4c4) SHA1(ec5f9182657edb11884ab93f868f1bb3569461ae) ) | |
| 2815 | ROM_CONTINUE( 0x0800, 0x0800 ) | |
| 2816 | ||
| 2817 | ROM_REGION( 0x1000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 2818 | ROM_LOAD( "dfish5.1h", 0x0000, 0x0800, CRC(ace6e31f) SHA1(23df890fdf8ef275af79e10c8e43ff3a617b28ac) ) | |
| 2819 | ROM_IGNORE( 0x0800 ) | |
| 2820 | ROM_LOAD( "dfish6.1k", 0x0800, 0x0800, CRC(d7a6c4c4) SHA1(ec5f9182657edb11884ab93f868f1bb3569461ae) ) | |
| 2821 | ROM_IGNORE( 0x0800 ) | |
| 2822 | ||
| 2823 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2824 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 2825 | ROM_END | |
| 2826 | ||
| 2827 | ||
| 2828 | ROM_START( zigzag ) | |
| 2829 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2830 | ROM_LOAD( "zz_d1.bin", 0x0000, 0x1000, CRC(8cc08d81) SHA1(be671192ef06dc3ed6963dc39e6bdce3275300e9) ) | |
| 2831 | ROM_LOAD( "zz_d2.bin", 0x1000, 0x1000, CRC(326d8d45) SHA1(563b9fc64c34e36cfadffb107ce30d3a04d62d9c) ) | |
| 2832 | ROM_LOAD( "zz_d4.bin", 0x2000, 0x1000, CRC(a94ed92a) SHA1(d56f32fc2b3f0f7affe658b7726682c60d09bc16) ) | |
| 2833 | ROM_LOAD( "zz_d3.bin", 0x3000, 0x1000, CRC(ce5e7a00) SHA1(93c47d22698a016cb0f0b654ade9ccab0cd1c88b) ) | |
| 2834 | ||
| 2835 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2836 | ROM_LOAD( "zz_6_h1.bin", 0x0000, 0x0800, CRC(780c162a) SHA1(b0cac68258281917bcada52ce26e0ce38721d633) ) | |
| 2837 | ROM_IGNORE( 0x0800 ) | |
| 2838 | ROM_LOAD( "zz_5.bin", 0x0800, 0x0800, CRC(f3cdfec5) SHA1(798d631c72d8e6b2e372b4b3ab0c10d8365a1359) ) | |
| 2839 | ROM_IGNORE( 0x0800 ) | |
| 2840 | ||
| 2841 | ROM_REGION( 0x1000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 2842 | ROM_LOAD( "zz_6_h1.bin", 0x0000, 0x0800, CRC(780c162a) SHA1(b0cac68258281917bcada52ce26e0ce38721d633) ) | |
| 2843 | ROM_CONTINUE( 0x0000, 0x0800 ) | |
| 2844 | ROM_LOAD( "zz_5.bin", 0x0800, 0x0800, CRC(f3cdfec5) SHA1(798d631c72d8e6b2e372b4b3ab0c10d8365a1359) ) | |
| 2845 | ROM_CONTINUE( 0x0800, 0x0800 ) | |
| 2846 | ||
| 2847 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2848 | ROM_LOAD( "zzbp_e9.bin", 0x0000, 0x0020, CRC(aa486dd0) SHA1(b845b52715bf6361ceee8c1ac541733963bd47af) ) | |
| 2849 | ROM_END | |
| 2850 | ||
| 2851 | ROM_START( zigzag2 ) | |
| 2852 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 2853 | ROM_LOAD( "z1", 0x0000, 0x1000, CRC(4c28349a) SHA1(646134ce506deaee88cc2ec5a973f8fedaddb66b) ) | |
| 2854 | ROM_LOAD( "zz_d2.bin", 0x1000, 0x1000, CRC(326d8d45) SHA1(563b9fc64c34e36cfadffb107ce30d3a04d62d9c) ) | |
| 2855 | ROM_LOAD( "zz_d4.bin", 0x2000, 0x1000, CRC(a94ed92a) SHA1(d56f32fc2b3f0f7affe658b7726682c60d09bc16) ) | |
| 2856 | ROM_LOAD( "zz_d3.bin", 0x3000, 0x1000, CRC(ce5e7a00) SHA1(93c47d22698a016cb0f0b654ade9ccab0cd1c88b) ) | |
| 2857 | ||
| 2858 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2859 | ROM_LOAD( "zz_6_h1.bin", 0x0000, 0x0800, CRC(780c162a) SHA1(b0cac68258281917bcada52ce26e0ce38721d633) ) | |
| 2860 | ROM_IGNORE( 0x0800 ) | |
| 2861 | ROM_LOAD( "zz_5.bin", 0x0800, 0x0800, CRC(f3cdfec5) SHA1(798d631c72d8e6b2e372b4b3ab0c10d8365a1359) ) | |
| 2862 | ROM_IGNORE( 0x0800 ) | |
| 2863 | ||
| 2864 | ROM_REGION( 0x1000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 2865 | ROM_LOAD( "zz_6_h1.bin", 0x0000, 0x0800, CRC(780c162a) SHA1(b0cac68258281917bcada52ce26e0ce38721d633) ) | |
| 2866 | ROM_CONTINUE( 0x0000, 0x0800 ) | |
| 2867 | ROM_LOAD( "zz_5.bin", 0x0800, 0x0800, CRC(f3cdfec5) SHA1(798d631c72d8e6b2e372b4b3ab0c10d8365a1359) ) | |
| 2868 | ROM_CONTINUE( 0x0800, 0x0800 ) | |
| 2869 | ||
| 2870 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2871 | ROM_LOAD( "zzbp_e9.bin", 0x0000, 0x0020, CRC(aa486dd0) SHA1(b845b52715bf6361ceee8c1ac541733963bd47af) ) | |
| 2872 | ROM_END | |
| 2873 | ||
| 2874 | ||
| 2875 | ROM_START( gmgalax ) | |
| 2876 | ROM_REGION( 0x18000, REGION_CPU1, 0 ) /* 64k for code + 32k for banked code */ | |
| 2877 | ROM_LOAD( "pcb1_pm1.bin", 0x10000, 0x1000, CRC(19338c70) SHA1(cc2665b7d534d324627d12025ee099ff415d4214) ) | |
| 2878 | ROM_LOAD( "pcb1_pm2.bin", 0x11000, 0x1000, CRC(18db074d) SHA1(a70ed18f632e947493e648e6fc057dfb7a2a3322) ) | |
| 2879 | ROM_LOAD( "pcb1_pm3.bin", 0x12000, 0x1000, CRC(abb98b1d) SHA1(bb0109d353359bb192a3e6856a857c2f842838cb) ) | |
| 2880 | ROM_LOAD( "pcb1_pm4.bin", 0x13000, 0x1000, CRC(2403c78e) SHA1(52d8c8a4efcf47871485080ab217098a019e6579) ) | |
| 2881 | ROM_LOAD( "pcb1_gx1.bin", 0x14000, 0x1000, CRC(2faa9f53) SHA1(1e7010d407601c5da1adc68bc9f4742c79d57286) ) | |
| 2882 | ROM_LOAD( "pcb1_gx2.bin", 0x15000, 0x1000, CRC(121c5f16) SHA1(cb1806fa984870133fd883969838dca85f992515) ) | |
| 2883 | ROM_LOAD( "pcb1_gx3.bin", 0x16000, 0x1000, CRC(02d81a21) SHA1(39209cfb7cf142a65e157544d93803ea542a8efb) ) | |
| 2884 | ||
| 2885 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2886 | ROM_LOAD( "pcb2gfx1.bin", 0x0000, 0x0800, CRC(7021bbc0) SHA1(52d2983d74e722fccb31eb02ca56255850c4f41c) ) | |
| 2887 | ROM_CONTINUE( 0x1000, 0x0800 ) | |
| 2888 | ROM_LOAD( "pcb2gfx3.bin", 0x0800, 0x0800, CRC(089c922b) SHA1(f1b81999f63677d4cd58cd547353170e348a1423) ) | |
| 2889 | ROM_CONTINUE( 0x1800, 0x0800 ) | |
| 2890 | ROM_LOAD( "pcb2gfx2.bin", 0x2000, 0x0800, CRC(51bf58ee) SHA1(3546ff03c76a6422b0515bd5c695674bfb032089) ) | |
| 2891 | ROM_CONTINUE( 0x3000, 0x0800 ) | |
| 2892 | ROM_LOAD( "pcb2gfx4.bin", 0x2800, 0x0800, CRC(908fd0dc) SHA1(ac278bd82730e92ff312793244340748b93fa9bb) ) | |
| 2893 | ROM_CONTINUE( 0x3800, 0x0800 ) | |
| 2894 | ||
| 2895 | ROM_REGION( 0x0040, REGION_PROMS, 0 ) | |
| 2896 | ROM_LOAD( "gmgalax2.clr", 0x0000, 0x0020, CRC(499f4440) SHA1(66d6463a145087041934bdab8bfa6c3db6375317) ) | |
| 2897 | ROM_LOAD( "l06_prom.bin", 0x0020, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 2898 | ROM_END | |
| 2899 | ||
| 2900 | ||
| 2901 | ||
| 2902 | /************************************* | |
| 2903 | * | |
| 2904 | * ROM definitions | |
| 2905 | * Moon Cresta-derived games | |
| 2906 | * | |
| 2907 | *************************************/ | |
| 2908 | ||
| 2909 | ROM_START( mooncrst ) | |
| 2910 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 2911 | ROM_LOAD( "mc1", 0x0000, 0x0800, CRC(7d954a7a) SHA1(a93ee403cfd7887538ad12d33f6dd6c71bea2a32) ) | |
| 2912 | ROM_LOAD( "mc2", 0x0800, 0x0800, CRC(44bb7cfa) SHA1(349c2e23a9fce73f95bb8168d369082fa129fe3d) ) | |
| 2913 | ROM_LOAD( "mc3", 0x1000, 0x0800, CRC(9c412104) SHA1(1b40054ebb1ace965a8522119bb23f09797bc5f6) ) | |
| 2914 | ROM_LOAD( "mc4", 0x1800, 0x0800, CRC(7e9b1ab5) SHA1(435f603c0c3e788a509dd144a7916a34e791ae44) ) | |
| 2915 | ROM_LOAD( "mc5.7r", 0x2000, 0x0800, CRC(16c759af) SHA1(3b48050411f65f9d3fb41ff22901e22d82bf1cf6) ) | |
| 2916 | ROM_LOAD( "mc6.8d", 0x2800, 0x0800, CRC(69bcafdb) SHA1(939c8c6ed1cd4660a3d99b8f17ed99cbd7e1352a) ) | |
| 2917 | ROM_LOAD( "mc7.8e", 0x3000, 0x0800, CRC(b50dbc46) SHA1(4fa084fd1ba5f78e7703e684c57af15ca7a844e4) ) | |
| 2918 | ROM_LOAD( "mc8", 0x3800, 0x0800, CRC(18ca312b) SHA1(39219059003b949e38305553fea2d33071062c64) ) | |
| 2919 | ||
| 2920 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2921 | ROM_LOAD( "mcs_b", 0x0000, 0x0800, CRC(fb0f1f81) SHA1(38a6679a8b69bc1870a0e67e692131c42f9535c8) ) | |
| 2922 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 2923 | ROM_LOAD( "mcs_a", 0x1000, 0x0800, CRC(631ebb5a) SHA1(5bc9493afa76c55858b8c8849524cbc77dc838fc) ) | |
| 2924 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 2925 | ||
| 2926 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2927 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 2928 | ROM_END | |
| 2929 | ||
| 2930 | ROM_START( mooncrsu ) | |
| 2931 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 2932 | ROM_LOAD( "smc1f", 0x0000, 0x0800, CRC(389ca0d6) SHA1(51cf6d190a0ebf23b70c2bcf1ccaa4705e29cd09) ) | |
| 2933 | ROM_LOAD( "smc2f", 0x0800, 0x0800, CRC(410ab430) SHA1(d89abff6ac4afbf69377a1d63043d629a634aab7) ) | |
| 2934 | ROM_LOAD( "smc3f", 0x1000, 0x0800, CRC(a6b4144b) SHA1(2b27ad54d716286c0dc9476d47df182ae01bcfd7) ) | |
| 2935 | ROM_LOAD( "smc4f", 0x1800, 0x0800, CRC(4cc046fe) SHA1(465eaacd50967d768babadd09ab9cad35380f6bf) ) | |
| 2936 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 2937 | ROM_LOAD( "bepr199", 0x2800, 0x0800, CRC(6e84a927) SHA1(82e8e825d157c3c947a3a222bca059a735169c7d) ) | |
| 2938 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 2939 | ROM_LOAD( "smc8f", 0x3800, 0x0800, CRC(f42164c5) SHA1(e0d1680f193889568edf005786e2767d4fb086f4) ) | |
| 2940 | ||
| 2941 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2942 | ROM_LOAD( "mcs_b", 0x0000, 0x0800, CRC(fb0f1f81) SHA1(38a6679a8b69bc1870a0e67e692131c42f9535c8) ) | |
| 2943 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 2944 | ROM_LOAD( "mcs_a", 0x1000, 0x0800, CRC(631ebb5a) SHA1(5bc9493afa76c55858b8c8849524cbc77dc838fc) ) | |
| 2945 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 2946 | ||
| 2947 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2948 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 2949 | ROM_END | |
| 2950 | ||
| 2951 | ROM_START( mooncrsa ) | |
| 2952 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 2953 | ROM_LOAD( "mc1.7d", 0x0000, 0x0800, CRC(92a86aac) SHA1(f5818ac97d8b779e1fb29bf903f74185d24afb0d) ) | |
| 2954 | ROM_LOAD( "mc2.7e", 0x0800, 0x0800, CRC(438c2b4b) SHA1(11f56b489b5489999952e91919c5e1f622c59c36) ) | |
| 2955 | ROM_LOAD( "mc3.7j", 0x1000, 0x0800, CRC(67e3d21d) SHA1(59579d19931ef11b30fdc3912d838200bef92c81) ) | |
| 2956 | ROM_LOAD( "mc4.7p", 0x1800, 0x0800, CRC(f4db39f6) SHA1(454931f80b35608793590b3843c69ba64cbf6772) ) | |
| 2957 | ROM_LOAD( "mc5.7r", 0x2000, 0x0800, CRC(16c759af) SHA1(3b48050411f65f9d3fb41ff22901e22d82bf1cf6) ) | |
| 2958 | ROM_LOAD( "mc6.8d", 0x2800, 0x0800, CRC(69bcafdb) SHA1(939c8c6ed1cd4660a3d99b8f17ed99cbd7e1352a) ) | |
| 2959 | ROM_LOAD( "mc7.8e", 0x3000, 0x0800, CRC(b50dbc46) SHA1(4fa084fd1ba5f78e7703e684c57af15ca7a844e4) ) | |
| 2960 | ROM_LOAD( "mc8.8h", 0x3800, 0x0800, CRC(7e2b1928) SHA1(4f0de8e80c2e2ec6df8612755caf93671ea965b0) ) | |
| 2961 | ||
| 2962 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2963 | ROM_LOAD( "mcs_b", 0x0000, 0x0800, CRC(fb0f1f81) SHA1(38a6679a8b69bc1870a0e67e692131c42f9535c8) ) | |
| 2964 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 2965 | ROM_LOAD( "mcs_a", 0x1000, 0x0800, CRC(631ebb5a) SHA1(5bc9493afa76c55858b8c8849524cbc77dc838fc) ) | |
| 2966 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 2967 | ||
| 2968 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2969 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 2970 | ROM_END | |
| 2971 | ||
| 2972 | ROM_START( mooncrsg ) | |
| 2973 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 2974 | ROM_LOAD( "epr194", 0x0000, 0x0800, CRC(0e5582b1) SHA1(946ad4aeb10c0b7b3f93fd24925cc9bcb49e443c) ) | |
| 2975 | ROM_LOAD( "epr195", 0x0800, 0x0800, CRC(12cb201b) SHA1(ebb01ec646b9e015cbcb93f70dfdaf448afefc12) ) | |
| 2976 | ROM_LOAD( "epr196", 0x1000, 0x0800, CRC(18255614) SHA1(b373e22d47c0f7facba13148ca9c462ec9a0d732) ) | |
| 2977 | ROM_LOAD( "epr197", 0x1800, 0x0800, CRC(05ac1466) SHA1(cbf93a8ce0925fa1c073c74f1274b190d9faefaf) ) | |
| 2978 | ROM_LOAD( "epr198", 0x2000, 0x0800, CRC(c28a2e8f) SHA1(9ff6bab1e1185597ba55cb0d6086091a1fce01a6) ) | |
| 2979 | ROM_LOAD( "epr199", 0x2800, 0x0800, CRC(5a4571de) SHA1(2a4170dee105922fc69c99b79f6f328098e81918) ) | |
| 2980 | ROM_LOAD( "epr200", 0x3000, 0x0800, CRC(b7c85bf1) SHA1(cc9f593658ea39c849d80c83ee0c2170cc29879e) ) | |
| 2981 | ROM_LOAD( "epr201", 0x3800, 0x0800, CRC(2caba07f) SHA1(8fec4904e12b4cfb6068784007278be986a3eede) ) | |
| 2982 | ||
| 2983 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 2984 | ROM_LOAD( "epr203", 0x0000, 0x0800, CRC(be26b561) SHA1(cc27de6888eaf4ee18c0d37d9bcb528dd282b838) ) | |
| 2985 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 2986 | ROM_LOAD( "epr202", 0x1000, 0x0800, CRC(26c7e800) SHA1(034192e5e2cbac4b66a9828f5ec2311c2c368781) ) | |
| 2987 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 2988 | ||
| 2989 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 2990 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 2991 | ROM_END | |
| 2992 | ||
| 2993 | ROM_START( mooncrsb ) | |
| 2994 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 2995 | ROM_LOAD( "bepr194", 0x0000, 0x0800, CRC(6a23ec6d) SHA1(df2214bdde26a71db59ffd39a745052076563f65) ) | |
| 2996 | ROM_LOAD( "bepr195", 0x0800, 0x0800, CRC(ee262ff2) SHA1(4e2202023ad53109ea58304071735d2425a617f3) ) | |
| 2997 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 2998 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 2999 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 3000 | ROM_LOAD( "bepr199", 0x2800, 0x0800, CRC(6e84a927) SHA1(82e8e825d157c3c947a3a222bca059a735169c7d) ) | |
| 3001 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 3002 | ROM_LOAD( "bepr201", 0x3800, 0x0800, CRC(66da55d5) SHA1(39e2f6107e77ee97860147f64b9673cd9a2ae612) ) | |
| 3003 | ||
| 3004 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3005 | ROM_LOAD( "epr203", 0x0000, 0x0800, CRC(be26b561) SHA1(cc27de6888eaf4ee18c0d37d9bcb528dd282b838) ) | |
| 3006 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 3007 | ROM_LOAD( "epr202", 0x1000, 0x0800, CRC(26c7e800) SHA1(034192e5e2cbac4b66a9828f5ec2311c2c368781) ) | |
| 3008 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 3009 | ||
| 3010 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3011 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 3012 | ROM_END | |
| 3013 | ||
| 3014 | ROM_START( mooncrs2 ) | |
| 3015 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3016 | ROM_LOAD( "f8.bin", 0x0000, 0x0800, CRC(d36003e5) SHA1(562b27f1bccce6ae29de18b93fa51c508446cda9) ) | |
| 3017 | ROM_LOAD( "bepr195", 0x0800, 0x0800, CRC(ee262ff2) SHA1(4e2202023ad53109ea58304071735d2425a617f3) ) | |
| 3018 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 3019 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 3020 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 3021 | ROM_LOAD( "bepr199", 0x2800, 0x0800, CRC(6e84a927) SHA1(82e8e825d157c3c947a3a222bca059a735169c7d) ) | |
| 3022 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 3023 | ROM_LOAD( "m7.bin", 0x3800, 0x0800, CRC(957ee078) SHA1(472038dedfc01c995be889ea93d4df8bef2b874c) ) | |
| 3024 | ||
| 3025 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3026 | ROM_LOAD( "1h_1_10.bin", 0x0000, 0x0800, CRC(528da705) SHA1(d726ee18b79774c982f88afb2a508eb5d5783193) ) | |
| 3027 | ROM_LOAD( "12.chr", 0x0800, 0x0200, CRC(5a4b17ea) SHA1(8a879dc34fdecc8a121c4a87abb981212fb05945) ) | |
| 3028 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 3029 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 3030 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 3031 | ROM_LOAD( "1k_1_11.bin", 0x1000, 0x0800, CRC(4e79ff6b) SHA1(f72386a3766a7fcc7b4b8cedfa58b8d57f911f6f) ) | |
| 3032 | ROM_LOAD( "11.chr", 0x1800, 0x0200, CRC(e0edccbd) SHA1(0839a4c9b6e863d12253ae8e1732e80e08702228) ) | |
| 3033 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 3034 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 3035 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 3036 | ||
| 3037 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3038 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 3039 | ROM_END | |
| 3040 | ||
| 3041 | ROM_START( mooncrs3 ) /* Bootleg by Jeutel, very simular to Moon Cresta (bootleg set 2) */ | |
| 3042 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3043 | ROM_LOAD( "b1.7f", 0x0000, 0x0800, CRC(0b28cd8a) SHA1(a1aa0ec63e1dddf4263aa39f6a5fda93108b6e98) ) | |
| 3044 | ROM_CONTINUE( 0x2000, 0x0800 ) | |
| 3045 | ROM_LOAD( "b2.7h", 0x0800, 0x0800, CRC(74a6f0ca) SHA1(cc8e8193bb6bd62f6cb9ea924e4da5ddc44c4685) ) | |
| 3046 | ROM_CONTINUE( 0x2800, 0x0800 ) | |
| 3047 | ROM_LOAD( "b3.7j", 0x1000, 0x0800, CRC(eeb34cc9) SHA1(c5e7d5e1989211be949972e4281403b7b4866922) ) | |
| 3048 | ROM_CONTINUE( 0x3000, 0x0800 ) | |
| 3049 | ROM_LOAD( "b4.7k", 0x1800, 0x0800, CRC(714330e5) SHA1(c681752732c73a6c9bcc9acdcd5c978c455acba0) ) | |
| 3050 | ROM_CONTINUE( 0x3800, 0x0800 ) | |
| 3051 | ||
| 3052 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3053 | ROM_LOAD( "o.1h", 0x0000, 0x0800, CRC(528da705) SHA1(d726ee18b79774c982f88afb2a508eb5d5783193) ) | |
| 3054 | ROM_LOAD( "q.1h", 0x0800, 0x0200, CRC(5a4b17ea) SHA1(8a879dc34fdecc8a121c4a87abb981212fb05945) ) | |
| 3055 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 3056 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 3057 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 3058 | ROM_LOAD( "p.1k", 0x1000, 0x0800, CRC(4e79ff6b) SHA1(f72386a3766a7fcc7b4b8cedfa58b8d57f911f6f) ) | |
| 3059 | ROM_LOAD( "r.1k", 0x1800, 0x0200, CRC(e0edccbd) SHA1(0839a4c9b6e863d12253ae8e1732e80e08702228) ) | |
| 3060 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 3061 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 3062 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 3063 | ||
| 3064 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3065 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 3066 | ROM_END | |
| 3067 | ||
| 3068 | ROM_START( fantazia ) | |
| 3069 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3070 | ROM_LOAD( "f01.bin", 0x0000, 0x0800, CRC(d3e23863) SHA1(f0a6f7491fdf8aae214f40078b29b7aecdcf2f1e) ) | |
| 3071 | ROM_LOAD( "f02.bin", 0x0800, 0x0800, CRC(63fa4149) SHA1(603ee6d4d2952cc08b3f6e98b1a2053671875e44) ) | |
| 3072 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 3073 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 3074 | ROM_LOAD( "f09.bin", 0x2000, 0x0800, CRC(75fd5ca1) SHA1(45f2dd33f0e437cb95d9373f86490e5432338737) ) | |
| 3075 | ROM_LOAD( "f10.bin", 0x2800, 0x0800, CRC(e4da2dd4) SHA1(7a53efd5b583f656c87b7d7a5ba7c239ced7d87b) ) | |
| 3076 | ROM_LOAD( "f11.bin", 0x3000, 0x0800, CRC(42869646) SHA1(a3640b2ace31ce99c056bc14d1d96f3404698d6a) ) | |
| 3077 | ROM_LOAD( "f12.bin", 0x3800, 0x0800, CRC(a48d7fb0) SHA1(6206036a9d85e87fb7f8a88c17bfe090fc70caf4) ) | |
| 3078 | ||
| 3079 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3080 | ROM_LOAD( "1h_1_10.bin", 0x0000, 0x0800, CRC(528da705) SHA1(d726ee18b79774c982f88afb2a508eb5d5783193) ) | |
| 3081 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 3082 | ROM_LOAD( "1k_1_11.bin", 0x1000, 0x0800, CRC(4e79ff6b) SHA1(f72386a3766a7fcc7b4b8cedfa58b8d57f911f6f) ) | |
| 3083 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 3084 | ||
| 3085 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3086 | ROM_LOAD( "fantazia.clr", 0x0000, 0x0020, CRC(a84ff0af) SHA1(c300dc937c608d2d1c113ca7a53c649472c72379) ) | |
| 3087 | ROM_END | |
| 3088 | ||
| 3089 | ROM_START( eagle ) | |
| 3090 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3091 | ROM_LOAD( "e1", 0x0000, 0x0800, CRC(224c9526) SHA1(4c014d60d4ee80de7f60b4609269461688c181d0) ) | |
| 3092 | ROM_LOAD( "e2", 0x0800, 0x0800, CRC(cc538ebd) SHA1(4ef3c7363e2dcd9ed99779039ccc50a9f2084dbd) ) | |
| 3093 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 3094 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 3095 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 3096 | ROM_LOAD( "e6", 0x2800, 0x0800, CRC(0dea20d5) SHA1(405b51d4e3b1065f78afd2297e075e977ae19196) ) | |
| 3097 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 3098 | ROM_LOAD( "e8", 0x3800, 0x0800, CRC(c437a876) SHA1(845941b873970ac62ba9bb6353bee53d0fcfa292) ) | |
| 3099 | ||
| 3100 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3101 | ROM_LOAD( "e10", 0x0000, 0x0800, CRC(40ce58bf) SHA1(67ea99e1afe4fff3e17252b22d11d3c96a416041) ) | |
| 3102 | ROM_LOAD( "e12", 0x0800, 0x0200, CRC(628fdeed) SHA1(a798530c65e639fbf00ed3a4e8c428935bf5f38e) ) | |
| 3103 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 3104 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 3105 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 3106 | ROM_LOAD( "e9", 0x1000, 0x0800, CRC(ba664099) SHA1(9509123bed02a9d47f2c056e1562b80206da5579) ) | |
| 3107 | ROM_LOAD( "e11", 0x1800, 0x0200, CRC(ee4ec5fd) SHA1(bf08b3f111f780dc8c81275e4e6247388183a8da) ) | |
| 3108 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 3109 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 3110 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 3111 | ||
| 3112 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3113 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 3114 | ROM_END | |
| 3115 | ||
| 3116 | ROM_START( eagle2 ) | |
| 3117 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3118 | ROM_LOAD( "e1.7f", 0x0000, 0x0800, CRC(45aab7a3) SHA1(52ae0463f363dc0964b976faa2c0c428d85a4f12) ) | |
| 3119 | ROM_LOAD( "e2", 0x0800, 0x0800, CRC(cc538ebd) SHA1(4ef3c7363e2dcd9ed99779039ccc50a9f2084dbd) ) | |
| 3120 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 3121 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 3122 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 3123 | ROM_LOAD( "e6.6", 0x2800, 0x0800, CRC(9f09f8c6) SHA1(47c600629e02357389dd78c7fcaec862e0da4ef0) ) | |
| 3124 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 3125 | ROM_LOAD( "e8", 0x3800, 0x0800, CRC(c437a876) SHA1(845941b873970ac62ba9bb6353bee53d0fcfa292) ) | |
| 3126 | ||
| 3127 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3128 | ROM_LOAD( "e10.2", 0x0000, 0x0800, CRC(25b38ebd) SHA1(f679c2f2cb5892680fec102fafbdfeae156ce373) ) | |
| 3129 | ROM_LOAD( "e12", 0x0800, 0x0200, CRC(628fdeed) SHA1(a798530c65e639fbf00ed3a4e8c428935bf5f38e) ) | |
| 3130 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 3131 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 3132 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 3133 | ROM_LOAD( "e9", 0x1000, 0x0800, CRC(ba664099) SHA1(9509123bed02a9d47f2c056e1562b80206da5579) ) | |
| 3134 | ROM_LOAD( "e11", 0x1800, 0x0200, CRC(ee4ec5fd) SHA1(bf08b3f111f780dc8c81275e4e6247388183a8da) ) | |
| 3135 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 3136 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 3137 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 3138 | ||
| 3139 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3140 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 3141 | ROM_END | |
| 3142 | ||
| 3143 | ROM_START( eagle3 ) | |
| 3144 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3145 | ROM_LOAD( "e1", 0x0000, 0x0800, CRC(224c9526) SHA1(4c014d60d4ee80de7f60b4609269461688c181d0) ) | |
| 3146 | ROM_LOAD( "e2", 0x0800, 0x0800, CRC(cc538ebd) SHA1(4ef3c7363e2dcd9ed99779039ccc50a9f2084dbd) ) | |
| 3147 | ROM_LOAD( "f03.bin", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 3148 | ROM_LOAD( "f04.bin", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 3149 | ROM_LOAD( "e5", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 3150 | ROM_LOAD( "e6", 0x2800, 0x0800, CRC(0dea20d5) SHA1(405b51d4e3b1065f78afd2297e075e977ae19196) ) | |
| 3151 | ROM_LOAD( "e7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 3152 | ROM_LOAD( "e8", 0x3800, 0x0800, CRC(c437a876) SHA1(845941b873970ac62ba9bb6353bee53d0fcfa292) ) | |
| 3153 | ||
| 3154 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3155 | ROM_LOAD( "e10a", 0x0000, 0x0800, CRC(e3c63d4c) SHA1(ad2b22e316da6bb819c58934d51cd4b2819b18f0) ) | |
| 3156 | ROM_LOAD( "e12", 0x0800, 0x0200, CRC(628fdeed) SHA1(a798530c65e639fbf00ed3a4e8c428935bf5f38e) ) | |
| 3157 | ROM_CONTINUE( 0x0c00, 0x0200 ) /* this version of the gfx ROMs has two */ | |
| 3158 | ROM_CONTINUE( 0x0a00, 0x0200 ) /* groups of 16 sprites swapped */ | |
| 3159 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 3160 | ROM_LOAD( "e9a", 0x1000, 0x0800, CRC(59429e47) SHA1(b7629c81d122fd1e4d390aa7abba44df898387d3) ) | |
| 3161 | ROM_LOAD( "e11", 0x1800, 0x0200, CRC(ee4ec5fd) SHA1(bf08b3f111f780dc8c81275e4e6247388183a8da) ) | |
| 3162 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 3163 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 3164 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 3165 | ||
| 3166 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3167 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 3168 | ROM_END | |
| 3169 | ||
| 3170 | ROM_START( spctbird ) | |
| 3171 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3172 | ROM_LOAD( "tssa-7f", 0x0000, 0x0800, CRC(45aab7a3) SHA1(52ae0463f363dc0964b976faa2c0c428d85a4f12) ) | |
| 3173 | ROM_LOAD( "tssa-7h", 0x0800, 0x0800, CRC(8b328f48) SHA1(d4f549e90e0bf1f546e2c3dc5a5a16e0415e709e) ) | |
| 3174 | ROM_LOAD( "tssa-7k", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 3175 | ROM_LOAD( "tssa-7m", 0x1800, 0x0800, CRC(99c9166d) SHA1(c108d84330bc958ff2812dc807e68c246a5a5ad5) ) | |
| 3176 | ROM_LOAD( "tssa-5", 0x2000, 0x0800, CRC(797b6261) SHA1(9a60e504e2aa0201b7311485c0dd411bbe2dc70b) ) | |
| 3177 | ROM_LOAD( "tssa-6", 0x2800, 0x0800, CRC(4825692c) SHA1(41a7e305c3d93f2245fb0413398d951eab9d16c0) ) | |
| 3178 | ROM_LOAD( "tssa-7", 0x3000, 0x0800, CRC(b45af1e8) SHA1(d7020774707234acdaef5c655f667d5ee9e54a13) ) | |
| 3179 | ROM_LOAD( "tssa-8", 0x3800, 0x0800, CRC(c9b77b85) SHA1(00797f126b4cdacd9ec2df7e747aa1892933b8b8) ) | |
| 3180 | ||
| 3181 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3182 | ROM_LOAD( "tssb-2", 0x0000, 0x0800, CRC(7d23e1f2) SHA1(6902e44ff6f805a8d589c57b236e471b7fb609f8) ) | |
| 3183 | ROM_LOAD( "tssb-4", 0x0800, 0x0200, CRC(e4977833) SHA1(85aca9bccc6c1a5a2d792a9c4a77ee1b114934c9) ) | |
| 3184 | ROM_CONTINUE( 0x0c00, 0x0200 ) | |
| 3185 | ROM_CONTINUE( 0x0a00, 0x0200 ) | |
| 3186 | ROM_CONTINUE( 0x0e00, 0x0200 ) | |
| 3187 | ROM_LOAD( "tssb-1", 0x1000, 0x0800, CRC(9b9267c3) SHA1(2bbbff7a8a2d3e4524634de5e1c5a2426612c18f) ) | |
| 3188 | ROM_LOAD( "tssb-3", 0x1800, 0x0200, CRC(5ca5e233) SHA1(2115faecd07940547d0ee09776da6fcb1a008287) ) | |
| 3189 | ROM_CONTINUE( 0x1c00, 0x0200 ) | |
| 3190 | ROM_CONTINUE( 0x1a00, 0x0200 ) | |
| 3191 | ROM_CONTINUE( 0x1e00, 0x0200 ) | |
| 3192 | ||
| 3193 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3194 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 3195 | ROM_END | |
| 3196 | ||
| 3197 | ROM_START( smooncrs ) | |
| 3198 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3199 | ROM_LOAD( "927", 0x0000, 0x0800, CRC(55c5b994) SHA1(3451b121fa22361b2684385cf5d4455fa6963215) ) | |
| 3200 | ROM_LOAD( "928a", 0x0800, 0x0800, CRC(77ae26d3) SHA1(cbc16a024b73bedff76a6c47336d6ef098e92c53) ) | |
| 3201 | ROM_LOAD( "929", 0x1000, 0x0800, CRC(716eaa10) SHA1(780fc785e6651f19dc1a0ccf48cf9485d6562a71) ) | |
| 3202 | ROM_LOAD( "930", 0x1800, 0x0800, CRC(cea864f2) SHA1(aaaf9f8dd126dfb4a4f52f39863fee02a56a6485) ) | |
| 3203 | ROM_LOAD( "931", 0x2000, 0x0800, CRC(702c5f51) SHA1(5ba8d87c93c4810b8e7c2ad4ee376cd806e83686) ) | |
| 3204 | ROM_LOAD( "932a", 0x2800, 0x0800, CRC(e6a2039f) SHA1(f0f240dd8ac7cd2d9994cb7341b59d7a0a3eaf26) ) | |
| 3205 | ROM_LOAD( "933", 0x3000, 0x0800, CRC(73783cee) SHA1(69760e25ba22645572ec16b4f9136ee84ed0c766) ) | |
| 3206 | ROM_LOAD( "934", 0x3800, 0x0800, CRC(c1a14aa2) SHA1(99f6b01a0acd5e936d6ae61c13599db603b73191) ) | |
| 3207 | ||
| 3208 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3209 | ROM_LOAD( "epr203", 0x0000, 0x0800, CRC(be26b561) SHA1(cc27de6888eaf4ee18c0d37d9bcb528dd282b838) ) | |
| 3210 | ROM_LOAD( "mcs_d", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 3211 | ROM_LOAD( "epr202", 0x1000, 0x0800, CRC(26c7e800) SHA1(034192e5e2cbac4b66a9828f5ec2311c2c368781) ) | |
| 3212 | ROM_LOAD( "mcs_c", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 3213 | ||
| 3214 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3215 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 3216 | ROM_END | |
| 3217 | ||
| 3218 | ROM_START( mooncmw ) | |
| 3219 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3220 | ROM_LOAD( "60.1x", 0x0000, 0x0800, CRC(322859e6) SHA1(292dccb66c38c8de837ec3ac10928d092494958e) ) | |
| 3221 | ROM_LOAD( "61.2x", 0x0800, 0x0800, CRC(c249902d) SHA1(0015461173fb991fd99c824e0eab054c3c17d0f1) ) | |
| 3222 | ROM_LOAD( "62.3x", 0x1000, 0x0800, CRC(29a2b0ab) SHA1(e9fc7161d0566e36307c45b7132e2262c0af4845) ) | |
| 3223 | ROM_LOAD( "63.4x", 0x1800, 0x0800, CRC(4c6a5a6d) SHA1(366516f63c9b5239e703e4dfb672659049ddbf44) ) | |
| 3224 | ROM_LOAD( "64.5x", 0x2000, 0x0800, CRC(06d378a6) SHA1(99dbe9fc7f95f8fdce86eb5c32bd1ca1bea0ca3c) ) | |
| 3225 | ROM_LOAD( "65.6x", 0x2800, 0x0800, CRC(6e84a927) SHA1(82e8e825d157c3c947a3a222bca059a735169c7d) ) | |
| 3226 | ROM_LOAD( "66.7x", 0x3000, 0x0800, CRC(f23cd8ce) SHA1(a77e7eca239de6a72a8cabed6444ae8efb9e40bd) ) | |
| 3227 | ROM_LOAD( "67.8x", 0x3800, 0x0800, CRC(66da55d5) SHA1(39e2f6107e77ee97860147f64b9673cd9a2ae612) ) | |
| 3228 | ||
| 3229 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3230 | ROM_LOAD( "68.1h", 0x0000, 0x1000, CRC(78663d86) SHA1(8648a3e60259404a05ad58b1641190e5b33a24eb) ) | |
| 3231 | ROM_LOAD( "69.1k", 0x1000, 0x1000, CRC(162c50d3) SHA1(67d9c87782cf29c443590d7ad687fbeaa6218346) ) | |
| 3232 | ||
| 3233 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3234 | ROM_LOAD( "prom-sn74s288n-71.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 3235 | ROM_END | |
| 3236 | ||
| 3237 | ROM_START( spcdrag ) | |
| 3238 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3239 | ROM_LOAD( "a.bin", 0x0000, 0x0800, CRC(38cc9839) SHA1(71c5853fc14a9c0b93e3b7660b925021680a0fe1) ) | |
| 3240 | ROM_LOAD( "b.bin", 0x0800, 0x0800, CRC(419fa8d6) SHA1(709b096d43c15cbfb98745e1f5e7c1bc921e3241) ) | |
| 3241 | ROM_LOAD( "c.bin", 0x1000, 0x0800, CRC(a1939def) SHA1(c9be93d325dde496d89e0735ec4e7abca932c0f6) ) | |
| 3242 | ROM_LOAD( "d.bin", 0x1800, 0x0800, CRC(cbcf17c5) SHA1(9aa3ca6dc30e4a19ed2bdb2be6ba90bde4cb7542) ) | |
| 3243 | ROM_LOAD( "em.bin", 0x2000, 0x0800, CRC(eb81c19c) SHA1(e5dd61704938c837b87a3155d54698482235c513) ) | |
| 3244 | ROM_LOAD( "fm.bin", 0x2800, 0x0800, CRC(757b7672) SHA1(d042e4bc17d2a8c9f1db55d57d5c235338cdb20c) ) | |
| 3245 | ROM_LOAD( "g.bin", 0x3000, 0x0800, CRC(57713b91) SHA1(ba01ed3f047ebbd0f9e6956e649bec0e8b730a45) ) | |
| 3246 | ROM_LOAD( "h.bin", 0x3800, 0x0800, CRC(159ad847) SHA1(9d46f380c868ac07964e571c54e800c683a6a679) ) | |
| 3247 | ||
| 3248 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3249 | ROM_LOAD( "203.bin", 0x0000, 0x0800, CRC(a2e82527) SHA1(5e9236ba102728213b4651db984b3a169b4a0410) ) | |
| 3250 | ROM_LOAD( "172.bin", 0x0800, 0x0800, CRC(13932a15) SHA1(b8885c555c6ad7021be55c6925a0a0872c1b6abd) ) | |
| 3251 | ROM_LOAD( "202.bin", 0x1000, 0x0800, CRC(80c3ad74) SHA1(0fd2269543d123bd427f5a648a17f8bee65b20a2) ) | |
| 3252 | ROM_LOAD( "171.bin", 0x1800, 0x0800, CRC(24cfd145) SHA1(08c6599db170dd6ee364c44f70a0f5c0f881b6ef) ) | |
| 3253 | ||
| 3254 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3255 | // not present in this set | |
| 3256 | ROM_LOAD( "mmi6331.6l", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 3257 | ROM_END | |
| 3258 | ||
| 3259 | ROM_START( spcdraga ) | |
| 3260 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3261 | ROM_LOAD( "1.7g", 0x0000, 0x0800, CRC(38cc9839) SHA1(71c5853fc14a9c0b93e3b7660b925021680a0fe1) ) | |
| 3262 | ROM_LOAD( "2.7g", 0x0800, 0x0800, CRC(29e00ae4) SHA1(574bdfb621e084485e6621229cd569486831e4ba) ) | |
| 3263 | ROM_LOAD( "3.7g", 0x1000, 0x0800, CRC(a1939def) SHA1(c9be93d325dde496d89e0735ec4e7abca932c0f6) ) | |
| 3264 | ROM_LOAD( "4.7g", 0x1800, 0x0800, CRC(068f8830) SHA1(e12d590401878d9f2695e5c7aa38387ed9ccfb06) ) | |
| 3265 | ROM_LOAD( "5.10g", 0x2000, 0x0800, CRC(32cd9adc) SHA1(3143690712465d092d6c63f4826f220839d78958) ) | |
| 3266 | ROM_LOAD( "6.10g", 0x2800, 0x0800, CRC(50db67c5) SHA1(69ad219332ac0d9f4e328b314f7bdc34d5599393) ) | |
| 3267 | ROM_LOAD( "7.10g", 0x3000, 0x0800, CRC(22415271) SHA1(60b1ca2dc044c0863c6f38280a3bd0ff9397c869) ) | |
| 3268 | ROM_LOAD( "8.10g", 0x3800, 0x0800, CRC(159ad847) SHA1(9d46f380c868ac07964e571c54e800c683a6a679) ) | |
| 3269 | ||
| 3270 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3271 | ROM_LOAD( "a2.7a", 0x0000, 0x0800, CRC(38b042dd) SHA1(bd452dae4cbc22a900cf783f84d1f9d8cb1218f9) ) | |
| 3272 | ROM_LOAD( "a4.7a", 0x0800, 0x0800, CRC(5a4b17ea) SHA1(8a879dc34fdecc8a121c4a87abb981212fb05945) ) | |
| 3273 | ROM_LOAD( "a1.9a", 0x1000, 0x0800, CRC(24441ab3) SHA1(8c9d2bd062cb2360f3dd3df2d7d212e9485f91ad) ) | |
| 3274 | ROM_LOAD( "a3.9a", 0x1800, 0x0800, CRC(e0edccbd) SHA1(0839a4c9b6e863d12253ae8e1732e80e08702228) ) | |
| 3275 | ||
| 3276 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3277 | // not present in this set | |
| 3278 | ROM_LOAD( "prom_6331.10f", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 3279 | ROM_END | |
| 3280 | ||
| 3281 | ROM_START( mooncrgx ) | |
| 3282 | ROM_REGION( 0x8000, REGION_CPU1, 0 ) | |
| 3283 | ROM_LOAD( "1", 0x0000, 0x0800, CRC(84cf420b) SHA1(82c979467c51df699337d5878340d05bee606480) ) | |
| 3284 | ROM_LOAD( "2", 0x0800, 0x0800, CRC(4c2a61a1) SHA1(a3759bd2c062f2843cd5b812529c798d5d12086c) ) | |
| 3285 | ROM_LOAD( "3", 0x1000, 0x0800, CRC(1962523a) SHA1(56ea003c3ff37c2bc33383207fccde0ba0ed781a) ) | |
| 3286 | ROM_LOAD( "4", 0x1800, 0x0800, CRC(75dca896) SHA1(017d04501d3d1305491ba843d92ebd74d47d2f9c) ) | |
| 3287 | ROM_LOAD( "5", 0x2000, 0x0800, CRC(32483039) SHA1(23baf136d5b7fc02f999dcb31b8daf68b6ffafd1) ) | |
| 3288 | ROM_LOAD( "6", 0x2800, 0x0800, CRC(43f2ab89) SHA1(f7f0802a12fd89d61f6f00044e077f34a9d3955f) ) | |
| 3289 | ROM_LOAD( "7", 0x3000, 0x0800, CRC(1e9c168c) SHA1(891dc159dfc343322c3241980a0ef76dee510ca9) ) | |
| 3290 | ROM_LOAD( "8", 0x3800, 0x0800, CRC(5e09da94) SHA1(677890912db12df6fa2cb515c198f8ac3f7187af) ) | |
| 3291 | ||
| 3292 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3293 | ROM_LOAD( "1h_1_10.bin", 0x0000, 0x0800, CRC(528da705) SHA1(d726ee18b79774c982f88afb2a508eb5d5783193) ) | |
| 3294 | ROM_LOAD( "12.chr", 0x0800, 0x0800, CRC(5a4b17ea) SHA1(8a879dc34fdecc8a121c4a87abb981212fb05945) ) | |
| 3295 | ROM_LOAD( "9.chr", 0x1000, 0x0800, CRC(70df525c) SHA1(f771293494a2234bf80f206ecf1e88773322e503) ) | |
| 3296 | ROM_LOAD( "11.chr", 0x1800, 0x0800, CRC(e0edccbd) SHA1(0839a4c9b6e863d12253ae8e1732e80e08702228) ) | |
| 3297 | ||
| 3298 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3299 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 3300 | ROM_END | |
| 3301 | ||
| 3302 | ROM_START( moonqsr ) | |
| 3303 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3304 | ROM_LOAD( "mq1", 0x0000, 0x0800, CRC(132c13ec) SHA1(d95166b025442f184e44a70312fb3b4f6366f324) ) | |
| 3305 | ROM_LOAD( "mq2", 0x0800, 0x0800, CRC(c8eb74f1) SHA1(4efa85c40349852da47a0f725ae06873efe4ce1c) ) | |
| 3306 | ROM_LOAD( "mq3", 0x1000, 0x0800, CRC(33965a89) SHA1(92912cea76a472d9b709c664d9818844a07fcc32) ) | |
| 3307 | ROM_LOAD( "mq4", 0x1800, 0x0800, CRC(a3861d17) SHA1(d7037d93b7838ccdd9a6a1a1476571cfa869fca1) ) | |
| 3308 | ROM_LOAD( "mq5", 0x2000, 0x0800, CRC(8bcf9c67) SHA1(7af0d9308d20c52675301acf5d1a5d62358352a6) ) | |
| 3309 | ROM_LOAD( "mq6", 0x2800, 0x0800, CRC(5750cda9) SHA1(17c2bc38037833fdb8923d4a2262264386ef916b) ) | |
| 3310 | ROM_LOAD( "mq7", 0x3000, 0x0800, CRC(78d7fe5b) SHA1(4085562a0af94c65dad2a3550409727e597c0d5b) ) | |
| 3311 | ROM_LOAD( "mq8", 0x3800, 0x0800, CRC(4919eed5) SHA1(526aaedd25e0f7c525eb7c66519218ae09b0407e) ) | |
| 3312 | ||
| 3313 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3314 | ROM_LOAD( "mqb", 0x0000, 0x0800, CRC(b55ec806) SHA1(fb52e53dfa3ae9dec162622d22de9cfdb0b5f9d6) ) | |
| 3315 | ROM_LOAD( "mqd", 0x0800, 0x0800, CRC(9e7d0e13) SHA1(18951080d307ac13344f89745f671595e26d282c) ) | |
| 3316 | ROM_LOAD( "mqa", 0x1000, 0x0800, CRC(66eee0db) SHA1(eeb08efd226e15e248999558240488ffd0e39688) ) | |
| 3317 | ROM_LOAD( "mqc", 0x1800, 0x0800, CRC(a6db5b0d) SHA1(476e197df047e991d2ea3c1fad92c799510f1647) ) | |
| 3318 | ||
| 3319 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3320 | ROM_LOAD( "vid_e6.bin", 0x0000, 0x0020, CRC(0b878b54) SHA1(3667aca564ebfef5b88d7f74fabbd16dd23183b4) ) | |
| 3321 | ROM_END | |
| 3322 | ||
| 3323 | ROM_START( moonal2 ) | |
| 3324 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3325 | ROM_LOAD( "ali1", 0x0000, 0x0400, CRC(0dcecab4) SHA1(493628640de1a7e3bb9914ee3459b74cedc599fd) ) | |
| 3326 | ROM_LOAD( "ali2", 0x0400, 0x0400, CRC(c6ee75a7) SHA1(36503351380f7638069637c22bd06da06da54a1c) ) | |
| 3327 | ROM_LOAD( "ali3", 0x0800, 0x0400, CRC(cd1be7e9) SHA1(684f1923090f0d53338705f6972778712e27577f) ) | |
| 3328 | ROM_LOAD( "ali4", 0x0c00, 0x0400, CRC(83b03f08) SHA1(a1fd422051aa7f17f857188b503031cce3fdc275) ) | |
| 3329 | ROM_LOAD( "ali5", 0x1000, 0x0400, CRC(6f3cf61d) SHA1(e238ed6f9c0813f0177abe9090e29562529eeef8) ) | |
| 3330 | ROM_LOAD( "ali6", 0x1400, 0x0400, CRC(e169d432) SHA1(a5189d7322a240863afee7ac0ecf68599498cb87) ) | |
| 3331 | ROM_LOAD( "ali7", 0x1800, 0x0400, CRC(41f64b73) SHA1(dff786a74575da9fbaca3ac610ad2f367983c7fc) ) | |
| 3332 | ROM_LOAD( "ali8", 0x1c00, 0x0400, CRC(f72ee876) SHA1(8e50a516f10d77652ff3692bb85adb66bc128e26) ) | |
| 3333 | ROM_LOAD( "ali9", 0x2000, 0x0400, CRC(b7fb763c) SHA1(4e7c4995f52dec2ea61424c79d79797933dad604) ) | |
| 3334 | ROM_LOAD( "ali10", 0x2400, 0x0400, CRC(b1059179) SHA1(86de04c82a7604cb57958a52d5585837481f94a5) ) | |
| 3335 | ROM_LOAD( "ali11", 0x2800, 0x0400, CRC(9e79a1c6) SHA1(2f59e3a2a81a224b163b23bd2c184385f64e1565) ) | |
| 3336 | ||
| 3337 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3338 | ROM_LOAD( "ali13.1h", 0x0000, 0x0800, CRC(a1287bf6) SHA1(eeeaba4b9e186454a5e2f1c26e333e8fccd97af8) ) | |
| 3339 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 3340 | ROM_LOAD( "ali12.1k", 0x1000, 0x0800, CRC(528f1481) SHA1(e266a75c3109bcfa2a0394f2ed0ac136fc3158ba) ) | |
| 3341 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 3342 | ||
| 3343 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3344 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 3345 | ROM_END | |
| 3346 | ||
| 3347 | ROM_START( moonal2b ) | |
| 3348 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3349 | ROM_LOAD( "ali1", 0x0000, 0x0400, CRC(0dcecab4) SHA1(493628640de1a7e3bb9914ee3459b74cedc599fd) ) | |
| 3350 | ROM_LOAD( "ali2", 0x0400, 0x0400, CRC(c6ee75a7) SHA1(36503351380f7638069637c22bd06da06da54a1c) ) | |
| 3351 | ROM_LOAD( "md-2", 0x0800, 0x0800, CRC(8318b187) SHA1(75bb113db1111cd2a335139fa6cb94d9522f5860) ) | |
| 3352 | ROM_LOAD( "ali5", 0x1000, 0x0400, CRC(6f3cf61d) SHA1(e238ed6f9c0813f0177abe9090e29562529eeef8) ) | |
| 3353 | ROM_LOAD( "ali6", 0x1400, 0x0400, CRC(e169d432) SHA1(a5189d7322a240863afee7ac0ecf68599498cb87) ) | |
| 3354 | ROM_LOAD( "ali7", 0x1800, 0x0400, CRC(41f64b73) SHA1(dff786a74575da9fbaca3ac610ad2f367983c7fc) ) | |
| 3355 | ROM_LOAD( "ali8", 0x1c00, 0x0400, CRC(f72ee876) SHA1(8e50a516f10d77652ff3692bb85adb66bc128e26) ) | |
| 3356 | ROM_LOAD( "ali9", 0x2000, 0x0400, CRC(b7fb763c) SHA1(4e7c4995f52dec2ea61424c79d79797933dad604) ) | |
| 3357 | ROM_LOAD( "ali10", 0x2400, 0x0400, CRC(b1059179) SHA1(86de04c82a7604cb57958a52d5585837481f94a5) ) | |
| 3358 | ROM_LOAD( "md-6", 0x2800, 0x0800, CRC(9cc973e0) SHA1(8d96448794e0869036a3fac7f7fbcad459149a98) ) | |
| 3359 | ||
| 3360 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3361 | ROM_LOAD( "ali13.1h", 0x0000, 0x0800, CRC(a1287bf6) SHA1(eeeaba4b9e186454a5e2f1c26e333e8fccd97af8) ) | |
| 3362 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 3363 | ROM_LOAD( "ali12.1k", 0x1000, 0x0800, CRC(528f1481) SHA1(e266a75c3109bcfa2a0394f2ed0ac136fc3158ba) ) | |
| 3364 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 3365 | ||
| 3366 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3367 | ROM_LOAD( "6l.bpr", 0x0000, 0x0020, CRC(c3ac9467) SHA1(f382ad5a34d282056c78a5ec00c30ec43772bae2) ) | |
| 3368 | ROM_END | |
| 3369 | ||
| 3370 | ||
| 3371 | ROM_START( skybase ) | |
| 3372 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3373 | ROM_LOAD( "skybase.9a", 0x0000, 0x1000, CRC(845b87a5) SHA1(8a249c1ec921532cb1bb85ed7fec11396634ca38) ) | |
| 3374 | ROM_LOAD( "skybase.8a", 0x1000, 0x1000, CRC(096785c2) SHA1(a0833bc1984e1f198587195e58b6fed6657922bd) ) | |
| 3375 | ROM_LOAD( "skybase.7a", 0x2000, 0x1000, CRC(d50c715b) SHA1(3d0fa15514b210bccd4aeed06540122a4f56fd7a) ) | |
| 3376 | ROM_LOAD( "skybase.6a", 0x3000, 0x1000, CRC(f57edb27) SHA1(4b5c376017700315345241fad96c00478a14fc8f) ) | |
| 3377 | ROM_LOAD( "skybase.5a", 0x4000, 0x1000, CRC(50365d95) SHA1(9b3d360c9d1df0ebf047bef1b30765ea9bb42b42) ) | |
| 3378 | ROM_LOAD( "skybase.4a", 0x5000, 0x1000, CRC(cbd6647f) SHA1(7a167c9df6b5f3346c37e5c45d0680b0b29852a6) ) | |
| 3379 | ||
| 3380 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3381 | ROM_LOAD( "skybase.7t", 0x0000, 0x1000, CRC(9b471686) SHA1(b35831daa8ce57e498c2c4f75763a74c340cfaf0) ) | |
| 3382 | ROM_LOAD( "skybase.8t", 0x1000, 0x1000, CRC(1cf723da) SHA1(f2e41ab89413298571626d13b2b5853eb35dcb96) ) | |
| 3383 | ROM_LOAD( "skybase.10t", 0x2000, 0x1000, CRC(fe02e72c) SHA1(bf7c078e984b13dcc12d529904f1096d65e41bec) ) | |
| 3384 | ROM_LOAD( "skybase.9t", 0x3000, 0x1000, CRC(0871291f) SHA1(2e4e802316b55711bcfeb48d84bacd11afff8cb3) ) | |
| 3385 | ||
| 3386 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3387 | ROM_LOAD( "82s123.bpr", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Color prom */ | |
| 3388 | ROM_END | |
| 3389 | ||
| 3390 | ||
| 3391 | ROM_START( jumpbug ) | |
| 3392 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3393 | ROM_LOAD( "jb1", 0x0000, 0x1000, CRC(415aa1b7) SHA1(4f9edd7e9720acf085dd8910849c2f2fac5cb547) ) | |
| 3394 | ROM_LOAD( "jb2", 0x1000, 0x1000, CRC(b1c27510) SHA1(66fbe0b94b6c101cb50d7a3ff78160110415dff9) ) | |
| 3395 | ROM_LOAD( "jb3", 0x2000, 0x1000, CRC(97c24be2) SHA1(1beb9fbc3a52610b416af8b5fee156d8b6b3125a) ) | |
| 3396 | ROM_LOAD( "jb4", 0x3000, 0x1000, CRC(66751d12) SHA1(26c68cfb59596ae164ee9ae4a24ddf8dc7a923a7) ) | |
| 3397 | ROM_LOAD( "jb5", 0x8000, 0x1000, CRC(e2d66faf) SHA1(3dec0796642856359de57afb896cc668c0245b40) ) | |
| 3398 | ROM_LOAD( "jb6", 0x9000, 0x1000, CRC(49e0bdfd) SHA1(8d89d9cd7134b153264fdc49d2c68e8c14004b0d) ) | |
| 3399 | ROM_LOAD( "jb7", 0xa000, 0x0800, CRC(83d71302) SHA1(9292088d26ba29fbf8817df03461b8bb6bf27639) ) | |
| 3400 | ||
| 3401 | ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3402 | ROM_LOAD( "jbl", 0x0000, 0x0800, CRC(9a091b0a) SHA1(19b88f802ee80ff8901ef99e3688f2869f1a69c5) ) | |
| 3403 | ROM_LOAD( "jbm", 0x0800, 0x0800, CRC(8a0fc082) SHA1(58b72a3161950a2fb71cdab3f30bb3abb19c7978) ) | |
| 3404 | ROM_LOAD( "jbn", 0x1000, 0x0800, CRC(155186e0) SHA1(717ddaecc52a4ef03a01fcddb520acdbfb0d722a) ) | |
| 3405 | ROM_LOAD( "jbi", 0x1800, 0x0800, CRC(7749b111) SHA1(55071ce04708bd52177644298f76ae79d23f6ac9) ) | |
| 3406 | ROM_LOAD( "jbj", 0x2000, 0x0800, CRC(06e8d7df) SHA1(d04f1503d9fde5aae92652cb9d2eb16bd6a0fe9c) ) | |
| 3407 | ROM_LOAD( "jbk", 0x2800, 0x0800, CRC(b8dbddf3) SHA1(043de444890a93459789dc99c43ef88ff66b79e4) ) | |
| 3408 | ||
| 3409 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3410 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 3411 | ROM_END | |
| 3412 | ||
| 3413 | ROM_START( jumpbugb ) | |
| 3414 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3415 | ROM_LOAD( "jb1", 0x0000, 0x1000, CRC(415aa1b7) SHA1(4f9edd7e9720acf085dd8910849c2f2fac5cb547) ) | |
| 3416 | ROM_LOAD( "jb2", 0x1000, 0x1000, CRC(b1c27510) SHA1(66fbe0b94b6c101cb50d7a3ff78160110415dff9) ) | |
| 3417 | ROM_LOAD( "jb3b", 0x2000, 0x1000, CRC(cb8b8a0f) SHA1(9e8591471dda2cb964ba2a866d4a5a3ef65d8707) ) | |
| 3418 | ROM_LOAD( "jb4", 0x3000, 0x1000, CRC(66751d12) SHA1(26c68cfb59596ae164ee9ae4a24ddf8dc7a923a7) ) | |
| 3419 | ROM_LOAD( "jb5b", 0x8000, 0x1000, CRC(7553b5e2) SHA1(6439585e713581dd36cea6324414f803d683216f) ) | |
| 3420 | ROM_LOAD( "jb6b", 0x9000, 0x1000, CRC(47be9843) SHA1(495d6fc732267bfd19a953b0b70df3f94b3c1e38) ) | |
| 3421 | ROM_LOAD( "jb7b", 0xa000, 0x0800, CRC(460aed61) SHA1(449ab1bb502f98da74c0955ce1364f8708fd3f81) ) | |
| 3422 | ||
| 3423 | ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3424 | ROM_LOAD( "jbl", 0x0000, 0x0800, CRC(9a091b0a) SHA1(19b88f802ee80ff8901ef99e3688f2869f1a69c5) ) | |
| 3425 | ROM_LOAD( "jbm", 0x0800, 0x0800, CRC(8a0fc082) SHA1(58b72a3161950a2fb71cdab3f30bb3abb19c7978) ) | |
| 3426 | ROM_LOAD( "jbn", 0x1000, 0x0800, CRC(155186e0) SHA1(717ddaecc52a4ef03a01fcddb520acdbfb0d722a) ) | |
| 3427 | ROM_LOAD( "jbi", 0x1800, 0x0800, CRC(7749b111) SHA1(55071ce04708bd52177644298f76ae79d23f6ac9) ) | |
| 3428 | ROM_LOAD( "jbj", 0x2000, 0x0800, CRC(06e8d7df) SHA1(d04f1503d9fde5aae92652cb9d2eb16bd6a0fe9c) ) | |
| 3429 | ROM_LOAD( "jbk", 0x2800, 0x0800, CRC(b8dbddf3) SHA1(043de444890a93459789dc99c43ef88ff66b79e4) ) | |
| 3430 | ||
| 3431 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3432 | ROM_LOAD( "l06_prom.bin", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) | |
| 3433 | ROM_END | |
| 3434 | ||
| 3435 | ROM_START( levers ) | |
| 3436 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3437 | ROM_LOAD( "g96059.a8", 0x0000, 0x1000, CRC(9550627a) SHA1(3da9a614622d5b880852fe2bb2e8e4a60afb2d34) ) | |
| 3438 | ROM_LOAD( "g96060.d8", 0x2000, 0x1000, CRC(5ac64646) SHA1(459755932a033095eff72d78d1e916932964c5cc) ) | |
| 3439 | ROM_LOAD( "g96061.e8", 0x3000, 0x1000, CRC(9db8e520) SHA1(1ff10e221e45cc4afb77571a171937f8501aa509) ) | |
| 3440 | ROM_LOAD( "g96062.h8", 0x8000, 0x1000, CRC(7c8e8b3a) SHA1(ad281f801e818ea529be8ec43096212e834f69ef) ) | |
| 3441 | ROM_LOAD( "g96063.j8", 0x9000, 0x1000, CRC(fa61e793) SHA1(7aad77f3de05a7bd3dcb0c9c97a3cccd1136f352) ) | |
| 3442 | ROM_LOAD( "g96064.l8", 0xa000, 0x1000, CRC(f797f389) SHA1(b961f0506defa9884ac47b2316884318e1e90bff) ) | |
| 3443 | ||
| 3444 | ROM_REGION( 0x3000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3445 | ROM_LOAD( "g95948.n1", 0x0000, 0x0800, CRC(d8a0c692) SHA1(dd64623f4072bcb8c528b5b7b95a7bd858b79d6c) ) | |
| 3446 | /*0x0800- 0x0fff empty */ | |
| 3447 | ROM_LOAD( "g95949.s1", 0x1000, 0x0800, CRC(3660a552) SHA1(bebfd30f90da55d6d42945717b9b38d5b0c9623a) ) | |
| 3448 | ROM_LOAD( "g95946.j1", 0x1800, 0x0800, CRC(73b61b2d) SHA1(fdb75eea1778daa6f9c48243361e418044b471f8) ) | |
| 3449 | /*0x2000- 0x27ff empty */ | |
| 3450 | ROM_LOAD( "g95947.m1", 0x2800, 0x0800, CRC(72ff67e2) SHA1(dcc12f17a857271c253d06d5ac170b9d6bb6a2bd) ) | |
| 3451 | ||
| 3452 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3453 | ROM_LOAD( "g960lev.clr", 0x0000, 0x0020, CRC(01febbbe) SHA1(11b1dab7983ba29e830ccb7f14eb1a99465c9e81) ) | |
| 3454 | ROM_END | |
| 3455 | ||
| 3456 | ||
| 3457 | ROM_START( checkman ) | |
| 3458 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3459 | ROM_LOAD( "cm1", 0x0000, 0x0800, CRC(e8cbdd28) SHA1(ba0b41e375b94bbfed6a2c949cc7958474c8ba6e) ) | |
| 3460 | ROM_LOAD( "cm2", 0x0800, 0x0800, CRC(b8432d4d) SHA1(d331476f1f88b7ef1426bed7442392f369e0650b) ) | |
| 3461 | ROM_LOAD( "cm3", 0x1000, 0x0800, CRC(15a97f61) SHA1(3c06c734cef1eed68b401d0d36f7ec9126986d73) ) | |
| 3462 | ROM_LOAD( "cm4", 0x1800, 0x0800, CRC(8c12ecc0) SHA1(1c2d61ef84404b6a524c453a3d339aaaadb38229) ) | |
| 3463 | ROM_LOAD( "cm5", 0x2000, 0x0800, CRC(2352cfd6) SHA1(77db5f925ee5f83c17a05a78af5191eefe70ca5a) ) | |
| 3464 | ||
| 3465 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 3466 | ROM_LOAD( "cm13", 0x0000, 0x0800, CRC(0b09a3e8) SHA1(e4e65da306e22f61790f0a68d953cc017c3ce762) ) | |
| 3467 | ROM_LOAD( "cm14", 0x0800, 0x0800, CRC(47f043be) SHA1(44d8892d93849cbc989561387c0a05baead58446) ) | |
| 3468 | ||
| 3469 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3470 | ROM_LOAD( "cm11", 0x0000, 0x0800, CRC(8d1bcca0) SHA1(28fc7fb76180820e84d59e6836ed1f8136e8f138) ) | |
| 3471 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 3472 | ROM_LOAD( "cm9", 0x1000, 0x0800, CRC(3cd5c751) SHA1(a769fdd30752da8fb331aa0f7a0181a93f0b3378) ) | |
| 3473 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 3474 | ||
| 3475 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3476 | ROM_LOAD( "checkman.clr", 0x0000, 0x0020, CRC(57a45057) SHA1(d4ec6a54f72640e5b485aa59e206c090e67ff640) ) | |
| 3477 | ROM_END | |
| 3478 | ||
| 3479 | ROM_START( checkmaj ) | |
| 3480 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3481 | ROM_LOAD( "cm_1.bin", 0x0000, 0x1000, CRC(456a118f) SHA1(7c2e8343360f446af4391012784a1ccfecae3299) ) | |
| 3482 | ROM_LOAD( "cm_2.bin", 0x1000, 0x1000, CRC(146b2c44) SHA1(80455396a9b1802fcefaec1340b76461c0601bf9) ) | |
| 3483 | ROM_LOAD( "cm_3.bin", 0x2000, 0x0800, CRC(73e1c945) SHA1(bcf2558958a30e5936f19ff53687f2316e0b822e) ) | |
| 3484 | ||
| 3485 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 3486 | ROM_LOAD( "cm_4.bin", 0x0000, 0x1000, CRC(923cffa1) SHA1(132822d20de2ad1ecc561e811ca40c5642500631) ) | |
| 3487 | ||
| 3488 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3489 | ROM_LOAD( "cm_6.bin", 0x0000, 0x0800, CRC(476a7cc3) SHA1(3c343b0dcfb2f4cbec2f8b5854a303a1660fea22) ) | |
| 3490 | ROM_LOAD( "cm_5.bin", 0x0800, 0x0800, CRC(b3df2b5f) SHA1(519a0894d1794211659abeb6b2a2c610e6c2af25) ) | |
| 3491 | ||
| 3492 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3493 | ROM_LOAD( "checkman.clr", 0x0000, 0x0020, CRC(57a45057) SHA1(d4ec6a54f72640e5b485aa59e206c090e67ff640) ) | |
| 3494 | ROM_END | |
| 3495 | ||
| 3496 | ROM_START( dingo ) | |
| 3497 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3498 | ROM_LOAD( "003.e7", 0x0000, 0x1000, CRC(d088550f) SHA1(13b87995881e484825c45ab4e558ac3d90bf162a) ) | |
| 3499 | ROM_LOAD( "004.h7", 0x1000, 0x1000, CRC(a228446a) SHA1(4b7e611edd6bce308cc7b17caa068445f5438f4f) ) | |
| 3500 | ROM_LOAD( "005.j7", 0x2000, 0x0800, CRC(14d680bb) SHA1(e9d84d1a62ed5300c390a7326c16cebd0aceae3b) ) | |
| 3501 | ||
| 3502 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 3503 | ROM_LOAD( "6.7l", 0x0000, 0x1000, CRC(047092e0) SHA1(24014c999c904b4be571121b0f6808713d95add1) ) | |
| 3504 | ||
| 3505 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3506 | ROM_LOAD( "001.h1", 0x0000, 0x0800, CRC(1ab1dd4d) SHA1(74ef2226e1f1d2583b0c7718325da193f411a97d) ) | |
| 3507 | ROM_LOAD( "002.k1", 0x0800, 0x0800, CRC(4be375ee) SHA1(7379b037887baca0f932d910f8f94f7edf39bb26) ) | |
| 3508 | ||
| 3509 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3510 | ROM_LOAD( "18s030.l6", 0x0000, 0x0020, CRC(3061d0f9) SHA1(5af85499c6219137dc57d9fba79cb5afa3548ab1) ) | |
| 3511 | ROM_END | |
| 3512 | ||
| 3513 | ROM_START( dingoe ) | |
| 3514 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3515 | ROM_LOAD( "unk.2b", 0x0000, 0x1000, CRC(0df7ac6d) SHA1(c1d45a7694848e66426c3510d0749c98e51571cb) ) | |
| 3516 | ROM_LOAD( "unk.2d", 0x1000, 0x1000, CRC(0881e204) SHA1(4ba59d73e04b5337cfbd68d6a708e7321cb629f1) ) | |
| 3517 | ROM_LOAD( "unk.3b", 0x2000, 0x1000, BAD_DUMP CRC(0b6aeab5) SHA1(ebfab3227dd23e3e1802b881a5662f634f86e382) ) // both halves identical (bad?) | |
| 3518 | ||
| 3519 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 3520 | ROM_LOAD( "unk.1c", 0x0000, 0x0800, CRC(8e354c38) SHA1(87608c1fa55e6fcf482f5d3bcc506a84673719cc) ) | |
| 3521 | ROM_LOAD( "unk.1d", 0x0800, 0x0800, CRC(092878d6) SHA1(8a3b25e27df5aee2023a7e1a193ab152df171ede) ) | |
| 3522 | ||
| 3523 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3524 | ROM_LOAD( "unk.4d", 0x0000, 0x0800, CRC(76a00a56) SHA1(2a696b9ce3e148529c731231852dc104729bb916) ) | |
| 3525 | ROM_LOAD( "unk.4b", 0x0800, 0x0800, CRC(5acf57aa) SHA1(bb05be53728e7867085dad5854fcadfa687ff5d7) ) | |
| 3526 | ||
| 3527 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3528 | ROM_LOAD( "82s123n.001", 0x0000, 0x0020, CRC(02b11865) SHA1(70053db9635a9194e4372835379a82f6ea64ef83) ) /* Unknown */ | |
| 3529 | ROM_END | |
| 3530 | ||
| 3531 | ||
| 3532 | ROM_START( mshuttle ) | |
| 3533 | ROM_REGION( 2*0x10000, REGION_CPU1, 0 ) /* 64k for code + 64k for decrypted opcodes */ | |
| 3534 | ROM_LOAD( "my05", 0x0000, 0x1000, CRC(83574af1) SHA1(d69c2a0538a49d6c72c3346ac4e3959d91da6c98) ) | |
| 3535 | ROM_LOAD( "my04", 0x1000, 0x1000, CRC(1cfae2c8) SHA1(6c7eeee70e91b8498c41525dcc60f8086cff8da7) ) | |
| 3536 | ROM_LOAD( "my03", 0x2000, 0x1000, CRC(c8b8a368) SHA1(140ba60f55285d1e9f7a262634f5ce5c3470ab71) ) | |
| 3537 | ROM_LOAD( "my02", 0x3000, 0x1000, CRC(b6aeee6e) SHA1(032af7000aebe9d34319231cdb3f2fe5de7158ba) ) | |
| 3538 | ROM_LOAD( "my01", 0x4000, 0x1000, CRC(def82adc) SHA1(2fb963299468c52d50b7460b55bf69c9659ee21d) ) | |
| 3539 | ||
| 3540 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3541 | ROM_LOAD( "my09", 0x0000, 0x1000, CRC(3601b380) SHA1(c0b9d1801f58a16449708d514d2fd88e34af340b) ) | |
| 3542 | ROM_LOAD( "my11", 0x1000, 0x0800, CRC(b659e932) SHA1(3f63c99e81cb93c9553a5e274546525f598d50c4) ) | |
| 3543 | ROM_LOAD( "my08", 0x2000, 0x1000, CRC(992b06cd) SHA1(8645ccad8169601bbe25b9f2b17b99004c0a584f) ) | |
| 3544 | ROM_LOAD( "my10", 0x3000, 0x0800, CRC(d860e6ce) SHA1(2912d13bf69496f8f18358a36366a1f60afd0070) ) | |
| 3545 | ||
| 3546 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3547 | ROM_LOAD( "mscprom1.bin", 0x0000, 0x0020, CRC(ea0d1af0) SHA1(cb59e04c02307dfe847e3170cf0a7f62829b6094) ) | |
| 3548 | ||
| 3549 | ROM_REGION( 0x2000, REGION_SOUND1, 0 ) /* samples */ | |
| 3550 | ROM_LOAD( "my07", 0x0000, 0x1000, CRC(522a2920) SHA1(a64d821a8ff6bd6e2b0bdb1e632181e65a97363b) ) | |
| 3551 | ROM_LOAD( "my06", 0x1000, 0x1000, CRC(466415f2) SHA1(a05f8238cdcebe926a564ef6268b3cd677987fa2) ) | |
| 3552 | ROM_END | |
| 3553 | ||
| 3554 | ROM_START( mshuttlj ) | |
| 3555 | ROM_REGION( 2*0x10000, REGION_CPU1, 0 ) /* 64k for code + 64k for decrypted opcodes */ | |
| 3556 | ROM_LOAD( "mcs.5", 0x0000, 0x1000, CRC(a5a292b4) SHA1(b4e9d969c762f4114eba88051917df122fc7181f) ) | |
| 3557 | ROM_LOAD( "mcs.4", 0x1000, 0x1000, CRC(acdc0f9e) SHA1(8cd6d6566fe3f4090ccb625c3c1e5850a371826f) ) | |
| 3558 | ROM_LOAD( "mcs.3", 0x2000, 0x1000, CRC(c1e3f5d8) SHA1(d3af89d485b1ca21ac879dbe15490dcd1cd64f2a) ) | |
| 3559 | ROM_LOAD( "mcs.2", 0x3000, 0x1000, CRC(14577703) SHA1(51537982dd06ba44e95e4c7d1f7fa41ff186421d) ) | |
| 3560 | ||
| 3561 | ROM_LOAD( "mcs.1", 0x4000, 0x1000, CRC(27d46772) SHA1(848a47ba30823a55933bb55792991f0535078f0c) ) | |
| 3562 | ||
| 3563 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3564 | ROM_LOAD( "my09", 0x0000, 0x1000, CRC(3601b380) SHA1(c0b9d1801f58a16449708d514d2fd88e34af340b) ) | |
| 3565 | ROM_LOAD( "my11", 0x1000, 0x0800, CRC(b659e932) SHA1(3f63c99e81cb93c9553a5e274546525f598d50c4) ) | |
| 3566 | ROM_LOAD( "my08", 0x2000, 0x1000, CRC(992b06cd) SHA1(8645ccad8169601bbe25b9f2b17b99004c0a584f) ) | |
| 3567 | ROM_LOAD( "my10", 0x3000, 0x0800, CRC(d860e6ce) SHA1(2912d13bf69496f8f18358a36366a1f60afd0070) ) | |
| 3568 | ||
| 3569 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3570 | ROM_LOAD( "mscprom1.bin", 0x0000, 0x0020, CRC(ea0d1af0) SHA1(cb59e04c02307dfe847e3170cf0a7f62829b6094) ) | |
| 3571 | ||
| 3572 | ROM_REGION( 0x2000, REGION_SOUND1, 0 ) /* samples */ | |
| 3573 | ROM_LOAD( "my07", 0x0000, 0x1000, CRC(522a2920) SHA1(a64d821a8ff6bd6e2b0bdb1e632181e65a97363b) ) | |
| 3574 | ROM_LOAD( "my06", 0x1000, 0x1000, CRC(466415f2) SHA1(a05f8238cdcebe926a564ef6268b3cd677987fa2) ) | |
| 3575 | ROM_END | |
| 3576 | ||
| 3577 | ROM_START( mshutlj2 ) | |
| 3578 | ROM_REGION( 2*0x10000, REGION_CPU1, 0 ) /* 64k for code + 64k for decrypted opcodes */ | |
| 3579 | ROM_LOAD( "ali5.bin", 0x0000, 0x1000, CRC(320fe630) SHA1(df4fe25989783c8851f41c9b4b63dedfa365c1e9) ) | |
| 3580 | ROM_LOAD( "mcs.4", 0x1000, 0x1000, CRC(acdc0f9e) SHA1(8cd6d6566fe3f4090ccb625c3c1e5850a371826f) ) | |
| 3581 | ROM_LOAD( "mcs.3", 0x2000, 0x1000, CRC(c1e3f5d8) SHA1(d3af89d485b1ca21ac879dbe15490dcd1cd64f2a) ) | |
| 3582 | ROM_LOAD( "ali2.bin", 0x3000, 0x1000, CRC(9ed169e1) SHA1(75a24d0fcbdfc7c4e6fa0d8c7f8b4a3bccaa4439) ) | |
| 3583 | ||
| 3584 | ROM_LOAD( "ali1.bin", 0x4000, 0x1000, CRC(7f8a52d9) SHA1(4e62f6265289bae1a46e60cdd3230e188b2aec3c) ) | |
| 3585 | ||
| 3586 | ROM_REGION( 0x4000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3587 | ROM_LOAD( "my09", 0x0000, 0x1000, CRC(3601b380) SHA1(c0b9d1801f58a16449708d514d2fd88e34af340b) ) | |
| 3588 | ROM_LOAD( "my11", 0x1000, 0x0800, CRC(b659e932) SHA1(3f63c99e81cb93c9553a5e274546525f598d50c4) ) | |
| 3589 | ROM_LOAD( "my08", 0x2000, 0x1000, CRC(992b06cd) SHA1(8645ccad8169601bbe25b9f2b17b99004c0a584f) ) | |
| 3590 | ROM_LOAD( "my10", 0x3000, 0x0800, CRC(d860e6ce) SHA1(2912d13bf69496f8f18358a36366a1f60afd0070) ) | |
| 3591 | ||
| 3592 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3593 | ROM_LOAD( "mscprom1.bin", 0x0000, 0x0020, CRC(ea0d1af0) SHA1(cb59e04c02307dfe847e3170cf0a7f62829b6094) ) | |
| 3594 | ||
| 3595 | ROM_REGION( 0x2000, REGION_SOUND1, 0 ) /* samples */ | |
| 3596 | ROM_LOAD( "my07", 0x0000, 0x1000, CRC(522a2920) SHA1(a64d821a8ff6bd6e2b0bdb1e632181e65a97363b) ) | |
| 3597 | ROM_LOAD( "my06", 0x1000, 0x1000, CRC(466415f2) SHA1(a05f8238cdcebe926a564ef6268b3cd677987fa2) ) | |
| 3598 | ROM_END | |
| 3599 | ||
| 3600 | ||
| 3601 | ROM_START( kingball ) | |
| 3602 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3603 | ROM_LOAD( "prg1.7f", 0x0000, 0x1000, CRC(6cb49046) SHA1(a0891605dff7f9ff51bc7ad85f831a749f2f61e9) ) | |
| 3604 | ROM_LOAD( "prg2.7j", 0x1000, 0x1000, CRC(c223b416) SHA1(ca2d9f6b8ef6db4f382089161f4147d9828c3554) ) | |
| 3605 | ROM_LOAD( "prg3.7l", 0x2000, 0x0800, CRC(453634c0) SHA1(0025ccd91e165692092a37541e730010e85e37f2) ) | |
| 3606 | ||
| 3607 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 3608 | ROM_LOAD( "kbe1.ic4", 0x0000, 0x0800, CRC(5be2c80a) SHA1(f719a80357bed3d66bce40569690f419740148c5) ) | |
| 3609 | ROM_LOAD( "kbe2.ic5", 0x0800, 0x0800, CRC(bb59e965) SHA1(830e0c415f051e932d76df604025e4e33118a799) ) | |
| 3610 | ROM_LOAD( "kbe3.ic6", 0x1000, 0x0800, CRC(1c94dd31) SHA1(14ab59b8eee741eb1f10ae99ddb99bf7c2dab957) ) | |
| 3611 | ROM_LOAD( "kbe2.ic7", 0x1800, 0x0800, CRC(bb59e965) SHA1(830e0c415f051e932d76df604025e4e33118a799) ) | |
| 3612 | ||
| 3613 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3614 | ROM_LOAD( "chg1.1h", 0x0000, 0x0800, CRC(9cd550e7) SHA1(d2989e6b7a4d7b37a711ef1cfb536fe13e0c5482) ) | |
| 3615 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 3616 | ROM_LOAD( "chg2.1k", 0x1000, 0x0800, CRC(a206757d) SHA1(46b50005876b7f61ab4a118d0a4caaebce8ce3e1) ) | |
| 3617 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 3618 | ||
| 3619 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3620 | ROM_LOAD( "kb2-1", 0x0000, 0x0020, CRC(15dd5b16) SHA1(3d2ca2b42bf508a9e5198e970abcbbedf5729164) ) | |
| 3621 | ROM_END | |
| 3622 | ||
| 3623 | ROM_START( kingbalj ) | |
| 3624 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3625 | ROM_LOAD( "prg1.7f", 0x0000, 0x1000, CRC(6cb49046) SHA1(a0891605dff7f9ff51bc7ad85f831a749f2f61e9) ) | |
| 3626 | ROM_LOAD( "prg2.7j", 0x1000, 0x1000, CRC(c223b416) SHA1(ca2d9f6b8ef6db4f382089161f4147d9828c3554) ) | |
| 3627 | ROM_LOAD( "prg3.7l", 0x2000, 0x0800, CRC(453634c0) SHA1(0025ccd91e165692092a37541e730010e85e37f2) ) | |
| 3628 | ||
| 3629 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* 64k for sound code */ | |
| 3630 | ROM_LOAD( "kbj1.ic4", 0x0000, 0x0800, CRC(ba16beb7) SHA1(8c2c91a9e941d858a49edd6c0c8a912e1135653e) ) | |
| 3631 | ROM_LOAD( "kbj2.ic5", 0x0800, 0x0800, CRC(56686a63) SHA1(8e624df57a63a556941fdbebcd886488799fad17) ) | |
| 3632 | ROM_LOAD( "kbj3.ic6", 0x1000, 0x0800, CRC(fbc570a5) SHA1(d0dbaf86396bca65e067338a3b5b60b24990b8be) ) | |
| 3633 | ROM_LOAD( "kbj2.ic7", 0x1800, 0x0800, CRC(56686a63) SHA1(8e624df57a63a556941fdbebcd886488799fad17) ) | |
| 3634 | ||
| 3635 | ||
| 3636 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3637 | ROM_LOAD( "chg1.1h", 0x0000, 0x0800, CRC(9cd550e7) SHA1(d2989e6b7a4d7b37a711ef1cfb536fe13e0c5482) ) | |
| 3638 | ROM_RELOAD( 0x0800, 0x0800 ) | |
| 3639 | ROM_LOAD( "chg2.1k", 0x1000, 0x0800, CRC(a206757d) SHA1(46b50005876b7f61ab4a118d0a4caaebce8ce3e1) ) | |
| 3640 | ROM_RELOAD( 0x1800, 0x0800 ) | |
| 3641 | ||
| 3642 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3643 | ROM_LOAD( "kb2-1", 0x0000, 0x0020, CRC(15dd5b16) SHA1(3d2ca2b42bf508a9e5198e970abcbbedf5729164) ) | |
| 3644 | ROM_END | |
| 3645 | ||
| 3646 | ||
| 3647 | /************************************* | |
| 3648 | * | |
| 3649 | * ROM definitions | |
| 3650 | * Konami games | |
| 3651 | * | |
| 3652 | *************************************/ | |
| 3653 | ||
| 3654 | ROM_START( frogger ) | |
| 3655 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3656 | ROM_LOAD( "frogger.26", 0x0000, 0x1000, CRC(597696d6) SHA1(e7e021776cad00f095a1ebbef407b7c0a8f5d835) ) | |
| 3657 | ROM_LOAD( "frogger.27", 0x1000, 0x1000, CRC(b6e6fcc3) SHA1(5e8692f2b0c7f4b3642b3ee6670e1c3b20029cdc) ) | |
| 3658 | ROM_LOAD( "frsm3.7", 0x2000, 0x1000, CRC(aca22ae0) SHA1(5a99060ea2506a3ac7d61ca5876ce5cb3e493565) ) | |
| 3659 | ||
| 3660 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3661 | ROM_LOAD( "frogger.608", 0x0000, 0x0800, CRC(e8ab0256) SHA1(f090afcfacf5f13cdfa0dfda8e3feb868c6ce8bc) ) | |
| 3662 | ROM_LOAD( "frogger.609", 0x0800, 0x0800, CRC(7380a48f) SHA1(75582a94b696062cbdb66a4c5cf0bc0bb94f81ee) ) | |
| 3663 | ROM_LOAD( "frogger.610", 0x1000, 0x0800, CRC(31d7eb27) SHA1(2e1d34ae4da385fd7cac94707d25eeddf4604e1a) ) | |
| 3664 | ||
| 3665 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3666 | ROM_LOAD( "frogger.607", 0x0000, 0x0800, CRC(05f7d883) SHA1(78831fd287da18928651a8adb7e578d291493eff) ) | |
| 3667 | ROM_LOAD( "frogger.606", 0x0800, 0x0800, CRC(f524ee30) SHA1(dd768967add61467baa08d5929001f157d6cd911) ) | |
| 3668 | ||
| 3669 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3670 | ROM_LOAD( "pr-91.6l", 0x0000, 0x0020, CRC(413703bf) SHA1(66648b2b28d3dcbda5bdb2605d1977428939dd3c) ) | |
| 3671 | ROM_END | |
| 3672 | ||
| 3673 | ROM_START( frogseg1 ) | |
| 3674 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3675 | ROM_LOAD( "frogger.26", 0x0000, 0x1000, CRC(597696d6) SHA1(e7e021776cad00f095a1ebbef407b7c0a8f5d835) ) | |
| 3676 | ROM_LOAD( "frogger.27", 0x1000, 0x1000, CRC(b6e6fcc3) SHA1(5e8692f2b0c7f4b3642b3ee6670e1c3b20029cdc) ) | |
| 3677 | ROM_LOAD( "frogger.34", 0x2000, 0x1000, CRC(ed866bab) SHA1(24e1bbde44eb5480b7a0570fa0dc1de388cb95ba) ) | |
| 3678 | ||
| 3679 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3680 | ROM_LOAD( "frogger.608", 0x0000, 0x0800, CRC(e8ab0256) SHA1(f090afcfacf5f13cdfa0dfda8e3feb868c6ce8bc) ) | |
| 3681 | ROM_LOAD( "frogger.609", 0x0800, 0x0800, CRC(7380a48f) SHA1(75582a94b696062cbdb66a4c5cf0bc0bb94f81ee) ) | |
| 3682 | ROM_LOAD( "frogger.610", 0x1000, 0x0800, CRC(31d7eb27) SHA1(2e1d34ae4da385fd7cac94707d25eeddf4604e1a) ) | |
| 3683 | ||
| 3684 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3685 | ROM_LOAD( "frogger.607", 0x0000, 0x0800, CRC(05f7d883) SHA1(78831fd287da18928651a8adb7e578d291493eff) ) | |
| 3686 | ROM_LOAD( "frogger.606", 0x0800, 0x0800, CRC(f524ee30) SHA1(dd768967add61467baa08d5929001f157d6cd911) ) | |
| 3687 | ||
| 3688 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3689 | ROM_LOAD( "pr-91.6l", 0x0000, 0x0020, CRC(413703bf) SHA1(66648b2b28d3dcbda5bdb2605d1977428939dd3c) ) | |
| 3690 | ROM_END | |
| 3691 | ||
| 3692 | ROM_START( frogseg2 ) | |
| 3693 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3694 | ROM_LOAD( "frogger.ic5", 0x0000, 0x1000, CRC(efab0c79) SHA1(68c99b6cdcb9396bb473739a62ffc009b4bf57d5) ) | |
| 3695 | ROM_LOAD( "frogger.ic6", 0x1000, 0x1000, CRC(aeca9c13) SHA1(cdf560adbd7f2813e86e378da7781cccf7928a44) ) | |
| 3696 | ROM_LOAD( "frogger.ic7", 0x2000, 0x1000, CRC(dd251066) SHA1(4612e1fe1ab7182a277140b1a1976cc17e0746a5) ) | |
| 3697 | ROM_LOAD( "frogger.ic8", 0x3000, 0x1000, CRC(bf293a02) SHA1(be94e9f5caa74c3de6fd95bd20928f4a9c514227) ) | |
| 3698 | ||
| 3699 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3700 | ROM_LOAD( "frogger.608", 0x0000, 0x0800, CRC(e8ab0256) SHA1(f090afcfacf5f13cdfa0dfda8e3feb868c6ce8bc) ) | |
| 3701 | ROM_LOAD( "frogger.609", 0x0800, 0x0800, CRC(7380a48f) SHA1(75582a94b696062cbdb66a4c5cf0bc0bb94f81ee) ) | |
| 3702 | ROM_LOAD( "frogger.610", 0x1000, 0x0800, CRC(31d7eb27) SHA1(2e1d34ae4da385fd7cac94707d25eeddf4604e1a) ) | |
| 3703 | ||
| 3704 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3705 | ROM_LOAD( "frogger.607", 0x0000, 0x0800, CRC(05f7d883) SHA1(78831fd287da18928651a8adb7e578d291493eff) ) | |
| 3706 | ROM_LOAD( "frogger.606", 0x0800, 0x0800, CRC(f524ee30) SHA1(dd768967add61467baa08d5929001f157d6cd911) ) | |
| 3707 | ||
| 3708 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3709 | ROM_LOAD( "pr-91.6l", 0x0000, 0x0020, CRC(413703bf) SHA1(66648b2b28d3dcbda5bdb2605d1977428939dd3c) ) | |
| 3710 | ROM_END | |
| 3711 | ||
| 3712 | ROM_START( froggrmc ) | |
| 3713 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3714 | ROM_LOAD( "epr-1031.15", 0x0000, 0x1000, CRC(4b7c8d11) SHA1(9200b33cac0ef5a6647c95ebd25237fa62fcdf30) ) | |
| 3715 | ROM_LOAD( "epr-1032.16", 0x1000, 0x1000, CRC(ac00b9d9) SHA1(6414d2aa2c0ccb8cb567ffde3acdb693cfd28dbb) ) | |
| 3716 | ROM_LOAD( "epr-1033.33", 0x2000, 0x1000, CRC(bc1d6fbc) SHA1(c9c040418f0bf7b7fce599592f806e7aaf448c3d) ) | |
| 3717 | ROM_LOAD( "epr-1034.34", 0x3000, 0x1000, CRC(9efe7399) SHA1(77355160169db256f45286e60ebf6a406527d346) ) | |
| 3718 | ||
| 3719 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3720 | ROM_LOAD( "epr-1082.42", 0x0000, 0x1000, CRC(802843c2) SHA1(059b26ddf1cdc8076d160b872f9d50b97af7f316) ) | |
| 3721 | ROM_LOAD( "epr-1035.43", 0x1000, 0x0800, CRC(14e74148) SHA1(0023394e971f191c41ff20b47835f1dafb924d15) ) | |
| 3722 | ||
| 3723 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3724 | ROM_LOAD( "frogger.607", 0x0000, 0x0800, CRC(05f7d883) SHA1(78831fd287da18928651a8adb7e578d291493eff) ) | |
| 3725 | ROM_LOAD( "epr-1036.1k", 0x0800, 0x0800, CRC(658745f8) SHA1(e4e5c3e011c8a7233a36d29e10e08905873500aa) ) | |
| 3726 | ||
| 3727 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3728 | ROM_LOAD( "pr-91.6l", 0x0000, 0x0020, CRC(413703bf) SHA1(66648b2b28d3dcbda5bdb2605d1977428939dd3c) ) | |
| 3729 | ROM_END | |
| 3730 | ||
| 3731 | ROM_START( froggers ) | |
| 3732 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3733 | ROM_LOAD( "vid_d2.bin", 0x0000, 0x0800, CRC(c103066e) SHA1(8c2d4c825e9c4180fe70b0db18a547dc3ddc3c2c) ) | |
| 3734 | ROM_LOAD( "vid_e2.bin", 0x0800, 0x0800, CRC(f08bc094) SHA1(23ad1e57f244d6b63fd9640249dcb1eeafb8206e) ) | |
| 3735 | ROM_LOAD( "vid_f2.bin", 0x1000, 0x0800, CRC(637a2ff8) SHA1(e9b9fc692ca5d8deb9cd30d9d73ad25c8d8bafe1) ) | |
| 3736 | ROM_LOAD( "vid_h2.bin", 0x1800, 0x0800, CRC(04c027a5) SHA1(193550731513c02cad464661a1ceb230819ca70f) ) | |
| 3737 | ROM_LOAD( "vid_j2.bin", 0x2000, 0x0800, CRC(fbdfbe74) SHA1(48d5d1247d09eaea2a9a29f4ed6543d0411597aa) ) | |
| 3738 | ROM_LOAD( "vid_l2.bin", 0x2800, 0x0800, CRC(8a4389e1) SHA1(b2c74afb93927dac0d8bb24e02e0b2a069f2d3c8) ) | |
| 3739 | ||
| 3740 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3741 | ROM_LOAD( "frogger.608", 0x0000, 0x0800, CRC(e8ab0256) SHA1(f090afcfacf5f13cdfa0dfda8e3feb868c6ce8bc) ) | |
| 3742 | ROM_LOAD( "frogger.609", 0x0800, 0x0800, CRC(7380a48f) SHA1(75582a94b696062cbdb66a4c5cf0bc0bb94f81ee) ) | |
| 3743 | ROM_LOAD( "frogger.610", 0x1000, 0x0800, CRC(31d7eb27) SHA1(2e1d34ae4da385fd7cac94707d25eeddf4604e1a) ) | |
| 3744 | ||
| 3745 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3746 | ROM_LOAD( "frogger.607", 0x0000, 0x0800, CRC(05f7d883) SHA1(78831fd287da18928651a8adb7e578d291493eff) ) | |
| 3747 | ROM_LOAD( "epr-1036.1k", 0x0800, 0x0800, CRC(658745f8) SHA1(e4e5c3e011c8a7233a36d29e10e08905873500aa) ) | |
| 3748 | ||
| 3749 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3750 | ROM_LOAD( "pr-91.6l", 0x0000, 0x0020, CRC(413703bf) SHA1(66648b2b28d3dcbda5bdb2605d1977428939dd3c) ) | |
| 3751 | ROM_END | |
| 3752 | ||
| 3753 | ROM_START( frogf ) | |
| 3754 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3755 | ROM_LOAD( "6.bin", 0x0000, 0x1000, CRC(8ff0a973) SHA1(adb1c28617d915fbcfa9190bd8589a56a8858e25) ) | |
| 3756 | ROM_LOAD( "7.bin", 0x1000, 0x1000, CRC(3087bb4b) SHA1(3fe1f68a2ad12b1cadba89d99afe574cf5342d81) ) | |
| 3757 | ROM_LOAD( "8.bin", 0x2000, 0x1000, CRC(c3869d12) SHA1(7bd95c12fc1fe1a3cfc0140b64cf76fa57aa3fb4) ) | |
| 3758 | ||
| 3759 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3760 | ROM_LOAD( "frogger.608", 0x0000, 0x0800, CRC(e8ab0256) SHA1(f090afcfacf5f13cdfa0dfda8e3feb868c6ce8bc) ) | |
| 3761 | ROM_LOAD( "frogger.609", 0x0800, 0x0800, CRC(7380a48f) SHA1(75582a94b696062cbdb66a4c5cf0bc0bb94f81ee) ) | |
| 3762 | ROM_LOAD( "frogger.610", 0x1000, 0x0800, CRC(31d7eb27) SHA1(2e1d34ae4da385fd7cac94707d25eeddf4604e1a) ) | |
| 3763 | ||
| 3764 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3765 | ROM_LOAD( "frogger.607", 0x0000, 0x0800, CRC(05f7d883) SHA1(78831fd287da18928651a8adb7e578d291493eff) ) | |
| 3766 | ROM_LOAD( "epr-1036.1k", 0x0800, 0x0800, CRC(658745f8) SHA1(e4e5c3e011c8a7233a36d29e10e08905873500aa) ) | |
| 3767 | ||
| 3768 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3769 | ROM_LOAD( "pr-91.6l", 0x0000, 0x0020, CRC(413703bf) SHA1(66648b2b28d3dcbda5bdb2605d1977428939dd3c) ) | |
| 3770 | ROM_END | |
| 3771 | ||
| 3772 | ROM_START( frogg ) | |
| 3773 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3774 | ROM_LOAD( "p1.bin", 0x0000, 0x0800, CRC(1762b266) SHA1(2cf34dcfe00dc476b327f9d762a8d2aa268a2d25) ) | |
| 3775 | ROM_LOAD( "p2.bin", 0x0800, 0x0800, CRC(322f3916) SHA1(9236aaa260c4db4adbd92c8bba3674d07d7235a8) ) | |
| 3776 | ROM_LOAD( "p3.bin", 0x1000, 0x0800, CRC(28bd6151) SHA1(1a5bc540168fa5fef01bd7bc2cdbdb910c9a4ba4) ) | |
| 3777 | ROM_LOAD( "p4.bin", 0x1800, 0x0800, CRC(5a69ab18) SHA1(40b7bf200f87e0fb3fb54726ba79387889446052) ) | |
| 3778 | ROM_LOAD( "p5.bin", 0x2000, 0x0800, CRC(b4f17745) SHA1(2f237a667f6c95af213b787620142c1530d3cdd8) ) | |
| 3779 | ROM_LOAD( "p6.bin", 0x2800, 0x0800, CRC(34be71b5) SHA1(3088fc5817a397d0a87610d62845c7b8c4440f57) ) | |
| 3780 | ROM_LOAD( "p7.bin", 0x3000, 0x0800, CRC(de3edc8c) SHA1(634d54fb19b422b56576a196bdaf95733c52c7ee) ) | |
| 3781 | ||
| 3782 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3783 | ROM_LOAD( "k.bin", 0x0000, 0x0800, CRC(05f7d883) SHA1(78831fd287da18928651a8adb7e578d291493eff) ) | |
| 3784 | ROM_LOAD( "h.bin", 0x0800, 0x0800, CRC(658745f8) SHA1(e4e5c3e011c8a7233a36d29e10e08905873500aa) ) | |
| 3785 | ||
| 3786 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3787 | ROM_LOAD( "pr-91.6l", 0x0000, 0x0020, CRC(413703bf) SHA1(66648b2b28d3dcbda5bdb2605d1977428939dd3c) ) | |
| 3788 | ROM_END | |
| 3789 | ||
| 3790 | ||
| 3791 | ROM_START( turtles ) | |
| 3792 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3793 | ROM_LOAD( "turt_vid.2c", 0x0000, 0x1000, CRC(ec5e61fb) SHA1(3ca89800fda7a7e61f54d71d5302908be2706def) ) | |
| 3794 | ROM_LOAD( "turt_vid.2e", 0x1000, 0x1000, CRC(fd10821e) SHA1(af74602bf2454eb8f3b9bb5c425e2476feeecd69) ) | |
| 3795 | ROM_LOAD( "turt_vid.2f", 0x2000, 0x1000, CRC(ddcfc5fa) SHA1(2af9383e5a289c2d7fbe6cf5e5b1519c352afbab) ) | |
| 3796 | ROM_LOAD( "turt_vid.2h", 0x3000, 0x1000, CRC(9e71696c) SHA1(3dcdf5dc601c875fc9d8b9a46e3ef588e7478e0d) ) | |
| 3797 | ROM_LOAD( "turt_vid.2j", 0x4000, 0x1000, CRC(fcd49fef) SHA1(bb1e91b2e6d4b5a861bf37907ef6b198328d8d83) ) | |
| 3798 | ||
| 3799 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3800 | ROM_LOAD( "turt_snd.5c", 0x0000, 0x1000, CRC(f0c30f9a) SHA1(5621f336e9be8acf986a34bbb8855ed5d45c28ef) ) | |
| 3801 | ROM_LOAD( "turt_snd.5d", 0x1000, 0x1000, CRC(af5fc43c) SHA1(8a49c55feba094b07380615cf0b6f0878c25a260) ) | |
| 3802 | ||
| 3803 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3804 | ROM_LOAD( "turt_vid.5h", 0x0000, 0x0800, CRC(e5999d52) SHA1(bc3f52cf6c6e19dfd2dacd1e8c9128f437e995fc) ) | |
| 3805 | ROM_LOAD( "turt_vid.5f", 0x0800, 0x0800, CRC(c3ffd655) SHA1(dee51d77be262a2944488e381541c10a2b6e5d83) ) | |
| 3806 | ||
| 3807 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3808 | ROM_LOAD( "turtles.clr", 0x0000, 0x0020, CRC(f3ef02dd) SHA1(09fd795170d7d30f101d579f57553da5ff3800ab) ) | |
| 3809 | ROM_END | |
| 3810 | ||
| 3811 | ROM_START( turpin ) | |
| 3812 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3813 | ROM_LOAD( "m1", 0x0000, 0x1000, CRC(89177473) SHA1(0717b1e7308ffe527edfc578ec4353809e7d9eea) ) | |
| 3814 | ROM_LOAD( "m2", 0x1000, 0x1000, CRC(4c6ca5c6) SHA1(dd4ca7adaa523a8e775cdfaa99bb3cc25da32c08) ) | |
| 3815 | ROM_LOAD( "m3", 0x2000, 0x1000, CRC(62291652) SHA1(82965d3e9608afde4ff06cba1d7a4b11cd904c11) ) | |
| 3816 | ROM_LOAD( "turt_vid.2h", 0x3000, 0x1000, CRC(9e71696c) SHA1(3dcdf5dc601c875fc9d8b9a46e3ef588e7478e0d) ) | |
| 3817 | ROM_LOAD( "m5", 0x4000, 0x1000, CRC(7d2600f2) SHA1(1a9bdf63b50419c6e0d9c401c3dcf29d5b459fa6) ) | |
| 3818 | ||
| 3819 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3820 | ROM_LOAD( "turt_snd.5c", 0x0000, 0x1000, CRC(f0c30f9a) SHA1(5621f336e9be8acf986a34bbb8855ed5d45c28ef) ) | |
| 3821 | ROM_LOAD( "turt_snd.5d", 0x1000, 0x1000, CRC(af5fc43c) SHA1(8a49c55feba094b07380615cf0b6f0878c25a260) ) | |
| 3822 | ||
| 3823 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3824 | ROM_LOAD( "turt_vid.5h", 0x0000, 0x0800, CRC(e5999d52) SHA1(bc3f52cf6c6e19dfd2dacd1e8c9128f437e995fc) ) | |
| 3825 | ROM_LOAD( "turt_vid.5f", 0x0800, 0x0800, CRC(c3ffd655) SHA1(dee51d77be262a2944488e381541c10a2b6e5d83) ) | |
| 3826 | ||
| 3827 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3828 | ROM_LOAD( "turtles.clr", 0x0000, 0x0020, CRC(f3ef02dd) SHA1(09fd795170d7d30f101d579f57553da5ff3800ab) ) | |
| 3829 | ROM_END | |
| 3830 | ||
| 3831 | ROM_START( 600 ) | |
| 3832 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3833 | ROM_LOAD( "600_vid.2c", 0x0000, 0x1000, CRC(8ee090ae) SHA1(3d491313da6cccd6dbc15774569be0555fe2f73a) ) | |
| 3834 | ROM_LOAD( "600_vid.2e", 0x1000, 0x1000, CRC(45bfaff2) SHA1(ba4f7aa499f4993ec2191b8832b5604fd41964bc) ) | |
| 3835 | ROM_LOAD( "600_vid.2f", 0x2000, 0x1000, CRC(9f4c8ed7) SHA1(2564dae82019097227351a7ddc9c5156ca00297a) ) | |
| 3836 | ROM_LOAD( "600_vid.2h", 0x3000, 0x1000, CRC(a92ef056) SHA1(c319d41a3345b84670fe9110f78332c1cfe1e163) ) | |
| 3837 | ROM_LOAD( "600_vid.2j", 0x4000, 0x1000, CRC(6dadd72d) SHA1(5602b5ebb2c287f72a5ce873b4e3dfd19b8412a0) ) | |
| 3838 | ||
| 3839 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3840 | ROM_LOAD( "600_snd.5c", 0x0000, 0x1000, CRC(1773c68e) SHA1(cc4aa3a98e85bc6300f8c1ee1a0448071d7c6dfa) ) | |
| 3841 | ROM_LOAD( "600_snd.5d", 0x1000, 0x1000, CRC(a311b998) SHA1(39af321b8c3f211ed6d083a2aba4fbc8af11c9e8) ) | |
| 3842 | ||
| 3843 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3844 | ROM_LOAD( "600_vid.5h", 0x0000, 0x0800, CRC(006c3d56) SHA1(0c773e0e84d0bf45be5a5a7cfff960c1ca2f0320) ) | |
| 3845 | ROM_LOAD( "600_vid.5f", 0x0800, 0x0800, CRC(7dbc0426) SHA1(29eeb3cdb5a3bcf7115d8099e4d04cf76216b003) ) | |
| 3846 | ||
| 3847 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3848 | ROM_LOAD( "turtles.clr", 0x0000, 0x0020, CRC(f3ef02dd) SHA1(09fd795170d7d30f101d579f57553da5ff3800ab) ) | |
| 3849 | ROM_END | |
| 3850 | ||
| 3851 | ||
| 3852 | ROM_START( amidar ) | |
| 3853 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3854 | ROM_LOAD( "amidar.2c", 0x0000, 0x1000, CRC(c294bf27) SHA1(399325bf1559e8cdbddf7cfbf0dc739f9ed72ef0) ) | |
| 3855 | ROM_LOAD( "amidar.2e", 0x1000, 0x1000, CRC(e6e96826) SHA1(e9c4f8c594640424b456505e676352a98b758c03) ) | |
| 3856 | ROM_LOAD( "amidar.2f", 0x2000, 0x1000, CRC(3656be6f) SHA1(9d652f66bedcf17a6453c0e0ead30bfd7ea0bd0a) ) | |
| 3857 | ROM_LOAD( "amidar.2h", 0x3000, 0x1000, CRC(1be170bd) SHA1(c047bc393b297c0d47668a5f6f4870e3fac937ef) ) | |
| 3858 | ||
| 3859 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3860 | ROM_LOAD( "amidar.5c", 0x0000, 0x1000, CRC(c4b66ae4) SHA1(9d09dbde4019f7be3abe0815b0e06d542c01c255) ) | |
| 3861 | ROM_LOAD( "amidar.5d", 0x1000, 0x1000, CRC(806785af) SHA1(c8c85e3a6a204feccd7859b4527bd649e96134b4) ) | |
| 3862 | ||
| 3863 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3864 | ROM_LOAD( "amidar.5f", 0x0000, 0x0800, CRC(5e51e84d) SHA1(dfe84db7e2b1a45a1d484fcf37291f536bc5324c) ) | |
| 3865 | ROM_LOAD( "amidar.5h", 0x0800, 0x0800, CRC(2f7f1c30) SHA1(83c330eca20dfcc6a4099001943b9ed7a7c3db5b) ) | |
| 3866 | ||
| 3867 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3868 | ROM_LOAD( "amidar.clr", 0x0000, 0x0020, CRC(f940dcc3) SHA1(1015e56f37c244a850a8f4bf0e36668f047fd46d) ) | |
| 3869 | ROM_END | |
| 3870 | ||
| 3871 | ROM_START( amidaru ) | |
| 3872 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3873 | ROM_LOAD( "amidarus.2c", 0x0000, 0x1000, CRC(951e0792) SHA1(3a68b829c9ffb465bd6582c9ea566e0e947c6c19) ) | |
| 3874 | ROM_LOAD( "amidarus.2e", 0x1000, 0x1000, CRC(a1a3a136) SHA1(330ec857fdf4c1b28e2560a5f63a2432f87f9b2f) ) | |
| 3875 | ROM_LOAD( "amidarus.2f", 0x2000, 0x1000, CRC(a5121bf5) SHA1(fe15b91724758ede43dd332327919f164772c592) ) | |
| 3876 | ROM_LOAD( "amidarus.2h", 0x3000, 0x1000, CRC(051d1c7f) SHA1(3cfa0f728a5c27da0a3fe2579ad226129ccde232) ) | |
| 3877 | ROM_LOAD( "amidarus.2j", 0x4000, 0x1000, CRC(351f00d5) SHA1(6659357f40f888b21be00826246200fd3a8a88ce) ) | |
| 3878 | ||
| 3879 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3880 | ROM_LOAD( "amidarus.5c", 0x0000, 0x1000, CRC(8ca7b750) SHA1(4f4c2915503b85abe141d717fd254ee10c9da99e) ) | |
| 3881 | ROM_LOAD( "amidarus.5d", 0x1000, 0x1000, CRC(9b5bdc0a) SHA1(84d953618c8bf510d23b42232a856ac55f1baff5) ) | |
| 3882 | ||
| 3883 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3884 | ROM_LOAD( "amidarus.5f", 0x0000, 0x0800, CRC(2cfe5ede) SHA1(0d86a78008ac8653c17fff5be5ebdf1f0a9d31eb) ) | |
| 3885 | ROM_LOAD( "amidarus.5h", 0x0800, 0x0800, CRC(57c4fd0d) SHA1(8764deec9fbff4220d61df621b12fc36c3702601) ) | |
| 3886 | ||
| 3887 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3888 | ROM_LOAD( "amidar.clr", 0x0000, 0x0020, CRC(f940dcc3) SHA1(1015e56f37c244a850a8f4bf0e36668f047fd46d) ) | |
| 3889 | ROM_END | |
| 3890 | ||
| 3891 | ROM_START( amidaro ) | |
| 3892 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3893 | ROM_LOAD( "107.2cd", 0x0000, 0x1000, CRC(c52536be) SHA1(3f64578214d2d9f0e4e7ee87e09b0aac33a73098) ) | |
| 3894 | ROM_LOAD( "108.2fg", 0x1000, 0x1000, CRC(38538b98) SHA1(12b2a0c09926d006781bee5d450bc0c391cc1fb5) ) | |
| 3895 | ROM_LOAD( "109.2fg", 0x2000, 0x1000, CRC(69907f0f) SHA1(f1d19a76ffc41ee8c5c574f10108cfdfe525b732) ) | |
| 3896 | ROM_LOAD( "110.2h", 0x3000, 0x1000, CRC(ba149a93) SHA1(9ef1d27f0780612be0ea2be94c3a2c781a4924c8) ) | |
| 3897 | ROM_LOAD( "111.2j", 0x4000, 0x1000, CRC(20d01c2e) SHA1(e09437ff440f04036d5ec74b355e97bbbbfefb95) ) | |
| 3898 | ||
| 3899 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3900 | ROM_LOAD( "amidarus.5c", 0x0000, 0x1000, CRC(8ca7b750) SHA1(4f4c2915503b85abe141d717fd254ee10c9da99e) ) | |
| 3901 | ROM_LOAD( "amidarus.5d", 0x1000, 0x1000, CRC(9b5bdc0a) SHA1(84d953618c8bf510d23b42232a856ac55f1baff5) ) | |
| 3902 | ||
| 3903 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3904 | ROM_LOAD( "amidarus.5f", 0x0000, 0x0800, CRC(2cfe5ede) SHA1(0d86a78008ac8653c17fff5be5ebdf1f0a9d31eb) ) | |
| 3905 | ROM_LOAD( "113.5h", 0x0800, 0x0800, CRC(bcdce168) SHA1(e593d03c460ef4607e3ba25019d9f01d4a717dd9) ) /* The letter 'S' is slightly different */ | |
| 3906 | ||
| 3907 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3908 | ROM_LOAD( "amidar.clr", 0x0000, 0x0020, CRC(f940dcc3) SHA1(1015e56f37c244a850a8f4bf0e36668f047fd46d) ) | |
| 3909 | ROM_END | |
| 3910 | ||
| 3911 | ROM_START( amidarb ) | |
| 3912 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3913 | ROM_LOAD( "ami2gor.2c", 0x0000, 0x1000, CRC(9ad2dcd2) SHA1(43ceb93d891c1ebf55e7c26de13e3db8e1d26f6d) ) | |
| 3914 | ROM_LOAD( "2.2f", 0x1000, 0x1000, CRC(66282ff5) SHA1(986778278eb339768d190460680e7aa698812488) ) | |
| 3915 | ROM_LOAD( "3.2j", 0x2000, 0x1000, CRC(b0860e31) SHA1(8fb92b0e71c826a509a8f712553de0f4a636286f) ) | |
| 3916 | ROM_LOAD( "4.2m", 0x3000, 0x1000, CRC(4a4086c9) SHA1(6f309b67dc68e06e6eb1d3ee2ae75afe253a4ce3) ) | |
| 3917 | ||
| 3918 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3919 | ROM_LOAD( "8.11d", 0x0000, 0x1000, CRC(8ca7b750) SHA1(4f4c2915503b85abe141d717fd254ee10c9da99e) ) | |
| 3920 | ROM_LOAD( "9.9d", 0x1000, 0x1000, CRC(9b5bdc0a) SHA1(84d953618c8bf510d23b42232a856ac55f1baff5) ) | |
| 3921 | ||
| 3922 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3923 | ROM_LOAD( "5.5f", 0x0000, 0x0800, CRC(2082ad0a) SHA1(c6014d9575e92adf09b0961c2158a779ebe940c4) ) | |
| 3924 | ROM_LOAD( "6.5h", 0x0800, 0x0800, CRC(3029f94f) SHA1(3b432b42e79f8b0a7d65e197f373a04e3c92ff20) ) | |
| 3925 | ||
| 3926 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3927 | ROM_LOAD( "n82s123n.6e", 0x0000, 0x0020, CRC(01004d3f) SHA1(e53cbc54ea96e846481a67bbcccf6b1726e70f9c) ) | |
| 3928 | ROM_END | |
| 3929 | ||
| 3930 | ROM_START( amigo ) | |
| 3931 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3932 | ROM_LOAD( "2732.a1", 0x0000, 0x1000, CRC(930dc856) SHA1(7022f1f26830baccdc8b8f0b10fb1d1ccb080f22) ) | |
| 3933 | ROM_LOAD( "2732.a2", 0x1000, 0x1000, CRC(66282ff5) SHA1(986778278eb339768d190460680e7aa698812488) ) | |
| 3934 | ROM_LOAD( "2732.a3", 0x2000, 0x1000, CRC(e9d3dc76) SHA1(627c6068c65985175388aec43ac2a4248b004c97) ) | |
| 3935 | ROM_LOAD( "2732.a4", 0x3000, 0x1000, CRC(4a4086c9) SHA1(6f309b67dc68e06e6eb1d3ee2ae75afe253a4ce3) ) | |
| 3936 | ||
| 3937 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3938 | ROM_LOAD( "amidarus.5c", 0x0000, 0x1000, CRC(8ca7b750) SHA1(4f4c2915503b85abe141d717fd254ee10c9da99e) ) | |
| 3939 | ROM_LOAD( "amidarus.5d", 0x1000, 0x1000, CRC(9b5bdc0a) SHA1(84d953618c8bf510d23b42232a856ac55f1baff5) ) | |
| 3940 | ||
| 3941 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3942 | ROM_LOAD( "2716.a6", 0x0000, 0x0800, CRC(2082ad0a) SHA1(c6014d9575e92adf09b0961c2158a779ebe940c4) ) | |
| 3943 | ROM_LOAD( "2716.a5", 0x0800, 0x0800, CRC(3029f94f) SHA1(3b432b42e79f8b0a7d65e197f373a04e3c92ff20) ) | |
| 3944 | ||
| 3945 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3946 | ROM_LOAD( "amidar.clr", 0x0000, 0x0020, CRC(f940dcc3) SHA1(1015e56f37c244a850a8f4bf0e36668f047fd46d) ) | |
| 3947 | ROM_END | |
| 3948 | ||
| 3949 | ROM_START( amidars ) | |
| 3950 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3951 | ROM_LOAD( "am2d", 0x0000, 0x0800, CRC(24b79547) SHA1(eca735c6a35561a9a6ba8a20dca1e1c78ed073fc) ) | |
| 3952 | ROM_LOAD( "am2e", 0x0800, 0x0800, CRC(4c64161e) SHA1(5b2e49ff915295617671b13f15b566046a5dbc15) ) | |
| 3953 | ROM_LOAD( "am2f", 0x1000, 0x0800, CRC(b3987a72) SHA1(1d72e9ae3005029628c6f9beb6ca65afcb1f7893) ) | |
| 3954 | ROM_LOAD( "am2h", 0x1800, 0x0800, CRC(29873461) SHA1(7d0ee9a82f02163b4cc6a7097e88ae34e96ebf58) ) | |
| 3955 | ROM_LOAD( "am2j", 0x2000, 0x0800, CRC(0fdd54d8) SHA1(c32fdc8e292d91159e6c80c7033abea6404a4f2c) ) | |
| 3956 | ROM_LOAD( "am2l", 0x2800, 0x0800, CRC(5382f7ed) SHA1(425ec2c2caf404fc8ab13ee38d6567413022e1a1) ) | |
| 3957 | ROM_LOAD( "am2m", 0x3000, 0x0800, CRC(1d7109e9) SHA1(e0d24475547bbe5a94b45be6abefb84ad84d2534) ) | |
| 3958 | ROM_LOAD( "am2p", 0x3800, 0x0800, CRC(c9163ac6) SHA1(46d757180426b71c827d14a35824a248f2c787b6) ) | |
| 3959 | ||
| 3960 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3961 | ROM_LOAD( "amidarus.5c", 0x0000, 0x1000, CRC(8ca7b750) SHA1(4f4c2915503b85abe141d717fd254ee10c9da99e) ) | |
| 3962 | ROM_LOAD( "amidarus.5d", 0x1000, 0x1000, CRC(9b5bdc0a) SHA1(84d953618c8bf510d23b42232a856ac55f1baff5) ) | |
| 3963 | ||
| 3964 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3965 | ROM_LOAD( "2716.a6", 0x0000, 0x0800, CRC(2082ad0a) SHA1(c6014d9575e92adf09b0961c2158a779ebe940c4) ) /* Same graphics ROMs as Amigo */ | |
| 3966 | ROM_LOAD( "2716.a5", 0x0800, 0x0800, CRC(3029f94f) SHA1(3b432b42e79f8b0a7d65e197f373a04e3c92ff20) ) | |
| 3967 | ||
| 3968 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3969 | ROM_LOAD( "amidar.clr", 0x0000, 0x0020, CRC(f940dcc3) SHA1(1015e56f37c244a850a8f4bf0e36668f047fd46d) ) | |
| 3970 | ROM_END | |
| 3971 | ||
| 3972 | ||
| 3973 | ROM_START( theend ) | |
| 3974 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3975 | ROM_LOAD( "ic13_1t.bin", 0x0000, 0x0800, CRC(93e555ba) SHA1(f684927cecabfbd7544f7549a6152c0a6a436019) ) | |
| 3976 | ROM_LOAD( "ic14_2t.bin", 0x0800, 0x0800, CRC(2de7ad27) SHA1(caf369fde632652a0a5fb11d3605f0d2386d297a) ) | |
| 3977 | ROM_LOAD( "ic15_3t.bin", 0x1000, 0x0800, CRC(035f750b) SHA1(5f70518e5dbfca0ba12ba4dc4f357ce8e6b27bc8) ) | |
| 3978 | ROM_LOAD( "ic16_4t.bin", 0x1800, 0x0800, CRC(61286b5c) SHA1(14464aa5284aecc9c6046e464ab3d13da89d8dda) ) | |
| 3979 | ROM_LOAD( "ic17_5t.bin", 0x2000, 0x0800, CRC(434a8f68) SHA1(3c8c099c7865997d475c096f1b1c93d88ab21543) ) | |
| 3980 | ROM_LOAD( "ic18_6t.bin", 0x2800, 0x0800, CRC(dc4cc786) SHA1(3311361a1eb29715aa41d61fbb3563014bd9eeb1) ) | |
| 3981 | ||
| 3982 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 3983 | ROM_LOAD( "ic56_1.bin", 0x0000, 0x0800, CRC(7a141f29) SHA1(ca483943971c8fc7f5775a8a7cc6ddd331d48170) ) | |
| 3984 | ROM_LOAD( "ic55_2.bin", 0x0800, 0x0800, CRC(218497c1) SHA1(3e080621f2e83909a6f304a2d960a080bccbbdc2) ) | |
| 3985 | ||
| 3986 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 3987 | ROM_LOAD( "ic30_2c.bin", 0x0000, 0x0800, CRC(68ccf7bf) SHA1(a8ea784a2660f855757ae0b30cb2a33ab6f2cd59) ) | |
| 3988 | ROM_LOAD( "ic31_1c.bin", 0x0800, 0x0800, CRC(4a48c999) SHA1(f1abcbfc3146a18dc3ff865e3ba278377a42a875) ) | |
| 3989 | ||
| 3990 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 3991 | ROM_LOAD( "6331-1j.86", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) | |
| 3992 | ROM_END | |
| 3993 | ||
| 3994 | ROM_START( theends ) | |
| 3995 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 3996 | ROM_LOAD( "ic13", 0x0000, 0x0800, CRC(90e5ab14) SHA1(b926801ab1cc1e2787a76ced6c7cffd6fce753d4) ) | |
| 3997 | ROM_LOAD( "ic14", 0x0800, 0x0800, CRC(950f0a07) SHA1(bde9f3c6cf060dc6f5b7652287b94e04bed7bcf7) ) | |
| 3998 | ROM_LOAD( "ic15", 0x1000, 0x0800, CRC(6786bcf5) SHA1(7556d3dc51d6a112b6357b8a36df05fd1a4d1cc9) ) | |
| 3999 | ROM_LOAD( "ic16", 0x1800, 0x0800, CRC(380a0017) SHA1(3354eb328a32537f722fe8a0949ddcab6cf21eb8) ) | |
| 4000 | ROM_LOAD( "ic17", 0x2000, 0x0800, CRC(af067b7f) SHA1(855c6ddf29fbfea004c7143fe29064abf53801ad) ) | |
| 4001 | ROM_LOAD( "ic18", 0x2800, 0x0800, CRC(a0411b93) SHA1(d644968758a1b73d13e09b24d24bfec82276e8f4) ) | |
| 4002 | ||
| 4003 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4004 | ROM_LOAD( "ic56", 0x0000, 0x0800, CRC(3b2c2f70) SHA1(bcccdacacfc9a3b5f1412dfba6bb0046d283bccc) ) | |
| 4005 | ROM_LOAD( "ic55", 0x0800, 0x0800, CRC(e0429e50) SHA1(27678fc3172cbca3ae1eae96e9d8a62561d5ce40) ) | |
| 4006 | ||
| 4007 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4008 | ROM_LOAD( "ic30", 0x0000, 0x0800, CRC(527fd384) SHA1(92a384899d5acd2c689f637da16a0e2d11a9d9c6) ) | |
| 4009 | ROM_LOAD( "ic31", 0x0800, 0x0800, CRC(af6d09b6) SHA1(f3ad51dc88aa58fd39195ead978b039e0b0b585c) ) | |
| 4010 | ||
| 4011 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4012 | ROM_LOAD( "6331-1j.86", 0x0000, 0x0020, CRC(24652bc4) SHA1(d89575f3749c75dc963317fe451ffeffd9856e4d) ) | |
| 4013 | ROM_END | |
| 4014 | ||
| 4015 | ||
| 4016 | ROM_START( scramble ) | |
| 4017 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4018 | ROM_LOAD( "s1.2d", 0x0000, 0x0800, CRC(ea35ccaa) SHA1(1dcb375987fe21e0483c27d485c405de53848d61) ) | |
| 4019 | ROM_LOAD( "s2.2e", 0x0800, 0x0800, CRC(e7bba1b3) SHA1(240877576045fddcc9ff01d97dc78139454ac4f1) ) | |
| 4020 | ROM_LOAD( "s3.2f", 0x1000, 0x0800, CRC(12d7fc3e) SHA1(a84d191c7be8700f630a83ddad798be9e83b5d55) ) | |
| 4021 | ROM_LOAD( "s4.2h", 0x1800, 0x0800, CRC(b59360eb) SHA1(5d155808c19dcf2e14aa8e29c0ee41a6d3d3c43a) ) | |
| 4022 | ROM_LOAD( "s5.2j", 0x2000, 0x0800, CRC(4919a91c) SHA1(9cb5861c61e4783e5fbaa3869d51195f127b1129) ) | |
| 4023 | ROM_LOAD( "s6.2l", 0x2800, 0x0800, CRC(26a4547b) SHA1(67c0fa81729370631647b5d78bb5a61433facd7f) ) | |
| 4024 | ROM_LOAD( "s7.2m", 0x3000, 0x0800, CRC(0bb49470) SHA1(05a6fe3010c2136284ca76352dac147797c79778) ) | |
| 4025 | ROM_LOAD( "s8.2p", 0x3800, 0x0800, CRC(6a5740e5) SHA1(e3b09141cee26857d626412e9d1a0e759469b97a) ) | |
| 4026 | ||
| 4027 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4028 | ROM_LOAD( "ot1.5c", 0x0000, 0x0800, CRC(bcd297f0) SHA1(8ed78487d76fd0a917ab7b258937a46e2cd9800c) ) | |
| 4029 | ROM_LOAD( "ot2.5d", 0x0800, 0x0800, CRC(de7912da) SHA1(8558b4eff5d7e63029b325edef9914feda5834c3) ) | |
| 4030 | ROM_LOAD( "ot3.5e", 0x1000, 0x0800, CRC(ba2fa933) SHA1(1f976d8595706730e29f93027e7ab4620075c078) ) | |
| 4031 | ||
| 4032 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4033 | ROM_LOAD( "c2.5f", 0x0000, 0x0800, CRC(4708845b) SHA1(a8b1ad19a95a9d35050a2ab7194cc96fc5afcdc9) ) | |
| 4034 | ROM_LOAD( "c1.5h", 0x0800, 0x0800, CRC(11fd2887) SHA1(69844e48bb4d372cac7ae83c953df573c7ecbb7f) ) | |
| 4035 | ||
| 4036 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4037 | ROM_LOAD( "c01s.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 4038 | ROM_END | |
| 4039 | ||
| 4040 | ROM_START( scrambls ) | |
| 4041 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4042 | ROM_LOAD( "2d", 0x0000, 0x0800, CRC(b89207a1) SHA1(5422df979e82bcc73df49f50515fe76c126c037b) ) | |
| 4043 | ROM_LOAD( "2e", 0x0800, 0x0800, CRC(e9b4b9eb) SHA1(a8ee9ddfadf5e9accedfaf81da757a88a2e55a0a) ) | |
| 4044 | ROM_LOAD( "2f", 0x1000, 0x0800, CRC(a1f14f4c) SHA1(3eae2b3e4596505a8afb5c5cfb108e823c2c4319) ) | |
| 4045 | ROM_LOAD( "2h", 0x1800, 0x0800, CRC(591bc0d9) SHA1(170f9e92f0a3bee04407be27210b4fa825367688) ) | |
| 4046 | ROM_LOAD( "2j", 0x2000, 0x0800, CRC(22f11b6b) SHA1(e426ef6a7444a39a34d59799973b07d11b89f372) ) | |
| 4047 | ROM_LOAD( "2l", 0x2800, 0x0800, CRC(705ffe49) SHA1(174df3f281068c767344f751daace646360e26d6) ) | |
| 4048 | ROM_LOAD( "2m", 0x3000, 0x0800, CRC(ea26c35c) SHA1(a2f3380982d93a022f46756f974fd16c4cd617de) ) | |
| 4049 | ROM_LOAD( "2p", 0x3800, 0x0800, CRC(94d8f5e3) SHA1(f3a9c4d1d91836476fcad87ea0d243dde7171e0a) ) | |
| 4050 | ||
| 4051 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4052 | ROM_LOAD( "ot1.5c", 0x0000, 0x0800, CRC(bcd297f0) SHA1(8ed78487d76fd0a917ab7b258937a46e2cd9800c) ) | |
| 4053 | ROM_LOAD( "ot2.5d", 0x0800, 0x0800, CRC(de7912da) SHA1(8558b4eff5d7e63029b325edef9914feda5834c3) ) | |
| 4054 | ROM_LOAD( "ot3.5e", 0x1000, 0x0800, CRC(ba2fa933) SHA1(1f976d8595706730e29f93027e7ab4620075c078) ) | |
| 4055 | ||
| 4056 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4057 | ROM_LOAD( "5f", 0x0000, 0x0800, CRC(5f30311a) SHA1(d64134089bebd995b3a1a089411e180c8c29f32d) ) | |
| 4058 | ROM_LOAD( "5h", 0x0800, 0x0800, CRC(516e029e) SHA1(81b44eb1ce43cebde87f0a41ade2e7eb291af78d) ) | |
| 4059 | ||
| 4060 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4061 | ROM_LOAD( "c01s.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 4062 | ROM_END | |
| 4063 | ||
| 4064 | ROM_START( strfbomb ) | |
| 4065 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4066 | ROM_LOAD( "1.2c", 0x0000, 0x0800, CRC(b102aaa0) SHA1(00560da7a2ded6afcdc1d46e12cc3c795654639a) ) | |
| 4067 | ROM_LOAD( "2.2e", 0x0800, 0x0800, CRC(d4155703) SHA1(defd37df55536890456c29812340e0d6b4292b78) ) | |
| 4068 | ROM_LOAD( "3.2f", 0x1000, 0x0800, CRC(a9568c89) SHA1(0d8e6b3af92e4933814700d54acfd43407f3ede1) ) | |
| 4069 | ROM_LOAD( "4.2h", 0x1800, 0x0800, CRC(663b6c35) SHA1(354fb2e92f4376b20aee412ed361d59b8a2c01e1) ) | |
| 4070 | ROM_LOAD( "5.2j", 0x2000, 0x0800, CRC(4919a91c) SHA1(9cb5861c61e4783e5fbaa3869d51195f127b1129) ) | |
| 4071 | ROM_LOAD( "6.2l", 0x2800, 0x0800, CRC(4ec66ae3) SHA1(a74827e161212e9b2eddd980321507a377f1e30b) ) | |
| 4072 | ROM_LOAD( "7.2m", 0x3000, 0x0800, CRC(0feb0192) SHA1(45a44bde3bf1483abf95fe1d1d5066bfcb1736df) ) | |
| 4073 | ROM_LOAD( "8.2p", 0x3800, 0x0800, CRC(280a6142) SHA1(f17625b91eaaffa36a433be32e4e80651d94b3b9) ) | |
| 4074 | ||
| 4075 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4076 | ROM_LOAD( "ot1.5c", 0x0000, 0x0800, CRC(bcd297f0) SHA1(8ed78487d76fd0a917ab7b258937a46e2cd9800c) ) | |
| 4077 | ROM_LOAD( "ot2.5d", 0x0800, 0x0800, CRC(de7912da) SHA1(8558b4eff5d7e63029b325edef9914feda5834c3) ) | |
| 4078 | ROM_LOAD( "ot3.5e", 0x1000, 0x0800, CRC(ba2fa933) SHA1(1f976d8595706730e29f93027e7ab4620075c078) ) | |
| 4079 | ||
| 4080 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4081 | ROM_LOAD( "9.5f", 0x0000, 0x0800, CRC(3abeff25) SHA1(ff6de0596c849ec877fb759c1ab9c7a8ffe2edac) ) | |
| 4082 | ROM_LOAD( "10.5h", 0x0800, 0x0800, CRC(79ecacbe) SHA1(285cb3ee0ff8d596877bb571ea8479566ab36eb9) ) | |
| 4083 | ||
| 4084 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4085 | ROM_LOAD( "c01s.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 4086 | ROM_END | |
| 4087 | ||
| 4088 | ROM_START( explorer ) | |
| 4089 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4090 | ROM_LOAD( "10l.bin", 0x0000, 0x1000, CRC(d5adf626) SHA1(f362322f780c13cee73697f9158a8ca8aa943a2e) ) | |
| 4091 | ROM_LOAD( "9l.bin", 0x1000, 0x1000, CRC(48e32788) SHA1(7a98848d2ed8ba5b2da28c014226109af7cc9287) ) | |
| 4092 | ROM_LOAD( "8l.bin", 0x2000, 0x1000, CRC(c0dbdbde) SHA1(eac7444246bdf80f97962031bf900ce09b28c8b5) ) | |
| 4093 | ROM_LOAD( "7l.bin", 0x3000, 0x1000, CRC(9b30d227) SHA1(22764e0a2a5ce7abe862e42c84abaaf25949575f) ) | |
| 4094 | ||
| 4095 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4096 | ROM_LOAD( "3f.bin", 0x0000, 0x1000, CRC(9faf18cf) SHA1(1b6c65472d639753cc39031750f85efe1d31ae5e) ) | |
| 4097 | ROM_LOAD( "4b.bin", 0x1000, 0x0800, CRC(e910b5c3) SHA1(228e8d36dd1ac8a00a396df74b80aa6616997028) ) | |
| 4098 | ||
| 4099 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4100 | ROM_LOAD( "c2.5f", 0x0000, 0x0800, CRC(4708845b) SHA1(a8b1ad19a95a9d35050a2ab7194cc96fc5afcdc9) ) | |
| 4101 | ROM_LOAD( "c1.5h", 0x0800, 0x0800, CRC(11fd2887) SHA1(69844e48bb4d372cac7ae83c953df573c7ecbb7f) ) | |
| 4102 | ||
| 4103 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4104 | ROM_LOAD( "c01s.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 4105 | ROM_END | |
| 4106 | ||
| 4107 | ||
| 4108 | ROM_START( atlantis ) | |
| 4109 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4110 | ROM_LOAD( "2c", 0x0000, 0x0800, CRC(0e485b9a) SHA1(976f1d6f4552fbee134359a776b5688588824cbb) ) | |
| 4111 | ROM_LOAD( "2e", 0x0800, 0x0800, CRC(c1640513) SHA1(a0dfb34f401330b16e9e4d66ec4b49d120499606) ) | |
| 4112 | ROM_LOAD( "2f", 0x1000, 0x0800, CRC(eec265ee) SHA1(29b6cf6b93220414eb58cddeba591dc8813c4935) ) | |
| 4113 | ROM_LOAD( "2h", 0x1800, 0x0800, CRC(a5d2e442) SHA1(e535d1a501ebd861ad62da70b87215fb7c23de1d) ) | |
| 4114 | ROM_LOAD( "2j", 0x2000, 0x0800, CRC(45f7cf34) SHA1(d1e0e0be6dec377b684625bdfdc5a3a8af847492) ) | |
| 4115 | ROM_LOAD( "2l", 0x2800, 0x0800, CRC(f335b96b) SHA1(17daa6d9bc916081f3c6cbdfe5b4960177dc7c9b) ) | |
| 4116 | ||
| 4117 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4118 | ROM_LOAD( "ot1.5c", 0x0000, 0x0800, CRC(bcd297f0) SHA1(8ed78487d76fd0a917ab7b258937a46e2cd9800c) ) | |
| 4119 | ROM_LOAD( "ot2.5d", 0x0800, 0x0800, CRC(de7912da) SHA1(8558b4eff5d7e63029b325edef9914feda5834c3) ) | |
| 4120 | ROM_LOAD( "ot3.5e", 0x1000, 0x0800, CRC(ba2fa933) SHA1(1f976d8595706730e29f93027e7ab4620075c078) ) | |
| 4121 | ||
| 4122 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4123 | ROM_LOAD( "5f", 0x0000, 0x0800, CRC(57f9c6b9) SHA1(ad0d09a6611998d093d676a9c9fe9e32b10f643e) ) | |
| 4124 | ROM_LOAD( "5h", 0x0800, 0x0800, CRC(e989f325) SHA1(947aee915779687deae040aeef9e9aee680aaebf) ) | |
| 4125 | ||
| 4126 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4127 | ROM_LOAD( "c01s.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 4128 | ROM_END | |
| 4129 | ||
| 4130 | ROM_START( atlants2 ) | |
| 4131 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4132 | ROM_LOAD( "rom1", 0x0000, 0x0800, CRC(ad348089) SHA1(3548b94192c451c0126e7aaecefa7137ae074cd3) ) | |
| 4133 | ROM_LOAD( "rom2", 0x0800, 0x0800, CRC(caa705d1) SHA1(b4aefbea21fa9608e1dae2a09ae0d31270eb8c78) ) | |
| 4134 | ROM_LOAD( "rom3", 0x1000, 0x0800, CRC(e420641d) SHA1(103e7590f5acbac6991d665495f933c3a68da1c8) ) | |
| 4135 | ROM_LOAD( "rom4", 0x1800, 0x0800, CRC(04792d90) SHA1(cb477e4b8e4538def01c10b0348f8f8e3a2a9500) ) | |
| 4136 | ROM_LOAD( "2j", 0x2000, 0x0800, CRC(45f7cf34) SHA1(d1e0e0be6dec377b684625bdfdc5a3a8af847492) ) | |
| 4137 | ROM_LOAD( "rom6", 0x2800, 0x0800, CRC(b297bd4b) SHA1(0c48da41d9cf2a3456df5b1e8bf27fa641bc643b) ) | |
| 4138 | ROM_LOAD( "rom7", 0x3000, 0x0800, CRC(a50bf8d5) SHA1(5bca98e1c0838d27ec66bf4b906877977b212b6d) ) | |
| 4139 | ROM_LOAD( "rom8", 0x3800, 0x0800, CRC(d2c5c984) SHA1(a9432f9aff8a2f5ca1d347443efc008a177d8ae0) ) | |
| 4140 | ||
| 4141 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4142 | ROM_LOAD( "ot1.5c", 0x0000, 0x0800, CRC(bcd297f0) SHA1(8ed78487d76fd0a917ab7b258937a46e2cd9800c) ) | |
| 4143 | ROM_LOAD( "ot2.5d", 0x0800, 0x0800, CRC(de7912da) SHA1(8558b4eff5d7e63029b325edef9914feda5834c3) ) | |
| 4144 | ROM_LOAD( "ot3.5e", 0x1000, 0x0800, CRC(ba2fa933) SHA1(1f976d8595706730e29f93027e7ab4620075c078) ) | |
| 4145 | ||
| 4146 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4147 | ROM_LOAD( "rom9", 0x0000, 0x0800, CRC(55cd5acd) SHA1(b3e2ce71d4e48255d44cd451ee015a7234a108c8) ) | |
| 4148 | ROM_LOAD( "rom10", 0x0800, 0x0800, CRC(72e773b8) SHA1(6ce178df3bd6a4177c68761572a13a56d222c48f) ) | |
| 4149 | ||
| 4150 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4151 | ROM_LOAD( "c01s.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 4152 | ROM_END | |
| 4153 | ||
| 4154 | ||
| 4155 | ROM_START( scorpion ) | |
| 4156 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4157 | ROM_LOAD( "1.2d", 0x0000, 0x1000, CRC(ba1219b4) SHA1(33c7843dba44152a8bc3223ea0c30b13609b80ba) ) | |
| 4158 | ROM_LOAD( "2.2f", 0x1000, 0x1000, CRC(c3909ab6) SHA1(0bec902ae4291fa0530f4c89ad45cc7aab888b7a) ) | |
| 4159 | ROM_LOAD( "3.2g", 0x2000, 0x1000, CRC(43261352) SHA1(49468cbed7e0286b260eef297bd5fad0ab9fd45b) ) | |
| 4160 | ROM_LOAD( "4.2h", 0x3000, 0x1000, CRC(aba2276a) SHA1(42b0378f06d2bdb4faaaa95274a6c0f965716877) ) | |
| 4161 | ROM_LOAD( "5.2k", 0x6000, 0x0800, CRC(952f78f2) SHA1(9562037b104fc1852c2d2650209a77ffce2cb90e) ) | |
| 4162 | ROM_CONTINUE( 0x5800, 0x0800 ) | |
| 4163 | ||
| 4164 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4165 | ROM_LOAD( "32_a4.7c", 0x0000, 0x1000, CRC(361b8a36) SHA1(550ac5f721aaa9fea5f6d63ba590d6b367525c23) ) | |
| 4166 | ROM_LOAD( "32_a5.7d", 0x1000, 0x1000, CRC(addecdd4) SHA1(ba28f1d9c7c6b5e8ecef56a4b3f64be13fc10d43) ) | |
| 4167 | ||
| 4168 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4169 | ROM_LOAD( "32_f5.5f", 0x0000, 0x1000, CRC(1e5da9d6) SHA1(ca8b27e6dd40e4ca13e7e6b5f813bafca78b62f4) ) | |
| 4170 | ROM_LOAD( "32_h5.5h", 0x1000, 0x1000, CRC(a57adb0a) SHA1(d97c7dc4a6c5efb59cc0148e2498156c682c6714) ) | |
| 4171 | ||
| 4172 | ROM_REGION( 0x3000, REGION_SOUND1, 0 ) /* Samples? / Speech? */ | |
| 4173 | ROM_LOAD( "32_a3.6e", 0x0000, 0x1000, CRC(279ae6f9) SHA1(a93b1d68c9f4b6ad62fdb8816285e61bd3b4b884) ) | |
| 4174 | ROM_LOAD( "32_a2.6d", 0x1000, 0x1000, CRC(90352dd4) SHA1(62c261a2f2fbd8eff31d5c72cf532d5e43d86dd3) ) | |
| 4175 | ROM_LOAD( "32_a1.6c", 0x2000, 0x1000, CRC(3bf2452d) SHA1(7a163e0ef108dd40d3beab5e9805886e45be744b) ) | |
| 4176 | ||
| 4177 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4178 | ROM_LOAD( "prom.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 4179 | ROM_END | |
| 4180 | ||
| 4181 | ROM_START( scrpiona ) | |
| 4182 | /* this dump is bad (at least one rom) */ | |
| 4183 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4184 | ROM_LOAD( "scor_d2.bin", 0x0000, 0x1000, BAD_DUMP CRC(c5b9daeb) SHA1(faf7a22013dd5f063eb8f506f3722cfd5522539a) ) | |
| 4185 | ROM_LOAD( "scor_e2.bin", 0x1000, 0x1000, BAD_DUMP CRC(82308d05) SHA1(26bc7c8b3ea0020fd1b93f6aaa29d82d04ae64b2) ) | |
| 4186 | ROM_LOAD( "scor_g2.bin", 0x2000, 0x1000, BAD_DUMP CRC(756b09cd) SHA1(9aec34e063fe8c0d1392db09daea2875d06eec46) ) | |
| 4187 | ROM_LOAD( "scor_h2.bin", 0x3000, 0x1000, BAD_DUMP CRC(a0457b93) SHA1(5ed32e117a97660dae001bd97fcb3f31e0debb24) ) | |
| 4188 | ROM_LOAD( "scor_k2.bin", 0x5800, 0x0800, BAD_DUMP CRC(42ec34d8) SHA1(b358d10a96490f325420b992e8e03bb3884e415a) ) | |
| 4189 | ROM_LOAD( "scor_l2.bin", 0x6000, 0x0800, BAD_DUMP CRC(6623da33) SHA1(99110005d00c80d674bde5d21608f50b85ee488c) ) | |
| 4190 | ||
| 4191 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4192 | ROM_LOAD( "32_a4.7c", 0x0000, 0x1000, CRC(361b8a36) SHA1(550ac5f721aaa9fea5f6d63ba590d6b367525c23) ) | |
| 4193 | ROM_LOAD( "32_a5.7d", 0x1000, 0x1000, CRC(addecdd4) SHA1(ba28f1d9c7c6b5e8ecef56a4b3f64be13fc10d43) ) | |
| 4194 | ||
| 4195 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4196 | ROM_LOAD( "scor_f5.bin", 0x0000, 0x1000, CRC(60180a38) SHA1(518c1267523139aa4e27860012a722b67fe25b6d) ) | |
| 4197 | ROM_LOAD( "32_h5.5h", 0x1000, 0x1000, CRC(a57adb0a) SHA1(d97c7dc4a6c5efb59cc0148e2498156c682c6714) ) | |
| 4198 | ||
| 4199 | ROM_REGION( 0x3000, REGION_SOUND1, 0 ) /* Samples? / Speech? */ | |
| 4200 | ROM_LOAD( "scor_a3.bin", 0x0000, 0x1000, CRC(04abf178) SHA1(2e7f231413d9ec461ca21840f31d1d6b8b17c4d5) ) | |
| 4201 | ROM_LOAD( "scor_a2.bin", 0x1000, 0x1000, CRC(452d6354) SHA1(3d5397fddcc17b4d03b9cdc53a6439f159d1bfcc) ) | |
| 4202 | ROM_LOAD( "32_a1.6c", 0x2000, 0x1000, CRC(3bf2452d) SHA1(7a163e0ef108dd40d3beab5e9805886e45be744b) ) | |
| 4203 | ||
| 4204 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4205 | ROM_LOAD( "prom.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 4206 | ROM_END | |
| 4207 | ||
| 4208 | ROM_START( scrpionb ) | |
| 4209 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4210 | ROM_LOAD( "ic109.2d", 0x0000, 0x1000, CRC(f54688c9) SHA1(2881d5238733353b9c277a2829d157688a87601b) ) | |
| 4211 | ROM_LOAD( "ic110.2e", 0x1000, 0x1000, CRC(91aaaa12) SHA1(2a5e5eb5aeec5637ee4675930f67158a969e0d5d) ) | |
| 4212 | ROM_LOAD( "ic111.2g", 0x2000, 0x1000, CRC(4c3720da) SHA1(5b2758c8a91f9463bf98abf2b52af946c5e90cf0) ) | |
| 4213 | ROM_LOAD( "ic112.2h", 0x3000, 0x1000, CRC(53e2a983) SHA1(cfe272055a92793de76dd1cff617b13281815485) ) | |
| 4214 | ROM_LOAD( "ic113.2k", 0x6000, 0x0800, CRC(e4ad299a) SHA1(712cab86eadeba9e859f7bae98eb289f00d2e217) ) | |
| 4215 | ROM_CONTINUE( 0x5800, 0x0800 ) | |
| 4216 | ||
| 4217 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4218 | ROM_LOAD( "32_a4.7c", 0x0000, 0x1000, CRC(361b8a36) SHA1(550ac5f721aaa9fea5f6d63ba590d6b367525c23) ) // missing in this dump | |
| 4219 | ROM_LOAD( "ic13.7d", 0x1000, 0x1000, CRC(addecdd4) SHA1(ba28f1d9c7c6b5e8ecef56a4b3f64be13fc10d43) ) | |
| 4220 | ||
| 4221 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4222 | ROM_LOAD( "ic72.5f", 0x0000, 0x1000, CRC(1e5da9d6) SHA1(ca8b27e6dd40e4ca13e7e6b5f813bafca78b62f4) ) | |
| 4223 | ROM_LOAD( "ic73.5h", 0x1000, 0x1000, CRC(a57adb0a) SHA1(d97c7dc4a6c5efb59cc0148e2498156c682c6714) ) | |
| 4224 | ||
| 4225 | ROM_REGION( 0x3000, REGION_SOUND1, 0 ) /* Samples? / Speech? */ | |
| 4226 | ROM_LOAD( "ic25.6e", 0x0000, 0x1000, CRC(04abf178) SHA1(2e7f231413d9ec461ca21840f31d1d6b8b17c4d5) ) | |
| 4227 | ROM_LOAD( "ic24.6d", 0x1000, 0x1000, CRC(90352dd4) SHA1(62c261a2f2fbd8eff31d5c72cf532d5e43d86dd3) ) | |
| 4228 | ROM_LOAD( "ic23.6c", 0x2000, 0x1000, CRC(3bf2452d) SHA1(7a163e0ef108dd40d3beab5e9805886e45be744b) ) | |
| 4229 | ||
| 4230 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4231 | ROM_LOAD( "prom.6e", 0x0000, 0x0020, CRC(4e3caeab) SHA1(a25083c3e36d28afdefe4af6e6d4f3155e303625) ) | |
| 4232 | ROM_END | |
| 4233 | ||
| 4234 | ROM_START( scorpnmc ) | |
| 4235 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4236 | ROM_LOAD( "p1.bin", 0x0000, 0x0800, CRC(58818d88) SHA1(d9fbfb6fff9ba1d078c3735889b8878ab0442ded) ) | |
| 4237 | ROM_LOAD( "p2.bin", 0x0800, 0x0800, CRC(8bec5f9f) SHA1(78642124edbf946140f62985bafe2dca314cb257) ) | |
| 4238 | ROM_LOAD( "p3.bin", 0x1000, 0x0800, CRC(24b7fdff) SHA1(1382199c85af3aa101b4ca01a0b096d801bc61a6) ) | |
| 4239 | ROM_LOAD( "p4.bin", 0x1800, 0x0800, CRC(9082e2f0) SHA1(8e3beebca33e73901cb8c4fa0af39a299b831d32) ) | |
| 4240 | ROM_LOAD( "p5.bin", 0x2000, 0x0800, CRC(20387fc0) SHA1(1aa2f16fb1630e65fd8aaedd21d8e4bac343678b) ) | |
| 4241 | ROM_LOAD( "p6.bin", 0x2800, 0x0800, CRC(f66c48e1) SHA1(bbfd68309d1f6b6bb3ec0879c8bde80b3f30fa02) ) | |
| 4242 | ROM_LOAD( "p7.bin", 0x3000, 0x0800, CRC(931e34c7) SHA1(8b6c1099634b5d693faab9edf5e29b3c476c7f52) ) | |
| 4243 | ROM_LOAD( "p8.bin", 0x3800, 0x0800, CRC(ab5ab61d) SHA1(eb78d7dc8d424f6ed4f7cbec02485cd769bac5c6) ) | |
| 4244 | ROM_LOAD( "p9.bin", 0x5000, 0x1000, CRC(b551b974) SHA1(c19e61dd8b6daf808ba42fa318dfd179a020d20e) ) | |
| 4245 | ROM_LOAD( "p10.bin", 0x6000, 0x0800, CRC(a7bd8d20) SHA1(c8131279de58298546c5af2c34ff18116c3a2d3b) ) | |
| 4246 | ||
| 4247 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4248 | ROM_LOAD( "h.bin", 0x0000, 0x1000, CRC(1e5da9d6) SHA1(ca8b27e6dd40e4ca13e7e6b5f813bafca78b62f4) ) | |
| 4249 | ROM_LOAD( "k.bin", 0x1000, 0x1000, CRC(a57adb0a) SHA1(d97c7dc4a6c5efb59cc0148e2498156c682c6714) ) | |
| 4250 | ||
| 4251 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4252 | ROM_LOAD( "mmi6331.bpr", 0x0000, 0x0020, CRC(6a0c7d87) SHA1(140335d85c67c75b65689d4e76d29863c209cf32) ) /* Compatible with 82s123 prom */ | |
| 4253 | ROM_END | |
| 4254 | ||
| 4255 | ||
| 4256 | ROM_START( sfx ) | |
| 4257 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4258 | ROM_LOAD( "sfx_b-0.1j", 0x0000, 0x1000, CRC(e5bc6952) SHA1(7bfb772418d738d3c49fd59c0bfc04590945977a) ) | |
| 4259 | ROM_CONTINUE( 0xe000, 0x1000 ) | |
| 4260 | ROM_LOAD( "1.1c", 0x1000, 0x1000, CRC(1b3c48e7) SHA1(2f245aaf9b4bb5d949aae18ee89a0be639e7b2df) ) | |
| 4261 | ROM_LOAD( "22.1d", 0x2000, 0x1000, CRC(ed44950d) SHA1(f8c54ff89ac461171df951d703d5571be1b8da38) ) | |
| 4262 | ROM_LOAD( "23.1e", 0x3000, 0x1000, CRC(f44a3ca0) SHA1(3917ea960329a06d3d0c447cb6a4ba710fb7ca92) ) | |
| 4263 | ROM_LOAD( "27.1a", 0x7000, 0x1000, CRC(ed86839f) SHA1(a0d8c941a6e01058eab66d5da9b49b6b5695b981) ) | |
| 4264 | ROM_LOAD( "24.1g", 0xc000, 0x1000, CRC(e6d7dc74) SHA1(c1e6d9598fb837775ee6550fea3cd4910572615e) ) | |
| 4265 | ROM_LOAD( "5.1h", 0xd000, 0x1000, CRC(d1e8d390) SHA1(f8fe9f69e6500fbcf25f8151c1070d9a1a20a38c) ) | |
| 4266 | ||
| 4267 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4268 | ROM_LOAD( "5.5j", 0x0000, 0x1000, CRC(59028fb6) SHA1(94105b5b03c81a948a409f7ea20312bb9c79c150) ) | |
| 4269 | ROM_LOAD( "6.6j", 0x1000, 0x1000, CRC(5427670f) SHA1(ffc3f7186d0319f0fd7ed25eb97bb0db7bc107c6) ) | |
| 4270 | ||
| 4271 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) | |
| 4272 | ROM_LOAD( "1.1j", 0x0000, 0x1000, CRC(2f172c58) SHA1(4706d55fcfad4d5a87d96a0a0187f59997ef9720) ) | |
| 4273 | ROM_LOAD( "2.2j", 0x1000, 0x1000, CRC(a6ad2f6b) SHA1(14d1a93e507c349b14a1b26408cce23f089fa33c) ) | |
| 4274 | ROM_LOAD( "3.3j", 0x2000, 0x1000, CRC(fa1274fa) SHA1(e98cb602b265b209eaa4a9b3972e47c869ff863b) ) | |
| 4275 | ROM_LOAD( "4.4j", 0x3000, 0x1000, CRC(1cd33f3a) SHA1(cf9248fd6cb56ec81d354afe032a2dea810e834b) ) | |
| 4276 | ROM_LOAD( "10.3h", 0x4000, 0x1000, CRC(b833a15b) SHA1(0d21aaa0ca5ccba89118b205a6b3b36b15663c47) ) | |
| 4277 | ROM_LOAD( "11.4h", 0x5000, 0x1000, CRC(cbd76ec2) SHA1(9434350ee93ca71efe78018b69913386353306ff) ) | |
| 4278 | ||
| 4279 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4280 | ROM_LOAD( "28.5a", 0x0000, 0x1000, CRC(d73a8252) SHA1(59d14f41f1a806f98ee33596b84fe5aefe606944) ) | |
| 4281 | ROM_LOAD( "29.5c", 0x1000, 0x1000, CRC(1401ccf2) SHA1(5762eafd9f402330e1d4ac677f46595087716c47) ) | |
| 4282 | ||
| 4283 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4284 | ROM_LOAD( "6331.9g", 0x0000, 0x0020, CRC(ca1d9ccd) SHA1(27124759a06497c1bc1a64b6d3faa6ba924a8447) ) | |
| 4285 | ROM_END | |
| 4286 | ||
| 4287 | ROM_START( skelagon ) | |
| 4288 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4289 | /* first half of 36.bin is missing */ | |
| 4290 | ROM_LOAD( "31.bin", 0x1000, 0x1000, CRC(ae6f8647) SHA1(801e88b91c204f2797e5ce45390ea6eec27a3f54) ) | |
| 4291 | ROM_LOAD( "32.bin", 0x2000, 0x1000, CRC(a28c5838) SHA1(0a37de7986c494d1522ce76635dd1fa6d03f05c7) ) | |
| 4292 | ROM_LOAD( "33.bin", 0x3000, 0x1000, CRC(32f7e99c) SHA1(2718063a77eeeb8067a9cad7ff3d9e0266b61566) ) | |
| 4293 | ROM_LOAD( "37.bin", 0x7000, 0x1000, CRC(47f68a31) SHA1(6e15024f67c88a733ede8702d2a80ddb1892b27e) ) | |
| 4294 | ROM_LOAD( "24.bin", 0xc000, 0x1000, CRC(e6d7dc74) SHA1(c1e6d9598fb837775ee6550fea3cd4910572615e) ) | |
| 4295 | ROM_LOAD( "35.bin", 0xd000, 0x1000, CRC(5b2a0158) SHA1(66d2fb05a8daaa86bb547b4860d5bf27b4359326) ) | |
| 4296 | ROM_LOAD( "36.bin", 0xe000, 0x1000, BAD_DUMP CRC(f53ead29) SHA1(f8957b0c0558acc005f418adbfeb66d1d562c9ac) ) | |
| 4297 | ||
| 4298 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4299 | ROM_LOAD( "5.5j", 0x0000, 0x1000, CRC(59028fb6) SHA1(94105b5b03c81a948a409f7ea20312bb9c79c150) ) | |
| 4300 | ROM_LOAD( "6.6j", 0x1000, 0x1000, CRC(5427670f) SHA1(ffc3f7186d0319f0fd7ed25eb97bb0db7bc107c6) ) | |
| 4301 | ||
| 4302 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) | |
| 4303 | ROM_LOAD( "1.1j", 0x0000, 0x1000, CRC(2f172c58) SHA1(4706d55fcfad4d5a87d96a0a0187f59997ef9720) ) | |
| 4304 | ROM_LOAD( "2.2j", 0x1000, 0x1000, CRC(a6ad2f6b) SHA1(14d1a93e507c349b14a1b26408cce23f089fa33c) ) | |
| 4305 | ROM_LOAD( "3.3j", 0x2000, 0x1000, CRC(fa1274fa) SHA1(e98cb602b265b209eaa4a9b3972e47c869ff863b) ) | |
| 4306 | ROM_LOAD( "4.4j", 0x3000, 0x1000, CRC(1cd33f3a) SHA1(cf9248fd6cb56ec81d354afe032a2dea810e834b) ) | |
| 4307 | ROM_LOAD( "10.bin", 0x4000, 0x1000, CRC(2c719de2) SHA1(0953e96f8be1cbab3f4a8e166457c74e986a87b1) ) | |
| 4308 | ROM_LOAD( "8.bin", 0x5000, 0x1000, CRC(350379dd) SHA1(e979251b11d6702170dd60ffd28fc15ea737588b) ) | |
| 4309 | ||
| 4310 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4311 | ROM_LOAD( "38.bin", 0x0000, 0x1000, CRC(2fffa8b1) SHA1(6a6032f55b9fe1da209e4ed4423042efec773d4d) ) | |
| 4312 | ROM_LOAD( "39.bin", 0x1000, 0x1000, CRC(a854b5de) SHA1(dd038f20ee366d439f09f0c82fd6432101b3781a) ) | |
| 4313 | ||
| 4314 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4315 | ROM_LOAD( "6331.9g", 0x0000, 0x0020, CRC(ca1d9ccd) SHA1(27124759a06497c1bc1a64b6d3faa6ba924a8447) ) | |
| 4316 | ROM_END | |
| 4317 | ||
| 4318 | /* | |
| 4319 | Monster Zero | |
| 4320 | ||
| 4321 | CPU: Z80 (x3) | |
| 4322 | Sound: AY-3-8910 (x2) | |
| 4323 | Other: 8255 (x3) | |
| 4324 | RAM: 2114 (x2), 2114 (x2), TMM2016P, TMM314A (x4), MPB8216 (x2), MPB8216 (x2), 2114 (x2), TMM314A (x2), D2125A (x5) | |
| 4325 | PAL: 16R8C (protected x2) | |
| 4326 | PROM: 82S123 | |
| 4327 | X1: 1431818 | |
| 4328 | X2: 16000 | |
| 4329 | */ | |
| 4330 | ||
| 4331 | ROM_START( monsterz ) | |
| 4332 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4333 | ROM_LOAD( "b-1e.a1", 0x0000, 0x1000, CRC(97886542) SHA1(01f4f9bd55f9eae28162cbb22a26f7cda22cd3f3) ) | |
| 4334 | ROM_LOAD( "b-2e.c1", 0x1000, 0x1000, CRC(184ffcb4) SHA1(829d6ca13773aba7c3a81e122171befbe3666110) ) | |
| 4335 | ROM_LOAD( "b-3e.d1", 0x2000, 0x1000, CRC(b7b10ac7) SHA1(51d544d4db456df756a95d7f1853fffed9259647) ) | |
| 4336 | ROM_LOAD( "b-4e.e1", 0x3000, 0x1000, CRC(fb02c736) SHA1(24466116dd07b856b1afff62b8312c67ff466b95) ) | |
| 4337 | ROM_LOAD( "b-5e.g1", 0xc000, 0x1000, CRC(b2788ab9) SHA1(eb1a6b41f4c7a243481bfccf2b068ce1bc292366) ) | |
| 4338 | ROM_LOAD( "b-6e.h1", 0xd000, 0x1000, CRC(77d7aa8d) SHA1(62aaf582ba55f7b21f6cf13b4fb6c2c54bb729f5) ) | |
| 4339 | ||
| 4340 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4341 | ROM_LOAD( "a-1e.k1", 0x0000, 0x1000, CRC(b88ba44e) SHA1(85c141fb411d541b1e20412f5fefd18395f635ae) ) | |
| 4342 | ROM_LOAD( "a-2.k2", 0x1000, 0x1000, CRC(8913c94e) SHA1(6c4fe065217a234d45761f8ad4d2c4e7078a0abd) ) | |
| 4343 | ROM_LOAD( "a-3e.k3", 0x2000, 0x1000, CRC(a8fa5095) SHA1(5cabe5497a79a0c43e78a84ae87c824af60a2a3f) ) | |
| 4344 | ROM_LOAD( "a-4.k4", 0x3000, 0x1000, CRC(93f81317) SHA1(167708be94cb9a47290067a20bc5ff6f018b93b6) ) | |
| 4345 | ||
| 4346 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) | |
| 4347 | ROM_LOAD( "a-5e.k5", 0x0000, 0x1000, CRC(b5bcdb4e) SHA1(db0965e5636e0f4e9cd4f4a7d808c413ecf733db) ) | |
| 4348 | ROM_LOAD( "a-6.k6", 0x1000, 0x1000, CRC(24832b2e) SHA1(2a67888e86ce1a3182303e841513ba2a07977359) ) | |
| 4349 | ROM_LOAD( "a-7e.k7", 0x2000, 0x1000, CRC(20ebea81) SHA1(473c688365b256d8593663ff95768f4a5bb1289d) ) | |
| 4350 | // 0x3000 empty ? | |
| 4351 | ROM_LOAD( "a-8.k8", 0x4000, 0x1000, CRC(b833a15b) SHA1(0d21aaa0ca5ccba89118b205a6b3b36b15663c47) ) | |
| 4352 | ROM_LOAD( "a-9.k9", 0x5000, 0x1000, CRC(cbd76ec2) SHA1(9434350ee93ca71efe78018b69913386353306ff) ) | |
| 4353 | ||
| 4354 | ROM_REGION( 0x2000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4355 | ROM_LOAD( "b-7e.a5", 0x0000, 0x1000, CRC(ddd4158d) SHA1(9701e2d8a0226455dfbed650e58bb4be05918fe8) ) | |
| 4356 | ROM_LOAD( "b-8e.c5", 0x1000, 0x1000, CRC(b1331b4c) SHA1(fa1af406ecd6919b4846aea68d3edb70106f9273) ) | |
| 4357 | ||
| 4358 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4359 | ROM_LOAD( "prom.g9", 0x0000, 0x0020, CRC(b7ea00d7) SHA1(f658c6ac8123ae1e6b68ae513cc02c4d9d2b4e47) ) | |
| 4360 | ROM_END | |
| 4361 | ||
| 4362 | ||
| 4363 | ROM_START( scobra ) | |
| 4364 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4365 | ROM_LOAD( "epr1265.2c", 0x0000, 0x1000, CRC(a0744b3f) SHA1(8949298a04f8ba8a82d5d84a7b012a0e7cff11df) ) | |
| 4366 | ROM_LOAD( "2e", 0x1000, 0x1000, CRC(8e7245cd) SHA1(281504ff364c3ddbf901c92729b139afd93b9785) ) | |
| 4367 | ROM_LOAD( "epr1267.2f", 0x2000, 0x1000, CRC(47a4e6fb) SHA1(01775ad11dc23469649539ee8fb8a5800df031c6) ) | |
| 4368 | ROM_LOAD( "2h", 0x3000, 0x1000, CRC(7244f21c) SHA1(f5fff565ed3f6c5f277a4db53c9f569813fcec1d) ) | |
| 4369 | ROM_LOAD( "epr1269.2j", 0x4000, 0x1000, CRC(e1f8a801) SHA1(2add8270352d6596052d3ff22c891ceccaa92071) ) | |
| 4370 | ROM_LOAD( "2l", 0x5000, 0x1000, CRC(d52affde) SHA1(5681771ed51d504bdcc2999fcbf926a30b137828) ) | |
| 4371 | ||
| 4372 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4373 | ROM_LOAD( "5c", 0x0000, 0x0800, CRC(d4346959) SHA1(5eab4505beb69a5bdd88b23db60e1193371250cf) ) | |
| 4374 | ROM_LOAD( "5d", 0x0800, 0x0800, CRC(cc025d95) SHA1(2b0784c4d05c466e0b7648f16e14f34393d792c3) ) | |
| 4375 | ROM_LOAD( "5e", 0x1000, 0x0800, CRC(1628c53f) SHA1(ec79a73e4a2d7373454b227dd7eff255f1cc60cc) ) | |
| 4376 | ||
| 4377 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4378 | ROM_LOAD( "epr1274.5h", 0x0000, 0x0800, CRC(64d113b4) SHA1(7b439bb74d5ecc792e0ca8964bcca8c6b7a51262) ) | |
| 4379 | ROM_LOAD( "epr1273.5f", 0x0800, 0x0800, CRC(a96316d3) SHA1(9de0e94932e91dc34aea7c81880bde6a486d103b) ) | |
| 4380 | ||
| 4381 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4382 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(9b87f90d) SHA1(d11ac5e4a6057301ea2a9cbb404c2b978eb4c1dc) ) | |
| 4383 | ROM_END | |
| 4384 | ||
| 4385 | ROM_START( scobras ) | |
| 4386 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4387 | ROM_LOAD( "scobra2c.bin", 0x0000, 0x1000, CRC(e15ade38) SHA1(21cf26d1781d133fa336d275d8a61d3f95d10b77) ) | |
| 4388 | ROM_LOAD( "scobra2e.bin", 0x1000, 0x1000, CRC(a270e44d) SHA1(8b7307af458b9cd3c45bb72b35e682d6d109ed01) ) | |
| 4389 | ROM_LOAD( "scobra2f.bin", 0x2000, 0x1000, CRC(bdd70346) SHA1(bda0dc5777233a86a3a0aceb6eded45145057ba8) ) | |
| 4390 | ROM_LOAD( "scobra2h.bin", 0x3000, 0x1000, CRC(dca5ec31) SHA1(50073d44ccef76a3c36c73a6ed4479127f2c98ee) ) | |
| 4391 | ROM_LOAD( "scobra2j.bin", 0x4000, 0x1000, CRC(0d8f6b6e) SHA1(0ca0096cd55cdb87d14cb7f4c7c7b853ec1661c7) ) | |
| 4392 | ROM_LOAD( "scobra2l.bin", 0x5000, 0x1000, CRC(6f80f3a9) SHA1(817d212454c5eb16c5d7471d2ccefc4f8708d57f) ) | |
| 4393 | ||
| 4394 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4395 | ROM_LOAD( "epr1275.5c", 0x0000, 0x0800, CRC(deeb0dd3) SHA1(b815a586f05361b75078d58f1fddfdb36f9d8fae) ) | |
| 4396 | ROM_LOAD( "epr1276.5d", 0x0800, 0x0800, CRC(872c1a74) SHA1(20f05bf398ad2690f5ba4e4158ad62aeec226413) ) | |
| 4397 | ROM_LOAD( "epr1277.5e", 0x1000, 0x0800, CRC(ccd7a110) SHA1(5a247e360530be0f94c90fcc7d0ce628d460449f) ) | |
| 4398 | ||
| 4399 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4400 | ROM_LOAD( "epr1274.5h", 0x0000, 0x0800, CRC(64d113b4) SHA1(7b439bb74d5ecc792e0ca8964bcca8c6b7a51262) ) | |
| 4401 | ROM_LOAD( "epr1273.5f", 0x0800, 0x0800, CRC(a96316d3) SHA1(9de0e94932e91dc34aea7c81880bde6a486d103b) ) | |
| 4402 | ||
| 4403 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4404 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(9b87f90d) SHA1(d11ac5e4a6057301ea2a9cbb404c2b978eb4c1dc) ) | |
| 4405 | ROM_END | |
| 4406 | ||
| 4407 | ROM_START( scobrase ) | |
| 4408 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4409 | ROM_LOAD( "epr1265.2c", 0x0000, 0x1000, CRC(a0744b3f) SHA1(8949298a04f8ba8a82d5d84a7b012a0e7cff11df) ) | |
| 4410 | ROM_LOAD( "epr1266.2e", 0x1000, 0x1000, CRC(65306279) SHA1(f6e10d57c9b88e3fcd7333f76708e190a97b4faa) ) | |
| 4411 | ROM_LOAD( "epr1267.2f", 0x2000, 0x1000, CRC(47a4e6fb) SHA1(01775ad11dc23469649539ee8fb8a5800df031c6) ) | |
| 4412 | ROM_LOAD( "epr1268.2h", 0x3000, 0x1000, CRC(53eecaf2) SHA1(08ca34097f63af8ab69b1d836a12a8bd4d42e4a2) ) | |
| 4413 | ROM_LOAD( "epr1269.2j", 0x4000, 0x1000, CRC(e1f8a801) SHA1(2add8270352d6596052d3ff22c891ceccaa92071) ) | |
| 4414 | ROM_LOAD( "epr1270.2l", 0x5000, 0x1000, CRC(f7709710) SHA1(dff9ae72ba00a98d4f5acdd6d506e3d7add6b2c6) ) | |
| 4415 | ||
| 4416 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4417 | ROM_LOAD( "epr1275.5c", 0x0000, 0x0800, CRC(deeb0dd3) SHA1(b815a586f05361b75078d58f1fddfdb36f9d8fae) ) | |
| 4418 | ROM_LOAD( "epr1276.5d", 0x0800, 0x0800, CRC(872c1a74) SHA1(20f05bf398ad2690f5ba4e4158ad62aeec226413) ) | |
| 4419 | ROM_LOAD( "epr1277.5e", 0x1000, 0x0800, CRC(ccd7a110) SHA1(5a247e360530be0f94c90fcc7d0ce628d460449f) ) | |
| 4420 | ||
| 4421 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4422 | ROM_LOAD( "epr1274.5h", 0x0000, 0x0800, CRC(64d113b4) SHA1(7b439bb74d5ecc792e0ca8964bcca8c6b7a51262) ) | |
| 4423 | ROM_LOAD( "epr1273.5f", 0x0800, 0x0800, CRC(a96316d3) SHA1(9de0e94932e91dc34aea7c81880bde6a486d103b) ) | |
| 4424 | ||
| 4425 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4426 | ROM_LOAD( "pr1278.6e", 0x0000, 0x0020, CRC(fd35c561) SHA1(590f60beb443dd689c890c37cc100e0b936bf8c9) ) | |
| 4427 | ROM_END | |
| 4428 | ||
| 4429 | ROM_START( scobrab ) | |
| 4430 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4431 | ROM_LOAD( "vid_2c.bin", 0x0000, 0x0800, CRC(aeddf391) SHA1(87632469e943cfe38a9676de5e8ed839a63c5da2) ) | |
| 4432 | ROM_LOAD( "vid_2e.bin", 0x0800, 0x0800, CRC(72b57eb7) SHA1(978d0acbfccb7c1edddb073ad9417d4cbd9b7e63) ) | |
| 4433 | ROM_LOAD( "scobra2e.bin", 0x1000, 0x1000, CRC(a270e44d) SHA1(8b7307af458b9cd3c45bb72b35e682d6d109ed01) ) | |
| 4434 | ROM_LOAD( "scobra2f.bin", 0x2000, 0x1000, CRC(bdd70346) SHA1(bda0dc5777233a86a3a0aceb6eded45145057ba8) ) | |
| 4435 | ROM_LOAD( "scobra2h.bin", 0x3000, 0x1000, CRC(dca5ec31) SHA1(50073d44ccef76a3c36c73a6ed4479127f2c98ee) ) | |
| 4436 | ROM_LOAD( "scobra2j.bin", 0x4000, 0x1000, CRC(0d8f6b6e) SHA1(0ca0096cd55cdb87d14cb7f4c7c7b853ec1661c7) ) | |
| 4437 | ROM_LOAD( "scobra2l.bin", 0x5000, 0x1000, CRC(6f80f3a9) SHA1(817d212454c5eb16c5d7471d2ccefc4f8708d57f) ) | |
| 4438 | ||
| 4439 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4440 | ROM_LOAD( "snd_5c.bin", 0x0000, 0x0800, CRC(deeb0dd3) SHA1(b815a586f05361b75078d58f1fddfdb36f9d8fae) ) | |
| 4441 | ROM_LOAD( "snd_5d.bin", 0x0800, 0x0800, CRC(872c1a74) SHA1(20f05bf398ad2690f5ba4e4158ad62aeec226413) ) | |
| 4442 | ROM_LOAD( "snd_5e.bin", 0x1000, 0x0800, CRC(ccd7a110) SHA1(5a247e360530be0f94c90fcc7d0ce628d460449f) ) | |
| 4443 | ||
| 4444 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4445 | ROM_LOAD( "epr1274.5h", 0x0000, 0x0800, CRC(64d113b4) SHA1(7b439bb74d5ecc792e0ca8964bcca8c6b7a51262) ) | |
| 4446 | ROM_LOAD( "epr1273.5f", 0x0800, 0x0800, CRC(a96316d3) SHA1(9de0e94932e91dc34aea7c81880bde6a486d103b) ) | |
| 4447 | ||
| 4448 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4449 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(9b87f90d) SHA1(d11ac5e4a6057301ea2a9cbb404c2b978eb4c1dc) ) | |
| 4450 | ROM_END | |
| 4451 | ||
| 4452 | ||
| 4453 | ROM_START( losttomb ) | |
| 4454 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4455 | ROM_LOAD( "2c", 0x0000, 0x1000, CRC(d6176d2c) SHA1(bc2bf63ee8d3e376f155d218704ceb5adcdf8e54) ) | |
| 4456 | ROM_LOAD( "2e", 0x1000, 0x1000, CRC(a5f55f4a) SHA1(3609fc2b15b6856e81738bbd370250735dba694d) ) | |
| 4457 | ROM_LOAD( "2f", 0x2000, 0x1000, CRC(0169fa3c) SHA1(2c06b1deca6c80d067032bfc2386da6ab0111e5f) ) | |
| 4458 | ROM_LOAD( "2h-easy", 0x3000, 0x1000, CRC(054481b6) SHA1(b0f5d19af0336883e4d9813e58a75c176a63a987) ) | |
| 4459 | ROM_LOAD( "2j", 0x4000, 0x1000, CRC(249ee040) SHA1(7297039e95e67220fa3e75fc50635f4df4c46a86) ) | |
| 4460 | ROM_LOAD( "2l", 0x5000, 0x1000, CRC(c7d2e608) SHA1(8aabecabd1dcd6833fb581e4571d71a680e6563a) ) | |
| 4461 | ROM_LOAD( "2m", 0x6000, 0x1000, CRC(bc4bc5b1) SHA1(95ffa72e57d1da10ddeda4d9333c9e0a2fb33e82) ) | |
| 4462 | ||
| 4463 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4464 | ROM_LOAD( "5c", 0x0000, 0x0800, CRC(b899be2a) SHA1(9b343a682531255104db61177a43ad933c3af34e) ) | |
| 4465 | ROM_LOAD( "5d", 0x0800, 0x0800, CRC(6907af31) SHA1(8496c8db5342129d81381eec196facbca45bca77) ) | |
| 4466 | ||
| 4467 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4468 | ROM_LOAD( "5f", 0x0000, 0x0800, CRC(61f137e7) SHA1(8bff09bc29fa829e21e6b36f7b3f67f19f6bbb26) ) | |
| 4469 | ROM_LOAD( "5h", 0x0800, 0x0800, CRC(5581de5f) SHA1(763dacb0d2183c159e7f1f04c7ecb1182da18abf) ) | |
| 4470 | ||
| 4471 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4472 | ROM_LOAD( "ltprom", 0x0000, 0x0020, CRC(1108b816) SHA1(49fdb08f8f31fefa2f3dca3d3455318cb21847a3) ) | |
| 4473 | ROM_END | |
| 4474 | ||
| 4475 | ROM_START( losttmbh ) | |
| 4476 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4477 | ROM_LOAD( "2c", 0x0000, 0x1000, CRC(d6176d2c) SHA1(bc2bf63ee8d3e376f155d218704ceb5adcdf8e54) ) | |
| 4478 | ROM_LOAD( "2e", 0x1000, 0x1000, CRC(a5f55f4a) SHA1(3609fc2b15b6856e81738bbd370250735dba694d) ) | |
| 4479 | ROM_LOAD( "2f", 0x2000, 0x1000, CRC(0169fa3c) SHA1(2c06b1deca6c80d067032bfc2386da6ab0111e5f) ) | |
| 4480 | ROM_LOAD( "lthard", 0x3000, 0x1000, CRC(e32cbf0e) SHA1(c4a63e01fad7bd450def5c4412690d4bb8d12691) ) | |
| 4481 | ROM_LOAD( "2j", 0x4000, 0x1000, CRC(249ee040) SHA1(7297039e95e67220fa3e75fc50635f4df4c46a86) ) | |
| 4482 | ROM_LOAD( "2l", 0x5000, 0x1000, CRC(c7d2e608) SHA1(8aabecabd1dcd6833fb581e4571d71a680e6563a) ) | |
| 4483 | ROM_LOAD( "2m", 0x6000, 0x1000, CRC(bc4bc5b1) SHA1(95ffa72e57d1da10ddeda4d9333c9e0a2fb33e82) ) | |
| 4484 | ||
| 4485 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4486 | ROM_LOAD( "5c", 0x0000, 0x0800, CRC(b899be2a) SHA1(9b343a682531255104db61177a43ad933c3af34e) ) | |
| 4487 | ROM_LOAD( "5d", 0x0800, 0x0800, CRC(6907af31) SHA1(8496c8db5342129d81381eec196facbca45bca77) ) | |
| 4488 | ||
| 4489 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4490 | ROM_LOAD( "5f", 0x0000, 0x0800, CRC(61f137e7) SHA1(8bff09bc29fa829e21e6b36f7b3f67f19f6bbb26) ) | |
| 4491 | ROM_LOAD( "5h", 0x0800, 0x0800, CRC(5581de5f) SHA1(763dacb0d2183c159e7f1f04c7ecb1182da18abf) ) | |
| 4492 | ||
| 4493 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4494 | ROM_LOAD( "ltprom", 0x0000, 0x0020, CRC(1108b816) SHA1(49fdb08f8f31fefa2f3dca3d3455318cb21847a3) ) | |
| 4495 | ROM_END | |
| 4496 | ||
| 4497 | ||
| 4498 | ROM_START( armorcar ) | |
| 4499 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4500 | ROM_LOAD( "cpu.2c", 0x0000, 0x1000, CRC(0d7bfdfb) SHA1(47791d4fc298c25d29584dfcddcd92618e3750c5) ) | |
| 4501 | ROM_LOAD( "cpu.2e", 0x1000, 0x1000, CRC(76463213) SHA1(86dbbed25325cc8855c1eb39bbb11b0473b7f4b5) ) | |
| 4502 | ROM_LOAD( "cpu.2f", 0x2000, 0x1000, CRC(2cc6d5f0) SHA1(94abb33760aed206f0f90f035fe2977c1f2e26cf) ) | |
| 4503 | ROM_LOAD( "cpu.2h", 0x3000, 0x1000, CRC(61278dbb) SHA1(e12cd6c499af75f77e549499093fe6d2e8eddb1d) ) | |
| 4504 | ROM_LOAD( "cpu.2j", 0x4000, 0x1000, CRC(fb158d8c) SHA1(efa70e92c56678d4a404a96c72cfee317b15648c) ) | |
| 4505 | ||
| 4506 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4507 | ROM_LOAD( "sound.5c", 0x0000, 0x0800, CRC(54ee7753) SHA1(3ebfa2cadf33acb4d24aa50cfa4713355cc780a3) ) | |
| 4508 | ROM_LOAD( "sound.5d", 0x0800, 0x0800, CRC(5218fec0) SHA1(c8f84f1e6aafc544e5acf48b245e8b1edb63211e) ) | |
| 4509 | ||
| 4510 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4511 | ROM_LOAD( "cpu.5f", 0x0000, 0x0800, CRC(8a3da4d1) SHA1(4d2ef48aeb9099fdd145e11e2485e0bf8d87290d) ) | |
| 4512 | ROM_LOAD( "cpu.5h", 0x0800, 0x0800, CRC(85bdb113) SHA1(f62da0ea0c29feb10d8d1ce8de28fd750a53b40a) ) | |
| 4513 | ||
| 4514 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4515 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(9b87f90d) SHA1(d11ac5e4a6057301ea2a9cbb404c2b978eb4c1dc) ) | |
| 4516 | ROM_END | |
| 4517 | ||
| 4518 | ROM_START( armorca2 ) | |
| 4519 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4520 | ROM_LOAD( "2c", 0x0000, 0x1000, CRC(e393bd2f) SHA1(6a5079d1f5d724e5f643cbc5352fc43d0b652e05) ) | |
| 4521 | ROM_LOAD( "2e", 0x1000, 0x1000, CRC(b7d443af) SHA1(1ce41e11a7fcfd039fbff03c4382ae29b601ed50) ) | |
| 4522 | ROM_LOAD( "2g", 0x2000, 0x1000, CRC(e67380a4) SHA1(a9a87e769d1ef223ae26241e9211c97b3d469656) ) | |
| 4523 | ROM_LOAD( "2h", 0x3000, 0x1000, CRC(72af7b37) SHA1(c9cd0a0a3e34fc7b12822f75eb511f0850703f55) ) | |
| 4524 | ROM_LOAD( "2j", 0x4000, 0x1000, CRC(e6b0dd7f) SHA1(98292fea03bff028ba924a49f0bfa49377018860) ) | |
| 4525 | ||
| 4526 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4527 | ROM_LOAD( "sound.5c", 0x0000, 0x0800, CRC(54ee7753) SHA1(3ebfa2cadf33acb4d24aa50cfa4713355cc780a3) ) | |
| 4528 | ROM_LOAD( "sound.5d", 0x0800, 0x0800, CRC(5218fec0) SHA1(c8f84f1e6aafc544e5acf48b245e8b1edb63211e) ) | |
| 4529 | ||
| 4530 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4531 | ROM_LOAD( "cpu.5f", 0x0000, 0x0800, CRC(8a3da4d1) SHA1(4d2ef48aeb9099fdd145e11e2485e0bf8d87290d) ) | |
| 4532 | ROM_LOAD( "cpu.5h", 0x0800, 0x0800, CRC(85bdb113) SHA1(f62da0ea0c29feb10d8d1ce8de28fd750a53b40a) ) | |
| 4533 | ||
| 4534 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4535 | ROM_LOAD( "82s123.6e", 0x0000, 0x0020, CRC(9b87f90d) SHA1(d11ac5e4a6057301ea2a9cbb404c2b978eb4c1dc) ) | |
| 4536 | ROM_END | |
| 4537 | ||
| 4538 | ||
| 4539 | ROM_START( tazmania ) | |
| 4540 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4541 | ROM_LOAD( "2c.cpu", 0x0000, 0x1000, CRC(932c5a06) SHA1(f90040a12f579a05cb91eacbe49dae9b2c725592) ) | |
| 4542 | ROM_LOAD( "2e.cpu", 0x1000, 0x1000, CRC(ef17ce65) SHA1(e1372886a4a2ae58278772f49b4f3be35e0b65d1) ) | |
| 4543 | ROM_LOAD( "2f.cpu", 0x2000, 0x1000, CRC(43c7c39d) SHA1(3cfe97009e3c9236b118fa1beadc50f41584bd7e) ) | |
| 4544 | ROM_LOAD( "2h.cpu", 0x3000, 0x1000, CRC(be829694) SHA1(3885c95ae1704e7a472139740b87fc8dd9610e07) ) | |
| 4545 | ROM_LOAD( "2j.cpu", 0x4000, 0x1000, CRC(6e197271) SHA1(231141a95e4dcb54d8bbee346825702e52824c42) ) | |
| 4546 | ROM_LOAD( "2k.cpu", 0x5000, 0x1000, CRC(a1eb453b) SHA1(50ddfd1dd8cc8c2cde97e52d4ef90e6d10e27a53) ) | |
| 4547 | ||
| 4548 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4549 | ROM_LOAD( "rom0.snd", 0x0000, 0x0800, CRC(b8d741f1) SHA1(a1bb8a1e0d6b34111f05c539c8e92fffacf5aa5c) ) | |
| 4550 | ||
| 4551 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4552 | ROM_LOAD( "5f.cpu", 0x0000, 0x0800, CRC(2c5b612b) SHA1(32e3a41a9a4a8b1285b6a195213ff0d98012360a) ) | |
| 4553 | ROM_LOAD( "5h.cpu", 0x0800, 0x0800, CRC(3f5ff3ac) SHA1(bc70eef54a45b52c14e35464e5f06b5eec554eb6) ) | |
| 4554 | ||
| 4555 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4556 | ROM_LOAD( "colr6f.cpu", 0x0000, 0x0020, CRC(fce333c7) SHA1(f63a214dc47c5e7c80db000b0b6a261ca8da6629) ) | |
| 4557 | ROM_END | |
| 4558 | ||
| 4559 | ||
| 4560 | ROM_START( anteater ) | |
| 4561 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 4562 | ROM_LOAD( "ra1-2c", 0x0000, 0x1000, CRC(58bc9393) SHA1(7122782a69ef0d2196ec16833f229b6286802668) ) | |
| 4563 | ROM_LOAD( "ra1-2e", 0x1000, 0x1000, CRC(574fc6f6) SHA1(a1a213d215fe8502edf22383c3a6fb7c9b279d94) ) | |
| 4564 | ROM_LOAD( "ra1-2f", 0x2000, 0x1000, CRC(2f7c1fe5) SHA1(4cea7e66a85766a9cf9846bb5bc1ca4e6ee1f4e2) ) | |
| 4565 | ROM_LOAD( "ra1-2h", 0x3000, 0x1000, CRC(ae8a5da3) SHA1(1893d8293b25431d080b89f5b0874440d14e8d17) ) | |
| 4566 | ||
| 4567 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 4568 | ROM_LOAD( "ra4-5c", 0x0000, 0x0800, CRC(87300b4f) SHA1(b81b685ac1d353ff1cd40b876a7478b87b85e7a9) ) | |
| 4569 | ROM_LOAD( "ra4-5d", 0x0800, 0x0800, CRC(af4e5ffe) SHA1(62717a233cf9f58267af4a9e1c80479b373ab317) ) | |
| 4570 | ||
| 4571 | ROM_REGION( 0x1000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 4572 | ROM_LOAD( "ra6-5f", 0x0000, 0x0800, CRC(4c3f8a08) SHA1(3152eef64903be1a82f09764821a3654f316197d) ) | |
| 4573 | ROM_LOAD( "ra6-5h", 0x0800, 0x0800, CRC(b30c7c9f) SHA1(d4ae040d1fd7e5a5d08c2f6968735c551119c207) ) | |
| 4574 | ||
| 4575 | ROM_REGION( 0x0020, REGION_PROMS, 0 ) | |
| 4576 | ROM_LOAD( "colr6f.cpu", 0x0000, 0x0020, CRC(fce333c7) SHA1(f63a214dc47c5e7c80db000b0b6a261ca8da6629) ) | |
| 4577 | ROM_END | |
| 4578 | ||
| 4579 | ||
| 4580 | ||
| 4581 | /************************************* | |
| 4582 | * | |
| 4583 | * Game drivers | |
| 4584 | * Galaxian-derived games | |
| 4585 | * | |
| 4586 | *************************************/ | |
| 4587 | ||
| 4588 | /* basic galaxian hardware */ | |
| 4589 | GAME( 1979, galaxian, 0, galaxian, galaxian, galaxian, ROT90, "Namco", "Galaxian (Namco set 1)", GAME_SUPPORTS_SAVE ) | |
| 4590 | GAME( 1979, galaxiaj, galaxian, galaxian, superg, galaxian, ROT90, "Namco", "Galaxian (Namco set 2)", GAME_SUPPORTS_SAVE ) | |
| 4591 | GAME( 1979, galmidw, galaxian, galaxian, galaxian, galaxian, ROT90, "[Namco] (Midway license)", "Galaxian (Midway set 1)", GAME_SUPPORTS_SAVE ) | |
| 4592 | GAME( 1979, galmidwo, galaxian, galaxian, galaxian, galaxian, ROT90, "[Namco] (Midway license)", "Galaxian (Midway set 2)", GAME_SUPPORTS_SAVE ) | |
| 4593 | GAME( 1979, galtaito, galaxian, galaxian, galtaito, galaxian, ROT90, "[Namco] (Taito license)", "Galaxian (Taito)", GAME_SUPPORTS_SAVE ) | |
| 4594 | ||
| 4595 | /* straight Galaxian ripoffs on basic galaxian hardware */ | |
| 4596 | GAME( 1979, moonaln, galaxian, galaxian, superg, galaxian, ROT90, "[Nichibutsu] (Karateco license)", "Moon Alien", GAME_SUPPORTS_SAVE ) | |
| 4597 | GAME( 1979, superg, galaxian, galaxian, superg, galaxian, ROT90, "hack", "Super Galaxians (galaxiaj hack)", GAME_SUPPORTS_SAVE ) | |
| 4598 | GAME( 1979, galturbo, galaxian, galaxian, superg, galaxian, ROT90, "hack", "Galaxian Turbo (superg hack)", GAME_SUPPORTS_SAVE ) | |
| 4599 | GAME( 1979, galapx, galaxian, galaxian, superg, galaxian, ROT90, "hack", "Galaxian Part X (moonaln hack)", GAME_SUPPORTS_SAVE ) | |
| 4600 | GAME( 1979, galap1, galaxian, galaxian, superg, galaxian, ROT90, "hack", "Space Invaders Galactica (galaxiaj hack)", GAME_SUPPORTS_SAVE ) | |
| 4601 | GAME( 1979, galap4, galaxian, galaxian, superg, galaxian, ROT90, "G.G.I", "Galaxian Part 4 (hack)", GAME_SUPPORTS_SAVE ) | |
| 4602 | GAME( 1979, swarm, galaxian, galaxian, swarm, galaxian, ROT90, "Subelectro", "Swarm (bootleg?)", GAME_SUPPORTS_SAVE ) | |
| 4603 | GAME( 1979, zerotime, galaxian, galaxian, zerotime, galaxian, ROT90, "Petaco S.A.", "Zero Time", GAME_SUPPORTS_SAVE ) | |
| 4604 | GAME( 1979, starfght, galaxian, galaxian, swarm, galaxian, ROT90, "Jeutel", "Star Fighter", GAME_SUPPORTS_SAVE ) | |
| 4605 | GAME( 1979, galaxbsf, galaxian, galaxian, galaxian, galaxian, ROT90, "bootleg", "Galaxian (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 4606 | GAME( 1980, supergx, galaxian, galaxian, superg, galaxian, ROT90, "Nichibutsu", "Super GX", GAME_NOT_WORKING | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) | |
| 4607 | GAME( 19??, tst_galx, galaxian, galaxian, galaxian, galaxian, ROT90, "Test ROM", "Galaxian Test ROM", GAME_SUPPORTS_SAVE ) | |
| 4608 | ||
| 4609 | /* other games on basic galaxian hardware */ | |
| 4610 | GAME( 1981, blkhole, 0, galaxian, blkhole, galaxian, ROT90, "TDS", "Black Hole", GAME_SUPPORTS_SAVE ) | |
| 4611 | GAME( 19??, orbitron, 0, galaxian, orbitron, galaxian, ROT270, "Signatron USA", "Orbitron", GAME_SUPPORTS_SAVE ) | |
| 4612 | GAME( 1980, luctoday, 0, galaxian, luctoday, galaxian, ROT270, "Sigma", "Lucky Today",GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) | |
| 4613 | GAME( 19??, chewing, luctoday, galaxian, luctoday, galaxian, ROT90, "unknown", "Chewing Gum", GAME_SUPPORTS_SAVE ) | |
| 4614 | GAME( 1982, catacomb, 0, galaxian, catacomb, galaxian, ROT90, "MTM Games", "Catacomb", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) | |
| 4615 | GAME( 19??, omega, theend, galaxian, omega, galaxian, ROT270, "bootleg?", "Omega", GAME_SUPPORTS_SAVE ) | |
| 4616 | ||
| 4617 | /* these games require the coin lockout mechanism to be disabled */ | |
| 4618 | GAME( 1981, warofbug, 0, galaxian, warofbug, nolock, ROT90, "Armenia", "War of the Bugs or Monsterous Manouvers in a Mushroom Maze", GAME_SUPPORTS_SAVE ) | |
| 4619 | GAME( 19??, redufo, 0, galaxian, redufo, nolock, ROT90, "bootleg", "Defend the Terra Attack on the Red UFO", GAME_SUPPORTS_SAVE ) | |
| 4620 | GAME( 19??, exodus, redufo, galaxian, exodus, nolock, ROT90, "Subelectro", "Exodus (bootleg?)", GAME_SUPPORTS_SAVE ) | |
| 4621 | ||
| 4622 | /* different bullet color */ | |
| 4623 | GAME( 1982, azurian, 0, galaxian, azurian, azurian, ROT90, "Rait Electronics Ltd", "Azurian Attack", GAME_SUPPORTS_SAVE ) | |
| 4624 | ||
| 4625 | /* extra characters controlled via bank at $6002 */ | |
| 4626 | GAME( 19??, pisces, 0, galaxian, pisces, pisces, ROT90, "Subelectro", "Pisces", GAME_SUPPORTS_SAVE ) | |
| 4627 | GAME( 19??, piscesb, pisces, galaxian, piscesb, pisces, ROT90, "bootleg", "Pisces (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 4628 | GAME( 19??, omni, pisces, galaxian, piscesb, pisces, ROT90, "bootleg", "Omni", GAME_SUPPORTS_SAVE ) | |
| 4629 | GAME( 1980, uniwars, 0, galaxian, superg, pisces, ROT90, "Irem", "UniWar S", GAME_SUPPORTS_SAVE ) | |
| 4630 | GAME( 1980, gteikoku, uniwars, galaxian, superg, pisces, ROT90, "Irem", "Gingateikoku No Gyakushu", GAME_SUPPORTS_SAVE ) | |
| 4631 | GAME( 1980, gteikokb, uniwars, galaxian, gteikokb, pisces, ROT270, "bootleg", "Gingateikoku No Gyakushu (bootleg set 1)", GAME_SUPPORTS_SAVE ) | |
| 4632 | GAME( 1980, gteikob2, uniwars, galaxian, gteikob2, pisces, ROT90, "bootleg", "Gingateikoku No Gyakushu (bootleg set 2)", GAME_SUPPORTS_SAVE ) | |
| 4633 | GAME( 1980, spacbatt, uniwars, galaxian, spacbatt, pisces, ROT90, "bootleg", "Space Battle (bootleg set 1)", GAME_SUPPORTS_SAVE ) | |
| 4634 | GAME( 1980, spacbat2, uniwars, galaxian, spacbatt, pisces, ROT90, "bootleg", "Space Battle (bootleg set 2)", GAME_SUPPORTS_SAVE ) | |
| 4635 | GAME( 1980, skyraidr, uniwars, galaxian, superg, pisces, ROT90, "bootleg", "Sky Raiders", GAME_SUPPORTS_SAVE ) | |
| 4636 | ||
| 4637 | /* similar to pisces, but with different video banking characteristics */ | |
| 4638 | GAME( 1981, batman2, phoenix, galaxian, batman2, batman2, ROT270, "bootleg", "Batman Part 2", GAME_SUPPORTS_SAVE ) | |
| 4639 | ||
| 4640 | /* separate tile/sprite ROMs */ | |
| 4641 | GAME( 1981, streakng, 0, pacmanbl, streakng, galaxian, ROT90, "Shoei", "Streaking", GAME_IMPERFECT_COLORS | GAME_SUPPORTS_SAVE ) | |
| 4642 | GAME( 1981, pacmanbl, puckman, pacmanbl, pacmanbl, pacmanbl, ROT270, "bootleg", "Pac-Man (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 4643 | ||
| 4644 | /* separate tile/sprite ROMs, plus INT instead of NMI */ | |
| 4645 | GAME( 1984, devilfsg, devilfsh, pacmanbl, devilfsg, devilfsg, ROT270, "Vision / Artic", "Devil Fish (Galaxian hardware, bootleg?)", GAME_SUPPORTS_SAVE ) | |
| 4646 | ||
| 4647 | /* sound hardware replaced with AY8910 */ | |
| 4648 | GAME( 1982, zigzag, 0, zigzag, zigzag, zigzag, ROT90, "LAX", "Zig Zag (Galaxian hardware, set 1)", GAME_SUPPORTS_SAVE ) | |
| 4649 | GAME( 1982, zigzag2, zigzag, zigzag, zigzag, zigzag, ROT90, "LAX", "Zig Zag (Galaxian hardware, set 2)", GAME_SUPPORTS_SAVE ) | |
| 4650 | ||
| 4651 | /* multi-game select via external switch */ | |
| 4652 | GAME( 1981, gmgalax, 0, gmgalax, gmgalax, gmgalax, ROT90, "bootleg", "Ghostmuncher Galaxian (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 4653 | ||
| 4654 | ||
| 4655 | ||
| 4656 | /************************************* | |
| 4657 | * | |
| 4658 | * Game drivers | |
| 4659 | * Moon Cresta-derived games | |
| 4660 | * | |
| 4661 | *************************************/ | |
| 4662 | ||
| 4663 | /* based on Galaxian, but with altered address map for more ROM */ | |
| 4664 | GAME( 1980, mooncrst, 0, mooncrst, mooncrst, mooncrst, ROT90, "Nichibutsu", "Moon Cresta (Nichibutsu)", GAME_SUPPORTS_SAVE ) | |
| 4665 | GAME( 1980, mooncrsu, mooncrst, mooncrst, mooncrst, mooncrsu, ROT90, "Nichibutsu USA", "Moon Cresta (Nichibutsu, unencrypted)", GAME_SUPPORTS_SAVE ) | |
| 4666 | GAME( 1980, mooncrsa, mooncrst, mooncrst, mooncrsa, mooncrst, ROT90, "Nichibutsu", "Moon Cresta (Nichibutsu, old rev)", GAME_SUPPORTS_SAVE ) | |
| 4667 | GAME( 1980, mooncrsg, mooncrst, mooncrst, mooncrsg, mooncrsu, ROT90, "Gremlin", "Moon Cresta (Gremlin)", GAME_SUPPORTS_SAVE ) | |
| 4668 | ||
| 4669 | /* straight Moon Cresta ripoffs on basic mooncrst hardware */ | |
| 4670 | GAME( 1980, mooncrsb, mooncrst, mooncrst, mooncrsa, mooncrsu, ROT90, "bootleg", "Moon Cresta (bootleg set 1)", GAME_SUPPORTS_SAVE ) | |
| 4671 | GAME( 1980, mooncrs2, mooncrst, mooncrst, mooncrsa, mooncrsu, ROT90, "Nichibutsu", "Moon Cresta (bootleg set 2)", GAME_SUPPORTS_SAVE ) | |
| 4672 | GAME( 1980, mooncrs3, mooncrst, mooncrst, mooncrst, mooncrsu, ROT90, "bootleg", "Moon Cresta (bootleg set 3)", GAME_SUPPORTS_SAVE ) /* Jeutel bootleg, similar to bootleg set 2 */ | |
| 4673 | GAME( 1980, fantazia, mooncrst, mooncrst, fantazia, mooncrsu, ROT90, "Subelectro", "Fantazia (bootleg?)", GAME_SUPPORTS_SAVE ) | |
| 4674 | GAME( 1980, eagle, mooncrst, mooncrst, mooncrsa, mooncrsu, ROT90, "Centuri", "Eagle (set 1)", GAME_SUPPORTS_SAVE ) | |
| 4675 | GAME( 1980, eagle2, mooncrst, mooncrst, eagle2, mooncrsu, ROT90, "Centuri", "Eagle (set 2)", GAME_SUPPORTS_SAVE ) | |
| 4676 | GAME( 1980, eagle3, mooncrst, mooncrst, mooncrsa, mooncrsu, ROT90, "Centuri", "Eagle (set 3)", GAME_SUPPORTS_SAVE ) | |
| 4677 | GAME( 1981?,spctbird, mooncrst, mooncrst, eagle2, mooncrsu, ROT90, "Fortrek", "Space Thunderbird", GAME_SUPPORTS_SAVE ) | |
| 4678 | GAME( 1980?,smooncrs, mooncrst, mooncrst, smooncrs, mooncrsu, ROT90, "Gremlin", "Super Moon Cresta", GAME_SUPPORTS_SAVE ) | |
| 4679 | GAME( 198?, mooncmw, mooncrst, mooncrst, mooncrsa, mooncrsu, ROT90, "bootleg", "Moon War (Moon Cresta bootleg)", GAME_SUPPORTS_SAVE ) | |
| 4680 | // The boards were marked 'Space Dragon' although this doesn't appear in the games. | |
| 4681 | GAME( 1980, spcdrag, mooncrst, mooncrst, smooncrs, mooncrsu, ROT90, "bootleg", "Space Dragon (Moon Cresta bootleg, set 1)", GAME_SUPPORTS_SAVE ) | |
| 4682 | GAME( 1980, spcdraga, mooncrst, mooncrst, smooncrs, mooncrsu, ROT90, "bootleg", "Space Dragon (Moon Cresta bootleg, set 2)", GAME_SUPPORTS_SAVE ) | |
| 4683 | GAME( 1980, mooncrgx, mooncrst, galaxian, mooncrgx, mooncrgx, ROT270, "bootleg", "Moon Cresta (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 4684 | GAME( 1980, moonqsr, 0, mooncrst, moonqsr, moonqsr, ROT90, "Nichibutsu", "Moon Quasar", GAME_SUPPORTS_SAVE ) | |
| 4685 | GAME( 1980, moonal2, galaxian, mooncrst, moonal2, galaxian, ROT90, "Nichibutsu", "Moon Alien Part 2", GAME_SUPPORTS_SAVE ) | |
| 4686 | GAME( 1980, moonal2b, galaxian, mooncrst, moonal2, galaxian, ROT90, "Nichibutsu", "Moon Alien Part 2 (older version)", GAME_SUPPORTS_SAVE ) | |
| 4687 | ||
| 4688 | /* other games on basic mooncrst hardware */ | |
| 4689 | GAME( 1982, skybase, 0, mooncrst, skybase, skybase, ROT90, "Omori Electric Co., Ltd.", "Sky Base", GAME_SUPPORTS_SAVE ) | |
| 4690 | ||
| 4691 | /* extra ROMs, protection, and sound hardware replaced with AY8910 */ | |
| 4692 | GAME( 1981, jumpbug, 0, jumpbug, jumpbug, jumpbug, ROT90, "Rock-ola", "Jump Bug", GAME_SUPPORTS_SAVE ) | |
| 4693 | GAME( 1981, jumpbugb, jumpbug, jumpbug, jumpbug, jumpbug, ROT90, "bootleg", "Jump Bug (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 4694 | GAME( 1983, levers, 0, jumpbug, levers, jumpbug, ROT90, "Rock-ola", "Levers", GAME_SUPPORTS_SAVE ) | |
| 4695 | ||
| 4696 | /* 2nd CPU driving AY8910 for sound */ | |
| 4697 | GAME( 1982, checkman, 0, checkman, checkman, checkman, ROT90, "Zilec-Zenitone", "Check Man", GAME_SUPPORTS_SAVE ) | |
| 4698 | GAME( 1982, checkmaj, checkman, checkmaj, checkmaj, checkmaj, ROT90, "Jaleco", "Check Man (Japan)", GAME_SUPPORTS_SAVE ) | |
| 4699 | GAME( 1983, dingo, 0, checkmaj, dingo, dingo, ROT90, "Ashby Computers and Graphics LTD. (Jaleco license)", "Dingo", GAME_SUPPORTS_SAVE ) | |
| 4700 | GAME( 1983, dingoe, dingo, checkman, dingo, dingoe, ROT90, "Ashby Computers and Graphics LTD.", "Dingo (encrypted)", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 4701 | ||
| 4702 | /* Crazy Climber sound plus AY8910 instead of galaxian sound, plus INT instead of NMI */ | |
| 4703 | GAME( 1981, mshuttle, 0, mshuttle, mshuttle, mshuttle, ROT0, "Nichibutsu", "Moon Shuttle (US?)", GAME_SUPPORTS_SAVE ) | |
| 4704 | GAME( 1981, mshuttlj, mshuttle, mshuttle, mshuttle, mshuttlj, ROT0, "Nichibutsu", "Moon Shuttle (Japan)", GAME_SUPPORTS_SAVE ) | |
| 4705 | GAME( 1981, mshutlj2, mshuttle, mshuttle, mshuttle, mshuttlj, ROT0, "Nichibutsu", "Moon Shuttle (Japan set 2)", GAME_SUPPORTS_SAVE ) | |
| 4706 | ||
| 4707 | /* 2nd CPU driving DAC for sound */ | |
| 4708 | GAME( 1980, kingball, 0, kingball, kingball, kingball, ROT90, "Namco", "King & Balloon (US)", GAME_SUPPORTS_SAVE ) | |
| 4709 | GAME( 1980, kingbalj, kingball, kingball, kingball, kingball, ROT90, "Namco", "King & Balloon (Japan)", GAME_SUPPORTS_SAVE ) | |
| 4710 | ||
| 4711 | ||
| 4712 | ||
| 4713 | /************************************* | |
| 4714 | * | |
| 4715 | * Game drivers | |
| 4716 | * Konami games | |
| 4717 | * | |
| 4718 | *************************************/ | |
| 4719 | ||
| 4720 | /* Frogger based hardware: 2nd Z80, AY-8910A, 2 8255 PPI for I/O, custom background */ | |
| 4721 | GAME( 1981, frogger, 0, frogger, frogger, frogger, ROT90, "Konami", "Frogger", GAME_SUPPORTS_SAVE ) | |
| 4722 | GAME( 1981, frogseg1, frogger, frogger, frogger, frogger, ROT90, "[Konami] (Sega license)", "Frogger (Sega set 1)", GAME_SUPPORTS_SAVE ) | |
| 4723 | GAME( 1981, frogseg2, frogger, frogger, frogger, frogger, ROT90, "[Konami] (Sega license)", "Frogger (Sega set 2)", GAME_SUPPORTS_SAVE ) | |
| 4724 | GAME( 1981, froggrmc, frogger, froggrmc, froggrmc, froggrmc, ROT90, "[Konami] (Sega license)", "Frogger (Moon Cresta hardware)", GAME_SUPPORTS_SAVE ) | |
| 4725 | GAME( 1981, froggers, frogger, froggers, frogger, froggers, ROT90, "bootleg", "Frog", GAME_SUPPORTS_SAVE ) | |
| 4726 | GAME( 1981, frogf, frogger, frogf, frogger, froggers, ROT90, "Falcon", "Frog (Falcon bootleg)", GAME_SUPPORTS_SAVE ) | |
| 4727 | GAME( 1981, frogg, frogger, galaxian, frogg, frogg, ROT90, "bootleg", "Frog (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 4728 | ||
| 4729 | ||
| 4730 | /* Turtles based hardware */ | |
| 4731 | GAME( 1981, turtles, 0, turtles, turtles, turtles, ROT90, "[Konami] (Stern license)", "Turtles", GAME_SUPPORTS_SAVE ) | |
| 4732 | GAME( 1981, turpin, turtles, turtles, turpin, turtles, ROT90, "[Konami] (Sega license)", "Turpin", GAME_SUPPORTS_SAVE ) | |
| 4733 | GAME( 1981, 600, turtles, turtles, turtles, turtles, ROT90, "Konami", "600", GAME_SUPPORTS_SAVE ) | |
| 4734 | ||
| 4735 | GAME( 1981, amidar, 0, turtles, amidar, turtles, ROT90, "Konami", "Amidar", GAME_SUPPORTS_SAVE ) | |
| 4736 | GAME( 1982, amidaru, amidar, turtles, amidaru, turtles, ROT90, "Konami (Stern license)", "Amidar (Stern)", GAME_SUPPORTS_SAVE ) | |
| 4737 | GAME( 1982, amidaro, amidar, turtles, amidaro, turtles, ROT90, "Konami (Olympia license)", "Amidar (Olympia)", GAME_SUPPORTS_SAVE ) | |
| 4738 | GAME( 1982, amidarb, amidar, turtles, amidaru, turtles, ROT90, "bootleg", "Amidar (Bootleg)", GAME_SUPPORTS_SAVE ) /* Simular to Amigo bootleg */ | |
| 4739 | GAME( 1982, amigo, amidar, turtles, amidaru, turtles, ROT90, "bootleg", "Amigo", GAME_SUPPORTS_SAVE ) | |
| 4740 | GAME( 1982, amidars, amidar, theend, amidars, scramble, ROT90, "Konami", "Amidar (Scramble hardware)", GAME_SUPPORTS_SAVE ) | |
| 4741 | ||
| 4742 | ||
| 4743 | /* The End/Scramble based hardware */ | |
| 4744 | GAME( 1980, theend, 0, theend, theend, theend, ROT90, "Konami", "The End", GAME_SUPPORTS_SAVE ) | |
| 4745 | GAME( 1980, theends, theend, theend, theend, theend, ROT90, "[Konami] (Stern license)", "The End (Stern)", GAME_SUPPORTS_SAVE ) | |
| 4746 | ||
| 4747 | GAME( 1981, scramble, 0, theend, scramble, scramble, ROT90, "Konami", "Scramble", GAME_SUPPORTS_SAVE ) | |
| 4748 | GAME( 1981, scrambls, scramble, theend, scramble, scramble, ROT90, "[Konami] (Stern license)", "Scramble (Stern)", GAME_SUPPORTS_SAVE ) | |
| 4749 | GAME( 1981, strfbomb, scramble, theend, strfbomb, scramble, ROT90, "Omni", "Strafe Bomb", GAME_SUPPORTS_SAVE ) | |
| 4750 | GAME( 1981, explorer, scramble, explorer, explorer, explorer, ROT90, "bootleg", "Explorer", GAME_SUPPORTS_SAVE ) | |
| 4751 | ||
| 4752 | GAME( 1981, atlantis, 0, theend, atlantis, atlantis, ROT90, "Comsoft", "Battle of Atlantis (set 1)", GAME_SUPPORTS_SAVE ) | |
| 4753 | GAME( 1981, atlants2, atlantis, theend, atlantis, atlantis, ROT90, "Comsoft", "Battle of Atlantis (set 2)", GAME_SUPPORTS_SAVE ) | |
| 4754 | ||
| 4755 | /* Scorpion hardware; based on Scramble but with a 3rd AY-8910 and a speech chip */ | |
| 4756 | GAME( 1982, scorpion, 0, scorpion, scorpion, scorpion, ROT90, "Zaccaria", "Scorpion (set 1)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE) | |
| 4757 | GAME( 1982, scrpiona, scorpion, scorpion, scorpion, scorpion, ROT90, "Zaccaria", "Scorpion (set 2)", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE) | |
| 4758 | GAME( 1982, scrpionb, scorpion, scorpion, scorpion, scorpion, ROT90, "Zaccaria", "Scorpion (set 3)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE) | |
| 4759 | GAME( 19??, scorpnmc, scorpion, mooncrst, scorpnmc, scorpnmc, ROT90, "Dorneer", "Scorpion (Moon Cresta hardware)", GAME_SUPPORTS_SAVE ) | |
| 4760 | ||
| 4761 | /* SF-X hardware; based on Scramble with extra Z80 and 8255 driving a DAC-based sample player */ | |
| 4762 | GAME( 1983, sfx, 0, sfx, sfx, sfx, ORIENTATION_FLIP_X, "Nichibutsu", "SF-X", GAME_SUPPORTS_SAVE ) | |
| 4763 | GAME( 1983, skelagon, sfx, sfx, sfx, sfx, ORIENTATION_FLIP_X, "Nichibutsu USA", "Skelagon", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE) | |
| 4764 | GAME( 198?, monsterz, 0, sfx, sfx, sfx, ORIENTATION_FLIP_X, "Nihon", "Monster Zero", GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) | |
| 4765 | ||
| 4766 | ||
| 4767 | /* scobra */ | |
| 4768 | GAME( 1981, scobra, 0, scobra, scobra, scobra, ROT90, "Konami", "Super Cobra", GAME_SUPPORTS_SAVE ) | |
| 4769 | GAME( 1981, scobras, scobra, scobra, scobras, scobra, ROT90, "[Konami] (Stern license)", "Super Cobra (Stern)", GAME_SUPPORTS_SAVE ) | |
| 4770 | GAME( 1981, scobrase, scobra, scobra, scobras, scobra, ROT90, "[Konami] (Sega license)", "Super Cobra (Sega)", GAME_SUPPORTS_SAVE ) | |
| 4771 | GAME( 1981, scobrab, scobra, scobra, scobras, scobra, ROT90, "bootleg", "Super Cobra (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 4772 | ||
| 4773 | GAME( 1982, losttomb, 0, scobra, losttomb, losttomb, ROT90, "Stern", "Lost Tomb (easy)", GAME_SUPPORTS_SAVE ) | |
| 4774 | GAME( 1982, losttmbh, losttomb, scobra, losttomb, losttomb, ROT90, "Stern", "Lost Tomb (hard)", GAME_SUPPORTS_SAVE ) | |
| 4775 | ||
| 4776 | GAME( 1981, armorcar, 0, scobra, armorcar, scobra, ROT90, "Stern", "Armored Car (set 1)", GAME_SUPPORTS_SAVE ) | |
| 4777 | GAME( 1981, armorca2, armorcar, scobra, armorcar, scobra, ROT90, "Stern", "Armored Car (set 2)", GAME_SUPPORTS_SAVE ) | |
| 4778 | ||
| 4779 | GAME( 1982, tazmania, 0, scobra, tazmania, scobra, ROT90, "Stern", "Tazz-Mania (set 1)", GAME_SUPPORTS_SAVE ) | |
| 4780 | ||
| 4781 | GAME( 1982, anteater, 0, scobra, anteater, anteater, ROT90, "[Stern] (Tago license)", "Anteater", GAME_SUPPORTS_SAVE ) | |
| 4782 | ||
| 4783 | ||
| 4784 | ||
| 4785 | ||
| 4786 | /* currently in galaxold.c and should be moved here */ | |
| 4787 | //GAME( 1981, 4in1, 0, 4in1, 4in1, 4in1, ROT90, "Armenia / Food and Fun", "4 Fun in 1", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 4788 | //GAME( 1982, bagmanmc, bagman, bagmanmc, bagmanmc, galaxian, ROT90, "bootleg", "Bagman (Moon Cresta hardware)", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) | |
| 4789 | //GAME( 1982, dkongjrm, dkongjr, dkongjrm, dkongjrm, galaxian, ROT90, "bootleg", "Donkey Kong Jr. (Moon Cresta hardware)", GAME_WRONG_COLORS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 4790 | //GAME( 1981, rockclim, 0, rockclim, rockclim, galaxian, ROT180, "Taito", "Rock Climber", GAME_SUPPORTS_SAVE ) | |
| 4791 | //GAME( 1983, ozon1, 0, ozon1, ozon1, galaxian, ROT90, "Proma", "Ozon I", GAME_SUPPORTS_SAVE ) | |
| 4792 | //GAME( 1983, ladybugg, ladybug, galaxian/*batman2*/, ladybugg, ladybugg, ROT270, "bootleg", "Ladybug (bootleg on Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 4793 | //GAME( 1980, vpool, hustler, mooncrst, vpool, galaxian, ROT90, "bootleg", "Video Pool (bootleg on Moon Cresta hardware)", GAME_SUPPORTS_SAVE ) | |
| 4794 | //GAME( 1984, drivfrcg, drivfrcp, drivfrcg, drivfrcg, galaxian, ROT90, "Shinkai Inc. (Magic Eletronics USA licence)", "Driving Force (Galaxian conversion)", GAME_SUPPORTS_SAVE ) | |
| 4795 | //GAME( 1985, drivfrcb, drivfrcp, drivfrcg, drivfrcg, galaxian, ROT90, "bootleg", "Driving Force (Galaxian conversion bootleg)", GAME_SUPPORTS_SAVE ) | |
| 4796 | //GAME( 1983, bongo, 0, bongo, bongo, galaxian, ROT90, "Jetsoft", "Bongo", GAME_SUPPORTS_SAVE ) | |
| 4797 | //GAME( 1983, hunchbkg, hunchbak, hunchbkg, hunchbkg, galaxian, ROT90, "Century Electronics", "Hunchback (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 4798 | //GAME( 1983, harem, 0, harem, harem, galaxian, ROT90, "I.G.R.", "Harem", GAME_NO_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 4799 | //GAME( 1982, tazzmang, tazmania, tazzmang, tazzmang, galaxian, ROT90, "bootleg", "Tazz-Mania (Galaxian Hardware)", GAME_SUPPORTS_SAVE ) | |
| 4800 | //GAME( 1986, racknrol, 0, racknrol, racknrol, galaxian, ROT0, "Status (Shinkai License)", "Rack + Roll", GAME_SUPPORTS_SAVE ) | |
| 4801 | //GAME( 1986, hexpool, racknrol, racknrol, racknrol, galaxian, ROT90, "Shinkai", "Hex Pool (Shinkai)", GAME_SUPPORTS_SAVE ) | |
| 4802 | //GAME( 1985, hexpoola, racknrol, hexpoola, racknrol, galaxian, ROT90, "Senko", "Hex Pool (Senko)", GAME_SUPPORTS_SAVE ) | |
| 4803 | //GAME( 1985, trvchlng, 0, racknrol, trvchlng, galaxian, ROT90, "Joyland (Senko License)", "Trivia Challenge", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) | |
| 4804 | //GAME( 1981, ckongg, 0, ckongg , ckongg, galaxian, ROT90, "bootleg", "Crazy Kong (galaxian)", GAME_SUPPORTS_SAVE ) | |
| 4805 | //GAME( 1981, kkgalax, ckongg, ckongg , ckongg, galaxian, ROT90, "bootleg", "Crazy Kong (bootleg on Galaxian hardware, set 2)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) // set was marked as 'King Kong on Galaxian' | |
| 4806 | //GAME( 19??, porter, 0, mooncrst, porter, mooncrst, ROT90, "[Nova Games Ltd.] (bootleg)", "Port Man (bootleg on Moon Cresta hardware)", GAME_IMPERFECT_GRAPHICS ) // missing GFX bank switch! | |
| 4807 | ||
| 4808 | /* currently in scramble.c and should be moved here */ | |
| 4809 | //GAME( 1982, triplep, 0, theend /*triplep*/, triplep, scramble_ppi, ROT90, "KKI", "Triple Punch", GAME_SUPPORTS_SAVE ) | |
| 4810 | //GAME( 1982, knockout, triplep, theend /*triplep*/, triplep, scramble_ppi, ROT90, "KKK", "Knock Out!!", GAME_SUPPORTS_SAVE ) | |
| 4811 | //GAME( 1981, mariner, 0, theend /*mariner*/, scramble, mariner, ROT90, "Amenip", "Mariner", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE) | |
| 4812 | //GAME( 1981, 800fath, mariner, theend /*mariner*/, scramble, mariner, ROT90, "Amenip (US Billiards Inc. license)", "800 Fathoms", GAME_SUPPORTS_SAVE ) | |
| 4813 | //GAME( 1981, ckongs, ckong, theend /*ckongs*/, ckongs, ckongs, ROT90, "bootleg", "Crazy Kong (Scramble hardware)", GAME_SUPPORTS_SAVE ) | |
| 4814 | //GAME( 1981, mars, 0, theend /*mars*/, mars, mars, ROT90, "Artic", "Mars", GAME_SUPPORTS_SAVE ) | |
| 4815 | //GAME( 1982, devilfsh, 0, theend /*devilfsh*/, devilfsh, devilfsh, ROT90, "Artic", "Devil Fish", GAME_SUPPORTS_SAVE ) | |
| 4816 | //GAME( 1983, newsin7, 0, theend /*newsin7*/, newsin7, mars, ROT90, "ATW USA, Inc.", "New Sinbad 7", GAME_SUPPORTS_SAVE ) | |
| 4817 | //GAME( 1984, mrkougar, 0, theend /*mrkougar*/, mrkougar, mrkougar, ROT90, "ATW", "Mr. Kougar", GAME_SUPPORTS_SAVE ) | |
| 4818 | //GAME( 1983, mrkougr2, mrkougar, theend /*mrkougar*/, mrkougar, mrkougar, ROT90, "ATW", "Mr. Kougar (earlier)", GAME_SUPPORTS_SAVE ) | |
| 4819 | //GAME( 1983, mrkougb, mrkougar, theend /*mrkougb*/, mrkougar, mrkougb, ROT90, "bootleg", "Mr. Kougar (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 4820 | //GAME( 1983, mrkougb2, mrkougar, theend /*mrkougb*/, mrkougar, mrkougb, ROT90, "bootleg", "Mr. Kougar (bootleg Set 2)", GAME_SUPPORTS_SAVE ) | |
| 4821 | //GAME( 1982, hotshock, 0, theend /*hotshock*/, hotshock, hotshock, ROT90, "E.G. Felaco", "Hot Shocker", GAME_SUPPORTS_SAVE ) | |
| 4822 | //GAME( 1982, conquer, 0, theend /*hotshock*/, hotshock, 0, ROT90, "<unknown>", "Conquer", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE) | |
| 4823 | //GAME( 1983, hunchbks, hunchbak, theend /*hunchbks*/, hunchbks, scramble_ppi, ROT90, "Century Electronics", "Hunchback (Scramble hardware)", GAME_SUPPORTS_SAVE ) | |
| 4824 | //GAME( 1984, hncholms, huncholy, theend /*hncholms*/, hncholms, scramble_ppi, ROT90, "Century Electronics", "Hunchback Olympic (Scramble hardware)", GAME_SUPPORTS_SAVE ) | |
| 4825 | //GAME( 1983, cavelon, 0, theend /*cavelon*/, cavelon, cavelon, ROT90, "Jetsoft", "Cavelon", GAME_SUPPORTS_SAVE ) | |
| 4826 | //GAME( 198?, mimonscr, mimonkey, theend /*mimonscr*/, mimonscr, mimonscr, ROT90, "bootleg", "Mighty Monkey (bootleg on Scramble hardware)", GAME_SUPPORTS_SAVE ) | |
| 4827 | //GAME( 1983, ad2083, 0, theend /*ad2083*/, ad2083, ad2083, ROT90, "Midcoin", "A. D. 2083", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE) | |
| 4828 | //GAME( 1981, turpins, turtles, turtles, turpins, 0, ROT90, "[Sega] (bootleg)", "Turpin (bootleg on Scramble hardware)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) // haven't hooked up the sound CPU yet | |
| 4829 | ||
| 4830 | /* currently in scobra.c and should be moved here */ | |
| 4831 | //GAME( 1981, stratgyx, 0, scobra/*stratgyx*/, stratgyx, stratgyx, ROT0, "Konami", "Strategy X", GAME_SUPPORTS_SAVE ) | |
| 4832 | //GAME( 1981, stratgys, stratgyx, scobra/*stratgyx*/, stratgyx, stratgyx, ROT0, "[Konami] (Stern license)", "Strategy X (Stern)", GAME_SUPPORTS_SAVE ) | |
| 4833 | //GAME( 1981, moonwar, 0, scobra/*moonwar*/, moonwar, moonwar, ROT90, "Stern", "Moonwar", GAME_SUPPORTS_SAVE ) | |
| 4834 | //GAME( 1981, moonwara, moonwar, scobra/*moonwar*/, moonwara, moonwar, ROT90, "Stern", "Moonwar (older)", GAME_SUPPORTS_SAVE ) | |
| 4835 | //GAME( 1984, spdcoin, 0, scobra, spdcoin, scramble_ppi, ROT90, "Stern", "Speed Coin (prototype)", GAME_SUPPORTS_SAVE ) | |
| 4836 | //GAME( 1982, darkplnt, 0, scobra/*darkplnt*/, darkplnt, darkplnt, ROT180, "Stern", "Dark Planet", GAME_SUPPORTS_SAVE ) | |
| 4837 | //GAME( 1982, tazmani2, tazmania, scobra/*type2*/, tazmania, tazmani2, ROT90, "Stern", "Tazz-Mania (set 2)", GAME_SUPPORTS_SAVE ) | |
| 4838 | //GAME( 1982, calipso, 0, scobra/*calipso*/, calipso, scobra, ROT90, "[Stern] (Tago license)", "Calipso", GAME_SUPPORTS_SAVE ) | |
| 4839 | //GAME( 1983, anteatg, anteater, scobra/*anteatg*/, anteatg, scramble_ppi, ROT90, "TV-Tuning (F.E.G. license)", "Ameisenbaer (German)", GAME_SUPPORTS_SAVE ) | |
| 4840 | //GAME( 1983, anteatgb, anteater, scobra/*anteatgb*/, anteatgb, scramble_ppi, ROT90, "Free Enterprise Games", "The Anteater (UK)", GAME_SUPPORTS_SAVE ) | |
| 4841 | //GAME( 1982, rescue, 0, scobra/*rescue*/, rescue, rescue, ROT90, "Stern", "Rescue", GAME_SUPPORTS_SAVE ) | |
| 4842 | //GAME( 1982, aponow, rescue, scobra/*rescue*/, rescue, rescue, ROT90, "bootleg", "Apocaljpse Now", GAME_SUPPORTS_SAVE ) | |
| 4843 | //GAME( 1983, minefld, 0, scobra/*minefld*/, minefld, minefld, ROT90, "Stern", "Minefield", GAME_SUPPORTS_SAVE ) | |
| 4844 | //GAME( 198?, superbon, 0, scobra, superbon, superbon, ROT90, "bootleg", "Super Bond", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) | |
| 4845 | //GAME( 1981, hustler, 0, scobra/*hustler*/, hustler, hustler, ROT90, "Konami", "Video Hustler", GAME_SUPPORTS_SAVE ) | |
| 4846 | //GAME( 1981, billiard, hustler, scobra/*hustler*/, hustler, billiard, ROT90, "bootleg", "The Billiards", GAME_SUPPORTS_SAVE ) | |
| 4847 | //GAME( 1981, hustlerb, hustler, scobra/*hustlerb*/, hustler, scramble_ppi, ROT90, "bootleg", "Video Hustler (bootleg)", GAME_SUPPORTS_SAVE ) | |
| 4848 | //GAME( 198?, mimonkey, 0, scobra/*mimonkey*/, mimonkey, mimonkey, ROT90, "Universal Video Games", "Mighty Monkey", GAME_SUPPORTS_SAVE ) | |
| 4849 | //GAME( 198?, mimonsco, mimonkey, scobra/*mimonkey*/, mimonsco, mimonsco, ROT90, "bootleg", "Mighty Monkey (bootleg on Super Cobra hardware)", GAME_SUPPORTS_SAVE ) | |
| 4850 | ||
| 4851 | /* currently in dambustr.c and should be moved here */ | |
| 4852 | //GAME( 1981, dambustr, 0, dambustr, dambustr, dambustr, ROT90, "South West Research", "Dambusters (US)", 0 ) | |
| 4853 | //GAME( 1981, dambust, dambustr, dambustr, dambustr, dambustr, ROT90, "South West Research", "Dambusters (UK)", 0 ) | |
| 4854 | ||
| 4855 | /* misc stuff that should eventually be moved here */ | |
| 4856 | //GAME( 1981, scramblb, scramble, scramblb, scramblb, galaxian, ROT90, "bootleg", "Scramble (Galaxian hardware)", GAME_SUPPORTS_SAVE ) | |
| 4857 | //GAME( 1981, scramb2, scramble, scramb2, scramb2, 0, ROT90, "bootleg", "Scramble (bootleg)", GAME_SUPPORTS_SAVE ) |
| r2241 | r2242 | |
|---|---|---|
| 1377 | 1377 | |
| 1378 | 1378 | MDRV_VIDEO_START(ldrun2) |
| 1379 | 1379 | MDRV_VIDEO_UPDATE(ldrun) |
| 1380 | ||
| 1381 | MDRV_SCREEN_MODIFY("main") | |
| 1382 | MDRV_SCREEN_VISIBLE_AREA((64*8-384)/2, 64*8-(64*8-384)/2-1, 0*8, 31*8-1) | |
| 1383 | 1380 | MACHINE_DRIVER_END |
| 1384 | 1381 | |
| 1385 | 1382 | |
| r2241 | r2242 | |
| 1393 | 1390 | |
| 1394 | 1391 | /* video hardware */ |
| 1395 | 1392 | MDRV_GFXDECODE(ldrun3) |
| 1396 | ||
| 1397 | MDRV_SCREEN_MODIFY("main") | |
| 1398 | MDRV_SCREEN_VISIBLE_AREA((64*8-384)/2, 64*8-(64*8-384)/2-1, 0*8, 31*8-1) | |
| 1399 | 1393 | MACHINE_DRIVER_END |
| 1400 | 1394 | |
| 1401 | 1395 |
| r2241 | r2242 | |
|---|---|---|
| 158 | 158 | |
| 159 | 159 | static WRITE32_HANDLER(hvysmsh_eeprom_w) |
| 160 | 160 | { |
| 161 | if (ACCESSING_ | |
| 161 | if (ACCESSING_ | |
| 162 | 162 | |
| 163 | 163 | OKIM6295_set_bank_base(1, 0x40000 * (data & 0x7) ); |
| 164 | 164 | |
| r2241 | r2242 | |
| 201 | 201 | |
| 202 | 202 | static WRITE32_HANDLER(wcvol95_eeprom_w) |
| 203 | 203 | { |
| 204 | if (ACCESSING_ | |
| 204 | if (ACCESSING_ | |
| 205 | 205 | EEPROM_set_clock_line((data & 0x2) ? ASSERT_LINE : CLEAR_LINE); |
| 206 | 206 | EEPROM_write_bit(data & 0x1); |
| 207 | 207 | EEPROM_set_cs_line((data & 0x4) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 163 | 163 | /*****************************************************************************/ |
| 164 | 164 | |
| 165 | 165 | static INPUT_PORTS_START( toki ) |
| 166 | SEIBU_COIN_INPUTS /* | |
| 166 | SEIBU_COIN_INPUTS /* | |
| 167 | 167 | |
| 168 | 168 | PORT_START_TAG("DSW0") |
| 169 | 169 | PORT_DIPNAME( 0x001f, 0x001f, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:1,2,3,4,5") |
| r2241 | r2242 | |
| 842 | 842 | GAME( 1989, tokib, toki, tokib, tokib, tokib, ROT0, "bootleg", "Toki (bootleg)", 0 ) |
| 843 | 843 | /* Sound hardware seems to have been slightly modified, the coins are handled ok, but there is no music and bad sfx. Program roms have a slight bitswap, Flipscreen also seems to be ignored */ |
| 844 | 844 | GAME( 1989, jujub, toki, toki, toki, jujub, ROT180, "bootleg", "JuJu Densetsu (Japan, bootleg)", GAME_IMPERFECT_SOUND ) // bootleg of tokia/tokij revison |
| 845 |
| r2241 | r2242 | |
|---|---|---|
| 358 | 358 | |
| 359 | 359 | static WRITE16_HANDLER( othunder_TC0220IOC_w ) |
| 360 | 360 | { |
| 361 | if (ACCESSING_ | |
| 361 | if (ACCESSING_ | |
| 362 | 362 | { |
| 363 | 363 | switch (offset) |
| 364 | 364 | { |
| r2241 | r2242 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | static WRITE16_HANDLER( sound_command_w ) |
| 41 | 41 | { |
| 42 | if (ACCESSING_ | |
| 42 | if (ACCESSING_ | |
| 43 | 43 | { |
| 44 | 44 | soundlatch_w(machine,offset,data & 0xff); |
| 45 | 45 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
| 53 | 53 | |
| 54 | 54 | static WRITE16_HANDLER( tail2nos_K051316_0_w ) |
| 55 | 55 | { |
| 56 | if (ACCESSING_ | |
| 56 | if (ACCESSING_ | |
| 57 | 57 | K051316_0_w(machine,offset,data & 0xff); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | static WRITE16_HANDLER( tail2nos_K051316_ctrl_0_w ) |
| 61 | 61 | { |
| 62 | if (ACCESSING_ | |
| 62 | if (ACCESSING_ | |
| 63 | 63 | K051316_ctrl_0_w(machine,offset,data & 0xff); |
| 64 | 64 | } |
| 65 | 65 |
| r2241 | r2242 | |
|---|---|---|
| 63 | 63 | |
| 64 | 64 | static WRITE32_HANDLER(IRQRQA_w) |
| 65 | 65 | { |
| 66 | if(ACCESSING_ | |
| 66 | if(ACCESSING_ | |
| 67 | 67 | IRQSTA&=~data; |
| 68 | 68 | } |
| 69 | 69 | |
| r2241 | r2242 | |
| 74 | 74 | |
| 75 | 75 | static WRITE32_HANDLER(IRQMSKA_w) |
| 76 | 76 | { |
| 77 | if(ACCESSING_ | |
| 77 | if(ACCESSING_ | |
| 78 | 78 | IRQMSKA=(data&(~2))|0x80; |
| 79 | 79 | } |
| 80 | 80 | |
| r2241 | r2242 | |
| 90 | 90 | |
| 91 | 91 | static WRITE32_HANDLER(IRQMSKB_w) |
| 92 | 92 | { |
| 93 | if(ACCESSING_ | |
| 93 | if(ACCESSING_ | |
| 94 | 94 | IRQMSKB=data; |
| 95 | 95 | } |
| 96 | 96 | |
| r2241 | r2242 | |
| 101 | 101 | |
| 102 | 102 | static WRITE32_HANDLER(FIQMSK_w) |
| 103 | 103 | { |
| 104 | if(ACCESSING_ | |
| 104 | if(ACCESSING_ | |
| 105 | 105 | FIQMSK=(data&(~0x2c))|0x80; |
| 106 | 106 | } |
| 107 | 107 | |
| r2241 | r2242 | |
| 112 | 112 | |
| 113 | 113 | static WRITE32_HANDLER(T1low_w) |
| 114 | 114 | { |
| 115 | if(ACCESSING_ | |
| 115 | if(ACCESSING_ | |
| 116 | 116 | T1low=data; |
| 117 | 117 | } |
| 118 | 118 | |
| r2241 | r2242 | |
| 123 | 123 | |
| 124 | 124 | static WRITE32_HANDLER(T1high_w) |
| 125 | 125 | { |
| 126 | if(ACCESSING_ | |
| 126 | if(ACCESSING_ | |
| 127 | 127 | T1high=data; |
| 128 | 128 | } |
| 129 | 129 |
| r2241 | r2242 | |
|---|---|---|
| 152 | 152 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 153 | 153 | AM_RANGE(0x0000, 0xbfff) AM_ROM |
| 154 | 154 | AM_RANGE(0xc000, 0xdfff) AM_RAM |
| 155 | AM_RANGE(0xe000, 0xffff) AM_R | |
| 155 | AM_RANGE(0xe000, 0xffff) AM_R | |
| 156 | 156 | ADDRESS_MAP_END |
| 157 | 157 | |
| 158 | 158 | static ADDRESS_MAP_START( port_map, ADDRESS_SPACE_IO, 8 ) |
| r2241 | r2242 | |
|---|---|---|
| 200 | 200 | |
| 201 | 201 | static WRITE32_HANDLER( ps4_eeprom_w ) |
| 202 | 202 | { |
| 203 | if (ACCESSING_ | |
| 203 | if (ACCESSING_BITS_16_31) | |
| 204 | 204 | { |
| 205 | 205 | EEPROM_write_bit((data & 0x00200000) ? 1 : 0); |
| 206 | 206 | EEPROM_set_cs_line((data & 0x00800000) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
| 214 | 214 | |
| 215 | 215 | static READ32_HANDLER( ps4_eeprom_r ) |
| 216 | 216 | { |
| 217 | if (ACCESSING_ | |
| 217 | if (ACCESSING_BITS_16_31) | |
| 218 | 218 | { |
| 219 | 219 | return ((EEPROM_read_bit() << 20)); /* EEPROM */ |
| 220 | 220 | } |
| r2241 | r2242 | |
| 286 | 286 | |
| 287 | 287 | static WRITE32_HANDLER( ps4_screen1_brt_w ) |
| 288 | 288 | { |
| 289 | if(ACCESSING_ | |
| 289 | if(ACCESSING_ | |
| 290 | 290 | /* Need seperate brightness for both screens if displaying together */ |
| 291 | 291 | double brt1 = data & 0xff; |
| 292 | 292 | static double oldbrt1; |
| r2241 | r2242 | |
| 312 | 312 | |
| 313 | 313 | static WRITE32_HANDLER( ps4_screen2_brt_w ) |
| 314 | 314 | { |
| 315 | if(ACCESSING_ | |
| 315 | if(ACCESSING_ | |
| 316 | 316 | /* Need seperate brightness for both screens if displaying together */ |
| 317 | 317 | double brt2 = data & 0xff; |
| 318 | 318 | static double oldbrt2; |
| r2241 | r2242 | |
| 344 | 344 | #if ROMTEST |
| 345 | 345 | if(offset==2) /* Configure bank for gfx test */ |
| 346 | 346 | { |
| 347 | if ( | |
| 347 | if (ACCESSING_BITS | |
| 348 | 348 | { |
| 349 | 349 | UINT8 *ROM = memory_region(REGION_GFX1); |
| 350 | 350 | memory_set_bankptr(2,&ROM[0x2000 * (psikyo4_vidregs[offset]&0x1fff)]); /* Bank comes from vidregs */ |
| r2241 | r2242 | |
| 370 | 370 | |
| 371 | 371 | static WRITE32_HANDLER( psh_ymf_fm_w ) |
| 372 | 372 | { |
| 373 | if ( | |
| 373 | if (ACCESSING_BITS_24_31 | |
| 374 | 374 | { |
| 375 | 375 | YMF278B_control_port_0_A_w(machine, 0, data>>24); |
| 376 | 376 | } |
| 377 | 377 | |
| 378 | if ( | |
| 378 | if (ACCESSING_BITS_16_23 | |
| 379 | 379 | { |
| 380 | 380 | YMF278B_data_port_0_A_w(machine, 0, data>>16); |
| 381 | 381 | } |
| 382 | 382 | |
| 383 | if ( | |
| 383 | if (ACCESSING_BITS_8_15 | |
| 384 | 384 | { |
| 385 | 385 | YMF278B_control_port_0_B_w(machine, 0, data>>8); |
| 386 | 386 | } |
| 387 | 387 | |
| 388 | if ( | |
| 388 | if (ACCESSING_BITS_ | |
| 389 | 389 | { |
| 390 | 390 | YMF278B_data_port_0_B_w(machine, 0, data); |
| 391 | 391 | } |
| r2241 | r2242 | |
| 393 | 393 | |
| 394 | 394 | static WRITE32_HANDLER( psh_ymf_pcm_w ) |
| 395 | 395 | { |
| 396 | if ( | |
| 396 | if (ACCESSING_BITS_24_31 | |
| 397 | 397 | { |
| 398 | 398 | YMF278B_control_port_0_C_w(machine, 0, data>>24); |
| 399 | 399 | |
| r2241 | r2242 | |
| 405 | 405 | #endif |
| 406 | 406 | } |
| 407 | 407 | |
| 408 | if ( | |
| 408 | if (ACCESSING_BITS_16_23 | |
| 409 | 409 | { |
| 410 | 410 | YMF278B_data_port_0_C_w(machine, 0, data>>16); |
| 411 | 411 | } |
| r2241 | r2242 | |
|---|---|---|
| 70 | 70 | |
| 71 | 71 | |
| 72 | 72 | |
| 73 | static ADDRESS_MAP_START( vigilant_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 74 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) | |
| 75 | AM_RANGE(0x8000, 0xbfff) AM_READ(SMH_BANK1) | |
| 76 | AM_RANGE(0xc020, 0xc0df) AM_READ(SMH_RAM) | |
| 77 | AM_RANGE(0xc800, 0xcfff) AM_READ(SMH_RAM) | |
| 78 | AM_RANGE(0xd000, 0xdfff) AM_READ(SMH_RAM) | |
| 79 | AM_RANGE(0xe000, 0xefff) AM_READ(SMH_RAM) | |
| 73 | static ADDRESS_MAP_START( vigilant_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 74 | AM_RANGE(0x8000, 0xbfff) AM_READ(SMH_BANK1) /* Fallthrough */ | |
| 75 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 76 | AM_RANGE(0xc020, 0xc0df) AM_RAM AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 77 | AM_RANGE(0xc800, 0xcfff) AM_RAM AM_WRITE(vigilant_paletteram_w) AM_BASE(&paletteram) | |
| 78 | AM_RANGE(0xd000, 0xdfff) AM_RAM AM_BASE(&videoram) AM_SIZE(&videoram_size) | |
| 79 | AM_RANGE(0xe000, 0xefff) AM_RAM | |
| 80 | 80 | ADDRESS_MAP_END |
| 81 | 81 | |
| 82 | static ADDRESS_MAP_START( vigilant_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 83 | AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM) | |
| 84 | AM_RANGE(0xc020, 0xc0df) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 85 | AM_RANGE(0xc800, 0xcfff) AM_WRITE(vigilant_paletteram_w) AM_BASE(&paletteram) | |
| 86 | AM_RANGE(0xd000, 0xdfff) AM_WRITE(SMH_RAM) AM_BASE(&videoram) AM_SIZE(&videoram_size) | |
| 87 | AM_RANGE(0xe000, 0xefff) AM_WRITE(SMH_RAM) | |
| 88 | ADDRESS_MAP_END | |
| 89 | ||
| 90 | static ADDRESS_MAP_START( vigilant_readport, ADDRESS_SPACE_IO, 8 ) | |
| 82 | static ADDRESS_MAP_START( vigilant_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 91 | 83 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 92 | AM_RANGE(0x00, 0x00) AM_READ(input_port_0_r) | |
| 93 | AM_RANGE(0x01, 0x01) AM_READ(input_port_1_r) | |
| 84 | AM_RANGE(0x00, 0x00) AM_READWRITE(input_port_0_r, m72_sound_command_byte_w) /* SD */ | |
| 85 | AM_RANGE(0x01, 0x01) AM_READWRITE(input_port_1_r, vigilant_out2_w) /* OUT2 */ | |
| 94 | 86 | AM_RANGE(0x02, 0x02) AM_READ(input_port_2_r) |
| 95 | 87 | AM_RANGE(0x03, 0x03) AM_READ(input_port_3_r) |
| 96 | AM_RANGE(0x04, 0x04) AM_READ(input_port_4_r) | |
| 97 | ADDRESS_MAP_END | |
| 98 | ||
| 99 | static ADDRESS_MAP_START( vigilant_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 100 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 101 | AM_RANGE(0x00, 0x00) AM_WRITE(m72_sound_command_byte_w) /* SD */ | |
| 102 | AM_RANGE(0x01, 0x01) AM_WRITE(vigilant_out2_w) /* OUT2 */ | |
| 103 | AM_RANGE(0x04, 0x04) AM_WRITE(vigilant_bank_select_w) /* PBANK */ | |
| 104 | AM_RANGE(0x80, 0x81) AM_WRITE(vigilant_horiz_scroll_w) /* HSPL, HSPH */ | |
| 88 | AM_RANGE(0x04, 0x04) AM_READWRITE(input_port_4_r, vigilant_bank_select_w) /* PBANK */ | |
| 89 | AM_RANGE(0x80, 0x81) AM_WRITE(vigilant_horiz_scroll_w) /* HSPL, HSPH */ | |
| 105 | 90 | AM_RANGE(0x82, 0x83) AM_WRITE(vigilant_rear_horiz_scroll_w) /* RHSPL, RHSPH */ |
| 106 | AM_RANGE(0x84, 0x84) AM_WRITE(vigilant_rear_color_w) /* RCOD */ | |
| 91 | AM_RANGE(0x84, 0x84) AM_WRITE(vigilant_rear_color_w) /* RCOD */ | |
| 107 | 92 | ADDRESS_MAP_END |
| 108 | 93 | |
| 109 | static ADDRESS_MAP_START( kikcubic_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 110 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) | |
| 111 | AM_RANGE(0x8000, 0xbfff) AM_READ(SMH_BANK1) | |
| 112 | AM_RANGE(0xc000, 0xc0ff) AM_READ(SMH_RAM) | |
| 113 | AM_RANGE(0xc800, 0xcaff) AM_READ(SMH_RAM) | |
| 114 | AM_RANGE(0xd000, 0xdfff) AM_READ(SMH_RAM) | |
| 115 | AM_RANGE(0xe000, 0xffff) AM_READ(SMH_RAM) | |
| 94 | static ADDRESS_MAP_START( kikcubic_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 95 | AM_RANGE(0x8000, 0xbfff) AM_READ(SMH_BANK1) /* Fallthrough */ | |
| 96 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 97 | AM_RANGE(0xc000, 0xc0ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 98 | AM_RANGE(0xc800, 0xcaff) AM_RAM AM_WRITE(vigilant_paletteram_w) AM_BASE(&paletteram) | |
| 99 | AM_RANGE(0xd000, 0xdfff) AM_RAM AM_WRITE(SMH_RAM) AM_BASE(&videoram) AM_SIZE(&videoram_size) | |
| 100 | AM_RANGE(0xe000, 0xffff) AM_RAM | |
| 116 | 101 | ADDRESS_MAP_END |
| 117 | 102 | |
| 118 | static ADDRESS_MAP_START( kikcubic_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 119 | AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM) | |
| 120 | AM_RANGE(0xc000, 0xc0ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 121 | AM_RANGE(0xc800, 0xcaff) AM_WRITE(vigilant_paletteram_w) AM_BASE(&paletteram) | |
| 122 | AM_RANGE(0xd000, 0xdfff) AM_WRITE(SMH_RAM) AM_BASE(&videoram) AM_SIZE(&videoram_size) | |
| 123 | AM_RANGE(0xe000, 0xffff) AM_WRITE(SMH_RAM) | |
| 124 | ADDRESS_MAP_END | |
| 125 | ||
| 126 | static ADDRESS_MAP_START( kikcubic_readport, ADDRESS_SPACE_IO, 8 ) | |
| 103 | static ADDRESS_MAP_START( kikcubic_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 127 | 104 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 128 | AM_RANGE(0x00, 0x00) AM_READ(input_port_3_r) | |
| 105 | AM_RANGE(0x00, 0x00) AM_READWRITE(input_port_3_r, kikcubic_coin_w) /* also flip screen, and...? */ | |
| 129 | 106 | AM_RANGE(0x01, 0x01) AM_READ(input_port_4_r) |
| 130 | 107 | AM_RANGE(0x02, 0x02) AM_READ(input_port_0_r) |
| 131 | 108 | AM_RANGE(0x03, 0x03) AM_READ(input_port_1_r) |
| 132 | AM_RANGE(0x04, 0x04) AM_READ(input_port_2_r) | |
| 133 | ADDRESS_MAP_END | |
| 134 | ||
| 135 | static ADDRESS_MAP_START( kikcubic_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 136 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 137 | AM_RANGE(0x00, 0x00) AM_WRITE(kikcubic_coin_w) /* also flip screen, and...? */ | |
| 138 | AM_RANGE(0x04, 0x04) AM_WRITE(vigilant_bank_select_w) | |
| 109 | AM_RANGE(0x04, 0x04) AM_READWRITE(input_port_2_r, vigilant_bank_select_w) | |
| 139 | 110 | AM_RANGE(0x06, 0x06) AM_WRITE(m72_sound_command_byte_w) |
| 140 | 111 | // AM_RANGE(0x07, 0x07) AM_WRITE(SMH_NOP) /* ?? */ |
| 141 | 112 | ADDRESS_MAP_END |
| 142 | 113 | |
| 143 | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 144 | AM_RANGE(0x0000, 0xbfff) AM_READ(SMH_ROM) | |
| 145 | AM_RANGE(0xf000, 0xffff) AM_READ(SMH_RAM) | |
| 114 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 115 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 116 | AM_RANGE(0xf000, 0xffff) AM_RAM | |
| 146 | 117 | ADDRESS_MAP_END |
| 147 | 118 | |
| 148 | static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 149 | AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM) | |
| 150 | AM_RANGE(0xf000, 0xffff) AM_WRITE(SMH_RAM) | |
| 151 | ADDRESS_MAP_END | |
| 152 | ||
| 153 | static ADDRESS_MAP_START( sound_readport, ADDRESS_SPACE_IO, 8 ) | |
| 119 | static ADDRESS_MAP_START( sound_io_map, ADDRESS_SPACE_IO, 8 ) | |
| 154 | 120 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 155 | AM_RANGE(0x01, 0x01) AM_READ(YM2151_status_port_0_r) | |
| 156 | AM_RANGE(0x80, 0x80) AM_READ(soundlatch_r) /* SDRE */ | |
| 157 | AM_RANGE(0x84, 0x84) AM_READ(m72_sample_r) /* S ROM C */ | |
| 158 | ADDRESS_MAP_END | |
| 159 | ||
| 160 | static ADDRESS_MAP_START( sound_writeport, ADDRESS_SPACE_IO, 8 ) | |
| 161 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 162 | 121 | AM_RANGE(0x00, 0x00) AM_WRITE(YM2151_register_port_0_w) |
| 163 | AM_RANGE(0x01, 0x01) AM_WRITE(YM2151_data_port_0_w) | |
| 164 | AM_RANGE(0x80, 0x81) AM_WRITE(vigilant_sample_addr_w) /* STL / STH */ | |
| 122 | AM_RANGE(0x01, 0x01) AM_READWRITE(YM2151_status_port_0_r, YM2151_data_port_0_w) | |
| 123 | AM_RANGE(0x80, 0x81) AM_READWRITE(soundlatch_r, vigilant_sample_addr_w) /* STL / STH */ | |
| 165 | 124 | AM_RANGE(0x82, 0x82) AM_WRITE(m72_sample_w) /* COUNT UP */ |
| 166 | 125 | AM_RANGE(0x83, 0x83) AM_WRITE(m72_sound_irq_ack_w) /* IRQ clear */ |
| 167 | ADDRESS_MAP_END | |
| 168 | ||
| 169 | ||
| 170 | static ADDRESS_MAP_START( buccanrs_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 171 | AM_RANGE(0x0000, 0xbfff) AM_READ(SMH_ROM) | |
| 172 | AM_RANGE(0xf000, 0xffff) AM_READ(SMH_RAM) | |
| 173 | ADDRESS_MAP_END | |
| 174 | ||
| 175 | static ADDRESS_MAP_START( buccanrs_sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 176 | AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM) | |
| 177 | AM_RANGE(0xf000, 0xffff) AM_WRITE(SMH_RAM) | |
| 178 | ADDRESS_MAP_END | |
| 179 | ||
| 180 | static ADDRESS_MAP_START( buccanrs_sound_readport, ADDRESS_SPACE_IO, 8 ) | |
| 181 | ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 182 | AM_RANGE(0x00, 0x00) AM_READ(YM2203_status_port_0_r) | |
| 183 | AM_RANGE(0x01, 0x01) AM_READ(YM2203_read_port_0_r) | |
| 184 | AM_RANGE(0x02, 0x02) AM_READ(YM2203_status_port_1_r) | |
| 185 | AM_RANGE(0x03, 0x03) AM_READ(YM2203_read_port_1_r) | |
| 186 | AM_RANGE(0x80, 0x80) AM_READ(soundlatch_r) /* SDRE */ | |
| 187 | 126 | AM_RANGE(0x84, 0x84) AM_READ(m72_sample_r) /* S ROM C */ |
| 188 | 127 | ADDRESS_MAP_END |
| 189 | 128 | |
| 190 | static ADDRESS_MAP_START( buccanrs_sound_ | |
| 129 | static ADDRESS_MAP_START( buccanrs_sound_ | |
| 191 | 130 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 192 | AM_RANGE(0x00, 0x00) AM_WRITE(YM2203_control_port_0_w) | |
| 193 | AM_RANGE(0x01, 0x01) AM_WRITE(YM2203_write_port_0_w) | |
| 194 | AM_RANGE(0x02, 0x02) AM_WRITE(YM2203_control_port_1_w) | |
| 195 | AM_RANGE(0x03, 0x03) AM_WRITE(YM2203_write_port_1_w) | |
| 131 | AM_RANGE(0x00, 0x00) AM_READWRITE(YM2203_status_port_0_r, YM2203_control_port_0_w) | |
| 132 | AM_RANGE(0x01, 0x01) AM_READWRITE(YM2203_read_port_0_r, YM2203_write_port_0_w) | |
| 133 | AM_RANGE(0x02, 0x02) AM_READWRITE(YM2203_status_port_1_r, YM2203_control_port_1_w) | |
| 134 | AM_RANGE(0x03, 0x03) AM_READWRITE(YM2203_read_port_1_r, YM2203_write_port_1_w) | |
| 135 | AM_RANGE(0x80, 0x80) AM_READ(soundlatch_r) /* SDRE */ | |
| 196 | 136 | AM_RANGE(0x80, 0x81) AM_WRITE(vigilant_sample_addr_w) /* STL / STH */ |
| 197 | AM_RANGE(0x82, 0x82) AM_WRITE(m72_sample_w) /* COUNT UP */ | |
| 198 | AM_RANGE(0x83, 0x83) AM_WRITE(m72_sound_irq_ack_w) /* IRQ clear */ | |
| 137 | AM_RANGE(0x82, 0x82) AM_WRITE(m72_sample_w) /* COUNT UP */ | |
| 138 | AM_RANGE(0x83, 0x83) AM_WRITE(m72_sound_irq_ack_w) /* IRQ clear */ | |
| 139 | AM_RANGE(0x84, 0x84) AM_READ(m72_sample_r) /* S ROM C */ | |
| 199 | 140 | ADDRESS_MAP_END |
| 200 | 141 | |
| 201 | 142 | |
| r2241 | r2242 | |
| 583 | 524 | |
| 584 | 525 | /* basic machine hardware */ |
| 585 | 526 | MDRV_CPU_ADD(Z80, 3579645) /* 3.579645 MHz */ |
| 586 | MDRV_CPU_PROGRAM_MAP(vigilant_readmem,vigilant_writemem) | |
| 587 | MDRV_CPU_IO_MAP(vigilant_readport,vigilant_writeport) | |
| 527 | MDRV_CPU_PROGRAM_MAP(vigilant_map,0) | |
| 528 | MDRV_CPU_IO_MAP(vigilant_io_map,0) | |
| 588 | 529 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 589 | 530 | |
| 590 | 531 | MDRV_CPU_ADD(Z80, 3579645) |
| 591 | 532 | /* audio CPU */ /* 3.579645 MHz */ |
| 592 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) | |
| 593 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) | |
| 533 | MDRV_CPU_PROGRAM_MAP(sound_map,0) | |
| 534 | MDRV_CPU_IO_MAP(sound_io_map,0) | |
| 594 | 535 | MDRV_CPU_VBLANK_INT_HACK(nmi_line_pulse,128) /* clocked by V1 */ |
| 595 | 536 | /* IRQs are generated by main Z80 and YM2151 */ |
| 596 | 537 | MDRV_MACHINE_RESET(m72_sound) |
| r2241 | r2242 | |
| 626 | 567 | |
| 627 | 568 | /* basic machine hardware */ |
| 628 | 569 | MDRV_CPU_ADD(Z80, 5688800) /* 5.688800 MHz */ |
| 629 | MDRV_CPU_PROGRAM_MAP(vigilant_readmem,vigilant_writemem) | |
| 630 | MDRV_CPU_IO_MAP(vigilant_readport,vigilant_writeport) | |
| 570 | MDRV_CPU_PROGRAM_MAP(vigilant_map,0) | |
| 571 | MDRV_CPU_IO_MAP(vigilant_io_map,0) | |
| 631 | 572 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 632 | 573 | |
| 633 | 574 | MDRV_CPU_ADD(Z80, 18432000/6) |
| 634 | 575 | /* audio CPU */ /* 3.072000 MHz */ |
| 635 | MDRV_CPU_PROGRAM_MAP(buccanrs_sound_readmem,buccanrs_sound_writemem) | |
| 636 | MDRV_CPU_IO_MAP(buccanrs_sound_readport,buccanrs_sound_writeport) | |
| 576 | MDRV_CPU_PROGRAM_MAP(sound_map,0) | |
| 577 | MDRV_CPU_IO_MAP(buccanrs_sound_io_map,0) | |
| 637 | 578 | MDRV_CPU_VBLANK_INT_HACK(nmi_line_pulse,128) /* clocked by V1 */ |
| 638 | 579 | /* IRQs are generated by main Z80 and YM2151 */ |
| 639 | 580 | MDRV_MACHINE_RESET(m72_sound) |
| r2241 | r2242 | |
| 685 | 626 | |
| 686 | 627 | /* basic machine hardware */ |
| 687 | 628 | MDRV_CPU_ADD(Z80, 3579645) /* 3.579645 MHz */ |
| 688 | MDRV_CPU_PROGRAM_MAP(kikcubic_readmem,kikcubic_writemem) | |
| 689 | MDRV_CPU_IO_MAP(kikcubic_readport,kikcubic_writeport) | |
| 629 | MDRV_CPU_PROGRAM_MAP(kikcubic_map,0) | |
| 630 | MDRV_CPU_IO_MAP(kikcubic_io_map,0) | |
| 690 | 631 | MDRV_CPU_VBLANK_INT("main", irq0_line_hold) |
| 691 | 632 | |
| 692 | 633 | MDRV_CPU_ADD(Z80, 3579645) |
| 693 | 634 | /* audio CPU */ /* 3.579645 MHz */ |
| 694 | MDRV_CPU_PROGRAM_MAP(sound_readmem,sound_writemem) | |
| 695 | MDRV_CPU_IO_MAP(sound_readport,sound_writeport) | |
| 635 | MDRV_CPU_PROGRAM_MAP(sound_map,0) | |
| 636 | MDRV_CPU_IO_MAP(sound_io_map,0) | |
| 696 | 637 | MDRV_CPU_VBLANK_INT_HACK(nmi_line_pulse,128) /* clocked by V1 */ |
| 697 | 638 | /* IRQs are generated by main Z80 and YM2151 */ |
| 698 | 639 | MDRV_MACHINE_RESET(m72_sound) |
| r2241 | r2242 | |
|---|---|---|
| 37 | 37 | |
| 38 | 38 | static WRITE16_HANDLER( blockout_sound_command_w ) |
| 39 | 39 | { |
| 40 | if (ACCESSING_ | |
| 40 | if (ACCESSING_ | |
| 41 | 41 | { |
| 42 | 42 | soundlatch_w(machine,offset,data & 0xff); |
| 43 | 43 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 104 | 104 | static WRITE8_HANDLER( sound_command1_w ) |
| 105 | 105 | { |
| 106 | 106 | sound_command1 = data; |
| 107 | cpunum_set_input_line( | |
| 107 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE ); | |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | static WRITE8_HANDLER( sound_command2_w ) |
| 111 | 111 | { |
| 112 | 112 | sound_command2 = data; |
| 113 | cpunum_set_input_line( | |
| 113 | cpunum_set_input_line(machine, 2, 0, HOLD_LINE ); | |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | static WRITE8_HANDLER( sound_command3_w ) |
| 117 | 117 | { |
| 118 | 118 | sound_command3 = data; |
| 119 | cpunum_set_input_line( | |
| 119 | cpunum_set_input_line(machine, 3, 0, HOLD_LINE ); | |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | static WRITE8_HANDLER( flip_screen_w ) |
| r2241 | r2242 | |
| 365 | 365 | |
| 366 | 366 | static READ8_HANDLER( vsgongf_a006_r ){ |
| 367 | 367 | /* sound CPU busy? */ |
| 368 | if (!strcmp(Machine->gamedrv->name,"vsgongf")) return 0x80; | |
| 369 | if (!strcmp(Machine->gamedrv->name,"ringfgt")) return 0x80; | |
| 370 | if (!strcmp(Machine->gamedrv->name,"ringfgt2")) return 0xc0; | |
| 368 | if (!strcmp(machine->gamedrv->name,"vsgongf")) return 0x80; | |
| 369 | if (!strcmp(machine->gamedrv->name,"ringfgt")) return 0x80; | |
| 370 | if (!strcmp(machine->gamedrv->name,"ringfgt2")) return 0xc0; | |
| 371 | 371 | |
| 372 | 372 | logerror ("unhandled read from a006\n"); |
| 373 | 373 | return 0x00; |
| r2241 | r2242 | |
| 375 | 375 | |
| 376 | 376 | static READ8_HANDLER( vsgongf_a100_r ){ |
| 377 | 377 | /* protection? */ |
| 378 | if (!strcmp(Machine->gamedrv->name,"vsgongf")) return 0xaa; | |
| 379 | if (!strcmp(Machine->gamedrv->name,"ringfgt")) return 0x63; | |
| 380 | if (!strcmp(Machine->gamedrv->name,"ringfgt2")) return 0x6a; | |
| 378 | if (!strcmp(machine->gamedrv->name,"vsgongf")) return 0xaa; | |
| 379 | if (!strcmp(machine->gamedrv->name,"ringfgt")) return 0x63; | |
| 380 | if (!strcmp(machine->gamedrv->name,"ringfgt2")) return 0x6a; | |
| 381 | 381 | |
| 382 | 382 | logerror ("unhandled read from a100\n"); |
| 383 | 383 | return 0x00; |
| r2241 | r2242 | |
|---|---|---|
| 68 | 68 | |
| 69 | 69 | static WRITE16_HANDLER( splash_sh_irqtrigger_w ) |
| 70 | 70 | { |
| 71 | if (ACCESSING_ | |
| 71 | if (ACCESSING_ | |
| 72 | 72 | soundlatch_w(machine,0,data & 0xff); |
| 73 | 73 | cpunum_set_input_line(machine, 1,0,HOLD_LINE); |
| 74 | 74 | } |
| r2241 | r2242 | |
| 76 | 76 | |
| 77 | 77 | static WRITE16_HANDLER( roldf_sh_irqtrigger_w ) |
| 78 | 78 | { |
| 79 | if (ACCESSING_ | |
| 79 | if (ACCESSING_ | |
| 80 | 80 | soundlatch_w(machine,0,data & 0xff); |
| 81 | 81 | cpunum_set_input_line(machine, 1,0,HOLD_LINE); |
| 82 | 82 | } |
| r2241 | r2242 | |
| 102 | 102 | |
| 103 | 103 | static WRITE16_HANDLER( splash_coin_w ) |
| 104 | 104 | { |
| 105 | if (ACCESSING_ | |
| 105 | if (ACCESSING_ | |
| 106 | 106 | switch ((offset >> 3)){ |
| 107 | 107 | case 0x00: /* Coin Lockouts */ |
| 108 | 108 | case 0x01: |
| r2241 | r2242 | |
|---|---|---|
| 441 | 441 | ---- xxxx Priority number (trusted,see mjzoomin) |
| 442 | 442 | */ |
| 443 | 443 | //popmessage("Write to tilebank %02x",data); |
| 444 | if (ACCESSING_ | |
| 444 | if (ACCESSING_ | |
| 445 | 445 | { |
| 446 | 446 | if (sc0bank != ((data & 0xf0) >> 4)) |
| 447 | 447 | { |
| r2241 | r2242 | |
| 491 | 491 | |
| 492 | 492 | static WRITE16_HANDLER( jalmah_okirom_w ) |
| 493 | 493 | { |
| 494 | if(ACCESSING_ | |
| 494 | if(ACCESSING_ | |
| 495 | 495 | { |
| 496 | 496 | UINT8 *oki = memory_region(REGION_SOUND1); |
| 497 | 497 | oki_rom = data & 1; |
| r2241 | r2242 | |
| 505 | 505 | |
| 506 | 506 | static WRITE16_HANDLER( jalmah_okibank_w ) |
| 507 | 507 | { |
| 508 | if(ACCESSING_ | |
| 508 | if(ACCESSING_ | |
| 509 | 509 | { |
| 510 | 510 | UINT8 *oki = memory_region(REGION_SOUND1); |
| 511 | 511 | oki_bank = data & 3; |
| r2241 | r2242 | |
| 1319 | 1319 | */ |
| 1320 | 1320 | static WRITE16_HANDLER( urashima_mcu_w ) |
| 1321 | 1321 | { |
| 1322 | if(ACCESSING_ | |
| 1322 | if(ACCESSING_ | |
| 1323 | 1323 | { |
| 1324 | 1324 | //jm_regs[0x30e/2] = ? |
| 1325 | 1325 | |
| r2241 | r2242 | |
| 1470 | 1470 | */ |
| 1471 | 1471 | static WRITE16_HANDLER( daireika_mcu_w ) |
| 1472 | 1472 | { |
| 1473 | if(ACCESSING_ | |
| 1473 | if(ACCESSING_ | |
| 1474 | 1474 | { |
| 1475 | 1475 | /*MCU program upload complete/upload kind*/ |
| 1476 | 1476 | //jm_regs[0x000e/2] = 0x0005; |
| r2241 | r2242 | |
| 1755 | 1755 | */ |
| 1756 | 1756 | static WRITE16_HANDLER( mjzoomin_mcu_w ) |
| 1757 | 1757 | { |
| 1758 | if(ACCESSING_ | |
| 1758 | if(ACCESSING_ | |
| 1759 | 1759 | { |
| 1760 | 1760 | /******************************************************* |
| 1761 | 1761 | 1st M68k code uploaded by the MCU(Service Mode PC=2a56). |
| r2241 | r2242 | |
|---|---|---|
| 69 | 69 | |
| 70 | 70 | static WRITE16_HANDLER( sound_command_w ) |
| 71 | 71 | { |
| 72 | if (ACCESSING_ | |
| 72 | if (ACCESSING_ | |
| 73 | 73 | { |
| 74 | 74 | pending_command = 1; |
| 75 | 75 | soundlatch_w(machine,offset,data & 0xff); |
| r2241 | r2242 | |
|---|---|---|
| 524 | 524 | |
| 525 | 525 | static WRITE16_HANDLER( namcos2_68k_dpram_word_w ) |
| 526 | 526 | { |
| 527 | if( ACCESSING_ | |
| 527 | if( ACCESSING_ | |
| 528 | 528 | { |
| 529 | 529 | namcos2_dpram[offset] = data&0xff; |
| 530 | 530 |
| r2241 | r2242 | |
|---|---|---|
| 268 | 268 | |
| 269 | 269 | static READ16_HANDLER(reg_b80000_r) |
| 270 | 270 | { |
| 271 | if (ACCESSING_ | |
| 271 | if (ACCESSING_ | |
| 272 | 272 | { |
| 273 | 273 | // Bit 7: 0 = ready to write |
| 274 | 274 | // Bit 6: 0 = ready to read |
| r2241 | r2242 | |
| 338 | 338 | |
| 339 | 339 | static WRITE16_HANDLER( eeprom_w ) |
| 340 | 340 | { |
| 341 | if ( ACCESSING_ | |
| 341 | if ( ACCESSING_ | |
| 342 | 342 | { |
| 343 | 343 | EEPROM_write_bit(data & 0x0800); |
| 344 | 344 | EEPROM_set_cs_line((data & 0x0200) ? CLEAR_LINE : ASSERT_LINE ); |
| r2241 | r2242 | |
|---|---|---|
| 467 | 467 | AM_RANGE(0x3000, 0x37ff) AM_RAM AM_MIRROR(0x800) AM_BASE(&z80_ram) |
| 468 | 468 | AM_RANGE(0x4000, 0x4000) AM_WRITE(z80_intreq_w) |
| 469 | 469 | AM_RANGE(0x5000, 0x5003) AM_READWRITE(ppi8255_0_r, ppi8255_0_w) |
| 470 | AM_RANGE(0x6000, 0x6003) AM_READWRITE(pit8253_r, pit8253_w) | |
| 470 | AM_RANGE(0x6000, 0x6003) AM_READWRITE(tx1_pit8253_r, tx1_pit8253_w) | |
| 471 | 471 | AM_RANGE(0x7000, 0x7fff) AM_WRITE(tx1_ppi_latch_w) |
| 472 | 472 | AM_RANGE(0xb000, 0xbfff) AM_READWRITE(ts_r, ts_w) |
| 473 | 473 | ADDRESS_MAP_END |
| r2241 | r2242 | |
| 570 | 570 | static ADDRESS_MAP_START( buggybjr_sound_prg, ADDRESS_SPACE_PROGRAM, 8 ) |
| 571 | 571 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 572 | 572 | AM_RANGE(0x4000, 0x47ff) AM_RAM AM_BASE(&z80_ram) |
| 573 | AM_RANGE(0x5000, 0x5003) AM_READWRITE(pit8253_r, pit8253_w) | |
| 573 | AM_RANGE(0x5000, 0x5003) AM_READWRITE(tx1_pit8253_r, tx1_pit8253_w) | |
| 574 | 574 | AM_RANGE(0x6000, 0x6001) AM_READ(bbjr_analog_r) |
| 575 | 575 | AM_RANGE(0x7000, 0x7000) AM_WRITE(z80_intreq_w) |
| 576 | 576 | AM_RANGE(0xc000, 0xc7ff) AM_READWRITE(ts_r, ts_w) |
| r2241 | r2242 | |
|---|---|---|
| 11 | 11 | #include "driver.h" |
| 12 | 12 | |
| 13 | 13 | #include "cpu/z80/z80.h" |
| 14 | #include "galax | |
| 14 | #include "galaxold.h" | |
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | PALETTE_INIT( dambustr ); |
| r2241 | r2242 | |
| 36 | 36 | AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM) |
| 37 | 37 | AM_RANGE(0xc000, 0xc7ff) AM_READ(SMH_RAM) |
| 38 | 38 | AM_RANGE(0xd000, 0xd3ff) AM_READ(SMH_RAM) |
| 39 | AM_RANGE(0xd400, 0xd7ff) AM_READ(galax | |
| 39 | AM_RANGE(0xd400, 0xd7ff) AM_READ(galaxold_videoram_r) | |
| 40 | 40 | AM_RANGE(0xd800, 0xd8ff) AM_READ(SMH_RAM) |
| 41 | 41 | AM_RANGE(0xe000, 0xe000) AM_READ(input_port_0_r) |
| 42 | 42 | AM_RANGE(0xe800, 0xefff) AM_READ(input_port_1_r) |
| r2241 | r2242 | |
| 50 | 50 | AM_RANGE(0xc000, 0xc7ff) AM_WRITE(SMH_RAM) |
| 51 | 51 | AM_RANGE(0x8000, 0x8000) AM_WRITE(dambustr_bg_color_w) |
| 52 | 52 | AM_RANGE(0x8001, 0x8001) AM_WRITE(dambustr_bg_split_line_w) |
| 53 | AM_RANGE(0xd000, 0xd3ff) AM_WRITE(galaxian_videoram_w) AM_BASE(&galaxian_videoram) | |
| 54 | AM_RANGE(0xd800, 0xd83f) AM_WRITE(galaxian_attributesram_w) AM_BASE(&galaxian_attributesram) | |
| 55 | AM_RANGE(0xd840, 0xd85f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_spriteram) AM_SIZE(&galaxian_spriteram_size) | |
| 56 | AM_RANGE(0xd860, 0xd87f) AM_WRITE(SMH_RAM) AM_BASE(&galaxian_bulletsram) AM_SIZE(&galaxian_bulletsram_size) | |
| 53 | AM_RANGE(0xd000, 0xd3ff) AM_WRITE(galaxold_videoram_w) AM_BASE(&galaxold_videoram) | |
| 54 | AM_RANGE(0xd800, 0xd83f) AM_WRITE(galaxold_attributesram_w) AM_BASE(&galaxold_attributesram) | |
| 55 | AM_RANGE(0xd840, 0xd85f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_spriteram) AM_SIZE(&galaxold_spriteram_size) | |
| 56 | AM_RANGE(0xd860, 0xd87f) AM_WRITE(SMH_RAM) AM_BASE(&galaxold_bulletsram) AM_SIZE(&galaxold_bulletsram_size) | |
| 57 | 57 | AM_RANGE(0xd880, 0xd8ff) AM_WRITE(SMH_RAM) |
| 58 | AM_RANGE(0xe002, 0xe003) AM_WRITE(galax | |
| 58 | AM_RANGE(0xe002, 0xe003) AM_WRITE(galaxold_coin_counter_w) | |
| 59 | 59 | AM_RANGE(0xe004, 0xe007) AM_WRITE(galaxian_lfo_freq_w) |
| 60 | 60 | AM_RANGE(0xe800, 0xe802) AM_WRITE(galaxian_background_enable_w) |
| 61 | 61 | AM_RANGE(0xe803, 0xe803) AM_WRITE(dambustr_noise_enable_w) |
| 62 | 62 | AM_RANGE(0xe804, 0xe804) AM_WRITE(galaxian_shoot_enable_w) // probably louder than normal shot |
| 63 | 63 | AM_RANGE(0xe805, 0xe805) AM_WRITE(galaxian_shoot_enable_w) // normal shot (like Galaxian) |
| 64 | 64 | AM_RANGE(0xe806, 0xe807) AM_WRITE(galaxian_vol_w) |
| 65 | AM_RANGE(0xf001, 0xf001) AM_WRITE(galaxian_nmi_enable_w) | |
| 66 | AM_RANGE(0xf004, 0xf004) AM_WRITE(galaxian_stars_enable_w) | |
| 67 | AM_RANGE(0xf006, 0xf006) AM_WRITE(galaxian_flip_screen_x_w) | |
| 68 | AM_RANGE(0xf007, 0xf007) AM_WRITE(galaxian_flip_screen_y_w) | |
| 65 | AM_RANGE(0xf001, 0xf001) AM_WRITE(galaxold_nmi_enable_w) | |
| 66 | AM_RANGE(0xf004, 0xf004) AM_WRITE(galaxold_stars_enable_w) | |
| 67 | AM_RANGE(0xf006, 0xf006) AM_WRITE(galaxold_flip_screen_x_w) | |
| 68 | AM_RANGE(0xf007, 0xf007) AM_WRITE(galaxold_flip_screen_y_w) | |
| 69 | 69 | AM_RANGE(0xf800, 0xf800) AM_WRITE(galaxian_pitch_w) |
| 70 | 70 | ADDRESS_MAP_END |
| 71 | 71 | |
| r2241 | r2242 | |
| 190 | 190 | MDRV_CPU_ADD_TAG("main", Z80, 18432000/6) /* 3.072 MHz */ |
| 191 | 191 | MDRV_CPU_PROGRAM_MAP(dambustr_readmem, dambustr_writemem) |
| 192 | 192 | |
| 193 | MDRV_MACHINE_RESET(galax | |
| 193 | MDRV_MACHINE_RESET(galaxold) | |
| 194 | 194 | |
| 195 | 195 | /* video hardware */ |
| 196 | 196 | MDRV_SCREEN_ADD("main", RASTER) |
| r2241 | r2242 | |
|---|---|---|
| 55 | 55 | |
| 56 | 56 | static WRITE16_HANDLER( blmbycar_okibank_w ) |
| 57 | 57 | { |
| 58 | if (ACCESSING_ | |
| 58 | if (ACCESSING_ | |
| 59 | 59 | { |
| 60 | 60 | UINT8 *RAM = memory_region(REGION_SOUND1); |
| 61 | 61 | memcpy(&RAM[0x30000],&RAM[0x40000 + 0x10000*(data & 0xf)],0x10000); |
| r2241 | r2242 | |
| 76 | 76 | |
| 77 | 77 | static WRITE16_HANDLER( blmbycar_pot_wheel_reset_w ) |
| 78 | 78 | { |
| 79 | if (ACCESSING_ | |
| 79 | if (ACCESSING_ | |
| 80 | 80 | pot_wheel = ~readinputport(2) & 0xff; |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | static WRITE16_HANDLER( blmbycar_pot_wheel_shift_w ) |
| 84 | 84 | { |
| 85 | if (ACCESSING_ | |
| 85 | if (ACCESSING_ | |
| 86 | 86 | { |
| 87 | 87 | static int old; |
| 88 | 88 | if ( ((old & 0xff) == 0xff) && ((data & 0xff) == 0) ) |
| r2241 | r2242 | |
|---|---|---|
| 964 | 964 | |
| 965 | 965 | static WRITE16_HANDLER( megadriv_68k_write_z80_extra_ram ) |
| 966 | 966 | { |
| 967 | if (!ACCESSING_ | |
| 967 | if (!ACCESSING_ | |
| 968 | 968 | { |
| 969 | 969 | ic36_ram[(offset<<1)] = (data & 0xff00) >> 8; |
| 970 | 970 | } |
| 971 | else if (!ACCESSING_ | |
| 971 | else if (!ACCESSING_ | |
| 972 | 972 | { |
| 973 | 973 | ic36_ram[(offset<<1)^1] = (data & 0x00ff); |
| 974 | 974 | } |
| r2241 | r2242 | |
|---|---|---|
| 289 | 289 | --x- ---- : Player 1 and 2 side flag |
| 290 | 290 | */ |
| 291 | 291 | |
| 292 | if (!ACCESSING_ | |
| 292 | if (!ACCESSING_ | |
| 293 | 293 | { |
| 294 | 294 | return 0xffff; |
| 295 | 295 | } |
| r2241 | r2242 | |
| 322 | 322 | |
| 323 | 323 | static READ16_HANDLER( srmp2_input_2_r ) |
| 324 | 324 | { |
| 325 | if (!ACCESSING_ | |
| 325 | if (!ACCESSING_ | |
| 326 | 326 | { |
| 327 | 327 | return 0x0001; |
| 328 | 328 | } |
| r2241 | r2242 | |
|---|---|---|
| 195 | 195 | static WRITE16_HANDLER( bchopper_sample_trigger_w ) |
| 196 | 196 | { |
| 197 | 197 | static const int a[6] = { 0x0000, 0x0010, 0x2510, 0x6510, 0x8510, 0x9310 }; |
| 198 | if (ACCESSING_ | |
| 198 | if (ACCESSING_ | |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | static WRITE16_HANDLER( nspirit_sample_trigger_w ) |
| 202 | 202 | { |
| 203 | 203 | static const int a[9] = { 0x0000, 0x0020, 0x2020, 0, 0x5720, 0, 0x7b60, 0x9b60, 0xc360 }; |
| 204 | if (ACCESSING_ | |
| 204 | if (ACCESSING_ | |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | static WRITE16_HANDLER( imgfight_sample_trigger_w ) |
| 208 | 208 | { |
| 209 | 209 | static const int a[7] = { 0x0000, 0x0020, 0x44e0, 0x98a0, 0xc820, 0xf7a0, 0x108c0 }; |
| 210 | if (ACCESSING_ | |
| 210 | if (ACCESSING_ | |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | static WRITE16_HANDLER( loht_sample_trigger_w ) |
| 214 | 214 | { |
| 215 | 215 | static const int a[7] = { 0x0000, 0x0020, 0, 0x2c40, 0x4320, 0x7120, 0xb200 }; |
| 216 | if (ACCESSING_ | |
| 216 | if (ACCESSING_ | |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | static WRITE16_HANDLER( xmultipl_sample_trigger_w ) |
| 220 | 220 | { |
| 221 | 221 | static const int a[3] = { 0x0000, 0x0020, 0x1a40 }; |
| 222 | if (ACCESSING_ | |
| 222 | if (ACCESSING_ | |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | static WRITE16_HANDLER( dbreed72_sample_trigger_w ) |
| 226 | 226 | { |
| 227 | 227 | static const int a[9] = { 0x00000, 0x00020, 0x02c40, 0x08160, 0x0c8c0, 0x0ffe0, 0x13000, 0x15820, 0x15f40 }; |
| 228 | if (ACCESSING_ | |
| 228 | if (ACCESSING_ | |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | static WRITE16_HANDLER( airduel_sample_trigger_w ) |
| r2241 | r2242 | |
| 233 | 233 | static const int a[16] = { |
| 234 | 234 | 0x00000, 0x00020, 0x03ec0, 0x05640, 0x06dc0, 0x083a0, 0x0c000, 0x0eb60, |
| 235 | 235 | 0x112e0, 0x13dc0, 0x16520, 0x16d60, 0x18ae0, 0x1a5a0, 0x1bf00, 0x1c340 }; |
| 236 | if (ACCESSING_ | |
| 236 | if (ACCESSING_ | |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | 239 | static WRITE16_HANDLER( dkgenm72_sample_trigger_w ) |
| r2241 | r2242 | |
| 244 | 244 | 0x10fa0, 0x10fc0, 0x10fe0, 0x11f40, 0x12b20, 0x130a0, 0x13c60, 0x14740, |
| 245 | 245 | 0x153c0, 0x197e0, 0x1af40, 0x1c080 }; |
| 246 | 246 | |
| 247 | if (ACCESSING_ | |
| 247 | if (ACCESSING_ | |
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | static WRITE16_HANDLER( gallop_sample_trigger_w ) |
| r2241 | r2242 | |
| 255 | 255 | 0x10200, 0x10220, 0x10240, 0x11380, 0x12760, 0x12780, 0x127a0, 0x13c40, |
| 256 | 256 | 0x140a0, 0x16760, 0x17e40, 0x18ee0, 0x19f60, 0x1bbc0, 0x1cee0 }; |
| 257 | 257 | |
| 258 | if (ACCESSING_ | |
| 258 | if (ACCESSING_ | |
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | |
| r2241 | r2242 | |
| 460 | 460 | |
| 461 | 461 | static READ16_HANDLER( protection_r ) |
| 462 | 462 | { |
| 463 | if (ACCESSING_ | |
| 463 | if (ACCESSING_ | |
| 464 | 464 | copy_le(protection_ram,protection_code,CODE_LEN); |
| 465 | 465 | return protection_ram[0xffa/2+offset]; |
| 466 | 466 | } |
| r2241 | r2242 | |
| 471 | 471 | COMBINE_DATA(&protection_ram[offset]); |
| 472 | 472 | data ^= 0xffff; |
| 473 | 473 | |
| 474 | if (offset == 0x0fff/2 && ACCESSING_ | |
| 474 | if (offset == 0x0fff/2 && ACCESSING_ | |
| 475 | 475 | copy_le(&protection_ram[0x0fe0],protection_crc,CRC_LEN); |
| 476 | 476 | } |
| 477 | 477 | |
| r2241 | r2242 | |
| 600 | 600 | |
| 601 | 601 | static WRITE16_HANDLER( soundram_w ) |
| 602 | 602 | { |
| 603 | if (ACCESSING_ | |
| 603 | if (ACCESSING_ | |
| 604 | 604 | soundram[offset * 2 + 0] = data; |
| 605 | if (ACCESSING_ | |
| 605 | if (ACCESSING_ | |
| 606 | 606 | soundram[offset * 2 + 1] = data >> 8; |
| 607 | 607 | } |
| 608 | 608 |
| r2241 | r2242 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | static WRITE16_HANDLER( ohmygod_ctrl_w ) |
| 43 | 43 | { |
| 44 | if (ACCESSING_ | |
| 44 | if (ACCESSING_ | |
| 45 | 45 | { |
| 46 | 46 | UINT8 *rom = memory_region(REGION_SOUND1); |
| 47 | 47 | |
| r2241 | r2242 | |
| 52 | 52 | memcpy(rom + 0x20000,rom + 0x40000 + 0x20000 * sndbank,0x20000); |
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | if (ACCESSING_ | |
| 55 | if (ACCESSING_ | |
| 56 | 56 | { |
| 57 | 57 | coin_counter_w(0,data & 0x1000); |
| 58 | 58 | coin_counter_w(1,data & 0x2000); |
| r2241 | r2242 | |
|---|---|---|
| 121 | 121 | { |
| 122 | 122 | /* top byte is used, meaning unknown */ |
| 123 | 123 | /* bottom byte is protection in ikari 3 and streetsm */ |
| 124 | if (ACCESSING_ | |
| 124 | if (ACCESSING_ | |
| 125 | 125 | invert_controls = ((data & 0xff) == 0x07) ? 0xff : 0x00; |
| 126 | 126 | } |
| 127 | 127 |
| r2241 | r2242 | |
|---|---|---|
| 563 | 563 | mastboy_vram[offs] = data^0xff; |
| 564 | 564 | |
| 565 | 565 | /* Decode the new tile */ |
| 566 | decodechar( | |
| 566 | decodechar(machine->gfx[0], offs/32, mastboy_vram); | |
| 567 | 567 | } |
| 568 | 568 | } |
| 569 | 569 | else |
| r2241 | r2242 | |
| 656 | 656 | static WRITE8_HANDLER( mastboy_irq0_ack_w ) |
| 657 | 657 | { |
| 658 | 658 | mastboy_irq0_ack = data; |
| 659 | if ((data&1)==1) cpunum_set_input_line( | |
| 659 | if ((data&1)==1) cpunum_set_input_line(machine, 0,0, CLEAR_LINE); | |
| 660 | 660 | } |
| 661 | 661 | |
| 662 | 662 | static INTERRUPT_GEN( mastboy_interrupt ) |
| r2241 | r2242 | |
|---|---|---|
| 105 | 105 | |
| 106 | 106 | static WRITE16_HANDLER( soundbank_w ) |
| 107 | 107 | { |
| 108 | if (ACCESSING_ | |
| 108 | if (ACCESSING_ | |
| 109 | 109 | { |
| 110 | 110 | OKIM6295_set_bank_base(0, 0x40000 * ((data & 0x03) ^ 0x03)); |
| 111 | 111 | } |
| r2241 | r2242 | |
|---|---|---|
| 91 | 91 | |
| 92 | 92 | static WRITE16_HANDLER( eeprom_w ) |
| 93 | 93 | { |
| 94 | if( ACCESSING_ | |
| 94 | if( ACCESSING_ | |
| 95 | 95 | { |
| 96 | 96 | EEPROM_write_bit(data & 0x01); |
| 97 | 97 | EEPROM_set_cs_line((data & 0x02) ? CLEAR_LINE : ASSERT_LINE ); |
| r2241 | r2242 | |
|---|---|---|
| 169 | 169 | UINT32 r = 0; |
| 170 | 170 | if (offset == 0) |
| 171 | 171 | { |
| 172 | if ( | |
| 172 | if (ACCESSING_BITS_24_31 | |
| 173 | 173 | { |
| 174 | 174 | r |= readinputport(0) << 24; |
| 175 | 175 | } |
| 176 | if ( | |
| 176 | if (ACCESSING_BITS_16_23 | |
| 177 | 177 | { |
| 178 | 178 | r |= readinputport(1) << 16; |
| 179 | 179 | } |
| 180 | if ( | |
| 180 | if (ACCESSING_BITS_8_15 | |
| 181 | 181 | { |
| 182 | 182 | int adc_bit = adc083x_do_read(0); |
| 183 | 183 | r |= ((readinputport(2) & 0x7f) | (adc_bit << 7)) << 8; |
| 184 | 184 | } |
| 185 | if ( | |
| 185 | if (ACCESSING_BITS_ | |
| 186 | 186 | { |
| 187 | 187 | r |= readinputport(3) << 0; |
| 188 | 188 | } |
| 189 | 189 | } |
| 190 | 190 | else if (offset == 1) |
| 191 | 191 | { |
| 192 | if ( | |
| 192 | if (ACCESSING_BITS_24_31 | |
| 193 | 193 | { |
| 194 | 194 | r |= ((adc083x_sars_read(0) << 5) | (EEPROM_read_bit() << 4)) << 24; |
| 195 | 195 | } |
| r2241 | r2242 | |
| 202 | 202 | { |
| 203 | 203 | if( offset == 0 ) |
| 204 | 204 | { |
| 205 | if ( | |
| 205 | if (ACCESSING_BITS_24_31 | |
| 206 | 206 | { |
| 207 | 207 | led_reg0 = (data >> 24) & 0xff; |
| 208 | 208 | } |
| 209 | if ( | |
| 209 | if (ACCESSING_BITS_16_23 | |
| 210 | 210 | { |
| 211 | 211 | led_reg1 = (data >> 16) & 0xff; |
| 212 | 212 | } |
| 213 | if ( | |
| 213 | if (ACCESSING_BITS_ | |
| 214 | 214 | { |
| 215 | 215 | EEPROM_write_bit((data & 0x1) ? 1 : 0); |
| 216 | 216 | EEPROM_set_clock_line((data & 0x2) ? ASSERT_LINE : CLEAR_LINE); |
| r2241 | r2242 | |
| 225 | 225 | } |
| 226 | 226 | else if( offset == 1 ) |
| 227 | 227 | { |
| 228 | if ( | |
| 228 | if (ACCESSING_BITS_24_31 | |
| 229 | 229 | { |
| 230 | 230 | if (data & 0x80000000) /* CG Board 1 IRQ Ack */ |
| 231 | 231 | cpunum_set_input_line(Machine, 0, INPUT_LINE_IRQ1, CLEAR_LINE); |
| r2241 | r2242 | |
| 276 | 276 | case 0x1c/4: |
| 277 | 277 | { |
| 278 | 278 | // Midnight Run polls the vertical counter in vblank |
| 279 | if ( | |
| 279 | if (ACCESSING_BITS_24_31 | |
| 280 | 280 | { |
| 281 | 281 | ccu_vcth ^= 0xff; |
| 282 | 282 | r |= ccu_vcth << 24; |
| 283 | 283 | } |
| 284 | if ( | |
| 284 | if (ACCESSING_BITS_8_15 | |
| 285 | 285 | { |
| 286 | 286 | ccu_vctl++; |
| 287 | 287 | ccu_vctl &= 0x1ff; |
| r2241 | r2242 | |
| 357 | 357 | { |
| 358 | 358 | UINT16 ret = 0; |
| 359 | 359 | |
| 360 | if (ACCESSING_ | |
| 360 | if (ACCESSING_ | |
| 361 | 361 | ret |= K054539_1_r(machine, offset); |
| 362 | if (ACCESSING_ | |
| 362 | if (ACCESSING_ | |
| 363 | 363 | ret |= K054539_0_r(machine, offset)<<8; |
| 364 | 364 | |
| 365 | 365 | return ret; |
| r2241 | r2242 | |
| 367 | 367 | |
| 368 | 368 | static WRITE16_HANDLER( dual539_w ) |
| 369 | 369 | { |
| 370 | if (ACCESSING_ | |
| 370 | if (ACCESSING_ | |
| 371 | 371 | K054539_1_w(machine, offset, data); |
| 372 | if (ACCESSING_ | |
| 372 | if (ACCESSING_ | |
| 373 | 373 | K054539_0_w(machine, offset, data>>8); |
| 374 | 374 | } |
| 375 | 375 |
| r2241 | r2242 | |
|---|---|---|
| 70 | 70 | |
| 71 | 71 | static WRITE16_HANDLER( fantland_nmi_enable_16_w ) |
| 72 | 72 | { |
| 73 | if (ACCESSING_ | |
| 73 | if (ACCESSING_ | |
| 74 | 74 | fantland_nmi_enable_w(machine,offset*2,data); |
| 75 | 75 | } |
| 76 | 76 | |
| r2241 | r2242 | |
| 82 | 82 | |
| 83 | 83 | static WRITE16_HANDLER( fantland_soundlatch_16_w ) |
| 84 | 84 | { |
| 85 | if (ACCESSING_ | |
| 85 | if (ACCESSING_ | |
| 86 | 86 | fantland_soundlatch_w(machine, offset*2, data); |
| 87 | 87 | } |
| 88 | 88 | |
| r2241 | r2242 | |
| 102 | 102 | |
| 103 | 103 | static WRITE16_HANDLER( spriteram_16_w ) |
| 104 | 104 | { |
| 105 | if (ACCESSING_ | |
| 105 | if (ACCESSING_ | |
| 106 | 106 | spriteram[2*offset+0] = data; |
| 107 | if (ACCESSING_ | |
| 107 | if (ACCESSING_ | |
| 108 | 108 | spriteram[2*offset+1] = data >> 8; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | static WRITE16_HANDLER( spriteram2_16_w ) |
| 112 | 112 | { |
| 113 | if (ACCESSING_ | |
| 113 | if (ACCESSING_ | |
| 114 | 114 | spriteram_2[2*offset+0] = data; |
| 115 | if (ACCESSING_ | |
| 115 | if (ACCESSING_ | |
| 116 | 116 | spriteram_2[2*offset+1] = data >> 8; |
| 117 | 117 | } |
| 118 | 118 |
| r2241 | r2242 | |
|---|---|---|
| 987 | 987 | |
| 988 | 988 | verboselog( 2, "security_w( %08x, %08x, %08x )\n", offset, mem_mask, data ); |
| 989 | 989 | |
| 990 | if( ACCESSING_ | |
| 990 | if( ACCESSING_BITS_0_15 ) | |
| 991 | 991 | { |
| 992 | 992 | switch( chiptype[ security_cart_number ] ) |
| 993 | 993 | { |
| r2241 | r2242 | |
| 1054 | 1054 | { |
| 1055 | 1055 | int adr = offset * 2; |
| 1056 | 1056 | |
| 1057 | if( ACCESSING_ | |
| 1057 | if( ACCESSING_ | |
| 1058 | 1058 | { |
| 1059 | 1059 | data |= ( intelflash_read( flash_bank + 0, adr + 0 ) & 0xff ) << 0; // 31m/31l/31j/31h |
| 1060 | 1060 | } |
| 1061 | if( | |
| 1061 | if( ACCESSING_BITS_8_15 | |
| 1062 | 1062 | { |
| 1063 | 1063 | data |= ( intelflash_read( flash_bank + 1, adr + 0 ) & 0xff ) << 8; // 27m/27l/27j/27h |
| 1064 | 1064 | } |
| 1065 | if( | |
| 1065 | if( ACCESSING_BITS_16_23 | |
| 1066 | 1066 | { |
| 1067 | 1067 | data |= ( intelflash_read( flash_bank + 0, adr + 1 ) & 0xff ) << 16; // 31m/31l/31j/31h |
| 1068 | 1068 | } |
| 1069 | if( ACCESSING_ | |
| 1069 | if( ACCESSING_ | |
| 1070 | 1070 | { |
| 1071 | 1071 | data |= ( intelflash_read( flash_bank + 1, adr + 1 ) & 0xff ) << 24; // 27m/27l/27j/27h |
| 1072 | 1072 | } |
| r2241 | r2242 | |
| 1089 | 1089 | { |
| 1090 | 1090 | int adr = offset * 2; |
| 1091 | 1091 | |
| 1092 | if( | |
| 1092 | if( ACCESSING_BITS_ | |
| 1093 | 1093 | { |
| 1094 | 1094 | intelflash_write( flash_bank + 0, adr + 0, ( data >> 0 ) & 0xff ); |
| 1095 | 1095 | } |
| 1096 | if( | |
| 1096 | if( ACCESSING_BITS_8_15 | |
| 1097 | 1097 | { |
| 1098 | 1098 | intelflash_write( flash_bank + 1, adr + 0, ( data >> 8 ) & 0xff ); |
| 1099 | 1099 | } |
| 1100 | if( | |
| 1100 | if( ACCESSING_BITS_16_23 | |
| 1101 | 1101 | { |
| 1102 | 1102 | intelflash_write( flash_bank + 0, adr + 1, ( data >> 16 ) & 0xff ); |
| 1103 | 1103 | } |
| 1104 | if( | |
| 1104 | if( ACCESSING_BITS_24_31 | |
| 1105 | 1105 | { |
| 1106 | 1106 | intelflash_write( flash_bank + 1, adr + 1, ( data >> 24 ) & 0xff ); |
| 1107 | 1107 | } |
| r2241 | r2242 | |
| 1539 | 1539 | |
| 1540 | 1540 | static void update_mode( void ) |
| 1541 | 1541 | { |
| 1542 | int mode = readinputportbytag( "MODE" ); | |
| 1542 | int cart = readinputportbytag( "CART" ); | |
| 1543 | int cd = readinputportbytag( "CD" ); | |
| 1543 | 1544 | static SCSIInstance *new_cdrom; |
| 1544 | 1545 | |
| 1545 | 1546 | if( chiptype[ 1 ] != 0 ) |
| 1546 | 1547 | { |
| 1547 | security_cart_number = | |
| 1548 | security_cart_number = cart; | |
| 1548 | 1549 | } |
| 1549 | 1550 | else |
| 1550 | 1551 | { |
| r2241 | r2242 | |
| 1553 | 1554 | |
| 1554 | 1555 | if( available_cdroms[ 1 ] != NULL ) |
| 1555 | 1556 | { |
| 1556 | new_cdrom = available_cdroms[ | |
| 1557 | new_cdrom = available_cdroms[ c | |
| 1557 | 1558 | } |
| 1558 | 1559 | else |
| 1559 | 1560 | { |
| r2241 | r2242 | |
| 1609 | 1610 | uPD4701_cs_w( 0, 0 ); |
| 1610 | 1611 | uPD4701_xy_w( 0, 1 ); |
| 1611 | 1612 | |
| 1612 | if( | |
| 1613 | if( ACCESSING_BITS_ | |
| 1613 | 1614 | { |
| 1614 | 1615 | uPD4701_ul_w( 0, 0 ); |
| 1615 | 1616 | data |= uPD4701_d_r( 0 ) << 0; |
| 1616 | 1617 | } |
| 1617 | 1618 | |
| 1618 | if( | |
| 1619 | if( ACCESSING_BITS_16_23 | |
| 1619 | 1620 | { |
| 1620 | 1621 | uPD4701_ul_w( 0, 1 ); |
| 1621 | 1622 | data |= uPD4701_d_r( 0 ) << 16; |
| r2241 | r2242 | |
| 1641 | 1642 | break; |
| 1642 | 1643 | |
| 1643 | 1644 | case 0x20: |
| 1644 | if( | |
| 1645 | if( ACCESSING_BITS_ | |
| 1645 | 1646 | { |
| 1646 | 1647 | output_set_value( "motor", data & 0xff ); |
| 1647 | 1648 | } |
| 1648 | 1649 | break; |
| 1649 | 1650 | |
| 1650 | 1651 | case 0x22: |
| 1651 | if( | |
| 1652 | if( ACCESSING_BITS_ | |
| 1652 | 1653 | { |
| 1653 | 1654 | output_set_value( "brake", data & 0xff ); |
| 1654 | 1655 | } |
| 1655 | 1656 | break; |
| 1656 | 1657 | |
| 1657 | 1658 | case 0x28: |
| 1658 | if( | |
| 1659 | if( ACCESSING_BITS_ | |
| 1659 | 1660 | { |
| 1660 | 1661 | uPD4701_resety_w( 0, 1 ); |
| 1661 | 1662 | uPD4701_resety_w( 0, 0 ); |
| r2241 | r2242 | |
| 1749 | 1750 | { |
| 1750 | 1751 | case 0x20: |
| 1751 | 1752 | |
| 1752 | if( ACCESSING_ | |
| 1753 | if( ACCESSING_BITS_0_15 ) | |
| 1753 | 1754 | { |
| 1754 | 1755 | gx700pwbf_output( 0, data & 0xff ); |
| 1755 | 1756 | } |
| 1756 | 1757 | break; |
| 1757 | 1758 | |
| 1758 | 1759 | case 0x22: |
| 1759 | if( ACCESSING_ | |
| 1760 | if( ACCESSING_BITS_0_15 ) | |
| 1760 | 1761 | { |
| 1761 | 1762 | gx700pwbf_output( 1, data & 0xff ); |
| 1762 | 1763 | } |
| 1763 | 1764 | break; |
| 1764 | 1765 | |
| 1765 | 1766 | case 0x24: |
| 1766 | if( ACCESSING_ | |
| 1767 | if( ACCESSING_BITS_0_15 ) | |
| 1767 | 1768 | { |
| 1768 | 1769 | gx700pwbf_output( 2, data & 0xff ); |
| 1769 | 1770 | } |
| 1770 | 1771 | break; |
| 1771 | 1772 | |
| 1772 | 1773 | case 0x26: |
| 1773 | if( ACCESSING_ | |
| 1774 | if( ACCESSING_BITS_0_15 ) | |
| 1774 | 1775 | { |
| 1775 | 1776 | gx700pwbf_output( 3, data & 0xff ); |
| 1776 | 1777 | } |
| r2241 | r2242 | |
| 2056 | 2057 | data |= 0x10000; |
| 2057 | 2058 | break; |
| 2058 | 2059 | case 0x20: |
| 2059 | if( ACCESSING_ | |
| 2060 | if( ACCESSING_BITS_0_15 ) | |
| 2060 | 2061 | { |
| 2061 | 2062 | data |= 0x00001234; |
| 2062 | 2063 | } |
| 2063 | 2064 | break; |
| 2064 | 2065 | case 0x2b: |
| 2065 | 2066 | /* sound? */ |
| 2066 | if( ACCESSING_ | |
| 2067 | if( ACCESSING_BITS_0_15 ) | |
| 2067 | 2068 | { |
| 2068 | 2069 | // data |= 0x00001000; /* ? */ |
| 2069 | 2070 | data |= 0x00002000; /* ? */ |
| 2070 | 2071 | } |
| 2071 | if( ACCESSING_ | |
| 2072 | if( ACCESSING_BITS_16_31 ) | |
| 2072 | 2073 | { |
| 2073 | 2074 | // data |= 0x10000000; /* rdy??? */ |
| 2074 | 2075 | } |
| 2075 | 2076 | break; |
| 2076 | 2077 | case 0x2d: |
| 2077 | if( ACCESSING_ | |
| 2078 | if( ACCESSING_BITS_0_15 ) | |
| 2078 | 2079 | { |
| 2079 | 2080 | data |= gx894_ram[ gx894_ram_read_offset / 2 ]; |
| 2080 | 2081 | // printf( "reading %08x %04x\r", gx894_ram_read_offset, gx894_ram[ gx894_ram_read_offset / 2 ] ); |
| 2081 | 2082 | gx894_ram_read_offset += 2; |
| 2082 | 2083 | } |
| 2083 | if( ACCESSING_ | |
| 2084 | if( ACCESSING_BITS_16_31 ) | |
| 2084 | 2085 | { |
| 2085 | 2086 | // printf( "read offset 2d msw32\n" ); |
| 2086 | 2087 | } |
| 2087 | 2088 | break; |
| 2088 | 2089 | case 0x30: |
| 2089 | 2090 | /* mp3? */ |
| 2090 | if( ACCESSING_ | |
| 2091 | if( ACCESSING_BITS_0_15 ) | |
| 2091 | 2092 | { |
| 2092 | 2093 | /* unknown data word */ |
| 2093 | 2094 | } |
| 2094 | if( ACCESSING_ | |
| 2095 | if( ACCESSING_BITS_16_31 ) | |
| 2095 | 2096 | { |
| 2096 | 2097 | /* 0x000-0x1ff */ |
| 2097 | 2098 | data |= 0x1ff0000; |
| r2241 | r2242 | |
| 2099 | 2100 | break; |
| 2100 | 2101 | case 0x31: |
| 2101 | 2102 | /* mp3? */ |
| 2102 | if( ACCESSING_ | |
| 2103 | if( ACCESSING_BITS_0_15 ) | |
| 2103 | 2104 | { |
| 2104 | 2105 | /* unknown data word count */ |
| 2105 | 2106 | data |= 0x0000; |
| 2106 | 2107 | } |
| 2107 | if( ACCESSING_ | |
| 2108 | if( ACCESSING_BITS_16_31 ) | |
| 2108 | 2109 | { |
| 2109 | 2110 | // printf( "read offset 31 msw32\n" ); |
| 2110 | 2111 | } |
| 2111 | 2112 | break; |
| 2112 | 2113 | case 0x32: |
| 2113 | if( ACCESSING_ | |
| 2114 | if( ACCESSING_BITS_16_31 ) | |
| 2114 | 2115 | { |
| 2115 | 2116 | data |= 0 & 0xffff0000; |
| 2116 | 2117 | } |
| 2117 | 2118 | /* todo */ |
| 2118 | 2119 | break; |
| 2119 | 2120 | case 0x33: |
| 2120 | if( ACCESSING_ | |
| 2121 | if( ACCESSING_BITS_0_15 ) | |
| 2121 | 2122 | { |
| 2122 | 2123 | data |= 0 & 0x0000ffff; |
| 2123 | 2124 | } |
| 2124 | 2125 | /* todo */ |
| 2125 | 2126 | break; |
| 2126 | 2127 | case 0x3b: |
| 2127 | if( ACCESSING_ | |
| 2128 | if( ACCESSING_BITS_16_31 ) | |
| 2128 | 2129 | { |
| 2129 | 2130 | data |= ds2401_read( 2 ) << 28; |
| 2130 | 2131 | } |
| 2131 | 2132 | break; |
| 2132 | 2133 | case 0x3d: |
| 2133 | if( ACCESSING_ | |
| 2134 | if( ACCESSING_BITS_16_31 ) | |
| 2134 | 2135 | { |
| 2135 | 2136 | /* fails if !8000 */ |
| 2136 | 2137 | /* fails if 4000 */ |
| r2241 | r2242 | |
| 2204 | 2205 | /* sound? */ |
| 2205 | 2206 | break; |
| 2206 | 2207 | case 0x2c: |
| 2207 | if( ACCESSING_ | |
| 2208 | if( ACCESSING_BITS_0_15 ) | |
| 2208 | 2209 | { |
| 2209 | 2210 | gx894_ram_write_offset &= 0x0000ffff; |
| 2210 | 2211 | gx894_ram_write_offset |= ( data & 0x0000ffff ) << 16; |
| 2211 | 2212 | } |
| 2212 | if( ACCESSING_ | |
| 2213 | if( ACCESSING_BITS_16_31 ) | |
| 2213 | 2214 | { |
| 2214 | 2215 | gx894_ram_write_offset &= 0xffff0000; |
| 2215 | 2216 | gx894_ram_write_offset |= ( data & 0xffff0000 ) >> 16; |
| 2216 | 2217 | } |
| 2217 | 2218 | break; |
| 2218 | 2219 | case 0x2d: |
| 2219 | if( ACCESSING_ | |
| 2220 | if( ACCESSING_BITS_0_15 ) | |
| 2220 | 2221 | { |
| 2221 | 2222 | gx894_ram[ gx894_ram_write_offset / 2 ] = data & 0xffff; |
| 2222 | 2223 | // printf( "writing %08x %04x\r", gx894_ram_write_offset, gx894_ram[ gx894_ram_write_offset / 2 ] ); |
| 2223 | 2224 | gx894_ram_write_offset += 2; |
| 2224 | 2225 | } |
| 2225 | if( ACCESSING_ | |
| 2226 | if( ACCESSING_BITS_16_31 ) | |
| 2226 | 2227 | { |
| 2227 | 2228 | gx894_ram_read_offset &= 0x0000ffff; |
| 2228 | 2229 | gx894_ram_read_offset |= ( data & 0xffff0000 ) << 0; |
| 2229 | 2230 | } |
| 2230 | 2231 | break; |
| 2231 | 2232 | case 0x2e: |
| 2232 | if( ACCESSING_ | |
| 2233 | if( ACCESSING_BITS_0_15 ) | |
| 2233 | 2234 | { |
| 2234 | 2235 | gx894_ram_read_offset &= 0xffff0000; |
| 2235 | 2236 | gx894_ram_read_offset |= ( data & 0x0000ffff ) >> 0; |
| 2236 | 2237 | } |
| 2237 | if( ACCESSING_ | |
| 2238 | if( ACCESSING_BITS_16_31 ) | |
| 2238 | 2239 | { |
| 2239 | 2240 | // printf( "write offset 2e msw32\n" ); |
| 2240 | 2241 | } |
| 2241 | 2242 | break; |
| 2242 | 2243 | case 0x38: |
| 2243 | if( ACCESSING_ | |
| 2244 | if( ACCESSING_BITS_16_31 ) | |
| 2244 | 2245 | { |
| 2245 | 2246 | gx894pwbba_output( 0, ( data >> 28 ) & 0xf ); |
| 2246 | 2247 | } |
| 2247 | if( ACCESSING_ | |
| 2248 | if( ACCESSING_BITS_0_15 ) | |
| 2248 | 2249 | { |
| 2249 | 2250 | gx894pwbba_output( 1, ( data >> 12 ) & 0xf ); |
| 2250 | 2251 | } |
| 2251 | 2252 | COMBINE_DATA( &a ); |
| 2252 | 2253 | break; |
| 2253 | 2254 | case 0x39: |
| 2254 | if( ACCESSING_ | |
| 2255 | if( ACCESSING_BITS_16_31 ) | |
| 2255 | 2256 | { |
| 2256 | 2257 | gx894pwbba_output( 7, ( data >> 28 ) & 0xf ); |
| 2257 | 2258 | } |
| 2258 | if( ACCESSING_ | |
| 2259 | if( ACCESSING_BITS_0_15 ) | |
| 2259 | 2260 | { |
| 2260 | 2261 | gx894pwbba_output( 3, ( data >> 12 ) & 0xf ); |
| 2261 | 2262 | } |
| 2262 | 2263 | COMBINE_DATA( &b ); |
| 2263 | 2264 | break; |
| 2264 | 2265 | case 0x3b: |
| 2265 | if( ACCESSING_ | |
| 2266 | if( ACCESSING_BITS_16_31 ) | |
| 2266 | 2267 | { |
| 2267 | 2268 | ds2401_write( 2, !( ( data >> 28 ) & 1 ) ); |
| 2268 | 2269 | } |
| 2269 | 2270 | break; |
| 2270 | 2271 | case 0x3e: |
| 2271 | if( ACCESSING_ | |
| 2272 | if( ACCESSING_BITS_0_15 ) | |
| 2272 | 2273 | { |
| 2273 | 2274 | /* 12 */ |
| 2274 | 2275 | /* 13 */ |
| r2241 | r2242 | |
| 2290 | 2291 | } |
| 2291 | 2292 | } |
| 2292 | 2293 | |
| 2293 | if( ACCESSING_ | |
| 2294 | if( ACCESSING_BITS_16_31 ) | |
| 2294 | 2295 | { |
| 2295 | 2296 | gx894pwbba_output( 4, ( data >> 28 ) & 0xf ); |
| 2296 | 2297 | } |
| 2297 | 2298 | COMBINE_DATA( &c ); |
| 2298 | 2299 | break; |
| 2299 | 2300 | case 0x3f: |
| 2300 | if( ACCESSING_ | |
| 2301 | if( ACCESSING_BITS_16_31 ) | |
| 2301 | 2302 | { |
| 2302 | 2303 | gx894pwbba_output( 2, ( data >> 28 ) & 0xf ); |
| 2303 | 2304 | } |
| 2304 | if( ACCESSING_ | |
| 2305 | if( ACCESSING_BITS_0_15 ) | |
| 2305 | 2306 | { |
| 2306 | 2307 | gx894pwbba_output( 5, ( data >> 12 ) & 0xf ); |
| 2307 | 2308 | } |
| r2241 | r2242 | |
| 2834 | 2835 | PORT_BIT( 0x08000000, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(2) |
| 2835 | 2836 | // PORT_BIT( 0xf0fff0ff, IP_ACTIVE_LOW, IPT_UNKNOWN ) |
| 2836 | 2837 | |
| 2837 | PORT_START_TAG("MODE") | |
| 2838 | PORT_CONFNAME( 1, 0, "Mode" ) | |
| 2838 | PORT_START_TAG("CART") | |
| 2839 | PORT_CONFNAME( 1, 0, "Security Cart" ) | |
| 2839 | 2840 | PORT_CONFSETTING( 0, "Install" ) |
| 2840 | 2841 | PORT_CONFSETTING( 1, "Game" ) |
| 2842 | ||
| 2843 | PORT_START_TAG("CD") | |
| 2844 | PORT_CONFNAME( 1, 0, "CD" ) | |
| 2845 | PORT_CONFSETTING( 0, "1" ) | |
| 2846 | PORT_CONFSETTING( 1, "2" ) | |
| 2841 | 2847 | INPUT_PORTS_END |
| 2842 | 2848 | |
| 2843 | 2849 | static INPUT_PORTS_START( fbaitbc ) |
| r2241 | r2242 | |
| 3725 | 3731 | DISK_IMAGE_READONLY( "912jab", 0, BAD_DUMP MD5(60dadc836f00f22d50b5b634250aa624) SHA1(5316b2e2e89af7bc038a3febc91525edac91fe7e) ) |
| 3726 | 3732 | ROM_END |
| 3727 | 3733 | |
| 3734 | ROM_START( drmn2mpu ) | |
| 3735 | ROM_REGION32_LE( 0x080000, REGION_USER1, 0 ) | |
| 3736 | SYS573_BIOS_A | |
| 3737 | ||
| 3738 | ROM_REGION( 0x0000224, REGION_USER2, 0 ) /* install security cart eeprom */ | |
| 3739 | ROM_LOAD( "ge912ja.u1", 0x000000, 0x000224, BAD_DUMP CRC(1246fe5b) SHA1(b58d4f4c95e13abf639d645223565544bd79a58a) ) | |
| 3740 | ||
| 3741 | ROM_REGION( 0x0001014, REGION_USER8, 0 ) /* game security cart eeprom */ | |
| 3742 | ROM_LOAD( "gn912ja.u1", 0x000000, 0x001014, BAD_DUMP CRC(34deea99) SHA1(f179e22eaf30453bb94177ed9c25d7996f020c99) ) | |
| 3743 | ||
| 3744 | ROM_REGION( 0x1000000, REGION_USER3, 0 ) /* onboard flash */ | |
| 3745 | ROM_FILL( 0x0000000, 0x1000000, 0xff ) | |
| 3746 | ||
| 3747 | ROM_REGION( 0x000008, REGION_USER9, 0 ) /* install security cart id */ | |
| 3748 | ROM_LOAD( "ge912ja.u6", 0x000000, 0x000008, BAD_DUMP CRC(af09e43c) SHA1(d8372f2d6e0ae07061b496a2242a63e5bc2e54dc) ) | |
| 3749 | ||
| 3750 | ROM_REGION( 0x000008, REGION_USER10, 0 ) /* game security cart id */ | |
| 3751 | ROM_LOAD( "gn912ja.u6", 0x000000, 0x000008, BAD_DUMP CRC(ce84419e) SHA1(839e8ee080ecfc79021a06417d930e8b32dfc6a1) ) | |
| 3752 | ||
| 3753 | DISK_REGION( REGION_DISKS ) | |
| 3754 | DISK_IMAGE_READONLY( "912jab", 0, BAD_DUMP MD5(60dadc836f00f22d50b5b634250aa624) SHA1(5316b2e2e89af7bc038a3febc91525edac91fe7e) ) | |
| 3755 | DISK_IMAGE_READONLY( "912za01", 1, BAD_DUMP MD5(1d3fa130a3a6c8433c276e609b373e4f) SHA1(121ca6df16084a01c88ef26167b13053c9adc7ce) ) | |
| 3756 | ROM_END | |
| 3757 | ||
| 3728 | 3758 | ROM_START( drmn3m ) |
| 3729 | 3759 | ROM_REGION32_LE( 0x080000, REGION_USER1, 0 ) |
| 3730 | 3760 | SYS573_BIOS_A |
| r2241 | r2242 | |
| 4434 | 4464 | GAME( 1999, ddrs2kj, ddrs2k, konami573, ddrsolo, ddrsolo, ROT0, "Konami", "Dance Dance Revolution Solo 2000 (GC905 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.2 */ |
| 4435 | 4465 | GAME( 1999, dsfdct, sys573, konami573, ddr, ddrdigital, ROT0, "Konami", "Dancing Stage featuring Dreams Come True (GC910 VER. JCA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) |
| 4436 | 4466 | GAME( 1999, dsfdcta, dsfdct, konami573, ddr, ddr, ROT0, "Konami", "Dancing Stage featuring Dreams Come True (GC910 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 4437 | GAME( 1999, drmn2m, sys573, konami573, drmn, drmndigital,ROT0, "Konami", "DrumMania 2nd Mix (GE912 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.5 */ | |
| 4467 | GAME( 1999, drmn2m, sys573, konami573, drmn, drmndigital,ROT0, "Konami", "DrumMania 2nd Mix (GE912 VER. JAB)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.5 */ | |
| 4468 | GAME( 1999, drmn2mpu, drmn2m, konami573, drmn, drmndigital,ROT0, "Konami", "DrumMania 2nd Mix Session Power Up Kit (GE912 VER. JAB)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.5 */ | |
| 4438 | 4469 | GAME( 2000, dncfrks, sys573, konami573, dmx, dmx, ROT0, "Konami", "Dance Freaks (G*874 VER. KAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.6 */ |
| 4439 | 4470 | GAME( 2000, dmx, dncfrks, konami573, dmx, dmx, ROT0, "Konami", "Dance Maniax (G*874 VER. JAA)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.6 */ |
| 4440 | 4471 | GAME( 2000, gtrfrk3m, sys573, konami573, gtrfrks, gtrfrkdigital,ROT0, "Konami", "Guitar Freaks 3rd Mix (GE949 VER. JAC)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND | GAME_NOT_WORKING ) /* BOOT VER 1.4 */ |
| r2241 | r2242 | |
|---|---|---|
| 89 | 89 | |
| 90 | 90 | static WRITE16_HANDLER( mo_control_w ) |
| 91 | 91 | { |
| 92 | if (ACCESSING_ | |
| 92 | if (ACCESSING_ | |
| 93 | 93 | atarirle_control_w(0, data & 7); |
| 94 | 94 | } |
| 95 | 95 |
| r2241 | r2242 | |
|---|---|---|
| 2815 | 2815 | /*****************************************************************************/ |
| 2816 | 2816 | |
| 2817 | 2817 | static INPUT_PORTS_START( legionna ) |
| 2818 | SEIBU_COIN_INPUTS /* | |
| 2818 | SEIBU_COIN_INPUTS /* | |
| 2819 | 2819 | |
| 2820 | 2820 | PORT_START |
| 2821 | 2821 | PORT_DIPNAME( 0x001f, 0x001f, DEF_STR( Coinage ) ) |
| r2241 | r2242 | |
| 2903 | 2903 | |
| 2904 | 2904 | |
| 2905 | 2905 | static INPUT_PORTS_START( heatbrl ) |
| 2906 | SEIBU_COIN_INPUTS /* | |
| 2906 | SEIBU_COIN_INPUTS /* | |
| 2907 | 2907 | |
| 2908 | 2908 | PORT_START |
| 2909 | 2909 | PORT_DIPNAME( 0x001f, 0x001f, DEF_STR( Coinage ) ) |
| r2241 | r2242 | |
| 3007 | 3007 | |
| 3008 | 3008 | |
| 3009 | 3009 | static INPUT_PORTS_START( godzilla ) |
| 3010 | SEIBU_COIN_INPUTS /* | |
| 3010 | SEIBU_COIN_INPUTS /* | |
| 3011 | 3011 | |
| 3012 | 3012 | PORT_START |
| 3013 | 3013 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| r2241 | r2242 | |
| 3105 | 3105 | INPUT_PORTS_END |
| 3106 | 3106 | |
| 3107 | 3107 | static INPUT_PORTS_START( sdgndmrb ) |
| 3108 | SEIBU_COIN_INPUTS /* | |
| 3108 | SEIBU_COIN_INPUTS /* | |
| 3109 | 3109 | |
| 3110 | 3110 | PORT_START |
| 3111 | 3111 | PORT_DIPNAME( 0x0001, 0x0001, DEF_STR( Unknown ) ) |
| r2241 | r2242 | |
| 3250 | 3250 | INPUT_PORTS_END |
| 3251 | 3251 | |
| 3252 | 3252 | static INPUT_PORTS_START( cupsoc ) |
| 3253 | SEIBU_COIN_INPUTS /* | |
| 3253 | SEIBU_COIN_INPUTS /* | |
| 3254 | 3254 | |
| 3255 | 3255 | PORT_START |
| 3256 | 3256 | PORT_DIPNAME( 0x0007, 0x0007, "Coin 1 (3)" ) |
| r2241 | r2242 | |
| 4399 | 4399 | GAME( 1993, sdgndmrb, 0, sdgndmrb, sdgndmrb, 0, ROT0, "Banpresto", "SD Gundam Sangokushi Rainbow Tairiku Senki", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) |
| 4400 | 4400 | GAME( 1993, denjinmk, 0, denjinmk, godzilla, 0, ROT0, "Banpresto", "Denjin Makai", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) |
| 4401 | 4401 | |
| 4402 | GAME( 1992, cupsoc, 0, cupsoc, cupsoc, 0, ROT0, "Seibu", "Seibu Cup Soccer (set 1)", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) | |
| 4403 | GAME( 1992, cupsoc2, cupsoc, cupsoc, cupsoc, 0, ROT0, "Seibu", "Seibu Cup Soccer (set 2)", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) | |
| 4404 | GAME( 1992, olysoc92, cupsoc, cupsoc, cupsoc, 0, ROT0, "Seibu", "Olympic Soccer '92", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) | |
| 4402 | GAME( 1992, cupsoc, 0, cupsoc, cupsoc, 0, ROT0, "Seibu", "Seibu Cup Soccer (set 1)", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) | |
| 4403 | GAME( 1992, cupsoc2, cupsoc, cupsoc, cupsoc, 0, ROT0, "Seibu", "Seibu Cup Soccer (set 2)", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) | |
| 4404 | GAME( 1992, olysoc92, cupsoc, cupsoc, cupsoc, 0, ROT0, "Seibu", "Olympic Soccer '92", GAME_UNEMULATED_PROTECTION | GAME_NOT_WORKING ) | |
| 4405 | 4405 | GAME( 1992, cupsocbl, cupsoc, cupsocbl, cupsoc, cupsoc, ROT0, "bootleg", "Seibu Cup Soccer (bootleg)", GAME_NOT_WORKING | GAME_NO_SOUND ) |
| r2241 | r2242 | |
|---|---|---|
| 185 | 185 | |
| 186 | 186 | static WRITE16_HANDLER( livequiz_eeprom_w ) |
| 187 | 187 | { |
| 188 | if (ACCESSING_ | |
| 188 | if (ACCESSING_ | |
| 189 | 189 | { |
| 190 | 190 | // latch the bit |
| 191 | 191 | EEPROM_write_bit(data & 0x04); |
| r2241 | r2242 | |
|---|---|---|
| 222 | 222 | static WRITE16_HANDLER( pigskin_protection_w ) |
| 223 | 223 | { |
| 224 | 224 | /* ignore upper-byte only */ |
| 225 | if (ACCESSING_ | |
| 225 | if (ACCESSING_ | |
| 226 | 226 | { |
| 227 | 227 | /* track the last 5 bytes */ |
| 228 | 228 | protection_data[0] = protection_data[1]; |
| r2241 | r2242 | |
|---|---|---|
| 55 | 55 | |
| 56 | 56 | static WRITE16_HANDLER( K051316_0_msb_w ) |
| 57 | 57 | { |
| 58 | if (ACCESSING_ | |
| 58 | if (ACCESSING_ | |
| 59 | 59 | K051316_0_w(machine,offset,data >> 8); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | static WRITE16_HANDLER( K051316_1_msb_w ) |
| 63 | 63 | { |
| 64 | if (ACCESSING_ | |
| 64 | if (ACCESSING_ | |
| 65 | 65 | K051316_1_w(machine,offset,data >> 8); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | static WRITE16_HANDLER( K051316_ctrl_0_msb_w ) |
| 69 | 69 | { |
| 70 | if (ACCESSING_ | |
| 70 | if (ACCESSING_ | |
| 71 | 71 | K051316_ctrl_0_w(machine,offset,data >> 8); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | static WRITE16_HANDLER( K051316_ctrl_1_msb_w ) |
| 75 | 75 | { |
| 76 | if (ACCESSING_ | |
| 76 | if (ACCESSING_ | |
| 77 | 77 | K051316_ctrl_1_w(machine,offset,data >> 8); |
| 78 | 78 | } |
| 79 | 79 | |
| r2241 | r2242 | |
| 137 | 137 | static WRITE16_HANDLER( eeprom_w ) |
| 138 | 138 | { |
| 139 | 139 | //logerror("%06x: write %04x to eeprom_w\n",activecpu_get_pc(),data); |
| 140 | if (ACCESSING_ | |
| 140 | if (ACCESSING_ | |
| 141 | 141 | { |
| 142 | 142 | /* bit 0 is data */ |
| 143 | 143 | /* bit 1 is clock (active high) */ |
| r2241 | r2242 | |
| 172 | 172 | |
| 173 | 173 | static WRITE16_HANDLER( cpuA_ctrl_w ) |
| 174 | 174 | { |
| 175 | if (ACCESSING_ | |
| 175 | if (ACCESSING_ | |
| 176 | 176 | { |
| 177 | 177 | /* bit 0 probably enables the second 68000 */ |
| 178 | 178 | cpunum_set_input_line(Machine, 1, INPUT_LINE_RESET, (data & 0x01) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
| 199 | 199 | { |
| 200 | 200 | COMBINE_DATA(&cpuB_ctrl); |
| 201 | 201 | |
| 202 | if (ACCESSING_ | |
| 202 | if (ACCESSING_ | |
| 203 | 203 | { |
| 204 | 204 | /* bit 0 = enable sprite ROM reading */ |
| 205 | 205 | K053246_set_OBJCHA_line((data & 0x01) ? ASSERT_LINE : CLEAR_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 243 | 243 | |
| 244 | 244 | static WRITE16_HANDLER( nmg5_soundlatch_w ) |
| 245 | 245 | { |
| 246 | if (ACCESSING_ | |
| 246 | if (ACCESSING_ | |
| 247 | 247 | { |
| 248 | 248 | soundlatch_w(machine,0,data & 0xff); |
| 249 | 249 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 106 | 106 | static WRITE16_HANDLER( eeprom_w ) |
| 107 | 107 | { |
| 108 | 108 | logerror("%06x: write %04x to 108000\n",activecpu_get_pc(),data); |
| 109 | if (ACCESSING_ | |
| 109 | if (ACCESSING_ | |
| 110 | 110 | { |
| 111 | 111 | /* bit 0 = coin counter */ |
| 112 | 112 | coin_counter_w(0,data & 0x01); |
| r2241 | r2242 | |
| 118 | 118 | EEPROM_set_cs_line((data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| 119 | 119 | EEPROM_set_clock_line((data & 0x08) ? ASSERT_LINE : CLEAR_LINE); |
| 120 | 120 | } |
| 121 | if (ACCESSING_ | |
| 121 | if (ACCESSING_ | |
| 122 | 122 | { |
| 123 | 123 | /* bit 8 = enable sprite ROM reading */ |
| 124 | 124 | K053246_set_OBJCHA_line((data & 0x0100) ? ASSERT_LINE : CLEAR_LINE); |
| r2241 | r2242 | |
| 134 | 134 | |
| 135 | 135 | static WRITE16_HANDLER( sound_cmd_w ) |
| 136 | 136 | { |
| 137 | if (ACCESSING_ | |
| 137 | if (ACCESSING_ | |
| 138 | 138 | data &= 0xff; |
| 139 | 139 | soundlatch_w(machine, 0, data); |
| 140 | 140 | } |
| r2241 | r2242 | |
| 149 | 149 | |
| 150 | 150 | static WRITE16_HANDLER( xmen_18fa00_w ) |
| 151 | 151 | { |
| 152 | if(ACCESSING_ | |
| 152 | if(ACCESSING_ | |
| 153 | 153 | /* bit 2 is interrupt enable */ |
| 154 | 154 | interrupt_enable_w(machine,0,data & 0x04); |
| 155 | 155 | // xmen_irqenabled = data; |
| r2241 | r2242 | |
| 175 | 175 | AM_RANGE(0x080000, 0x0fffff) AM_ROM |
| 176 | 176 | AM_RANGE(0x100000, 0x100fff) AM_READWRITE(K053247_word_r, K053247_word_w) |
| 177 | 177 | AM_RANGE(0x101000, 0x101fff) AM_RAM |
| 178 | AM_RANGE(0x104000, 0x104fff) AM_R | |
| 178 | AM_RANGE(0x104000, 0x104fff) AM_R | |
| 179 | 179 | AM_RANGE(0x108000, 0x108001) AM_WRITE(eeprom_w) |
| 180 | 180 | AM_RANGE(0x108020, 0x108027) AM_WRITE(K053246_word_w) |
| 181 | 181 | AM_RANGE(0x10804c, 0x10804d) AM_WRITE(sound_cmd_w) |
| r2241 | r2242 | |
|---|---|---|
| 166 | 166 | |
| 167 | 167 | static WRITE32_HANDLER(silk_6295_0_w) |
| 168 | 168 | { |
| 169 | if ( | |
| 169 | if (ACCESSING_BITS_16_23 | |
| 170 | 170 | { |
| 171 | 171 | logerror("OKI0: write %x mem_mask %8x\n", data>>16, mem_mask); |
| 172 | 172 | OKIM6295_data_0_w(machine, 0, (data>>16) & 0xff); |
| r2241 | r2242 | |
| 180 | 180 | |
| 181 | 181 | static WRITE32_HANDLER(silk_6295_1_w) |
| 182 | 182 | { |
| 183 | if ( | |
| 183 | if (ACCESSING_BITS_16_23 | |
| 184 | 184 | { |
| 185 | 185 | logerror("OKI1: write %x mem_mask %8x\n", data>>16, mem_mask); |
| 186 | 186 | OKIM6295_data_1_w(machine, 0, (data>>16) & 0xff); |
| r2241 | r2242 | |
| 194 | 194 | |
| 195 | 195 | static WRITE32_HANDLER(silk_ym_regport_w) |
| 196 | 196 | { |
| 197 | if ( | |
| 197 | if (ACCESSING_BITS_16_23 | |
| 198 | 198 | { |
| 199 | 199 | YM2151_register_port_0_w(machine, 0, (data>>16) & 0xff); |
| 200 | 200 | } |
| r2241 | r2242 | |
| 202 | 202 | |
| 203 | 203 | static WRITE32_HANDLER(silk_ym_dataport_w) |
| 204 | 204 | { |
| 205 | if ( | |
| 205 | if (ACCESSING_BITS_16_23 | |
| 206 | 206 | { |
| 207 | 207 | YM2151_data_port_0_w(machine, 0, (data>>16) & 0xff); |
| 208 | 208 | } |
| r2241 | r2242 | |
|---|---|---|
| 192 | 192 | * |
| 193 | 193 | *************************************/ |
| 194 | 194 | |
| 195 | static ADDRESS_MAP_START( videopin_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 196 | AM_RANGE(0x0000, 0x07ff) AM_READ(SMH_RAM) | |
| 197 | AM_RANGE(0x0800, 0x0800) AM_READ(videopin_misc_r) | |
| 198 | AM_RANGE(0x1000, 0x1000) AM_READ(input_port_0_r) | |
| 199 | AM_RANGE(0x1800, 0x1800) AM_READ(input_port_1_r) | |
| 200 | AM_RANGE(0x2000, 0x3fff) AM_READ(SMH_ROM) | |
| 201 | AM_RANGE(0xe000, 0xffff) AM_READ(SMH_ROM) /* mirror for 6502 vectors */ | |
| 202 | ADDRESS_MAP_END | |
| 203 | ||
| 204 | ||
| 205 | static ADDRESS_MAP_START( videopin_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 206 | AM_RANGE(0x0000, 0x01ff) AM_WRITE(SMH_RAM) | |
| 207 | AM_RANGE(0x0200, 0x07ff) AM_WRITE(videopin_video_ram_w) AM_BASE(&videopin_video_ram) | |
| 208 | AM_RANGE(0x0800, 0x0800) AM_WRITE(videopin_note_dvsr_w) | |
| 195 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 196 | AM_RANGE(0x0000, 0x01ff) AM_RAM | |
| 197 | AM_RANGE(0x0200, 0x07ff) AM_RAM AM_WRITE(videopin_video_ram_w) AM_BASE(&videopin_video_ram) | |
| 198 | AM_RANGE(0x0800, 0x0800) AM_READWRITE(videopin_misc_r, videopin_note_dvsr_w) | |
| 209 | 199 | AM_RANGE(0x0801, 0x0801) AM_WRITE(videopin_led_w) |
| 210 | 200 | AM_RANGE(0x0802, 0x0802) AM_WRITE(watchdog_reset_w) |
| 211 | 201 | AM_RANGE(0x0804, 0x0804) AM_WRITE(videopin_ball_w) |
| 212 | 202 | AM_RANGE(0x0805, 0x0805) AM_WRITE(videopin_out1_w) |
| 213 | 203 | AM_RANGE(0x0806, 0x0806) AM_WRITE(videopin_out2_w) |
| 214 | AM_RANGE(0x2000, 0x3fff) AM_WRITE(SMH_ROM) | |
| 204 | AM_RANGE(0x1000, 0x1000) AM_READ(input_port_0_r) | |
| 205 | AM_RANGE(0x1800, 0x1800) AM_READ(input_port_1_r) | |
| 206 | AM_RANGE(0x2000, 0x3fff) AM_ROM | |
| 207 | AM_RANGE(0xe000, 0xffff) AM_READ(SMH_ROM) /* mirror for 6502 vectors */ | |
| 215 | 208 | ADDRESS_MAP_END |
| 216 | 209 | |
| 217 | 210 | |
| 218 | ||
| 219 | 211 | /************************************* |
| 220 | 212 | * |
| 221 | 213 | * Port definitions |
| r2241 | r2242 | |
| 331 | 323 | |
| 332 | 324 | /* basic machine hardware */ |
| 333 | 325 | MDRV_CPU_ADD(M6502, 12096000 / 16) |
| 334 | MDRV_CPU_PROGRAM_MAP( | |
| 326 | MDRV_CPU_PROGRAM_MAP( | |
| 335 | 327 | |
| 336 | 328 | MDRV_MACHINE_RESET(videopin) |
| 337 | 329 |
| r2241 | r2242 | |
|---|---|---|
| 60 | 60 | |
| 61 | 61 | static WRITE16_HANDLER( tecmo16_sound_command_w ) |
| 62 | 62 | { |
| 63 | if (ACCESSING_ | |
| 63 | if (ACCESSING_ | |
| 64 | 64 | { |
| 65 | 65 | soundlatch_w(machine,0x00,data & 0xff); |
| 66 | 66 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 5 | 5 | |
| 6 | 6 | #include "driver.h" |
| 7 | 7 | #include "memconv.h" |
| 8 | #include "devconv.h" | |
| 8 | 9 | #include "deprecat.h" |
| 9 | 10 | #include "machine/8237dma.h" |
| 10 | 11 | #include "machine/pic8259.h" |
| r2241 | r2242 | |
| 152 | 153 | static UINT32 intel82439tx_pci_r(int function, int reg, UINT32 mem_mask) |
| 153 | 154 | { |
| 154 | 155 | UINT32 r = 0; |
| 155 | if ( | |
| 156 | if (ACCESSING_BITS_24_31 | |
| 156 | 157 | { |
| 157 | 158 | r |= mxtc_config_r(function, reg + 3) << 24; |
| 158 | 159 | } |
| 159 | if ( | |
| 160 | if (ACCESSING_BITS_16_23 | |
| 160 | 161 | { |
| 161 | 162 | r |= mxtc_config_r(function, reg + 2) << 16; |
| 162 | 163 | } |
| 163 | if ( | |
| 164 | if (ACCESSING_BITS_8_15 | |
| 164 | 165 | { |
| 165 | 166 | r |= mxtc_config_r(function, reg + 1) << 8; |
| 166 | 167 | } |
| 167 | if ( | |
| 168 | if (ACCESSING_BITS_ | |
| 168 | 169 | { |
| 169 | 170 | r |= mxtc_config_r(function, reg + 0) << 0; |
| 170 | 171 | } |
| r2241 | r2242 | |
| 173 | 174 | |
| 174 | 175 | static void intel82439tx_pci_w(int function, int reg, UINT32 data, UINT32 mem_mask) |
| 175 | 176 | { |
| 176 | if ( | |
| 177 | if (ACCESSING_BITS_24_31 | |
| 177 | 178 | { |
| 178 | 179 | mxtc_config_w(function, reg + 3, (data >> 24) & 0xff); |
| 179 | 180 | } |
| 180 | if ( | |
| 181 | if (ACCESSING_BITS_16_23 | |
| 181 | 182 | { |
| 182 | 183 | mxtc_config_w(function, reg + 2, (data >> 16) & 0xff); |
| 183 | 184 | } |
| 184 | if ( | |
| 185 | if (ACCESSING_BITS_8_15 | |
| 185 | 186 | { |
| 186 | 187 | mxtc_config_w(function, reg + 1, (data >> 8) & 0xff); |
| 187 | 188 | } |
| 188 | if ( | |
| 189 | if (ACCESSING_BITS_ | |
| 189 | 190 | { |
| 190 | 191 | mxtc_config_w(function, reg + 0, (data >> 0) & 0xff); |
| 191 | 192 | } |
| r2241 | r2242 | |
| 209 | 210 | static UINT32 intel82371ab_pci_r(int function, int reg, UINT32 mem_mask) |
| 210 | 211 | { |
| 211 | 212 | UINT32 r = 0; |
| 212 | if ( | |
| 213 | if (ACCESSING_BITS_24_31 | |
| 213 | 214 | { |
| 214 | 215 | r |= piix4_config_r(function, reg + 3) << 24; |
| 215 | 216 | } |
| 216 | if ( | |
| 217 | if (ACCESSING_BITS_16_23 | |
| 217 | 218 | { |
| 218 | 219 | r |= piix4_config_r(function, reg + 2) << 16; |
| 219 | 220 | } |
| 220 | if ( | |
| 221 | if (ACCESSING_BITS_8_15 | |
| 221 | 222 | { |
| 222 | 223 | r |= piix4_config_r(function, reg + 1) << 8; |
| 223 | 224 | } |
| 224 | if ( | |
| 225 | if (ACCESSING_BITS_ | |
| 225 | 226 | { |
| 226 | 227 | r |= piix4_config_r(function, reg + 0) << 0; |
| 227 | 228 | } |
| r2241 | r2242 | |
| 230 | 231 | |
| 231 | 232 | static void intel82371ab_pci_w(int function, int reg, UINT32 data, UINT32 mem_mask) |
| 232 | 233 | { |
| 233 | if ( | |
| 234 | if (ACCESSING_BITS_24_31 | |
| 234 | 235 | { |
| 235 | 236 | piix4_config_w(function, reg + 3, (data >> 24) & 0xff); |
| 236 | 237 | } |
| 237 | if ( | |
| 238 | if (ACCESSING_BITS_16_23 | |
| 238 | 239 | { |
| 239 | 240 | piix4_config_w(function, reg + 2, (data >> 16) & 0xff); |
| 240 | 241 | } |
| 241 | if ( | |
| 242 | if (ACCESSING_BITS_8_15 | |
| 242 | 243 | { |
| 243 | 244 | piix4_config_w(function, reg + 1, (data >> 8) & 0xff); |
| 244 | 245 | } |
| 245 | if ( | |
| 246 | if (ACCESSING_BITS_ | |
| 246 | 247 | { |
| 247 | 248 | piix4_config_w(function, reg + 0, (data >> 0) & 0xff); |
| 248 | 249 | } |
| r2241 | r2242 | |
| 251 | 252 | // ISA Plug-n-Play |
| 252 | 253 | static WRITE32_HANDLER( pnp_config_w ) |
| 253 | 254 | { |
| 254 | if ( | |
| 255 | if (ACCESSING_BITS_8_15 | |
| 255 | 256 | { |
| 256 | 257 | // mame_printf_debug("PNP Config: %02X\n", (data >> 8) & 0xff); |
| 257 | 258 | } |
| r2241 | r2242 | |
| 259 | 260 | |
| 260 | 261 | static WRITE32_HANDLER( pnp_data_w ) |
| 261 | 262 | { |
| 262 | if ( | |
| 263 | if (ACCESSING_BITS_8_15 | |
| 263 | 264 | { |
| 264 | 265 | // mame_printf_debug("PNP Data: %02X\n", (data >> 8) & 0xff); |
| 265 | 266 | } |
| r2241 | r2242 | |
| 298 | 299 | } |
| 299 | 300 | } |
| 300 | 301 | |
| 302 | ||
| 303 | DEV_READWRITE8TO32LE( taitowlf_pit8254_32le, pit8253_r, pit8253_w ) | |
| 304 | ||
| 305 | ||
| 301 | 306 | /*****************************************************************************/ |
| 302 | 307 | |
| 303 | 308 | static ADDRESS_MAP_START( taitowlf_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| r2241 | r2242 | |
| 314 | 319 | static ADDRESS_MAP_START(taitowlf_io, ADDRESS_SPACE_IO, 32) |
| 315 | 320 | AM_RANGE(0x0000, 0x001f) AM_READWRITE(dma8237_32le_0_r, dma8237_32le_0_w) |
| 316 | 321 | AM_RANGE(0x0020, 0x003f) AM_READWRITE(pic8259_32le_0_r, pic8259_32le_0_w) |
| 317 | AM_RANGE(0x0040, 0x005f) AM_READWRITE(pit825 | |
| 322 | AM_RANGE(0x0040, 0x005f) AM_DEVREADWRITE(PIT8254, "pit8254", taitowlf_pit8254_32le_ | |
| 318 | 323 | AM_RANGE(0x0060, 0x006f) AM_READWRITE(kbdc8042_32le_r, kbdc8042_32le_w) |
| 319 | 324 | AM_RANGE(0x0070, 0x007f) AM_READWRITE(mc146818_port32le_r, mc146818_port32le_w) |
| 320 | 325 | AM_RANGE(0x0080, 0x009f) AM_READWRITE(at_page32_r, at_page32_w) |
| r2241 | r2242 | |
| 407 | 412 | cpunum_set_irq_callback(0, irq_callback); |
| 408 | 413 | } |
| 409 | 414 | |
| 415 | static PIT8253_OUTPUT_CHANGED( pc_timer0_w ) | |
| 416 | { | |
| 417 | pic8259_set_irq_line(0, 0, state); | |
| 418 | } | |
| 419 | ||
| 420 | static const struct pit8253_config taitowlf_pit8254_config = | |
| 421 | { | |
| 422 | { | |
| 423 | { | |
| 424 | 4772720/4, /* heartbeat IRQ */ | |
| 425 | pc_timer0_w, | |
| 426 | NULL | |
| 427 | }, { | |
| 428 | 4772720/4, /* dram refresh */ | |
| 429 | NULL, | |
| 430 | NULL | |
| 431 | }, { | |
| 432 | 4772720/4, /* pio port c pin 4, and speaker polling enough */ | |
| 433 | NULL, | |
| 434 | NULL | |
| 435 | } | |
| 436 | } | |
| 437 | }; | |
| 438 | ||
| 410 | 439 | static MACHINE_DRIVER_START(taitowlf) |
| 411 | 440 | |
| 412 | 441 | /* basic machine hardware */ |
| r2241 | r2242 | |
| 416 | 445 | |
| 417 | 446 | MDRV_MACHINE_RESET(taitowlf) |
| 418 | 447 | |
| 448 | MDRV_DEVICE_ADD( "pit8254", PIT8254 ) | |
| 449 | MDRV_DEVICE_CONFIG( taitowlf_pit8254_config ) | |
| 450 | ||
| 419 | 451 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 420 | 452 | |
| 421 | 453 | /* video hardware */ |
| r2241 | r2242 | |
| 475 | 507 | { |
| 476 | 508 | bios_ram = auto_malloc(0x10000); |
| 477 | 509 | |
| 478 | init_pc_common(PCCOMMON_KEYBOARD_AT | PCCOMMON_DMA8237_AT | |
| 510 | init_pc_common(PCCOMMON_KEYBOARD_AT | PCCOMMON_DMA8237_AT | |
| 479 | 511 | mc146818_init(MC146818_STANDARD); |
| 480 | 512 | |
| 481 | 513 | intel82439tx_init(); |
| r2241 | r2242 | |
|---|---|---|
| 149 | 149 | |
| 150 | 150 | static WRITE16_HANDLER( toypop_m68000_sharedram_w ) |
| 151 | 151 | { |
| 152 | if (ACCESSING_ | |
| 152 | if (ACCESSING_ | |
| 153 | 153 | toypop_m68000_sharedram[offset] = data & 0xff; |
| 154 | 154 | } |
| 155 | 155 |
| r2241 | r2242 | |
|---|---|---|
| 847 | 847 | |
| 848 | 848 | static WRITE16_HANDLER( semicom_soundcmd_w ) |
| 849 | 849 | { |
| 850 | if (ACCESSING_ | |
| 850 | if (ACCESSING_ | |
| 851 | 851 | { |
| 852 | 852 | soundlatch_w(machine,0,data & 0xff); |
| 853 | 853 | // needed for Super Trio which reads the sound with polling |
| r2241 | r2242 | |
|---|---|---|
| 59 | 59 | |
| 60 | 60 | static WRITE16_HANDLER( m90_coincounter_w ) |
| 61 | 61 | { |
| 62 | if (ACCESSING_ | |
| 62 | if (ACCESSING_ | |
| 63 | 63 | { |
| 64 | 64 | coin_counter_w(0,data & 0x01); |
| 65 | 65 | coin_counter_w(1,data & 0x02); |
| r2241 | r2242 | |
| 70 | 70 | |
| 71 | 71 | static WRITE16_HANDLER( quizf1_bankswitch_w ) |
| 72 | 72 | { |
| 73 | if (ACCESSING_ | |
| 73 | if (ACCESSING_ | |
| 74 | 74 | { |
| 75 | 75 | bankaddress = 0x10000 * (data & 0x0f); |
| 76 | 76 | set_m90_bank(); |
| r2241 | r2242 | |
|---|---|---|
| 124 | 124 | { |
| 125 | 125 | case 0x00: |
| 126 | 126 | { |
| 127 | if (ACCESSING_ | |
| 127 | if (ACCESSING_ | |
| 128 | 128 | { |
| 129 | 129 | watchdog_reset(machine); |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | if (ACCESSING_ | |
| 132 | if (ACCESSING_ | |
| 133 | 133 | { |
| 134 | 134 | EEPROM_set_clock_line((data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 135 | 135 | EEPROM_write_bit(data & 0x40); |
| r2241 | r2242 | |
| 141 | 141 | |
| 142 | 142 | case 0x01: |
| 143 | 143 | { |
| 144 | if (ACCESSING_ | |
| 144 | if (ACCESSING_ | |
| 145 | 145 | { |
| 146 | 146 | /* game does not write a separate counter for coin 2! |
| 147 | 147 | It should disable both coins when 9 credits reached |
| r2241 | r2242 | |
|---|---|---|
| 846 | 846 | parse_control(); |
| 847 | 847 | |
| 848 | 848 | // Chase HQ: handle the lights |
| 849 | if ((!strcmp( | |
| 849 | if ((!strcmp(machine->gamedrv->name, "chasehq")) || (!strcmp(machine->gamedrv->name, "chasehqj"))) | |
| 850 | 850 | { |
| 851 | 851 | output_set_lamp_value(0, (data&0x20) ? 1 : 0); |
| 852 | 852 | output_set_lamp_value(1, (data&0x40) ? 1 : 0); |
| r2241 | r2242 | |
| 1304 | 1304 | switch (offset) |
| 1305 | 1305 | { |
| 1306 | 1306 | case 0x0: |
| 1307 | return (mame_rand( | |
| 1307 | return (mame_rand(machine) &0xff); /* motor status ?? */ | |
| 1308 | 1308 | |
| 1309 | 1309 | case 0x101: |
| 1310 | 1310 | return 0x55; /* motor cpu status ? */ |
| r2241 | r2242 | |
|---|---|---|
| 129 | 129 | |
| 130 | 130 | static WRITE16_HANDLER(colordac_w) |
| 131 | 131 | { |
| 132 | if (ACCESSING_ | |
| 132 | if (ACCESSING_ | |
| 133 | 133 | { |
| 134 | 134 | colorram[clr_offset] = data; |
| 135 | 135 | palette_set_color_rgb(Machine, clr_offset/3, |
| r2241 | r2242 | |
| 140 | 140 | clr_offset = (clr_offset+1) % (256*3); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | if (ACCESSING_ | |
| 143 | if (ACCESSING_ | |
| 144 | 144 | { |
| 145 | 145 | clr_offset = (data>>8) * 3; |
| 146 | 146 | } |
| r2241 | r2242 | |
| 154 | 154 | // high byte of a 16 bit register |
| 155 | 155 | static WRITE16_HANDLER( lastfght_hi_w ) |
| 156 | 156 | { |
| 157 | if (ACCESSING_MSB) logerror("%06x: 600000.b = %02x\n", activecpu_get_pc(),data>>8); | |
| 158 | if (ACCESSING_LSB) | |
| 157 | if (ACCESSING_BITS_8_15) logerror("%06x: 600000.b = %02x\n", activecpu_get_pc(),data>>8); | |
| 158 | if (ACCESSING_BITS_0_7) | |
| 159 | 159 | { |
| 160 | 160 | lastfght_hi = data << 8; |
| 161 | 161 | //logerror("%06x: lastfght_hi = %02x\n", activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 164 | 164 | // screen x |
| 165 | 165 | static WRITE16_HANDLER( lastfght_x_w ) |
| 166 | 166 | { |
| 167 | if (ACCESSING_MSB) logerror("%06x: 800008.b = %02x\n", activecpu_get_pc(),data>>8); | |
| 168 | if (ACCESSING_LSB) | |
| 167 | if (ACCESSING_BITS_8_15) logerror("%06x: 800008.b = %02x\n", activecpu_get_pc(),data>>8); | |
| 168 | if (ACCESSING_BITS_0_7) | |
| 169 | 169 | { |
| 170 | 170 | lastfght_x = lastfght_hi | data; |
| 171 | 171 | //logerror("%06x: lastfght_x = %02x\n", activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 174 | 174 | // screen y, screen width - 1 |
| 175 | 175 | static WRITE16_HANDLER( lastfght_yw_w ) |
| 176 | 176 | { |
| 177 | if (ACCESSING_ | |
| 177 | if (ACCESSING_ | |
| 178 | 178 | { |
| 179 | 179 | lastfght_y = lastfght_hi | (data >> 8); |
| 180 | 180 | //logerror("%06x: lastfght_y = %02x\n", activecpu_get_pc(),data>>8); |
| 181 | 181 | } |
| 182 | if (ACCESSING_ | |
| 182 | if (ACCESSING_ | |
| 183 | 183 | { |
| 184 | 184 | lastfght_w = lastfght_hi | data; |
| 185 | 185 | //logerror("%06x: lastfght_w = %02x\n", activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 188 | 188 | // screen height - 1 |
| 189 | 189 | static WRITE16_HANDLER( lastfght_h_w ) |
| 190 | 190 | { |
| 191 | if (ACCESSING_ | |
| 191 | if (ACCESSING_ | |
| 192 | 192 | { |
| 193 | 193 | lastfght_h = lastfght_hi | (data >> 8); |
| 194 | 194 | //logerror("%06x: lastfght_h = %02x\n", activecpu_get_pc(),data>>8); |
| 195 | 195 | } |
| 196 | if (ACCESSING_ | |
| 196 | if (ACCESSING_ | |
| 197 | 197 | } |
| 198 | 198 | // source delta x << 6, source x << 6 |
| 199 | 199 | static WRITE16_HANDLER( lastfght_sx_w ) |
| 200 | 200 | { |
| 201 | if (ACCESSING_ | |
| 201 | if (ACCESSING_ | |
| 202 | 202 | { |
| 203 | 203 | lastfght_dsx = lastfght_hi | (data >> 8); |
| 204 | 204 | //logerror("%06x: lastfght_dsx = %02x\n", activecpu_get_pc(),data>>8); |
| 205 | 205 | } |
| 206 | if (ACCESSING_ | |
| 206 | if (ACCESSING_ | |
| 207 | 207 | { |
| 208 | 208 | lastfght_sx = lastfght_hi | data; |
| 209 | 209 | //logerror("%06x: lastfght_sx = %02x\n", activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 212 | 212 | // source y << 6, source y1 << 6 |
| 213 | 213 | static WRITE16_HANDLER( lastfght_sy_w ) |
| 214 | 214 | { |
| 215 | if (ACCESSING_ | |
| 215 | if (ACCESSING_ | |
| 216 | 216 | { |
| 217 | 217 | lastfght_sy = lastfght_hi | (data >> 8); |
| 218 | 218 | //logerror("%06x: lastfght_sy = %02x\n", activecpu_get_pc(),data>>8); |
| 219 | 219 | } |
| 220 | if (ACCESSING_ | |
| 220 | if (ACCESSING_ | |
| 221 | 221 | { |
| 222 | 222 | lastfght_sy1 = lastfght_hi | data; |
| 223 | 223 | //logerror("%06x: lastfght_sy1 = %02x\n", activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 226 | 226 | // source rom (0x200000 bytes), source page (512x256 bytes) |
| 227 | 227 | static WRITE16_HANDLER( lastfght_sr_w ) |
| 228 | 228 | { |
| 229 | if (ACCESSING_ | |
| 229 | if (ACCESSING_ | |
| 230 | 230 | { |
| 231 | 231 | lastfght_sp = (lastfght_hi>>8) >> 4; |
| 232 | 232 | //logerror("%06x: lastfght_sp = %02x\n", activecpu_get_pc(),data>>8); |
| 233 | 233 | } |
| 234 | if (ACCESSING_ | |
| 234 | if (ACCESSING_ | |
| 235 | 235 | { |
| 236 | 236 | lastfght_sr = data; |
| 237 | 237 | //logerror("%06x: lastfght_sr = %02x\n", activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 240 | 240 | // source x1 << 6, source delta y << 6 |
| 241 | 241 | static WRITE16_HANDLER( lastfght_sd_w ) |
| 242 | 242 | { |
| 243 | if (ACCESSING_ | |
| 243 | if (ACCESSING_ | |
| 244 | 244 | { |
| 245 | 245 | lastfght_sx1 = lastfght_hi | (data >> 8); |
| 246 | 246 | //logerror("%06x: lastfght_sx1 = %02x\n", activecpu_get_pc(),data>>8); |
| 247 | 247 | } |
| 248 | if (ACCESSING_ | |
| 248 | if (ACCESSING_ | |
| 249 | 249 | { |
| 250 | 250 | lastfght_dsy = lastfght_hi | data; |
| 251 | 251 | //logerror("%06x: lastfght_dsy = %02x\n", activecpu_get_pc(),data); |
| r2241 | r2242 | |
| 254 | 254 | // start blit |
| 255 | 255 | static WRITE16_HANDLER( lastfght_blit_w ) |
| 256 | 256 | { |
| 257 | if (ACCESSING_ | |
| 257 | if (ACCESSING_ | |
| 258 | 258 | { |
| 259 | 259 | int x,y, addr; |
| 260 | 260 | UINT8 *gfxdata = memory_region( REGION_GFX1 ); |
| r2241 | r2242 | |
| 285 | 285 | } |
| 286 | 286 | } |
| 287 | 287 | } |
| 288 | if (ACCESSING_ | |
| 288 | if (ACCESSING_ | |
| 289 | 289 | } |
| 290 | 290 | // toggle framebuffer |
| 291 | 291 | static WRITE16_HANDLER( lastfght_dest_w ) |
| 292 | 292 | { |
| 293 | if (ACCESSING_ | |
| 293 | if (ACCESSING_ | |
| 294 | 294 | } |
| 295 | 295 | |
| 296 | 296 | static READ16_HANDLER( lastfght_c00000_r ) |
| r2241 | r2242 | |
| 338 | 338 | |
| 339 | 339 | static WRITE16_HANDLER( lastfght_sound_w ) |
| 340 | 340 | { |
| 341 | if (ACCESSING_MSB) logerror("%06x: sound_w msb = %02x\n", activecpu_get_pc(),data>>8); | |
| 342 | if (ACCESSING_LSB) logerror("%06x: sound_w lsb = %02x\n", activecpu_get_pc(),data); | |
| 341 | if (ACCESSING_BITS_8_15) logerror("%06x: sound_w msb = %02x\n", activecpu_get_pc(),data>>8); | |
| 342 | if (ACCESSING_BITS_0_7) logerror("%06x: sound_w lsb = %02x\n", activecpu_get_pc(),data); | |
| 343 | 343 | } |
| 344 | 344 | |
| 345 | 345 | /*************************************************************************** |
| r2241 | r2242 | |
|---|---|---|
| 85 | 85 | { |
| 86 | 86 | cpuintrf_push_context(GROUND_CPU); |
| 87 | 87 | |
| 88 | if (ACCESSING_ | |
| 88 | if (ACCESSING_ | |
| 89 | 89 | program_write_byte(V30_GND_ADDR | (offset * 2 + 0), data); |
| 90 | if (ACCESSING_ | |
| 90 | if (ACCESSING_ | |
| 91 | 91 | program_write_byte(V30_GND_ADDR | (offset * 2 + 1), data >> 8); |
| 92 | 92 | |
| 93 | 93 | cpuintrf_pop_context(); |
| r2241 | r2242 | |
| 108 | 108 | { |
| 109 | 109 | cpuintrf_push_context(OBJECT_CPU); |
| 110 | 110 | |
| 111 | if (ACCESSING_ | |
| 111 | if (ACCESSING_ | |
| 112 | 112 | program_write_byte(V30_OBJ_ADDR | (offset * 2 + 0), data); |
| 113 | if (ACCESSING_ | |
| 113 | if (ACCESSING_ | |
| 114 | 114 | program_write_byte(V30_OBJ_ADDR | (offset * 2 + 1), data >> 8); |
| 115 | 115 | |
| 116 | 116 | cpuintrf_pop_context(); |
| r2241 | r2242 | |
| 121 | 121 | if (offset < 0x800) |
| 122 | 122 | { |
| 123 | 123 | cpuintrf_push_context(GROUND_CPU); |
| 124 | if (ACCESSING_ | |
| 124 | if (ACCESSING_ | |
| 125 | 125 | program_write_byte(V30_GND_ADDR | (offset * 2 + 0), data); |
| 126 | if (ACCESSING_ | |
| 126 | if (ACCESSING_ | |
| 127 | 127 | program_write_byte(V30_GND_ADDR | (offset * 2 + 1), data >> 8); |
| 128 | 128 | cpuintrf_pop_context(); |
| 129 | 129 | |
| 130 | 130 | cpuintrf_push_context(OBJECT_CPU); |
| 131 | if (ACCESSING_ | |
| 131 | if (ACCESSING_ | |
| 132 | 132 | program_write_byte(V30_OBJ_ADDR | (offset * 2 + 0), data); |
| 133 | if (ACCESSING_ | |
| 133 | if (ACCESSING_ | |
| 134 | 134 | program_write_byte(V30_OBJ_ADDR | (offset * 2 + 1), data >> 8); |
| 135 | 135 | cpuintrf_pop_context(); |
| 136 | 136 | } |
| r2241 | r2242 | |
|---|---|---|
| 253 | 253 | { |
| 254 | 254 | static int indx,sub,rgb[3]; |
| 255 | 255 | |
| 256 | if (ACCESSING_ | |
| 256 | if (ACCESSING_ | |
| 257 | 257 | { |
| 258 | 258 | indx = data >> 8; |
| 259 | 259 | sub = 0; |
| 260 | 260 | } |
| 261 | if (ACCESSING_ | |
| 261 | if (ACCESSING_ | |
| 262 | 262 | { |
| 263 | 263 | rgb[sub++] = data & 0xff; |
| 264 | 264 | if (sub == 3) |
| r2241 | r2242 | |
|---|---|---|
| 115 | 115 | |
| 116 | 116 | static WRITE16_HANDLER( control2_w ) |
| 117 | 117 | { |
| 118 | if(ACCESSING_ | |
| 118 | if(ACCESSING_ | |
| 119 | 119 | /* bit 0 is data */ |
| 120 | 120 | /* bit 1 is cs (active low) */ |
| 121 | 121 | /* bit 2 is clock (active high) */ |
| r2241 | r2242 | |
| 183 | 183 | |
| 184 | 184 | static WRITE16_HANDLER( sound_cmd_w ) |
| 185 | 185 | { |
| 186 | if(ACCESSING_ | |
| 186 | if(ACCESSING_ | |
| 187 | 187 | data &= 0xff; |
| 188 | 188 | soundlatch_w(machine, 0, data); |
| 189 | 189 | } |
| r2241 | r2242 | |
|---|---|---|
| 158 | 158 | |
| 159 | 159 | static WRITE16_HANDLER( tigeroad_soundcmd_w ) |
| 160 | 160 | { |
| 161 | if (ACCESSING_ | |
| 161 | if (ACCESSING_ | |
| 162 | 162 | soundlatch_w(machine,offset,data >> 8); |
| 163 | 163 | } |
| 164 | 164 |
| r2241 | r2242 | |
|---|---|---|
| 190 | 190 | |
| 191 | 191 | static WRITE8_HANDLER( flip_screen_x_w ) |
| 192 | 192 | { |
| 193 | looping_state *state = | |
| 193 | looping_state *state = machine->driver_data; | |
| 194 | 194 | flip_screen_x_set(~data & 0x01); |
| 195 | 195 | tilemap_set_scrollx(state->bg_tilemap, 0, flip_screen_get() ? 128 : 0); |
| 196 | 196 | } |
| r2241 | r2242 | |
| 198 | 198 | |
| 199 | 199 | static WRITE8_HANDLER( flip_screen_y_w ) |
| 200 | 200 | { |
| 201 | looping_state *state = | |
| 201 | looping_state *state = machine->driver_data; | |
| 202 | 202 | flip_screen_y_set(~data & 0x01); |
| 203 | 203 | tilemap_set_scrollx(state->bg_tilemap, 0, flip_screen_get() ? 128 : 0); |
| 204 | 204 | } |
| r2241 | r2242 | |
| 206 | 206 | |
| 207 | 207 | static WRITE8_HANDLER( looping_videoram_w ) |
| 208 | 208 | { |
| 209 | looping_state *state = | |
| 209 | looping_state *state = machine->driver_data; | |
| 210 | 210 | state->videoram[offset] = data; |
| 211 | 211 | tilemap_mark_tile_dirty(state->bg_tilemap, offset); |
| 212 | 212 | } |
| r2241 | r2242 | |
| 214 | 214 | |
| 215 | 215 | static WRITE8_HANDLER( looping_colorram_w ) |
| 216 | 216 | { |
| 217 | looping_state *state = | |
| 217 | looping_state *state = machine->driver_data; | |
| 218 | 218 | int i; |
| 219 | 219 | |
| 220 | 220 | state->colorram[offset] = data; |
| r2241 | r2242 | |
| 363 | 363 | 0007 = AFA |
| 364 | 364 | */ |
| 365 | 365 | |
| 366 | looping_state *state = | |
| 366 | looping_state *state = machine->driver_data; | |
| 367 | 367 | state->sound[offset + 1] = data ^ 1; |
| 368 | 368 | DAC_data_w(0, ((state->sound[2] << 7) + (state->sound[3] << 6)) * state->sound[7]); |
| 369 | 369 | } |
| r2241 | r2242 | |
|---|---|---|
| 527 | 527 | |
| 528 | 528 | static WRITE16_HANDLER( interrupt_control_16_w ) |
| 529 | 529 | { |
| 530 | if (ACCESSING_ | |
| 530 | if (ACCESSING_ | |
| 531 | 531 | int_control_w(offset*2+0, data); |
| 532 | if (ACCESSING_ | |
| 532 | if (ACCESSING_ | |
| 533 | 533 | int_control_w(offset*2+1, data >> 8); |
| 534 | 534 | } |
| 535 | 535 | |
| r2241 | r2242 | |
| 550 | 550 | |
| 551 | 551 | static WRITE32_HANDLER( interrupt_control_32_w ) |
| 552 | 552 | { |
| 553 | if ( | |
| 553 | if (ACCESSING_BITS_ | |
| 554 | 554 | int_control_w(offset*4+0, data); |
| 555 | if ( | |
| 555 | if (ACCESSING_BITS_8_15 | |
| 556 | 556 | int_control_w(offset*4+1, data >> 8); |
| 557 | if ( | |
| 557 | if (ACCESSING_BITS_16_23 | |
| 558 | 558 | int_control_w(offset*4+2, data >> 16); |
| 559 | if ( | |
| 559 | if (ACCESSING_BITS_24_31 | |
| 560 | 560 | int_control_w(offset*4+3, data >> 24); |
| 561 | 561 | } |
| 562 | 562 | |
| r2241 | r2242 | |
| 642 | 642 | UINT8 old; |
| 643 | 643 | |
| 644 | 644 | /* only LSB matters */ |
| 645 | if (!ACCESSING_ | |
| 645 | if (!ACCESSING_ | |
| 646 | 646 | return; |
| 647 | 647 | |
| 648 | 648 | /* generic implementation */ |
| r2241 | r2242 | |
| 719 | 719 | |
| 720 | 720 | static WRITE32_HANDLER( io_chip_0_w ) |
| 721 | 721 | { |
| 722 | if ( | |
| 722 | if (ACCESSING_BITS_ | |
| 723 | 723 | common_io_chip_w(0, offset*2+0, data, mem_mask); |
| 724 | if ( | |
| 724 | if (ACCESSING_BITS_16_31 | |
| 725 | 725 | common_io_chip_w(0, offset*2+1, data >> 16, mem_mask >> 16); |
| 726 | 726 | } |
| 727 | 727 | |
| r2241 | r2242 | |
| 735 | 735 | |
| 736 | 736 | static WRITE32_HANDLER( io_chip_1_w ) |
| 737 | 737 | { |
| 738 | if ( | |
| 738 | if (ACCESSING_BITS_ | |
| 739 | 739 | common_io_chip_w(1, offset*2+0, data, mem_mask); |
| 740 | if ( | |
| 740 | if (ACCESSING_BITS_16_31 | |
| 741 | 741 | common_io_chip_w(1, offset*2+1, data >> 16, mem_mask >> 16); |
| 742 | 742 | } |
| 743 | 743 | |
| r2241 | r2242 | |
| 762 | 762 | static WRITE16_HANDLER( io_expansion_w ) |
| 763 | 763 | { |
| 764 | 764 | /* only LSB matters */ |
| 765 | if (!ACCESSING_ | |
| 765 | if (!ACCESSING_ | |
| 766 | 766 | return; |
| 767 | 767 | |
| 768 | 768 | if (custom_io_w[0]) |
| r2241 | r2242 | |
| 786 | 786 | static WRITE32_HANDLER( io_expansion_0_w ) |
| 787 | 787 | { |
| 788 | 788 | /* only LSB matters */ |
| 789 | if ( | |
| 789 | if (ACCESSING_BITS_ | |
| 790 | 790 | { |
| 791 | 791 | if (custom_io_w[0]) |
| 792 | 792 | (*custom_io_w[0])(machine, offset*2+0, data, mem_mask); |
| 793 | 793 | else |
| 794 | 794 | logerror("%06X:io_expansion_w(%X) = %02X\n", activecpu_get_pc(), offset, data & 0xff); |
| 795 | 795 | } |
| 796 | if ( | |
| 796 | if (ACCESSING_BITS_16_23 | |
| 797 | 797 | { |
| 798 | 798 | if (custom_io_w[0]) |
| 799 | 799 | (*custom_io_w[0])(machine, offset*2+1, data >> 16, mem_mask >> 16); |
| r2241 | r2242 | |
| 817 | 817 | static WRITE32_HANDLER( io_expansion_1_w ) |
| 818 | 818 | { |
| 819 | 819 | /* only LSB matters */ |
| 820 | if ( | |
| 820 | if (ACCESSING_BITS_ | |
| 821 | 821 | { |
| 822 | 822 | if (custom_io_w[1]) |
| 823 | 823 | (*custom_io_w[1])(machine, offset*2+0, data, mem_mask); |
| 824 | 824 | else |
| 825 | 825 | logerror("%06X:io_expansion_w(%X) = %02X\n", activecpu_get_pc(), offset, data & 0xff); |
| 826 | 826 | } |
| 827 | if ( | |
| 827 | if (ACCESSING_BITS_16_23 | |
| 828 | 828 | { |
| 829 | 829 | if (custom_io_w[1]) |
| 830 | 830 | (*custom_io_w[1])(machine, offset*2+1, data >> 16, mem_mask >> 16); |
| r2241 | r2242 | |
| 993 | 993 | |
| 994 | 994 | static WRITE16_HANDLER( shared_ram_16_w ) |
| 995 | 995 | { |
| 996 | if (ACCESSING_ | |
| 996 | if (ACCESSING_ | |
| 997 | 997 | z80_shared_ram[offset*2+0] = data; |
| 998 | if (ACCESSING_ | |
| 998 | if (ACCESSING_ | |
| 999 | 999 | z80_shared_ram[offset*2+1] = data >> 8; |
| 1000 | 1000 | } |
| 1001 | 1001 | |
| r2241 | r2242 | |
| 1009 | 1009 | |
| 1010 | 1010 | static WRITE32_HANDLER( shared_ram_32_w ) |
| 1011 | 1011 | { |
| 1012 | if ( | |
| 1012 | if (ACCESSING_BITS_ | |
| 1013 | 1013 | z80_shared_ram[offset*4+0] = data; |
| 1014 | if ( | |
| 1014 | if (ACCESSING_BITS_8_15 | |
| 1015 | 1015 | z80_shared_ram[offset*4+1] = data >> 8; |
| 1016 | if ( | |
| 1016 | if (ACCESSING_BITS_16_23 | |
| 1017 | 1017 | z80_shared_ram[offset*4+2] = data >> 16; |
| 1018 | if ( | |
| 1018 | if (ACCESSING_BITS_24_31 | |
| 1019 | 1019 | z80_shared_ram[offset*4+3] = data >> 24; |
| 1020 | 1020 | } |
| 1021 | 1021 |
| r2241 | r2242 | |
|---|---|---|
| 535 | 535 | *************************************/ |
| 536 | 536 | |
| 537 | 537 | GAME( 1989, badlands, 0, badlands, badlands, badlands, ROT0, "Atari Games", "Bad Lands", 0 ) |
| 538 | ||
| 539 | /* Badlands - Playmark Bootleg support - split this into its own file? | |
| 540 | ||
| 541 | Year: 1989 | |
| 542 | Producer: Playmark | |
| 543 | ||
| 544 | cpu: 68000 | |
| 545 | sound cpu: Z80 | |
| 546 | sound ics: YM2151 + 3012 | |
| 547 | ||
| 548 | other ics: 28c16 2kx8 eeprom.Used to store bookeeping,settings etc. like original pcb. | |
| 549 | ||
| 550 | Osc: 20 Mhz, 28 Mhz | |
| 551 | ||
| 552 | ROMs: | |
| 553 | ||
| 554 | blb21, blb22, blb27, blb28 main program | |
| 555 | blb26 sound program | |
| 556 | blb29 to blb40 graphics | |
| 557 | ||
| 558 | All eproms are 27c512 | |
| 559 | ||
| 560 | Note | |
| 561 | ||
| 562 | This romset comes from a bootleg pcb produced by Playmark.This pcb was been modified to use as control standard joysticks instead of steering wheels.Game differences are: Copyright string removed. | |
| 563 | ||
| 564 | */ | |
| 565 | ||
| 566 | static READ16_HANDLER( badlandb_unk_r ) | |
| 567 | { | |
| 568 | ||
| 569 | return 0xffff; | |
| 570 | } | |
| 571 | ||
| 572 | static ADDRESS_MAP_START( bootleg_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 573 | AM_RANGE(0x000000, 0x03ffff) AM_ROM | |
| 574 | ||
| 575 | ||
| 576 | AM_RANGE(0x400008, 0x400009) AM_READ(badlandb_unk_r ) | |
| 577 | AM_RANGE(0x4000fe, 0x4000ff) AM_READ(badlandb_unk_r ) | |
| 578 | ||
| 579 | AM_RANGE(0xfc0000, 0xfc0001) AM_READ(badlandb_unk_r ) | |
| 580 | ||
| 581 | AM_RANGE(0xfe4000, 0xfe4001) AM_READ(badlandb_unk_r ) | |
| 582 | AM_RANGE(0xfe4004, 0xfe4005) AM_READ(badlandb_unk_r ) | |
| 583 | AM_RANGE(0xfe4006, 0xfe4007) AM_READ(badlandb_unk_r ) | |
| 584 | ||
| 585 | ||
| 586 | AM_RANGE(0xfd0000, 0xfd1fff) AM_READWRITE(atarigen_eeprom_r, atarigen_eeprom_w) AM_BASE(&atarigen_eeprom) AM_SIZE(&atarigen_eeprom_size) | |
| 587 | //AM_RANGE(0xfe0000, 0xfe1fff) AM_WRITE(watchdog_reset16_w) | |
| 588 | AM_RANGE(0xfe2000, 0xfe3fff) AM_WRITE(atarigen_video_int_ack_w) | |
| 589 | ||
| 590 | AM_RANGE(0xfec000, 0xfedfff) AM_WRITE(badlands_pf_bank_w) | |
| 591 | AM_RANGE(0xfee000, 0xfeffff) AM_WRITE(atarigen_eeprom_enable_w) | |
| 592 | AM_RANGE(0xffc000, 0xffc3ff) AM_READWRITE(SMH_RAM, atarigen_expanded_666_paletteram_w) AM_BASE(&paletteram16) | |
| 593 | AM_RANGE(0xffe000, 0xffefff) AM_READWRITE(SMH_RAM, atarigen_playfield_w) AM_BASE(&atarigen_playfield) | |
| 594 | AM_RANGE(0xfff000, 0xfff1ff) AM_READWRITE(SMH_RAM, atarimo_0_spriteram_expanded_w) AM_BASE(&atarimo_0_spriteram) | |
| 595 | AM_RANGE(0xfff200, 0xffffff) AM_RAM | |
| 596 | ADDRESS_MAP_END | |
| 597 | ||
| 598 | ||
| 599 | static const gfx_layout pflayout_bootleg = | |
| 600 | { | |
| 601 | 8,8, | |
| 602 | RGN_FRAC(1,4), | |
| 603 | 4, | |
| 604 | { RGN_FRAC(0,4), RGN_FRAC(1,4), RGN_FRAC(2,4), RGN_FRAC(3,4) }, | |
| 605 | { 0, 1, 2, 3, 4, 5, 6, 7 }, | |
| 606 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, | |
| 607 | 8*8 | |
| 608 | }; | |
| 609 | ||
| 610 | static GFXDECODE_START( badlandb ) | |
| 611 | GFXDECODE_ENTRY( REGION_GFX1, 0, pflayout_bootleg, 0, 8 ) | |
| 612 | GFXDECODE_ENTRY( REGION_GFX2, 0, molayout, 128, 8 ) | |
| 613 | GFXDECODE_END | |
| 614 | ||
| 615 | static void update_interrupts_bootleg(running_machine *machine) | |
| 616 | { | |
| 617 | int newstate = 0; | |
| 618 | ||
| 619 | if (atarigen_video_int_state) | |
| 620 | newstate = 1; | |
| 621 | // if (atarigen_sound_int_state) | |
| 622 | // newstate = 2; | |
| 623 | ||
| 624 | if (newstate) | |
| 625 | cpunum_set_input_line(machine, 0, newstate, ASSERT_LINE); | |
| 626 | else | |
| 627 | cpunum_set_input_line(machine, 0, 7, CLEAR_LINE); | |
| 628 | } | |
| 629 | ||
| 630 | ||
| 631 | static void scanline_update_bootleg(const device_config *screen, int scanline) | |
| 632 | { | |
| 633 | /* sound IRQ is on 32V */ | |
| 634 | // if (scanline & 32) | |
| 635 | // atarigen_6502_irq_ack_r(screen->machine, 0); | |
| 636 | // else if (!(readinputport(0) & 0x40)) | |
| 637 | // atarigen_6502_irq_gen(screen->machine, 0); | |
| 638 | } | |
| 639 | ||
| 640 | ||
| 641 | ||
| 642 | static MACHINE_RESET( badlandb ) | |
| 643 | { | |
| 644 | // pedal_value[0] = pedal_value[1] = 0x80; | |
| 645 | ||
| 646 | atarigen_eeprom_reset(); | |
| 647 | atarigen_interrupt_reset(update_interrupts_bootleg); | |
| 648 | atarigen_scanline_timer_reset(machine->primary_screen, scanline_update_bootleg, 32); | |
| 649 | ||
| 650 | // atarigen_sound_io_reset(1); | |
| 651 | // memcpy(bank_base, &bank_source_data[0x0000], 0x1000); | |
| 652 | } | |
| 653 | ||
| 654 | static MACHINE_DRIVER_START( badlandb ) | |
| 655 | ||
| 656 | /* basic machine hardware */ | |
| 657 | MDRV_CPU_ADD(M68000, 2800000/2) | |
| 658 | MDRV_CPU_PROGRAM_MAP(bootleg_map,0) | |
| 659 | MDRV_CPU_VBLANK_INT("main", vblank_int) | |
| 660 | ||
| 661 | // MDRV_CPU_ADD(Z80, 2800000/8) | |
| 662 | // MDRV_CPU_PROGRAM_MAP(bootleg_soundmap,0) | |
| 663 | ||
| 664 | MDRV_MACHINE_RESET(badlandb) | |
| 665 | MDRV_NVRAM_HANDLER(atarigen) | |
| 666 | ||
| 667 | /* video hardware */ | |
| 668 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK) | |
| 669 | MDRV_GFXDECODE(badlandb) | |
| 670 | MDRV_PALETTE_LENGTH(256) | |
| 671 | ||
| 672 | MDRV_SCREEN_ADD("main", RASTER) | |
| 673 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 674 | /* note: these parameters are from published specs, not derived */ | |
| 675 | /* the board uses an SOS-2 chip to generate video signals */ | |
| 676 | MDRV_SCREEN_RAW_PARAMS(ATARI_CLOCK_14MHz/2, 456, 0, 336, 262, 0, 240) | |
| 677 | ||
| 678 | MDRV_VIDEO_START(badlands) | |
| 679 | MDRV_VIDEO_UPDATE(badlands) | |
| 680 | ||
| 681 | /* sound hardware */ | |
| 682 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 683 | ||
| 684 | MDRV_SOUND_ADD(YM2151, 2800000/4) | |
| 685 | MDRV_SOUND_ROUTE(0, "mono", 0.30) | |
| 686 | MDRV_SOUND_ROUTE(1, "mono", 0.30) | |
| 687 | MACHINE_DRIVER_END | |
| 688 | ||
| 689 | ||
| 690 | ||
| 691 | /* bootleg by Playmark, uses Joystick controls */ | |
| 692 | ROM_START( badlandb ) | |
| 693 | /* bootleg 68k Program */ | |
| 694 | ROM_REGION( 0x40000, REGION_CPU1, 0 ) /* 4*64k for 68000 code */ | |
| 695 | ROM_LOAD16_BYTE( "blb28.ic21", 0x00000, 0x10000, CRC(dffb025d) SHA1(f2c17607acbbeee7d5d3f3dd2e8dc768b755e991) ) | |
| 696 | ROM_LOAD16_BYTE( "blb22.ic22", 0x00001, 0x10000, CRC(ca3015c4) SHA1(72e1451498143d920239487704f4b4a8a71410e0) ) | |
| 697 | ROM_LOAD16_BYTE( "blb27.ic19", 0x20000, 0x10000, CRC(0e2e807f) SHA1(5b61de066dca12c44335aa68a13c821845657866) ) | |
| 698 | ROM_LOAD16_BYTE( "blb21.ic20", 0x20001, 0x10000, CRC(99a20c2c) SHA1(9b0a5a5dafb8816e72330d302c60339b600b49a8) ) | |
| 699 | ||
| 700 | /* Z80 on the bootleg! */ | |
| 701 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) | |
| 702 | ROM_LOAD( "blb26.ic27", 0x00000, 0x10000, CRC(59503ab4) SHA1(ea5686ee28f6125c1394d687cc35c6322c8f900c) ) | |
| 703 | ||
| 704 | /* the 2nd half of 122,123,124 and 125 is identical to the first half and not used */ | |
| 705 | ROM_REGION( 0x80000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 706 | ROM_LOAD( "blb36.ic123", 0x000000, 0x10000, BAD_DUMP CRC(d7978eeb) SHA1(1adc95bebe9eea8c112d40cd04ab7a8d75c4f961) ) /* bad dump -- empty */ | |
| 707 | ROM_LOAD( "blb37.ic92", 0x008000, 0x10000, CRC(9188db9f) SHA1(8f7dc2c4c0dec9a80b6214a2efaa0de0858de84c) ) | |
| 708 | ROM_LOAD( "blb38.ic125", 0x020000, 0x10000, CRC(4839dd54) SHA1(031efbc144e5e088be0f3576aa514c7c2b775f6d) ) | |
| 709 | ROM_LOAD( "blb31.ic91", 0x028000, 0x10000, BAD_DUMP CRC(77e3dabc) SHA1(fa3c93f37ab11cfe82cf17c25ec2f9b8bee8a64e) ) /* bad dump -- BADADDR xxxx-xxxxxxxxxxx */ | |
| 710 | ROM_LOAD( "blb30.ic122", 0x040000, 0x10000, CRC(61a1bcec) SHA1(fd38bbf8f6c8d1e0e936740db757f9fa85753503) ) | |
| 711 | ROM_LOAD( "blb35.ic90", 0x048000, 0x10000, CRC(649c17f0) SHA1(bed3b7fc2c0516fe309bb81b65d8925ecf3065e4) ) | |
| 712 | ROM_LOAD( "blb32.ic124", 0x060000, 0x10000, CRC(a67c61ba) SHA1(d701eb7f4520b57be54a7113d39f81d52800ee7e) ) | |
| 713 | ROM_LOAD( "blb29.ic88", 0x068000, 0x10000, CRC(a9f280e5) SHA1(daff021d14f17da8c4469270a1e50e5a01d05d49) ) | |
| 714 | ||
| 715 | /* the 1st half of 67 & 68 are empty and not used */ | |
| 716 | ROM_REGION( 0x40000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 717 | ROM_LOAD16_BYTE( "blb33.ic67", 0x10001, 0x10000, CRC(aebf9938) SHA1(3778aacbde07e5a5d010e41ab62d5b0db8632ad8) ) | |
| 718 | ROM_LOAD16_BYTE( "blb34.ic34", 0x00001, 0x10000, CRC(3eac30a5) SHA1(deefc668185bf30ad3eeba73853f97ce12b85293) ) | |
| 719 | ROM_LOAD16_BYTE( "blb39.ic68", 0x10000, 0x10000, CRC(f398f2d7) SHA1(1eef64680101888425490eb4d5b86072e59753cf) ) | |
| 720 | ROM_LOAD16_BYTE( "blb40.ic35", 0x00000, 0x10000, CRC(b47679ee) SHA1(0bd7d40dad214c54021c2014efbd374a7e4c7a3f) ) | |
| 721 | ROM_END | |
| 722 | ||
| 723 | ||
| 724 | static DRIVER_INIT( badlandb ) | |
| 725 | { | |
| 726 | atarigen_eeprom_default = NULL; | |
| 727 | } | |
| 728 | ||
| 729 | ||
| 730 | GAME( 1989, badlandb, badlands, badlandb, badlands, badlandb, ROT0, "[Atari Games] (Playmark bootleg)", "Bad Lands (bootleg)", GAME_NOT_WORKING ) |
| r2241 | r2242 | |
|---|---|---|
| 388 | 388 | |
| 389 | 389 | static WRITE32_HANDLER( psh_eeprom_w ) |
| 390 | 390 | { |
| 391 | if (ACCESSING_ | |
| 391 | if (ACCESSING_ | |
| 392 | 392 | { |
| 393 | 393 | EEPROM_write_bit((data & 0x20000000) ? 1 : 0); |
| 394 | 394 | EEPROM_set_cs_line((data & 0x80000000) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
| 402 | 402 | |
| 403 | 403 | static READ32_HANDLER( psh_eeprom_r ) |
| 404 | 404 | { |
| 405 | if (ACCESSING_ | |
| 405 | if (ACCESSING_ | |
| 406 | 406 | { |
| 407 | 407 | return ((EEPROM_read_bit() << 28) | (readinputport(4) << 24)); /* EEPROM | Region */ |
| 408 | 408 | } |
| r2241 | r2242 | |
| 441 | 441 | #if ROMTEST |
| 442 | 442 | if(offset==4) /* Configure bank for gfx test */ |
| 443 | 443 | { |
| 444 | if ( | |
| 444 | if (ACCESSING_BITS | |
| 445 | 445 | { |
| 446 | 446 | UINT8 *ROM = memory_region(REGION_GFX1); |
| 447 | 447 | memory_set_bankptr(2,&ROM[0x20000 * (psikyosh_vidregs[offset]&0xfff)]); /* Bank comes from vidregs */ |
| r2241 | r2242 | |
| 468 | 468 | |
| 469 | 469 | static WRITE32_HANDLER( psh_ymf_fm_w ) |
| 470 | 470 | { |
| 471 | if ( | |
| 471 | if (ACCESSING_BITS_24_31 | |
| 472 | 472 | { |
| 473 | 473 | YMF278B_control_port_0_A_w(machine, 0, data>>24); |
| 474 | 474 | } |
| 475 | 475 | |
| 476 | if ( | |
| 476 | if (ACCESSING_BITS_16_23 | |
| 477 | 477 | { |
| 478 | 478 | YMF278B_data_port_0_A_w(machine, 0, data>>16); |
| 479 | 479 | } |
| 480 | 480 | |
| 481 | if ( | |
| 481 | if (ACCESSING_BITS_8_15 | |
| 482 | 482 | { |
| 483 | 483 | YMF278B_control_port_0_B_w(machine, 0, data>>8); |
| 484 | 484 | } |
| 485 | 485 | |
| 486 | if ( | |
| 486 | if (ACCESSING_BITS_ | |
| 487 | 487 | { |
| 488 | 488 | YMF278B_data_port_0_B_w(machine, 0, data); |
| 489 | 489 | } |
| r2241 | r2242 | |
| 491 | 491 | |
| 492 | 492 | static WRITE32_HANDLER( psh_ymf_pcm_w ) |
| 493 | 493 | { |
| 494 | if ( | |
| 494 | if (ACCESSING_BITS_24_31 | |
| 495 | 495 | { |
| 496 | 496 | YMF278B_control_port_0_C_w(machine, 0, data>>24); |
| 497 | 497 | |
| r2241 | r2242 | |
| 503 | 503 | #endif |
| 504 | 504 | } |
| 505 | 505 | |
| 506 | if ( | |
| 506 | if (ACCESSING_BITS_16_23 | |
| 507 | 507 | { |
| 508 | 508 | YMF278B_data_port_0_C_w(machine, 0, data>>16); |
| 509 | 509 | } |
| r2241 | r2242 | |
|---|---|---|
| 242 | 242 | if (data & ~0xff000000) |
| 243 | 243 | logerror("CPU #0 PC: %06X - Unknown EEPROM bit written %08X\n",activecpu_get_pc(),data); |
| 244 | 244 | |
| 245 | if ( ACCESSING_ | |
| 245 | if ( ACCESSING_ | |
| 246 | 246 | { |
| 247 | 247 | // latch the bit |
| 248 | 248 | EEPROM_write_bit(data & 0x04000000); |
| r2241 | r2242 | |
| 257 | 257 | |
| 258 | 258 | static WRITE32_HANDLER( OKIM6295_data_0_msb32_w ) |
| 259 | 259 | { |
| 260 | if (ACCESSING_ | |
| 260 | if (ACCESSING_ | |
| 261 | 261 | OKIM6295_data_0_msb_w(machine, offset, data >> 16, mem_mask >> 16); |
| 262 | 262 | } |
| 263 | 263 | |
| r2241 | r2242 | |
| 269 | 269 | static WRITE32_HANDLER( paletteram32_xBBBBBGGGGGRRRRR_dword_w ) |
| 270 | 270 | { |
| 271 | 271 | paletteram16 = (UINT16 *)paletteram32; |
| 272 | if (ACCESSING_MSW32) paletteram16_xBBBBBGGGGGRRRRR_word_w(machine, offset*2, data >> 16, mem_mask >> 16); | |
| 273 | if (ACCESSING_LSW32) paletteram16_xBBBBBGGGGGRRRRR_word_w(machine, offset*2+1, data, mem_mask); | |
| 272 | if (ACCESSING_BITS_16_31) paletteram16_xBBBBBGGGGGRRRRR_word_w(machine, offset*2, data >> 16, mem_mask >> 16); | |
| 273 | if (ACCESSING_BITS_0_15) paletteram16_xBBBBBGGGGGRRRRR_word_w(machine, offset*2+1, data, mem_mask); | |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | static UINT32 input_sel; |
| 277 | 277 | static WRITE32_HANDLER( darkhors_input_sel_w ) |
| 278 | 278 | { |
| 279 | 279 | COMBINE_DATA(&input_sel); |
| 280 | // if (ACCESSING_ | |
| 280 | // if (ACCESSING_BITS_16_31) popmessage("%04X",data >> 16); | |
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | static int mask_to_bit( int mask ) |
| r2241 | r2242 | |
| 309 | 309 | static WRITE32_HANDLER( darkhors_unk1_w ) |
| 310 | 310 | { |
| 311 | 311 | // 0x1000 lockout |
| 312 | // if (ACCESSING_ | |
| 312 | // if (ACCESSING_BITS_16_31) popmessage("%04X",data >> 16); | |
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | static ADDRESS_MAP_START( darkhors_readmem, ADDRESS_SPACE_PROGRAM, 32 ) |
| r2241 | r2242 | |
|---|---|---|
| 122 | 122 | |
| 123 | 123 | static WRITE16_HANDLER(colordac_w) |
| 124 | 124 | { |
| 125 | if (ACCESSING_ | |
| 125 | if (ACCESSING_ | |
| 126 | 126 | { |
| 127 | 127 | colorram[clr_offset] = data; |
| 128 | 128 | palette_set_color_rgb(Machine, clr_offset/3, |
| r2241 | r2242 | |
| 133 | 133 | clr_offset = (clr_offset+1) % (256*3); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | if (ACCESSING_ | |
| 136 | if (ACCESSING_ | |
| 137 | 137 | { |
| 138 | 138 | clr_offset = (data>>8) * 3; |
| 139 | 139 | } |
| r2241 | r2242 | |
| 145 | 145 | |
| 146 | 146 | static WRITE16_HANDLER( bishjan_low_w ) |
| 147 | 147 | { |
| 148 | if (ACCESSING_ | |
| 148 | if (ACCESSING_ | |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | static WRITE16_HANDLER( bishjan_tmap1_w ) |
| 152 | 152 | { |
| 153 | if (ACCESSING_ | |
| 153 | if (ACCESSING_ | |
| 154 | 154 | { |
| 155 | 155 | bishjan_videoram1[offset*2] = data | bishjan_low; |
| 156 | 156 | tilemap_mark_tile_dirty(tmap1, offset*2); |
| 157 | 157 | } |
| 158 | if (ACCESSING_ | |
| 158 | if (ACCESSING_ | |
| 159 | 159 | { |
| 160 | 160 | bishjan_videoram1[offset*2+1] = (data << 8) | bishjan_low; |
| 161 | 161 | tilemap_mark_tile_dirty(tmap1, offset*2+1); |
| r2241 | r2242 | |
| 163 | 163 | } |
| 164 | 164 | static WRITE16_HANDLER( bishjan_tmap2_w ) |
| 165 | 165 | { |
| 166 | if (ACCESSING_ | |
| 166 | if (ACCESSING_ | |
| 167 | 167 | { |
| 168 | 168 | bishjan_videoram2[offset*2] = data | bishjan_low; |
| 169 | 169 | tilemap_mark_tile_dirty(tmap2, offset*2); |
| 170 | 170 | } |
| 171 | if (ACCESSING_ | |
| 171 | if (ACCESSING_ | |
| 172 | 172 | { |
| 173 | 173 | bishjan_videoram2[offset*2+1] = (data << 8) | bishjan_low; |
| 174 | 174 | tilemap_mark_tile_dirty(tmap2, offset*2+1); |
| r2241 | r2242 | |
| 199 | 199 | |
| 200 | 200 | static WRITE16_HANDLER( bishjan_sel_w ) |
| 201 | 201 | { |
| 202 | if (ACCESSING_ | |
| 202 | if (ACCESSING_ | |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | static READ16_HANDLER( bishjan_unk_r ) |
| r2241 | r2242 | |
| 214 | 214 | |
| 215 | 215 | static WRITE16_HANDLER( bishjan_input_w ) |
| 216 | 216 | { |
| 217 | if (ACCESSING_ | |
| 217 | if (ACCESSING_ | |
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | static READ16_HANDLER( bishjan_input_r ) |
| r2241 | r2242 | |
| 234 | 234 | |
| 235 | 235 | static WRITE16_HANDLER( bishjan_coin_w ) |
| 236 | 236 | { |
| 237 | if (ACCESSING_ | |
| 237 | if (ACCESSING_ | |
| 238 | 238 | { |
| 239 | 239 | // coin out data & 0x01; |
| 240 | 240 | bishjan_hopper = data & 0x02; // hopper |
| r2241 | r2242 | |
|---|---|---|
| 99 | 99 | static WRITE16_HANDLER( io_latch_w ) |
| 100 | 100 | { |
| 101 | 101 | /* lower byte */ |
| 102 | if (ACCESSING_ | |
| 102 | if (ACCESSING_ | |
| 103 | 103 | { |
| 104 | 104 | /* bit 4 resets the sound CPU */ |
| 105 | 105 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 685 | 685 | |
| 686 | 686 | static WRITE16_HANDLER(mcu_w) |
| 687 | 687 | { |
| 688 | if (ACCESSING_ | |
| 688 | if (ACCESSING_ | |
| 689 | 689 | mcu_ram[offset] = data & 0xff; |
| 690 | 690 | } |
| 691 | 691 |
| r2241 | r2242 | |
|---|---|---|
| 372 | 372 | { |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | /* YEAR NAME PARENT MACHINE INPUT INIT MONITOR COMPANY FULLNAME FLAGS) */ | |
| 376 | GAME( 1983, esh, 0, esh, esh, esh, ROT0, "Funai/Gakken", "Esh's Aurunmilla (set 1)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 377 | GAME( 1983, esha, 0, esh, esh, esh, ROT0, "Funai/Gakken", "Esh's Aurunmilla (Set 2)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 378 | GAME( 1983, eshb, 0, esh, esh, esh, ROT0, "Funai/Gakken", "Esh's Aurunmilla (Set 3)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 375 | /* YEAR NAME PARENT MACHINE INPUT INIT MONITOR COMPANY FULLNAME FLAGS */ | |
| 376 | GAME( 1983, esh, 0, esh, esh, esh, ROT0, "Funai/Gakken", "Esh's Aurunmilla (set 1)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 377 | GAME( 1983, esha, esh, esh, esh, esh, ROT0, "Funai/Gakken", "Esh's Aurunmilla (Set 2)", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 378 | GAME( 1983, eshb, esh, esh, esh, esh, ROT0, "Funai/Gakken", "Esh's Aurunmilla (Set 3)", GAME_NOT_WORKING|GAME_NO_SOUND) |
| r2241 | r2242 | |
|---|---|---|
| 402 | 402 | ROM_REGION( 0x10000, NEOGEO_REGION_ZOOM_Y_TABLE, 0 ) \ |
| 403 | 403 | ROM_LOAD( "000-lo.lo", 0x00000, 0x10000, CRC(e09e253c) SHA1(2b1c719531dac9bb503f22644e6e4236b91e7cfc) ) |
| 404 | 404 | |
| 405 | ||
| 406 | 405 | /*************************************************************************** |
| 407 | 406 | |
| 408 | 407 | Neo-Geo game pcb infos: |
| r2241 | r2242 | |
| 433 | 432 | . NEO-PVC |
| 434 | 433 | . NEO-SMA |
| 435 | 434 | . PCM |
| 435 | . PRO-CT0 | |
| 436 | . SNK-9201 | |
| 436 | 437 | |
| 437 | 438 | |
| 438 | 439 | Known pcb's: |
| 439 | 440 | ============ |
| 440 | 441 | |
| 441 | 442 | MVS CHA: |
| 443 | -- SNK -- | |
| 442 | 444 | . NEO-MVS CHA-8M |
| 443 | 445 | . NEO-MVS CHA42G |
| 444 | 446 | . NEO-MVS CHA42G-1 |
| 445 | . NEO-MVS CHA42G-2 | |
| 447 | . NEO-MVS CHA 42G-2 | |
| 448 | . NEO-MVS CHA 42G-3 | |
| 446 | 449 | . NEO-MVS CHA42G-3B |
| 447 | 450 | . NEO-MVS CHA256 |
| 448 | 451 | . NEO-MVS CHA256B |
| 449 | 452 | . NEO-MVS PSTM CHA136 |
| 450 | 453 | . NEO-MVS CHA512Y |
| 451 | . NEO-MVS CHAFIO | |
| 454 | . NEO-MVS CHAFIO (1999.6.14) | |
| 455 | . NEO-MVS CHAFIO (SNK 2002) - MADE IN KOREA | |
| 456 | -- SNKPLAYMORE -- | |
| 457 | . NEO-MVS CHAFIO (2003.7.24) | |
| 452 | 458 | |
| 453 | 459 | MVS PROG: |
| 460 | -- SNK -- | |
| 461 | . NEO-MVS PROG-EP | |
| 454 | 462 | . NEO-MVS PROG8M42 |
| 455 | 463 | . NEO-MVS PROG16 |
| 456 | 464 | . NEO-MVS PROG42G |
| 457 | 465 | . NEO-MVS PROG42G-1 |
| 466 | . NEO-MVS PROG-G2 | |
| 467 | . NEO-MVS PROG 4096 | |
| 468 | . NEO-MVS PROG 4096 B | |
| 458 | 469 | . NEO-MVS PROGGSC |
| 459 | 470 | . NEO-MVS PROGTOP |
| 460 | . NEO-MVS PROGSF1 | |
| 461 | . NEO-MVS PROGEOP | |
| 462 | . NEO-MVS PROGLBA - LBA-SUB (2000.2.24) | |
| 471 | . NEO-MVS PROGSF1 (1998.6.17) | |
| 472 | . NEO-MVS PROGEOP (1999.2.2) | |
| 473 | . NEO-MVS PROGLBA (1999.4.12) - LBA-SUB (2000.2.24) | |
| 463 | 474 | . NEO-MVS PROGBK1 |
| 464 | . NEO-MVS PROGBK2 | |
| 465 | . NEO-MVS PROGBK2R | |
| 466 | . NEO-MVS PROGBK3R | |
| 467 | . NEO-MVS PROGBK3S | |
| 475 | . NEO-MVS PROGBK2 (2000.3.21) | |
| 476 | . NEO-MVS PROGBK2 (SNK 2002) - MADE IN KOREA | |
| 477 | -- SNKPLAYMORE -- | |
| 478 | . NEO-MVS PROGBK2R (2003.8.26) - NEO-HYCS (2003.9.29) | |
| 479 | . NEO-MVS PROGBK3R (2003.9.2) - NEO-HYCS (2003.9.29) | |
| 480 | . NEO-MVS PROGBK3S (2003.10.1) | |
| 481 | . NEO-MVS PROGBK2S (2003.10.xx) | |
| 468 | 482 | |
| 483 | ||
| 469 | 484 | AES CHA: |
| 485 | -- SNK -- | |
| 470 | 486 | . NEO-AEG CHA-32 |
| 487 | . NEO-AEG CHA-8M | |
| 488 | . NEO-AEG CHA42G | |
| 471 | 489 | . NEO-AEG CHA42G-1 |
| 490 | . NEO-AEG CHA42G-2B | |
| 472 | 491 | . NEO-AEG CHA42G-3 |
| 473 | 492 | . NEO-AEG CHA42G-4 |
| 474 | 493 | . NEO-AEG CHA256 |
| 475 | 494 | . NEO-AEG CHA256[B] |
| 476 | 495 | . NEO-AEG CHA256RY |
| 477 | 496 | . NEO-AEG CHA512Y |
| 478 | . NEO-AEG CHAFIO (SNK 1999.8.10) | |
| 497 | . NEO-AEG CHAFIO (1999.8.10) | |
| 498 | -- SNKPLAYMORE -- | |
| 499 | . NEO-AEG CHAFIO (2003.7.24) | |
| 479 | 500 | |
| 480 | 501 | AES PROG: |
| 502 | -- SNK -- | |
| 481 | 503 | . NEO-AEG PROG-NAM |
| 482 | 504 | . NEO-AEG PROG-HERO |
| 483 | . NEO-AEG PROG B | |
| 484 | 505 | . NEO-AEG PROG-4A |
| 485 | 506 | . NEO-AEG PROG-4B |
| 507 | . NEO-AEG PROG 8M42 | |
| 508 | . NEO-AEG PROG B | |
| 486 | 509 | . NEO-AEG PROG16 |
| 510 | . NEO-AEG PROG42G | |
| 487 | 511 | . NEO-AEG PROG42G-COM |
| 488 | 512 | . NEO-AEG PROG42G-1 |
| 489 | . NEO-AEG PROG4096B | |
| 513 | . NEO-AEG PROG-G2 | |
| 514 | . NEO-AEG PROG4096 B | |
| 490 | 515 | . NEO-AEG PROGGS |
| 491 | . NEO-AEG PROGLBA | |
| 516 | . NEO-AEG PROGTOP2 | |
| 517 | . NEO-AEG PROGLBA (1999.7.6) | |
| 492 | 518 | . NEO-AEG PROGRK |
| 493 | 519 | . NEO-AEG PROGRKB |
| 494 | 520 | . NEO-AEG PROGBK1Y |
| 495 | . NEO-AEG PROGBK2 | |
| 496 | . NEO-AEG PROGBK3R | |
| 521 | -- PLAYMORE -- | |
| 522 | . NEO-AEG PROGBK2 (2002.4.1) | |
| 523 | -- SNKPLAYMORE -- | |
| 524 | . NEO-AEG PROGBK3R (2003.8.29) - NEO-HYCS (2003.9.29) | |
| 497 | 525 | |
| 498 | The above only covers SNK / SNK-PLAYMORE pcb's. There also exists a | |
| 526 | ||
| 527 | Cartridge colours: | |
| 528 | ================== | |
| 529 | ||
| 530 | MVS cartridges were produced in different colours. | |
| 531 | ||
| 532 | Known cartridge colours: | |
| 533 | . Black | |
| 534 | . Green | |
| 535 | . Grey | |
| 536 | . Transparent | |
| 537 | . Transparent Blue | |
| 538 | . Transparent Green | |
| 539 | . White | |
| 540 | . Yellow | |
| 541 | ||
| 542 | The above listed only covers SNK / PLAYMORE / SNKPLAYMORE pcb's. There also exists a | |
| 499 | 543 | wide range of 'bootleg' pcb's. |
| 500 | 544 | |
| 545 | Neo-Geo game pcb infos by Johnboy | |
| 546 | ||
| 501 | 547 | ****************************************************************************/ |
| 502 | 548 | |
| 503 | ||
| 504 | ROM_START( nam1975 ) | |
| 549 | ROM_START( nam1975 ) /* MVS AND AES VERSION */ | |
| 505 | 550 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 506 | 551 | ROM_LOAD16_WORD_SWAP( "001-p1.bin", 0x000000, 0x080000, CRC(cc9fc951) SHA1(92f4e6ddeeb825077d92dbb70b50afea985f15c0) ) |
| 507 | 552 | |
| 508 | 553 | NEO_SFIX_128K( "001-s1.bin", CRC(7988ba51) SHA1(bc2f661f381b06b34ac2fa215dd5689d3bf84832) ) |
| 509 | 554 | |
| 510 | NEO_BIOS_AUDIO_128K( "001-m1.bin", CRC(9e63843f) SHA1(4dcc642ff19636cfc5d294c125afee53cc3ff640) ) | |
| 555 | /* MB832000 */ | |
| 556 | NEO_BIOS_AUDIO_256K( "001-m1.bin", CRC(ba874463) SHA1(a83514f4b20301f84a98699900e2593f1c1b8846) ) | |
| 511 | 557 | |
| 512 | 558 | ROM_REGION( 0x080000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 513 | 559 | ROM_LOAD( "001-v1.bin", 0x000000, 0x080000, CRC(a7c3d5e5) SHA1(e3efc86940f91c53b7724c4566cfc21ea1a7a465) ) |
| r2241 | r2242 | |
| 532 | 578 | |
| 533 | 579 | NEO_SFIX_128K( "002-s1.bin", CRC(1a7fd0c6) SHA1(3fc701b7afddab369ddf9dedfbc5e1aaf80b8af3) ) |
| 534 | 580 | |
| 535 | NEO_BIOS_AUDIO_128K( "002-m1.bin", CRC(753a2a08) SHA1(4e117120019c420789e20bd4cc6cff845867cbfd) ) | |
| 581 | /* MB832000 */ | |
| 582 | NEO_BIOS_AUDIO_256K( "002-m1.bin", CRC(4ecaa4ee) SHA1(50abfb8eed6cb4887393089f9ccc76f306ef69b5) ) | |
| 536 | 583 | |
| 537 | 584 | ROM_REGION( 0x200000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 538 | 585 | ROM_LOAD( "002-v11.bin", 0x000000, 0x080000, CRC(b7b925bd) SHA1(644c92fa90e74998e73714f74b1e0680ee372a07) ) |
| r2241 | r2242 | |
| 544 | 591 | ROM_LOAD( "002-v21.bin", 0x000000, 0x080000, CRC(04a733d1) SHA1(84159368c0f6de2c3b8121227201cd3422455cf6) ) |
| 545 | 592 | |
| 546 | 593 | ROM_REGION( 0x300000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 547 | ROM_LOAD16_BYTE( "002-c1.bin", 0x000000, 0x080000, CRC(aaff2a45) SHA1(c91ee72d1d74514df8ec44fca703409d92158ae3) ) | |
| 548 | ROM_LOAD16_BYTE( "002-c2.bin", 0x000001, 0x080000, CRC(3ba0f7e4) SHA1(f023b134b9c7994f477867307d2732026033501d) ) | |
| 549 | ROM_LOAD16_BYTE( "002-c3.bin", 0x100000, 0x080000, CRC(96f0fdfa) SHA1(9f779a1ae46aeda54d69382b074392ade687f62f) ) | |
| 550 | ROM_LOAD16_BYTE( "002-c4.bin", 0x100001, 0x080000, CRC(5fd87f2f) SHA1(a5dd6f26f9485f216c2428ae1792c182beb10dbc) ) | |
| 551 | ROM_LOAD16_BYTE( "002-c5.bin", 0x200000, 0x080000, CRC(807ed83b) SHA1(3268e7d4602c3f55f1e0da2c80653d5ae461ef67) ) | |
| 552 | ROM_LOAD16_BYTE( "002-c6.bin", 0x200001, 0x080000, CRC(5a3cad41) SHA1(c620d18f4ff32ed5489c941dfc641030a54f1c14) ) | |
| 594 | ROM_LOAD16_BYTE( "002-c1.bin", 0x000000, 0x080000, CRC(aaff2a45) SHA1(c91ee72d1d74514df8ec44fca703409d92158ae3) ) /* Plane 0,1 */ | |
| 595 | ROM_LOAD16_BYTE( "002-c2.bin", 0x000001, 0x080000, CRC(3ba0f7e4) SHA1(f023b134b9c7994f477867307d2732026033501d) ) /* Plane 2,3 */ | |
| 596 | ROM_LOAD16_BYTE( "002-c3.bin", 0x100000, 0x080000, CRC(96f0fdfa) SHA1(9f779a1ae46aeda54d69382b074392ade687f62f) ) /* Plane 0,1 */ | |
| 597 | ROM_LOAD16_BYTE( "002-c4.bin", 0x100001, 0x080000, CRC(5fd87f2f) SHA1(a5dd6f26f9485f216c2428ae1792c182beb10dbc) ) /* Plane 2,3 */ | |
| 598 | ROM_LOAD16_BYTE( "002-c5.bin", 0x200000, 0x080000, CRC(807ed83b) SHA1(3268e7d4602c3f55f1e0da2c80653d5ae461ef67) ) /* Plane 0,1 */ | |
| 599 | ROM_LOAD16_BYTE( "002-c6.bin", 0x200001, 0x080000, CRC(5a3cad41) SHA1(c620d18f4ff32ed5489c941dfc641030a54f1c14) ) /* Plane 2,3 */ | |
| 553 | 600 | ROM_END |
| 554 | 601 | |
| 555 | ROM_START( tpgolf ) | |
| 602 | ROM_START( tpgolf ) /* MVS AND AES VERSION */ | |
| 556 | 603 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 557 | 604 | ROM_LOAD16_WORD_SWAP( "003-p1.bin", 0x000000, 0x080000, CRC(f75549ba) SHA1(3f7bdf5e2964e921fe1dd87c51a79a1a501fc73f) ) |
| 558 | 605 | ROM_LOAD16_WORD_SWAP( "003-p2.bin", 0x080000, 0x080000, CRC(b7809a8f) SHA1(1604c889592c9610668bff296de48a0d6906156d) ) |
| 559 | 606 | |
| 560 | 607 | NEO_SFIX_128K( "003-s1.bin", CRC(7b3eb9b1) SHA1(39cd8bad9f8bfdeb8ac681b5b79ae5aa81c8dd5f) ) |
| 561 | 608 | |
| 562 | NEO_BIOS_AUDIO_64K( "003-m1.bin", BAD_DUMP CRC(7851d0d9) SHA1(d021cef958cc37ab170b78d7a4b3ae94947e4d13) ) | |
| 609 | /* TC531001 */ | |
| 610 | NEO_BIOS_AUDIO_128K( "003-m1.bin", CRC(4cc545e6) SHA1(8e014b8cab3e5b3995756a4ea52ce49c36866377) ) | |
| 563 | 611 | |
| 564 | 612 | ROM_REGION( 0x080000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 565 | ROM_LOAD( "003-v1 | |
| 613 | ROM_LOAD( "003-v1 | |
| 566 | 614 | |
| 567 | 615 | ROM_REGION( 0x200000, NEOGEO_REGION_AUDIO_DATA_2, 0 ) |
| 568 | ROM_LOAD( "003-v2 | |
| 616 | ROM_LOAD( "003-v2 | |
| 569 | 617 | ROM_LOAD( "003-v22.bin", 0x080000, 0x080000, CRC(9a5f58d4) SHA1(2b580595e1820430a36f06fd3e0e0b8f7d686889) ) |
| 570 | 618 | ROM_LOAD( "003-v23.bin", 0x100000, 0x080000, CRC(30f53e54) SHA1(22461f88a56d272b78dbc23204c0c6816200532b) ) |
| 571 | 619 | ROM_LOAD( "003-v24.bin", 0x180000, 0x080000, CRC(5ba0f501) SHA1(ca02937a611a2c50c9e4b54f8fd4eaea09259894) ) |
| 572 | 620 | |
| 573 | 621 | ROM_REGION( 0x400000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 574 | ROM_LOAD16_BYTE( "003-c1.bin", 0x000000, 0x80000, CRC(0315fbaf) SHA1(583c9253219c1026d81ee5e0cf5568683adc2633) ) | |
| 575 | ROM_LOAD16_BYTE( "003-c2.bin", 0x000001, 0x80000, CRC(b4c15d59) SHA1(b0d8ec967f9b8e5216301c10b2d36912abce6515) ) | |
| 576 | ROM_LOAD16_BYTE( "003-c3.bin", 0x100000, 0x80000, CRC(b09f1612) SHA1(03fbb5db4e377ce9cb4e65ddbc0b114c02e7bae1) ) | |
| 577 | ROM_LOAD16_BYTE( "003-c4.bin", 0x100001, 0x80000, CRC(150ea7a1) SHA1(13edc30144b56285ef37eb8aa6fb934704de18d8) ) | |
| 578 | ROM_LOAD16_BYTE( "003-c5.bin", 0x200000, 0x80000, CRC(9a7146da) SHA1(2fc83d13e3e9565919aab01bf2a1b028f433b547) ) | |
| 579 | ROM_LOAD16_BYTE( "003-c6.bin", 0x200001, 0x80000, CRC(1e63411a) SHA1(ee397e2f679042e87b37d95837af62bb95a72af9) ) | |
| 580 | ROM_LOAD16_BYTE( "003-c7.bin", 0x300000, 0x80000, CRC(2886710c) SHA1(1533dd935f0a8f92a0a3c47d1d2bc6d035454244) ) | |
| 581 | ROM_LOAD16_BYTE( "003-c8.bin", 0x300001, 0x80000, CRC(422af22d) SHA1(f67c844c34545de6ea187f5bfdf440dec8518532) ) | |
| 622 | ROM_LOAD16_BYTE( "003-c1.bin", 0x000000, 0x80000, CRC(0315fbaf) SHA1(583c9253219c1026d81ee5e0cf5568683adc2633) ) /* Plane 0,1 */ | |
| 623 | ROM_LOAD16_BYTE( "003-c2.bin", 0x000001, 0x80000, CRC(b4c15d59) SHA1(b0d8ec967f9b8e5216301c10b2d36912abce6515) ) /* Plane 2,3 */ | |
| 624 | ROM_LOAD16_BYTE( "003-c3.bin", 0x100000, 0x80000, CRC(8ce3e8da) SHA1(bc6c49b27d498f75a0d1a8c4d0cca75e140b9efc) ) /* Plane 0,1 */ | |
| 625 | ROM_LOAD16_BYTE( "003-c4.bin", 0x100001, 0x80000, CRC(29725969) SHA1(f1407da84919c2b3fe0e8f1fca65934b147c86c7) ) /* Plane 2,3 */ | |
| 626 | ROM_LOAD16_BYTE( "003-c5.bin", 0x200000, 0x80000, CRC(9a7146da) SHA1(2fc83d13e3e9565919aab01bf2a1b028f433b547) ) /* Plane 0,1 */ | |
| 627 | ROM_LOAD16_BYTE( "003-c6.bin", 0x200001, 0x80000, CRC(1e63411a) SHA1(ee397e2f679042e87b37d95837af62bb95a72af9) ) /* Plane 2,3 */ | |
| 628 | ROM_LOAD16_BYTE( "003-c7.bin", 0x300000, 0x80000, CRC(2886710c) SHA1(1533dd935f0a8f92a0a3c47d1d2bc6d035454244) ) /* Plane 0,1 */ | |
| 629 | ROM_LOAD16_BYTE( "003-c8.bin", 0x300001, 0x80000, CRC(422af22d) SHA1(f67c844c34545de6ea187f5bfdf440dec8518532) ) /* Plane 2,3 */ | |
| 582 | 630 | ROM_END |
| 583 | 631 | |
| 584 | 632 | ROM_START( mahretsu ) |
| r2241 | r2242 | |
| 611 | 659 | |
| 612 | 660 | NEO_SFIX_128K( "005-s1.bin", CRC(1c5369a2) SHA1(db0dba0a7dced6c9ca929c5abda491b05d84199c) ) |
| 613 | 661 | |
| 614 | NEO_BIOS_AUDIO_128K( "005-m1.bin", CRC(b5253c6a) SHA1(3e9ee04c6c31c951774bda89929188b357bfdf46) ) | |
| 662 | /* MB832000 */ | |
| 663 | NEO_BIOS_AUDIO_256K( "005-m1.bin", CRC(26259f0f) SHA1(4f3e500093d61585048767dbd9fa09b3911a05d6) ) | |
| 615 | 664 | |
| 616 | 665 | ROM_REGION( 0x080000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 617 | 666 | ROM_LOAD( "005-v11.bin", 0x000000, 0x080000, CRC(cc0455fd) SHA1(a8ff4270e7705e263d25ff0b301f503bccea7e59) ) |
| r2241 | r2242 | |
| 635 | 684 | |
| 636 | 685 | NEO_SFIX_128K( "005-s1.bin", CRC(1c5369a2) SHA1(db0dba0a7dced6c9ca929c5abda491b05d84199c) ) |
| 637 | 686 | |
| 638 | NEO_BIOS_AUDIO_128K( "005-m1.bin", CRC(b5253c6a) SHA1(3e9ee04c6c31c951774bda89929188b357bfdf46) ) | |
| 687 | /* MB832000 */ | |
| 688 | NEO_BIOS_AUDIO_256K( "005-m1.bin", CRC(26259f0f) SHA1(4f3e500093d61585048767dbd9fa09b3911a05d6) ) | |
| 639 | 689 | |
| 640 | 690 | ROM_REGION( 0x080000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 641 | 691 | ROM_LOAD( "005-v11.bin", 0x000000, 0x080000, CRC(cc0455fd) SHA1(a8ff4270e7705e263d25ff0b301f503bccea7e59) ) |
| r2241 | r2242 | |
| 659 | 709 | |
| 660 | 710 | NEO_SFIX_128K( "006-s1.bin", CRC(eb5189f0) SHA1(0239c342ea62e73140a2306052f226226461a478) ) |
| 661 | 711 | |
| 662 | NEO_BIOS_AUDIO_128K( "006-m1.bin", CRC(f0b6425d) SHA1(ba90c665d3e84c40d0383be64b1399ba831c0cfc) ) | |
| 712 | /* MB832000 */ | |
| 713 | NEO_BIOS_AUDIO_256K( "006-m1.bin", CRC(92e7b4fe) SHA1(d240056cd632f92bdfaa5e0492c09aa9bd7b0471) ) | |
| 663 | 714 | |
| 664 | 715 | ROM_REGION( 0x100000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 665 | 716 | ROM_LOAD( "006-v11.bin", 0x000000, 0x080000, CRC(cdf74a42) SHA1(a17106cc3f9e5c5d52b4def861c0545a98151da2) ) |
| r2241 | r2242 | |
| 684 | 735 | |
| 685 | 736 | NEO_SFIX_128K( "006-s1.bin", CRC(eb5189f0) SHA1(0239c342ea62e73140a2306052f226226461a478) ) |
| 686 | 737 | |
| 687 | NEO_BIOS_AUDIO_128K( "006-m1.bin", CRC(f0b6425d) SHA1(ba90c665d3e84c40d0383be64b1399ba831c0cfc) ) | |
| 738 | /* MB832000 */ | |
| 739 | NEO_BIOS_AUDIO_256K( "006-m1.bin", CRC(92e7b4fe) SHA1(d240056cd632f92bdfaa5e0492c09aa9bd7b0471) ) | |
| 688 | 740 | |
| 689 | 741 | ROM_REGION( 0x100000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 690 | 742 | ROM_LOAD( "006-v11.bin", 0x000000, 0x080000, CRC(cdf74a42) SHA1(a17106cc3f9e5c5d52b4def861c0545a98151da2) ) |
| r2241 | r2242 | |
| 703 | 755 | ROM_LOAD16_BYTE( "006-c4.bin", 0x100001, 0x080000, CRC(205e3208) SHA1(aa2acf2c6f48ffffdcc0c94ddc031acc9e4a2e68) ) /* Plane 2,3 */ |
| 704 | 756 | ROM_END |
| 705 | 757 | |
| 706 | ROM_START( alpham2 ) | |
| 758 | ROM_START( alpham2 ) /* MVS AND AES VERSION */ | |
| 707 | 759 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 708 | 760 | ROM_LOAD16_WORD_SWAP( "007-p1.bin", 0x000000, 0x080000, CRC(5b266f47) SHA1(8afbf995989f47ad93fea1f31a884afc7228b53a) ) |
| 709 | 761 | ROM_LOAD16_WORD_SWAP( "007-p2.bin", 0x080000, 0x020000, CRC(eb9c1044) SHA1(65d3416dcd96663bc4e7cefe90ecb7c1eafb2dda) ) |
| r2241 | r2242 | |
| 808 | 860 | |
| 809 | 861 | NEO_SFIX_128K( "011-s1.bin", CRC(ec5fdb96) SHA1(8003028025ac7bf531e568add6ba66c02d0b7e84) ) |
| 810 | 862 | |
| 811 | NEO_BIOS_AUDIO_128K( "011-m1.bin", CRC(6f737b5a) SHA1(d52f7b6786b6e33f09ba0cf30889082c1dfb9336) ) | |
| 863 | /* MB832000 */ | |
| 864 | NEO_BIOS_AUDIO_256K( "011-m1.bin", CRC(ca661f1b) SHA1(4e3cb57db716ec48487c1b070c3a55a5faf40856) ) | |
| 812 | 865 | |
| 813 | 866 | ROM_REGION( 0x180000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 814 | 867 | ROM_LOAD( "011-v11.bin", 0x000000, 0x100000, CRC(5c674d5c) SHA1(d7b9beddeb247b584cea9ca6c43ec6869809b673) ) |
| r2241 | r2242 | |
| 867 | 920 | ROM_LOAD16_BYTE( "016-c4.bin", 0x200001, 0x100000, CRC(070506e2) SHA1(3a2ec365e1d87a9c5ce1ee9bea88402a8eef4ed7) ) /* Plane 2,3 */ |
| 868 | 921 | ROM_END |
| 869 | 922 | |
| 870 | ROM_START( kotmh ) | |
| 923 | ROM_START( kotmh ) /* AES VERSION */ | |
| 871 | 924 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 872 | 925 | ROM_LOAD16_WORD_SWAP( "016-hp1.bin",0x000000, 0x080000, CRC(b774621e) SHA1(7684b2e07163aec68cd083ef1d8900f855f6cb42) ) |
| 873 | 926 | ROM_LOAD16_WORD_SWAP( "016-p2.bin", 0x080000, 0x020000, BAD_DUMP CRC(12afdc2b) SHA1(3a95f5910cbb9f17e63ddece995c6e120fa2f622) ) |
| r2241 | r2242 | |
| 911 | 964 | ROM_LOAD16_BYTE( "017-c4.bin", 0x200001, 0x100000, CRC(f4f3c9cb) SHA1(8faafa89dbd0345218f71f891419d2e4e7578200) ) /* Plane 2,3 */ |
| 912 | 965 | ROM_END |
| 913 | 966 | |
| 914 | ROM_START( sengokh ) | |
| 967 | ROM_START( sengokh ) /* AES VERSION */ | |
| 915 | 968 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 916 | ROM_LOAD16_WORD_SWAP( "017-p1 | |
| 969 | ROM_LOAD16_WORD_SWAP( "017-hp1 | |
| 917 | 970 | ROM_LOAD16_WORD_SWAP( "017-p2.bin", 0x080000, 0x020000, CRC(3024bbb3) SHA1(88892e1292dd60f35a76f9a22e623d4f0f9693cc) ) |
| 918 | 971 | |
| 919 | 972 | NEO_SFIX_128K( "017-s1.bin", CRC(b246204d) SHA1(73dce64c61fb5bb7e836a8e60f081bb77d80d281) ) |
| r2241 | r2242 | |
| 933 | 986 | ROM_LOAD16_BYTE( "017-c4.bin", 0x200001, 0x100000, CRC(f4f3c9cb) SHA1(8faafa89dbd0345218f71f891419d2e4e7578200) ) /* Plane 2,3 */ |
| 934 | 987 | ROM_END |
| 935 | 988 | |
| 936 | ROM_START( burningf ) | |
| 989 | ROM_START( burningf ) /* MVS VERSION */ | |
| 937 | 990 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 938 | 991 | ROM_LOAD16_WORD_SWAP( "018-p1.bin", 0x000000, 0x080000, CRC(4092c8db) SHA1(df194a4ad2c35e0e18bc053ff9284183444a4666) ) |
| 939 | 992 | |
| r2241 | r2242 | |
| 991 | 1044 | ROM_LOAD( "019-v21.bin", 0x000000, 0x080000, CRC(2efd5ada) SHA1(8ba70f5f665d566824333075227d9bce1253b8d8) ) |
| 992 | 1045 | |
| 993 | 1046 | ROM_REGION( 0x100000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 994 | ROM_LOAD16_BYTE( "019-c1.bin", 0x000000, 0x080000, CRC(4ccdef18) SHA1(5011e30ec235d0b0a5a513a11d4275777e61acdb) ) | |
| 995 | ROM_LOAD16_BYTE( "019-c2.bin", 0x000001, 0x080000, CRC(d4dd0802) SHA1(82069752028c118d42384a95befde45844f0f247) ) | |
| 1047 | ROM_LOAD16_BYTE( "019-c1.bin", 0x000000, 0x080000, CRC(4ccdef18) SHA1(5011e30ec235d0b0a5a513a11d4275777e61acdb) ) /* Plane 0,1 */ | |
| 1048 | ROM_LOAD16_BYTE( "019-c2.bin", 0x000001, 0x080000, CRC(d4dd0802) SHA1(82069752028c118d42384a95befde45844f0f247) ) /* Plane 2,3 */ | |
| 996 | 1049 | ROM_END |
| 997 | 1050 | |
| 998 | 1051 | ROM_START( gpilots ) |
| r2241 | r2242 | |
| 1002 | 1055 | |
| 1003 | 1056 | NEO_SFIX_128K( "020-s1.bin", CRC(a6d83d53) SHA1(9a8c092f89521cc0b27a385aa72e29cbaca926c5) ) |
| 1004 | 1057 | |
| 1005 | NEO_BIOS_AUDIO_128K( "020-m1.bin", BAD_DUMP CRC(48409377) SHA1(0e212d2c76856a90b2c2fdff675239525972ac43) ) | |
| 1058 | /* TC531001 */ | |
| 1059 | NEO_BIOS_AUDIO_128K( "020-m1.bin", CRC(48409377) SHA1(0e212d2c76856a90b2c2fdff675239525972ac43) ) | |
| 1006 | 1060 | |
| 1007 | 1061 | ROM_REGION( 0x180000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 1008 | 1062 | ROM_LOAD( "020-v11.bin", 0x000000, 0x100000, CRC(1b526c8b) SHA1(2801868d2badcf8aaf5d490e010e4049d81d7bc1) ) |
| r2241 | r2242 | |
| 1012 | 1066 | ROM_LOAD( "020-v21.bin", 0x000000, 0x080000, CRC(7abf113d) SHA1(5b2a0e70f2eaf4638b44702dacd4cb17838fb1d5) ) |
| 1013 | 1067 | |
| 1014 | 1068 | ROM_REGION( 0x400000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 1015 | ROM_LOAD16_BYTE( "020-c1.bin", 0x000000, 0x100000, CRC(bd6fe78e) SHA1(50b704862cd79d64fa488e621b079f6e413c33bc) ) | |
| 1016 | ROM_LOAD16_BYTE( "020-c2.bin", 0x000001, 0x100000, CRC(5f4a925c) SHA1(71c5ef8141234daaa7025427a6c65e79766973a5) ) | |
| 1017 | ROM_LOAD16_BYTE( "020-c3.bin", 0x200000, 0x100000, CRC(d1e42fd0) SHA1(f0d476aebbdc2ce008f5f0783be86d295b24aa44) ) | |
| 1018 | ROM_LOAD16_BYTE( "020-c4.bin", 0x200001, 0x100000, CRC(edde439b) SHA1(79be7b10ecdab54c2f77062b8f5fda0e299fa982) ) | |
| 1069 | ROM_LOAD16_BYTE( "020-c1.bin", 0x000000, 0x100000, CRC(bd6fe78e) SHA1(50b704862cd79d64fa488e621b079f6e413c33bc) ) /* Plane 0,1 */ | |
| 1070 | ROM_LOAD16_BYTE( "020-c2.bin", 0x000001, 0x100000, CRC(5f4a925c) SHA1(71c5ef8141234daaa7025427a6c65e79766973a5) ) /* Plane 2,3 */ | |
| 1071 | ROM_LOAD16_BYTE( "020-c3.bin", 0x200000, 0x100000, CRC(d1e42fd0) SHA1(f0d476aebbdc2ce008f5f0783be86d295b24aa44) ) /* Plane 0,1 */ | |
| 1072 | ROM_LOAD16_BYTE( "020-c4.bin", 0x200001, 0x100000, CRC(edde439b) SHA1(79be7b10ecdab54c2f77062b8f5fda0e299fa982) ) /* Plane 2,3 */ | |
| 1019 | 1073 | ROM_END |
| 1020 | 1074 | |
| 1075 | ROM_START( gpilotsh ) /* AES VERSION */ | |
| 1076 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) | |
| 1077 | ROM_LOAD16_WORD_SWAP( "020-hp1.bin", 0x000000, 0x080000, CRC(7cdb01ce) SHA1(32cae2ddf5e26fb7e8a09132e600220db82df3b8) ) | |
| 1078 | ROM_LOAD16_WORD_SWAP( "020-p2.bin", 0x080000, 0x020000, CRC(edcb22ac) SHA1(505d2db38ae999b7d436e8f2ff56b81796d62b54) ) | |
| 1079 | ||
| 1080 | NEO_SFIX_128K( "020-s1.bin", CRC(a6d83d53) SHA1(9a8c092f89521cc0b27a385aa72e29cbaca926c5) ) | |
| 1081 | ||
| 1082 | /* TC531001 */ | |
| 1083 | NEO_BIOS_AUDIO_128K( "020-m1.bin", CRC(48409377) SHA1(0e212d2c76856a90b2c2fdff675239525972ac43) ) | |
| 1084 | ||
| 1085 | ROM_REGION( 0x180000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) | |
| 1086 | ROM_LOAD( "020-v11.bin", 0x000000, 0x100000, CRC(1b526c8b) SHA1(2801868d2badcf8aaf5d490e010e4049d81d7bc1) ) | |
| 1087 | ROM_LOAD( "020-v12.bin", 0x100000, 0x080000, CRC(4a9e6f03) SHA1(d3ac11f333b03d8a318921bdaefb14598e289a14) ) | |
| 1088 | ||
| 1089 | ROM_REGION( 0x080000, NEOGEO_REGION_AUDIO_DATA_2, 0 ) | |
| 1090 | ROM_LOAD( "020-v21.bin", 0x000000, 0x080000, CRC(7abf113d) SHA1(5b2a0e70f2eaf4638b44702dacd4cb17838fb1d5) ) | |
| 1091 | ||
| 1092 | ROM_REGION( 0x400000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) | |
| 1093 | ROM_LOAD16_BYTE( "020-c1.bin", 0x000000, 0x100000, CRC(bd6fe78e) SHA1(50b704862cd79d64fa488e621b079f6e413c33bc) ) /* Plane 0,1 */ | |
| 1094 | ROM_LOAD16_BYTE( "020-c2.bin", 0x000001, 0x100000, CRC(5f4a925c) SHA1(71c5ef8141234daaa7025427a6c65e79766973a5) ) /* Plane 2,3 */ | |
| 1095 | ROM_LOAD16_BYTE( "020-c3.bin", 0x200000, 0x100000, CRC(d1e42fd0) SHA1(f0d476aebbdc2ce008f5f0783be86d295b24aa44) ) /* Plane 0,1 */ | |
| 1096 | ROM_LOAD16_BYTE( "020-c4.bin", 0x200001, 0x100000, CRC(edde439b) SHA1(79be7b10ecdab54c2f77062b8f5fda0e299fa982) ) /* Plane 2,3 */ | |
| 1097 | ROM_END | |
| 1098 | ||
| 1021 | 1099 | ROM_START( joyjoy ) /* MVS AND AES VERSION */ |
| 1022 | 1100 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 1023 | 1101 | ROM_LOAD16_WORD_SWAP( "021-p1.bin", 0x000000, 0x080000, CRC(39c3478f) SHA1(06ebe54c9c4e14c5c31e770013d58b7162359ecc) ) |
| r2241 | r2242 | |
| 1033 | 1111 | ROM_LOAD( "021-v21.bin", 0x000000, 0x080000, CRC(8ed20a86) SHA1(d15cba5eac19ea56fdd4877541f1bb3eb755ebba) ) |
| 1034 | 1112 | |
| 1035 | 1113 | ROM_REGION( 0x100000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 1036 | ROM_LOAD16_BYTE( "021-c1.bin", 0x000000, 0x080000, CRC(509250ec) SHA1(d6ddb16d8222088f153a85a905bcb99541a5f2cf) ) | |
| 1037 | ROM_LOAD16_BYTE( "021-c2.bin", 0x000001, 0x080000, CRC(09ed5258) SHA1(6bf50cd10236e29146b49e714a0e0ebcfe30a682) ) | |
| 1114 | ROM_LOAD16_BYTE( "021-c1.bin", 0x000000, 0x080000, CRC(509250ec) SHA1(d6ddb16d8222088f153a85a905bcb99541a5f2cf) ) /* Plane 0,1 */ | |
| 1115 | ROM_LOAD16_BYTE( "021-c2.bin", 0x000001, 0x080000, CRC(09ed5258) SHA1(6bf50cd10236e29146b49e714a0e0ebcfe30a682) ) /* Plane 2,3 */ | |
| 1038 | 1116 | ROM_END |
| 1039 | 1117 | |
| 1040 | ROM_START( bjourney ) | |
| 1118 | ROM_START( bjourney ) /* MVS AND AES VERSION */ | |
| 1041 | 1119 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 1042 | 1120 | ROM_LOAD16_WORD_SWAP( "022-p1.bin", 0x000000, 0x100000, CRC(6a2f6d4a) SHA1(b8ca548e56f1c7abcdce415ba7329e0cf698ee13) ) |
| 1043 | 1121 | |
| r2241 | r2242 | |
| 1052 | 1130 | NO_DELTAT_REGION |
| 1053 | 1131 | |
| 1054 | 1132 | ROM_REGION( 0x300000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 1055 | ROM_LOAD16_BYTE( "022-c1.bin", 0x000000, 0x100000, CRC(4d47a48c) SHA1(6e282285be72583d828e7765b1c1695ecdc44777) ) | |
| 1056 | ROM_LOAD16_BYTE( "022-c2.bin", 0x000001, 0x100000, CRC(e8c1491a) SHA1(c468d2556b3de095aaa05edd1bc16d71303e9478) ) | |
| 1057 | ROM_LOAD16_BYTE( "022-c3.bin", 0x200000, 0x080000, CRC(66e69753) SHA1(974b823fc62236fbc23e727f25b61a805a707a9e) ) | |
| 1058 | ROM_LOAD16_BYTE( "022-c4.bin", 0x200001, 0x080000, CRC(71bfd48a) SHA1(47288be69e6992d09ebef108b4de9ffab6293dc8) ) | |
| 1133 | ROM_LOAD16_BYTE( "022-c1.bin", 0x000000, 0x100000, CRC(4d47a48c) SHA1(6e282285be72583d828e7765b1c1695ecdc44777) ) /* Plane 0,1 */ | |
| 1134 | ROM_LOAD16_BYTE( "022-c2.bin", 0x000001, 0x100000, CRC(e8c1491a) SHA1(c468d2556b3de095aaa05edd1bc16d71303e9478) ) /* Plane 2,3 */ | |
| 1135 | ROM_LOAD16_BYTE( "022-c3.bin", 0x200000, 0x080000, CRC(66e69753) SHA1(974b823fc62236fbc23e727f25b61a805a707a9e) ) /* Plane 0,1 */ | |
| 1136 | ROM_LOAD16_BYTE( "022-c4.bin", 0x200001, 0x080000, CRC(71bfd48a) SHA1(47288be69e6992d09ebef108b4de9ffab6293dc8) ) /* Plane 2,3 */ | |
| 1059 | 1137 | ROM_END |
| 1060 | 1138 | |
| 1061 | 1139 | ROM_START( quizdais ) |
| r2241 | r2242 | |
| 1091 | 1169 | NO_DELTAT_REGION |
| 1092 | 1170 | |
| 1093 | 1171 | ROM_REGION( 0x300000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 1094 | ROM_LOAD16_BYTE( "024-c1.bin", 0x000000, 0x100000, CRC(3617c2dc) SHA1(8de2643a618272f8aa1c705363edb007f4a5f5b7) ) | |
| 1095 | ROM_LOAD16_BYTE( "024-c2.bin", 0x000001, 0x100000, CRC(3f0a7fd8) SHA1(d0c9c7a9dde9ce175fb243d33ec11fa719d0158c) ) | |
| 1096 | ROM_LOAD16_BYTE( "024-c3.bin", 0x200000, 0x080000, CRC(e9f745f8) SHA1(bbe6141da28b0db7bf5cf321d69b7e613e2414d7) ) | |
| 1097 | ROM_LOAD16_BYTE( "024-c4.bin", 0x200001, 0x080000, CRC(7382fefb) SHA1(e916dec5bb5462eb9ae9711f08c7388937abb980) ) | |
| 1172 | ROM_LOAD16_BYTE( "024-c1.bin", 0x000000, 0x100000, CRC(3617c2dc) SHA1(8de2643a618272f8aa1c705363edb007f4a5f5b7) ) /* Plane 0,1 */ | |
| 1173 | ROM_LOAD16_BYTE( "024-c2.bin", 0x000001, 0x100000, CRC(3f0a7fd8) SHA1(d0c9c7a9dde9ce175fb243d33ec11fa719d0158c) ) /* Plane 2,3 */ | |
| 1174 | ROM_LOAD16_BYTE( "024-c3.bin", 0x200000, 0x080000, CRC(e9f745f8) SHA1(bbe6141da28b0db7bf5cf321d69b7e613e2414d7) ) /* Plane 0,1 */ | |
| 1175 | ROM_LOAD16_BYTE( "024-c4.bin", 0x200001, 0x080000, CRC(7382fefb) SHA1(e916dec5bb5462eb9ae9711f08c7388937abb980) ) /* Plane 2,3 */ | |
| 1098 | 1176 | ROM_END |
| 1099 | 1177 | |
| 1100 | 1178 | ROM_START( eightman ) |
| r2241 | r2242 | |
| 1113 | 1191 | |
| 1114 | 1192 | ROM_REGION( 0x300000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 1115 | 1193 | ROM_LOAD16_BYTE( "025-c1.bin", 0x000000, 0x100000, CRC(555e16a4) SHA1(1c96f3d2fd0991680fbf627a6cdd26ad2cd60319) ) /* Plane 0,1 */ |
| 1116 | ROM_LOAD16_BYTE( "025-c2.bin", 0x000001, 0x100000, CRC(e1ee51c3) SHA1(da8d074bb4e923ed7b8a154fd31b42f2d65b8e96) ) /* Plane 0,1 */ | |
| 1117 | ROM_LOAD16_BYTE( "025-c3.bin", 0x200000, 0x080000, CRC(0923d5b0) SHA1(ab72ba1e3ebf56dd356f9ad181f986b1360a1089) ) /* Plane 2,3 */ | |
| 1194 | ROM_LOAD16_BYTE( "025-c2.bin", 0x000001, 0x100000, CRC(e1ee51c3) SHA1(da8d074bb4e923ed7b8a154fd31b42f2d65b8e96) ) /* Plane 2,3 */ | |
| 1195 | ROM_LOAD16_BYTE( "025-c3.bin", 0x200000, 0x080000, CRC(0923d5b0) SHA1(ab72ba1e3ebf56dd356f9ad181f986b1360a1089) ) /* Plane 0,1 */ | |
| 1118 | 1196 | ROM_LOAD16_BYTE( "025-c4.bin", 0x200001, 0x080000, CRC(e3eca67b) SHA1(88154cbc1a261c2f425430119ebc08a30adc9675) ) /* Plane 2,3 */ |
| 1119 | 1197 | ROM_END |
| 1120 | 1198 | |
| r2241 | r2242 | |
| 1270 | 1348 | |
| 1271 | 1349 | NEO_SFIX_128K( "032-s1.bin", CRC(ac0daa1b) SHA1(93bae4697dc403fce19422752a514326ccf66a91) ) |
| 1272 | 1350 | |
| 1273 | NEO_BIOS_AUDIO_128K( "032-m1.bin", BAD_DUMP CRC(98edc671) SHA1(04ed65ccaa1197fa55fcefe2caed2772e7040bdb) ) | |
| 1351 | /* TC531001 */ | |
| 1352 | NEO_BIOS_AUDIO_128K( "032-m1.bin", CRC(35ec952d) SHA1(8aed30e26d7e2c70dbce5de752df416091066f7b) ) | |
| 1274 | 1353 | |
| 1275 | 1354 | ROM_REGION( 0x200000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 1276 | 1355 | ROM_LOAD( "032-v1.bin", 0x000000, 0x100000, CRC(63791533) SHA1(4479e9308cdc906b9e03b985303f4ebedd00512f) ) |
| r2241 | r2242 | |
| 1285 | 1364 | ROM_LOAD16_BYTE( "032-c4.bin", 0x200001, 0x080000, CRC(462571de) SHA1(5c3d610d492f91564423873b3b434dcda700373f) ) /* Plane 2,3 */ |
| 1286 | 1365 | ROM_END |
| 1287 | 1366 | |
| 1367 | /* Disabled for now, this looks like an emulation hack. Can someone confirm this set is real? */ | |
| 1368 | #if 0 | |
| 1288 | 1369 | ROM_START( roboarma ) |
| 1289 | 1370 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 1290 | 1371 | ROM_LOAD16_WORD_SWAP( "032-p1h.bin", 0x000000, 0x080000, CRC(27c773cb) SHA1(597ca73f142b1129cc7780540bb9cfacd47bc6ce) ) |
| 1291 | 1372 | |
| 1292 | 1373 | NEO_SFIX_128K( "032-s1.bin", CRC(ac0daa1b) SHA1(93bae4697dc403fce19422752a514326ccf66a91) ) |
| 1293 | 1374 | |
| 1294 | NEO_BIOS_AUDIO_128K( "032-m1h.bin", BAD_DUMP CRC(35ec952d) SHA1(8aed30e26d7e2c70dbce5de752df416091066f7b) ) | |
| 1375 | /* TC531001 */ | |
| 1376 | NEO_BIOS_AUDIO_128K( "032-m1.bin", CRC(35ec952d) SHA1(8aed30e26d7e2c70dbce5de752df416091066f7b) ) | |
| 1295 | 1377 | |
| 1296 | 1378 | ROM_REGION( 0x200000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 1297 | 1379 | ROM_LOAD( "032-v1.bin", 0x000000, 0x100000, CRC(63791533) SHA1(4479e9308cdc906b9e03b985303f4ebedd00512f) ) |
| r2241 | r2242 | |
| 1305 | 1387 | ROM_LOAD16_BYTE( "032-c3.bin", 0x200000, 0x080000, CRC(40adfccd) SHA1(b11f866dd70ba0ed9123424508355cb948b19bdc) ) /* Plane 0,1 */ |
| 1306 | 1388 | ROM_LOAD16_BYTE( "032-c4.bin", 0x200001, 0x080000, CRC(462571de) SHA1(5c3d610d492f91564423873b3b434dcda700373f) ) /* Plane 2,3 */ |
| 1307 | 1389 | ROM_END |
| 1390 | #endif | |
| 1308 | 1391 | |
| 1309 | 1392 | ROM_START( fatfury1 ) |
| 1310 | 1393 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| r2241 | r2242 | |
| 1313 | 1396 | |
| 1314 | 1397 | NEO_SFIX_128K( "033-s1.bin", CRC(3c3bdf8c) SHA1(2f3e5feed6c27850b2a0f6fae0b97041690e944c) ) |
| 1315 | 1398 | |
| 1316 | NEO_BIOS_AUDIO_128K( "033-m1.bin", | |
| 1399 | NEO_BIOS_AUDIO_128K( "033-m1.bin", | |
| 1317 | 1400 | |
| 1318 | 1401 | ROM_REGION( 0x200000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 1319 | 1402 | ROM_LOAD( "033-v1.bin", 0x000000, 0x100000, CRC(212fd20d) SHA1(120c040db8c01a6f140eea03725448bfa9ca98c2) ) |
| r2241 | r2242 | |
| 1466 | 1549 | |
| 1467 | 1550 | NEO_SFIX_128K( "041-s1.bin", CRC(015c5c94) SHA1(f1c60cd3dc54986b39f630ef3bf48f68c68695dc) ) |
| 1468 | 1551 | |
| 1469 | NEO_BIOS_AUDIO_128K( "041-m1.bin", CRC(790b15eb) SHA1(3a470c0e457cf94ccc8551544e5e4af23edafae5) ) | |
| 1552 | /* TC531001 */ | |
| 1553 | NEO_BIOS_AUDIO_128K( "041-m1.bin", CRC(15c177a6) SHA1(3f4abed635102f9bc8b44809750828c82e79b44f) ) | |
| 1470 | 1554 | |
| 1471 | 1555 | ROM_REGION( 0x280000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 1472 | 1556 | ROM_LOAD( "041-v1.bin", 0x000000, 0x100000, CRC(cb1da093) SHA1(4f4d1d5fefa9dda372083c045bf0d268a57ce8f1) ) |
| r2241 | r2242 | |
| 1476 | 1560 | NO_DELTAT_REGION |
| 1477 | 1561 | |
| 1478 | 1562 | ROM_REGION( 0x400000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 1479 | ROM_LOAD16_BYTE( "041-c1.bin", 0x000000, 0x100000, CRC(b39a12e1) SHA1(bafe383bd7c5a6aac4cb92dabbc56e3672fe174d) ) | |
| 1480 | ROM_LOAD16_BYTE( "041-c2.bin", 0x000001, 0x100000, CRC(766cfc2f) SHA1(79e1063925d54a57df943019a88bea56c9152df3) ) | |
| 1481 | ROM_LOAD16_BYTE( "041-c3.bin", 0x200000, 0x100000, CRC(fb31339d) SHA1(f4e821299680970b2e979acc4a170029b968c807) ) | |
| 1482 | ROM_LOAD16_BYTE( "041-c4.bin", 0x200001, 0x100000, CRC(70457a0c) SHA1(a1e307f11ddab85d2e9c09d0428fac2e6da774b1) ) | |
| 1563 | ROM_LOAD16_BYTE( "041-c1.bin", 0x000000, 0x100000, CRC(b39a12e1) SHA1(bafe383bd7c5a6aac4cb92dabbc56e3672fe174d) ) /* Plane 0,1 */ | |
| 1564 | ROM_LOAD16_BYTE( "041-c2.bin", 0x000001, 0x100000, CRC(766cfc2f) SHA1(79e1063925d54a57df943019a88bea56c9152df3) ) /* Plane 2,3 */ | |
| 1565 | ROM_LOAD16_BYTE( "041-c3.bin", 0x200000, 0x100000, CRC(fb31339d) SHA1(f4e821299680970b2e979acc4a170029b968c807) ) /* Plane 0,1 */ | |
| 1566 | ROM_LOAD16_BYTE( "041-c4.bin", 0x200001, 0x100000, CRC(70457a0c) SHA1(a1e307f11ddab85d2e9c09d0428fac2e6da774b1) ) /* Plane 2,3 */ | |
| 1483 | 1567 | ROM_END |
| 1484 | 1568 | |
| 1485 | 1569 | ROM_START( quizdai2 ) |
| r2241 | r2242 | |
| 1503 | 1587 | ROM_LOAD16_BYTE( "042-c4.bin", 0x200001, 0x080000, CRC(d602219b) SHA1(34cf0f16db1e224396464ac838f4cd2e6d1c640e) ) /* Plane 2,3 */ |
| 1504 | 1588 | ROM_END |
| 1505 | 1589 | |
| 1506 | /* | |
| 1507 | 3countb > corrected Cx | |
| 1508 | > do P1 & P2 set exist ? my set is 8Mbit P1 | |
| 1509 | */ | |
| 1510 | ||
| 1511 | ROM_START( 3countb ) | |
| 1590 | ROM_START( 3countb ) /* MVS AND AES VERSION */ | |
| 1512 | 1591 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 1513 | ROM_LOAD16_WORD_SWAP( "043-p1.bin", 0x000000, 0x080000, CRC(eb2714c4) SHA1(ba5dbfee4160f27ff36060b777d64b93dc2e929c) ) | |
| 1514 | ROM_LOAD16_WORD_SWAP( "043-p2.bin", 0x080000, 0x080000, CRC(5e764567) SHA1(3e34d051e8e1483073e4fcce0b688e50a1e713ce) ) | |
| 1592 | ROM_LOAD16_WORD_SWAP( "043-p1.bin", 0x000000, 0x100000, CRC(ffbdd928) SHA1(05b24655ca32723661adc5509b450824deb0c176) ) | |
| 1515 | 1593 | |
| 1594 | /* The original p1 is 8mbit; also found sets with p1 / p2 4mbit on eprom. */ | |
| 1595 | ||
| 1516 | 1596 | NEO_SFIX_128K( "043-s1.bin", CRC(c362d484) SHA1(a3c029292572842feabe9aa8c3372628fb63978d) ) |
| 1517 | 1597 | |
| 1518 | NEO_BIOS_AUDIO_128K( "043-m1.bin", CRC( | |
| 1598 | NEO_BIOS_AUDIO_128K( "043-m1.bin", CRC( | |
| 1519 | 1599 | |
| 1520 | 1600 | ROM_REGION( 0x400000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 1521 | 1601 | ROM_LOAD( "043-v1.bin", 0x000000, 0x200000, CRC(63688ce8) SHA1(5c6ac29a0cc0655a87cfe3ada8706838b86b86e4) ) |
| r2241 | r2242 | |
| 1524 | 1604 | NO_DELTAT_REGION |
| 1525 | 1605 | |
| 1526 | 1606 | ROM_REGION( 0x0800000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 1527 | ROM_LOAD16_BYTE( "043-c1.bin", 0x000000, 0x100000, CRC(bad2d67f) SHA1(04928e50ca75b7fbc52b64e816ec5701901f5893) ) | |
| 1607 | ROM_LOAD16_BYTE( "043-c1.bin", 0x000000, 0x100000, CRC(bad2d67f) SHA1(04928e50ca75b7fbc52b64e816ec5701901f5893) ) /* Plane 0,1 */ | |
| 1528 | 1608 | ROM_CONTINUE( 0x400000, 0x100000 ) |
| 1529 | ROM_LOAD16_BYTE( "043-c2.bin", 0x000001, 0x100000, CRC(a7fbda95) SHA1(9da3c5faf22592a7eaf8df9fa6454f48c2a927ae) ) | |
| 1609 | ROM_LOAD16_BYTE( "043-c2.bin", 0x000001, 0x100000, CRC(a7fbda95) SHA1(9da3c5faf22592a7eaf8df9fa6454f48c2a927ae) ) /* Plane 2,3 */ | |
| 1530 | 1610 | ROM_CONTINUE( 0x400001, 0x100000 ) |
| 1531 | ROM_LOAD16_BYTE( "043-c3.bin", 0x200000, 0x100000, CRC(f00be011) SHA1(2721cdba37a511a966a2a53b9bd6240f181d920c) ) | |
| 1611 | ROM_LOAD16_BYTE( "043-c3.bin", 0x200000, 0x100000, CRC(f00be011) SHA1(2721cdba37a511a966a2a53b9bd6240f181d920c) ) /* Plane 0,1 */ | |
| 1532 | 1612 | ROM_CONTINUE( 0x600000, 0x100000 ) |
| 1533 | ROM_LOAD16_BYTE( "043-c4.bin", 0x200001, 0x100000, CRC(1887e5c0) SHA1(9b915359add7c10c78d8b281b4084eceea8f0499) ) | |
| 1613 | ROM_LOAD16_BYTE( "043-c4.bin", 0x200001, 0x100000, CRC(1887e5c0) SHA1(9b915359add7c10c78d8b281b4084eceea8f0499) ) /* Plane 2,3 */ | |
| 1534 | 1614 | ROM_CONTINUE( 0x600001, 0x100000 ) |
| 1535 | 1615 | ROM_END |
| 1536 | 1616 | |
| 1537 | ROM_START( aof ) | |
| 1617 | ROM_START( aof ) /* MVS AND AES VERSION */ | |
| 1538 | 1618 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 1539 | 1619 | ROM_LOAD16_WORD_SWAP( "044-p1.bin", 0x000000, 0x080000, CRC(ca9f7a6d) SHA1(4d28ef86696f7e832510a66d3e8eb6c93b5b91a1) ) |
| 1540 | 1620 | |
| 1541 | 1621 | NEO_SFIX_128K( "044-s1.bin", CRC(89903f39) SHA1(a04a0c244a5d5c7a595fcf649107969635a6a8b6) ) |
| 1542 | 1622 | |
| 1543 | NEO_BIOS_AUDIO_128K( "044-m1.bin", CRC(981345f8) SHA1(5eb6a5a3f633d74a48555808e2562a0ba16d8675) ) | |
| 1623 | /* TC531001 */ | |
| 1624 | NEO_BIOS_AUDIO_128K( "044-m1.bin", CRC(0987e4bb) SHA1(8fae4b7fac09d46d4727928e609ed9d3711dbded) ) | |
| 1544 | 1625 | |
| 1545 | 1626 | ROM_REGION( 0x400000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 1546 | 1627 | ROM_LOAD( "044-v2.bin", 0x000000, 0x200000, CRC(3ec632ea) SHA1(e3f413f580b57f70d2dae16dbdacb797884d3fce) ) |
| r2241 | r2242 | |
| 1559 | 1640 | ROM_CONTINUE( 0x600001, 0x100000 ) |
| 1560 | 1641 | ROM_END |
| 1561 | 1642 | |
| 1562 | ROM_START( samsho ) | |
| 1643 | ROM_START( samsho ) /* MVS VERSION */ | |
| 1644 | ROM_REGION( 0x200000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) | |
| 1645 | ROM_LOAD16_WORD_SWAP( "045-p1.bin", 0x000000, 0x100000, CRC(dfe51bf0) SHA1(2243af3770a516ae698b69bcd9daf53632d9128d) ) | |
| 1646 | ROM_LOAD16_WORD_SWAP( "045-pg2.bin", 0x100000, 0x100000, CRC(46745b94) SHA1(d9e959fd1f88c9402915c1d0dcdb4a9e3d49cdcb) ) | |
| 1647 | ||
| 1648 | NEO_SFIX_128K( "045-s1.bin", CRC(9142a4d3) SHA1(54088e99fcfd75fd0f94852890a56350066a05a3) ) | |
| 1649 | ||
| 1650 | NEO_BIOS_AUDIO_128K( "045-m1.bin", CRC(95170640) SHA1(125c502db0693e8d11cef619b090081c14a9a300) ) | |
| 1651 | ||
| 1652 | ROM_REGION( 0x400000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) | |
| 1653 | ROM_LOAD( "045-v1.bin", 0x000000, 0x200000, CRC(37f78a9b) SHA1(6279b497d12fa90b49ab5ac3aae20fb302ec8b81) ) | |
| 1654 | ROM_LOAD( "045-v2.bin", 0x200000, 0x200000, CRC(568b20cf) SHA1(61af858685472a1fad608e230cccc2b108509ddb) ) | |
| 1655 | ||
| 1656 | NO_DELTAT_REGION | |
| 1657 | ||
| 1658 | ROM_REGION( 0xa00000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) | |
| 1659 | ROM_LOAD16_BYTE( "045-c1.bin", 0x000000, 0x200000, CRC(2e5873a4) SHA1(65c74c1e2d34390666bbb630df7d1f4c9570c3db) ) /* Plane 0,1 */ | |
| 1660 | ROM_LOAD16_BYTE( "045-c2.bin", 0x000001, 0x200000, CRC(04febb10) SHA1(16a8cbf0fd9468e81bf9eab6dbe7a8e3623a843e) ) /* Plane 2,3 */ | |
| 1661 | ROM_LOAD16_BYTE( "045-c3.bin", 0x400000, 0x200000, CRC(f3dabd1e) SHA1(c80e52df42be9f8b2e89b467b11ab140a480cee8) ) /* Plane 0,1 */ | |
| 1662 | ROM_LOAD16_BYTE( "045-c4.bin", 0x400001, 0x200000, CRC(935c62f0) SHA1(0053d40085fac14096b683f4341f65e543b71dc1) ) /* Plane 2,3 */ | |
| 1663 | ROM_LOAD16_BYTE( "045-c51.bin", 0x800000, 0x100000, CRC(81932894) SHA1(550f15dc5892c4602422c51869f0d59f70f01e9e) ) /* Plane 0,1 */ | |
| 1664 | ROM_LOAD16_BYTE( "045-c61.bin", 0x800001, 0x100000, CRC(be30612e) SHA1(5e8b785f917c176d6796eba0caed37b13ddb3e63) ) /* Plane 2,3 */ | |
| 1665 | ROM_END | |
| 1666 | ||
| 1667 | ROM_START( samshoh ) /* AES VERSION */ | |
| 1563 | 1668 | ROM_REGION( 0x180000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 1564 | ROM_LOAD16_WORD_SWAP( "045-p1.bin", 0x000000, 0x080000, CRC(80aa6c97) SHA1(6e07a4aa7b4719ae487a10cee9389cb55a370a7a) ) | |
| 1565 | ROM_LOAD16_WORD_SWAP( "045-p2.bin", 0x080000, 0x080000, CRC(71768728) SHA1(9ff0e01d3fb73ad04279d4fdf4c53c3160888179) ) | |
| 1566 | ROM_LOAD16_WORD_SWAP( "045-p3.bin", 0x100000, 0x080000, CRC(38ee9ba9) SHA1(48190699a6be83cb6257365ae81f93fdd23abe09) ) | |
| 1669 | ROM_LOAD16_WORD_SWAP( "045-p1.bin", 0x000000, 0x100000, CRC(dfe51bf0) SHA1(2243af3770a516ae698b69bcd9daf53632d9128d) ) | |
| 1670 | ROM_LOAD16_WORD_SWAP( "045-p2.bin", 0x100000, 0x080000, CRC(38ee9ba9) SHA1(48190699a6be83cb6257365ae81f93fdd23abe09) ) | |
| 1567 | 1671 | |
| 1568 | 1672 | NEO_SFIX_128K( "045-s1.bin", CRC(9142a4d3) SHA1(54088e99fcfd75fd0f94852890a56350066a05a3) ) |
| 1569 | 1673 | |
| r2241 | r2242 | |
| 1584 | 1688 | ROM_LOAD16_BYTE( "045-c6.bin", 0x800001, 0x080000, CRC(4fa71252) SHA1(afe374a9d1f2d955a59efe7b6196b89e021b164c) ) /* Plane 2,3 */ |
| 1585 | 1689 | ROM_END |
| 1586 | 1690 | |
| 1587 | ROM_START( tophuntr ) | |
| 1691 | /* Old version looked like this; p's on eprom? | |
| 1692 | ||
| 1693 | ROM_START( samsho ) | |
| 1694 | ROM_REGION( 0x180000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) | |
| 1695 | ROM_LOAD16_WORD_SWAP( "045-p1.bin", 0x000000, 0x080000, CRC(80aa6c97) SHA1(6e07a4aa7b4719ae487a10cee9389cb55a370a7a) ) | |
| 1696 | ROM_LOAD16_WORD_SWAP( "045-p2.bin", 0x080000, 0x080000, CRC(71768728) SHA1(9ff0e01d3fb73ad04279d4fdf4c53c3160888179) ) | |
| 1697 | ROM_LOAD16_WORD_SWAP( "045-p3.bin", 0x100000, 0x080000, CRC(38ee9ba9) SHA1(48190699a6be83cb6257365ae81f93fdd23abe09) ) | |
| 1698 | ||
| 1699 | */ | |
| 1700 | ||
| 1701 | ROM_START( tophuntr ) /* MVS VERSION */ | |
| 1588 | 1702 | ROM_REGION( 0x200000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 1589 | 1703 | ROM_LOAD16_WORD_SWAP( "046-p1.bin", 0x000000, 0x100000, CRC(69fa9e29) SHA1(9a40a16163193bb506a32bd34f6323b25ec69622) ) |
| 1590 | ROM_LOAD16_WORD_SWAP( "046-p2. | |
| 1704 | ROM_LOAD16_WORD_SWAP( "046-p2.bin", 0x100000, 0x100000, CRC(f182cb3e) SHA1(6b4e0af5d4e623f0682f37ff5c69e5b705e20028) ) | |
| 1591 | 1705 | |
| 1592 | 1706 | NEO_SFIX_128K( "046-s1.bin", CRC(14b01d7b) SHA1(618ce75c25d6cc86a3b46bd64a0aa34ab82f75ae) ) |
| 1593 | 1707 | |
| r2241 | r2242 | |
| 1615 | 1729 | ROM_START( tophunta ) |
| 1616 | 1730 | ROM_REGION( 0x200000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 1617 | 1731 | ROM_LOAD16_WORD_SWAP( "046-pg1.bin",0x000000, 0x100000, CRC(771e39bc) SHA1(c0e05fd1ca81926438bb75e2fa6894e40ab6521e) ) |
| 1618 | ROM_LOAD16_WORD_SWAP( "046-p2. | |
| 1732 | ROM_LOAD16_WORD_SWAP( "046-p2.bin", 0x100000, 0x100000, CRC(f182cb3e) SHA1(6b4e0af5d4e623f0682f37ff5c69e5b705e20028) ) | |
| 1619 | 1733 | |
| 1620 | 1734 | NEO_SFIX_128K( "046-s1.bin", CRC(14b01d7b) SHA1(618ce75c25d6cc86a3b46bd64a0aa34ab82f75ae) ) |
| 1621 | 1735 | |
| r2241 | r2242 | |
| 1641 | 1755 | ROM_END |
| 1642 | 1756 | |
| 1643 | 1757 | |
| 1644 | ROM_START( fatfury2 ) | |
| 1758 | ROM_START( fatfury2 ) /* MVS AND AES VERSION */ | |
| 1645 | 1759 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 1646 | 1760 | ROM_LOAD16_WORD_SWAP( "047-p1.bin", 0x000000, 0x080000, CRC(be40ea92) SHA1(958b891bb8beb6af122d5467257ab20cbc6cf574) ) |
| 1647 | 1761 | ROM_LOAD16_WORD_SWAP( "047-p2.bin", 0x080000, 0x080000, CRC(2a9beac5) SHA1(61378f89d64fef4c172825694f83229c2ab1a7af) ) |
| r2241 | r2242 | |
| 1681 | 1795 | NO_DELTAT_REGION |
| 1682 | 1796 | |
| 1683 | 1797 | ROM_REGION( 0x400000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 1684 | ROM_LOAD16_BYTE( "048-c1.bin", 0x000000, 0x200000, CRC(3fa890e9) SHA1(e73d2802bacfbc2b2b16fbbedddde17488e4bbde) ) | |
| 1685 | ROM_LOAD16_BYTE( "048-c2.bin", 0x000001, 0x200000, CRC(59c48ad8) SHA1(2630817e735a6d197377558f4324c1442803fe15) ) | |
| 1798 | ROM_LOAD16_BYTE( "048-c1.bin", 0x000000, 0x200000, CRC(3fa890e9) SHA1(e73d2802bacfbc2b2b16fbbedddde17488e4bbde) ) /* Plane 0,1 */ | |
| 1799 | ROM_LOAD16_BYTE( "048-c2.bin", 0x000001, 0x200000, CRC(59c48ad8) SHA1(2630817e735a6d197377558f4324c1442803fe15) ) /* Plane 2,3 */ | |
| 1686 | 1800 | ROM_END |
| 1687 | 1801 | |
| 1688 | 1802 | ROM_START( androdun ) |
| r2241 | r2242 | |
| 1742 | 1856 | NO_DELTAT_REGION |
| 1743 | 1857 | |
| 1744 | 1858 | ROM_REGION( 0x600000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 1745 | ROM_LOAD16_BYTE( "051-c1.bin", 0x000000, 0x100000, CRC(d624c132) SHA1(49c7e9f020cba45d7083b45252bcc03397f8c286) ) | |
| 1859 | ROM_LOAD16_BYTE( "051-c1.bin", 0x000000, 0x100000, CRC(d624c132) SHA1(49c7e9f020cba45d7083b45252bcc03397f8c286) ) /* Plane 0,1 */ | |
| 1746 | 1860 | ROM_CONTINUE( 0x400000, 0x100000 ) |
| 1747 | ROM_LOAD16_BYTE( "051-c2.bin", 0x000001, 0x100000, CRC(40d69f1e) SHA1(ec4a13582772594957f927622d50f54b0dfcd8d8) ) | |
| 1861 | ROM_LOAD16_BYTE( "051-c2.bin", 0x000001, 0x100000, CRC(40d69f1e) SHA1(ec4a13582772594957f927622d50f54b0dfcd8d8) ) /* Plane 2,3 */ | |
| 1748 | 1862 | ROM_CONTINUE( 0x400001, 0x100000 ) |
| 1749 | 1863 | ROM_END |
| 1750 | 1864 | |
| r2241 | r2242 | |
| 2034 | 2148 | |
| 2035 | 2149 | ROM_REGION( 0x300000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 2036 | 2150 | ROM_LOAD( "060-v1.bin", 0x000000, 0x200000, CRC(f417c215) SHA1(0f53b8dd056f43b5d880628e8b74c2b27881ffac) ) |
| 2037 | ROM_LOAD( "060-v2.bin", 0x200000, 0x100000, CRC( | |
| 2151 | ROM_LOAD( "060-v2.bin", 0x200000, 0x100000, CRC(efcff7cf | |
| 2038 | 2152 | |
| 2039 | 2153 | NO_DELTAT_REGION |
| 2040 | 2154 | |
| r2241 | r2242 | |
| 2048 | 2162 | ROM_START( fightfva ) /* MVS VERSION */ |
| 2049 | 2163 | ROM_REGION( 0x200000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 2050 | 2164 | ROM_LOAD16_WORD_SWAP( "060-p1.rom", 0x0000000, 0x100000, CRC(2a104b50) SHA1(3eb663d3df7074e1cdf4c0e450a35c9cf55d8979) ) |
| 2051 | /* there was also a copy of the 060-p1.bin with the name 060-p2.bin maybe it should be loaded over the top or this | |
| 2052 | larger rom is an older revision... */ | |
| 2053 | 2165 | |
| 2166 | /* There was also a copy of the 060-p1.bin with the name 060-p2.bin maybe it should be loaded over the top or this | |
| 2167 | larger rom is an older revision... */ | |
| 2168 | ||
| 2054 | 2169 | NEO_SFIX_128K( "060-s1.bin", CRC(7f012104) SHA1(f366dcc3923655dff16ec08a40d5fce22a84257d) ) |
| 2055 | 2170 | |
| 2056 | 2171 | NEO_BIOS_AUDIO_128K( "060-m1.bin", CRC(0b7c4e65) SHA1(999a1e784de18db3f1332b30bc425836ea6970be) ) |
| 2057 | 2172 | |
| 2058 | 2173 | ROM_REGION( 0x300000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 2059 | 2174 | ROM_LOAD( "060-v1.bin", 0x000000, 0x200000, CRC(f417c215) SHA1(0f53b8dd056f43b5d880628e8b74c2b27881ffac) ) |
| 2060 | ROM_LOAD( "060-v2.bin", 0x200000, 0x100000, CRC( | |
| 2175 | ROM_LOAD( "060-v2.bin", 0x200000, 0x100000, CRC(efcff7cf | |
| 2061 | 2176 | |
| 2062 | 2177 | NO_DELTAT_REGION |
| 2063 | 2178 | |
| r2241 | r2242 | |
| 2090 | 2205 | ROM_END |
| 2091 | 2206 | |
| 2092 | 2207 | ROM_START( spinmast ) |
| 2093 | ROM_REGION( 0x | |
| 2208 | ROM_REGION( 0x200000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) | |
| 2094 | 2209 | ROM_LOAD16_WORD_SWAP( "062-p1.bin", 0x000000, 0x100000, CRC(37aba1aa) SHA1(1a2ab9593371cc2f665121d554eec3f6bb4d09ff) ) |
| 2095 | ROM_LOAD16_WORD_SWAP( "062-p2.bin", 0x100000, 0x0 | |
| 2210 | ROM_LOAD16_WORD_SWAP( "062-p2.bin", 0x100000, 0x10 | |
| 2096 | 2211 | |
| 2097 | 2212 | NEO_SFIX_128K( "062-s1.bin", CRC(289e2bbe) SHA1(f52c7f2bffc89df3130b3cabd200408509a28cdc) ) |
| 2098 | 2213 | |
| r2241 | r2242 | |
| 2114 | 2229 | ROM_LOAD16_BYTE( "062-c8.bin", 0x600001, 0x100000, CRC(8d7be933) SHA1(e7097cfa26a959f90721e2e8368ceb47ea9db661) ) /* Plane 2,3 */ |
| 2115 | 2230 | ROM_END |
| 2116 | 2231 | |
| 2117 | ROM_START( samsho2 ) | |
| 2232 | ROM_START( samsho2 ) /* MVS AND AES VERSION */ | |
| 2118 | 2233 | ROM_REGION( 0x200000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 2119 | 2234 | ROM_LOAD16_WORD_SWAP( "063-p1.bin", 0x100000, 0x100000, CRC(22368892) SHA1(0997f8284aa0f57a333be8a0fdea777d0d01afd6) ) |
| 2120 | 2235 | ROM_CONTINUE( 0x000000, 0x100000 ) |
| r2241 | r2242 | |
| 2187 | 2302 | ROM_LOAD16_BYTE( "064-c5.bin", 0x800000, 0x200000, CRC(8e34a9f4) SHA1(67b839b426ef3fad0a85d951fdd44c0a45c55226) ) /* Plane 0,1 */ |
| 2188 | 2303 | ROM_LOAD16_BYTE( "064-c6.bin", 0x800001, 0x200000, CRC(a43e4766) SHA1(54f282f2b1ff2934cca7acbb4386a2b99a29df3a) ) /* Plane 2,3 */ |
| 2189 | 2304 | ROM_LOAD16_BYTE( "064-c7.bin", 0xc00000, 0x200000, CRC(59d97215) SHA1(85a960dc7f364df13ee0c2f99a4c53aefb081486) ) /* Plane 0,1 */ |
| 2190 | ROM_LOAD16_BYTE( "064-c8.bin", 0xc00001, 0x200000, CRC(fc092367) SHA1(69ff4ae909dd857de3ca8645d63f8b4bde117448) ) /* Plane | |
| 2305 | ROM_LOAD16_BYTE( "064-c8.bin", 0xc00001, 0x200000, CRC(fc092367) SHA1(69ff4ae909dd857de3ca8645d63f8b4bde117448) ) /* Plane 2,3 */ | |
| 2191 | 2306 | ROM_END |
| 2192 | 2307 | |
| 2193 | 2308 | ROM_START( wjammers ) |
| r2241 | r2242 | |
| 2207 | 2322 | NO_DELTAT_REGION |
| 2208 | 2323 | |
| 2209 | 2324 | ROM_REGION( 0x400000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 2210 | ROM_LOAD16_BYTE( "065-c1.bin", 0x000000, 0x100000, CRC(c7650204) SHA1(42918d700d59864f8ab15caf968a062a563c9b09) ) | |
| 2211 | ROM_LOAD16_BYTE( "065-c2.bin", 0x000001, 0x100000, CRC(d9f3e71d) SHA1(fad1f64061eac1bf85bf6d75d2eae974a8c94069) ) | |
| 2212 | ROM_LOAD16_BYTE( "065-c3.bin", 0x200000, 0x100000, CRC(40986386) SHA1(65795a50197049681265946713d416c9cdb68f08) ) | |
| 2213 | ROM_LOAD16_BYTE( "065-c4.bin", 0x200001, 0x100000, CRC(715e15ff) SHA1(ac8b8b01f5c7384b883afbe0cf977430378e3fef) ) | |
| 2325 | ROM_LOAD16_BYTE( "065-c1.bin", 0x000000, 0x100000, CRC(c7650204) SHA1(42918d700d59864f8ab15caf968a062a563c9b09) ) /* Plane 0,1 */ | |
| 2326 | ROM_LOAD16_BYTE( "065-c2.bin", 0x000001, 0x100000, CRC(d9f3e71d) SHA1(fad1f64061eac1bf85bf6d75d2eae974a8c94069) ) /* Plane 2,3 */ | |
| 2327 | ROM_LOAD16_BYTE( "065-c3.bin", 0x200000, 0x100000, CRC(40986386) SHA1(65795a50197049681265946713d416c9cdb68f08) ) /* Plane 0,1 */ | |
| 2328 | ROM_LOAD16_BYTE( "065-c4.bin", 0x200001, 0x100000, CRC(715e15ff) SHA1(ac8b8b01f5c7384b883afbe0cf977430378e3fef) ) /* Plane 2,3 */ | |
| 2214 | 2329 | ROM_END |
| 2215 | 2330 | |
| 2216 | 2331 | ROM_START( karnovr ) |
| r2241 | r2242 | |
| 2277 | 2392 | ROM_LOAD16_BYTE( "068-c6.bin", 0x400001, 0x100000, CRC(a6722604) SHA1(b40c57fb4be93ac0b918829f88393ced3d4f8bde) ) /* Plane 2,3 */ |
| 2278 | 2393 | ROM_END |
| 2279 | 2394 | |
| 2280 | ROM_START( fatfury3 ) | |
| 2395 | ROM_START( fatfury3 ) /* MVS AND AES VERSION */ | |
| 2281 | 2396 | ROM_REGION( 0x300000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 2282 | 2397 | ROM_LOAD16_WORD_SWAP( "069-p1.bin", 0x000000, 0x100000, CRC(a8bcfbbc) SHA1(519c4861151797e5f4d4f33432b83dfabed8e7c4) ) |
| 2283 | 2398 | ROM_LOAD16_WORD_SWAP( "069-sp2.bin", 0x100000, 0x200000, CRC(dbe963ed) SHA1(8ece7f663cfe8e563576a397e41161d392cee67e) ) |
| r2241 | r2242 | |
| 2302 | 2417 | ROM_LOAD16_BYTE( "069-c6.bin", 0x1000001, 0x200000, CRC(69210441) SHA1(6d496c549dba65caabeaffe5b762e86f9d648a26) ) /* Plane 2,3 */ |
| 2303 | 2418 | ROM_END |
| 2304 | 2419 | |
| 2420 | ROM_START( zupapa ) /* Original Version - Encrypted GFX */ | |
| 2421 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) | |
| 2422 | ROM_LOAD16_WORD_SWAP( "070-p1.bin", 0x000000, 0x100000, CRC(5a96203e) SHA1(49cddec9ca6cc51e5ecf8a34e447a23e1f8a15a1) ) | |
| 2423 | ||
| 2424 | ROM_Y_ZOOM | |
| 2425 | ||
| 2426 | /* The Encrypted Boards do _not_ have an s1 rom, data for it comes from the Cx ROMs */ | |
| 2427 | ROM_REGION( 0x20000, NEOGEO_REGION_FIXED_LAYER_CARTRIDGE, 0 ) | |
| 2428 | ROM_FILL( 0x000000, 0x20000, 0 ) | |
| 2429 | ROM_REGION( 0x20000, NEOGEO_REGION_FIXED_LAYER_BIOS, 0 ) | |
| 2430 | ROM_LOAD( "sfix.sfx", 0x000000, 0x20000, CRC(354029fc) SHA1(4ae4bf23b4c2acff875775d4cbff5583893ce2a1) ) | |
| 2431 | ||
| 2432 | NEO_BIOS_AUDIO_128K( "070-m1.bin", CRC(5a3b3191) SHA1(fa9a9930e18c64e598841fb344c4471d3d2c1964) ) | |
| 2433 | ||
| 2434 | ROM_REGION( 0x0200000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) | |
| 2435 | ROM_LOAD( "070-v1.bin", 0x000000, 0x200000, CRC(d3a7e1ff) SHA1(4a4a227e10f4af58168f6c26011ea1d414253f92) ) | |
| 2436 | ||
| 2437 | NO_DELTAT_REGION | |
| 2438 | ||
| 2439 | ROM_REGION( 0x1000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) | |
| 2440 | /* Encrypted */ | |
| 2441 | ROM_LOAD16_BYTE( "070-c1.bin", 0x0000000, 0x800000, CRC(f8ad02d8) SHA1(9be54532332a8e963ec35ff1e518947bb11ebade) ) /* Plane 0,1 */ | |
| 2442 | ROM_LOAD16_BYTE( "070-c2.bin", 0x0000001, 0x800000, CRC(70156dde) SHA1(06286bf043d50199b47df9a76ca91f39cb28cb90) ) /* Plane 2,3 */ | |
| 2443 | ROM_END | |
| 2444 | ||
| 2305 | 2445 | ROM_START( panicbom ) |
| 2306 | 2446 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 2307 | 2447 | ROM_LOAD16_WORD_SWAP( "073-p1.bin", 0x000000, 0x080000, CRC(adc356ad) SHA1(801e0a54b65d7a3500e6cef2d6bba40c6356dc1f) ) |
| r2241 | r2242 | |
| 2456 | 2596 | |
| 2457 | 2597 | ROM_REGION( 0x800000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 2458 | 2598 | ROM_LOAD16_BYTE( "080-c1.bin", 0x000000, 0x200000, CRC(ea1d764a) SHA1(78cc1735624c37f90607baa92e110a3c5cc54c6f) ) /* Plane 0,1 */ |
| 2459 | ROM_LOAD16_BYTE( "080-c2.bin", 0x000001, 0x200000, CRC( | |
| 2599 | ROM_LOAD16_BYTE( "080-c2.bin", 0x000001, 0x200000, CRC( | |
| 2460 | 2600 | ROM_LOAD16_BYTE( "080-c3.bin", 0x400000, 0x200000, CRC(b4851bfe) SHA1(b8286c601de5755c1681ea46e177fc89006fc066) ) /* Plane 0,1 */ |
| 2461 | 2601 | ROM_LOAD16_BYTE( "080-c4.bin", 0x400001, 0x200000, CRC(ca6f5460) SHA1(ed36e244c9335f4c0a97c57b7b7f1b849dd3a90d) ) /* Plane 2,3 */ |
| 2462 | 2602 | ROM_END |
| r2241 | r2242 | |
| 2502 | 2642 | NO_DELTAT_REGION |
| 2503 | 2643 | |
| 2504 | 2644 | ROM_REGION( 0xe00000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 2505 | ROM_LOAD16_BYTE( "082-c1.bin", 0x000000, 0x200000, CRC(b478c725) SHA1(3a777c5906220f246a6dc06cb084e6ad650d67bb) ) | |
| 2506 | ROM_LOAD16_BYTE( "082-c2.bin", 0x000001, 0x200000, CRC(2857da32) SHA1(9f13245965d23db86d46d7e73dfb6cc63e6f25a1) ) | |
| 2507 | ROM_LOAD16_BYTE( "082-c3.bin", 0x400000, 0x200000, CRC(8b0d378e) SHA1(3a347215e414b738164f1fe4144102f07d4ffb80) ) | |
| 2508 | ROM_LOAD16_BYTE( "082-c4.bin", 0x400001, 0x200000, CRC(c7d2f596) SHA1(e2d09d4d1b1fef9c0c53ecf3629e974b75e559f5) ) | |
| 2509 | ROM_LOAD16_BYTE( "082-c5.bin", 0x800000, 0x200000, CRC(ec87bff6) SHA1(3fa86da93881158c2c23443855922a7b32e55135) ) | |
| 2510 | ROM_LOAD16_BYTE( "082-c6.bin", 0x800001, 0x200000, CRC(844a8a11) SHA1(b2acbd4cacce66fb32c052b2fba9984904679bda) ) | |
| 2511 | ROM_LOAD16_BYTE( "082-c7.bin", 0xc00000, 0x100000, CRC(727c4d02) SHA1(8204c7f037d46e0c58f269f9c7a535bc2589f526) ) | |
| 2512 | ROM_LOAD16_BYTE( "082-c8.bin", 0xc00001, 0x100000, CRC(69a5fa37) SHA1(020e70e0e8b3c5d00a40fe97e418115a3187e50a) ) | |
| 2645 | ROM_LOAD16_BYTE( "082-c1.bin", 0x000000, 0x200000, CRC(b478c725) SHA1(3a777c5906220f246a6dc06cb084e6ad650d67bb) ) /* Plane 0,1 */ | |
| 2646 | ROM_LOAD16_BYTE( "082-c2.bin", 0x000001, 0x200000, CRC(2857da32) SHA1(9f13245965d23db86d46d7e73dfb6cc63e6f25a1) ) /* Plane 2,3 */ | |
| 2647 | ROM_LOAD16_BYTE( "082-c3.bin", 0x400000, 0x200000, CRC(8b0d378e) SHA1(3a347215e414b738164f1fe4144102f07d4ffb80) ) /* Plane 0,1 */ | |
| 2648 | ROM_LOAD16_BYTE( "082-c4.bin", 0x400001, 0x200000, CRC(c7d2f596) SHA1(e2d09d4d1b1fef9c0c53ecf3629e974b75e559f5) ) /* Plane 2,3 */ | |
| 2649 | ROM_LOAD16_BYTE( "082-c5.bin", 0x800000, 0x200000, CRC(ec87bff6) SHA1(3fa86da93881158c2c23443855922a7b32e55135) ) /* Plane 0,1 */ | |
| 2650 | ROM_LOAD16_BYTE( "082-c6.bin", 0x800001, 0x200000, CRC(844a8a11) SHA1(b2acbd4cacce66fb32c052b2fba9984904679bda) ) /* Plane 2,3 */ | |
| 2651 | ROM_LOAD16_BYTE( "082-c7.bin", 0xc00000, 0x100000, CRC(727c4d02) SHA1(8204c7f037d46e0c58f269f9c7a535bc2589f526) ) /* Plane 0,1 */ | |
| 2652 | ROM_LOAD16_BYTE( "082-c8.bin", 0xc00001, 0x100000, CRC(69a5fa37) SHA1(020e70e0e8b3c5d00a40fe97e418115a3187e50a) ) /* Plane 2,3 */ | |
| 2513 | 2653 | ROM_END |
| 2514 | 2654 | |
| 2515 | 2655 | ROM_START( pbobblen ) |
| r2241 | r2242 | |
| 2789 | 2929 | NO_DELTAT_REGION |
| 2790 | 2930 | |
| 2791 | 2931 | ROM_REGION( 0x1c00000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 2792 | ROM_LOAD16_BYTE( "090-c1.bin", 0x0000000, 0x400000, CRC(cd30ed9b) SHA1(839c20f7ff31251acc875ae402b5d267e55510c7) ) | |
| 2793 | ROM_LOAD16_BYTE( "090-c2.bin", 0x0000001, 0x400000, CRC(10eed5ee) SHA1(12131b1c8c017ea77a98c044b392a5db6aad0143) ) | |
| 2794 | ROM_LOAD16_BYTE( "090-c3.bin", 0x0800000, 0x200000, CRC(436d1b31) SHA1(059776d77b91377ed0bcfc278802d659c917fc0f) ) | |
| 2795 | ROM_LOAD16_BYTE( "090-c4.bin", 0x0800001, 0x200000, CRC(f9c8dd26) SHA1(25a9eea1d49b21b4a988beb32c25bf2f7796f227) ) | |
| 2932 | ROM_LOAD16_BYTE( "090-c1.bin", 0x0000000, 0x400000, CRC(cd30ed9b) SHA1(839c20f7ff31251acc875ae402b5d267e55510c7) ) /* Plane 0,1 */ | |
| 2933 | ROM_LOAD16_BYTE( "090-c2.bin", 0x0000001, 0x400000, CRC(10eed5ee) SHA1(12131b1c8c017ea77a98c044b392a5db6aad0143) ) /* Plane 2,3 */ | |
| 2934 | ROM_LOAD16_BYTE( "090-c3.bin", 0x0800000, 0x200000, CRC(436d1b31) SHA1(059776d77b91377ed0bcfc278802d659c917fc0f) ) /* Plane 0,1 */ | |
| 2935 | ROM_LOAD16_BYTE( "090-c4.bin", 0x0800001, 0x200000, CRC(f9c8dd26) SHA1(25a9eea1d49b21b4a988beb32c25bf2f7796f227) ) /* Plane 2,3 */ | |
| 2796 | 2936 | /* 0c00000-0ffffff empty */ |
| 2797 | ROM_LOAD16_BYTE( "090-c5.bin", 0x1000000, 0x200000, CRC(8e34a9f4) SHA1(67b839b426ef3fad0a85d951fdd44c0a45c55226) ) | |
| 2798 | ROM_LOAD16_BYTE( "090-c6.bin", 0x1000001, 0x200000, CRC(a43e4766) SHA1(54f282f2b1ff2934cca7acbb4386a2b99a29df3a) ) | |
| 2937 | ROM_LOAD16_BYTE( "090-c5.bin", 0x1000000, 0x200000, CRC(8e34a9f4) SHA1(67b839b426ef3fad0a85d951fdd44c0a45c55226) ) /* Plane 0,1 */ | |
| 2938 | ROM_LOAD16_BYTE( "090-c6.bin", 0x1000001, 0x200000, CRC(a43e4766) SHA1(54f282f2b1ff2934cca7acbb4386a2b99a29df3a) ) /* Plane 2,3 */ | |
| 2799 | 2939 | /* 1400000-17fffff empty */ |
| 2800 | ROM_LOAD16_BYTE( "090-c7.bin", 0x1800000, 0x200000, CRC(59d97215) SHA1(85a960dc7f364df13ee0c2f99a4c53aefb081486) ) | |
| 2801 | ROM_LOAD16_BYTE( "090-c8.bin", 0x1800001, 0x200000, CRC(fc092367) SHA1(69ff4ae909dd857de3ca8645d63f8b4bde117448) ) | |
| 2940 | ROM_LOAD16_BYTE( "090-c7.bin", 0x1800000, 0x200000, CRC(59d97215) SHA1(85a960dc7f364df13ee0c2f99a4c53aefb081486) ) /* Plane 0,1 */ | |
| 2941 | ROM_LOAD16_BYTE( "090-c8.bin", 0x1800001, 0x200000, CRC(fc092367) SHA1(69ff4ae909dd857de3ca8645d63f8b4bde117448) ) /* Plane 2,3 */ | |
| 2802 | 2942 | ROM_END |
| 2803 | 2943 | |
| 2804 | 2944 | ROM_START( kabukikl ) |
| r2241 | r2242 | |
| 2903 | 3043 | ROM_START( rbff1a ) /* MVS VERSION */ |
| 2904 | 3044 | ROM_REGION( 0x300000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 2905 | 3045 | |
| 2906 | ||
| 3046 | | |
| 2907 | 3047 | /* 512k ROM was added to replace the first 512k of P1. */ |
| 2908 | 3048 | |
| 2909 | 3049 | ROM_LOAD16_WORD_SWAP( "095-p1.bin", 0x000000, 0x100000, CRC(63b4d8ae) SHA1(03aa9f6bab6aee685d1b57a52823797704eea845) ) |
| r2241 | r2242 | |
| 3190 | 3330 | NO_DELTAT_REGION |
| 3191 | 3331 | |
| 3192 | 3332 | ROM_REGION( 0x400000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 3193 | ROM_LOAD16_BYTE( "zin_c1.rom", 0x000000, 0x200000, CRC(76aee189) SHA1(ad6929804c5b9a59aa609e6baebc6aa37e858a47) ) | |
| 3194 | ROM_LOAD16_BYTE( "zin_c2.rom", 0x000001, 0x200000, CRC(844ed4b3) SHA1(fb7cd057bdc6cbe8b78097dd124118bae7402256) ) | |
| 3333 | ROM_LOAD16_BYTE( "zin_c1.rom", 0x000000, 0x200000, CRC(76aee189) SHA1(ad6929804c5b9a59aa609e6baebc6aa37e858a47) ) /* Plane 0,1 */ | |
| 3334 | ROM_LOAD16_BYTE( "zin_c2.rom", 0x000001, 0x200000, CRC(844ed4b3) SHA1(fb7cd057bdc6cbe8b78097dd124118bae7402256) ) /* Plane 2,3 */ | |
| 3195 | 3335 | ROM_END |
| 3196 | 3336 | |
| 3197 | 3337 | ROM_START( overtop ) |
| r2241 | r2242 | |
| 3237 | 3377 | ROM_LOAD16_BYTE( "213-c2.bin", 0x000001, 0x400000, CRC(46ae5f16) SHA1(a01310632734e776e889af6a531063cb1661c33a) ) /* Plane 2,3 */ |
| 3238 | 3378 | ROM_END |
| 3239 | 3379 | |
| 3240 | ROM_START( kof96 ) | |
| 3380 | ROM_START( kof96 ) /* MVS VERSION */ | |
| 3241 | 3381 | ROM_REGION( 0x300000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 3242 | 3382 | ROM_LOAD16_WORD_SWAP( "214-p1.bin", 0x000000, 0x100000, CRC(52755d74) SHA1(4232d627f1d2e6ea9fc8cf01571d77d4d5b8a1bb) ) |
| 3243 | 3383 | ROM_LOAD16_WORD_SWAP( "214-p2.bin", 0x100000, 0x200000, CRC(002ccb73) SHA1(3ae8df682c75027ca82db25491021eeba00a267e) ) |
| r2241 | r2242 | |
| 3856 | 3996 | NO_DELTAT_REGION |
| 3857 | 3997 | |
| 3858 | 3998 | ROM_REGION( 0x400000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 3859 | ROM_LOAD16_BYTE( "237-c1.bin", 0x000000, 0x200000, CRC(eda42d66) SHA1(2735538fcb9dc0c16e043a8728c8b642650189f4) ) | |
| 3860 | ROM_LOAD16_BYTE( "237-c2.bin", 0x000001, 0x200000, CRC(5e633c65) SHA1(9a82107caf027317c173c1c1ef676f0fdeea79b2) ) | |
| 3999 | ROM_LOAD16_BYTE( "237-c1.bin", 0x000000, 0x200000, CRC(eda42d66) SHA1(2735538fcb9dc0c16e043a8728c8b642650189f4) ) /* Plane 0,1 */ | |
| 4000 | ROM_LOAD16_BYTE( "237-c2.bin", 0x000001, 0x200000, CRC(5e633c65) SHA1(9a82107caf027317c173c1c1ef676f0fdeea79b2) ) /* Plane 2,3 */ | |
| 3861 | 4001 | ROM_END |
| 3862 | 4002 | |
| 3863 | 4003 | ROM_START( shocktro ) |
| r2241 | r2242 | |
| 3947 | 4087 | |
| 3948 | 4088 | NEO_BIOS_AUDIO_256K( "240-m1.bin", CRC(ed482791) SHA1(1f54a45967cb7842c33aa24be322c9f33ff75ac3) ) |
| 3949 | 4089 | |
| 3950 | ROM_REGION( 0x | |
| 4090 | ROM_REGION( 0x | |
| 3951 | 4091 | ROM_LOAD( "240-v1.bin", 0x000000, 0x400000, CRC(f796265a) SHA1(736dff37eb91fc856b4d189249fb0de9b6c0813a) ) |
| 3952 | 4092 | ROM_LOAD( "240-v2.bin", 0x400000, 0x400000, CRC(2cb3f3bb) SHA1(697e677890892f4b028c9a27c66809ca0a8a9b18) ) |
| 3953 | 4093 | //ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(df77b7fa) SHA1(4df971ce20bdb8c1ce8cc1692a32ac69505ffa9a) ) // bad? |
| 3954 | 4094 | ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(8fe1367a) SHA1(093d7a4ac2b54ad7ffb2dc316fe29415f7a99535) ) |
| 3955 | ROM_LOAD( "240-v4.bin", 0xc00000, 0x | |
| 4095 | ROM_LOAD( "240-v4.bin", 0xc00000, 0x200000, CRC(99 | |
| 3956 | 4096 | |
| 3957 | 4097 | NO_DELTAT_REGION |
| 3958 | 4098 | |
| r2241 | r2242 | |
| 3974 | 4114 | |
| 3975 | 4115 | NEO_BIOS_AUDIO_256K( "240-m1.bin", CRC(ed482791) SHA1(1f54a45967cb7842c33aa24be322c9f33ff75ac3) ) |
| 3976 | 4116 | |
| 3977 | ROM_REGION( 0x | |
| 4117 | ROM_REGION( 0x | |
| 3978 | 4118 | ROM_LOAD( "240-v1.bin", 0x000000, 0x400000, CRC(f796265a) SHA1(736dff37eb91fc856b4d189249fb0de9b6c0813a) ) |
| 3979 | 4119 | ROM_LOAD( "240-v2.bin", 0x400000, 0x400000, CRC(2cb3f3bb) SHA1(697e677890892f4b028c9a27c66809ca0a8a9b18) ) |
| 3980 | 4120 | //ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(df77b7fa) SHA1(4df971ce20bdb8c1ce8cc1692a32ac69505ffa9a) ) // bad? |
| 3981 | 4121 | ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(8fe1367a) SHA1(093d7a4ac2b54ad7ffb2dc316fe29415f7a99535) ) |
| 3982 | ROM_LOAD( "240-v4.bin", 0xc00000, 0x | |
| 4122 | ROM_LOAD( "240-v4.bin", 0xc00000, 0x200000, CRC(99 | |
| 3983 | 4123 | |
| 3984 | 4124 | NO_DELTAT_REGION |
| 3985 | 4125 | |
| r2241 | r2242 | |
| 4001 | 4141 | |
| 4002 | 4142 | NEO_BIOS_AUDIO_256K( "240-m1.bin", CRC(ed482791) SHA1(1f54a45967cb7842c33aa24be322c9f33ff75ac3) ) |
| 4003 | 4143 | |
| 4004 | ROM_REGION( 0x | |
| 4144 | ROM_REGION( 0x | |
| 4005 | 4145 | ROM_LOAD( "240-v1.bin", 0x000000, 0x400000, CRC(f796265a) SHA1(736dff37eb91fc856b4d189249fb0de9b6c0813a) ) |
| 4006 | 4146 | ROM_LOAD( "240-v2.bin", 0x400000, 0x400000, CRC(2cb3f3bb) SHA1(697e677890892f4b028c9a27c66809ca0a8a9b18) ) |
| 4007 | 4147 | //ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(df77b7fa) SHA1(4df971ce20bdb8c1ce8cc1692a32ac69505ffa9a) ) // bad? |
| 4008 | 4148 | ROM_LOAD( "240-v3.bin", 0x800000, 0x400000, CRC(8fe1367a) SHA1(093d7a4ac2b54ad7ffb2dc316fe29415f7a99535) ) |
| 4009 | ROM_LOAD( "240-v4.bin", 0xc00000, 0x | |
| 4149 | ROM_LOAD( "240-v4.bin", 0xc00000, 0x200000, CRC(99 | |
| 4010 | 4150 | |
| 4011 | 4151 | NO_DELTAT_REGION |
| 4012 | 4152 | |
| r2241 | r2242 | |
| 4019 | 4159 | ROM_LOAD16_BYTE( "240-c6.bin", 0x2000001, 0x800000, CRC(4609e507) SHA1(bb17f50a377dddb77c1eeda5944a7bcbf0cca5f7) ) /* Plane 2,3 */ |
| 4020 | 4160 | ROM_END |
| 4021 | 4161 | |
| 4022 | ||
| 4023 | 4162 | ROM_START( mslug2 ) |
| 4024 | 4163 | ROM_REGION( 0x300000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 4025 | 4164 | ROM_LOAD16_WORD_SWAP( "241-p1.bin", 0x000000, 0x100000, CRC(2a53c5da) SHA1(5a6aba482cac588a6c2c51179c95b487c6e11899) ) |
| r2241 | r2242 | |
| 4529 | 4668 | |
| 4530 | 4669 | ROM_REGION( 0x1000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 4531 | 4670 | /* Encrypted */ |
| 4532 | ROM_LOAD16_BYTE( "252-c1.bin", 0x0000000, 0x800000, CRC(50ee7882) SHA1(ace0f95407c246d0456341cf2ad8a7668b81df8a) ) | |
| 4533 | ROM_LOAD16_BYTE( "252-c2.bin", 0x0000001, 0x800000, CRC(62585474) SHA1(b35461598087aa82886af0030c61b26cc064af5f) ) | |
| 4671 | ROM_LOAD16_BYTE( "252-c1.bin", 0x0000000, 0x800000, CRC(50ee7882) SHA1(ace0f95407c246d0456341cf2ad8a7668b81df8a) ) /* Plane 0,1 */ | |
| 4672 | ROM_LOAD16_BYTE( "252-c2.bin", 0x0000001, 0x800000, CRC(62585474) SHA1(b35461598087aa82886af0030c61b26cc064af5f) ) /* Plane 2,3 */ | |
| 4534 | 4673 | ROM_END |
| 4535 | 4674 | |
| 4536 | 4675 | ROM_START( garou ) |
| r2241 | r2242 | |
| 4763 | 4902 | |
| 4764 | 4903 | ROM_START( mslug3n ) /* Original Version - Encrypted GFX */ |
| 4765 | 4904 | ROM_REGION( 0x500000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 4766 | ROM_LOAD16_WORD_SWAP( "256-ph1.rom", 0x000000, 0x100000, CRC(9c42ca85) SHA1(7a8f77a89867b889295ae9b9dfd4ba28f02d234d) ) | |
| 4767 | ROM_LOAD16_WORD_SWAP( "256-ph2.rom", 0x100000, 0x400000, CRC(1f3d8ce8) SHA1(08b05a8abfb86ec09a5e758d6273acf1489961f9) ) | |
| 4905 | ROM_LOAD16_WORD_SWAP( "256-ph1.bin", 0x000000, 0x100000, CRC(9c42ca85) SHA1(7a8f77a89867b889295ae9b9dfd4ba28f02d234d) ) | |
| 4906 | ROM_LOAD16_WORD_SWAP( "256-ph2.bin", 0x100000, 0x400000, CRC(1f3d8ce8) SHA1(08b05a8abfb86ec09a5e758d6273acf1489961f9) ) | |
| 4768 | 4907 | |
| 4769 | 4908 | ROM_Y_ZOOM |
| 4770 | 4909 | |
| r2241 | r2242 | |
| 4895 | 5034 | |
| 4896 | 5035 | ROM_REGION( 0x1000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 4897 | 5036 | /* Encrypted */ |
| 4898 | ROM_LOAD16_BYTE( "259-c1.bin", 0x0000000, 0x800000, CRC(1f537f74) SHA1(b8ef691e92191c20a5ed4f20a75cca3c7383bca6) ) | |
| 4899 | ROM_LOAD16_BYTE( "259-c2.bin", 0x0000001, 0x800000, CRC(0efd98ff) SHA1(d350315d3c7f26d638458e5ccf2126069a4c7a5b) ) | |
| 5037 | ROM_LOAD16_BYTE( "259-c1.bin", 0x0000000, 0x800000, CRC(1f537f74) SHA1(b8ef691e92191c20a5ed4f20a75cca3c7383bca6) ) /* Plane 0,1 */ | |
| 5038 | ROM_LOAD16_BYTE( "259-c2.bin", 0x0000001, 0x800000, CRC(0efd98ff) SHA1(d350315d3c7f26d638458e5ccf2126069a4c7a5b) ) /* Plane 2,3 */ | |
| 4900 | 5039 | ROM_END |
| 4901 | 5040 | |
| 4902 | 5041 | /* same data, diff. format roms, not encrypted, it could be a bootleg, not a prototype, since its identical |
| r2241 | r2242 | |
| 4947 | 5086 | |
| 4948 | 5087 | ROM_REGION( 0x1000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 4949 | 5088 | /* Encrypted */ |
| 4950 | ROM_LOAD16_BYTE( "260-c1.bin", 0x0000000, 0x800000, CRC(147b0c7f) SHA1(a647c3a2f6d146ff47521c1d39f58830601f5781) ) | |
| 4951 | ROM_LOAD16_BYTE( "260-c2.bin", 0x0000001, 0x800000, CRC(d2b04b0d) SHA1(ce4322e6cfacb627fe997efe81018861e21d3c27) ) | |
| 5089 | ROM_LOAD16_BYTE( "260-c1.bin", 0x0000000, 0x800000, CRC(147b0c7f) SHA1(a647c3a2f6d146ff47521c1d39f58830601f5781) ) /* Plane 0,1 */ | |
| 5090 | ROM_LOAD16_BYTE( "260-c2.bin", 0x0000001, 0x800000, CRC(d2b04b0d) SHA1(ce4322e6cfacb627fe997efe81018861e21d3c27) ) /* Plane 2,3 */ | |
| 4952 | 5091 | ROM_END |
| 4953 | 5092 | |
| 4954 | 5093 | ROM_START( nitdbl ) /* Bootleg of nitd */ |
| r2241 | r2242 | |
| 4973 | 5112 | ROM_LOAD16_BYTE( "260-c4bl.bin", 0x400001, 0x200000, CRC(4c3926e6) SHA1(7fc54a9886dbef911f7b226e3cd20081c535e989) ) /* Plane 2,3 */ |
| 4974 | 5113 | ROM_END |
| 4975 | 5114 | |
| 4976 | ROM_START( zupapa ) /* Original Version - Encrypted GFX */ | |
| 4977 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) | |
| 4978 | ROM_LOAD16_WORD_SWAP( "070-p1.bin", 0x000000, 0x100000, CRC(5a96203e) SHA1(49cddec9ca6cc51e5ecf8a34e447a23e1f8a15a1) ) | |
| 4979 | ||
| 4980 | ROM_Y_ZOOM | |
| 4981 | ||
| 4982 | /* The Encrypted Boards do _not_ have an s1 rom, data for it comes from the Cx ROMs */ | |
| 4983 | ROM_REGION( 0x20000, NEOGEO_REGION_FIXED_LAYER_CARTRIDGE, 0 ) | |
| 4984 | ROM_FILL( 0x000000, 0x20000, 0 ) | |
| 4985 | ROM_REGION( 0x20000, NEOGEO_REGION_FIXED_LAYER_BIOS, 0 ) | |
| 4986 | ROM_LOAD( "sfix.sfx", 0x000000, 0x20000, CRC(354029fc) SHA1(4ae4bf23b4c2acff875775d4cbff5583893ce2a1) ) | |
| 4987 | ||
| 4988 | NEO_BIOS_AUDIO_128K( "070-m1.bin", CRC(5a3b3191) SHA1(fa9a9930e18c64e598841fb344c4471d3d2c1964) ) | |
| 4989 | ||
| 4990 | ROM_REGION( 0x0200000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) | |
| 4991 | ROM_LOAD( "070-v1.bin", 0x000000, 0x200000, CRC(d3a7e1ff) SHA1(4a4a227e10f4af58168f6c26011ea1d414253f92) ) | |
| 4992 | ||
| 4993 | NO_DELTAT_REGION | |
| 4994 | ||
| 4995 | ROM_REGION( 0x1000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) | |
| 4996 | /* Encrypted */ | |
| 4997 | ROM_LOAD16_BYTE( "070-c1.bin", 0x0000000, 0x800000, CRC(f8ad02d8) SHA1(9be54532332a8e963ec35ff1e518947bb11ebade) ) | |
| 4998 | ROM_LOAD16_BYTE( "070-c2.bin", 0x0000001, 0x800000, CRC(70156dde) SHA1(06286bf043d50199b47df9a76ca91f39cb28cb90) ) | |
| 4999 | ROM_END | |
| 5000 | ||
| 5001 | 5115 | ROM_START( sengoku3 ) /* Original Version - Encrypted GFX */ |
| 5002 | 5116 | ROM_REGION( 0x200000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5003 | 5117 | // ROM_LOAD16_WORD_SWAP( "261-p1.bin", 0x100000, 0x100000, CRC(5b557201) SHA1(d01421d1dc80fe7d2a46b9f79c0f344b3c81c1e7) ) this one is almost certainly bad |
| r2241 | r2242 | |
| 5023 | 5137 | NO_DELTAT_REGION |
| 5024 | 5138 | |
| 5025 | 5139 | ROM_REGION( 0x2000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 5026 | ROM_LOAD16_BYTE( "261-c1.bin", 0x0000000, 0x800000, CRC(ded84d9c) SHA1(d960523b813d4fae06d716298d4e431a5c77a0c5) ) | |
| 5027 | ROM_LOAD16_BYTE( "261-c2.bin", 0x0000001, 0x800000, CRC(b8eb4348) SHA1(619d24312549932959481fa58f43f11c048e1ca5) ) | |
| 5028 | ROM_LOAD16_BYTE( "261-c3.bin", 0x1000000, 0x800000, CRC(84e2034a) SHA1(38ec4ae4b86933a25c9a03799b8cade4b1346401) ) | |
| 5029 | ROM_LOAD16_BYTE( "261-c4.bin", 0x1000001, 0x800000, CRC(0b45ae53) SHA1(a19fb21408ab633aee8bbf38bf43b5e26766b355) ) | |
| 5140 | ROM_LOAD16_BYTE( "261-c1.bin", 0x0000000, 0x800000, CRC(ded84d9c) SHA1(d960523b813d4fae06d716298d4e431a5c77a0c5) ) /* Plane 0,1 */ | |
| 5141 | ROM_LOAD16_BYTE( "261-c2.bin", 0x0000001, 0x800000, CRC(b8eb4348) SHA1(619d24312549932959481fa58f43f11c048e1ca5) ) /* Plane 2,3 */ | |
| 5142 | ROM_LOAD16_BYTE( "261-c3.bin", 0x1000000, 0x800000, CRC(84e2034a) SHA1(38ec4ae4b86933a25c9a03799b8cade4b1346401) ) /* Plane 0,1 */ | |
| 5143 | ROM_LOAD16_BYTE( "261-c4.bin", 0x1000001, 0x800000, CRC(0b45ae53) SHA1(a19fb21408ab633aee8bbf38bf43b5e26766b355) ) /* Plane 2,3 */ | |
| 5030 | 5144 | ROM_END |
| 5031 | 5145 | |
| 5032 | 5146 | ROM_START( kof2001 ) /* MVS VERSION */ |
| r2241 | r2242 | |
| 5170 | 5284 | ROM_LOAD16_BYTE( "263-c6bl.bin", 0x2000001, 0x800000, CRC(5ed018ab) SHA1(e78501fa8a80960093a4d54ce952681a98300148) ) /* Plane 2,3 */ |
| 5171 | 5285 | ROM_END |
| 5172 | 5286 | |
| 5173 | ||
| 5174 | 5287 | ROM_START( rotd ) /* Encrypted Set */ /* MVS VERSION */ |
| 5175 | 5288 | ROM_REGION( 0x800000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5176 | 5289 | ROM_LOAD16_WORD_SWAP( "264-p1.bin", 0x000000, 0x800000, CRC(b8cc969d) SHA1(4f2205b4bdd32dd1522106ef4df10ac0eb1b852d) ) |
| r2241 | r2242 | |
| 5208 | 5321 | ROM_LOAD16_BYTE( "264-c8.bin", 0x3000001, 0x800000, CRC(c5edb5c4) SHA1(253378c8739daa5da4edb15eff7050820b2b3755) ) /* Plane 2,3 */ |
| 5209 | 5322 | ROM_END |
| 5210 | 5323 | |
| 5211 | ||
| 5212 | 5324 | ROM_START( kof2002 ) /* Encrypted Set */ |
| 5213 | 5325 | ROM_REGION( 0x500000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5214 | 5326 | ROM_LOAD16_WORD_SWAP( "265-p1.bin", 0x000000, 0x100000, CRC(9ede7323) SHA1(ad9d45498777fda9fa58e75781f48e09aee705a6) ) |
| r2241 | r2242 | |
| 5311 | 5423 | ROM_LOAD16_BYTE( "265-c8.bin", 0x3000001, 0x800000, CRC(ab0bb549) SHA1(d23afb60b7f831f7d4a98ad3c4a00ee19877a1ce) ) /* Plane 2,3 */ |
| 5312 | 5424 | ROM_END |
| 5313 | 5425 | |
| 5314 | ROM_START( kf2k2mp ) | |
| 5426 | ROM_START( kf2k2mp ) /* bootleg */ | |
| 5315 | 5427 | ROM_REGION( 0x800000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5316 | 5428 | ROM_LOAD16_WORD_SWAP( "kf02m-p1.bin", 0x000000, 0x400000, CRC(ff7c6ec0) SHA1(704c14d671dcb4cfed44d9f978a289cb7dd9d065) ) |
| 5317 | 5429 | ROM_LOAD16_WORD_SWAP( "kf02m-p2.bin", 0x400000, 0x400000, CRC(91584716) SHA1(90da863037cf775957fa154cd42536e221df5740) ) |
| r2241 | r2242 | |
| 5365 | 5477 | ROM_LOAD16_BYTE( "265-c8.bin", 0x3000001, 0x800000, CRC(ab0bb549) SHA1(d23afb60b7f831f7d4a98ad3c4a00ee19877a1ce) ) /* Plane 2,3 */ |
| 5366 | 5478 | ROM_END |
| 5367 | 5479 | |
| 5368 | ||
| 5369 | 5480 | ROM_START( matrim ) /* Encrypted Set */ /* MVS AND AES VERSION */ |
| 5370 | 5481 | ROM_REGION( 0x500000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5371 | 5482 | ROM_LOAD16_WORD_SWAP( "266-p1.bin", 0x000000, 0x100000, CRC(5d4c2dc7) SHA1(8d723b0d28ec344eef26009b361a2b97d300dd51) ) |
| r2241 | r2242 | |
| 5404 | 5515 | ROM_LOAD16_BYTE( "266-c8.bin", 0x3000001, 0x800000, CRC(29873d33) SHA1(dc77f129ed49b8d40d0d4241feef3f6c2f19a987) ) /* Plane 2,3 */ |
| 5405 | 5516 | ROM_END |
| 5406 | 5517 | |
| 5407 | ||
| 5408 | 5518 | ROM_START( pnyaa ) /* Encrypted Set */ /* MVS VERSION */ |
| 5409 | 5519 | ROM_REGION( 0x100000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5410 | 5520 | ROM_LOAD16_WORD_SWAP( "267-p1.bin", 0x000000, 0x100000, CRC(112fe2c0) SHA1(01420e051f0bdbd4f68ce306a3738161b96f8ba8) ) |
| r2241 | r2242 | |
| 5531 | 5641 | /* Encrypted, we load it here for reference and replace with decrypted ROM */ |
| 5532 | 5642 | ROM_LOAD( "268-m1.bin", 0x00000, 0x10000, CRC(58b107d0) SHA1(cc7fe66ff4f9c026cde4df06f86c848eb21f7af8) ) |
| 5533 | 5643 | /* Decrypted */ |
| 5534 | ROM_LOAD( "268-m1_decrypted.bin", 0x00000, 0x10000, CRC(3c0655a7) SHA1(ae839d4c2b87a7aa3dd8e5caddc43eb75ee9b732) ) / | |
| 5644 | ROM_LOAD( "268-m1_decrypted.bin", 0x00000, 0x10000, CRC(3c0655a7) SHA1(ae839d4c2b87a7aa3dd8e5caddc43eb75ee9b732) ) /* not a 100% match for encrypted version */ | |
| 5535 | 5645 | ROM_RELOAD( 0x10000, 0x10000 ) |
| 5536 | 5646 | |
| 5537 | 5647 | ROM_Y_ZOOM |
| r2241 | r2242 | |
| 5563 | 5673 | ROM_REGION( 0x20000, NEOGEO_REGION_FIXED_LAYER_BIOS, 0 ) |
| 5564 | 5674 | ROM_LOAD( "sfix.sfx", 0x000000, 0x20000, CRC(354029fc) SHA1(4ae4bf23b4c2acff875775d4cbff5583893ce2a1) ) |
| 5565 | 5675 | |
| 5566 | ROM_REGION( 0x | |
| 5676 | ROM_REGION( 0x80000, NEOGEO_REGION_AUDIO_CPU_ENCRYPTED, 0 ) | |
| 5567 | 5677 | /* Encrypted, we load it here for reference and replace with decrypted ROM */ |
| 5568 | ROM_LOAD( "268-m1.bin", 0x00000, 0x | |
| 5678 | ROM_LOAD( "268-m1.bin", 0x00000, 0x80000, CRC(4a5a6e0e | |
| 5569 | 5679 | /* Decrypted */ |
| 5570 | NEO_BIOS_AUDIO_64K( "268-m1_decrypted.bin", CRC(3c0655a7) SHA1(ae839d4c2b87a7aa3dd8e5caddc43eb75ee9b732) ) / | |
| 5680 | NEO_BIOS_AUDIO_64K( "268-m1_decrypted.bin", CRC(3c0655a7) SHA1(ae839d4c2b87a7aa3dd8e5caddc43eb75ee9b732) ) /* not a 100% match for encrypted version */ | |
| 5571 | 5681 | |
| 5572 | 5682 | ROM_REGION( 0x1000000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 5573 | 5683 | /* Encrypted */ |
| r2241 | r2242 | |
| 5599 | 5709 | |
| 5600 | 5710 | ROM_REGION16_BE( 0x80000, NEOGEO_REGION_MAIN_CPU_BIOS, 0 ) |
| 5601 | 5711 | /* this contains both an ASIA and JAPAN bios, HARDDIP3 on the PCB selects which to use */ |
| 5602 | ROM_LOAD16_WORD_SWAP( " | |
| 5712 | ROM_LOAD16_WORD_SWAP( " | |
| 5603 | 5713 | |
| 5604 | 5714 | ROM_REGION( 0x90000, NEOGEO_REGION_AUDIO_CPU_CARTRIDGE, 0 ) |
| 5605 | /* Encrypted */ | |
| 5715 | /* Encrypted, we load it here for reference and replace with decrypted ROM */ | |
| 5606 | 5716 | ROM_LOAD( "269-m1.bin", 0x00000, 0x80000, CRC(f6819d00) SHA1(d3bbe09df502464f104e53501708ac6e2c1832c6) ) |
| 5607 | 5717 | /* Decrypted */ |
| 5608 | 5718 | ROM_LOAD( "269-m1_decrypted.bin", 0x00000, 0x80000, CRC(7b7bf462) SHA1(7466a6962de5242f71b9c52d7bd21a9832115e11) ) |
| r2241 | r2242 | |
| 5621 | 5731 | ROM_LOAD( "269-c2.bin", 0x2000000, 0x2000000, CRC(5a95f294) SHA1(6123cc7b20b494076185d27c2ffea910e124b195) ) /* Plane 0,1 */ |
| 5622 | 5732 | ROM_END |
| 5623 | 5733 | |
| 5624 | /* alt PCB version, this one has the same program roms as the MVS set, and different GFX / Sound rom arrangements */ | |
| 5734 | /* alt PCB version, this one has the same program roms as the MVS set, and different GFX / Sound rom arrangements */ | |
| 5625 | 5735 | ROM_START( svcpcba ) /* Encrypted Set, JAMMA PCB */ |
| 5626 | 5736 | ROM_REGION( 0x800000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5627 | 5737 | ROM_LOAD32_WORD_SWAP( "269-p1a.bin", 0x000000, 0x400000, CRC(38e2005e) SHA1(1b902905916a30969282f1399a756e32ff069097) ) |
| r2241 | r2242 | |
| 5634 | 5744 | |
| 5635 | 5745 | ROM_REGION16_BE( 0x80000, NEOGEO_REGION_MAIN_CPU_BIOS, 0 ) |
| 5636 | 5746 | /* this contains both an ASIA and JAPAN bios, HARDDIP3 on the PCB selects which to use */ |
| 5637 | ROM_LOAD16_WORD_SWAP( " | |
| 5747 | ROM_LOAD16_WORD_SWAP( " | |
| 5638 | 5748 | |
| 5639 | 5749 | ROM_REGION( 0x90000, NEOGEO_REGION_AUDIO_CPU_CARTRIDGE, 0 ) |
| 5640 | /* Encrypted */ | |
| 5750 | /* Encrypted, we load it here for reference and replace with decrypted ROM */ | |
| 5641 | 5751 | ROM_LOAD( "269-m1.bin", 0x00000, 0x80000, CRC(f6819d00) SHA1(d3bbe09df502464f104e53501708ac6e2c1832c6) ) |
| 5642 | 5752 | /* Decrypted */ |
| 5643 | 5753 | ROM_LOAD( "269-m1_decrypted.bin", 0x00000, 0x80000, CRC(7b7bf462) SHA1(7466a6962de5242f71b9c52d7bd21a9832115e11) ) |
| r2241 | r2242 | |
| 5693 | 5803 | ROM_LOAD16_BYTE( "269-c8r.bin", 0x3000001, 0x800000, CRC(2570b71b) SHA1(99266e1c2ffcf324793fb5c55325fbc7e6265ac0) ) /* Plane 2,3 */ |
| 5694 | 5804 | ROM_END |
| 5695 | 5805 | |
| 5696 | ||
| 5697 | ROM_START( svcboot ) | |
| 5806 | ROM_START( svcboot ) /* bootleg */ | |
| 5698 | 5807 | ROM_REGION( 0x800000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5699 | 5808 | ROM_LOAD16_WORD_SWAP( "svc-p1.bin", 0x000000, 0x800000, CRC(0348f162) SHA1(c313351d68effd92aeb80ed320e4f8c26a3bb53e) ) |
| 5700 | 5809 | |
| r2241 | r2242 | |
| 5725 | 5834 | NO_DELTAT_REGION |
| 5726 | 5835 | |
| 5727 | 5836 | ROM_REGION( 0x4000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 5728 | ROM_LOAD16_BYTE( "svc-c1.bin", 0x0000000, 0x800000, CRC(a7826b89) SHA1(3bbe348ce54b80b56ef032ea532a18ef3cafeb11) ) | |
| 5729 | ROM_LOAD16_BYTE( "svc-c2.bin", 0x0000001, 0x800000, CRC(ed3c2089) SHA1(b5d17692f15f5a678c273589fab2e3918711135e) ) | |
| 5730 | ROM_LOAD16_BYTE( "svc-c3.bin", 0x1000000, 0x800000, CRC(71ed8063) SHA1(ea1df9e2e382a8560a06d447421844cc588f43dd) ) | |
| 5731 | ROM_LOAD16_BYTE( "svc-c4.bin", 0x1000001, 0x800000, CRC(250bde2d) SHA1(8c72dcfceef6d022ab4b73ab37cf3ac0c3940c17) ) | |
| 5732 | ROM_LOAD16_BYTE( "svc-c5.bin", 0x2000000, 0x800000, CRC(9817c082) SHA1(1bea9c7220c2b1524896c86841d6d8fd55f5d366) ) | |
| 5733 | ROM_LOAD16_BYTE( "svc-c6.bin", 0x2000001, 0x800000, CRC(2bc0307f) SHA1(8090fa82c46eb503832359093c8cc3cee3141c90) ) | |
| 5734 | ROM_LOAD16_BYTE( "svc-c7.bin", 0x3000000, 0x800000, CRC(4358d7b9) SHA1(9270b58c2abc072a046bedda72f1395df26d0714) ) | |
| 5735 | ROM_LOAD16_BYTE( "svc-c8.bin", 0x3000001, 0x800000, CRC(366deee5) SHA1(d477ad7a5987fd6c7ef2c1680fbb7c884654590e) ) | |
| 5837 | ROM_LOAD16_BYTE( "svc-c1.bin", 0x0000000, 0x800000, CRC(a7826b89) SHA1(3bbe348ce54b80b56ef032ea532a18ef3cafeb11) ) /* Plane 0,1 */ | |
| 5838 | ROM_LOAD16_BYTE( "svc-c2.bin", 0x0000001, 0x800000, CRC(ed3c2089) SHA1(b5d17692f15f5a678c273589fab2e3918711135e) ) /* Plane 2,3 */ | |
| 5839 | ROM_LOAD16_BYTE( "svc-c3.bin", 0x1000000, 0x800000, CRC(71ed8063) SHA1(ea1df9e2e382a8560a06d447421844cc588f43dd) ) /* Plane 0,1 */ | |
| 5840 | ROM_LOAD16_BYTE( "svc-c4.bin", 0x1000001, 0x800000, CRC(250bde2d) SHA1(8c72dcfceef6d022ab4b73ab37cf3ac0c3940c17) ) /* Plane 2,3 */ | |
| 5841 | ROM_LOAD16_BYTE( "svc-c5.bin", 0x2000000, 0x800000, CRC(9817c082) SHA1(1bea9c7220c2b1524896c86841d6d8fd55f5d366) ) /* Plane 0,1 */ | |
| 5842 | ROM_LOAD16_BYTE( "svc-c6.bin", 0x2000001, 0x800000, CRC(2bc0307f) SHA1(8090fa82c46eb503832359093c8cc3cee3141c90) ) /* Plane 2,3 */ | |
| 5843 | ROM_LOAD16_BYTE( "svc-c7.bin", 0x3000000, 0x800000, CRC(4358d7b9) SHA1(9270b58c2abc072a046bedda72f1395df26d0714) ) /* Plane 0,1 */ | |
| 5844 | ROM_LOAD16_BYTE( "svc-c8.bin", 0x3000001, 0x800000, CRC(366deee5) SHA1(d477ad7a5987fd6c7ef2c1680fbb7c884654590e) ) /* Plane 2,3 */ | |
| 5736 | 5845 | ROM_END |
| 5737 | 5846 | |
| 5738 | ROM_START( svcplus ) | |
| 5847 | ROM_START( svcplus ) /* bootleg */ | |
| 5739 | 5848 | ROM_REGION( 0x600000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5740 | 5849 | ROM_LOAD16_WORD_SWAP( "svc-p1p.bin", 0x000000, 0x200000, CRC(a194d842) SHA1(72b7bfa34a97632b1aa003488e074d766a6c2f08) ) |
| 5741 | 5850 | ROM_LOAD16_WORD_SWAP( "svc-p2p.bin", 0x200000, 0x200000, CRC(50c0e2b7) SHA1(97b396415ab0e692e43ddf371091e5a456712f0a) ) |
| r2241 | r2242 | |
| 5762 | 5871 | NO_DELTAT_REGION |
| 5763 | 5872 | |
| 5764 | 5873 | ROM_REGION( 0x4000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 5765 | ROM_LOAD16_BYTE( "svc-c1.bin", 0x0000000, 0x800000, CRC(a7826b89) SHA1(3bbe348ce54b80b56ef032ea532a18ef3cafeb11) ) | |
| 5766 | ROM_LOAD16_BYTE( "svc-c2.bin", 0x0000001, 0x800000, CRC(ed3c2089) SHA1(b5d17692f15f5a678c273589fab2e3918711135e) ) | |
| 5767 | ROM_LOAD16_BYTE( "svc-c3.bin", 0x1000000, 0x800000, CRC(71ed8063) SHA1(ea1df9e2e382a8560a06d447421844cc588f43dd) ) | |
| 5768 | ROM_LOAD16_BYTE( "svc-c4.bin", 0x1000001, 0x800000, CRC(250bde2d) SHA1(8c72dcfceef6d022ab4b73ab37cf3ac0c3940c17) ) | |
| 5769 | ROM_LOAD16_BYTE( "svc-c5.bin", 0x2000000, 0x800000, CRC(9817c082) SHA1(1bea9c7220c2b1524896c86841d6d8fd55f5d366) ) | |
| 5770 | ROM_LOAD16_BYTE( "svc-c6.bin", 0x2000001, 0x800000, CRC(2bc0307f) SHA1(8090fa82c46eb503832359093c8cc3cee3141c90) ) | |
| 5771 | ROM_LOAD16_BYTE( "svc-c7.bin", 0x3000000, 0x800000, CRC(4358d7b9) SHA1(9270b58c2abc072a046bedda72f1395df26d0714) ) | |
| 5772 | ROM_LOAD16_BYTE( "svc-c8.bin", 0x3000001, 0x800000, CRC(366deee5) SHA1(d477ad7a5987fd6c7ef2c1680fbb7c884654590e) ) | |
| 5874 | ROM_LOAD16_BYTE( "svc-c1.bin", 0x0000000, 0x800000, CRC(a7826b89) SHA1(3bbe348ce54b80b56ef032ea532a18ef3cafeb11) ) /* Plane 0,1 */ | |
| 5875 | ROM_LOAD16_BYTE( "svc-c2.bin", 0x0000001, 0x800000, CRC(ed3c2089) SHA1(b5d17692f15f5a678c273589fab2e3918711135e) ) /* Plane 2,3 */ | |
| 5876 | ROM_LOAD16_BYTE( "svc-c3.bin", 0x1000000, 0x800000, CRC(71ed8063) SHA1(ea1df9e2e382a8560a06d447421844cc588f43dd) ) /* Plane 0,1 */ | |
| 5877 | ROM_LOAD16_BYTE( "svc-c4.bin", 0x1000001, 0x800000, CRC(250bde2d) SHA1(8c72dcfceef6d022ab4b73ab37cf3ac0c3940c17) ) /* Plane 2,3 */ | |
| 5878 | ROM_LOAD16_BYTE( "svc-c5.bin", 0x2000000, 0x800000, CRC(9817c082) SHA1(1bea9c7220c2b1524896c86841d6d8fd55f5d366) ) /* Plane 0,1 */ | |
| 5879 | ROM_LOAD16_BYTE( "svc-c6.bin", 0x2000001, 0x800000, CRC(2bc0307f) SHA1(8090fa82c46eb503832359093c8cc3cee3141c90) ) /* Plane 2,3 */ | |
| 5880 | ROM_LOAD16_BYTE( "svc-c7.bin", 0x3000000, 0x800000, CRC(4358d7b9) SHA1(9270b58c2abc072a046bedda72f1395df26d0714) ) /* Plane 0,1 */ | |
| 5881 | ROM_LOAD16_BYTE( "svc-c8.bin", 0x3000001, 0x800000, CRC(366deee5) SHA1(d477ad7a5987fd6c7ef2c1680fbb7c884654590e) ) /* Plane 2,3 */ | |
| 5773 | 5882 | ROM_END |
| 5774 | 5883 | |
| 5775 | ROM_START( svcplusa ) | |
| 5884 | ROM_START( svcplusa ) /* bootleg */ | |
| 5776 | 5885 | ROM_REGION( 0x600000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5777 | 5886 | ROM_LOAD16_WORD_SWAP( "svc-p1pl.bin", 0x000000, 0x200000, CRC(16b44144) SHA1(5eab530274b1b6f480a39a86c199da524cddfccc) ) |
| 5778 | 5887 | ROM_LOAD16_WORD_SWAP( "svc-p2pl.bin", 0x200000, 0x400000, CRC(7231ace2) SHA1(d2f13ddd5d3ee29b4b9824e8663f7ee0241f30cf) ) |
| r2241 | r2242 | |
| 5804 | 5913 | NO_DELTAT_REGION |
| 5805 | 5914 | |
| 5806 | 5915 | ROM_REGION( 0x4000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 5807 | ROM_LOAD16_BYTE( "svc-c1.bin", 0x0000000, 0x800000, CRC(a7826b89) SHA1(3bbe348ce54b80b56ef032ea532a18ef3cafeb11) ) | |
| 5808 | ROM_LOAD16_BYTE( "svc-c2.bin", 0x0000001, 0x800000, CRC(ed3c2089) SHA1(b5d17692f15f5a678c273589fab2e3918711135e) ) | |
| 5809 | ROM_LOAD16_BYTE( "svc-c3.bin", 0x1000000, 0x800000, CRC(71ed8063) SHA1(ea1df9e2e382a8560a06d447421844cc588f43dd) ) | |
| 5810 | ROM_LOAD16_BYTE( "svc-c4.bin", 0x1000001, 0x800000, CRC(250bde2d) SHA1(8c72dcfceef6d022ab4b73ab37cf3ac0c3940c17) ) | |
| 5811 | ROM_LOAD16_BYTE( "svc-c5.bin", 0x2000000, 0x800000, CRC(9817c082) SHA1(1bea9c7220c2b1524896c86841d6d8fd55f5d366) ) | |
| 5812 | ROM_LOAD16_BYTE( "svc-c6.bin", 0x2000001, 0x800000, CRC(2bc0307f) SHA1(8090fa82c46eb503832359093c8cc3cee3141c90) ) | |
| 5813 | ROM_LOAD16_BYTE( "svc-c7.bin", 0x3000000, 0x800000, CRC(4358d7b9) SHA1(9270b58c2abc072a046bedda72f1395df26d0714) ) | |
| 5814 | ROM_LOAD16_BYTE( "svc-c8.bin", 0x3000001, 0x800000, CRC(366deee5) SHA1(d477ad7a5987fd6c7ef2c1680fbb7c884654590e) ) | |
| 5916 | ROM_LOAD16_BYTE( "svc-c1.bin", 0x0000000, 0x800000, CRC(a7826b89) SHA1(3bbe348ce54b80b56ef032ea532a18ef3cafeb11) ) /* Plane 0,1 */ | |
| 5917 | ROM_LOAD16_BYTE( "svc-c2.bin", 0x0000001, 0x800000, CRC(ed3c2089) SHA1(b5d17692f15f5a678c273589fab2e3918711135e) ) /* Plane 2,3 */ | |
| 5918 | ROM_LOAD16_BYTE( "svc-c3.bin", 0x1000000, 0x800000, CRC(71ed8063) SHA1(ea1df9e2e382a8560a06d447421844cc588f43dd) ) /* Plane 0,1 */ | |
| 5919 | ROM_LOAD16_BYTE( "svc-c4.bin", 0x1000001, 0x800000, CRC(250bde2d) SHA1(8c72dcfceef6d022ab4b73ab37cf3ac0c3940c17) ) /* Plane 2,3 */ | |
| 5920 | ROM_LOAD16_BYTE( "svc-c5.bin", 0x2000000, 0x800000, CRC(9817c082) SHA1(1bea9c7220c2b1524896c86841d6d8fd55f5d366) ) /* Plane 0,1 */ | |
| 5921 | ROM_LOAD16_BYTE( "svc-c6.bin", 0x2000001, 0x800000, CRC(2bc0307f) SHA1(8090fa82c46eb503832359093c8cc3cee3141c90) ) /* Plane 2,3 */ | |
| 5922 | ROM_LOAD16_BYTE( "svc-c7.bin", 0x3000000, 0x800000, CRC(4358d7b9) SHA1(9270b58c2abc072a046bedda72f1395df26d0714) ) /* Plane 0,1 */ | |
| 5923 | ROM_LOAD16_BYTE( "svc-c8.bin", 0x3000001, 0x800000, CRC(366deee5) SHA1(d477ad7a5987fd6c7ef2c1680fbb7c884654590e) ) /* Plane 2,3 */ | |
| 5815 | 5924 | ROM_END |
| 5816 | 5925 | |
| 5817 | ROM_START( svcsplus ) | |
| 5926 | ROM_START( svcsplus ) /* bootleg */ | |
| 5818 | 5927 | ROM_REGION( 0x800000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5819 | 5928 | ROM_LOAD16_WORD_SWAP( "svc-p1sp.bin", 0x000000, 0x400000, CRC(2601902f) SHA1(202348a13c6480f7de37a3ee983823838822fc98) ) |
| 5820 | 5929 | ROM_LOAD16_WORD_SWAP( "svc-p2sp.bin", 0x400000, 0x400000, CRC(0ca13305) SHA1(ac8fbca71b754acbcdd11802161a62ae1cf32d88) ) |
| r2241 | r2242 | |
| 5840 | 5949 | NO_DELTAT_REGION |
| 5841 | 5950 | |
| 5842 | 5951 | ROM_REGION( 0x4000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 5843 | ROM_LOAD16_BYTE( "svc-c1.bin", 0x0000000, 0x800000, CRC(a7826b89) SHA1(3bbe348ce54b80b56ef032ea532a18ef3cafeb11) ) | |
| 5844 | ROM_LOAD16_BYTE( "svc-c2.bin", 0x0000001, 0x800000, CRC(ed3c2089) SHA1(b5d17692f15f5a678c273589fab2e3918711135e) ) | |
| 5845 | ROM_LOAD16_BYTE( "svc-c3.bin", 0x1000000, 0x800000, CRC(71ed8063) SHA1(ea1df9e2e382a8560a06d447421844cc588f43dd) ) | |
| 5846 | ROM_LOAD16_BYTE( "svc-c4.bin", 0x1000001, 0x800000, CRC(250bde2d) SHA1(8c72dcfceef6d022ab4b73ab37cf3ac0c3940c17) ) | |
| 5847 | ROM_LOAD16_BYTE( "svc-c5.bin", 0x2000000, 0x800000, CRC(9817c082) SHA1(1bea9c7220c2b1524896c86841d6d8fd55f5d366) ) | |
| 5848 | ROM_LOAD16_BYTE( "svc-c6.bin", 0x2000001, 0x800000, CRC(2bc0307f) SHA1(8090fa82c46eb503832359093c8cc3cee3141c90) ) | |
| 5849 | ROM_LOAD16_BYTE( "svc-c7.bin", 0x3000000, 0x800000, CRC(4358d7b9) SHA1(9270b58c2abc072a046bedda72f1395df26d0714) ) | |
| 5850 | ROM_LOAD16_BYTE( "svc-c8.bin", 0x3000001, 0x800000, CRC(366deee5) SHA1(d477ad7a5987fd6c7ef2c1680fbb7c884654590e) ) | |
| 5952 | ROM_LOAD16_BYTE( "svc-c1.bin", 0x0000000, 0x800000, CRC(a7826b89) SHA1(3bbe348ce54b80b56ef032ea532a18ef3cafeb11) ) /* Plane 0,1 */ | |
| 5953 | ROM_LOAD16_BYTE( "svc-c2.bin", 0x0000001, 0x800000, CRC(ed3c2089) SHA1(b5d17692f15f5a678c273589fab2e3918711135e) ) /* Plane 2,3 */ | |
| 5954 | ROM_LOAD16_BYTE( "svc-c3.bin", 0x1000000, 0x800000, CRC(71ed8063) SHA1(ea1df9e2e382a8560a06d447421844cc588f43dd) ) /* Plane 0,1 */ | |
| 5955 | ROM_LOAD16_BYTE( "svc-c4.bin", 0x1000001, 0x800000, CRC(250bde2d) SHA1(8c72dcfceef6d022ab4b73ab37cf3ac0c3940c17) ) /* Plane 2,3 */ | |
| 5956 | ROM_LOAD16_BYTE( "svc-c5.bin", 0x2000000, 0x800000, CRC(9817c082) SHA1(1bea9c7220c2b1524896c86841d6d8fd55f5d366) ) /* Plane 0,1 */ | |
| 5957 | ROM_LOAD16_BYTE( "svc-c6.bin", 0x2000001, 0x800000, CRC(2bc0307f) SHA1(8090fa82c46eb503832359093c8cc3cee3141c90) ) /* Plane 2,3 */ | |
| 5958 | ROM_LOAD16_BYTE( "svc-c7.bin", 0x3000000, 0x800000, CRC(4358d7b9) SHA1(9270b58c2abc072a046bedda72f1395df26d0714) ) /* Plane 0,1 */ | |
| 5959 | ROM_LOAD16_BYTE( "svc-c8.bin", 0x3000001, 0x800000, CRC(366deee5) SHA1(d477ad7a5987fd6c7ef2c1680fbb7c884654590e) ) /* Plane 2,3 */ | |
| 5851 | 5960 | ROM_END |
| 5852 | 5961 | |
| 5853 | ROM_START( samsho5 ) /* Encrypted Set | |
| 5962 | ROM_START( samsho5 ) /* Encrypted Set */ /* MVS VERSION */ | |
| 5854 | 5963 | ROM_REGION( 0x800000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5855 | 5964 | ROM_LOAD16_WORD_SWAP( "270-p1.bin", 0x000000, 0x400000, CRC(4a2a09e6) SHA1(2644de02cdab8ccc605488a7c76b8c9cd1d5bcb9) ) |
| 5856 | 5965 | ROM_LOAD16_WORD_SWAP( "270-p2.bin", 0x400000, 0x400000, CRC(e0c74c85) SHA1(df24a4ee76438e40c2f04a714175a7f85cacdfe0) ) |
| r2241 | r2242 | |
| 5926 | 6035 | ROM_LOAD16_BYTE( "270-c8.bin", 0x3000001, 0x800000, CRC(02c530a6) SHA1(7a3fafa6075506c6ef78cc4ec2cb72118ec83cb9) ) /* Plane 2,3 */ |
| 5927 | 6036 | ROM_END |
| 5928 | 6037 | |
| 5929 | ROM_START( samsho5b ) | |
| 6038 | ROM_START( samsho5b ) /* bootleg */ | |
| 5930 | 6039 | ROM_REGION( 0x800000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 5931 | 6040 | ROM_LOAD16_WORD_SWAP( "270-p2bl.bin", 0x000000, 0x400000, CRC(5023067f) SHA1(b1d682fa7d158f19664356a919da6572e8cfeee0) ) |
| 5932 | 6041 | ROM_LOAD16_WORD_SWAP( "270-p1bl.bin", 0x400000, 0x400000, CRC(b6cbe386) SHA1(99c2407361116c2b2c5fe72df53e05c5f99163c1) ) |
| r2241 | r2242 | |
| 5979 | 6088 | ROM_LOAD16_WORD_SWAP( "271-bios.bin", 0x00000, 0x080000, CRC(148dd727) SHA1(2cf592a16c7157de02a989675d47965f2b3a44dd) ) // encrypted |
| 5980 | 6089 | |
| 5981 | 6090 | ROM_REGION( 0x90000, NEOGEO_REGION_AUDIO_CPU_CARTRIDGE, 0 ) |
| 5982 | /* Encrypted */ | |
| 6091 | /* Encrypted, we load it here for reference and replace with decrypted ROM */ | |
| 5983 | 6092 | ROM_LOAD( "271-m1.bin", 0x00000, 0x80000, CRC(d6bcf2bc) SHA1(df78bc95990eb8e8f3638dde6e1876354df7fe84) ) |
| 5984 | 6093 | /* Decrypted */ |
| 5985 | ROM_LOAD( "271-m1_decrypted.bin", 0x00000, 0x80000, CRC(0e86af8f) SHA1(769102b67bb1a699cfa5674d66cdb46ae633cb65) ) | |
| 6094 | ROM_LOAD( "271-m1_decrypted.bin", 0x00000, 0x80000, CRC(0e86af8f) SHA1(769102b67bb1a699cfa5674d66cdb46ae633cb65) ) | |
| 5986 | 6095 | ROM_RELOAD( 0x10000, 0x80000 ) |
| 5987 | 6096 | |
| 5988 | 6097 | ROM_Y_ZOOM |
| r2241 | r2242 | |
| 6003 | 6112 | ROM_LOAD32_WORD( "271-c6.bin", 0x4000002, 0x1000000, CRC(1c40de87) SHA1(8d6425aed43ff6a96c88194e203df6a783286373) ) /* Plane 2,3 */ |
| 6004 | 6113 | ROM_END |
| 6005 | 6114 | |
| 6006 | ROM_START( kof2003 ) /* Encrypted Code + Sound + GFX Roms */ | |
| 6115 | ROM_START( kof2003 ) /* Encrypted Code + Sound + GFX Roms */ /* MVS VERSION */ | |
| 6007 | 6116 | ROM_REGION( 0x900000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 6008 | 6117 | ROM_LOAD32_WORD_SWAP( "271-p1c.bin", 0x000000, 0x400000, CRC(530ecc14) SHA1(812cf7e9902af3f5e9e330b7c05c2171b139ad2b) ) |
| 6009 | 6118 | ROM_LOAD32_WORD_SWAP( "271-p2c.bin", 0x000002, 0x400000, CRC(fd568da9) SHA1(46364906a1e81dc251117e91a1a7b43af1373ada) ) |
| r2241 | r2242 | |
| 6021 | 6130 | /* The M1 ROM is encrypted, we load it here for reference and replace it with a decrypted version */ |
| 6022 | 6131 | ROM_LOAD( "271-m1c.bin", 0x00000, 0x080000, CRC(f5515629) SHA1(7516bf1b0207a3c8d41dc30c478f8d8b1f71304b) ) |
| 6023 | 6132 | /* Decrypted */ |
| 6024 | NEO_BIOS_AUDIO_512K( "271-m1_decrypted.bin", CRC(0e86af8f) SHA1(769102b67bb1a699cfa5674d66cdb46ae633cb65) ) | |
| 6133 | NEO_BIOS_AUDIO_512K( "271-m1_decrypted.bin", CRC(0e86af8f) SHA1(769102b67bb1a699cfa5674d66cdb46ae633cb65) ) | |
| 6025 | 6134 | |
| 6026 | 6135 | ROM_REGION( 0x1000000, NEOGEO_REGION_AUDIO_DATA_1, 0 ) |
| 6027 | 6136 | /* Encrypted */ |
| r2241 | r2242 | |
| 6032 | 6141 | |
| 6033 | 6142 | ROM_REGION( 0x4000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 6034 | 6143 | /* Encrypted */ |
| 6035 | ROM_LOAD16_BYTE( "271-c1c.bin", 0x0000000, 0x800000, CRC(b1dc25d0) SHA1(50adc3c60d5b4b3abd10a49db2267306c6dbd772) ) | |
| 6036 | ROM_LOAD16_BYTE( "271-c2c.bin", 0x0000001, 0x800000, CRC(d5362437) SHA1(66db36522dc09106388c707252df9fe1c88b4856) ) | |
| 6037 | ROM_LOAD16_BYTE( "271-c3c.bin", 0x1000000, 0x800000, CRC(0a1fbeab) SHA1(9fe30d36ba98d00fda010832ff2f27783dd577c1) ) | |
| 6038 | ROM_LOAD16_BYTE( "271-c4c.bin", 0x1000001, 0x800000, CRC(87b19a0c) SHA1(b72a8e7d9124ce859b5149bb4381ba481c161ea5) ) | |
| 6039 | ROM_LOAD16_BYTE( "271-c5c.bin", 0x2000000, 0x800000, CRC(704ea371) SHA1(e75b80422f0d72eac826f8ffadf79efeccaab124) ) | |
| 6040 | ROM_LOAD16_BYTE( "271-c6c.bin", 0x2000001, 0x800000, CRC(20a1164c) SHA1(c9843b37612a16fc95f6851793b1cfb5d49d811d) ) | |
| 6041 | ROM_LOAD16_BYTE( "271-c7c.bin", 0x3000000, 0x800000, CRC(189aba7f) SHA1(7152195a57ad36b28290810fe87ed8c206262ba9) ) | |
| 6042 | ROM_LOAD16_BYTE( "271-c8c.bin", 0x3000001, 0x800000, CRC(20ec4fdc) SHA1(deb5f7ec5a090e419b9d1a6a74877bee081198e2) ) | |
| 6144 | ROM_LOAD16_BYTE( "271-c1c.bin", 0x0000000, 0x800000, CRC(b1dc25d0) SHA1(50adc3c60d5b4b3abd10a49db2267306c6dbd772) ) /* Plane 0,1 */ | |
| 6145 | ROM_LOAD16_BYTE( "271-c2c.bin", 0x0000001, 0x800000, CRC(d5362437) SHA1(66db36522dc09106388c707252df9fe1c88b4856) ) /* Plane 2,3 */ | |
| 6146 | ROM_LOAD16_BYTE( "271-c3c.bin", 0x1000000, 0x800000, CRC(0a1fbeab) SHA1(9fe30d36ba98d00fda010832ff2f27783dd577c1) ) /* Plane 0,1 */ | |
| 6147 | ROM_LOAD16_BYTE( "271-c4c.bin", 0x1000001, 0x800000, CRC(87b19a0c) SHA1(b72a8e7d9124ce859b5149bb4381ba481c161ea5) ) /* Plane 2,3 */ | |
| 6148 | ROM_LOAD16_BYTE( "271-c5c.bin", 0x2000000, 0x800000, CRC(704ea371) SHA1(e75b80422f0d72eac826f8ffadf79efeccaab124) ) /* Plane 0,1 */ | |
| 6149 | ROM_LOAD16_BYTE( "271-c6c.bin", 0x2000001, 0x800000, CRC(20a1164c) SHA1(c9843b37612a16fc95f6851793b1cfb5d49d811d) ) /* Plane 2,3 */ | |
| 6150 | ROM_LOAD16_BYTE( "271-c7c.bin", 0x3000000, 0x800000, CRC(189aba7f) SHA1(7152195a57ad36b28290810fe87ed8c206262ba9) ) /* Plane 0,1 */ | |
| 6151 | ROM_LOAD16_BYTE( "271-c8c.bin", 0x3000001, 0x800000, CRC(20ec4fdc) SHA1(deb5f7ec5a090e419b9d1a6a74877bee081198e2) ) /* Plane 2,3 */ | |
| 6043 | 6152 | ROM_END |
| 6044 | 6153 | |
| 6045 | ROM_START( kf2k3bl ) | |
| 6154 | ROM_START( kf2k3bl ) /* bootleg */ | |
| 6046 | 6155 | ROM_REGION( 0x800000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 6047 | 6156 | ROM_LOAD16_WORD_SWAP( "271-p1bl.bin" , 0x100000, 0x400000, CRC(92ed6ee3) SHA1(5e7e21eb40dfcc453ba73808760d5ddedd49c58a) ) |
| 6048 | 6157 | ROM_LOAD16_WORD_SWAP( "271-p2bl.bin" , 0x500000, 0x200000, CRC(5d3d8bb3) SHA1(7f2341f14ca12ff5721eb038b3496228a1f34b60) ) |
| r2241 | r2242 | |
| 6062 | 6171 | NO_DELTAT_REGION |
| 6063 | 6172 | |
| 6064 | 6173 | ROM_REGION( 0x4000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 6065 | ROM_LOAD16_BYTE( "2k3-c1.bin", 0x0000000, 0x800000, CRC(e42fc226) SHA1(1cd9364993e141facdcdd53ec2277df7b275d8a7) ) | |
| 6066 | ROM_LOAD16_BYTE( "2k3-c2.bin", 0x0000001, 0x800000, CRC(1b5e3b58) SHA1(0eb254477a9479541291e43e415310852a0f0bed) ) | |
| 6067 | ROM_LOAD16_BYTE( "2k3-c3.bin", 0x1000000, 0x800000, CRC(d334fdd9) SHA1(1efe30b4f56a55e25ab518cf6999de797b5e407c) ) | |
| 6068 | ROM_LOAD16_BYTE( "2k3-c4.bin", 0x1000001, 0x800000, CRC(0d457699) SHA1(ec73d0c9fc7094d0ac6c0986a6e07cde25893e57) ) | |
| 6069 | ROM_LOAD16_BYTE( "2k3-c5.bin", 0x2000000, 0x800000, CRC(8a91aae4) SHA1(802f4baacf801646be1ef686e105b2e867a6a5df) ) | |
| 6070 | ROM_LOAD16_BYTE( "2k3-c6.bin", 0x2000001, 0x800000, CRC(9f8674b8) SHA1(65964f40b2227d020023fb436579927e65807dcd) ) | |
| 6071 | ROM_LOAD16_BYTE( "2k3-c7.bin", 0x3000000, 0x800000, CRC(374ea523) SHA1(613827d72c6181f3e08353750c9af0c4dbad020b) ) | |
| 6072 | ROM_LOAD16_BYTE( "2k3-c8.bin", 0x3000001, 0x800000, CRC(75211f4d) SHA1(d82f044e816ee539ff131d9c931200c818d34cd0) ) | |
| 6174 | ROM_LOAD16_BYTE( "2k3-c1.bin", 0x0000000, 0x800000, CRC(e42fc226) SHA1(1cd9364993e141facdcdd53ec2277df7b275d8a7) ) /* Plane 0,1 */ | |
| 6175 | ROM_LOAD16_BYTE( "2k3-c2.bin", 0x0000001, 0x800000, CRC(1b5e3b58) SHA1(0eb254477a9479541291e43e415310852a0f0bed) ) /* Plane 2,3 */ | |
| 6176 | ROM_LOAD16_BYTE( "2k3-c3.bin", 0x1000000, 0x800000, CRC(d334fdd9) SHA1(1efe30b4f56a55e25ab518cf6999de797b5e407c) ) /* Plane 0,1 */ | |
| 6177 | ROM_LOAD16_BYTE( "2k3-c4.bin", 0x1000001, 0x800000, CRC(0d457699) SHA1(ec73d0c9fc7094d0ac6c0986a6e07cde25893e57) ) /* Plane 2,3 */ | |
| 6178 | ROM_LOAD16_BYTE( "2k3-c5.bin", 0x2000000, 0x800000, CRC(8a91aae4) SHA1(802f4baacf801646be1ef686e105b2e867a6a5df) ) /* Plane 0,1 */ | |
| 6179 | ROM_LOAD16_BYTE( "2k3-c6.bin", 0x2000001, 0x800000, CRC(9f8674b8) SHA1(65964f40b2227d020023fb436579927e65807dcd) ) /* Plane 2,3 */ | |
| 6180 | ROM_LOAD16_BYTE( "2k3-c7.bin", 0x3000000, 0x800000, CRC(374ea523) SHA1(613827d72c6181f3e08353750c9af0c4dbad020b) ) /* Plane 0,1 */ | |
| 6181 | ROM_LOAD16_BYTE( "2k3-c8.bin", 0x3000001, 0x800000, CRC(75211f4d) SHA1(d82f044e816ee539ff131d9c931200c818d34cd0) ) /* Plane 2,3 */ | |
| 6073 | 6182 | ROM_END |
| 6074 | 6183 | |
| 6075 | 6184 | |
| 6076 | ROM_START( kf2k3bla ) | |
| 6185 | ROM_START( kf2k3bla ) /* bootleg */ | |
| 6077 | 6186 | ROM_REGION( 0x700000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 6078 | 6187 | ROM_LOAD16_WORD_SWAP( "271-p1bl.rom", 0x000000, 0x100000, CRC(4ea414dd) SHA1(c242c9709c20a8cde3ad562adbe640a5dd5abcf1) ) |
| 6079 | 6188 | ROM_LOAD16_WORD_SWAP( "271-p3bl.rom", 0x100000, 0x400000, CRC(370acbff) SHA1(e72544de1c5e2e4f7478fc003caba9e33a306c19) ) |
| r2241 | r2242 | |
| 6092 | 6201 | NO_DELTAT_REGION |
| 6093 | 6202 | |
| 6094 | 6203 | ROM_REGION( 0x4000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 6095 | ROM_LOAD16_BYTE( "2k3-c1.bin", 0x0000000, 0x800000, CRC(e42fc226) SHA1(1cd9364993e141facdcdd53ec2277df7b275d8a7) ) | |
| 6096 | ROM_LOAD16_BYTE( "2k3-c2.bin", 0x0000001, 0x800000, CRC(1b5e3b58) SHA1(0eb254477a9479541291e43e415310852a0f0bed) ) | |
| 6097 | ROM_LOAD16_BYTE( "2k3-c3.bin", 0x1000000, 0x800000, CRC(d334fdd9) SHA1(1efe30b4f56a55e25ab518cf6999de797b5e407c) ) | |
| 6098 | ROM_LOAD16_BYTE( "2k3-c4.bin", 0x1000001, 0x800000, CRC(0d457699) SHA1(ec73d0c9fc7094d0ac6c0986a6e07cde25893e57) ) | |
| 6099 | ROM_LOAD16_BYTE( "2k3-c5.bin", 0x2000000, 0x800000, CRC(8a91aae4) SHA1(802f4baacf801646be1ef686e105b2e867a6a5df) ) | |
| 6100 | ROM_LOAD16_BYTE( "2k3-c6.bin", 0x2000001, 0x800000, CRC(9f8674b8) SHA1(65964f40b2227d020023fb436579927e65807dcd) ) | |
| 6101 | ROM_LOAD16_BYTE( "2k3-c7.bin", 0x3000000, 0x800000, CRC(374ea523) SHA1(613827d72c6181f3e08353750c9af0c4dbad020b) ) | |
| 6102 | ROM_LOAD16_BYTE( "2k3-c8.bin", 0x3000001, 0x800000, CRC(75211f4d) SHA1(d82f044e816ee539ff131d9c931200c818d34cd0) ) | |
| 6204 | ROM_LOAD16_BYTE( "2k3-c1.bin", 0x0000000, 0x800000, CRC(e42fc226) SHA1(1cd9364993e141facdcdd53ec2277df7b275d8a7) ) /* Plane 0,1 */ | |
| 6205 | ROM_LOAD16_BYTE( "2k3-c2.bin", 0x0000001, 0x800000, CRC(1b5e3b58) SHA1(0eb254477a9479541291e43e415310852a0f0bed) ) /* Plane 2,3 */ | |
| 6206 | ROM_LOAD16_BYTE( "2k3-c3.bin", 0x1000000, 0x800000, CRC(d334fdd9) SHA1(1efe30b4f56a55e25ab518cf6999de797b5e407c) ) /* Plane 0,1 */ | |
| 6207 | ROM_LOAD16_BYTE( "2k3-c4.bin", 0x1000001, 0x800000, CRC(0d457699) SHA1(ec73d0c9fc7094d0ac6c0986a6e07cde25893e57) ) /* Plane 2,3 */ | |
| 6208 | ROM_LOAD16_BYTE( "2k3-c5.bin", 0x2000000, 0x800000, CRC(8a91aae4) SHA1(802f4baacf801646be1ef686e105b2e867a6a5df) ) /* Plane 0,1 */ | |
| 6209 | ROM_LOAD16_BYTE( "2k3-c6.bin", 0x2000001, 0x800000, CRC(9f8674b8) SHA1(65964f40b2227d020023fb436579927e65807dcd) ) /* Plane 2,3 */ | |
| 6210 | ROM_LOAD16_BYTE( "2k3-c7.bin", 0x3000000, 0x800000, CRC(374ea523) SHA1(613827d72c6181f3e08353750c9af0c4dbad020b) ) /* Plane 0,1 */ | |
| 6211 | ROM_LOAD16_BYTE( "2k3-c8.bin", 0x3000001, 0x800000, CRC(75211f4d) SHA1(d82f044e816ee539ff131d9c931200c818d34cd0) ) /* Plane 2,3 */ | |
| 6103 | 6212 | ROM_END |
| 6104 | 6213 | |
| 6105 | ROM_START( kf2k3pl ) | |
| 6214 | ROM_START( kf2k3pl ) /* bootleg */ | |
| 6106 | 6215 | ROM_REGION( 0x700000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 6107 | 6216 | ROM_LOAD16_WORD_SWAP( "271-p1pl.bin", 0x000000, 0x100000, CRC(07b84112) SHA1(0b085a928a39ff9c0745a58bfa4ce6106b5f474a) ) |
| 6108 | 6217 | ROM_LOAD16_WORD_SWAP( "271-p3bl.rom", 0x100000, 0x400000, CRC(370acbff) SHA1(e72544de1c5e2e4f7478fc003caba9e33a306c19) ) |
| r2241 | r2242 | |
| 6121 | 6230 | NO_DELTAT_REGION |
| 6122 | 6231 | |
| 6123 | 6232 | ROM_REGION( 0x4000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 6124 | ROM_LOAD16_BYTE( "2k3-c1.bin", 0x0000000, 0x800000, CRC(e42fc226) SHA1(1cd9364993e141facdcdd53ec2277df7b275d8a7) ) | |
| 6125 | ROM_LOAD16_BYTE( "2k3-c2.bin", 0x0000001, 0x800000, CRC(1b5e3b58) SHA1(0eb254477a9479541291e43e415310852a0f0bed) ) | |
| 6126 | ROM_LOAD16_BYTE( "2k3-c3.bin", 0x1000000, 0x800000, CRC(d334fdd9) SHA1(1efe30b4f56a55e25ab518cf6999de797b5e407c) ) | |
| 6127 | ROM_LOAD16_BYTE( "2k3-c4.bin", 0x1000001, 0x800000, CRC(0d457699) SHA1(ec73d0c9fc7094d0ac6c0986a6e07cde25893e57) ) | |
| 6128 | ROM_LOAD16_BYTE( "2k3-c5.bin", 0x2000000, 0x800000, CRC(8a91aae4) SHA1(802f4baacf801646be1ef686e105b2e867a6a5df) ) | |
| 6129 | ROM_LOAD16_BYTE( "2k3-c6.bin", 0x2000001, 0x800000, CRC(9f8674b8) SHA1(65964f40b2227d020023fb436579927e65807dcd) ) | |
| 6130 | ROM_LOAD16_BYTE( "2k3-c7.bin", 0x3000000, 0x800000, CRC(374ea523) SHA1(613827d72c6181f3e08353750c9af0c4dbad020b) ) | |
| 6131 | ROM_LOAD16_BYTE( "2k3-c8.bin", 0x3000001, 0x800000, CRC(75211f4d) SHA1(d82f044e816ee539ff131d9c931200c818d34cd0) ) | |
| 6233 | ROM_LOAD16_BYTE( "2k3-c1.bin", 0x0000000, 0x800000, CRC(e42fc226) SHA1(1cd9364993e141facdcdd53ec2277df7b275d8a7) ) /* Plane 0,1 */ | |
| 6234 | ROM_LOAD16_BYTE( "2k3-c2.bin", 0x0000001, 0x800000, CRC(1b5e3b58) SHA1(0eb254477a9479541291e43e415310852a0f0bed) ) /* Plane 2,3 */ | |
| 6235 | ROM_LOAD16_BYTE( "2k3-c3.bin", 0x1000000, 0x800000, CRC(d334fdd9) SHA1(1efe30b4f56a55e25ab518cf6999de797b5e407c) ) /* Plane 0,1 */ | |
| 6236 | ROM_LOAD16_BYTE( "2k3-c4.bin", 0x1000001, 0x800000, CRC(0d457699) SHA1(ec73d0c9fc7094d0ac6c0986a6e07cde25893e57) ) /* Plane 2,3 */ | |
| 6237 | ROM_LOAD16_BYTE( "2k3-c5.bin", 0x2000000, 0x800000, CRC(8a91aae4) SHA1(802f4baacf801646be1ef686e105b2e867a6a5df) ) /* Plane 0,1 */ | |
| 6238 | ROM_LOAD16_BYTE( "2k3-c6.bin", 0x2000001, 0x800000, CRC(9f8674b8) SHA1(65964f40b2227d020023fb436579927e65807dcd) ) /* Plane 2,3 */ | |
| 6239 | ROM_LOAD16_BYTE( "2k3-c7.bin", 0x3000000, 0x800000, CRC(374ea523) SHA1(613827d72c6181f3e08353750c9af0c4dbad020b) ) /* Plane 0,1 */ | |
| 6240 | ROM_LOAD16_BYTE( "2k3-c8.bin", 0x3000001, 0x800000, CRC(75211f4d) SHA1(d82f044e816ee539ff131d9c931200c818d34cd0) ) /* Plane 2,3 */ | |
| 6132 | 6241 | ROM_END |
| 6133 | 6242 | |
| 6134 | ROM_START( kf2k3upl ) | |
| 6243 | ROM_START( kf2k3upl ) /* bootleg */ | |
| 6135 | 6244 | ROM_REGION( 0x800000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 6136 | 6245 | ROM_LOAD16_WORD_SWAP( "2k3-p1up.bin", 0x000000, 0x800000, CRC(87294c01) SHA1(21420415a6b2ba1b43ecc1934270dc085d6bd7d9) ) |
| 6137 | 6246 | |
| r2241 | r2242 | |
| 6148 | 6257 | NO_DELTAT_REGION |
| 6149 | 6258 | |
| 6150 | 6259 | ROM_REGION( 0x4000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 6151 | ROM_LOAD16_BYTE( "2k3-c1.bin", 0x0000000, 0x800000, CRC(e42fc226) SHA1(1cd9364993e141facdcdd53ec2277df7b275d8a7) ) | |
| 6152 | ROM_LOAD16_BYTE( "2k3-c2.bin", 0x0000001, 0x800000, CRC(1b5e3b58) SHA1(0eb254477a9479541291e43e415310852a0f0bed) ) | |
| 6153 | ROM_LOAD16_BYTE( "2k3-c3.bin", 0x1000000, 0x800000, CRC(d334fdd9) SHA1(1efe30b4f56a55e25ab518cf6999de797b5e407c) ) | |
| 6154 | ROM_LOAD16_BYTE( "2k3-c4.bin", 0x1000001, 0x800000, CRC(0d457699) SHA1(ec73d0c9fc7094d0ac6c0986a6e07cde25893e57) ) | |
| 6155 | ROM_LOAD16_BYTE( "2k3-c5.bin", 0x2000000, 0x800000, CRC(8a91aae4) SHA1(802f4baacf801646be1ef686e105b2e867a6a5df) ) | |
| 6156 | ROM_LOAD16_BYTE( "2k3-c6.bin", 0x2000001, 0x800000, CRC(9f8674b8) SHA1(65964f40b2227d020023fb436579927e65807dcd) ) | |
| 6157 | ROM_LOAD16_BYTE( "2k3-c7.bin", 0x3000000, 0x800000, CRC(374ea523) SHA1(613827d72c6181f3e08353750c9af0c4dbad020b) ) | |
| 6158 | ROM_LOAD16_BYTE( "2k3-c8.bin", 0x3000001, 0x800000, CRC(75211f4d) SHA1(d82f044e816ee539ff131d9c931200c818d34cd0) ) | |
| 6260 | ROM_LOAD16_BYTE( "2k3-c1.bin", 0x0000000, 0x800000, CRC(e42fc226) SHA1(1cd9364993e141facdcdd53ec2277df7b275d8a7) ) /* Plane 0,1 */ | |
| 6261 | ROM_LOAD16_BYTE( "2k3-c2.bin", 0x0000001, 0x800000, CRC(1b5e3b58) SHA1(0eb254477a9479541291e43e415310852a0f0bed) ) /* Plane 2,3 */ | |
| 6262 | ROM_LOAD16_BYTE( "2k3-c3.bin", 0x1000000, 0x800000, CRC(d334fdd9) SHA1(1efe30b4f56a55e25ab518cf6999de797b5e407c) ) /* Plane 0,1 */ | |
| 6263 | ROM_LOAD16_BYTE( "2k3-c4.bin", 0x1000001, 0x800000, CRC(0d457699) SHA1(ec73d0c9fc7094d0ac6c0986a6e07cde25893e57) ) /* Plane 2,3 */ | |
| 6264 | ROM_LOAD16_BYTE( "2k3-c5.bin", 0x2000000, 0x800000, CRC(8a91aae4) SHA1(802f4baacf801646be1ef686e105b2e867a6a5df) ) /* Plane 0,1 */ | |
| 6265 | ROM_LOAD16_BYTE( "2k3-c6.bin", 0x2000001, 0x800000, CRC(9f8674b8) SHA1(65964f40b2227d020023fb436579927e65807dcd) ) /* Plane 2,3 */ | |
| 6266 | ROM_LOAD16_BYTE( "2k3-c7.bin", 0x3000000, 0x800000, CRC(374ea523) SHA1(613827d72c6181f3e08353750c9af0c4dbad020b) ) /* Plane 0,1 */ | |
| 6267 | ROM_LOAD16_BYTE( "2k3-c8.bin", 0x3000001, 0x800000, CRC(75211f4d) SHA1(d82f044e816ee539ff131d9c931200c818d34cd0) ) /* Plane 2,3 */ | |
| 6159 | 6268 | ROM_END |
| 6160 | 6269 | |
| 6161 | 6270 | |
| r2241 | r2242 | |
| 6273 | 6382 | ROM_LOAD16_BYTE( "272-c8.bin", 0x3000001, 0x800000, CRC(d49773cd) SHA1(cd8cf3b762d381c1f8f12919579c84a7ef7efb3f) ) /* Plane 2,3 */ |
| 6274 | 6383 | ROM_END |
| 6275 | 6384 | |
| 6276 | ||
| 6277 | 6385 | ROM_START( jockeygp ) |
| 6278 | 6386 | ROM_REGION( 0x200000, NEOGEO_REGION_MAIN_CPU_CARTRIDGE, 0 ) |
| 6279 | 6387 | ROM_LOAD16_WORD_SWAP( "jgp-p1.bin", 0x000000, 0x100000, CRC(2fb7f388) SHA1(e3c9b03944b4c10cf5081caaf9c8be1f08c06493) ) |
| r2241 | r2242 | |
| 6300 | 6408 | |
| 6301 | 6409 | ROM_REGION( 0x1000000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 6302 | 6410 | /* Encrypted */ |
| 6303 | ROM_LOAD16_BYTE( "jgp-c1.bin", 0x0000000, 0x800000, CRC(a9acbf18) SHA1(d55122c70cbe78c2679598dc07863e1d1d1a31df) ) | |
| 6304 | ROM_LOAD16_BYTE( "jgp-c2.bin", 0x0000001, 0x800000, CRC(6289eef9) SHA1(a2ede77bb2468a2e1486d74745a22a5451026039) ) | |
| 6411 | ROM_LOAD16_BYTE( "jgp-c1.bin", 0x0000000, 0x800000, CRC(a9acbf18) SHA1(d55122c70cbe78c2679598dc07863e1d1d1a31df) ) /* Plane 0,1 */ | |
| 6412 | ROM_LOAD16_BYTE( "jgp-c2.bin", 0x0000001, 0x800000, CRC(6289eef9) SHA1(a2ede77bb2468a2e1486d74745a22a5451026039) ) /* Plane 2,3 */ | |
| 6305 | 6413 | ROM_END |
| 6306 | 6414 | |
| 6307 | 6415 | ROM_START( vliner ) |
| r2241 | r2242 | |
| 6643 | 6751 | NO_DELTAT_REGION |
| 6644 | 6752 | |
| 6645 | 6753 | ROM_REGION( 0x400000, NEOGEO_REGION_SPRITES, ROMREGION_DISPOSE ) |
| 6646 | ROM_LOAD16_BYTE( "dig_c1.rom", 0x000000, 0x080000, CRC(3db0a4ed) SHA1(6214faa883d97ea05809b6af7e0c85a236a18a28) ) | |
| 6647 | ROM_LOAD16_BYTE( "dig_c2.rom", 0x000001, 0x080000, CRC(3e632161) SHA1(83711c4286fb1d9f3f91414ac6e5fed36618033e) ) | |
| 6754 | ROM_LOAD16_BYTE( "dig_c1.rom", 0x000000, 0x080000, CRC(3db0a4ed) SHA1(6214faa883d97ea05809b6af7e0c85a236a18a28) ) /* Plane 0,1 */ | |
| 6755 | ROM_LOAD16_BYTE( "dig_c2.rom", 0x000001, 0x080000, CRC(3e632161) SHA1(83711c4286fb1d9f3f91414ac6e5fed36618033e) ) /* Plane 2,3 */ | |
| 6648 | 6756 | ROM_END |
| 6649 | 6757 | |
| 6650 | 6758 | |
| r2241 | r2242 | |
| 7216 | 7324 | GAME( 1991, burningf, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Burning Fight (set 1)", 0 ) |
| 7217 | 7325 | GAME( 1991, burningh, burningf, neogeo, neogeo, neogeo, ROT0, "SNK", "Burning Fight (set 2)", 0 ) |
| 7218 | 7326 | GAME( 1990, lbowling, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "League Bowling", 0 ) |
| 7219 | GAME( 1991, gpilots, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Ghost Pilots", 0 ) | |
| 7327 | GAME( 1991, gpilots, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Ghost Pilots (set 1)", 0 ) | |
| 7328 | GAME( 1991, gpilotsh, gpilots, neogeo, neogeo, neogeo, ROT0, "SNK", "Ghost Pilots (set 2)", 0 ) | |
| 7220 | 7329 | GAME( 1990, joyjoy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Puzzled / Joy Joy Kid", 0 ) |
| 7221 | 7330 | GAME( 1991, quizdais, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Quiz Daisousa Sen - The Last Count Down", 0 ) |
| 7222 | 7331 | GAME( 1992, lresort, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Last Resort", 0 ) |
| r2241 | r2242 | |
| 7228 | 7337 | GAME( 1991, socbrawl, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl (set 1)", 0 ) |
| 7229 | 7338 | GAME( 1991, socbrala, socbrawl, neogeo, neogeo, neogeo, ROT0, "SNK", "Soccer Brawl (set 2)", 0 ) |
| 7230 | 7339 | GAME( 1991, fatfury1, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Fatal Fury - King of Fighters / Garou Densetsu - shukumei no tatakai", 0 ) |
| 7231 | GAME( 1991, roboarmy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 1)", 0 ) | |
| 7232 | GAME( 1991, roboarma, roboarmy, neogeo, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 2)", 0 ) | |
| 7340 | GAME( 1991, roboarmy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Robo Army", 0 ) | |
| 7341 | //GAME( 1991, roboarma, roboarmy, neogeo, neogeo, neogeo, ROT0, "SNK", "Robo Army (set 2)", 0 ) | |
| 7233 | 7342 | GAME( 1992, fbfrenzy, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Football Frenzy", 0 ) |
| 7234 | 7343 | GAME( 1992, kotm2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "King of the Monsters 2 - The Next Thing", 0 ) |
| 7235 | 7344 | GAME( 1993, sengoku2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Sengoku 2 / Sengoku Denshou 2", 0 ) |
| r2241 | r2242 | |
| 7237 | 7346 | GAME( 1992, quizdai2, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Quiz Meitantei Neo & Geo - Quiz Daisousa Sen part 2", 0 ) |
| 7238 | 7347 | GAME( 1993, 3countb, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "3 Count Bout / Fire Suplex", 0 ) |
| 7239 | 7348 | GAME( 1992, aof, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Art of Fighting / Ryuuko no Ken", 0 ) |
| 7240 | GAME( 1993, samsho, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown / Samurai Spirits", 0 ) | |
| 7349 | GAME( 1993, samsho, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown / Samurai Spirits (set 1)", 0 ) | |
| 7350 | GAME( 1993, samshoh, samsho, neogeo, neogeo, neogeo, ROT0, "SNK", "Samurai Shodown / Samurai Spirits (set 2)", 0 ) | |
| 7241 | 7351 | GAME( 1994, tophuntr, neogeo, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 1)", 0 ) |
| 7242 | 7352 | GAME( 1994, tophunta, tophuntr, neogeo, neogeo, neogeo, ROT0, "SNK", "Top Hunter - Roddy & Cathy (set 2)", 0 ) |
| 7243 | 7353 | GAME( 1992, fatfury2, neogeo, neogeo, neogeo, fatfury2, ROT0, "SNK", "Fatal Fury 2 / Garou Densetsu 2 - arata-naru tatakai", 0 ) |
| r2241 | r2242 | |
| 7332 | 7442 | GAME( 2003, samsho5h, samsho5, neogeo, neogeo, samsho5, ROT0, "Yuki Enterprise / SNK Playmore", "Samurai Shodown V / Samurai Spirits Zero (set 2)", 0 ) |
| 7333 | 7443 | GAME( 2003, samsho5b, samsho5, neogeo, neogeo, samsho5b, ROT0, "bootleg", "Samurai Shodown V / Samurai Spirits Zero (bootleg)", 0 ) // different program scrambling |
| 7334 | 7444 | GAME( 2003, kf2k3pcb, 0, neogeo, neogeo, kf2k3pcb, ROT0, "SNK Playmore", "The King of Fighters 2003 (Japan, JAMMA PCB)", 0 ) // not a clone of neogeo because it's NOT a neogeo cart. |
| 7335 | GAME( 2003, kof2003, neogeo, neogeo, neogeo, kof2003, ROT0, "SNK Playmore", "The King of Fighters 2003 | |
| 7445 | GAME( 2003, kof2003, neogeo, neogeo, neogeo, kof2003, ROT0, "SNK Playmore", "The King of Fighters 2003 | |
| 7336 | 7446 | GAME( 2003, kf2k3bl, kof2003, neogeo, neogeo, kof2003b, ROT0, "bootleg", "The King of Fighters 2003 (bootleg set 1)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart (unless it was a bootleg pcb with the new bios?) |
| 7337 | 7447 | GAME( 2003, kf2k3bla, kof2003, neogeo, neogeo, kof2k3pl, ROT0, "bootleg", "The King of Fighters 2003 (bootleg set 2)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart |
| 7338 | 7448 | GAME( 2003, kf2k3pl, kof2003, neogeo, neogeo, kof2k3pl, ROT0, "bootleg", "The King of Fighters 2004 Plus / Hero (The King of Fighters 2003 bootleg)", 0 ) // zooming is wrong because its a bootleg of the pcb version on a cart |
| r2241 | r2242 | |
|---|---|---|
| 40 | 40 | |
| 41 | 41 | static WRITE16_HANDLER( K052109_halfword_w ) |
| 42 | 42 | { |
| 43 | if (ACCESSING_ | |
| 43 | if (ACCESSING_ | |
| 44 | 44 | K052109_w(machine,offset,data & 0xff); |
| 45 | 45 | |
| 46 | 46 | /* is this a bug in the game or something else? */ |
| 47 | if (!ACCESSING_ | |
| 47 | if (!ACCESSING_ | |
| 48 | 48 | K052109_w(machine,offset,(data >> 8) & 0xff); |
| 49 | 49 | // logerror("%06x half %04x = %04x\n",activecpu_get_pc(),offset,data); |
| 50 | 50 | } |
| r2241 | r2242 | |
| 56 | 56 | |
| 57 | 57 | static WRITE16_HANDLER( K051937_halfword_w ) |
| 58 | 58 | { |
| 59 | if (ACCESSING_ | |
| 59 | if (ACCESSING_ | |
| 60 | 60 | K051937_w(machine,offset,data & 0xff); |
| 61 | 61 | } |
| 62 | 62 | |
| r2241 | r2242 | |
| 67 | 67 | |
| 68 | 68 | static WRITE16_HANDLER( K051960_halfword_w ) |
| 69 | 69 | { |
| 70 | if (ACCESSING_ | |
| 70 | if (ACCESSING_ | |
| 71 | 71 | K051960_w(machine,offset,data & 0xff); |
| 72 | 72 | } |
| 73 | 73 | |
| r2241 | r2242 | |
| 86 | 86 | |
| 87 | 87 | static WRITE16_HANDLER( cpuA_ctrl_w ) |
| 88 | 88 | { |
| 89 | if (ACCESSING_ | |
| 89 | if (ACCESSING_ | |
| 90 | 90 | { |
| 91 | 91 | data >>= 8; |
| 92 | 92 | |
| r2241 | r2242 | |
| 110 | 110 | |
| 111 | 111 | static WRITE16_HANDLER( cpuB_irqenable_w ) |
| 112 | 112 | { |
| 113 | if (ACCESSING_ | |
| 113 | if (ACCESSING_ | |
| 114 | 114 | irqBmask = (data >> 8) & 0x07; |
| 115 | 115 | } |
| 116 | 116 | |
| r2241 | r2242 | |
| 147 | 147 | |
| 148 | 148 | static WRITE16_HANDLER( sound_command_w ) |
| 149 | 149 | { |
| 150 | if (ACCESSING_ | |
| 150 | if (ACCESSING_ | |
| 151 | 151 | soundlatch_w(machine,0,(data >> 8) & 0xff); |
| 152 | 152 | } |
| 153 | 153 |
| r2241 | r2242 | |
|---|---|---|
| 117 | 117 | |
| 118 | 118 | static READ16_HANDLER( mweeprom_r ) |
| 119 | 119 | { |
| 120 | if (ACCESSING_ | |
| 120 | if (ACCESSING_ | |
| 121 | 121 | { |
| 122 | 122 | int res = readinputport(1) | EEPROM_read_bit(); |
| 123 | 123 | |
| r2241 | r2242 | |
| 137 | 137 | |
| 138 | 138 | static READ16_HANDLER( vseeprom_r ) |
| 139 | 139 | { |
| 140 | if (ACCESSING_ | |
| 140 | if (ACCESSING_ | |
| 141 | 141 | { |
| 142 | 142 | int res = readinputport(1) | EEPROM_read_bit(); |
| 143 | 143 | |
| r2241 | r2242 | |
| 157 | 157 | |
| 158 | 158 | static WRITE16_HANDLER( mweeprom_w ) |
| 159 | 159 | { |
| 160 | if (ACCESSING_ | |
| 160 | if (ACCESSING_ | |
| 161 | 161 | { |
| 162 | 162 | EEPROM_write_bit((data&0x0100) ? 1 : 0); |
| 163 | 163 | EEPROM_set_cs_line((data&0x0200) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
| 171 | 171 | |
| 172 | 172 | static READ16_HANDLER( dddeeprom_r ) |
| 173 | 173 | { |
| 174 | if (ACCESSING_ | |
| 174 | if (ACCESSING_ | |
| 175 | 175 | { |
| 176 | 176 | return (readinputport(1) | EEPROM_read_bit())<<8; |
| 177 | 177 | } |
| r2241 | r2242 | |
| 181 | 181 | |
| 182 | 182 | static WRITE16_HANDLER( mmeeprom_w ) |
| 183 | 183 | { |
| 184 | if (ACCESSING_ | |
| 184 | if (ACCESSING_ | |
| 185 | 185 | { |
| 186 | 186 | EEPROM_write_bit((data&0x01) ? 1 : 0); |
| 187 | 187 | EEPROM_set_cs_line((data&0x02) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
| 305 | 305 | { |
| 306 | 306 | K056832_b_word_w(machine, offset, data, mem_mask); |
| 307 | 307 | |
| 308 | if (offset == 3 && ACCESSING_ | |
| 308 | if (offset == 3 && ACCESSING_ | |
| 309 | 309 | { |
| 310 | 310 | mw_irq_control = data&0xff; |
| 311 | 311 | |
| r2241 | r2242 | |
| 582 | 582 | |
| 583 | 583 | static WRITE16_HANDLER( mccontrol_w ) |
| 584 | 584 | { |
| 585 | if (ACCESSING_ | |
| 585 | if (ACCESSING_ | |
| 586 | 586 | { |
| 587 | 587 | mw_irq_control = data>>8; |
| 588 | 588 | // bit 0 = watchdog |
| r2241 | r2242 | |
|---|---|---|
| 89 | 89 | |
| 90 | 90 | static WRITE16_HANDLER( adpcm_w ) |
| 91 | 91 | { |
| 92 | if (ACCESSING_ | |
| 92 | if (ACCESSING_ | |
| 93 | 93 | OKIM6295_data_0_w(machine, offset, data & 0xff); |
| 94 | 94 | } |
| 95 | 95 |
| r2241 | r2242 | |
|---|---|---|
| 96 | 96 | |
| 97 | 97 | static WRITE32_HANDLER( sndram_bank_w ) |
| 98 | 98 | { |
| 99 | if (ACCESSING_ | |
| 99 | if (ACCESSING_BITS_16_31) | |
| 100 | 100 | { |
| 101 | 101 | sndram_bank = (data >> 16) & 0x1f; |
| 102 | 102 | sndram_set_bank(); |
| r2241 | r2242 | |
| 107 | 107 | { |
| 108 | 108 | UINT32 data = 0; |
| 109 | 109 | |
| 110 | if ( | |
| 110 | if (ACCESSING_BITS_24_31 | |
| 111 | 111 | data |= sndram[offset * 4] << 24; |
| 112 | 112 | |
| 113 | if ( | |
| 113 | if (ACCESSING_BITS_16_23 | |
| 114 | 114 | data |= sndram[offset * 4 + 1] << 16; |
| 115 | 115 | |
| 116 | if ( | |
| 116 | if (ACCESSING_BITS_8_15 | |
| 117 | 117 | data |= sndram[offset * 4 + 2] << 8; |
| 118 | 118 | |
| 119 | if ( | |
| 119 | if (ACCESSING_BITS_ | |
| 120 | 120 | data |= sndram[offset * 4 + 3]; |
| 121 | 121 | |
| 122 | 122 | return data; |
| r2241 | r2242 | |
| 124 | 124 | |
| 125 | 125 | static WRITE32_HANDLER( sndram_w ) |
| 126 | 126 | { |
| 127 | if ( | |
| 127 | if (ACCESSING_BITS_24_31 | |
| 128 | 128 | sndram[offset * 4] = data >> 24; |
| 129 | 129 | |
| 130 | if ( | |
| 130 | if (ACCESSING_BITS_16_23 | |
| 131 | 131 | sndram[offset * 4 + 1] = data >> 16; |
| 132 | 132 | |
| 133 | if ( | |
| 133 | if (ACCESSING_BITS_8_15 | |
| 134 | 134 | sndram[offset * 4 + 2] = data >> 8; |
| 135 | 135 | |
| 136 | if ( | |
| 136 | if (ACCESSING_BITS_ | |
| 137 | 137 | sndram[offset * 4 + 3] = data; |
| 138 | 138 | } |
| 139 | 139 | |
| r2241 | r2242 | |
| 144 | 144 | { |
| 145 | 145 | UINT16 ret = 0; |
| 146 | 146 | |
| 147 | if (ACCESSING_ | |
| 147 | if (ACCESSING_ | |
| 148 | 148 | ret |= K054539_1_r(machine, offset); |
| 149 | if (ACCESSING_ | |
| 149 | if (ACCESSING_ | |
| 150 | 150 | ret |= K054539_0_r(machine, offset)<<8; |
| 151 | 151 | |
| 152 | 152 | return ret; |
| r2241 | r2242 | |
| 154 | 154 | |
| 155 | 155 | static WRITE16_HANDLER( dual539_16_w ) |
| 156 | 156 | { |
| 157 | if (ACCESSING_ | |
| 157 | if (ACCESSING_ | |
| 158 | 158 | K054539_1_w(machine, offset, data); |
| 159 | if (ACCESSING_ | |
| 159 | if (ACCESSING_ | |
| 160 | 160 | K054539_0_w(machine, offset, data>>8); |
| 161 | 161 | } |
| 162 | 162 | |
| r2241 | r2242 | |
| 164 | 164 | { |
| 165 | 165 | UINT32 data = 0; |
| 166 | 166 | |
| 167 | if ( | |
| 167 | if (ACCESSING_BITS_16_31 | |
| 168 | 168 | data |= dual539_16_r(machine, offset * 2, mem_mask >> 16) << 16; |
| 169 | if ( | |
| 169 | if (ACCESSING_BITS_ | |
| 170 | 170 | data |= dual539_16_r(machine, offset * 2 + 1, mem_mask); |
| 171 | 171 | |
| 172 | 172 | return data; |
| r2241 | r2242 | |
| 174 | 174 | |
| 175 | 175 | static WRITE32_HANDLER( dual539_w ) |
| 176 | 176 | { |
| 177 | if ( | |
| 177 | if (ACCESSING_BITS_16_31 | |
| 178 | 178 | dual539_16_w(machine, offset * 2, data >> 16, mem_mask >> 16); |
| 179 | if ( | |
| 179 | if (ACCESSING_BITS_ | |
| 180 | 180 | dual539_16_w(machine, offset * 2 + 1, data, mem_mask); |
| 181 | 181 | } |
| 182 | 182 | |
| r2241 | r2242 | |
| 206 | 206 | offset += bank * 0x200; |
| 207 | 207 | offset *= 4; |
| 208 | 208 | |
| 209 | if ( | |
| 209 | if (ACCESSING_BITS_ | |
| 210 | 210 | offset += 2; |
| 211 | 211 | |
| 212 | 212 | if (~mem_mask & 0xff00ff00) |
| r2241 | r2242 | |
| 220 | 220 | |
| 221 | 221 | static WRITE32_HANDLER( v_ctrl_w ) |
| 222 | 222 | { |
| 223 | if (ACCESSING_ | |
| 223 | if (ACCESSING_BITS_16_31) | |
| 224 | 224 | { |
| 225 | 225 | data >>= 16; |
| 226 | 226 | mem_mask >>= 16; |
| r2241 | r2242 | |
| 241 | 241 | |
| 242 | 242 | offset *= 2; |
| 243 | 243 | |
| 244 | if (!ACCESSING_ | |
| 244 | if (!ACCESSING_ | |
| 245 | 245 | offset += 1; |
| 246 | 246 | |
| 247 | 247 | offset += bank * 0x800 * 4; |
| r2241 | r2242 | |
| 271 | 271 | { |
| 272 | 272 | UINT32 result = 0; |
| 273 | 273 | |
| 274 | if ( | |
| 274 | if (ACCESSING_BITS_8_15 | |
| 275 | 275 | { |
| 276 | 276 | UINT8 pos; |
| 277 | 277 | int delta; |
| r2241 | r2242 | |
| 294 | 294 | |
| 295 | 295 | static WRITE32_HANDLER( turntable_select_w ) |
| 296 | 296 | { |
| 297 | if ( | |
| 297 | if (ACCESSING_BITS_16_23 | |
| 298 | 298 | turntable_select = (data >> 19) & 1; |
| 299 | 299 | } |
| 300 | 300 | |
| r2241 | r2242 | |
| 306 | 306 | |
| 307 | 307 | static READ32_HANDLER( ide_std_r ) |
| 308 | 308 | { |
| 309 | if (ACCESSING_ | |
| 309 | if (ACCESSING_ | |
| 310 | 310 | return ide_controller16_0_r(machine, IDE_STD_OFFSET + offset, 0x00ff) >> 8; |
| 311 | 311 | else |
| 312 | 312 | return ide_controller16_0_r(machine, IDE_STD_OFFSET + offset, 0x0000) << 16; |
| r2241 | r2242 | |
| 314 | 314 | |
| 315 | 315 | static WRITE32_HANDLER( ide_std_w ) |
| 316 | 316 | { |
| 317 | if (ACCESSING_ | |
| 317 | if (ACCESSING_ | |
| 318 | 318 | ide_controller16_0_w(machine, IDE_STD_OFFSET + offset, data << 8, 0x00ff); |
| 319 | 319 | else |
| 320 | 320 | ide_controller16_0_w(machine, IDE_STD_OFFSET + offset, data >> 16, 0x0000); |
| r2241 | r2242 | |
| 331 | 331 | |
| 332 | 332 | static WRITE32_HANDLER( ide_alt_w ) |
| 333 | 333 | { |
| 334 | if (offset == 0 && | |
| 334 | if (offset == 0 && ACCESSING_BITS_16_23 | |
| 335 | 335 | ide_controller16_0_w(machine, IDE_ALT_OFFSET, data >> 24, 0xff00); |
| 336 | 336 | } |
| 337 | 337 | |
| r2241 | r2242 | |
| 371 | 371 | |
| 372 | 372 | static WRITE32_HANDLER( light_ctrl_1_w ) |
| 373 | 373 | { |
| 374 | if (ACCESSING_ | |
| 374 | if (ACCESSING_BITS_16_31) | |
| 375 | 375 | { |
| 376 | 376 | output_set_value("right-red-hlt", !(data & 0x08000000)); // Right red HIGHLIGHT |
| 377 | 377 | output_set_value("left-red-hlt", !(data & 0x04000000)); // Left red HIGHLIGHT |
| r2241 | r2242 | |
| 382 | 382 | |
| 383 | 383 | static WRITE32_HANDLER( light_ctrl_2_w ) |
| 384 | 384 | { |
| 385 | if (ACCESSING_ | |
| 385 | if (ACCESSING_BITS_16_31) | |
| 386 | 386 | { |
| 387 | 387 | output_set_value("left-ssr", !!(data & 0x08000000)); // SSR |
| 388 | 388 | output_set_value("right-ssr", !!(data & 0x08000000)); // SSR |
| r2241 | r2242 | |
|---|---|---|
| 409 | 409 | if(!track_size) |
| 410 | 410 | return; |
| 411 | 411 | |
| 412 | if(ACCESSING_ | |
| 412 | if(ACCESSING_ | |
| 413 | 413 | data &= 0xff; |
| 414 | 414 | switch(offset) { |
| 415 | 415 | case 0: |
| r2241 | r2242 | |
| 499 | 499 | |
| 500 | 500 | static WRITE16_HANDLER( fdc_ctrl_w ) |
| 501 | 501 | { |
| 502 | if(ACCESSING_ | |
| 502 | if(ACCESSING_ | |
| 503 | 503 | logerror("FDC control %02x\n", data & 0xff); |
| 504 | 504 | } |
| 505 | 505 | |
| r2241 | r2242 | |
| 634 | 634 | |
| 635 | 635 | static WRITE16_HANDLER( hotrod3_ctrl_w ) |
| 636 | 636 | { |
| 637 | if(ACCESSING_ | |
| 637 | if(ACCESSING_ | |
| 638 | 638 | data &= 3; |
| 639 | 639 | hotrod_ctrl_cur = readinputport(9+data); |
| 640 | 640 | } |
| r2241 | r2242 | |
| 642 | 642 | |
| 643 | 643 | static READ16_HANDLER( hotrod3_ctrl_r ) |
| 644 | 644 | { |
| 645 | if(ACCESSING_ | |
| 645 | if(ACCESSING_ | |
| 646 | 646 | switch(offset) { |
| 647 | 647 | // Steering dials |
| 648 | 648 | case 0: |
| r2241 | r2242 | |
| 735 | 735 | |
| 736 | 736 | static WRITE16_HANDLER( curbank_w ) |
| 737 | 737 | { |
| 738 | if(ACCESSING_ | |
| 738 | if(ACCESSING_ | |
| 739 | 739 | curbank = data & 0xff; |
| 740 | 740 | reset_bank(); |
| 741 | 741 | } |
| r2241 | r2242 | |
| 751 | 751 | |
| 752 | 752 | static WRITE16_HANDLER( ym_register_w ) |
| 753 | 753 | { |
| 754 | if(ACCESSING_ | |
| 754 | if(ACCESSING_ | |
| 755 | 755 | YM2151_register_port_0_w(machine, 0, data); |
| 756 | 756 | } |
| 757 | 757 | |
| 758 | 758 | static WRITE16_HANDLER( ym_data_w ) |
| 759 | 759 | { |
| 760 | if(ACCESSING_ | |
| 760 | if(ACCESSING_ | |
| 761 | 761 | YM2151_data_port_0_w(machine, 0, data); |
| 762 | 762 | } |
| 763 | 763 | |
| r2241 | r2242 | |
| 782 | 782 | |
| 783 | 783 | static WRITE16_HANDLER( mlatch_w ) |
| 784 | 784 | { |
| 785 | if(ACCESSING_ | |
| 785 | if(ACCESSING_ | |
| 786 | 786 | int i; |
| 787 | 787 | UINT8 mxor = 0; |
| 788 | 788 | if(!mlatch_table) { |
| r2241 | r2242 | |
| 861 | 861 | break; |
| 862 | 862 | } |
| 863 | 863 | case 1: |
| 864 | if(ACCESSING_ | |
| 864 | if(ACCESSING_ | |
| 865 | 865 | UINT8 old_tb = irq_timerb; |
| 866 | 866 | irq_timerb = data; |
| 867 | 867 | if(old_tb != irq_timerb) |
| r2241 | r2242 | |
| 870 | 870 | break; |
| 871 | 871 | case 2: |
| 872 | 872 | irq_allow0 = data; |
| 873 | cpunum_set_input_line(Machine, 0, IRQ_TIMER+1, irq_timer_pend0 && (irq_allow0 & (1 << IRQ_TIMER)) ? ASSERT_LINE : CLEAR_LINE); | |
| 874 | cpunum_set_input_line(Machine, 0, IRQ_YM2151+1, irq_yms && (irq_allow0 & (1 << IRQ_YM2151)) ? ASSERT_LINE : CLEAR_LINE); | |
| 873 | cpunum_set_input_line(machine, 0, IRQ_TIMER+1, irq_timer_pend0 && (irq_allow0 & (1 << IRQ_TIMER)) ? ASSERT_LINE : CLEAR_LINE); | |
| 874 | cpunum_set_input_line(machine, 0, IRQ_YM2151+1, irq_yms && (irq_allow0 & (1 << IRQ_YM2151)) ? ASSERT_LINE : CLEAR_LINE); | |
| 875 | 875 | break; |
| 876 | 876 | case 3: |
| 877 | 877 | irq_allow1 = data; |
| 878 | cpunum_set_input_line(Machine, 1, IRQ_TIMER+1, irq_timer_pend1 && (irq_allow1 & (1 << IRQ_TIMER)) ? ASSERT_LINE : CLEAR_LINE); | |
| 879 | cpunum_set_input_line(Machine, 1, IRQ_YM2151+1, irq_yms && (irq_allow1 & (1 << IRQ_YM2151)) ? ASSERT_LINE : CLEAR_LINE); | |
| 878 | cpunum_set_input_line(machine, 1, IRQ_TIMER+1, irq_timer_pend1 && (irq_allow1 & (1 << IRQ_TIMER)) ? ASSERT_LINE : CLEAR_LINE); | |
| 879 | cpunum_set_input_line(machine, 1, IRQ_YM2151+1, irq_yms && (irq_allow1 & (1 << IRQ_YM2151)) ? ASSERT_LINE : CLEAR_LINE); | |
| 880 | 880 | break; |
| 881 | 881 | } |
| 882 | 882 | } |
| r2241 | r2242 | |
| 896 | 896 | /* These hacks are for Gain Ground */ |
| 897 | 897 | /* otherwise the interrupt occurs before the correct state has been |
| 898 | 898 | set and the game crashes before booting */ |
| 899 | if (!strcmp( | |
| 899 | if (!strcmp(machine->gamedrv->name,"gground")) | |
| 900 | 900 | { |
| 901 | 901 | |
| 902 | 902 | if (activecpu_get_pc()==0x0084aa) |
| 903 | 903 | { |
| 904 | 904 | ggground_kludge = 1; |
| 905 | return mame_rand( | |
| 905 | return mame_rand(machine); | |
| 906 | 906 | |
| 907 | 907 | } |
| 908 | 908 | if (activecpu_get_pc()==0x084ba) |
| 909 | 909 | { |
| 910 | 910 | /* Clear IRQ line so IRQ doesn't happen too early */ |
| 911 | cpunum_set_input_line( | |
| 911 | cpunum_set_input_line(machine, 1, 5, CLEAR_LINE); | |
| 912 | 912 | |
| 913 | 913 | /* set a timer to generate an irq at the needed point */ |
| 914 | 914 | if (ggground_kludge == 1) |
| r2241 | r2242 | |
| 920 | 920 | } |
| 921 | 921 | } |
| 922 | 922 | |
| 923 | if (!strcmp( | |
| 923 | if (!strcmp(machine->gamedrv->name,"ggroundj")) | |
| 924 | 924 | { |
| 925 | 925 | |
| 926 | 926 | if (activecpu_get_pc()==0x0084ac) |
| 927 | 927 | { |
| 928 | 928 | ggground_kludge = 1; |
| 929 | return mame_rand( | |
| 929 | return mame_rand(machine); | |
| 930 | 930 | |
| 931 | 931 | } |
| 932 | 932 | if (activecpu_get_pc()==0x084bc) |
| 933 | 933 | { |
| 934 | 934 | /* Clear IRQ line so IRQ doesn't happen too early */ |
| 935 | cpunum_set_input_line( | |
| 935 | cpunum_set_input_line(machine, 1, 5, CLEAR_LINE); | |
| 936 | 936 | |
| 937 | 937 | /* set a timer to generate an irq at the needed point */ |
| 938 | 938 | if (ggground_kludge == 1) |
| r2241 | r2242 | |
| 947 | 947 | switch(offset) { |
| 948 | 948 | case 2: |
| 949 | 949 | irq_timer_pend0 = 0; |
| 950 | cpunum_set_input_line( | |
| 950 | cpunum_set_input_line(machine, 0, IRQ_TIMER+1, CLEAR_LINE); | |
| 951 | 951 | break; |
| 952 | 952 | case 3: |
| 953 | 953 | irq_timer_pend1 = 0; |
| 954 | cpunum_set_input_line( | |
| 954 | cpunum_set_input_line(machine, 1, IRQ_TIMER+1, CLEAR_LINE); | |
| 955 | 955 | break; |
| 956 | 956 | } |
| 957 | 957 | return 0xffff; |
| r2241 | r2242 | |
|---|---|---|
| 297 | 297 | case 0x0000/2: |
| 298 | 298 | /* the port C handshaking signals control the Z80 NMI, */ |
| 299 | 299 | /* so we have to sync whenever we access this PPI */ |
| 300 | if (ACCESSING_ | |
| 300 | if (ACCESSING_ | |
| 301 | 301 | timer_call_after_resynch(NULL, ((offset & 3) << 8) | (data & 0xff), delayed_ppi8255_w); |
| 302 | 302 | return; |
| 303 | 303 | } |
| r2241 | r2242 | |
|---|---|---|
| 524 | 524 | |
| 525 | 525 | static WRITE16_HANDLER( memcard_w ) |
| 526 | 526 | { |
| 527 | if (ACCESSING_ | |
| 527 | if (ACCESSING_ | |
| 528 | 528 | { |
| 529 | 529 | if (memcard_present() != -1) |
| 530 | 530 | memcard_data[offset] = data; |
| r2241 | r2242 | |
| 810 | 810 | |
| 811 | 811 | static WRITE16_HANDLER( system_control_w ) |
| 812 | 812 | { |
| 813 | if ( | |
| 813 | if (ACCESSING_BITS_ | |
| 814 | 814 | { |
| 815 | 815 | UINT8 bit = (offset >> 3) & 0x01; |
| 816 | 816 | |
| r2241 | r2242 | |
| 875 | 875 | static WRITE16_HANDLER( watchdog_w ) |
| 876 | 876 | { |
| 877 | 877 | /* only an LSB write resets the watchdog */ |
| 878 | if (ACCESSING_ | |
| 878 | if (ACCESSING_ | |
| 879 | 879 | { |
| 880 | 880 | watchdog_reset16_w(machine, offset, data, mem_mask); |
| 881 | 881 | } |
| r2241 | r2242 | |
|---|---|---|
| 496 | 496 | { |
| 497 | 497 | UINT32 odata; |
| 498 | 498 | |
| 499 | if ( | |
| 499 | if (ACCESSING_BITS_24_31 | |
| 500 | 500 | { |
| 501 | 501 | odata = data >> 24; |
| 502 | 502 | /* |
| r2241 | r2242 | |
| 517 | 517 | konamigx_wrport1_0 = odata; |
| 518 | 518 | } |
| 519 | 519 | |
| 520 | if ( | |
| 520 | if (ACCESSING_BITS_16_23 | |
| 521 | 521 | { |
| 522 | 522 | /* |
| 523 | 523 | bit 7 = mask all IRQ |
| r2241 | r2242 | |
| 553 | 553 | // results. |
| 554 | 554 | // bit 17 = DOTSEL1 : 0 = 6M, 1=8M, 2=12M, 3=16M |
| 555 | 555 | // bit 16 = DOTSEL0 |
| 556 | if ( | |
| 556 | if (ACCESSING_BITS_16_23 | |
| 557 | 557 | { |
| 558 | 558 | if (data & 0x400000) |
| 559 | 559 | { |
| r2241 | r2242 | |
| 627 | 627 | if (offset == 0x1c/4) |
| 628 | 628 | { |
| 629 | 629 | // vblank interrupt ACK |
| 630 | if ( | |
| 630 | if (ACCESSING_BITS_24_31 | |
| 631 | 631 | { |
| 632 | 632 | cpunum_set_input_line(Machine, 0, 1, CLEAR_LINE); |
| 633 | 633 | gx_syncen |= 0x20; |
| 634 | 634 | } |
| 635 | 635 | |
| 636 | 636 | // hblank interrupt ACK |
| 637 | if ( | |
| 637 | if (ACCESSING_BITS_8_15 | |
| 638 | 638 | { |
| 639 | 639 | cpunum_set_input_line(Machine, 0, 2, CLEAR_LINE); |
| 640 | 640 | gx_syncen |= 0x40; |
| r2241 | r2242 | |
| 764 | 764 | |
| 765 | 765 | reg = offset << 1; |
| 766 | 766 | |
| 767 | if ( | |
| 767 | if (ACCESSING_BITS_24_31 | |
| 768 | 768 | { |
| 769 | 769 | MSW = sndto020[reg]; |
| 770 | 770 | if (reg == 2) MSW &= ~3; // supress VOLWR busy flags |
| 771 | 771 | rv |= MSW<<24; |
| 772 | 772 | } |
| 773 | 773 | |
| 774 | if ( | |
| 774 | if (ACCESSING_BITS_8_15 | |
| 775 | 775 | { |
| 776 | 776 | LSW = sndto020[reg+1]; |
| 777 | 777 | rv |= LSW<<8; |
| r2241 | r2242 | |
| 832 | 832 | { |
| 833 | 833 | int reg=0, val=0; |
| 834 | 834 | |
| 835 | if ( | |
| 835 | if (ACCESSING_BITS_24_31 | |
| 836 | 836 | { |
| 837 | 837 | reg = offset<<1; |
| 838 | 838 | val = data>>24; |
| 839 | 839 | write_snd_020(reg, val); |
| 840 | 840 | } |
| 841 | 841 | |
| 842 | if ( | |
| 842 | if (ACCESSING_BITS_8_15 | |
| 843 | 843 | { |
| 844 | 844 | reg = (offset<<1)+1; |
| 845 | 845 | val = (data>>8)&0xff; |
| r2241 | r2242 | |
| 1207 | 1207 | { |
| 1208 | 1208 | UINT16 ret = 0; |
| 1209 | 1209 | |
| 1210 | if (ACCESSING_ | |
| 1210 | if (ACCESSING_ | |
| 1211 | 1211 | ret |= K054539_1_r(machine, offset); |
| 1212 | if (ACCESSING_ | |
| 1212 | if (ACCESSING_ | |
| 1213 | 1213 | ret |= K054539_0_r(machine, offset)<<8; |
| 1214 | 1214 | |
| 1215 | 1215 | return ret; |
| r2241 | r2242 | |
| 1217 | 1217 | |
| 1218 | 1218 | static WRITE16_HANDLER( dual539_w ) |
| 1219 | 1219 | { |
| 1220 | if (ACCESSING_ | |
| 1220 | if (ACCESSING_ | |
| 1221 | 1221 | K054539_1_w(machine, offset, data); |
| 1222 | if (ACCESSING_ | |
| 1222 | if (ACCESSING_ | |
| 1223 | 1223 | K054539_0_w(machine, offset, data>>8); |
| 1224 | 1224 | } |
| 1225 | 1225 |
| r2241 | r2242 | |
|---|---|---|
| 166 | 166 | |
| 167 | 167 | static WRITE16_HANDLER( hangon_io_w ) |
| 168 | 168 | { |
| 169 | if (ACCESSING_ | |
| 169 | if (ACCESSING_ | |
| 170 | 170 | switch (offset & 0x3020/2) |
| 171 | 171 | { |
| 172 | 172 | case 0x0000/2: /* PPI @ 4B */ |
| r2241 | r2242 | |
| 212 | 212 | |
| 213 | 213 | static WRITE16_HANDLER( sharrier_io_w ) |
| 214 | 214 | { |
| 215 | if (ACCESSING_ | |
| 215 | if (ACCESSING_ | |
| 216 | 216 | switch (offset & 0x0030/2) |
| 217 | 217 | { |
| 218 | 218 | case 0x0000/2: |
| r2241 | r2242 | |
|---|---|---|
| 91 | 91 | static WRITE16_HANDLER( latch_w ) |
| 92 | 92 | { |
| 93 | 93 | /* reset extra CPU */ |
| 94 | if (ACCESSING_ | |
| 94 | if (ACCESSING_ | |
| 95 | 95 | { |
| 96 | 96 | /* 0 means hold CPU 2's reset low */ |
| 97 | 97 | if (data & 1) |
| r2241 | r2242 | |
|---|---|---|
| 49 | 49 | |
| 50 | 50 | static WRITE16_HANDLER( ultraman_K051316_0_w ) |
| 51 | 51 | { |
| 52 | if (ACCESSING_ | |
| 52 | if (ACCESSING_ | |
| 53 | 53 | K051316_0_w(machine, offset, data & 0xff); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | static WRITE16_HANDLER( ultraman_K051316_1_w ) |
| 57 | 57 | { |
| 58 | if (ACCESSING_ | |
| 58 | if (ACCESSING_ | |
| 59 | 59 | K051316_1_w(machine, offset, data & 0xff); |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | static WRITE16_HANDLER( ultraman_K051316_2_w ) |
| 63 | 63 | { |
| 64 | if (ACCESSING_ | |
| 64 | if (ACCESSING_ | |
| 65 | 65 | K051316_2_w(machine, offset, data & 0xff); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | static WRITE16_HANDLER( ultraman_K051316_ctrl_0_w ) |
| 69 | 69 | { |
| 70 | if (ACCESSING_ | |
| 70 | if (ACCESSING_ | |
| 71 | 71 | K051316_ctrl_0_w(machine, offset, data & 0xff); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | static WRITE16_HANDLER( ultraman_K051316_ctrl_1_w ) |
| 75 | 75 | { |
| 76 | if (ACCESSING_ | |
| 76 | if (ACCESSING_ | |
| 77 | 77 | K051316_ctrl_1_w(machine, offset, data & 0xff); |
| 78 | 78 | |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | static WRITE16_HANDLER( ultraman_K051316_ctrl_2_w ) |
| 82 | 82 | { |
| 83 | if (ACCESSING_ | |
| 83 | if (ACCESSING_ | |
| 84 | 84 | K051316_ctrl_2_w(machine, offset, data & 0xff); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | static WRITE16_HANDLER( ultraman_K051937_w ) |
| 88 | 88 | { |
| 89 | if (ACCESSING_ | |
| 89 | if (ACCESSING_ | |
| 90 | 90 | K051937_w(machine, offset, data & 0xff); |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | static WRITE16_HANDLER( ultraman_K051960_w ) |
| 94 | 94 | { |
| 95 | if (ACCESSING_ | |
| 95 | if (ACCESSING_ | |
| 96 | 96 | K051960_w(machine, offset, data & 0xff); |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | static WRITE16_HANDLER( sound_cmd_w ) |
| 100 | 100 | { |
| 101 | if (ACCESSING_ | |
| 101 | if (ACCESSING_ | |
| 102 | 102 | soundlatch_w(machine,0,data & 0xff); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | static WRITE16_HANDLER( sound_irq_trigger_w ) |
| 106 | 106 | { |
| 107 | if (ACCESSING_ | |
| 107 | if (ACCESSING_ | |
| 108 | 108 | cpunum_set_input_line(Machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| 109 | 109 | } |
| 110 | 110 |
| r2241 | r2242 | |
|---|---|---|
| 91 | 91 | |
| 92 | 92 | static WRITE16_HANDLER( led_w ) |
| 93 | 93 | { |
| 94 | if (ACCESSING_ | |
| 94 | if (ACCESSING_ | |
| 95 | 95 | { |
| 96 | 96 | /* bits 0 and 1 are coin counters */ |
| 97 | 97 | coin_counter_w(0, data & 2); |
| r2241 | r2242 | |
|---|---|---|
| 48 | 48 | - the cross hatch pattern test in service mode is too fast, each phase |
| 49 | 49 | should take 15 seconds according to the service manual |
| 50 | 50 | |
| 51 | ||
| 52 | DIP locations verified for: | |
| 53 | - blueprnt (manual) | |
| 54 | ||
| 51 | 55 | */ |
| 52 | 56 | |
| 53 | 57 | #include "driver.h" |
| r2241 | r2242 | |
| 122 | 126 | /* Input Ports */ |
| 123 | 127 | |
| 124 | 128 | static INPUT_PORTS_START( blueprnt ) |
| 125 | PORT_START_TAG(" | |
| 129 | PORT_START_TAG("IN | |
| 126 | 130 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 127 | 131 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) |
| 128 | 132 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_TILT ) |
| r2241 | r2242 | |
| 132 | 136 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY |
| 133 | 137 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 134 | 138 | |
| 135 | PORT_START_TAG(" | |
| 139 | PORT_START_TAG("IN | |
| 136 | 140 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) |
| 137 | 141 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) |
| 138 | 142 | PORT_SERVICE( 0x04, IP_ACTIVE_HIGH ) |
| r2241 | r2242 | |
| 143 | 147 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 144 | 148 | |
| 145 | 149 | PORT_START_TAG("DILSW1") |
| 146 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 147 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Bonus_Life ) ) | |
| 150 | PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "DILSW1:1" ) /* Listed as "Unused" */ | |
| 151 | PORT_DIPNAME( 0x06, 0x02, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("DILSW1:2,3") | |
| 148 | 152 | PORT_DIPSETTING( 0x00, "20K" ) |
| 149 | 153 | PORT_DIPSETTING( 0x02, "30K" ) |
| 150 | 154 | PORT_DIPSETTING( 0x04, "40K" ) |
| 151 | 155 | PORT_DIPSETTING( 0x06, "50K" ) |
| 152 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Free_Play ) ) | |
| 156 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Free_Play ) ) PORT_DIPLOCATION("DILSW1:4") | |
| 153 | 157 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 154 | 158 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) |
| 155 | PORT_DIPNAME( 0x10, 0x00, "Maze Monster Appears In" ) | |
| 159 | PORT_DIPNAME( 0x10, 0x00, "Maze Monster Appears In" ) PORT_DIPLOCATION("DILSW1:5") | |
| 156 | 160 | PORT_DIPSETTING( 0x00, "2nd Maze" ) |
| 157 | 161 | PORT_DIPSETTING( 0x10, "3rd Maze" ) |
| 158 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Coin_A ) ) | |
| 162 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("DILSW1:6") | |
| 159 | 163 | PORT_DIPSETTING( 0x20, DEF_STR( 2C_1C ) ) |
| 160 | 164 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) ) |
| 161 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_B ) ) | |
| 165 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("DILSW1:7") /* Listed as "Unused" */ | |
| 162 | 166 | PORT_DIPSETTING( 0x40, DEF_STR( 1C_3C ) ) |
| 163 | 167 | PORT_DIPSETTING( 0x00, DEF_STR( 1C_5C ) ) |
| 164 | PORT_ | |
| 168 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80 | |
| 165 | 169 | |
| 166 | 170 | PORT_START_TAG("DILSW2") |
| 167 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) | |
| 171 | PORT_DIPNAME( 0x03, 0x01, DEF_STR( Lives ) ) PORT_DIPLOCATION("DILSW2:1,2") | |
| 168 | 172 | PORT_DIPSETTING( 0x00, "2" ) |
| 169 | 173 | PORT_DIPSETTING( 0x01, "3" ) |
| 170 | 174 | PORT_DIPSETTING( 0x02, "4" ) |
| 171 | 175 | PORT_DIPSETTING( 0x03, "5" ) |
| 172 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 173 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) | |
| 176 | PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "DILSW2:3" ) /* Listed as "Unused" */ | |
| 177 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DILSW2:4") | |
| 174 | 178 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 175 | 179 | PORT_DIPSETTING( 0x08, DEF_STR( Cocktail ) ) |
| 176 | PORT_DIPNAME( 0x30, 0x10, DEF_STR( Difficulty ) ) | |
| 180 | PORT_DIPNAME( 0x30, 0x10, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DILSW2:5,6") | |
| 177 | 181 | PORT_DIPSETTING( 0x00, "Level 1" ) |
| 178 | 182 | PORT_DIPSETTING( 0x10, "Level 2" ) |
| 179 | 183 | PORT_DIPSETTING( 0x20, "Level 3" ) |
| 180 | 184 | PORT_DIPSETTING( 0x30, "Level 4" ) |
| 181 | PORT_BIT( 0xc0, IP_ACTIVE_HIGH, IPT_UNUSED ) | |
| 185 | PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "DILSW2:7" ) /* Listed as "Unused" */ | |
| 186 | PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "DILSW2:8" ) /* Listed as "Unused" */ | |
| 182 | 187 | INPUT_PORTS_END |
| 183 | 188 | |
| 184 | 189 | static INPUT_PORTS_START( saturn ) |
| 185 | PORT_START_TAG("IN0") | |
| 186 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) | |
| 187 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START1 ) | |
| 190 | PORT_INCLUDE( blueprnt ) | |
| 191 | ||
| 192 | PORT_MODIFY("IN0") | |
| 188 | 193 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) |
| 189 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) | |
| 190 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY | |
| 191 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY | |
| 192 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY | |
| 193 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY | |
| 194 | 194 | |
| 195 | PORT_START_TAG("IN1") | |
| 196 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN2 ) | |
| 197 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 ) | |
| 195 | PORT_MODIFY("IN1") | |
| 198 | 196 | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_COCKTAIL |
| 199 | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_COCKTAIL | |
| 200 | PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL | |
| 201 | PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL | |
| 202 | PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL | |
| 203 | PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL | |
| 204 | 197 | |
| 205 | PORT_START_TAG("DSW0") | |
| 206 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 207 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 208 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 209 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) | |
| 198 | PORT_MODIFY("DILSW1") | |
| 199 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "DILSW1:1" ) | |
| 200 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("DILSW1:2") | |
| 210 | 201 | PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) |
| 211 | 202 | PORT_DIPSETTING( 0x02, DEF_STR( Cocktail ) ) |
| 212 | PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) ) | |
| 213 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 214 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) | |
| 215 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 216 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 217 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 218 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 219 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 220 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 221 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 222 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 223 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 224 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Lives ) ) | |
| 203 | PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x04, "DILSW1:3" ) | |
| 204 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "DILSW1:4" ) | |
| 205 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "DILSW1:5" ) | |
| 206 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "DILSW1:6" ) | |
| 207 | PORT_DIPNAME( 0xc0, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("DILSW1:7,8") | |
| 225 | 208 | PORT_DIPSETTING( 0x00, "3" ) |
| 226 | 209 | PORT_DIPSETTING( 0x40, "4" ) |
| 227 | 210 | PORT_DIPSETTING( 0x80, "5" ) |
| 228 | 211 | PORT_DIPSETTING( 0xc0, "6" ) |
| 229 | 212 | |
| 230 | PORT_START_TAG("DSW1") | |
| 231 | PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ) ) | |
| 232 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 233 | PORT_DIPSETTING( 0x01, DEF_STR( On ) ) | |
| 234 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) ) | |
| 213 | PORT_MODIFY("DILSW2") | |
| 214 | PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "DILSW2:1" ) | |
| 215 | PORT_DIPNAME( 0x02, 0x00, DEF_STR( Coinage ) ) PORT_DIPLOCATION("DILSW2:2") | |
| 235 | 216 | PORT_DIPSETTING( 0x02, "A 2/1 B 1/3" ) |
| 236 | 217 | PORT_DIPSETTING( 0x00, "A 1/1 B 1/6" ) |
| 237 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) | |
| 218 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("DILSW2:3") | |
| 238 | 219 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) |
| 239 | 220 | PORT_DIPSETTING( 0x04, DEF_STR( On ) ) |
| 240 | PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) ) | |
| 241 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 242 | PORT_DIPSETTING( 0x08, DEF_STR( On ) ) | |
| 243 | PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) ) | |
| 244 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 245 | PORT_DIPSETTING( 0x10, DEF_STR( On ) ) | |
| 246 | PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) ) | |
| 247 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 248 | PORT_DIPSETTING( 0x20, DEF_STR( On ) ) | |
| 249 | PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) | |
| 250 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 251 | PORT_DIPSETTING( 0x40, DEF_STR( On ) ) | |
| 252 | PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) ) | |
| 253 | PORT_DIPSETTING( 0x00, DEF_STR( Off ) ) | |
| 254 | PORT_DIPSETTING( 0x80, DEF_STR( On ) ) | |
| 221 | PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "DILSW2:4" ) | |
| 222 | PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "DILSW2:5" ) | |
| 223 | PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "DILSW2:6" ) | |
| 224 | PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "DILSW2:7" ) | |
| 225 | PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "DILSW2:8" ) | |
| 255 | 226 | INPUT_PORTS_END |
| 256 | 227 | |
| 257 | 228 | /* Graphics Layouts */ |
| r2241 | r2242 | |
|---|---|---|
| 95 | 95 | int bank; |
| 96 | 96 | UINT8 *ROM1 = memory_region(REGION_USER1); |
| 97 | 97 | |
| 98 | if (ACCESSING_ | |
| 98 | if (ACCESSING_ | |
| 99 | 99 | { |
| 100 | 100 | bank = (data>>4) &0x07; |
| 101 | 101 | memory_set_bankptr(2,&ROM1[0x80000*(bank)]); |
| r2241 | r2242 | |
|---|---|---|
| 192 | 192 | static WRITE16_HANDLER( ym3438_w ) |
| 193 | 193 | { |
| 194 | 194 | /* only works if we're accessing the low byte */ |
| 195 | if (ACCESSING_ | |
| 195 | if (ACCESSING_ | |
| 196 | 196 | { |
| 197 | 197 | static UINT8 last_port; |
| 198 | 198 | |
| r2241 | r2242 | |
| 222 | 222 | return; |
| 223 | 223 | |
| 224 | 224 | /* only works if we're accessing the low byte */ |
| 225 | if (ACCESSING_ | |
| 225 | if (ACCESSING_ | |
| 226 | 226 | { |
| 227 | 227 | upd7759_port_w(0, data & 0xff); |
| 228 | 228 | upd7759_start_w(0, 0); |
| r2241 | r2242 | |
| 487 | 487 | static WRITE16_HANDLER( control_w ) |
| 488 | 488 | { |
| 489 | 489 | /* skip if not LSB */ |
| 490 | if (!ACCESSING_ | |
| 490 | if (!ACCESSING_ | |
| 491 | 491 | return; |
| 492 | 492 | data &= 0x0f; |
| 493 | 493 | |
| r2241 | r2242 | |
| 534 | 534 | int table_index; |
| 535 | 535 | |
| 536 | 536 | /* only works for the LSB */ |
| 537 | if (!ACCESSING_ | |
| 537 | if (!ACCESSING_ | |
| 538 | 538 | return; |
| 539 | 539 | |
| 540 | 540 | /* compute the table index */ |
| r2241 | r2242 | |
| 575 | 575 | static WRITE16_HANDLER( counter_timer_w ) |
| 576 | 576 | { |
| 577 | 577 | /* only LSB matters */ |
| 578 | if (ACCESSING_ | |
| 578 | if (ACCESSING_ | |
| 579 | 579 | { |
| 580 | 580 | /*int value = data & 1;*/ |
| 581 | 581 | switch (data & 0x1e) |
| r2241 | r2242 | |
|---|---|---|
| 97 | 97 | |
| 98 | 98 | static WRITE16_HANDLER( gotcha_oki_bank_w ) |
| 99 | 99 | { |
| 100 | if (ACCESSING_ | |
| 100 | if (ACCESSING_ | |
| 101 | 101 | { |
| 102 | 102 | OKIM6295_set_bank_base(0,(((~data & 0x0100) >> 8) * 0x40000)); |
| 103 | 103 | } |
| r2241 | r2242 | |
|---|---|---|
| 315 | 315 | |
| 316 | 316 | static WRITE16_HANDLER( growl_coin_word_w ) /* what about coins 3&4 ?? */ |
| 317 | 317 | { |
| 318 | if (ACCESSING_ | |
| 318 | if (ACCESSING_ | |
| 319 | 319 | { |
| 320 | 320 | coin_lockout_w(0, ~data & 0x01); |
| 321 | 321 | coin_lockout_w(1, ~data & 0x02); |
| r2241 | r2242 | |
| 326 | 326 | |
| 327 | 327 | static WRITE16_HANDLER( taitof2_4p_coin_word_w ) |
| 328 | 328 | { |
| 329 | if (ACCESSING_ | |
| 329 | if (ACCESSING_ | |
| 330 | 330 | { |
| 331 | 331 | coin_lockout_w(0, ~data & 0x01); |
| 332 | 332 | coin_lockout_w(1, ~data & 0x02); |
| r2241 | r2242 | |
| 341 | 341 | |
| 342 | 342 | static WRITE16_HANDLER( ninjak_coin_word_w ) |
| 343 | 343 | { |
| 344 | if (ACCESSING_ | |
| 344 | if (ACCESSING_ | |
| 345 | 345 | { |
| 346 | 346 | coin_lockout_w(0, ~data & 0x0100); |
| 347 | 347 | coin_lockout_w(1, ~data & 0x0200); |
| r2241 | r2242 | |
| 871 | 871 | { |
| 872 | 872 | static int nibble = 0; |
| 873 | 873 | |
| 874 | if (ACCESSING_ | |
| 874 | if (ACCESSING_ | |
| 875 | 875 | { |
| 876 | 876 | data >>= 8; |
| 877 | 877 | if (offset==0) |
| r2241 | r2242 | |
|---|---|---|
| 138 | 138 | /* Clear the cause of the interrupt */ |
| 139 | 139 | static WRITE16_HANDLER( sandscrp_irq_cause_w ) |
| 140 | 140 | { |
| 141 | if (ACCESSING_ | |
| 141 | if (ACCESSING_ | |
| 142 | 142 | { |
| 143 | 143 | kaneko16_sprite_flipx = data & 1; |
| 144 | 144 | kaneko16_sprite_flipy = data & 1; |
| r2241 | r2242 | |
| 159 | 159 | |
| 160 | 160 | static WRITE16_HANDLER( sandscrp_coin_counter_w ) |
| 161 | 161 | { |
| 162 | if (ACCESSING_ | |
| 162 | if (ACCESSING_ | |
| 163 | 163 | { |
| 164 | 164 | coin_counter_w(0, data & 0x0001); |
| 165 | 165 | coin_counter_w(1, data & 0x0002); |
| r2241 | r2242 | |
| 177 | 177 | |
| 178 | 178 | static WRITE16_HANDLER( sandscrp_latchstatus_word_w ) |
| 179 | 179 | { |
| 180 | if (ACCESSING_ | |
| 180 | if (ACCESSING_ | |
| 181 | 181 | { |
| 182 | 182 | latch1_full = data & 0x80; |
| 183 | 183 | latch2_full = data & 0x40; |
| r2241 | r2242 | |
| 192 | 192 | |
| 193 | 193 | static WRITE16_HANDLER( sandscrp_soundlatch_word_w ) |
| 194 | 194 | { |
| 195 | if (ACCESSING_ | |
| 195 | if (ACCESSING_ | |
| 196 | 196 | { |
| 197 | 197 | latch1_full = 1; |
| 198 | 198 | soundlatch_w(machine, 0, data & 0xff); |
| r2241 | r2242 | |
|---|---|---|
| 216 | 216 | if (data & 0x10) |
| 217 | 217 | dd_sub_cpu_busy = 0; |
| 218 | 218 | else if (dd_sub_cpu_busy == 0) |
| 219 | cpunum_set_input_line( | |
| 219 | cpunum_set_input_line(machine, 1, sprite_irq, (sprite_irq == INPUT_LINE_NMI) ? PULSE_LINE : HOLD_LINE); | |
| 220 | 220 | |
| 221 | 221 | memory_set_bank(1, (data & 0xe0) >> 5); |
| 222 | 222 | } |
| r2241 | r2242 | |
| 244 | 244 | so just hack around the protection here. (The hacks are 'right' as I have |
| 245 | 245 | the original source code & notes to this version of TStrike to examine). |
| 246 | 246 | */ |
| 247 | if (!strcmp( | |
| 247 | if (!strcmp(machine->gamedrv->name, "tstrike")) | |
| 248 | 248 | { |
| 249 | 249 | /* Static protection checks at boot-up */ |
| 250 | 250 | if (activecpu_get_pc() == 0x9ace) |
| r2241 | r2242 | |
| 291 | 291 | if (data & 0x10) |
| 292 | 292 | dd_sub_cpu_busy = 0; |
| 293 | 293 | else if (dd_sub_cpu_busy == 0) |
| 294 | cpunum_set_input_line( | |
| 294 | cpunum_set_input_line(machine, 1, sprite_irq, (sprite_irq == INPUT_LINE_NMI) ? PULSE_LINE : HOLD_LINE); | |
| 295 | 295 | |
| 296 | 296 | memory_set_bank(1, newbank); |
| 297 | 297 | if (newbank == 4 && oldbank != 4) |
| r2241 | r2242 | |
| 313 | 313 | switch (offset) |
| 314 | 314 | { |
| 315 | 315 | case 0: /* 380b - NMI ack */ |
| 316 | cpunum_set_input_line( | |
| 316 | cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, CLEAR_LINE); | |
| 317 | 317 | break; |
| 318 | 318 | |
| 319 | 319 | case 1: /* 380c - FIRQ ack */ |
| 320 | cpunum_set_input_line( | |
| 320 | cpunum_set_input_line(machine, 0, M6809_FIRQ_LINE, CLEAR_LINE); | |
| 321 | 321 | break; |
| 322 | 322 | |
| 323 | 323 | case 2: /* 380d - IRQ ack */ |
| 324 | cpunum_set_input_line( | |
| 324 | cpunum_set_input_line(machine, 0, M6809_IRQ_LINE, CLEAR_LINE); | |
| 325 | 325 | break; |
| 326 | 326 | |
| 327 | 327 | case 3: /* 380e - SND irq */ |
| r2241 | r2242 | |
| 338 | 338 | |
| 339 | 339 | static WRITE8_HANDLER( ddragon2_sub_irq_ack_w ) |
| 340 | 340 | { |
| 341 | cpunum_set_input_line( | |
| 341 | cpunum_set_input_line(machine, 1, sprite_irq, CLEAR_LINE ); | |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | |
| 345 | 345 | static WRITE8_HANDLER( ddragon2_sub_irq_w ) |
| 346 | 346 | { |
| 347 | cpunum_set_input_line( | |
| 347 | cpunum_set_input_line(machine, 0, M6809_IRQ_LINE, ASSERT_LINE); | |
| 348 | 348 | } |
| 349 | 349 | |
| 350 | 350 | |
| r2241 | r2242 | |
| 391 | 391 | it's quite obvious from the Double Dragon 2 code, below). */ |
| 392 | 392 | if (data & 3) |
| 393 | 393 | { |
| 394 | cpunum_set_input_line(Machine, 0, M6809_IRQ_LINE, ASSERT_LINE); | |
| 395 | cpunum_set_input_line(Machine, 1, sprite_irq, CLEAR_LINE); | |
| 394 | cpunum_set_input_line(machine, 0, M6809_IRQ_LINE, ASSERT_LINE); | |
| 395 | cpunum_set_input_line(machine, 1, sprite_irq, CLEAR_LINE); | |
| 396 | 396 | } |
| 397 | 397 | } |
| 398 | 398 | } |
| r2241 | r2242 | |
| 570 | 570 | /* might not be 100% accurate, check bits written */ |
| 571 | 571 | static WRITE8_HANDLER( ddragnba_port_w ) |
| 572 | 572 | { |
| 573 | cpunum_set_input_line(Machine, 0,M6809_IRQ_LINE,ASSERT_LINE); | |
| 574 | cpunum_set_input_line(Machine, 1,sprite_irq, CLEAR_LINE ); | |
| 573 | cpunum_set_input_line(machine, 0,M6809_IRQ_LINE,ASSERT_LINE); | |
| 574 | cpunum_set_input_line(machine, 1,sprite_irq, CLEAR_LINE ); | |
| 575 | 575 | } |
| 576 | 576 | |
| 577 | 577 | static ADDRESS_MAP_START( ddragnba_sub_portmap, ADDRESS_SPACE_IO, 8 ) |
| r2241 | r2242 | |
| 910 | 910 | * |
| 911 | 911 | *************************************/ |
| 912 | 912 | |
| 913 | ||
| 913 | 914 | static const gfx_layout char_layout = |
| 914 | 915 | { |
| 915 | 916 | 8,8, |
| r2241 | r2242 | |
| 934 | 935 | 64*8 |
| 935 | 936 | }; |
| 936 | 937 | |
| 938 | ||
| 937 | 939 | static GFXDECODE_START( ddragon ) |
| 938 | 940 | GFXDECODE_ENTRY( REGION_GFX1, 0, char_layout, 0, 8 ) /* colors 0-127 */ |
| 939 | 941 | GFXDECODE_ENTRY( REGION_GFX2, 0, tile_layout, 128, 8 ) /* colors 128-255 */ |
| r2241 | r2242 | |
| 1032 | 1034 | MACHINE_DRIVER_END |
| 1033 | 1035 | |
| 1034 | 1036 | |
| 1037 | static MACHINE_DRIVER_START( ddgn6809 ) | |
| 1038 | ||
| 1039 | /* basic machine hardware */ | |
| 1040 | MDRV_CPU_ADD_TAG("main", M6809, MAIN_CLOCK) /* 12MHz / 4 internally */ | |
| 1041 | MDRV_CPU_PROGRAM_MAP(ddragon_map,0) | |
| 1042 | ||
| 1043 | MDRV_CPU_ADD_TAG("sub", M6809, MAIN_CLOCK/2) /* 6Mhz / 4 internally */ | |
| 1044 | MDRV_CPU_PROGRAM_MAP(sub_map,0) | |
| 1045 | ||
| 1046 | MDRV_CPU_ADD_TAG("sound", M6809, MAIN_CLOCK/2) /* 6MHz / 4 internally */ | |
| 1047 | MDRV_CPU_PROGRAM_MAP(sound_map,0) | |
| 1048 | ||
| 1049 | MDRV_INTERLEAVE(1000) /* heavy interleaving to sync up sprite<->main cpu's */ | |
| 1050 | ||
| 1051 | MDRV_MACHINE_START(ddragon) | |
| 1052 | MDRV_MACHINE_RESET(ddragon) | |
| 1053 | ||
| 1054 | /* video hardware */ | |
| 1055 | MDRV_GFXDECODE(ddragon) | |
| 1056 | MDRV_PALETTE_LENGTH(384) | |
| 1057 | ||
| 1058 | MDRV_SCREEN_ADD("main", RASTER) | |
| 1059 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 1060 | MDRV_SCREEN_RAW_PARAMS(MAIN_CLOCK/2, 384, 0, 256, 272, 0, 240) | |
| 1061 | ||
| 1062 | MDRV_VIDEO_START(ddragon) | |
| 1063 | MDRV_VIDEO_UPDATE(ddragon) | |
| 1064 | ||
| 1065 | /* sound hardware */ | |
| 1066 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 1067 | ||
| 1068 | MDRV_SOUND_ADD_TAG("fm", YM2151, SOUND_CLOCK) | |
| 1069 | MDRV_SOUND_CONFIG(ym2151_interface) | |
| 1070 | MDRV_SOUND_ROUTE(0, "mono", 0.60) | |
| 1071 | MDRV_SOUND_ROUTE(1, "mono", 0.60) | |
| 1072 | ||
| 1073 | MDRV_SOUND_ADD_TAG("oki1", MSM5205, MAIN_CLOCK/32) | |
| 1074 | MDRV_SOUND_CONFIG(msm5205_interface) | |
| 1075 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 1076 | ||
| 1077 | MDRV_SOUND_ADD_TAG("oki2", MSM5205, MAIN_CLOCK/32) | |
| 1078 | MDRV_SOUND_CONFIG(msm5205_interface) | |
| 1079 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 1080 | MACHINE_DRIVER_END | |
| 1081 | ||
| 1082 | ||
| 1035 | 1083 | static MACHINE_DRIVER_START( ddragon2 ) |
| 1036 | 1084 | |
| 1037 | 1085 | /* basic machine hardware */ |
| r2241 | r2242 | |
| 1392 | 1440 | ROM_END |
| 1393 | 1441 | |
| 1394 | 1442 | |
| 1443 | /* this is a well known italian bootleg of Double Dragon it can be identified by the following gameplay trait | |
| 1444 | -- The Boss of level 4 is coloured like level 1 and 5 instead of green, and is invulnerable to rocks attack. | |
| 1445 | ||
| 1446 | in terms of code the game code has been heavily modified, banking writes appear to have been removed, and | |
| 1447 | the graphic roms are all scrambled. The game also runs on 3x M6809 rather than the original CPUs. | |
| 1448 | ||
| 1449 | I'm not 100% convinced the program roms are good dumps, apprently ROM3 fails on the original board (could just | |
| 1450 | be due to the rom hacking, as the game runs fine) but there is a jump to the 0x2000 region in the code, although | |
| 1451 | this could be additional protection / rom scrambling. Also the sound roms seem too small. If you have this | |
| 1452 | PCB please verify. | |
| 1453 | ||
| 1454 | */ | |
| 1455 | ROM_START( ddgn6809 ) | |
| 1456 | ROM_REGION( 0x30000, REGION_CPU1, 0 ) /* 64k for code + bankswitched memory */ | |
| 1457 | ROM_LOAD( "16.bin", 0x08000, 0x08000, CRC(f4c72690) SHA1(c70d032355acf3f7f6586b6e57a94f80e099bf1a) ) | |
| 1458 | ROM_LOAD( "17.bin", 0x10000, 0x08000, CRC(6489d637) SHA1(fd17fd870e9386a3e3bdd56c8d731c73d8c70b88) ) /* banked at 0x4000-0x8000 */ | |
| 1459 | ROM_LOAD( "18.bin", 0x18000, 0x08000, CRC(154d50c4) SHA1(4ffdd29406b6c6b552344f820f83715b1c7727d1) ) /* banked at 0x4000-0x8000 */ | |
| 1460 | ROM_LOAD( "19.bin", 0x20000, 0x08000, CRC(090e2baf) SHA1(29b775c59c7a4d30a33e3d10e736cd1a83baf3bb) ) /* banked at 0x4000-0x8000 */ | |
| 1461 | ||
| 1462 | ROM_REGION( 0x10000, REGION_CPU2, 0 ) /* sprite cpu */ | |
| 1463 | ROM_LOAD( "20.bin", 0x8000, 0x8000, CRC(67e3b4f1) SHA1(4945d76b0694299f2f4739ebfba98da6d96fe4cb) ) | |
| 1464 | ||
| 1465 | ROM_REGION( 0x10000, REGION_CPU3, 0 ) /* audio cpu */ | |
| 1466 | ROM_LOAD( "21.bin", 0x08000, 0x08000, CRC(4437fc51) SHA1(fffcf2bec50d0b79861904b4abc607206b7794e6) ) | |
| 1467 | ||
| 1468 | /* all the gfx roms are scrambled on this set */ | |
| 1469 | ROM_REGION( 0x08000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 1470 | ROM_LOAD( "13.bin", 0x00000, 0x08000, CRC(b5a54537) SHA1(a6157cde4f9738565008d11a4a6d8576ae3abfef) ) /* chars */ | |
| 1471 | ||
| 1472 | ROM_REGION( 0x80000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 1473 | ROM_LOAD( "22.bin", 0x00000, 0x08000, CRC(fe08ef61) SHA1(50404936934dc61f3553add4d4b918529b3b5ef3) ) | |
| 1474 | ROM_LOAD( "23.bin", 0x08000, 0x08000, CRC(988bea93) SHA1(053ebb5a71dfdb68ae88ef49d8409a99f8c6926d) ) | |
| 1475 | ROM_LOAD( "24.bin", 0x10000, 0x08000, CRC(437501fc) SHA1(e7758e0fb226ae46eb398bd95f5e95c90b6adb93) ) | |
| 1476 | ROM_LOAD( "25.bin", 0x18000, 0x08000, CRC(d302f69b) SHA1(64d4d8ae38457ee6b361b5157ec0557f9a7639a8) ) | |
| 1477 | ROM_LOAD( "26.bin", 0x20000, 0x08000, CRC(8ece953e) SHA1(12a43e1ed1a99b04299941a9506228490649b181) ) | |
| 1478 | ROM_LOAD( "27.bin", 0x28000, 0x08000, CRC(15cd16cb) SHA1(ab2068ebba14da256e8f2600f34dca0e048a1de9) ) | |
| 1479 | ROM_LOAD( "28.bin", 0x30000, 0x08000, CRC(51b8a217) SHA1(60c067cd7272f856e29cdb64312535236656891a) ) | |
| 1480 | ROM_LOAD( "29.bin", 0x38000, 0x08000, CRC(e4ec2394) SHA1(43376ce2a07c1fc3053f7ac9b750e944d289105b) ) | |
| 1481 | ROM_LOAD( "1.bin", 0x40000, 0x08000, CRC(2485a71d) SHA1(3e987a2f3e9a59da5fdc7bb779a43736ca67aac7) ) | |
| 1482 | ROM_LOAD( "2.bin", 0x48000, 0x08000, CRC(6940120d) SHA1(bbe94f095ef983f54658c936f916ba6a72a84ead) ) | |
| 1483 | ROM_LOAD( "3.bin", 0x50000, 0x08000, CRC(c67aac12) SHA1(aab535507e3889bf1bdc2f4fe4828a70a350ba63) ) | |
| 1484 | ROM_LOAD( "4.bin", 0x58000, 0x08000, CRC(941dcd08) SHA1(266dee264f28affe8c3f57fe569929817ae16508) ) | |
| 1485 | ROM_LOAD( "5.bin", 0x60000, 0x08000, CRC(42d36bc3) SHA1(080cbc3ffda8ab26dc65a8e9eaf948c509d064b3) ) | |
| 1486 | ROM_LOAD( "6.bin", 0x68000, 0x08000, CRC(d5d19a8d) SHA1(c4b044dd12d6468c0ad114644f01813d4fe9a673) ) | |
| 1487 | ROM_LOAD( "7.bin", 0x70000, 0x08000, CRC(d4e350cd) SHA1(78ed2baa8c52b766f998091e7ce9e1a2941352e7) ) | |
| 1488 | ROM_LOAD( "8.bin", 0x78000, 0x08000, CRC(204fdb7d) SHA1(f75b1bc6f65e7a33927cd451267fcd7e2aa44f7e) ) | |
| 1489 | ||
| 1490 | ROM_REGION( 0x40000, REGION_GFX3, ROMREGION_DISPOSE ) | |
| 1491 | ROM_LOAD( "9.bin", 0x00000, 0x10000, CRC(736eff0f) SHA1(ae2ec2d5c8ab1db579a08256d874426dc5d889c6) ) | |
| 1492 | ROM_LOAD( "10.bin", 0x10000, 0x10000, CRC(a670d088) SHA1(27e7b49645753dd039f104c3e0a7e6513a98710d) ) | |
| 1493 | ROM_LOAD( "11.bin", 0x20000, 0x10000, CRC(4171b70d) SHA1(dc300c9bca6481417e97ad03c973e47389f261c1) ) | |
| 1494 | ROM_LOAD( "12.bin", 0x30000, 0x10000, CRC(5f6a6d6f) SHA1(7d546a226cda81c28e7ccfb4c5daebc65072198d) ) | |
| 1495 | ||
| 1496 | ROM_REGION( 0x20000, REGION_SOUND1, 0 ) /* adpcm samples -- roms too small? (please check) */ | |
| 1497 | ROM_LOAD( "14.bin", 0x00000, 0x08000, BAD_DUMP CRC(678f8657) SHA1(2652fdc6719d2c889ca87802f6e2cefae59fc2eb) ) | |
| 1498 | ROM_LOAD( "15.bin", 0x10000, 0x08000, BAD_DUMP CRC(10f21dea) SHA1(739cf649f91490384297a81a2cc9855acb58a1c0) ) | |
| 1499 | ROM_END | |
| 1500 | ||
| 1501 | ||
| 1395 | 1502 | ROM_START( ddragon2 ) |
| 1396 | 1503 | ROM_REGION( 0x30000, REGION_CPU1, 0 ) |
| 1397 | 1504 | ROM_LOAD( "26a9-04.bin", 0x08000, 0x8000, CRC(f2cfc649) SHA1(d3f1e0bae02472914a940222e4f600170a91736d) ) |
| r2241 | r2242 | |
| 1752 | 1859 | /* should the sound rom be bitswapped too? */ |
| 1753 | 1860 | } |
| 1754 | 1861 | |
| 1862 | DRIVER_INIT( ddgn6809 ) | |
| 1863 | { | |
| 1864 | /* Descramble GFX here */ | |
| 1755 | 1865 | |
| 1866 | sprite_irq = INPUT_LINE_NMI; | |
| 1867 | sound_irq = M6809_IRQ_LINE; | |
| 1868 | ym_irq = M6809_FIRQ_LINE; | |
| 1869 | technos_video_hw = 0; | |
| 1870 | } | |
| 1756 | 1871 | |
| 1757 | 1872 | /************************************* |
| 1758 | 1873 | * |
| r2241 | r2242 | |
| 1767 | 1882 | GAME( 1987, ddragoua, ddragon, ddragon, ddragon, ddragon, ROT0, "[Technos] (Taito America license)", "Double Dragon (US Set 2)", GAME_SUPPORTS_SAVE ) |
| 1768 | 1883 | GAME( 1987, ddragonb, ddragon, ddragonb, ddragon, ddragon, ROT0, "bootleg", "Double Dragon (bootleg with HD6309)", GAME_SUPPORTS_SAVE ) // according to dump notes |
| 1769 | 1884 | GAME( 1987, ddragnba, ddragon, ddragnba, ddragon, ddragon, ROT0, "bootleg", "Double Dragon (bootleg with M6803)", GAME_SUPPORTS_SAVE ) |
| 1885 | GAME( 1987, ddgn6809, ddragon, ddgn6809, ddragon, ddgn6809, ROT0, "bootleg", "Double Dragon (bootleg with 3xM6809)", GAME_NOT_WORKING ) | |
| 1770 | 1886 | |
| 1771 | 1887 | GAME( 1988, ddragon2, 0, ddragon2, ddragon2, ddragon2, ROT0, "Technos", "Double Dragon II - The Revenge (World)", GAME_SUPPORTS_SAVE ) |
| 1772 | 1888 | GAME( 1988, ddragn2u, ddragon2, ddragon2, ddragon2, ddragon2, ROT0, "Technos", "Double Dragon II - The Revenge (US)", GAME_SUPPORTS_SAVE ) |
| r2241 | r2242 | |
|---|---|---|
| 326 | 326 | switch(offset) |
| 327 | 327 | { |
| 328 | 328 | case 0x16/2: |
| 329 | if(ACCESSING_ | |
| 329 | if(ACCESSING_ | |
| 330 | 330 | { |
| 331 | 331 | logerror("Request to play sample %02x with rom 2\n",data); |
| 332 | 332 | OKIM6295_data_0_w(machine,0,data); |
| 333 | 333 | } |
| 334 | 334 | break; |
| 335 | 335 | case 0x1a/2: |
| 336 | if(ACCESSING_ | |
| 336 | if(ACCESSING_ | |
| 337 | 337 | { |
| 338 | 338 | logerror("Request to play sample %02x with rom 1\n",data); |
| 339 | 339 | OKIM6295_data_1_w(machine,0,data); |
| r2241 | r2242 | |
|---|---|---|
| 90 | 90 | |
| 91 | 91 | static WRITE16_HANDLER( control2_w ) |
| 92 | 92 | { |
| 93 | if (ACCESSING_ | |
| 93 | if (ACCESSING_ | |
| 94 | 94 | { |
| 95 | 95 | cur_control2 = data; |
| 96 | 96 | /* bit 0 is data */ |
| r2241 | r2242 | |
|---|---|---|
| 118 | 118 | AM_RANGE(0xc800, 0xcfff) AM_SHARE(2) AM_READWRITE(xxmissio_bgram_r, xxmissio_bgram_w) AM_BASE(&xxmissio_bgram) |
| 119 | 119 | AM_RANGE(0xd000, 0xd7ff) AM_SHARE(3) AM_RAM AM_BASE(&xxmissio_spriteram) |
| 120 | 120 | |
| 121 | AM_RANGE(0xd800, 0xdaff) AM_SHARE(4) AM_R | |
| 121 | AM_RANGE(0xd800, 0xdaff) AM_SHARE(4) AM_R | |
| 122 | 122 | |
| 123 | 123 | AM_RANGE(0xe000, 0xefff) AM_SHARE(5) AM_RAM |
| 124 | 124 | AM_RANGE(0xf000, 0xffff) AM_SHARE(6) AM_RAM |
| r2241 | r2242 | |
| 145 | 145 | AM_RANGE(0xc800, 0xcfff) AM_SHARE(2) AM_READWRITE(xxmissio_bgram_r, xxmissio_bgram_w) |
| 146 | 146 | AM_RANGE(0xd000, 0xd7ff) AM_SHARE(3) AM_RAM |
| 147 | 147 | |
| 148 | AM_RANGE(0xd800, 0xdaff) AM_SHARE(4) AM_R | |
| 148 | AM_RANGE(0xd800, 0xdaff) AM_SHARE(4) AM_R | |
| 149 | 149 | |
| 150 | 150 | AM_RANGE(0xe000, 0xefff) AM_SHARE(6) AM_RAM |
| 151 | 151 | AM_RANGE(0xf000, 0xffff) AM_SHARE(5) AM_RAM |
| r2241 | r2242 | |
|---|---|---|
| 275 | 275 | |
| 276 | 276 | static WRITE32_HANDLER( macrossp_soundcmd_w ) |
| 277 | 277 | { |
| 278 | if (ACCESSING_ | |
| 278 | if (ACCESSING_BITS_16_31) | |
| 279 | 279 | { |
| 280 | 280 | //logerror("%08x write soundcmd %08x (%08x)\n",activecpu_get_pc(),data,mem_mask); |
| 281 | 281 | soundlatch_word_w(machine,0,data >> 16,0); |
| r2241 | r2242 | |
|---|---|---|
| 100 | 100 | switch (offset) |
| 101 | 101 | { |
| 102 | 102 | case 0: |
| 103 | if (ACCESSING_ | |
| 103 | if (ACCESSING_ | |
| 104 | 104 | else YM3438_data_port_0_A_w (machine, 0, (data >> 0) & 0xff); |
| 105 | 105 | break; |
| 106 | 106 | case 1: |
| 107 | if (ACCESSING_ | |
| 107 | if (ACCESSING_ | |
| 108 | 108 | else YM3438_data_port_0_B_w (machine, 0, (data >> 0) & 0xff); |
| 109 | 109 | break; |
| 110 | 110 | } |
| r2241 | r2242 | |
|---|---|---|
| 183 | 183 | { |
| 184 | 184 | case 0x00: |
| 185 | 185 | { |
| 186 | if (ACCESSING_ | |
| 186 | if (ACCESSING_ | |
| 187 | 187 | { |
| 188 | 188 | watchdog_reset(machine); |
| 189 | 189 | } |
| 190 | 190 | |
| 191 | if (ACCESSING_ | |
| 191 | if (ACCESSING_ | |
| 192 | 192 | { |
| 193 | 193 | EEPROM_set_clock_line((data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 194 | 194 | EEPROM_write_bit(data & 0x40); |
| r2241 | r2242 | |
| 201 | 201 | |
| 202 | 202 | case 0x01: |
| 203 | 203 | { |
| 204 | if (ACCESSING_ | |
| 204 | if (ACCESSING_ | |
| 205 | 205 | { |
| 206 | 206 | coin_lockout_w(0,~data & 0x01000000); |
| 207 | 207 | coin_lockout_w(1,~data & 0x02000000); |
| r2241 | r2242 | |
| 227 | 227 | |
| 228 | 228 | static WRITE32_HANDLER( rotate_control_w ) /* only a guess that it's rotation */ |
| 229 | 229 | { |
| 230 | if (ACCESSING_ | |
| 230 | if (ACCESSING_BITS_0_15) | |
| 231 | 231 | { |
| 232 | 232 | groundfx_rotate_ctrl[port_sel] = data; |
| 233 | 233 | return; |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | if (ACCESSING_ | |
| 236 | if (ACCESSING_BITS_16_31) | |
| 237 | 237 | { |
| 238 | 238 | port_sel = (data &0x70000) >> 16; |
| 239 | 239 | } |
| r2241 | r2242 | |
|---|---|---|
| 40 | 40 | |
| 41 | 41 | #include "driver.h" |
| 42 | 42 | #include "memconv.h" |
| 43 | #include "devconv.h" | |
| 43 | 44 | #include "deprecat.h" |
| 44 | 45 | #include "machine/8237dma.h" |
| 45 | 46 | #include "machine/pic8259.h" |
| r2241 | r2242 | |
| 186 | 187 | static UINT32 intel82439tx_pci_r(int function, int reg, UINT32 mem_mask) |
| 187 | 188 | { |
| 188 | 189 | UINT32 r = 0; |
| 189 | if ( | |
| 190 | if (ACCESSING_BITS_24_31 | |
| 190 | 191 | { |
| 191 | 192 | r |= mxtc_config_r(function, reg + 3) << 24; |
| 192 | 193 | } |
| 193 | if ( | |
| 194 | if (ACCESSING_BITS_16_23 | |
| 194 | 195 | { |
| 195 | 196 | r |= mxtc_config_r(function, reg + 2) << 16; |
| 196 | 197 | } |
| 197 | if ( | |
| 198 | if (ACCESSING_BITS_8_15 | |
| 198 | 199 | { |
| 199 | 200 | r |= mxtc_config_r(function, reg + 1) << 8; |
| 200 | 201 | } |
| 201 | if ( | |
| 202 | if (ACCESSING_BITS_ | |
| 202 | 203 | { |
| 203 | 204 | r |= mxtc_config_r(function, reg + 0) << 0; |
| 204 | 205 | } |
| r2241 | r2242 | |
| 207 | 208 | |
| 208 | 209 | static void intel82439tx_pci_w(int function, int reg, UINT32 data, UINT32 mem_mask) |
| 209 | 210 | { |
| 210 | if ( | |
| 211 | if (ACCESSING_BITS_24_31 | |
| 211 | 212 | { |
| 212 | 213 | mxtc_config_w(function, reg + 3, (data >> 24) & 0xff); |
| 213 | 214 | } |
| 214 | if ( | |
| 215 | if (ACCESSING_BITS_16_23 | |
| 215 | 216 | { |
| 216 | 217 | mxtc_config_w(function, reg + 2, (data >> 16) & 0xff); |
| 217 | 218 | } |
| 218 | if ( | |
| 219 | if (ACCESSING_BITS_8_15 | |
| 219 | 220 | { |
| 220 | 221 | mxtc_config_w(function, reg + 1, (data >> 8) & 0xff); |
| 221 | 222 | } |
| 222 | if ( | |
| 223 | if (ACCESSING_BITS_ | |
| 223 | 224 | { |
| 224 | 225 | mxtc_config_w(function, reg + 0, (data >> 0) & 0xff); |
| 225 | 226 | } |
| r2241 | r2242 | |
| 243 | 244 | static UINT32 intel82371ab_pci_r(int function, int reg, UINT32 mem_mask) |
| 244 | 245 | { |
| 245 | 246 | UINT32 r = 0; |
| 246 | if ( | |
| 247 | if (ACCESSING_BITS_24_31 | |
| 247 | 248 | { |
| 248 | 249 | r |= piix4_config_r(function, reg + 3) << 24; |
| 249 | 250 | } |
| 250 | if ( | |
| 251 | if (ACCESSING_BITS_16_23 | |
| 251 | 252 | { |
| 252 | 253 | r |= piix4_config_r(function, reg + 2) << 16; |
| 253 | 254 | } |
| 254 | if ( | |
| 255 | if (ACCESSING_BITS_8_15 | |
| 255 | 256 | { |
| 256 | 257 | r |= piix4_config_r(function, reg + 1) << 8; |
| 257 | 258 | } |
| 258 | if ( | |
| 259 | if (ACCESSING_BITS_ | |
| 259 | 260 | { |
| 260 | 261 | r |= piix4_config_r(function, reg + 0) << 0; |
| 261 | 262 | } |
| r2241 | r2242 | |
| 264 | 265 | |
| 265 | 266 | static void intel82371ab_pci_w(int function, int reg, UINT32 data, UINT32 mem_mask) |
| 266 | 267 | { |
| 267 | if ( | |
| 268 | if (ACCESSING_BITS_24_31 | |
| 268 | 269 | { |
| 269 | 270 | piix4_config_w(function, reg + 3, (data >> 24) & 0xff); |
| 270 | 271 | } |
| 271 | if ( | |
| 272 | if (ACCESSING_BITS_16_23 | |
| 272 | 273 | { |
| 273 | 274 | piix4_config_w(function, reg + 2, (data >> 16) & 0xff); |
| 274 | 275 | } |
| 275 | if ( | |
| 276 | if (ACCESSING_BITS_8_15 | |
| 276 | 277 | { |
| 277 | 278 | piix4_config_w(function, reg + 1, (data >> 8) & 0xff); |
| 278 | 279 | } |
| 279 | if ( | |
| 280 | if (ACCESSING_BITS_ | |
| 280 | 281 | { |
| 281 | 282 | piix4_config_w(function, reg + 0, (data >> 0) & 0xff); |
| 282 | 283 | } |
| r2241 | r2242 | |
| 285 | 286 | // ISA Plug-n-Play |
| 286 | 287 | static WRITE32_HANDLER( pnp_config_w ) |
| 287 | 288 | { |
| 288 | if ( | |
| 289 | if (ACCESSING_BITS_8_15 | |
| 289 | 290 | { |
| 290 | 291 | // mame_printf_debug("PNP Config: %02X\n", (data >> 8) & 0xff); |
| 291 | 292 | } |
| r2241 | r2242 | |
| 293 | 294 | |
| 294 | 295 | static WRITE32_HANDLER( pnp_data_w ) |
| 295 | 296 | { |
| 296 | if ( | |
| 297 | if (ACCESSING_BITS_8_15 | |
| 297 | 298 | { |
| 298 | 299 | // mame_printf_debug("PNP Data: %02X\n", (data >> 8) & 0xff); |
| 299 | 300 | } |
| r2241 | r2242 | |
| 332 | 333 | } |
| 333 | 334 | } |
| 334 | 335 | |
| 336 | ||
| 337 | DEV_READWRITE8TO32LE( gamecstl_pit8254_32le, pit8253_r, pit8253_w ) | |
| 338 | ||
| 339 | ||
| 335 | 340 | /*****************************************************************************/ |
| 336 | 341 | |
| 337 | 342 | static ADDRESS_MAP_START( gamecstl_map, ADDRESS_SPACE_PROGRAM, 32 ) |
| r2241 | r2242 | |
| 348 | 353 | static ADDRESS_MAP_START(gamecstl_io, ADDRESS_SPACE_IO, 32) |
| 349 | 354 | AM_RANGE(0x0000, 0x001f) AM_READWRITE(dma8237_32le_0_r, dma8237_32le_0_w) |
| 350 | 355 | AM_RANGE(0x0020, 0x003f) AM_READWRITE(pic8259_32le_0_r, pic8259_32le_0_w) |
| 351 | AM_RANGE(0x0040, 0x005f) AM_READWRITE(pit825 | |
| 356 | AM_RANGE(0x0040, 0x005f) AM_DEVREADWRITE(PIT8254, "pit8254", gamecstl_pit8254_32le_ | |
| 352 | 357 | AM_RANGE(0x0060, 0x006f) AM_READWRITE(kbdc8042_32le_r, kbdc8042_32le_w) |
| 353 | 358 | AM_RANGE(0x0070, 0x007f) AM_READWRITE(mc146818_port32le_r, mc146818_port32le_w) |
| 354 | 359 | AM_RANGE(0x0080, 0x009f) AM_READWRITE(at_page32_r, at_page32_w) |
| r2241 | r2242 | |
| 441 | 446 | cpunum_set_irq_callback(0, irq_callback); |
| 442 | 447 | } |
| 443 | 448 | |
| 449 | static PIT8253_OUTPUT_CHANGED( pc_timer0_w ) | |
| 450 | { | |
| 451 | pic8259_set_irq_line(0, 0, state); | |
| 452 | } | |
| 453 | ||
| 454 | static const struct pit8253_config gamecstl_pit8254_config = | |
| 455 | { | |
| 456 | { | |
| 457 | { | |
| 458 | 4772720/4, /* heartbeat IRQ */ | |
| 459 | pc_timer0_w, | |
| 460 | NULL | |
| 461 | }, { | |
| 462 | 4772720/4, /* dram refresh */ | |
| 463 | NULL, | |
| 464 | NULL | |
| 465 | }, { | |
| 466 | 4772720/4, /* pio port c pin 4, and speaker polling enough */ | |
| 467 | NULL, | |
| 468 | NULL | |
| 469 | } | |
| 470 | } | |
| 471 | }; | |
| 472 | ||
| 444 | 473 | static MACHINE_DRIVER_START(gamecstl) |
| 445 | 474 | |
| 446 | 475 | /* basic machine hardware */ |
| r2241 | r2242 | |
| 450 | 479 | |
| 451 | 480 | MDRV_MACHINE_RESET(gamecstl) |
| 452 | 481 | |
| 482 | MDRV_DEVICE_ADD( "pit8254", PIT8254 ) | |
| 483 | MDRV_DEVICE_CONFIG( gamecstl_pit8254_config ) | |
| 484 | ||
| 453 | 485 | MDRV_NVRAM_HANDLER( mc146818 ) |
| 454 | 486 | |
| 455 | 487 | /* video hardware */ |
| r2241 | r2242 | |
| 509 | 541 | { |
| 510 | 542 | bios_ram = auto_malloc(0x10000); |
| 511 | 543 | |
| 512 | init_pc_common(PCCOMMON_KEYBOARD_AT | PCCOMMON_DMA8237_AT | |
| 544 | init_pc_common(PCCOMMON_KEYBOARD_AT | PCCOMMON_DMA8237_AT | |
| 513 | 545 | mc146818_init(MC146818_STANDARD); |
| 514 | 546 | |
| 515 | 547 | intel82439tx_init(); |
| r2241 | r2242 | |
|---|---|---|
| 5 | 5 | #include "video/cdp1869.h" |
| 6 | 6 | #include "sound/cdp1869.h" |
| 7 | 7 | #include "sound/ay8910.h" |
| 8 | #include "cidelsa.h" | |
| 8 | 9 | |
| 9 | 10 | /* |
| 10 | 11 | |
| 11 | 12 | TODO: |
| 12 | 13 | |
| 13 | - auto_malloc cidelsa_pcb | |
| 14 | 14 | - move set_cpu_mode timer call to MDRV |
| 15 | 15 | - fix COP420 core to get sound in Draco |
| 16 | 16 | |
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | #define DESTRYER_CHR1 3579000.0 // unverified | |
| 20 | #define DESTRYER_CHR2 XTAL_5_7143MHz | |
| 21 | #define ALTAIR_CHR1 3579000.0 // unverified | |
| 22 | #define ALTAIR_CHR2 CDP1869_DOT_CLK_PAL // unverified | |
| 23 | #define DRACO_CHR1 XTAL_4_43361MHz | |
| 24 | #define DRACO_CHR2 CDP1869_DOT_CLK_PAL // unverified | |
| 25 | #define DRACO_SND_CHR1 XTAL_2_01216MHz | |
| 19 | #define CDP1869_TAG "cdp1869" | |
| 26 | 20 | |
| 27 | 21 | /* CDP1802 Interface */ |
| 28 | 22 | |
| 29 | static int cdp1869_prd; | |
| 30 | static int cdp1869_pcb; | |
| 31 | static UINT8 cidelsa_pcb[0x800]; // 2048x1 bit PCB ram | |
| 32 | ||
| 33 | static int cdp1802_mode = CDP1802_MODE_RESET; | |
| 34 | ||
| 35 | 23 | static UINT8 cidelsa_mode_r(void) |
| 36 | 24 | { |
| 37 | return cdp1802_mode; | |
| 25 | cidelsa_state *state = Machine->driver_data; | |
| 26 | ||
| 27 | return state->cdp1802_mode; | |
| 38 | 28 | } |
| 39 | 29 | |
| 40 | 30 | static UINT8 cidelsa_ef_r(void) |
| r2241 | r2242 | |
| 49 | 39 | return readinputportbytag("EF"); |
| 50 | 40 | } |
| 51 | 41 | |
| 42 | static void cidelsa_q_w(int q) | |
| 43 | { | |
| 44 | cidelsa_state *state = Machine->driver_data; | |
| 45 | ||
| 46 | state->cdp1802_q = q; | |
| 47 | } | |
| 48 | ||
| 52 | 49 | static const CDP1802_CONFIG cidelsa_cdp1802_config = |
| 53 | 50 | { |
| 54 | cidelsa_mode_r, | |
| 55 | cidelsa_ef_r, | |
| 56 | NULL, | |
| 57 | NULL, | |
| 58 | NULL, | |
| 59 | NULL | |
| 51 | cidelsa_mode_r, // MODE | |
| 52 | cidelsa_ef_r, // EF | |
| 53 | NULL, // SC | |
| 54 | cidelsa_q_w, // Q | |
| 55 | NULL, // DMA read | |
| 56 | NULL // DMA write | |
| 60 | 57 | }; |
| 61 | 58 | |
| 62 | 59 | /* Sound Interface */ |
| 63 | 60 | |
| 64 | static int draco_sound; | |
| 65 | static int draco_ay_latch; | |
| 66 | ||
| 67 | static WRITE8_HANDLER ( draco_sound_bankswitch_w ) | |
| 61 | static WRITE8_HANDLER( draco_sound_bankswitch_w ) | |
| 68 | 62 | { |
| 69 | memory_set_bank(1, (data & 0x08) >> 3); | |
| 63 | /* | |
| 64 | ||
| 65 | pin description | |
| 66 | ||
| 67 | D0 not connected | |
| 68 | D1 not connected | |
| 69 | D2 not connected | |
| 70 | D3 2716 A10 | |
| 71 | ||
| 72 | */ | |
| 73 | ||
| 74 | int bank = BIT(data, 3); | |
| 75 | ||
| 76 | memory_set_bank(1, bank); | |
| 70 | 77 | } |
| 71 | 78 | |
| 72 | static WRITE8_HANDLER | |
| 79 | static WRITE8_HANDLER | |
| 73 | 80 | { |
| 81 | cidelsa_state *state = machine->driver_data; | |
| 82 | ||
| 74 | 83 | /* |
| 75 | 84 | |
| 76 | 85 | G1 G0 description |
| r2241 | r2242 | |
| 85 | 94 | switch (data) |
| 86 | 95 | { |
| 87 | 96 | case 0x01: |
| 88 | AY8910_write_port_0_w(machine, 0, draco_ay_latch); | |
| 97 | AY8910_write_port_0_w(machine, 0, state->draco_ay_latch); | |
| 89 | 98 | break; |
| 90 | 99 | |
| 91 | 100 | case 0x02: |
| 92 | draco_ay_latch = AY8910_read_port_0_r(machine, 0); | |
| 101 | state->draco_ay_latch = AY8910_read_port_0_r(machine, 0); | |
| 93 | 102 | break; |
| 94 | 103 | |
| 95 | 104 | case 0x03: |
| 96 | AY8910_control_port_0_w(machine, 0, draco_ay_latch); | |
| 105 | AY8910_control_port_0_w(machine, 0, state->draco_ay_latch); | |
| 97 | 106 | break; |
| 98 | 107 | } |
| 99 | 108 | } |
| 100 | 109 | |
| 101 | static READ8_HANDLER | |
| 110 | static READ8_HANDLER | |
| 102 | 111 | { |
| 103 | return draco_sound & 0x07; | |
| 112 | cidelsa_state *state = machine->driver_data; | |
| 113 | ||
| 114 | return ~(state->draco_sound) & 0x07; | |
| 104 | 115 | } |
| 105 | 116 | |
| 106 | static READ8_HANDLER | |
| 117 | static READ8_HANDLER | |
| 107 | 118 | { |
| 108 | return draco_ay_latch; | |
| 119 | cidelsa_state *state = machine->driver_data; | |
| 120 | ||
| 121 | return state->draco_ay_latch; | |
| 109 | 122 | } |
| 110 | 123 | |
| 111 | static WRITE8_HANDLER | |
| 124 | static WRITE8_HANDLER | |
| 112 | 125 | { |
| 113 | draco_ay_latch = data; | |
| 126 | cidelsa_state *state = machine->driver_data; | |
| 127 | ||
| 128 | state->draco_ay_latch = data; | |
| 114 | 129 | } |
| 115 | 130 | |
| 116 | static WRITE8_HANDLER | |
| 131 | static WRITE8_HANDLER | |
| 117 | 132 | { |
| 118 | 133 | /* |
| 119 | 134 | bit description |
| 120 | 135 | |
| 121 | 0 N/C | |
| 122 | 1 N/C | |
| 123 | 2 N/C | |
| 124 | 3 N/C | |
| 125 | 4 N/C | |
| 126 | 5 N/C | |
| 127 | 6 N/C | |
| 128 | 7 N/C | |
| 136 | 0 not connected | |
| 137 | 1 not connected | |
| 138 | 2 not connected | |
| 139 | 3 not connected | |
| 140 | 4 not connected | |
| 141 | 5 not connected | |
| 142 | 6 not connected | |
| 143 | 7 not connected | |
| 129 | 144 | */ |
| 130 | 145 | } |
| 131 | 146 | |
| 132 | static WRITE8_HANDLER | |
| 147 | static WRITE8_HANDLER | |
| 133 | 148 | { |
| 134 | 149 | /* |
| 135 | 150 | bit description |
| r2241 | r2242 | |
| 139 | 154 | 2 sound output -> * -> 22K capacitor -> GND |
| 140 | 155 | 3 sound output -> * -> 220K capacitor -> GND |
| 141 | 156 | 4 5V -> 1K resistor -> * -> 10uF capacitor -> GND (volume pot voltage adjustment) |
| 142 | 5 N/C | |
| 143 | 6 N/C | |
| 144 | 7 N/C | |
| 157 | 5 not connected | |
| 158 | 6 not connected | |
| 159 | 7 not connected | |
| 145 | 160 | */ |
| 146 | 161 | } |
| 147 | 162 | |
| r2241 | r2242 | |
| 155 | 170 | |
| 156 | 171 | /* Read/Write Handlers */ |
| 157 | 172 | |
| 158 | static WRITE8_HANDLER | |
| 173 | static WRITE8_HANDLER | |
| 159 | 174 | { |
| 160 | 175 | /* |
| 161 | 176 | bit description |
| r2241 | r2242 | |
| 171 | 186 | */ |
| 172 | 187 | } |
| 173 | 188 | |
| 174 | static WRITE8_HANDLER | |
| 189 | static WRITE8_HANDLER | |
| 175 | 190 | { |
| 176 | 191 | /* |
| 177 | 192 | bit description |
| r2241 | r2242 | |
| 191 | 206 | set_led_status(2, data & 0x20); // FIRE |
| 192 | 207 | } |
| 193 | 208 | |
| 194 | static WRITE8_HANDLER | |
| 209 | static WRITE8_HANDLER | |
| 195 | 210 | { |
| 211 | cidelsa_state *state = machine->driver_data; | |
| 212 | ||
| 196 | 213 | /* |
| 197 | 214 | bit description |
| 198 | 215 | |
| 199 | 216 | 0 3K9 -> Green signal |
| 200 | 217 | 1 820R -> Blue signal |
| 201 | 218 | 2 510R -> Red signal |
| 202 | 3 1K -> N/C | |
| 203 | 4 N/C | |
| 219 | 3 1K -> not connected | |
| 220 | 4 not connected | |
| 204 | 221 | 5 SONIDO A -> COP402 IN0 |
| 205 | 222 | 6 SONIDO B -> COP402 IN1 |
| 206 | 223 | 7 SONIDO C -> COP402 IN2 |
| 207 | 224 | */ |
| 208 | 225 | |
| 209 | draco_sound = (data & 0xe0) >> 5; | |
| 226 | state->draco_sound = (data & 0xe0) >> 5; | |
| 210 | 227 | } |
| 211 | 228 | |
| 212 | static WRITE8_HANDLER ( cidelsa_charram_w ) | |
| 213 | { | |
| 214 | int addr = cdp1869_get_cma(offset); | |
| 215 | ||
| 216 | cidelsa_pcb[addr] = activecpu_get_reg(CDP1802_Q); | |
| 217 | ||
| 218 | cdp1869_charram_w(machine, offset, data); | |
| 219 | } | |
| 220 | ||
| 221 | static READ8_HANDLER ( cidelsa_charram_r ) | |
| 222 | { | |
| 223 | int addr = cdp1869_get_cma(offset); | |
| 224 | ||
| 225 | cdp1869_pcb = cidelsa_pcb[addr]; | |
| 226 | ||
| 227 | return cdp1869_charram_r(machine, offset); | |
| 228 | } | |
| 229 | ||
| 230 | 229 | /* Memory Maps */ |
| 231 | 230 | |
| 232 | 231 | // Destroyer |
| r2241 | r2242 | |
| 234 | 233 | static ADDRESS_MAP_START( destryer_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 235 | 234 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 236 | 235 | AM_RANGE(0x2000, 0x20ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 237 | AM_RANGE(0xf400, 0xf7ff) AM_READWRITE(cidelsa_charram_r, cidelsa_charram_w) | |
| 238 | AM_RANGE(0xf800, 0xffff) AM_READWRITE(cdp1869_pageram_r, cdp1869_pageram_w) | |
| 236 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_charram_r, cdp1869_charram_w) | |
| 237 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_pageram_r, cdp1869_pageram_w) | |
| 239 | 238 | ADDRESS_MAP_END |
| 240 | 239 | |
| 241 | 240 | static ADDRESS_MAP_START( destryea_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 242 | 241 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 243 | 242 | AM_RANGE(0x3000, 0x30ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 244 | AM_RANGE(0xf400, 0xf7ff) AM_READWRITE(cidelsa_charram_r, cidelsa_charram_w) | |
| 245 | AM_RANGE(0xf800, 0xffff) AM_READWRITE(cdp1869_pageram_r, cdp1869_pageram_w) | |
| 243 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_charram_r, cdp1869_charram_w) | |
| 244 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_pageram_r, cdp1869_pageram_w) | |
| 246 | 245 | ADDRESS_MAP_END |
| 247 | 246 | |
| 248 | 247 | static ADDRESS_MAP_START( destryer_io_map, ADDRESS_SPACE_IO, 8 ) |
| 249 | 248 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN0") AM_WRITE(destryer_out1_w) |
| 250 | 249 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN1") |
| 251 | AM_RANGE(0x03, 0x03) AM_WRITE(cdp1869_out3_w) | |
| 252 | AM_RANGE(0x04, 0x04) AM_WRITE(cdp1869_out4_w) | |
| 253 | AM_RANGE(0x05, 0x05) AM_WRITE(cdp1869_out5_w) | |
| 254 | AM_RANGE(0x06, 0x06) AM_WRITE(cdp1869_out6_w) | |
| 255 | AM_RANGE(0x07, 0x07) AM_WRITE(cdp1869_out7_w) | |
| 250 | AM_RANGE(0x03, 0x03) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out3_w) | |
| 251 | AM_RANGE(0x04, 0x04) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out4_w) | |
| 252 | AM_RANGE(0x05, 0x05) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out5_w) | |
| 253 | AM_RANGE(0x06, 0x06) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out6_w) | |
| 254 | AM_RANGE(0x07, 0x07) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out7_w) | |
| 256 | 255 | ADDRESS_MAP_END |
| 257 | 256 | |
| 258 | 257 | // Altair |
| r2241 | r2242 | |
| 260 | 259 | static ADDRESS_MAP_START( altair_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 261 | 260 | AM_RANGE(0x0000, 0x2fff) AM_ROM |
| 262 | 261 | AM_RANGE(0x3000, 0x30ff) AM_RAM |
| 263 | AM_RANGE(0xf400, 0xf7ff) AM_READWRITE(cidelsa_charram_r, cidelsa_charram_w) | |
| 264 | AM_RANGE(0xf800, 0xffff) AM_READWRITE(cdp1869_pageram_r, cdp1869_pageram_w) | |
| 262 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_charram_r, cdp1869_charram_w) | |
| 263 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_pageram_r, cdp1869_pageram_w) | |
| 265 | 264 | ADDRESS_MAP_END |
| 266 | 265 | |
| 267 | 266 | static ADDRESS_MAP_START( altair_io_map, ADDRESS_SPACE_IO, 8 ) |
| 268 | 267 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN0") AM_WRITE(altair_out1_w) |
| 269 | 268 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN1") |
| 270 | AM_RANGE(0x03, 0x03) AM_WRITE(cdp1869_out3_w) | |
| 271 | AM_RANGE(0x04, 0x04) AM_READ_PORT("IN2") AM_WRITE(cdp1869_out4_w) | |
| 272 | AM_RANGE(0x05, 0x05) AM_WRITE(cdp1869_out5_w) | |
| 273 | AM_RANGE(0x06, 0x06) AM_WRITE(cdp1869_out6_w) | |
| 274 | AM_RANGE(0x07, 0x07) AM_WRITE(cdp1869_out7_w) | |
| 269 | AM_RANGE(0x03, 0x03) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out3_w) | |
| 270 | AM_RANGE(0x04, 0x04) AM_READ_PORT("IN2") AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out4_w) | |
| 271 | AM_RANGE(0x05, 0x05) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out5_w) | |
| 272 | AM_RANGE(0x06, 0x06) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out6_w) | |
| 273 | AM_RANGE(0x07, 0x07) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out7_w) | |
| 275 | 274 | ADDRESS_MAP_END |
| 276 | 275 | |
| 277 | 276 | // Draco |
| r2241 | r2242 | |
| 279 | 278 | static ADDRESS_MAP_START( draco_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 280 | 279 | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 281 | 280 | AM_RANGE(0x8000, 0x83ff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size) |
| 282 | AM_RANGE(0xf400, 0xf7ff) AM_READWRITE(cidelsa_charram_r, cidelsa_charram_w) | |
| 283 | AM_RANGE(0xf800, 0xffff) AM_READWRITE(cdp1869_pageram_r, cdp1869_pageram_w) | |
| 281 | AM_RANGE(0xf400, 0xf7ff) AM_DEVREADWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_charram_r, cdp1869_charram_w) | |
| 282 | AM_RANGE(0xf800, 0xffff) AM_DEVREADWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_pageram_r, cdp1869_pageram_w) | |
| 284 | 283 | ADDRESS_MAP_END |
| 285 | 284 | |
| 286 | 285 | static ADDRESS_MAP_START( draco_io_map, ADDRESS_SPACE_IO, 8 ) |
| 287 | 286 | AM_RANGE(0x01, 0x01) AM_READ_PORT("IN0") AM_WRITE(draco_out1_w) |
| 288 | 287 | AM_RANGE(0x02, 0x02) AM_READ_PORT("IN1") |
| 289 | AM_RANGE(0x03, 0x03) AM_WRITE(cdp1869_out3_w) | |
| 290 | AM_RANGE(0x04, 0x04) AM_READ_PORT("IN2") AM_WRITE(cdp1869_out4_w) | |
| 291 | AM_RANGE(0x05, 0x05) AM_WRITE(cdp1869_out5_w) | |
| 292 | AM_RANGE(0x06, 0x06) AM_WRITE(cdp1869_out6_w) | |
| 293 | AM_RANGE(0x07, 0x07) AM_WRITE(cdp1869_out7_w) | |
| 288 | AM_RANGE(0x03, 0x03) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out3_w) | |
| 289 | AM_RANGE(0x04, 0x04) AM_READ_PORT("IN2") AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out4_w) | |
| 290 | AM_RANGE(0x05, 0x05) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out5_w) | |
| 291 | AM_RANGE(0x06, 0x06) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out6_w) | |
| 292 | AM_RANGE(0x07, 0x07) AM_DEVWRITE(CDP1869_VIDEO, CDP1869_TAG, cdp1869_out7_w) | |
| 294 | 293 | ADDRESS_MAP_END |
| 295 | 294 | |
| 296 | 295 | static ADDRESS_MAP_START( draco_sound_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| r2241 | r2242 | |
| 302 | 301 | AM_RANGE(COP400_PORT_G, COP400_PORT_G) AM_WRITE(draco_sound_g_w) |
| 303 | 302 | AM_RANGE(COP400_PORT_L, COP400_PORT_L) AM_READWRITE(draco_sound_ay8910_r, draco_sound_ay8910_w) |
| 304 | 303 | AM_RANGE(COP400_PORT_IN, COP400_PORT_IN) AM_READ(draco_sound_in_r) |
| 304 | AM_RANGE(COP400_PORT_SIO, COP400_PORT_SIO) AM_NOP | |
| 305 | AM_RANGE(COP400_PORT_SK, COP400_PORT_SK) AM_WRITENOP | |
| 305 | 306 | ADDRESS_MAP_END |
| 306 | 307 | |
| 307 | 308 | /* Input Ports */ |
| 308 | 309 | |
| 309 | 310 | static CUSTOM_INPUT( cdp1869_pcb_r ) |
| 310 | 311 | { |
| 311 | return cdp1869_pcb; | |
| 312 | cidelsa_state *state = machine->driver_data; | |
| 313 | ||
| 314 | return state->cdp1869_pcb; | |
| 312 | 315 | } |
| 313 | 316 | |
| 314 | 317 | static CUSTOM_INPUT( cdp1869_predisplay_r ) |
| 315 | 318 | { |
| 316 | return cdp1869_prd; | |
| 319 | cidelsa_state *state = machine->driver_data; | |
| 320 | ||
| 321 | return state->cdp1869_prd; | |
| 317 | 322 | } |
| 318 | 323 | |
| 319 | 324 | static INPUT_PORTS_START( destryer ) |
| r2241 | r2242 | |
| 458 | 463 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN1 ) // M1 |
| 459 | 464 | INPUT_PORTS_END |
| 460 | 465 | |
| 461 | /* Video Timer Callbacks */ | |
| 462 | ||
| 463 | static TIMER_DEVICE_CALLBACK( altair_prd_start ) | |
| 464 | { | |
| 465 | cpunum_set_input_line(Machine, 0, INPUT_LINE_IRQ0, ASSERT_LINE); | |
| 466 | cdp1869_prd = 1; // inverted | |
| 467 | } | |
| 468 | ||
| 469 | static TIMER_DEVICE_CALLBACK( altair_prd_end ) | |
| 470 | { | |
| 471 | cpunum_set_input_line(Machine, 0, INPUT_LINE_IRQ0, CLEAR_LINE); | |
| 472 | cdp1869_prd = 0; // inverted | |
| 473 | } | |
| 474 | ||
| 475 | static TIMER_DEVICE_CALLBACK( draco_prd_start ) | |
| 476 | { | |
| 477 | cdp1869_prd = 0; | |
| 478 | } | |
| 479 | ||
| 480 | static TIMER_DEVICE_CALLBACK( draco_prd_end ) | |
| 481 | { | |
| 482 | cdp1869_prd = 1; | |
| 483 | } | |
| 484 | ||
| 485 | 466 | /* Machine Start */ |
| 486 | 467 | |
| 487 | 468 | static TIMER_CALLBACK( set_cpu_mode ) |
| 488 | 469 | { |
| 489 | cdp1802_mode = CDP1802_MODE_RUN; | |
| 490 | } | |
| 470 | cidelsa_state *state = machine->driver_data; | |
| 491 | 471 | |
| 492 | static UINT8 cidelsa_get_color_bits(UINT8 cramdata, UINT16 cramaddr, UINT16 pramaddr) | |
| 493 | { | |
| 494 | int ccb0 = (cramdata & 0x40) >> 4; | |
| 495 | int ccb1 = (cramdata & 0x80) >> 6; | |
| 496 | int pcb = cidelsa_pcb[cramaddr]; | |
| 497 | ||
| 498 | return ccb0 + ccb1 + pcb; | |
| 472 | state->cdp1802_mode = CDP1802_MODE_RUN; | |
| 499 | 473 | } |
| 500 | 474 | |
| 501 | static | |
| 475 | static MA | |
| 502 | 476 | { |
| 503 | CDP1869_PAL, | |
| 504 | REGION_INVALID, | |
| 505 | 0x800, | |
| 506 | 0x400, | |
| 507 | cidelsa_get_color_bits | |
| 508 | }; | |
| 477 | cidelsa_state *state = machine->driver_data; | |
| 509 | 478 | |
| 510 | static const CDP1869_interface draco_CDP1869_interface = | |
| 511 | { | |
| 512 | CDP1869_PAL, | |
| 513 | REGION_INVALID, | |
| 514 | 0x800, | |
| 515 | 0x800, | |
| 516 | cidelsa_get_color_bits | |
| 517 | }; | |
| 479 | // reset the CPU | |
| 518 | 480 | |
| 519 | static MACHINE_START( destryer ) | |
| 520 | { | |
| 521 | cdp1869_configure(&destryer_CDP1869_interface); | |
| 522 | ||
| 481 | state->cdp1802_mode = CDP1802_MODE_RESET; | |
| 523 | 482 | timer_set(ATTOTIME_IN_MSEC(200), NULL, 0, set_cpu_mode); |
| 524 | 483 | |
| 525 | state_save_register_global(cdp1802_mode); | |
| 526 | state_save_register_global_array(cidelsa_pcb); | |
| 527 | state_save_register_global(cdp1869_prd); | |
| 528 | state_save_register_global(cdp1869_pcb); | |
| 484 | // register save states | |
| 485 | ||
| 486 | state_save_register_global(state->cdp1802_mode); | |
| 529 | 487 | } |
| 530 | 488 | |
| 531 | 489 | static MACHINE_START( draco ) |
| 532 | 490 | { |
| 533 | UINT8 *ROM = memory_region(REGION_CPU2); | |
| 534 | memory_configure_bank(1, 0, 2, &ROM[0x000], 0x400); | |
| 491 | cidelsa_state *state = machine->driver_data; | |
| 535 | 492 | |
| 536 | | |
| 493 | MACHINE_START | |
| 537 | 494 | |
| 538 | | |
| 495 | // | |
| 539 | 496 | |
| 540 | state_save_register_global(cdp1802_mode); | |
| 541 | state_save_register_global_array(cidelsa_pcb); | |
| 542 | state_save_register_global(cdp1869_prd); | |
| 543 | state_save_register_global(cdp1869_pcb); | |
| 544 | state_save_register_global(draco_sound); | |
| 545 | state_save_register_global(draco_ay_latch); | |
| 497 | memory_configure_bank(1, 0, 2, memory_region(REGION_CPU2), 0x400); | |
| 498 | memory_set_bank(1, 0); | |
| 499 | ||
| 500 | // register save states | |
| 501 | ||
| 502 | state_save_register_global(state->draco_sound); | |
| 503 | state_save_register_global(state->draco_ay_latch); | |
| 546 | 504 | } |
| 547 | 505 | |
| 548 | 506 | /* Machine Reset */ |
| 549 | 507 | |
| 550 | static MACHINE_RESET( des | |
| 508 | static MACHINE_RESET( cidelsa | |
| 551 | 509 | { |
| 552 | 510 | cpunum_set_input_line(machine, 0, INPUT_LINE_RESET, PULSE_LINE); |
| 553 | 511 | } |
| r2241 | r2242 | |
| 555 | 513 | /* Machine Drivers */ |
| 556 | 514 | |
| 557 | 515 | static MACHINE_DRIVER_START( destryer ) |
| 516 | MDRV_DRIVER_DATA(cidelsa_state) | |
| 517 | ||
| 558 | 518 | // basic system hardware |
| 559 | 519 | |
| 560 | 520 | MDRV_CPU_ADD(CDP1802, DESTRYER_CHR1) |
| r2241 | r2242 | |
| 562 | 522 | MDRV_CPU_IO_MAP(destryer_io_map, 0) |
| 563 | 523 | MDRV_CPU_CONFIG(cidelsa_cdp1802_config) |
| 564 | 524 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 565 | MDRV_MACHINE_START(destryer) | |
| 566 | MDRV_MACHINE_RESET(destryer) | |
| 567 | 525 | |
| 526 | MDRV_MACHINE_START(cidelsa) | |
| 527 | MDRV_MACHINE_RESET(cidelsa) | |
| 528 | ||
| 568 | 529 | // video hardware |
| 569 | 530 | |
| 570 | MDRV_PALETTE_LENGTH(8+64) | |
| 571 | MDRV_PALETTE_INIT(cdp1869) | |
| 572 | MDRV_VIDEO_START(cdp1869) | |
| 573 | MDRV_VIDEO_UPDATE(cdp1869) | |
| 531 | MDRV_IMPORT_FROM(destryer_video) | |
| 574 | 532 | |
| 575 | MDRV_SCREEN_ADD("main", RASTER) | |
| 576 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 577 | MDRV_SCREEN_RAW_PARAMS(DESTRYER_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) | |
| 578 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) | |
| 579 | ||
| 580 | MDRV_TIMER_ADD_SCANLINE("prd_start", altair_prd_start, "main", CDP1869_SCANLINE_PREDISPLAY_START_PAL, CDP1869_TOTAL_SCANLINES_PAL) | |
| 581 | MDRV_TIMER_ADD_SCANLINE("prd_end", altair_prd_end, "main", CDP1869_SCANLINE_PREDISPLAY_END_PAL, CDP1869_TOTAL_SCANLINES_PAL) | |
| 582 | ||
| 583 | 533 | // sound hardware |
| 584 | 534 | |
| 585 | 535 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r2241 | r2242 | |
| 589 | 539 | MACHINE_DRIVER_END |
| 590 | 540 | |
| 591 | 541 | static MACHINE_DRIVER_START( destryea ) |
| 542 | MDRV_DRIVER_DATA(cidelsa_state) | |
| 543 | ||
| 592 | 544 | // basic system hardware |
| 593 | 545 | |
| 594 | 546 | MDRV_CPU_ADD(CDP1802, DESTRYER_CHR1) |
| r2241 | r2242 | |
| 596 | 548 | MDRV_CPU_IO_MAP(destryer_io_map, 0) |
| 597 | 549 | MDRV_CPU_CONFIG(cidelsa_cdp1802_config) |
| 598 | 550 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 599 | MDRV_MACHINE_START(destryer) | |
| 600 | MDRV_MACHINE_RESET(destryer) | |
| 601 | 551 | |
| 552 | MDRV_MACHINE_START(cidelsa) | |
| 553 | MDRV_MACHINE_RESET(cidelsa) | |
| 554 | ||
| 602 | 555 | // video hardware |
| 603 | 556 | |
| 604 | MDRV_PALETTE_LENGTH(8+64) | |
| 605 | MDRV_PALETTE_INIT(cdp1869) | |
| 606 | MDRV_VIDEO_START(cdp1869) | |
| 607 | MDRV_VIDEO_UPDATE(cdp1869) | |
| 557 | MDRV_IMPORT_FROM(destryer_video) | |
| 608 | 558 | |
| 609 | MDRV_SCREEN_ADD("main", RASTER) | |
| 610 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 611 | MDRV_SCREEN_RAW_PARAMS(DESTRYER_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) | |
| 612 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) | |
| 613 | ||
| 614 | MDRV_TIMER_ADD_SCANLINE("prd_start", altair_prd_start, "main", CDP1869_SCANLINE_PREDISPLAY_START_PAL, CDP1869_TOTAL_SCANLINES_PAL) | |
| 615 | MDRV_TIMER_ADD_SCANLINE("prd_end", altair_prd_end, "main", CDP1869_SCANLINE_PREDISPLAY_END_PAL, CDP1869_TOTAL_SCANLINES_PAL) | |
| 616 | ||
| 617 | 559 | // sound hardware |
| 618 | 560 | |
| 619 | 561 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r2241 | r2242 | |
| 623 | 565 | MACHINE_DRIVER_END |
| 624 | 566 | |
| 625 | 567 | static MACHINE_DRIVER_START( altair ) |
| 568 | MDRV_DRIVER_DATA(cidelsa_state) | |
| 569 | ||
| 626 | 570 | // basic system hardware |
| 627 | 571 | |
| 628 | 572 | MDRV_CPU_ADD(CDP1802, ALTAIR_CHR1) |
| 629 | 573 | MDRV_CPU_PROGRAM_MAP(altair_map, 0) |
| 630 | 574 | MDRV_CPU_IO_MAP(altair_io_map, 0) |
| 631 | 575 | MDRV_CPU_CONFIG(cidelsa_cdp1802_config) |
| 632 | MDRV_MACHINE_START(destryer) | |
| 633 | MDRV_MACHINE_RESET(destryer) | |
| 634 | 576 | |
| 577 | MDRV_MACHINE_START(cidelsa) | |
| 578 | MDRV_MACHINE_RESET(cidelsa) | |
| 579 | ||
| 635 | 580 | // video hardware |
| 636 | 581 | |
| 637 | MDRV_PALETTE_LENGTH(8+64) | |
| 638 | MDRV_PALETTE_INIT(cdp1869) | |
| 639 | MDRV_VIDEO_START(cdp1869) | |
| 640 | MDRV_VIDEO_UPDATE(cdp1869) | |
| 582 | MDRV_IMPORT_FROM(altair_video) | |
| 641 | 583 | |
| 642 | MDRV_SCREEN_ADD("main", RASTER) | |
| 643 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 644 | MDRV_SCREEN_RAW_PARAMS(ALTAIR_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) | |
| 645 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.4, 0.044) | |
| 646 | ||
| 647 | MDRV_TIMER_ADD_SCANLINE("prd_start", altair_prd_start, "main", CDP1869_SCANLINE_PREDISPLAY_START_PAL, CDP1869_TOTAL_SCANLINES_PAL) | |
| 648 | MDRV_TIMER_ADD_SCANLINE("prd_end", altair_prd_end, "main", CDP1869_SCANLINE_PREDISPLAY_END_PAL, CDP1869_TOTAL_SCANLINES_PAL) | |
| 649 | ||
| 650 | 584 | // sound hardware |
| 651 | 585 | |
| 652 | 586 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r2241 | r2242 | |
| 656 | 590 | MACHINE_DRIVER_END |
| 657 | 591 | |
| 658 | 592 | static MACHINE_DRIVER_START( draco ) |
| 593 | MDRV_DRIVER_DATA(cidelsa_state) | |
| 594 | ||
| 659 | 595 | // basic system hardware |
| 660 | 596 | |
| 661 | 597 | MDRV_CPU_ADD(CDP1802, DRACO_CHR1) |
| r2241 | r2242 | |
| 663 | 599 | MDRV_CPU_IO_MAP(draco_io_map, 0) |
| 664 | 600 | MDRV_CPU_CONFIG(cidelsa_cdp1802_config) |
| 665 | 601 | MDRV_NVRAM_HANDLER(generic_0fill) |
| 602 | ||
| 666 | 603 | MDRV_MACHINE_START(draco) |
| 667 | MDRV_MACHINE_RESET(des | |
| 604 | MDRV_MACHINE_RESET(cidelsa | |
| 668 | 605 | |
| 669 | 606 | MDRV_CPU_ADD(COP420, DRACO_SND_CHR1) // COP402N |
| 670 | 607 | MDRV_CPU_PROGRAM_MAP(draco_sound_map, 0) |
| r2241 | r2242 | |
| 672 | 609 | |
| 673 | 610 | // video hardware |
| 674 | 611 | |
| 675 | MDRV_PALETTE_LENGTH(8+64) | |
| 676 | MDRV_PALETTE_INIT(cdp1869) | |
| 677 | MDRV_VIDEO_START(cdp1869) | |
| 678 | MDRV_VIDEO_UPDATE(cdp1869) | |
| 612 | MDRV_IMPORT_FROM(draco_video) | |
| 679 | 613 | |
| 680 | MDRV_SCREEN_ADD("main", RASTER) | |
| 681 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 682 | MDRV_SCREEN_RAW_PARAMS(DRACO_CHR2, CDP1869_SCREEN_WIDTH, CDP1869_HBLANK_END, CDP1869_HBLANK_START, CDP1869_TOTAL_SCANLINES_PAL, CDP1869_SCANLINE_VBLANK_END_PAL, CDP1869_SCANLINE_VBLANK_START_PAL) | |
| 683 | MDRV_SCREEN_DEFAULT_POSITION(1.226, 0.012, 1.360, 0.024) | |
| 684 | ||
| 685 | MDRV_TIMER_ADD_SCANLINE("prd_start", draco_prd_start, "main", CDP1869_SCANLINE_PREDISPLAY_START_PAL, CDP1869_TOTAL_SCANLINES_PAL) | |
| 686 | MDRV_TIMER_ADD_SCANLINE("prd_end", draco_prd_end, "main", CDP1869_SCANLINE_PREDISPLAY_END_PAL, CDP1869_TOTAL_SCANLINES_PAL) | |
| 687 | ||
| 688 | 614 | // sound hardware |
| 689 | 615 | |
| 690 | 616 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| r2241 | r2242 | |
| 743 | 669 | |
| 744 | 670 | /* Game Drivers */ |
| 745 | 671 | |
| 746 | GAME( 1980, destryer, 0, destryer, destryer, 0, ROT90, "Cidelsa", "Destroyer (Cidelsa) (set 1)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 747 | GAME( 1980, destryea, destryer, destryea, destryer, 0, ROT90, "Cidelsa", "Destroyer (Cidelsa) (set 2)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 748 | GAME( 1981, altair, 0, altair, altair, 0, ROT90, "Cidelsa", "Altair", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 672 | GAME( 1980, destryer, 0, destryer, destryer, 0, ROT90, "Cidelsa", "Destroyer (Cidelsa) (set 1)", GAME_IMPERFECT_COLORS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 673 | GAME( 1980, destryea, destryer, destryea, destryer, 0, ROT90, "Cidelsa", "Destroyer (Cidelsa) (set 2)", GAME_IMPERFECT_COLORS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 674 | GAME( 1981, altair, 0, altair, altair, 0, ROT90, "Cidelsa", "Altair", GAME_IMPERFECT_COLORS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) | |
| 749 | 675 | GAME( 1981, draco, 0, draco, draco, 0, ROT90, "Cidelsa", "Draco", GAME_IMPERFECT_COLORS | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |
| r2241 | r2242 | |
|---|---|---|
| 274 | 274 | { |
| 275 | 275 | UINT8 *RAM = memory_region(REGION_USER1); |
| 276 | 276 | // logerror("%05x: EEPROM WR %04x\n",activecpu_get_pc(),offset); |
| 277 | if (ACCESSING_ | |
| 277 | if (ACCESSING_ | |
| 278 | 278 | RAM[offset] = data; |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | static WRITE16_HANDLER( m92_coincounter_w ) |
| 282 | 282 | { |
| 283 | if (ACCESSING_ | |
| 283 | if (ACCESSING_ | |
| 284 | 284 | { |
| 285 | 285 | coin_counter_w(0, data & 0x01); |
| 286 | 286 | coin_counter_w(1, data & 0x02); |
| r2241 | r2242 | |
| 292 | 292 | |
| 293 | 293 | static WRITE16_HANDLER( m92_bankswitch_w ) |
| 294 | 294 | { |
| 295 | if (ACCESSING_ | |
| 295 | if (ACCESSING_ | |
| 296 | 296 | { |
| 297 | 297 | bankaddress = 0x100000 + ((data & 0x7) * 0x10000); |
| 298 | 298 | set_m92_bank(); |
| r2241 | r2242 | |
|---|---|---|
| 1187 | 1187 | |
| 1188 | 1188 | static WRITE16_HANDLER( rom_5704_bank_w ) |
| 1189 | 1189 | { |
| 1190 | if (ACCESSING_ | |
| 1190 | if (ACCESSING_ | |
| 1191 | 1191 | segaic16_tilemap_set_bank(0, offset & 1, data & 7); |
| 1192 | 1192 | } |
| 1193 | 1193 | |
| r2241 | r2242 | |
| 1225 | 1225 | break; |
| 1226 | 1226 | |
| 1227 | 1227 | case 0x2000/2: |
| 1228 | if (ACCESSING_ | |
| 1228 | if (ACCESSING_ | |
| 1229 | 1229 | segaic16_tilemap_set_bank(0, offset & 1, data & 7); |
| 1230 | 1230 | break; |
| 1231 | 1231 | } |
| r2241 | r2242 | |
| 1531 | 1531 | |
| 1532 | 1532 | static WRITE16_HANDLER( atomicp_sound_w ) |
| 1533 | 1533 | { |
| 1534 | if (ACCESSING_ | |
| 1534 | if (ACCESSING_ | |
| 1535 | 1535 | switch (offset & 1) |
| 1536 | 1536 | { |
| 1537 | 1537 | case 0: YM2413_register_port_0_w(machine, 0, data >> 8); break; |
| r2241 | r2242 | |
|---|---|---|
| 72 | 72 | { |
| 73 | 73 | UINT8 *RAM = memory_region(REGION_SOUND1); |
| 74 | 74 | |
| 75 | if (ACCESSING_ | |
| 75 | if (ACCESSING_ | |
| 76 | 76 | memcpy(&RAM[0x30000], &RAM[0x40000 + (data & 0x0f)*0x10000], 0x10000); |
| 77 | 77 | } |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | static WRITE16_HANDLER( thoop2_coin_w ) |
| 81 | 81 | { |
| 82 | if (ACCESSING_ | |
| 82 | if (ACCESSING_ | |
| 83 | 83 | switch ((offset >> 3)){ |
| 84 | 84 | case 0x00: /* Coin Lockouts */ |
| 85 | 85 | case 0x01: |
| r2241 | r2242 | |
|---|---|---|
| 67 | 67 | still some unknown writes however, sound cpu memory map is the same as dd3 |
| 68 | 68 | *******************************************************************************/ |
| 69 | 69 | |
| 70 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 71 | AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) /* Rom */ | |
| 72 | AM_RANGE(0x0c0000, 0x0c1fff) AM_READ(SMH_RAM) /* FG0 Ram */ | |
| 73 | AM_RANGE(0x0c2000, 0x0c3fff) AM_READ(SMH_RAM) /* SPR Ram */ | |
| 74 | AM_RANGE(0x080000, 0x080fff) AM_READ(SMH_RAM) /* BG0 Ram */ | |
| 75 | AM_RANGE(0x082000, 0x082fff) AM_READ(SMH_RAM) /* BG1 Ram */ | |
| 76 | AM_RANGE(0x140020, 0x140027) AM_READ(wwfwfest_inputs_read) /* Inputs */ | |
| 77 | AM_RANGE(0x180000, 0x18ffff) AM_READ(wwfwfest_paletteram16_xxxxBBBBGGGGRRRR_word_r) /* BG0 Ram */ | |
| 78 | AM_RANGE(0x1c0000, 0x1c3fff) AM_READ(SMH_RAM) /* Work Ram */ | |
| 79 | ADDRESS_MAP_END | |
| 80 | ||
| 81 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 82 | AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM) /* Rom */ | |
| 83 | AM_RANGE(0x0c0000, 0x0c1fff) AM_WRITE(wwfwfest_fg0_videoram_w) AM_BASE(&wwfwfest_fg0_videoram) /* FG0 Ram - 4 bytes per tile */ | |
| 84 | AM_RANGE(0x0c2000, 0x0c3fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* SPR Ram */ | |
| 85 | AM_RANGE(0x080000, 0x080fff) AM_WRITE(wwfwfest_bg0_videoram_w) AM_BASE(&wwfwfest_bg0_videoram) /* BG0 Ram - 4 bytes per tile */ | |
| 86 | AM_RANGE(0x082000, 0x082fff) AM_WRITE(wwfwfest_bg1_videoram_w) AM_BASE(&wwfwfest_bg1_videoram) /* BG1 Ram - 2 bytes per tile */ | |
| 70 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 71 | AM_RANGE(0x000000, 0x07ffff) AM_ROM | |
| 72 | AM_RANGE(0x0c0000, 0x0c1fff) AM_RAM AM_WRITE(wwfwfest_fg0_videoram_w) AM_BASE(&wwfwfest_fg0_videoram) /* FG0 Ram - 4 bytes per tile */ | |
| 73 | AM_RANGE(0x0c2000, 0x0c3fff) AM_RAM AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* SPR Ram */ | |
| 74 | AM_RANGE(0x080000, 0x080fff) AM_RAM AM_WRITE(wwfwfest_bg0_videoram_w) AM_BASE(&wwfwfest_bg0_videoram) /* BG0 Ram - 4 bytes per tile */ | |
| 75 | AM_RANGE(0x082000, 0x082fff) AM_RAM AM_WRITE(wwfwfest_bg1_videoram_w) AM_BASE(&wwfwfest_bg1_videoram) /* BG1 Ram - 2 bytes per tile */ | |
| 87 | 76 | AM_RANGE(0x100000, 0x100007) AM_WRITE(wwfwfest_scroll_write) |
| 88 | 77 | AM_RANGE(0x10000a, 0x10000b) AM_WRITE(wwfwfest_flipscreen_w) |
| 89 | 78 | AM_RANGE(0x140000, 0x140001) AM_WRITE(SMH_NOP) /* Irq 3 ack */ |
| 90 | 79 | AM_RANGE(0x140002, 0x140003) AM_WRITE(SMH_NOP) /* Irq 2 ack */ |
| 91 | 80 | AM_RANGE(0x14000C, 0x14000D) AM_WRITE(wwfwfest_soundwrite) |
| 92 | 81 | AM_RANGE(0x140010, 0x140011) AM_WRITE(wwfwfest_1410_write) |
| 93 | AM_RANGE(0x180000, 0x18ffff) AM_WRITE(wwfwfest_paletteram16_xxxxBBBBGGGGRRRR_word_w) AM_BASE(&paletteram16) | |
| 94 | AM_RANGE(0x1c0000, 0x1c3fff) AM_WRITE(SMH_RAM) /* Work Ram */ | |
| 82 | AM_RANGE(0x140020, 0x140027) AM_READ(wwfwfest_inputs_read) /* Inputs */ | |
| 83 | AM_RANGE(0x180000, 0x18ffff) AM_READWRITE(wwfwfest_paletteram16_xxxxBBBBGGGGRRRR_word_r,wwfwfest_paletteram16_xxxxBBBBGGGGRRRR_word_w) AM_BASE(&paletteram16) | |
| 84 | AM_RANGE(0x1c0000, 0x1c3fff) AM_RAM /* Work Ram */ | |
| 95 | 85 | ADDRESS_MAP_END |
| 96 | 86 | |
| 97 | static ADDRESS_MAP_START( readmem_sound, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 98 | AM_RANGE(0x0000, 0xbfff) AM_READ(SMH_ROM) | |
| 99 | AM_RANGE(0xc000, 0xc7ff) AM_READ(SMH_RAM) | |
| 100 | AM_RANGE(0xc801, 0xc801) AM_READ(YM2151_status_port_0_r) | |
| 101 | AM_RANGE(0xd800, 0xd800) AM_READ(OKIM6295_status_0_r) | |
| 102 | AM_RANGE(0xe000, 0xe000) AM_READ(soundlatch_r) | |
| 103 | ADDRESS_MAP_END | |
| 104 | ||
| 105 | static ADDRESS_MAP_START( writemem_sound, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 106 | AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM) | |
| 107 | AM_RANGE(0xc000, 0xc7ff) AM_WRITE(SMH_RAM) | |
| 87 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 88 | AM_RANGE(0x0000, 0xbfff) AM_ROM | |
| 89 | AM_RANGE(0xc000, 0xc7ff) AM_RAM | |
| 108 | 90 | AM_RANGE(0xc800, 0xc800) AM_WRITE(YM2151_register_port_0_w) |
| 109 | AM_RANGE(0xc801, 0xc801) AM_WRITE(YM2151_data_port_0_w) | |
| 110 | AM_RANGE(0xd800, 0xd800) AM_WRITE(OKIM6295_data_0_w) | |
| 91 | AM_RANGE(0xc801, 0xc801) AM_READWRITE(YM2151_status_port_0_r, YM2151_data_port_0_w) | |
| 92 | AM_RANGE(0xd800, 0xd800) AM_READWRITE(OKIM6295_status_0_r,OKIM6295_data_0_w) | |
| 93 | AM_RANGE(0xe000, 0xe000) AM_READ(soundlatch_r) | |
| 111 | 94 | AM_RANGE(0xe800, 0xe800) AM_WRITE(oki_bankswitch_w) |
| 112 | 95 | ADDRESS_MAP_END |
| 113 | 96 | |
| r2241 | r2242 | |
| 404 | 387 | |
| 405 | 388 | /* basic machine hardware */ |
| 406 | 389 | MDRV_CPU_ADD(M68000, 24000000/2) /* 24 crystal, 12 rated chip */ |
| 407 | MDRV_CPU_PROGRAM_MAP( | |
| 390 | MDRV_CPU_PROGRAM_MAP( | |
| 408 | 391 | MDRV_CPU_VBLANK_INT_HACK(wwfwfest_interrupt,2) |
| 409 | 392 | |
| 410 | 393 | MDRV_CPU_ADD(Z80, 3579545) |
| 411 | 394 | /* audio CPU */ |
| 412 | MDRV_CPU_PROGRAM_MAP( | |
| 395 | MDRV_CPU_PROGRAM_MAP( | |
| 413 | 396 | |
| 414 | 397 | /* video hardware */ |
| 415 | 398 | MDRV_VIDEO_ATTRIBUTES(VIDEO_BUFFERS_SPRITERAM) |
| r2241 | r2242 | |
|---|---|---|
| 35 | 35 | - ROM at 0x80000: Several things patched and/or relocated. |
| 36 | 36 | Most original NOPs were replaced by proper code. |
| 37 | 37 | |
| 38 | Multi Game III: 21 games included, hardware features MMC3 NES mapper and additional | |
| 39 | RAM used by Super Mario Bros 3. | |
| 38 | 40 | */ |
| 39 | 41 | |
| 40 | 42 | #include "driver.h" |
| r2241 | r2242 | |
| 43 | 45 | #include "sound/nes_apu.h" |
| 44 | 46 | #include "cpu/m6502/m6502.h" |
| 45 | 47 | |
| 48 | /****************************************************** | |
| 49 | ||
| 50 | NES interface | |
| 51 | ||
| 52 | *******************************************************/ | |
| 53 | ||
| 46 | 54 | static WRITE8_HANDLER( sprite_dma_w ) |
| 47 | 55 | { |
| 48 | 56 | int source = ( data & 7 ); |
| r2241 | r2242 | |
| 64 | 72 | NESPSG_0_w(machine, 0x17, data); |
| 65 | 73 | } |
| 66 | 74 | |
| 67 | /* | |
| 75 | /* | |
| 68 | 76 | |
| 77 | Inputs | |
| 78 | ||
| 79 | *******************************************************/ | |
| 80 | ||
| 69 | 81 | static UINT32 in_0; |
| 70 | 82 | static UINT32 in_1; |
| 71 | 83 | static UINT32 in_0_shift; |
| r2241 | r2242 | |
| 109 | 121 | } |
| 110 | 122 | |
| 111 | 123 | |
| 112 | /* | |
| 124 | /* | |
| 113 | 125 | |
| 126 | ROM/VROM banking (Multi Game) | |
| 127 | ||
| 128 | *******************************************************/ | |
| 129 | ||
| 114 | 130 | static int multigam_game_gfx_bank = 0; |
| 115 | 131 | |
| 116 | static WRITE8_HANDLER( | |
| 132 | static WRITE8_HANDLER( | |
| 117 | 133 | { |
| 118 | if ( offset == 0x0fff ) | |
| 134 | /* switch PRG rom */ | |
| 135 | UINT8* dst = memory_region( REGION_CPU1 ); | |
| 136 | UINT8* src = memory_region( REGION_USER1 ); | |
| 137 | ||
| 138 | if ( data & 0x80 ) | |
| 119 | 139 | { |
| 120 | /* switch PRG rom */ | |
| 121 | UINT8* dst = memory_region( REGION_CPU1 ); | |
| 122 | UINT8* src = memory_region( REGION_USER1 ); | |
| 123 | ||
| 124 | if ( data & 0x80 ) | |
| 140 | if ( data & 0x01 ) | |
| 125 | 141 | { |
| 126 | if ( data & 0x01 ) | |
| 127 | { | |
| 128 | data &= ~0x01; | |
| 129 | } | |
| 130 | memcpy( &dst[0x8000], &src[(data & 0x7f) * 0x4000], 0x8000 ); | |
| 142 | data &= ~0x01; | |
| 131 | 143 | } |
| 132 | else | |
| 133 | { | |
| 134 | memcpy( &dst[0x8000], &src[data*0x4000], 0x4000 ); | |
| 135 | memcpy( &dst[0xc000], &src[data*0x4000], 0x4000 ); | |
| 136 | } | |
| 144 | memcpy( &dst[0x8000], &src[(data & 0x7f) * 0x4000], 0x8000 ); | |
| 137 | 145 | } |
| 138 | else if ( offset == 0x1fff ) | |
| 139 | { | |
| 140 | ppu2c0x_set_videorom_bank( 0, 0, 8, data /*& 0x3f*/, 512 ); | |
| 141 | ppu2c0x_set_mirroring( 0, data & 0x40 ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); | |
| 142 | multigam_game_gfx_bank = data; | |
| 143 | } | |
| 144 | 146 | else |
| 145 | 147 | { |
| 146 | logerror( "Unmapped multigam_mapper_w: offset = %04X, data = %02X\n", offset, data ); | |
| 148 | memcpy( &dst[0x8000], &src[data*0x4000], 0x4000 ); | |
| 149 | memcpy( &dst[0xc000], &src[data*0x4000], 0x4000 ); | |
| 147 | 150 | } |
| 148 | } | |
| 151 | }; | |
| 149 | 152 | |
| 153 | static WRITE8_HANDLER(multigam_switch_gfx_rom) | |
| 154 | { | |
| 155 | ppu2c0x_set_videorom_bank( 0, 0, 8, data /*& 0x3f*/, 512 ); | |
| 156 | ppu2c0x_set_mirroring( 0, data & 0x40 ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); | |
| 157 | multigam_game_gfx_bank = data; | |
| 158 | }; | |
| 159 | ||
| 160 | ||
| 150 | 161 | static WRITE8_HANDLER(multigam_mapper2_w) |
| 151 | 162 | { |
| 152 | 163 | if ( multigam_game_gfx_bank & 0x80 ) |
| r2241 | r2242 | |
| 159 | 170 | } |
| 160 | 171 | } |
| 161 | 172 | |
| 173 | /****************************************************** | |
| 174 | ||
| 175 | Memory map (Multi Game) | |
| 176 | ||
| 177 | *******************************************************/ | |
| 178 | ||
| 162 | 179 | static ADDRESS_MAP_START( multigam_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 163 | 180 | AM_RANGE(0x0000, 0x07ff) AM_RAM /* NES RAM */ |
| 164 | 181 | AM_RANGE(0x0800, 0x0fff) AM_RAM /* additional RAM */ |
| r2241 | r2242 | |
| 171 | 188 | AM_RANGE(0x5002, 0x5002) AM_WRITENOP |
| 172 | 189 | AM_RANGE(0x5000, 0x5ffe) AM_ROM |
| 173 | 190 | AM_RANGE(0x5fff, 0x5fff) AM_READ(multigam_inputs_r) |
| 174 | AM_RANGE(0x6000, 0x7fff) AM_ROM AM_WRITE(multigam_mapper_w) | |
| 191 | AM_RANGE(0x6000, 0x7fff) AM_ROM | |
| 192 | AM_RANGE(0x6fff, 0x6fff) AM_WRITE(multigam_switch_prg_rom) | |
| 193 | AM_RANGE(0x7fff, 0x7fff) AM_WRITE(multigam_switch_gfx_rom) | |
| 175 | 194 | AM_RANGE(0x8000, 0xffff) AM_ROM AM_WRITE(multigam_mapper2_w) |
| 176 | 195 | ADDRESS_MAP_END |
| 177 | 196 | |
| 178 | static INPUT_PORTS_START( multigam ) | |
| 197 | /****************************************************** | |
| 198 | ||
| 199 | MMC3 (Multi Game III) | |
| 200 | ||
| 201 | *******************************************************/ | |
| 202 | ||
| 203 | static int multigam3_mmc3_scanline_counter; | |
| 204 | static int multigam3_mmc3_scanline_latch; | |
| 205 | static int multigam3_mmc3_banks[2]; | |
| 206 | static int multigam3_mmc3_4screen; | |
| 207 | static int multigam3_mmc3_last_bank = 0xff; | |
| 208 | static UINT8* multigmc_mmc3_6000_ram; | |
| 209 | ||
| 210 | static void multigam3_mmc3_scanline_cb( int num, int scanline, int vblank, int blanked ) | |
| 211 | { | |
| 212 | if ( !vblank && !blanked ) | |
| 213 | { | |
| 214 | if ( --multigam3_mmc3_scanline_counter == -1 ) | |
| 215 | { | |
| 216 | multigam3_mmc3_scanline_counter = multigam3_mmc3_scanline_latch; | |
| 217 | cpunum_set_input_line(Machine, 0, 0, PULSE_LINE ); | |
| 218 | } | |
| 219 | } | |
| 220 | } | |
| 221 | ||
| 222 | static WRITE8_HANDLER( multigam3_mmc3_rom_switch_w ) | |
| 223 | { | |
| 224 | /* basically, a MMC3 mapper from the nes */ | |
| 225 | static int multigam3_mmc3_command; | |
| 226 | ||
| 227 | switch( offset & 0x7001 ) | |
| 228 | { | |
| 229 | case 0x0000: | |
| 230 | multigam3_mmc3_command = data; | |
| 231 | ||
| 232 | if ( multigam3_mmc3_last_bank != ( data & 0xc0 ) ) | |
| 233 | { | |
| 234 | int bank; | |
| 235 | ||
| 236 | /* reset the banks */ | |
| 237 | if ( multigam3_mmc3_command & 0x40 ) | |
| 238 | { | |
| 239 | /* high bank */ | |
| 240 | bank = multigam3_mmc3_banks[0] * 0x2000 + 0xa0000; | |
| 241 | ||
| 242 | memcpy( &memory_region( REGION_CPU1 )[0x0c000], &memory_region( REGION_USER1 )[bank], 0x2000 ); | |
| 243 | memcpy( &memory_region( REGION_CPU1 )[0x08000], &memory_region( REGION_USER1 )[0xa0000 + 0x3c000], 0x2000 ); | |
| 244 | } | |
| 245 | else | |
| 246 | { | |
| 247 | /* low bank */ | |
| 248 | bank = multigam3_mmc3_banks[0] * 0x2000 + 0xa0000; | |
| 249 | ||
| 250 | memcpy( &memory_region( REGION_CPU1 )[0x08000], &memory_region( REGION_USER1 )[bank], 0x2000 ); | |
| 251 | memcpy( &memory_region( REGION_CPU1 )[0x0c000], &memory_region( REGION_USER1 )[0xa0000 + 0x3c000], 0x2000 ); | |
| 252 | } | |
| 253 | ||
| 254 | /* mid bank */ | |
| 255 | bank = multigam3_mmc3_banks[1] * 0x2000 + 0xa0000; | |
| 256 | memcpy( &memory_region( REGION_CPU1 )[0x0a000], &memory_region( REGION_USER1 )[bank], 0x2000 ); | |
| 257 | ||
| 258 | multigam3_mmc3_last_bank = data & 0xc0; | |
| 259 | } | |
| 260 | break; | |
| 261 | ||
| 262 | case 0x0001: | |
| 263 | { | |
| 264 | UINT8 cmd = multigam3_mmc3_command & 0x07; | |
| 265 | int page = ( multigam3_mmc3_command & 0x80 ) >> 5; | |
| 266 | int bank; | |
| 267 | ||
| 268 | switch( cmd ) | |
| 269 | { | |
| 270 | case 0: /* char banking */ | |
| 271 | case 1: /* char banking */ | |
| 272 | data &= 0xfe; | |
| 273 | page ^= ( cmd << 1 ); | |
| 274 | ppu2c0x_set_videorom_bank( 0, page, 2, 0x100 + data, 64 ); | |
| 275 | break; | |
| 276 | ||
| 277 | case 2: /* char banking */ | |
| 278 | case 3: /* char banking */ | |
| 279 | case 4: /* char banking */ | |
| 280 | case 5: /* char banking */ | |
| 281 | page ^= cmd + 2; | |
| 282 | ppu2c0x_set_videorom_bank( 0, page, 1, 0x100 + data, 64 ); | |
| 283 | break; | |
| 284 | ||
| 285 | case 6: /* program banking */ | |
| 286 | if ( multigam3_mmc3_command & 0x40 ) | |
| 287 | { | |
| 288 | /* high bank */ | |
| 289 | multigam3_mmc3_banks[0] = data & 0x1f; | |
| 290 | bank = ( multigam3_mmc3_banks[0] ) * 0x2000 + 0xa0000; | |
| 291 | ||
| 292 | memcpy( &memory_region( REGION_CPU1 )[0x0c000], &memory_region( REGION_USER1 )[bank], 0x2000 ); | |
| 293 | memcpy( &memory_region( REGION_CPU1 )[0x08000], &memory_region( REGION_USER1 )[0xa0000 + 0x3c000], 0x2000 ); | |
| 294 | } | |
| 295 | else | |
| 296 | { | |
| 297 | /* low bank */ | |
| 298 | multigam3_mmc3_banks[0] = data & 0x1f; | |
| 299 | bank = ( multigam3_mmc3_banks[0] ) * 0x2000 + 0xa0000; | |
| 300 | ||
| 301 | memcpy( &memory_region( REGION_CPU1 )[0x08000], &memory_region( REGION_USER1 )[bank], 0x2000 ); | |
| 302 | memcpy( &memory_region( REGION_CPU1 )[0x0c000], &memory_region( REGION_USER1 )[0xa0000 + 0x3c000], 0x2000 ); | |
| 303 | } | |
| 304 | break; | |
| 305 | ||
| 306 | case 7: /* program banking */ | |
| 307 | { | |
| 308 | /* mid bank */ | |
| 309 | multigam3_mmc3_banks[1] = data & 0x1f; | |
| 310 | bank = multigam3_mmc3_banks[1] * 0x2000 + 0xa0000; | |
| 311 | ||
| 312 | memcpy( &memory_region( REGION_CPU1 )[0x0a000], &memory_region( REGION_USER1 )[bank], 0x2000 ); | |
| 313 | } | |
| 314 | break; | |
| 315 | } | |
| 316 | } | |
| 317 | break; | |
| 318 | ||
| 319 | case 0x2000: /* mirroring */ | |
| 320 | if( !multigam3_mmc3_4screen ) | |
| 321 | { | |
| 322 | if ( data & 0x40 ) | |
| 323 | ppu2c0x_set_mirroring( 0, PPU_MIRROR_HIGH ); | |
| 324 | else | |
| 325 | ppu2c0x_set_mirroring( 0, ( data & 1 ) ? PPU_MIRROR_HORZ : PPU_MIRROR_VERT ); | |
| 326 | } | |
| 327 | break; | |
| 328 | ||
| 329 | case 0x2001: /* enable ram at $6000 */ | |
| 330 | /* ignored - we always enable it */ | |
| 331 | break; | |
| 332 | ||
| 333 | case 0x4000: /* scanline counter */ | |
| 334 | multigam3_mmc3_scanline_counter = data; | |
| 335 | break; | |
| 336 | ||
| 337 | case 0x4001: /* scanline latch */ | |
| 338 | multigam3_mmc3_scanline_latch = data; | |
| 339 | break; | |
| 340 | ||
| 341 | case 0x6000: /* disable irqs */ | |
| 342 | ppu2c0x_set_scanline_callback( 0, 0 ); | |
| 343 | break; | |
| 344 | ||
| 345 | case 0x6001: /* enable irqs */ | |
| 346 | ppu2c0x_set_scanline_callback( 0, multigam3_mmc3_scanline_cb ); | |
| 347 | break; | |
| 348 | } | |
| 349 | } | |
| 350 | ||
| 351 | static void multigam_init_smb3(void) | |
| 352 | { | |
| 353 | UINT8* dst = memory_region( REGION_CPU1 ); | |
| 354 | UINT8* src = memory_region( REGION_USER1 ); | |
| 355 | ||
| 356 | memcpy(&dst[0x8000], &src[0xa0000 + 0x3c000], 0x4000); | |
| 357 | memcpy(&dst[0xc000], &src[0xa0000 + 0x3c000], 0x4000); | |
| 358 | ||
| 359 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0xffff, 0, 0, multigam3_mmc3_rom_switch_w ); | |
| 360 | ||
| 361 | memory_set_bankptr(1, multigmc_mmc3_6000_ram); | |
| 362 | ||
| 363 | multigam3_mmc3_banks[0] = 0x1e; | |
| 364 | multigam3_mmc3_banks[1] = 0x1f; | |
| 365 | multigam3_mmc3_scanline_counter = 0; | |
| 366 | multigam3_mmc3_scanline_latch = 0; | |
| 367 | multigam3_mmc3_4screen = 0; | |
| 368 | multigam3_mmc3_last_bank = 0xff; | |
| 369 | ||
| 370 | }; | |
| 371 | ||
| 372 | static WRITE8_HANDLER(multigm3_mapper2_w) | |
| 373 | { | |
| 374 | if ( multigam_game_gfx_bank & 0x80 ) | |
| 375 | { | |
| 376 | ppu2c0x_set_videorom_bank( 0, 0, 8, (multigam_game_gfx_bank & 0xfc) + (data & 0x3), 512 ); | |
| 377 | } | |
| 378 | else | |
| 379 | { | |
| 380 | logerror( "Unmapped multigam_mapper2_w: offset = %04X, data = %02X\n", offset, data ); | |
| 381 | } | |
| 382 | }; | |
| 383 | ||
| 384 | static WRITE8_HANDLER(multigm3_switch_prg_rom) | |
| 385 | { | |
| 386 | /* switch PRG rom */ | |
| 387 | UINT8* dst = memory_region( REGION_CPU1 ); | |
| 388 | UINT8* src = memory_region( REGION_USER1 ); | |
| 389 | ||
| 390 | if ( data == 0xa8 ) | |
| 391 | { | |
| 392 | multigam_init_smb3(); | |
| 393 | return; | |
| 394 | } | |
| 395 | else | |
| 396 | { | |
| 397 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x8000, 0xffff, 0, 0, multigm3_mapper2_w ); | |
| 398 | memory_set_bankptr(1, memory_region(REGION_CPU1) + 0x6000); | |
| 399 | } | |
| 400 | ||
| 401 | if ( data & 0x80 ) | |
| 402 | { | |
| 403 | if ( data & 0x01 ) | |
| 404 | { | |
| 405 | data &= ~0x01; | |
| 406 | } | |
| 407 | memcpy( &dst[0x8000], &src[(data & 0x7f) * 0x4000], 0x8000 ); | |
| 408 | } | |
| 409 | else | |
| 410 | { | |
| 411 | memcpy( &dst[0x8000], &src[data*0x4000], 0x4000 ); | |
| 412 | memcpy( &dst[0xc000], &src[data*0x4000], 0x4000 ); | |
| 413 | } | |
| 414 | }; | |
| 415 | ||
| 416 | /****************************************************** | |
| 417 | ||
| 418 | Memory map (Multi Game III) | |
| 419 | ||
| 420 | *******************************************************/ | |
| 421 | ||
| 422 | static ADDRESS_MAP_START( multigm3_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 423 | AM_RANGE(0x0000, 0x07ff) AM_RAM /* NES RAM */ | |
| 424 | AM_RANGE(0x0800, 0x0fff) AM_RAM /* additional RAM */ | |
| 425 | AM_RANGE(0x2000, 0x3fff) AM_READWRITE(ppu2c0x_0_r, ppu2c0x_0_w) | |
| 426 | AM_RANGE(0x4000, 0x4013) AM_READWRITE(NESPSG_0_r, NESPSG_0_w) /* PSG primary registers */ | |
| 427 | AM_RANGE(0x4014, 0x4014) AM_WRITE(sprite_dma_w) | |
| 428 | AM_RANGE(0x4015, 0x4015) AM_READWRITE(psg_4015_r, psg_4015_w) /* PSG status / first control register */ | |
| 429 | AM_RANGE(0x4016, 0x4016) AM_READWRITE(multigam_IN0_r, multigam_IN0_w) /* IN0 - input port 1 */ | |
| 430 | AM_RANGE(0x4017, 0x4017) AM_READWRITE(multigam_IN1_r, psg_4017_w) /* IN1 - input port 2 / PSG second control register */ | |
| 431 | AM_RANGE(0x5001, 0x5001) AM_WRITE(multigm3_switch_prg_rom) | |
| 432 | AM_RANGE(0x5002, 0x5002) AM_WRITENOP | |
| 433 | AM_RANGE(0x5003, 0x5003) AM_WRITE(multigam_switch_gfx_rom) | |
| 434 | AM_RANGE(0x5000, 0x5ffe) AM_ROM | |
| 435 | AM_RANGE(0x5fff, 0x5fff) AM_READ(multigam_inputs_r) | |
| 436 | AM_RANGE(0x6000, 0x7fff) AM_RAMBANK(1) | |
| 437 | AM_RANGE(0x6fff, 0x6fff) AM_WRITENOP /* 0x00 in attract mode, 0xff during play */ | |
| 438 | AM_RANGE(0x8000, 0xffff) AM_ROM AM_WRITE(multigm3_mapper2_w) | |
| 439 | ADDRESS_MAP_END | |
| 440 | ||
| 441 | /****************************************************** | |
| 442 | ||
| 443 | Input ports | |
| 444 | ||
| 445 | *******************************************************/ | |
| 446 | ||
| 447 | static INPUT_PORTS_START( multigam_common ) | |
| 179 | 448 | PORT_START /* IN0 */ |
| 180 | 449 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(1) |
| 181 | 450 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(1) |
| r2241 | r2242 | |
| 198 | 467 | |
| 199 | 468 | PORT_START /* IN2 */ |
| 200 | 469 | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN1 ) |
| 470 | INPUT_PORTS_END | |
| 201 | 471 | |
| 472 | static INPUT_PORTS_START( multigam ) | |
| 473 | PORT_INCLUDE( multigam_common ) | |
| 474 | ||
| 202 | 475 | PORT_START /* IN3 */ |
| 203 | 476 | PORT_DIPNAME( 0x06, 0x00, "Coin/Time" ) |
| 204 | 477 | PORT_DIPSETTING( 0x00, "3 min" ) |
| r2241 | r2242 | |
| 207 | 480 | PORT_DIPSETTING( 0x06, "10 min" ) |
| 208 | 481 | INPUT_PORTS_END |
| 209 | 482 | |
| 483 | static INPUT_PORTS_START( multigm3 ) | |
| 484 | PORT_INCLUDE( multigam_common ) | |
| 485 | ||
| 486 | PORT_START /* IN3 */ | |
| 487 | PORT_DIPNAME( 0x06, 0x00, "Coin/Time" ) | |
| 488 | PORT_DIPSETTING( 0x00, "15 min" ) | |
| 489 | PORT_DIPSETTING( 0x04, "8 min" ) | |
| 490 | PORT_DIPSETTING( 0x02, "11 min" ) | |
| 491 | PORT_DIPSETTING( 0x06, "5 min" ) | |
| 492 | INPUT_PORTS_END | |
| 493 | ||
| 494 | ||
| 495 | /****************************************************** | |
| 496 | ||
| 497 | PPU/Video interface | |
| 498 | ||
| 499 | *******************************************************/ | |
| 500 | ||
| 210 | 501 | static const struct NESinterface multigam_interface_1 = |
| 211 | 502 | { |
| 212 | 503 | REGION_CPU1 |
| 213 | 504 | }; |
| 214 | 505 | |
| 215 | static MACHINE_RESET( multigam ) | |
| 216 | { | |
| 217 | /* reset the ppu */ | |
| 218 | ppu2c0x_reset( 0, 1 ); | |
| 219 | } | |
| 220 | ||
| 221 | 506 | static PALETTE_INIT( multigam ) |
| 222 | 507 | { |
| 223 | 508 | ppu2c0x_init_palette(machine, 0 ); |
| r2241 | r2242 | |
| 252 | 537 | return 0; |
| 253 | 538 | } |
| 254 | 539 | |
| 255 | static DRIVER_INIT( multigam ) | |
| 256 | { | |
| 257 | multigam_mapper_w( machine, 0x0fff, 0x01 ); | |
| 258 | } | |
| 259 | ||
| 260 | 540 | static GFXDECODE_START( multigam ) |
| 261 | 541 | /* none, the ppu generates one */ |
| 262 | 542 | GFXDECODE_END |
| 263 | 543 | |
| 544 | /****************************************************** | |
| 545 | ||
| 546 | Machine | |
| 547 | ||
| 548 | *******************************************************/ | |
| 549 | ||
| 550 | static MACHINE_RESET( multigam ) | |
| 551 | { | |
| 552 | /* reset the ppu */ | |
| 553 | ppu2c0x_reset( 0, 1 ); | |
| 554 | } | |
| 555 | ||
| 556 | static MACHINE_RESET( multigm3 ) | |
| 557 | { | |
| 558 | /* reset the ppu */ | |
| 559 | ppu2c0x_reset( 0, 1 ); | |
| 560 | multigm3_switch_prg_rom(machine, 0, 0x01 ); | |
| 561 | }; | |
| 562 | ||
| 563 | ||
| 264 | 564 | static MACHINE_DRIVER_START( multigam ) |
| 265 | 565 | /* basic machine hardware */ |
| 266 | 566 | MDRV_CPU_ADD_TAG("main", N2A03, N2A03_DEFAULTCLOCK) |
| r2241 | r2242 | |
| 293 | 593 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 294 | 594 | MACHINE_DRIVER_END |
| 295 | 595 | |
| 596 | static MACHINE_DRIVER_START( multigm3 ) | |
| 597 | MDRV_IMPORT_FROM(multigam) | |
| 598 | MDRV_CPU_MODIFY("main") | |
| 599 | MDRV_CPU_PROGRAM_MAP(multigm3_map, 0) | |
| 600 | ||
| 601 | MDRV_MACHINE_RESET( multigm3 ) | |
| 602 | MACHINE_DRIVER_END | |
| 603 | ||
| 296 | 604 | ROM_START( multigam ) |
| 297 | 605 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 298 | 606 | ROM_LOAD( "7.bin", 0x0000, 0x8000, CRC(f0fa7cf2) SHA1(7f3b3dca796b964893197aef7f0f31dfd7a2c1a4) ) |
| r2241 | r2242 | |
| 331 | 639 | ROM_FILL( 0x60000, 0x20000, 0x00 ) |
| 332 | 640 | ROM_END |
| 333 | 641 | |
| 642 | ROM_START( multigm3 ) | |
| 643 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) | |
| 644 | ROM_LOAD( "mg3-6.bin", 0x0000, 0x8000, CRC(3c1e53f1) SHA1(2eaf84e592db58cd268738da2642c716895e4eaa) ) | |
| 334 | 645 | |
| 646 | ROM_REGION( 0x100000, REGION_USER1, 0 ) | |
| 647 | ROM_LOAD( "mg3-2.bin", 0x00000, 0x20000, CRC(de6d2232) SHA1(30a5e6cd44cfbce2c5186dbc45c0c14c8b1510c4) ) | |
| 648 | ROM_LOAD( "mg3-1.bin", 0x40000, 0x20000, CRC(b0dc8136) SHA1(6d7334aae9047ec2028790bd3b326458b5cdc737) ) | |
| 649 | ROM_LOAD( "mg3-3.bin", 0x60000, 0x20000, CRC(6e96d642) SHA1(45eb954a0a905ad48ebc04ee3ed8858a1077817a) ) | |
| 650 | ROM_LOAD( "mg3-5.bin", 0xa0000, 0x40000, CRC(44609e6f) SHA1(c12a63e34b379427a3c146f1f85688fedf55ed0f) ) | |
| 651 | ROM_LOAD( "mg3-4.bin", 0xe0000, 0x20000, CRC(9b022e13) SHA1(96ad9c49cf72fe19a3e9944f8102d2d905266e92) ) | |
| 652 | ||
| 653 | ||
| 654 | ROM_REGION( 0x80000, REGION_GFX1, 0 ) | |
| 655 | ROM_LOAD( "mg3-7.bin", 0x00000, 0x20000, CRC(d8308cdb) SHA1(7bfb864611c32cf3740cfd650bfe275513d511d7) ) | |
| 656 | ROM_LOAD( "mg3-8.bin", 0x20000, 0x20000, CRC(b4a53b9d) SHA1(63d8901149d0d9b69f28bfc096f7932448542032) ) | |
| 657 | ROM_LOAD( "mg3-9.bin", 0x40000, 0x20000, CRC(a0ae2b4b) SHA1(5e026ad8a6b2a8120e386471d5178625bda04525) ) | |
| 658 | ROM_FILL( 0x60000, 0x20000, 0x00 ) | |
| 659 | ROM_END | |
| 660 | ||
| 661 | static DRIVER_INIT( multigam ) | |
| 662 | { | |
| 663 | multigam_switch_prg_rom( machine, 0x0, 0x01 ); | |
| 664 | } | |
| 665 | ||
| 666 | static void multigm3_decrypt(UINT8* mem, int memsize, const UINT8* decode_nibble) | |
| 667 | { | |
| 668 | int i; | |
| 669 | for (i = 0; i < memsize; i++) | |
| 670 | { | |
| 671 | mem[i] = decode_nibble[mem[i] & 0x0f] | (decode_nibble[mem[i] >> 4] << 4); | |
| 672 | } | |
| 673 | }; | |
| 674 | ||
| 675 | static DRIVER_INIT(multigm3) | |
| 676 | { | |
| 677 | const UINT8 decode[16] = { 0x09, 0x08, 0x07, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01, 0x00, 0x0f, 0x0e, 0x0d, 0x0c, 0x0b, 0x0a }; | |
| 678 | ||
| 679 | multigm3_decrypt(memory_region(REGION_CPU1), memory_region_length(REGION_CPU1), decode ); | |
| 680 | multigm3_decrypt(memory_region(REGION_USER1), memory_region_length(REGION_USER1), decode ); | |
| 681 | ||
| 682 | multigmc_mmc3_6000_ram = auto_malloc(0x2000); | |
| 683 | } | |
| 684 | ||
| 335 | 685 | GAME( 1992, multigam, 0, multigam, multigam, multigam, ROT0, "unknown", "Multi Game (set 1)", 0 ) |
| 336 | 686 | GAME( 1992, multigmb, multigam, multigam, multigam, multigam, ROT0, "unknown", "Multi Game (set 2)", 0 ) |
| 687 | GAME( 19??, multigm3, 0, multigm3, multigm3, multigm3, ROT0, "Seo Jin", "Multi Game III", 0 ) |
| r2241 | r2242 | |
|---|---|---|
| 98 | 98 | #if 0 |
| 99 | 99 | static WRITE32_HANDLER( a2d_select_w ) |
| 100 | 100 | { |
| 101 | if (ACCESSING_ | |
| 101 | if (ACCESSING_BITS_16_31) | |
| 102 | 102 | which_input = offset * 2; |
| 103 | if (ACCESSING_ | |
| 103 | if (ACCESSING_BITS_0_15) | |
| 104 | 104 | which_input = offset * 2 + 1; |
| 105 | 105 | } |
| 106 | 106 | #endif |
| r2241 | r2242 | |
| 136 | 136 | logerror("latch_w(%08X) & %08X\n", data, ~mem_mask); |
| 137 | 137 | |
| 138 | 138 | /* upper byte */ |
| 139 | if ( | |
| 139 | if (ACCESSING_BITS_24_31 | |
| 140 | 140 | { |
| 141 | 141 | /* bits 13-11 are the MO control bits */ |
| 142 | 142 | atarirle_control_w(0, (data >> 27) & 7); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /* lower byte */ |
| 146 | if ( | |
| 146 | if (ACCESSING_BITS_16_23 | |
| 147 | 147 | cpunum_set_input_line(machine, 1, INPUT_LINE_RESET, (data & 0x100000) ? CLEAR_LINE : ASSERT_LINE); |
| 148 | 148 | } |
| 149 | 149 | |
| r2241 | r2242 | |
| 151 | 151 | static WRITE32_HANDLER( mo_command_w ) |
| 152 | 152 | { |
| 153 | 153 | COMBINE_DATA(mo_command); |
| 154 | if (ACCESSING_ | |
| 154 | if (ACCESSING_BITS_0_15) | |
| 155 | 155 | atarirle_command_w(0, ((data & 0xffff) == 2) ? ATARIRLE_COMMAND_CHECKSUM : ATARIRLE_COMMAND_DRAW); |
| 156 | 156 | } |
| 157 | 157 | |
| r2241 | r2242 | |
| 173 | 173 | // if (pc == 0x11cbe || pc == 0x11c30) |
| 174 | 174 | // logerror("%06X:Protection W@%04X = %04X (result to %06X)\n", pc, offset, data, activecpu_get_reg(M68K_A2)); |
| 175 | 175 | // else |
| 176 | if (ACCESSING_ | |
| 176 | if (ACCESSING_BITS_16_31) | |
| 177 | 177 | logerror("%06X:Protection W@%04X = %04X\n", pc, offset * 4, data >> 16); |
| 178 | 178 | else |
| 179 | 179 | logerror("%06X:Protection W@%04X = %04X\n", pc, offset * 4 + 2, data); |
| r2241 | r2242 | |
| 181 | 181 | |
| 182 | 182 | COMBINE_DATA(&protection_base[offset]); |
| 183 | 183 | |
| 184 | if (ACCESSING_ | |
| 184 | if (ACCESSING_BITS_16_31) | |
| 185 | 185 | { |
| 186 | 186 | last_write = protection_base[offset] >> 16; |
| 187 | 187 | last_write_offset = offset*2; |
| 188 | 188 | } |
| 189 | if (ACCESSING_ | |
| 189 | if (ACCESSING_BITS_0_15) | |
| 190 | 190 | { |
| 191 | 191 | last_write = protection_base[offset] & 0xffff; |
| 192 | 192 | last_write_offset = offset*2+1; |
| r2241 | r2242 | |
| 1153 | 1153 | } |
| 1154 | 1154 | } |
| 1155 | 1155 | |
| 1156 | if (ACCESSING_ | |
| 1156 | if (ACCESSING_BITS_16_31) | |
| 1157 | 1157 | logerror("%06X:Protection R@%04X = %04X\n", activecpu_get_previouspc(), offset * 4, result >> 16); |
| 1158 | 1158 | else |
| 1159 | 1159 | logerror("%06X:Protection R@%04X = %04X\n", activecpu_get_previouspc(), offset * 4 + 2, result); |
| r2241 | r2242 | |
|---|---|---|
| 78 | 78 | |
| 79 | 79 | static WRITE16_HANDLER( fuuki16_sound_command_w ) |
| 80 | 80 | { |
| 81 | if (ACCESSING_ | |
| 81 | if (ACCESSING_ | |
| 82 | 82 | { |
| 83 | 83 | soundlatch_w(machine,0,data & 0xff); |
| 84 | 84 | cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 50 | 50 | { |
| 51 | 51 | COMBINE_DATA(&paletteram32[offset]); |
| 52 | 52 | data = paletteram32[offset]; |
| 53 | palette_set_color_rgb( | |
| 53 | palette_set_color_rgb(machine, offset, pal5bit(data >> 10), pal5bit(data >> 5), pal5bit(data >> 0)); | |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | |
| r2241 | r2242 | |
| 511 | 511 | |
| 512 | 512 | switch (offset) |
| 513 | 513 | { |
| 514 | case 0x54/4: return mame_rand(Machine) << 16; break; | |
| 515 | case 0x5c/4: return mame_rand(Machine) << 16 | mame_rand(Machine); break; | |
| 514 | case 0x54/4: return mame_rand(machine) << 16; break; | |
| 515 | case 0x5c/4: return mame_rand(machine) << 16 | mame_rand(machine); break; | |
| 516 | 516 | } |
| 517 | 517 | |
| 518 | 518 | return K001604_reg[chip][offset]; |
| r2241 | r2242 | |
| 571 | 571 | UINT32 r = 0; |
| 572 | 572 | if (offset == 0) |
| 573 | 573 | { |
| 574 | if ( | |
| 574 | if (ACCESSING_BITS_24_31 | |
| 575 | 575 | { |
| 576 | 576 | r |= readinputport(0) << 24; |
| 577 | 577 | } |
| 578 | if ( | |
| 578 | if (ACCESSING_BITS_16_23 | |
| 579 | 579 | { |
| 580 | 580 | r |= readinputport(1) << 16; |
| 581 | 581 | } |
| 582 | if ( | |
| 582 | if (ACCESSING_BITS_8_15 | |
| 583 | 583 | { |
| 584 | 584 | r |= readinputport(2) << 8; |
| 585 | 585 | } |
| 586 | if ( | |
| 586 | if (ACCESSING_BITS_ | |
| 587 | 587 | { |
| 588 | 588 | r |= (adc1213x_do_r(0)) | (adc1213x_eoc_r(0) << 2); |
| 589 | 589 | } |
| 590 | 590 | } |
| 591 | 591 | else if (offset == 1) |
| 592 | 592 | { |
| 593 | if ( | |
| 593 | if (ACCESSING_BITS_24_31 | |
| 594 | 594 | { |
| 595 | 595 | r |= readinputport(3) << 24; |
| 596 | 596 | } |
| r2241 | r2242 | |
| 602 | 602 | { |
| 603 | 603 | if( offset == 0 ) |
| 604 | 604 | { |
| 605 | if ( | |
| 605 | if (ACCESSING_BITS_24_31 | |
| 606 | 606 | { |
| 607 | 607 | led_reg0 = (data >> 24) & 0xff; |
| 608 | 608 | } |
| 609 | if ( | |
| 609 | if (ACCESSING_BITS_16_23 | |
| 610 | 610 | { |
| 611 | 611 | led_reg1 = (data >> 16) & 0xff; |
| 612 | 612 | } |
| r2241 | r2242 | |
| 614 | 614 | } |
| 615 | 615 | if( offset == 1 ) |
| 616 | 616 | { |
| 617 | if ( | |
| 617 | if (ACCESSING_BITS_24_31 | |
| 618 | 618 | { |
| 619 | 619 | int cs = (data >> 27) & 0x1; |
| 620 | 620 | int conv = (data >> 26) & 0x1; |
| r2241 | r2242 | |
| 626 | 626 | adc1213x_di_w(0, di); |
| 627 | 627 | adc1213x_sclk_w(0, sclk); |
| 628 | 628 | } |
| 629 | if ( | |
| 629 | if (ACCESSING_BITS_ | |
| 630 | 630 | { |
| 631 | 631 | if (data & 0x80) // CG Board 1 IRQ Ack |
| 632 | 632 | { |
| 633 | //cpunum_set_input_line( | |
| 633 | //cpunum_set_input_line(machine, 0, INPUT_LINE_IRQ1, CLEAR_LINE); | |
| 634 | 634 | } |
| 635 | 635 | if (data & 0x40) // CG Board 0 IRQ Ack |
| 636 | 636 | { |
| 637 | //cpunum_set_input_line( | |
| 637 | //cpunum_set_input_line(machine, 0, INPUT_LINE_IRQ0, CLEAR_LINE); | |
| 638 | 638 | } |
| 639 | 639 | } |
| 640 | 640 | return; |
| r2241 | r2242 | |
| 679 | 679 | |
| 680 | 680 | if (offset == 0) |
| 681 | 681 | { |
| 682 | if ( | |
| 682 | if (ACCESSING_BITS_ | |
| 683 | 683 | { |
| 684 | 684 | r |= lanc2_ram[lanc2_ram_r & 0x7fff]; |
| 685 | 685 | lanc2_ram_r++; |
| r2241 | r2242 | |
| 692 | 692 | |
| 693 | 693 | if (offset == 4) |
| 694 | 694 | { |
| 695 | if ( | |
| 695 | if (ACCESSING_BITS_24_31 | |
| 696 | 696 | { |
| 697 | 697 | r |= 0x00000000; |
| 698 | 698 | } |
| r2241 | r2242 | |
| 707 | 707 | { |
| 708 | 708 | if (offset == 0) |
| 709 | 709 | { |
| 710 | if ( | |
| 710 | if (ACCESSING_BITS_24_31 | |
| 711 | 711 | { |
| 712 | 712 | UINT8 value = data >> 24; |
| 713 | 713 | |
| r2241 | r2242 | |
| 724 | 724 | |
| 725 | 725 | //printf("lanc2_fpga_w: %02X at %08X\n", value, activecpu_get_pc()); |
| 726 | 726 | } |
| 727 | else if ( | |
| 727 | else if (ACCESSING_BITS_ | |
| 728 | 728 | { |
| 729 | 729 | lanc2_ram[lanc2_ram_w & 0x7fff] = data & 0xff; |
| 730 | 730 | lanc2_ram_w++; |
| r2241 | r2242 | |
| 736 | 736 | } |
| 737 | 737 | if (offset == 4) |
| 738 | 738 | { |
| 739 | if (mame_stricmp( | |
| 739 | if (mame_stricmp(machine->gamedrv->name, "thrilld") == 0) | |
| 740 | 740 | { |
| 741 | 741 | work_ram[(0x3ffed0/4) + 0] = 0x472a3731; |
| 742 | 742 | work_ram[(0x3ffed0/4) + 1] = 0x33202020; |
| r2241 | r2242 | |
|---|---|---|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | |
| 70 | ||
| 71 | static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 72 | AM_RANGE(0x0000, 0x9fff) AM_READ(SMH_ROM) | |
| 70 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 71 | AM_RANGE(0x0000, 0x9fff) AM_ROM | |
| 73 | 72 | AM_RANGE(0xc000, 0xc000) AM_READ(input_port_0_r) |
| 74 | 73 | AM_RANGE(0xc001, 0xc001) AM_READ(input_port_1_r) |
| 75 | 74 | AM_RANGE(0xc002, 0xc002) AM_READ(input_port_2_r) |
| 76 | 75 | AM_RANGE(0xc003, 0xc003) AM_READ(input_port_3_r) |
| 77 | 76 | AM_RANGE(0xc004, 0xc004) AM_READ(input_port_4_r) |
| 78 | AM_RANGE(0xd000, 0xefff) AM_READ(SMH_RAM) | |
| 79 | ADDRESS_MAP_END | |
| 80 | ||
| 81 | static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 82 | AM_RANGE(0x0000, 0x9fff) AM_WRITE(SMH_ROM) | |
| 83 | 77 | AM_RANGE(0xc800, 0xc800) AM_WRITE(soundlatch_w) |
| 84 | AM_RANGE(0xc802, 0xc803) AM_ | |
| 78 | AM_RANGE(0xc802, 0xc803) AM_ | |
| 85 | 79 | AM_RANGE(0xc804, 0xc804) AM_WRITE(vulgus_c804_w) |
| 86 | 80 | AM_RANGE(0xc805, 0xc805) AM_WRITE(vulgus_palette_bank_w) |
| 87 | AM_RANGE(0xc902, 0xc903) AM_WRITE(SMH_RAM) AM_BASE(&vulgus_scroll_high) | |
| 88 | AM_RANGE(0xcc00, 0xcc7f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 89 | AM_RANGE(0xd000, 0xd7ff) AM_WRITE(vulgus_fgvideoram_w) AM_BASE(&vulgus_fgvideoram) | |
| 90 | AM_RANGE(0xd800, 0xdfff) AM_WRITE(vulgus_bgvideoram_w) AM_BASE(&vulgus_bgvideoram) | |
| 91 | AM_RANGE(0xe000, 0xefff) AM_WRITE(SMH_RAM) | |
| 81 | AM_RANGE(0xc902, 0xc903) AM_RAM AM_BASE(&vulgus_scroll_high) | |
| 82 | AM_RANGE(0xcc00, 0xcc7f) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) | |
| 83 | AM_RANGE(0xd000, 0xd7ff) AM_RAM AM_WRITE(vulgus_fgvideoram_w) AM_BASE(&vulgus_fgvideoram) | |
| 84 | AM_RANGE(0xd800, 0xdfff) AM_RAM AM_WRITE(vulgus_bgvideoram_w) AM_BASE(&vulgus_bgvideoram) | |
| 85 | AM_RANGE(0xe000, 0xefff) AM_RAM | |
| 92 | 86 | ADDRESS_MAP_END |
| 93 | 87 | |
| 94 | ||
| 95 | static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 96 | AM_RANGE(0x0000, 0x1fff) AM_READ(SMH_ROM) | |
| 97 | AM_RANGE(0x4000, 0x47ff) AM_READ(SMH_RAM) | |
| 98 | AM_RANGE(0x6000, 0x6000) AM_READ(soundlatch_r) | |
| 99 | ADDRESS_MAP_END | |
| 100 | ||
| 101 | static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 102 | AM_RANGE(0x0000, 0x1fff) AM_WRITE(SMH_ROM) | |
| 88 | static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 89 | AM_RANGE(0x0000, 0x1fff) AM_ROM | |
| 90 | AM_RANGE(0x4000, 0x47ff) AM_RAM | |
| 103 | 91 | AM_RANGE(0x4000, 0x47ff) AM_WRITE(SMH_RAM) |
| 92 | AM_RANGE(0x6000, 0x6000) AM_READ(soundlatch_r) | |
| 104 | 93 | AM_RANGE(0x8000, 0x8000) AM_WRITE(AY8910_control_port_0_w) |
| 105 | 94 | AM_RANGE(0x8001, 0x8001) AM_WRITE(AY8910_write_port_0_w) |
| 106 | 95 | AM_RANGE(0xc000, 0xc000) AM_WRITE(AY8910_control_port_1_w) |
| r2241 | r2242 | |
| 108 | 97 | ADDRESS_MAP_END |
| 109 | 98 | |
| 110 | 99 | |
| 111 | ||
| 112 | 100 | static INPUT_PORTS_START( vulgus ) |
| 113 | 101 | PORT_START /* IN0 */ |
| 114 | 102 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) |
| r2241 | r2242 | |
| 247 | 235 | |
| 248 | 236 | /* basic machine hardware */ |
| 249 | 237 | MDRV_CPU_ADD(Z80, 4000000) /* 4 MHz (?) */ |
| 250 | MDRV_CPU_PROGRAM_MAP( | |
| 238 | MDRV_CPU_PROGRAM_MAP( | |
| 251 | 239 | MDRV_CPU_VBLANK_INT_HACK(vulgus_interrupt,2) |
| 252 | 240 | |
| 253 | 241 | MDRV_CPU_ADD(Z80, 3000000) |
| 254 | 242 | /* audio CPU */ /* 3 MHz ??? */ |
| 255 | MDRV_CPU_PROGRAM_MAP(sound_ | |
| 243 | MDRV_CPU_PROGRAM_MAP(sound_ | |
| 256 | 244 | MDRV_CPU_VBLANK_INT_HACK(irq0_line_hold,8) |
| 257 | 245 | |
| 258 | 246 | /* video hardware */ |
| r2241 | r2242 | |
|---|---|---|
| 25 | 25 | |
| 26 | 26 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 27 | 27 | AM_RANGE(0x0000, 0x17ff) AM_ROM |
| 28 | AM_RANGE(0x1800, 0x1bff) AM_R | |
| 28 | AM_RANGE(0x1800, 0x1bff) AM_R | |
| 29 | 29 | AM_RANGE(0x1c00, 0x1cff) AM_RAM |
| 30 | 30 | AM_RANGE(0x1d00, 0x1dff) AM_RAM |
| 31 | 31 | AM_RANGE(0x1e80, 0x1e80) AM_READWRITE(tinvader_port_0_r, tinvader_sound_w) |
| r2241 | r2242 | |
|---|---|---|
| 77 | 77 | |
| 78 | 78 | static WRITE16_HANDLER( shangha3_coinctrl_w ) |
| 79 | 79 | { |
| 80 | if (ACCESSING_ | |
| 80 | if (ACCESSING_ | |
| 81 | 81 | { |
| 82 | 82 | coin_lockout_w(0,~data & 0x0400); |
| 83 | 83 | coin_lockout_w(1,~data & 0x0400); |
| r2241 | r2242 | |
| 88 | 88 | |
| 89 | 89 | static WRITE16_HANDLER( heberpop_coinctrl_w ) |
| 90 | 90 | { |
| 91 | if (ACCESSING_ | |
| 91 | if (ACCESSING_ | |
| 92 | 92 | { |
| 93 | 93 | /* the sound ROM bank is selected by the main CPU! */ |
| 94 | 94 | OKIM6295_set_bank_base(0,(data & 0x08) ? 0x40000 : 0x00000); |
| r2241 | r2242 | |
| 103 | 103 | |
| 104 | 104 | static WRITE16_HANDLER( heberpop_sound_command_w ) |
| 105 | 105 | { |
| 106 | if (ACCESSING_ | |
| 106 | if (ACCESSING_ | |
| 107 | 107 | { |
| 108 | 108 | soundlatch_w(machine,0,data & 0xff); |
| 109 | 109 | cpunum_set_input_line_and_vector(machine, 1,0,HOLD_LINE,0xff); /* RST 38h */ |
| r2241 | r2242 | |
|---|---|---|
| 91 | 91 | |
| 92 | 92 | static WRITE16_HANDLER( sound_command_w ) |
| 93 | 93 | { |
| 94 | if (ACCESSING_ | |
| 94 | if (ACCESSING_ | |
| 95 | 95 | { |
| 96 | 96 | pending_command = 1; |
| 97 | 97 | soundlatch_w(machine,offset,data & 0xff); |
| r2241 | r2242 | |
|---|---|---|
| 120 | 120 | |
| 121 | 121 | static WRITE16_HANDLER( audio_control_w ) |
| 122 | 122 | { |
| 123 | if (ACCESSING_ | |
| 123 | if (ACCESSING_ | |
| 124 | 124 | { |
| 125 | 125 | ym2413_volume = (data >> 1) & 15; |
| 126 | 126 | atarigen_set_ym2413_vol(machine, (ym2413_volume * overall_volume * 100) / (127 * 15)); |
| 127 | 127 | adpcm_bank_base = (0x040000 * ((data >> 6) & 3)) | (adpcm_bank_base & 0x100000); |
| 128 | 128 | } |
| 129 | if (ACCESSING_ | |
| 129 | if (ACCESSING_ | |
| 130 | 130 | adpcm_bank_base = (0x100000 * ((data >> 8) & 1)) | (adpcm_bank_base & 0x0c0000); |
| 131 | 131 | |
| 132 | 132 | OKIM6295_set_bank_base(0, adpcm_bank_base); |
| r2241 | r2242 | |
| 135 | 135 | |
| 136 | 136 | static WRITE16_HANDLER( audio_volume_w ) |
| 137 | 137 | { |
| 138 | if (ACCESSING_ | |
| 138 | if (ACCESSING_ | |
| 139 | 139 | { |
| 140 | 140 | overall_volume = data & 127; |
| 141 | 141 | atarigen_set_ym2413_vol(machine, (ym2413_volume * overall_volume * 100) / (127 * 15)); |
| r2241 | r2242 | |
| 159 | 159 | |
| 160 | 160 | static WRITE16_HANDLER( adpcm_w ) |
| 161 | 161 | { |
| 162 | if (ACCESSING_ | |
| 162 | if (ACCESSING_ | |
| 163 | 163 | OKIM6295_data_0_w(machine, offset, data & 0xff); |
| 164 | 164 | } |
| 165 | 165 | |
| r2241 | r2242 | |
| 173 | 173 | |
| 174 | 174 | static WRITE16_HANDLER( ym2413_w ) |
| 175 | 175 | { |
| 176 | if (ACCESSING_ | |
| 176 | if (ACCESSING_ | |
| 177 | 177 | { |
| 178 | 178 | if (offset & 1) |
| 179 | 179 | YM2413_data_port_0_w(machine, 0, data & 0xff); |
| r2241 | r2242 | |
|---|---|---|
| 89 | 89 | watchdog_reset(machine); |
| 90 | 90 | return; |
| 91 | 91 | case 0x01: /* Coin counters & lockouts */ |
| 92 | if (ACCESSING_ | |
| 92 | if (ACCESSING_ | |
| 93 | 93 | coin_lockout_w(0,~data & 0x01000000); |
| 94 | 94 | coin_lockout_w(1,~data & 0x02000000); |
| 95 | 95 | coin_counter_w(0, data & 0x04000000); |
| r2241 | r2242 | |
| 98 | 98 | } |
| 99 | 99 | return; |
| 100 | 100 | case 0x04: /* Eeprom */ |
| 101 | if (ACCESSING_ | |
| 101 | if (ACCESSING_ | |
| 102 | 102 | EEPROM_set_clock_line((data & 0x08) ? ASSERT_LINE : CLEAR_LINE); |
| 103 | 103 | EEPROM_write_bit(data & 0x04); |
| 104 | 104 | EEPROM_set_cs_line((data & 0x10) ? CLEAR_LINE : ASSERT_LINE); |
| 105 | 105 | } |
| 106 | 106 | return; |
| 107 | 107 | case 0x05: /* Player 3 & 4 coin counters */ |
| 108 | if (ACCESSING_ | |
| 108 | if (ACCESSING_ | |
| 109 | 109 | coin_lockout_w(2,~data & 0x01000000); |
| 110 | 110 | coin_lockout_w(3,~data & 0x02000000); |
| 111 | 111 | coin_counter_w(2, data & 0x04000000); |
| r2241 | r2242 | |
| 134 | 134 | UINT32 idx; |
| 135 | 135 | |
| 136 | 136 | idx = (offset << 1) & 0x1e; |
| 137 | if (ACCESSING_ | |
| 137 | if (ACCESSING_BITS_0_15) | |
| 138 | 138 | idx += 1; |
| 139 | 139 | |
| 140 | 140 | if (idx >= 8) |
| r0 | r2242 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | JPM Give us a Break hardware | |
| 4 | ||
| 5 | preliminary driver by Phil Bennett | |
| 6 | ||
| 7 | Games supported: | |
| 8 | * Give us a Break [2 sets] | |
| 9 | * Ten Up [2 sets] | |
| 10 | ||
| 11 | Looking for: | |
| 12 | * Numbers Game | |
| 13 | * Pac Quiz | |
| 14 | * Suit Pursuit | |
| 15 | * Treasure Trail? | |
| 16 | ||
| 17 | Known bugs: | |
| 18 | * Neither game registers coins. Protection maybe? | |
| 19 | ||
| 20 | ***************************************************************************/ | |
| 21 | ||
| 22 | #include "driver.h" | |
| 23 | #include "machine/6840ptm.h" | |
| 24 | #include "video/tms34061.h" | |
| 25 | #include "sound/sn76496.h" | |
| 26 | #include "deprecat.h" | |
| 27 | ||
| 28 | ||
| 29 | /************************************* | |
| 30 | * | |
| 31 | * Defines | |
| 32 | * | |
| 33 | *************************************/ | |
| 34 | ||
| 35 | #define LOG_FDC_COMMANDS 0 | |
| 36 | ||
| 37 | #if LOG_FDC_COMMANDS | |
| 38 | #define FDC_LOG(x) mame_printf_debug x | |
| 39 | #else | |
| 40 | #define FDC_LOG(x) | |
| 41 | #endif | |
| 42 | ||
| 43 | ||
| 44 | enum | |
| 45 | { | |
| 46 | INT_UNKNOWN1 = 1, | |
| 47 | INT_UNKNOWN2 = 2, | |
| 48 | INT_6840PTM = 3, | |
| 49 | INT_6850ACIA = 4, | |
| 50 | INT_TMS34061 = 5, | |
| 51 | INT_FLOPPYCTRL = 6, | |
| 52 | INT_WATCHDOG_INT = 7, | |
| 53 | } int_levels; | |
| 54 | ||
| 55 | ||
| 56 | /************************************* | |
| 57 | * | |
| 58 | * 6840 PTM | |
| 59 | * | |
| 60 | *************************************/ | |
| 61 | ||
| 62 | static void ptm_irq(int state) | |
| 63 | { | |
| 64 | cpunum_set_input_line(Machine, 0, INT_6840PTM, state); | |
| 65 | } | |
| 66 | ||
| 67 | static const ptm6840_interface ptm_intf = | |
| 68 | { | |
| 69 | 1000000, | |
| 70 | { 0, 0, 0 }, | |
| 71 | { 0, 0, 0 }, | |
| 72 | ptm_irq | |
| 73 | }; | |
| 74 | ||
| 75 | ||
| 76 | /************************************* | |
| 77 | * | |
| 78 | * Video hardware | |
| 79 | * | |
| 80 | *************************************/ | |
| 81 | ||
| 82 | /***************** | |
| 83 | * TMS34061 CRTC | |
| 84 | *****************/ | |
| 85 | ||
| 86 | static void tms_interrupt(running_machine *machine, int state) | |
| 87 | { | |
| 88 | cpunum_set_input_line(machine, 0, INT_TMS34061, state); | |
| 89 | } | |
| 90 | ||
| 91 | static const struct tms34061_interface tms34061intf = | |
| 92 | { | |
| 93 | "main", /* The screen we are acting on */ | |
| 94 | 8, /* VRAM address is (row << rowshift) | col */ | |
| 95 | 0x40000, /* Size of video RAM */ | |
| 96 | tms_interrupt /* Interrupt gen callback */ | |
| 97 | }; | |
| 98 | ||
| 99 | ||
| 100 | static WRITE16_HANDLER( guab_tms34061_w ) | |
| 101 | { | |
| 102 | int func = (offset >> 19) & 3; | |
| 103 | int row = (offset >> 7) & 0xff; | |
| 104 | int col; | |
| 105 | ||
| 106 | if (func == 0 || func == 2) | |
| 107 | col = offset & 0xff; | |
| 108 | else | |
| 109 | col = offset <<= 1; | |
| 110 | ||
| 111 | if (ACCESSING_BITS_8_15) | |
| 112 | tms34061_w(col, row, func, data >> 8); | |
| 113 | ||
| 114 | if (ACCESSING_BITS_0_7) | |
| 115 | tms34061_w(col | 1, row, func, data & 0xff); | |
| 116 | } | |
| 117 | ||
| 118 | ||
| 119 | static READ16_HANDLER( guab_tms34061_r ) | |
| 120 | { | |
| 121 | UINT16 data = 0; | |
| 122 | int func = (offset >> 19) & 3; | |
| 123 | int row = (offset >> 7) & 0xff; | |
| 124 | int col; | |
| 125 | ||
| 126 | if (func == 0 || func == 2) | |
| 127 | col = offset & 0xff; | |
| 128 | else | |
| 129 | col = offset <<= 1; | |
| 130 | ||
| 131 | if (ACCESSING_BITS_8_15) | |
| 132 | data |= tms34061_r(col, row, func) << 8; | |
| 133 | ||
| 134 | if (ACCESSING_BITS_0_7) | |
| 135 | data |= tms34061_r(col | 1, row, func); | |
| 136 | ||
| 137 | return data; | |
| 138 | } | |
| 139 | ||
| 140 | ||
| 141 | /**************************** | |
| 142 | * EF9369 color palette IC | |
| 143 | * (16 colors from 4096) | |
| 144 | ****************************/ | |
| 145 | ||
| 146 | static struct ef9369 | |
| 147 | { | |
| 148 | UINT32 addr; | |
| 149 | UINT16 clut[16]; /* 13-bits - a marking bit and a 444 color */ | |
| 150 | } pal; | |
| 151 | ||
| 152 | ||
| 153 | /* Non-multiplexed mode */ | |
| 154 | static WRITE16_HANDLER( ef9369_w ) | |
| 155 | { | |
| 156 | data &= 0x00ff; | |
| 157 | ||
| 158 | /* Address register */ | |
| 159 | if (offset & 1) | |
| 160 | { | |
| 161 | pal.addr = data & 0x1f; | |
| 162 | } | |
| 163 | /* Data register */ | |
| 164 | else | |
| 165 | { | |
| 166 | UINT32 entry = pal.addr >> 1; | |
| 167 | ||
| 168 | if ((pal.addr & 1) == 0) | |
| 169 | { | |
| 170 | pal.clut[entry] &= ~0x00ff; | |
| 171 | pal.clut[entry] |= data; | |
| 172 | } | |
| 173 | else | |
| 174 | { | |
| 175 | UINT16 col; | |
| 176 | ||
| 177 | pal.clut[entry] &= ~0x1f00; | |
| 178 | pal.clut[entry] |= (data & 0x1f) << 8; | |
| 179 | ||
| 180 | /* Remove the marking bit */ | |
| 181 | col = pal.clut[entry] & 0xfff; | |
| 182 | ||
| 183 | /* Update the MAME palette */ | |
| 184 | palette_set_color_rgb(Machine, entry, pal4bit(col >> 0), pal4bit(col >> 4), pal4bit(col >> 8)); | |
| 185 | } | |
| 186 | ||
| 187 | /* Address register auto-increment */ | |
| 188 | if (++pal.addr == 32) | |
| 189 | pal.addr = 0; | |
| 190 | } | |
| 191 | } | |
| 192 | ||
| 193 | static READ16_HANDLER( ef9369_r ) | |
| 194 | { | |
| 195 | if ((offset & 1) == 0) | |
| 196 | { | |
| 197 | UINT16 col = pal.clut[pal.addr >> 1]; | |
| 198 | ||
| 199 | if ((pal.addr & 1) == 0) | |
| 200 | return col & 0xff; | |
| 201 | else | |
| 202 | return col >> 8; | |
| 203 | } | |
| 204 | else | |
| 205 | { | |
| 206 | /* Address register is write only */ | |
| 207 | return 0xffff; | |
| 208 | } | |
| 209 | } | |
| 210 | ||
| 211 | ||
| 212 | static VIDEO_START( guab ) | |
| 213 | { | |
| 214 | tms34061_start(machine, &tms34061intf); | |
| 215 | } | |
| 216 | ||
| 217 | ||
| 218 | static VIDEO_UPDATE( guab ) | |
| 219 | { | |
| 220 | int x, y; | |
| 221 | struct tms34061_display state; | |
| 222 | ||
| 223 | tms34061_get_display_state(&state); | |
| 224 | ||
| 225 | /* If blanked, fill with black */ | |
| 226 | if (state.blanked) | |
| 227 | { | |
| 228 | fillbitmap(bitmap, get_black_pen(screen->machine), cliprect); | |
| 229 | return 0; | |
| 230 | } | |
| 231 | ||
| 232 | for (y = cliprect->min_y; y <= cliprect->max_y; ++y) | |
| 233 | { | |
| 234 | UINT8 *src = &state.vram[256 * y]; | |
| 235 | UINT16 *dest = BITMAP_ADDR16(bitmap, y, 0); | |
| 236 | ||
| 237 | for (x = cliprect->min_x; x <= cliprect->max_x; x += 2) | |
| 238 | { | |
| 239 | UINT8 pen = src[x >> 1]; | |
| 240 | ||
| 241 | /* Draw two 4-bit pixels */ | |
| 242 | *dest++ = Machine->pens[pen >> 4]; | |
| 243 | *dest++ = Machine->pens[pen & 0x0f]; | |
| 244 | } | |
| 245 | } | |
| 246 | ||
| 247 | return 0; | |
| 248 | } | |
| 249 | ||
| 250 | ||
| 251 | /************************************* | |
| 252 | * | |
| 253 | * WD1770 floppy disk controller | |
| 254 | * (just enough to get by...) | |
| 255 | * | |
| 256 | *************************************/ | |
| 257 | ||
| 258 | struct wd1770 | |
| 259 | { | |
| 260 | UINT32 status; | |
| 261 | UINT8 cmd; | |
| 262 | UINT8 data; | |
| 263 | ||
| 264 | UINT32 side; | |
| 265 | INT32 track; | |
| 266 | INT32 sector; | |
| 267 | UINT32 sptr; | |
| 268 | } fdc; | |
| 269 | ||
| 270 | static emu_timer *fdc_timer; | |
| 271 | ||
| 272 | #define USEC_DELAY 40 | |
| 273 | #define DISK_SIDES 2 | |
| 274 | #define DISK_TRACKS 80 | |
| 275 | #define DISK_SECTORS 18 | |
| 276 | ||
| 277 | #define DISK_SECTOR_SIZE 256 | |
| 278 | #define DISK_TRACK_SIZE (DISK_SECTOR_SIZE * DISK_SECTORS) | |
| 279 | #define DISK_SIDE_SIZE (DISK_TRACK_SIZE * DISK_TRACKS) | |
| 280 | ||
| 281 | enum | |
| 282 | { | |
| 283 | BUSY = 1 << 0, | |
| 284 | DATA_REQUEST = 1 << 1, | |
| 285 | INDEX = 1 << 1, | |
| 286 | LOST_DATA = 1 << 2, | |
| 287 | TRACK_00 = 1 << 2, | |
| 288 | CRC_ERROR = 1 << 3, | |
| 289 | RECORD_NOT_FOUND = 1 << 4, | |
| 290 | RECORD_TYPE = 1 << 5, | |
| 291 | SPIN_UP = 1 << 5, | |
| 292 | WRITE_PROTECT = 1 << 6, | |
| 293 | MOTOR_ON = 1 << 7 | |
| 294 | } wd1770_status; | |
| 295 | ||
| 296 | ||
| 297 | static TIMER_CALLBACK( fdc_data_callback ) | |
| 298 | { | |
| 299 | UINT8* disk = (UINT8*)memory_region(REGION_USER1); | |
| 300 | int more_data = 0; | |
| 301 | ||
| 302 | /* | |
| 303 | Disk dumps are organised as: | |
| 304 | ||
| 305 | Side 0, Track 0: Sectors 0 - 17 | |
| 306 | Side 1, Track 0: Sectors 0 - 17 | |
| 307 | Side 0, Track 1: Sectors 0 - 17 | |
| 308 | Side 1, Track 1: Sectors 0 - 17 | |
| 309 | etc. | |
| 310 | */ | |
| 311 | ||
| 312 | int idx = 2 * fdc.track * (DISK_TRACK_SIZE) + (fdc.side ? DISK_TRACK_SIZE : 0)+ | |
| 313 | fdc.sector * (DISK_SECTOR_SIZE) + | |
| 314 | fdc.sptr; | |
| 315 | ||
| 316 | /* Write or read? */ | |
| 317 | if (fdc.cmd & 0x20) | |
| 318 | disk[idx] = fdc.data; | |
| 319 | else | |
| 320 | fdc.data = disk[idx]; | |
| 321 | ||
| 322 | fdc.sptr++; | |
| 323 | ||
| 324 | if (fdc.sptr < DISK_SECTOR_SIZE) | |
| 325 | { | |
| 326 | more_data = 1; | |
| 327 | } | |
| 328 | else | |
| 329 | { | |
| 330 | fdc.sptr = 0; | |
| 331 | ||
| 332 | /* Multi-sector read */ | |
| 333 | if (fdc.cmd & 0x10) | |
| 334 | { | |
| 335 | ++fdc.sector; | |
| 336 | ||
| 337 | /* Keep going */ | |
| 338 | if (fdc.sector < DISK_SECTORS) | |
| 339 | more_data = 1; | |
| 340 | } | |
| 341 | } | |
| 342 | ||
| 343 | if (more_data) | |
| 344 | { | |
| 345 | timer_adjust_oneshot(fdc_timer, ATTOTIME_IN_USEC(USEC_DELAY), 0); | |
| 346 | } | |
| 347 | else | |
| 348 | { | |
| 349 | /* Hack!*/ | |
| 350 | fdc.cmd = 0; | |
| 351 | fdc.status &= ~BUSY; | |
| 352 | } | |
| 353 | ||
| 354 | fdc.status |= DATA_REQUEST; | |
| 355 | cpunum_set_input_line(machine, 0, INT_FLOPPYCTRL, ASSERT_LINE); | |
| 356 | } | |
| 357 | ||
| 358 | ||
| 359 | static WRITE16_HANDLER( wd1770_w ) | |
| 360 | { | |
| 361 | data &= 0xff; | |
| 362 | ||
| 363 | switch (offset) | |
| 364 | { | |
| 365 | case 0: | |
| 366 | { | |
| 367 | UINT8 cmd = (data >> 4) & 0xf; | |
| 368 | ||
| 369 | FDC_LOG(("Command: %x:: ", data)); | |
| 370 | ||
| 371 | switch (cmd) | |
| 372 | { | |
| 373 | /**** Type I ****/ | |
| 374 | case 0: | |
| 375 | { | |
| 376 | FDC_LOG(("Restore\n")); | |
| 377 | fdc.track = 0; | |
| 378 | break; | |
| 379 | } | |
| 380 | ||
| 381 | case 1: | |
| 382 | { | |
| 383 | FDC_LOG(("Seek to track %d\n", fdc.data)); | |
| 384 | fdc.track = fdc.data; | |
| 385 | break; | |
| 386 | } | |
| 387 | ||
| 388 | /* Step */ | |
| 389 | case 2: | |
| 390 | case 3: | |
| 391 | { | |
| 392 | FDC_LOG(("Step (not implemented)\n")); | |
| 393 | break; | |
| 394 | } | |
| 395 | ||
| 396 | case 4: case 5: | |
| 397 | { | |
| 398 | if (++fdc.track >= DISK_TRACKS) | |
| 399 | fdc.track = DISK_TRACKS - 1; | |
| 400 | ||
| 401 | FDC_LOG(("Step-in to track %d\n", fdc.track)); | |
| 402 | break; | |
| 403 | } | |
| 404 | ||
| 405 | case 6: case 7: | |
| 406 | { | |
| 407 | if (--fdc.track > 0) | |
| 408 | fdc.track = 0; | |
| 409 | ||
| 410 | FDC_LOG(("Step-out to track %d\n", fdc.track)); | |
| 411 | break; | |
| 412 | } | |
| 413 | ||
| 414 | ||
| 415 | /**** Type II ****/ | |
| 416 | case 8: | |
| 417 | case 9: | |
| 418 | { | |
| 419 | fdc.cmd = data; | |
| 420 | fdc.status |= BUSY; | |
| 421 | ||
| 422 | if (data & 0x10) | |
| 423 | FDC_LOG(("Multi ")); | |
| 424 | ||
| 425 | FDC_LOG(("Sector read: H%d T%d S%d\n", fdc.side, | |
| 426 | fdc.track, | |
| 427 | fdc.sector)); | |
| 428 | ||
| 429 | /* Set the data read timer */ | |
| 430 | timer_adjust_oneshot(fdc_timer, ATTOTIME_IN_USEC(USEC_DELAY), 0); | |
| 431 | ||
| 432 | break; | |
| 433 | } | |
| 434 | ||
| 435 | case 10: | |
| 436 | case 11: | |
| 437 | { | |
| 438 | fdc.cmd = data; | |
| 439 | fdc.status |= BUSY; | |
| 440 | ||
| 441 | if (data & 0x10) | |
| 442 | FDC_LOG(("Multi ")); | |
| 443 | ||
| 444 | FDC_LOG(("Sector write: H%d T%d S%d\n", fdc.side, | |
| 445 | fdc.track, | |
| 446 | fdc.sector)); | |
| 447 | ||
| 448 | /* Trigger a DRQ interrupt on the CPU */ | |
| 449 | cpunum_set_input_line(machine, 0, INT_FLOPPYCTRL, ASSERT_LINE); | |
| 450 | fdc.status |= DATA_REQUEST; | |
| 451 | break; | |
| 452 | } | |
| 453 | ||
| 454 | /**** Type III ****/ | |
| 455 | case 12: /* Read address */ | |
| 456 | case 14: /* Read track */ | |
| 457 | case 15: /* Write track */ | |
| 458 | { | |
| 459 | FDC_LOG(("Unsupported TYPE III operation\n")); | |
| 460 | break; | |
| 461 | } | |
| 462 | ||
| 463 | /**** Type IV ****/ | |
| 464 | case 13: | |
| 465 | { | |
| 466 | /* Stop any operation in progress */ | |
| 467 | timer_reset(fdc_timer, attotime_never); | |
| 468 | fdc.status &= ~BUSY; | |
| 469 | FDC_LOG(("Force Interrupt\n")); | |
| 470 | break; | |
| 471 | } | |
| 472 | } | |
| 473 | ||
| 474 | break; | |
| 475 | } | |
| 476 | case 1: | |
| 477 | { | |
| 478 | FDC_LOG(("Set track: %d\n", data)); | |
| 479 | fdc.track = data; | |
| 480 | break; | |
| 481 | } | |
| 482 | case 2: | |
| 483 | { | |
| 484 | FDC_LOG(("Set sector: %d\n", data)); | |
| 485 | fdc.sector = data; | |
| 486 | fdc.sptr = 0; | |
| 487 | break; | |
| 488 | } | |
| 489 | case 3: | |
| 490 | { | |
| 491 | fdc.data = data; | |
| 492 | ||
| 493 | /* Clear the DRQ */ | |
| 494 | cpunum_set_input_line(machine, 0, INT_FLOPPYCTRL, CLEAR_LINE); | |
| 495 | ||
| 496 | /* Queue an event to write the data if write command was specified */ | |
| 497 | if (fdc.cmd & 0x20) | |
| 498 | timer_adjust_oneshot(fdc_timer, ATTOTIME_IN_USEC(USEC_DELAY), 0); | |
| 499 | ||
| 500 | break; | |
| 501 | } | |
| 502 | } | |
| 503 | } | |
| 504 | ||
| 505 | static READ16_HANDLER( wd1770_r ) | |
| 506 | { | |
| 507 | UINT16 retval = 0; | |
| 508 | ||
| 509 | switch (offset) | |
| 510 | { | |
| 511 | case 0: | |
| 512 | { | |
| 513 | retval = fdc.status; | |
| 514 | break; | |
| 515 | } | |
| 516 | case 1: | |
| 517 | { | |
| 518 | retval = fdc.track; | |
| 519 | break; | |
| 520 | } | |
| 521 | case 2: | |
| 522 | { | |
| 523 | retval = fdc.sector; | |
| 524 | break; | |
| 525 | } | |
| 526 | case 3: | |
| 527 | { | |
| 528 | retval = fdc.data; | |
| 529 | ||
| 530 | /* Clear the DRQ */ | |
| 531 | cpunum_set_input_line(machine, 0, INT_FLOPPYCTRL, CLEAR_LINE); | |
| 532 | fdc.status &= ~DATA_REQUEST; | |
| 533 | break; | |
| 534 | } | |
| 535 | } | |
| 536 | ||
| 537 | return retval; | |
| 538 | } | |
| 539 | ||
| 540 | ||
| 541 | /**************************************** | |
| 542 | * | |
| 543 | * Hardware inputs (coins, buttons etc) | |
| 544 | * | |
| 545 | ****************************************/ | |
| 546 | ||
| 547 | static READ16_HANDLER( io_r ) | |
| 548 | { | |
| 549 | switch (offset) | |
| 550 | { | |
| 551 | case 0x00: | |
| 552 | case 0x01: | |
| 553 | case 0x02: | |
| 554 | { | |
| 555 | return readinputport(offset); | |
| 556 | } | |
| 557 | case 0x30: | |
| 558 | { | |
| 559 | /* Whatever it is, bit 7 must be 0 */ | |
| 560 | return 0x7f; | |
| 561 | } | |
| 562 | default: | |
| 563 | { | |
| 564 | return 0; | |
| 565 | } | |
| 566 | } | |
| 567 | } | |
| 568 | ||
| 569 | ||
| 570 | /**************************************** | |
| 571 | * | |
| 572 | * Hardware outputs (lamps, meters etc) | |
| 573 | * | |
| 574 | ****************************************/ | |
| 575 | ||
| 576 | static WRITE16_HANDLER( io_w ) | |
| 577 | { | |
| 578 | switch (offset) | |
| 579 | { | |
| 580 | case 0x10: | |
| 581 | { | |
| 582 | /* Outputs 0 - 7 */ | |
| 583 | break; | |
| 584 | } | |
| 585 | case 0x11: | |
| 586 | { | |
| 587 | /* Outputs 8 - 15 */ | |
| 588 | break; | |
| 589 | } | |
| 590 | case 0x12: | |
| 591 | { | |
| 592 | /* Outputs 16 - 23 */ | |
| 593 | break; | |
| 594 | } | |
| 595 | case 0x20: | |
| 596 | { | |
| 597 | /* Outputs 24 - 31 */ | |
| 598 | break; | |
| 599 | } | |
| 600 | case 0x21: | |
| 601 | { | |
| 602 | /* Outputs 32 - 39 */ | |
| 603 | break; | |
| 604 | } | |
| 605 | case 0x22: | |
| 606 | { | |
| 607 | /* Outputs 40 - 47 */ | |
| 608 | break; | |
| 609 | } | |
| 610 | case 0x30: | |
| 611 | { | |
| 612 | SN76496_0_w(0, 0, data & 0xff); | |
| 613 | break; | |
| 614 | } | |
| 615 | case 0x31: | |
| 616 | { | |
| 617 | /* Only JPM knows about the other bits... */ | |
| 618 | fdc.side = (data >> 3) & 1; | |
| 619 | break; | |
| 620 | } | |
| 621 | case 0x32: | |
| 622 | { | |
| 623 | /* Watchdog? */ | |
| 624 | break; | |
| 625 | } | |
| 626 | case 0x33: | |
| 627 | { | |
| 628 | /* Dunno */ | |
| 629 | break; | |
| 630 | } | |
| 631 | default: | |
| 632 | { | |
| 633 | mame_printf_debug("Unknown IO W:0x%x with %x\n", 0xc0000 + (offset * 2), data); | |
| 634 | } | |
| 635 | } | |
| 636 | } | |
| 637 | ||
| 638 | ||
| 639 | /************************************* | |
| 640 | * | |
| 641 | * 68000 CPU memory handlers | |
| 642 | * | |
| 643 | *************************************/ | |
| 644 | ||
| 645 | static ADDRESS_MAP_START( guab_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 646 | AM_RANGE(0x000000, 0x00ffff) AM_ROM | |
| 647 | AM_RANGE(0x040000, 0x04ffff) AM_ROM AM_REGION(REGION_CPU1, 0x10000) | |
| 648 | AM_RANGE(0x0c0000, 0x0c007f) AM_READWRITE(io_r, io_w) | |
| 649 | AM_RANGE(0x0c0080, 0x0c0083) AM_NOP /* ACIA 1 */ | |
| 650 | AM_RANGE(0x0c00a0, 0x0c00a3) AM_NOP /* ACIA 2 */ | |
| 651 | AM_RANGE(0x0c00c0, 0x0c00cf) AM_READWRITE(ptm6840_0_lsb_r, ptm6840_0_lsb_w) | |
| 652 | AM_RANGE(0x0c00e0, 0x0c00e7) AM_READWRITE(wd1770_r, wd1770_w) | |
| 653 | AM_RANGE(0x080000, 0x080fff) AM_RAM | |
| 654 | AM_RANGE(0x100000, 0x100003) AM_READWRITE(ef9369_r, ef9369_w) | |
| 655 | AM_RANGE(0x800000, 0xb0ffff) AM_READWRITE(guab_tms34061_r, guab_tms34061_w) | |
| 656 | AM_RANGE(0xb10000, 0xb1ffff) AM_RAM | |
| 657 | AM_RANGE(0xb80000, 0xb8ffff) AM_RAM | |
| 658 | AM_RANGE(0xb90000, 0xb9ffff) AM_RAM | |
| 659 | ADDRESS_MAP_END | |
| 660 | ||
| 661 | ||
| 662 | /************************************* | |
| 663 | * | |
| 664 | * Port definitions | |
| 665 | * | |
| 666 | *************************************/ | |
| 667 | ||
| 668 | static INPUT_PORTS_START( guab ) | |
| 669 | PORT_START | |
| 670 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_NAME("50p") | |
| 671 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_NAME("100p") | |
| 672 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Back door") PORT_CODE(KEYCODE_R) PORT_TOGGLE | |
| 673 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Cash door") PORT_CODE(KEYCODE_T) PORT_TOGGLE | |
| 674 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Key switch") PORT_CODE(KEYCODE_Y) PORT_TOGGLE | |
| 675 | PORT_BIT( 0x20, IP_ACTIVE_HIGH,IPT_UNUSED ) PORT_NAME("50p level") | |
| 676 | PORT_BIT( 0x40, IP_ACTIVE_HIGH,IPT_UNUSED ) PORT_NAME("100p level") | |
| 677 | PORT_BIT( 0x80, IP_ACTIVE_HIGH,IPT_UNUSED ) | |
| 678 | PORT_START | |
| 679 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 680 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 681 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START ) | |
| 682 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 683 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 684 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 685 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("A") | |
| 686 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("B") | |
| 687 | PORT_START | |
| 688 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Select") | |
| 689 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 690 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 691 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 692 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("C") | |
| 693 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("D") | |
| 694 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_NAME("10p") | |
| 695 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_NAME("20p") | |
| 696 | INPUT_PORTS_END | |
| 697 | ||
| 698 | static INPUT_PORTS_START( tenup ) | |
| 699 | PORT_START | |
| 700 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_NAME("50p") | |
| 701 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN4 ) PORT_NAME("100p") | |
| 702 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Back door") PORT_CODE(KEYCODE_R) PORT_TOGGLE | |
| 703 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Cash door") PORT_CODE(KEYCODE_T) PORT_TOGGLE | |
| 704 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Key switch") PORT_CODE(KEYCODE_Y) PORT_TOGGLE | |
| 705 | PORT_BIT( 0x20, IP_ACTIVE_HIGH,IPT_UNUSED ) PORT_NAME("10p level") | |
| 706 | PORT_BIT( 0x40, IP_ACTIVE_HIGH,IPT_UNUSED ) PORT_NAME("100p level") | |
| 707 | PORT_BIT( 0x80, IP_ACTIVE_HIGH,IPT_UNUSED ) | |
| 708 | PORT_START | |
| 709 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 710 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 711 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START ) | |
| 712 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 713 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 714 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 715 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 716 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Pass") | |
| 717 | PORT_START | |
| 718 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Collect") | |
| 719 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 720 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED ) | |
| 721 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("A") | |
| 722 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("B") | |
| 723 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("C") | |
| 724 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_NAME("10p") | |
| 725 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_NAME("20p") | |
| 726 | INPUT_PORTS_END | |
| 727 | ||
| 728 | ||
| 729 | /************************************* | |
| 730 | * | |
| 731 | * Machine driver | |
| 732 | * | |
| 733 | *************************************/ | |
| 734 | ||
| 735 | static MACHINE_START( guab ) | |
| 736 | { | |
| 737 | fdc_timer = timer_alloc(fdc_data_callback, NULL); | |
| 738 | ptm6840_config(0, &ptm_intf); | |
| 739 | } | |
| 740 | ||
| 741 | static MACHINE_RESET( guab ) | |
| 742 | { | |
| 743 | memset(&fdc, 0, sizeof(fdc)); | |
| 744 | } | |
| 745 | ||
| 746 | static MACHINE_DRIVER_START( guab ) | |
| 747 | /* TODO: Verify clock */ | |
| 748 | MDRV_CPU_ADD_TAG("main", M68000, 8000000) | |
| 749 | MDRV_CPU_PROGRAM_MAP(guab_map, 0) | |
| 750 | ||
| 751 | MDRV_MACHINE_START(guab) | |
| 752 | MDRV_MACHINE_RESET(guab) | |
| 753 | ||
| 754 | /* TODO: Use real video timings */ | |
| 755 | MDRV_SCREEN_ADD("main", RASTER) | |
| 756 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 757 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) | |
| 758 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 759 | MDRV_SCREEN_SIZE(64*8, 32*8) | |
| 760 | MDRV_SCREEN_VISIBLE_AREA(0, 64*8-1, 0, 32*8-1) | |
| 761 | ||
| 762 | MDRV_PALETTE_LENGTH(16) | |
| 763 | ||
| 764 | MDRV_VIDEO_START(guab) | |
| 765 | MDRV_VIDEO_UPDATE(guab) | |
| 766 | ||
| 767 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 768 | ||
| 769 | /* TODO: Verify clock */ | |
| 770 | MDRV_SOUND_ADD(SN76489, 2000000) | |
| 771 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) | |
| 772 | MACHINE_DRIVER_END | |
| 773 | ||
| 774 | ||
| 775 | /************************************* | |
| 776 | * | |
| 777 | * ROM definition(s) | |
| 778 | * | |
| 779 | *************************************/ | |
| 780 | ||
| 781 | ROM_START( guab ) | |
| 782 | ROM_REGION( 0x20000, REGION_CPU1, 0 ) | |
| 783 | ROM_LOAD16_BYTE( "guab1a1.rom", 0x00000, 0x8000, CRC(f23a9d7d) SHA1(f933e131bdcf21cfa6001c8e20fd11d94c7a9450) ) | |
| 784 | ROM_LOAD16_BYTE( "guab1b1.rom", 0x00001, 0x8000, CRC(af3b5492) SHA1(6fd7f29e6ed2fadccc9246f1ebd049c3f9aeff13) ) | |
| 785 | ROM_LOAD16_BYTE( "guab2a1.rom", 0x10000, 0x8000, CRC(ae7a162c) SHA1(d69721818b8e4daba776a678b62bc7f44f371a3f) ) | |
| 786 | ROM_LOAD16_BYTE( "guab2b1.rom", 0x10001, 0x8000, CRC(29aa26a0) SHA1(8d425ad845ccfcd8995dbf6adc1ca17989a5d3ea) ) | |
| 787 | ||
| 788 | ROM_REGION( 0xb4000, REGION_USER1, 0 ) | |
| 789 | ROM_LOAD( "guabf6.dsk", 0x00000, 0xb4000, CRC(08804c28) SHA1(608d89d598b7acb133814540dba98cea29c6cad6) ) | |
| 790 | ROM_END | |
| 791 | ||
| 792 | ROM_START( guab3 ) | |
| 793 | ROM_REGION( 0x20000, REGION_CPU1, 0 ) | |
| 794 | ROM_LOAD16_BYTE( "guab1a1.rom", 0x00000, 0x8000, CRC(f23a9d7d) SHA1(f933e131bdcf21cfa6001c8e20fd11d94c7a9450) ) | |
| 795 | ROM_LOAD16_BYTE( "guab1b1.rom", 0x00001, 0x8000, CRC(af3b5492) SHA1(6fd7f29e6ed2fadccc9246f1ebd049c3f9aeff13) ) | |
| 796 | ROM_LOAD16_BYTE( "guab2a1.rom", 0x10000, 0x8000, CRC(ae7a162c) SHA1(d69721818b8e4daba776a678b62bc7f44f371a3f) ) | |
| 797 | ROM_LOAD16_BYTE( "guab2b1.rom", 0x10001, 0x8000, CRC(29aa26a0) SHA1(8d425ad845ccfcd8995dbf6adc1ca17989a5d3ea) ) | |
| 798 | ||
| 799 | ROM_REGION( 0xb4000, REGION_USER1, 0 ) | |
| 800 | ROM_LOAD( "guab3.dsk", 0x00000, 0xb4000, CRC(ecb41e06) SHA1(2900a95046b38312c6035ea394b04b62c1d29f42) ) | |
| 801 | ROM_END | |
| 802 | ||
| 803 | ROM_START( tenup ) | |
| 804 | ROM_REGION( 0x20000, REGION_CPU1, 0 ) | |
| 805 | ROM_LOAD16_BYTE( "tu-11.bin", 0x00000, 0x8000, CRC(01843086) SHA1(106a226900e8cf929f89edf801c627f02e4afce3) ) | |
| 806 | ROM_LOAD16_BYTE( "tu-12.bin", 0x00001, 0x8000, CRC(1c7f32b1) SHA1(2b14e2206695ae53909ae838a5c036248d9ab940) ) | |
| 807 | ROM_LOAD16_BYTE( "tu-13.bin", 0x10000, 0x8000, CRC(d19e2bf7) SHA1(76a9cbd4f604ad39eb0e319a9a6d5a6739b0ed8c) ) | |
| 808 | ROM_LOAD16_BYTE( "tu-14.bin", 0x10001, 0x8000, CRC(fd8a0c3c) SHA1(f87289ce6f0d2bc9b7d3a0b6deff38ba3aadf391) ) | |
| 809 | ||
| 810 | ROM_REGION( 0xb4000, REGION_USER1, 0 ) | |
| 811 | ROM_LOAD( "10up17.dsk", 0x00000, 0xb4000, CRC(7bc328df) SHA1(5f8e40d8ffc370fb19be9e386befa5fcd1f35a75) ) | |
| 812 | ROM_END | |
| 813 | ||
| 814 | ROM_START( tenup3 ) | |
| 815 | ROM_REGION( 0x20000, REGION_CPU1, 0 ) | |
| 816 | ROM_LOAD16_BYTE( "tu-11.bin", 0x00000, 0x8000, CRC(01843086) SHA1(106a226900e8cf929f89edf801c627f02e4afce3) ) | |
| 817 | ROM_LOAD16_BYTE( "tu-12.bin", 0x00001, 0x8000, CRC(1c7f32b1) SHA1(2b14e2206695ae53909ae838a5c036248d9ab940) ) | |
| 818 | ROM_LOAD16_BYTE( "tu-13.bin", 0x10000, 0x8000, CRC(d19e2bf7) SHA1(76a9cbd4f604ad39eb0e319a9a6d5a6739b0ed8c) ) | |
| 819 | ROM_LOAD16_BYTE( "tu-14.bin", 0x10001, 0x8000, CRC(fd8a0c3c) SHA1(f87289ce6f0d2bc9b7d3a0b6deff38ba3aadf391) ) | |
| 820 | ||
| 821 | ROM_REGION( 0xb4000, REGION_USER1, 0 ) | |
| 822 | ROM_LOAD( "10up3.dsk", 0x00000, 0xb4000, CRC(2767f017) SHA1(1c6551b089c3e3df48e0c03bd502b91fd88f0e94) ) | |
| 823 | ROM_END | |
| 824 | ||
| 825 | ||
| 826 | /************************************* | |
| 827 | * | |
| 828 | * Game driver(s) | |
| 829 | * | |
| 830 | *************************************/ | |
| 831 | ||
| 832 | GAME( 1986, guab, 0, guab, guab, 0, ROT0, "JPM", "Give us a Break (6th edition)", GAME_NOT_WORKING ) | |
| 833 | GAME( 1986, guab3, guab, guab, guab, 0, ROT0, "JPM", "Give us a Break (3rd edition)", GAME_NOT_WORKING ) | |
| 834 | ||
| 835 | GAME( 1988, tenup, 0, guab, tenup, 0, ROT0, "JPM", "Ten Up (compendium 17)", GAME_NOT_WORKING ) | |
| 836 | GAME( 1988, tenup3, tenup, guab, tenup, 0, ROT0, "JPM", "Ten Up (compendium 3)", GAME_NOT_WORKING ) |
| r2241 | r2242 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | static WRITE16_HANDLER( bankswitch_w ) |
| 40 | 40 | { |
| 41 | if (ACCESSING_ | |
| 41 | if (ACCESSING_ | |
| 42 | 42 | { |
| 43 | 43 | UINT8 *RAM = memory_region(REGION_CPU1); |
| 44 | 44 | memory_set_bankptr(1,&RAM[0x100000 + ((data&0x7)*0x10000)]); |
| r2241 | r2242 | |
| 84 | 84 | |
| 85 | 85 | static WRITE16_HANDLER( m107_coincounter_w ) |
| 86 | 86 | { |
| 87 | if (ACCESSING_ | |
| 87 | if (ACCESSING_ | |
| 88 | 88 | { |
| 89 | 89 | coin_counter_w(0,data & 0x01); |
| 90 | 90 | coin_counter_w(1,data & 0x02); |
| r2241 | r2242 | |
|---|---|---|
| 3859 | 3859 | |
| 3860 | 3860 | static WRITE16_HANDLER( OKIM6295_data_0_both_w ) |
| 3861 | 3861 | { |
| 3862 | if (ACCESSING_ | |
| 3862 | if (ACCESSING_ | |
| 3863 | 3863 | else OKIM6295_data_0_w(machine, 0, (data >> 8) & 0xff ); |
| 3864 | 3864 | } |
| 3865 | 3865 | static WRITE16_HANDLER( OKIM6295_data_1_both_w ) |
| 3866 | 3866 | { |
| 3867 | if (ACCESSING_ | |
| 3867 | if (ACCESSING_ | |
| 3868 | 3868 | else OKIM6295_data_1_w(machine, 0, (data >> 8) & 0xff ); |
| 3869 | 3869 | } |
| 3870 | 3870 |
| r2241 | r2242 | |
|---|---|---|
| 163 | 163 | |
| 164 | 164 | static WRITE16_HANDLER( sound_command_w ) |
| 165 | 165 | { |
| 166 | if (ACCESSING_ | |
| 166 | if (ACCESSING_ | |
| 167 | 167 | { |
| 168 | 168 | pending_command = 1; |
| 169 | 169 | soundlatch_w(machine,offset,data & 0xff); |
| r2241 | r2242 | |
|---|---|---|
| 142 | 142 | { |
| 143 | 143 | /* toggles bit $0100 very frequently while waiting for things */ |
| 144 | 144 | /* bits $0080-$0010 are probably lamps */ |
| 145 | if (ACCESSING_ | |
| 145 | if (ACCESSING_ | |
| 146 | 146 | { |
| 147 | 147 | EEPROM_set_cs_line(~data & 8); |
| 148 | 148 | EEPROM_write_bit(data & 2); |
| r2241 | r2242 | |
| 154 | 154 | |
| 155 | 155 | static WRITE16_HANDLER( sound_command_w ) |
| 156 | 156 | { |
| 157 | if (ACCESSING_ | |
| 157 | if (ACCESSING_ | |
| 158 | 158 | { |
| 159 | 159 | /* write the latch and set the IRQ */ |
| 160 | 160 | soundlatch_full = 1; |
| r2241 | r2242 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | static WRITE16_HANDLER( sf_coin_w ) |
| 40 | 40 | { |
| 41 | if (ACCESSING_ | |
| 41 | if (ACCESSING_ | |
| 42 | 42 | { |
| 43 | 43 | coin_counter_w(0,data & 0x01); |
| 44 | 44 | coin_counter_w(1,data & 0x02); |
| r2241 | r2242 | |
| 51 | 51 | |
| 52 | 52 | static WRITE16_HANDLER( soundcmd_w ) |
| 53 | 53 | { |
| 54 | if (ACCESSING_ | |
| 54 | if (ACCESSING_ | |
| 55 | 55 | { |
| 56 | 56 | soundlatch_w(machine,offset,data & 0xff); |
| 57 | 57 | cpunum_set_input_line(machine, 1,INPUT_LINE_NMI,PULSE_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 146 | 146 | { |
| 147 | 147 | UINT64 r = 0; |
| 148 | 148 | |
| 149 | if ( | |
| 149 | if (ACCESSING_BITS_32_63 | |
| 150 | 150 | { |
| 151 | 151 | r |= (UINT64)(irq_enable) << 32; |
| 152 | 152 | } |
| r2241 | r2242 | |
| 156 | 156 | |
| 157 | 157 | static WRITE64_HANDLER(irq_enable_w) |
| 158 | 158 | { |
| 159 | if ( | |
| 159 | if (ACCESSING_BITS_32_63 | |
| 160 | 160 | { |
| 161 | 161 | irq_enable |= (UINT32)(data >> 32); |
| 162 | 162 | } |
| r2241 | r2242 | |
| 166 | 166 | { |
| 167 | 167 | UINT64 r = 0; |
| 168 | 168 | |
| 169 | if ( | |
| 169 | if (ACCESSING_BITS_32_63 | |
| 170 | 170 | { |
| 171 | 171 | r |= (UINT64)(irq_active) << 32; |
| 172 | 172 | } |
| r2241 | r2242 | |
| 185 | 185 | #ifdef UNUSED_FUNCTION |
| 186 | 186 | static READ64_HANDLER(unk2_r) |
| 187 | 187 | { |
| 188 | if ( | |
| 188 | if (ACCESSING_BITS_32_63 | |
| 189 | 189 | { |
| 190 | 190 | return (UINT64)0xa5 << 32; |
| 191 | 191 | } |
| r2241 | r2242 | |
| 206 | 206 | UINT64 r = 0; |
| 207 | 207 | // logerror("unk4_r: %08X, %08X%08X at %08X\n", offset, (UINT32)(mem_mask>>32), (UINT32)(mem_mask), activecpu_get_pc()); |
| 208 | 208 | |
| 209 | if ( | |
| 209 | if (ACCESSING_BITS_32_63 | |
| 210 | 210 | { |
| 211 | 211 | // MCfg |
| 212 | 212 | r |= (UINT64)((0 << 13) | (5 << 10)) << 32; |
| 213 | 213 | } |
| 214 | if ( | |
| 214 | if (ACCESSING_BITS_ | |
| 215 | 215 | { |
| 216 | 216 | r |= unk20004 & ~0x800000; |
| 217 | 217 | } |
| r2241 | r2242 | |
| 223 | 223 | // logerror("unk4_w: %08X%08X, %08X, %08X%08X at %08X\n", (UINT32)(data >> 32), (UINT32)(data), |
| 224 | 224 | // offset, (UINT32)(mem_mask>>32), (UINT32)(mem_mask), activecpu_get_pc()); |
| 225 | 225 | |
| 226 | if ( | |
| 226 | if (ACCESSING_BITS_ | |
| 227 | 227 | { |
| 228 | 228 | if (data & 0x800000) |
| 229 | 229 | { |
| r2241 | r2242 | |
| 245 | 245 | |
| 246 | 246 | static READ64_HANDLER(unk30030_r) |
| 247 | 247 | { |
| 248 | if ( | |
| 248 | if (ACCESSING_BITS_ | |
| 249 | 249 | { |
| 250 | 250 | return 1; |
| 251 | 251 | } |
| r2241 | r2242 | |
| 254 | 254 | |
| 255 | 255 | static WRITE64_HANDLER(video_w) |
| 256 | 256 | { |
| 257 | if ( | |
| 257 | if (ACCESSING_BITS_32_63 | |
| 258 | 258 | { |
| 259 | 259 | vdl0_address = (UINT32)(data >> 32); |
| 260 | 260 | } |
| 261 | if ( | |
| 261 | if (ACCESSING_BITS_ | |
| 262 | 262 | { |
| 263 | 263 | vdl1_address = (UINT32)(data); |
| 264 | 264 | } |
| r2241 | r2242 | |
| 266 | 266 | |
| 267 | 267 | static WRITE64_HANDLER(video_irq_ack_w) |
| 268 | 268 | { |
| 269 | if ( | |
| 269 | if (ACCESSING_BITS_32_63 | |
| 270 | 270 | { |
| 271 | 271 | if ((data >> 32) & 0x8000) |
| 272 | 272 | { |
| r2241 | r2242 | |
| 319 | 319 | |
| 320 | 320 | static WRITE64_HANDLER(reset_w) |
| 321 | 321 | { |
| 322 | if ( | |
| 322 | if (ACCESSING_BITS_32_63 | |
| 323 | 323 | { |
| 324 | 324 | if (data & U64(0x100000000)) |
| 325 | 325 | { |
| r2241 | r2242 | |
| 725 | 725 | UINT32 r = 0; |
| 726 | 726 | int reg = offset * 2; |
| 727 | 727 | |
| 728 | if ( | |
| 728 | if (ACCESSING_BITS_ | |
| 729 | 729 | reg++; |
| 730 | 730 | |
| 731 | 731 | switch (reg) |
| r2241 | r2242 | |
| 800 | 800 | int reg = offset * 2; |
| 801 | 801 | UINT32 d; |
| 802 | 802 | |
| 803 | if ( | |
| 803 | if (ACCESSING_BITS_ | |
| 804 | 804 | { |
| 805 | 805 | reg++; |
| 806 | 806 | d = (UINT32)(data); |
| r2241 | r2242 | |
| 953 | 953 | UINT32 r = 0; |
| 954 | 954 | int reg = offset * 2; |
| 955 | 955 | |
| 956 | if ( | |
| 956 | if (ACCESSING_BITS_ | |
| 957 | 957 | reg++; |
| 958 | 958 | |
| 959 | 959 | switch (reg) |
| r2241 | r2242 | |
| 983 | 983 | { |
| 984 | 984 | UINT64 r = 0; |
| 985 | 985 | |
| 986 | if ( | |
| 986 | if (ACCESSING_BITS_32_63 | |
| 987 | 987 | { |
| 988 | 988 | r = (UINT64)(cpu_getactivecpu() ? 0x80000000 : 0); |
| 989 | 989 | //r |= 0x40000000; // sets Video-LowRes !? |
| r2241 | r2242 | |
| 1058 | 1058 | MDRV_SCREEN_ADD("main", RASTER) |
| 1059 | 1059 | MDRV_SCREEN_REFRESH_RATE(60) |
| 1060 | 1060 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 1061 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_ | |
| 1061 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 1062 | 1062 | MDRV_SCREEN_SIZE(640, 480) |
| 1063 | 1063 | MDRV_SCREEN_VISIBLE_AREA(0, 511, 0, 383) |
| 1064 | 1064 | |
| 1065 | MDRV_PALETTE_LENGTH(65536) | |
| 1065 | MDRV_PALETTE_LENGTH(32768) | |
| 1066 | MDRV_PALETTE_INIT(RRRRR_GGGGG_BBBBB) | |
| 1066 | 1067 | |
| 1067 | 1068 | MDRV_VIDEO_START(m2) |
| 1068 | 1069 | MDRV_VIDEO_UPDATE(m2) |
| r2241 | r2242 | |
|---|---|---|
| 80 | 80 | |
| 81 | 81 | static WRITE16_HANDLER( mahjong_panel_w ) |
| 82 | 82 | { |
| 83 | if (ACCESSING_ | |
| 83 | if (ACCESSING_ | |
| 84 | 84 | sengokumj_mux_data = data >> 8; |
| 85 | 85 | } |
| 86 | 86 | |
| r2241 | r2242 | |
| 89 | 89 | static UINT8 old = 0; |
| 90 | 90 | static int coins_used = 0; |
| 91 | 91 | |
| 92 | if(ACCESSING_ | |
| 92 | if(ACCESSING_ | |
| 93 | 93 | { |
| 94 | 94 | if((old & 4) == 0 && (data & 4) == 4) |
| 95 | 95 | { |
| r2241 | r2242 | |
| 137 | 137 | |
| 138 | 138 | |
| 139 | 139 | static INPUT_PORTS_START( sengokmj ) |
| 140 | /* Must be port 0: coin inputs read through sound cpu */ | |
| 141 | SEIBU_COIN_INPUTS | |
| 140 | SEIBU_COIN_INPUTS /* coin inputs read through sound cpu */ | |
| 142 | 141 | |
| 143 | 142 | PORT_START |
| 144 | PORT_DIPNAME( 0x0001, | |
| 143 | PORT_DIPNAME( 0x0001, | |
| 145 | 144 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) |
| 146 | 145 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 147 | PORT_DIPNAME( 0x0002, | |
| 146 | PORT_DIPNAME( 0x0002, | |
| 148 | 147 | PORT_DIPSETTING( 0x0002, DEF_STR( Off ) ) |
| 149 | 148 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 150 | PORT_DIPNAME( 0x0004, | |
| 149 | PORT_DIPNAME( 0x0004, | |
| 151 | 150 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) |
| 152 | 151 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 153 | PORT_DIPNAME( 0x0008, | |
| 152 | PORT_DIPNAME( 0x0008, | |
| 154 | 153 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) |
| 155 | 154 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 156 | PORT_DIPNAME( 0x0010, | |
| 155 | PORT_DIPNAME( 0x0010, | |
| 157 | 156 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) |
| 158 | 157 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 159 | PORT_DIPNAME( 0x0020, | |
| 158 | PORT_DIPNAME( 0x0020, | |
| 160 | 159 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) |
| 161 | 160 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 162 | PORT_DIPNAME( 0x0040, | |
| 161 | PORT_DIPNAME( 0x0040, | |
| 163 | 162 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) |
| 164 | 163 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 165 | PORT_DIPNAME( 0x0080, | |
| 164 | PORT_DIPNAME( 0x0080, | |
| 166 | 165 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) |
| 167 | 166 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 168 | PORT_BIT( | |
| 167 | PORT_BIT( | |
| 169 | 168 | |
| 170 | 169 | PORT_START |
| 171 | 170 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_A ) |
| r2241 | r2242 | |
| 222 | 221 | |
| 223 | 222 | PORT_START |
| 224 | 223 | PORT_DIPNAME( 0x0001, 0x0001, "Door" ) |
| 225 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 226 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 224 | PORT_DIPSETTING( 0x0001, DEF_STR( Off ) ) | |
| 225 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 227 | 226 | PORT_SERVICE_NO_TOGGLE( 0x0002, IP_ACTIVE_LOW ) |
| 228 | 227 | PORT_DIPNAME( 0x0004, 0x0004, "Opt. 1st" ) |
| 229 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 230 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 228 | PORT_DIPSETTING( 0x0004, DEF_STR( Off ) ) | |
| 229 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 231 | 230 | PORT_DIPNAME( 0x0008, 0x0008, "Reset" ) |
| 232 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 233 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 231 | PORT_DIPSETTING( 0x0008, DEF_STR( Off ) ) | |
| 232 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 234 | 233 | PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) ) |
| 235 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 236 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 234 | PORT_DIPSETTING( 0x0010, DEF_STR( Off ) ) | |
| 235 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 237 | 236 | PORT_DIPNAME( 0x0020, 0x0020, "Cash" ) |
| 238 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 239 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 237 | PORT_DIPSETTING( 0x0020, DEF_STR( Off ) ) | |
| 238 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 240 | 239 | /* Used, causes "Hopper RunAway" message if you toggle it */ |
| 241 | 240 | PORT_DIPNAME( 0x0040, 0x0040, DEF_STR( Unknown ) ) |
| 242 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 243 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 241 | PORT_DIPSETTING( 0x0040, DEF_STR( Off ) ) | |
| 242 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 244 | 243 | PORT_DIPNAME( 0x0080, 0x0080, "Meter" ) |
| 245 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 246 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 244 | PORT_DIPSETTING( 0x0080, DEF_STR( Off ) ) | |
| 245 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) | |
| 247 | 246 | PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 248 | 247 | INPUT_PORTS_END |
| 249 | 248 |
| r2241 | r2242 | |
|---|---|---|
| 271 | 271 | /* Handles writes to the YMZ280B */ |
| 272 | 272 | static WRITE16_HANDLER( cave_sound_w ) |
| 273 | 273 | { |
| 274 | if (ACCESSING_ | |
| 274 | if (ACCESSING_ | |
| 275 | 275 | { |
| 276 | 276 | if (offset) YMZ280B_data_0_w (machine, offset, data & 0xff); |
| 277 | 277 | else YMZ280B_register_0_w (machine, offset, data & 0xff); |
| r2241 | r2242 | |
| 329 | 329 | if (data & ~0xfe00) |
| 330 | 330 | logerror("CPU #0 PC: %06X - Unknown EEPROM bit written %04X\n",activecpu_get_pc(),data); |
| 331 | 331 | |
| 332 | if ( ACCESSING_ | |
| 332 | if ( ACCESSING_ | |
| 333 | 333 | { |
| 334 | 334 | coin_lockout_w(1,~data & 0x8000); |
| 335 | 335 | coin_lockout_w(0,~data & 0x4000); |
| r2241 | r2242 | |
| 355 | 355 | |
| 356 | 356 | static WRITE16_HANDLER( hotdogst_eeprom_msb_w ) |
| 357 | 357 | { |
| 358 | if ( ACCESSING_ | |
| 358 | if ( ACCESSING_ | |
| 359 | 359 | { |
| 360 | 360 | // latch the bit |
| 361 | 361 | EEPROM_write_bit(data & 0x0800); |
| r2241 | r2242 | |
| 373 | 373 | if (data & ~0x00ef) |
| 374 | 374 | logerror("CPU #0 PC: %06X - Unknown EEPROM bit written %04X\n",activecpu_get_pc(),data); |
| 375 | 375 | |
| 376 | if ( ACCESSING_ | |
| 376 | if ( ACCESSING_ | |
| 377 | 377 | { |
| 378 | 378 | coin_lockout_w(1,~data & 0x0008); |
| 379 | 379 | coin_lockout_w(0,~data & 0x0004); |
| r2241 | r2242 | |
| 394 | 394 | /* - No eeprom or lockouts */ |
| 395 | 395 | static WRITE16_HANDLER( gaia_coin_lsb_w ) |
| 396 | 396 | { |
| 397 | if ( ACCESSING_ | |
| 397 | if ( ACCESSING_ | |
| 398 | 398 | { |
| 399 | 399 | coin_counter_w(1, data & 0x0002); |
| 400 | 400 | coin_counter_w(0, data & 0x0001); |
| r2241 | r2242 | |
| 408 | 408 | if (data & ~0xff00) |
| 409 | 409 | logerror("CPU #0 PC: %06X - Unknown EEPROM bit written %04X\n",activecpu_get_pc(),data); |
| 410 | 410 | |
| 411 | if ( ACCESSING_ | |
| 411 | if ( ACCESSING_ | |
| 412 | 412 | { |
| 413 | 413 | coin_counter_w(1, data & 0x2000); |
| 414 | 414 | coin_counter_w(0, data & 0x1000); |
| r2241 | r2242 | |
| 853 | 853 | show_leds(); |
| 854 | 854 | } |
| 855 | 855 | |
| 856 | if ( ACCESSING_ | |
| 856 | if ( ACCESSING_ | |
| 857 | 857 | { |
| 858 | 858 | hopper = data & 0x0100; // ??? |
| 859 | 859 |
| r2241 | r2242 | |
|---|---|---|
| 186 | 186 | |
| 187 | 187 | static WRITE32_HANDLER( paletteram32_xRRRRRGGGGGBBBBB_dword_w ) |
| 188 | 188 | { |
| 189 | if(ACCESSING_ | |
| 189 | if(ACCESSING_BITS_16_31) | |
| 190 | 190 | { |
| 191 | 191 | int r,g,b; |
| 192 | 192 | COMBINE_DATA(&paletteram32[offset]); |
| r2241 | r2242 | |
| 198 | 198 | palette_set_color_rgb(Machine,offset*2,pal5bit(r),pal5bit(g),pal5bit(b)); |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | if(ACCESSING_ | |
| 201 | if(ACCESSING_BITS_0_15) | |
| 202 | 202 | { |
| 203 | 203 | int r,g,b; |
| 204 | 204 | COMBINE_DATA(&paletteram32[offset]); |
| r2241 | r2242 | |
| 241 | 241 | |
| 242 | 242 | static WRITE32_HANDLER( snd_020_w ) |
| 243 | 243 | { |
| 244 | if ( | |
| 244 | if (ACCESSING_BITS_16_23 | |
| 245 | 245 | { |
| 246 | 246 | fuuki32_shared_ram[offset*2] = data>>16; |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | if ( | |
| 249 | if (ACCESSING_BITS_ | |
| 250 | 250 | { |
| 251 | 251 | fuuki32_shared_ram[(offset*2)+1] = data & 0xff; |
| 252 | 252 | } |
| r2241 | r2242 | |
|---|---|---|
| 206 | 206 | */ |
| 207 | 207 | |
| 208 | 208 | /* upper byte */ |
| 209 | if ( | |
| 209 | if (ACCESSING_BITS_24_31 | |
| 210 | 210 | { |
| 211 | 211 | /* bits 13-11 are the MO control bits */ |
| 212 | 212 | atarirle_control_w(0, (data >> 27) & 7); |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | if ( | |
| 215 | if (ACCESSING_BITS_16_23 | |
| 216 | 216 | { |
| 217 | 217 | // cage_reset_w(data & 0x00100000); |
| 218 | 218 | coin_counter_w(0, data & 0x00080000); |
| r2241 | r2242 | |
| 224 | 224 | static WRITE32_HANDLER( mo_command_w ) |
| 225 | 225 | { |
| 226 | 226 | COMBINE_DATA(mo_command); |
| 227 | if (ACCESSING_ | |
| 227 | if (ACCESSING_BITS_0_15) | |
| 228 | 228 | atarirle_command_w(0, ((data & 0xffff) == 2) ? ATARIRLE_COMMAND_CHECKSUM : ATARIRLE_COMMAND_DRAW); |
| 229 | 229 | } |
| 230 | 230 | |
| r2241 | r2242 | |
| 246 | 246 | { |
| 247 | 247 | UINT32 result = 0; |
| 248 | 248 | |
| 249 | if (ACCESSING_ | |
| 249 | if (ACCESSING_BITS_0_15) | |
| 250 | 250 | result |= cage_control_r(); |
| 251 | if (ACCESSING_ | |
| 251 | if (ACCESSING_BITS_16_31) | |
| 252 | 252 | result |= main_from_cage_r() << 16; |
| 253 | 253 | return result; |
| 254 | 254 | } |
| r2241 | r2242 | |
| 256 | 256 | |
| 257 | 257 | static WRITE32_HANDLER( sound_data_w ) |
| 258 | 258 | { |
| 259 | if (ACCESSING_ | |
| 259 | if (ACCESSING_BITS_0_15) | |
| 260 | 260 | cage_control_w(data); |
| 261 | if (ACCESSING_ | |
| 261 | if (ACCESSING_BITS_16_31) | |
| 262 | 262 | main_to_cage_w(data >> 16); |
| 263 | 263 | } |
| 264 | 264 | |
| r2241 | r2242 | |
| 568 | 568 | UINT32 result32 = 0; |
| 569 | 569 | UINT16 result; |
| 570 | 570 | |
| 571 | if ( | |
| 571 | if (ACCESSING_BITS_16_31 | |
| 572 | 572 | { |
| 573 | 573 | result = atarigt_colorram_r(address); |
| 574 | 574 | (*protection_r)(address, &result); |
| 575 | 575 | result32 |= result << 16; |
| 576 | 576 | } |
| 577 | if ( | |
| 577 | if (ACCESSING_BITS_ | |
| 578 | 578 | { |
| 579 | 579 | result = atarigt_colorram_r(address + 2); |
| 580 | 580 | (*protection_r)(address + 2, &result); |
| r2241 | r2242 | |
| 589 | 589 | { |
| 590 | 590 | offs_t address = 0xd80000 + offset * 4; |
| 591 | 591 | |
| 592 | if ( | |
| 592 | if (ACCESSING_BITS_16_31 | |
| 593 | 593 | { |
| 594 | 594 | if (!ignore_writes) |
| 595 | 595 | atarigt_colorram_w(address, data >> 16, mem_mask >> 16); |
| 596 | 596 | (*protection_w)(address, data >> 16); |
| 597 | 597 | } |
| 598 | if ( | |
| 598 | if (ACCESSING_BITS_ | |
| 599 | 599 | { |
| 600 | 600 | if (!ignore_writes) |
| 601 | 601 | atarigt_colorram_w(address + 2, data, mem_mask); |
| r2241 | r2242 | |
|---|---|---|
| 94 | 94 | static WRITE16_HANDLER( eeprom_w ) |
| 95 | 95 | { |
| 96 | 96 | //bad ? |
| 97 | if( ACCESSING_ | |
| 97 | if( ACCESSING_ | |
| 98 | 98 | { |
| 99 | 99 | EEPROM_write_bit(data & 0x04); |
| 100 | 100 | EEPROM_set_cs_line((data & 0x01) ? CLEAR_LINE:ASSERT_LINE ); |
| r2241 | r2242 | |
|---|---|---|
| 278 | 278 | |
| 279 | 279 | static WRITE16_HANDLER( sound_command_w ) |
| 280 | 280 | { |
| 281 | if (ACCESSING_ | |
| 281 | if (ACCESSING_ | |
| 282 | 282 | soundlatch_w(machine,0,((data & 0x7f) << 1) | 1); |
| 283 | 283 | } |
| 284 | 284 |
| r2241 | r2242 | |
|---|---|---|
| 271 | 271 | switch (offset & 3) |
| 272 | 272 | { |
| 273 | 273 | case 0: |
| 274 | if (ACCESSING_ | |
| 274 | if (ACCESSING_ | |
| 275 | 275 | else return YM3438_read_port_0_r(machine, 0); |
| 276 | 276 | break; |
| 277 | 277 | case 2: |
| 278 | if (ACCESSING_ | |
| 278 | if (ACCESSING_ | |
| 279 | 279 | else return 0; |
| 280 | 280 | break; |
| 281 | 281 | } |
| r2241 | r2242 | |
| 331 | 331 | switch (offset & 3) |
| 332 | 332 | { |
| 333 | 333 | case 0: |
| 334 | if (ACCESSING_ | |
| 334 | if (ACCESSING_ | |
| 335 | 335 | else return YM3438_read_port_0_r(machine, 0); |
| 336 | 336 | break; |
| 337 | 337 | case 2: |
| 338 | if (ACCESSING_ | |
| 338 | if (ACCESSING_ | |
| 339 | 339 | else return 0; |
| 340 | 340 | break; |
| 341 | 341 | } |
| r2241 | r2242 | |
| 372 | 372 | { |
| 373 | 373 | offset &=0x1fff; |
| 374 | 374 | |
| 375 | if (ACCESSING_LSB) genesis_z80_ram[offset+1] = data & 0xff; | |
| 376 | if (ACCESSING_MSB) genesis_z80_ram[offset] = (data >> 8) & 0xff; | |
| 375 | if (ACCESSING_BITS_0_7) genesis_z80_ram[offset+1] = data & 0xff; | |
| 376 | if (ACCESSING_BITS_8_15) genesis_z80_ram[offset] = (data >> 8) & 0xff; | |
| 377 | 377 | } |
| 378 | 378 | |
| 379 | 379 | |
| r2241 | r2242 | |
| 383 | 383 | switch (offset & 3) |
| 384 | 384 | { |
| 385 | 385 | case 0: |
| 386 | if (ACCESSING_ | |
| 386 | if (ACCESSING_ | |
| 387 | 387 | else YM3438_data_port_0_A_w (machine, 0, (data >> 0) & 0xff); |
| 388 | 388 | break; |
| 389 | 389 | case 2: |
| 390 | if (ACCESSING_ | |
| 390 | if (ACCESSING_ | |
| 391 | 391 | else YM3438_data_port_0_B_w (machine, 0, (data >> 0) & 0xff); |
| 392 | 392 | break; |
| 393 | 393 | } |
| r2241 | r2242 | |
| 412 | 412 | |
| 413 | 413 | if ( (offset >= 0x10) && (offset <=0x17) ) |
| 414 | 414 | { |
| 415 | if (ACCESSING_LSB) SN76496_0_w(machine, 0, data & 0xff); | |
| 416 | if (ACCESSING_MSB) SN76496_0_w(machine, 0, (data >>8) & 0xff); | |
| 415 | if (ACCESSING_BITS_0_7) SN76496_0_w(machine, 0, data & 0xff); | |
| 416 | if (ACCESSING_BITS_8_15) SN76496_0_w(machine, 0, (data >>8) & 0xff); | |
| 417 | 417 | } |
| 418 | 418 | |
| 419 | 419 | } |
| r2241 | r2242 | |
|---|---|---|
| 61 | 61 | */ |
| 62 | 62 | |
| 63 | 63 | #include "driver.h" |
| 64 | #include "deprecat.h" | |
| 65 | 64 | #include "sound/ay8910.h" |
| 66 | 65 | |
| 67 | 66 | static tilemap *bg_tilemap; |
| r2241 | r2242 | |
| 142 | 141 | static WRITE8_HANDLER( trvmadns_gfxram_w ) |
| 143 | 142 | { |
| 144 | 143 | trvmadns_gfxram[offset] = data; |
| 145 | decodechar( | |
| 144 | decodechar(machine->gfx[0], offset/16, trvmadns_gfxram); | |
| 146 | 145 | |
| 147 | 146 | tilemap_mark_all_tiles_dirty(bg_tilemap); |
| 148 | 147 | } |
| r2241 | r2242 | |
| 159 | 158 | g = (paletteram[offset | 1] & 0xf0) >> 4; |
| 160 | 159 | b = paletteram[offset | 1] & 0xf; |
| 161 | 160 | |
| 162 | palette_set_color_rgb( | |
| 161 | palette_set_color_rgb(machine, offset >> 1, pal4bit(r), pal4bit(g), pal4bit(b)); | |
| 163 | 162 | } |
| 164 | 163 | #endif |
| 165 | 164 | |
| r2241 | r2242 | |
| 185 | 184 | { |
| 186 | 185 | if(activecpu_get_previouspc()==0x29e9)// || activecpu_get_previouspc()==0x1b3f) //29f5 |
| 187 | 186 | { |
| 188 | cpunum_set_input_line( | |
| 187 | cpunum_set_input_line(machine, 0, 0, HOLD_LINE); | |
| 189 | 188 | } |
| 190 | 189 | // else |
| 191 | 190 | // printf("%x \n", activecpu_get_previouspc()); |
| r2241 | r2242 | |
|---|---|---|
| 186 | 186 | |
| 187 | 187 | static WRITE16_HANDLER( sound_command_w ) |
| 188 | 188 | { |
| 189 | if (ACCESSING_ | |
| 189 | if (ACCESSING_ | |
| 190 | 190 | timer_call_after_resynch(NULL, data & 0xff, sound_command_w_callback); |
| 191 | 191 | } |
| 192 | 192 |
| r2241 | r2242 | |
|---|---|---|
| 252 | 252 | static WRITE32_HANDLER(backfire_eeprom_w) |
| 253 | 253 | { |
| 254 | 254 | logerror("%08x:write eprom %08x (%08x) %08x\n",activecpu_get_pc(),offset<<1,mem_mask,data); |
| 255 | if (ACCESSING_ | |
| 255 | if (ACCESSING_ | |
| 256 | 256 | EEPROM_set_clock_line((data & 0x2) ? ASSERT_LINE : CLEAR_LINE); |
| 257 | 257 | EEPROM_write_bit(data & 0x1); |
| 258 | 258 | EEPROM_set_cs_line((data & 0x4) ? CLEAR_LINE : ASSERT_LINE); |
| r2241 | r2242 | |
|---|---|---|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | |
| 145 | static ADDRESS_MAP_START( wolfpack_readmem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 146 | AM_RANGE(0x0000, 0x00ff) AM_READ(SMH_RAM) AM_MIRROR(0x100) | |
| 147 | AM_RANGE(0x1000, 0x1000) AM_READ(wolfpack_input_r) | |
| 148 | AM_RANGE(0x2000, 0x2000) AM_READ(wolfpack_misc_r) | |
| 149 | AM_RANGE(0x3000, 0x3000) AM_READ(input_port_1_r) | |
| 150 | AM_RANGE(0x7000, 0x7fff) AM_READ(SMH_ROM) | |
| 151 | AM_RANGE(0x9000, 0x9000) AM_READ(SMH_NOP) /* debugger ROM location? */ | |
| 152 | AM_RANGE(0xf000, 0xffff) AM_READ(SMH_ROM) | |
| 153 | ADDRESS_MAP_END | |
| 154 | ||
| 155 | ||
| 156 | static ADDRESS_MAP_START( wolfpack_writemem, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 157 | AM_RANGE(0x0000, 0x00ff) AM_WRITE(SMH_RAM) AM_MIRROR(0x100) | |
| 145 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) | |
| 146 | AM_RANGE(0x0000, 0x00ff) AM_RAM AM_MIRROR(0x100) | |
| 147 | AM_RANGE(0x1000, 0x1000) AM_READ(wolfpack_input_r) /* Fallthrough */ | |
| 158 | 148 | AM_RANGE(0x1000, 0x10ff) AM_WRITE(SMH_RAM) AM_BASE(&wolfpack_alpha_num_ram) |
| 149 | AM_RANGE(0x2000, 0x2000) AM_READ(wolfpack_misc_r) | |
| 159 | 150 | AM_RANGE(0x2000, 0x2000) AM_WRITE(wolfpack_high_explo_w) |
| 160 | 151 | AM_RANGE(0x2001, 0x2001) AM_WRITE(wolfpack_sonar_ping_w) |
| 161 | 152 | AM_RANGE(0x2002, 0x2002) AM_WRITE(wolfpack_sirlat_w) |
| r2241 | r2242 | |
| 171 | 162 | AM_RANGE(0x200d, 0x200d) AM_WRITE(wolfpack_attract_w) |
| 172 | 163 | AM_RANGE(0x200e, 0x200e) AM_WRITE(wolfpack_pt_pos_select_w) |
| 173 | 164 | AM_RANGE(0x200f, 0x200f) AM_WRITE(wolfpack_warning_light_w) |
| 165 | AM_RANGE(0x3000, 0x3000) AM_READ(input_port_1_r) | |
| 174 | 166 | AM_RANGE(0x3000, 0x3000) AM_WRITE(wolfpack_audamp_w) |
| 175 | 167 | AM_RANGE(0x3001, 0x3001) AM_WRITE(wolfpack_pt_horz_w) |
| 176 | 168 | AM_RANGE(0x3003, 0x3003) AM_WRITE(wolfpack_pt_pic_w) |
| r2241 | r2242 | |
| 184 | 176 | AM_RANGE(0x4005, 0x4005) AM_WRITE(wolfpack_torpedo_h_w) |
| 185 | 177 | AM_RANGE(0x4006, 0x4006) AM_WRITE(wolfpack_torpedo_v_w) |
| 186 | 178 | AM_RANGE(0x5000, 0x5fff) AM_WRITE(watchdog_reset_w) |
| 187 | AM_RANGE(0x7000, 0x7fff) AM_WRITE(SMH_ROM) | |
| 188 | AM_RANGE(0xf000, 0xffff) AM_WRITE(SMH_ROM) | |
| 179 | AM_RANGE(0x7000, 0x7fff) AM_ROM | |
| 180 | AM_RANGE(0x9000, 0x9000) AM_READ(SMH_NOP) /* debugger ROM location? */ | |
| 181 | AM_RANGE(0xf000, 0xffff) AM_ROM | |
| 189 | 182 | ADDRESS_MAP_END |
| 190 | 183 | |
| 191 | 184 | |
| r2241 | r2242 | |
| 327 | 320 | |
| 328 | 321 | |
| 329 | 322 | static MACHINE_DRIVER_START(wolfpack) |
| 330 | ||
| 323 | | |
| 331 | 324 | |
| 332 | 325 | /* basic machine hardware */ |
| 333 | 326 | MDRV_CPU_ADD(M6502, 12096000 / 16) |
| 334 | MDRV_CPU_PROGRAM_MAP( | |
| 327 | MDRV_CPU_PROGRAM_MAP( | |
| 335 | 328 | |
| 336 | 329 | /* video hardware */ |
| 337 | 330 | MDRV_MACHINE_RESET(wolfpack) |
| r2241 | r2242 | |
|---|---|---|
| 126 | 126 | |
| 127 | 127 | static WRITE16_HANDLER( pirates_out_w ) |
| 128 | 128 | { |
| 129 | if (ACCESSING_ | |
| 129 | if (ACCESSING_ | |
| 130 | 130 | { |
| 131 | 131 | /* bits 0-2 control EEPROM */ |
| 132 | 132 | EEPROM_write_bit(data & 0x04); |
| r2241 | r2242 | |
|---|---|---|
| 96 | 96 | WRITE16_HANDLER( wrally_coin_lockout_w ); |
| 97 | 97 | |
| 98 | 98 | |
| 99 | ||
| 100 | static ADDRESS_MAP_START( wrally_readmem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 101 | AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) /* ROM */ | |
| 102 | AM_RANGE(0x100000, 0x103fff) AM_READ(SMH_RAM) /* encrypted Video RAM */ | |
| 103 | AM_RANGE(0x200000, 0x203fff) AM_READ(SMH_RAM) /* Palette */ | |
| 104 | AM_RANGE(0x440000, 0x440fff) AM_READ(SMH_RAM) /* Sprite RAM */ | |
| 105 | AM_RANGE(0x700000, 0x700001) AM_READ(input_port_0_word_r)/* DSW #1 & #2 */ | |
| 106 | AM_RANGE(0x700002, 0x700003) AM_READ(input_port_1_word_r)/* INPUT 1P & 2P, COINSW, STARTSW */ | |
| 107 | AM_RANGE(0x700004, 0x700005) AM_READ(input_port_2_word_r)/* Wheel */ | |
| 108 | AM_RANGE(0x700008, 0x700009) AM_READ(input_port_3_word_r)/* TESTSW & SERVICESW */ | |
| 109 | AM_RANGE(0x70000e, 0x70000f) AM_READ(OKIM6295_status_0_lsb_r)/* OKI6295 status register */ | |
| 110 | AM_RANGE(0xfe0000, 0xfeffff) AM_READ(SMH_RAM) /* Work RAM (partially shared with DS5002FP) */ | |
| 111 | ADDRESS_MAP_END | |
| 112 | ||
| 113 | 99 | static WRITE16_HANDLER( unknown_w ) |
| 114 | 100 | { |
| 115 | 101 | popmessage("write %04x to %04x", data, offset*2 + 0x6a); |
| 116 | 102 | } |
| 117 | 103 | |
| 118 | static ADDRESS_MAP_START( wrally_writemem, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 119 | AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM) /* ROM */ | |
| 120 | AM_RANGE(0x100000, 0x103fff) AM_WRITE(wrally_vram_w) AM_BASE(&wrally_videoram) /* encrypted Video RAM */ | |
| 121 | AM_RANGE(0x108000, 0x108007) AM_WRITE(SMH_RAM) AM_BASE(&wrally_vregs) /* Video Registers */ | |
| 122 | AM_RANGE(0x10800c, 0x10800d) AM_WRITE(SMH_NOP) /* CLR INT Video */ | |
| 123 | AM_RANGE(0x200000, 0x203fff) AM_WRITE(paletteram16_xxxxBBBBRRRRGGGG_word_w) AM_BASE(&paletteram16)/* Palette */ | |
| 124 | AM_RANGE(0x440000, 0x440fff) AM_WRITE(SMH_RAM) AM_BASE(&wrally_spriteram) /* Sprite RAM */ | |
| 125 | AM_RANGE(0x70000c, 0x70000d) AM_WRITE(OKIM6295_bankswitch_w) /* OKI6295 bankswitch */ | |
| 126 | AM_RANGE(0x70000e, 0x70000f) AM_WRITE(OKIM6295_data_0_lsb_w) /* OKI6295 data register */ | |
| 127 | AM_RANGE(0x70000a, 0x70001b) AM_WRITE(wrally_coin_lockout_w) /* Coin lockouts */ | |
| 128 | AM_RANGE(0x70002a, 0x70003b) AM_WRITE(wrally_coin_counter_w) /* Coin counters */ | |
| 129 | AM_RANGE(0x70004a, 0x70004b) AM_WRITE(SMH_NOP) /* sound muting */ | |
| 130 | AM_RANGE(0x70005a, 0x70005b) AM_WRITE(SMH_NOP) /* flip screen */ | |
| 131 | AM_RANGE(0x70006a, 0x70007b) AM_WRITE(unknown_w) /* ??? */ | |
| 132 | AM_RANGE(0xfe0000, 0xfeffff) AM_WRITE(SMH_RAM) /* Work RAM (partially shared with DS5002FP) */ | |
| 104 | static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 105 | AM_RANGE(0x000000, 0x0fffff) AM_ROM | |
| 106 | AM_RANGE(0x100000, 0x103fff) AM_RAM AM_WRITE(wrally_vram_w) AM_BASE(&wrally_videoram) /* encrypted Video RAM */ | |
| 107 | AM_RANGE(0x108000, 0x108007) AM_RAM AM_BASE(&wrally_vregs) /* Video Registers */ | |
| 108 | AM_RANGE(0x10800c, 0x10800d) AM_WRITE(SMH_NOP) /* CLR INT Video */ | |
| 109 | AM_RANGE(0x200000, 0x203fff) AM_RAM AM_WRITE(paletteram16_xxxxBBBBRRRRGGGG_word_w) AM_BASE(&paletteram16)/* Palette */ | |
| 110 | AM_RANGE(0x440000, 0x440fff) AM_RAM AM_BASE(&wrally_spriteram) /* Sprite RAM */ | |
| 111 | AM_RANGE(0x700000, 0x700001) AM_READ(input_port_0_word_r) /* DSW #1 & #2 */ | |
| 112 | AM_RANGE(0x700002, 0x700003) AM_READ(input_port_1_word_r) /* INPUT 1P & 2P, COINSW, STARTSW */ | |
| 113 | AM_RANGE(0x700004, 0x700005) AM_READ(input_port_2_word_r) /* Wheel */ | |
| 114 | AM_RANGE(0x700008, 0x700009) AM_READ(input_port_3_word_r) /* TESTSW & SERVICESW */ | |
| 115 | AM_RANGE(0x70000c, 0x70000d) AM_WRITE(OKIM6295_bankswitch_w) /* OKI6295 bankswitch */ | |
| 116 | AM_RANGE(0x70000e, 0x70000f) AM_READWRITE(OKIM6295_status_0_lsb_r,OKIM6295_data_0_lsb_w)/* OKI6295 status register */ | |
| 117 | AM_RANGE(0x70000a, 0x70001b) AM_WRITE(wrally_coin_lockout_w) /* Coin lockouts */ | |
| 118 | AM_RANGE(0x70002a, 0x70003b) AM_WRITE(wrally_coin_counter_w) /* Coin counters */ | |
| 119 | AM_RANGE(0x70004a, 0x70004b) AM_WRITE(SMH_NOP) /* sound muting */ | |
| 120 | AM_RANGE(0x70005a, 0x70005b) AM_WRITE(SMH_NOP) /* flip screen */ | |
| 121 | AM_RANGE(0x70006a, 0x70007b) AM_WRITE(unknown_w) /* ??? */ | |
| 122 | AM_RANGE(0xfe0000, 0xfeffff) AM_RAM /* Work RAM (partially shared with DS5002FP) */ | |
| 133 | 123 | ADDRESS_MAP_END |
| 134 | 124 | |
| 135 | 125 | |
| r2241 | r2242 | |
| 230 | 220 | static MACHINE_DRIVER_START( wrally ) |
| 231 | 221 | /* basic machine hardware */ |
| 232 | 222 | MDRV_CPU_ADD(M68000,XTAL_24MHz/2) /* verified on pcb */ |
| 233 | MDRV_CPU_PROGRAM_MAP( | |
| 223 | MDRV_CPU_PROGRAM_MAP( | |
| 234 | 224 | MDRV_CPU_VBLANK_INT("main", irq6_line_hold) |
| 235 | 225 | |
| 236 | 226 | /* video hardware */ |
| r2241 | r2242 | |
|---|---|---|
| 347 | 347 | /* I/O chip */ |
| 348 | 348 | case 0x0000/2: |
| 349 | 349 | case 0x1000/2: |
| 350 | if (ACCESSING_ | |
| 350 | if (ACCESSING_ | |
| 351 | 351 | { |
| 352 | 352 | io_chip_w(machine, offset, data, mem_mask); |
| 353 | 353 | return; |
| r2241 | r2242 | |
| 356 | 356 | |
| 357 | 357 | /* video control latch */ |
| 358 | 358 | case 0x2000/2: |
| 359 | if (ACCESSING_ | |
| 359 | if (ACCESSING_ | |
| 360 | 360 | { |
| 361 | 361 | system18_set_vdp_mixing(data & 0xff); |
| 362 | 362 | return; |
| r2241 | r2242 | |
| 381 | 381 | |
| 382 | 382 | static WRITE16_HANDLER( rom_5987_bank_w ) |
| 383 | 383 | { |
| 384 | if (!ACCESSING_ | |
| 384 | if (!ACCESSING_ | |
| 385 | 385 | return; |
| 386 | 386 | offset &= 0xf; |
| 387 | 387 | data &= 0xff; |
| r2241 | r2242 | |
| 389 | 389 | /* tile banking */ |
| 390 | 390 | if (offset < 8) |
| 391 | 391 | { |
| 392 | int maxbanks = | |
| 392 | int maxbanks = machine->gfx[0]->total_elements / 1024; | |
| 393 | 393 | if (data >= maxbanks) |
| 394 | 394 | data %= maxbanks; |
| 395 | 395 | segaic16_tilemap_set_bank(0, offset, data); |
| r2241 | r2242 | |
| 556 | 556 | static WRITE8_HANDLER( mcu_data_w ) |
| 557 | 557 | { |
| 558 | 558 | mcu_data = data; |
| 559 | cpunum_set_input_line( | |
| 559 | cpunum_set_input_line(machine, 2, 1, PULSE_LINE); | |
| 560 | 560 | } |
| 561 | 561 | |
| 562 | 562 |
| r2241 | r2242 | |
|---|---|---|
| 68 | 68 | |
| 69 | 69 | static WRITE16_HANDLER( sound_w ) |
| 70 | 70 | { |
| 71 | if(ACCESSING_ | |
| 71 | if(ACCESSING_ | |
| 72 | 72 | soundlatch_w(machine, 0, data&0xff); |
| 73 | 73 | } |
| 74 | 74 |
| r0 | r2242 | |
|---|---|---|
| 1 | /*************************************************************************** | |
| 2 | ||
| 3 | -= Astro Corp. Hardware =- | |
| 4 | ||
| 5 | driver by Luca Elia (l.elia@tin.it) | |
| 6 | ||
| 7 | CPU: 68000 | |
| 8 | GFX: ASTRO V01 0005 (512 sprites, each made of N x M tiles. Tiles are 16x16x8) | |
| 9 | SOUND: OKI M6295 (AD-65) | |
| 10 | OTHER: ASTRO 0001B, EEPROM | |
| 11 | ||
| 12 | ***************************************************************************/ | |
| 13 | ||
| 14 | #include "driver.h" | |
| 15 | #include "machine/eeprom.h" | |
| 16 | #include "sound/okim6295.h" | |
| 17 | ||
| 18 | /*************************************************************************** | |
| 19 | Sprites Format | |
| 20 | ||
| 21 | Offset: Bits: Value: | |
| 22 | ||
| 23 | 0.w f--- ---- ---- ---- Show This Sprite | |
| 24 | -edc ba98 7654 3210 X | |
| 25 | ||
| 26 | 1.w Code | |
| 27 | ||
| 28 | 2.w f--- ---- ---- ---- - | |
| 29 | -edc ba98 7654 3210 Y | |
| 30 | ||
| 31 | 3.w fedc ba98 ---- ---- X Size | |
| 32 | ---- ---- 7654 3210 Y Size | |
| 33 | ||
| 34 | ***************************************************************************/ | |
| 35 | ||
| 36 | static void draw_sprites(running_machine *machine, bitmap_t *bitmap,const rectangle *cliprect) | |
| 37 | { | |
| 38 | UINT16 *source = spriteram16; | |
| 39 | UINT16 *finish = spriteram16 + spriteram_size/2; | |
| 40 | ||
| 41 | for ( ; source < finish; source += 8/2 ) | |
| 42 | { | |
| 43 | int x,y; | |
| 44 | ||
| 45 | int sx = source[ 0x0/2 ]; | |
| 46 | int code = source[ 0x2/2 ]; | |
| 47 | int sy = source[ 0x4/2 ]; | |
| 48 | int attr = source[ 0x6/2 ]; | |
| 49 | ||
| 50 | int dimx = (attr >> 8) & 0xff; | |
| 51 | int dimy = (attr >> 0) & 0xff; | |
| 52 | ||
| 53 | if (!dimx && !dimy) | |
| 54 | return; | |
| 55 | ||
| 56 | if (!(sx & 0x8000)) | |
| 57 | continue; | |
| 58 | ||
| 59 | sx = (sx & 0x3fff) - (sx & 0x4000); | |
| 60 | sy = (sy & 0x3fff) - (sy & 0x4000); | |
| 61 | ||
| 62 | for (y = 0 ; y < dimy ; y++) | |
| 63 | { | |
| 64 | for (x = 0 ; x < dimx ; x++) | |
| 65 | { | |
| 66 | drawgfx(bitmap,machine->gfx[0], | |
| 67 | code++, 0, | |
| 68 | 0, 0, | |
| 69 | sx + x * 16, sy + y * 16, | |
| 70 | cliprect, TRANSPARENCY_PEN, 0xff); | |
| 71 | } | |
| 72 | } | |
| 73 | } | |
| 74 | } | |
| 75 | ||
| 76 | static UINT16 astrocorp_screen_enable; | |
| 77 | ||
| 78 | static VIDEO_UPDATE(astrocorp) | |
| 79 | { | |
| 80 | if (astrocorp_screen_enable & 1) | |
| 81 | { | |
| 82 | fillbitmap(bitmap,screen->machine->pens[0xff],cliprect); | |
| 83 | draw_sprites(screen->machine,bitmap,cliprect); | |
| 84 | } | |
| 85 | else | |
| 86 | fillbitmap(bitmap,get_black_pen(screen->machine),cliprect); | |
| 87 | ||
| 88 | return 0; | |
| 89 | } | |
| 90 | ||
| 91 | ||
| 92 | /*************************************************************************** | |
| 93 | Memory Maps | |
| 94 | ***************************************************************************/ | |
| 95 | ||
| 96 | static READ16_HANDLER( astrocorp_eeprom_r ) | |
| 97 | { | |
| 98 | return 0xfff7 | (EEPROM_read_bit() << 3); | |
| 99 | } | |
| 100 | ||
| 101 | static WRITE16_HANDLER( astrocorp_eeprom_w ) | |
| 102 | { | |
| 103 | if (ACCESSING_BITS_0_7) | |
| 104 | { | |
| 105 | // latch the bit | |
| 106 | EEPROM_write_bit(data & 0x01); | |
| 107 | ||
| 108 | // reset line asserted: reset. | |
| 109 | EEPROM_set_cs_line((data & 0x04) ? CLEAR_LINE : ASSERT_LINE ); | |
| 110 | ||
| 111 | // clock line asserted: write latch or select next bit to read | |
| 112 | EEPROM_set_clock_line((data & 0x02) ? ASSERT_LINE : CLEAR_LINE ); | |
| 113 | } | |
| 114 | } | |
| 115 | ||
| 116 | static WRITE16_HANDLER( astrocorp_sound_bank_w ) | |
| 117 | { | |
| 118 | if (ACCESSING_BITS_8_15) | |
| 119 | { | |
| 120 | OKIM6295_set_bank_base(0, 0x40000 * ((data >> 8) & 1) ); | |
| 121 | // logerror("CPU #0 PC %06X: OKI bank %08X\n",activecpu_get_pc(),data); | |
| 122 | } | |
| 123 | } | |
| 124 | ||
| 125 | static WRITE16_HANDLER( astrocorp_outputs_w ) | |
| 126 | { | |
| 127 | if (ACCESSING_BITS_0_7) | |
| 128 | { | |
| 129 | coin_counter_w(0, (data & 0x0004)); // coin counter | |
| 130 | set_led_status(0, (data & 0x0008)); // you win | |
| 131 | if ( (data & 0x0010)) dispensed_tickets++; // coin out | |
| 132 | set_led_status(1, (data & 0x0020)); // coin/hopper jam | |
| 133 | } | |
| 134 | if (ACCESSING_BITS_8_15) | |
| 135 | { | |
| 136 | set_led_status(2, (data & 0x0100)); // bet | |
| 137 | set_led_status(3, (data & 0x0800)); // start | |
| 138 | set_led_status(4, (data & 0x1000)); // ? select/choose | |
| 139 | set_led_status(5, (data & 0x2000)); // ? select/choose | |
| 140 | set_led_status(6, (data & 0x4000)); // look | |
| 141 | } | |
| 142 | // popmessage("%04X",data); | |
| 143 | } | |
| 144 | ||
| 145 | static WRITE16_HANDLER( astrocorp_enable_w ) | |
| 146 | { | |
| 147 | COMBINE_DATA( &astrocorp_screen_enable ); | |
| 148 | // popmessage("%04X",data); | |
| 149 | if (data & (~1)) | |
| 150 | logerror("CPU #0 PC %06X: screen enable = %04X\n",activecpu_get_pc(),data); | |
| 151 | } | |
| 152 | ||
| 153 | static READ16_HANDLER( astrocorp_unk_r ) | |
| 154 | { | |
| 155 | return 0xffff; // bit 3? | |
| 156 | } | |
| 157 | ||
| 158 | // 5-6-5 Palette: BBBBB-GGGGGG-RRRRR | |
| 159 | static WRITE16_HANDLER( astrocorp_palette_w ) | |
| 160 | { | |
| 161 | COMBINE_DATA( &paletteram16[offset] ); | |
| 162 | palette_set_color_rgb( machine, offset, | |
| 163 | pal5bit((paletteram16[offset] >> 0) & 0x1f), | |
| 164 | pal6bit((paletteram16[offset] >> 5) & 0x3f), | |
| 165 | pal5bit((paletteram16[offset] >> 11) & 0x1f) | |
| 166 | ); | |
| 167 | } | |
| 168 | ||
| 169 | static ADDRESS_MAP_START( astrocorp_map, ADDRESS_SPACE_PROGRAM, 16 ) | |
| 170 | AM_RANGE( 0x000000, 0x01ffff ) AM_ROM | |
| 171 | AM_RANGE( 0x050000, 0x050fff ) AM_RAM AM_BASE( &spriteram16 ) AM_SIZE( &spriteram_size ) | |
| 172 | AM_RANGE( 0x052000, 0x052001 ) AM_WRITE( SMH_NOP ) | |
| 173 | AM_RANGE( 0x054000, 0x054001 ) AM_READ_PORT( "INPUTS" ) | |
| 174 | AM_RANGE( 0x058000, 0x058001 ) AM_WRITE( astrocorp_eeprom_w ) | |
| 175 | AM_RANGE( 0x05a000, 0x05a001 ) AM_WRITE( astrocorp_outputs_w ) | |
| 176 | AM_RANGE( 0x05e000, 0x05e001 ) AM_READ( astrocorp_eeprom_r ) | |
| 177 | AM_RANGE( 0x060000, 0x0601ff ) AM_RAM AM_WRITE( astrocorp_palette_w ) AM_BASE( &paletteram16 ) | |
| 178 | AM_RANGE( 0x070000, 0x073fff ) AM_RAM | |
| 179 | AM_RANGE( 0x080000, 0x080001 ) AM_WRITE( astrocorp_sound_bank_w ) | |
| 180 | AM_RANGE( 0x0a0000, 0x0a0001 ) AM_WRITE( astrocorp_enable_w ) | |
| 181 | AM_RANGE( 0x0d0000, 0x0d0001 ) AM_READWRITE( astrocorp_unk_r, OKIM6295_data_0_msb_w ) | |
| 182 | ADDRESS_MAP_END | |
| 183 | ||
| 184 | ||
| 185 | /*************************************************************************** | |
| 186 | Input Ports | |
| 187 | ***************************************************************************/ | |
| 188 | ||
| 189 | INPUT_PORTS_START( showhand ) | |
| 190 | PORT_START_TAG("INPUTS") // 54000 | |
| 191 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(1) // coin | |
| 192 | PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Payout") PORT_CODE(KEYCODE_F1) // payout (must be 0 on startup) | |
| 193 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNKNOWN ) // ? | |
| 194 | PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_START2 ) PORT_NAME("Bet / Double") | |
| 195 | PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Look / Small") | |
| 196 | PORT_SERVICE_NO_TOGGLE( 0x0020, IP_ACTIVE_LOW ) // settings | |
| 197 | PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN ) // ? | |
| 198 | PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_SPECIAL ) // coin sensor | |
| 199 | PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Yes / Big") | |
| 200 | PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_UNKNOWN ) // hold1? | |
| 201 | PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Select") | |
| 202 | PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_START1 ) PORT_NAME("Start / Take") | |
| 203 | PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_NAME("Reset Settings") // when 1 in test mode: reset settings (must be 0 on startup) | |
| 204 | PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // ? | |
| 205 | PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN2 ) // key in | |
| 206 | PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_SPECIAL ) // coin sensor | |
| 207 | INPUT_PORTS_END | |
| 208 | ||
| 209 | ||
| 210 | /*************************************************************************** | |
| 211 | Graphics Layout | |
| 212 | ***************************************************************************/ | |
| 213 | ||
| 214 | static const gfx_layout layout_16x16x8 = | |
| 215 | { | |
| 216 | 16, 16, | |
| 217 | RGN_FRAC(1, 1), | |
| 218 | 8, | |
| 219 | { STEP8(0,1) }, | |
| 220 | { STEP16(0,8) }, | |
| 221 | { STEP16(0,16*8) }, | |
| 222 | 16*16*8 | |
| 223 | }; | |
| 224 | ||
| 225 | static GFXDECODE_START( astrocorp ) | |
| 226 | { REGION_GFX1, 0, &layout_16x16x8, 0, 1 }, | |
| 227 | GFXDECODE_END | |
| 228 | ||
| 229 | ||
| 230 | /*************************************************************************** | |
| 231 | Machine Drivers | |
| 232 | ***************************************************************************/ | |
| 233 | ||
| 234 | static const UINT16 showhand_default_eeprom[] = {0x0001,0x0007,0x000a,0x0003,0x0000,0x0009,0x0003,0x0000,0x0002,0x0001,0x0000,0x0000,0x0000,0x0000,0x0000}; | |
| 235 | ||
| 236 | static NVRAM_HANDLER( showhand ) | |
| 237 | { | |
| 238 | if (read_or_write) | |
| 239 | EEPROM_save(file); | |
| 240 | else | |
| 241 | { | |
| 242 | EEPROM_init(&eeprom_interface_93C46); | |
| 243 | ||
| 244 | if (file) EEPROM_load(file); | |
| 245 | else | |
| 246 | { | |
| 247 | /* Set the EEPROM to Factory Defaults */ | |
| 248 | EEPROM_set_data((UINT8*)showhand_default_eeprom,sizeof(showhand_default_eeprom)); | |
| 249 | } | |
| 250 | } | |
| 251 | } | |
| 252 | ||
| 253 | static MACHINE_DRIVER_START( astrocorp ) | |
| 254 | /* basic machine hardware */ | |
| 255 | MDRV_CPU_ADD(M68000, XTAL_25_601712MHz / 2) | |
| 256 | MDRV_CPU_PROGRAM_MAP(astrocorp_map,0) | |
| 257 | MDRV_CPU_VBLANK_INT("main", irq4_line_hold) | |
| 258 | ||
| 259 | MDRV_NVRAM_HANDLER(showhand) | |
| 260 | ||
| 261 | /* video hardware */ | |
| 262 | MDRV_SCREEN_ADD("main", RASTER) | |
| 263 | MDRV_SCREEN_REFRESH_RATE(60) | |
| 264 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) | |
| 265 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) | |
| 266 | MDRV_SCREEN_SIZE(320, 240) | |
| 267 | MDRV_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1) | |
| 268 | ||
| 269 | MDRV_GFXDECODE(astrocorp) | |
| 270 | MDRV_PALETTE_LENGTH(0x100) | |
| 271 | ||
| 272 | MDRV_VIDEO_UPDATE(astrocorp) | |
| 273 | ||
| 274 | /* sound hardware */ | |
| 275 | MDRV_SPEAKER_STANDARD_MONO("mono") | |
| 276 | ||
| 277 | MDRV_SOUND_ADD(OKIM6295, XTAL_20MHz/16) | |
| 278 | MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7low) | |
| 279 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) | |
| 280 | MACHINE_DRIVER_END | |
| 281 | ||
| 282 | ||
| 283 | /*************************************************************************** | |
| 284 | ROMs Loading | |
| 285 | ***************************************************************************/ | |
| 286 | ||
| 287 | /*************************************************************************** | |
| 288 | ||
| 289 | Show Hand | |
| 290 | (C) 1999? Astro Corp. | |
| 291 | ||
| 292 | PCB CHE-B50-4002A 88 94V-0 0002 | |
| 293 | ||
| 294 | CPU 1x MC68HC000FN12 (main) | |
| 295 | 1x pLSI1016-60LJ (main) | |
| 296 | 1x ASTRO V01 0005 (custom) | |
| 297 | 1x AD-65 (equivalent to OKI6295)(sound) | |
| 298 | 1x ASTRO 0001B (custom) | |
| 299 | 1x oscillator 20.000MHz | |
| 300 | 1x oscillator 25.601712MHz | |
| 301 | ||
| 302 | ROMs 2x 27C512 (1,2) | |
| 303 | 2x M27C801 (3,4) | |
| 304 | 1x M27C4001 (5) | |
| 305 | 1x 93C46 (not dumped) | |
| 306 | ||
| 307 | Note 1x 28x2 JAMMA edge connector | |
| 308 | 1x 18x2 edge connector | |
| 309 | 1x 10x2 edge connector | |
| 310 | 1x pushbutton | |
| 311 | 1x trimmer (volume) | |
| 312 | 1x 2x2 switches dip | |
| 313 | ||
| 314 | Hardware info by f205v | |
| 315 | ||
| 316 | ***************************************************************************/ | |
| 317 | ||
| 318 | ROM_START( showhand ) | |
| 319 | ROM_REGION( 0x20000, REGION_CPU1, 0 ) | |
| 320 | ROM_LOAD16_BYTE( "1-8.even.u16", 0x00000, 0x10000, CRC(cf34bf0d) SHA1(72ad7ca63ef89451b2572d64cccfa764b9d9b353) ) | |
| 321 | ROM_LOAD16_BYTE( "2-8.odd.u17", 0x00001, 0x10000, CRC(dd031c36) SHA1(198d0e685dd2d824a04c787f8a17c173efa272d9) ) | |
| 322 | ||
| 323 | ROM_REGION( 0x200000, REGION_GFX1, 0 ) | |
| 324 | ROM_LOAD16_BYTE( "4.even.u26", 0x000000, 0x100000, CRC(8a706e42) SHA1(989688ee3a5e4fc11fb502e43c9d6012488982ee) ) | |
| 325 | ROM_LOAD16_BYTE( "3.odd.u26", 0x000001, 0x100000, CRC(a624b750) SHA1(fc5b09f8a10cba5fb2474e1edd62a0400177a5ad) ) | |
| 326 | ||
| 327 | ROM_REGION( 0x80000, REGION_SOUND1, 0 ) | |
| 328 | ROM_LOAD( "5", 0x00000, 0x80000, CRC(e6987122) SHA1(fb3e7c2399057c64b5c496a393f6f22a1e54c844) ) | |
| 329 | ROM_END | |
| 330 | ||
| 331 | static DRIVER_INIT( showhand ) | |
| 332 | { | |
| 333 | /* | |
| 334 | UINT16 *rom = (UINT16*)memory_region(REGION_CPU1); | |
| 335 | ||
| 336 | rom[0x0a1a/2] = 0x6000; // hopper jam | |
| 337 | ||
| 338 | rom[0x1494/2] = 0x4e71; // enable full test mode | |
| 339 | ||
| 340 | rom[0x12f6/2] = 0x6000; // rom error | |
| 341 | rom[0x4916/2] = 0x6000; // rom error | |
| 342 | */ | |
| 343 | } | |
| 344 | ||
| 345 | GAME( 1999?, showhand, 0, astrocorp, showhand, showhand, ROT0, "Astro Corp.", "Show Hand", 0 ) |
| r2241 | r2242 | |
|---|---|---|
| 52 | 52 | |
| 53 | 53 | static WRITE16_HANDLER ( crospang_soundlatch_w ) |
| 54 | 54 | { |
| 55 | if(ACCESSING_ | |
| 55 | if(ACCESSING_ | |
| 56 | 56 | { |
| 57 | 57 | soundlatch_w(machine,0,data & 0xff); |
| 58 | 58 | } |
| r2241 | r2242 | |
|---|---|---|
| 88 | 88 | |
| 89 | 89 | static READ16_HANDLER( es5503_word_lsb_r ) |
| 90 | 90 | { |
| 91 | return (ACCESSING_ | |
| 91 | return (ACCESSING_ | |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | static WRITE16_HANDLER( es5503_word_lsb_w ) |
| 95 | 95 | { |
| 96 | if (ACCESSING_ | |
| 96 | if (ACCESSING_ | |
| 97 | 97 | { |
| 98 | 98 | // 5503 ROM is banked by the output channel (it's a handy 4-bit output from the 5503) |
| 99 | 99 | if (offset < 0xe0) |
| r2241 | r2242 | |
| 116 | 116 | |
| 117 | 117 | static WRITE16_HANDLER( output_w ) |
| 118 | 118 | { |
| 119 | if (ACCESSING_ | |
| 119 | if (ACCESSING_ | |
| 120 | 120 | logerror("%06x:output_w(%x) = %02x\n", activecpu_get_pc(), offset, data); |
| 121 | 121 | } |
| 122 | 122 |
| r2241 | r2242 | |
|---|---|---|
| 186 | 186 | |
| 187 | 187 | dstram = nmk16_mainram; |
| 188 | 188 | |
| 189 | if (!ACCESSING_ | |
| 189 | if (!ACCESSING_ | |
| 190 | 190 | { |
| 191 | 191 | dstram[offset] = (data & 0x00ff) | ((data & 0x00ff)<<8); |
| 192 | 192 | } |
| 193 | else if (!ACCESSING_ | |
| 193 | else if (!ACCESSING_ | |
| 194 | 194 | { |
| 195 | 195 | dstram[offset] = (data & 0xff00) | ((data & 0xff00)>>8); |
| 196 | 196 | } |
| r2241 | r2242 | |
| 280 | 280 | |
| 281 | 281 | static WRITE16_HANDLER ( ssmissin_sound_w ) |
| 282 | 282 | { |
| 283 | if (ACCESSING_ | |
| 283 | if (ACCESSING_ | |
| 284 | 284 | { |
| 285 | 285 | soundlatch_w(machine,0,data & 0xff); |
| 286 | 286 | cpunum_set_input_line(machine, 1,0, HOLD_LINE); |
| r2241 | r2242 | |
| 313 | 313 | { |
| 314 | 314 | /* The MCU is mapped as the top byte for byte accesses only, |
| 315 | 315 | all word accesses are to the input port */ |
| 316 | if (ACCESSING_ | |
| 316 | if (ACCESSING_ | |
| 317 | 317 | { |
| 318 | 318 | static const UINT8 to_main[] = |
| 319 | 319 | { |
| r2241 | r2242 | |
| 340 | 340 | |
| 341 | 341 | static WRITE16_HANDLER( macross2_sound_command_w ) |
| 342 | 342 | { |
| 343 | if (ACCESSING_ | |
| 343 | if (ACCESSING_ | |
| 344 | 344 | soundlatch_w(machine,0,data & 0xff); |
| 345 | 345 | } |
| 346 | 346 | |
| r2241 | r2242 | |
| 376 | 376 | |
| 377 | 377 | static WRITE16_HANDLER( afega_soundlatch_w ) |
| 378 | 378 | { |
| 379 | if (ACCESSING_ | |
| 379 | if (ACCESSING_ | |
| 380 | 380 | { |
| 381 | 381 | soundlatch_w(machine,0,data&0xff); |
| 382 | 382 | cpunum_set_input_line(machine, 1, 0, HOLD_LINE); |
| r2241 | r2242 | |
| 4761 | 4761 | |
| 4762 | 4762 | static DRIVER_INIT( bjtwin ) |
| 4763 | 4763 | { |
| 4764 | DRIVER_INIT_CALL(nmk); | |
| 4765 | 4764 | |
| 4766 | 4765 | /* Patch rom to enable test mode */ |
| 4767 | 4766 | |
| r2241 | r2242 | |
| 4778 | 4777 | * 008F78: 33C3 000F FFFE move.w D3, $ffffe.l |
| 4779 | 4778 | * 008F7E: 207C 000F 9000 movea.l #$f9000, A0 |
| 4780 | 4779 | */ |
| 4780 | #if 0 | |
| 4781 | UINT16 *rom = (UINT16 *)memory_region(REGION_CPU1); | |
| 4782 | rom[0x09172/2] = 0x6006; /* patch checksum error */ | |
| 4783 | rom[0x08f74/2] = 0x4e71; | |
| 4784 | #endif | |
| 4781 | 4785 | |
| 4782 | // data 16_t *rom = (UINT16 *)memory_region(REGION_CPU1); | |
| 4783 | // rom[0x09172/2] = 0x6006; /* patch checksum error */ | |
| 4784 | // rom[0x08f74/2] = 0x4e71); | |
| 4786 | DRIVER_INIT_CALL(nmk); | |
| 4787 | ||
| 4785 | 4788 | } |
| 4786 | 4789 | |
| 4787 | 4790 | /* NO NMK004, it has a PIC instead */ |
| r2241 | r2242 | |
| 4868 | 4871 | |
| 4869 | 4872 | static WRITE16_HANDLER( twinactn_flipscreen_w ) |
| 4870 | 4873 | { |
| 4871 | if (ACCESSING_ | |
| 4874 | if (ACCESSING_ | |
| 4872 | 4875 | flip_screen_set(data & 1); |
| 4873 | 4876 | |
| 4874 | 4877 | if (data & (~1)) |
| r2241 | r2242 | |
| 6271 | 6274 | ROM_LOAD( "9.bpr", 0x0000, 0x0100, CRC(435653a2) SHA1(575b4a46ea65179de3042614da438d2f6d8b572e) ) /* unknown */ |
| 6272 | 6275 | ROM_END |
| 6273 | 6276 | |
| 6277 | ROM_START( bjtwina ) | |
| 6278 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 code */ | |
| 6279 | ROM_LOAD16_BYTE( "93087.1", 0x00000, 0x20000, CRC(c82b3d8e) SHA1(74435ba7842f1be9968006894cfa5eef05c47395) ) | |
| 6280 | ROM_LOAD16_BYTE( "93087.2", 0x00001, 0x20000, CRC(9be1ec47) SHA1(bf37d9254a7bbdf49b006971886ed9845d72e4b3) ) | |
| 6274 | 6281 | |
| 6282 | ROM_REGION( 0x010000, REGION_GFX1, ROMREGION_DISPOSE ) | |
| 6283 | ROM_LOAD( "93087-3.bin", 0x000000, 0x010000, CRC(aa13df7c) SHA1(162d4f12364c68028e86fe97ee75c262daa4c699) ) /* 8x8 tiles */ | |
| 6284 | ||
| 6285 | ROM_REGION( 0x100000, REGION_GFX2, ROMREGION_DISPOSE ) | |
| 6286 | ROM_LOAD( "93087-4.bin", 0x000000, 0x100000, CRC(8a4f26d0) SHA1(be057a2b6d28c623ac1f16cf02ddbe12ca430b4a) ) /* 16x16 tiles */ | |
| 6287 | ||
| 6288 | ROM_REGION( 0x100000, REGION_GFX3, ROMREGION_DISPOSE ) | |
| 6289 | ROM_LOAD16_WORD_SWAP( "93087-5.bin", 0x000000, 0x100000, CRC(bb06245d) SHA1(c91e2284d95370b8ef2eb1b9d6305fdd6cde23a0) ) /* Sprites */ | |
| 6290 | ||
| 6291 | ROM_REGION( 0x140000, REGION_SOUND1, 0 ) /* OKIM6295 samples */ | |
| 6292 | ROM_LOAD( "93087-6.bin", 0x040000, 0x100000, CRC(372d46dd) SHA1(18f44e777241af50787730652fa018c51b65ea15) ) /* all banked */ | |
| 6293 | ||
| 6294 | ROM_REGION( 0x140000, REGION_SOUND2, 0 ) /* OKIM6295 samples */ | |
| 6295 | ROM_LOAD( "93087-7.bin", 0x040000, 0x100000, CRC(8da67808) SHA1(f042574c097f5a8c2684fcc23f2c817c168254ef) ) /* all banked */ | |
| 6296 | ||
| 6297 | ROM_REGION( 0x0200, REGION_PROMS, 0 ) | |
| 6298 | ROM_LOAD( "8.bpr", 0x0000, 0x0100, CRC(633ab1c9) SHA1(acd99fcca41eaab7948ca84988352f1d7d519c61) ) /* unknown */ | |
| 6299 | ROM_LOAD( "9.bpr", 0x0000, 0x0100, CRC(435653a2) SHA1(575b4a46ea65179de3042614da438d2f6d8b572e) ) /* unknown */ | |
| 6300 | ROM_END | |
| 6301 | ||
| 6275 | 6302 | ROM_START( nouryoku ) |
| 6276 | 6303 | ROM_REGION( 0x80000, REGION_CPU1, 0 ) /* 68000 code */ |
| 6277 | 6304 | ROM_LOAD16_BYTE( "ic76.1", 0x00000, 0x40000, CRC(26075988) SHA1(c3d0eef0417be3f78008c026915fd7e2fd589563) ) |
| r2241 | r2242 | |
| 6981 | 7008 | GAME( 1993, bigbang, tdragon2, tdragon2, tdragon2, 0, ROT270, "NMK", "Big Bang (9th Nov. 1993)", GAME_NO_COCKTAIL ) |
| 6982 | 7009 | GAME( 1994, raphero, 0, raphero, raphero, 0, ROT270, "Media Trading Corp", "Rapid Hero (Japan?)", GAME_IMPERFECT_SOUND ) // 23rd July 1993 in test mode, (c)1994 on title screen |
| 6983 | 7010 | |
| 6984 | GAME( 1992, sabotenb, 0, bjtwin, sabotenb, nmk, ROT0, "NMK / Tecmo", "Saboten Bombers (9th Mar. 1992 / set 1)", GAME_NO_COCKTAIL ) | |
| 6985 | GAME( 1992, sabotnba, sabotenb, bjtwin, sabotenb, nmk, ROT0, "NMK / Tecmo", "Saboten Bombers (9th Mar. 1992 / set 2)", GAME_NO_COCKTAIL ) | |
| 6986 | GAME( 1993, bjtwin, 0, bjtwin, bjtwin, bjtwin, ROT270, "NMK", "Bombjack Twin", GAME_NO_COCKTAIL ) | |
| 7011 | /* both sets of both these games show a date of 9th Mar 1992 in the test mode, they look like different revisions so I doubt this is accurate */ | |
| 7012 | GAME( 1992, sabotenb, 0, bjtwin, sabotenb, nmk, ROT0, "NMK / Tecmo", "Saboten Bombers (set 1)", GAME_NO_COCKTAIL ) | |
| 7013 | GAME( 1992, sabotnba, sabotenb, bjtwin, sabotenb, nmk, ROT0, "NMK / Tecmo", "Saboten Bombers (set 2)", GAME_NO_COCKTAIL ) | |
| 7014 | GAME( 1993, bjtwin, 0, bjtwin, bjtwin, bjtwin, ROT270, "NMK", "Bombjack Twin (set 1)", GAME_NO_COCKTAIL ) | |
| 7015 | GAME( 1993, bjtwina, bjtwin, bjtwin, bjtwin, bjtwin, ROT270, "NMK", "Bombjack Twin (set 2)", GAME_NO_COCKTAIL ) | |
| 7016 | ||
| 7017 | ||
| 6987 | 7018 | GAME( 1995, nouryoku, 0, bjtwin, nouryoku, nmk, ROT0, "Tecmo", "Nouryoku Koujou Iinkai", GAME_NO_COCKTAIL ) |
| 6988 | 7019 | |
| 6989 | 7020 | /* Non NMK boards */ |
| r2241 | r2242 | |
|---|---|---|
| 101 | 101 | |
| 102 | 102 | ***************************************************************************/ |
| 103 | 103 | #include "driver.h" |
| 104 | #include "deprecat.h" | |
| 105 | 104 | #include "sound/samples.h" |
| 106 | 105 | #include "m10.h" |
| 107 | 106 | |
| r2241 | r2242 | |
| 139 | 138 | |
| 140 | 139 | static MACHINE_RESET( irem ) |
| 141 | 140 | { |
| 142 | m10_state *state = | |
| 141 | m10_state *state = machine->driver_data; | |
| 143 | 142 | |
| 144 | 143 | state_save_register_global(state->bottomline); |
| 145 | 144 | state_save_register_global(state->flip); |
| r2241 | r2242 | |
| 172 | 171 | |
| 173 | 172 | static WRITE8_HANDLER( m10_ctrl_w ) |
| 174 | 173 | { |
| 175 | m10_state *state = | |
| 174 | m10_state *state = machine->driver_data; | |
| 176 | 175 | |
| 177 | 176 | #if DEBUG |
| 178 | 177 | if (data & 0x40) |
| r2241 | r2242 | |
| 249 | 248 | |
| 250 | 249 | static WRITE8_HANDLER( m11_ctrl_w ) |
| 251 | 250 | { |
| 252 | m10_state *state = | |
| 251 | m10_state *state = machine->driver_data; | |
| 253 | 252 | |
| 254 | 253 | #if DEBUG |
| 255 | 254 | if (data & 0x4C) |
| r2241 | r2242 | |
| 282 | 281 | |
| 283 | 282 | static WRITE8_HANDLER( m15_ctrl_w ) |
| 284 | 283 | { |
| 285 | m10_state *state = | |
| 284 | m10_state *state = machine->driver_data; | |
| 286 | 285 | |
| 287 | 286 | #if DEBUG |
| 288 | 287 | if (data & 0xF0) |
| r2241 | r2242 | |
| 411 | 410 | static READ8_HANDLER( m10_a700_r ) |
| 412 | 411 | { |
| 413 | 412 | //printf("rd:%d\n",video_screen_get_vpos(machine->primary_screen)); |
| 414 | cpunum_set_input_line( | |
| 413 | cpunum_set_input_line(machine, 0, 0, CLEAR_LINE); | |
| 415 | 414 | return 0x00; |
| 416 | 415 | } |
| 417 | 416 |
| r2241 | r2242 | |
|---|---|---|
| 26 | 26 | //============================================================ |
| 27 | 27 | |
| 28 | 28 | #define KEEP_STATISTICS (0) |
| 29 | #define USE_SCALABLE_LOCKS (0) | |
| 29 | 30 | |
| 30 | 31 | |
| 31 | 32 | |
| r2241 | r2242 | |
| 74 | 75 | typedef struct _scalable_lock scalable_lock; |
| 75 | 76 | struct _scalable_lock |
| 76 | 77 | { |
| 78 | #if USE_SCALABLE_LOCKS | |
| 77 | 79 | struct |
| 78 | 80 | { |
| 79 | 81 | volatile INT32 haslock; // do we have the lock? |
| 80 | 82 | INT32 filler[64/4-1]; // assumes a 64-byte cache line |
| 81 | 83 | } slot[WORK_MAX_THREADS]; // one slot per thread |
| 82 | 84 | volatile INT32 nextindex; // index of next slot to use |
| 85 | #else | |
| 86 | CRITICAL_SECTION section; | |
| 87 | #endif | |
| 83 | 88 | }; |
| 84 | 89 | |
| 85 | 90 | |
| r2241 | r2242 | |
| 197 | 202 | INLINE void scalable_lock_init(scalable_lock *lock) |
| 198 | 203 | { |
| 199 | 204 | memset(lock, 0, sizeof(*lock)); |
| 205 | #if USE_SCALABLE_LOCKS | |
| 200 | 206 | lock->slot[0].haslock = TRUE; |
| 207 | #else | |
| 208 | InitializeCriticalSection(&lock->section); | |
| 209 | #endif | |
| 201 | 210 | } |
| 202 | 211 | |
| 203 | 212 | |
| 204 | 213 | INLINE INT32 scalable_lock_acquire(scalable_lock *lock) |
| 205 | 214 | { |
| 215 | #if USE_SCALABLE_LOCKS | |
| 206 | 216 | INT32 myslot = (interlocked_increment(&lock->nextindex) - 1) & (WORK_MAX_THREADS - 1); |
| 207 | 217 | INT32 backoff = 1; |
| 208 | 218 | |
| r2241 | r2242 | |
| 215 | 225 | } |
| 216 | 226 | lock->slot[myslot].haslock = FALSE; |
| 217 | 227 | return myslot; |
| 228 | #else | |
| 229 | EnterCriticalSection(&lock->section); | |
| 230 | return 0; | |
| 231 | #endif | |
| 218 | 232 | } |
| 219 | 233 | |
| 220 | 234 | |
| 221 | 235 | INLINE void scalable_lock_release(scalable_lock *lock, INT32 myslot) |
| 222 | 236 | { |
| 237 | #if USE_SCALABLE_LOCKS | |
| 223 | 238 | interlocked_exchange32(&lock->slot[(myslot + 1) & (WORK_MAX_THREADS - 1)].haslock, TRUE); |
| 239 | #else | |
| 240 | LeaveCriticalSection(&lock->section); | |
| 241 | #endif | |
| 224 | 242 | } |
| 225 | 243 | |
| 226 | 244 |
| r2241 | r2242 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | // MAME output header file |
| 44 | 44 | typedef void running_machine; |
| 45 | #include "osdcomm.h" | |
| 45 | 46 | #include "output.h" |
| 46 | 47 | |
| 47 | 48 |
| r2241 | r2242 | |
|---|---|---|
| 93 | 93 | static UINT64 get_current_pc(UINT32 ref); |
| 94 | 94 | static UINT64 get_cpu_reg(UINT32 ref); |
| 95 | 95 | static void set_cpu_reg(UINT32 ref, UINT64 value); |
| 96 | static void check_watchpoints(int cpunum, int spacenum, int type, offs_t address, | |
| 96 | static void check_watchpoints(int cpunum, int spacenum, int type, offs_t address, | |
| 97 | 97 | static void check_hotspots(int cpunum, int spacenum, offs_t address); |
| 98 | 98 | |
| 99 | 99 | |
| r2241 | r2242 | |
| 209 | 209 | /* loop over CPUs and build up their info */ |
| 210 | 210 | for (cpunum = 0; cpunum < MAX_CPU; cpunum++) |
| 211 | 211 | { |
| 212 | cpu_type cputype = | |
| 212 | cpu_type cputype = machine->config->cpu[cpunum].type; | |
| 213 | 213 | |
| 214 | 214 | /* if this is a dummy, stop looking */ |
| 215 | 215 | if (cputype == CPU_DUMMY) |
| r2241 | r2242 | |
| 1079 | 1079 | standard_debug_hook_read - standard read hook |
| 1080 | 1080 | -------------------------------------------------*/ |
| 1081 | 1081 | |
| 1082 | static void standard_debug_hook_read(int spacenum, | |
| 1082 | static void standard_debug_hook_read(int spacenum, | |
| 1083 | 1083 | { |
| 1084 | 1084 | debug_cpu_info *info = &debug_cpuinfo[memory_hook_cpunum]; |
| 1085 | 1085 | |
| 1086 | 1086 | /* check watchpoints */ |
| 1087 | 1087 | if (info->read_watchpoints) |
| 1088 | check_watchpoints(memory_hook_cpunum, spacenum, WATCHPOINT_READ, address, | |
| 1088 | check_watchpoints(memory_hook_cpunum, spacenum, WATCHPOINT_READ, address, 0 | |
| 1089 | 1089 | |
| 1090 | 1090 | /* check hotspots */ |
| 1091 | 1091 | if (info->hotspots) |
| r2241 | r2242 | |
| 1097 | 1097 | standard_debug_hook_write - standard write hook |
| 1098 | 1098 | -------------------------------------------------*/ |
| 1099 | 1099 | |
| 1100 | static void standard_debug_hook_write(int spacenum, | |
| 1100 | static void standard_debug_hook_write(int spacenum, | |
| 1101 | 1101 | { |
| 1102 | 1102 | debug_cpu_info *info = &debug_cpuinfo[memory_hook_cpunum]; |
| 1103 | 1103 | |
| 1104 | 1104 | /* check watchpoints */ |
| 1105 | 1105 | if (info->write_watchpoints) |
| 1106 | check_watchpoints(memory_hook_cpunum, spacenum, WATCHPOINT_WRITE, address, | |
| 1106 | check_watchpoints(memory_hook_cpunum, spacenum, WATCHPOINT_WRITE, address, | |
| 1107 | 1107 | } |
| 1108 | 1108 | |
| 1109 | 1109 | |
| r2241 | r2242 | |
| 1307 | 1307 | breakpoints for a given CPU and address space |
| 1308 | 1308 | -------------------------------------------------*/ |
| 1309 | 1309 | |
| 1310 | static void check_watchpoints(int cpunum, int spacenum, int type, offs_t address, | |
| 1310 | static void check_watchpoints(int cpunum, int spacenum, int type, offs_t address, | |
| 1311 | 1311 | { |
| 1312 | 1312 | debug_cpu_watchpoint *wp; |
| 1313 | 1313 | UINT64 result; |
| 1314 | offs_t size = 0; | |
| 1314 | 1315 | |
| 1315 | 1316 | /* if we're within debugger code, don't stop */ |
| 1316 | 1317 | if (within_debugger_code) |
| r2241 | r2242 | |
| 1318 | 1319 | |
| 1319 | 1320 | within_debugger_code = TRUE; |
| 1320 | 1321 | |
| 1322 | /* adjust address, size & value_to_write based on mem_mask. */ | |
| 1323 | if( mem_mask != 0 ) | |
| 1324 | { | |
| 1325 | const debug_cpu_info *info = &debug_cpuinfo[cpunum]; | |
| 1326 | int address_offset = 0; | |
| 1327 | int bus_size = info->space[spacenum].databytes; | |
| 1328 | ||
| 1329 | while (address_offset < bus_size && (mem_mask & 0xff) == 0) | |
| 1330 | { | |
| 1331 | address_offset++; | |
| 1332 | value_to_write >>= 8; | |
| 1333 | mem_mask >>= 8; | |
| 1334 | } | |
| 1335 | ||
| 1336 | while (mem_mask != 0) | |
| 1337 | { | |
| 1338 | size++; | |
| 1339 | mem_mask >>= 8; | |
| 1340 | } | |
| 1341 | ||
| 1342 | if (info->endianness == CPU_IS_LE) | |
| 1343 | { | |
| 1344 | address += address_offset; | |
| 1345 | } | |
| 1346 | else | |
| 1347 | { | |
| 1348 | address += bus_size - size - address_offset; | |
| 1349 | } | |
| 1350 | } | |
| 1351 | ||
| 1321 | 1352 | /* if we are a write watchpoint, stash the value that will be written */ |
| 1322 | 1353 | wpaddr = address; |
| 1323 | 1354 | if (type & WATCHPOINT_WRITE) |
| r2241 | r2242 | |
| 1330 | 1361 | /* if we do, evaluate the condition */ |
| 1331 | 1362 | if (wp->condition == NULL || (expression_execute(wp->condition, &result) == EXPRERR_NONE && result)) |
| 1332 | 1363 | { |
| 1333 | static const char *const sizes[] = | |
| 1334 | { | |
| 1335 | "0bytes", "byte", "word", "3bytes", "dword", "5bytes", "6bytes", "7bytes", "qword" | |
| 1336 | }; | |
| 1337 | char buffer[100]; | |
| 1338 | ||
| 1339 | 1364 | /* halt in the debugger by default */ |
| 1340 | 1365 | execution_state = EXECUTION_STATE_STOPPED; |
| 1341 | 1366 | |
| r2241 | r2242 | |
| 1346 | 1371 | /* print a notification, unless the action made us go again */ |
| 1347 | 1372 | if (execution_state == EXECUTION_STATE_STOPPED) |
| 1348 | 1373 | { |
| 1374 | static const char *const sizes[] = | |
| 1375 | { | |
| 1376 | "0bytes", "byte", "word", "3bytes", "dword", "5bytes", "6bytes", "7bytes", "qword" | |
| 1377 | }; | |
| 1378 | char buffer[100]; | |
| 1379 | ||
| 1349 | 1380 | if (type & WATCHPOINT_WRITE) |
| 1350 | 1381 | { |
| 1351 | 1382 | sprintf(buffer, "Stopped at watchpoint %X writing %s to %08X (PC=%X)", wp->index, sizes[size], BYTE2ADDR(address, &debug_cpuinfo[cpunum], spacenum), activecpu_get_pc()); |
| r2241 | r2242 | |
|---|---|---|
| 54 | 54 | TYPE DEFINITIONS |
| 55 | 55 | ***************************************************************************/ |
| 56 | 56 | |
| 57 | typedef void (*debug_hook_read_func)(int spacenum, int size, offs_t address); | |
| 58 | typedef void (*debug_hook_write_func)(int spacenum, int size, offs_t address, UINT64 data); | |
| 57 | typedef void (*debug_hook_read_func)(int spacenum, offs_t address, UINT64 mem_mask); | |
| 58 | typedef void (*debug_hook_write_func)(int spacenum, offs_t address, UINT64 data, UINT64 mem_mask); | |
| 59 | 59 | |
| 60 | 60 | |
| 61 | 61 | typedef struct _debug_trace_info debug_trace_info; |
| r2241 | r2242 | |
|---|---|---|
| 88 | 88 | |
| 89 | 89 | /* print the opening lines */ |
| 90 | 90 | debug_console_printf("MAME new debugger version %s\n", build_version); |
| 91 | debug_console_printf("Currently targeting %s (%s)\n", | |
| 91 | debug_console_printf("Currently targeting %s (%s)\n", machine->gamedrv->name, machine->gamedrv->description); | |
| 92 | 92 | |
| 93 | 93 | /* request callback upon exiting */ |
| 94 | 94 | add_exit_callback(machine, debug_console_exit); |
| r2241 | r2242 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | offs_t cop420_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 15 | 15 | { |
| 16 | int op; | |
| 17 | int cnt = 1; | |
| 18 | UINT16 addr; | |
| 19 | UINT8 op2; | |
| 16 | UINT8 opcode = oprom[0]; | |
| 17 | UINT8 next_opcode = oprom[1]; | |
| 18 | UINT16 address; | |
| 20 | 19 | UINT32 flags = 0; |
| 20 | int bytes = 1; | |
| 21 | 21 | |
| 22 | op = oprom[0]; | |
| 23 | ||
| 24 | if ((op >= 0x80 && op <= 0xBE) || (op >= 0xC0 && op <= 0xFE)) | |
| 22 | if ((opcode >= 0x80 && opcode <= 0xBE) || (opcode >= 0xC0 && opcode <= 0xFE)) | |
| 25 | 23 | { |
| 26 | 24 | if ((pc & 0x3E0) >= 0x80 && (pc & 0x3E0) < 0x100) //JP pages 2,3 |
| 27 | 25 | { |
| 28 | addr = (UINT16)((pc & 0x380) | (op & 0x7F)); | |
| 29 | sprintf(buffer,"JP %x",addr); | |
| 26 | address = (UINT16)((pc & 0x380) | (opcode & 0x7F)); | |
| 27 | sprintf(buffer, "JP %x", address); | |
| 30 | 28 | } |
| 31 | 29 | else |
| 32 | 30 | { |
| 33 | if ((op & 0xC0) == 0xC0) //JP other pages | |
| 31 | if ((opcode & 0xC0) == 0xC0) //JP other pages | |
| 34 | 32 | { |
| 35 | addr = (UINT16)((pc & 0x3C0) | (op & 0x3F)); | |
| 36 | sprintf(buffer,"JP %x",addr); | |
| 33 | address = (UINT16)((pc & 0x3C0) | (opcode & 0x3F)); | |
| 34 | sprintf(buffer, "JP %x", address); | |
| 37 | 35 | } |
| 38 | 36 | else //JSRP |
| 39 | 37 | { |
| 40 | addr = (UINT16)(0x80 | (op & 0x3F)); | |
| 41 | sprintf(buffer,"JSRP %x",addr); | |
| 38 | address = (UINT16)(0x80 | (opcode & 0x3F)); | |
| 39 | sprintf(buffer, "JSRP %x", address); | |
| 42 | 40 | flags = DASMFLAG_STEP_OVER; |
| 43 | 41 | } |
| 44 | 42 | } |
| 45 | 43 | } |
| 46 | else if (op >= 0x08 && op <= 0x0F) | |
| 44 | else if (opcode >= 0x08 && opcode <= 0x0F) | |
| 47 | 45 | { |
| 48 | sprintf(buffer,"LBI 0,%u",((op & 0xF) + 1) & 0xF); | |
| 46 | sprintf(buffer, "LBI 0,%u", ((opcode & 0xF) + 1) & 0xF); | |
| 49 | 47 | } |
| 50 | else if (op >= 0x18 && op <= 0x1F) | |
| 48 | else if (opcode >= 0x18 && opcode <= 0x1F) | |
| 51 | 49 | { |
| 52 | sprintf(buffer,"LBI 1,%u",((op & 0xF) + 1) & 0xF); | |
| 50 | sprintf(buffer, "LBI 1,%u", ((opcode & 0xF) + 1) & 0xF); | |
| 53 | 51 | } |
| 54 | else if (op >= 0x28 && op <= 0x2F) | |
| 52 | else if (opcode >= 0x28 && opcode <= 0x2F) | |
| 55 | 53 | { |
| 56 | sprintf(buffer,"LBI 2,%u",((op & 0xF) + 1) & 0xF); | |
| 54 | sprintf(buffer, "LBI 2,%u", ((opcode & 0xF) + 1) & 0xF); | |
| 57 | 55 | } |
| 58 | else if (op >= 0x38 && op <= 0x3F) | |
| 56 | else if (opcode >= 0x38 && opcode <= 0x3F) | |
| 59 | 57 | { |
| 60 | sprintf(buffer,"LBI 3,%u",((op & 0xF) + 1) & 0xF); | |
| 58 | sprintf(buffer, "LBI 3,%u", ((opcode & 0xF) + 1) & 0xF); | |
| 61 | 59 | } |
| 62 | else if (op >= 0x51 && op <= 0x5F) | |
| 60 | else if (opcode >= 0x51 && opcode <= 0x5F) | |
| 63 | 61 | { |
| 64 | sprintf(buffer,"AISC %u",op & 0xF); | |
| 62 | sprintf(buffer, "AISC %u", opcode & 0xF); | |
| 65 | 63 | } |
| 66 | else if (op >= 0x60 && op <= 0x63) | |
| 64 | else if (opcode >= 0x60 && opcode <= 0x63) | |
| 67 | 65 | { |
| 68 | addr = ((op & 0x03) << 8) | oprom[1]; | |
| 69 | sprintf(buffer,"JMP %x",addr); | |
| 70 | cnt = 2; | |
| 66 | address = ((opcode & 0x03) << 8) | next_opcode; | |
| 67 | sprintf(buffer, "JMP %x", address); | |
| 68 | bytes = 2; | |
| 71 | 69 | } |
| 72 | else if (op >= 0x68 && op <= 0x6B) | |
| 70 | else if (opcode >= 0x68 && opcode <= 0x6B) | |
| 73 | 71 | { |
| 74 | addr = ((op & 0x03) << 8) | oprom[1]; | |
| 75 | sprintf(buffer,"JSR %x",addr); | |
| 72 | address = ((opcode & 0x03) << 8) | next_opcode; | |
| 73 | sprintf(buffer, "JSR %x", address); | |
| 76 | 74 | flags = DASMFLAG_STEP_OVER; |
| 77 | | |
| 75 | bytes = 2; | |
| 78 | 76 | } |
| 79 | else if (op >= 0x70 && op <= 0x7F) | |
| 77 | else if (opcode >= 0x70 && opcode <= 0x7F) | |
| 80 | 78 | { |
| 81 | sprintf(buffer,"STII %u",op & 0xF); | |
| 79 | sprintf(buffer, "STII %u", opcode & 0xF); | |
| 82 | 80 | } |
| 83 | 81 | else |
| 84 | 82 | { |
| 85 | switch (op) | |
| 83 | switch (opcode) | |
| 86 | 84 | { |
| 87 | 85 | case 0: |
| 88 | sprintf(buffer,"CLRA"); | |
| 86 | sprintf(buffer, "CLRA"); | |
| 89 | 87 | break; |
| 90 | 88 | |
| 91 | 89 | case 1: |
| 92 | sprintf(buffer,"SKMBZ 0"); | |
| 90 | sprintf(buffer, "SKMBZ 0"); | |
| 93 | 91 | break; |
| 94 | 92 | |
| 95 | 93 | case 2: |
| 96 | sprintf(buffer,"XOR"); | |
| 94 | sprintf(buffer, "XOR"); | |
| 97 | 95 | break; |
| 98 | 96 | |
| 99 | 97 | case 3: |
| 100 | sprintf(buffer,"SKMBZ 2"); | |
| 98 | sprintf(buffer, "SKMBZ 2"); | |
| 101 | 99 | break; |
| 102 | 100 | |
| 103 | 101 | case 4: |
| 104 | sprintf(buffer,"XIS 0"); | |
| 102 | sprintf(buffer, "XIS 0"); | |
| 105 | 103 | break; |
| 106 | 104 | |
| 107 | 105 | case 5: |
| 108 | sprintf(buffer,"LD 0"); | |
| 106 | sprintf(buffer, "LD 0"); | |
| 109 | 107 | break; |
| 110 | 108 | |
| 111 | 109 | case 6: |
| 112 | sprintf(buffer,"X 0"); | |
| 110 | sprintf(buffer, "X 0"); | |
| 113 | 111 | break; |
| 114 | 112 | |
| 115 | 113 | case 7: |
| 116 | sprintf(buffer,"XDS 0"); | |
| 114 | sprintf(buffer, "XDS 0"); | |
| 117 | 115 | break; |
| 118 | 116 | |
| 119 | 117 | case 0x10: |
| 120 | sprintf(buffer,"CASC"); | |
| 118 | sprintf(buffer, "CASC"); | |
| 121 | 119 | break; |
| 122 | 120 | |
| 123 | 121 | case 0x11: |
| 124 | sprintf(buffer,"SKMBZ 1"); | |
| 122 | sprintf(buffer, "SKMBZ 1"); | |
| 125 | 123 | break; |
| 126 | 124 | |
| 127 | 125 | case 0x12: |
| 128 | sprintf(buffer,"XABR"); | |
| 126 | sprintf(buffer, "XABR"); | |
| 129 | 127 | break; |
| 130 | 128 | |
| 131 | 129 | case 0x13: |
| 132 | sprintf(buffer,"SKMBZ 3"); | |
| 130 | sprintf(buffer, "SKMBZ 3"); | |
| 133 | 131 | break; |
| 134 | 132 | |
| 135 | 133 | case 0x14: |
| 136 | sprintf(buffer,"XIS 1"); | |
| 134 | sprintf(buffer, "XIS 1"); | |
| 137 | 135 | break; |
| 138 | 136 | |
| 139 | 137 | case 0x15: |
| 140 | sprintf(buffer,"LD 1"); | |
| 138 | sprintf(buffer, "LD 1"); | |
| 141 | 139 | break; |
| 142 | 140 | |
| 143 | 141 | case 0x16: |
| 144 | sprintf(buffer,"X 1"); | |
| 142 | sprintf(buffer, "X 1"); | |
| 145 | 143 | break; |
| 146 | 144 | |
| 147 | 145 | case 0x17: |
| 148 | sprintf(buffer,"XDS 1"); | |
| 146 | sprintf(buffer, "XDS 1"); | |
| 149 | 147 | break; |
| 150 | 148 | |
| 151 | 149 | case 0x20: |
| 152 | sprintf(buffer,"SKC"); | |
| 150 | sprintf(buffer, "SKC"); | |
| 153 | 151 | break; |
| 154 | 152 | |
| 155 | 153 | case 0x21: |
| 156 | sprintf(buffer,"SKE"); | |
| 154 | sprintf(buffer, "SKE"); | |
| 157 | 155 | break; |
| 158 | 156 | |
| 159 | 157 | case 0x22: |
| 160 | sprintf(buffer,"SC"); | |
| 158 | sprintf(buffer, "SC"); | |
| 161 | 159 | break; |
| 162 | 160 | |
| 163 | 161 | case 0x23: |
| 164 | addr = (UINT16)(oprom[1] & 0x3F); | |
| 165 | sprintf(buffer,"XAD %x,%x",((addr & 0x30) >> 4),addr & 0x0F); | |
| 166 | cnt = 2; | |
| 162 | bytes = 2; | |
| 163 | ||
| 164 | if (next_opcode <= 0x3f) | |
| 165 | { | |
| 166 | address = (UINT16)(next_opcode & 0x3F); | |
| 167 | sprintf(buffer, "LDD %x,%x", ((address & 0x30) >> 4),address & 0x0F); | |
| 168 | } | |
| 169 | else if (next_opcode >= 0x80 && next_opcode <= 0xbf) | |
| 170 | { | |
| 171 | address = (UINT16)(next_opcode & 0x3F); | |
| 172 | sprintf(buffer, "XAD %x,%x", ((address & 0x30) >> 4),address & 0x0F); | |
| 173 | } | |
| 174 | else | |
| 175 | { | |
| 176 | sprintf(buffer, "Invalid"); | |
| 177 | } | |
| 167 | 178 | break; |
| 168 | 179 | |
| 169 | 180 | case 0x24: |
| 170 | sprintf(buffer,"XIS 2"); | |
| 181 | sprintf(buffer, "XIS 2"); | |
| 171 | 182 | break; |
| 172 | 183 | |
| 173 | 184 | case 0x25: |
| 174 | sprintf(buffer,"LD 2"); | |
| 185 | sprintf(buffer, "LD 2"); | |
| 175 | 186 | break; |
| 176 | 187 | |
| 177 | 188 | case 0x26: |
| 178 | sprintf(buffer,"X 2"); | |
| 189 | sprintf(buffer, "X 2"); | |
| 179 | 190 | break; |
| 180 | 191 | |
| 181 | 192 | case 0x27: |
| 182 | sprintf(buffer,"XDS 2"); | |
| 193 | sprintf(buffer, "XDS 2"); | |
| 183 | 194 | break; |
| 184 | 195 | |
| 185 | 196 | case 0x30: |
| 186 | sprintf(buffer,"ASC"); | |
| 197 | sprintf(buffer, "ASC"); | |
| 187 | 198 | break; |
| 188 | 199 | |
| 189 | 200 | case 0x31: |
| 190 | sprintf(buffer,"ADD"); | |
| 201 | sprintf(buffer, "ADD"); | |
| 191 | 202 | break; |
| 192 | 203 | |
| 193 | 204 | case 0x32: |
| 194 | sprintf(buffer,"RC"); | |
| 205 | sprintf(buffer, "RC"); | |
| 195 | 206 | break; |
| 196 | 207 | |
| 197 | 208 | case 0x33: |
| 198 | op2 = oprom[1]; | |
| 199 | cnt = 2; | |
| 209 | bytes = 2; | |
| 200 | 210 | |
| 201 | if (op | |
| 211 | if (next_opcode >= 0x50 && next_opcode <= 0x5F) | |
| 202 | 212 | { |
| 203 | sprintf(buffer,"OGI %u",op | |
| 213 | sprintf(buffer, "OGI %u", next_opcode & 0xF); | |
| 204 | 214 | } |
| 205 | else if (op | |
| 215 | else if (next_opcode >= 0x60 && next_opcode <= 0x6F) | |
| 206 | 216 | { |
| 207 | sprintf(buffer,"LEI %u",op | |
| 217 | sprintf(buffer, "LEI %u", next_opcode & 0xF); | |
| 208 | 218 | } |
| 209 | else if (op | |
| 219 | else if (next_opcode >= 0x81 && next_opcode <= 0x88) | |
| 210 | 220 | { |
| 211 | sprintf(buffer,"LBI 0,%u",op | |
| 221 | sprintf(buffer, "LBI 0,%u", next_opcode & 0xF); | |
| 212 | 222 | } |
| 213 | else if (op | |
| 223 | else if (next_opcode >= 0x91 && next_opcode <= 0x98) | |
| 214 | 224 | { |
| 215 | sprintf(buffer,"LBI 1,%u",op | |
| 225 | sprintf(buffer, "LBI 1,%u", next_opcode & 0xF); | |
| 216 | 226 | } |
| 217 | else if (op | |
| 227 | else if (next_opcode >= 0xA1 && next_opcode <= 0xA8) | |
| 218 | 228 | { |
| 219 | sprintf(buffer,"LBI 2,%u",op | |
| 229 | sprintf(buffer, "LBI 2,%u", next_opcode & 0xF); | |
| 220 | 230 | } |
| 221 | else if (op | |
| 231 | else if (next_opcode >= 0xB1 && next_opcode <= 0xB8) | |
| 222 | 232 | { |
| 223 | sprintf(buffer,"LBI 3,%u",op | |
| 233 | sprintf(buffer, "LBI 3,%u", next_opcode & 0xF); | |
| 224 | 234 | } |
| 225 | 235 | else |
| 226 | 236 | { |
| 227 | switch (op | |
| 237 | switch (next_opcode) | |
| 228 | 238 | { |
| 229 | 239 | case 0x00: |
| 230 | sprintf(buffer,"INIL"); | |
| 240 | sprintf(buffer, "INIL"); | |
| 231 | 241 | break; |
| 232 | 242 | |
| 233 | 243 | case 0x01: |
| 234 | sprintf(buffer,"SKGBZ 0"); | |
| 244 | sprintf(buffer, "SKGBZ 0"); | |
| 235 | 245 | break; |
| 236 | 246 | |
| 237 | 247 | case 0x03: |
| 238 | sprintf(buffer,"SKGBZ 2"); | |
| 248 | sprintf(buffer, "SKGBZ 2"); | |
| 239 | 249 | break; |
| 240 | 250 | |
| 241 | 251 | case 0x11: |
| 242 | sprintf(buffer,"SKGBZ 1"); | |
| 252 | sprintf(buffer, "SKGBZ 1"); | |
| 243 | 253 | break; |
| 244 | 254 | |
| 245 | 255 | case 0x13: |
| 246 | sprintf(buffer,"SKGBZ 3"); | |
| 256 | sprintf(buffer, "SKGBZ 3"); | |
| 247 | 257 | break; |
| 248 | 258 | |
| 249 | 259 | case 0x21: |
| 250 | sprintf(buffer,"SKGZ"); | |
| 260 | sprintf(buffer, "SKGZ"); | |
| 251 | 261 | break; |
| 252 | 262 | |
| 253 | 263 | case 0x28: |
| 254 | sprintf(buffer,"ININ"); | |
| 264 | sprintf(buffer, "ININ"); | |
| 255 | 265 | break; |
| 256 | 266 | |
| 257 | 267 | case 0x2A: |
| 258 | sprintf(buffer,"ING"); | |
| 268 | sprintf(buffer, "ING"); | |
| 259 | 269 | break; |
| 260 | 270 | |
| 261 | 271 | case 0x2C: |
| 262 | sprintf(buffer,"COMA"); | |
| 272 | sprintf(buffer, "COMA"); | |
| 263 | 273 | break; |
| 264 | 274 | |
| 265 | 275 | case 0x2E: |
| 266 | sprintf(buffer,"INL"); | |
| 276 | sprintf(buffer, "INL"); | |
| 267 | 277 | break; |
| 268 | 278 | |
| 269 | 279 | case 0x3A: |
| 270 | sprintf(buffer,"OMG"); | |
| 280 | sprintf(buffer, "OMG"); | |
| 271 | 281 | break; |
| 272 | 282 | |
| 273 | 283 | case 0x3C: |
| 274 | sprintf(buffer,"CAMQ"); | |
| 284 | sprintf(buffer, "CAMQ"); | |
| 275 | 285 | break; |
| 276 | 286 | |
| 277 | 287 | case 0x3E: |
| 278 | sprintf(buffer,"OBD"); | |
| 288 | sprintf(buffer, "OBD"); | |
| 279 | 289 | break; |
| 280 | 290 | |
| 281 | 291 | default: |
| 282 | sprintf(buffer,"Invalid"); | |
| 292 | sprintf(buffer, "Invalid"); | |
| 283 | 293 | break; |
| 284 | 294 | } |
| 285 | 295 | } |
| 286 | 296 | break; |
| 287 | 297 | |
| 288 | 298 | case 0x34: |
| 289 | sprintf(buffer,"XIS 3"); | |
| 299 | sprintf(buffer, "XIS 3"); | |
| 290 | 300 | break; |
| 291 | 301 | |
| 292 | 302 | case 0x35: |
| 293 | sprintf(buffer,"LD 3"); | |
| 303 | sprintf(buffer, "LD 3"); | |
| 294 | 304 | break; |
| 295 | 305 | |
| 296 | 306 | case 0x36: |
| 297 | sprintf(buffer,"X 3"); | |
| 307 | sprintf(buffer, "X 3"); | |
| 298 | 308 | break; |
| 299 | 309 | |
| 300 | 310 | case 0x37: |
| 301 | sprintf(buffer,"XDS 3"); | |
| 311 | sprintf(buffer, "XDS 3"); | |
| 302 | 312 | break; |
| 303 | 313 | |
| 304 | 314 | case 0x40: |
| 305 | sprintf(buffer,"COMP"); | |
| 315 | sprintf(buffer, "COMP"); | |
| 306 | 316 | break; |
| 307 | 317 | |
| 308 | 318 | case 0x41: |
| 309 | sprintf(buffer,"SKT"); | |
| 319 | sprintf(buffer, "SKT"); | |
| 310 | 320 | break; |
| 311 | 321 | |
| 312 | 322 | case 0x42: |
| 313 | sprintf(buffer,"RMB 2"); | |
| 323 | sprintf(buffer, "RMB 2"); | |
| 314 | 324 | break; |
| 315 | 325 | |
| 316 | 326 | case 0x43: |
| 317 | sprintf(buffer,"RMB 3"); | |
| 327 | sprintf(buffer, "RMB 3"); | |
| 318 | 328 | break; |
| 319 | 329 | |
| 320 | 330 | case 0x44: |
| 321 | sprintf(buffer,"NOP"); | |
| 331 | sprintf(buffer, "NOP"); | |
| 322 | 332 | break; |
| 323 | 333 | |
| 324 | 334 | case 0x45: |
| 325 | sprintf(buffer,"RMB 1"); | |
| 335 | sprintf(buffer, "RMB 1"); | |
| 326 | 336 | break; |
| 327 | 337 | |
| 328 | 338 | case 0x46: |
| 329 | sprintf(buffer,"SMB 2"); | |
| 339 | sprintf(buffer, "SMB 2"); | |
| 330 | 340 | break; |
| 331 | 341 | |
| 332 | 342 | case 0x47: |
| 333 | sprintf(buffer,"SMB 1"); | |
| 343 | sprintf(buffer, "SMB 1"); | |
| 334 | 344 | break; |
| 335 | 345 | |
| 336 | 346 | case 0x48: |
| 337 | sprintf(buffer,"RET"); | |
| 347 | sprintf(buffer, "RET"); | |
| 338 | 348 | flags = DASMFLAG_STEP_OUT; |
| 339 | 349 | break; |
| 340 | 350 | |
| 341 | 351 | case 0x49: |
| 342 | sprintf(buffer,"RETSK"); | |
| 352 | sprintf(buffer, "RETSK"); | |
| 343 | 353 | flags = DASMFLAG_STEP_OUT; |
| 344 | 354 | break; |
| 345 | 355 | |
| 346 | 356 | case 0x4A: |
| 347 | sprintf(buffer,"ADT"); | |
| 357 | sprintf(buffer, "ADT"); | |
| 348 | 358 | break; |
| 349 | 359 | |
| 350 | 360 | case 0x4B: |
| 351 | sprintf(buffer,"SMB 3"); | |
| 361 | sprintf(buffer, "SMB 3"); | |
| 352 | 362 | break; |
| 353 | 363 | |
| 354 | 364 | case 0x4C: |
| 355 | sprintf(buffer,"RMB 0"); | |
| 365 | sprintf(buffer, "RMB 0"); | |
| 356 | 366 | break; |
| 357 | 367 | |
| 358 | 368 | case 0x4D: |
| 359 | sprintf(buffer,"SMB 0"); | |
| 369 | sprintf(buffer, "SMB 0"); | |
| 360 | 370 | break; |
| 361 | 371 | |
| 362 | 372 | case 0x4E: |
| 363 | sprintf(buffer,"CBA"); | |
| 373 | sprintf(buffer, "CBA"); | |
| 364 | 374 | break; |
| 365 | 375 | |
| 366 | 376 | case 0x4F: |
| 367 | sprintf(buffer,"XAS"); | |
| 377 | sprintf(buffer, "XAS"); | |
| 368 | 378 | break; |
| 369 | 379 | |
| 370 | 380 | case 0x50: |
| 371 | sprintf(buffer,"CAB"); | |
| 381 | sprintf(buffer, "CAB"); | |
| 372 | 382 | break; |
| 373 | 383 | |
| 374 | 384 | case 0xBF: |
| 375 | sprintf(buffer,"LQID"); | |
| 385 | sprintf(buffer, "LQID"); | |
| 376 | 386 | break; |
| 377 | 387 | |
| 378 | 388 | case 0xFF: |
| 379 | sprintf(buffer,"JID"); | |
| 389 | sprintf(buffer, "JID"); | |
| 380 | 390 | break; |
| 381 | 391 | |
| 382 | 392 | default: |
| 383 | sprintf(buffer,"Invalid"); | |
| 393 | sprintf(buffer, "Invalid"); | |
| 384 | 394 | break; |
| 385 | 395 | } |
| 386 | 396 | } |
| 387 | 397 | |
| 388 | return | |
| 398 | return bytes | flags | DASMFLAG_SUPPORTED; | |
| 389 | 399 | } |
| r2241 | r2242 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | #define ROM(A) cpu_readop(A) | |
| 13 | #define RAM_W(A,V) (data_write_byte_8(A,V)) | |
| 14 | #define RAM_R(A) (data_read_byte_8(A)) | |
| 12 | #define INSTRUCTION(mnemonic) INLINE void (mnemonic)(UINT8 opcode) | |
| 15 | 13 | |
| 16 | #define IN(A) io_read_byte_8(A) | |
| 17 | #define OUT(A,V) io_write_byte_8(A,V) | |
| 14 | #define ROM(addr) cpu_readop(addr) | |
| 15 | #define RAM_W(addr, value) (data_write_byte_8(addr, value)) | |
| 16 | #define RAM_R(addr) (data_read_byte_8(addr)) | |
| 18 | 17 | |
| 18 | #define IN(addr) io_read_byte_8(addr) | |
| 19 | #define OUT(addr, value) io_write_byte_8(addr, value) | |
| 20 | ||
| 19 | 21 | #define A R.A |
| 20 | 22 | #define B R.B |
| 21 | 23 | #define C R.C |
| r2241 | r2242 | |
| 31 | 33 | #define skip R.skip |
| 32 | 34 | #define skipLBI R.skipLBI |
| 33 | 35 | |
| 34 | #define READ_M RAM_R(B) | |
| 35 | #define WRITE_M(VAL) RAM_W(B,VAL) | |
| 36 | ||
| 37 | 36 | #define IN_G() IN(COP400_PORT_G) |
| 38 | 37 | #define IN_L() IN(COP400_PORT_L) |
| 38 | #define IN_SI() IN(COP400_PORT_SIO) | |
| 39 | 39 | #define OUT_G(A) OUT(COP400_PORT_G, (A) & R.G_mask) |
| 40 | 40 | #define OUT_L(A) OUT(COP400_PORT_L, (A)) |
| 41 | 41 | #define OUT_D(A) OUT(COP400_PORT_D, (A) & R.D_mask) |
| 42 | #define OUT_SK(A) OUT(COP400_PORT_SK,A) | |
| 42 | #define OUT_SK(A) OUT(COP400_PORT_SK, (A)) | |
| 43 | #define OUT_SO(A) OUT(COP400_PORT_SIO, (A)) | |
| 43 | 44 | |
| 44 | 45 | #ifndef PUSH |
| 45 | 46 | #define PUSH(addr) { SB = SA; SA = addr; } |
| 46 | 47 | #define POP() { PC = SA; SA = SB; } |
| 47 | 48 | #endif |
| 48 | 49 | |
| 49 | INLINE void illegal(void) | |
| 50 | { | |
| 51 | logerror("ICOP400: PC = %04x, Illegal opcode = %02x\n", PC-1, ROM(PC-1)); | |
| 52 | } | |
| 50 | /* Serial I/O */ | |
| 53 | 51 | |
| 54 | ||
| 52 | stat | |
| 55 | 53 | { |
| 56 | ||
| 54 | ||
| 57 | 55 | |
| 58 | if (EN & 0x01) | |
| 56 | cpuintrf_push_context(cpunum); | |
| 57 | ||
| 58 | if (BIT(EN, 0)) | |
| 59 | 59 | { |
| 60 | /* SIO is a binary counter */ | |
| 61 | ||
| 62 | // serial input | |
| 63 | ||
| 64 | int si = IN_SI(); | |
| 65 | ||
| 66 | if (R.last_si && !si) | |
| 67 | { | |
| 68 | SIO--; | |
| 69 | SIO &= 0x0f; | |
| 70 | } | |
| 71 | ||
| 72 | R.last_si = si; | |
| 73 | ||
| 74 | // serial output | |
| 75 | ||
| 76 | OUT_SO(BIT(EN, 3)); | |
| 77 | ||
| 78 | // serial clock | |
| 79 | ||
| 60 | 80 | OUT_SK(SKL); |
| 61 | 81 | } |
| 62 | 82 | else |
| 63 | 83 | { |
| 64 | // NOT IMPLEMENTED | |
| 65 | OUT_SK(SKL); | |
| 84 | /* SIO is a shift register */ | |
| 85 | ||
| 86 | // serial output | |
| 87 | ||
| 88 | if (BIT(EN, 3)) | |
| 89 | { | |
| 90 | OUT_SO(BIT(SIO, 3)); | |
| 91 | } | |
| 92 | else | |
| 93 | { | |
| 94 | OUT_SO(0); | |
| 95 | } | |
| 96 | ||
| 97 | SIO <<= 1; | |
| 98 | ||
| 99 | // serial input | |
| 100 | ||
| 101 | SIO = (SIO & 0x0e) | BIT(IN_SI(), 0); | |
| 102 | ||
| 103 | // serial clock | |
| 104 | ||
| 105 | if (SKL) | |
| 106 | { | |
| 107 | OUT_SK(1); | |
| 108 | } | |
| 109 | else | |
| 110 | { | |
| 111 | OUT_SK(0); | |
| 112 | } | |
| 66 | 113 | } |
| 114 | ||
| 115 | cpuintrf_pop_context(); | |
| 67 | 116 | } |
| 68 | 117 | |
| 69 | 118 | INLINE void WRITE_Q(UINT8 data) |
| 70 | 119 | { |
| 71 | 120 | Q = data; |
| 72 | 121 | |
| 73 | if (EN | |
| 122 | if (BIT(EN, 2) | |
| 74 | 123 | { |
| 75 | 124 | OUT_L(Q); |
| 76 | 125 | } |
| r2241 | r2242 | |
| 82 | 131 | OUT_G(G); |
| 83 | 132 | } |
| 84 | 133 | |
| 85 | INLINE void add(void) { A = (A + RAM_R(B)) & 0x0F; } | |
| 134 | INSTRUCTION(illegal) | |
| 135 | { | |
| 136 | logerror("COP400: PC = %04x, Illegal opcode = %02x\n", PC-1, ROM(PC-1)); | |
| 137 | } | |
| 86 | 138 | |
| 87 | INLINE void asc(void) | |
| 139 | /* Arithmetic Instructions */ | |
| 140 | ||
| 141 | /* | |
| 142 | ||
| 143 | Mnemonic: ASC | |
| 144 | ||
| 145 | Hex Code: 30 | |
| 146 | Binary: 0 0 1 1 0 0 0 0 | |
| 147 | ||
| 148 | Data Flow: A + C + RAM(B) -> A | |
| 149 | Carry -> C | |
| 150 | ||
| 151 | Skip Conditions: Carry | |
| 152 | ||
| 153 | Description: Add with Carry, Skip on Carry | |
| 154 | ||
| 155 | */ | |
| 156 | ||
| 157 | INSTRUCTION(asc) | |
| 88 | 158 | { |
| 89 | 159 | A = A + C + RAM_R(B); |
| 90 | 160 | |
| r2241 | r2242 | |
| 100 | 170 | } |
| 101 | 171 | } |
| 102 | 172 | |
| 103 | INLINE void AISC(int y) | |
| 173 | /* | |
| 174 | ||
| 175 | Mnemonic: ADD | |
| 176 | ||
| 177 | Hex Code: 31 | |
| 178 | Binary: 0 0 1 1 0 0 0 1 | |
| 179 | ||
| 180 | Data Flow: A + RAM(B) -> A | |
| 181 | ||
| 182 | Description: Add RAM to A | |
| 183 | ||
| 184 | */ | |
| 185 | ||
| 186 | INSTRUCTION(add) | |
| 104 | 187 | { |
| 188 | A = (A + RAM_R(B)) & 0x0F; | |
| 189 | } | |
| 190 | ||
| 191 | /* | |
| 192 | ||
| 193 | Mnemonic: AISC | |
| 194 | ||
| 195 | Operand: y | |
| 196 | Hex Code: 5- | |
| 197 | Binary: 0 1 0 1 y3 y2 y1 y0 | |
| 198 | ||
| 199 | Data Flow: A + y -> A | |
| 200 | ||
| 201 | Skip Conditions: Carry | |
| 202 | ||
| 203 | Description: Add Immediate, Skip on Carry (y != 0) | |
| 204 | ||
| 205 | */ | |
| 206 | ||
| 207 | INSTRUCTION(aisc) | |
| 208 | { | |
| 209 | UINT4 y = opcode & 0x0f; | |
| 210 | ||
| 105 | 211 | A = A + y; |
| 106 | 212 | |
| 107 | if (A > 0x | |
| 213 | if (A > 0x0f) | |
| 108 | 214 | { |
| 109 | 215 | skip = 1; |
| 110 | 216 | A &= 0xF; |
| 111 | 217 | } |
| 112 | 218 | } |
| 113 | 219 | |
| 114 | INLINE void aisc1(void) { AISC(0x1); } | |
| 115 | INLINE void aisc2(void) { AISC(0x2); } | |
| 116 | INLINE void aisc3(void) { AISC(0x3); } | |
| 117 | INLINE void aisc4(void) { AISC(0x4); } | |
| 118 | INLINE void aisc5(void) { AISC(0x5); } | |
| 119 | INLINE void aisc6(void) { AISC(0x6); } | |
| 120 | INLINE void aisc7(void) { AISC(0x7); } | |
| 121 | INLINE void aisc8(void) { AISC(0x8); } | |
| 122 | INLINE void aisc9(void) { AISC(0x9); } | |
| 123 | INLINE void aisc10(void) { AISC(0xA); } | |
| 124 | INLINE void aisc11(void) { AISC(0xB); } | |
| 125 | INLINE void aisc12(void) { AISC(0xC); } | |
| 126 | INLINE void aisc13(void) { AISC(0xD); } | |
| 127 | INLINE void aisc14(void) { AISC(0xE); } | |
| 128 | INLINE void aisc15(void) { AISC(0xF); } | |
| 220 | /* | |
| 129 | 221 | |
| 130 | ||
| 222 | ||
| 131 | 223 | |
| 132 | INLINE void camq(void) { WRITE_Q((A << 4) | READ_M); } | |
| 224 | Hex Code: 00 | |
| 225 | Binary: 0 0 0 0 0 0 0 0 | |
| 133 | 226 | |
| 134 | ||
| 227 | ||
| 135 | 228 | |
| 136 | ||
| 229 | ||
| 137 | 230 | |
| 138 | ||
| 231 | */ | |
| 139 | 232 | |
| 140 | INLINE void ing(void) { A = IN_G(); } | |
| 233 | INSTRUCTION(clra) | |
| 234 | { | |
| 235 | A = 0; | |
| 236 | } | |
| 141 | 237 | |
| 142 | INLINE void inl(void) | |
| 238 | /* | |
| 239 | ||
| 240 | Mnemonic: COMP | |
| 241 | ||
| 242 | Hex Code: 40 | |
| 243 | Binary: 0 1 0 0 0 0 0 0 | |
| 244 | ||
| 245 | Data Flow: ~A -> A | |
| 246 | ||
| 247 | Description: Ones Complement of A to A | |
| 248 | ||
| 249 | */ | |
| 250 | ||
| 251 | INSTRUCTION(comp) | |
| 143 | 252 | { |
| 144 | UINT8 L = IN_L(); | |
| 145 | RAM_W(B, L >> 4); | |
| 146 | A = L & 0xF; | |
| 253 | A = A ^ 0xF; | |
| 147 | 254 | } |
| 148 | 255 | |
| 149 | INLINE void jid(void) | |
| 256 | /* | |
| 257 | ||
| 258 | Mnemonic: NOP | |
| 259 | ||
| 260 | Hex Code: 44 | |
| 261 | Binary: 0 1 0 0 0 1 0 0 | |
| 262 | ||
| 263 | Description: No Operation | |
| 264 | ||
| 265 | */ | |
| 266 | ||
| 267 | INSTRUCTION(nop) | |
| 150 | 268 | { |
| 151 | UINT16 addr = (PC & 0x300) | (A << 4) | READ_M; | |
| 269 | // do nothing | |
| 270 | } | |
| 271 | ||
| 272 | /* | |
| 273 | ||
| 274 | Mnemonic: RC | |
| 275 | ||
| 276 | Hex Code: 32 | |
| 277 | Binary: 0 0 1 1 0 0 1 0 | |
| 278 | ||
| 279 | Data Flow: "0" -> C | |
| 280 | ||
| 281 | Description: Reset C | |
| 282 | ||
| 283 | */ | |
| 284 | ||
| 285 | INSTRUCTION(rc) | |
| 286 | { | |
| 287 | C = 0; | |
| 288 | } | |
| 289 | ||
| 290 | /* | |
| 291 | ||
| 292 | Mnemonic: SC | |
| 293 | ||
| 294 | Hex Code: 22 | |
| 295 | Binary: 0 0 1 0 0 0 1 0 | |
| 296 | ||
| 297 | Data Flow: "1" -> C | |
| 298 | ||
| 299 | Description: Set C | |
| 300 | ||
| 301 | */ | |
| 302 | ||
| 303 | INSTRUCTION(sc) | |
| 304 | { | |
| 305 | C = 1; | |
| 306 | } | |
| 307 | ||
| 308 | /* | |
| 309 | ||
| 310 | Mnemonic: XOR | |
| 311 | ||
| 312 | Hex Code: 02 | |
| 313 | Binary: 0 0 0 0 0 0 1 0 | |
| 314 | ||
| 315 | Data Flow: A ^ RAM(B) -> A | |
| 316 | ||
| 317 | Description: Exclusive-OR RAM with A | |
| 318 | ||
| 319 | */ | |
| 320 | ||
| 321 | INSTRUCTION(xor) | |
| 322 | { | |
| 323 | A = A ^ RAM_R(B); | |
| 324 | } | |
| 325 | ||
| 326 | /* Transfer-of-Control Instructions */ | |
| 327 | ||
| 328 | /* | |
| 329 | ||
| 330 | Mnemonic: JID | |
| 331 | ||
| 332 | Hex Code: FF | |
| 333 | Binary: 1 1 1 1 1 1 1 1 | |
| 334 | ||
| 335 | Data Flow: ROM(PC9:8,A,M) -> PC7:0 | |
| 336 | ||
| 337 | Description: Jump Indirect | |
| 338 | ||
| 339 | */ | |
| 340 | ||
| 341 | INSTRUCTION(jid) | |
| 342 | { | |
| 343 | UINT16 addr = (PC & 0x300) | (A << 4) | RAM_R(B); | |
| 152 | 344 | PC = (PC & 0x300) | ROM(addr); |
| 153 | 345 | } |
| 154 | 346 | |
| 155 | INLINE void JMP(UINT8 a8) | |
| 347 | /* | |
| 348 | ||
| 349 | Mnemonic: JMP | |
| 350 | ||
| 351 | Operand: a | |
| 352 | Hex Code: 6- -- | |
| 353 | Binary: 0 1 1 0 0 0 a9 a8 a7 a6 a5 a4 a3 a2 a1 a0 | |
| 354 | ||
| 355 | Data Flow: a -> PC | |
| 356 | ||
| 357 | Description: Jump | |
| 358 | ||
| 359 | */ | |
| 360 | ||
| 361 | INSTRUCTION(jmp) | |
| 156 | 362 | { |
| 157 | PC = (a8 << 8) | ROM(PC); | |
| 363 | UINT16 a = ((opcode & 0x03) << 8) | ROM(PC); | |
| 364 | ||
| 365 | PC = a; | |
| 158 | 366 | } |
| 159 | 367 | |
| 160 | INLINE void jmp0(void) { JMP(0); } | |
| 161 | INLINE void jmp1(void) { JMP(1); } | |
| 162 | INLINE void jmp2(void) { JMP(2); } | |
| 163 | INLINE void jmp3(void) { JMP(3); } | |
| 368 | /* | |
| 164 | 369 | |
| 165 | INLINE void jp(void) | |
| 370 | Mnemonic: JP | |
| 371 | ||
| 372 | Operand: a | |
| 373 | Hex Code: -- | |
| 374 | Binary: 1 a6 a5 a4 a3 a2 a1 a0 | |
| 375 | (pages 2,3 only) | |
| 376 | ||
| 377 | 1 1 a5 a4 a3 a2 a1 a0 | |
| 378 | (all other pages) | |
| 379 | ||
| 380 | Data Flow: a -> PC6:0 | |
| 381 | ||
| 382 | a -> PC5:0 | |
| 383 | ||
| 384 | Description: Jump within Page | |
| 385 | ||
| 386 | */ | |
| 387 | ||
| 388 | INSTRUCTION(jp) | |
| 166 | 389 | { |
| 167 | UINT | |
| 390 | UINT4 | |
| 168 | 391 | |
| 169 | if ( | |
| 392 | if (page | |
| 170 | 393 | { |
| 171 | PC = (UINT16)((PC & 0x380) | (op & 0x7F)); | |
| 394 | UINT8 a = opcode & 0x7f; | |
| 395 | PC = (PC & 0x380) | a; | |
| 172 | 396 | } |
| 397 | else if ((opcode & 0xc0) == 0xc0) | |
| 398 | { | |
| 399 | UINT8 a = opcode & 0x3f; | |
| 400 | PC = (PC & 0x3c0) | a; | |
| 401 | } | |
| 173 | 402 | else |
| 174 | 403 | { |
| 175 | if ((op & 0xC0) == 0xC0) //JP other pages | |
| 176 | { | |
| 177 | PC = (UINT16)((PC & 0x3C0) | (op & 0x3F)); | |
| 178 | } | |
| 179 | else //JSRP | |
| 180 | { | |
| 181 | PUSH((UINT16)(PC)); | |
| 182 | PC = (UINT16)(0x80 | (op & 0x3F)); | |
| 183 | } | |
| 404 | // JSRP | |
| 405 | UINT8 a = opcode & 0x3f; | |
| 406 | PUSH(PC + 1); | |
| 407 | PC = 0x80 | a; | |
| 184 | 408 | } |
| 185 | 409 | } |
| 186 | 410 | |
| 187 | INLINE void JSR(UINT8 a8) | |
| 411 | /* | |
| 412 | ||
| 413 | Mnemonic: JSR | |
| 414 | ||
| 415 | Operand: a | |
| 416 | Hex Code: 6- -- | |
| 417 | Binary: 0 1 1 0 1 0 a9 a8 a7 a6 a5 a4 a3 a2 a1 a0 | |
| 418 | ||
| 419 | Data Flow: PC + 1 -> SA -> SB -> SC | |
| 420 | a -> PC | |
| 421 | ||
| 422 | Description: Jump to Subroutine | |
| 423 | ||
| 424 | */ | |
| 425 | ||
| 426 | INSTRUCTION(jsr) | |
| 188 | 427 | { |
| 428 | UINT16 a = ((opcode & 0x03) << 8) | ROM(PC); | |
| 429 | ||
| 189 | 430 | PUSH(PC + 1); |
| 190 | PC = | |
| 431 | PC = | |
| 191 | 432 | } |
| 192 | 433 | |
| 193 | INLINE void jsr0(void) { JSR(0); } | |
| 194 | INLINE void jsr1(void) { JSR(1); } | |
| 195 | INLINE void jsr2(void) { JSR(2); } | |
| 196 | INLINE void jsr3(void) { JSR(3); } | |
| 434 | /* | |
| 197 | 435 | |
| 198 | INLINE void LD(UINT8 r) | |
| 436 | Mnemonic: RET | |
| 437 | ||
| 438 | Hex Code: 48 | |
| 439 | Binary: 0 1 0 0 1 0 0 0 | |
| 440 | ||
| 441 | Data Flow: SC -> SB -> SA -> PC | |
| 442 | ||
| 443 | Description: Return from Subroutine | |
| 444 | ||
| 445 | */ | |
| 446 | ||
| 447 | INSTRUCTION(ret) | |
| 199 | 448 | { |
| 200 | A = RAM_R(B); | |
| 201 | B = B ^ (r << 4); | |
| 449 | POP(); | |
| 202 | 450 | } |
| 203 | 451 | |
| 204 | INLINE void ld0(void) { LD(0); } | |
| 205 | INLINE void ld1(void) { LD(1); } | |
| 206 | INLINE void ld2(void) { LD(2); } | |
| 207 | INLINE void ld3(void) { LD(3); } | |
| 452 | /* | |
| 208 | 453 | |
| 209 | INLINE void LBI(UINT8 r, UINT8 d) | |
| 454 | Mnemonic: RETSK | |
| 455 | ||
| 456 | Hex Code: 49 | |
| 457 | Binary: 0 1 0 0 1 0 0 1 | |
| 458 | ||
| 459 | Data Flow: SC -> SB -> SA -> PC | |
| 460 | ||
| 461 | Skip Conditions: Always Skip on Return | |
| 462 | ||
| 463 | Description: Return from Subroutine then Skip | |
| 464 | ||
| 465 | */ | |
| 466 | ||
| 467 | INSTRUCTION(retsk) | |
| 210 | 468 | { |
| 211 | B = (r << 4) | d; | |
| 212 | skipLBI = 1; | |
| 469 | POP(); | |
| 470 | skip = 1; | |
| 213 | 471 | } |
| 214 | 472 | |
| 215 | INLINE void lbi0_0(void) { LBI(0,0); } | |
| 216 | INLINE void lbi0_1(void) { LBI(0,1); } | |
| 217 | INLINE void lbi0_2(void) { LBI(0,2); } | |
| 218 | INLINE void lbi0_3(void) { LBI(0,3); } | |
| 219 | INLINE void lbi0_4(void) { LBI(0,4); } | |
| 220 | INLINE void lbi0_5(void) { LBI(0,5); } | |
| 221 | INLINE void lbi0_6(void) { LBI(0,6); } | |
| 222 | INLINE void lbi0_7(void) { LBI(0,7); } | |
| 223 | INLINE void lbi0_8(void) { LBI(0,8); } | |
| 224 | INLINE void lbi0_9(void) { LBI(0,9); } | |
| 225 | INLINE void lbi0_10(void) { LBI(0,10); } | |
| 226 | INLINE void lbi0_11(void) { LBI(0,11); } | |
| 227 | INLINE void lbi0_12(void) { LBI(0,12); } | |
| 228 | INLINE void lbi0_13(void) { LBI(0,13); } | |
| 229 | INLINE void lbi0_14(void) { LBI(0,14); } | |
| 230 | INLINE void lbi0_15(void) { LBI(0,15); } | |
| 473 | /* Memory Reference Instructions */ | |
| 231 | 474 | |
| 232 | INLINE void lbi1_0(void) { LBI(1,0); } | |
| 233 | INLINE void lbi1_1(void) { LBI(1,1); } | |
| 234 | INLINE void lbi1_2(void) { LBI(1,2); } | |
| 235 | INLINE void lbi1_3(void) { LBI(1,3); } | |
| 236 | INLINE void lbi1_4(void) { LBI(1,4); } | |
| 237 | INLINE void lbi1_5(void) { LBI(1,5); } | |
| 238 | INLINE void lbi1_6(void) { LBI(1,6); } | |
| 239 | INLINE void lbi1_7(void) { LBI(1,7); } | |
| 240 | INLINE void lbi1_8(void) { LBI(1,8); } | |
| 241 | INLINE void lbi1_9(void) { LBI(1,9); } | |
| 242 | INLINE void lbi1_10(void) { LBI(1,10); } | |
| 243 | INLINE void lbi1_11(void) { LBI(1,11); } | |
| 244 | INLINE void lbi1_12(void) { LBI(1,12); } | |
| 245 | INLINE void lbi1_13(void) { LBI(1,13); } | |
| 246 | INLINE void lbi1_14(void) { LBI(1,14); } | |
| 247 | INLINE void lbi1_15(void) { LBI(1,15); } | |
| 475 | /* | |
| 248 | 476 | |
| 249 | INLINE void lbi2_0(void) { LBI(2,0); } | |
| 250 | INLINE void lbi2_1(void) { LBI(2,1); } | |
| 251 | INLINE void lbi2_2(void) { LBI(2,2); } | |
| 252 | INLINE void lbi2_3(void) { LBI(2,3); } | |
| 253 | INLINE void lbi2_4(void) { LBI(2,4); } | |
| 254 | INLINE void lbi2_5(void) { LBI(2,5); } | |
| 255 | INLINE void lbi2_6(void) { LBI(2,6); } | |
| 256 | INLINE void lbi2_7(void) { LBI(2,7); } | |
| 257 | INLINE void lbi2_8(void) { LBI(2,8); } | |
| 258 | INLINE void lbi2_9(void) { LBI(2,9); } | |
| 259 | INLINE void lbi2_10(void) { LBI(2,10); } | |
| 260 | INLINE void lbi2_11(void) { LBI(2,11); } | |
| 261 | INLINE void lbi2_12(void) { LBI(2,12); } | |
| 262 | INLINE void lbi2_13(void) { LBI(2,13); } | |
| 263 | INLINE void lbi2_14(void) { LBI(2,14); } | |
| 264 | INLINE void lbi2_15(void) { LBI(2,15); } | |
| 477 | Mnemonic: CAMQ | |
| 265 | 478 | |
| 266 | INLINE void lbi3_0(void) { LBI(3,0); } | |
| 267 | INLINE void lbi3_1(void) { LBI(3,1); } | |
| 268 | INLINE void lbi3_2(void) { LBI(3,2); } | |
| 269 | INLINE void lbi3_3(void) { LBI(3,3); } | |
| 270 | INLINE void lbi3_4(void) { LBI(3,4); } | |
| 271 | INLINE void lbi3_5(void) { LBI(3,5); } | |
| 272 | INLINE void lbi3_6(void) { LBI(3,6); } | |
| 273 | INLINE void lbi3_7(void) { LBI(3,7); } | |
| 274 | INLINE void lbi3_8(void) { LBI(3,8); } | |
| 275 | INLINE void lbi3_9(void) { LBI(3,9); } | |
| 276 | INLINE void lbi3_10(void) { LBI(3,10); } | |
| 277 | INLINE void lbi3_11(void) { LBI(3,11); } | |
| 278 | INLINE void lbi3_12(void) { LBI(3,12); } | |
| 279 | INLINE void lbi3_13(void) { LBI(3,13); } | |
| 280 | INLINE void lbi3_14(void) { LBI(3,14); } | |
| 281 | INLINE void lbi3_15(void) { LBI(3,15); } | |
| 479 | Hex Code: 33 3C | |
| 480 | Binary: 0 0 1 1 0 0 1 1 0 0 1 1 1 1 0 0 | |
| 282 | 481 | |
| 283 | INLINE void LEI(UINT8 y) | |
| 482 | Data Flow: A -> Q7:4 | |
| 483 | RAM(B) -> Q3:0 | |
| 484 | ||
| 485 | Description: Copy A, RAM to Q | |
| 486 | ||
| 487 | */ | |
| 488 | ||
| 489 | INSTRUCTION(camq) | |
| 284 | 490 | { |
| 285 | EN = y & 0x0f; | |
| 491 | WRITE_Q((A << 4) | RAM_R(B)); | |
| 492 | } | |
| 286 | 493 | |
| 287 | WRITE_Q(Q); | |
| 494 | /* | |
| 495 | ||
| 496 | Mnemonic: LD | |
| 497 | ||
| 498 | Operand: r | |
| 499 | Hex Code: -5 | |
| 500 | Binary: 0 0 r1 r0 0 1 0 1 | |
| 501 | ||
| 502 | Data Flow: RAM(B) -> A | |
| 503 | Br ^ r -> Br | |
| 504 | ||
| 505 | Description: Load RAM into A, Exclusive-OR Br with r | |
| 506 | ||
| 507 | */ | |
| 508 | ||
| 509 | INSTRUCTION(ld) | |
| 510 | { | |
| 511 | UINT8 r = opcode & 0x30; | |
| 512 | ||
| 513 | A = RAM_R(B); | |
| 514 | B = B ^ r; | |
| 288 | 515 | } |
| 289 | 516 | |
| 290 | INLINE void lei0(void) { LEI(0); } | |
| 291 | INLINE void lei1(void) { LEI(1); } | |
| 292 | INLINE void lei2(void) { LEI(2); } | |
| 293 | INLINE void lei3(void) { LEI(3); } | |
| 294 | INLINE void lei4(void) { LEI(4); } | |
| 295 | INLINE void lei5(void) { LEI(5); } | |
| 296 | INLINE void lei6(void) { LEI(6); } | |
| 297 | INLINE void lei7(void) { LEI(7); } | |
| 298 | INLINE void lei8(void) { LEI(8); } | |
| 299 | INLINE void lei9(void) { LEI(9); } | |
| 300 | INLINE void lei10(void) { LEI(10); } | |
| 301 | INLINE void lei11(void) { LEI(11); } | |
| 302 | INLINE void lei12(void) { LEI(12); } | |
| 303 | INLINE void lei13(void) { LEI(13); } | |
| 304 | INLINE void lei14(void) { LEI(14); } | |
| 305 | INLINE void lei15(void) { LEI(15); } | |
| 517 | /* | |
| 306 | 518 | |
| 307 | INLINE void lqid(void) | |
| 519 | Mnemonic: LQID | |
| 520 | ||
| 521 | Hex Code: BF | |
| 522 | Binary: 1 0 1 1 1 1 1 1 | |
| 523 | ||
| 524 | Data Flow: ROM(PC9:8,A,M) -> Q | |
| 525 | SB -> SC | |
| 526 | ||
| 527 | Description: Load Q Indirect | |
| 528 | ||
| 529 | */ | |
| 530 | ||
| 531 | INSTRUCTION(lqid) | |
| 308 | 532 | { |
| 309 | 533 | PUSH(PC + 1); |
| 310 | PC = ( | |
| 534 | PC = ( | |
| 311 | 535 | WRITE_Q(ROM(PC)); |
| 312 | 536 | POP(); |
| 313 | 537 | } |
| 314 | 538 | |
| 315 | ||
| 539 | /* | |
| 316 | 540 | |
| 317 | ||
| 541 | ||
| 318 | 542 | |
| 319 | INLINE void omg(void) { WRITE_G(RAM_R(B)); } | |
| 543 | Operand: 0 | |
| 544 | 1 | |
| 545 | 2 | |
| 546 | 3 | |
| 320 | 547 | |
| 321 | INLINE void rc(void) { C = 0; } | |
| 548 | Hex Code: 4C | |
| 549 | 45 | |
| 550 | 42 | |
| 551 | 43 | |
| 322 | 552 | |
| 323 | INLINE void ret(void) { POP(); } | |
| 553 | Binary: 0 1 0 0 1 1 0 0 | |
| 554 | 0 1 0 0 0 1 0 1 | |
| 555 | 0 1 0 0 0 0 1 0 | |
| 556 | 0 1 0 0 0 0 1 1 | |
| 324 | 557 | |
| 325 | INLINE void retsk(void) { POP(); skip = 1; } | |
| 558 | Data Flow: 0 -> RAM(B)0 | |
| 559 | 0 -> RAM(B)1 | |
| 560 | 0 -> RAM(B)2 | |
| 561 | 0 -> RAM(B)3 | |
| 326 | 562 | |
| 327 | INLINE void rmb0(void) { RAM_W(B, RAM_R(B) & 0xE); } | |
| 328 | INLINE void rmb1(void) { RAM_W(B, RAM_R(B) & 0xD); } | |
| 329 | INLINE void rmb2(void) { RAM_W(B, RAM_R(B) & 0xB); } | |
| 330 | INLINE void rmb3(void) { RAM_W(B, RAM_R(B) & 0x7); } | |
| 563 | Description: Reset RAM Bit | |
| 331 | 564 | |
| 332 | ||
| 565 | */ | |
| 333 | 566 | |
| 334 | INLINE void skc(void) { if (C == 1) skip = 1; } | |
| 567 | INSTRUCTION(rmb0) { RAM_W(B, RAM_R(B) & 0xE); } | |
| 568 | INSTRUCTION(rmb1) { RAM_W(B, RAM_R(B) & 0xD); } | |
| 569 | INSTRUCTION(rmb2) { RAM_W(B, RAM_R(B) & 0xB); } | |
| 570 | INSTRUCTION(rmb3) { RAM_W(B, RAM_R(B) & 0x7); } | |
| 335 | 571 | |
| 336 | ||
| 572 | /* | |
| 337 | 573 | |
| 338 | INLINE void skmbz0(void) { if ((RAM_R(B) & 0x01) == 0 ) skip = 1; } | |
| 339 | INLINE void skmbz1(void) { if ((RAM_R(B) & 0x02) == 0 ) skip = 1; } | |
| 340 | INLINE void skmbz2(void) { if ((RAM_R(B) & 0x04) == 0 ) skip = 1; } | |
| 341 | INLINE void skmbz3(void) { if ((RAM_R(B) & 0x08) == 0 ) skip = 1; } | |
| 574 | Mnemonic: SMB | |
| 342 | 575 | |
| 343 | INLINE void skgbz0(void) { if ((IN_G() & 0x01) == 0) skip = 1; } | |
| 344 | INLINE void skgbz1(void) { if ((IN_G() & 0x02) == 0) skip = 1; } | |
| 345 | INLINE void skgbz2(void) { if ((IN_G() & 0x04) == 0) skip = 1; } | |
| 346 | INLINE void skgbz3(void) { if ((IN_G() & 0x08) == 0) skip = 1; } | |
| 576 | Operand: 0 | |
| 577 | 1 | |
| 578 | 2 | |
| 579 | 3 | |
| 347 | 580 | |
| 348 | INLINE void skgz(void) { if (IN_G() == 0) skip = 1; } | |
| 581 | Hex Code: 4D | |
| 582 | 47 | |
| 583 | 46 | |
| 584 | 4B | |
| 349 | 585 | |
| 350 | INLINE void smb0(void) { RAM_W(B, RAM_R(B) | 0x1); } | |
| 351 | INLINE void smb1(void) { RAM_W(B, RAM_R(B) | 0x2); } | |
| 352 | INLINE void smb2(void) { RAM_W(B, RAM_R(B) | 0x4); } | |
| 353 | INLINE void smb3(void) { RAM_W(B, RAM_R(B) | 0x8); } | |
| 586 | Binary: 0 1 0 0 1 1 0 1 | |
| 587 | 0 1 0 0 0 1 1 1 | |
| 588 | 0 1 0 0 0 1 1 0 | |
| 589 | 0 1 0 0 1 0 1 1 | |
| 354 | 590 | |
| 355 | INLINE void STII(UINT8 y) | |
| 591 | Data Flow: 1 -> RAM(B)0 | |
| 592 | 1 -> RAM(B)1 | |
| 593 | 1 -> RAM(B)2 | |
| 594 | 1 -> RAM(B)3 | |
| 595 | ||
| 596 | Description: Set RAM Bit | |
| 597 | ||
| 598 | */ | |
| 599 | ||
| 600 | INSTRUCTION(smb0) { RAM_W(B, RAM_R(B) | 0x1); } | |
| 601 | INSTRUCTION(smb1) { RAM_W(B, RAM_R(B) | 0x2); } | |
| 602 | INSTRUCTION(smb2) { RAM_W(B, RAM_R(B) | 0x4); } | |
| 603 | INSTRUCTION(smb3) { RAM_W(B, RAM_R(B) | 0x8); } | |
| 604 | ||
| 605 | /* | |
| 606 | ||
| 607 | Mnemonic: STII | |
| 608 | ||
| 609 | Operand: y | |
| 610 | Hex Code: 7- | |
| 611 | Binary: 0 1 1 1 y3 y2 y1 y0 | |
| 612 | ||
| 613 | Data Flow: y -> RAM(B) | |
| 614 | Bd + 1 -> Bd | |
| 615 | ||
| 616 | Description: Store Memory Immediate and Increment Bd | |
| 617 | ||
| 618 | */ | |
| 619 | ||
| 620 | INSTRUCTION(stii) | |
| 356 | 621 | { |
| 622 | UINT4 y = opcode & 0x0f; | |
| 357 | 623 | UINT16 Bd; |
| 358 | 624 | |
| 359 | 625 | RAM_W(B, y); |
| 360 | Bd = (B & 0x0f) + 1; | |
| 361 | if (Bd > 15) Bd = 0; | |
| 626 | ||
| 627 | Bd = ((B & 0x0f) + 1) & 0x0f; | |
| 362 | 628 | B = (B & 0x30) + Bd; |
| 363 | 629 | } |
| 364 | 630 | |
| 365 | INLINE void stii0(void) { STII(0x0); } | |
| 366 | INLINE void stii1(void) { STII(0x1); } | |
| 367 | INLINE void stii2(void) { STII(0x2); } | |
| 368 | INLINE void stii3(void) { STII(0x3); } | |
| 631 | /* | |
| 369 | 632 | |
| 370 | INLINE void stii4(void) { STII(0x4); } | |
| 371 | INLINE void stii5(void) { STII(0x5); } | |
| 372 | INLINE void stii6(void) { STII(0x6); } | |
| 373 | INLINE void stii7(void) { STII(0x7); } | |
| 633 | Mnemonic: X | |
| 374 | 634 | |
| 375 | INLINE void stii8(void) { STII(0x8); } | |
| 376 | INLINE void stii9(void) { STII(0x9); } | |
| 377 | INLINE void stii10(void) { STII(0xA); } | |
| 378 | INLINE void stii11(void) { STII(0xB); } | |
| 635 | Operand: r | |
| 636 | Hex Code: -6 | |
| 637 | Binary: 0 0 r1 r0 0 1 1 0 | |
| 379 | 638 | |
| 380 | INLINE void stii12(void) { STII(0xC); } | |
| 381 | INLINE void stii13(void) { STII(0xD); } | |
| 382 | INLINE void stii14(void) { STII(0xE); } | |
| 383 | INLINE void stii15(void) { STII(0xF); } | |
| 639 | Data Flow: RAM(B) <-> A | |
| 640 | Br ^ r -> Br | |
| 384 | 641 | |
| 385 | INLINE void X(UINT8 r) | |
| 642 | Description: Exchange RAM with A, Exclusive-OR Br with r | |
| 643 | ||
| 644 | */ | |
| 645 | ||
| 646 | INSTRUCTION(x) | |
| 386 | 647 | { |
| 648 | UINT4 r = opcode & 0x30; | |
| 387 | 649 | UINT8 t = RAM_R(B); |
| 650 | ||
| 388 | 651 | RAM_W(B, A); |
| 652 | ||
| 389 | 653 | A = t; |
| 390 | B = B ^ | |
| 654 | B = B ^ | |
| 391 | 655 | } |
| 392 | 656 | |
| 393 | INLINE void x0(void) { X(0); } | |
| 394 | INLINE void x1(void) { X(1); } | |
| 395 | INLINE void x2(void) { X(2); } | |
| 396 | INLINE void x3(void) { X(3); } | |
| 657 | /* | |
| 397 | 658 | |
| 398 | INLINE void xad(void) | |
| 659 | Mnemonic: XAD | |
| 660 | ||
| 661 | Operand: r,d | |
| 662 | Hex Code: 23 -- | |
| 663 | Binary: 0 0 1 0 0 0 1 1 1 0 r1 r0 d3 d2 d1 d0 | |
| 664 | ||
| 665 | Data Flow: RAM(r,d) <-> A | |
| 666 | ||
| 667 | Description: Exchange A with RAM pointed to directly by r,d | |
| 668 | ||
| 669 | */ | |
| 670 | ||
| 671 | INSTRUCTION(xad) | |
| 399 | 672 | { |
| 400 | UINT8 | |
| 673 | UINT8 | |
| 401 | 674 | UINT8 t = A; |
| 402 | A = RAM_R(addr); | |
| 403 | RAM_W(addr, t); | |
| 404 | } | |
| 405 | 675 | |
| 406 | INLINE void xas(void) | |
| 407 | { | |
| 408 | UINT8 t = SIO; | |
| 409 | SIO = A; | |
| 410 | A = t; | |
| 676 | A = RAM_R(rd); | |
| 411 | 677 | |
| 412 | | |
| 678 | | |
| 413 | 679 | } |
| 414 | 680 | |
| 415 | INLINE void XDS(UINT8 r) | |
| 681 | /* | |
| 682 | ||
| 683 | Mnemonic: XDS | |
| 684 | ||
| 685 | Operand: r | |
| 686 | Hex Code: -7 | |
| 687 | Binary: 0 0 r1 r0 0 1 1 1 | |
| 688 | ||
| 689 | Data Flow: RAM(B) <-> A | |
| 690 | Bd - 1 -> Bd | |
| 691 | Br ^ r -> Br | |
| 692 | ||
| 693 | Skip Conditions: Bd decrements past 0 | |
| 694 | ||
| 695 | Description: Exchange RAM with A and Decrement Bd, Exclusive-OR Br with r | |
| 696 | ||
| 697 | */ | |
| 698 | ||
| 699 | INSTRUCTION(xds) | |
| 416 | 700 | { |
| 417 | UINT8 t, Bd, Br; | |
| 701 | UINT8 t, Bd; | |
| 702 | UINT4 r = opcode & 0x30; | |
| 418 | 703 | |
| 419 | 704 | t = RAM_R(B); |
| 420 | 705 | RAM_W(B, A); |
| 421 | 706 | A = t; |
| 422 | 707 | |
| 423 | Br = (UINT8)((B & 0x30) ^ (r << 4)); | |
| 424 | Bd = (UINT8)((B & 0x0F) - 1); | |
| 425 | B = (UINT8)(Br | (Bd & 0x0F)); | |
| 708 | Bd = ((B & 0x0f) - 1) & 0x0f; | |
| 709 | B = (B & 0x30) | Bd; | |
| 426 | 710 | |
| 427 | if (Bd == 0xFF) skip = 1; | |
| 711 | B = B ^ r; | |
| 712 | ||
| 713 | if (Bd == 0x0f) skip = 1; | |
| 428 | 714 | } |
| 429 | 715 | |
| 430 | INLINE void XIS(UINT8 r) | |
| 716 | /* | |
| 717 | ||
| 718 | Mnemonic: XIS | |
| 719 | ||
| 720 | Operand: r | |
| 721 | Hex Code: -4 | |
| 722 | Binary: 0 0 r1 r0 0 1 0 0 | |
| 723 | ||
| 724 | Data Flow: RAM(B) <-> A | |
| 725 | Bd + 1 -> Bd | |
| 726 | Br ^ r -> Br | |
| 727 | ||
| 728 | Skip Conditions: Bd increments past 15 | |
| 729 | ||
| 730 | Description: Exchange RAM with A and Increment Bd, Exclusive-OR Br with r | |
| 731 | ||
| 732 | */ | |
| 733 | ||
| 734 | INSTRUCTION(xis) | |
| 431 | 735 | { |
| 432 | UINT8 t, Bd, Br; | |
| 736 | UINT8 t, Bd; | |
| 737 | UINT4 r = opcode & 0x30; | |
| 433 | 738 | |
| 434 | 739 | t = RAM_R(B); |
| 435 | 740 | RAM_W(B, A); |
| 436 | 741 | A = t; |
| 437 | 742 | |
| 438 | Br = (UINT8)((B & 0x30) ^ (r << 4)); | |
| 439 | Bd = (UINT8)((B & 0x0F) + 1); | |
| 440 | B = (UINT8)(Br | (Bd & 0x0F)); | |
| 743 | Bd = ((B & 0x0f) + 1) & 0x0f; | |
| 744 | B = (B & 0x30) | Bd; | |
| 441 | 745 | |
| 442 | if (Bd == 0x10) skip = 1; | |
| 746 | B = B ^ r; | |
| 747 | ||
| 748 | if (Bd == 0x00) skip = 1; | |
| 443 | 749 | } |
| 444 | 750 | |
| 445 | INLINE void xis0(void) { XIS(0); } | |
| 446 | INLINE void xis1(void) { XIS(1); } | |
| 447 | INLINE void xis2(void) { XIS(2); } | |
| 448 | INLINE void xis3(void) { XIS(3); } | |
| 751 | /* Register Reference Instructions */ | |
| 449 | 752 | |
| 450 | INLINE void xds0(void) { XDS(0); } | |
| 451 | INLINE void xds1(void) { XDS(1); } | |
| 452 | INLINE void xds2(void) { XDS(2); } | |
| 453 | INLINE void xds3(void) { XDS(3); } | |
| 753 | /* | |
| 454 | 754 | |
| 455 | INLINE void xor(void) { A = RAM_R(B) ^ A; } | |
| 755 | Mnemonic: CAB | |
| 756 | ||
| 757 | Hex Code: 50 | |
| 758 | Binary: 0 1 0 1 0 0 0 0 0 | |
| 759 | ||
| 760 | Data Flow: A -> Bd | |
| 761 | ||
| 762 | Description: Copy A to Bd | |
| 763 | ||
| 764 | */ | |
| 765 | ||
| 766 | INSTRUCTION(cab) | |
| 767 | { | |
| 768 | B = (B & 0x30) | A; | |
| 769 | } | |
| 770 | ||
| 771 | /* | |
| 772 | ||
| 773 | Mnemonic: CBA | |
| 774 | ||
| 775 | Hex Code: 4E | |
| 776 | Binary: 0 1 0 0 1 1 1 0 | |
| 777 | ||
| 778 | Data Flow: Bd -> A | |
| 779 | ||
| 780 | Description: Copy Bd to A | |
| 781 | ||
| 782 | */ | |
| 783 | ||
| 784 | INSTRUCTION(cba) | |
| 785 | { | |
| 786 | A = B & 0xF; | |
| 787 | } | |
| 788 | ||
| 789 | /* | |
| 790 | ||
| 791 | Mnemonic: LBI | |
| 792 | ||
| 793 | Operand: r,d | |
| 794 | Hex Code: -- | |
| 795 | 33 -- | |
| 796 | ||
| 797 | Binary: 0 0 r1 r0 d3 d2 d1 d0 (d-1) | |
| 798 | 0 0 1 1 0 0 1 1 1 0 r1 r0 d3 d2 d1 d0 | |
| 799 | ||
| 800 | Data Flow: r,d -> B | |
| 801 | ||
| 802 | Skip Conditions: Skip until not a LBI | |
| 803 | ||
| 804 | Description: Load B Immediate with r,d | |
| 805 | ||
| 806 | */ | |
| 807 | ||
| 808 | INSTRUCTION(lbi) | |
| 809 | { | |
| 810 | if (opcode & 0x80) | |
| 811 | { | |
| 812 | B = opcode & 0x3f; | |
| 813 | } | |
| 814 | else | |
| 815 | { | |
| 816 | B = (opcode & 0x30) | (((opcode & 0x0f) + 1) & 0x0f); | |
| 817 | } | |
| 818 | ||
| 819 | skipLBI = 1; | |
| 820 | } | |
| 821 | ||
| 822 | /* | |
| 823 | ||
| 824 | Mnemonic: LEI | |
| 825 | ||
| 826 | Operand: y | |
| 827 | Hex Code: 33 6- | |
| 828 | Binary: 0 0 1 1 0 0 1 1 0 1 1 0 y3 y2 y1 y0 | |
| 829 | ||
| 830 | Data Flow: y -> EN | |
| 831 | ||
| 832 | Description: Load EN Immediate | |
| 833 | ||
| 834 | */ | |
| 835 | ||
| 836 | INSTRUCTION(lei) | |
| 837 | { | |
| 838 | UINT4 y = opcode & 0x0f; | |
| 839 | ||
| 840 | EN = y; | |
| 841 | ||
| 842 | if (!BIT(EN, 2)) | |
| 843 | { | |
| 844 | OUT_L(0); | |
| 845 | } | |
| 846 | } | |
| 847 | ||
| 848 | /* Test Instructions */ | |
| 849 | ||
| 850 | /* | |
| 851 | ||
| 852 | Mnemonic: SKC | |
| 853 | ||
| 854 | Hex Code: 20 | |
| 855 | Binary: 0 0 1 0 0 0 0 0 | |
| 856 | ||
| 857 | Skip Conditions: C = "1" | |
| 858 | ||
| 859 | Description: Skip if C is True | |
| 860 | ||
| 861 | */ | |
| 862 | ||
| 863 | INSTRUCTION(skc) | |
| 864 | { | |
| 865 | if (C == 1) skip = 1; | |
| 866 | } | |
| 867 | ||
| 868 | /* | |
| 869 | ||
| 870 | Mnemonic: SKE | |
| 871 | ||
| 872 | Hex Code: 21 | |
| 873 | Binary: 0 0 1 0 0 0 0 1 | |
| 874 | ||
| 875 | Skip Conditions: A = RAM(B) | |
| 876 | ||
| 877 | Description: Skip if A Equals RAM | |
| 878 | ||
| 879 | */ | |
| 880 | ||
| 881 | INSTRUCTION(ske) | |
| 882 | { | |
| 883 | if (A == RAM_R(B)) skip = 1; | |
| 884 | } | |
| 885 | ||
| 886 | /* | |
| 887 | ||
| 888 | Mnemonic: SKGZ | |
| 889 | ||
| 890 | Hex Code: 33 21 | |
| 891 | Binary: 00 0 1 1 0 0 1 1 0 0 1 0 0 0 0 1 | |
| 892 | ||
| 893 | Skip Conditions: G3:0 = 0 | |
| 894 | ||
| 895 | Description: Skip if G is Zero (all 4 bits) | |
| 896 | ||
| 897 | */ | |
| 898 | ||
| 899 | INSTRUCTION(skgz) | |
| 900 | { | |
| 901 | if (IN_G() == 0) skip = 1; | |
| 902 | } | |
| 903 | ||
| 904 | /* | |
| 905 | ||
| 906 | Mnemonic: SKGBZ | |
| 907 | ||
| 908 | Hex Code: 33 01 | |
| 909 | 33 11 | |
| 910 | 33 03 | |
| 911 | 33 13 | |
| 912 | ||
| 913 | Binary: | |
| 914 | ||
| 915 | Skip Conditions: G0 = 0 | |
| 916 | G1 = 0 | |
| 917 | G2 = 0 | |
| 918 | G3 = 0 | |
| 919 | ||
| 920 | Description: Skip if G Bit is Zero | |
| 921 | ||
| 922 | */ | |
| 923 | ||
| 924 | INLINE void skgbz(int bit) | |
| 925 | { | |
| 926 | if (!BIT(IN_G(), bit)) skip = 1; | |
| 927 | } | |
| 928 | ||
| 929 | INSTRUCTION(skgbz0) { skgbz(0); } | |
| 930 | INSTRUCTION(skgbz1) { skgbz(1); } | |
| 931 | INSTRUCTION(skgbz2) { skgbz(2); } | |
| 932 | INSTRUCTION(skgbz3) { skgbz(3); } | |
| 933 | ||
| 934 | /* | |
| 935 | ||
| 936 | Mnemonic: SKMBZ | |
| 937 | ||
| 938 | Hex Code: 01 | |
| 939 | 11 | |
| 940 | 03 | |
| 941 | 13 | |
| 942 | ||
| 943 | Binary: | |
| 944 | ||
| 945 | Skip Conditions: RAM(B)0 = 0 | |
| 946 | RAM(B)0 = 1 | |
| 947 | RAM(B)0 = 2 | |
| 948 | RAM(B)0 = 3 | |
| 949 | ||
| 950 | Description: Skip if RAM Bit is Zero | |
| 951 | ||
| 952 | */ | |
| 953 | ||
| 954 | INLINE void skmbz(int bit) | |
| 955 | { | |
| 956 | if (!BIT(RAM_R(B), bit)) skip = 1; | |
| 957 | } | |
| 958 | ||
| 959 | INSTRUCTION(skmbz0) { skmbz(0); } | |
| 960 | INSTRUCTION(skmbz1) { skmbz(1); } | |
| 961 | INSTRUCTION(skmbz2) { skmbz(2); } | |
| 962 | INSTRUCTION(skmbz3) { skmbz(3); } | |
| 963 | ||
| 964 | /* Input/Output Instructions */ | |
| 965 | ||
| 966 | /* | |
| 967 | ||
| 968 | Mnemonic: ING | |
| 969 | ||
| 970 | Hex Code: 33 2A | |
| 971 | Binary: | |
| 972 | ||
| 973 | Data Flow: G -> A | |
| 974 | ||
| 975 | Description: Input G Ports to A | |
| 976 | ||
| 977 | */ | |
| 978 | ||
| 979 | INSTRUCTION(ing) | |
| 980 | { | |
| 981 | A = IN_G(); | |
| 982 | } | |
| 983 | ||
| 984 | /* | |
| 985 | ||
| 986 | Mnemonic: INL | |
| 987 | ||
| 988 | Hex Code: 33 2E | |
| 989 | Binary: | |
| 990 | ||
| 991 | Data Flow: L7:4 -> RAM(B) | |
| 992 | L3:0 -> A | |
| 993 | ||
| 994 | Description: Input L Ports to RAM,A | |
| 995 | ||
| 996 | */ | |
| 997 | ||
| 998 | INSTRUCTION(inl) | |
| 999 | { | |
| 1000 | UINT8 L = IN_L(); | |
| 1001 | ||
| 1002 | RAM_W(B, L >> 4); | |
| 1003 | A = L & 0xF; | |
| 1004 | } | |
| 1005 | ||
| 1006 | /* | |
| 1007 | ||
| 1008 | Mnemonic: OBD | |
| 1009 | ||
| 1010 | Hex Code: 33 3E | |
| 1011 | Binary: | |
| 1012 | ||
| 1013 | Data Flow: Bd -> D | |
| 1014 | ||
| 1015 | Description: Output Bd to D Outputs | |
| 1016 | ||
| 1017 | */ | |
| 1018 | ||
| 1019 | INSTRUCTION(obd) | |
| 1020 | { | |
| 1021 | OUT_D(B & 0x0f); | |
| 1022 | } | |
| 1023 | ||
| 1024 | /* | |
| 1025 | ||
| 1026 | Mnemonic: OMG | |
| 1027 | ||
| 1028 | Hex Code: 33 3A | |
| 1029 | Binary: | |
| 1030 | ||
| 1031 | Data Flow: RAM(B) -> G | |
| 1032 | ||
| 1033 | Description: Output RAM to G Ports | |
| 1034 | ||
| 1035 | */ | |
| 1036 | ||
| 1037 | INSTRUCTION(omg) | |
| 1038 | { | |
| 1039 | WRITE_G(RAM_R(B)); | |
| 1040 | } | |
| 1041 | ||
| 1042 | /* | |
| 1043 | ||
| 1044 | Mnemonic: XAS | |
| 1045 | ||
| 1046 | Hex Code: 4F | |
| 1047 | Binary: 0 1 0 0 1 1 1 1 | |
| 1048 | ||
| 1049 | Data Flow: A <-> SIO | |
| 1050 | C -> SK | |
| 1051 | ||
| 1052 | Description: Exchange A with SIO | |
| 1053 | ||
| 1054 | */ | |
| 1055 | ||
| 1056 | INSTRUCTION(xas) | |
| 1057 | { | |
| 1058 | UINT8 t = SIO; | |
| 1059 | SIO = A; | |
| 1060 | A = t; | |
| 1061 | ||
| 1062 | SKL = C; | |
| 1063 | } |
| r2241 | r2242 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | TODO: |
| 15 | 15 | |
| 16 | - serial I/O | |
| 16 | - remove LBIops | |
| 17 | - JP/JSR/JSRP | |
| 17 | 18 | |
| 18 | 19 | */ |
| 19 | 20 | |
| r2241 | r2242 | |
| 25 | 26 | /* The opcode table now is a combination of cycle counts and function pointers */ |
| 26 | 27 | typedef struct { |
| 27 | 28 | unsigned cycles; |
| 28 | void (*function) ( | |
| 29 | void (*function) (UINT8 opcode); | |
| 29 | 30 | } s_opcode; |
| 30 | 31 | |
| 31 | 32 | #define UINT1 UINT8 |
| r2241 | r2242 | |
| 49 | 50 | UINT8 skip, skipLBI; |
| 50 | 51 | UINT8 G_mask; |
| 51 | 52 | UINT8 D_mask; |
| 53 | int last_si; | |
| 52 | 54 | } COP410_Regs; |
| 53 | 55 | |
| 54 | 56 | static COP410_Regs R; |
| r2241 | r2242 | |
| 57 | 59 | static int InstLen[256]; |
| 58 | 60 | static int LBIops[256]; |
| 59 | 61 | |
| 62 | static emu_timer *cop410_serial_timer; | |
| 63 | ||
| 60 | 64 | #include "410ops.c" |
| 61 | 65 | |
| 62 | static const s_opcode cop410_opcode_op33[256]= | |
| 66 | /* Opcode Maps */ | |
| 67 | ||
| 68 | static const s_opcode opcode_23_map[256]= | |
| 63 | 69 | { |
| 70 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 71 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 72 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 73 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 74 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 75 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 76 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 77 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 78 | ||
| 79 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 80 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 81 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 82 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 83 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 84 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 85 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 86 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 87 | ||
| 88 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 89 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 90 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 91 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 92 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 93 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 94 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 95 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, xad }, | |
| 96 | ||
| 97 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 98 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 99 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 100 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 101 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 102 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 103 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 104 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal } | |
| 105 | }; | |
| 106 | ||
| 107 | static void cop410_op23(UINT8 opcode) | |
| 108 | { | |
| 109 | UINT8 opcode23 = ROM(PC++); | |
| 110 | ||
| 111 | (*(opcode_23_map[opcode23].function))(opcode23); | |
| 112 | } | |
| 113 | ||
| 114 | static const s_opcode opcode_33_map[256]= | |
| 115 | { | |
| 64 | 116 | {1, illegal },{1, skgbz0 },{1, illegal },{1, skgbz2 },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 65 | 117 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 66 | 118 | {1, illegal },{1, skgbz1 },{1, illegal },{1, skgbz3 },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| r2241 | r2242 | |
| 69 | 121 | {1, illegal },{1, illegal },{1, ing },{1, illegal },{1, illegal },{1, illegal },{1, inl },{1, illegal }, |
| 70 | 122 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 71 | 123 | {1, illegal },{1, illegal },{1, omg },{1, illegal },{1, camq },{1, illegal },{1, obd },{1, illegal }, |
| 124 | ||
| 72 | 125 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 73 | 126 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 74 | 127 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 75 | 128 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 76 | {1, lei0 },{1, lei1 },{1, lei2 },{1, lei3 },{1, lei4 },{1, lei5 },{1, lei6 },{1, lei7 }, | |
| 77 | {1, lei8 },{1, lei9 },{1, lei10 },{1, lei11 },{1, lei12 },{1, lei13 },{1, lei14 },{1, lei15 }, | |
| 129 | {1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei }, | |
| 130 | {1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei }, | |
| 78 | 131 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 79 | 132 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 133 | ||
| 80 | 134 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 81 | 135 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 82 | 136 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| r2241 | r2242 | |
| 85 | 139 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 86 | 140 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 87 | 141 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 142 | ||
| 88 | 143 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 89 | 144 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 90 | 145 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| r2241 | r2242 | |
| 95 | 150 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal } |
| 96 | 151 | }; |
| 97 | 152 | |
| 98 | static void cop410_op33( | |
| 153 | static void cop410_op33(UINT8 opcode) | |
| 99 | 154 | { |
| 100 | (*(cop410_opcode_op33[ROM(PC++)].function))(); | |
| 155 | UINT8 opcode33 = ROM(PC++); | |
| 156 | ||
| 157 | (*(opcode_33_map[opcode33].function))(opcode33); | |
| 101 | 158 | } |
| 102 | 159 | |
| 103 | static const s_opcode | |
| 160 | static const s_opcode | |
| 104 | 161 | { |
| 105 | {1, clra },{1, skmbz0 },{1, xor },{1, skmbz2 },{1, xis0 },{1, ld0 },{1, x0 },{1, xds0 }, | |
| 106 | {1, lbi0_9 },{1, lbi0_10 },{1, lbi0_11 },{1, lbi0_12 },{1, lbi0_13 },{1, lbi0_14 },{1, lbi0_15 },{1, lbi0_0 }, | |
| 107 | {0, illegal },{1, skmbz1 },{0, illegal },{1, skmbz3 },{1, xis0 },{1, ld1 },{1, x1 },{1, xds1 }, | |
| 108 | {1, lbi1_9 },{1, lbi1_10 },{1, lbi1_11 },{1, lbi1_12 },{1, lbi1_13 },{1, lbi1_14 },{1, lbi1_15 },{1, lbi1_0 }, | |
| 109 | {1, skc },{1, ske },{1, sc },{2, xad },{1, xis2 },{1, ld2 },{1, x2 },{1, xds2 }, | |
| 110 | {1, lbi2_9 },{1, lbi2_10 },{1, lbi2_11 },{1, lbi2_12 },{1, lbi2_13 },{1, lbi2_14 },{1, lbi2_15 },{1, lbi2_0 }, | |
| 111 | {1, asc },{1, add },{1, rc },{2, cop410_op33 },{1, xis3 },{1, ld3 },{1, x3 },{1, xds3 }, | |
| 112 | {1, lbi3_9 },{1, lbi3_10 },{1, lbi3_11 },{1, lbi3_12 },{1, lbi3_13 },{1, lbi3_14 },{1, lbi3_15 },{1, lbi3_0 }, | |
| 113 | {1, comp },{0, illegal },{1, rmb2 },{1, rmb2 },{1, nop },{1, rmb1 },{1, smb2 },{1, smb1 }, | |
| 162 | {1, clra },{1, skmbz0 },{1, xor },{1, skmbz2 },{1, xis },{1, ld },{1, x },{1, xds }, | |
| 163 | {1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 164 | {0, illegal },{1, skmbz1 },{0, illegal },{1, skmbz3 },{1, xis },{1, ld },{1, x },{1, xds }, | |
| 165 | {1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 166 | {1, skc },{1, ske },{1, sc },{2, cop410_op23 },{1, xis },{1, ld },{1, x },{1, xds }, | |
| 167 | {1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 168 | {1, asc },{1, add },{1, rc },{2, cop410_op33 },{1, xis },{1, ld },{1, x },{1, xds }, | |
| 169 | {1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 170 | ||
| 171 | {1, comp },{0, illegal },{1, rmb2 },{1, rmb3 },{1, nop },{1, rmb1 },{1, smb2 },{1, smb1 }, | |
| 114 | 172 | {1, ret },{1, retsk },{0, illegal },{1, smb3 },{1, rmb0 },{1, smb0 },{1, cba },{1, xas }, |
| 115 | {1, cab },{1, aisc1 },{1, aisc2 },{1, aisc3 },{1, aisc4 },{1, aisc5 },{1, aisc6 },{1, aisc7 }, | |
| 116 | {1, aisc8 },{1, aisc9 },{1, aisc10 },{1, aisc11 },{1, aisc12 },{1, aisc13 },{1, aisc14 },{1, aisc15 }, | |
| 117 | {2, jmp0 },{2, jmp1 },{0, illegal },{0, illegal },{0, illegal },{0, illegal },{0, illegal },{0, illegal }, | |
| 118 | {2, jsr0 },{2, jsr1 },{0, illegal },{0, illegal },{0, illegal },{0, illegal },{0, illegal },{0, illegal }, | |
| 119 | {1, stii0 },{1, stii1 },{1, stii2 },{1, stii3 },{1, stii4 },{1, stii5 },{1, stii6 },{1, stii7 }, | |
| 120 | {1, stii8 },{1, stii9 },{1, stii10 },{1, stii11 },{1, stii12 },{1, stii13 },{1, stii14 },{1, stii15 }, | |
| 173 | {1, cab },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc }, | |
| 174 | {1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc }, | |
| 175 | {2, jmp },{2, jmp },{0, illegal },{0, illegal },{0, illegal },{0, illegal },{0, illegal },{0, illegal }, | |
| 176 | {2, jsr },{2, jsr },{0, illegal },{0, illegal },{0, illegal },{0, illegal },{0, illegal },{0, illegal }, | |
| 177 | {1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii }, | |
| 178 | {1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii }, | |
| 179 | ||
| 121 | 180 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 122 | 181 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 123 | 182 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| r2241 | r2242 | |
| 125 | 184 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 126 | 185 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 127 | 186 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 128 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, lqid }, | |
| 187 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{2, lqid }, | |
| 188 | ||
| 129 | 189 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 130 | 190 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 131 | 191 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| r2241 | r2242 | |
| 133 | 193 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 134 | 194 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 135 | 195 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 136 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{ | |
| 196 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{2, jid } | |
| 137 | 197 | }; |
| 138 | 198 | |
| 139 | static ADDRESS_MAP_START( cop410_RAM, ADDRESS_SPACE_DATA, 8 ) | |
| 140 | AM_RANGE(0x00, 0x40) AM_RAM | |
| 199 | /* Memory Maps */ | |
| 200 | ||
| 201 | static ADDRESS_MAP_START( cop410_internal_rom, ADDRESS_SPACE_DATA, 8 ) | |
| 202 | AM_RANGE(0x000, 0x1ff) AM_ROM | |
| 141 | 203 | ADDRESS_MAP_END |
| 142 | 204 | |
| 205 | static ADDRESS_MAP_START( cop410_internal_ram, ADDRESS_SPACE_DATA, 8 ) | |
| 206 | AM_RANGE(0x00, 0x3f) AM_RAM | |
| 207 | ADDRESS_MAP_END | |
| 208 | ||
| 143 | 209 | /**************************************************************************** |
| 144 | 210 | * Initialize emulation |
| 145 | 211 | ****************************************************************************/ |
| r2241 | r2242 | |
| 151 | 217 | R.G_mask = 0x0F; |
| 152 | 218 | R.D_mask = 0x0F; |
| 153 | 219 | |
| 220 | cop410_serial_timer = timer_alloc(cop410_serial_tick, NULL); | |
| 221 | timer_adjust_periodic(cop410_serial_timer, attotime_zero, index, ATTOTIME_IN_HZ(clock)); | |
| 222 | ||
| 154 | 223 | for (i=0; i<256; i++) InstLen[i]=1; |
| 155 | 224 | |
| 156 | 225 | InstLen[0x60] = InstLen[0x61] = InstLen[0x68] = InstLen[0x69] = InstLen[0x33] = InstLen[0x23] = 2; |
| r2241 | r2242 | |
| 177 | 246 | state_save_register_item("cop410", index, skipLBI); |
| 178 | 247 | state_save_register_item("cop410", index, R.G_mask); |
| 179 | 248 | state_save_register_item("cop410", index, R.D_mask); |
| 249 | state_save_register_item("cop410", index, R.last_si); | |
| 180 | 250 | } |
| 181 | 251 | |
| 182 | 252 | static void cop411_init(int index, int clock, const void *config, int (*irqcallback)(int)) |
| r2241 | r2242 | |
| 207 | 277 | ****************************************************************************/ |
| 208 | 278 | static int cop410_execute(int cycles) |
| 209 | 279 | { |
| 210 | | |
| 280 | UINT8 | |
| 211 | 281 | |
| 212 | 282 | cop410_ICount = cycles; |
| 213 | 283 | |
| r2241 | r2242 | |
| 226 | 296 | skipLBI = 0; |
| 227 | 297 | } |
| 228 | 298 | else { |
| 229 | cop410_ICount -= | |
| 299 | cop410_ICount -= op | |
| 230 | 300 | |
| 231 | 301 | PC += InstLen[opcode]; |
| 232 | 302 | } |
| r2241 | r2242 | |
| 234 | 304 | |
| 235 | 305 | if (skipLBI == 0) |
| 236 | 306 | { |
| 237 | int inst_cycles = | |
| 307 | int inst_cycles = | |
| 238 | 308 | PC++; |
| 239 | (*( | |
| 309 | (*( | |
| 240 | 310 | cop410_ICount -= inst_cycles; |
| 241 | 311 | |
| 242 | if (skip == 1) { | |
| 243 | opcode=ROM(PC); | |
| 244 | cop410_ICount -=cop410_opcode_main[opcode].cycles; | |
| 312 | // skip next instruction? | |
| 313 | ||
| 314 | if (skip == 1) | |
| 315 | { | |
| 316 | void *function = opcode_map[ROM(PC)].function; | |
| 317 | ||
| 318 | opcode = ROM(PC); | |
| 319 | ||
| 320 | if ((function == lqid) || (function == jid)) | |
| 321 | { | |
| 322 | cop410_ICount -= 1; | |
| 323 | } | |
| 324 | else | |
| 325 | { | |
| 326 | cop410_ICount -= opcode_map[opcode].cycles; | |
| 327 | } | |
| 245 | 328 | PC += InstLen[opcode]; |
| 329 | ||
| 246 | 330 | skip = 0; |
| 247 | 331 | } |
| 248 | 332 | } |
| 249 | } while (cop410_ICount>0); | |
| 333 | } while (cop410_ICount > 0); | |
| 250 | 334 | |
| 251 | ||
| 252 | 335 | return cycles - cop410_ICount; |
| 253 | 336 | } |
| 254 | 337 | |
| r2241 | r2242 | |
| 310 | 393 | case CPUINFO_INT_DEFAULT_IRQ_VECTOR: info->i = 0; break; |
| 311 | 394 | case CPUINFO_INT_ENDIANNESS: info->i = CPU_IS_LE; break; |
| 312 | 395 | case CPUINFO_INT_CLOCK_MULTIPLIER: info->i = 1; break; |
| 313 | case CPUINFO_INT_CLOCK_DIVIDER: info->i = | |
| 396 | case CPUINFO_INT_CLOCK_DIVIDER: info->i = 16; break; | |
| 314 | 397 | case CPUINFO_INT_MIN_INSTRUCTION_BYTES: info->i = 1; break; |
| 315 | 398 | case CPUINFO_INT_MAX_INSTRUCTION_BYTES: info->i = 2; break; |
| 316 | 399 | case CPUINFO_INT_MIN_CYCLES: info->i = 1; break; |
| r2241 | r2242 | |
| 355 | 438 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = cop410_dasm; break; |
| 356 | 439 | #endif /* ENABLE_DEBUGGER */ |
| 357 | 440 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &cop410_ICount; break; |
| 358 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: | |
| 359 | info->internal_map8 = address_map_cop410_RAM; break; | |
| 360 | 441 | |
| 442 | /* case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: | |
| 443 | info->internal_map8 = address_map_cop410_internal_rom; break;*/ | |
| 444 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: | |
| 445 | info->internal_map8 = address_map_cop410_internal_ram; break; | |
| 446 | ||
| 361 | 447 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 362 | 448 | case CPUINFO_STR_NAME: strcpy(info->s, "COP410"); break; |
| 363 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COP | |
| 449 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COPS | |
| 364 | 450 | case CPUINFO_STR_CORE_VERSION: strcpy(info->s, "1.0"); break; |
| 365 | 451 | case CPUINFO_STR_CORE_FILE: strcpy(info->s, __FILE__); break; |
| 366 | 452 | case CPUINFO_STR_CORE_CREDITS: strcpy(info->s, "Copyright MAME Team"); break; |
| r2241 | r2242 | |
| 385 | 471 | |
| 386 | 472 | void cop411_get_info(UINT32 state, cpuinfo *info) |
| 387 | 473 | { |
| 474 | // COP411 is a 20-pin package version of the COP410, lacking some ports | |
| 475 | ||
| 388 | 476 | switch (state) |
| 389 | 477 | { |
| 390 | 478 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| r2241 | r2242 | |
| 392 | 480 | |
| 393 | 481 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 394 | 482 | case CPUINFO_STR_NAME: strcpy(info->s, "COP411"); break; |
| 395 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COP | |
| 483 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COPS | |
| 396 | 484 | |
| 397 | 485 | default: cop410_get_info(state, info); break; |
| 398 | 486 | } |
| 399 | 487 | } |
| 488 | ||
| 489 | void cop401_get_info(UINT32 state, cpuinfo *info) | |
| 490 | { | |
| 491 | // COP401 is a ROMless version of the COP410 | |
| 492 | ||
| 493 | switch (state) | |
| 494 | { | |
| 495 | case CPUINFO_STR_NAME: strcpy(info->s, "COP401"); break; | |
| 496 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COPS"); break; | |
| 497 | ||
| 498 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: | |
| 499 | info->internal_map8 = NULL; break; | |
| 500 | ||
| 501 | default: cop410_get_info(state, info); break; | |
| 502 | } | |
| 503 | } |
| r2241 | r2242 | |
|---|---|---|
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | 12 | #define SC R.SC |
| 13 | #define IL R.IL | |
| 13 | 14 | |
| 14 | 15 | #define PUSH(addr) { SC = SB; SB = SA; SA = addr; } |
| 15 | 16 | #define POP() { PC = SA; SA = SB; SB = SC; } |
| r2241 | r2242 | |
| 18 | 19 | |
| 19 | 20 | #define IN_IN() IN(COP400_PORT_IN) |
| 20 | 21 | |
| 21 | ||
| 22 | /* | |
| 22 | 23 | |
| 23 | INLINE void casc(void) | |
| 24 | /* | |
| 25 | ||
| 26 | Mnemonic: ADT | |
| 27 | ||
| 28 | Hex Code: 4A | |
| 29 | Binary: 0 1 0 0 1 0 1 0 | |
| 30 | ||
| 31 | Data Flow: A + 10 -> A | |
| 32 | ||
| 33 | Description: Add Ten to A | |
| 34 | ||
| 35 | */ | |
| 36 | ||
| 37 | INSTRUCTION(adt) | |
| 24 | 38 | { |
| 39 | A = (A + 10) & 0x0F; | |
| 40 | } | |
| 41 | ||
| 42 | /* | |
| 43 | ||
| 44 | Mnemonic: CASC | |
| 45 | ||
| 46 | Hex Code: 10 | |
| 47 | Binary: 0 0 0 1 0 0 0 0 | |
| 48 | ||
| 49 | Data Flow: ~A + RAM(B) + C -> A | |
| 50 | Carry -> C | |
| 51 | ||
| 52 | Skip Conditions: Carry | |
| 53 | ||
| 54 | Description: Complement and Add with Carry, Skip on Carry | |
| 55 | ||
| 56 | */ | |
| 57 | ||
| 58 | INSTRUCTION(casc) | |
| 59 | { | |
| 25 | 60 | A = (A ^ 0xF) + RAM_R(B) + C; |
| 26 | 61 | |
| 27 | 62 | if (A > 0xF) |
| r2241 | r2242 | |
| 36 | 71 | } |
| 37 | 72 | } |
| 38 | 73 | |
| 39 | INLINE void cqma(void) | |
| 74 | /* Transfer-of-Control Instructions */ | |
| 75 | ||
| 76 | /* | |
| 77 | ||
| 78 | Mnemonic: RET | |
| 79 | ||
| 80 | Hex Code: 48 | |
| 81 | Binary: 0 1 0 0 1 0 0 0 | |
| 82 | ||
| 83 | Data Flow: SC -> SB -> SA -> PC | |
| 84 | ||
| 85 | Description: Return from Subroutine, restore Skip logic | |
| 86 | ||
| 87 | */ | |
| 88 | ||
| 89 | INSTRUCTION(cop420_ret) | |
| 40 | 90 | { |
| 41 | WRITE_M(Q >> 4); | |
| 42 | A = Q & 0xF; | |
| 91 | POP(); | |
| 92 | skip = R.last_skip; | |
| 43 | 93 | } |
| 44 | 94 | |
| 45 | INLINE void inil(void) | |
| 95 | /* Memory Reference Instructions */ | |
| 96 | ||
| 97 | /* | |
| 98 | ||
| 99 | Mnemonic: CQMA | |
| 100 | ||
| 101 | Hex Code: 33 2C | |
| 102 | Binary: 0 0 1 1 0 0 1 1 0 0 1 0 1 1 0 0 | |
| 103 | ||
| 104 | Data Flow: Q7:4 -> RAM(B) | |
| 105 | Q3:0 -> A | |
| 106 | ||
| 107 | Description: Copy Q to RAM, A | |
| 108 | ||
| 109 | */ | |
| 110 | ||
| 111 | INSTRUCTION(cqma) | |
| 46 | 112 | { |
| 47 | // NOT IMPLEMENTED | |
| 48 | A = IN_IN(); | |
| 113 | RAM_W(B, Q >> 4); | |
| 114 | A = Q & 0xF; | |
| 49 | 115 | } |
| 50 | 116 | |
| 51 | INLINE void cop421_inil(void) | |
| 117 | /* | |
| 118 | ||
| 119 | Mnemonic: LDD | |
| 120 | ||
| 121 | Operand: r, d | |
| 122 | Hex Code: 23 -- | |
| 123 | Binary: 0 0 1 0 0 0 1 1 0 0 r1 r0 d3 d2 d1 d0 | |
| 124 | ||
| 125 | Data Flow: RAM(r,d) -> A | |
| 126 | ||
| 127 | Description: Load A with RAM pointed to directly by r,d | |
| 128 | ||
| 129 | */ | |
| 130 | ||
| 131 | INSTRUCTION(ldd) | |
| 52 | 132 | { |
| 53 | // NOT IMPLEMENTED | |
| 133 | UINT8 rd = opcode & 0x3f; | |
| 134 | ||
| 135 | A = RAM_R(rd); | |
| 54 | 136 | } |
| 55 | 137 | |
| 56 | ||
| 138 | /* | |
| 57 | 139 | |
| 58 | ||
| 140 | /* | |
| 59 | 141 | |
| 60 | INLINE void ldd(void) | |
| 142 | Mnemonic: XABR | |
| 143 | ||
| 144 | Hex Code: 12 | |
| 145 | Binary: 0 0 0 1 0 0 1 0 | |
| 146 | ||
| 147 | Data Flow: A <-> Br(0,0 -> A3,A2) | |
| 148 | ||
| 149 | Description: Exchange A with Br | |
| 150 | ||
| 151 | */ | |
| 152 | ||
| 153 | INSTRUCTION(xabr) | |
| 61 | 154 | { |
| 62 | A = RAM_R(ROM(PC++) & 0x3f); | |
| 155 | UINT8 Br = A & 0x03; | |
| 156 | UINT8 Bd = B & 0x0f; | |
| 157 | ||
| 158 | A = B >> 4; | |
| 159 | B = (Br << 4) + Bd; | |
| 63 | 160 | } |
| 64 | 161 | |
| 65 | INLINE void ogi0(void) { WRITE_G(0); } | |
| 66 | INLINE void ogi1(void) { WRITE_G(1); } | |
| 67 | INLINE void ogi2(void) { WRITE_G(2); } | |
| 68 | INLINE void ogi3(void) { WRITE_G(3); } | |
| 69 | INLINE void ogi4(void) { WRITE_G(4); } | |
| 70 | INLINE void ogi5(void) { WRITE_G(5); } | |
| 71 | INLINE void ogi6(void) { WRITE_G(6); } | |
| 72 | INLINE void ogi7(void) { WRITE_G(7); } | |
| 73 | INLINE void ogi8(void) { WRITE_G(8); } | |
| 74 | INLINE void ogi9(void) { WRITE_G(9); } | |
| 75 | INLINE void ogi10(void) { WRITE_G(10); } | |
| 76 | INLINE void ogi11(void) { WRITE_G(11); } | |
| 77 | INLINE void ogi12(void) { WRITE_G(12); } | |
| 78 | INLINE void ogi13(void) { WRITE_G(13); } | |
| 79 | INLINE void ogi14(void) { WRITE_G(14); } | |
| 80 | INLINE void ogi15(void) { WRITE_G(15); } | |
| 162 | /* Test Instructions */ | |
| 81 | 163 | |
| 82 | INLINE void skt(void) | |
| 164 | /* | |
| 165 | ||
| 166 | Mnemonic: SKT | |
| 167 | ||
| 168 | Hex Code: 41 | |
| 169 | Binary: 0 1 0 0 0 0 0 1 | |
| 170 | ||
| 171 | Skip Conditions: A time-base counter carry has occurred since last test | |
| 172 | ||
| 173 | Description: Skip on Timer | |
| 174 | ||
| 175 | */ | |
| 176 | ||
| 177 | INSTRUCTION(skt) | |
| 83 | 178 | { |
| 84 | if (R.timerlatch | |
| 179 | if (R.timerlatch | |
| 85 | 180 | { |
| 86 | 181 | R.timerlatch = 0; |
| 87 | 182 | skip = 1; |
| 88 | 183 | } |
| 89 | 184 | } |
| 90 | 185 | |
| 91 | INLINE void xabr(void) | |
| 186 | /* Input/Output Instructions */ | |
| 187 | ||
| 188 | /* | |
| 189 | ||
| 190 | Mnemonic: ININ | |
| 191 | ||
| 192 | Hex Code: 33 28 | |
| 193 | Binary: | |
| 194 | ||
| 195 | Data Flow: IN -> A | |
| 196 | ||
| 197 | Description: Input IN Inputs to A | |
| 198 | ||
| 199 | */ | |
| 200 | ||
| 201 | INSTRUCTION(inin) | |
| 92 | 202 | { |
| 93 | UINT8 Br = A & 0x03; | |
| 94 | UINT8 Bd = B & 0x0f; | |
| 203 | A = IN_IN(); | |
| 204 | } | |
| 95 | 205 | |
| 96 | A = (B & 0x30) >> 4; | |
| 97 | B = (Br << 4) + Bd; | |
| 206 | /* | |
| 207 | ||
| 208 | Processor: COP402M | |
| 209 | ||
| 210 | Mnemonic: ININ | |
| 211 | ||
| 212 | Hex Code: 33 28 | |
| 213 | Binary: | |
| 214 | ||
| 215 | Data Flow: IN -> A, A1 = "1" | |
| 216 | ||
| 217 | Description: Input IN Inputs to A | |
| 218 | ||
| 219 | */ | |
| 220 | ||
| 221 | INSTRUCTION(cop402m_inin) | |
| 222 | { | |
| 223 | A = IN_IN() | 0x02; | |
| 98 | 224 | } |
| 225 | ||
| 226 | /* | |
| 227 | ||
| 228 | Mnemonic: INIL | |
| 229 | ||
| 230 | Hex Code: 33 29 | |
| 231 | Binary: | |
| 232 | ||
| 233 | Data Flow: IL3,"1","0",IL0 -> A | |
| 234 | ||
| 235 | Description: Input IL Latches to A | |
| 236 | ||
| 237 | */ | |
| 238 | ||
| 239 | INSTRUCTION(inil) | |
| 240 | { | |
| 241 | // NOT PROPERLY IMPLEMENTED | |
| 242 | ||
| 243 | A = (IN_IN() & 0x09) | 0x04; | |
| 244 | } | |
| 245 | ||
| 246 | /* | |
| 247 | ||
| 248 | Processor: COP421 | |
| 249 | ||
| 250 | Mnemonic: INIL | |
| 251 | ||
| 252 | Hex Code: 33 29 | |
| 253 | Binary: | |
| 254 | ||
| 255 | Data Flow: "0",CKO,"0","0" -> A | |
| 256 | ||
| 257 | Description: Input CKO to A | |
| 258 | ||
| 259 | */ | |
| 260 | ||
| 261 | INSTRUCTION(cop421_inil) | |
| 262 | { | |
| 263 | // NOT PROPERLY IMPLEMENTED | |
| 264 | ||
| 265 | A = 0; | |
| 266 | } | |
| 267 | ||
| 268 | /* | |
| 269 | ||
| 270 | Mnemonic: OGI | |
| 271 | ||
| 272 | Operand: y | |
| 273 | Hex Code: 33 5- | |
| 274 | Binary: 0 0 1 1 0 0 1 1 0 1 0 1 y3 y2 y1 y0 | |
| 275 | ||
| 276 | Data Flow: y -> G | |
| 277 | ||
| 278 | Description: Output to G Ports Immediate | |
| 279 | ||
| 280 | */ | |
| 281 | ||
| 282 | INSTRUCTION(ogi) | |
| 283 | { | |
| 284 | UINT4 y = opcode & 0x0f; | |
| 285 | ||
| 286 | WRITE_G(y); | |
| 287 | } |
| r2241 | r2242 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | TODO: |
| 15 | 15 | |
| 16 | - serial I/O | |
| 17 | - interrupt | |
| 16 | - remove LBIops | |
| 17 | - INIL | |
| 18 | 18 | |
| 19 | 19 | */ |
| 20 | 20 | |
| r2241 | r2242 | |
| 26 | 26 | /* The opcode table now is a combination of cycle counts and function pointers */ |
| 27 | 27 | typedef struct { |
| 28 | 28 | unsigned cycles; |
| 29 | void (*function) ( | |
| 29 | void (*function) (UINT8 opcode); | |
| 30 | 30 | } s_opcode; |
| 31 | 31 | |
| 32 | 32 | #define UINT1 UINT8 |
| r2241 | r2242 | |
| 52 | 52 | UINT16 counter; |
| 53 | 53 | UINT8 G_mask; |
| 54 | 54 | UINT8 D_mask; |
| 55 | UINT4 IL; | |
| 56 | int last_si; | |
| 57 | int last_skip; | |
| 55 | 58 | } COP420_Regs; |
| 56 | 59 | |
| 57 | 60 | static COP420_Regs R; |
| r2241 | r2242 | |
| 61 | 64 | static int LBIops[256]; |
| 62 | 65 | static int LBIops33[256]; |
| 63 | 66 | |
| 67 | static emu_timer *cop420_serial_timer; | |
| 68 | static emu_timer *cop420_counter_timer; | |
| 69 | ||
| 64 | 70 | #include "420ops.c" |
| 65 | 71 | |
| 66 | static const s_opcode cop420_opcode_op33[256]= | |
| 72 | /* Opcode Maps */ | |
| 73 | ||
| 74 | static const s_opcode opcode_23_map[256]= | |
| 67 | 75 | { |
| 76 | {1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd }, | |
| 77 | {1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd }, | |
| 78 | {1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd }, | |
| 79 | {1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd }, | |
| 80 | {1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd }, | |
| 81 | {1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd }, | |
| 82 | {1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd }, | |
| 83 | {1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd },{1, ldd }, | |
| 84 | ||
| 85 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 86 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 87 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 88 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 89 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 90 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 91 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 92 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 93 | ||
| 94 | {1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad }, | |
| 95 | {1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad }, | |
| 96 | {1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad }, | |
| 97 | {1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad }, | |
| 98 | {1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad }, | |
| 99 | {1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad }, | |
| 100 | {1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad }, | |
| 101 | {1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad },{1, xad }, | |
| 102 | ||
| 103 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 104 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 105 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 106 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 107 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 108 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 109 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 110 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal } | |
| 111 | }; | |
| 112 | ||
| 113 | static void cop420_op23(UINT8 opcode) | |
| 114 | { | |
| 115 | UINT8 opcode23 = ROM(PC++); | |
| 116 | ||
| 117 | (*(opcode_23_map[opcode23].function))(opcode23); | |
| 118 | } | |
| 119 | ||
| 120 | static const s_opcode opcode_33_map[256]= | |
| 121 | { | |
| 68 | 122 | {1, inil },{1, skgbz0 },{1, illegal },{1, skgbz2 },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 69 | 123 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 70 | 124 | {1, illegal },{1, skgbz1 },{1, illegal },{1, skgbz3 },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| r2241 | r2242 | |
| 73 | 127 | {1, inin },{1, illegal },{1, ing },{1, illegal },{1, cqma },{1, illegal },{1, inl },{1, illegal }, |
| 74 | 128 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 75 | 129 | {1, illegal },{1, illegal },{1, omg },{1, illegal },{1, camq },{1, illegal },{1, obd },{1, illegal }, |
| 130 | ||
| 76 | 131 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 77 | 132 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 78 | {1, ogi0 },{1, ogi1 },{1, ogi2 },{1, ogi3 },{1, ogi4 },{1, ogi5 },{1, ogi6 },{1, ogi7 }, | |
| 79 | {1, ogi8 },{1, ogi9 },{1, ogi10 },{1, ogi11 },{1, ogi12 },{1, ogi13 },{1, ogi14 },{1, ogi15 }, | |
| 80 | {1, lei0 },{1, lei1 },{1, lei2 },{1, lei3 },{1, lei4 },{1, lei5 },{1, lei6 },{1, lei7 }, | |
| 81 | {1, lei8 },{1, lei9 },{1, lei10 },{1, lei11 },{1, lei12 },{1, lei13 },{1, lei14 },{1, lei15 }, | |
| 133 | {1, ogi },{1, ogi },{1, ogi },{1, ogi },{1, ogi },{1, ogi },{1, ogi },{1, ogi }, | |
| 134 | {1, ogi },{1, ogi },{1, ogi },{1, ogi },{1, ogi },{1, ogi },{1, ogi },{1, ogi }, | |
| 135 | {1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei }, | |
| 136 | {1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei },{1, lei }, | |
| 82 | 137 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 83 | 138 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 84 | {1, illegal },{1, lbi0_1 },{1, lbi0_2 },{1, lbi0_3 },{1, lbi0_4 },{1, lbi0_5 },{1, lbi0_6 },{1, lbi0_7 }, | |
| 85 | {1, lbi0_8 },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 86 | {1, illegal },{1, lbi1_1 },{1, lbi1_2 },{1, lbi1_3 },{1, lbi1_4 },{1, lbi1_5 },{1, lbi1_6 },{1, lbi1_7 }, | |
| 87 | {1, lbi1_8 },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 88 | {1, illegal },{1, lbi2_1 },{1, lbi2_2 },{1, lbi2_3 },{1, lbi2_4 },{1, lbi2_5 },{1, lbi2_6 },{1, lbi2_7 }, | |
| 89 | {1, lbi2_8 },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 90 | {1, illegal },{1, lbi3_1 },{1, lbi3_2 },{1, lbi3_3 },{1, lbi3_4 },{1, lbi3_5 },{1, lbi3_6 },{1, lbi3_7 }, | |
| 91 | {1, lbi3_8 },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 139 | ||
| 140 | {1, illegal },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 141 | {1, lbi },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 142 | {1, illegal },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 143 | {1, lbi },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 144 | {1, illegal },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 145 | {1, lbi },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 146 | {1, illegal },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 147 | {1, lbi },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, | |
| 148 | ||
| 92 | 149 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 93 | 150 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| 94 | 151 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal }, |
| r2241 | r2242 | |
| 99 | 156 | {1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal },{1, illegal } |
| 100 | 157 | }; |
| 101 | 158 | |
| 102 | static void cop420_op33( | |
| 159 | static void cop420_op33(UINT8 opcode) | |
| 103 | 160 | { |
| 104 | (*(cop420_opcode_op33[ROM(PC++)].function))(); | |
| 161 | UINT8 opcode33 = ROM(PC++); | |
| 162 | ||
| 163 | (*(opcode_33_map[opcode33].function))(opcode33); | |
| 105 | 164 | } |
| 106 | 165 | |
| 107 | static const s_opcode | |
| 166 | static const s_opcode | |
| 108 | 167 | { |
| 109 | {1, clra },{1, skmbz0 },{1, xor },{1, skmbz2 },{1, xis0 },{1, ld0 },{1, x0 },{1, xds0 }, | |
| 110 | {1, lbi0_9 },{1, lbi0_10 },{1, lbi0_11 },{1, lbi0_12 },{1, lbi0_13 },{1, lbi0_14 },{1, lbi0_15 },{1, lbi0_0 }, | |
| 111 | {1, casc },{1, skmbz1 },{1, xabr },{1, skmbz3 },{1, xis0 },{1, ld1 },{1, x1 },{1, xds1 }, | |
| 112 | {1, lbi1_9 },{1, lbi1_10 },{1, lbi1_11 },{1, lbi1_12 },{1, lbi1_13 },{1, lbi1_14 },{1, lbi1_15 },{1, lbi1_0 }, | |
| 113 | {1, skc },{1, ske },{1, sc },{2, xad },{1, xis2 },{1, ld2 },{1, x2 },{1, xds2 }, | |
| 114 | {1, lbi2_9 },{1, lbi2_10 },{1, lbi2_11 },{1, lbi2_12 },{1, lbi2_13 },{1, lbi2_14 },{1, lbi2_15 },{1, lbi2_0 }, | |
| 115 | {1, asc },{1, add },{1, rc },{2, cop420_op33 },{1, xis3 },{1, ld3 },{1, x3 },{1, xds3 }, | |
| 116 | {1, lbi3_9 },{1, lbi3_10 },{1, lbi3_11 },{1, lbi3_12 },{1, lbi3_13 },{1, lbi3_14 },{1, lbi3_15 },{1, lbi3_0 }, | |
| 117 | {1, comp },{1, skt },{1, rmb2 },{1, rmb2 },{1, nop },{1, rmb1 },{1, smb2 },{1, smb1 }, | |
| 118 | {1, ret },{1, retsk },{1, adt },{1, smb3 },{1, rmb0 },{1, smb0 },{1, cba },{1, xas }, | |
| 119 | {1, cab },{1, aisc1 },{1, aisc2 },{1, aisc3 },{1, aisc4 },{1, aisc5 },{1, aisc6 },{1, aisc7 }, | |
| 120 | {1, aisc8 },{1, aisc9 },{1, aisc10 },{1, aisc11 },{1, aisc12 },{1, aisc13 },{1, aisc14 },{1, aisc15 }, | |
| 121 | {2, jmp0 },{2, jmp1 },{2, jmp2 },{2, jmp3 },{0, illegal },{0, illegal },{0, illegal },{0, illegal }, | |
| 122 | {2, jsr0 },{2, jsr1 },{2, jsr2 },{2, jsr3 },{0, illegal },{0, illegal },{0, illegal },{0, illegal }, | |
| 123 | {1, stii0 },{1, stii1 },{1, stii2 },{1, stii3 },{1, stii4 },{1, stii5 },{1, stii6 },{1, stii7 }, | |
| 124 | {1, stii8 },{1, stii9 },{1, stii10 },{1, stii11 },{1, stii12 },{1, stii13 },{1, stii14 },{1, stii15 }, | |
| 168 | {1, clra },{1, skmbz0 },{1, xor },{1, skmbz2 },{1, xis },{1, ld },{1, x },{1, xds }, | |
| 169 | {1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 170 | {1, casc },{1, skmbz1 },{1, xabr },{1, skmbz3 },{1, xis },{1, ld },{1, x },{1, xds }, | |
| 171 | {1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 172 | {1, skc },{1, ske },{1, sc },{2, cop420_op23 },{1, xis },{1, ld },{1, x },{1, xds }, | |
| 173 | {1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 174 | {1, asc },{1, add },{1, rc },{2, cop420_op33 },{1, xis },{1, ld },{1, x },{1, xds }, | |
| 175 | {1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi },{1, lbi }, | |
| 176 | ||
| 177 | {1, comp },{1, skt },{1, rmb2 },{1, rmb3 },{1, nop },{1, rmb1 },{1, smb2 },{1, smb1 }, | |
| 178 | {1, cop420_ret },{1, retsk },{1, adt },{1, smb3 },{1, rmb0 },{1, smb0 },{1, cba },{1, xas }, | |
| 179 | {1, cab },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc }, | |
| 180 | {1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc },{1, aisc }, | |
| 181 | {2, jmp },{2, jmp },{2, jmp },{2, jmp },{0, illegal },{0, illegal },{0, illegal },{0, illegal }, | |
| 182 | {2, jsr },{2, jsr },{2, jsr },{2, jsr },{0, illegal },{0, illegal },{0, illegal },{0, illegal }, | |
| 183 | {1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii }, | |
| 184 | {1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii },{1, stii }, | |
| 185 | ||
| 125 | 186 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 126 | 187 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 127 | 188 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| r2241 | r2242 | |
| 130 | 191 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 131 | 192 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 132 | 193 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{2, lqid }, |
| 194 | ||
| 133 | 195 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 134 | 196 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 135 | 197 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| r2241 | r2242 | |
| 137 | 199 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 138 | 200 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 139 | 201 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp }, |
| 140 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{ | |
| 202 | {1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{1, jp },{2, jid } | |
| 141 | 203 | }; |
| 142 | 204 | |
| 143 | static ADDRESS_MAP_START( cop420_RAM, ADDRESS_SPACE_DATA, 8 ) | |
| 144 | AM_RANGE(0x00, 0x40) AM_RAM | |
| 205 | /* Memory Maps */ | |
| 206 | ||
| 207 | static ADDRESS_MAP_START( cop420_internal_rom, ADDRESS_SPACE_DATA, 8 ) | |
| 208 | AM_RANGE(0x000, 0x3ff) AM_ROM | |
| 145 | 209 | ADDRESS_MAP_END |
| 146 | 210 | |
| 211 | static ADDRESS_MAP_START( cop420_internal_ram, ADDRESS_SPACE_DATA, 8 ) | |
| 212 | AM_RANGE(0x00, 0x3f) AM_RAM | |
| 213 | ADDRESS_MAP_END | |
| 214 | ||
| 215 | static ADDRESS_MAP_START( cop444_internal_rom, ADDRESS_SPACE_DATA, 8 ) | |
| 216 | AM_RANGE(0x000, 0x7ff) AM_ROM | |
| 217 | ADDRESS_MAP_END | |
| 218 | ||
| 219 | static ADDRESS_MAP_START( cop444_internal_ram, ADDRESS_SPACE_DATA, 8 ) | |
| 220 | AM_RANGE(0x00, 0x7f) AM_RAM | |
| 221 | ADDRESS_MAP_END | |
| 222 | ||
| 223 | /* Binary Counter */ | |
| 224 | ||
| 225 | static TIMER_CALLBACK(cop420_counter_tick) | |
| 226 | { | |
| 227 | R.counter++; | |
| 228 | ||
| 229 | if (R.counter == 1024) | |
| 230 | { | |
| 231 | R.counter = 0; | |
| 232 | R.timerlatch = 1; | |
| 233 | } | |
| 234 | } | |
| 235 | ||
| 147 | 236 | /**************************************************************************** |
| 148 | 237 | * Initialize emulation |
| 149 | 238 | ****************************************************************************/ |
| r2241 | r2242 | |
| 155 | 244 | R.G_mask = 0x0F; |
| 156 | 245 | R.D_mask = 0x0F; |
| 157 | 246 | |
| 158 | R.counter = 0x00; | |
| 247 | cop420_serial_timer = timer_alloc(cop410_serial_tick, NULL); | |
| 248 | timer_adjust_periodic(cop420_serial_timer, attotime_zero, index, ATTOTIME_IN_HZ(clock)); | |
| 159 | 249 | |
| 250 | cop420_counter_timer = timer_alloc(cop420_counter_tick, NULL); | |
| 251 | timer_adjust_periodic(cop420_counter_timer, attotime_zero, index, ATTOTIME_IN_HZ(clock / 1024)); | |
| 252 | ||
| 160 | 253 | for (i=0; i<256; i++) InstLen[i]=1; |
| 161 | 254 | |
| 162 | 255 | InstLen[0x60] = InstLen[0x61] = InstLen[0x62] = InstLen[0x63] = |
| r2241 | r2242 | |
| 194 | 287 | state_save_register_item("cop420", index, R.counter); |
| 195 | 288 | state_save_register_item("cop420", index, R.G_mask); |
| 196 | 289 | state_save_register_item("cop420", index, R.D_mask); |
| 290 | state_save_register_item("cop420", index, R.last_si); | |
| 291 | state_save_register_item("cop420", index, R.last_skip); | |
| 197 | 292 | } |
| 198 | 293 | |
| 294 | static void cop422_init(int index, int clock, const void *config, int (*irqcallback)(int)) | |
| 295 | { | |
| 296 | cop420_init(index, clock, config, irqcallback); | |
| 297 | ||
| 298 | R.G_mask = 0x0e; // only G2, G3 available | |
| 299 | R.D_mask = 0x0e; // only D2, D3 available | |
| 300 | } | |
| 301 | ||
| 302 | static void cop445_init(int index, int clock, const void *config, int (*irqcallback)(int)) | |
| 303 | { | |
| 304 | cop420_init(index, clock, config, irqcallback); | |
| 305 | ||
| 306 | R.G_mask = 0x07; | |
| 307 | R.D_mask = 0x03; | |
| 308 | } | |
| 309 | ||
| 199 | 310 | /**************************************************************************** |
| 200 | 311 | * Reset registers to their initial values |
| 201 | 312 | ****************************************************************************/ |
| r2241 | r2242 | |
| 215 | 326 | ****************************************************************************/ |
| 216 | 327 | static int cop420_execute(int cycles) |
| 217 | 328 | { |
| 218 | | |
| 329 | UINT8 | |
| 219 | 330 | |
| 220 | 331 | cop420_ICount = cycles; |
| 221 | 332 | |
| r2241 | r2242 | |
| 244 | 355 | { |
| 245 | 356 | skipLBI = 0; |
| 246 | 357 | } |
| 247 | else { | |
| 248 | cop420_ICount -= cop420_opcode_main[opcode].cycles; | |
| 358 | else | |
| 359 | { | |
| 360 | cop420_ICount -= opcode_map[opcode].cycles; | |
| 249 | 361 | |
| 250 | 362 | PC += InstLen[opcode]; |
| 251 | 363 | } |
| r2241 | r2242 | |
| 253 | 365 | |
| 254 | 366 | if (skipLBI == 0) |
| 255 | 367 | { |
| 256 | int inst_cycles = cop420_opcode_main[opcode].cycles; | |
| 368 | int inst_cycles = opcode_map[opcode].cycles; | |
| 369 | ||
| 257 | 370 | PC++; |
| 258 | (*(cop420_opcode_main[opcode].function))(); | |
| 371 | ||
| 372 | (*(opcode_map[opcode].function))(opcode); | |
| 259 | 373 | cop420_ICount -= inst_cycles; |
| 260 | 374 | |
| 261 | if (skip == 1) { | |
| 262 | opcode=ROM(PC); | |
| 263 | cop420_ICount -= cop420_opcode_main[opcode].cycles; | |
| 375 | // check for interrupt | |
| 376 | ||
| 377 | if (BIT(EN, 1)) | |
| 378 | { | |
| 379 | UINT8 in = IN_IN(); | |
| 380 | ||
| 381 | if (BIT(IL, 1) && !BIT(in, 1)) | |
| 382 | { | |
| 383 | void *function = opcode_map[ROM(PC)].function; | |
| 384 | ||
| 385 | if ((function != jp) && (function != jmp) && (function != jsr)) | |
| 386 | { | |
| 387 | // store skip logic | |
| 388 | R.last_skip = skip; | |
| 389 | skip = 0; | |
| 390 | ||
| 391 | // push next PC | |
| 392 | PUSH(PC + 1); | |
| 393 | ||
| 394 | // jump to interrupt service routine | |
| 395 | PC = 0x0ff; | |
| 396 | ||
| 397 | // disable interrupt | |
| 398 | EN &= ~0x02; | |
| 399 | } | |
| 400 | } | |
| 401 | ||
| 402 | IL = in; | |
| 403 | } | |
| 404 | ||
| 405 | // skip next instruction? | |
| 406 | ||
| 407 | if (skip == 1) | |
| 408 | { | |
| 409 | void *function = opcode_map[ROM(PC)].function; | |
| 410 | ||
| 411 | opcode = ROM(PC); | |
| 412 | ||
| 413 | if ((function == lqid) || (function == jid)) | |
| 414 | { | |
| 415 | cop420_ICount -= 1; | |
| 416 | } | |
| 417 | else | |
| 418 | { | |
| 419 | cop420_ICount -= opcode_map[opcode].cycles; | |
| 420 | } | |
| 264 | 421 | PC += InstLen[opcode]; |
| 422 | ||
| 265 | 423 | skip = 0; |
| 266 | 424 | } |
| 267 | 425 | } |
| 268 | ||
| 269 | /* counter handling */ | |
| 270 | R.counter += cop420_opcode_main[opcode].cycles; | |
| 271 | if (R.counter > 1024) | |
| 272 | { | |
| 273 | R.timerlatch = 1; | |
| 274 | R.counter = 0; | |
| 275 | } | |
| 276 | ||
| 277 | 426 | } while (cop420_ICount > 0); |
| 278 | 427 | |
| 279 | 428 | return cycles - cop420_ICount; |
| r2241 | r2242 | |
| 338 | 487 | case CPUINFO_INT_DEFAULT_IRQ_VECTOR: info->i = 0; break; |
| 339 | 488 | case CPUINFO_INT_ENDIANNESS: info->i = CPU_IS_LE; break; |
| 340 | 489 | case CPUINFO_INT_CLOCK_MULTIPLIER: info->i = 1; break; |
| 341 | case CPUINFO_INT_CLOCK_DIVIDER: info->i = | |
| 490 | case CPUINFO_INT_CLOCK_DIVIDER: info->i = 16; break; | |
| 342 | 491 | case CPUINFO_INT_MIN_INSTRUCTION_BYTES: info->i = 1; break; |
| 343 | 492 | case CPUINFO_INT_MAX_INSTRUCTION_BYTES: info->i = 2; break; |
| 344 | 493 | case CPUINFO_INT_MIN_CYCLES: info->i = 1; break; |
| r2241 | r2242 | |
| 384 | 533 | case CPUINFO_PTR_DISASSEMBLE: info->disassemble = cop420_dasm; break; |
| 385 | 534 | #endif /* ENABLE_DEBUGGER */ |
| 386 | 535 | case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &cop420_ICount; break; |
| 387 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: | |
| 388 | info->internal_map8 = address_map_cop420_RAM; break; | |
| 389 | 536 | |
| 537 | /* case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: | |
| 538 | info->internal_map8 = address_map_cop420_internal_rom; break;*/ | |
| 539 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: | |
| 540 | info->internal_map8 = address_map_cop420_internal_ram; break; | |
| 541 | ||
| 390 | 542 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 391 | 543 | case CPUINFO_STR_NAME: strcpy(info->s, "COP420"); break; |
| 392 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COP | |
| 544 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COPS | |
| 393 | 545 | case CPUINFO_STR_CORE_VERSION: strcpy(info->s, "1.0"); break; |
| 394 | 546 | case CPUINFO_STR_CORE_FILE: strcpy(info->s, __FILE__); break; |
| 395 | 547 | case CPUINFO_STR_CORE_CREDITS: strcpy(info->s, "Copyright MAME Team"); break; |
| r2241 | r2242 | |
| 412 | 564 | case CPUINFO_STR_REGISTER + COP400_SKL: sprintf(info->s, "SKL:%01X", SKL); break; |
| 413 | 565 | } |
| 414 | 566 | } |
| 567 | ||
| 568 | void cop421_get_info(UINT32 state, cpuinfo *info) | |
| 569 | { | |
| 570 | // COP421 is a 24-pin package version of the COP420, lacking the IN ports | |
| 571 | ||
| 572 | switch (state) | |
| 573 | { | |
| 574 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 575 | case CPUINFO_STR_NAME: strcpy(info->s, "COP421"); break; | |
| 576 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COPS"); break; | |
| 577 | ||
| 578 | default: cop410_get_info(state, info); break; | |
| 579 | } | |
| 580 | } | |
| 581 | ||
| 582 | void cop422_get_info(UINT32 state, cpuinfo *info) | |
| 583 | { | |
| 584 | // COP422 is a 20-pin package version of the COP420, lacking the IN ports | |
| 585 | ||
| 586 | switch (state) | |
| 587 | { | |
| 588 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 589 | case CPUINFO_PTR_INIT: info->init = cop422_init; break; | |
| 590 | ||
| 591 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 592 | case CPUINFO_STR_NAME: strcpy(info->s, "COP422"); break; | |
| 593 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COPS"); break; | |
| 594 | ||
| 595 | default: cop410_get_info(state, info); break; | |
| 596 | } | |
| 597 | } | |
| 598 | ||
| 599 | void cop402_get_info(UINT32 state, cpuinfo *info) | |
| 600 | { | |
| 601 | // COP402 is a ROMless version of the COP420 | |
| 602 | ||
| 603 | switch (state) | |
| 604 | { | |
| 605 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 606 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: | |
| 607 | info->internal_map8 = NULL; break; | |
| 608 | ||
| 609 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 610 | case CPUINFO_STR_NAME: strcpy(info->s, "COP402"); break; | |
| 611 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COPS"); break; | |
| 612 | ||
| 613 | default: cop420_get_info(state, info); break; | |
| 614 | } | |
| 615 | } | |
| 616 | ||
| 617 | void cop444_get_info(UINT32 state, cpuinfo *info) | |
| 618 | { | |
| 619 | // COP444 is functionally equivalent to COP420, but with twice the RAM/ROM | |
| 620 | ||
| 621 | switch (state) | |
| 622 | { | |
| 623 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 624 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: | |
| 625 | info->internal_map8 = address_map_cop444_internal_rom; break; | |
| 626 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: | |
| 627 | info->internal_map8 = address_map_cop444_internal_ram; break; | |
| 628 | ||
| 629 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 630 | case CPUINFO_STR_NAME: strcpy(info->s, "COP444"); break; | |
| 631 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COPS"); break; | |
| 632 | ||
| 633 | default: cop420_get_info(state, info); break; | |
| 634 | } | |
| 635 | } | |
| 636 | ||
| 637 | void cop445_get_info(UINT32 state, cpuinfo *info) | |
| 638 | { | |
| 639 | // COP445 is a 24-pin package version of the COP444, lacking the IN ports | |
| 640 | ||
| 641 | switch (state) | |
| 642 | { | |
| 643 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 644 | case CPUINFO_PTR_INIT: info->init = cop445_init; break; | |
| 645 | ||
| 646 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 647 | case CPUINFO_STR_NAME: strcpy(info->s, "COP445"); break; | |
| 648 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COPS"); break; | |
| 649 | ||
| 650 | default: cop444_get_info(state, info); break; | |
| 651 | } | |
| 652 | } | |
| 653 | ||
| 654 | void cop404_get_info(UINT32 state, cpuinfo *info) | |
| 655 | { | |
| 656 | // COP404 is a ROMless version of the COP444 | |
| 657 | ||
| 658 | switch (state) | |
| 659 | { | |
| 660 | /* --- the following bits of info are returned as pointers to data or functions --- */ | |
| 661 | case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM: | |
| 662 | info->internal_map8 = NULL; break; | |
| 663 | ||
| 664 | /* --- the following bits of info are returned as NULL-terminated strings --- */ | |
| 665 | case CPUINFO_STR_NAME: strcpy(info->s, "COP404"); break; | |
| 666 | case CPUINFO_STR_CORE_FAMILY: strcpy(info->s, "National Semiconductor COPS"); break; | |
| 667 | ||
| 668 | default: cop444_get_info(state, info); break; | |
| 669 | } | |
| 670 | } |
| r2241 | r2242 | |
|---|---|---|
| 9 | 9 | |
| 10 | 10 | ***************************************************************************/ |
| 11 | 11 | |
| 12 | #ifndef _COP400_H | |
| 13 | #define _COP400_H | |
| 12 | #ifndef __COP400__ | |
| 13 | #define __COP400__ | |
| 14 | 14 | |
| 15 | #ifndef INLINE | |
| 16 | #define INLINE static inline | |
| 17 | #endif | |
| 18 | ||
| 19 | 15 | #define COP400_PORT_L 0x100 |
| 20 | 16 | #define COP400_PORT_G 0x101 |
| 21 | 17 | #define COP400_PORT_D 0x102 |
| r2241 | r2242 | |
| 38 | 34 | COP400_SKL |
| 39 | 35 | }; |
| 40 | 36 | |
| 37 | extern void cop401_get_info(UINT32 state, cpuinfo *info); | |
| 41 | 38 | extern void cop410_get_info(UINT32 state, cpuinfo *info); |
| 42 | 39 | extern void cop411_get_info(UINT32 state, cpuinfo *info); |
| 40 | ||
| 41 | extern void cop402_get_info(UINT32 state, cpuinfo *info); | |
| 43 | 42 | extern void cop420_get_info(UINT32 state, cpuinfo *info); |
| 43 | extern void cop421_get_info(UINT32 state, cpuinfo *info); | |
| 44 | extern void cop422_get_info(UINT32 state, cpuinfo *info); | |
| 44 | 45 | |
| 46 | extern void cop404_get_info(UINT32 state, cpuinfo *info); | |
| 47 | extern void cop444_get_info(UINT32 state, cpuinfo *info); | |
| 48 | extern void cop445_get_info(UINT32 state, cpuinfo *info); | |
| 49 | ||
| 45 | 50 | #ifdef ENABLE_DEBUGGER |
| 46 | 51 | offs_t cop410_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 47 | 52 | offs_t cop420_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); |
| 48 | 53 | #endif /* ENABLE_DEBUGGER */ |
| 49 | 54 | |
| 50 | #endif /* _COP400_ | |
| 55 | #endif /* __COP400__ */ |
| r2241 | r2242 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | offs_t cop410_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) |
| 15 | 15 | { |
| 16 | int op; | |
| 17 | int cnt = 1; | |
| 18 | UINT16 addr; | |
| 19 | UINT8 op2; | |
| 16 | UINT8 opcode = oprom[0]; | |
| 17 | UINT8 next_opcode = oprom[1]; | |
| 18 | UINT16 address; | |
| 20 | 19 | UINT32 flags = 0; |
| 20 | int bytes = 1; | |
| 21 | 21 | |
| 22 | op = oprom[0]; | |
| 23 | ||
| 24 | if ((op >= 0x80 && op <= 0xBE) || (op >= 0xC0 && op <= 0xFE)) | |
| 22 | if ((opcode >= 0x80 && opcode <= 0xBE) || (opcode >= 0xC0 && opcode <= 0xFE)) | |
| 25 | 23 | { |
| 26 | 24 | if ((pc & 0x3E0) >= 0x80 && (pc & 0x3E0) < 0x100) //JP pages 2,3 |
| 27 | 25 | { |
| 28 | addr = (UINT16)((pc & 0x380) | (op & 0x7F)); | |
| 29 | sprintf(buffer,"JP %x",addr); | |
| 26 | address = (UINT16)((pc & 0x380) | (opcode & 0x7F)); | |
| 27 | sprintf(buffer, "JP %x", address); | |
| 30 | 28 | } |
| 31 | 29 | else |
| 32 | 30 | { |
| 33 | if ((op & 0xC0) == 0xC0) //JP other pages | |
| 31 | if ((opcode & 0xC0) == 0xC0) //JP other pages | |
| 34 | 32 | { |
| 35 | addr = (UINT16)((pc & 0x3C0) | (op & 0x3F)); | |
| 36 | sprintf(buffer,"JP %x",addr); | |
| 33 | address = (UINT16)((pc & 0x3C0) | (opcode & 0x3F)); | |
| 34 | sprintf(buffer, "JP %x", address); | |
| 37 | 35 | } |
| 38 | 36 | else //JSRP |
| 39 | 37 | { |
| 40 | addr = (UINT16)(0x80 | (op & 0x3F)); | |
| 41 | sprintf(buffer,"JSRP %x",addr); | |
| 38 | address = (UINT16)(0x80 | (opcode & 0x3F)); | |
| 39 | sprintf(buffer, "JSRP %x", address); | |
| 42 | 40 | flags = DASMFLAG_STEP_OVER; |
| 43 | 41 | } |
| 44 | 42 | } |
| 45 | 43 | } |
| 46 | else if (op >= 0x08 && op <= 0x0F) | |
| 44 | else if (opcode >= 0x08 && opcode <= 0x0F) | |
| 47 | 45 | { |
| 48 | sprintf(buffer,"LBI 0,%u",((op & 0xF) + 1) & 0xF); | |
| 46 | sprintf(buffer, "LBI 0,%u", ((opcode & 0xF) + 1) & 0xF); | |
| 49 | 47 | } |
| 50 | else if (op >= 0x18 && op <= 0x1F) | |
| 48 | else if (opcode >= 0x18 && opcode <= 0x1F) | |
| 51 | 49 | { |
| 52 | sprintf(buffer,"LBI 1,%u",((op & 0xF) + 1) & 0xF); | |
| 50 | sprintf(buffer, "LBI 1,%u", ((opcode & 0xF) + 1) & 0xF); | |
| 53 | 51 | } |
| 54 | else if (op >= 0x28 && op <= 0x2F) | |
| 52 | else if (opcode >= 0x28 && opcode <= 0x2F) | |
| 55 | 53 | { |
| 56 | sprintf(buffer,"LBI 2,%u",((op & 0xF) + 1) & 0xF); | |
| 54 | sprintf(buffer, "LBI 2,%u", ((opcode & 0xF) + 1) & 0xF); | |
| 57 | 55 | } |
| 58 | else if (op >= 0x38 && op <= 0x3F) | |
| 56 | else if (opcode >= 0x38 && opcode <= 0x3F) | |
| 59 | 57 | { |
| 60 | sprintf(buffer,"LBI 3,%u",((op & 0xF) + 1) & 0xF); | |
| 58 | sprintf(buffer, "LBI 3,%u", ((opcode & 0xF) + 1) & 0xF); | |
| 61 | 59 | } |
| 62 | else if (op >= 0x51 && op <= 0x5F) | |
| 60 | else if (opcode >= 0x51 && opcode <= 0x5F) | |
| 63 | 61 | { |
| 64 | sprintf(buffer,"AISC %u",op & 0xF); | |
| 62 | sprintf(buffer, "AISC %u", opcode & 0xF); | |
| 65 | 63 | } |
| 66 | else if (op >= 0x60 && op <= 0x61) | |
| 64 | else if (opcode >= 0x60 && opcode <= 0x61) | |
| 67 | 65 | { |
| 68 | addr = ((op & 0x01) << 8) | oprom[1]; | |
| 69 | sprintf(buffer,"JMP %x",addr); | |
| 70 | cnt = 2; | |
| 66 | address = ((opcode & 0x01) << 8) | next_opcode; | |
| 67 | sprintf(buffer, "JMP %x", address); | |
| 68 | bytes = 2; | |
| 71 | 69 | } |
| 72 | else if (op >= 0x68 && op <= 0x69) | |
| 70 | else if (opcode >= 0x68 && opcode <= 0x69) | |
| 73 | 71 | { |
| 74 | addr = ((op & 0x01) << 8) | oprom[1]; | |
| 75 | sprintf(buffer,"JSR %x",addr); | |
| 72 | address = ((opcode & 0x01) << 8) | next_opcode; | |
| 73 | sprintf(buffer, "JSR %x", address); | |
| 76 | 74 | flags = DASMFLAG_STEP_OVER; |
| 77 | | |
| 75 | bytes = 2; | |
| 78 | 76 | } |
| 79 | else if (op >= 0x70 && op <= 0x7F) | |
| 77 | else if (opcode >= 0x70 && opcode <= 0x7F) | |
| 80 | 78 | { |
| 81 | sprintf(buffer,"STII %u",op & 0xF); | |
| 79 | sprintf(buffer, "STII %u", opcode & 0xF); | |
| 82 | 80 | } |
| 83 | 81 | else |
| 84 | 82 | { |
| 85 | switch (op) | |
| 83 | switch (opcode) | |
| 86 | 84 | { |
| 87 | 85 | case 0: |
| 88 | sprintf(buffer,"CLRA"); | |
| 86 | sprintf(buffer, "CLRA"); | |
| 89 | 87 | break; |
| 90 | 88 | |
| 91 | 89 | case 1: |
| 92 | sprintf(buffer,"SKMBZ 0"); | |
| 90 | sprintf(buffer, "SKMBZ 0"); | |
| 93 | 91 | break; |
| 94 | 92 | |
| 95 | 93 | case 2: |
| 96 | sprintf(buffer,"XOR"); | |
| 94 | sprintf(buffer, "XOR"); | |
| 97 | 95 | break; |
| 98 | 96 | |
| 99 | 97 | case 3: |
| 100 | sprintf(buffer,"SKMBZ 2"); | |
| 98 | sprintf(buffer, "SKMBZ 2"); | |
| 101 | 99 | break; |
| 102 | 100 | |
| 103 | 101 | case 4: |
| 104 | sprintf(buffer,"XIS 0"); | |
| 102 | sprintf(buffer, "XIS 0"); | |
| 105 | 103 | break; |
| 106 | 104 | |
| 107 | 105 | case 5: |
| 108 | sprintf(buffer,"LD 0"); | |
| 106 | sprintf(buffer, "LD 0"); | |
| 109 | 107 | break; |
| 110 | 108 | |
| 111 | 109 | case 6: |
| 112 | sprintf(buffer,"X 0"); | |
| 110 | sprintf(buffer, "X 0"); | |
| 113 | 111 | break; |
| 114 | 112 | |
| 115 | 113 | case 7: |
| 116 | sprintf(buffer,"XDS 0"); | |
| 114 | sprintf(buffer, "XDS 0"); | |
| 117 | 115 | break; |
| 118 | 116 | |
| 119 | 117 | case 0x11: |
| 120 | sprintf(buffer,"SKMBZ 1"); | |
| 118 | sprintf(buffer, "SKMBZ 1"); | |
| 121 | 119 | break; |
| 122 | 120 | |
| 123 | 121 | case 0x13: |
| 124 | sprintf(buffer,"SKMBZ 3"); | |
| 122 | sprintf(buffer, "SKMBZ 3"); | |
| 125 | 123 | break; |
| 126 | 124 | |
| 127 | 125 | case 0x14: |
| 128 | sprintf(buffer,"XIS 1"); | |
| 126 | sprintf(buffer, "XIS 1"); | |
| 129 | 127 | break; |
| 130 | 128 | |
| 131 | 129 | case 0x15: |
| 132 | sprintf(buffer,"LD 1"); | |
| 130 | sprintf(buffer, "LD 1"); | |
| 133 | 131 | break; |
| 134 | 132 | |
| 135 | 133 | case 0x16: |
| 136 | sprintf(buffer,"X 1"); | |
| 134 | sprintf(buffer, "X 1"); | |
| 137 | 135 | break; |
| 138 | 136 | |
| 139 | 137 | case 0x17: |
| 140 | sprintf(buffer,"XDS 1"); | |
| 138 | sprintf(buffer, "XDS 1"); | |
| 141 | 139 | break; |
| 142 | 140 | |
| 143 | 141 | case 0x20: |
| 144 | sprintf(buffer,"SKC"); | |
| 142 | sprintf(buffer, "SKC"); | |
| 145 | 143 | break; |
| 146 | 144 | |
| 147 | 145 | case 0x21: |
| 148 | sprintf(buffer,"SKE"); | |
| 146 | sprintf(buffer, "SKE"); | |
| 149 | 147 | break; |
| 150 | 148 | |
| 151 | 149 | case 0x22: |
| 152 | sprintf(buffer,"SC"); | |
| 150 | sprintf(buffer, "SC"); | |
| 153 | 151 | break; |
| 154 | 152 | |
| 155 | 153 | case 0x23: |
| 156 | addr = (UINT16)(oprom[1] & 0x3F); | |
| 157 | sprintf(buffer,"XAD %x,%x",((addr & 0x30) >> 4),addr & 0x0F); | |
| 158 | cnt = 2; | |
| 154 | bytes = 2; | |
| 155 | ||
| 156 | if (next_opcode >= 0x80 && next_opcode <= 0xbf) | |
| 157 | { | |
| 158 | address = (UINT16)(next_opcode & 0x3F); | |
| 159 | sprintf(buffer, "XAD %x,%x", ((address & 0x30) >> 4),address & 0x0F); | |
| 160 | } | |
| 161 | else | |
| 162 | { | |
| 163 | sprintf(buffer, "Invalid"); | |
| 164 | } | |
| 159 | 165 | break; |
| 160 | 166 | |
| 161 | 167 | case 0x24: |
| 162 | sprintf(buffer,"XIS 2"); | |
| 168 | sprintf(buffer, "XIS 2"); | |
| 163 | 169 | break; |
| 164 | 170 | |
| 165 | 171 | case 0x25: |
| 166 | sprintf(buffer,"LD 2"); | |
| 172 | sprintf(buffer, "LD 2"); | |
| 167 | 173 | break; |
| 168 | 174 | |
| 169 | 175 | case 0x26: |
| 170 | sprintf(buffer,"X 2"); | |
| 176 | sprintf(buffer, "X 2"); | |
| 171 | 177 | break; |
| 172 | 178 | |
| 173 | 179 | case 0x27: |
| 174 | sprintf(buffer,"XDS 2"); | |
| 180 | sprintf(buffer, "XDS 2"); | |
| 175 | 181 | break; |
| 176 | 182 | |
| 177 | 183 | case 0x30: |
| 178 | sprintf(buffer,"ASC"); | |
| 184 | sprintf(buffer, "ASC"); | |
| 179 | 185 | break; |
| 180 | 186 | |
| 181 | 187 | case 0x31: |
| 182 | sprintf(buffer,"ADD"); | |
| 188 | sprintf(buffer, "ADD"); | |
| 183 | 189 | break; |
| 184 | 190 | |
| 185 | 191 | case 0x32: |
| 186 | sprintf(buffer,"RC"); | |
| 192 | sprintf(buffer, "RC"); | |
| 187 | 193 | break; |
| 188 | 194 | |
| 189 | 195 | case 0x33: |
| 190 | op2 = oprom[1]; | |
| 191 | cnt = 2; | |
| 196 | bytes = 2; | |
| 192 | 197 | |
| 193 | if (op | |
| 198 | if (next_opcode >= 0x60 || next_opcode <= 0x6F) | |
| 194 | 199 | { |
| 195 | sprintf(buffer,"LEI %x",op | |
| 200 | sprintf(buffer, "LEI %x", next_opcode & 0xF); | |
| 196 | 201 | } |
| 197 | 202 | else |
| 198 | 203 | { |
| 199 | switch (op | |
| 204 | switch (next_opcode) | |
| 200 | 205 | { |
| 201 | 206 | case 0x01: |
| 202 | sprintf(buffer,"SKGBZ 0"); | |
| 207 | sprintf(buffer, "SKGBZ 0"); | |
| 203 | 208 | break; |
| 204 | 209 | |
| 205 | 210 | case 0x03: |
| 206 | sprintf(buffer,"SKGBZ 2"); | |
| 211 | sprintf(buffer, "SKGBZ 2"); | |
| 207 | 212 | break; |
| 208 | 213 | |
| 209 | 214 | case 0x11: |
| 210 | sprintf(buffer,"SKGBZ 1"); | |
| 215 | sprintf(buffer, "SKGBZ 1"); | |
| 211 | 216 | break; |
| 212 | 217 | |
| 213 | 218 | case 0x13: |
| 214 | sprintf(buffer,"SKGBZ 3"); | |
| 219 | sprintf(buffer, "SKGBZ 3"); | |
| 215 | 220 | break; |
| 216 | 221 | |
| 217 | 222 | case 0x21: |
| 218 | sprintf(buffer,"SKGZ"); | |
| 223 | sprintf(buffer, "SKGZ"); | |
| 219 | 224 | break; |
| 220 | 225 | |
| 221 | 226 | case 0x2A: |
| 222 | sprintf(buffer,"ING"); | |
| 227 | sprintf(buffer, "ING"); | |
| 223 | 228 | break; |
| 224 | 229 | |
| 225 | 230 | case 0x2E: |
| 226 | sprintf(buffer,"INL"); | |
| 231 | sprintf(buffer, "INL"); | |
| 227 | 232 | break; |
| 228 | 233 | |
| 229 | 234 | case 0x3A: |
| 230 | sprintf(buffer,"OMG"); | |
| 235 | sprintf(buffer, "OMG"); | |
| 231 | 236 | break; |
| 232 | 237 | |
| 233 | 238 | case 0x3C: |
| 234 | sprintf(buffer,"CAMQ"); | |
| 239 | sprintf(buffer, "CAMQ"); | |
| 235 | 240 | break; |
| 236 | 241 | |
| 237 | 242 | case 0x3E: |
| 238 | sprintf(buffer,"OBD"); | |
| 243 | sprintf(buffer, "OBD"); | |
| 239 | 244 | break; |
| 240 | 245 | |
| 241 | 246 | default: |
| 242 | sprintf(buffer,"Invalid"); | |
| 247 | sprintf(buffer, "Invalid"); | |
| 243 | 248 | break; |
| 244 | 249 | } |
| 245 | 250 | break; |
| 246 | 251 | } |
| 247 | 252 | |
| 248 | 253 | case 0x34: |
| 249 | sprintf(buffer,"XIS 3"); | |
| 254 | sprintf(buffer, "XIS 3"); | |
| 250 | 255 | break; |
| 251 | 256 | |
| 252 | 257 | case 0x35: |
| 253 | sprintf(buffer,"LD 3"); | |
| 258 | sprintf(buffer, "LD 3"); | |
| 254 | 259 | break; |
| 255 | 260 | |
| 256 | 261 | case 0x36: |
| 257 | sprintf(buffer,"X 3"); | |
| 262 | sprintf(buffer, "X 3"); | |
| 258 | 263 | break; |
| 259 | 264 | |
| 260 | 265 | case 0x37: |
| 261 | sprintf(buffer,"XDS 3"); | |
| 266 | sprintf(buffer, "XDS 3"); | |
| 262 | 267 | break; |
| 263 | 268 | |
| 264 | 269 | case 0x40: |
| 265 | sprintf(buffer,"COMP"); | |
| 270 | sprintf(buffer, "COMP"); | |
| 266 | 271 | break; |
| 267 | 272 | |
| 268 | 273 | case 0x42: |
| 269 | sprintf(buffer,"RMB 2"); | |
| 274 | sprintf(buffer, "RMB 2"); | |
| 270 | 275 | break; |
| 271 | 276 | |
| 272 | 277 | case 0x43: |
| 273 | sprintf(buffer,"RMB 3"); | |
| 278 | sprintf(buffer, "RMB 3"); | |
| 274 | 279 | break; |
| 275 | 280 | |
| 276 | 281 | case 0x44: |
| 277 | sprintf(buffer,"NOP"); | |
| 282 | sprintf(buffer, "NOP"); | |
| 278 | 283 | break; |
| 279 | 284 | |
| 280 | 285 | case 0x45: |
| 281 | sprintf(buffer,"RMB 1"); | |
| 286 | sprintf(buffer, "RMB 1"); | |
| 282 | 287 | break; |
| 283 | 288 | |
| 284 | 289 | case 0x46: |
| 285 | sprintf(buffer,"SMB 2"); | |
| 290 | sprintf(buffer, "SMB 2"); | |
| 286 | 291 | break; |
| 287 | 292 | |
| 288 | 293 | case 0x47: |
| 289 | sprintf(buffer,"SMB 1"); | |
| 294 | sprintf(buffer, "SMB 1"); | |
| 290 | 295 | break; |
| 291 | 296 | |
| 292 | 297 | case 0x48: |
| 293 | sprintf(buffer,"RET"); | |
| 298 | sprintf(buffer, "RET"); | |
| 294 | 299 | flags = DASMFLAG_STEP_OUT; |
| 295 | 300 | break; |
| 296 | 301 | |
| 297 | 302 | case 0x49: |
| 298 | sprintf(buffer,"RETSK"); | |
| 303 | sprintf(buffer, "RETSK"); | |
| 299 | 304 | flags = DASMFLAG_STEP_OUT; |
| 300 | 305 | break; |
| 301 | 306 | |
| 302 | 307 | case 0x4B: |
| 303 | sprintf(buffer,"SMB 3"); | |
| 308 | sprintf(buffer, "SMB 3"); | |
| 304 | 309 | break; |
| 305 | 310 | |
| 306 | 311 | case 0x4C: |
| 307 | sprintf(buffer,"RMB 0"); | |
| 312 | sprintf(buffer, "RMB 0"); | |
| 308 | 313 | break; |
| 309 | 314 | |
| 310 | 315 | case 0x4D: |
| 311 | sprintf(buffer,"SMB 0"); | |
| 316 | sprintf(buffer, "SMB 0"); | |
| 312 | 317 | break; |
| 313 | 318 | |
| 314 | 319 | case 0x4E: |
| 315 | sprintf(buffer,"CBA"); | |
| 320 | sprintf(buffer, "CBA"); | |
| 316 | 321 | break; |
| 317 | 322 | |
| 318 | 323 | case 0x4F: |
| 319 | sprintf(buffer,"XAS"); | |
| 324 | sprintf(buffer, "XAS"); | |
| 320 | 325 | break; |
| 321 | 326 | |
| 322 | 327 | case 0x50: |
| 323 | sprintf(buffer,"CAB"); | |
| 328 | sprintf(buffer, "CAB"); | |
| 324 | 329 | break; |
| 325 | 330 | |
| 326 | 331 | case 0xBF: |
| 327 | sprintf(buffer,"LQID"); | |
| 332 | sprintf(buffer, "LQID"); | |
| 328 | 333 | break; |
| 329 | 334 | |
| 330 | 335 | case 0xFF: |
| 331 | sprintf(buffer,"JID"); | |
| 336 | sprintf(buffer, "JID"); | |
| 332 | 337 | break; |
| 333 | 338 | |
| 334 | 339 | default: |
| 335 | sprintf(buffer,"Invalid"); | |
| 340 | sprintf(buffer, "Invalid"); | |
| 336 | 341 | break; |
| 337 | 342 | } |
| 338 | 343 | } |
| 339 | 344 | |
| 340 | return | |
| 345 | return bytes | flags | DASMFLAG_SUPPORTED; | |
| 341 | 346 | } |
| r2241 | r2242 | |
|---|---|---|
| 894 | 894 | static UINT64 program_read_qword_masked_32be(offs_t offset, UINT64 mem_mask) |
| 895 | 895 | { |
| 896 | 896 | UINT64 result = 0; |
| 897 | if ( | |
| 897 | if (ACCESSING_BITS_32_63 | |
| 898 | 898 | result |= (UINT64)program_read_masked_32be(offset, mem_mask >> 32) << 32; |
| 899 | if ( | |
| 899 | if (ACCESSING_BITS_ | |
| 900 | 900 | result |= program_read_masked_32be(offset + 4, mem_mask); |
| 901 | 901 | return result; |
| 902 | 902 | } |
| r2241 | r2242 | |
| 922 | 922 | static UINT64 program_read_qword_masked_32le(offs_t offset, UINT64 mem_mask) |
| 923 | 923 | { |
| 924 | 924 | UINT64 result = 0; |
| 925 | if ( | |
| 925 | if (ACCESSING_BITS_ | |
| 926 | 926 | result |= program_read_masked_32le(offset, mem_mask); |
| 927 | if ( | |
| 927 | if (ACCESSING_BITS_32_63 | |
| 928 | 928 | result |= (UINT64)program_read_masked_32le(offset + 4, mem_mask >> 32) << 32; |
| 929 | 929 | return result; |
| 930 | 930 | } |
| r2241 | r2242 | |
| 949 | 949 | |
| 950 | 950 | static void program_write_qword_masked_32be(offs_t offset, UINT64 data, UINT64 mem_mask) |
| 951 | 951 | { |
| 952 | if ( | |
| 952 | if (ACCESSING_BITS_32_63 | |
| 953 | 953 | program_write_masked_32be(offset, data >> 32, mem_mask >> 32); |
| 954 | if ( | |
| 954 | if (ACCESSING_BITS_ | |
| 955 | 955 | program_write_masked_32be(offset + 4, data, mem_mask); |
| 956 | 956 | } |
| 957 | 957 | |
| r2241 | r2242 | |
| 975 | 975 | |
| 976 | 976 | static void program_write_qword_masked_32le(offs_t offset, UINT64 data, UINT64 mem_mask) |
| 977 | 977 | { |
| 978 | if ( | |
| 978 | if (ACCESSING_BITS_ | |
| 979 | 979 | program_write_masked_32le(offset, data, mem_mask); |
| 980 | if ( | |
| 980 | if (ACCESSING_BITS_32_63 | |
| 981 | 981 | program_write_masked_32le(offset + 4, data >> 32, mem_mask >> 32); |
| 982 | 982 | } |
| r2241 | r2242 | |
|---|---|---|
| 88 | 88 | INLINE UINT16 read16be_with_read8_handler(read8_machine_func handler, void *param, offs_t offset, UINT16 mem_mask) |
| 89 | 89 | { |
| 90 | 90 | UINT16 result = 0; |
| 91 | if ( | |
| 91 | if (ACCESSING_BITS_8_15 | |
| 92 | 92 | result |= ((UINT16)(*handler)(param, offset * 2 + 0)) << 8; |
| 93 | if ( | |
| 93 | if (ACCESSING_BITS_ | |
| 94 | 94 | result |= ((UINT16)(*handler)(param, offset * 2 + 1)) << 0; |
| 95 | 95 | return result; |
| 96 | 96 | } |
| r2241 | r2242 | |
| 98 | 98 | |
| 99 | 99 | INLINE void write16be_with_write8_handler(write8_machine_func handler, void *param, offs_t offset, UINT16 data, UINT16 mem_mask) |
| 100 | 100 | { |
| 101 | if ( | |
| 101 | if (ACCESSING_BITS_8_15 | |
| 102 | 102 | (*handler)(param, offset * 2 + 0, data >> 8); |
| 103 | if ( | |
| 103 | if (ACCESSING_BITS_ | |
| 104 | 104 | (*handler)(param, offset * 2 + 1, data >> 0); |
| 105 | 105 | } |
| 106 | 106 | |
| r2241 | r2242 | |
| 114 | 114 | INLINE UINT16 read16le_with_read8_handler(read8_machine_func handler, void *param, offs_t offset, UINT16 mem_mask) |
| 115 | 115 | { |
| 116 | 116 | UINT16 result = 0; |
| 117 | if ( | |
| 117 | if (ACCESSING_BITS_ | |
| 118 | 118 | result |= ((UINT16) (*handler)(param, offset * 2 + 0)) << 0; |
| 119 | if ( | |
| 119 | if (ACCESSING_BITS_8_15 | |
| 120 | 120 | result |= ((UINT16) (*handler)(param, offset * 2 + 1)) << 8; |
| 121 | 121 | return result; |
| 122 | 122 | } |
| r2241 | r2242 | |
| 124 | 124 | |
| 125 | 125 | INLINE void write16le_with_write8_handler(write8_machine_func handler, void *param, offs_t offset, UINT16 data, UINT16 mem_mask) |
| 126 | 126 | { |
| 127 | if ( | |
| 127 | if (ACCESSING_BITS_ | |
| 128 | 128 | (*handler)(param, offset * 2 + 0, data >> 0); |
| 129 | if ( | |
| 129 | if (ACCESSING_BITS_8_15 | |
| 130 | 130 | (*handler)(param, offset * 2 + 1, data >> 8); |
| 131 | 131 | } |
| 132 | 132 | |
| r2241 | r2242 | |
| 140 | 140 | INLINE UINT32 read32be_with_read8_handler(read8_machine_func handler, void *param, offs_t offset, UINT32 mem_mask) |
| 141 | 141 | { |
| 142 | 142 | UINT32 result = 0; |
| 143 | if ( | |
| 143 | if (ACCESSING_BITS_16_31 | |
| 144 | 144 | result |= read16be_with_read8_handler(handler, param, offset * 2 + 0, mem_mask >> 16) << 16; |
| 145 | if ( | |
| 145 | if (ACCESSING_BITS_ | |
| 146 | 146 | result |= read16be_with_read8_handler(handler, param, offset * 2 + 1, mem_mask) << 0; |
| 147 | 147 | return result; |
| 148 | 148 | } |
| r2241 | r2242 | |
| 150 | 150 | |
| 151 | 151 | INLINE void write32be_with_write8_handler(write8_machine_func handler, void *param, offs_t offset, UINT32 data, UINT32 mem_mask) |
| 152 | 152 | { |
| 153 | if ( | |
| 153 | if (ACCESSING_BITS_16_31 | |
| 154 | 154 | write16be_with_write8_handler(handler, param, offset * 2 + 0, data >> 16, mem_mask >> 16); |
| 155 | if ( | |
| 155 | if (ACCESSING_BITS_ | |
| 156 | 156 | write16be_with_write8_handler(handler, param, offset * 2 + 1, data, mem_mask); |
| 157 | 157 | } |
| 158 | 158 | |
| r2241 | r2242 | |
| 166 | 166 | INLINE UINT32 read32le_with_read8_handler(read8_machine_func handler, void *param, offs_t offset, UINT32 mem_mask) |
| 167 | 167 | { |
| 168 | 168 | UINT32 result = 0; |
| 169 | if ( | |
| 169 | if (ACCESSING_BITS_ | |
| 170 | 170 | result |= read16le_with_read8_handler(handler, param, offset * 2 + 0, mem_mask) << 0; |
| 171 | if ( | |
| 171 | if (ACCESSING_BITS_16_31 | |
| 172 | 172 | result |= read16le_with_read8_handler(handler, param, offset * 2 + 1, mem_mask >> 16) << 16; |
| 173 | 173 | return result; |
| 174 | 174 | } |
| r2241 | r2242 | |
| 176 | 176 | |
| 177 | 177 | INLINE void write32le_with_write8_handler(write8_machine_func handler, void *param, offs_t offset, UINT32 data, UINT32 mem_mask) |
| 178 | 178 | { |
| 179 | if ( | |
| 179 | if (ACCESSING_BITS_ | |
| 180 | 180 | write16le_with_write8_handler(handler, param, offset * 2 + 0, data, mem_mask); |
| 181 | if ( | |
| 181 | if (ACCESSING_BITS_16_31 | |
| 182 | 182 | write16le_with_write8_handler(handler, param, offset * 2 + 1, data >> 16, mem_mask >> 16); |
| 183 | 183 | } |
| 184 | 184 | |
| r2241 | r2242 | |
| 192 | 192 | INLINE UINT32 read32be_with_16be_handler(read16_machine_func handler, void *param, offs_t offset, UINT32 mem_mask) |
| 193 | 193 | { |
| 194 | 194 | UINT32 result = 0; |
| 195 | if ( | |
| 195 | if (ACCESSING_BITS_16_31 | |
| 196 | 196 | result |= (*handler)(param, offset * 2 + 0, mem_mask >> 16) << 16; |
| 197 | if ( | |
| 197 | if (ACCESSING_BITS_ | |
| 198 | 198 | result |= (*handler)(param, offset * 2 + 1, mem_mask) << 0; |
| 199 | 199 | return result; |
| 200 | 200 | } |
| r2241 | r2242 | |
| 202 | 202 | |
| 203 | 203 | INLINE void write32be_with_16be_handler(write16_machine_func handler, void *param, offs_t offset, UINT32 data, UINT32 mem_mask) |
| 204 | 204 | { |
| 205 | if ( | |
| 205 | if (ACCESSING_BITS_16_31 | |
| 206 | 206 | (*handler)(param, offset * 2 + 0, data >> 16, mem_mask >> 16); |
| 207 | if ( | |
| 207 | if (ACCESSING_BITS_ | |
| 208 | 208 | (*handler)(param, offset * 2 + 1, data, mem_mask); |
| 209 | 209 | } |
| 210 | 210 | |
| r2241 | r2242 | |
| 218 | 218 | INLINE UINT32 read32le_with_16le_handler(read16_machine_func handler, void *param, offs_t offset, UINT32 mem_mask) |
| 219 | 219 | { |
| 220 | 220 | UINT32 result = 0; |
| 221 | if ( | |
| 221 | if (ACCESSING_BITS_ | |
| 222 | 222 | result |= (*handler)(param, offset * 2 + 0, mem_mask) << 0; |
| 223 | if ( | |
| 223 | if (ACCESSING_BITS_16_31 | |
| 224 | 224 | result |= (*handler)(param, offset * 2 + 1, mem_mask >> 16) << 16; |
| 225 | 225 | return result; |
| 226 | 226 | } |
| r2241 | r2242 | |
| 228 | 228 | |
| 229 | 229 | INLINE void write32le_with_16le_handler(write16_machine_func handler, void *param, offs_t offset, UINT32 data, UINT32 mem_mask) |
| 230 | 230 | { |
| 231 | if ( | |
| 231 | if (ACCESSING_BITS_ | |
| 232 | 232 | (*handler)(param, offset * 2 + 0, data, mem_mask); |
| 233 | if ( | |
| 233 | if (ACCESSING_BITS_16_31 | |
| 234 | 234 | (*handler)(param, offset * 2 + 1, data >> 16, mem_mask >> 16); |
| 235 | 235 | } |
| 236 | 236 | |
| r2241 | r2242 | |
| 290 | 290 | INLINE UINT64 read64be_with_read8_handler(read8_machine_func handler, void *param, offs_t offset, UINT64 mem_mask) |
| 291 | 291 | { |
| 292 | 292 | UINT64 result = 0; |
| 293 | if ( | |
| 293 | if (ACCESSING_BITS_32_63 | |
| 294 | 294 | result |= (UINT64)read32be_with_read8_handler(handler, param, offset * 2 + 0, mem_mask >> 32) << 32; |
| 295 | if ( | |
| 295 | if (ACCESSING_BITS_ | |
| 296 | 296 | result |= (UINT64)read32be_with_read8_handler(handler, param, offset * 2 + 1, mem_mask) << 0; |
| 297 | 297 | return result; |
| 298 | 298 | } |
| r2241 | r2242 | |
| 300 | 300 | |
| 301 | 301 | INLINE void write64be_with_write8_handler(write8_machine_func handler, void *param, offs_t offset, UINT64 data, UINT64 mem_mask) |
| 302 | 302 | { |
| 303 | if ( | |
| 303 | if (ACCESSING_BITS_32_63 | |
| 304 | 304 | write32be_with_write8_handler(handler, param, offset * 2 + 0, data >> 32, mem_mask >> 32); |
| 305 | if ( | |
| 305 | if (ACCESSING_BITS_ | |
| 306 | 306 | write32be_with_write8_handler(handler, param, offset * 2 + 1, data, mem_mask); |
| 307 | 307 | } |
| 308 | 308 | |
| r2241 | r2242 | |
| 316 | 316 | INLINE UINT64 read64le_with_read8_handler(read8_machine_func handler, void *param, offs_t offset, UINT64 mem_mask) |
| 317 | 317 | { |
| 318 | 318 | UINT64 result = 0; |
| 319 | if ( | |
| 319 | if (ACCESSING_BITS_ | |
| 320 | 320 | result |= (UINT64)read32le_with_read8_handler(handler, param, offset * 2 + 0, mem_mask >> 0) << 0; |
| 321 | if ( | |
| 321 | if (ACCESSING_BITS_32_63 | |
| 322 | 322 | result |= (UINT64)read32le_with_read8_handler(handler, param, offset * 2 + 1, mem_mask >> 32) << 32; |
| 323 | 323 | return result; |
| 324 | 324 | } |
| r2241 | r2242 | |
| 326 | 326 | |
| 327 | 327 | INLINE void write64le_with_write8_handler(write8_machine_func handler, void *param, offs_t offset, UINT64 data, UINT64 mem_mask) |
| 328 | 328 | { |
| 329 | if ( | |
| 329 | if (ACCESSING_BITS_ | |
| 330 | 330 | write32le_with_write8_handler(handler, param, offset * 2 + 0, data >> 0, mem_mask >> 0); |
| 331 | if ( | |
| 331 | if (ACCESSING_BITS_32_63 | |
| 332 | 332 | write32le_with_write8_handler(handler, param, offset * 2 + 1, data >> 32, mem_mask >> 32); |
| 333 | 333 | } |
| 334 | 334 | |
| r2241 | r2242 | |
| 342 | 342 | INLINE UINT32 read64be_with_16be_handler(read16_machine_func handler, void *param, offs_t offset, UINT64 mem_mask) |
| 343 | 343 | { |
| 344 | 344 | UINT64 result = 0; |
| 345 | if ( | |
| 345 | if (ACCESSING_BITS_32_63 | |
| 346 | 346 | result |= (UINT64)read32be_with_16be_handler(handler, param, offset * 2 + 0, mem_mask >> 32) << 32; |
| 347 | if ( | |
| 347 | if (ACCESSING_BITS_ | |
| 348 | 348 | result |= (UINT64)read32be_with_16be_handler(handler, param, offset * 2 + 1, mem_mask >> 0) << 0; |
| 349 | 349 | return result; |
| 350 | 350 | } |
| r2241 | r2242 | |
| 352 | 352 | |
| 353 | 353 | INLINE void write64be_with_16be_handler(write16_machine_func handler, void *param, offs_t offset, UINT64 data, UINT64 mem_mask) |
| 354 | 354 | { |
| 355 | if ( | |
| 355 | if (ACCESSING_BITS_32_63 | |
| 356 | 356 | write32be_with_16be_handler(handler, param, offset * 2 + 0, data >> 32, mem_mask >> 32); |
| 357 | if ( | |
| 357 | if (ACCESSING_BITS_ | |
| 358 | 358 | write32be_with_16be_handler(handler, param, offset * 2 + 1, data >> 0, mem_mask >> 0); |
| 359 | 359 | } |
| 360 | 360 | |
| r2241 | r2242 | |
| 368 | 368 | INLINE UINT32 read64le_with_16le_handler(read16_machine_func handler, void *param, offs_t offset, UINT64 mem_mask) |
| 369 | 369 | { |
| 370 | 370 | UINT64 result = 0; |
| 371 | if ( | |
| 371 | if (ACCESSING_BITS_ | |
| 372 | 372 | result |= (UINT64)read32le_with_16le_handler(handler, param, offset * 2 + 0, mem_mask >> 0) << 0; |
| 373 | if ( | |
| 373 | if (ACCESSING_BITS_32_63 | |
| 374 | 374 | result |= (UINT64)read32le_with_16le_handler(handler, param, offset * 2 + 1, mem_mask >> 32) << 32; |
| 375 | 375 | return result; |
| 376 | 376 | } |
| r2241 | r2242 | |
| 378 | 378 | |
| 379 | 379 | INLINE void write64le_with_16le_handler(write16_machine_func handler, void *param, offs_t offset, UINT64 data, UINT64 mem_mask) |
| 380 | 380 | { |
| 381 | if ( | |
| 381 | if (ACCESSING_BITS_ | |
| 382 | 382 | write32le_with_16le_handler(handler, param, offset * 2 + 0, data >> 0, mem_mask >> 0); |
| 383 | if ( | |
| 383 | if (ACCESSING_BITS_32_63 | |
| 384 | 384 | write32le_with_16le_handler(handler, param, offset * 2 + 1, data >> 32, mem_mask >> 32); |
| 385 | 385 | } |
| 386 | 386 | |
| r2241 | r2242 | |
| 394 | 394 | INLINE UINT32 read64be_with_16le_handler(read16_machine_func handler, void *param, offs_t offset, UINT64 mem_mask) |
| 395 | 395 | { |
| 396 | 396 | UINT64 result = 0; |
| 397 | if ( | |
| 397 | if (ACCESSING_BITS_32_63 | |
| 398 | 398 | result |= (UINT64)read32be_with_16le_handler(handler, param, offset * 2 + 0, mem_mask >> 32) << 32; |
| 399 | if ( | |
| 399 | if (ACCESSING_BITS_ | |
| 400 | 400 | result |= (UINT64)read32be_with_16le_handler(handler, param, offset * 2 + 1, mem_mask >> 0) << 0; |
| 401 | 401 | return result; |
| 402 | 402 | } |
| r2241 | r2242 | |
| 404 | 404 | |
| 405 | 405 | INLINE void write64be_with_16le_handler(write16_machine_func handler, void *param, offs_t offset, UINT64 data, UINT64 mem_mask) |
| 406 | 406 | { |
| 407 | if ( | |
| 407 | if (ACCESSING_BITS_32_63 | |
| 408 | 408 | write32be_with_16le_handler(handler, param, offset * 2 + 0, data >> 32, mem_mask >> 32); |
| 409 | if ( | |
| 409 | if (ACCESSING_BITS_ | |
| 410 | 410 | write32be_with_16le_handler(handler, param, offset * 2 + 1, data >> 0, mem_mask >> 0); |
| 411 | 411 | } |
| 412 | 412 | |
| r2241 | r2242 | |
| 420 | 420 | INLINE UINT32 read64le_with_16be_handler(read16_machine_func handler, void *param, offs_t offset, UINT64 mem_mask) |
| 421 | 421 | { |
| 422 | 422 | UINT64 result = 0; |
| 423 | if ( | |
| 423 | if (ACCESSING_BITS_ | |
| 424 | 424 | result |= (UINT64)read32le_with_16be_handler(handler, param, offset * 2 + 0, mem_mask >> 0) << 0; |
| 425 | if ( | |
| 425 | if (ACCESSING_BITS_32_63 | |
| 426 | 426 | result |= (UINT64)read32le_with_16be_handler(handler, param, offset * 2 + 1, mem_mask >> 32) << 32; |
| 427 | 427 | return result; |
| 428 | 428 | } |
| r2241 | r2242 | |
| 430 | 430 | |
| 431 | 431 | INLINE void write64le_with_16be_handler(write16_machine_func handler, void *param, offs_t offset, UINT64 data, UINT64 mem_mask) |
| 432 | 432 | { |
| 433 | if ( | |
| 433 | if (ACCESSING_BITS_ | |
| 434 | 434 | write32le_with_16be_handler(handler, param, offset * 2 + 0, data >> 0, mem_mask >> 0); |
| 435 | if ( | |
| 435 | if (ACCESSING_BITS_32_63 | |
| 436 | 436 | write32le_with_16be_handler(handler, param, offset * 2 + 1, data >> 32, mem_mask >> 32); |
| 437 | 437 | } |
| 438 | 438 | |
| r2241 | r2242 | |
| 446 | 446 | INLINE UINT64 read64be_with_32be_handler(read32_machine_func handler, void *param, offs_t offset, UINT64 mem_mask) |
| 447 | 447 | { |
| 448 | 448 | UINT64 result = 0; |
| 449 | if ( | |
| 449 | if (ACCESSING_BITS_32_63 | |
| 450 | 450 | result |= (UINT64)(*handler)(param, offset * 2 + 0, mem_mask >> 32) << 32; |
| 451 | if ( | |
| 451 | if (ACCESSING_BITS_ | |
| 452 | 452 | result |= (UINT64)(*handler)(param, offset * 2 + 1, mem_mask >> 0) << 0; |
| 453 | 453 | return result; |
| 454 | 454 | } |
| r2241 | r2242 | |
| 456 | 456 | |
| 457 | 457 | INLINE void write64be_with_32be_handler(write32_machine_func handler, void *param, offs_t offset, UINT64 data, UINT64 mem_mask) |
| 458 | 458 | { |
| 459 | if ( | |
| 459 | if (ACCESSING_BITS_32_63 | |
| 460 | 460 | (*handler)(param, offset * 2 + 0, data >> 32, mem_mask >> 32); |
| 461 | if ( | |
| 461 | if (ACCESSING_BITS_ | |
| 462 | 462 | (*handler)(param, offset * 2 + 1, data >> 0, mem_mask >> 0); |
| 463 | 463 | } |
| 464 | 464 | |
| r2241 | r2242 | |
| 472 | 472 | INLINE UINT64 read64le_with_32le_handler(read32_machine_func handler, void *param, offs_t offset, UINT64 mem_mask) |
| 473 | 473 | { |
| 474 | 474 | UINT64 result = 0; |
| 475 | if ( | |
| 475 | if (ACCESSING_BITS_ | |
| 476 | 476 | result |= (UINT64)(*handler)(param, offset * 2 + 0, mem_mask >> 0) << 0; |
| 477 | if ( | |
| 477 | if (ACCESSING_BITS_32_63 | |
| 478 | 478 | result |= (UINT64)(*handler)(param, offset * 2 + 1, mem_mask >> 32) << 32; |
| 479 | 479 | return result; |
| 480 | 480 | } |
| r2241 | r2242 | |
| 482 | 482 | |
| 483 | 483 | INLINE void write64le_with_32le_handler(write32_machine_func handler, void *param, offs_t offset, UINT64 data, UINT64 mem_mask) |
| 484 | 484 | { |
| 485 | if ( | |
| 485 | if (ACCESSING_BITS_ | |
| 486 | 486 | (*handler)(param, offset * 2 + 0, data >> 0, mem_mask >> 0); |
| 487 | if ( | |
| 487 | if (ACCESSING_BITS_32_63 | |
| 488 | 488 | (*handler)(param, offset * 2 + 1, data >> 32, mem_mask >> 32); |
| 489 | 489 | } |
| 490 | 490 | |
| r2241 | r2242 | |
| 617 | 617 | ************************************/ |
| 618 | 618 | |
| 619 | 619 | #define READ8TO16BE_MSB( name, read8 ) \ |
| 620 | READ_TEMPLATE_COND( 16, name, read8, read16be_with_read8_handler, ACCESSING_ | |
| 620 | READ_TEMPLATE_COND( 16, name, read8, read16be_with_read8_handler, ACCESSING_ | |
| 621 | 621 | |
| 622 | 622 | |
| 623 | 623 | #define WRITE8TO16BE_MSB( name, write8 ) \ |
| 624 | WRITE_TEMPLATE_COND( 16, name, write8, write16be_with_write8_handler, ACCESSING_ | |
| 624 | WRITE_TEMPLATE_COND( 16, name, write8, write16be_with_write8_handler, ACCESSING_ | |
| 625 | 625 | |
| 626 | 626 | |
| 627 | 627 | #define READWRITE8TO16BE_MSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 634 | 634 | ************************************/ |
| 635 | 635 | |
| 636 | 636 | #define READ8TO16LE_MSB( name, read8 ) \ |
| 637 | READ_TEMPLATE_COND( 16, name, read8, read16le_with_read8_handler, ACCESSING_ | |
| 637 | READ_TEMPLATE_COND( 16, name, read8, read16le_with_read8_handler, ACCESSING_ | |
| 638 | 638 | |
| 639 | 639 | |
| 640 | 640 | #define WRITE8TO16LE_MSB( name, write8 ) \ |
| 641 | WRITE_TEMPLATE_COND( 16, name, write8, write16le_with_write8_handler, ACCESSING_ | |
| 641 | WRITE_TEMPLATE_COND( 16, name, write8, write16le_with_write8_handler, ACCESSING_ | |
| 642 | 642 | |
| 643 | 643 | |
| 644 | 644 | #define READWRITE8TO16LE_MSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 651 | 651 | ************************************/ |
| 652 | 652 | |
| 653 | 653 | #define READ8TO16BE_LSB( name, read8 ) \ |
| 654 | READ_TEMPLATE_COND( 16, name, read8, read16be_with_read8_handler, ACCESSING_ | |
| 654 | READ_TEMPLATE_COND( 16, name, read8, read16be_with_read8_handler, ACCESSING_ | |
| 655 | 655 | |
| 656 | 656 | |
| 657 | 657 | #define WRITE8TO16BE_LSB( name, write8 ) \ |
| 658 | WRITE_TEMPLATE_COND( 16, name, write8, write16be_with_write8_handler, ACCESSING_ | |
| 658 | WRITE_TEMPLATE_COND( 16, name, write8, write16be_with_write8_handler, ACCESSING_ | |
| 659 | 659 | |
| 660 | 660 | |
| 661 | 661 | #define READWRITE8TO16BE_LSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 668 | 668 | ************************************/ |
| 669 | 669 | |
| 670 | 670 | #define READ8TO16LE_LSB( name, read8 ) \ |
| 671 | READ_TEMPLATE_COND( 16, name, read8, read16le_with_read8_handler, ACCESSING_ | |
| 671 | READ_TEMPLATE_COND( 16, name, read8, read16le_with_read8_handler, ACCESSING_ | |
| 672 | 672 | |
| 673 | 673 | |
| 674 | 674 | #define WRITE8TO16LE_LSB( name, write8 ) \ |
| 675 | WRITE_TEMPLATE_COND( 16, name, write8, write16le_with_write8_handler, ACCESSING_ | |
| 675 | WRITE_TEMPLATE_COND( 16, name, write8, write16le_with_write8_handler, ACCESSING_ | |
| 676 | 676 | |
| 677 | 677 | |
| 678 | 678 | #define READWRITE8TO16LE_LSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 719 | 719 | ************************************/ |
| 720 | 720 | |
| 721 | 721 | #define READ8TO32BE_MSB( name, read8 ) \ |
| 722 | READ_TEMPLATE_COND( 32, name, read8, read32be_with_read8_handler, ACCESSING_ | |
| 722 | READ_TEMPLATE_COND( 32, name, read8, read32be_with_read8_handler, ACCESSING_ | |
| 723 | 723 | |
| 724 | 724 | |
| 725 | 725 | #define WRITE8TO32BE_MSB( name, write8 ) \ |
| 726 | WRITE_TEMPLATE_COND( 32, name, write8, write32be_with_write8_handler, ACCESSING_ | |
| 726 | WRITE_TEMPLATE_COND( 32, name, write8, write32be_with_write8_handler, ACCESSING_ | |
| 727 | 727 | |
| 728 | 728 | |
| 729 | 729 | #define READWRITE8TO32BE_MSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 736 | 736 | ************************************/ |
| 737 | 737 | |
| 738 | 738 | #define READ8TO32LE_MSB( name, read8 ) \ |
| 739 | READ_TEMPLATE_COND( 32, name, read8, read32le_with_read8_handler, ACCESSING_ | |
| 739 | READ_TEMPLATE_COND( 32, name, read8, read32le_with_read8_handler, ACCESSING_ | |
| 740 | 740 | |
| 741 | 741 | |
| 742 | 742 | #define WRITE8TO32LE_MSB( name, write8 ) \ |
| 743 | WRITE_TEMPLATE_COND( 32, name, write8, write32le_with_write8_handler, ACCESSING_ | |
| 743 | WRITE_TEMPLATE_COND( 32, name, write8, write32le_with_write8_handler, ACCESSING_ | |
| 744 | 744 | |
| 745 | 745 | |
| 746 | 746 | #define READWRITE8TO32LE_MSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 753 | 753 | ************************************/ |
| 754 | 754 | |
| 755 | 755 | #define READ8TO32BE_LSB( name, read8 ) \ |
| 756 | READ_TEMPLATE_COND( 32, name, read8, read32be_with_read8_handler, ACCESSING_ | |
| 756 | READ_TEMPLATE_COND( 32, name, read8, read32be_with_read8_handler, ACCESSING_ | |
| 757 | 757 | |
| 758 | 758 | |
| 759 | 759 | #define WRITE8TO32BE_LSB( name, write8 ) \ |
| 760 | WRITE_TEMPLATE_COND( 32, name, write8, write32be_with_write8_handler, ACCESSING_ | |
| 760 | WRITE_TEMPLATE_COND( 32, name, write8, write32be_with_write8_handler, ACCESSING_ | |
| 761 | 761 | |
| 762 | 762 | |
| 763 | 763 | #define READWRITE8TO32BE_LSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 770 | 770 | ************************************/ |
| 771 | 771 | |
| 772 | 772 | #define READ8TO32LE_LSB( name, read8 ) \ |
| 773 | READ_TEMPLATE_COND( 32, name, read8, read32le_with_read8_handler, ACCESSING_ | |
| 773 | READ_TEMPLATE_COND( 32, name, read8, read32le_with_read8_handler, ACCESSING_ | |
| 774 | 774 | |
| 775 | 775 | |
| 776 | 776 | #define WRITE8TO32LE_LSB( name, write8 ) \ |
| 777 | WRITE_TEMPLATE_COND( 32, name, write8, write32le_with_write8_handler, ACCESSING_ | |
| 777 | WRITE_TEMPLATE_COND( 32, name, write8, write32le_with_write8_handler, ACCESSING_ | |
| 778 | 778 | |
| 779 | 779 | |
| 780 | 780 | #define READWRITE8TO32LE_LSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 889 | 889 | *************************************/ |
| 890 | 890 | |
| 891 | 891 | #define READ16BETO32BE_MSW( name, read16 ) \ |
| 892 | READ_TEMPLATE_COND( 32, name, read16, read32be_with_16be_handler, ACCESSING_ | |
| 892 | READ_TEMPLATE_COND( 32, name, read16, read32be_with_16be_handler, ACCESSING_BITS_16_31 ) | |
| 893 | 893 | |
| 894 | 894 | |
| 895 | 895 | #define WRITE16BETO32BE_MSW( name, write16 ) \ |
| 896 | WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16be_handler, ACCESSING_ | |
| 896 | WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16be_handler, ACCESSING_BITS_16_31 ) | |
| 897 | 897 | |
| 898 | 898 | |
| 899 | 899 | #define READWRITE16BETO32BE_MSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 906 | 906 | *************************************/ |
| 907 | 907 | |
| 908 | 908 | #define READ16LETO32BE_MSW( name, read16 ) \ |
| 909 | READ_TEMPLATE_COND( 32, name, read16, read32be_with_16le_handler, ACCESSING_ | |
| 909 | READ_TEMPLATE_COND( 32, name, read16, read32be_with_16le_handler, ACCESSING_BITS_16_31 ) | |
| 910 | 910 | |
| 911 | 911 | |
| 912 | 912 | #define WRITE16LETO32BE_MSW( name, write16 ) \ |
| 913 | WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16le_handler, ACCESSING_ | |
| 913 | WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16le_handler, ACCESSING_BITS_16_31 ) | |
| 914 | 914 | |
| 915 | 915 | |
| 916 | 916 | #define READWRITE16LETO32BE_MSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 923 | 923 | *************************************/ |
| 924 | 924 | |
| 925 | 925 | #define READ16BETO32LE_MSW( name, read16 ) \ |
| 926 | READ_TEMPLATE_COND( 32, name, read16, read32le_with_16be_handler, ACCESSING_ | |
| 926 | READ_TEMPLATE_COND( 32, name, read16, read32le_with_16be_handler, ACCESSING_BITS_16_31 ) | |
| 927 | 927 | |
| 928 | 928 | |
| 929 | 929 | #define WRITE16BETO32LE_MSW( name, write16 ) \ |
| 930 | WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16be_handler, ACCESSING_ | |
| 930 | WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16be_handler, ACCESSING_BITS_16_31 ) | |
| 931 | 931 | |
| 932 | 932 | |
| 933 | 933 | #define READWRITE16BETO32LE_MSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 940 | 940 | *************************************/ |
| 941 | 941 | |
| 942 | 942 | #define READ16LETO32LE_MSW( name, read16 ) \ |
| 943 | READ_TEMPLATE_COND( 32, name, read16, read32le_with_16le_handler, ACCESSING_ | |
| 943 | READ_TEMPLATE_COND( 32, name, read16, read32le_with_16le_handler, ACCESSING_BITS_16_31 ) | |
| 944 | 944 | |
| 945 | 945 | |
| 946 | 946 | #define WRITE16LETO32LE_MSW( name, write16 ) \ |
| 947 | WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16le_handler, ACCESSING_ | |
| 947 | WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16le_handler, ACCESSING_BITS_16_31 ) | |
| 948 | 948 | |
| 949 | 949 | |
| 950 | 950 | #define READWRITE16LETO32LE_MSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 956 | 956 | *************************************/ |
| 957 | 957 | |
| 958 | 958 | #define READ16BETO32BE_LSW( name, read16 ) \ |
| 959 | READ_TEMPLATE_COND( 32, name, read16, read32be_with_16be_handler, ACCESSING_ | |
| 959 | READ_TEMPLATE_COND( 32, name, read16, read32be_with_16be_handler, ACCESSING_BITS_0_15 ) | |
| 960 | 960 | |
| 961 | 961 | |
| 962 | 962 | #define WRITE16BETO32BE_LSW( name, write16 ) \ |
| 963 | WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16be_handler, ACCESSING_ | |
| 963 | WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16be_handler, ACCESSING_BITS_0_15 ) | |
| 964 | 964 | |
| 965 | 965 | |
| 966 | 966 | #define READWRITE16BETO32BE_LSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 973 | 973 | *************************************/ |
| 974 | 974 | |
| 975 | 975 | #define READ16LETO32BE_LSW( name, read16 ) \ |
| 976 | READ_TEMPLATE_COND( 32, name, read16, read32be_with_16le_handler, ACCESSING_ | |
| 976 | READ_TEMPLATE_COND( 32, name, read16, read32be_with_16le_handler, ACCESSING_BITS_0_15 ) | |
| 977 | 977 | |
| 978 | 978 | |
| 979 | 979 | #define WRITE16LETO32BE_LSW( name, write16 ) \ |
| 980 | WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16le_handler, ACCESSING_ | |
| 980 | WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16le_handler, ACCESSING_BITS_0_15 ) | |
| 981 | 981 | |
| 982 | 982 | |
| 983 | 983 | #define READWRITE16LETO32BE_LSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 990 | 990 | *************************************/ |
| 991 | 991 | |
| 992 | 992 | #define READ16BETO32LE_LSW( name, read16 ) \ |
| 993 | READ_TEMPLATE_COND( 32, name, read16, read32le_with_16be_handler, ACCESSING_ | |
| 993 | READ_TEMPLATE_COND( 32, name, read16, read32le_with_16be_handler, ACCESSING_BITS_0_15 ) | |
| 994 | 994 | |
| 995 | 995 | |
| 996 | 996 | #define WRITE16BETO32LE_LSW( name, write16 ) \ |
| 997 | WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16be_handler, ACCESSING_ | |
| 997 | WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16be_handler, ACCESSING_BITS_0_15 ) | |
| 998 | 998 | |
| 999 | 999 | |
| 1000 | 1000 | #define READWRITE16BETO32LE_LSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 1007 | 1007 | *************************************/ |
| 1008 | 1008 | |
| 1009 | 1009 | #define READ16LETO32LE_LSW( name, read16 ) \ |
| 1010 | READ_TEMPLATE_COND( 32, name, read16, read32le_with_16le_handler, ACCESSING_ | |
| 1010 | READ_TEMPLATE_COND( 32, name, read16, read32le_with_16le_handler, ACCESSING_BITS_0_15 ) | |
| 1011 | 1011 | |
| 1012 | 1012 | |
| 1013 | 1013 | #define WRITE16LETO32LE_LSW( name, write16 ) \ |
| 1014 | WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16le_handler, ACCESSING_ | |
| 1014 | WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16le_handler, ACCESSING_BITS_0_15 ) | |
| 1015 | 1015 | |
| 1016 | 1016 | |
| 1017 | 1017 | #define READWRITE16LETO32LE_LSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
|---|---|---|
| 119 | 119 | /* set up the graphics state */ |
| 120 | 120 | for (gfx = 0; gfx < MAX_GFX_ELEMENTS; gfx++) |
| 121 | 121 | { |
| 122 | state->gfxset.rotate[gfx] = | |
| 122 | state->gfxset.rotate[gfx] = machine->gamedrv->flags & ORIENTATION_MASK; | |
| 123 | 123 | state->gfxset.count[gfx] = 16; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /* set up the tilemap state */ |
| 127 | state->tilemap.rotate = | |
| 127 | state->tilemap.rotate = machine->gamedrv->flags & ORIENTATION_MASK; | |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | |
| r2241 | r2242 | |
| 155 | 155 | ui_gfx_state *state = &ui_gfx; |
| 156 | 156 | |
| 157 | 157 | /* if we have nothing, implicitly cancel */ |
| 158 | if ( | |
| 158 | if (machine->config->total_colors == 0 && machine->colortable == NULL && machine->gfx[0] == NULL && tilemap_count() == 0) | |
| 159 | 159 | goto cancel; |
| 160 | 160 | |
| 161 | 161 | /* if we're not paused, mark the bitmap dirty */ |
| 162 | if (!mame_is_paused( | |
| 162 | if (!mame_is_paused(machine)) | |
| 163 | 163 | state->bitmap_dirty = TRUE; |
| 164 | 164 | |
| 165 | 165 | /* switch off the state to display something */ |
| r2241 | r2242 | |
| 168 | 168 | { |
| 169 | 169 | case 0: |
| 170 | 170 | /* if we have a palette, display it */ |
| 171 | if ( | |
| 171 | if (machine->config->total_colors > 0) | |
| 172 | 172 | { |
| 173 | 173 | palette_handler(state); |
| 174 | 174 | break; |
| r2241 | r2242 | |
| 179 | 179 | |
| 180 | 180 | case 1: |
| 181 | 181 | /* if we have graphics sets, display them */ |
| 182 | if ( | |
| 182 | if (machine->gfx[0] != NULL) | |
| 183 | 183 | { |
| 184 | 184 | gfxset_handler(state); |
| 185 | 185 | break; |
| r2241 | r2242 | |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | if (input_ui_pressed(IPT_UI_PAUSE)) |
| 211 | mame_pause( | |
| 211 | mame_pause(machine, !mame_is_paused(machine)); | |
| 212 | 212 | |
| 213 | 213 | if (input_ui_pressed(IPT_UI_CANCEL) || input_ui_pressed(IPT_UI_SHOW_GFX)) |
| 214 | 214 | goto cancel; |
| r2241 | r2242 | |
| 217 | 217 | |
| 218 | 218 | cancel: |
| 219 | 219 | if (!uistate) |
| 220 | mame_pause( | |
| 220 | mame_pause(machine, FALSE); | |
| 221 | 221 | state->bitmap_dirty = TRUE; |
| 222 | 222 | return UI_HANDLER_CANCEL; |
| 223 | 223 | } |
| r2241 | r2242 | |
|---|---|---|
| 10 | 10 | TODO: |
| 11 | 11 | |
| 12 | 12 | - connect to sound system when possible |
| 13 | - white noise | |
| 14 | - scanline based update | |
| 15 | - fix flashing spaceship in destryer/altair | |
| 16 | - fix flashing player in draco | |
| 13 | - white noise | |
| 14 | - scanline based update | |
| 15 | - fix flashing spaceship in destryer/altair | |
| 16 | - fix flashing player in draco | |
| 17 | 17 | |
| 18 | 18 | */ |
| 19 | 19 | |
| r2241 | r2242 | |
| 308 | 308 | |
| 309 | 309 | UINT8 cma = 0; |
| 310 | 310 | |
| 311 | int pcb = cdp1869->intf->pcb_r(device, pma, cma); | |
| 312 | ||
| 313 | 311 | for (cma = 0; cma < cdp1869_get_lines(device); cma++) |
| 314 | 312 | { |
| 315 | 313 | UINT8 data = cdp1869->intf->char_ram_r(device, pma, cma); |
| 316 | 314 | |
| 317 | 315 | int ccb0 = BIT(data, CCB0); |
| 318 | 316 | int ccb1 = BIT(data, CCB1); |
| 317 | int pcb = cdp1869->intf->pcb_r(device, pma, cma); | |
| 319 | 318 | |
| 320 | 319 | int color = cdp1869_get_pen(device, ccb0, ccb1, pcb); |
| 321 | 320 |
| r2241 | r2242 | |
|---|---|---|
| 3164 | 3164 | y = (offset >> v->fbi.lfb_stride) & ((1 << v->fbi.lfb_stride) - 1); |
| 3165 | 3165 | |
| 3166 | 3166 | /* adjust the mask based on which half of the data is written */ |
| 3167 | if ( | |
| 3167 | if (!ACCESSING_BITS_ | |
| 3168 | 3168 | mask &= ~(0x0f - LFB_DEPTH_PRESENT_MSW); |
| 3169 | if ( | |
| 3169 | if (!ACCESSING_BITS_16_31 | |
| 3170 | 3170 | mask &= ~(0xf0 + LFB_DEPTH_PRESENT_MSW); |
| 3171 | 3171 | |
| 3172 | 3172 | /* select the target buffer */ |
| r2241 | r2242 | |
| 3688 | 3688 | /* modify the offset based on the mem_mask */ |
| 3689 | 3689 | if (mem_mask) |
| 3690 | 3690 | { |
| 3691 | if ( | |
| 3691 | if (!ACCESSING_BITS_16_31 | |
| 3692 | 3692 | offset |= 0x80000000; |
| 3693 | if ( | |
| 3693 | if (!ACCESSING_BITS_ | |
| 3694 | 3694 | offset |= 0x40000000; |
| 3695 | 3695 | } |
| 3696 | 3696 | |
| r2241 | r2242 | |
| 4268 | 4268 | case io_vgac0: case io_vgac4: case io_vgac8: case io_vgacc: |
| 4269 | 4269 | case io_vgad0: case io_vgad4: case io_vgad8: case io_vgadc: |
| 4270 | 4270 | result = 0; |
| 4271 | if ( | |
| 4271 | if (ACCESSING_BITS_ | |
| 4272 | 4272 | result |= banshee_vga_r(v, offset*4+0) << 0; |
| 4273 | if ( | |
| 4273 | if (ACCESSING_BITS_8_15 | |
| 4274 | 4274 | result |= banshee_vga_r(v, offset*4+1) << 8; |
| 4275 | if ( | |
| 4275 | if (ACCESSING_BITS_16_23 | |
| 4276 | 4276 | result |= banshee_vga_r(v, offset*4+2) << 16; |
| 4277 | if ( | |
| 4277 | if (ACCESSING_BITS_24_31 | |
| 4278 | 4278 | result |= banshee_vga_r(v, offset*4+3) << 24; |
| 4279 | 4279 | break; |
| 4280 | 4280 | |
| r2241 | r2242 | |
| 4563 | 4563 | case io_vgab0: case io_vgab4: case io_vgab8: case io_vgabc: |
| 4564 | 4564 | case io_vgac0: case io_vgac4: case io_vgac8: case io_vgacc: |
| 4565 | 4565 | case io_vgad0: case io_vgad4: case io_vgad8: case io_vgadc: |
| 4566 | if ( | |
| 4566 | if (ACCESSING_BITS_ | |
| 4567 | 4567 | banshee_vga_w(v, offset*4+0, data >> 0); |
| 4568 | if ( | |
| 4568 | if (ACCESSING_BITS_8_15 | |
| 4569 | 4569 | banshee_vga_w(v, offset*4+1, data >> 8); |
| 4570 | if ( | |
| 4570 | if (ACCESSING_BITS_16_23 | |
| 4571 | 4571 | banshee_vga_w(v, offset*4+2, data >> 16); |
| 4572 | if ( | |
| 4572 | if (ACCESSING_BITS_24_31 | |
| 4573 | 4573 | banshee_vga_w(v, offset*4+3, data >> 24); |
| 4574 | 4574 | break; |
| 4575 | 4575 |
| r2241 | r2242 | |
|---|---|---|
| 249 | 249 | |
| 250 | 250 | WRITE16_HANDLER( tlc34076_lsb_w ) |
| 251 | 251 | { |
| 252 | if (ACCESSING_ | |
| 252 | if (ACCESSING_ | |
| 253 | 253 | tlc34076_w(machine, offset, data); |
| 254 | 254 | } |
| 255 | 255 | |
| r2241 | r2242 | |
| 260 | 260 | |
| 261 | 261 | WRITE16_HANDLER( tlc34076_msb_w ) |
| 262 | 262 | { |
| 263 | if (ACCESSING_ | |
| 263 | if (ACCESSING_ | |
| 264 | 264 | tlc34076_w(machine, offset, data >> 8); |
| 265 | 265 | } |
| 266 | 266 |
| r2241 | r2242 | |
|---|---|---|
| 943 | 943 | int xpos,ypos; |
| 944 | 944 | |
| 945 | 945 | /* set up for the blit, using hard-coded parameters (no priority, etc) */ |
| 946 | configure_blit_parameters(&blit, tmap, dest, NULL, TILEMAP_DRAW_OPAQUE, 0, 0xff); | |
| 946 | configure_blit_parameters(&blit, tmap, dest, NULL, TILEMAP_DRAW_OPAQUE | TILEMAP_DRAW_ALL_CATEGORIES, 0, 0xff); | |
| 947 | 947 | |
| 948 | 948 | /* compute the effective scroll positions */ |
| 949 | 949 | scrollx = tmap->width - scrollx % tmap->width; |
| r2241 | r2242 | |
| 1498 | 1498 | blit->mask &= ~(TILEMAP_PIXEL_LAYER0 | TILEMAP_PIXEL_LAYER1 | TILEMAP_PIXEL_LAYER2); |
| 1499 | 1499 | blit->value &= ~(TILEMAP_PIXEL_LAYER0 | TILEMAP_PIXEL_LAYER1 | TILEMAP_PIXEL_LAYER2); |
| 1500 | 1500 | } |
| 1501 | ||
| 1502 | /* don't check category if requested */ | |
| 1503 | if (flags & TILEMAP_DRAW_ALL_CATEGORIES) | |
| 1504 | { | |
| 1505 | blit->mask &= ~TILEMAP_PIXEL_CATEGORY_MASK; | |
| 1506 | blit->value &= ~TILEMAP_PIXEL_CATEGORY_MASK; | |
| 1507 | } | |
| 1501 | 1508 | } |
| 1502 | 1509 | |
| 1503 | 1510 |
| r2241 | r2242 | |
|---|---|---|
| 321 | 321 | #define TILEMAP_DRAW_LAYER2 0x40 /* draw layer 2 */ |
| 322 | 322 | #define TILEMAP_DRAW_OPAQUE 0x80 /* draw everything, even transparent stuff */ |
| 323 | 323 | #define TILEMAP_DRAW_ALPHA 0x100 /* draw with alpha blending */ |
| 324 | #define TILEMAP_DRAW_ALL_CATEGORIES 0x200 /* draw all categories */ | |
| 324 | 325 | |
| 325 | 326 | |
| 326 | 327 | /* per-pixel flags in the transparency_bitmap */ |
| r2241 | r2242 | |
|---|---|---|
| 109 | 109 | UINT32 overall_valid_counter; /* number of consecutive valid time periods */ |
| 110 | 110 | |
| 111 | 111 | /* configuration */ |
| 112 | UINT8 sleep; /* flag: TRUE if we're allowed to sleep */ | |
| 113 | 112 | UINT8 throttle; /* flag: TRUE if we're currently throttled */ |
| 114 | 113 | UINT8 fastforward; /* flag: TRUE if we're currently fast-forwarding */ |
| 115 | 114 | UINT32 seconds_to_run; /* number of seconds to run before quitting */ |
| 116 | 115 | UINT8 auto_frameskip; /* flag: TRUE if we're automatically frameskipping */ |
| 117 | 116 | UINT32 speed; /* overall speed (*100) */ |
| 118 | UINT32 original_speed; /* originally-specified speed */ | |
| 119 | UINT8 refresh_speed; /* flag: TRUE if we max out our speed according to the refresh */ | |
| 120 | UINT8 update_in_pause; /* flag: TRUE if video is updated while in pause */ | |
| 121 | 117 | |
| 122 | 118 | /* frameskipping */ |
| 123 | 119 | UINT8 empty_skip_count; /* number of empty frames we have skipped */ |
| r2241 | r2242 | |
| 272 | 268 | } |
| 273 | 269 | |
| 274 | 270 | |
| 271 | /*------------------------------------------------- | |
| 272 | original_speed_setting - return the original | |
| 273 | speed setting | |
| 274 | -------------------------------------------------*/ | |
| 275 | 275 | |
| 276 | INLINE int original_speed_setting(void) | |
| 277 | { | |
| 278 | return options_get_float(mame_options(), OPTION_SPEED) * 100.0 + 0.5; | |
| 279 | } | |
| 280 | ||
| 281 | ||
| 282 | ||
| 276 | 283 | /*************************************************************************** |
| 277 | 284 | CORE IMPLEMENTATION |
| 278 | 285 | ***************************************************************************/ |
| r2241 | r2242 | |
| 296 | 303 | memset(&global, 0, sizeof(global)); |
| 297 | 304 | global.speed_percent = 1.0; |
| 298 | 305 | |
| 299 | /* extract global configuration settings */ | |
| 300 | global.sleep = options_get_bool(mame_options(), OPTION_SLEEP); | |
| 306 | /* extract initial execution state from global configuration settings */ | |
| 307 | global.speed = original_speed_setting(); | |
| 301 | 308 | global.throttle = options_get_bool(mame_options(), OPTION_THROTTLE); |
| 302 | 309 | global.auto_frameskip = options_get_bool(mame_options(), OPTION_AUTOFRAMESKIP); |
| 303 | 310 | global.frameskip_level = options_get_int(mame_options(), OPTION_FRAMESKIP); |
| 304 | 311 | global.seconds_to_run = options_get_int(mame_options(), OPTION_SECONDS_TO_RUN); |
| 305 | global.original_speed = global.speed = (options_get_float(mame_options(), OPTION_SPEED) * 100.0 + 0.5); | |
| 306 | global.refresh_speed = options_get_bool(mame_options(), OPTION_REFRESHSPEED); | |
| 307 | global.update_in_pause = options_get_bool(mame_options(), OPTION_UPDATEINPAUSE); | |
| 308 | 312 | |
| 309 | 313 | /* set the first screen device as the primary - this will set NULL if screenless */ |
| 310 | 314 | machine->primary_screen = video_screen_first(machine->config); |
| r2241 | r2242 | |
| 318 | 322 | if (machine->config->gfxdecodeinfo != NULL) |
| 319 | 323 | allocate_graphics(machine, machine->config->gfxdecodeinfo); |
| 320 | 324 | |
| 321 | /* configure the palette */ | |
| 322 | palette_config(machine); | |
| 325 | /* call the PALETTE_INIT function */ | |
| 326 | if (machine->config->init_palette != NULL) | |
| 327 | (*machine->config->init_palette)(machine, memory_region(REGION_PROMS)); | |
| 323 | 328 | |
| 324 | 329 | /* actually decode the graphics */ |
| 325 | 330 | if (machine->config->gfxdecodeinfo != NULL) |
| r2241 | r2242 | |
| 562 | 567 | |
| 563 | 568 | /* count total graphics elements */ |
| 564 | 569 | for (i = 0; i < MAX_GFX_ELEMENTS; i++) |
| 565 | if (machine->gfx[i]) | |
| 570 | if (machine->gfx[i] != NULL) | |
| 566 | 571 | totalgfx += machine->gfx[i]->total_elements; |
| 567 | 572 | |
| 568 | 573 | /* loop over all elements */ |
| r2241 | r2242 | |
| 695 | 700 | state->vblank_period = config->vblank; |
| 696 | 701 | |
| 697 | 702 | /* adjust speed if necessary */ |
| 698 | if ( | |
| 703 | if ( | |
| 699 | 704 | { |
| 700 | 705 | float minrefresh = render_get_max_update_rate(); |
| 701 | 706 | if (minrefresh != 0) |
| 702 | 707 | { |
| 703 | 708 | UINT32 target_speed = floor(minrefresh * 100.0 / ATTOSECONDS_TO_HZ(frame_period)); |
| 704 | target_speed = MIN(target_speed, global.original_speed); | |
| 709 | UINT32 original_speed = original_speed_setting(); | |
| 710 | target_speed = MIN(target_speed, original_speed); | |
| 705 | 711 | if (target_speed != global.speed) |
| 706 | 712 | { |
| 707 | 713 | mame_printf_verbose("Adjusting target speed to %d%%\n", target_speed); |
| r2241 | r2242 | |
| 1411 | 1417 | assert(machine->config != NULL); |
| 1412 | 1418 | |
| 1413 | 1419 | /* only render sound and video if we're in the running phase */ |
| 1414 | if (phase == MAME_PHASE_RUNNING && (!mame_is_paused(machine) || | |
| 1420 | if (phase == MAME_PHASE_RUNNING && (!mame_is_paused(machine) || | |
| 1415 | 1421 | { |
| 1416 | 1422 | int anything_changed = finish_screen_updates(machine); |
| 1417 | 1423 | |
| r2241 | r2242 | |
| 1861 | 1867 | osd_ticks_t minimum_sleep = osd_ticks_per_second() / 1000; |
| 1862 | 1868 | osd_ticks_t current_ticks = osd_ticks(); |
| 1863 | 1869 | osd_ticks_t new_ticks; |
| 1864 | int allowed_to_sleep; | |
| 1870 | int allowed_to_sleep = FALSE; | |
| 1865 | 1871 | |
| 1866 | 1872 | /* we're allowed to sleep via the OSD code only if we're configured to do so |
| 1867 | 1873 | and we're not frameskipping due to autoframeskip, or if we're paused */ |
| 1868 | allowed_to_sleep = mame_is_paused(machine) || | |
| 1869 | (global.sleep && (!effective_autoframeskip(machine) || effective_frameskip() == 0)); | |
| 1874 | if (options_get_bool(mame_options(), OPTION_SLEEP) && (!effective_autoframeskip(machine) || effective_frameskip() == 0)) | |
| 1875 | allowed_to_sleep = TRUE; | |
| 1876 | if (mame_is_paused(machine)) | |
| 1877 | allowed_to_sleep = TRUE; | |
| 1870 | 1878 | |
| 1871 | 1879 | /* loop until we reach our target */ |
| 1872 | 1880 | profiler_mark(PROFILER_IDLE); |
| r2241 | r2242 | |
|---|---|---|
| 196 | 196 | #define SUBTABLE_PTR(tabledata, entry) (&(tabledata)->table[(1 << LEVEL1_BITS) + (((entry) - SUBTABLE_BASE) << LEVEL2_BITS)]) |
| 197 | 197 | |
| 198 | 198 | #ifdef ENABLE_DEBUGGER |
| 199 | #define DEBUG_HOOK_READ(a,b,c) if (debug_hook_read) (*debug_hook_read)(a, b, c) | |
| 200 | #define DEBUG_HOOK_WRITE(a,b,c,d) if (debug_hook_write) (*debug_hook_write)(a, b, c, d) | |
| 199 | #define DEBUG_HOOK_READ(spacenum,address,mem_mask) if (debug_hook_read) (*debug_hook_read)(spacenum,address,mem_mask) | |
| 200 | #define DEBUG_HOOK_WRITE(spacenum,address,data,mem_mask) if (debug_hook_write) (*debug_hook_write)(spacenum,address,data,mem_mask) | |
| 201 | 201 | #else |
| 202 | #define DEBUG_HOOK_READ(a,b,c) | |
| 203 | #define DEBUG_HOOK_WRITE(a,b,c,d) | |
| 202 | #define DEBUG_HOOK_READ(spacenum,address,mem_mask) | |
| 203 | #define DEBUG_HOOK_WRITE(spacenum,address,data,mem_mask) | |
| 204 | 204 | #endif |
| 205 | 205 | |
| 206 | 206 | |
| r2241 | r2242 | |
| 735 | 735 | /* loop over tokens until we hit the end */ |
| 736 | 736 | while (entrytype != ADDRMAP_TOKEN_END) |
| 737 | 737 | { |
| 738 | const char *tag; | |
| 739 | ||
| 738 | 740 | /* unpack the token from the first entry */ |
| 739 | 741 | TOKEN_GET_UINT32_UNPACK1(tokens, entrytype, 8); |
| 740 | 742 | switch (entrytype) |
| r2241 | r2242 | |
| 804 | 806 | break; |
| 805 | 807 | |
| 806 | 808 | case ADDRMAP_TOKEN_READ_PORT: |
| 809 | tag = TOKEN_GET_STRING(tokens); | |
| 807 | 810 | switch (map->databits) |
| 808 | 811 | { |
| 809 | case 8: entry->read.mhandler8 = port_tag_to_handler8(TOKEN_GET_STRING(tokens)); break; | |
| 810 | case 16: entry->read.mhandler16 = port_tag_to_handler16(TOKEN_GET_STRING(tokens)); break; | |
| 811 | case 32: entry->read.mhandler32 = port_tag_to_handler32(TOKEN_GET_STRING(tokens)); break; | |
| 812 | case 64: entry->read.mhandler64 = port_tag_to_handler64(TOKEN_GET_STRING(tokens)); break; | |
| 812 | case 8: entry->read.mhandler8 = port_tag_to_handler8(tag); break; | |
| 813 | case 16: entry->read.mhandler16 = port_tag_to_handler16(tag); break; | |
| 814 | case 32: entry->read.mhandler32 = port_tag_to_handler32(tag); break; | |
| 815 | case 64: entry->read.mhandler64 = port_tag_to_handler64(tag); break; | |
| 813 | 816 | } |
| 817 | if (entry->read.generic == NULL) | |
| 818 | fatalerror("Non-existent port referenced: '%s'\n", tag); | |
| 814 | 819 | break; |
| 815 | 820 | |
| 816 | 821 | case ADDRMAP_TOKEN_REGION: |
| r2241 | r2242 | |
| 2514 | 2519 | UINT32 entry; \ |
| 2515 | 2520 | MEMREADSTART(); \ |
| 2516 | 2521 | PERFORM_LOOKUP(readlookup,readhandlers,spacenum,~0); \ |
| 2517 | DEBUG_HOOK_READ(spacenum, | |
| 2522 | DEBUG_HOOK_READ(spacenum, | |
| 2518 | 2523 | \ |
| 2519 | 2524 | /* handle banks inline */ \ |
| 2520 | 2525 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2534 | 2539 | UINT32 entry; \ |
| 2535 | 2540 | MEMREADSTART(); \ |
| 2536 | 2541 | PERFORM_LOOKUP(readlookup,readhandlers,spacenum,~0); \ |
| 2537 | DEBUG_HOOK_READ(spacenum, | |
| 2542 | DEBUG_HOOK_READ(spacenum, | |
| 2538 | 2543 | \ |
| 2539 | 2544 | /* handle banks inline */ \ |
| 2540 | 2545 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2570 | 2575 | UINT32 entry; \ |
| 2571 | 2576 | MEMREADSTART(); \ |
| 2572 | 2577 | PERFORM_LOOKUP(readlookup,readhandlers,spacenum,~1); \ |
| 2573 | DEBUG_HOOK_READ(spacenum, | |
| 2578 | DEBUG_HOOK_READ(spacenum, | |
| 2574 | 2579 | \ |
| 2575 | 2580 | /* handle banks inline */ \ |
| 2576 | 2581 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2590 | 2595 | UINT32 entry; \ |
| 2591 | 2596 | MEMREADSTART(); \ |
| 2592 | 2597 | PERFORM_LOOKUP(readlookup,readhandlers,spacenum,~1); \ |
| 2593 | DEBUG_HOOK_READ(spacenum, | |
| 2598 | DEBUG_HOOK_READ(spacenum, | |
| 2594 | 2599 | \ |
| 2595 | 2600 | /* handle banks inline */ \ |
| 2596 | 2601 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2624 | 2629 | UINT32 entry; \ |
| 2625 | 2630 | MEMREADSTART(); \ |
| 2626 | 2631 | PERFORM_LOOKUP(readlookup,readhandlers,spacenum,~3); \ |
| 2627 | DEBUG_HOOK_READ(spacenum, | |
| 2632 | DEBUG_HOOK_READ(spacenum, | |
| 2628 | 2633 | \ |
| 2629 | 2634 | /* handle banks inline */ \ |
| 2630 | 2635 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2644 | 2649 | UINT32 entry; \ |
| 2645 | 2650 | MEMREADSTART(); \ |
| 2646 | 2651 | PERFORM_LOOKUP(readlookup,readhandlers,spacenum,~3); \ |
| 2647 | DEBUG_HOOK_READ(spacenum, | |
| 2652 | DEBUG_HOOK_READ(spacenum, | |
| 2648 | 2653 | \ |
| 2649 | 2654 | /* handle banks inline */ \ |
| 2650 | 2655 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2664 | 2669 | UINT32 entry; \ |
| 2665 | 2670 | MEMREADSTART(); \ |
| 2666 | 2671 | PERFORM_LOOKUP(readlookup,readhandlers,spacenum,~3); \ |
| 2667 | DEBUG_HOOK_READ(spacenum, | |
| 2672 | DEBUG_HOOK_READ(spacenum, | |
| 2668 | 2673 | \ |
| 2669 | 2674 | /* handle banks inline */ \ |
| 2670 | 2675 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2696 | 2701 | UINT32 entry; \ |
| 2697 | 2702 | MEMREADSTART(); \ |
| 2698 | 2703 | PERFORM_LOOKUP(readlookup,readhandlers,spacenum,~7); \ |
| 2699 | DEBUG_HOOK_READ(spacenum, | |
| 2704 | DEBUG_HOOK_READ(spacenum, | |
| 2700 | 2705 | \ |
| 2701 | 2706 | /* handle banks inline */ \ |
| 2702 | 2707 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2716 | 2721 | UINT32 entry; \ |
| 2717 | 2722 | MEMREADSTART(); \ |
| 2718 | 2723 | PERFORM_LOOKUP(readlookup,readhandlers,spacenum,~7); \ |
| 2719 | DEBUG_HOOK_READ(spacenum, | |
| 2724 | DEBUG_HOOK_READ(spacenum, | |
| 2720 | 2725 | \ |
| 2721 | 2726 | /* handle banks inline */ \ |
| 2722 | 2727 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2741 | 2746 | UINT32 entry; \ |
| 2742 | 2747 | MEMWRITESTART(); \ |
| 2743 | 2748 | PERFORM_LOOKUP(writelookup,writehandlers,spacenum,~0); \ |
| 2744 | DEBUG_HOOK_WRITE(spacenum, | |
| 2749 | DEBUG_HOOK_WRITE(spacenum, | |
| 2745 | 2750 | \ |
| 2746 | 2751 | /* handle banks inline */ \ |
| 2747 | 2752 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2761 | 2766 | UINT32 entry; \ |
| 2762 | 2767 | MEMWRITESTART(); \ |
| 2763 | 2768 | PERFORM_LOOKUP(writelookup,writehandlers,spacenum,~0); \ |
| 2764 | DEBUG_HOOK_WRITE(spacenum, | |
| 2769 | DEBUG_HOOK_WRITE(spacenum, | |
| 2765 | 2770 | \ |
| 2766 | 2771 | /* handle banks inline */ \ |
| 2767 | 2772 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2797 | 2802 | UINT32 entry; \ |
| 2798 | 2803 | MEMWRITESTART(); \ |
| 2799 | 2804 | PERFORM_LOOKUP(writelookup,writehandlers,spacenum,~1); \ |
| 2800 | DEBUG_HOOK_WRITE(spacenum, | |
| 2805 | DEBUG_HOOK_WRITE(spacenum, | |
| 2801 | 2806 | \ |
| 2802 | 2807 | /* handle banks inline */ \ |
| 2803 | 2808 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2817 | 2822 | UINT32 entry; \ |
| 2818 | 2823 | MEMWRITESTART(); \ |
| 2819 | 2824 | PERFORM_LOOKUP(writelookup,writehandlers,spacenum,~1); \ |
| 2820 | DEBUG_HOOK_WRITE(spacenum, | |
| 2825 | DEBUG_HOOK_WRITE(spacenum, | |
| 2821 | 2826 | \ |
| 2822 | 2827 | /* handle banks inline */ \ |
| 2823 | 2828 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2851 | 2856 | UINT32 entry; \ |
| 2852 | 2857 | MEMWRITESTART(); \ |
| 2853 | 2858 | PERFORM_LOOKUP(writelookup,writehandlers,spacenum,~3); \ |
| 2854 | DEBUG_HOOK_WRITE(spacenum, | |
| 2859 | DEBUG_HOOK_WRITE(spacenum, | |
| 2855 | 2860 | \ |
| 2856 | 2861 | /* handle banks inline */ \ |
| 2857 | 2862 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2871 | 2876 | UINT32 entry; \ |
| 2872 | 2877 | MEMWRITESTART(); \ |
| 2873 | 2878 | PERFORM_LOOKUP(writelookup,writehandlers,spacenum,~3); \ |
| 2874 | DEBUG_HOOK_WRITE(spacenum, | |
| 2879 | DEBUG_HOOK_WRITE(spacenum, | |
| 2875 | 2880 | \ |
| 2876 | 2881 | /* handle banks inline */ \ |
| 2877 | 2882 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2894 | 2899 | UINT32 entry; \ |
| 2895 | 2900 | MEMWRITESTART(); \ |
| 2896 | 2901 | PERFORM_LOOKUP(writelookup,writehandlers,spacenum,~3); \ |
| 2897 | DEBUG_HOOK_WRITE(spacenum, | |
| 2902 | DEBUG_HOOK_WRITE(spacenum, | |
| 2898 | 2903 | \ |
| 2899 | 2904 | /* handle banks inline */ \ |
| 2900 | 2905 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2926 | 2931 | UINT32 entry; \ |
| 2927 | 2932 | MEMWRITESTART(); \ |
| 2928 | 2933 | PERFORM_LOOKUP(writelookup,writehandlers,spacenum,~7); \ |
| 2929 | DEBUG_HOOK_WRITE(spacenum, | |
| 2934 | DEBUG_HOOK_WRITE(spacenum, | |
| 2930 | 2935 | \ |
| 2931 | 2936 | /* handle banks inline */ \ |
| 2932 | 2937 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
| 2946 | 2951 | UINT32 entry; \ |
| 2947 | 2952 | MEMWRITESTART(); \ |
| 2948 | 2953 | PERFORM_LOOKUP(writelookup,writehandlers,spacenum,~7); \ |
| 2949 | DEBUG_HOOK_WRITE(spacenum, | |
| 2954 | DEBUG_HOOK_WRITE(spacenum, | |
| 2950 | 2955 | \ |
| 2951 | 2956 | /* handle banks inline */ \ |
| 2952 | 2957 | address = (address - handler->bytestart) & handler->bytemask; \ |
| r2241 | r2242 | |
|---|---|---|
| 412 | 412 | /* helper macro for merging data with the memory mask */ |
| 413 | 413 | #define COMBINE_DATA(varptr) (*(varptr) = (*(varptr) & mem_mask) | (data & ~mem_mask)) |
| 414 | 414 | |
| 415 | #define ACCESSING_BITS_0_7 ((~mem_mask & 0x000000ff) != 0) | |
| 416 | #define ACCESSING_BITS_8_15 ((~mem_mask & 0x0000ff00) != 0) | |
| 417 | #define ACCESSING_BITS_16_23 ((~mem_mask & 0x00ff0000) != 0) | |
| 418 | #define ACCESSING_BITS_24_31 ((~mem_mask & 0xff000000) != 0) | |
| 419 | #define ACCESSING_BITS_32_39 ((~mem_mask & U64(0x000000ff00000000)) != 0) | |
| 420 | #define ACCESSING_BITS_40_47 ((~mem_mask & U64(0x0000ff0000000000)) != 0) | |
| 421 | #define ACCESSING_BITS_48_55 ((~mem_mask & U64(0x00ff000000000000)) != 0) | |
| 422 | #define ACCESSING_BITS_56_63 ((~mem_mask & U64(0xff00000000000000)) != 0) | |
| 415 | 423 | |
| 416 | /* 16-bit memory access tests */ | |
| 417 | #define ACCESSING_LSB16 ((mem_mask & 0x00ff) == 0) | |
| 418 | #define ACCESSING_MSB16 ((mem_mask & 0xff00) == 0) | |
| 419 | #define ACCESSING_LSB ACCESSING_LSB16 | |
| 420 | #define ACCESSING_MSB ACCESSING_MSB16 | |
| 424 | #define ACCESSING_BITS_0_15 ((~mem_mask & 0x0000ffff) != 0) | |
| 425 | #define ACCESSING_BITS_16_31 ((~mem_mask & 0xffff0000) != 0) | |
| 426 | #define ACCESSING_BITS_32_47 ((~mem_mask & U64(0x0000ffff00000000)) != 0) | |
| 427 | #define ACCESSING_BITS_48_63 ((~mem_mask & U64(0xffff000000000000)) != 0) | |
| 421 | 428 | |
| 429 | #define ACCESSING_BITS_0_31 ((~mem_mask & 0xffffffff) != 0) | |
| 430 | #define ACCESSING_BITS_32_63 ((~mem_mask & U64(0xffffffff00000000)) != 0) | |
| 422 | 431 | |
| 423 | /* 32-bit memory access tests */ | |
| 424 | #define ACCESSING_LSW32 ((mem_mask & 0x0000ffff) == 0) | |
| 425 | #define ACCESSING_MSW32 ((mem_mask & 0xffff0000) == 0) | |
| 426 | #define ACCESSING_LSB32 ((mem_mask & 0x000000ff) == 0) | |
| 427 | #define ACCESSING_MSB32 ((mem_mask & 0xff000000) == 0) | |
| 428 | 432 | |
| 429 | ||
| 430 | 433 | /* bank switching for CPU cores */ |
| 431 | 434 | #define change_pc(byteaddress) memory_set_opbase(byteaddress) |
| 432 | 435 |
| r2241 | r2242 | |
|---|---|---|
| 1567 | 1567 | #ifdef MESS |
| 1568 | 1568 | /* first MESS initialization */ |
| 1569 | 1569 | mess_predevice_init(machine); |
| 1570 | #endif | |
| 1570 | #endif /* MESS */ | |
| 1571 | 1571 | |
| 1572 | 1572 | /* call the game driver's init function */ |
| 1573 | 1573 | /* this is where decryption is done and memory maps are altered */ |
| r2241 | r2242 | |
| 1582 | 1582 | #ifdef MESS |
| 1583 | 1583 | /* second MESS initialization */ |
| 1584 | 1584 | mess_postdevice_init(machine); |
| 1585 | #endif | |
| 1585 | #endif /* MESS */ | |
| 1586 | 1586 | |
| 1587 | 1587 | /* start the video and audio hardware */ |
| 1588 | 1588 | video_init(machine); |
| r2241 | r2242 | |
|---|---|---|
| 1959 | 1959 | while (entrytype != INPUT_TOKEN_END) |
| 1960 | 1960 | { |
| 1961 | 1961 | UINT32 mask, defval, type, val; |
| 1962 | input_port_token temptoken; | |
| 1963 | int hasdiploc, strindex; | |
| 1962 | 1964 | #ifdef MESS |
| 1963 | 1965 | UINT16 category; |
| 1964 | 1966 | #endif /* MESS */ |
| r2241 | r2242 | |
| 1999 | 2001 | seq_index[0] = seq_index[1] = seq_index[2] = 0; |
| 2000 | 2002 | break; |
| 2001 | 2003 | |
| 2004 | case INPUT_TOKEN_SPECIAL_ONOFF: | |
| 2005 | TOKEN_UNGET_UINT32(ipt); | |
| 2006 | TOKEN_GET_UINT32_UNPACK3(ipt, entrytype, 8, hasdiploc, 1, strindex, 23); | |
| 2007 | TOKEN_GET_UINT64_UNPACK2(ipt, mask, 32, defval, 32); | |
| 2008 | ||
| 2009 | port = input_port_initialize(param, IPT_DIPSWITCH_NAME, modify_tag, mask, mask & defval); | |
| 2010 | temptoken.i = strindex; | |
| 2011 | port->name = input_port_string_from_token(temptoken); | |
| 2012 | if (strindex == INPUT_STRING_Service_Mode) | |
| 2013 | { | |
| 2014 | port->toggle = TRUE; | |
| 2015 | port->seq.code[0] = KEYCODE_F2; | |
| 2016 | } | |
| 2017 | if (hasdiploc) | |
| 2018 | input_port_parse_diplocation(port, TOKEN_GET_STRING(ipt)); | |
| 2019 | ||
| 2020 | port = input_port_initialize(param, IPT_DIPSWITCH_SETTING, modify_tag, 0, mask & defval); | |
| 2021 | temptoken.i = INPUT_STRING_Off; | |
| 2022 | port->name = input_port_string_from_token(temptoken); | |
| 2023 | ||
| 2024 | port = input_port_initialize(param, IPT_DIPSWITCH_SETTING, modify_tag, 0, mask & ~defval); | |
| 2025 | temptoken.i = INPUT_STRING_On; | |
| 2026 | port->name = input_port_string_from_token(temptoken); | |
| 2027 | break; | |
| 2028 | ||
| 2002 | 2029 | /* append a code */ |
| 2003 | 2030 | case INPUT_TOKEN_CODE: |
| 2004 | 2031 | TOKEN_UNGET_UINT32(ipt); |
| r2241 | r2242 | |
|---|---|---|
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "driver.h" |
| 8 | #include "deprecat.h" | |
| 8 | 9 | #include "machine/msm6242.h" |
| 9 | 10 | |
| 10 | ||
| 11 | 11 | static UINT8 msm6264_reg[3] = { 0, 0, 0 }; |
| 12 | 12 | static mame_system_time msm6264_hold_time = { 0 }; |
| 13 | 13 | |
| 14 | /* temporary buffer to hold values written to the device */ | |
| 15 | static UINT8 time_buffer[13]; | |
| 16 | ||
| 17 | /* TRUE if the time was just written */ | |
| 18 | static int time_just_written = FALSE; | |
| 19 | ||
| 20 | ||
| 21 | 14 | enum |
| 22 | 15 | { |
| 23 | 16 | MSM6264_REG_S1 = 0, |
| r2241 | r2242 | |
| 38 | 31 | MSM6264_REG_CF |
| 39 | 32 | }; |
| 40 | 33 | |
| 41 | ||
| 42 | static TIMER_CALLBACK( reset_time ) | |
| 43 | { | |
| 44 | time_just_written = FALSE; | |
| 45 | } | |
| 46 | ||
| 47 | ||
| 48 | 34 | READ8_HANDLER( msm6242_r ) |
| 49 | 35 | { |
| 50 | 36 | mame_system_time curtime, *systime = &curtime; |
| 51 | 37 | |
| 52 | /* return the buffered time if it has recently been written */ | |
| 53 | if (time_just_written && offset < MSM6264_REG_CD) | |
| 54 | { | |
| 55 | return time_buffer[offset]; | |
| 56 | } | |
| 57 | ||
| 58 | 38 | if ( msm6264_reg[0] & 1 ) /* if HOLD is set, use the hold time */ |
| 59 | 39 | { |
| 60 | 40 | systime = &msm6264_hold_time; |
| 61 | 41 | } |
| 62 | 42 | else /* otherwise, use the current time */ |
| 63 | 43 | { |
| 64 | mame_get_current_datetime( | |
| 44 | mame_get_current_datetime(Machine, &curtime); | |
| 65 | 45 | } |
| 66 | 46 | |
| 67 | 47 | switch(offset) |
| r2241 | r2242 | |
| 110 | 90 | return 0; |
| 111 | 91 | } |
| 112 | 92 | |
| 113 | ||
| 114 | 93 | WRITE8_HANDLER( msm6242_w ) |
| 115 | 94 | { |
| 116 | /* mark as just written and start a timer to reset it again */ | |
| 117 | if (offset < MSM6264_REG_CD) | |
| 118 | { | |
| 119 | time_buffer[offset] = data; | |
| 120 | time_just_written = TRUE; | |
| 121 | timer_set(ATTOTIME_IN_MSEC(500), NULL, 0, reset_time); | |
| 122 | return; | |
| 123 | } | |
| 124 | ||
| 125 | 95 | switch(offset) |
| 126 | 96 | { |
| 127 | 97 | case MSM6264_REG_CD: |
| r2241 | r2242 | |
| 130 | 100 | |
| 131 | 101 | if ( data & 1 ) /* was Hold set? */ |
| 132 | 102 | { |
| 133 | mame_get_current_datetime( | |
| 103 | mame_get_current_datetime(Machine, &msm6264_hold_time); | |
| 134 | 104 | } |
| 135 | 105 | |
| 136 | 106 | return; |
| r2241 | r2242 | |
| 163 | 133 | return msm6242_r(machine, offset); |
| 164 | 134 | } |
| 165 | 135 | |
| 166 | ||
| 167 | 136 | WRITE16_HANDLER( msm6242_lsb_w ) |
| 168 | 137 | { |
| 169 | if (ACCESSING_ | |
| 138 | if (ACCESSING_ | |
| 170 | 139 | msm6242_w(machine, offset, data); |
| 171 | 140 | } |
| r2241 | r2242 | |
|---|---|---|
| 414 | 414 | static UINT16 timekeeper_msb16_read( UINT32 chip, offs_t offset, UINT16 mem_mask ) |
| 415 | 415 | { |
| 416 | 416 | UINT16 data = 0; |
| 417 | if( ACCESSING_ | |
| 417 | if( ACCESSING_ | |
| 418 | 418 | { |
| 419 | 419 | data |= timekeeper_read( chip, offset ) << 8; |
| 420 | 420 | } |
| r2241 | r2242 | |
| 423 | 423 | |
| 424 | 424 | static void timekeeper_msb16_write( UINT32 chip, offs_t offset, UINT16 data, UINT16 mem_mask ) |
| 425 | 425 | { |
| 426 | if( ACCESSING_ | |
| 426 | if( ACCESSING_ | |
| 427 | 427 | { |
| 428 | 428 | timekeeper_write( chip, offset, data >> 8 ); |
| 429 | 429 | } |
| r2241 | r2242 | |
| 437 | 437 | static UINT32 timekeeper_32be_read( UINT32 chip, offs_t offset, UINT32 mem_mask ) |
| 438 | 438 | { |
| 439 | 439 | UINT32 data = 0; |
| 440 | if( ACCESSING_ | |
| 440 | if( ACCESSING_ | |
| 441 | 441 | { |
| 442 | 442 | data |= timekeeper_read( chip, ( offset * 4 ) + 0 ) << 24; |
| 443 | 443 | } |
| 444 | if( | |
| 444 | if( ACCESSING_BITS_16_23 | |
| 445 | 445 | { |
| 446 | 446 | data |= timekeeper_read( chip, ( offset * 4 ) + 1 ) << 16; |
| 447 | 447 | } |
| 448 | if( | |
| 448 | if( ACCESSING_BITS_8_15 | |
| 449 | 449 | { |
| 450 | 450 | data |= timekeeper_read( chip, ( offset * 4 ) + 2 ) << 8; |
| 451 | 451 | } |
| 452 | if( ACCESSING_ | |
| 452 | if( ACCESSING_ | |
| 453 | 453 | { |
| 454 | 454 | data |= timekeeper_read( chip, ( offset * 4 ) + 3 ) << 0; |
| 455 | 455 | } |
| r2241 | r2242 | |
| 458 | 458 | |
| 459 | 459 | static void timekeeper_32be_write( UINT32 chip, offs_t offset, UINT32 data, UINT32 mem_mask ) |
| 460 | 460 | { |
| 461 | if( ACCESSING_ | |
| 461 | if( ACCESSING_ | |
| 462 | 462 | { |
| 463 | 463 | timekeeper_write( chip, ( offset * 4 ) + 0, data >> 24 ); |
| 464 | 464 | } |
| 465 | if( | |
| 465 | if( ACCESSING_BITS_16_23 | |
| 466 | 466 | { |
| 467 | 467 | timekeeper_write( chip, ( offset * 4 ) + 1, data >> 16 ); |
| 468 | 468 | } |
| 469 | if( | |
| 469 | if( ACCESSING_BITS_8_15 | |
| 470 | 470 | { |
| 471 | 471 | timekeeper_write( chip, ( offset * 4 ) + 2, data >> 8 ); |
| 472 | 472 | } |
| 473 | if( ACCESSING_ | |
| 473 | if( ACCESSING_ | |
| 474 | 474 | { |
| 475 | 475 | timekeeper_write( chip, ( offset * 4 ) + 3, data >> 0 ); |
| 476 | 476 | } |
| r2241 | r2242 | |
| 482 | 482 | static UINT32 timekeeper_32le_lsb16_read( UINT32 chip, offs_t offset, UINT32 mem_mask ) |
| 483 | 483 | { |
| 484 | 484 | UINT32 data = 0; |
| 485 | if( ACCESSING_ | |
| 485 | if( ACCESSING_ | |
| 486 | 486 | { |
| 487 | 487 | data |= timekeeper_read( chip, ( offset * 2 ) + 0 ) << 0; |
| 488 | 488 | } |
| 489 | if( | |
| 489 | if( ACCESSING_BITS_16_23 | |
| 490 | 490 | { |
| 491 | 491 | data |= timekeeper_read( chip, ( offset * 2 ) + 1 ) << 16; |
| 492 | 492 | } |
| r2241 | r2242 | |
| 495 | 495 | |
| 496 | 496 | static void timekeeper_32le_lsb16_write( UINT32 chip, offs_t offset, UINT32 data, UINT32 mem_mask ) |
| 497 | 497 | { |
| 498 | if( ACCESSING_ | |
| 498 | if( ACCESSING_ | |
| 499 | 499 | { |
| 500 | 500 | timekeeper_write( chip, ( offset * 2 ) + 0, data >> 0 ); |
| 501 | 501 | } |
| 502 | if( | |
| 502 | if( ACCESSING_BITS_16_23 | |
| 503 | 503 | { |
| 504 | 504 | timekeeper_write( chip, ( offset * 2 ) + 1, data >> 16 ); |
| 505 | 505 | } |
| r2241 | r2242 | |
|---|---|---|
| 57 | 57 | UINT8 rx_shift; |
| 58 | 58 | UINT8 tx_shift; |
| 59 | 59 | |
| 60 | UINT8 rx_counter; | |
| 61 | UINT8 tx_counter; | |
| 62 | ||
| 60 | 63 | int rx_clock; |
| 61 | 64 | int tx_clock; |
| 62 | 65 | |
| r2241 | r2242 | |
| 118 | 121 | acia_p->rdr = 0; |
| 119 | 122 | acia_p->tx_shift = 0; |
| 120 | 123 | acia_p->rx_shift = 0; |
| 124 | acia_p->tx_counter = 0; | |
| 125 | acia_p->rx_counter = 0; | |
| 126 | ||
| 121 | 127 | *acia_p->tx_pin = 1; |
| 122 | 128 | acia_p->overrun = 0; |
| 123 | 129 | acia_p->status_read = 0; |
| r2241 | r2242 | |
| 163 | 169 | |
| 164 | 170 | acia_p->rx_clock = intf->rx_clock; |
| 165 | 171 | acia_p->tx_clock = intf->tx_clock; |
| 172 | acia_p->tx_counter = 0; | |
| 173 | acia_p->rx_counter = 0; | |
| 166 | 174 | acia_p->rx_pin = intf->rx_pin; |
| 167 | 175 | acia_p->tx_pin = intf->tx_pin; |
| 168 | 176 | acia_p->cts_pin = intf->cts_pin; |
| r2241 | r2242 | |
| 182 | 190 | state_save_register_item("acia6850", which, acia_p->status); |
| 183 | 191 | state_save_register_item("acia6850", which, acia_p->rx_clock); |
| 184 | 192 | state_save_register_item("acia6850", which, acia_p->tx_clock); |
| 193 | state_save_register_item("acia6850", which, acia_p->rx_counter); | |
| 194 | state_save_register_item("acia6850", which, acia_p->tx_counter); | |
| 185 | 195 | state_save_register_item("acia6850", which, acia_p->rx_shift); |
| 186 | 196 | state_save_register_item("acia6850", which, acia_p->tx_shift); |
| 187 | 197 | state_save_register_item("acia6850", which, acia_p->rdr); |
| r2241 | r2242 | |
| 201 | 211 | state_save_register_item("acia6850", which, acia_p->status_read); |
| 202 | 212 | } |
| 203 | 213 | |
| 214 | ||
| 204 | 215 | /* |
| 205 | 216 | Read Status Register |
| 206 | 217 | */ |
| r2241 | r2242 | |
| 213 | 224 | return acia_p->status; |
| 214 | 225 | } |
| 215 | 226 | |
| 227 | ||
| 216 | 228 | /* |
| 217 | 229 | Write Control Register |
| 218 | 230 | */ |
| r2241 | r2242 | |
| 297 | 309 | |
| 298 | 310 | if (!acia_p->reset) |
| 299 | 311 | { |
| 300 | attotime rx_period = attotime_mul(ATTOTIME_IN_HZ(acia_p->rx_clock), acia_p->divide); | |
| 301 | attotime tx_period = attotime_mul(ATTOTIME_IN_HZ(acia_p->tx_clock), acia_p->divide); | |
| 302 | timer_adjust_periodic(acia_p->rx_timer, rx_period, which, rx_period); | |
| 303 | timer_adjust_periodic(acia_p->tx_timer, tx_period, which, tx_period); | |
| 312 | if (acia_p->rx_clock) | |
| 313 | { | |
| 314 | attotime rx_period = attotime_mul(ATTOTIME_IN_HZ(acia_p->rx_clock), acia_p->divide); | |
| 315 | timer_adjust_periodic(acia_p->rx_timer, rx_period, which, rx_period); | |
| 316 | } | |
| 317 | if (acia_p->tx_clock) | |
| 318 | { | |
| 319 | attotime tx_period = attotime_mul(ATTOTIME_IN_HZ(acia_p->tx_clock), acia_p->divide); | |
| 320 | timer_adjust_periodic(acia_p->tx_timer, tx_period, which, tx_period); | |
| 321 | } | |
| 304 | 322 | } |
| 305 | 323 | } |
| 306 | 324 | |
| 325 | ||
| 307 | 326 | static void acia6850_check_interrupts(int which) |
| 308 | 327 | { |
| 309 | 328 | acia_6850 *acia_p = &acia[which]; |
| r2241 | r2242 | |
| 331 | 350 | } |
| 332 | 351 | } |
| 333 | 352 | |
| 353 | ||
| 334 | 354 | /* |
| 335 | 355 | Write transmit register |
| 336 | 356 | */ |
| r2241 | r2242 | |
| 350 | 370 | } |
| 351 | 371 | } |
| 352 | 372 | |
| 373 | ||
| 353 | 374 | /* |
| 354 | 375 | Read character |
| 355 | 376 | */ |
| r2241 | r2242 | |
| 381 | 402 | return acia_p->rdr; |
| 382 | 403 | } |
| 383 | 404 | |
| 405 | ||
| 384 | 406 | /* |
| 385 | 407 | Transmit a bit |
| 386 | 408 | */ |
| 387 | static | |
| 409 | static void | |
| 388 | 410 | { |
| 389 | int which = param; | |
| 390 | 411 | acia_6850 *acia_p = &acia[which]; |
| 391 | 412 | |
| 392 | 413 | if (acia_p->cts_pin && *acia_p->cts_pin) |
| r2241 | r2242 | |
| 499 | 520 | } |
| 500 | 521 | } |
| 501 | 522 | |
| 502 | /* Called on receive timer event */ | |
| 503 | static TIMER_CALLBACK( receive_event ) | |
| 523 | ||
| 524 | /* Called on transmit timer event */ | |
| 525 | static TIMER_CALLBACK( transmit_event ) | |
| 504 | 526 | { |
| 505 | 527 | int which = param; |
| 506 | 528 | acia_6850 *acia_p = &acia[which]; |
| 529 | tx_tick(which); | |
| 530 | acia_p->tx_counter = 0; | |
| 531 | } | |
| 507 | 532 | |
| 533 | ||
| 534 | /* As above, but using the tx pin */ | |
| 535 | void acia_tx_clock_in(int which) | |
| 536 | { | |
| 537 | acia_6850 *acia_p = &acia[which]; | |
| 538 | ||
| 539 | if (acia_p->cts_pin && *acia_p->cts_pin) | |
| 540 | { | |
| 541 | acia_p->status |= ACIA6850_STATUS_CTS; | |
| 542 | } | |
| 543 | else | |
| 544 | { | |
| 545 | acia_p->status &= ~ACIA6850_STATUS_CTS; | |
| 546 | } | |
| 547 | ||
| 548 | acia_p->tx_counter ++; | |
| 549 | ||
| 550 | if ( acia_p->tx_counter > acia_p->divide-1) | |
| 551 | { | |
| 552 | tx_tick(which); | |
| 553 | acia_p->tx_counter = 0; | |
| 554 | } | |
| 555 | ||
| 556 | } | |
| 557 | ||
| 558 | ||
| 559 | /* | |
| 560 | Receive a bit | |
| 561 | */ | |
| 562 | static void rx_tick(int which) | |
| 563 | { | |
| 564 | acia_6850 *acia_p = &acia[which]; | |
| 565 | ||
| 508 | 566 | if (acia_p->dcd_pin && *acia_p->dcd_pin) |
| 509 | 567 | { |
| 510 | 568 | acia_p->status |= ACIA6850_STATUS_DCD; |
| r2241 | r2242 | |
| 639 | 697 | } |
| 640 | 698 | } |
| 641 | 699 | |
| 700 | /* Called on receive timer event */ | |
| 701 | static TIMER_CALLBACK( receive_event ) | |
| 702 | { | |
| 703 | int which = param; | |
| 704 | acia_6850 *acia_p = &acia[which]; | |
| 705 | rx_tick(which); | |
| 706 | acia_p->rx_counter = 0; | |
| 707 | } | |
| 708 | ||
| 709 | ||
| 710 | /* As above, but using the rx pin */ | |
| 711 | void acia_rx_clock_in(int which) | |
| 712 | { | |
| 713 | acia_6850 *acia_p = &acia[which]; | |
| 714 | ||
| 715 | if (acia_p->dcd_pin && *acia_p->dcd_pin) | |
| 716 | { | |
| 717 | acia_p->status |= ACIA6850_STATUS_DCD; | |
| 718 | acia6850_check_interrupts(which); | |
| 719 | } | |
| 720 | else if ((acia_p->status & (ACIA6850_STATUS_DCD|ACIA6850_STATUS_IRQ)) == ACIA6850_STATUS_DCD) | |
| 721 | { | |
| 722 | acia_p->status &= ~ACIA6850_STATUS_DCD; | |
| 723 | } | |
| 724 | ||
| 725 | acia_p->rx_counter ++; | |
| 726 | ||
| 727 | if ( acia_p->rx_counter > acia_p->divide-1) | |
| 728 | { | |
| 729 | rx_tick(which); | |
| 730 | acia_p->rx_counter = 0; | |
| 731 | } | |
| 732 | } | |
| 733 | ||
| 734 | ||
| 735 | /* Set clock frequencies dynamically */ | |
| 642 | 736 | void acia6850_set_rx_clock(int which, int clock) |
| 643 | 737 | { |
| 644 | 738 | acia_6850 *acia_p = &acia[which]; |
| 645 | 739 | acia_p->rx_clock = clock; |
| 646 | 740 | } |
| 647 | 741 | |
| 742 | ||
| 648 | 743 | void acia6850_set_tx_clock(int which, int clock) |
| 649 | 744 | { |
| 650 | 745 | acia_6850 *acia_p = &acia[which]; |
| r2241 | r2242 | |
| 692 | 787 | READ16_HANDLER( acia6850_2_data_msb_r ) { return acia6850_data_r(2) << 8; } |
| 693 | 788 | READ16_HANDLER( acia6850_3_data_msb_r ) { return acia6850_data_r(3) << 8; } |
| 694 | 789 | |
| 695 | WRITE16_HANDLER( acia6850_0_ctrl_msb_w ) { if (ACCESSING_MSB) acia6850_ctrl_w(0, (data >> 8) & 0xff); } | |
| 696 | WRITE16_HANDLER( acia6850_1_ctrl_msb_w ) { if (ACCESSING_MSB) acia6850_ctrl_w(1, (data >> 8) & 0xff); } | |
| 697 | WRITE16_HANDLER( acia6850_2_ctrl_msb_w ) { if (ACCESSING_MSB) acia6850_ctrl_w(2, (data >> 8) & 0xff); } | |
| 698 | WRITE16_HANDLER( acia6850_3_ctrl_msb_w ) { if (ACCESSING_MSB) acia6850_ctrl_w(3, (data >> 8) & 0xff); } | |
| 790 | WRITE16_HANDLER( acia6850_0_ctrl_msb_w ) { if (ACCESSING_BITS_8_15) acia6850_ctrl_w(0, (data >> 8) & 0xff); } | |
| 791 | WRITE16_HANDLER( acia6850_1_ctrl_msb_w ) { if (ACCESSING_BITS_8_15) acia6850_ctrl_w(1, (data >> 8) & 0xff); } | |
| 792 | WRITE16_HANDLER( acia6850_2_ctrl_msb_w ) { if (ACCESSING_BITS_8_15) acia6850_ctrl_w(2, (data >> 8) & 0xff); } | |
| 793 | WRITE16_HANDLER( acia6850_3_ctrl_msb_w ) { if (ACCESSING_BITS_8_15) acia6850_ctrl_w(3, (data >> 8) & 0xff); } | |
| 699 | 794 | |
| 700 | WRITE16_HANDLER( acia6850_0_ctrl_lsb_w ) { if (ACCESSING_LSB) acia6850_ctrl_w(0, data & 0xff); } | |
| 701 | WRITE16_HANDLER( acia6850_1_ctrl_lsb_w ) { if (ACCESSING_LSB) acia6850_ctrl_w(1, data & 0xff); } | |
| 702 | WRITE16_HANDLER( acia6850_2_ctrl_lsb_w ) { if (ACCESSING_LSB) acia6850_ctrl_w(2, data & 0xff); } | |
| 703 | WRITE16_HANDLER( acia6850_3_ctrl_lsb_w ) { if (ACCESSING_LSB) acia6850_ctrl_w(3, data & 0xff); } | |
| 795 | WRITE16_HANDLER( acia6850_0_ctrl_lsb_w ) { if (ACCESSING_BITS_0_7) acia6850_ctrl_w(0, data & 0xff); } | |
| 796 | WRITE16_HANDLER( acia6850_1_ctrl_lsb_w ) { if (ACCESSING_BITS_0_7) acia6850_ctrl_w(1, data & 0xff); } | |
| 797 | WRITE16_HANDLER( acia6850_2_ctrl_lsb_w ) { if (ACCESSING_BITS_0_7) acia6850_ctrl_w(2, data & 0xff); } | |
| 798 | WRITE16_HANDLER( acia6850_3_ctrl_lsb_w ) { if (ACCESSING_BITS_0_7) acia6850_ctrl_w(3, data & 0xff); } | |
| 704 | 799 | |
| 705 | WRITE16_HANDLER( acia6850_0_data_msb_w ) { if (ACCESSING_MSB) acia6850_data_w(0, (data >> 8) & 0xff); } | |
| 706 | WRITE16_HANDLER( acia6850_1_data_msb_w ) { if (ACCESSING_MSB) acia6850_data_w(1, (data >> 8) & 0xff); } | |
| 707 | WRITE16_HANDLER( acia6850_2_data_msb_w ) { if (ACCESSING_MSB) acia6850_data_w(2, (data >> 8) & 0xff); } | |
| 708 | WRITE16_HANDLER( acia6850_3_data_msb_w ) { if (ACCESSING_MSB) acia6850_data_w(3, (data >> 8) & 0xff); } | |
| 800 | WRITE16_HANDLER( acia6850_0_data_msb_w ) { if (ACCESSING_BITS_8_15) acia6850_data_w(0, (data >> 8) & 0xff); } | |
| 801 | WRITE16_HANDLER( acia6850_1_data_msb_w ) { if (ACCESSING_BITS_8_15) acia6850_data_w(1, (data >> 8) & 0xff); } | |
| 802 | WRITE16_HANDLER( acia6850_2_data_msb_w ) { if (ACCESSING_BITS_8_15) acia6850_data_w(2, (data >> 8) & 0xff); } | |
| 803 | WRITE16_HANDLER( acia6850_3_data_msb_w ) { if (ACCESSING_BITS_8_15) acia6850_data_w(3, (data >> 8) & 0xff); } | |
| 709 | 804 | |
| 710 | WRITE16_HANDLER( acia6850_0_data_lsb_w ) { if (ACCESSING_LSB) acia6850_data_w(0, data & 0xff); } | |
| 711 | WRITE16_HANDLER( acia6850_1_data_lsb_w ) { if (ACCESSING_LSB) acia6850_data_w(1, data & 0xff); } | |
| 712 | WRITE16_HANDLER( acia6850_2_data_lsb_w ) { if (ACCESSING_LSB) acia6850_data_w(2, data & 0xff); } | |
| 713 | WRITE16_HANDLER( acia6850_3_data_lsb_w ) { if (ACCESSING_LSB) acia6850_data_w(3, data & 0xff); } | |
| 805 | WRITE16_HANDLER( acia6850_0_data_lsb_w ) { if (ACCESSING_BITS_0_7) acia6850_data_w(0, data & 0xff); } | |
| 806 | WRITE16_HANDLER( acia6850_1_data_lsb_w ) { if (ACCESSING_BITS_0_7) acia6850_data_w(1, data & 0xff); } | |
| 807 | WRITE16_HANDLER( acia6850_2_data_lsb_w ) { if (ACCESSING_BITS_0_7) acia6850_data_w(2, data & 0xff); } | |
| 808 | WRITE16_HANDLER( acia6850_3_data_lsb_w ) { if (ACCESSING_BITS_0_7) acia6850_data_w(3, data & 0xff); } |
| r2241 | r2242 | |
|---|---|---|
| 28 | 28 | |
| 29 | 29 | void acia6850_config(int which, const struct acia6850_interface *intf); |
| 30 | 30 | |
| 31 | void acia_tx_clock_in(int which); | |
| 32 | void acia_rx_clock_in(int which); | |
| 33 | ||
| 31 | 34 | void acia6850_set_rx_clock(int which, int clock); |
| 32 | 35 | void acia6850_set_tx_clock(int which, int clock); |
| 33 | 36 |
| r2241 | r2242 | |
|---|---|---|
| 442 | 442 | int size = 4; |
| 443 | 443 | |
| 444 | 444 | /* determine which real offset */ |
| 445 | if ( | |
| 445 | if (!ACCESSING_BITS_ | |
| 446 | 446 | { |
| 447 | 447 | (*offset)++, size = 3; |
| 448 | if ( | |
| 448 | if (!ACCESSING_BITS_8_15 | |
| 449 | 449 | { |
| 450 | 450 | (*offset)++, size = 2; |
| 451 | if ( | |
| 451 | if (!ACCESSING_BITS_16_23 | |
| 452 | 452 | (*offset)++, size = 1; |
| 453 | 453 | } |
| 454 | 454 | } |
| 455 | 455 | |
| 456 | 456 | /* determine the real size */ |
| 457 | if ( | |
| 457 | if (ACCESSING_BITS_24_31 | |
| 458 | 458 | return size; |
| 459 | 459 | size--; |
| 460 | if ( | |
| 460 | if (ACCESSING_BITS_16_23 | |
| 461 | 461 | return size; |
| 462 | 462 | size--; |
| 463 | if ( | |
| 463 | if (ACCESSING_BITS_8_15 | |
| 464 | 464 | return size; |
| 465 | 465 | size--; |
| 466 | 466 | return size; |
| r2241 | r2242 | |
| 471 | 471 | int size = 2; |
| 472 | 472 | |
| 473 | 473 | /* determine which real offset */ |
| 474 | if ( | |
| 474 | if (!ACCESSING_BITS_ | |
| 475 | 475 | (*offset)++, size = 1; |
| 476 | 476 | |
| 477 | if ( | |
| 477 | if (ACCESSING_BITS_8_15 | |
| 478 | 478 | return size; |
| 479 | 479 | size--; |
| 480 | 480 | return size; |
| r2241 | r2242 | |
|---|---|---|
| 1209 | 1209 | READ16_HANDLER( pia_6_lsb_r ) { return pia_read(6, offset); } |
| 1210 | 1210 | READ16_HANDLER( pia_7_lsb_r ) { return pia_read(7, offset); } |
| 1211 | 1211 | |
| 1212 | WRITE16_HANDLER( pia_0_lsb_w ) { if (ACCESSING_LSB) pia_write(0, offset, data); } | |
| 1213 | WRITE16_HANDLER( pia_1_lsb_w ) { if (ACCESSING_LSB) pia_write(1, offset, data); } | |
| 1214 | WRITE16_HANDLER( pia_2_lsb_w ) { if (ACCESSING_LSB) pia_write(2, offset, data); } | |
| 1215 | WRITE16_HANDLER( pia_3_lsb_w ) { if (ACCESSING_LSB) pia_write(3, offset, data); } | |
| 1216 | WRITE16_HANDLER( pia_4_lsb_w ) { if (ACCESSING_LSB) pia_write(4, offset, data); } | |
| 1217 | WRITE16_HANDLER( pia_5_lsb_w ) { if (ACCESSING_LSB) pia_write(5, offset, data); } | |
| 1218 | WRITE16_HANDLER( pia_6_lsb_w ) { if (ACCESSING_LSB) pia_write(6, offset, data); } | |
| 1219 | WRITE16_HANDLER( pia_7_lsb_w ) { if (ACCESSING_LSB) pia_write(7, offset, data); } | |
| 1212 | WRITE16_HANDLER( pia_0_lsb_w ) { if (ACCESSING_BITS_0_7) pia_write(0, offset, data); } | |
| 1213 | WRITE16_HANDLER( pia_1_lsb_w ) { if (ACCESSING_BITS_0_7) pia_write(1, offset, data); } | |
| 1214 | WRITE16_HANDLER( pia_2_lsb_w ) { if (ACCESSING_BITS_0_7) pia_write(2, offset, data); } | |
| 1215 | WRITE16_HANDLER( pia_3_lsb_w ) { if (ACCESSING_BITS_0_7) pia_write(3, offset, data); } | |
| 1216 | WRITE16_HANDLER( pia_4_lsb_w ) { if (ACCESSING_BITS_0_7) pia_write(4, offset, data); } | |
| 1217 | WRITE16_HANDLER( pia_5_lsb_w ) { if (ACCESSING_BITS_0_7) pia_write(5, offset, data); } | |
| 1218 | WRITE16_HANDLER( pia_6_lsb_w ) { if (ACCESSING_BITS_0_7) pia_write(6, offset, data); } | |
| 1219 | WRITE16_HANDLER( pia_7_lsb_w ) { if (ACCESSING_BITS_0_7) pia_write(7, offset, data); } | |
| 1220 | 1220 | |
| 1221 | 1221 | READ16_HANDLER( pia_0_lsb_alt_r ) { return pia_alt_read(0, offset); } |
| 1222 | 1222 | READ16_HANDLER( pia_1_lsb_alt_r ) { return pia_alt_read(1, offset); } |
| r2241 | r2242 | |
| 1227 | 1227 | READ16_HANDLER( pia_6_lsb_alt_r ) { return pia_alt_read(6, offset); } |
| 1228 | 1228 | READ16_HANDLER( pia_7_lsb_alt_r ) { return pia_alt_read(7, offset); } |
| 1229 | 1229 | |
| 1230 | WRITE16_HANDLER( pia_0_lsb_alt_w ) { if (ACCESSING_LSB) pia_alt_write(0, offset, data); } | |
| 1231 | WRITE16_HANDLER( pia_1_lsb_alt_w ) { if (ACCESSING_LSB) pia_alt_write(1, offset, data); } | |
| 1232 | WRITE16_HANDLER( pia_2_lsb_alt_w ) { if (ACCESSING_LSB) pia_alt_write(2, offset, data); } | |
| 1233 | WRITE16_HANDLER( pia_3_lsb_alt_w ) { if (ACCESSING_LSB) pia_alt_write(3, offset, data); } | |
| 1234 | WRITE16_HANDLER( pia_4_lsb_alt_w ) { if (ACCESSING_LSB) pia_alt_write(4, offset, data); } | |
| 1235 | WRITE16_HANDLER( pia_5_lsb_alt_w ) { if (ACCESSING_LSB) pia_alt_write(5, offset, data); } | |
| 1236 | WRITE16_HANDLER( pia_6_lsb_alt_w ) { if (ACCESSING_LSB) pia_alt_write(6, offset, data); } | |
| 1237 | WRITE16_HANDLER( pia_7_lsb_alt_w ) { if (ACCESSING_LSB) pia_alt_write(7, offset, data); } | |
| 1230 | WRITE16_HANDLER( pia_0_lsb_alt_w ) { if (ACCESSING_BITS_0_7) pia_alt_write(0, offset, data); } | |
| 1231 | WRITE16_HANDLER( pia_1_lsb_alt_w ) { if (ACCESSING_BITS_0_7) pia_alt_write(1, offset, data); } | |
| 1232 | WRITE16_HANDLER( pia_2_lsb_alt_w ) { if (ACCESSING_BITS_0_7) pia_alt_write(2, offset, data); } | |
| 1233 | WRITE16_HANDLER( pia_3_lsb_alt_w ) { if (ACCESSING_BITS_0_7) pia_alt_write(3, offset, data); } | |
| 1234 | WRITE16_HANDLER( pia_4_lsb_alt_w ) { if (ACCESSING_BITS_0_7) pia_alt_write(4, offset, data); } | |
| 1235 | WRITE16_HANDLER( pia_5_lsb_alt_w ) { if (ACCESSING_BITS_0_7) pia_alt_write(5, offset, data); } | |
| 1236 | WRITE16_HANDLER( pia_6_lsb_alt_w ) { if (ACCESSING_BITS_0_7) pia_alt_write(6, offset, data); } | |
| 1237 | WRITE16_HANDLER( pia_7_lsb_alt_w ) { if (ACCESSING_BITS_0_7) pia_alt_write(7, offset, data); } | |
| 1238 | 1238 | |
| 1239 | 1239 | /******************* Standard 16-bit CPU interfaces, D8-D15 *******************/ |
| 1240 | 1240 | |
| r2241 | r2242 | |
| 1247 | 1247 | READ16_HANDLER( pia_6_msb_r ) { return pia_read(6, offset) << 8; } |
| 1248 | 1248 | READ16_HANDLER( pia_7_msb_r ) { return pia_read(7, offset) << 8; } |
| 1249 | 1249 | |
| 1250 | WRITE16_HANDLER( pia_0_msb_w ) { if (ACCESSING_MSB) pia_write(0, offset, data >> 8); } | |
| 1251 | WRITE16_HANDLER( pia_1_msb_w ) { if (ACCESSING_MSB) pia_write(1, offset, data >> 8); } | |
| 1252 | WRITE16_HANDLER( pia_2_msb_w ) { if (ACCESSING_MSB) pia_write(2, offset, data >> 8); } | |
| 1253 | WRITE16_HANDLER( pia_3_msb_w ) { if (ACCESSING_MSB) pia_write(3, offset, data >> 8); } | |
| 1254 | WRITE16_HANDLER( pia_4_msb_w ) { if (ACCESSING_MSB) pia_write(4, offset, data >> 8); } | |
| 1255 | WRITE16_HANDLER( pia_5_msb_w ) { if (ACCESSING_MSB) pia_write(5, offset, data >> 8); } | |
| 1256 | WRITE16_HANDLER( pia_6_msb_w ) { if (ACCESSING_MSB) pia_write(6, offset, data >> 8); } | |
| 1257 | WRITE16_HANDLER( pia_7_msb_w ) { if (ACCESSING_MSB) pia_write(7, offset, data >> 8); } | |
| 1250 | WRITE16_HANDLER( pia_0_msb_w ) { if (ACCESSING_BITS_8_15) pia_write(0, offset, data >> 8); } | |
| 1251 | WRITE16_HANDLER( pia_1_msb_w ) { if (ACCESSING_BITS_8_15) pia_write(1, offset, data >> 8); } | |
| 1252 | WRITE16_HANDLER( pia_2_msb_w ) { if (ACCESSING_BITS_8_15) pia_write(2, offset, data >> 8); } | |
| 1253 | WRITE16_HANDLER( pia_3_msb_w ) { if (ACCESSING_BITS_8_15) pia_write(3, offset, data >> 8); } | |
| 1254 | WRITE16_HANDLER( pia_4_msb_w ) { if (ACCESSING_BITS_8_15) pia_write(4, offset, data >> 8); } | |
| 1255 | WRITE16_HANDLER( pia_5_msb_w ) { if (ACCESSING_BITS_8_15) pia_write(5, offset, data >> 8); } | |
| 1256 | WRITE16_HANDLER( pia_6_msb_w ) { if (ACCESSING_BITS_8_15) pia_write(6, offset, data >> 8); } | |
| 1257 | WRITE16_HANDLER( pia_7_msb_w ) { if (ACCESSING_BITS_8_15) pia_write(7, offset, data >> 8); } | |
| 1258 | 1258 | |
| 1259 | 1259 | READ16_HANDLER( pia_0_msb_alt_r ) { return pia_alt_read(0, offset) << 8; } |
| 1260 | 1260 | READ16_HANDLER( pia_1_msb_alt_r ) { return pia_alt_read(1, offset) << 8; } |
| r2241 | r2242 | |
| 1265 | 1265 | READ16_HANDLER( pia_6_msb_alt_r ) { return pia_alt_read(6, offset) << 8; } |
| 1266 | 1266 | READ16_HANDLER( pia_7_msb_alt_r ) { return pia_alt_read(7, offset) << 8; } |
| 1267 | 1267 | |
| 1268 | WRITE16_HANDLER( pia_0_msb_alt_w ) { if (ACCESSING_MSB) pia_alt_write(0, offset, data >> 8); } | |
| 1269 | WRITE16_HANDLER( pia_1_msb_alt_w ) { if (ACCESSING_MSB) pia_alt_write(1, offset, data >> 8); } | |
| 1270 | WRITE16_HANDLER( pia_2_msb_alt_w ) { if (ACCESSING_MSB) pia_alt_write(2, offset, data >> 8); } | |
| 1271 | WRITE16_HANDLER( pia_3_msb_alt_w ) { if (ACCESSING_MSB) pia_alt_write(3, offset, data >> 8); } | |
| 1272 | WRITE16_HANDLER( pia_4_msb_alt_w ) { if (ACCESSING_MSB) pia_alt_write(4, offset, data >> 8); } | |
| 1273 | WRITE16_HANDLER( pia_5_msb_alt_w ) { if (ACCESSING_MSB) pia_alt_write(5, offset, data >> 8); } | |
| 1274 | WRITE16_HANDLER( pia_6_msb_alt_w ) { if (ACCESSING_MSB) pia_alt_write(6, offset, data >> 8); } | |
| 1275 | WRITE16_HANDLER( pia_7_msb_alt_w ) { if (ACCESSING_MSB) pia_alt_write(7, offset, data >> 8); } | |
| 1268 | WRITE16_HANDLER( pia_0_msb_alt_w ) { if (ACCESSING_BITS_8_15) pia_alt_write(0, offset, data >> 8); } | |
| 1269 | WRITE16_HANDLER( pia_1_msb_alt_w ) { if (ACCESSING_BITS_8_15) pia_alt_write(1, offset, data >> 8); } | |
| 1270 | WRITE16_HANDLER( pia_2_msb_alt_w ) { if (ACCESSING_BITS_8_15) pia_alt_write(2, offset, data >> 8); } | |
| 1271 | WRITE16_HANDLER( pia_3_msb_alt_w ) { if (ACCESSING_BITS_8_15) pia_alt_write(3, offset, data >> 8); } | |
| 1272 | WRITE16_HANDLER( pia_4_msb_alt_w ) { if (ACCESSING_BITS_8_15) pia_alt_write(4, offset, data >> 8); } | |
| 1273 | WRITE16_HANDLER( pia_5_msb_alt_w ) { if (ACCESSING_BITS_8_15) pia_alt_write(5, offset, data >> 8); } | |
| 1274 | WRITE16_HANDLER( pia_6_msb_alt_w ) { if (ACCESSING_BITS_8_15) pia_alt_write(6, offset, data >> 8); } | |
| 1275 | WRITE16_HANDLER( pia_7_msb_alt_w ) { if (ACCESSING_BITS_8_15) pia_alt_write(7, offset, data >> 8); } | |
| 1276 | 1276 | |
| 1277 | 1277 | /******************* 8-bit A/B port interfaces *******************/ |
| 1278 | 1278 |
| r2241 | r2242 | |
|---|---|---|
| 735 | 735 | case SCSIOP_READ_DATA: |
| 736 | 736 | scsicd_read_data( file, ptrparm, intparm ); |
| 737 | 737 | return 0; |
| 738 | ||
| 738 | ||
| 739 | 739 | case SCSIOP_WRITE_DATA: |
| 740 | 740 | scsicd_write_data( file, ptrparm, intparm ); |
| 741 | 741 | return 0; |
| r2241 | r2242 | |
|---|---|---|
| 161 | 161 | state_save_register_item( "ds2401", which, c->shift ); |
| 162 | 162 | state_save_register_item( "ds2401", which, c->rx ); |
| 163 | 163 | state_save_register_item( "ds2401", which, c->tx ); |
| 164 | state_save_register_generic( "ds2401", which, "data", (UINT8 *)&data[0], data[0], SIZE_DATA ); | |
| 165 | 164 | |
| 166 | 165 | c->timer = timer_alloc( ds2401_tick , NULL); |
| 167 | 166 | c->reset_timer = timer_alloc( ds2401_reset , NULL); |
| r2241 | r2242 | |
|---|---|---|
| 36 | 36 | #include "deprecat.h" |
| 37 | 37 | #include "6840ptm.h" |
| 38 | 38 | |
| 39 | #ifdef MAME_DEBUG | |
| 40 | #define PTMVERBOSE 1 | |
| 39 | // Defines ///////////////////////////////////////////////////////////// | |
| 40 | ||
| 41 | #define PTMVERBOSE 0 | |
| 42 | ||
| 43 | #if PTMVERBOSE | |
| 44 | #define PLOG(x) logerror x; | |
| 41 | 45 | #else |
| 42 | #define P | |
| 46 | #define PL | |
| 43 | 47 | #endif |
| 44 | 48 | |
| 45 | #define PLOG(x) do { if (PTMVERBOSE) logerror x; } while (0) | |
| 49 | enum | |
| 50 | { | |
| 51 | PTM_6840_CTRL1 = 0, | |
| 52 | PTM_6840_CTRL2 = 1, | |
| 53 | PTM_6840_STATUS = 1, | |
| 54 | PTM_6840_MSBBUF1 = 2, | |
| 55 | PTM_6840_LSB1 = 3, | |
| 56 | PTM_6840_MSBBUF2 = 4, | |
| 57 | PTM_6840_LSB2 = 5, | |
| 58 | PTM_6840_MSBBUF3 = 6, | |
| 59 | PTM_6840_LSB3 = 7, | |
| 60 | }; | |
| 46 | 61 | |
| 47 | #define PTM_6840_CTRL1 0 | |
| 48 | #define PTM_6840_CTRL2 1 | |
| 49 | #define PTM_6840_MSBBUF1 2 | |
| 50 | #define PTM_6840_LSB1 3 | |
| 51 | #define PTM_6840_MSBBUF2 4 | |
| 52 | #define PTM_6840_LSB2 5 | |
| 53 | #define PTM_6840_MSBBUF3 6 | |
| 54 | #define PTM_6840_LSB3 7 | |
| 55 | 62 | |
| 56 | typedef struct _ptm6840 ptm6840; | |
| 57 | struct _ptm6840 | |
| 63 | typedef struct _ptm6840 | |
| 58 | 64 | { |
| 59 | 65 | const ptm6840_interface *intf; |
| 60 | 66 | |
| 61 | 67 | UINT8 control_reg[3]; |
| 62 | UINT8 output[3]; // output states | |
| 63 | UINT8 gate[3]; // input gate states | |
| 64 | UINT8 clock[3]; // clock states | |
| 68 | UINT8 output[3]; /* Output states */ | |
| 69 | UINT8 gate[3]; /* Input gate states */ | |
| 70 | UINT8 clock[3]; /* Clock states */ | |
| 65 | 71 | UINT8 enabled[3]; |
| 66 | 72 | UINT8 mode[3]; |
| 67 | 73 | UINT8 fired[3]; |
| r2241 | r2242 | |
| 76 | 82 | int internal_clock; |
| 77 | 83 | int external_clock[3]; |
| 78 | 84 | |
| 79 | / | |
| 85 | /* Each PTM has 3 timers */ | |
| 80 | 86 | emu_timer *timer[3]; |
| 81 | 87 | |
| 82 | 88 | UINT16 latch[3]; |
| 83 | 89 | UINT16 counter[3]; |
| 84 | }; | |
| 90 | } ptm6840; | |
| 85 | 91 | |
| 86 | // | |
| 92 | // Local prototypes /////////////////////////////////////////////////////// | |
| 87 | 93 | |
| 88 | 94 | static void ptm6840_timeout(int which, int idx); |
| 89 | 95 | static TIMER_CALLBACK( ptm6840_t1_timeout ); |
| 90 | 96 | static TIMER_CALLBACK( ptm6840_t2_timeout ); |
| 91 | 97 | static TIMER_CALLBACK( ptm6840_t3_timeout ); |
| 92 | 98 | |
| 93 | // | |
| 99 | // Local vars ///////////////////////////////////////////////////////////// | |
| 94 | 100 | |
| 95 | 101 | static ptm6840 ptm[PTM_6840_MAX]; |
| 96 | 102 | |
| r2241 | r2242 | |
| 115 | 121 | int ptm6840_get_status(int which, int clock) |
| 116 | 122 | { |
| 117 | 123 | ptm6840 *p = ptm + which; |
| 118 | return p->enabled[clock-1]; | |
| 124 | return p->enabled[clock - 1]; | |
| 119 | 125 | } |
| 120 | 126 | |
| 121 | 127 | /////////////////////////////////////////////////////////////////////////// |
| r2241 | r2242 | |
| 143 | 149 | |
| 144 | 150 | ptm6840 *currptr = ptm + which; |
| 145 | 151 | |
| 146 | /* | |
| 152 | /* Determine the clock frequency for this timer */ | |
| 147 | 153 | if (currptr->control_reg[counter] & 0x02) |
| 148 | 154 | clock = currptr->internal_clock; |
| 149 | 155 | else |
| 150 | 156 | clock = currptr->external_clock[counter]; |
| 151 | 157 | |
| 152 | /* | |
| 158 | /* Dual-byte mode */ | |
| 153 | 159 | if (currptr->control_reg[counter] & 0x04) |
| 154 | 160 | { |
| 155 | 161 | int lsb = currptr->counter[counter] & 0xff; |
| 156 | 162 | int msb = currptr->counter[counter] >> 8; |
| 157 | 163 | |
| 158 | /* | |
| 164 | /* Count the clocks */ | |
| 159 | 165 | lsb -= count; |
| 160 | 166 | |
| 161 | /* | |
| 167 | /* Loop while we're less than zero */ | |
| 162 | 168 | while (lsb < 0) |
| 163 | 169 | { |
| 164 | /* | |
| 170 | /* Borrow from the MSB */ | |
| 165 | 171 | lsb += (currptr->latch[counter] & 0xff) + 1; |
| 166 | 172 | msb--; |
| 167 | /* if MSB goes less than zero, we've expired */ | |
| 173 | ||
| 174 | /* If MSB goes less than zero, we've expired */ | |
| 168 | 175 | if (msb < 0) |
| 169 | 176 | { |
| 170 | 177 | ptm6840_timeout(which, counter); |
| r2241 | r2242 | |
| 172 | 179 | } |
| 173 | 180 | } |
| 174 | 181 | |
| 175 | /* | |
| 182 | /* Store the result */ | |
| 176 | 183 | currptr->counter[counter] = (msb << 8) | lsb; |
| 177 | 184 | } |
| 178 | 185 | |
| 179 | /* | |
| 186 | /* Word mode */ | |
| 180 | 187 | else |
| 181 | 188 | { |
| 182 | 189 | int word = currptr->counter[counter]; |
| 183 | 190 | |
| 184 | /* | |
| 191 | /* Count the clocks */ | |
| 185 | 192 | word -= count; |
| 186 | 193 | |
| 187 | 194 | /* loop while we're less than zero */ |
| 188 | 195 | while (word < 0) |
| 189 | 196 | { |
| 190 | /* | |
| 197 | /* Borrow from the MSB */ | |
| 191 | 198 | word += currptr->latch[counter] + 1; |
| 192 | 199 | |
| 193 | /* | |
| 200 | /* We've expired */ | |
| 194 | 201 | ptm6840_timeout(which, counter); |
| 195 | 202 | } |
| 196 | 203 | |
| 197 | /* | |
| 204 | /* Store the result */ | |
| 198 | 205 | currptr->counter[counter] = word; |
| 199 | 206 | } |
| 200 | 207 | |
| 201 | 208 | if (currptr->enabled[counter]) |
| 202 | 209 | { |
| 203 | 210 | duration = attotime_mul(ATTOTIME_IN_HZ(clock), currptr->counter[counter]); |
| 204 | if (counter == 2) duration = attotime_mul(duration, currptr->t3_divisor); | |
| 211 | ||
| 212 | if (counter == 2) | |
| 213 | duration = attotime_mul(duration, currptr->t3_divisor); | |
| 214 | ||
| 205 | 215 | timer_adjust_oneshot(currptr->timer[counter], duration, which); |
| 206 | 216 | } |
| 207 | 217 | } |
| r2241 | r2242 | |
| 213 | 223 | if (counter == 2) |
| 214 | 224 | { |
| 215 | 225 | currptr->t3_scaler += count; |
| 216 | if ( currptr->t3_scaler > currptr->t3_divisor-1) | |
| 226 | ||
| 227 | if ( currptr->t3_scaler > currptr->t3_divisor - 1) | |
| 217 | 228 | { |
| 218 | subtract_from_counter(which,counter,1); | |
| 229 | subtract_from_counter(which, counter, 1); | |
| 219 | 230 | currptr->t3_scaler = 0; |
| 220 | 231 | } |
| 221 | 232 | } |
| 222 | 233 | else |
| 223 | 234 | { |
| 224 | subtract_from_counter(which,counter,count); | |
| 235 | subtract_from_counter(which, counter, count); | |
| 225 | 236 | } |
| 226 | 237 | } |
| 227 | 238 | |
| r2241 | r2242 | |
| 236 | 247 | int new_state; |
| 237 | 248 | ptm6840 *currptr = ptm + which; |
| 238 | 249 | |
| 239 | new_state = (((currptr->status_reg & 0x01) && (currptr->control_reg[0] & 0x40)) || ((currptr->status_reg & 0x02) && (currptr->control_reg[1] & 0x40)) | |
| 240 | ||((currptr->status_reg & 0x04) && (currptr->control_reg[2] & 0x80))); | |
| 250 | new_state = ((currptr->status_reg & 0x01) && (currptr->control_reg[0] & 0x40)) || | |
| 251 | ((currptr->status_reg & 0x02) && (currptr->control_reg[1] & 0x40)) || | |
| 252 | ((currptr->status_reg & 0x04) && (currptr->control_reg[2] & 0x40)); | |
| 241 | 253 | |
| 242 | ||
| 254 | // if (new_state != currptr->IRQ) | |
| 243 | 255 | { |
| 244 | 256 | currptr->IRQ = new_state; |
| 257 | ||
| 245 | 258 | if (currptr->IRQ) |
| 246 | { | |
| 247 | 259 | currptr->status_reg |= 0x80; |
| 248 | } | |
| 249 | 260 | else |
| 250 | { | |
| 251 | 261 | currptr->status_reg &= ~0x80; |
| 252 | } | |
| 253 | if (currptr->intf->irq_func) (currptr->intf->irq_func)(currptr->IRQ); | |
| 262 | ||
| 263 | if (currptr->intf->irq_func) | |
| 264 | (currptr->intf->irq_func)(currptr->IRQ); | |
| 254 | 265 | } |
| 255 | 266 | } |
| 256 | 267 | |
| r2241 | r2242 | |
| 267 | 278 | int clock; |
| 268 | 279 | int remaining=0; |
| 269 | 280 | |
| 270 | /* | |
| 281 | /* If there's no timer, return the count */ | |
| 271 | 282 | if (!currptr->enabled[counter]) |
| 272 | 283 | { |
| 273 | 284 | PLOG(("MC6840 #%d: read counter(%d): %d\n", which, counter, currptr->counter[counter])); |
| r2241 | r2242 | |
| 278 | 289 | if (currptr->control_reg[counter] & 0x02) |
| 279 | 290 | { |
| 280 | 291 | clock = currptr->internal_clock; |
| 281 | PLOG(("MC6840 #%d: %d internal clock freq %d \n", which,counter,clock)); | |
| 292 | PLOG(("MC6840 #%d: %d internal clock freq %d \n", which, counter, clock)); | |
| 282 | 293 | } |
| 283 | 294 | else |
| 284 | 295 | { |
| 285 | 296 | clock = currptr->external_clock[counter]; |
| 286 | PLOG(("MC6840 #%d: %d external clock freq %d \n", which,counter,clock)); | |
| 297 | PLOG(("MC6840 #%d: %d external clock freq %d \n", which, counter, clock)); | |
| 287 | 298 | } |
| 288 | /* | |
| 299 | /* See how many are left */ | |
| 289 | 300 | remaining = attotime_to_double(attotime_mul(timer_timeleft(currptr->timer[counter]), clock)); |
| 290 | 301 | |
| 291 | /* | |
| 302 | /* Adjust the count for dual byte mode */ | |
| 292 | 303 | if (currptr->control_reg[counter] & 0x04) |
| 293 | 304 | { |
| 294 | 305 | int divisor = (currptr->counter[counter] & 0xff) + 1; |
| r2241 | r2242 | |
| 313 | 324 | attotime duration; |
| 314 | 325 | ptm6840 *currptr = ptm + which; |
| 315 | 326 | |
| 316 | /* | |
| 327 | /* Copy the latched value in */ | |
| 317 | 328 | currptr->counter[idx] = currptr->latch[idx]; |
| 318 | 329 | |
| 319 | /* | |
| 330 | /* Determine the clock frequency for this timer */ | |
| 320 | 331 | if (currptr->control_reg[idx] & 0x02) |
| 321 | 332 | { |
| 322 | 333 | clock = currptr->internal_clock; |
| r2241 | r2242 | |
| 328 | 339 | PLOG(("MC6840 #%d: %d external clock freq %d \n", which,idx, clock)); |
| 329 | 340 | } |
| 330 | 341 | |
| 331 | /* | |
| 342 | /* Determine the number of clock periods before we expire */ | |
| 332 | 343 | count = currptr->counter[idx]; |
| 333 | 344 | if (currptr->control_reg[idx] & 0x04) |
| 334 | 345 | count = ((count >> 8) + 1) * ((count & 0xff) + 1); |
| r2241 | r2242 | |
| 343 | 354 | if ( currptr->intf->out_func[idx] ) currptr->intf->out_func[idx](Machine, 0, currptr->output[idx]); |
| 344 | 355 | } |
| 345 | 356 | |
| 346 | /* | |
| 357 | /* Set the timer */ | |
| 347 | 358 | PLOG(("MC6840 #%d: reload_count(%d): clock = %d count = %d\n", which, idx, clock, count)); |
| 348 | 359 | |
| 349 | 360 | duration = attotime_mul(ATTOTIME_IN_HZ(clock), count); |
| r2241 | r2242 | |
| 386 | 397 | for (i = 0; i < 3; i++) |
| 387 | 398 | { |
| 388 | 399 | if ( currptr->intf->external_clock[i] ) |
| 389 | { | |
| 390 | 400 | ptm[which].external_clock[i] = currptr->intf->external_clock[i]; |
| 391 | } | |
| 392 | 401 | else |
| 393 | { | |
| 394 | 402 | ptm[which].external_clock[i] = 1; |
| 395 | } | |
| 396 | 403 | } |
| 397 | 404 | |
| 398 | 405 | ptm[which].timer[0] = timer_alloc(ptm6840_t1_timeout, NULL); |
| r2241 | r2242 | |
| 434 | 441 | void ptm6840_reset(int which) |
| 435 | 442 | { |
| 436 | 443 | int i; |
| 437 | ptm[which].control_reg[2] = 0x00; | |
| 438 | ptm[which].control_reg[1] = 0x00; | |
| 439 | ptm[which].control_reg[0] = 0x01; | |
| 440 | ptm[which].status_reg = 0x00; | |
| 441 | ptm[which].t3_divisor = 1; | |
| 442 | ptm[which].status_read_since_int = 0x00; | |
| 443 | 444 | |
| 444 | for ( i = 0; i < 3; i++ ) | |
| 445 | ptm[which].control_reg[2] = 0; | |
| 446 | ptm[which].control_reg[1] = 0; | |
| 447 | ptm[which].control_reg[0] = 1; | |
| 448 | ptm[which].status_reg = 0; | |
| 449 | ptm[which].t3_divisor = 1; | |
| 450 | ptm[which].status_read_since_int = 0; | |
| 451 | ptm[which].IRQ = 0; | |
| 452 | ||
| 453 | for (i = 0; i < 3; i++) | |
| 445 | 454 | { |
| 446 | ptm[which].counter[i] = 0xffff; | |
| 447 | ptm[which].latch[i] = 0xffff; | |
| 448 | ptm[which].output[i] = 0; | |
| 449 | ptm[which].fired[i] = 0; | |
| 455 | ptm[which].counter[i] = 0xffff; | |
| 456 | ptm[which].latch[i] = 0xffff; | |
| 457 | ptm[which].output[i] = 0; | |
| 458 | ptm[which].fired[i] = 0; | |
| 450 | 459 | } |
| 451 | 460 | } |
| 452 | 461 | |
| r2241 | r2242 | |
| 460 | 469 | { |
| 461 | 470 | int val; |
| 462 | 471 | ptm6840 *currptr = ptm + which; |
| 472 | ||
| 463 | 473 | switch ( offset ) |
| 464 | 474 | { |
| 465 | case PTM_6840_CTRL1 | |
| 475 | case PTM_6840_CTRL1 | |
| 466 | 476 | { |
| 467 | 477 | val = 0; |
| 468 | 478 | break; |
| 469 | 479 | } |
| 470 | 480 | |
| 471 | case PTM_6840_ | |
| 481 | case PTM_6840_STATUS: | |
| 472 | 482 | { |
| 473 | 483 | PLOG(("%06X: MC6840 #%d: Status read = %04X\n", activecpu_get_previouspc(), which, currptr->status_reg)); |
| 474 | 484 | currptr->status_read_since_int |= currptr->status_reg & 0x07; |
| r2241 | r2242 | |
| 476 | 486 | break; |
| 477 | 487 | } |
| 478 | 488 | |
| 479 | case PTM_6840_MSBBUF1://2 | |
| 480 | case PTM_6840_MSBBUF2://4 | |
| 481 | case PTM_6840_MSBBUF3://6 | |
| 489 | case PTM_6840_MSBBUF1: | |
| 490 | case PTM_6840_MSBBUF2: | |
| 491 | case PTM_6840_MSBBUF3: | |
| 482 | 492 | { |
| 483 | int idx = (offset - 2)/2; | |
| 493 | int idx = (offset - 2) / 2; | |
| 484 | 494 | int result = compute_counter(which, idx); |
| 485 | 495 | |
| 486 | /* | |
| 496 | /* Clear the interrupt if the status has been read */ | |
| 487 | 497 | if (currptr->status_read_since_int & (1 << idx)) |
| 488 | 498 | { |
| 489 | 499 | currptr->status_reg &= ~(1 << idx); |
| r2241 | r2242 | |
| 497 | 507 | break; |
| 498 | 508 | } |
| 499 | 509 | |
| 500 | case PTM_6840_LSB1://3 | |
| 501 | case PTM_6840_LSB2://5 | |
| 502 | case PTM_6840_LSB3://7 | |
| 510 | case PTM_6840_LSB1: | |
| 511 | case PTM_6840_LSB2: | |
| 512 | case PTM_6840_LSB3: | |
| 503 | 513 | { |
| 504 | 514 | val = currptr->lsb_buffer; |
| 505 | 515 | break; |
| r2241 | r2242 | |
| 531 | 541 | |
| 532 | 542 | switch ( offset ) |
| 533 | 543 | { |
| 534 | case PTM_6840_CTRL1 ://0 | |
| 535 | case PTM_6840_CTRL2 ://1 | |
| 544 | case PTM_6840_CTRL1: | |
| 545 | case PTM_6840_CTRL2: | |
| 536 | 546 | { |
| 537 | 547 | idx = (offset == 1) ? 1 : (currptr->control_reg[1] & 0x01) ? 0 : 2; |
| 538 | 548 | diffs = data ^ currptr->control_reg[idx]; |
| 539 | 549 | currptr->t3_divisor = (currptr->control_reg[2] & 0x01) ? 8 : 1; |
| 540 | currptr->mode[idx] = (data>>3)&0x07; | |
| 550 | currptr->mode[idx] = (data >> 3) & 0x07; | |
| 541 | 551 | currptr->control_reg[idx] = data; |
| 542 | 552 | |
| 543 | PLOG(("MC6840 #%d : Control register %d selected\n",which,idx)); | |
| 553 | PLOG(("MC6840 #%d : Control register %d selected\n", which, idx)); | |
| 544 | 554 | PLOG(("operation mode = %s\n", opmode[ currptr->mode[idx] ])); |
| 545 | 555 | PLOG(("value = %04X\n", currptr->control_reg[idx])); |
| 546 | 556 | PLOG(("t3divisor = %d\n", currptr->t3_divisor)); |
| 547 | 557 | |
| 548 | 558 | if (!(currptr->control_reg[idx] & 0x80 )) |
| 549 | { // output cleared | |
| 559 | { | |
| 560 | /* Output cleared */ | |
| 550 | 561 | if ( currptr->intf ) |
| 551 | 562 | { |
| 552 | if ( currptr->intf->out_func[idx] ) currptr->intf->out_func[idx](Machine, 0, 0); | |
| 563 | if ( currptr->intf->out_func[idx] ) | |
| 564 | currptr->intf->out_func[idx](Machine, 0, 0); | |
| 553 | 565 | } |
| 554 | 566 | } |
| 555 | /* | |
| 567 | /* Reset? */ | |
| 556 | 568 | if (idx == 0 && (diffs & 0x01)) |
| 557 | 569 | { |
| 558 | /* | |
| 570 | /* Holding reset down */ | |
| 559 | 571 | if (data & 0x01) |
| 560 | 572 | { |
| 561 | PLOG(("MC6840 #%d : Timer reset\n",which)); | |
| 573 | PLOG(("MC6840 #%d : Timer reset\n", which)); | |
| 562 | 574 | for (i = 0; i < 3; i++) |
| 563 | 575 | { |
| 564 | timer_enable(currptr->timer[i],FALSE); | |
| 565 | currptr->enabled[i]=0; | |
| 576 | timer_enable(currptr->timer[i], FALSE); | |
| 577 | currptr->enabled[i] = 0; | |
| 566 | 578 | } |
| 567 | 579 | } |
| 568 | ||
| 569 | /* releasing reset */ | |
| 580 | /* Releasing reset */ | |
| 570 | 581 | else |
| 571 | 582 | { |
| 572 | 583 | for (i = 0; i < 3; i++) |
| 573 | { | |
| 574 | reload_count(which,i); | |
| 575 | } | |
| 584 | reload_count(which, i); | |
| 576 | 585 | } |
| 577 | 586 | |
| 578 | 587 | currptr->status_reg = 0; |
| 579 | 588 | update_interrupts(which); |
| 580 | 589 | |
| 581 | /* | |
| 590 | /* Changing the clock source? (e.g. Zwackery) */ | |
| 582 | 591 | if (diffs & 0x02) |
| 583 | reload_count(which,idx); | |
| 592 | reload_count(which, idx); | |
| 584 | 593 | } |
| 585 | 594 | break; |
| 586 | 595 | } |
| 587 | 596 | |
| 588 | /* offsets 2, 4, and 6 are MSB buffer registers */ | |
| 589 | case PTM_6840_MSBBUF1://2 | |
| 590 | case PTM_6840_MSBBUF2://4 | |
| 591 | case PTM_6840_MSBBUF3://6 | |
| 597 | case PTM_6840_MSBBUF1: | |
| 598 | case PTM_6840_MSBBUF2: | |
| 599 | case PTM_6840_MSBBUF3: | |
| 592 | 600 | { |
| 593 | PLOG(("MC6840 #%d msbbuf%d = %02X\n", which, offset/2, data)); | |
| 601 | PLOG(("MC6840 #%d msbbuf%d = %02X\n", which, offset / 2, data)); | |
| 594 | 602 | currptr->msb_buffer = data; |
| 595 | 603 | break; |
| 596 | 604 | } |
| 597 | 605 | |
| 598 | /* offsets 3, 5, and 7 are Write Timer Latch commands */ | |
| 599 | ||
| 600 | case PTM_6840_LSB1://3 | |
| 601 | case PTM_6840_LSB2://5 | |
| 602 | case PTM_6840_LSB3://7 | |
| 606 | case PTM_6840_LSB1: | |
| 607 | case PTM_6840_LSB2: | |
| 608 | case PTM_6840_LSB3: | |
| 603 | 609 | { |
| 604 | idx = (offset - 3)/2; | |
| 610 | idx = (offset - 3) / 2; | |
| 605 | 611 | currptr->latch[idx] = (currptr->msb_buffer << 8) | (data & 0xff); |
| 606 | /* clear the interrupt */ | |
| 612 | ||
| 613 | /* Clear the interrupt */ | |
| 607 | 614 | currptr->status_reg &= ~(1 << idx); |
| 608 | 615 | update_interrupts(which); |
| 609 | /* reload the count if in an appropriate mode */ | |
| 616 | ||
| 617 | /* Reload the count if in an appropriate mode */ | |
| 610 | 618 | if (!(currptr->control_reg[idx] & 0x10)) |
| 611 | { | |
| 612 | 619 | reload_count(which,idx); |
| 613 | ||
| 620 | ||
| 614 | 621 | PLOG(("%06X:MC6840 #%d: Counter %d latch = %04X\n", activecpu_get_previouspc(), which, idx, currptr->latch[idx])); |
| 615 | 622 | break; |
| 616 | 623 | } |
| r2241 | r2242 | |
| 627 | 634 | { |
| 628 | 635 | ptm6840 *p = ptm + which; |
| 629 | 636 | |
| 630 | PLOG(("**ptm6840 %d t%d timeout**\n", which, idx+1)); | |
| 637 | PLOG(("**ptm6840 %d t%d timeout**\n", which, idx + 1)); | |
| 631 | 638 | |
| 632 | 639 | if ( p->control_reg[idx] & 0x40 ) |
| 633 | { // interrupt enabled | |
| 640 | { | |
| 641 | /* Interrupt enabled */ | |
| 634 | 642 | p->status_reg |= (1 << idx); |
| 635 | 643 | p->status_read_since_int &= ~(1 << idx); |
| 636 | 644 | update_interrupts(which); |
| 637 | 645 | } |
| 638 | 646 | |
| 639 | 647 | if ( p->control_reg[idx] & 0x80 ) |
| 640 | { // output enabled | |
| 648 | { | |
| 649 | /* Output enabled */ | |
| 641 | 650 | if ( p->intf ) |
| 642 | 651 | { |
| 643 | 652 | if ((p->mode[idx] == 0)||(p->mode[idx] == 2)) |
| 644 | 653 | { |
| 645 | 654 | p->output[idx] = p->output[idx]?0:1; |
| 646 | PLOG(("**ptm6840 %d t%d output %d **\n", which, idx+1, p->output[idx])); | |
| 647 | if ( p->intf->out_func[idx] ) p->intf->out_func[idx](Machine, 0, p->output[idx]); | |
| 655 | PLOG(("**ptm6840 %d t%d output %d **\n", which, idx + 1, p->output[idx])); | |
| 656 | ||
| 657 | if ( p->intf->out_func[idx] ) | |
| 658 | p->intf->out_func[idx](Machine, 0, p->output[idx]); | |
| 648 | 659 | } |
| 649 | 660 | if ((p->mode[idx] == 4)||(p->mode[idx] == 6)) |
| 650 | 661 | { |
| 651 | 662 | if (!p->fired[idx]) |
| 652 | 663 | { |
| 653 | 664 | p->output[idx] = 1; |
| 654 | PLOG(("**ptm6840 %d t%d output %d **\n", which, idx+1, p->output[idx])); | |
| 655 | if ( p->intf->out_func[idx] ) p->intf->out_func[idx](Machine, 0, p->output[idx]); | |
| 656 | p->fired[idx]=1;//no changes in output until reinit | |
| 665 | PLOG(("**ptm6840 %d t%d output %d **\n", which, idx + 1, p->output[idx])); | |
| 666 | ||
| 667 | if ( p->intf->out_func[idx] ) | |
| 668 | p->intf->out_func[idx](Machine, 0, p->output[idx]); | |
| 669 | ||
| 670 | /* No changes in output until reinit */ | |
| 671 | p->fired[idx] = 1; | |
| 657 | 672 | } |
| 658 | 673 | } |
| 659 | 674 | } |
| 660 | 675 | } |
| 661 | 676 | p->enabled[idx]= 0; |
| 662 | reload_count(which,idx); | |
| 677 | reload_count(which, idx); | |
| 663 | 678 | } |
| 664 | 679 | |
| 665 | 680 | static TIMER_CALLBACK( ptm6840_t1_timeout ) { ptm6840_timeout(param, 0); } |
| r2241 | r2242 | |
| 676 | 691 | { |
| 677 | 692 | ptm6840 *p = ptm + which; |
| 678 | 693 | |
| 679 | if ((p->mode[idx] == 0)||(p->mode[idx] == 2)||(p->mode[0] == 4)||(p->mode[idx] == 6)) | |
| 694 | if ( (p->mode[idx] == 0) || (p->mode[idx] == 2) || (p->mode[0] == 4) || (p->mode[idx] == 6) ) | |
| 680 | 695 | { |
| 681 | 696 | if (state == 0 && p->gate[idx]) |
| 682 | reload_count(which,idx); | |
| 697 | reload_count(which,idx); | |
| 683 | 698 | } |
| 684 | 699 | p->gate[idx] = state; |
| 685 | 700 | } |
| r2241 | r2242 | |
| 702 | 717 | |
| 703 | 718 | if (!(p->control_reg[idx] & 0x02)) |
| 704 | 719 | { |
| 705 | if (state) ptm_tick(which,idx,1); | |
| 720 | if (state) | |
| 721 | ptm_tick(which, idx, 1); | |
| 706 | 722 | } |
| 707 | 723 | } |
| 708 | 724 | |
| r2241 | r2242 | |
| 733 | 749 | if (!currptr->intf->external_clock[counter]) |
| 734 | 750 | { |
| 735 | 751 | currptr->enabled[counter] = 0; |
| 736 | timer_enable(currptr->timer[counter],FALSE); | |
| 752 | timer_enable(currptr->timer[counter], FALSE); | |
| 737 | 753 | } |
| 738 | 754 | } |
| 739 | 755 | else |
| r2241 | r2242 | |
| 741 | 757 | int count; |
| 742 | 758 | attotime duration; |
| 743 | 759 | |
| 744 | /* | |
| 760 | /* Determine the number of clock periods before we expire */ | |
| 745 | 761 | count = currptr->counter[counter]; |
| 762 | ||
| 746 | 763 | if (currptr->control_reg[counter] & 0x04) |
| 747 | count = ((count >> 8) + 1) * ((count & 0xff) + 1); | |
| 764 | count = ((count >> 8) + 1) * ((count & 0xff) + 1); | |
| 748 | 765 | else |
| 749 | count = count + 1; | |
| 766 | count = count + 1; | |
| 750 | 767 | |
| 751 | 768 | duration = attotime_mul(ATTOTIME_IN_HZ(clock), count); |
| 752 | if (counter == 2) duration = attotime_mul(duration, currptr->t3_divisor); | |
| 769 | ||
| 770 | if (counter == 2) | |
| 771 | duration = attotime_mul(duration, currptr->t3_divisor); | |
| 772 | ||
| 753 | 773 | currptr->enabled[counter] = 1; |
| 754 | 774 | timer_adjust_oneshot(currptr->timer[counter], duration, which); |
| 755 | timer_enable(currptr->timer[counter],TRUE); | |
| 775 | timer_enable(currptr->timer[counter], TRUE); | |
| 756 | 776 | } |
| 757 | 777 | } |
| 758 | 778 | |
| r2241 | r2242 | |
| 784 | 804 | WRITE8_HANDLER( ptm6840_2_w ) { ptm6840_write(2, offset, data); } |
| 785 | 805 | WRITE8_HANDLER( ptm6840_3_w ) { ptm6840_write(3, offset, data); } |
| 786 | 806 | |
| 787 | READ16_HANDLER( ptm6840_0_msb_r ) { return ptm6840_read(0, offset); } | |
| 788 | READ16_HANDLER( ptm6840_1_msb_r ) { return ptm6840_read(1, offset); } | |
| 789 | READ16_HANDLER( ptm6840_2_msb_r ) { return ptm6840_read(2, offset); } | |
| 790 | READ16_HANDLER( ptm6840_3_msb_r ) { return ptm6840_read(3, offset); } | |
| 807 | READ16_HANDLER( ptm6840_0_msb_r ) { return ptm6840_read(0, offset) << 8; } | |
| 808 | READ16_HANDLER( ptm6840_1_msb_r ) { return ptm6840_read(1, offset) << 8; } | |
| 809 | READ16_HANDLER( ptm6840_2_msb_r ) { return ptm6840_read(2, offset) << 8; } | |
| 810 | READ16_HANDLER( ptm6840_3_msb_r ) { return ptm6840_read(3, offset) << 8; } | |
| 791 | 811 | |
| 792 | WRITE16_HANDLER( ptm6840_0_msb_w ) { if (ACCESSING_MSB) ptm6840_write(0, offset, (data >> 8) & 0xff); } | |
| 793 | WRITE16_HANDLER( ptm6840_1_msb_w ) { if (ACCESSING_MSB) ptm6840_write(1, offset, (data >> 8) & 0xff); } | |
| 794 | WRITE16_HANDLER( ptm6840_2_msb_w ) { if (ACCESSING_MSB) ptm6840_write(2, offset, (data >> 8) & 0xff); } | |
| 795 | WRITE16_HANDLER( ptm6840_3_msb_w ) { if (ACCESSING_MSB) ptm6840_write(3, offset, (data >> 8) & 0xff); } | |
| 812 | WRITE16_HANDLER( ptm6840_0_msb_w ) { if (ACCESSING_BITS_8_15) ptm6840_write(0, offset, data >> 8); } | |
| 813 | WRITE16_HANDLER( ptm6840_1_msb_w ) { if (ACCESSING_BITS_8_15) ptm6840_write(1, offset, data >> 8); } | |
| 814 | WRITE16_HANDLER( ptm6840_2_msb_w ) { if (ACCESSING_BITS_8_15) ptm6840_write(2, offset, data >> 8); } | |
| 815 | WRITE16_HANDLER( ptm6840_3_msb_w ) { if (ACCESSING_BITS_8_15) ptm6840_write(3, offset, data >> 8); } | |
| 796 | 816 | |
| 797 | READ16_HANDLER( ptm6840_0_lsb_r ) { return ptm6840_read(0, offset << 8 | 0x00ff); } | |
| 798 | READ16_HANDLER( ptm6840_1_lsb_r ) { return ptm6840_read(1, offset << 8 | 0x00ff); } | |
| 799 | READ16_HANDLER( ptm6840_2_lsb_r ) { return ptm6840_read(2, offset << 8 | 0x00ff); } | |
| 800 | READ16_HANDLER( ptm6840_3_lsb_r ) { return ptm6840_read(3, offset << 8 | 0x00ff); } | |
| 817 | READ16_HANDLER( ptm6840_0_lsb_r ) { return ptm6840_read(0, offset); } | |
| 818 | READ16_HANDLER( ptm6840_1_lsb_r ) { return ptm6840_read(1, offset); } | |
| 819 | READ16_HANDLER( ptm6840_2_lsb_r ) { return ptm6840_read(2, offset); } | |
| 820 | READ16_HANDLER( ptm6840_3_lsb_r ) { return ptm6840_read(3, offset); } | |
| 801 | 821 | |
| 802 | WRITE16_HANDLER( ptm6840_0_lsb_w ) {if (ACCESSING_LSB) ptm6840_write(0, offset, data & 0xff);} | |
| 803 | WRITE16_HANDLER( ptm6840_1_lsb_w ) {if (ACCESSING_LSB) ptm6840_write(1, offset, data & 0xff);} | |
| 804 | WRITE16_HANDLER( ptm6840_2_lsb_w ) {if (ACCESSING_LSB) ptm6840_write(2, offset, data & 0xff);} | |
| 805 | WRITE16_HANDLER( ptm6840_3_lsb_w ) {if (ACCESSING_LSB) ptm6840_write(3, offset, data & 0xff);} | |
| 822 | WRITE16_HANDLER( ptm6840_0_lsb_w ) { if (ACCESSING_BITS_0_7) ptm6840_write(0, offset, data & 0xff); } | |
| 823 | WRITE16_HANDLER( ptm6840_1_lsb_w ) { if (ACCESSING_BITS_0_7) ptm6840_write(1, offset, data & 0xff); } | |
| 824 | WRITE16_HANDLER( ptm6840_2_lsb_w ) { if (ACCESSING_BITS_0_7) ptm6840_write(2, offset, data & 0xff); } | |
| 825 | WRITE16_HANDLER( ptm6840_3_lsb_w ) { if (ACCESSING_BITS_0_7) ptm6840_write(3, offset, data & 0xff); } |
| r2241 | r2242 | |
|---|---|---|
| 150 | 150 | static UINT16 at28c16_16msb_read( UINT32 chip, offs_t offset, UINT32 mem_mask ) |
| 151 | 151 | { |
| 152 | 152 | UINT32 data = 0; |
| 153 | if( ACCESSING_ | |
| 153 | if( ACCESSING_ | |
| 154 | 154 | { |
| 155 | 155 | data |= at28c16_read( chip, offset ) << 8; |
| 156 | 156 | } |
| r2241 | r2242 | |
| 159 | 159 | |
| 160 | 160 | static void at28c16_16msb_write( UINT32 chip, offs_t offset, UINT32 data, UINT32 mem_mask ) |
| 161 | 161 | { |
| 162 | if( ACCESSING_ | |
| 162 | if( ACCESSING_ | |
| 163 | 163 | { |
| 164 | 164 | at28c16_write( chip, offset, data >> 8 ); |
| 165 | 165 | } |
| r2241 | r2242 | |
| 179 | 179 | static UINT32 at28c16_32le_read( UINT32 chip, offs_t offset, UINT32 mem_mask ) |
| 180 | 180 | { |
| 181 | 181 | UINT32 data = 0; |
| 182 | if( ACCESSING_ | |
| 182 | if( ACCESSING_ | |
| 183 | 183 | { |
| 184 | 184 | data |= at28c16_read( chip, ( offset * 4 ) + 0 ) << 0; |
| 185 | 185 | } |
| 186 | if( | |
| 186 | if( ACCESSING_BITS_8_15 | |
| 187 | 187 | { |
| 188 | 188 | data |= at28c16_read( chip, ( offset * 4 ) + 1 ) << 8; |
| 189 | 189 | } |
| 190 | if( | |
| 190 | if( ACCESSING_BITS_16_23 | |
| 191 | 191 | { |
| 192 | 192 | data |= at28c16_read( chip, ( offset * 4 ) + 2 ) << 16; |
| 193 | 193 | } |
| 194 | if( ACCESSING_ | |
| 194 | if( ACCESSING_ | |
| 195 | 195 | { |
| 196 | 196 | data |= at28c16_read( chip, ( offset * 4 ) + 3 ) << 24; |
| 197 | 197 | } |
| r2241 | r2242 | |
| 200 | 200 | |
| 201 | 201 | static void at28c16_32le_write( UINT32 chip, offs_t offset, UINT32 data, UINT32 mem_mask ) |
| 202 | 202 | { |
| 203 | if( ACCESSING_ | |
| 203 | if( ACCESSING_ | |
| 204 | 204 | { |
| 205 | 205 | at28c16_write( chip, ( offset * 4 ) + 0, data >> 0 ); |
| 206 | 206 | } |
| 207 | if( | |
| 207 | if( ACCESSING_BITS_8_15 | |
| 208 | 208 | { |
| 209 | 209 | at28c16_write( chip, ( offset * 4 ) + 1, data >> 8 ); |
| 210 | 210 | } |
| 211 | if( | |
| 211 | if( ACCESSING_BITS_16_23 | |
| 212 | 212 | { |
| 213 | 213 | at28c16_write( chip, ( offset * 4 ) + 2, data >> 16 ); |
| 214 | 214 | } |
| 215 | if( ACCESSING_ | |
| 215 | if( ACCESSING_ | |
| 216 | 216 | { |
| 217 | 217 | at28c16_write( chip, ( offset * 4 ) + 3, data >> 24 ); |
| 218 | 218 | } |
| r2241 | r2242 | |
| 230 | 230 | static UINT32 at28c16_32le_16lsb_read( UINT32 chip, offs_t offset, UINT32 mem_mask ) |
| 231 | 231 | { |
| 232 | 232 | UINT32 data = 0; |
| 233 | if( ACCESSING_ | |
| 233 | if( ACCESSING_ | |
| 234 | 234 | { |
| 235 | 235 | data |= at28c16_read( chip, ( offset * 2 ) + 0 ) << 0; |
| 236 | 236 | } |
| 237 | if( | |
| 237 | if( ACCESSING_BITS_16_23 | |
| 238 | 238 | { |
| 239 | 239 | data |= at28c16_read( chip, ( offset * 2 ) + 1 ) << 16; |
| 240 | 240 | } |
| r2241 | r2242 | |
| 243 | 243 | |
| 244 | 244 | static void at28c16_32le_16lsb_write( UINT32 chip, offs_t offset, UINT32 data, UINT32 mem_mask ) |
| 245 | 245 | { |
| 246 | if( ACCESSING_ | |
| 246 | if( ACCESSING_ | |
| 247 | 247 | { |
| 248 | 248 | at28c16_write( chip, ( offset * 2 ) + 0, data >> 0 ); |
| 249 | 249 | } |
| 250 | if( | |
| 250 | if( ACCESSING_BITS_16_23 | |
| 251 | 251 | { |
| 252 | 252 | at28c16_write( chip, ( offset * 2 ) + 1, data >> 16 ); |
| 253 | 253 | } |
| r2241 | r2242 | |
|---|---|---|
| 484 | 484 | |
| 485 | 485 | /* create a name */ |
| 486 | 486 | memcard_name(memcard_inserted, name); |
| 487 | fname = astring_assemble_3(astring_alloc(), | |
| 487 | fname = astring_assemble_3(astring_alloc(), machine->basename, PATH_SEPARATOR, name); | |
| 488 | 488 | |
| 489 | 489 | /* open the file; if we can't, it's an error */ |
| 490 | 490 | filerr = mame_fopen(SEARCHPATH_MEMCARD, astring_c(fname), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS, &file); |
| r2241 | r2242 | |
| 684 | 684 | 8-bit reset read/write handlers |
| 685 | 685 | -------------------------------------------------*/ |
| 686 | 686 | |
| 687 | WRITE8_HANDLER( watchdog_reset_w ) { watchdog_reset(Machine); } | |
| 688 | READ8_HANDLER( watchdog_reset_r ) { watchdog_reset(Machine); return 0xff; } | |
| 687 | WRITE8_HANDLER( watchdog_reset_w ) { watchdog_reset(machine); } | |
| 688 | READ8_HANDLER( watchdog_reset_r ) { watchdog_reset(machine); return 0xff; } | |
| 689 | 689 | |
| 690 | 690 | |
| 691 | 691 | /*------------------------------------------------- |
| 692 | 692 | 16-bit reset read/write handlers |
| 693 | 693 | -------------------------------------------------*/ |
| 694 | 694 | |
| 695 | WRITE16_HANDLER( watchdog_reset16_w ) { watchdog_reset(Machine); } | |
| 696 | READ16_HANDLER( watchdog_reset16_r ) { watchdog_reset(Machine); return 0xffff; } | |
| 695 | WRITE16_HANDLER( watchdog_reset16_w ) { watchdog_reset(machine); } | |
| 696 | READ16_HANDLER( watchdog_reset16_r ) { watchdog_reset(machine); return 0xffff; } | |
| 697 | 697 | |
| 698 | 698 | |
| 699 | 699 | /*------------------------------------------------- |
| 700 | 700 | 32-bit reset read/write handlers |
| 701 | 701 | -------------------------------------------------*/ |
| 702 | 702 | |
| 703 | WRITE32_HANDLER( watchdog_reset32_w ) { watchdog_reset(Machine); } | |
| 704 | READ32_HANDLER( watchdog_reset32_r ) { watchdog_reset(Machine); return 0xffffffff; } | |
| 703 | WRITE32_HANDLER( watchdog_reset32_w ) { watchdog_reset(machine); } | |
| 704 | READ32_HANDLER( watchdog_reset32_r ) { watchdog_reset(machine); return 0xffffffff; } | |
| 705 | 705 | |
| 706 | 706 | |
| 707 | 707 |
| r2241 | r2242 | |
|---|---|---|
| 418 | 418 | switch (offset) |
| 419 | 419 | { |
| 420 | 420 | case EREG_PNR_ARR: |
| 421 | if ( | |
| 421 | if (ACCESSING_BITS_8_15 | |
| 422 | 422 | { |
| 423 | 423 | ethernet.reg[EREG_INTERRUPT] &= ~0x0008; |
| 424 | 424 | update_ethernet_irq(); |
| r2241 | r2242 | |
| 431 | 431 | UINT8 *buffer = (ethernet.reg[EREG_POINTER] & 0x8000) ? ethernet.rx : ethernet.tx; |
| 432 | 432 | int addr = ethernet.reg[EREG_POINTER] & 0x7ff; |
| 433 | 433 | result = buffer[addr++]; |
| 434 | if ( | |
| 434 | if (ACCESSING_BITS_8_15 | |
| 435 | 435 | result |= buffer[addr++] << 8; |
| 436 | 436 | if (ethernet.reg[EREG_POINTER] & 0x4000) |
| 437 | 437 | ethernet.reg[EREG_POINTER] = (ethernet.reg[EREG_POINTER] & ~0x7ff) | (addr & 0x7ff); |
| r2241 | r2242 | |
| 549 | 549 | UINT8 *buffer = (ethernet.reg[EREG_POINTER] & 0x8000) ? ethernet.rx : ethernet.tx; |
| 550 | 550 | int addr = ethernet.reg[EREG_POINTER] & 0x7ff; |
| 551 | 551 | buffer[addr++] = data; |
| 552 | if ( | |
| 552 | if (ACCESSING_BITS_8_15 | |
| 553 | 553 | buffer[addr++] = data >> 8; |
| 554 | 554 | if (ethernet.reg[EREG_POINTER] & 0x4000) |
| 555 | 555 | ethernet.reg[EREG_POINTER] = (ethernet.reg[EREG_POINTER] & ~0x7ff) | (addr & 0x7ff); |
| r2241 | r2242 | |
|---|---|---|
| 155 | 155 | { |
| 156 | 156 | COMBINE_DATA(&tmp68301_regs[offset]); |
| 157 | 157 | |
| 158 | if (!ACCESSING_ | |
| 158 | if (!ACCESSING_ | |
| 159 | 159 | |
| 160 | 160 | // logerror("CPU #0 PC %06X: TMP68301 Reg %04X<-%04X & %04X\n",activecpu_get_pc(),offset*2,data,mem_mask^0xffff); |
| 161 | 161 |
| r2241 | r2242 | |
|---|---|---|
| 324 | 324 | INPUT_TOKEN_START_TAG, |
| 325 | 325 | INPUT_TOKEN_MODIFY, |
| 326 | 326 | INPUT_TOKEN_BIT, |
| 327 | INPUT_TOKEN_SPECIAL_ONOFF, | |
| 327 | 328 | INPUT_TOKEN_CODE, |
| 328 | 329 | INPUT_TOKEN_CODE_DEC, |
| 329 | 330 | INPUT_TOKEN_CODE_INC, |
| r2241 | r2242 | |
| 685 | 686 | TOKEN_STRING(_tag), |
| 686 | 687 | |
| 687 | 688 | /* input bit definition */ |
| 688 | #define PORT_BIT(_mask,_default,_type) \ | |
| 689 | #define PORT_BIT(_mask, _default, _type) \ | |
| 689 | 690 | TOKEN_UINT32_PACK2(INPUT_TOKEN_BIT, 8, _type, 24), \ |
| 690 | 691 | TOKEN_UINT64_PACK2(_mask, 32, _default, 32), |
| 691 | 692 | |
| 693 | #define PORT_SPECIAL_ONOFF(_mask, _default, _strindex) \ | |
| 694 | TOKEN_UINT32_PACK3(INPUT_TOKEN_SPECIAL_ONOFF, 8, FALSE, 1, INPUT_STRING_##_strindex, 23), \ | |
| 695 | TOKEN_UINT64_PACK2(_mask, 32, _default, 32), | |
| 696 | ||
| 697 | #define PORT_SPECIAL_ONOFF_DIPLOC(_mask, _default, _strindex, _diploc) \ | |
| 698 | TOKEN_UINT32_PACK3(INPUT_TOKEN_SPECIAL_ONOFF, 8, TRUE, 1, INPUT_STRING_##_strindex, 23), \ | |
| 699 | TOKEN_UINT64_PACK2(_mask, 32, _default, 32), \ | |
| 700 | TOKEN_STRING(_diploc), | |
| 701 | ||
| 692 | 702 | /* append a code */ |
| 693 | 703 | #define PORT_CODE(_code) \ |
| 694 | 704 | TOKEN_UINT64_PACK2(INPUT_TOKEN_CODE, 8, _code, 32), |
| r2241 | r2242 | |
| 743 | 753 | |
| 744 | 754 | /* analog settings */ |
| 745 | 755 | /* if this macro is not used, the minimum defaluts to 0 and maximum defaults to the mask value */ |
| 746 | #define PORT_MINMAX(_min,_max) \ | |
| 756 | #define PORT_MINMAX(_min, _max) \ | |
| 747 | 757 | TOKEN_UINT32_PACK1(INPUT_TOKEN_MINMAX, 8), \ |
| 748 | 758 | TOKEN_UINT64_PACK2(_min, 32, _max, 32), |
| 749 | 759 | |
| r2241 | r2242 | |
| 798 | 808 | TOKEN_PTR(voidptr, _param), |
| 799 | 809 | |
| 800 | 810 | /* dip switch definition */ |
| 801 | #define PORT_DIPNAME(_mask,_default,_name) \ | |
| 811 | #define PORT_DIPNAME(_mask, _default, _name) \ | |
| 802 | 812 | TOKEN_UINT32_PACK1(INPUT_TOKEN_DIPNAME, 8), \ |
| 803 | 813 | TOKEN_UINT64_PACK2(_mask, 32, _default, 32), \ |
| 804 | 814 | TOKEN_STRING(_name), |
| 805 | 815 | |
| 806 | #define PORT_DIPSETTING(_default,_name) \ | |
| 816 | #define PORT_DIPSETTING(_default, _name) \ | |
| 807 | 817 | TOKEN_UINT64_PACK2(INPUT_TOKEN_DIPSETTING, 8, _default, 32), \ |
| 808 | 818 | TOKEN_STRING(_name), |
| 809 | 819 | |
| r2241 | r2242 | |
| 814 | 824 | TOKEN_STRING(_location), |
| 815 | 825 | |
| 816 | 826 | /* conditionals for dip switch settings */ |
| 817 | #define PORT_CONDITION(_tag,_mask,_condition,_value) \ | |
| 827 | #define PORT_CONDITION(_tag, _mask, _condition, _value) \ | |
| 818 | 828 | TOKEN_UINT32_PACK2(INPUT_TOKEN_CONDITION, 8, _condition, 24), \ |
| 819 | 829 | TOKEN_UINT64_PACK2(_mask, 32, _value, 32), \ |
| 820 | 830 | TOKEN_STRING(_tag), |
| 821 | 831 | |
| 822 | 832 | /* analog adjuster definition */ |
| 823 | #define PORT_ADJUSTER(_default,_name) \ | |
| 833 | #define PORT_ADJUSTER(_default, _name) \ | |
| 824 | 834 | TOKEN_UINT64_PACK2(INPUT_TOKEN_ADJUSTER, 8, _default, 32), \ |
| 825 | 835 | TOKEN_STRING(_name), |
| 826 | 836 | |
| 827 | 837 | /* config definition */ |
| 828 | #define PORT_CONFNAME(_mask,_default,_name) \ | |
| 838 | #define PORT_CONFNAME(_mask, _default, _name) \ | |
| 829 | 839 | TOKEN_UINT32_PACK1(INPUT_TOKEN_CONFNAME, 8), \ |
| 830 | 840 | TOKEN_UINT64_PACK2(_mask, 32, _default, 32), \ |
| 831 | 841 | TOKEN_STRING(_name), |
| 832 | 842 | |
| 833 | #define PORT_CONFSETTING(_default,_name) \ | |
| 843 | #define PORT_CONFSETTING(_default, _name) \ | |
| 834 | 844 | TOKEN_UINT64_PACK2(INPUT_TOKEN_CONFSETTING, 8, _default, 32), \ |
| 835 | 845 | TOKEN_STRING(_name), |
| 836 | 846 | |
| r2241 | r2242 | |
| 843 | 853 | #define PORT_CATEGORY(_category) \ |
| 844 | 854 | TOKEN_UINT32_PACK2(INPUT_TOKEN_CHAR, 8, _category, 24), |
| 845 | 855 | |
| 846 | #define PORT_CATEGORY_CLASS(_mask,_default,_name) \ | |
| 856 | #define PORT_CATEGORY_CLASS(_mask, _default, _name) \ | |
| 847 | 857 | TOKEN_UINT32_PACK1(INPUT_TOKEN_CATEGORY_NAME, 8), \ |
| 848 | 858 | TOKEN_UINT64_PACK2(_mask, 32, _default, 32), \ |
| 849 | 859 | TOKEN_STRING(_name), |
| 850 | 860 | |
| 851 | #define PORT_CATEGORY_ITEM(_default,_name,_category) \ | |
| 861 | #define PORT_CATEGORY_ITEM(_default, _name, _category) \ | |
| 852 | 862 | TOKEN_UINT64_PACK3(INPUT_TOKEN_CATEGORY_SETTING, 8, _default, 32, _category, 16), \ |
| 853 | 863 | TOKEN_STRING(_name), |
| 854 | 864 | #endif /* MESS */ |
| r2241 | r2242 | |
| 859 | 869 | HELPER MACROS |
| 860 | 870 | ***************************************************************************/ |
| 861 | 871 | |
| 862 | #define PORT_SERVICE_DIPLOC(mask,default,loc) \ | |
| 863 | PORT_BIT( mask, mask & default, IPT_DIPSWITCH_NAME ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) PORT_TOGGLE PORT_DIPLOCATION(loc) \ | |
| 864 | PORT_DIPSETTING( mask & default, DEF_STR( Off ) ) \ | |
| 865 | PORT_DIPSETTING( mask &~default, DEF_STR( On ) ) | |
| 872 | #define PORT_DIPUNUSED_DIPLOC(_mask, _default, _diploc) \ | |
| 873 | PORT_SPECIAL_ONOFF_DIPLOC(_mask, _default, Unused, _diploc) | |
| 866 | 874 | |
| 867 | #define PORT_SERVICE(mask,default) \ | |
| 868 | PORT_BIT( mask, mask & default, IPT_DIPSWITCH_NAME ) PORT_NAME( DEF_STR( Service_Mode )) PORT_CODE(KEYCODE_F2) PORT_TOGGLE \ | |
| 869 | PORT_DIPSETTING( mask & default, DEF_STR( Off ) ) \ | |
| 870 | PORT_DIPSETTING( mask &~default, DEF_STR( On ) ) | |
| 875 | #define PORT_DIPUNUSED(_mask, _default) \ | |
| 876 | PORT_SPECIAL_ONOFF(_mask, _default, Unused) | |
| 871 | 877 | |
| 872 | #define PORT_SERVICE_NO_TOGGLE(mask,default) \ | |
| 873 | PORT_BIT( mask, mask & default, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) | |
| 878 | #define PORT_DIPUNKNOWN_DIPLOC(_mask, _default, _diploc) \ | |
| 879 | PORT_SPECIAL_ONOFF_DIPLOC(_mask, _default, Unknown, _diploc) | |
| 874 | 880 | |
| 875 | #define PORT_DIPUNUSED_DIPLOC(mask,default,loc) \ | |
| 876 | PORT_BIT( mask, mask & default, IPT_DIPSWITCH_NAME ) PORT_NAME( DEF_STR( Unused )) PORT_DIPLOCATION(loc) \ | |
| 877 | PORT_DIPSETTING( mask & default, DEF_STR( Off ) ) \ | |
| 878 | PORT_DIPSETTING( mask &~default, DEF_STR( On ) ) | |
| 881 | #define PORT_DIPUNKNOWN(_mask, _default) \ | |
| 882 | PORT_SPECIAL_ONOFF(_mask, _default, Unknown) | |
| 879 | 883 | |
| 880 | #define PORT_DIPUNUSED(mask,default) \ | |
| 881 | PORT_BIT( mask, mask & default, IPT_DIPSWITCH_NAME ) PORT_NAME( DEF_STR( Unused )) \ | |
| 882 | PORT_DIPSETTING( mask & default, DEF_STR( Off ) ) \ | |
| 883 | PORT_DIPSETTING( mask &~default, DEF_STR( On ) ) | |
| 884 | #define PORT_SERVICE_DIPLOC(_mask, _default, _diploc) \ | |
| 885 | PORT_SPECIAL_ONOFF_DIPLOC(_mask, _default, Service_Mode, _diploc) | |
| 884 | 886 | |
| 885 | #define PORT_DIPUNKNOWN_DIPLOC(mask,default,loc) \ | |
| 886 | PORT_BIT( mask, mask & default, IPT_DIPSWITCH_NAME ) PORT_NAME( DEF_STR( Unknown )) PORT_DIPLOCATION(loc) \ | |
| 887 | PORT_DIPSETTING( mask & default, DEF_STR( Off ) ) \ | |
| 888 | PORT_DIPSETTING( mask &~default, DEF_STR( On ) ) | |
| 887 | #define PORT_SERVICE(_mask, _default) \ | |
| 888 | PORT_SPECIAL_ONOFF(_mask, _default, Service_Mode) | |
| 889 | 889 | |
| 890 | #define PORT_DIPUNKNOWN(mask,default) \ | |
| 891 | PORT_BIT( mask, mask & default, IPT_DIPSWITCH_NAME ) PORT_NAME( DEF_STR( Unknown )) \ | |
| 892 | PORT_DIPSETTING( mask & default, DEF_STR( Off ) ) \ | |
| 893 | PORT_DIPSETTING( mask &~default, DEF_STR( On ) ) | |
| 890 | #define PORT_SERVICE_NO_TOGGLE(_mask, _default) \ | |
| 891 | PORT_BIT( _mask, _mask & _default, IPT_SERVICE ) PORT_NAME( DEF_STR( Service_Mode )) | |
| 894 | 892 | |
| 895 | 893 | |
| 896 | 894 |
| r2241 | r2242 | |
|---|---|---|
| 24 | 24 | else |
| 25 | 25 | val <<= 11; |
| 26 | 26 | val >>= 11; |
| 27 | val &= 0x7FF; | |
| 27 | 28 | val |= sign << 15; |
| 28 | 29 | val |= exponent << 11; |
| 29 | 30 | |
| r2241 | r2242 | |
| 40 | 41 | mantissa = val & 0x7FF; |
| 41 | 42 | uval = mantissa << 11; |
| 42 | 43 | if (exponent > 11) |
| 44 | { | |
| 43 | 45 | exponent = 11; |
| 46 | uval |= sign << 22; | |
| 47 | } | |
| 44 | 48 | else |
| 45 | 49 | uval |= (sign ^ 1) << 22; |
| 46 | 50 | uval |= sign << 23; |
| r2241 | r2242 | |
|---|---|---|
| 138 | 138 | int channel; |
| 139 | 139 | |
| 140 | 140 | /* only low byte hooked up? */ |
| 141 | if (!ACCESSING_ | |
| 141 | if (!ACCESSING_ | |
| 142 | 142 | return; |
| 143 | 143 | |
| 144 | 144 | //logerror("GA20: Offset %02x, data %04x\n",offset,data); |
| r2241 | r2242 | |
|---|---|---|
| 42 | 42 | { |
| 43 | 43 | UINT8 *node_data = node->context; |
| 44 | 44 | |
| 45 | /* Bring the system up to now */ | |
| 46 | stream_update(info->discrete_stream); | |
| 47 | ||
| 45 | 48 | if ((node->module.type >= DSS_INPUT_DATA) && (node->module.type <= DSS_INPUT_PULSE)) |
| 46 | 49 | { |
| 47 | 50 | data = *node_data; |
| r2241 | r2242 | |
| 63 | 66 | { |
| 64 | 67 | UINT8 *node_data = node->context; |
| 65 | 68 | UINT8 last_data = *node_data; |
| 69 | UINT8 new_data = 0; | |
| 66 | 70 | |
| 67 | 71 | switch (node->module.type) |
| 68 | 72 | { |
| 69 | 73 | case DSS_INPUT_DATA: |
| 70 | | |
| 74 | | |
| 71 | 75 | break; |
| 72 | 76 | case DSS_INPUT_LOGIC: |
| 73 | 77 | case DSS_INPUT_PULSE: |
| 74 | | |
| 78 | | |
| 75 | 79 | break; |
| 76 | 80 | case DSS_INPUT_NOT: |
| 77 | | |
| 81 | | |
| 78 | 82 | break; |
| 79 | 83 | } |
| 84 | if (last_data != new_data) | |
| 85 | { | |
| 86 | /* Bring the system up to now */ | |
| 87 | stream_update(info->discrete_stream); | |
| 80 | 88 | |
| 81 | /* Bring the system up to now */ | |
| 82 | if (last_data != *node_data) | |
| 83 | stream_update(info->discrete_stream); | |
| 89 | *node_data = new_data; | |
| 90 | } | |
| 84 | 91 | } |
| 85 | 92 | else |
| 86 | 93 | { |
| r2241 | r2242 | |
| 125 | 132 | |
| 126 | 133 | context->lastpval = rawportval; |
| 127 | 134 | if (DSS_ADJUSTMENT__LOG == 0) |
| 128 | node->output = scaledval; | |
| 135 | node->output[0] = scaledval; | |
| 129 | 136 | else |
| 130 | node->output = pow(10, scaledval); | |
| 137 | node->output[0] = pow(10, scaledval); | |
| 131 | 138 | } |
| 132 | 139 | } |
| 133 | 140 | else |
| 134 | 141 | { |
| 135 | node->output = 0; | |
| 142 | node->output[0] = 0; | |
| 136 | 143 | } |
| 137 | 144 | } |
| 138 | 145 | |
| r2241 | r2242 | |
| 186 | 193 | |
| 187 | 194 | static void dss_constant_step(node_description *node) |
| 188 | 195 | { |
| 189 | node->output= DSS_CONSTANT__INIT; | |
| 196 | node->output[0]= DSS_CONSTANT__INIT; | |
| 190 | 197 | } |
| 191 | 198 | |
| 192 | 199 | |
| r2241 | r2242 | |
| 204 | 211 | { |
| 205 | 212 | UINT8 *node_data = node->context; |
| 206 | 213 | |
| 207 | node->output = *node_data * DSS_INPUT__GAIN + DSS_INPUT__OFFSET; | |
| 214 | node->output[0] = *node_data * DSS_INPUT__GAIN + DSS_INPUT__OFFSET; | |
| 208 | 215 | } |
| 209 | 216 | |
| 210 | 217 | static void dss_input_reset(node_description *node) |
| r2241 | r2242 | |
| 232 | 239 | UINT8 *node_data = node->context; |
| 233 | 240 | |
| 234 | 241 | /* Set a valid output */ |
| 235 | node->output = *node_data; | |
| 242 | node->output[0] = *node_data; | |
| 236 | 243 | /* Reset the input to default for the next cycle */ |
| 237 | 244 | /* node order is now important */ |
| 238 | 245 | *node_data = DSS_INPUT__INIT; |
| r2241 | r2242 | |
| 258 | 265 | stream_sample_t **ptr = node->context; |
| 259 | 266 | stream_sample_t *data = *ptr; |
| 260 | 267 | |
| 261 | node->output = data ? (*data) * DSS_INPUT_STREAM__GAIN + DSS_INPUT_STREAM__OFFSET : 0; | |
| 268 | node->output[0] = data ? (*data) * DSS_INPUT_STREAM__GAIN + DSS_INPUT_STREAM__OFFSET : 0; | |
| 262 | 269 | } |
| 263 | 270 | |
| 264 | 271 | static void dss_input_stream_reset(node_description *node) |
| r2241 | r2242 | |
|---|---|---|
| 459 | 459 | |
| 460 | 460 | WRITE16_HANDLER( saa1099_control_port_0_lsb_w ) |
| 461 | 461 | { |
| 462 | if (ACCESSING_ | |
| 462 | if (ACCESSING_ | |
| 463 | 463 | saa1099_control_port_w(0, offset, data & 0xff); |
| 464 | 464 | } |
| 465 | 465 | |
| 466 | 466 | WRITE16_HANDLER( saa1099_write_port_0_lsb_w ) |
| 467 | 467 | { |
| 468 | if (ACCESSING_ | |
| 468 | if (ACCESSING_ | |
| 469 | 469 | saa1099_write_port_w(0, offset, data & 0xff); |
| 470 | 470 | } |
| 471 | 471 | |
| 472 | 472 | WRITE16_HANDLER( saa1099_control_port_1_lsb_w ) |
| 473 | 473 | { |
| 474 | if (ACCESSING_ | |
| 474 | if (ACCESSING_ | |
| 475 | 475 | saa1099_control_port_w(1, offset, data & 0xff); |
| 476 | 476 | } |
| 477 | 477 | |
| 478 | 478 | WRITE16_HANDLER( saa1099_write_port_1_lsb_w ) |
| 479 | 479 | { |
| 480 | if (ACCESSING_ | |
| 480 | if (ACCESSING_ | |
| 481 | 481 | saa1099_write_port_w(1, offset, data & 0xff); |
| 482 | 482 | } |
| 483 | 483 |
| r2241 | r2242 | |
|---|---|---|
| 1002 | 1002 | WRITE16_HANDLER( YMZ280B_register_0_lsb_w ) |
| 1003 | 1003 | { |
| 1004 | 1004 | struct YMZ280BChip *chip = sndti_token(SOUND_YMZ280B, 0); |
| 1005 | if (ACCESSING_ | |
| 1005 | if (ACCESSING_ | |
| 1006 | 1006 | } |
| 1007 | 1007 | |
| 1008 | 1008 | WRITE16_HANDLER( YMZ280B_register_0_msb_w ) |
| 1009 | 1009 | { |
| 1010 | 1010 | struct YMZ280BChip *chip = sndti_token(SOUND_YMZ280B, 0); |
| 1011 | if (ACCESSING_ | |
| 1011 | if (ACCESSING_ | |
| 1012 | 1012 | } |
| 1013 | 1013 | |
| 1014 | 1014 | WRITE16_HANDLER( YMZ280B_register_1_lsb_w ) |
| 1015 | 1015 | { |
| 1016 | 1016 | struct YMZ280BChip *chip = sndti_token(SOUND_YMZ280B, 1); |
| 1017 | if (ACCESSING_ | |
| 1017 | if (ACCESSING_ | |
| 1018 | 1018 | } |
| 1019 | 1019 | |
| 1020 | 1020 | WRITE16_HANDLER( YMZ280B_register_1_msb_w ) |
| 1021 | 1021 | { |
| 1022 | 1022 | struct YMZ280BChip *chip = sndti_token(SOUND_YMZ280B, 1); |
| 1023 | if (ACCESSING_ | |
| 1023 | if (ACCESSING_ | |
| 1024 | 1024 | } |
| 1025 | 1025 | |
| 1026 | 1026 | /********************************************************************************************** |
| r2241 | r2242 | |
| 1044 | 1044 | WRITE16_HANDLER( YMZ280B_data_0_lsb_w ) |
| 1045 | 1045 | { |
| 1046 | 1046 | struct YMZ280BChip *chip = sndti_token(SOUND_YMZ280B, 0); |
| 1047 | if (ACCESSING_ | |
| 1047 | if (ACCESSING_ | |
| 1048 | 1048 | } |
| 1049 | 1049 | |
| 1050 | 1050 | WRITE16_HANDLER( YMZ280B_data_0_msb_w ) |
| 1051 | 1051 | { |
| 1052 | 1052 | struct YMZ280BChip *chip = sndti_token(SOUND_YMZ280B, 0); |
| 1053 | if (ACCESSING_ | |
| 1053 | if (ACCESSING_ | |
| 1054 | 1054 | } |
| 1055 | 1055 | |
| 1056 | 1056 | WRITE16_HANDLER( YMZ280B_data_1_lsb_w ) |
| 1057 | 1057 | { |
| 1058 | 1058 | struct YMZ280BChip *chip = sndti_token(SOUND_YMZ280B, 1); |
| 1059 | if (ACCESSING_ | |
| 1059 | if (ACCESSING_ | |
| 1060 | 1060 | } |
| 1061 | 1061 | |
| 1062 | 1062 | WRITE16_HANDLER( YMZ280B_data_1_msb_w ) |
| 1063 | 1063 | { |
| 1064 | 1064 | struct YMZ280BChip *chip = sndti_token(SOUND_YMZ280B, 1); |
| 1065 | if (ACCESSING_ | |
| 1065 | if (ACCESSING_ | |
| 1066 | 1066 | } |
| 1067 | 1067 | |
| 1068 | 1068 | /********************************************************************************************** |
| r2241 | r2242 | |
|---|---|---|
| 24 | 24 | else |
| 25 | 25 | val <<= 11; |
| 26 | 26 | val >>= 11; |
| 27 | val &= 0x7FF; | |
| 27 | 28 | val |= sign << 15; |
| 28 | 29 | val |= exponent << 11; |
| 29 | 30 | |
| r2241 | r2242 | |
| 40 | 41 | mantissa = val & 0x7FF; |
| 41 | 42 | uval = mantissa << 11; |
| 42 | 43 | if (exponent > 11) |
| 44 | { | |
| 43 | 45 | exponent = 11; |
| 46 | uval |= sign << 22; | |
| 47 | } | |
| 44 | 48 | else |
| 45 | 49 | uval |= (sign ^ 1) << 22; |
| 46 | 50 | uval |= sign << 23; |
| r2241 | r2242 | |
|---|---|---|
| 167 | 167 | { |
| 168 | 168 | if(DST_ADDER__ENABLE) |
| 169 | 169 | { |
| 170 | node->output = DST_ADDER__IN0 + DST_ADDER__IN1 + DST_ADDER__IN2 + DST_ADDER__IN3; | |
| 170 | node->output[0] = DST_ADDER__IN0 + DST_ADDER__IN1 + DST_ADDER__IN2 + DST_ADDER__IN3; | |
| 171 | 171 | } |
| 172 | 172 | else |
| 173 | 173 | { |
| 174 | node->output=0; | |
| 174 | node->output[0]=0; | |
| 175 | 175 | } |
| 176 | 176 | } |
| 177 | 177 | |
| r2241 | r2242 | |
| 200 | 200 | switch (info->type) |
| 201 | 201 | { |
| 202 | 202 | case DISC_COMP_P_CAPACITOR: |
| 203 | node->output = info->cDefault; | |
| 203 | node->output[0] = info->cDefault; | |
| 204 | 204 | for(bit=0; bit < info->length; bit++) |
| 205 | 205 | { |
| 206 | if (DST_COMP_ADDER__SELECT & (1 << bit)) node->output += info->c[bit]; | |
| 206 | if (DST_COMP_ADDER__SELECT & (1 << bit)) node->output[0] += info->c[bit]; | |
| 207 | 207 | } |
| 208 | 208 | break; |
| 209 | 209 | case DISC_COMP_P_RESISTOR: |
| 210 | node->output = info->cDefault ? 1.0 / info->cDefault : 0; | |
| 210 | node->output[0] = info->cDefault ? 1.0 / info->cDefault : 0; | |
| 211 | 211 | for(bit=0; bit < info->length; bit++) |
| 212 | 212 | { |
| 213 | if (DST_COMP_ADDER__SELECT & (1 << bit)) node->output += 1.0 / info->c[bit]; | |
| 213 | if (DST_COMP_ADDER__SELECT & (1 << bit)) node->output[0] += 1.0 / info->c[bit]; | |
| 214 | 214 | } |
| 215 | if (node->output != 0) node->output = 1.0 / node->output; | |
| 215 | if (node->output[0] != 0) node->output[0] = 1.0 / node->output[0]; | |
| 216 | 216 | break; |
| 217 | 217 | } |
| 218 | 218 | } |
| 219 | 219 | else |
| 220 | 220 | { |
| 221 | node->output = 0; | |
| 221 | node->output[0] = 0; | |
| 222 | 222 | } |
| 223 | 223 | } |
| 224 | 224 | |
| r2241 | r2242 | |
| 244 | 244 | { |
| 245 | 245 | if(DST_CLAMP__ENABLE) |
| 246 | 246 | { |
| 247 | if(DST_CLAMP__IN < DST_CLAMP__MIN) node->output = DST_CLAMP__MIN; | |
| 248 | else if(DST_CLAMP__IN > DST_CLAMP__MAX) node->output = DST_CLAMP__MAX; | |
| 249 | else node->output= DST_CLAMP__IN; | |
| 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 | else node->output[0]= DST_CLAMP__IN; | |
| 250 | 250 | } |
| 251 | 251 | else |
| 252 | 252 | { |
| 253 | node->output = DST_CLAMP__CLAMP; | |
| 253 | node->output[0] = DST_CLAMP__CLAMP; | |
| 254 | 254 | } |
| 255 | 255 | } |
| 256 | 256 | |
| r2241 | r2242 | |
| 295 | 295 | v = i * context->rTotal; |
| 296 | 296 | |
| 297 | 297 | /* Filter if needed, else just output voltage */ |
| 298 | node->output = info->cFilter ? node->output + ((v - node->output) * context->exponent) : v; | |
| 298 | node->output[0] = info->cFilter ? node->output[0] + ((v - node->output[0]) * context->exponent) : v; | |
| 299 | 299 | } |
| 300 | 300 | else |
| 301 | 301 | { |
| r2241 | r2242 | |
| 350 | 350 | if (info->rGnd) context->rTotal += 1.0 / info->rGnd; |
| 351 | 351 | context->rTotal = 1.0 / context->rTotal; |
| 352 | 352 | |
| 353 | node->output = 0; | |
| 353 | node->output[0] = 0; | |
| 354 | 354 | |
| 355 | 355 | if (info->cFilter) |
| 356 | 356 | { |
| r2241 | r2242 | |
| 388 | 388 | { |
| 389 | 389 | if (DST_DIODE_MIX__INP(addr) > max) max = DST_DIODE_MIX__INP(addr); |
| 390 | 390 | } |
| 391 | node->output = max - DST_DIODE_MIX__VJUNC; | |
| 392 | if (node->output < 0) node->output = 0; | |
| 391 | node->output[0] = max - DST_DIODE_MIX__VJUNC; | |
| 392 | if (node->output[0] < 0) node->output[0] = 0; | |
| 393 | 393 | } |
| 394 | 394 | else |
| 395 | 395 | { |
| 396 | node->output = 0; | |
| 396 | node->output[0] = 0; | |
| 397 | 397 | } |
| 398 | 398 | } |
| 399 | 399 | |
| r2241 | r2242 | |
| 426 | 426 | { |
| 427 | 427 | if(DST_DIVIDE__DIV == 0) |
| 428 | 428 | { |
| 429 | node->output=DBL_MAX; /* Max out but don't break */ | |
| 430 | discrete_log("dst_divider_step() - Divide by Zero attempted in NODE_%02d.\n",node->node-NODE_START); | |
| 429 | node->output[0]=DBL_MAX; /* Max out but don't break */ | |
| 430 | discrete_log("dst_divider_step() - Divide by Zero attempted in NODE_%02d.\n",NODE_INDEX(node->node)); | |
| 431 | 431 | } |
| 432 | 432 | else |
| 433 | 433 | { |
| 434 | node->output= DST_DIVIDE__IN / DST_DIVIDE__DIV; | |
| 434 | node->output[0]= DST_DIVIDE__IN / DST_DIVIDE__DIV; | |
| 435 | 435 | } |
| 436 | 436 | } |
| 437 | 437 | else |
| 438 | 438 | { |
| 439 | node->output=0; | |
| 439 | node->output[0]=0; | |
| 440 | 440 | } |
| 441 | 441 | } |
| 442 | 442 | |
| r2241 | r2242 | |
| 460 | 460 | { |
| 461 | 461 | if(DST_GAIN__ENABLE) |
| 462 | 462 | { |
| 463 | node->output = DST_GAIN__IN * DST_GAIN__GAIN; | |
| 464 | node->output += DST_GAIN__OFFSET; | |
| 463 | node->output[0] = DST_GAIN__IN * DST_GAIN__GAIN; | |
| 464 | node->output[0] += DST_GAIN__OFFSET; | |
| 465 | 465 | } |
| 466 | 466 | else |
| 467 | 467 | { |
| 468 | node->output=0; | |
| 468 | node->output[0]=0; | |
| 469 | 469 | } |
| 470 | 470 | } |
| 471 | 471 | |
| r2241 | r2242 | |
| 535 | 535 | /* This forces the cap to completely charge, |
| 536 | 536 | * and the output to go to it's max value. |
| 537 | 537 | */ |
| 538 | node->output = context->vMaxOut; | |
| 538 | node->output[0] = context->vMaxOut; | |
| 539 | 539 | return; |
| 540 | 540 | } |
| 541 | node->output -= context->change; | |
| 541 | node->output[0] -= context->change; | |
| 542 | 542 | break; |
| 543 | 543 | |
| 544 | 544 | case DISC_INTEGRATE_OP_AMP_1 | DISC_OP_AMP_IS_NORTON: |
| 545 | 545 | iNeg = context->vMaxIn / info->r1; |
| 546 | 546 | iPos = (DST_INTEGRATE__TRG0 - OP_AMP_NORTON_VBE) / info->r2; |
| 547 | 547 | if (iPos < 0) iPos = 0; |
| 548 | node->output += (iPos - iNeg) / discrete_current_context->sample_rate / info->c; | |
| 548 | node->output[0] += (iPos - iNeg) / discrete_current_context->sample_rate / info->c; | |
| 549 | 549 | break; |
| 550 | 550 | |
| 551 | 551 | case DISC_INTEGRATE_OP_AMP_2 | DISC_OP_AMP_IS_NORTON: |
| r2241 | r2242 | |
| 554 | 554 | iNeg = dst_trigger_function(trig0, trig1, 0, info->f0) ? context->vMaxInD / info->r1 : 0; |
| 555 | 555 | iPos = dst_trigger_function(trig0, trig1, 0, info->f1) ? context->vMaxIn / info->r2 : 0; |
| 556 | 556 | iPos += dst_trigger_function(trig0, trig1, 0, info->f2) ? context->vMaxInD / info->r3 : 0; |
| 557 | node->output += (iPos - iNeg) / discrete_current_context->sample_rate / info->c; | |
| 557 | node->output[0] += (iPos - iNeg) / discrete_current_context->sample_rate / info->c; | |
| 558 | 558 | break; |
| 559 | 559 | } |
| 560 | 560 | |
| 561 | 561 | /* Clip the output. */ |
| 562 | if (node->output < 0) node->output = 0; | |
| 563 | if (node->output > context->vMaxOut) node->output = context->vMaxOut; | |
| 562 | if (node->output[0] < 0) node->output[0] = 0; | |
| 563 | if (node->output[0] > context->vMaxOut) node->output[0] = context->vMaxOut; | |
| 564 | 564 | } |
| 565 | 565 | |
| 566 | 566 | static void dst_integrate_reset(node_description *node) |
| r2241 | r2242 | |
| 584 | 584 | i = v / info->r1; |
| 585 | 585 | context->change = i / discrete_current_context->sample_rate / info->c; |
| 586 | 586 | } |
| 587 | node->output = 0; | |
| 587 | node->output[0] = 0; | |
| 588 | 588 | } |
| 589 | 589 | |
| 590 | 590 | |
| r2241 | r2242 | |
| 603 | 603 | { |
| 604 | 604 | if(DST_LOGIC_INV__ENABLE) |
| 605 | 605 | { |
| 606 | node->output = DST_LOGIC_INV__IN ? 0.0 : 1.0; | |
| 606 | node->output[0] = DST_LOGIC_INV__IN ? 0.0 : 1.0; | |
| 607 | 607 | } |
| 608 | 608 | else |
| 609 | 609 | { |
| 610 | node->output=0.0; | |
| 610 | node->output[0]=0.0; | |
| 611 | 611 | } |
| 612 | 612 | } |
| 613 | 613 | |
| r2241 | r2242 | |
| 632 | 632 | { |
| 633 | 633 | if(DST_LOGIC_AND__ENABLE) |
| 634 | 634 | { |
| 635 | node->output= (DST_LOGIC_AND__IN0 && DST_LOGIC_AND__IN1 && DST_LOGIC_AND__IN2 && DST_LOGIC_AND__IN3)? 1.0 : 0.0; | |
| 635 | node->output[0]= (DST_LOGIC_AND__IN0 && DST_LOGIC_AND__IN1 && DST_LOGIC_AND__IN2 && DST_LOGIC_AND__IN3)? 1.0 : 0.0; | |
| 636 | 636 | } |
| 637 | 637 | else |
| 638 | 638 | { |
| 639 | node->output=0.0; | |
| 639 | node->output[0]=0.0; | |
| 640 | 640 | } |
| 641 | 641 | } |
| 642 | 642 | |
| r2241 | r2242 | |
| 661 | 661 | { |
| 662 | 662 | if(DST_LOGIC_NAND__ENABLE) |
| 663 | 663 | { |
| 664 | node->output= (DST_LOGIC_NAND__IN0 && DST_LOGIC_NAND__IN1 && DST_LOGIC_NAND__IN2 && DST_LOGIC_NAND__IN3)? 0.0 : 1.0; | |
| 664 | node->output[0]= (DST_LOGIC_NAND__IN0 && DST_LOGIC_NAND__IN1 && DST_LOGIC_NAND__IN2 && DST_LOGIC_NAND__IN3)? 0.0 : 1.0; | |
| 665 | 665 | } |
| 666 | 666 | else |
| 667 | 667 | { |
| 668 | node->output=0.0; | |
| 668 | node->output[0]=0.0; | |
| 669 | 669 | } |
| 670 | 670 | } |
| 671 | 671 | |
| r2241 | r2242 | |
| 690 | 690 | { |
| 691 | 691 | if(DST_LOGIC_OR__ENABLE) |
| 692 | 692 | { |
| 693 | node->output = (DST_LOGIC_OR__IN0 || DST_LOGIC_OR__IN1 || DST_LOGIC_OR__IN2 || DST_LOGIC_OR__IN3) ? 1.0 : 0.0; | |
| 693 | node->output[0] = (DST_LOGIC_OR__IN0 || DST_LOGIC_OR__IN1 || DST_LOGIC_OR__IN2 || DST_LOGIC_OR__IN3) ? 1.0 : 0.0; | |
| 694 | 694 | } |
| 695 | 695 | else |
| 696 | 696 | { |
| 697 | node->output=0.0; | |
| 697 | node->output[0]=0.0; | |
| 698 | 698 | } |
| 699 | 699 | } |
| 700 | 700 | |
| r2241 | r2242 | |
| 719 | 719 | { |
| 720 | 720 | if(DST_LOGIC_NOR__ENABLE) |
| 721 | 721 | { |
| 722 | node->output = (DST_LOGIC_NOR__IN0 || DST_LOGIC_NOR__IN1 || DST_LOGIC_NOR__IN2 || DST_LOGIC_NOR__IN3) ? 0.0 : 1.0; | |
| 722 | node->output[0] = (DST_LOGIC_NOR__IN0 || DST_LOGIC_NOR__IN1 || DST_LOGIC_NOR__IN2 || DST_LOGIC_NOR__IN3) ? 0.0 : 1.0; | |
| 723 | 723 | } |
| 724 | 724 | else |
| 725 | 725 | { |
| 726 | node->output=0.0; | |
| 726 | node->output[0]=0.0; | |
| 727 | 727 | } |
| 728 | 728 | } |
| 729 | 729 | |
| r2241 | r2242 | |
| 744 | 744 | { |
| 745 | 745 | if(DST_LOGIC_XOR__ENABLE) |
| 746 | 746 | { |
| 747 | node->output=((DST_LOGIC_XOR__IN0 && !DST_LOGIC_XOR__IN1) || (!DST_LOGIC_XOR__IN0 && DST_LOGIC_XOR__IN1)) ? 1.0 : 0.0; | |
| 747 | node->output[0]=((DST_LOGIC_XOR__IN0 && !DST_LOGIC_XOR__IN1) || (!DST_LOGIC_XOR__IN0 && DST_LOGIC_XOR__IN1)) ? 1.0 : 0.0; | |
| 748 | 748 | } |
| 749 | 749 | else |
| 750 | 750 | { |
| 751 | node->output=0.0; | |
| 751 | node->output[0]=0.0; | |
| 752 | 752 | } |
| 753 | 753 | } |
| 754 | 754 | |
| r2241 | r2242 | |
| 769 | 769 | { |
| 770 | 770 | if(DST_LOGIC_XNOR__ENABLE) |
| 771 | 771 | { |
| 772 | node->output=((DST_LOGIC_XNOR__IN0 && !DST_LOGIC_XNOR__IN1) || (!DST_LOGIC_XNOR__IN0 && DST_LOGIC_XNOR__IN1)) ? 0.0 : 1.0; | |
| 772 | node->output[0]=((DST_LOGIC_XNOR__IN0 && !DST_LOGIC_XNOR__IN1) || (!DST_LOGIC_XNOR__IN0 && DST_LOGIC_XNOR__IN1)) ? 0.0 : 1.0; | |
| 773 | 773 | } |
| 774 | 774 | else |
| 775 | 775 | { |
| 776 | node->output=0.0; | |
| 776 | node->output[0]=0.0; | |
| 777 | 777 | } |
| 778 | 778 | } |
| 779 | 779 | |
| r2241 | r2242 | |
| 803 | 803 | if (DST_LOGIC_DFF__ENABLE) |
| 804 | 804 | { |
| 805 | 805 | if (DST_LOGIC_DFF__RESET) |
| 806 | node->output = 0; | |
| 806 | node->output[0] = 0; | |
| 807 | 807 | else if (DST_LOGIC_DFF__SET) |
| 808 | node->output = 1; | |
| 808 | node->output[0] = 1; | |
| 809 | 809 | else if (!context->last_clk && clk) /* low to high */ |
| 810 | 810 | { |
| 811 | node->output = DST_LOGIC_DFF__DATA; | |
| 811 | node->output[0] = DST_LOGIC_DFF__DATA; | |
| 812 | 812 | } |
| 813 | 813 | } |
| 814 | 814 | else |
| 815 | 815 | { |
| 816 | node->output = 0; | |
| 816 | node->output[0] = 0; | |
| 817 | 817 | } |
| 818 | 818 | context->last_clk = clk; |
| 819 | 819 | } |
| r2241 | r2242 | |
| 822 | 822 | { |
| 823 | 823 | struct dst_flipflop_context *context = node->context; |
| 824 | 824 | context->last_clk = 0; |
| 825 | node->output = 0; | |
| 825 | node->output[0] = 0; | |
| 826 | 826 | } |
| 827 | 827 | |
| 828 | 828 | |
| r2241 | r2242 | |
| 855 | 855 | if (DST_LOGIC_JKFF__ENABLE) |
| 856 | 856 | { |
| 857 | 857 | if (DST_LOGIC_JKFF__RESET) |
| 858 | node->output = 0; | |
| 858 | node->output[0] = 0; | |
| 859 | 859 | else if (DST_LOGIC_JKFF__SET) |
| 860 | node->output = 1; | |
| 860 | node->output[0] = 1; | |
| 861 | 861 | else if (context->last_clk && !clk) /* high to low */ |
| 862 | 862 | { |
| 863 | 863 | if (!j) |
| r2241 | r2242 | |
| 865 | 865 | /* J=0, K=0 - Hold */ |
| 866 | 866 | if (k) |
| 867 | 867 | /* J=0, K=1 - Reset */ |
| 868 | node->output = 0; | |
| 868 | node->output[0] = 0; | |
| 869 | 869 | } |
| 870 | 870 | else |
| 871 | 871 | { |
| 872 | 872 | if (!k) |
| 873 | 873 | /* J=1, K=0 - Set */ |
| 874 | node->output = 1; | |
| 874 | node->output[0] = 1; | |
| 875 | 875 | else |
| 876 | 876 | /* J=1, K=1 - Toggle */ |
| 877 | node->output = !(int)node->output; | |
| 877 | node->output[0] = !(int)node->output[0]; | |
| 878 | 878 | } |
| 879 | 879 | } |
| 880 | 880 | } |
| 881 | 881 | else |
| 882 | 882 | { |
| 883 | node->output=0; | |
| 883 | node->output[0]=0; | |
| 884 | 884 | } |
| 885 | 885 | context->last_clk = clk; |
| 886 | 886 | } |
| r2241 | r2242 | |
| 908 | 908 | int addr = DST_LOOKUP_TABLE__IN; |
| 909 | 909 | |
| 910 | 910 | if (!DST_LOOKUP_TABLE__ENABLE || addr < 0 || addr >= DST_LOOKUP_TABLE__SIZE) |
| 911 | node->output = 0; | |
| 911 | node->output[0] = 0; | |
| 912 | 912 | else |
| 913 | node->output = table[addr]; | |
| 913 | node->output[0] = table[addr]; | |
| 914 | 914 | } |
| 915 | 915 | |
| 916 | 916 | /************************************************************************ |
| r2241 | r2242 | |
| 1061 | 1061 | context->vCapAmp += (v - context->vCapAmp) * context->exponent_cAmp; |
| 1062 | 1062 | v -= context->vCapAmp; |
| 1063 | 1063 | } |
| 1064 | node->output = v * info->gain; | |
| 1064 | node->output[0] = v * info->gain; | |
| 1065 | 1065 | } |
| 1066 | 1066 | else |
| 1067 | 1067 | { |
| 1068 | node->output = 0; | |
| 1068 | node->output[0] = 0; | |
| 1069 | 1069 | } |
| 1070 | 1070 | } |
| 1071 | 1071 | |
| r2241 | r2242 | |
| 1083 | 1083 | { |
| 1084 | 1084 | r_node = discrete_find_node(NULL, info->rNode[bit]); |
| 1085 | 1085 | if (r_node) |
| 1086 | context->rNode[bit] = &(r_node->output); | |
| 1086 | context->rNode[bit] = &(r_node->output[NODE_CHILD_NODE_NUM(info->rNode[bit])]); | |
| 1087 | 1087 | else |
| 1088 | 1088 | context->rNode[bit] = NULL; |
| 1089 | 1089 | } |
| r2241 | r2242 | |
| 1169 | 1169 | |
| 1170 | 1170 | if ((context->type & DISC_MIXER_TYPE_MASK) == DISC_MIXER_IS_OP_AMP_WITH_RI) context->gain = info->rF / info->rI; |
| 1171 | 1171 | |
| 1172 | node->output = 0; | |
| 1172 | node->output[0] = 0; | |
| 1173 | 1173 | } |
| 1174 | 1174 | |
| 1175 | 1175 | |
| r2241 | r2242 | |
| 1199 | 1199 | addr = DST_MULTIPLEX__ADDR; // FP to INT |
| 1200 | 1200 | if ((addr >= 0) && (addr < context->size)) |
| 1201 | 1201 | { |
| 1202 | node->output = DST_MULTIPLEX__INP(addr); | |
| 1202 | node->output[0] = DST_MULTIPLEX__INP(addr); | |
| 1203 | 1203 | } |
| 1204 | 1204 | else |
| 1205 | 1205 | { |
| r2241 | r2242 | |
| 1209 | 1209 | } |
| 1210 | 1210 | else |
| 1211 | 1211 | { |
| 1212 | node->output=0; | |
| 1212 | node->output[0]=0; | |
| 1213 | 1213 | } |
| 1214 | 1214 | } |
| 1215 | 1215 | |
| r2241 | r2242 | |
| 1252 | 1252 | if (DST_ONESHOT__RESET) |
| 1253 | 1253 | { |
| 1254 | 1254 | /* Hold in Reset */ |
| 1255 | node->output = 0; | |
| 1255 | node->output[0] = 0; | |
| 1256 | 1256 | context->state = 0; |
| 1257 | 1257 | } |
| 1258 | 1258 | else |
| r2241 | r2242 | |
| 1270 | 1270 | { |
| 1271 | 1271 | /* We have first trigger */ |
| 1272 | 1272 | context->state = 1; |
| 1273 | node->output = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? 0 : DST_ONESHOT__AMP; | |
| 1273 | node->output[0] = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? 0 : DST_ONESHOT__AMP; | |
| 1274 | 1274 | context->countdown = DST_ONESHOT__WIDTH; |
| 1275 | 1275 | } |
| 1276 | 1276 | else |
| r2241 | r2242 | |
| 1291 | 1291 | context->countdown -= discrete_current_context->sample_time; |
| 1292 | 1292 | if(context->countdown <= 0.0) |
| 1293 | 1293 | { |
| 1294 | node->output = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? DST_ONESHOT__AMP : 0; | |
| 1294 | node->output[0] = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? DST_ONESHOT__AMP : 0; | |
| 1295 | 1295 | context->countdown = 0; |
| 1296 | 1296 | context->state = 0; |
| 1297 | 1297 | } |
| r2241 | r2242 | |
| 1307 | 1307 | context->state = 0; |
| 1308 | 1308 | |
| 1309 | 1309 | context->lastTrig = 0; |
| 1310 | node->output = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? DST_ONESHOT__AMP : 0; | |
| 1310 | node->output[0] = (DST_ONESHOT__TYPE & DISC_OUT_ACTIVE_LOW) ? DST_ONESHOT__AMP : 0; | |
| 1311 | 1311 | } |
| 1312 | 1312 | |
| 1313 | 1313 | |
| r2241 | r2242 | |
| 1339 | 1339 | if (!context->last_en) |
| 1340 | 1340 | { |
| 1341 | 1341 | context->last_en = 1; |
| 1342 | node->output = DST_RAMP__START; | |
| 1342 | node->output[0] = DST_RAMP__START; | |
| 1343 | 1343 | } |
| 1344 | if(context->dir ? DST_RAMP__DIR : !DST_RAMP__DIR) node->output+=context->step; | |
| 1345 | else node->output-=context->step; | |
| 1344 | if(context->dir ? DST_RAMP__DIR : !DST_RAMP__DIR) node->output[0]+=context->step; | |
| 1345 | else node->output[0]-=context->step; | |
| 1346 | 1346 | /* Clamp to min/max */ |
| 1347 | if(context->dir ? (node->output < DST_RAMP__START) | |
| 1348 | : (node->output > DST_RAMP__START)) node->output=DST_RAMP__START; | |
| 1349 | if(context->dir ? (node->output > DST_RAMP__END) | |
| 1350 | : (node->output < DST_RAMP__END)) node->output=DST_RAMP__END; | |
| 1347 | if(context->dir ? (node->output[0] < DST_RAMP__START) | |
| 1348 | : (node->output[0] > DST_RAMP__START)) node->output[0]=DST_RAMP__START; | |
| 1349 | if(context->dir ? (node->output[0] > DST_RAMP__END) | |
| 1350 | : (node->output[0] < DST_RAMP__END)) node->output[0]=DST_RAMP__END; | |
| 1351 | 1351 | } |
| 1352 | 1352 | else |
| 1353 | 1353 | { |
| 1354 | 1354 | context->last_en = 0; |
| 1355 | 1355 | // Disabled so clamp to output |
| 1356 | node->output=DST_RAMP__CLAMP; | |
| 1356 | node->output[0]=DST_RAMP__CLAMP; | |
| 1357 | 1357 | } |
| 1358 | 1358 | } |
| 1359 | 1359 | |
| r2241 | r2242 | |
| 1361 | 1361 | { |
| 1362 | 1362 | struct dss_ramp_context *context = node->context; |
| 1363 | 1363 | |
| 1364 | node->output=DST_RAMP__CLAMP; | |
| 1364 | node->output[0]=DST_RAMP__CLAMP; | |
| 1365 | 1365 | context->step = DST_RAMP__GRAD / discrete_current_context->sample_rate; |
| 1366 | 1366 | context->dir = ((DST_RAMP__END - DST_RAMP__START) == abs(DST_RAMP__END - DST_RAMP__START)); |
| 1367 | 1367 | context->last_en = 0; |
| r2241 | r2242 | |
| 1393 | 1393 | { |
| 1394 | 1394 | case DISC_SAMPHOLD_REDGE: |
| 1395 | 1395 | /* Clock the whole time the input is rising */ |
| 1396 | if(DST_SAMPHOLD__CLOCK > context->lastinput) node->output=DST_SAMPHOLD__IN0; | |
| 1396 | if(DST_SAMPHOLD__CLOCK > context->lastinput) node->output[0]=DST_SAMPHOLD__IN0; | |
| 1397 | 1397 | break; |
| 1398 | 1398 | case DISC_SAMPHOLD_FEDGE: |
| 1399 | 1399 | /* Clock the whole time the input is falling */ |
| 1400 | if(DST_SAMPHOLD__CLOCK < context->lastinput) node->output=DST_SAMPHOLD__IN0; | |
| 1400 | if(DST_SAMPHOLD__CLOCK < context->lastinput) node->output[0]=DST_SAMPHOLD__IN0; | |
| 1401 | 1401 | break; |
| 1402 | 1402 | case DISC_SAMPHOLD_HLATCH: |
| 1403 | 1403 | /* Output follows input if clock != 0 */ |
| 1404 | if(DST_SAMPHOLD__CLOCK) node->output=DST_SAMPHOLD__IN0; | |
| 1404 | if(DST_SAMPHOLD__CLOCK) node->output[0]=DST_SAMPHOLD__IN0; | |
| 1405 | 1405 | break; |
| 1406 | 1406 | case DISC_SAMPHOLD_LLATCH: |
| 1407 | 1407 | /* Output follows input if clock == 0 */ |
| 1408 | if(DST_SAMPHOLD__CLOCK==0) node->output=DST_SAMPHOLD__IN0; | |
| 1408 | if(DST_SAMPHOLD__CLOCK==0) node->output[0]=DST_SAMPHOLD__IN0; | |
| 1409 | 1409 | break; |
| 1410 | 1410 | default: |
| 1411 | 1411 | discrete_log("dst_samphold_step - Invalid clocktype passed"); |
| r2241 | r2242 | |
| 1414 | 1414 | } |
| 1415 | 1415 | else |
| 1416 | 1416 | { |
| 1417 | node->output=0; | |
| 1417 | node->output[0]=0; | |
| 1418 | 1418 | } |
| 1419 | 1419 | /* Save the last value */ |
| 1420 | 1420 | context->lastinput=DST_SAMPHOLD__CLOCK; |
| r2241 | r2242 | |
| 1424 | 1424 | { |
| 1425 | 1425 | struct dst_samphold_context *context = node->context; |
| 1426 | 1426 | |
| 1427 | node->output=0; | |
| 1427 | node->output[0]=0; | |
| 1428 | 1428 | context->lastinput=-1; |
| 1429 | 1429 | /* Only stored in here to speed up and save casting in the step function */ |
| 1430 | 1430 | context->clocktype=(int)DST_SAMPHOLD__TYPE; |
| r2241 | r2242 | |
| 1451 | 1451 | { |
| 1452 | 1452 | if(DSS_SWITCH__ENABLE) |
| 1453 | 1453 | { |
| 1454 | node->output=DSS_SWITCH__SWITCH ? DSS_SWITCH__IN1 : DSS_SWITCH__IN0; | |
| 1454 | node->output[0]=DSS_SWITCH__SWITCH ? DSS_SWITCH__IN1 : DSS_SWITCH__IN0; | |
| 1455 | 1455 | } |
| 1456 | 1456 | else |
| 1457 | 1457 | { |
| 1458 | node->output=0; | |
| 1458 | node->output[0]=0; | |
| 1459 | 1459 | } |
| 1460 | 1460 | } |
| 1461 | 1461 | |
| r2241 | r2242 | |
| 1479 | 1479 | { |
| 1480 | 1480 | if(DSS_SWITCH__ENABLE) |
| 1481 | 1481 | { |
| 1482 | node->output=DSS_ASWITCH__CTRL > DSS_ASWITCH__THRESHOLD ? DSS_ASWITCH__IN : 0; | |
| 1482 | node->output[0]=DSS_ASWITCH__CTRL > DSS_ASWITCH__THRESHOLD ? DSS_ASWITCH__IN : 0; | |
| 1483 | 1483 | } |
| 1484 | 1484 | else |
| 1485 | 1485 | { |
| 1486 | node->output=0; | |
| 1486 | node->output[0]=0; | |
| 1487 | 1487 | } |
| 1488 | 1488 | } |
| 1489 | 1489 | |
| r2241 | r2242 | |
| 1533 | 1533 | int trans_stack_ptr=0; |
| 1534 | 1534 | |
| 1535 | 1535 | const char *fPTR = node->custom; |
| 1536 | node->output=0; | |
| 1536 | node->output[0]=0; | |
| 1537 | 1537 | |
| 1538 | 1538 | while(*fPTR!=0) |
| 1539 | 1539 | { |
| r2241 | r2242 | |
| 1631 | 1631 | break; |
| 1632 | 1632 | default: |
| 1633 | 1633 | discrete_log("dst_transform_step - Invalid function type/variable passed"); |
| 1634 | node->output = 0; | |
| 1634 | node->output[0] = 0; | |
| 1635 | 1635 | break; |
| 1636 | 1636 | } |
| 1637 | 1637 | } |
| 1638 | node->output=dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1638 | node->output[0]=dst_transform_pop(trans_stack,&trans_stack_ptr); | |
| 1639 | 1639 | } |
| 1640 | 1640 | else |
| 1641 | 1641 | { |
| 1642 | node->output=0; | |
| 1642 | node->output[0]=0; | |
| 1643 | 1643 | } |
| 1644 | 1644 | } |
| 1645 | 1645 | |
| r2241 | r2242 | |
| 1701 | 1701 | else |
| 1702 | 1702 | /* linear charge */ |
| 1703 | 1703 | context->vCap += i / context->exponent; |
| 1704 | node->output = context->vCap; | |
| 1704 | node->output[0] = context->vCap; | |
| 1705 | 1705 | } |
| 1706 | 1706 | else |
| 1707 | node->output = i * info->r4; | |
| 1707 | node->output[0] = i * info->r4; | |
| 1708 | 1708 | |
| 1709 | 1709 | /* clamp output */ |
| 1710 | if (node->output > context->vMax) node->output = context->vMax; | |
| 1711 | else if (node->output < info->vN) node->output = info->vN; | |
| 1712 | context->vCap = node->output; | |
| 1710 | if (node->output[0] > context->vMax) node->output[0] = context->vMax; | |
| 1711 | else if (node->output[0] < info->vN) node->output[0] = info->vN; | |
| 1712 | context->vCap = node->output[0]; | |
| 1713 | 1713 | break; |
| 1714 | 1714 | |
| 1715 | 1715 | default: |
| 1716 | node->output = 0; | |
| 1716 | node->output[0] = 0; | |
| 1717 | 1717 | } |
| 1718 | 1718 | } |
| 1719 | 1719 | else |
| 1720 | node->output = 0; | |
| 1720 | node->output[0] = 0; | |
| 1721 | 1721 | } |
| 1722 | 1722 | |
| 1723 | 1723 | static void dst_op_amp_reset(node_description *node) |
| r2241 | r2242 | |
| 1774 | 1774 | |
| 1775 | 1775 | /* update trigger circuit */ |
| 1776 | 1776 | iPos = (DST_OP_AMP_1SHT__TRIGGER - context->vCap2) / info->r2; |
| 1777 | iPos += node->output / info->r5; | |
| 1777 | iPos += node->output[0] / info->r5; | |
| 1778 | 1778 | context->vCap2 += (DST_OP_AMP_1SHT__TRIGGER - context->vCap2) * context->exponent2; |
| 1779 | 1779 | |
| 1780 | 1780 | /* calculate currents and output */ |
| r2241 | r2242 | |
| 1782 | 1782 | if (iNeg < 0) iNeg = 0; |
| 1783 | 1783 | iNeg += context->iFixed; |
| 1784 | 1784 | |
| 1785 | if (iPos > iNeg) node->output = context->vMax; | |
| 1786 | else node->output = info->vN; | |
| 1785 | if (iPos > iNeg) node->output[0] = context->vMax; | |
| 1786 | else node->output[0] = info->vN; | |
| 1787 | 1787 | |
| 1788 | 1788 | /* update c1 */ |
| 1789 | 1789 | /* rough value of voltage at anode of diode if discharging */ |
| 1790 | v = node->output + 0.6; | |
| 1791 | if (context->vCap1 > node->output) | |
| 1790 | v = node->output[0] + 0.6; | |
| 1791 | if (context->vCap1 > node->output[0]) | |
| 1792 | 1792 | { |
| 1793 | 1793 | /* discharge */ |
| 1794 | 1794 | if (context->vCap1 > v) |
| r2241 | r2242 | |
| 1796 | 1796 | context->vCap1 = v; |
| 1797 | 1797 | else |
| 1798 | 1798 | /* discharge through r4 */ |
| 1799 | context->vCap1 += (node->output - context->vCap1) * context->exponent1d; | |
| 1799 | context->vCap1 += (node->output[0] - context->vCap1) * context->exponent1d; | |
| 1800 | 1800 | } |
| 1801 | 1801 | else |
| 1802 | 1802 | /* charge */ |
| 1803 | context->vCap1 += ((node->output - OP_AMP_NORTON_VBE) * context->r34ratio + OP_AMP_NORTON_VBE - context->vCap1) * context->exponent1c; | |
| 1803 | context->vCap1 += ((node->output[0] - OP_AMP_NORTON_VBE) * context->r34ratio + OP_AMP_NORTON_VBE - context->vCap1) * context->exponent1c; | |
| 1804 | 1804 | } |
| 1805 | 1805 | |
| 1806 | 1806 | static void dst_op_amp_1sht_reset(node_description *node) |
| r2241 | r2242 | |
| 1916 | 1916 | iOut = iPos - iNeg; |
| 1917 | 1917 | if (iOut < 0) iOut = 0; |
| 1918 | 1918 | /* Convert to voltage for final output. */ |
| 1919 | node->output = iOut * info->r4; | |
| 1919 | node->output[0] = iOut * info->r4; | |
| 1920 | 1920 | /* Clip the output if needed. */ |
| 1921 | if (node->output > context->vOutMax) node->output = context->vOutMax; | |
| 1921 | if (node->output[0] > context->vOutMax) node->output[0] = context->vOutMax; | |
| 1922 | 1922 | } |
| 1923 | 1923 | |
| 1924 | 1924 | static void dst_tvca_op_amp_reset(node_description *node) |
| r2241 | r2242 | |
|---|---|---|
| 262 | 262 | WRITE8_HANDLER( AY8910_control_port_2_w ) { ay8910_write_ym(sndti_token(SOUND_AY8910, 2),0,data); } |
| 263 | 263 | WRITE8_HANDLER( AY8910_control_port_3_w ) { ay8910_write_ym(sndti_token(SOUND_AY8910, 3),0,data); } |
| 264 | 264 | WRITE8_HANDLER( AY8910_control_port_4_w ) { ay8910_write_ym(sndti_token(SOUND_AY8910, 4),0,data); } |
| 265 | WRITE16_HANDLER( AY8910_control_port_0_lsb_w ) { if (ACCESSING_LSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 0),0,data & 0xff); } | |
| 266 | WRITE16_HANDLER( AY8910_control_port_1_lsb_w ) { if (ACCESSING_LSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 1),0,data & 0xff); } | |
| 267 | WRITE16_HANDLER( AY8910_control_port_2_lsb_w ) { if (ACCESSING_LSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 2),0,data & 0xff); } | |
| 268 | WRITE16_HANDLER( AY8910_control_port_3_lsb_w ) { if (ACCESSING_LSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 3),0,data & 0xff); } | |
| 269 | WRITE16_HANDLER( AY8910_control_port_4_lsb_w ) { if (ACCESSING_LSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 4),0,data & 0xff); } | |
| 270 | WRITE16_HANDLER( AY8910_control_port_0_msb_w ) { if (ACCESSING_MSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 0),0,data >> 8); } | |
| 271 | WRITE16_HANDLER( AY8910_control_port_1_msb_w ) { if (ACCESSING_MSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 1),0,data >> 8); } | |
| 272 | WRITE16_HANDLER( AY8910_control_port_2_msb_w ) { if (ACCESSING_MSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 2),0,data >> 8); } | |
| 273 | WRITE16_HANDLER( AY8910_control_port_3_msb_w ) { if (ACCESSING_MSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 3),0,data >> 8); } | |
| 274 | WRITE16_HANDLER( AY8910_control_port_4_msb_w ) { if (ACCESSING_MSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 4),0,data >> 8); } | |
| 265 | WRITE16_HANDLER( AY8910_control_port_0_lsb_w ) { if (ACCESSING_BITS_0_7) ay8910_write_ym(sndti_token(SOUND_AY8910, 0),0,data & 0xff); } | |
| 266 | WRITE16_HANDLER( AY8910_control_port_1_lsb_w ) { if (ACCESSING_BITS_0_7) ay8910_write_ym(sndti_token(SOUND_AY8910, 1),0,data & 0xff); } | |
| 267 | WRITE16_HANDLER( AY8910_control_port_2_lsb_w ) { if (ACCESSING_BITS_0_7) ay8910_write_ym(sndti_token(SOUND_AY8910, 2),0,data & 0xff); } | |
| 268 | WRITE16_HANDLER( AY8910_control_port_3_lsb_w ) { if (ACCESSING_BITS_0_7) ay8910_write_ym(sndti_token(SOUND_AY8910, 3),0,data & 0xff); } | |
| 269 | WRITE16_HANDLER( AY8910_control_port_4_lsb_w ) { if (ACCESSING_BITS_0_7) ay8910_write_ym(sndti_token(SOUND_AY8910, 4),0,data & 0xff); } | |
| 270 | WRITE16_HANDLER( AY8910_control_port_0_msb_w ) { if (ACCESSING_BITS_8_15) ay8910_write_ym(sndti_token(SOUND_AY8910, 0),0,data >> 8); } | |
| 271 | WRITE16_HANDLER( AY8910_control_port_1_msb_w ) { if (ACCESSING_BITS_8_15) ay8910_write_ym(sndti_token(SOUND_AY8910, 1),0,data >> 8); } | |
| 272 | WRITE16_HANDLER( AY8910_control_port_2_msb_w ) { if (ACCESSING_BITS_8_15) ay8910_write_ym(sndti_token(SOUND_AY8910, 2),0,data >> 8); } | |
| 273 | WRITE16_HANDLER( AY8910_control_port_3_msb_w ) { if (ACCESSING_BITS_8_15) ay8910_write_ym(sndti_token(SOUND_AY8910, 3),0,data >> 8); } | |
| 274 | WRITE16_HANDLER( AY8910_control_port_4_msb_w ) { if (ACCESSING_BITS_8_15) ay8910_write_ym(sndti_token(SOUND_AY8910, 4),0,data >> 8); } | |
| 275 | 275 | |
| 276 | 276 | WRITE8_HANDLER( AY8910_write_port_0_w ) { ay8910_write_ym(sndti_token(SOUND_AY8910, 0),1,data); } |
| 277 | 277 | WRITE8_HANDLER( AY8910_write_port_1_w ) { ay8910_write_ym(sndti_token(SOUND_AY8910, 1),1,data); } |
| 278 | 278 | WRITE8_HANDLER( AY8910_write_port_2_w ) { ay8910_write_ym(sndti_token(SOUND_AY8910, 2),1,data); } |
| 279 | 279 | WRITE8_HANDLER( AY8910_write_port_3_w ) { ay8910_write_ym(sndti_token(SOUND_AY8910, 3),1,data); } |
| 280 | 280 | WRITE8_HANDLER( AY8910_write_port_4_w ) { ay8910_write_ym(sndti_token(SOUND_AY8910, 4),1,data); } |
| 281 | WRITE16_HANDLER( AY8910_write_port_0_lsb_w ) { if (ACCESSING_LSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 0),1,data & 0xff); } | |
| 282 | WRITE16_HANDLER( AY8910_write_port_1_lsb_w ) { if (ACCESSING_LSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 1),1,data & 0xff); } | |
| 283 | WRITE16_HANDLER( AY8910_write_port_2_lsb_w ) { if (ACCESSING_LSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 2),1,data & 0xff); } | |
| 284 | WRITE16_HANDLER( AY8910_write_port_3_lsb_w ) { if (ACCESSING_LSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 3),1,data & 0xff); } | |
| 285 | WRITE16_HANDLER( AY8910_write_port_4_lsb_w ) { if (ACCESSING_LSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 4),1,data & 0xff); } | |
| 286 | WRITE16_HANDLER( AY8910_write_port_0_msb_w ) { if (ACCESSING_MSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 0),1,data >> 8); } | |
| 287 | WRITE16_HANDLER( AY8910_write_port_1_msb_w ) { if (ACCESSING_MSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 1),1,data >> 8); } | |
| 288 | WRITE16_HANDLER( AY8910_write_port_2_msb_w ) { if (ACCESSING_MSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 2),1,data >> 8); } | |
| 289 | WRITE16_HANDLER( AY8910_write_port_3_msb_w ) { if (ACCESSING_MSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 3),1,data >> 8); } | |
| 290 | WRITE16_HANDLER( AY8910_write_port_4_msb_w ) { if (ACCESSING_MSB) ay8910_write_ym(sndti_token(SOUND_AY8910, 4),1,data >> 8); } | |
| 281 | WRITE16_HANDLER( AY8910_write_port_0_lsb_w ) { if (ACCESSING_BITS_0_7) ay8910_write_ym(sndti_token(SOUND_AY8910, 0),1,data & 0xff); } | |
| 282 | WRITE16_HANDLER( AY8910_write_port_1_lsb_w ) { if (ACCESSING_BITS_0_7) ay8910_write_ym(sndti_token(SOUND_AY8910, 1),1,data & 0xff); } | |
| 283 | WRITE16_HANDLER( AY8910_write_port_2_lsb_w ) { if (ACCESSING_BITS_0_7) ay8910_write_ym(sndti_token(SOUND_AY8910, 2),1,data & 0xff); } | |
| 284 | WRITE16_HANDLER( AY8910_write_port_3_lsb_w ) { if (ACCESSING_BITS_0_7) ay8910_write_ym(sndti_token(SOUND_AY8910, 3),1,data & 0xff); } | |
| 285 | WRITE16_HANDLER( AY8910_write_port_4_lsb_w ) { if (ACCESSING_BITS_0_7) ay8910_write_ym(sndti_token(SOUND_AY8910, 4),1,data & 0xff); } | |
| 286 | WRITE16_HANDLER( AY8910_write_port_0_msb_w ) { if (ACCESSING_BITS_8_15) ay8910_write_ym(sndti_token(SOUND_AY8910, 0),1,data >> 8); } | |
| 287 | WRITE16_HANDLER( AY8910_write_port_1_msb_w ) { if (ACCESSING_BITS_8_15) ay8910_write_ym(sndti_token(SOUND_AY8910, 1),1,data >> 8); } | |
| 288 | WRITE16_HANDLER( AY8910_write_port_2_msb_w ) { if (ACCESSING_BITS_8_15) ay8910_write_ym(sndti_token(SOUND_AY8910, 2),1,data >> 8); } | |
| 289 | WRITE16_HANDLER( AY8910_write_port_3_msb_w ) { if (ACCESSING_BITS_8_15) ay8910_write_ym(sndti_token(SOUND_AY8910, 3),1,data >> 8); } | |
| 290 | WRITE16_HANDLER( AY8910_write_port_4_msb_w ) { if (ACCESSING_BITS_8_15) ay8910_write_ym(sndti_token(SOUND_AY8910, 4),1,data >> 8); } | |
| 291 | 291 | |
| 292 | 292 | |
| 293 | 293 |
| r2241 | r2242 | |
|---|---|---|
| 163 | 163 | |
| 164 | 164 | static const discrete_module module_list[] = |
| 165 | 165 | { |
| 166 | { DSO_OUTPUT ,"DSO_OUTPUT" ,0 ,NULL ,NULL }, | |
| 167 | { DSO_CSVLOG ,"DSO_CSVLOG" ,0 ,NULL ,NULL }, | |
| 168 | { DSO_WAVELOG ,"DSO_WAVELOG" ,0 ,NULL ,NULL }, | |
| 166 | { DSO_OUTPUT ,"DSO_OUTPUT" , 0 ,0 ,NULL ,NULL }, | |
| 167 | { DSO_CSVLOG ,"DSO_CSVLOG" , 0 ,0 ,NULL ,NULL }, | |
| 168 | { DSO_WAVELOG ,"DSO_WAVELOG" , 0 ,0 ,NULL ,NULL }, | |
| 169 | 169 | |
| 170 | 170 | /* from disc_inp.c */ |
| 171 | { DSS_ADJUSTMENT ,"DSS_ADJUSTMENT" ,sizeof(struct dss_adjustment_context) ,dss_adjustment_reset ,dss_adjustment_step }, | |
| 172 | { DSS_CONSTANT ,"DSS_CONSTANT" ,0 ,NULL ,dss_constant_step }, | |
| 173 | { DSS_INPUT_DATA ,"DSS_INPUT_DATA" ,sizeof(UINT8) ,dss_input_reset ,dss_input_step }, | |
| 174 | { DSS_INPUT_LOGIC ,"DSS_INPUT_LOGIC" ,sizeof(UINT8) ,dss_input_reset ,dss_input_step }, | |
| 175 | { DSS_INPUT_NOT ,"DSS_INPUT_NOT" ,sizeof(UINT8) ,dss_input_reset ,dss_input_step }, | |
| 176 | { DSS_INPUT_PULSE ,"DSS_INPUT_PULSE" ,sizeof(UINT8) ,dss_input_reset ,dss_input_pulse_step }, | |
| 177 | { DSS_INPUT_STREAM,"DSS_INPUT_STREAM",0 ,dss_input_stream_reset,dss_input_stream_step}, | |
| 171 | { DSS_ADJUSTMENT ,"DSS_ADJUSTMENT" , 1 ,sizeof(struct dss_adjustment_context) ,dss_adjustment_reset ,dss_adjustment_step }, | |
| 172 | { DSS_CONSTANT ,"DSS_CONSTANT" , 1 ,0 ,NULL ,dss_constant_step }, | |
| 173 | { DSS_INPUT_DATA ,"DSS_INPUT_DATA" , 1 ,sizeof(UINT8) ,dss_input_reset ,dss_input_step }, | |
| 174 | { DSS_INPUT_LOGIC ,"DSS_INPUT_LOGIC" , 1 ,sizeof(UINT8) ,dss_input_reset ,dss_input_step }, | |
| 175 | { DSS_INPUT_NOT ,"DSS_INPUT_NOT" , 1 ,sizeof(UINT8) ,dss_input_reset ,dss_input_step }, | |
| 176 | { DSS_INPUT_PULSE ,"DSS_INPUT_PULSE" , 1 ,sizeof(UINT8) ,dss_input_reset ,dss_input_pulse_step }, | |
| 177 | { DSS_INPUT_STREAM,"DSS_INPUT_STREAM", 1 ,0 ,dss_input_stream_reset,dss_input_stream_step}, | |
| 178 | 178 | |
| 179 | 179 | /* from disc_wav.c */ |
| 180 | 180 | /* Generic modules */ |
| 181 | { DSS_COUNTER ,"DSS_COUNTER" ,sizeof(struct dss_counter_context) ,dss_counter_reset ,dss_counter_step }, | |
| 182 | { DSS_LFSR_NOISE ,"DSS_LFSR_NOISE" ,sizeof(struct dss_lfsr_context) ,dss_lfsr_reset ,dss_lfsr_step }, | |
| 183 | { DSS_NOISE ,"DSS_NOISE" ,sizeof(struct dss_noise_context) ,dss_noise_reset ,dss_noise_step }, | |
| 184 | { DSS_NOTE ,"DSS_NOTE" ,sizeof(struct dss_note_context) ,dss_note_reset ,dss_note_step }, | |
| 185 | { DSS_SAWTOOTHWAVE,"DSS_SAWTOOTHWAVE",sizeof(struct dss_sawtoothwave_context),dss_sawtoothwave_reset,dss_sawtoothwave_step}, | |
| 186 | { DSS_SINEWAVE ,"DSS_SINEWAVE" ,sizeof(struct dss_sinewave_context) ,dss_sinewave_reset ,dss_sinewave_step }, | |
| 187 | { DSS_SQUAREWAVE ,"DSS_SQUAREWAVE" ,sizeof(struct dss_squarewave_context) ,dss_squarewave_reset ,dss_squarewave_step }, | |
| 188 | { DSS_SQUAREWFIX ,"DSS_SQUAREWFIX" ,sizeof(struct dss_squarewfix_context) ,dss_squarewfix_reset ,dss_squarewfix_step }, | |
| 189 | { DSS_SQUAREWAVE2 ,"DSS_SQUAREWAVE2" ,sizeof(struct dss_squarewave_context) ,dss_squarewave2_reset ,dss_squarewave2_step }, | |
| 190 | { DSS_TRIANGLEWAVE,"DSS_TRIANGLEWAVE",sizeof(struct dss_trianglewave_context),dss_trianglewave_reset,dss_trianglewave_step}, | |
| 181 | { DSS_COUNTER ,"DSS_COUNTER" , 1 ,sizeof(struct dss_counter_context) ,dss_counter_reset ,dss_counter_step }, | |
| 182 | { DSS_LFSR_NOISE ,"DSS_LFSR_NOISE" , 1 ,sizeof(struct dss_lfsr_context) ,dss_lfsr_reset ,dss_lfsr_step }, | |
| 183 | { DSS_NOISE ,"DSS_NOISE" , 1 ,sizeof(struct dss_noise_context) ,dss_noise_reset ,dss_noise_step }, | |
| 184 | { DSS_NOTE ,"DSS_NOTE" , 1 ,sizeof(struct dss_note_context) ,dss_note_reset ,dss_note_step }, | |
| 185 | { DSS_SAWTOOTHWAVE,"DSS_SAWTOOTHWAVE", 1 ,sizeof(struct dss_sawtoothwave_context),dss_sawtoothwave_reset,dss_sawtoothwave_step}, | |
| 186 | { DSS_SINEWAVE ,"DSS_SINEWAVE" , 1 ,sizeof(struct dss_sinewave_context) ,dss_sinewave_reset ,dss_sinewave_step }, | |
| 187 | { DSS_SQUAREWAVE ,"DSS_SQUAREWAVE" , 1 ,sizeof(struct dss_squarewave_context) ,dss_squarewave_reset ,dss_squarewave_step }, | |
| 188 | { DSS_SQUAREWFIX ,"DSS_SQUAREWFIX" , 1 ,sizeof(struct dss_squarewfix_context) ,dss_squarewfix_reset ,dss_squarewfix_step }, | |
| 189 | { DSS_SQUAREWAVE2 ,"DSS_SQUAREWAVE2" , 1 ,sizeof(struct dss_squarewave_context) ,dss_squarewave2_reset ,dss_squarewave2_step }, | |
| 190 | { DSS_TRIANGLEWAVE,"DSS_TRIANGLEWAVE", 1 ,sizeof(struct dss_trianglewave_context),dss_trianglewave_reset,dss_trianglewave_step}, | |
| 191 | 191 | /* Component specific modules */ |
| 192 | { DSS_INVERTER_OSC ,"DSS_INVERTER_OSC" ,sizeof(struct dss_inverter_osc_context) ,dss_inverter_osc_reset ,dss_inverter_osc_step }, | |
| 193 | { DSS_OP_AMP_OSC ,"DSS_OP_AMP_OSC" ,sizeof(struct dss_op_amp_osc_context) ,dss_op_amp_osc_reset ,dss_op_amp_osc_step }, | |
| 194 | { DSS_SCHMITT_OSC ,"DSS_SCHMITT_OSC" ,sizeof(struct dss_schmitt_osc_context) ,dss_schmitt_osc_reset ,dss_schmitt_osc_step }, | |
| 192 | { DSS_INVERTER_OSC ,"DSS_INVERTER_OSC" , 1 ,sizeof(struct dss_inverter_osc_context) ,dss_inverter_osc_reset ,dss_inverter_osc_step }, | |
| 193 | { DSS_OP_AMP_OSC ,"DSS_OP_AMP_OSC" , 1 ,sizeof(struct dss_op_amp_osc_context) ,dss_op_amp_osc_reset ,dss_op_amp_osc_step }, | |
| 194 | { DSS_SCHMITT_OSC ,"DSS_SCHMITT_OSC" , 1 ,sizeof(struct dss_schmitt_osc_context) ,dss_schmitt_osc_reset ,dss_schmitt_osc_step }, | |
| 195 | 195 | /* Not yet implemented */ |
| 196 | { DSS_ADSR ,"DSS_ADSR" ,sizeof(struct dss_adsr_context) ,dss_adsrenv_reset ,dss_adsrenv_step }, | |
| 196 | { DSS_ADSR ,"DSS_ADSR" , 1 ,sizeof(struct dss_adsr_context) ,dss_adsrenv_reset ,dss_adsrenv_step }, | |
| 197 | 197 | |
| 198 | 198 | /* from disc_mth.c */ |
| 199 | 199 | /* Generic modules */ |
| 200 | { DST_ADDER ,"DST_ADDER" ,0 ,NULL ,dst_adder_step }, | |
| 201 | { DST_CLAMP ,"DST_CLAMP" ,0 ,NULL ,dst_clamp_step }, | |
| 202 | { DST_DIVIDE ,"DST_DIVIDE" ,0 ,NULL ,dst_divide_step }, | |
| 203 | { DST_GAIN ,"DST_GAIN" ,0 ,NULL ,dst_gain_step }, | |
| 204 | { DST_LOGIC_INV ,"DST_LOGIC_INV" ,0 ,NULL ,dst_logic_inv_step }, | |
| 205 | { DST_LOGIC_AND ,"DST_LOGIC_AND" ,0 ,NULL ,dst_logic_and_step }, | |
| 206 | { DST_LOGIC_NAND ,"DST_LOGIC_NAND" ,0 ,NULL ,dst_logic_nand_step }, | |
| 207 | { DST_LOGIC_OR ,"DST_LOGIC_OR" ,0 ,NULL ,dst_logic_or_step }, | |
| 208 | { DST_LOGIC_NOR ,"DST_LOGIC_NOR" ,0 ,NULL ,dst_logic_nor_step }, | |
| 209 | { DST_LOGIC_XOR ,"DST_LOGIC_XOR" ,0 ,NULL ,dst_logic_xor_step }, | |
| 210 | { DST_LOGIC_NXOR ,"DST_LOGIC_NXOR" ,0 ,NULL ,dst_logic_nxor_step }, | |
| 211 | { DST_LOGIC_DFF ,"DST_LOGIC_DFF" ,sizeof(struct dst_flipflop_context) ,dst_logic_ff_reset ,dst_logic_dff_step }, | |
| 212 | { DST_LOGIC_JKFF ,"DST_LOGIC_JKFF" ,sizeof(struct dst_flipflop_context) ,dst_logic_ff_reset ,dst_logic_jkff_step }, | |
| 213 | { DST_LOOKUP_TABLE,"DST_LOOKUP_TABLE",0 ,NULL ,dst_lookup_table_step}, | |
| 214 | { DST_MULTIPLEX ,"DST_MULTIPLEX" ,sizeof(struct dst_size_context) ,dst_multiplex_reset ,dst_multiplex_step }, | |
| 215 | { DST_ONESHOT ,"DST_ONESHOT" ,sizeof(struct dst_oneshot_context) ,dst_oneshot_reset ,dst_oneshot_step }, | |
| 216 | { DST_RAMP ,"DST_RAMP" ,sizeof(struct dss_ramp_context) ,dst_ramp_reset ,dst_ramp_step }, | |
| 217 | { DST_SAMPHOLD ,"DST_SAMPHOLD" ,sizeof(struct dst_samphold_context) ,dst_samphold_reset ,dst_samphold_step }, | |
| 218 | { DST_SWITCH ,"DST_SWITCH" ,0 ,NULL ,dst_switch_step }, | |
| 219 | { DST_ASWITCH ,"DST_ASWITCH" ,0 ,NULL ,dst_aswitch_step }, | |
| 220 | { DST_TRANSFORM ,"DST_TRANSFORM" ,0 ,NULL ,dst_transform_step }, | |
| 200 | { DST_ADDER ,"DST_ADDER" , 1 ,0 ,NULL ,dst_adder_step }, | |
| 201 | { DST_CLAMP ,"DST_CLAMP" , 1 ,0 ,NULL ,dst_clamp_step }, | |
| 202 | { DST_DIVIDE ,"DST_DIVIDE" , 1 ,0 ,NULL ,dst_divide_step }, | |
| 203 | { DST_GAIN ,"DST_GAIN" , 1 ,0 ,NULL ,dst_gain_step }, | |
| 204 | { DST_LOGIC_INV ,"DST_LOGIC_INV" , 1 ,0 ,NULL ,dst_logic_inv_step }, | |
| 205 | { DST_LOGIC_AND ,"DST_LOGIC_AND" , 1 ,0 ,NULL ,dst_logic_and_step }, | |
| 206 | { DST_LOGIC_NAND ,"DST_LOGIC_NAND" , 1 ,0 ,NULL ,dst_logic_nand_step }, | |
| 207 | { DST_LOGIC_OR ,"DST_LOGIC_OR" , 1 ,0 ,NULL ,dst_logic_or_step }, | |
| 208 | { DST_LOGIC_NOR ,"DST_LOGIC_NOR" , 1 ,0 ,NULL ,dst_logic_nor_step }, | |
| 209 | { DST_LOGIC_XOR ,"DST_LOGIC_XOR" , 1 ,0 ,NULL ,dst_logic_xor_step }, | |
| 210 | { DST_LOGIC_NXOR ,"DST_LOGIC_NXOR" , 1 ,0 ,NULL ,dst_logic_nxor_step }, | |
| 211 | { DST_LOGIC_DFF ,"DST_LOGIC_DFF" , 1 ,sizeof(struct dst_flipflop_context) ,dst_logic_ff_reset ,dst_logic_dff_step }, | |
| 212 | { DST_LOGIC_JKFF ,"DST_LOGIC_JKFF" , 1 ,sizeof(struct dst_flipflop_context) ,dst_logic_ff_reset ,dst_logic_jkff_step }, | |
| 213 | { DST_LOOKUP_TABLE,"DST_LOOKUP_TABLE", 1 ,0 ,NULL ,dst_lookup_table_step}, | |
| 214 | { DST_MULTIPLEX ,"DST_MULTIPLEX" , 1 ,sizeof(struct dst_size_context) ,dst_multiplex_reset ,dst_multiplex_step }, | |
| 215 | { DST_ONESHOT ,"DST_ONESHOT" , 1 ,sizeof(struct dst_oneshot_context) ,dst_oneshot_reset ,dst_oneshot_step }, | |
| 216 | { DST_RAMP ,"DST_RAMP" , 1 ,sizeof(struct dss_ramp_context) ,dst_ramp_reset ,dst_ramp_step }, | |
| 217 | { DST_SAMPHOLD ,"DST_SAMPHOLD" , 1 ,sizeof(struct dst_samphold_context) ,dst_samphold_reset ,dst_samphold_step }, | |
| 218 | { DST_SWITCH ,"DST_SWITCH" , 1 ,0 ,NULL ,dst_switch_step }, | |
| 219 | { DST_ASWITCH ,"DST_ASWITCH" , 1 ,0 ,NULL ,dst_aswitch_step }, | |
| 220 | { DST_TRANSFORM ,"DST_TRANSFORM" , 1 ,0 ,NULL ,dst_transform_step }, | |
| 221 | 221 | /* Component specific */ |
| 222 | { DST_COMP_ADDER ,"DST_COMP_ADDER" ,0 ,NULL ,dst_comp_adder_step }, | |
| 223 | { DST_DAC_R1 ,"DST_DAC_R1" ,sizeof(struct dst_dac_r1_context) ,dst_dac_r1_reset ,dst_dac_r1_step }, | |
| 224 | { DST_DIODE_MIX ,"DST_DIODE_MIX" ,sizeof(struct dst_size_context) ,dst_diode_mix_reset ,dst_diode_mix_step }, | |
| 225 | { DST_INTEGRATE ,"DST_INTEGRATE" ,sizeof(struct dst_integrate_context) ,dst_integrate_reset ,dst_integrate_step }, | |
| 226 | { DST_MIXER ,"DST_MIXER" ,sizeof(struct dst_mixer_context) ,dst_mixer_reset ,dst_mixer_step }, | |
| 227 | { DST_OP_AMP ,"DST_OP_AMP" ,sizeof(struct dst_op_amp_context) ,dst_op_amp_reset ,dst_op_amp_step }, | |
| 228 | { DST_OP_AMP_1SHT ,"DST_OP_AMP_1SHT" ,sizeof(struct dst_op_amp_1sht_context) ,dst_op_amp_1sht_reset ,dst_op_amp_1sht_step }, | |
| 229 | { DST_TVCA_OP_AMP ,"DST_TVCA_OP_AMP" ,sizeof(struct dst_tvca_op_amp_context) ,dst_tvca_op_amp_reset ,dst_tvca_op_amp_step }, | |
| 230 | { DST_VCA ,"DST_VCA" ,0 ,NULL ,NULL }, | |
| 222 | { DST_COMP_ADDER ,"DST_COMP_ADDER" , 1 ,0 ,NULL ,dst_comp_adder_step }, | |
| 223 | { DST_DAC_R1 ,"DST_DAC_R1" , 1 ,sizeof(struct dst_dac_r1_context) ,dst_dac_r1_reset ,dst_dac_r1_step }, | |
| 224 | { DST_DIODE_MIX ,"DST_DIODE_MIX" , 1 ,sizeof(struct dst_size_context) ,dst_diode_mix_reset ,dst_diode_mix_step }, | |
| 225 | { DST_INTEGRATE ,"DST_INTEGRATE" , 1 ,sizeof(struct dst_integrate_context) ,dst_integrate_reset ,dst_integrate_step }, | |
| 226 | { DST_MIXER ,"DST_MIXER" , 1 ,sizeof(struct dst_mixer_context) ,dst_mixer_reset ,dst_mixer_step }, | |
| 227 | { DST_OP_AMP ,"DST_OP_AMP" , 1 ,sizeof(struct dst_op_amp_context) ,dst_op_amp_reset ,dst_op_amp_step }, | |
| 228 | { DST_OP_AMP_1SHT ,"DST_OP_AMP_1SHT" , 1 ,sizeof(struct dst_op_amp_1sht_context) ,dst_op_amp_1sht_reset ,dst_op_amp_1sht_step }, | |
| 229 | { DST_TVCA_OP_AMP ,"DST_TVCA_OP_AMP" , 1 ,sizeof(struct dst_tvca_op_amp_context) ,dst_tvca_op_amp_reset ,dst_tvca_op_amp_step }, | |
| 230 | { DST_VCA ,"DST_VCA" , 1 ,0 ,NULL ,NULL }, | |
| 231 | 231 | |
| 232 | 232 | /* from disc_flt.c */ |
| 233 | 233 | /* Generic modules */ |
| 234 | { DST_FILTER1 ,"DST_FILTER1" ,sizeof(struct dss_filter1_context) ,dst_filter1_reset ,dst_filter1_step }, | |
| 235 | { DST_FILTER2 ,"DST_FILTER2" ,sizeof(struct dss_filter2_context) ,dst_filter2_reset ,dst_filter2_step }, | |
| 234 | { DST_FILTER1 ,"DST_FILTER1" , 1 ,sizeof(struct dss_filter1_context) ,dst_filter1_reset ,dst_filter1_step }, | |
| 235 | { DST_FILTER2 ,"DST_FILTER2" , 1 ,sizeof(struct dss_filter2_context) ,dst_filter2_reset ,dst_filter2_step }, | |
| 236 | 236 | /* Component specific modules */ |
| 237 | { DST_CRFILTER ,"DST_CRFILTER" ,sizeof(struct dst_rcfilter_context) ,dst_crfilter_reset ,dst_crfilter_step }, | |
| 238 | { DST_OP_AMP_FILT ,"DST_OP_AMP_FILT" ,sizeof(struct dst_op_amp_filt_context) ,dst_op_amp_filt_reset ,dst_op_amp_filt_step }, | |
| 239 | { DST_RCDISC ,"DST_RCDISC" ,sizeof(struct dst_rcdisc_context) ,dst_rcdisc_reset ,dst_rcdisc_step }, | |
| 240 | { DST_RCDISC2 ,"DST_RCDISC2" ,sizeof(struct dst_rcdisc_context) ,dst_rcdisc2_reset ,dst_rcdisc2_step }, | |
| 241 | { DST_RCDISC3 ,"DST_RCDISC3" ,sizeof(struct dst_rcdisc_context) ,dst_rcdisc3_reset ,dst_rcdisc3_step }, | |
| 242 | { DST_RCDISC4 ,"DST_RCDISC4" ,sizeof(struct dst_rcdisc4_context) ,dst_rcdisc4_reset ,dst_rcdisc4_step }, | |
| 243 | { DST_RCDISC5 ,"DST_RCDISC5" ,sizeof(struct dst_rcdisc_context) ,dst_rcdisc5_reset ,dst_rcdisc5_step }, | |
| 244 | { DST_RCINTEGRATE ,"DST_RCINTEGRATE" ,sizeof(struct dst_rcdisc_context) ,dst_rcintegrate_reset ,dst_rcintegrate_step }, | |
| 245 | { DST_RCDISC_MOD ,"DST_RCDISC_MOD" ,sizeof(struct dst_rcdisc_context) ,dst_rcdisc_mod_reset ,dst_rcdisc_mod_step }, | |
| 246 | { DST_RCFILTER ,"DST_RCFILTER" ,sizeof(struct dst_rcfilter_context) ,dst_rcfilter_reset ,dst_rcfilter_step }, | |
| 237 | { DST_CRFILTER ,"DST_CRFILTER" , 1 ,sizeof(struct dst_rcfilter_context) ,dst_crfilter_reset ,dst_crfilter_step }, | |
| 238 | { DST_OP_AMP_FILT ,"DST_OP_AMP_FILT" , 1 ,sizeof(struct dst_op_amp_filt_context) ,dst_op_amp_filt_reset ,dst_op_amp_filt_step }, | |
| 239 | { DST_RCDISC ,"DST_RCDISC" , 1 ,sizeof(struct dst_rcdisc_context) ,dst_rcdisc_reset ,dst_rcdisc_step }, | |
| 240 | { DST_RCDISC2 ,"DST_RCDISC2" , 1 ,sizeof(struct dst_rcdisc_context) ,dst_rcdisc2_reset ,dst_rcdisc2_step }, | |
| 241 | { DST_RCDISC3 ,"DST_RCDISC3" , 1 ,sizeof(struct dst_rcdisc_context) ,dst_rcdisc3_reset ,dst_rcdisc3_step }, | |
| 242 | { DST_RCDISC4 ,"DST_RCDISC4" , 1 ,sizeof(struct dst_rcdisc4_context) ,dst_rcdisc4_reset ,dst_rcdisc4_step }, | |
| 243 | { DST_RCDISC5 ,"DST_RCDISC5" , 1 ,sizeof(struct dst_rcdisc_context) ,dst_rcdisc5_reset ,dst_rcdisc5_step }, | |
| 244 | { DST_RCINTEGRATE ,"DST_RCINTEGRATE" , 1 ,sizeof(struct dst_rcdisc_context) ,dst_rcintegrate_reset ,dst_rcintegrate_step }, | |
| 245 | { DST_RCDISC_MOD ,"DST_RCDISC_MOD" , 1 ,sizeof(struct dst_rcdisc_context) ,dst_rcdisc_mod_reset ,dst_rcdisc_mod_step }, | |
| 246 | { DST_RCFILTER ,"DST_RCFILTER" , 1 ,sizeof(struct dst_rcfilter_context) ,dst_rcfilter_reset ,dst_rcfilter_step }, | |
| 247 | { DST_RCFILTER_SW ,"DST_RCFILTER_SW" , 1 ,sizeof(struct dst_rcfilter_sw_context) ,dst_rcfilter_sw_reset ,dst_rcfilter_sw_step }, | |
| 247 | 248 | /* For testing - seem to be buggered. Use versions not ending in N. */ |
| 248 | { DST_RCFILTERN ,"DST_RCFILTERN" ,sizeof(struct dss_filter1_context) ,dst_rcfilterN_reset ,dst_filter1_step }, | |
| 249 | { DST_RCDISCN ,"DST_RCDISCN" ,sizeof(struct dss_filter1_context) ,dst_rcdiscN_reset ,dst_rcdiscN_step }, | |
| 250 | { DST_RCDISC2N ,"DST_RCDISC2N" ,sizeof(struct dss_rcdisc2_context) ,dst_rcdisc2N_reset ,dst_rcdisc2N_step }, | |
| 249 | { DST_RCFILTERN ,"DST_RCFILTERN" , 1 ,sizeof(struct dss_filter1_context) ,dst_rcfilterN_reset ,dst_filter1_step }, | |
| 250 | { DST_RCDISCN ,"DST_RCDISCN" , 1 ,sizeof(struct dss_filter1_context) ,dst_rcdiscN_reset ,dst_rcdiscN_step }, | |
| 251 | { DST_RCDISC2N ,"DST_RCDISC2N" , 1 ,sizeof(struct dss_rcdisc2_context) ,dst_rcdisc2N_reset ,dst_rcdisc2N_step }, | |
| 251 | 252 | |
| 252 | 253 | /* from disc_dev.c */ |
| 253 | 254 | /* generic modules */ |
| 254 | { DST_CUSTOM ,"DST_CUSTOM" ,0 ,NULL ,NULL }, | |
| 255 | { DST_CUSTOM ,"DST_CUSTOM" , 1 ,0 ,NULL ,NULL }, | |
| 255 | 256 | /* Component specific modules */ |
| 256 | { DSD_555_ASTBL ,"DSD_555_ASTBL" ,sizeof(struct dsd_555_astbl_context) ,dsd_555_astbl_reset ,dsd_555_astbl_step }, | |
| 257 | { DSD_555_MSTBL ,"DSD_555_MSTBL" ,sizeof(struct dsd_555_mstbl_context) ,dsd_555_mstbl_reset ,dsd_555_mstbl_step }, | |
| 258 | { DSD_555_CC ,"DSD_555_CC" ,sizeof(struct dsd_555_cc_context) ,dsd_555_cc_reset ,dsd_555_cc_step }, | |
| 259 | { DSD_555_VCO1 ,"DSD_555_VCO1" ,sizeof(struct dsd_555_vco1_context) ,dsd_555_vco1_reset ,dsd_555_vco1_step }, | |
| 260 | { DSD_566 ,"DSD_566" ,sizeof(struct dsd_566_context) ,dsd_566_reset ,dsd_566_step }, | |
| 261 | { DSD_LS624 ,"DSD_LS624" ,sizeof(struct dsd_ls624_context) ,dsd_ls624_reset ,dsd_ls624_step }, | |
| 257 | { DSD_555_ASTBL ,"DSD_555_ASTBL" , 1 ,sizeof(struct dsd_555_astbl_context) ,dsd_555_astbl_reset ,dsd_555_astbl_step }, | |
| 258 | { DSD_555_MSTBL ,"DSD_555_MSTBL" , 1 ,sizeof(struct dsd_555_mstbl_context) ,dsd_555_mstbl_reset ,dsd_555_mstbl_step }, | |
| 259 | { DSD_555_CC ,"DSD_555_CC" , 1 ,sizeof(struct dsd_555_cc_context) ,dsd_555_cc_reset ,dsd_555_cc_step }, | |
| 260 | { DSD_555_VCO1 ,"DSD_555_VCO1" , 1 ,sizeof(struct dsd_555_vco1_context) ,dsd_555_vco1_reset ,dsd_555_vco1_step }, | |
| 261 | { DSD_566 ,"DSD_566" , 1 ,sizeof(struct dsd_566_context) ,dsd_566_reset ,dsd_566_step }, | |
| 262 | { DSD_LS624 ,"DSD_LS624" , 1 ,sizeof(struct dsd_ls624_context) ,dsd_ls624_reset ,dsd_ls624_step }, | |
| 262 | 263 | /* must be the last one */ |
| 263 | { DSS_NULL ,"DSS_NULL" ,0 ,NULL ,NULL } | |
| 264 | { DSS_NULL ,"DSS_NULL" , 0 ,0 ,NULL ,NULL } | |
| 264 | 265 | }; |
| 265 | 266 | |
| 266 | 267 | |
| r2241 | r2242 | |
| 275 | 276 | { |
| 276 | 277 | discrete_info *info = chip ? chip : discrete_current_context; |
| 277 | 278 | if (node < NODE_START || node > NODE_END) return NULL; |
| 278 | return info->indexed_node[ | |
| 279 | return info->indexed_node[ | |
| 279 | 280 | } |
| 280 | 281 | |
| 281 | 282 | |
| r2241 | r2242 | |
| 323 | 324 | |
| 324 | 325 | /* make sure the node type is valid */ |
| 325 | 326 | if (intf[info->node_count].type > DSO_OUTPUT) |
| 326 | fatalerror("discrete_start() - Invalid function type on NODE_%02d", intf[info->node_count].node - NODE_START); | |
| 327 | fatalerror("discrete_start() - Invalid function type on NODE_%02d", NODE_INDEX(intf[info->node_count].node) ); | |
| 328 | ||
| 329 | /* make sure this is a main node */ | |
| 330 | if (NODE_CHILD_NODE_NUM(intf[info->node_count].node) > 0) | |
| 331 | fatalerror("discrete_start() - Child node number on NODE_%02d", NODE_INDEX(intf[info->node_count].node) ); | |
| 332 | ||
| 333 | ||
| 327 | 334 | } |
| 328 | 335 | info->node_count++; |
| 329 | 336 | discrete_log("discrete_start() - Sanity check counted %d nodes", info->node_count); |
| r2241 | r2242 | |
| 408 | 415 | { |
| 409 | 416 | node_description *node = info->running_order[nodenum]; |
| 410 | 417 | |
| 411 | node->output = 0; | |
| 418 | node->output[0] = 0; | |
| 412 | 419 | |
| 413 | 420 | /* if the node has a reset function, call it */ |
| 414 | 421 | if (node->module.reset) |
| r2241 | r2242 | |
| 570 | 577 | /* otherwise, make sure we are not a duplicate, and put ourselves into the indexed list */ |
| 571 | 578 | else |
| 572 | 579 | { |
| 573 | if (info->indexed_node[block->node - NODE_START]) | |
| 574 | fatalerror("init_nodes() - Duplicate entries for NODE_%02d", block->node - NODE_START); | |
| 575 | info->indexed_node[block->node - NODE_START] = node; | |
| 580 | if (info->indexed_node[NODE_INDEX(block->node)]) | |
| 581 | fatalerror("init_nodes() - Duplicate entries for NODE_%02d", NODE_INDEX(block->node)); | |
| 582 | info->indexed_node[NODE_INDEX(block->node)] = node; | |
| 576 | 583 | } |
| 577 | 584 | |
| 578 | 585 | /* find the requested module */ |
| r2241 | r2242 | |
| 580 | 587 | if (module_list[modulenum].type == block->type) |
| 581 | 588 | break; |
| 582 | 589 | if (module_list[modulenum].type != block->type) |
| 583 | fatalerror("init_nodes() - Unable to find discrete module type %d for NODE_%02d", block->type, block->node | |
| 590 | fatalerror("init_nodes() - Unable to find discrete module type %d for NODE_%02d", block->type, NODE_INDEX(block->node) | |
| 584 | 591 | |
| 585 | 592 | /* static inits */ |
| 586 | 593 | node->node = block->node; |
| 587 | 594 | node->module = module_list[modulenum]; |
| 588 | node->output = 0.0; | |
| 595 | node->output[0] = 0.0; | |
| 589 | 596 | node->block = block; |
| 590 | 597 | |
| 591 | 598 | node->active_inputs = block->active_inputs; |
| r2241 | r2242 | |
| 658 | 665 | /* if this input is node-based, find the node in the indexed list */ |
| 659 | 666 | if IS_VALUE_A_NODE(inputnode) |
| 660 | 667 | { |
| 661 | node_description *node_ref = info->indexed_node[inputnode | |
| 668 | node_description *node_ref = info->indexed_node[NODE_INDEX(inputnode) | |
| 662 | 669 | if (!node_ref) |
| 663 | fatalerror("discrete_start - Node NODE_%02d referenced a non existent node NODE_%02d", node->node | |
| 670 | fatalerror("discrete_start - Node NODE_%02d referenced a non existent node NODE_%02d", NODE_INDEX(node->node), | |
| 664 | 671 | |
| 665 | node->input[inputnum] = &(node_ref->output); // Link referenced node out to input | |
| 672 | if (NODE_CHILD_NODE_NUM(inputnode) >= node_ref->module.num_output) | |
| 673 | 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)); | |
| 674 | ||
| 675 | node->input[inputnum] = &(node_ref->output[NODE_CHILD_NODE_NUM(inputnode)]); // Link referenced node out to input | |
| 666 | 676 | node->input_is_node |= 1 << inputnum; // Bit flag if input is node |
| 667 | 677 | } |
| 668 | 678 | } |
| r2241 | r2242 | |
| 708 | 718 | fprintf(info->disc_csv_file[log_num], "\"Sample\""); |
| 709 | 719 | for (node_num = 0; node_num < info->csvlog_node[log_num]->active_inputs; node_num++) |
| 710 | 720 | { |
| 711 | fprintf(info->disc_csv_file[log_num], ", \"NODE_%2d\"", info->csvlog_node[log_num]->block->input_node[node_num] | |
| 721 | fprintf(info->disc_csv_file[log_num], ", \"NODE_%2d\"", NODE_INDEX(info->csvlog_node[log_num]->block->input_node[node_num]) | |
| 712 | 722 | } |
| 713 | 723 | fprintf(info->disc_csv_file[log_num], "\n"); |
| 714 | 724 | } |
| r2241 | r2242 | |
| 750 | 760 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 751 | 761 | case SNDINFO_STR_NAME: info->s = "Discrete"; break; |
| 752 | 762 | case SNDINFO_STR_CORE_FAMILY: info->s = "Analog"; break; |
| 753 | case SNDINFO_STR_CORE_VERSION: info->s = "1. | |
| 763 | case SNDINFO_STR_CORE_VERSION: info->s = "1.1"; break; | |
| 754 | 764 | case SNDINFO_STR_CORE_FILE: info->s = __FILE__; break; |
| 755 | 765 | case SNDINFO_STR_CORE_CREDITS: info->s = "Copyright Nicola Salmoria and the MAME Team"; break; |
| 756 | 766 | } |
| r2241 | r2242 | |
|---|---|---|
| 42 | 42 | * emulation. So you will need to convert the schematic design into |
| 43 | 43 | * a logic block representation. |
| 44 | 44 | * |
| 45 | * There is the possibility to support multiple outputs per module. | |
| 46 | * In this case, NODE_XXX is the default ouput. Alternative outputs may | |
| 47 | * be accessed by using NODE_XXX_YY where 00<=Y<08. | |
| 48 | * | |
| 49 | * You may also access nodes with a macros: | |
| 50 | * | |
| 51 | * NODE_XXX = NODE_SUB(XXX, 0) | |
| 52 | * NODE_XXX = NODE(XXX) | |
| 53 | * NODE_XXX_YY = NODE_SUB(XXX, YY) with YY != 00 | |
| 54 | * | |
| 45 | 55 | * One node point may feed a number of inputs, for example you could |
| 46 | 56 | * connect the output of a DISCRETE_SINEWAVE to the AMPLITUDE input |
| 47 | 57 | * of another DISCRETE_SINEWAVE to amplitude modulate its output and |
| r2241 | r2242 | |
| 2585 | 2595 | * EXAMPLES: see Polaris |
| 2586 | 2596 | * |
| 2587 | 2597 | *********************************************************************** |
| 2598 | * | |
| 2599 | * DISCRETE_RCFILTER_SW - Multiple switchable RC filters | |
| 2600 | * | |
| 2601 | * R | |
| 2602 | * INPUT >-----------ZZZZ-+-------+----......-----> Output | |
| 2603 | * | | | |
| 2604 | * +-+ +-+ | |
| 2605 | * SWITCH > Bit 0 ---->F1 | | F2 | | | |
| 2606 | * '-' ^ '-' | |
| 2607 | * Bit 1 ---------|----' | | |
| 2608 | * | | | |
| 2609 | * Bit ... --- --- | |
| 2610 | * --- C1 --- C2 | |
| 2611 | * | | | |
| 2612 | * GND GND | |
| 2613 | * | |
| 2614 | * | |
| 2615 | * Declaration syntax | |
| 2616 | * | |
| 2617 | * DISCRETE_RCFILTER_SW(name of node, | |
| 2618 | * enable, | |
| 2619 | * input node (or value), | |
| 2620 | * switch node (or value), | |
| 2621 | * R in Ohms, | |
| 2622 | * C1 in Farads, | |
| 2623 | * C2 in Farads, | |
| 2624 | * C3 in Farads, | |
| 2625 | * C4 in Farads) | |
| 2626 | * | |
| 2627 | * This is a typical filter circuit in circusc or scramble. | |
| 2628 | * Switches are usually CD4066 with a "open" resistance of | |
| 2629 | * typical 470 Ohms at 5V. | |
| 2630 | * This circuit supports up to 4 filters. | |
| 2631 | * | |
| 2632 | * EXAMPLES: see circusc | |
| 2633 | * | |
| 2634 | *********************************************************************** | |
| 2588 | 2635 | ======================================================================= |
| 2589 | 2636 | * from from disc_flt.c |
| 2590 | 2637 | * Component specific modules |
| r2241 | r2242 | |
| 3076 | 3123 | #define DISCRETE_MAX_OUTPUTS 16 |
| 3077 | 3124 | #define DISCRETE_MAX_WAVELOGS 10 |
| 3078 | 3125 | #define DISCRETE_MAX_CSVLOGS 10 |
| 3126 | #define DISCRETE_MAX_NODE_OUTPUTS 8 | |
| 3079 | 3127 | |
| 3080 | 3128 | |
| 3081 | ||
| 3082 | 3129 | /************************************* |
| 3083 | 3130 | * |
| 3084 | 3131 | * Node-specific constants |
| r2241 | r2242 | |
| 3303 | 3350 | { |
| 3304 | 3351 | int type; |
| 3305 | 3352 | const char * name; |
| 3353 | int num_output; /* Total number of output nodes, i.e. Master node + 1 */ | |
| 3306 | 3354 | size_t contextsize; |
| 3307 | 3355 | void (*reset)(node_description *node); /* Called to reset a node after creation or system reset */ |
| 3308 | 3356 | void (*step)(node_description *node); /* Called to execute one time delta of output update */ |
| r2241 | r2242 | |
| 3318 | 3366 | |
| 3319 | 3367 | struct _node_description |
| 3320 | 3368 | { |
| 3321 | int node; /* The node's index number in the node list */ | |
| 3322 | double output; /* The node's last output value */ | |
| 3369 | int node; /* The node's index number in the node list */ | |
| 3370 | double output[DISCRETE_MAX_NODE_OUTPUTS]; /* The node's last output value */ | |
| 3323 | 3371 | |
| 3324 | int active_inputs; /* Number of active inputs on this node type */ | |
| 3325 | int input_is_node; /* Bit Flags. 1 in bit location means input_is_node */ | |
| 3326 | const double * input[DISCRETE_MAX_INPUTS]; /* Addresses of Input values */ | |
| 3372 | int active_inputs; /* Number of active inputs on this node type */ | |
| 3373 | int input_is_node; /* Bit Flags. 1 in bit location means input_is_node */ | |
| 3374 | const double * input[DISCRETE_MAX_INPUTS]; /* Addresses of Input values */ | |
| 3327 | 3375 | |
| 3328 | discrete_module module; /* Copy of the node's module info */ | |
| 3329 | const discrete_sound_block *block; /* Points to the node's setup block. */ | |
| 3330 | void * context; /* Contextual information specific to this node type */ | |
| 3331 | const char * name; /* Text name string for identification/debug */ | |
| 3332 | const void * custom; /* Custom function specific initialisation data */ | |
| 3376 | discrete_module module; /* Copy of the node's module info */ | |
| 3377 | const discrete_sound_block *block; /* Points to the node's setup block. */ | |
| 3378 | void * context; /* Contextual information specific to this node type */ | |
| 3379 | const char * name; /* Text name string for identification/debug */ | |
| 3380 | const void * custom; /* Custom function specific initialisation data */ | |
| 3333 | 3381 | }; |
| 3334 | 3382 | |
| 3335 | 3383 | |
| r2241 | r2242 | |
| 3635 | 3683 | * |
| 3636 | 3684 | *************************************/ |
| 3637 | 3685 | |
| 3638 | enum { NODE_00=0x40000000 | |
| 3639 | , NODE_01, NODE_02, NODE_03, NODE_04, NODE_05, NODE_06, NODE_07, NODE_08, NODE_09, | |
| 3640 | NODE_10, NODE_11, NODE_12, NODE_13, NODE_14, NODE_15, NODE_16, NODE_17, NODE_18, NODE_19, | |
| 3641 | NODE_20, NODE_21, NODE_22, NODE_23, NODE_24, NODE_25, NODE_26, NODE_27, NODE_28, NODE_29, | |
| 3642 | NODE_30, NODE_31, NODE_32, NODE_33, NODE_34, NODE_35, NODE_36, NODE_37, NODE_38, NODE_39, | |
| 3643 | NODE_40, NODE_41, NODE_42, NODE_43, NODE_44, NODE_45, NODE_46, NODE_47, NODE_48, NODE_49, | |
| 3644 | NODE_50, NODE_51, NODE_52, NODE_53, NODE_54, NODE_55, NODE_56, NODE_57, NODE_58, NODE_59, | |
| 3645 | NODE_60, NODE_61, NODE_62, NODE_63, NODE_64, NODE_65, NODE_66, NODE_67, NODE_68, NODE_69, | |
| 3646 | NODE_70, NODE_71, NODE_72, NODE_73, NODE_74, NODE_75, NODE_76, NODE_77, NODE_78, NODE_79, | |
| 3647 | NODE_80, NODE_81, NODE_82, NODE_83, NODE_84, NODE_85, NODE_86, NODE_87, NODE_88, NODE_89, | |
| 3648 | NODE_90, NODE_91, NODE_92, NODE_93, NODE_94, NODE_95, NODE_96, NODE_97, NODE_98, NODE_99, | |
| 3649 | NODE_100,NODE_101,NODE_102,NODE_103,NODE_104,NODE_105,NODE_106,NODE_107,NODE_108,NODE_109, | |
| 3650 | NODE_110,NODE_111,NODE_112,NODE_113,NODE_114,NODE_115,NODE_116,NODE_117,NODE_118,NODE_119, | |
| 3651 | NODE_120,NODE_121,NODE_122,NODE_123,NODE_124,NODE_125,NODE_126,NODE_127,NODE_128,NODE_129, | |
| 3652 | NODE_130,NODE_131,NODE_132,NODE_133,NODE_134,NODE_135,NODE_136,NODE_137,NODE_138,NODE_139, | |
| 3653 | NODE_140,NODE_141,NODE_142,NODE_143,NODE_144,NODE_145,NODE_146,NODE_147,NODE_148,NODE_149, | |
| 3654 | NODE_150,NODE_151,NODE_152,NODE_153,NODE_154,NODE_155,NODE_156,NODE_157,NODE_158,NODE_159, | |
| 3655 | NODE_160,NODE_161,NODE_162,NODE_163,NODE_164,NODE_165,NODE_166,NODE_167,NODE_168,NODE_169, | |
| 3656 | NODE_170,NODE_171,NODE_172,NODE_173,NODE_174,NODE_175,NODE_176,NODE_177,NODE_178,NODE_179, | |
| 3657 | NODE_180,NODE_181,NODE_182,NODE_183,NODE_184,NODE_185,NODE_186,NODE_187,NODE_188,NODE_189, | |
| 3658 | NODE_190,NODE_191,NODE_192,NODE_193,NODE_194,NODE_195,NODE_196,NODE_197,NODE_198,NODE_199, | |
| 3659 | NODE_200,NODE_201,NODE_202,NODE_203,NODE_204,NODE_205,NODE_206,NODE_207,NODE_208,NODE_209, | |
| 3660 | NODE_210,NODE_211,NODE_212,NODE_213,NODE_214,NODE_215,NODE_216,NODE_217,NODE_218,NODE_219, | |
| 3661 | NODE_220,NODE_221,NODE_222,NODE_223,NODE_224,NODE_225,NODE_226,NODE_227,NODE_228,NODE_229, | |
| 3662 | NODE_230,NODE_231,NODE_232,NODE_233,NODE_234,NODE_235,NODE_236,NODE_237,NODE_238,NODE_239, | |
| 3663 | NODE_240,NODE_241,NODE_242,NODE_243,NODE_244,NODE_245,NODE_246,NODE_247,NODE_248,NODE_249, | |
| 3664 | NODE_250,NODE_251,NODE_252,NODE_253,NODE_254,NODE_255,NODE_256,NODE_257,NODE_258,NODE_259, | |
| 3665 | NODE_260,NODE_261,NODE_262,NODE_263,NODE_264,NODE_265,NODE_266,NODE_267,NODE_268,NODE_269, | |
| 3666 | NODE_270,NODE_271,NODE_272,NODE_273,NODE_274,NODE_275,NODE_276,NODE_277,NODE_278,NODE_279, | |
| 3667 | NODE_280,NODE_281,NODE_282,NODE_283,NODE_284,NODE_285,NODE_286,NODE_287,NODE_288,NODE_289, | |
| 3668 | NODE_290,NODE_291,NODE_292,NODE_293,NODE_294,NODE_295,NODE_296,NODE_297,NODE_298,NODE_299 }; | |
| 3686 | #define NODE0_DEF(_x) NODE_ ## 0 ## _x = (0x40000000 + (_x) * DISCRETE_MAX_NODE_OUTPUTS), \ | |
| 3687 | NODE_ ## 0 ## _x ## _01, NODE_ ## 0 ## _x ## _02, NODE_ ## 0 ## _x ## _03, NODE_ ## 0 ## _x ## _04, \ | |
| 3688 | NODE_ ## 0 ## _x ## _05, NODE_ ## 0 ## _x ## _06, NODE_ ## 0 ## _x ## _07 | |
| 3689 | #define NODE_DEF(_x) NODE_ ## _x = (0x40000000 + (_x) * DISCRETE_MAX_NODE_OUTPUTS), \ | |
| 3690 | NODE_ ## _x ## _01, NODE_ ## _x ## _02, NODE_ ## _x ## _03, NODE_ ## _x ## _04, \ | |
| 3691 | NODE_ ## _x ## _05, NODE_ ## _x ## _06, NODE_ ## _x ## _07 | |
| 3669 | 3692 | |
| 3693 | enum { | |
| 3694 | NODE0_DEF(0), NODE0_DEF(1), NODE0_DEF(2), NODE0_DEF(3), NODE0_DEF(4), NODE0_DEF(5), NODE0_DEF(6), NODE0_DEF(7), NODE0_DEF(8), NODE0_DEF(9), | |
| 3695 | NODE_DEF(10), NODE_DEF(11), NODE_DEF(12), NODE_DEF(13), NODE_DEF(14), NODE_DEF(15), NODE_DEF(16), NODE_DEF(17), NODE_DEF(18), NODE_DEF(19), | |
| 3696 | NODE_DEF(20), NODE_DEF(21), NODE_DEF(22), NODE_DEF(23), NODE_DEF(24), NODE_DEF(25), NODE_DEF(26), NODE_DEF(27), NODE_DEF(28), NODE_DEF(29), | |
| 3697 | NODE_DEF(30), NODE_DEF(31), NODE_DEF(32), NODE_DEF(33), NODE_DEF(34), NODE_DEF(35), NODE_DEF(36), NODE_DEF(37), NODE_DEF(38), NODE_DEF(39), | |
| 3698 | NODE_DEF(40), NODE_DEF(41), NODE_DEF(42), NODE_DEF(43), NODE_DEF(44), NODE_DEF(45), NODE_DEF(46), NODE_DEF(47), NODE_DEF(48), NODE_DEF(49), | |
| 3699 | NODE_DEF(50), NODE_DEF(51), NODE_DEF(52), NODE_DEF(53), NODE_DEF(54), NODE_DEF(55), NODE_DEF(56), NODE_DEF(57), NODE_DEF(58), NODE_DEF(59), | |
| 3700 | NODE_DEF(60), NODE_DEF(61), NODE_DEF(62), NODE_DEF(63), NODE_DEF(64), NODE_DEF(65), NODE_DEF(66), NODE_DEF(67), NODE_DEF(68), NODE_DEF(69), | |
| 3701 | NODE_DEF(70), NODE_DEF(71), NODE_DEF(72), NODE_DEF(73), NODE_DEF(74), NODE_DEF(75), NODE_DEF(76), NODE_DEF(77), NODE_DEF(78), NODE_DEF(79), | |
| 3702 | NODE_DEF(80), NODE_DEF(81), NODE_DEF(82), NODE_DEF(83), NODE_DEF(84), NODE_DEF(85), NODE_DEF(86), NODE_DEF(87), NODE_DEF(88), NODE_DEF(89), | |
| 3703 | NODE_DEF(90), NODE_DEF(91), NODE_DEF(92), NODE_DEF(93), NODE_DEF(94), NODE_DEF(95), NODE_DEF(96), NODE_DEF(97), NODE_DEF(98), NODE_DEF(99), | |
| 3704 | NODE_DEF(100),NODE_DEF(101),NODE_DEF(102),NODE_DEF(103),NODE_DEF(104),NODE_DEF(105),NODE_DEF(106),NODE_DEF(107),NODE_DEF(108),NODE_DEF(109), | |
| 3705 | NODE_DEF(110),NODE_DEF(111),NODE_DEF(112),NODE_DEF(113),NODE_DEF(114),NODE_DEF(115),NODE_DEF(116),NODE_DEF(117),NODE_DEF(118),NODE_DEF(119), | |
| 3706 | NODE_DEF(120),NODE_DEF(121),NODE_DEF(122),NODE_DEF(123),NODE_DEF(124),NODE_DEF(125),NODE_DEF(126),NODE_DEF(127),NODE_DEF(128),NODE_DEF(129), | |
| 3707 | NODE_DEF(130),NODE_DEF(131),NODE_DEF(132),NODE_DEF(133),NODE_DEF(134),NODE_DEF(135),NODE_DEF(136),NODE_DEF(137),NODE_DEF(138),NODE_DEF(139), | |
| 3708 | NODE_DEF(140),NODE_DEF(141),NODE_DEF(142),NODE_DEF(143),NODE_DEF(144),NODE_DEF(145),NODE_DEF(146),NODE_DEF(147),NODE_DEF(148),NODE_DEF(149), | |
| 3709 | NODE_DEF(150),NODE_DEF(151),NODE_DEF(152),NODE_DEF(153),NODE_DEF(154),NODE_DEF(155),NODE_DEF(156),NODE_DEF(157),NODE_DEF(158),NODE_DEF(159), | |
| 3710 | NODE_DEF(160),NODE_DEF(161),NODE_DEF(162),NODE_DEF(163),NODE_DEF(164),NODE_DEF(165),NODE_DEF(166),NODE_DEF(167),NODE_DEF(168),NODE_DEF(169), | |
| 3711 | NODE_DEF(170),NODE_DEF(171),NODE_DEF(172),NODE_DEF(173),NODE_DEF(174),NODE_DEF(175),NODE_DEF(176),NODE_DEF(177),NODE_DEF(178),NODE_DEF(179), | |
| 3712 | NODE_DEF(180),NODE_DEF(181),NODE_DEF(182),NODE_DEF(183),NODE_DEF(184),NODE_DEF(185),NODE_DEF(186),NODE_DEF(187),NODE_DEF(188),NODE_DEF(189), | |
| 3713 | NODE_DEF(190),NODE_DEF(191),NODE_DEF(192),NODE_DEF(193),NODE_DEF(194),NODE_DEF(195),NODE_DEF(196),NODE_DEF(197),NODE_DEF(198),NODE_DEF(199), | |
| 3714 | NODE_DEF(200),NODE_DEF(201),NODE_DEF(202),NODE_DEF(203),NODE_DEF(204),NODE_DEF(205),NODE_DEF(206),NODE_DEF(207),NODE_DEF(208),NODE_DEF(209), | |
| 3715 | NODE_DEF(210),NODE_DEF(211),NODE_DEF(212),NODE_DEF(213),NODE_DEF(214),NODE_DEF(215),NODE_DEF(216),NODE_DEF(217),NODE_DEF(218),NODE_DEF(219), | |
| 3716 | NODE_DEF(220),NODE_DEF(221),NODE_DEF(222),NODE_DEF(223),NODE_DEF(224),NODE_DEF(225),NODE_DEF(226),NODE_DEF(227),NODE_DEF(228),NODE_DEF(229), | |
| 3717 | NODE_DEF(230),NODE_DEF(231),NODE_DEF(232),NODE_DEF(233),NODE_DEF(234),NODE_DEF(235),NODE_DEF(236),NODE_DEF(237),NODE_DEF(238),NODE_DEF(239), | |
| 3718 | NODE_DEF(240),NODE_DEF(241),NODE_DEF(242),NODE_DEF(243),NODE_DEF(244),NODE_DEF(245),NODE_DEF(246),NODE_DEF(247),NODE_DEF(248),NODE_DEF(249), | |
| 3719 | NODE_DEF(250),NODE_DEF(251),NODE_DEF(252),NODE_DEF(253),NODE_DEF(254),NODE_DEF(255),NODE_DEF(256),NODE_DEF(257),NODE_DEF(258),NODE_DEF(259), | |
| 3720 | NODE_DEF(260),NODE_DEF(261),NODE_DEF(262),NODE_DEF(263),NODE_DEF(264),NODE_DEF(265),NODE_DEF(266),NODE_DEF(267),NODE_DEF(268),NODE_DEF(269), | |
| 3721 | NODE_DEF(270),NODE_DEF(271),NODE_DEF(272),NODE_DEF(273),NODE_DEF(274),NODE_DEF(275),NODE_DEF(276),NODE_DEF(277),NODE_DEF(278),NODE_DEF(279), | |
| 3722 | NODE_DEF(280),NODE_DEF(281),NODE_DEF(282),NODE_DEF(283),NODE_DEF(284),NODE_DEF(285),NODE_DEF(286),NODE_DEF(287),NODE_DEF(288),NODE_DEF(289), | |
| 3723 | NODE_DEF(290),NODE_DEF(291),NODE_DEF(292),NODE_DEF(293),NODE_DEF(294),NODE_DEF(295),NODE_DEF(296),NODE_DEF(297),NODE_DEF(298),NODE_DEF(299) | |
| 3724 | }; | |
| 3725 | ||
| 3670 | 3726 | /* Some Pre-defined nodes for convenience */ |
| 3727 | ||
| 3728 | #define NODE(_x) (NODE_00 + (_x) * DISCRETE_MAX_NODE_OUTPUTS) | |
| 3729 | #define NODE_SUB(_x, _y) (NODE(_x) + (_y)) | |
| 3730 | ||
| 3731 | #if DISCRETE_MAX_NODE_OUTPUTS == 8 | |
| 3732 | #define NODE_CHILD_NODE_NUM(_x) ((_x) & 7) | |
| 3733 | #define NODE_DEFAULT_NODE(_x) ((_x) & ~7) | |
| 3734 | #define NODE_INDEX(_x) (((_x) - NODE_START)>>3) | |
| 3735 | #else | |
| 3736 | #error "DISCRETE_MAX_NODE_OUTPUTS != 8" | |
| 3737 | #endif | |
| 3738 | ||
| 3671 | 3739 | #define NODE_NC NODE_00 |
| 3672 | #define NODE_SPECIAL | |
| 3740 | #define NODE_SPECIAL | |
| 3673 | 3741 | |
| 3674 | 3742 | #define NODE_START NODE_00 |
| 3675 | 3743 | #define NODE_END NODE_SPECIAL |
| r2241 | r2242 | |
| 3772 | 3840 | DST_RCINTEGRATE, /* NPN RC charge/discharge network */ |
| 3773 | 3841 | DST_RCDISC_MOD, /* Two diode mixer with Transistor and charge/discharge network */ |
| 3774 | 3842 | DST_RCFILTER, /* Simple RC Filter network */ |
| 3843 | DST_RCFILTER_SW, /* Switcheable RC Filter network */ | |
| 3775 | 3844 | /* For testing - seem to be buggered. Use versions not ending in N. */ |
| 3776 | 3845 | DST_RCFILTERN, /* Simple RC Filter network */ |
| 3777 | 3846 | DST_RCDISCN, /* Simple RC discharge */ |
| r2241 | r2242 | |
| 3927 | 3996 | #define DISCRETE_RCINTEGRATE(NODE,ENAB,INP0,RVAL0,RVAL1,RVAL2,CVAL,vP,TYPE) { NODE, DST_RCINTEGRATE , 8, { ENAB,INP0,NODE_NC,NODE_NC,NODE_NC,NODE_NC,NODE_NC,NODE_NC }, { ENAB,INP0,RVAL0,RVAL1,RVAL2,CVAL,vP,TYPE }, NULL, "RC Discharge 6" }, |
| 3928 | 3997 | #define DISCRETE_RCDISC_MODULATED(NODE,ENAB,INP0,INP1,RVAL0,RVAL1,RVAL2,RVAL3,CVAL,VP) { NODE, DST_RCDISC_MOD , 9, { ENAB,INP0,INP1,RVAL0,RVAL1,RVAL2,RVAL3,CVAL,VP }, { ENAB,INP0,INP1,RVAL0,RVAL1,RVAL2,RVAL3,CVAL,VP }, NULL, "Modulated RC Discharge" }, |
| 3929 | 3998 | #define DISCRETE_RCFILTER(NODE,ENAB,INP0,RVAL,CVAL) { NODE, DST_RCFILTER , 4, { ENAB,INP0,NODE_NC,NODE_NC }, { ENAB,INP0,RVAL,CVAL }, NULL, "RC Filter" }, |
| 3999 | #define DISCRETE_RCFILTER_SW(NODE,ENAB,INP0,SW,RVAL,CVAL1,CVAL2,CVAL3,CVAL4) { NODE, DST_RCFILTER_SW, 8, { ENAB,INP0,SW,RVAL,CVAL1,CVAL2,CVAL3,CVAL4 }, { ENAB,INP0,SW,RVAL,CVAL1,CVAL2,CVAL3,CVAL4 }, NULL, "RC Filter Switch" }, | |
| 3930 | 4000 | #define DISCRETE_RCFILTER_VREF(NODE,ENAB,INP0,RVAL,CVAL,VREF) { NODE, DST_RCFILTER , 5, { ENAB,INP0,NODE_NC,NODE_NC,NODE_NC }, { ENAB,INP0,RVAL,CVAL,VREF }, NULL, "RC Filter to VREF" }, |
| 3931 | 4001 | /* For testing - seem to be buggered. Use versions not ending in N. */ |
| 3932 | 4002 | #define DISCRETE_RCDISCN(NODE,ENAB,INP0,RVAL,CVAL) { NODE, DST_RCDISCN , 4, { ENAB,INP0,NODE_NC,NODE_NC }, { ENAB,INP0,RVAL,CVAL }, NULL, "RC Discharge (New Type)" }, |
| r2241 | r2242 | |
|---|---|---|
| 320 | 320 | WRITE16_HANDLER( YM2610_control_port_0_A_lsb_w ) |
| 321 | 321 | { |
| 322 | 322 | //logerror("PC %04x: 2610 Reg A %02X",activecpu_get_pc(),data); |
| 323 | if (ACCESSING_ | |
| 323 | if (ACCESSING_ | |
| 324 | 324 | { |
| 325 | 325 | struct ym2610_info *info = sndti_token(chip_type,0); |
| 326 | 326 | YM2610Write(info->chip,0,data); |
| r2241 | r2242 | |
| 337 | 337 | WRITE16_HANDLER( YM2610_control_port_0_B_lsb_w ) |
| 338 | 338 | { |
| 339 | 339 | //logerror("PC %04x: 2610 Reg B %02X",activecpu_get_pc(),data); |
| 340 | if (ACCESSING_ | |
| 340 | if (ACCESSING_ | |
| 341 | 341 | { |
| 342 | 342 | struct ym2610_info *info = sndti_token(chip_type,0); |
| 343 | 343 | YM2610Write(info->chip,2,data); |
| r2241 | r2242 | |
| 354 | 354 | } |
| 355 | 355 | |
| 356 | 356 | WRITE16_HANDLER( YM2610_control_port_1_A_lsb_w ){ |
| 357 | if (ACCESSING_ | |
| 357 | if (ACCESSING_ | |
| 358 | 358 | { |
| 359 | 359 | struct ym2610_info *info = sndti_token(chip_type,1); |
| 360 | 360 | YM2610Write(info->chip,0,data); |
| r2241 | r2242 | |
| 367 | 367 | } |
| 368 | 368 | |
| 369 | 369 | WRITE16_HANDLER( YM2610_control_port_1_B_lsb_w ){ |
| 370 | if (ACCESSING_ | |
| 370 | if (ACCESSING_ | |
| 371 | 371 | { |
| 372 | 372 | struct ym2610_info *info = sndti_token(chip_type,1); |
| 373 | 373 | YM2610Write(info->chip,2,data); |
| r2241 | r2242 | |
| 388 | 388 | WRITE16_HANDLER( YM2610_data_port_0_A_lsb_w ) |
| 389 | 389 | { |
| 390 | 390 | //logerror(" =%02X\n",data); |
| 391 | if (ACCESSING_ | |
| 391 | if (ACCESSING_ | |
| 392 | 392 | { |
| 393 | 393 | struct ym2610_info *info = sndti_token(chip_type,0); |
| 394 | 394 | YM2610Write(info->chip,1,data); |
| r2241 | r2242 | |
| 405 | 405 | WRITE16_HANDLER( YM2610_data_port_0_B_lsb_w ) |
| 406 | 406 | { |
| 407 | 407 | //logerror(" =%02X\n",data); |
| 408 | if (ACCESSING_ | |
| 408 | if (ACCESSING_ | |
| 409 | 409 | { |
| 410 | 410 | struct ym2610_info *info = sndti_token(chip_type,0); |
| 411 | 411 | YM2610Write(info->chip,3,data); |
| r2241 | r2242 | |
| 422 | 422 | } |
| 423 | 423 | |
| 424 | 424 | WRITE16_HANDLER( YM2610_data_port_1_A_lsb_w ){ |
| 425 | if (ACCESSING_ | |
| 425 | if (ACCESSING_ | |
| 426 | 426 | { |
| 427 | 427 | struct ym2610_info *info = sndti_token(chip_type,1); |
| 428 | 428 | YM2610Write(info->chip,1,data); |
| r2241 | r2242 | |
| 435 | 435 | } |
| 436 | 436 | |
| 437 | 437 | WRITE16_HANDLER( YM2610_data_port_1_B_lsb_w ){ |
| 438 | if (ACCESSING_ | |
| 438 | if (ACCESSING_ | |
| 439 | 439 | { |
| 440 | 440 | struct ym2610_info *info = sndti_token(chip_type,1); |
| 441 | 441 | YM2610Write(info->chip,3,data); |
| r2241 | r2242 | |
|---|---|---|
| 175 | 175 | { |
| 176 | 176 | /* We are in RESET */ |
| 177 | 177 | /* If there was a fatal INIT error then we will also stay in RESET */ |
| 178 | node->output = 0; | |
| 178 | node->output[0] = 0; | |
| 179 | 179 | context->flip_flop = 1; |
| 180 | 180 | context->cap_voltage = 0; |
| 181 | 181 | return; |
| r2241 | r2242 | |
| 308 | 308 | switch (context->output_type) |
| 309 | 309 | { |
| 310 | 310 | case DISC_555_OUT_SQW: |
| 311 | node->output = context->flip_flop * context->output_high_voltage + context->ac_shift; | |
| 311 | node->output[0] = context->flip_flop * context->output_high_voltage + context->ac_shift; | |
| 312 | 312 | break; |
| 313 | 313 | case DISC_555_OUT_CAP: |
| 314 | node->output = vCnext; | |
| 314 | node->output[0] = vCnext; | |
| 315 | 315 | /* Fake it to AC if needed */ |
| 316 | 316 | if (context->output_is_ac) |
| 317 | node->output -= context->threshold * 3.0 /4.0; | |
| 317 | node->output[0] -= context->threshold * 3.0 /4.0; | |
| 318 | 318 | break; |
| 319 | 319 | case DISC_555_OUT_ENERGY: |
| 320 | node->output = context->output_high_voltage * (context->flip_flop ? xTime : (1 - xTime)); | |
| 321 | node->output += context->ac_shift; | |
| 320 | node->output[0] = context->output_high_voltage * (context->flip_flop ? xTime : (1 - xTime)); | |
| 321 | node->output[0] += context->ac_shift; | |
| 322 | 322 | break; |
| 323 | 323 | case DISC_555_OUT_LOGIC_X: |
| 324 | node->output = context->flip_flop + xTime; | |
| 324 | node->output[0] = context->flip_flop + xTime; | |
| 325 | 325 | break; |
| 326 | 326 | case DISC_555_OUT_COUNT_F_X: |
| 327 | node->output = count_f ? count_f + xTime : count_f; | |
| 327 | node->output[0] = count_f ? count_f + xTime : count_f; | |
| 328 | 328 | break; |
| 329 | 329 | case DISC_555_OUT_COUNT_R_X: |
| 330 | node->output = count_r ? count_r + xTime : count_r; | |
| 330 | node->output[0] = count_r ? count_r + xTime : count_r; | |
| 331 | 331 | break; |
| 332 | 332 | case DISC_555_OUT_COUNT_F: |
| 333 | node->output = count_f; | |
| 333 | node->output[0] = count_f; | |
| 334 | 334 | break; |
| 335 | 335 | case DISC_555_OUT_COUNT_R: |
| 336 | node->output = count_r; | |
| 336 | node->output[0] = count_r; | |
| 337 | 337 | break; |
| 338 | 338 | } |
| 339 | 339 | } |
| r2241 | r2242 | |
| 411 | 411 | { |
| 412 | 412 | /* We are in RESET */ |
| 413 | 413 | /* If there was a fatal INIT error then we will also stay in RESET */ |
| 414 | node->output = 0; | |
| 414 | node->output[0] = 0; | |
| 415 | 415 | context->flip_flop = 0; |
| 416 | 416 | context->cap_voltage = 0; |
| 417 | 417 | } |
| r2241 | r2242 | |
| 469 | 469 | switch (info->options & DISC_555_OUT_MASK) |
| 470 | 470 | { |
| 471 | 471 | case DISC_555_OUT_SQW: |
| 472 | node->output = context->flip_flop * context->output_high_voltage; | |
| 472 | node->output[0] = context->flip_flop * context->output_high_voltage; | |
| 473 | 473 | /* Fake it to AC if needed */ |
| 474 | 474 | if (context->output_is_ac) |
| 475 | node->output -= context->output_high_voltage / 2.0; | |
| 475 | node->output[0] -= context->output_high_voltage / 2.0; | |
| 476 | 476 | break; |
| 477 | 477 | case DISC_555_OUT_CAP: |
| 478 | node->output = vCnext; | |
| 478 | node->output[0] = vCnext; | |
| 479 | 479 | /* Fake it to AC if needed */ |
| 480 | 480 | if (context->output_is_ac) |
| 481 | node->output -= context->threshold * 3.0 /4.0; | |
| 481 | node->output[0] -= context->threshold * 3.0 /4.0; | |
| 482 | 482 | break; |
| 483 | 483 | } |
| 484 | 484 | } |
| r2241 | r2242 | |
| 514 | 514 | context->flip_flop = 0; |
| 515 | 515 | context->cap_voltage = 0; |
| 516 | 516 | |
| 517 | node->output = 0; | |
| 517 | node->output[0] = 0; | |
| 518 | 518 | } |
| 519 | 519 | |
| 520 | 520 | |
| r2241 | r2242 | |
| 568 | 568 | { |
| 569 | 569 | /* We are in RESET */ |
| 570 | 570 | /* If there was a fatal INIT error then we will also stay in RESET */ |
| 571 | node->output = 0; | |
| 571 | node->output[0] = 0; | |
| 572 | 572 | context->flip_flop = 1; |
| 573 | 573 | context->cap_voltage = 0; |
| 574 | 574 | return; |
| r2241 | r2242 | |
| 782 | 782 | if (count_r && (~context->type & 0x01)) |
| 783 | 783 | { |
| 784 | 784 | /* There has been an immediate discharge, so keep low for 1 sample. */ |
| 785 | node->output = 0; | |
| 785 | node->output[0] = 0; | |
| 786 | 786 | } |
| 787 | 787 | else |
| 788 | node->output = context->flip_flop * context->output_high_voltage; | |
| 788 | node->output[0] = context->flip_flop * context->output_high_voltage; | |
| 789 | 789 | /* Fake it to AC if needed */ |
| 790 | node->output += context->ac_shift; | |
| 790 | node->output[0] += context->ac_shift; | |
| 791 | 791 | break; |
| 792 | 792 | case DISC_555_OUT_CAP: |
| 793 | node->output = vCnext + context->ac_shift; | |
| 793 | node->output[0] = vCnext + context->ac_shift; | |
| 794 | 794 | break; |
| 795 | 795 | case DISC_555_OUT_ENERGY: |
| 796 | node->output = context->output_high_voltage * (context->flip_flop ? xTime : (1 - xTime)); | |
| 797 | node->output += context->ac_shift; | |
| 796 | node->output[0] = context->output_high_voltage * (context->flip_flop ? xTime : (1 - xTime)); | |
| 797 | node->output[0] += context->ac_shift; | |
| 798 | 798 | break; |
| 799 | 799 | case DISC_555_OUT_LOGIC_X: |
| 800 | node->output = context->flip_flop + xTime; | |
| 800 | node->output[0] = context->flip_flop + xTime; | |
| 801 | 801 | break; |
| 802 | 802 | case DISC_555_OUT_COUNT_F_X: |
| 803 | node->output = count_f + xTime; | |
| 803 | node->output[0] = count_f + xTime; | |
| 804 | 804 | break; |
| 805 | 805 | case DISC_555_OUT_COUNT_R_X: |
| 806 | node->output = count_r + xTime; | |
| 806 | node->output[0] = count_r + xTime; | |
| 807 | 807 | break; |
| 808 | 808 | case DISC_555_OUT_COUNT_F: |
| 809 | node->output = count_f; | |
| 809 | node->output[0] = count_f; | |
| 810 | 810 | break; |
| 811 | 811 | case DISC_555_OUT_COUNT_R: |
| 812 | node->output = count_r; | |
| 812 | node->output[0] = count_r; | |
| 813 | 813 | break; |
| 814 | 814 | } |
| 815 | 815 | } |
| r2241 | r2242 | |
| 1120 | 1120 | switch (context->output_type) |
| 1121 | 1121 | { |
| 1122 | 1122 | case DISC_555_OUT_SQW: |
| 1123 | node->output = context->flip_flop * context->output_high_voltage + context->ac_shift; | |
| 1123 | node->output[0] = context->flip_flop * context->output_high_voltage + context->ac_shift; | |
| 1124 | 1124 | break; |
| 1125 | 1125 | case DISC_555_OUT_CAP: |
| 1126 | node->output = vCnext; | |
| 1126 | node->output[0] = vCnext; | |
| 1127 | 1127 | /* Fake it to AC if needed */ |
| 1128 | 1128 | if (context->output_is_ac) |
| 1129 | node->output -= context->threshold * 3.0 /4.0; | |
| 1129 | node->output[0] -= context->threshold * 3.0 /4.0; | |
| 1130 | 1130 | break; |
| 1131 | 1131 | case DISC_555_OUT_ENERGY: |
| 1132 | node->output = context->output_high_voltage * (context->flip_flop ? xTime : (1 - xTime)); | |
| 1133 | node->output += context->ac_shift; | |
| 1132 | node->output[0] = context->output_high_voltage * (context->flip_flop ? xTime : (1 - xTime)); | |
| 1133 | node->output[0] += context->ac_shift; | |
| 1134 | 1134 | break; |
| 1135 | 1135 | case DISC_555_OUT_LOGIC_X: |
| 1136 | node->output = context->flip_flop + xTime; | |
| 1136 | node->output[0] = context->flip_flop + xTime; | |
| 1137 | 1137 | break; |
| 1138 | 1138 | case DISC_555_OUT_COUNT_F_X: |
| 1139 | node->output = count_f ? count_f + xTime : count_f; | |
| 1139 | node->output[0] = count_f ? count_f + xTime : count_f; | |
| 1140 | 1140 | break; |
| 1141 | 1141 | case DISC_555_OUT_COUNT_R_X: |
| 1142 | node->output = count_r ? count_r + xTime : count_r; | |
| 1142 | node->output[0] = count_r ? count_r + xTime : count_r; | |
| 1143 | 1143 | break; |
| 1144 | 1144 | case DISC_555_OUT_COUNT_F: |
| 1145 | node->output = count_f; | |
| 1145 | node->output[0] = count_f; | |
| 1146 | 1146 | break; |
| 1147 | 1147 | case DISC_555_OUT_COUNT_R: |
| 1148 | node->output = count_r; | |
| 1148 | node->output[0] = count_r; | |
| 1149 | 1149 | break; |
| 1150 | 1150 | } |
| 1151 | 1151 | } |
| r2241 | r2242 | |
| 1308 | 1308 | case DISC_566_OUT_SQUARE: |
| 1309 | 1309 | case DISC_566_OUT_LOGIC: |
| 1310 | 1310 | /* use up any output states */ |
| 1311 | if (node->output && context->state[0]) | |
| 1311 | if (node->output[0] && context->state[0]) | |
| 1312 | 1312 | { |
| 1313 | node->output = 0; | |
| 1313 | node->output[0] = 0; | |
| 1314 | 1314 | context->state[0]--; |
| 1315 | 1315 | } |
| 1316 | else if (!node->output && context->state[1]) | |
| 1316 | else if (!node->output[0] && context->state[1]) | |
| 1317 | 1317 | { |
| 1318 | node->output = 1; | |
| 1318 | node->output[0] = 1; | |
| 1319 | 1319 | context->state[1]--; |
| 1320 | 1320 | } |
| 1321 | 1321 | else |
| 1322 | 1322 | { |
| 1323 | node->output = context->flip_flop; | |
| 1323 | node->output[0] = context->flip_flop; | |
| 1324 | 1324 | } |
| 1325 | 1325 | if ((info->options & DISC_566_OUT_MASK) != DISC_566_OUT_LOGIC) |
| 1326 | node->output = context->flip_flop ? context->vSqrHigh : context->vSqrLow; | |
| 1326 | node->output[0] = context->flip_flop ? context->vSqrHigh : context->vSqrLow; | |
| 1327 | 1327 | break; |
| 1328 | 1328 | case DISC_566_OUT_TRIANGLE: |
| 1329 | 1329 | /* we can ignore any unused states when |
| 1330 | 1330 | * outputting the cap voltage */ |
| 1331 | node->output = vCnext; | |
| 1331 | node->output[0] = vCnext; | |
| 1332 | 1332 | if (info->options & DISC_566_OUT_AC) |
| 1333 | node->output -= context->triOffset; | |
| 1333 | node->output[0] -= context->triOffset; | |
| 1334 | 1334 | break; |
| 1335 | 1335 | } |
| 1336 | 1336 | } |
| 1337 | 1337 | else |
| 1338 | node->output = 0; | |
| 1338 | node->output[0] = 0; | |
| 1339 | 1339 | } |
| 1340 | 1340 | |
| 1341 | 1341 | static void dsd_566_reset(node_description *node) |
| r2241 | r2242 | |
| 1434 | 1434 | switch (context->outtype) |
| 1435 | 1435 | { |
| 1436 | 1436 | case DISC_LS624_OUT_ENERGY: |
| 1437 | node->output = ((double) lst) * (1.0+context->remain/sample_t) - ((double) context->state) * context->remain/sample_t; | |
| 1437 | node->output[0] = ((double) lst) * (1.0+context->remain/sample_t) - ((double) context->state) * context->remain/sample_t; | |
| 1438 | 1438 | break; |
| 1439 | 1439 | case DISC_LS624_OUT_LOGIC: |
| 1440 | node->output = context->state; | |
| 1440 | node->output[0] = context->state; | |
| 1441 | 1441 | break; |
| 1442 | 1442 | case DISC_LS624_OUT_COUNT_F: |
| 1443 | node->output = cntf; | |
| 1443 | node->output[0] = cntf; | |
| 1444 | 1444 | break; |
| 1445 | 1445 | case DISC_LS624_OUT_COUNT_R: |
| 1446 | node->output = cntr; | |
| 1446 | node->output[0] = cntr; | |
| 1447 | 1447 | break; |
| 1448 | 1448 | } |
| 1449 | 1449 | |
| 1450 | 1450 | } |
| 1451 | 1451 | else |
| 1452 | node->output = 0; | |
| 1452 | node->output[0] = 0; | |
| 1453 | 1453 | } |
| 1454 | 1454 | |
| 1455 | 1455 | static void dsd_ls624_reset(node_description *node) |
| r2241 | r2242 | |
|---|---|---|
| 604 | 604 | |
| 605 | 605 | WRITE16_HANDLER( OKIM6295_data_0_lsb_w ) |
| 606 | 606 | { |
| 607 | if (ACCESSING_ | |
| 607 | if (ACCESSING_ | |
| 608 | 608 | OKIM6295_data_w(0, data & 0xff); |
| 609 | 609 | } |
| 610 | 610 | |
| 611 | 611 | WRITE16_HANDLER( OKIM6295_data_1_lsb_w ) |
| 612 | 612 | { |
| 613 | if (ACCESSING_ | |
| 613 | if (ACCESSING_ | |
| 614 | 614 | OKIM6295_data_w(1, data & 0xff); |
| 615 | 615 | } |
| 616 | 616 | |
| 617 | 617 | WRITE16_HANDLER( OKIM6295_data_2_lsb_w ) |
| 618 | 618 | { |
| 619 | if (ACCESSING_ | |
| 619 | if (ACCESSING_ | |
| 620 | 620 | OKIM6295_data_w(2, data & 0xff); |
| 621 | 621 | } |
| 622 | 622 | |
| 623 | 623 | WRITE16_HANDLER( OKIM6295_data_0_msb_w ) |
| 624 | 624 | { |
| 625 | if (ACCESSING_ | |
| 625 | if (ACCESSING_ | |
| 626 | 626 | OKIM6295_data_w(0, data >> 8); |
| 627 | 627 | } |
| 628 | 628 | |
| 629 | 629 | WRITE16_HANDLER( OKIM6295_data_1_msb_w ) |
| 630 | 630 | { |
| 631 | if (ACCESSING_ | |
| 631 | if (ACCESSING_ | |
| 632 | 632 | OKIM6295_data_w(1, data >> 8); |
| 633 | 633 | } |
| 634 | 634 | |
| 635 | 635 | WRITE16_HANDLER( OKIM6295_data_2_msb_w ) |
| 636 | 636 | { |
| 637 | if (ACCESSING_ | |
| 637 | if (ACCESSING_ | |
| 638 | 638 | OKIM6295_data_w(2, data >> 8); |
| 639 | 639 | } |
| 640 | 640 |
| r2241 | r2242 | |
|---|---|---|
| 1467 | 1467 | |
| 1468 | 1468 | WRITE16_HANDLER( ES5506_data_0_word_w ) |
| 1469 | 1469 | { |
| 1470 | if (ACCESSING_ | |
| 1470 | if (ACCESSING_ | |
| 1471 | 1471 | es5506_reg_write(sndti_token(SOUND_ES5506, 0), offset, data); |
| 1472 | 1472 | } |
| 1473 | 1473 | |
| 1474 | 1474 | WRITE16_HANDLER( ES5506_data_1_word_w ) |
| 1475 | 1475 | { |
| 1476 | if (ACCESSING_ | |
| 1476 | if (ACCESSING_ | |
| 1477 | 1477 | es5506_reg_write(sndti_token(SOUND_ES5506, 1), offset, data); |
| 1478 | 1478 | } |
| 1479 | 1479 | |
| r2241 | r2242 | |
| 1545 | 1545 | switch (offset) |
| 1546 | 1546 | { |
| 1547 | 1547 | case 0x00: /* CR */ |
| 1548 | if (ACCESSING_ | |
| 1548 | if (ACCESSING_ | |
| 1549 | 1549 | { |
| 1550 | 1550 | #if RAINE_CHECK |
| 1551 | 1551 | voice->control &= ~(CONTROL_STOPMASK | CONTROL_LOOPMASK | CONTROL_DIR); |
| r2241 | r2242 | |
| 1555 | 1555 | voice->control |= (data & (CONTROL_STOPMASK | CONTROL_LOOPMASK | CONTROL_IRQE | CONTROL_DIR | CONTROL_IRQ)) | |
| 1556 | 1556 | ((data << 12) & CONTROL_BS0); |
| 1557 | 1557 | } |
| 1558 | if (ACCESSING_ | |
| 1558 | if (ACCESSING_ | |
| 1559 | 1559 | { |
| 1560 | 1560 | voice->control &= ~(CONTROL_CA0 | CONTROL_CA1 | CONTROL_LPMASK); |
| 1561 | 1561 | voice->control |= ((data >> 2) & CONTROL_LPMASK) | |
| r2241 | r2242 | |
| 1567 | 1567 | break; |
| 1568 | 1568 | |
| 1569 | 1569 | case 0x01: /* FC */ |
| 1570 | if (ACCESSING_ | |
| 1570 | if (ACCESSING_ | |
| 1571 | 1571 | voice->freqcount = (voice->freqcount & ~0x001fe) | ((data & 0x00ff) << 1); |
| 1572 | if (ACCESSING_ | |
| 1572 | if (ACCESSING_ | |
| 1573 | 1573 | voice->freqcount = (voice->freqcount & ~0x1fe00) | ((data & 0xff00) << 1); |
| 1574 | 1574 | if (LOG_COMMANDS && eslog) |
| 1575 | 1575 | fprintf(eslog, "%06x:voice %d, freq count=%08x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->freqcount); |
| 1576 | 1576 | break; |
| 1577 | 1577 | |
| 1578 | 1578 | case 0x02: /* STRT (hi) */ |
| 1579 | if (ACCESSING_ | |
| 1579 | if (ACCESSING_ | |
| 1580 | 1580 | voice->start = (voice->start & ~0x03fc0000) | ((data & 0x00ff) << 18); |
| 1581 | if (ACCESSING_ | |
| 1581 | if (ACCESSING_ | |
| 1582 | 1582 | voice->start = (voice->start & ~0x7c000000) | ((data & 0x1f00) << 18); |
| 1583 | 1583 | if (LOG_COMMANDS && eslog) |
| 1584 | 1584 | fprintf(eslog, "%06x:voice %d, loop start=%08x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->start); |
| 1585 | 1585 | break; |
| 1586 | 1586 | |
| 1587 | 1587 | case 0x03: /* STRT (lo) */ |
| 1588 | if (ACCESSING_ | |
| 1588 | if (ACCESSING_ | |
| 1589 | 1589 | voice->start = (voice->start & ~0x00000380) | ((data & 0x00e0) << 2); |
| 1590 | if (ACCESSING_ | |
| 1590 | if (ACCESSING_ | |
| 1591 | 1591 | voice->start = (voice->start & ~0x0003fc00) | ((data & 0xff00) << 2); |
| 1592 | 1592 | if (LOG_COMMANDS && eslog) |
| 1593 | 1593 | fprintf(eslog, "%06x:voice %d, loop start=%08x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->start); |
| 1594 | 1594 | break; |
| 1595 | 1595 | |
| 1596 | 1596 | case 0x04: /* END (hi) */ |
| 1597 | if (ACCESSING_ | |
| 1597 | if (ACCESSING_ | |
| 1598 | 1598 | voice->end = (voice->end & ~0x03fc0000) | ((data & 0x00ff) << 18); |
| 1599 | if (ACCESSING_ | |
| 1599 | if (ACCESSING_ | |
| 1600 | 1600 | voice->end = (voice->end & ~0x7c000000) | ((data & 0x1f00) << 18); |
| 1601 | 1601 | #if RAINE_CHECK |
| 1602 | 1602 | voice->control |= CONTROL_STOP0; |
| r2241 | r2242 | |
| 1606 | 1606 | break; |
| 1607 | 1607 | |
| 1608 | 1608 | case 0x05: /* END (lo) */ |
| 1609 | if (ACCESSING_ | |
| 1609 | if (ACCESSING_ | |
| 1610 | 1610 | voice->end = (voice->end & ~0x00000380) | ((data & 0x00e0) << 2); |
| 1611 | if (ACCESSING_ | |
| 1611 | if (ACCESSING_ | |
| 1612 | 1612 | voice->end = (voice->end & ~0x0003fc00) | ((data & 0xff00) << 2); |
| 1613 | 1613 | #if RAINE_CHECK |
| 1614 | 1614 | voice->control |= CONTROL_STOP0; |
| r2241 | r2242 | |
| 1618 | 1618 | break; |
| 1619 | 1619 | |
| 1620 | 1620 | case 0x06: /* K2 */ |
| 1621 | if (ACCESSING_ | |
| 1621 | if (ACCESSING_ | |
| 1622 | 1622 | voice->k2 = (voice->k2 & ~0x00f0) | (data & 0x00f0); |
| 1623 | if (ACCESSING_ | |
| 1623 | if (ACCESSING_ | |
| 1624 | 1624 | voice->k2 = (voice->k2 & ~0xff00) | (data & 0xff00); |
| 1625 | 1625 | if (LOG_COMMANDS && eslog) |
| 1626 | 1626 | fprintf(eslog, "%06x:voice %d, K2=%04x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->k2); |
| 1627 | 1627 | break; |
| 1628 | 1628 | |
| 1629 | 1629 | case 0x07: /* K1 */ |
| 1630 | if (ACCESSING_ | |
| 1630 | if (ACCESSING_ | |
| 1631 | 1631 | voice->k1 = (voice->k1 & ~0x00f0) | (data & 0x00f0); |
| 1632 | if (ACCESSING_ | |
| 1632 | if (ACCESSING_ | |
| 1633 | 1633 | voice->k1 = (voice->k1 & ~0xff00) | (data & 0xff00); |
| 1634 | 1634 | if (LOG_COMMANDS && eslog) |
| 1635 | 1635 | fprintf(eslog, "%06x:voice %d, K1=%04x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->k1); |
| 1636 | 1636 | break; |
| 1637 | 1637 | |
| 1638 | 1638 | case 0x08: /* LVOL */ |
| 1639 | if (ACCESSING_ | |
| 1639 | if (ACCESSING_ | |
| 1640 | 1640 | voice->lvol = (voice->lvol & ~0xff00) | (data & 0xff00); |
| 1641 | 1641 | if (LOG_COMMANDS && eslog) |
| 1642 | 1642 | fprintf(eslog, "%06x:voice %d, left vol=%04x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->lvol); |
| 1643 | 1643 | break; |
| 1644 | 1644 | |
| 1645 | 1645 | case 0x09: /* RVOL */ |
| 1646 | if (ACCESSING_ | |
| 1646 | if (ACCESSING_ | |
| 1647 | 1647 | voice->rvol = (voice->rvol & ~0xff00) | (data & 0xff00); |
| 1648 | 1648 | if (LOG_COMMANDS && eslog) |
| 1649 | 1649 | fprintf(eslog, "%06x:voice %d, right vol=%04x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->rvol); |
| 1650 | 1650 | break; |
| 1651 | 1651 | |
| 1652 | 1652 | case 0x0a: /* ACC (hi) */ |
| 1653 | if (ACCESSING_ | |
| 1653 | if (ACCESSING_ | |
| 1654 | 1654 | voice->accum = (voice->accum & ~0x03fc0000) | ((data & 0x00ff) << 18); |
| 1655 | if (ACCESSING_ | |
| 1655 | if (ACCESSING_ | |
| 1656 | 1656 | voice->accum = (voice->accum & ~0x7c000000) | ((data & 0x1f00) << 18); |
| 1657 | 1657 | if (LOG_COMMANDS && eslog) |
| 1658 | 1658 | fprintf(eslog, "%06x:voice %d, accum=%08x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->accum); |
| 1659 | 1659 | break; |
| 1660 | 1660 | |
| 1661 | 1661 | case 0x0b: /* ACC (lo) */ |
| 1662 | if (ACCESSING_ | |
| 1662 | if (ACCESSING_ | |
| 1663 | 1663 | voice->accum = (voice->accum & ~0x000003fc) | ((data & 0x00ff) << 2); |
| 1664 | if (ACCESSING_ | |
| 1664 | if (ACCESSING_ | |
| 1665 | 1665 | voice->accum = (voice->accum & ~0x0003fc00) | ((data & 0xff00) << 2); |
| 1666 | 1666 | if (LOG_COMMANDS && eslog) |
| 1667 | 1667 | fprintf(eslog, "%06x:voice %d, accum=%08x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->accum); |
| r2241 | r2242 | |
| 1671 | 1671 | break; |
| 1672 | 1672 | |
| 1673 | 1673 | case 0x0d: /* ACT */ |
| 1674 | if (ACCESSING_ | |
| 1674 | if (ACCESSING_ | |
| 1675 | 1675 | { |
| 1676 | 1676 | chip->active_voices = data & 0x1f; |
| 1677 | 1677 | chip->sample_rate = chip->master_clock / (16 * (chip->active_voices + 1)); |
| r2241 | r2242 | |
| 1686 | 1686 | break; |
| 1687 | 1687 | |
| 1688 | 1688 | case 0x0f: /* PAGE */ |
| 1689 | if (ACCESSING_ | |
| 1689 | if (ACCESSING_ | |
| 1690 | 1690 | chip->current_page = data & 0x7f; |
| 1691 | 1691 | break; |
| 1692 | 1692 | } |
| r2241 | r2242 | |
| 1698 | 1698 | switch (offset) |
| 1699 | 1699 | { |
| 1700 | 1700 | case 0x00: /* CR */ |
| 1701 | if (ACCESSING_ | |
| 1701 | if (ACCESSING_ | |
| 1702 | 1702 | { |
| 1703 | 1703 | voice->control &= ~(CONTROL_STOPMASK | CONTROL_BS0 | CONTROL_LOOPMASK | CONTROL_IRQE | CONTROL_DIR | CONTROL_IRQ); |
| 1704 | 1704 | voice->control |= (data & (CONTROL_STOPMASK | CONTROL_LOOPMASK | CONTROL_IRQE | CONTROL_DIR | CONTROL_IRQ)) | |
| 1705 | 1705 | ((data << 12) & CONTROL_BS0); |
| 1706 | 1706 | } |
| 1707 | if (ACCESSING_ | |
| 1707 | if (ACCESSING_ | |
| 1708 | 1708 | { |
| 1709 | 1709 | voice->control &= ~(CONTROL_CA0 | CONTROL_CA1 | CONTROL_LPMASK); |
| 1710 | 1710 | voice->control |= ((data >> 2) & CONTROL_LPMASK) | |
| r2241 | r2242 | |
| 1715 | 1715 | break; |
| 1716 | 1716 | |
| 1717 | 1717 | case 0x01: /* O4(n-1) */ |
| 1718 | if (ACCESSING_ | |
| 1718 | if (ACCESSING_ | |
| 1719 | 1719 | voice->o4n1 = (voice->o4n1 & ~0x00ff) | (data & 0x00ff); |
| 1720 | if (ACCESSING_ | |
| 1720 | if (ACCESSING_ | |
| 1721 | 1721 | voice->o4n1 = (INT16)((voice->o4n1 & ~0xff00) | (data & 0xff00)); |
| 1722 | 1722 | if (LOG_COMMANDS && eslog) |
| 1723 | 1723 | fprintf(eslog, "%06x:voice %d, O4(n-1)=%05x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->o4n1 & 0x3ffff); |
| 1724 | 1724 | break; |
| 1725 | 1725 | |
| 1726 | 1726 | case 0x02: /* O3(n-1) */ |
| 1727 | if (ACCESSING_ | |
| 1727 | if (ACCESSING_ | |
| 1728 | 1728 | voice->o3n1 = (voice->o3n1 & ~0x00ff) | (data & 0x00ff); |
| 1729 | if (ACCESSING_ | |
| 1729 | if (ACCESSING_ | |
| 1730 | 1730 | voice->o3n1 = (INT16)((voice->o3n1 & ~0xff00) | (data & 0xff00)); |
| 1731 | 1731 | if (LOG_COMMANDS && eslog) |
| 1732 | 1732 | fprintf(eslog, "%06x:voice %d, O3(n-1)=%05x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->o3n1 & 0x3ffff); |
| 1733 | 1733 | break; |
| 1734 | 1734 | |
| 1735 | 1735 | case 0x03: /* O3(n-2) */ |
| 1736 | if (ACCESSING_ | |
| 1736 | if (ACCESSING_ | |
| 1737 | 1737 | voice->o3n2 = (voice->o3n2 & ~0x00ff) | (data & 0x00ff); |
| 1738 | if (ACCESSING_ | |
| 1738 | if (ACCESSING_ | |
| 1739 | 1739 | voice->o3n2 = (INT16)((voice->o3n2 & ~0xff00) | (data & 0xff00)); |
| 1740 | 1740 | if (LOG_COMMANDS && eslog) |
| 1741 | 1741 | fprintf(eslog, "%06x:voice %d, O3(n-2)=%05x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->o3n2 & 0x3ffff); |
| 1742 | 1742 | break; |
| 1743 | 1743 | |
| 1744 | 1744 | case 0x04: /* O2(n-1) */ |
| 1745 | if (ACCESSING_ | |
| 1745 | if (ACCESSING_ | |
| 1746 | 1746 | voice->o2n1 = (voice->o2n1 & ~0x00ff) | (data & 0x00ff); |
| 1747 | if (ACCESSING_ | |
| 1747 | if (ACCESSING_ | |
| 1748 | 1748 | voice->o2n1 = (INT16)((voice->o2n1 & ~0xff00) | (data & 0xff00)); |
| 1749 | 1749 | if (LOG_COMMANDS && eslog) |
| 1750 | 1750 | fprintf(eslog, "%06x:voice %d, O2(n-1)=%05x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->o2n1 & 0x3ffff); |
| 1751 | 1751 | break; |
| 1752 | 1752 | |
| 1753 | 1753 | case 0x05: /* O2(n-2) */ |
| 1754 | if (ACCESSING_ | |
| 1754 | if (ACCESSING_ | |
| 1755 | 1755 | voice->o2n2 = (voice->o2n2 & ~0x00ff) | (data & 0x00ff); |
| 1756 | if (ACCESSING_ | |
| 1756 | if (ACCESSING_ | |
| 1757 | 1757 | voice->o2n2 = (INT16)((voice->o2n2 & ~0xff00) | (data & 0xff00)); |
| 1758 | 1758 | if (LOG_COMMANDS && eslog) |
| 1759 | 1759 | fprintf(eslog, "%06x:voice %d, O2(n-2)=%05x\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->o2n2 & 0x3ffff); |
| 1760 | 1760 | break; |
| 1761 | 1761 | |
| 1762 | 1762 | case 0x06: /* O1(n-1) */ |
| 1763 | if (ACCESSING_ | |
| 1763 | if (ACCESSING_ | |
| 1764 | 1764 | voice->o1n1 = (voice->o1n1 & ~0x00ff) | (data & 0x00ff); |
| 1765 | if (ACCESSING_ | |
| 1765 | if (ACCESSING_ | |
| 1766 | 1766 | voice->o1n1 = (INT16)((voice->o1n1 & ~0xff00) | (data & 0xff00)); |
| 1767 | 1767 | if (LOG_COMMANDS && eslog) |
| 1768 | 1768 | fprintf(eslog, "%06x:voice %d, O1(n-1)=%05x (accum=%08x)\n", activecpu_get_previouspc(), chip->current_page & 0x1f, voice->o2n1 & 0x3ffff, voice->accum); |
| r2241 | r2242 | |
| 1777 | 1777 | break; |
| 1778 | 1778 | |
| 1779 | 1779 | case 0x0d: /* ACT */ |
| 1780 | if (ACCESSING_ | |
| 1780 | if (ACCESSING_ | |
| 1781 | 1781 | { |
| 1782 | 1782 | chip->active_voices = data & 0x1f; |
| 1783 | 1783 | chip->sample_rate = chip->master_clock / (16 * (chip->active_voices + 1)); |
| r2241 | r2242 | |
| 1792 | 1792 | break; |
| 1793 | 1793 | |
| 1794 | 1794 | case 0x0f: /* PAGE */ |
| 1795 | if (ACCESSING_ | |
| 1795 | if (ACCESSING_ | |
| 1796 | 1796 | chip->current_page = data & 0x7f; |
| 1797 | 1797 | break; |
| 1798 | 1798 | } |
| r2241 | r2242 | |
| 1821 | 1821 | break; |
| 1822 | 1822 | |
| 1823 | 1823 | case 0x0d: /* ACT */ |
| 1824 | if (ACCESSING_ | |
| 1824 | if (ACCESSING_ | |
| 1825 | 1825 | { |
| 1826 | 1826 | chip->active_voices = data & 0x1f; |
| 1827 | 1827 | chip->sample_rate = chip->master_clock / (16 * (chip->active_voices + 1)); |
| r2241 | r2242 | |
| 1836 | 1836 | break; |
| 1837 | 1837 | |
| 1838 | 1838 | case 0x0f: /* PAGE */ |
| 1839 | if (ACCESSING_ | |
| 1839 | if (ACCESSING_ | |
| 1840 | 1840 | chip->current_page = data & 0x7f; |
| 1841 | 1841 | break; |
| 1842 | 1842 | } |
| r2241 | r2242 | |
|---|---|---|
| 204 | 204 | if (DSS_COUNTER__RESET) |
| 205 | 205 | { |
| 206 | 206 | context->count = DSS_COUNTER__INIT; |
| 207 | node->output = context->is_7492 ? 0 : context->count; | |
| 207 | node->output[0] = context->is_7492 ? 0 : context->count; | |
| 208 | 208 | return; |
| 209 | 209 | } |
| 210 | 210 | |
| r2241 | r2242 | |
| 246 | 246 | if (context->count > max) context->count = 0; |
| 247 | 247 | } |
| 248 | 248 | |
| 249 | node->output = context->is_7492 ? disc_7492_count[context->count] : context->count; | |
| 249 | node->output[0] = context->is_7492 ? disc_7492_count[context->count] : context->count; | |
| 250 | 250 | |
| 251 | 251 | if (context->count != last_count) |
| 252 | 252 | { |
| r2241 | r2242 | |
| 255 | 255 | { |
| 256 | 256 | case DISC_OUT_IS_ENERGY: |
| 257 | 257 | if (xTime != 0) |
| 258 | node->output = (context->count > last_count) ? (last_count + xTime) : (last_count - xTime); | |
| 258 | node->output[0] = (context->count > last_count) ? (last_count + xTime) : (last_count - xTime); | |
| 259 | 259 | break; |
| 260 | 260 | case DISC_OUT_HAS_XTIME: |
| 261 | node->output += xTime; | |
| 261 | node->output[0] += xTime; | |
| 262 | 262 | break; |
| 263 | 263 | } |
| 264 | 264 | } |
| 265 | 265 | } |
| 266 | 266 | else |
| 267 | node->output = context->count; | |
| 267 | node->output[0] = context->count; | |
| 268 | 268 | } |
| 269 | 269 | |
| 270 | 270 | static void dss_counter_reset(node_description *node) |
| r2241 | r2242 | |
| 280 | 280 | else |
| 281 | 281 | context->is_7492 = 0; |
| 282 | 282 | if ((context->clock_type < DISC_CLK_ON_F_EDGE) || (context->clock_type > DISC_CLK_IS_FREQ)) |
| 283 | discrete_log("Invalid clock type passed in NODE_%d\n", node->node | |
| 283 | discrete_log("Invalid clock type passed in NODE_%d\n", NODE_INDEX(node->node) | |
| 284 | 284 | context->last = 0; |
| 285 | 285 | if (context->clock_type == DISC_CLK_IS_FREQ) context->t_clock = 1.0 / DSS_COUNTER__CLOCK; |
| 286 | 286 | context->t_left = 0; |
| 287 | 287 | context->count = DSS_COUNTER__INIT; /* count starts at reset value */ |
| 288 | node->output = DSS_COUNTER__INIT; | |
| 288 | node->output[0] = DSS_COUNTER__INIT; | |
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | |
| r2241 | r2242 | |
| 446 | 446 | |
| 447 | 447 | /* Now select the output bit */ |
| 448 | 448 | if (context->out_is_f0) |
| 449 | node->output = fbresult & 0x01; | |
| 449 | node->output[0] = fbresult & 0x01; | |
| 450 | 450 | else |
| 451 | node->output=((context->lfsr_reg)>>(lfsr_desc->output_bit))&0x01; | |
| 451 | node->output[0]=((context->lfsr_reg)>>(lfsr_desc->output_bit))&0x01; | |
| 452 | 452 | |
| 453 | 453 | /* Final inversion if required */ |
| 454 | if(context->invert_output) node->output=(node->output)?0.0:1.0; | |
| 454 | if(context->invert_output) node->output[0]=(node->output[0])?0.0:1.0; | |
| 455 | 455 | |
| 456 | 456 | /* Gain stage */ |
| 457 | node->output=(node->output)?(DSS_LFSR_NOISE__AMP)/2:-(DSS_LFSR_NOISE__AMP)/2; | |
| 457 | node->output[0]=(node->output[0])?(DSS_LFSR_NOISE__AMP)/2:-(DSS_LFSR_NOISE__AMP)/2; | |
| 458 | 458 | /* Bias input as required */ |
| 459 | node->output=node->output+DSS_LFSR_NOISE__BIAS; | |
| 459 | node->output[0]=node->output[0]+DSS_LFSR_NOISE__BIAS; | |
| 460 | 460 | } |
| 461 | 461 | |
| 462 | 462 | if(!DSS_LFSR_NOISE__ENABLE) |
| 463 | 463 | { |
| 464 | node->output=0; | |
| 464 | node->output[0]=0; | |
| 465 | 465 | } |
| 466 | 466 | } |
| 467 | 467 | |
| r2241 | r2242 | |
| 476 | 476 | context->out_is_f0 = (lfsr_desc->flags & DISC_LFSR_FLAG_OUTPUT_F0) ? 1 : 0; |
| 477 | 477 | |
| 478 | 478 | if ((lfsr_desc->clock_type < DISC_CLK_ON_F_EDGE) || (lfsr_desc->clock_type > DISC_CLK_IS_FREQ)) |
| 479 | discrete_log("Invalid clock type passed in NODE_%d\n", node->node | |
| 479 | discrete_log("Invalid clock type passed in NODE_%d\n", NODE_INDEX(node->node) | |
| 480 | 480 | context->last = (DSS_COUNTER__CLOCK != 0); |
| 481 | 481 | if (lfsr_desc->clock_type == DISC_CLK_IS_FREQ) context->t_clock = 1.0 / DSS_LFSR_NOISE__CLOCK; |
| 482 | 482 | context->t_left = 0; |
| r2241 | r2242 | |
| 492 | 492 | context->lfsr_reg=dss_lfsr_function(DISC_LFSR_REPLACE,(context->lfsr_reg), fbresult<<(lfsr_desc->bitlength), ((2<<(lfsr_desc->bitlength))-1)); |
| 493 | 493 | |
| 494 | 494 | /* Now select and setup the output bit */ |
| 495 | node->output=((context->lfsr_reg)>>(lfsr_desc->output_bit))&0x01; | |
| 495 | node->output[0]=((context->lfsr_reg)>>(lfsr_desc->output_bit))&0x01; | |
| 496 | 496 | |
| 497 | 497 | /* Final inversion if required */ |
| 498 | if(lfsr_desc->flags&DISC_LFSR_FLAG_OUT_INVERT) node->output=(node->output)?0.0:1.0; | |
| 498 | if(lfsr_desc->flags&DISC_LFSR_FLAG_OUT_INVERT) node->output[0]=(node->output[0])?0.0:1.0; | |
| 499 | 499 | |
| 500 | 500 | /* Gain stage */ |
| 501 | node->output=(node->output)?(DSS_LFSR_NOISE__AMP)/2:-(DSS_LFSR_NOISE__AMP)/2; | |
| 501 | node->output[0]=(node->output[0])?(DSS_LFSR_NOISE__AMP)/2:-(DSS_LFSR_NOISE__AMP)/2; | |
| 502 | 502 | /* Bias input as required */ |
| 503 | node->output=node->output+DSS_LFSR_NOISE__BIAS; | |
| 503 | node->output[0]=node->output[0]+DSS_LFSR_NOISE__BIAS; | |
| 504 | 504 | } |
| 505 | 505 | |
| 506 | 506 | |
| r2241 | r2242 | |
| 532 | 532 | int newval = (mame_rand(Machine) & 0x7fff) - 16384; |
| 533 | 533 | |
| 534 | 534 | /* make sure the peak to peak values are the amplitude */ |
| 535 | node->output = DSS_NOISE__AMP / 2; | |
| 535 | node->output[0] = DSS_NOISE__AMP / 2; | |
| 536 | 536 | if (newval > 0) |
| 537 | node->output *= ((double)newval / 16383); | |
| 537 | node->output[0] *= ((double)newval / 16383); | |
| 538 | 538 | else |
| 539 | node->output *= ((double)newval / 16384); | |
| 539 | node->output[0] *= ((double)newval / 16384); | |
| 540 | 540 | |
| 541 | 541 | /* Add DC Bias component */ |
| 542 | node->output += DSS_NOISE__BIAS; | |
| 542 | node->output[0] += DSS_NOISE__BIAS; | |
| 543 | 543 | } |
| 544 | 544 | } |
| 545 | 545 | else |
| 546 | 546 | { |
| 547 | node->output = 0; | |
| 547 | node->output[0] = 0; | |
| 548 | 548 | } |
| 549 | 549 | |
| 550 | 550 | /* Keep the new phasor in the 2Pi range.*/ |
| r2241 | r2242 | |
| 651 | 651 | } |
| 652 | 652 | } |
| 653 | 653 | |
| 654 | node->output = context->count2; | |
| 654 | node->output[0] = context->count2; | |
| 655 | 655 | if (context->count2 != last_count2) |
| 656 | 656 | { |
| 657 | 657 | /* the xTime is only output if the output changed. */ |
| r2241 | r2242 | |
| 659 | 659 | { |
| 660 | 660 | case DISC_OUT_IS_ENERGY: |
| 661 | 661 | if (xTime != 0) |
| 662 | node->output = (context->count2 > last_count2) ? (last_count2 + xTime) : (last_count2 - xTime); | |
| 662 | node->output[0] = (context->count2 > last_count2) ? (last_count2 + xTime) : (last_count2 - xTime); | |
| 663 | 663 | break; |
| 664 | 664 | case DISC_OUT_HAS_XTIME: |
| 665 | node->output += xTime; | |
| 665 | node->output[0] += xTime; | |
| 666 | 666 | break; |
| 667 | 667 | } |
| 668 | 668 | } |
| 669 | 669 | } |
| 670 | 670 | else |
| 671 | node->output = 0; | |
| 671 | node->output[0] = 0; | |
| 672 | 672 | } |
| 673 | 673 | |
| 674 | 674 | static void dss_note_reset(node_description *node) |
| r2241 | r2242 | |
| 685 | 685 | context->count2 = 0; |
| 686 | 686 | context->max1 = (int)DSS_NOTE__MAX1; |
| 687 | 687 | context->max2 = (int)DSS_NOTE__MAX2; |
| 688 | node->output = 0; | |
| 688 | node->output[0] = 0; | |
| 689 | 689 | } |
| 690 | 690 | |
| 691 | 691 | /************************************************************************ |
| r2241 | r2242 | |
| 867 | 867 | /* squarewave to happen in the sample time causing it to be missed. */ |
| 868 | 868 | /* If we toggle 2 states we force the missed output for 1 sample. */ |
| 869 | 869 | /* If more then 2 states happen, there is no hope, the sample rate is just too low. */ |
| 870 | node->output = context->high_out_V * (context->flip_flop ? 0 : 1); | |
| 870 | node->output[0] = context->high_out_V * (context->flip_flop ? 0 : 1); | |
| 871 | 871 | else |
| 872 | node->output = context->high_out_V * context->flip_flop; | |
| 872 | node->output[0] = context->high_out_V * context->flip_flop; | |
| 873 | 873 | } |
| 874 | 874 | else |
| 875 | node->output = context->vCap; | |
| 875 | node->output[0] = context->vCap; | |
| 876 | 876 | } |
| 877 | 877 | else |
| 878 | 878 | { |
| 879 | 879 | /* we will just output 0 for oscillators that have no real enable. */ |
| 880 | node->output = 0; | |
| 880 | node->output[0] = 0; | |
| 881 | 881 | } |
| 882 | 882 | } |
| 883 | 883 | |
| r2241 | r2242 | |
| 901 | 901 | if IS_VALUE_A_NODE(*r_info_ptr) |
| 902 | 902 | { |
| 903 | 903 | r_node = discrete_find_node(NULL, *r_info_ptr); |
| 904 | *r_context_ptr = &(r_node->output); | |
| 904 | *r_context_ptr = &(r_node->output[NODE_CHILD_NODE_NUM((int)*r_info_ptr)]); | |
| 905 | 905 | } |
| 906 | 906 | else |
| 907 | 907 | *r_context_ptr = r_info_ptr; |
| r2241 | r2242 | |
| 1030 | 1030 | |
| 1031 | 1031 | if(DSS_SAWTOOTHWAVE__ENABLE) |
| 1032 | 1032 | { |
| 1033 | node->output=(context->type==0)?context->phase*(DSS_SAWTOOTHWAVE__AMP/(2.0*M_PI)):DSS_SAWTOOTHWAVE__AMP-(context->phase*(DSS_SAWTOOTHWAVE__AMP/(2.0*M_PI))); | |
| 1034 | node->output-=DSS_SAWTOOTHWAVE__AMP/2.0; | |
| 1033 | 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))); | |
| 1034 | node->output[0]-=DSS_SAWTOOTHWAVE__AMP/2.0; | |
| 1035 | 1035 | /* Add DC Bias component */ |
| 1036 | node->output=node->output+DSS_SAWTOOTHWAVE__BIAS; | |
| 1036 | node->output[0]=node->output[0]+DSS_SAWTOOTHWAVE__BIAS; | |
| 1037 | 1037 | } |
| 1038 | 1038 | else |
| 1039 | 1039 | { |
| 1040 | node->output=0; | |
| 1040 | node->output[0]=0; | |
| 1041 | 1041 | } |
| 1042 | 1042 | |
| 1043 | 1043 | /* Work out the phase step based on phase/freq & sample rate */ |
| r2241 | r2242 | |
| 1143 | 1143 | switch (context->enable_type) |
| 1144 | 1144 | { |
| 1145 | 1145 | case DISC_SCHMITT_OSC_ENAB_IS_AND: |
| 1146 | node->output = DSS_SCHMITT_OSC__ENABLE && context->state; | |
| 1146 | node->output[0] = DSS_SCHMITT_OSC__ENABLE && context->state; | |
| 1147 | 1147 | break; |
| 1148 | 1148 | case DISC_SCHMITT_OSC_ENAB_IS_NAND: |
| 1149 | node->output = !(DSS_SCHMITT_OSC__ENABLE && context->state); | |
| 1149 | node->output[0] = !(DSS_SCHMITT_OSC__ENABLE && context->state); | |
| 1150 | 1150 | break; |
| 1151 | 1151 | case DISC_SCHMITT_OSC_ENAB_IS_OR: |
| 1152 | node->output = DSS_SCHMITT_OSC__ENABLE || context->state; | |
| 1152 | node->output[0] = DSS_SCHMITT_OSC__ENABLE || context->state; | |
| 1153 | 1153 | break; |
| 1154 | 1154 | case DISC_SCHMITT_OSC_ENAB_IS_NOR: |
| 1155 | node->output = !(DSS_SCHMITT_OSC__ENABLE || context->state); | |
| 1155 | node->output[0] = !(DSS_SCHMITT_OSC__ENABLE || context->state); | |
| 1156 | 1156 | break; |
| 1157 | 1157 | } |
| 1158 | node->output *= DSS_SCHMITT_OSC__AMP; | |
| 1158 | node->output[0] *= DSS_SCHMITT_OSC__AMP; | |
| 1159 | 1159 | } |
| 1160 | 1160 | |
| 1161 | 1161 | static void dss_schmitt_osc_reset(node_description *node) |
| r2241 | r2242 | |
| 1183 | 1183 | context->vCap = 0; |
| 1184 | 1184 | context->state = 1; |
| 1185 | 1185 | |
| 1186 | node->output = info->options ? 0 : DSS_SCHMITT_OSC__AMP; | |
| 1186 | node->output[0] = info->options ? 0 : DSS_SCHMITT_OSC__AMP; | |
| 1187 | 1187 | } |
| 1188 | 1188 | |
| 1189 | 1189 | |
| r2241 | r2242 | |
| 1211 | 1211 | /* Set the output */ |
| 1212 | 1212 | if(DSS_SINEWAVE__ENABLE) |
| 1213 | 1213 | { |
| 1214 | node->output=(DSS_SINEWAVE__AMPL/2.0) * sin(context->phase); | |
| 1214 | node->output[0]=(DSS_SINEWAVE__AMPL/2.0) * sin(context->phase); | |
| 1215 | 1215 | /* Add DC Bias component */ |
| 1216 | node->output=node->output+DSS_SINEWAVE__BIAS; | |
| 1216 | node->output[0]=node->output[0]+DSS_SINEWAVE__BIAS; | |
| 1217 | 1217 | } |
| 1218 | 1218 | else |
| 1219 | 1219 | { |
| 1220 | node->output=0; | |
| 1220 | node->output[0]=0; | |
| 1221 | 1221 | } |
| 1222 | 1222 | |
| 1223 | 1223 | /* Work out the phase step based on phase/freq & sample rate */ |
| r2241 | r2242 | |
| 1274 | 1274 | if(DSS_SQUAREWAVE__ENABLE) |
| 1275 | 1275 | { |
| 1276 | 1276 | if(context->phase>context->trigger) |
| 1277 | node->output=(DSS_SQUAREWAVE__AMP/2.0); | |
| 1277 | node->output[0]=(DSS_SQUAREWAVE__AMP/2.0); | |
| 1278 | 1278 | else |
| 1279 | node->output=-(DSS_SQUAREWAVE__AMP/2.0); | |
| 1279 | node->output[0]=-(DSS_SQUAREWAVE__AMP/2.0); | |
| 1280 | 1280 | |
| 1281 | 1281 | /* Add DC Bias component */ |
| 1282 | node->output=node->output+DSS_SQUAREWAVE__BIAS; | |
| 1282 | node->output[0]=node->output[0]+DSS_SQUAREWAVE__BIAS; | |
| 1283 | 1283 | } |
| 1284 | 1284 | else |
| 1285 | 1285 | { |
| 1286 | node->output=0; | |
| 1286 | node->output[0]=0; | |
| 1287 | 1287 | } |
| 1288 | 1288 | |
| 1289 | 1289 | /* Work out the phase step based on phase/freq & sample rate */ |
| r2241 | r2242 | |
| 1350 | 1350 | context->tOn = context->tOff * (DSS_SQUAREWFIX__DUTY / 100.0); |
| 1351 | 1351 | context->tOff -= context->tOn; |
| 1352 | 1352 | |
| 1353 | node->output = (context->flip_flop ? DSS_SQUAREWFIX__AMP / 2.0 : -(DSS_SQUAREWFIX__AMP / 2.0)) + DSS_SQUAREWFIX__BIAS; | |
| 1353 | node->output[0] = (context->flip_flop ? DSS_SQUAREWFIX__AMP / 2.0 : -(DSS_SQUAREWFIX__AMP / 2.0)) + DSS_SQUAREWFIX__BIAS; | |
| 1354 | 1354 | } |
| 1355 | 1355 | else |
| 1356 | 1356 | { |
| 1357 | node->output=0; | |
| 1357 | node->output[0]=0; | |
| 1358 | 1358 | } |
| 1359 | 1359 | } |
| 1360 | 1360 | |
| r2241 | r2242 | |
| 1429 | 1429 | context->phase = fmod(newphase, 2.0 * M_PI); |
| 1430 | 1430 | |
| 1431 | 1431 | if(context->phase>context->trigger) |
| 1432 | node->output=(DSS_SQUAREWAVE2__AMP/2.0); | |
| 1432 | node->output[0]=(DSS_SQUAREWAVE2__AMP/2.0); | |
| 1433 | 1433 | else |
| 1434 | node->output=-(DSS_SQUAREWAVE2__AMP/2.0); | |
| 1434 | node->output[0]=-(DSS_SQUAREWAVE2__AMP/2.0); | |
| 1435 | 1435 | |
| 1436 | 1436 | /* Add DC Bias component */ |
| 1437 | node->output = node->output + DSS_SQUAREWAVE2__BIAS; | |
| 1437 | node->output[0] = node->output[0] + DSS_SQUAREWAVE2__BIAS; | |
| 1438 | 1438 | } |
| 1439 | 1439 | else |
| 1440 | 1440 | { |
| 1441 | node->output=0; | |
| 1441 | node->output[0]=0; | |
| 1442 | 1442 | } |
| 1443 | 1443 | } |
| 1444 | 1444 | |
| r2241 | r2242 | |
| 1589 | 1589 | context->vCap += diff; |
| 1590 | 1590 | context->vG2_old = vG2; |
| 1591 | 1591 | if ((info->options & DISC_OSC_INVERTER_TYPE_MASK)==DISC_OSC_INVERTER_IS_TYPE3) |
| 1592 | node->output = vG1; | |
| 1592 | node->output[0] = vG1; | |
| 1593 | 1593 | else |
| 1594 | node->output = vG3; | |
| 1594 | node->output[0] = vG3; | |
| 1595 | 1595 | if (info->options & DISC_OSC_INVERTER_OUT_IS_LOGIC) |
| 1596 | node->output = (node->output > info->vInFall); | |
| 1596 | node->output[0] = (node->output[0] > info->vInFall); | |
| 1597 | 1597 | } |
| 1598 | 1598 | |
| 1599 | 1599 | static void dss_inverter_osc_reset(node_description *node) |
| r2241 | r2242 | |
| 1604 | 1604 | /* exponent */ |
| 1605 | 1605 | context->w = -1.0 / (DSS_INVERTER_OSC__RC * DSS_INVERTER_OSC__C); |
| 1606 | 1606 | context->wc = -1.0 / ((DSS_INVERTER_OSC__RC * DSS_INVERTER_OSC__RP) / (DSS_INVERTER_OSC__RP + DSS_INVERTER_OSC__RC) * DSS_INVERTER_OSC__C); |
| 1607 | node->output = 0; | |
| 1607 | node->output[0] = 0; | |
| 1608 | 1608 | context->vCap = 0; |
| 1609 | 1609 | context->vG2_old = 0; |
| 1610 | 1610 | context->Rp = DSS_INVERTER_OSC__RP; |
| r2241 | r2242 | |
| 1639 | 1639 | |
| 1640 | 1640 | if(DSS_TRIANGLEWAVE__ENABLE) |
| 1641 | 1641 | { |
| 1642 | node->output=context->phase < M_PI ? (DSS_TRIANGLEWAVE__AMP * (context->phase / (M_PI/2.0) - 1.0))/2.0 : | |
| 1642 | node->output[0]=context->phase < M_PI ? (DSS_TRIANGLEWAVE__AMP * (context->phase / (M_PI/2.0) - 1.0))/2.0 : | |
| 1643 | 1643 | (DSS_TRIANGLEWAVE__AMP * (3.0 - context->phase / (M_PI/2.0)))/2.0 ; |
| 1644 | 1644 | |
| 1645 | 1645 | /* Add DC Bias component */ |
| 1646 | node->output=node->output+DSS_TRIANGLEWAVE__BIAS; | |
| 1646 | node->output[0]=node->output[0]+DSS_TRIANGLEWAVE__BIAS; | |
| 1647 | 1647 | } |
| 1648 | 1648 | else |
| 1649 | 1649 | { |
| 1650 | node->output=0; | |
| 1650 | node->output[0]=0; | |
| 1651 | 1651 | } |
| 1652 | 1652 | |
| 1653 | 1653 | /* Work out the phase step based on phase/freq & sample rate */ |
| r2241 | r2242 | |
| 1692 | 1692 | |
| 1693 | 1693 | if(DSS_ADSR__ENABLE) |
| 1694 | 1694 | { |
| 1695 | node->output=0; | |
| 1695 | node->output[0]=0; | |
| 1696 | 1696 | } |
| 1697 | 1697 | else |
| 1698 | 1698 | { |
| 1699 | node->output=0; | |
| 1699 | node->output[0]=0; | |
| 1700 | 1700 | } |
| 1701 | 1701 | } |
| 1702 | 1702 |
| r2241 | r2242 | |
|---|---|---|
| 166 | 166 | |
| 167 | 167 | WRITE16_HANDLER( YM2151_register_port_0_lsb_w ) |
| 168 | 168 | { |
| 169 | if (ACCESSING_ | |
| 169 | if (ACCESSING_ | |
| 170 | 170 | YM2151_register_port_0_w(machine, 0, data & 0xff); |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | WRITE16_HANDLER( YM2151_register_port_1_lsb_w ) |
| 174 | 174 | { |
| 175 | if (ACCESSING_ | |
| 175 | if (ACCESSING_ | |
| 176 | 176 | YM2151_register_port_1_w(machine, 0, data & 0xff); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | WRITE16_HANDLER( YM2151_register_port_2_lsb_w ) |
| 180 | 180 | { |
| 181 | if (ACCESSING_ | |
| 181 | if (ACCESSING_ | |
| 182 | 182 | YM2151_register_port_2_w(machine, 0, data & 0xff); |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | WRITE16_HANDLER( YM2151_data_port_0_lsb_w ) |
| 186 | 186 | { |
| 187 | if (ACCESSING_ | |
| 187 | if (ACCESSING_ | |
| 188 | 188 | YM2151_data_port_0_w(machine, 0, data & 0xff); |
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | WRITE16_HANDLER( YM2151_data_port_1_lsb_w ) |
| 192 | 192 | { |
| 193 | if (ACCESSING_ | |
| 193 | if (ACCESSING_ | |
| 194 | 194 | YM2151_data_port_1_w(machine, 0, data & 0xff); |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | WRITE16_HANDLER( YM2151_data_port_2_lsb_w ) |
| 198 | 198 | { |
| 199 | if (ACCESSING_ | |
| 199 | if (ACCESSING_ | |
| 200 | 200 | YM2151_data_port_2_w(machine, 0, data & 0xff); |
| 201 | 201 | } |
| 202 | 202 |
| r2241 | r2242 | |
|---|---|---|
| 377 | 377 | switch( offset % 4 ) |
| 378 | 378 | { |
| 379 | 379 | case SPU_CHANNEL_REG( 0x8 ): |
| 380 | if( ACCESSING_ | |
| 380 | if( ACCESSING_BITS_0_15 ) | |
| 381 | 381 | { |
| 382 | 382 | verboselog( 1, "psx_spu_r() channel %d attack/decay/sustain = %04x\n", n_channel, chip->m_p_n_attackdecaysustain[ n_channel ] ); |
| 383 | 383 | } |
| 384 | if( ACCESSING_ | |
| 384 | if( ACCESSING_BITS_16_31 ) | |
| 385 | 385 | { |
| 386 | 386 | verboselog( 1, "psx_spu_r() channel %d sustain/release = %04x\n", n_channel, chip->m_p_n_sustainrelease[ n_channel ] ); |
| 387 | 387 | } |
| 388 | 388 | return ( chip->m_p_n_sustainrelease[ n_channel ] << 16 ) | chip->m_p_n_attackdecaysustain[ n_channel ]; |
| 389 | 389 | case SPU_CHANNEL_REG( 0xc ): |
| 390 | if( ACCESSING_ | |
| 390 | if( ACCESSING_BITS_0_15 ) | |
| 391 | 391 | { |
| 392 | 392 | verboselog( 1, "psx_spu_r() channel %d adsr volume = %04x\n", n_channel, chip->m_p_n_adsrvolume[ n_channel ] ); |
| 393 | 393 | } |
| 394 | if( ACCESSING_ | |
| 394 | if( ACCESSING_BITS_16_31 ) | |
| 395 | 395 | { |
| 396 | 396 | verboselog( 1, "psx_spu_r() channel %d repeat address = %04x\n", n_channel, chip->m_p_n_repeataddress[ n_channel ] ); |
| 397 | 397 | } |
| r2241 | r2242 | |
| 446 | 446 | switch( offset % 4 ) |
| 447 | 447 | { |
| 448 | 448 | case SPU_CHANNEL_REG( 0x0 ): |
| 449 | if( ACCESSING_ | |
| 449 | if( ACCESSING_BITS_0_15 ) | |
| 450 | 450 | { |
| 451 | 451 | chip->m_p_n_volumeleft[ n_channel ] = data & 0xffff; |
| 452 | 452 | verboselog( 1, "psx_spu_w() channel %d volume left = %04x\n", n_channel, chip->m_p_n_volumeleft[ n_channel ] ); |
| 453 | 453 | } |
| 454 | if( ACCESSING_ | |
| 454 | if( ACCESSING_BITS_16_31 ) | |
| 455 | 455 | { |
| 456 | 456 | chip->m_p_n_volumeright[ n_channel ] = data >> 16; |
| 457 | 457 | verboselog( 1, "psx_spu_w() channel %d volume right = %04x\n", n_channel, chip->m_p_n_volumeright[ n_channel ] ); |
| 458 | 458 | } |
| 459 | 459 | break; |
| 460 | 460 | case SPU_CHANNEL_REG( 0x4 ): |
| 461 | if( ACCESSING_ | |
| 461 | if( ACCESSING_BITS_0_15 ) | |
| 462 | 462 | { |
| 463 | 463 | chip->m_p_n_pitch[ n_channel ] = data & 0xffff; |
| 464 | 464 | verboselog( 1, "psx_spu_w() channel %d pitch = %04x\n", n_channel, chip->m_p_n_pitch[ n_channel ] ); |
| 465 | 465 | } |
| 466 | if( ACCESSING_ | |
| 466 | if( ACCESSING_BITS_16_31 ) | |
| 467 | 467 | { |
| 468 | 468 | chip->m_p_n_address[ n_channel ] = data >> 16; |
| 469 | 469 | verboselog( 1, "psx_spu_w() channel %d address = %04x\n", n_channel, chip->m_p_n_address[ n_channel ] ); |
| 470 | 470 | } |
| 471 | 471 | break; |
| 472 | 472 | case SPU_CHANNEL_REG( 0x8 ): |
| 473 | if( ACCESSING_ | |
| 473 | if( ACCESSING_BITS_0_15 ) | |
| 474 | 474 | { |
| 475 | 475 | chip->m_p_n_attackdecaysustain[ n_channel ] = data & 0xffff; |
| 476 | 476 | verboselog( 1, "psx_spu_w() channel %d attack/decay/sustain = %04x\n", n_channel, chip->m_p_n_attackdecaysustain[ n_channel ] ); |
| 477 | 477 | } |
| 478 | if( ACCESSING_ | |
| 478 | if( ACCESSING_BITS_16_31 ) | |
| 479 | 479 | { |
| 480 | 480 | chip->m_p_n_sustainrelease[ n_channel ] = data >> 16; |
| 481 | 481 | verboselog( 1, "psx_spu_w() channel %d sustain/release = %04x\n", n_channel, chip->m_p_n_sustainrelease[ n_channel ] ); |
| 482 | 482 | } |
| 483 | 483 | break; |
| 484 | 484 | case SPU_CHANNEL_REG( 0xc ): |
| 485 | if( ACCESSING_ | |
| 485 | if( ACCESSING_BITS_0_15 ) | |
| 486 | 486 | { |
| 487 | 487 | chip->m_p_n_adsrvolume[ n_channel ] = data & 0xffff; |
| 488 | 488 | verboselog( 1, "psx_spu_w() channel %d adsr volume = %04x\n", n_channel, chip->m_p_n_adsrvolume[ n_channel ] ); |
| 489 | 489 | } |
| 490 | if( ACCESSING_ | |
| 490 | if( ACCESSING_BITS_16_31 ) | |
| 491 | 491 | { |
| 492 | 492 | chip->m_p_n_repeataddress[ n_channel ] = data >> 16; |
| 493 | 493 | verboselog( 1, "psx_spu_w() channel %d repeat address = %04x\n", n_channel, chip->m_p_n_repeataddress[ n_channel ] ); |
| r2241 | r2242 | |
| 503 | 503 | switch( offset ) |
| 504 | 504 | { |
| 505 | 505 | case SPU_REG( 0xd80 ): |
| 506 | if( ACCESSING_ | |
| 506 | if( ACCESSING_BITS_0_15 ) | |
| 507 | 507 | { |
| 508 | 508 | chip->m_n_mainvolumeleft = data & 0xffff; |
| 509 | 509 | verboselog( 1, "psx_spu_w() main volume left = %04x\n", chip->m_n_mainvolumeleft ); |
| 510 | 510 | } |
| 511 | if( ACCESSING_ | |
| 511 | if( ACCESSING_BITS_16_31 ) | |
| 512 | 512 | { |
| 513 | 513 | chip->m_n_mainvolumeright = data >> 16; |
| 514 | 514 | verboselog( 1, "psx_spu_w() main volume right = %04x\n", chip->m_n_mainvolumeright ); |
| 515 | 515 | } |
| 516 | 516 | break; |
| 517 | 517 | case SPU_REG( 0xd84 ): |
| 518 | if( ACCESSING_ | |
| 518 | if( ACCESSING_BITS_0_15 ) | |
| 519 | 519 | { |
| 520 | 520 | chip->m_n_reverberationdepthleft = data & 0xffff; |
| 521 | 521 | verboselog( 1, "psx_spu_w() reverberation depth left = %04x\n", chip->m_n_reverberationdepthleft ); |
| 522 | 522 | } |
| 523 | if( ACCESSING_ | |
| 523 | if( ACCESSING_BITS_16_31 ) | |
| 524 | 524 | { |
| 525 | 525 | chip->m_n_reverberationdepthright = data >> 16; |
| 526 | 526 | verboselog( 1, "psx_spu_w() reverberation depth right = %04x\n", chip->m_n_reverberationdepthright ); |
| r2241 | r2242 | |
| 564 | 564 | verboselog( 1, "psx_spu_w() channel on/off = %08x\n", chip->m_n_channelonoff ); |
| 565 | 565 | break; |
| 566 | 566 | case SPU_REG( 0xda0 ): |
| 567 | if( ACCESSING_ | |
| 567 | if( ACCESSING_BITS_0_15 ) | |
| 568 | 568 | { |
| 569 | 569 | verboselog( 0, "psx_spu_w( %08x, %08x, %08x ) %08x\n", offset, mem_mask, data, 0xc00 + ( offset * 4 ) ); |
| 570 | 570 | } |
| 571 | if( ACCESSING_ | |
| 571 | if( ACCESSING_BITS_16_31 ) | |
| 572 | 572 | { |
| 573 | 573 | chip->m_n_reverbworkareastart = data >> 16; |
| 574 | 574 | verboselog( 1, "psx_spu_w() reverb work area start = %04x\n", chip->m_n_reverbworkareastart ); |
| 575 | 575 | } |
| 576 | 576 | break; |
| 577 | 577 | case SPU_REG( 0xda4 ): |
| 578 | if( ACCESSING_ | |
| 578 | if( ACCESSING_BITS_0_15 ) | |
| 579 | 579 | { |
| 580 | 580 | chip->m_n_irqaddress = data & 0xffff; |
| 581 | 581 | verboselog( 1, "psx_spu_w() irq address = %04x\n", chip->m_n_irqaddress ); |
| 582 | 582 | } |
| 583 | if( ACCESSING_ | |
| 583 | if( ACCESSING_BITS_16_31 ) | |
| 584 | 584 | { |
| 585 | 585 | chip->m_n_spuoffset = ( data >> 16 ) * 4; |
| 586 | 586 | chip->m_n_spuoffset %= ( SPU_RAM_SIZE / 2 ); |
| r2241 | r2242 | |
| 588 | 588 | } |
| 589 | 589 | break; |
| 590 | 590 | case SPU_REG( 0xda8 ): |
| 591 | if( ACCESSING_ | |
| 591 | if( ACCESSING_BITS_0_15 ) | |
| 592 | 592 | { |
| 593 | 593 | chip->m_n_spudata = data & 0xffff; |
| 594 | 594 | chip->m_p_n_spuram[ chip->m_n_spuoffset++ ] = chip->m_n_spudata; |
| 595 | 595 | chip->m_n_spuoffset %= ( SPU_RAM_SIZE / 2 ); |
| 596 | 596 | verboselog( 1, "psx_spu_w() spu data = %04x\n", chip->m_n_spudata ); |
| 597 | 597 | } |
| 598 | if( ACCESSING_ | |
| 598 | if( ACCESSING_BITS_16_31 ) | |
| 599 | 599 | { |
| 600 | 600 | chip->m_n_spucontrol = data >> 16; |
| 601 | 601 | verboselog( 1, "psx_spu_w() spu control = %04x\n", chip->m_n_spucontrol ); |
| r2241 | r2242 | |
| 607 | 607 | verboselog( 1, "psx_spu_w() spu status = %08x\n", chip->m_n_spustatus ); |
| 608 | 608 | break; |
| 609 | 609 | case SPU_REG( 0xdb0 ): |
| 610 | if( ACCESSING_ | |
| 610 | if( ACCESSING_BITS_0_15 ) | |
| 611 | 611 | { |
| 612 | 612 | chip->m_n_cdvolumeleft = data & 0xffff; |
| 613 | 613 | verboselog( 1, "psx_spu_w() cd volume left = %04x\n", chip->m_n_cdvolumeleft ); |
| 614 | 614 | } |
| 615 | if( ACCESSING_ | |
| 615 | if( ACCESSING_BITS_16_31 ) | |
| 616 | 616 | { |
| 617 | 617 | chip->m_n_cdvolumeright = data >> 16; |
| 618 | 618 | verboselog( 1, "psx_spu_w() cd volume right = %04x\n", chip->m_n_cdvolumeright ); |
| 619 | 619 | } |
| 620 | 620 | break; |
| 621 | 621 | case SPU_REG( 0xdb4 ): |
| 622 | if( ACCESSING_ | |
| 622 | if( ACCESSING_BITS_0_15 ) | |
| 623 | 623 | { |
| 624 | 624 | chip->m_n_externalvolumeleft = data & 0xffff; |
| 625 | 625 | verboselog( 1, "psx_spu_w() external volume left = %04x\n", chip->m_n_externalvolumeleft ); |
| 626 | 626 | } |
| 627 | if( ACCESSING_ | |
| 627 | if( ACCESSING_BITS_16_31 ) | |
| 628 | 628 | { |
| 629 | 629 | chip->m_n_externalvolumeright = data >> 16; |
| 630 | 630 | verboselog( 1, "psx_spu_w() external volume right = %04x\n", chip->m_n_externalvolumeright ); |
| r2241 | r2242 | |
|---|---|---|
| 428 | 428 | |
| 429 | 429 | WRITE16_HANDLER( K053260_0_lsb_w ) |
| 430 | 430 | { |
| 431 | if (ACCESSING_ | |
| 431 | if (ACCESSING_ | |
| 432 | 432 | K053260_0_w (machine, offset, data & 0xff); |
| 433 | 433 | } |
| 434 | 434 | |
| r2241 | r2242 | |
| 439 | 439 | |
| 440 | 440 | WRITE16_HANDLER( K053260_1_lsb_w ) |
| 441 | 441 | { |
| 442 | if (ACCESSING_ | |
| 442 | if (ACCESSING_ | |
| 443 | 443 | K053260_1_w (machine, offset, data & 0xff); |
| 444 | 444 | } |
| 445 | 445 |
| r2241 | r2242 | |
|---|---|---|
| 139 | 139 | WRITE8_HANDLER( YM2413_data_port_2_w ) { struct ym2413_info *info = sndti_token(SOUND_YM2413, 2); YM2413Write (info->chip, 1, data); } /* 3rd chip */ |
| 140 | 140 | WRITE8_HANDLER( YM2413_data_port_3_w ) { struct ym2413_info *info = sndti_token(SOUND_YM2413, 3); YM2413Write (info->chip, 1, data); } /* 4th chip */ |
| 141 | 141 | |
| 142 | WRITE16_HANDLER( YM2413_register_port_0_lsb_w ) { if (ACCESSING_LSB) YM2413_register_port_0_w(machine,offset,data & 0xff); } | |
| 143 | WRITE16_HANDLER( YM2413_register_port_0_msb_w ) { if (ACCESSING_MSB) YM2413_register_port_0_w(machine,offset,((data & 0xff00) >> 8)); } | |
| 144 | WRITE16_HANDLER( YM2413_register_port_1_lsb_w ) { if (ACCESSING_LSB) YM2413_register_port_1_w(machine,offset,data & 0xff); } | |
| 145 | WRITE16_HANDLER( YM2413_register_port_2_lsb_w ) { if (ACCESSING_LSB) YM2413_register_port_2_w(machine,offset,data & 0xff); } | |
| 146 | WRITE16_HANDLER( YM2413_register_port_3_lsb_w ) { if (ACCESSING_LSB) YM2413_register_port_3_w(machine,offset,data & 0xff); } | |
| 147 | WRITE16_HANDLER( YM2413_data_port_0_lsb_w ) { if (ACCESSING_LSB) YM2413_data_port_0_w(machine,offset,data & 0xff); } | |
| 148 | WRITE16_HANDLER( YM2413_data_port_0_msb_w ) { if (ACCESSING_MSB) YM2413_data_port_0_w(machine,offset,((data & 0xff00) >> 8)); } | |
| 149 | WRITE16_HANDLER( YM2413_data_port_1_lsb_w ) { if (ACCESSING_LSB) YM2413_data_port_1_w(machine,offset,data & 0xff); } | |
| 150 | WRITE16_HANDLER( YM2413_data_port_2_lsb_w ) { if (ACCESSING_LSB) YM2413_data_port_2_w(machine,offset,data & 0xff); } | |
| 151 | WRITE16_HANDLER( YM2413_data_port_3_lsb_w ) { if (ACCESSING_LSB) YM2413_data_port_3_w(machine,offset,data & 0xff); } | |
| 142 | WRITE16_HANDLER( YM2413_register_port_0_lsb_w ) { if (ACCESSING_BITS_0_7) YM2413_register_port_0_w(machine,offset,data & 0xff); } | |
| 143 | WRITE16_HANDLER( YM2413_register_port_0_msb_w ) { if (ACCESSING_BITS_8_15) YM2413_register_port_0_w(machine,offset,((data & 0xff00) >> 8)); } | |
| 144 | WRITE16_HANDLER( YM2413_register_port_1_lsb_w ) { if (ACCESSING_BITS_0_7) YM2413_register_port_1_w(machine,offset,data & 0xff); } | |
| 145 | WRITE16_HANDLER( YM2413_register_port_2_lsb_w ) { if (ACCESSING_BITS_0_7) YM2413_register_port_2_w(machine,offset,data & 0xff); } | |
| 146 | WRITE16_HANDLER( YM2413_register_port_3_lsb_w ) { if (ACCESSING_BITS_0_7) YM2413_register_port_3_w(machine,offset,data & 0xff); } | |
| 147 | WRITE16_HANDLER( YM2413_data_port_0_lsb_w ) { if (ACCESSING_BITS_0_7) YM2413_data_port_0_w(machine,offset,data & 0xff); } | |
| 148 | WRITE16_HANDLER( YM2413_data_port_0_msb_w ) { if (ACCESSING_BITS_8_15) YM2413_data_port_0_w(machine,offset,((data & 0xff00) >> 8)); } | |
| 149 | WRITE16_HANDLER( YM2413_data_port_1_lsb_w ) { if (ACCESSING_BITS_0_7) YM2413_data_port_1_w(machine,offset,data & 0xff); } | |
| 150 | WRITE16_HANDLER( YM2413_data_port_2_lsb_w ) { if (ACCESSING_BITS_0_7) YM2413_data_port_2_w(machine,offset,data & 0xff); } | |
| 151 | WRITE16_HANDLER( YM2413_data_port_3_lsb_w ) { if (ACCESSING_BITS_0_7) YM2413_data_port_3_w(machine,offset,data & 0xff); } | |
| 152 | 152 | |
| 153 | 153 | |
| 154 | 154 | /************************************************************************** |
| r2241 | r2242 | |
|---|---|---|
| 91 | 91 | double vCap; |
| 92 | 92 | }; |
| 93 | 93 | |
| 94 | struct dst_rcfilter_sw_context | |
| 95 | { | |
| 96 | double vCap[4]; | |
| 97 | }; | |
| 94 | 98 | |
| 95 | 99 | /************************************************************************ |
| 96 | 100 | * |
| r2241 | r2242 | |
| 115 | 119 | |
| 116 | 120 | if(DST_CRFILTER__ENABLE) |
| 117 | 121 | { |
| 118 | node->output = DST_CRFILTER__IN - context->vCap; | |
| 122 | node->output[0] = DST_CRFILTER__IN - context->vCap; | |
| 119 | 123 | context->vCap += ((DST_CRFILTER__IN - DST_CRFILTER__VREF) - context->vCap) * context->exponent; |
| 120 | 124 | } |
| 121 | 125 | else |
| 122 | 126 | { |
| 123 | node->output = 0; | |
| 127 | node->output[0] = 0; | |
| 124 | 128 | } |
| 125 | 129 | } |
| 126 | 130 | |
| r2241 | r2242 | |
| 131 | 135 | context->exponent = -1.0 / (DST_CRFILTER__R * DST_CRFILTER__C * discrete_current_context->sample_rate); |
| 132 | 136 | context->exponent = 1.0 - exp(context->exponent); |
| 133 | 137 | context->vCap = 0; |
| 134 | node->output = DST_CRFILTER__IN; | |
| 138 | node->output[0] = DST_CRFILTER__IN; | |
| 135 | 139 | } |
| 136 | 140 | |
| 137 | 141 | |
| r2241 | r2242 | |
| 187 | 191 | gain = 0.0; |
| 188 | 192 | } |
| 189 | 193 | |
| 190 | node->output = -context->a1*context->y1 + context->b0*gain*DST_FILTER1__IN + context->b1*context->x1; | |
| 194 | node->output[0] = -context->a1*context->y1 + context->b0*gain*DST_FILTER1__IN + context->b1*context->x1; | |
| 191 | 195 | |
| 192 | 196 | context->x1 = gain*DST_FILTER1__IN; |
| 193 | context->y1 = node->output; | |
| 197 | context->y1 = node->output[0]; | |
| 194 | 198 | } |
| 195 | 199 | |
| 196 | 200 | static void dst_filter1_reset(node_description *node) |
| r2241 | r2242 | |
| 198 | 202 | struct dss_filter1_context *context = node->context; |
| 199 | 203 | |
| 200 | 204 | calculate_filter1_coefficients(DST_FILTER1__FREQ, DST_FILTER1__TYPE, &context->a1, &context->b0, &context->b1); |
| 201 | node->output=0; | |
| 205 | node->output[0]=0; | |
| 202 | 206 | } |
| 203 | 207 | |
| 204 | 208 | |
| r2241 | r2242 | |
| 271 | 275 | gain = 0.0; |
| 272 | 276 | } |
| 273 | 277 | |
| 274 | node->output = -context->a1*context->y1 - context->a2*context->y2 + | |
| 278 | node->output[0] = -context->a1*context->y1 - context->a2*context->y2 + | |
| 275 | 279 | context->b0*gain*DST_FILTER2__IN + context->b1*context->x1 + context->b2*context->x2; |
| 276 | 280 | |
| 277 | 281 | context->x2 = context->x1; |
| 278 | 282 | context->x1 = gain * DST_FILTER2__IN; |
| 279 | 283 | context->y2 = context->y1; |
| 280 | context->y1 = node->output; | |
| 284 | context->y1 = node->output[0]; | |
| 281 | 285 | } |
| 282 | 286 | |
| 283 | 287 | static void dst_filter2_reset(node_description *node) |
| r2241 | r2242 | |
| 287 | 291 | calculate_filter2_coefficients(DST_FILTER2__FREQ, DST_FILTER2__DAMP, DST_FILTER2__TYPE, |
| 288 | 292 | &context->a1, &context->a2, |
| 289 | 293 | &context->b0, &context->b1, &context->b2); |
| 290 | node->output=0; | |
| 294 | node->output[0]=0; | |
| 291 | 295 | } |
| 292 | 296 | |
| 293 | 297 | |
| r2241 | r2242 | |
| 337 | 341 | { |
| 338 | 342 | case DISC_OP_AMP_FILTER_IS_LOW_PASS_1: |
| 339 | 343 | context->vC1 += (v - context->vC1) * context->exponentC1; |
| 340 | node->output = context->vC1 * context->gain + info->vRef; | |
| 344 | node->output[0] = context->vC1 * context->gain + info->vRef; | |
| 341 | 345 | break; |
| 342 | 346 | |
| 343 | 347 | case DISC_OP_AMP_FILTER_IS_HIGH_PASS_1: |
| 344 | node->output = (v - context->vC1) * context->gain + info->vRef; | |
| 348 | node->output[0] = (v - context->vC1) * context->gain + info->vRef; | |
| 345 | 349 | context->vC1 += (v - context->vC1) * context->exponentC1; |
| 346 | 350 | break; |
| 347 | 351 | |
| 348 | 352 | case DISC_OP_AMP_FILTER_IS_BAND_PASS_1: |
| 349 | node->output = (v - context->vC2); | |
| 353 | node->output[0] = (v - context->vC2); | |
| 350 | 354 | context->vC2 += (v - context->vC2) * context->exponentC2; |
| 351 | context->vC1 += (node->output - context->vC1) * context->exponentC1; | |
| 352 | node->output = context->vC1 * context->gain + info->vRef; | |
| 355 | context->vC1 += (node->output[0] - context->vC1) * context->exponentC1; | |
| 356 | node->output[0] = context->vC1 * context->gain + info->vRef; | |
| 353 | 357 | break; |
| 354 | 358 | |
| 355 | 359 | case DISC_OP_AMP_FILTER_IS_BAND_PASS_0 | DISC_OP_AMP_IS_NORTON: |
| 356 | 360 | context->vC1 += (v - context->vC1) * context->exponentC1; |
| 357 | 361 | context->vC2 += (context->vC1 - context->vC2) * context->exponentC2; |
| 358 | 362 | v = context->vC2; |
| 359 | node->output = v - context->vC3; | |
| 363 | node->output[0] = v - context->vC3; | |
| 360 | 364 | context->vC3 += (v - context->vC3) * context->exponentC3; |
| 361 | i = node->output / context->rTotal; | |
| 362 | node->output = (context->iFixed - i) * info->rF; | |
| 365 | i = node->output[0] / context->rTotal; | |
| 366 | node->output[0] = (context->iFixed - i) * info->rF; | |
| 363 | 367 | break; |
| 364 | 368 | |
| 365 | 369 | case DISC_OP_AMP_FILTER_IS_HIGH_PASS_0 | DISC_OP_AMP_IS_NORTON: |
| 366 | node->output = v - context->vC1; | |
| 370 | node->output[0] = v - context->vC1; | |
| 367 | 371 | context->vC1 += (v - context->vC1) * context->exponentC1; |
| 368 | i = node->output / context->rTotal; | |
| 369 | node->output = (context->iFixed - i) * info->rF; | |
| 372 | i = node->output[0] / context->rTotal; | |
| 373 | node->output[0] = (context->iFixed - i) * info->rF; | |
| 370 | 374 | break; |
| 371 | 375 | |
| 372 | 376 | case DISC_OP_AMP_FILTER_IS_BAND_PASS_1M: |
| 373 | 377 | case DISC_OP_AMP_FILTER_IS_BAND_PASS_1M | DISC_OP_AMP_IS_NORTON: |
| 374 | node->output = -context->a1*context->y1 - context->a2*context->y2 + | |
| 378 | node->output[0] = -context->a1*context->y1 - context->a2*context->y2 + | |
| 375 | 379 | context->b0*v + context->b1*context->x1 + context->b2*context->x2 + |
| 376 | 380 | context->vRef; |
| 377 | 381 | context->x2 = context->x1; |
| r2241 | r2242 | |
| 383 | 387 | /* Clip the output to the voltage rails. |
| 384 | 388 | * This way we get the original distortion in all it's glory. |
| 385 | 389 | */ |
| 386 | if (node->output > context->vP) node->output = context->vP; | |
| 387 | if (node->output < context->vN) node->output = context->vN; | |
| 388 | context->y1 = node->output - context->vRef; | |
| 390 | if (node->output[0] > context->vP) node->output[0] = context->vP; | |
| 391 | if (node->output[0] < context->vN) node->output[0] = context->vN; | |
| 392 | context->y1 = node->output[0] - context->vRef; | |
| 389 | 393 | } |
| 390 | 394 | else |
| 391 | node->output = 0; | |
| 395 | node->output[0] = 0; | |
| 392 | 396 | |
| 393 | 397 | } |
| 394 | 398 | |
| r2241 | r2242 | |
| 494 | 498 | context->vC2 = 0; |
| 495 | 499 | context->vC3 = 0; |
| 496 | 500 | |
| 497 | node->output = info->vRef; | |
| 501 | node->output[0] = info->vRef; | |
| 498 | 502 | } |
| 499 | 503 | |
| 500 | 504 | |
| r2241 | r2242 | |
| 524 | 528 | context->state = 1; |
| 525 | 529 | context->t = 0; |
| 526 | 530 | } |
| 527 | node->output=0; | |
| 531 | node->output[0]=0; | |
| 528 | 532 | break; |
| 529 | 533 | |
| 530 | 534 | case 1: |
| 531 | 535 | if (DST_RCDISC__ENABLE) { |
| 532 | node->output = DST_RCDISC__IN * exp(context->t / context->exponent0); | |
| 536 | node->output[0] = DST_RCDISC__IN * exp(context->t / context->exponent0); | |
| 533 | 537 | context->t += discrete_current_context->sample_time; |
| 534 | 538 | } else { |
| 535 | 539 | context->state = 0; |
| r2241 | r2242 | |
| 541 | 545 | { |
| 542 | 546 | struct dst_rcdisc_context *context = node->context; |
| 543 | 547 | |
| 544 | node->output=0; | |
| 548 | node->output[0]=0; | |
| 545 | 549 | |
| 546 | 550 | context->state = 0; |
| 547 | 551 | context->t = 0; |
| r2241 | r2242 | |
| 577 | 581 | /* Works differently to other as we are always on, no enable */ |
| 578 | 582 | /* exponential based in difference between input/output */ |
| 579 | 583 | |
| 580 | diff = ((DST_RCDISC2__ENABLE == 0) ? DST_RCDISC2__IN0 : DST_RCDISC2__IN1) - node->output; | |
| 584 | diff = ((DST_RCDISC2__ENABLE == 0) ? DST_RCDISC2__IN0 : DST_RCDISC2__IN1) - node->output[0]; | |
| 581 | 585 | diff = diff - (diff * exp(discrete_current_context->sample_time / ((DST_RCDISC2__ENABLE == 0) ? context->exponent0 : context->exponent1))); |
| 582 | node->output += diff; | |
| 586 | node->output[0] += diff; | |
| 583 | 587 | } |
| 584 | 588 | |
| 585 | 589 | static void dst_rcdisc2_reset(node_description *node) |
| 586 | 590 | { |
| 587 | 591 | struct dst_rcdisc_context *context = node->context; |
| 588 | 592 | |
| 589 | node->output=0; | |
| 593 | node->output[0]=0; | |
| 590 | 594 | |
| 591 | 595 | context->state = 0; |
| 592 | 596 | context->t = 0; |
| r2241 | r2242 | |
| 621 | 625 | |
| 622 | 626 | if(DST_RCDISC3__ENABLE) |
| 623 | 627 | { |
| 624 | diff = DST_RCDISC3__IN - node->output; | |
| 628 | diff = DST_RCDISC3__IN - node->output[0]; | |
| 625 | 629 | if( diff > 0 ) |
| 626 | 630 | { |
| 627 | 631 | diff = diff - (diff * exp(discrete_current_context->sample_time / context->exponent0)); |
| r2241 | r2242 | |
| 632 | 636 | else |
| 633 | 637 | diff = diff - (diff * exp(discrete_current_context->sample_time / context->exponent0)); |
| 634 | 638 | } |
| 635 | node->output += diff; | |
| 639 | node->output[0] += diff; | |
| 636 | 640 | } |
| 637 | 641 | else |
| 638 | 642 | { |
| 639 | node->output=0; | |
| 643 | node->output[0]=0; | |
| 640 | 644 | } |
| 641 | 645 | } |
| 642 | 646 | |
| r2241 | r2242 | |
| 644 | 648 | { |
| 645 | 649 | struct dst_rcdisc_context *context = node->context; |
| 646 | 650 | |
| 647 | node->output=0; | |
| 651 | node->output[0]=0; | |
| 648 | 652 | |
| 649 | 653 | context->state = 0; |
| 650 | 654 | context->t = 0; |
| r2241 | r2242 | |
| 682 | 686 | |
| 683 | 687 | if (DST_RCDISC4__ENABLE == 0) |
| 684 | 688 | { |
| 685 | node->output = 0; | |
| 689 | node->output[0] = 0; | |
| 686 | 690 | return; |
| 687 | 691 | } |
| 688 | 692 | |
| r2241 | r2242 | |
| 691 | 695 | case 1: |
| 692 | 696 | case 3: |
| 693 | 697 | context->vC1 += ((context->v[inp1] - context->vC1) * context->exp[inp1]); |
| 694 | node->output = context->vC1; | |
| 698 | node->output[0] = context->vC1; | |
| 695 | 699 | break; |
| 696 | 700 | } |
| 697 | 701 | |
| 698 | 702 | /* clip output */ |
| 699 | if (node->output > context->max_out) node->output = context->max_out; | |
| 700 | if (node->output < 0) node->output = 0; | |
| 703 | if (node->output[0] > context->max_out) node->output[0] = context->max_out; | |
| 704 | if (node->output[0] < 0) node->output[0] = 0; | |
| 701 | 705 | } |
| 702 | 706 | |
| 703 | 707 | static void dst_rcdisc4_reset(node_description *node) |
| r2241 | r2242 | |
| 802 | 806 | if( u < 0) |
| 803 | 807 | u = 0; |
| 804 | 808 | |
| 805 | diff = u - node->output; | |
| 809 | diff = u - node->output[0]; | |
| 806 | 810 | |
| 807 | 811 | if(diff < 0) |
| 808 | 812 | //diff = diff - (diff * exp(discrete_current_context->sample_time / context->exponent0)); |
| 809 | diff = -node->output + (node->output * exp(discrete_current_context->sample_time / context->exponent0)); | |
| 810 | node->output += diff; | |
| 813 | diff = -node->output[0] + (node->output[0] * exp(discrete_current_context->sample_time / context->exponent0)); | |
| 814 | node->output[0] += diff; | |
| 811 | 815 | } |
| 812 | 816 | else |
| 813 | 817 | { |
| 814 | node->output=0; | |
| 818 | node->output[0]=0; | |
| 815 | 819 | } |
| 816 | 820 | } |
| 817 | 821 | |
| r2241 | r2242 | |
| 819 | 823 | { |
| 820 | 824 | struct dst_rcdisc_context *context = node->context; |
| 821 | 825 | |
| 822 | node->output=0; | |
| 826 | node->output[0]=0; | |
| 823 | 827 | |
| 824 | 828 | context->state = 0; |
| 825 | 829 | context->t = 0; |
| r2241 | r2242 | |
| 916 | 920 | switch (context->state) |
| 917 | 921 | { |
| 918 | 922 | case DISC_RC_INTEGRATE_TYPE1: |
| 919 | node->output = context->vCap; | |
| 923 | node->output[0] = context->vCap; | |
| 920 | 924 | break; |
| 921 | 925 | case DISC_RC_INTEGRATE_TYPE2: |
| 922 | node->output = vE; | |
| 926 | node->output[0] = vE; | |
| 923 | 927 | break; |
| 924 | 928 | case DISC_RC_INTEGRATE_TYPE3: |
| 925 | node->output = MAX(0,vP - iQ * context->R3); | |
| 929 | node->output[0] = MAX(0,vP - iQ * context->R3); | |
| 926 | 930 | break; |
| 927 | 931 | } |
| 928 | 932 | } |
| 929 | 933 | else |
| 930 | 934 | { |
| 931 | node->output=0; | |
| 935 | node->output[0]=0; | |
| 932 | 936 | } |
| 933 | 937 | } |
| 934 | 938 | |
| r2241 | r2242 | |
| 937 | 941 | struct dst_rcdisc_context *context = node->context; |
| 938 | 942 | double r; |
| 939 | 943 | |
| 940 | node->output=0; | |
| 944 | node->output[0]=0; | |
| 941 | 945 | |
| 942 | 946 | context->state = DST_RCINTEGRATE__TYPE; |
| 943 | 947 | context->R1 = DST_RCINTEGRATE__R1; |
| r2241 | r2242 | |
| 1005 | 1009 | diff = u + 0.6 - vCap; |
| 1006 | 1010 | diff = diff - (diff * exp(0.0-discrete_current_context->sample_time / (DST_RCDISC_MOD__C*Rc))); |
| 1007 | 1011 | vCap += diff; |
| 1008 | node->output = (DST_RCDISC_MOD__IN2 <= 0.6) ? -0.6 : 0; | |
| 1012 | node->output[0] = (DST_RCDISC_MOD__IN2 <= 0.6) ? -0.6 : 0; | |
| 1009 | 1013 | } |
| 1010 | 1014 | else |
| 1011 | 1015 | { |
| 1012 | 1016 | diff = diff - (diff * exp(0.0-discrete_current_context->sample_time / (DST_RCDISC_MOD__C*(Rc+Rc2)))); |
| 1013 | 1017 | vCap += diff; |
| 1014 | 1018 | /* neglecting current through R3 drawn by next node */ |
| 1015 | node->output = (DST_RCDISC_MOD__IN2 <= 0.6) ? (u-vCap)*DST_RCDISC_MOD__R4/(DST_RCDISC_MOD__R4+Rc) : 0; | |
| 1019 | node->output[0] = (DST_RCDISC_MOD__IN2 <= 0.6) ? (u-vCap)*DST_RCDISC_MOD__R4/(DST_RCDISC_MOD__R4+Rc) : 0; | |
| 1016 | 1020 | } |
| 1017 | 1021 | context->vCap = vCap; |
| 1018 | 1022 | } |
| 1019 | 1023 | else |
| 1020 | 1024 | { |
| 1021 | node->output=0; | |
| 1025 | node->output[0]=0; | |
| 1022 | 1026 | } |
| 1023 | 1027 | } |
| 1024 | 1028 | |
| r2241 | r2242 | |
| 1026 | 1030 | { |
| 1027 | 1031 | struct dst_rcdisc_context *context = node->context; |
| 1028 | 1032 | |
| 1029 | node->output=0; | |
| 1033 | node->output[0]=0; | |
| 1030 | 1034 | context->vCap = 0; |
| 1031 | 1035 | } |
| 1032 | 1036 | |
| r2241 | r2242 | |
| 1058 | 1062 | if(DST_RCFILTER__ENABLE) |
| 1059 | 1063 | { |
| 1060 | 1064 | context->vCap += ((DST_RCFILTER__VIN - DST_RCFILTER__VREF - context->vCap) * context->exponent); |
| 1061 | node->output = context->vCap + DST_RCFILTER__VREF; | |
| 1065 | node->output[0] = context->vCap + DST_RCFILTER__VREF; | |
| 1062 | 1066 | } |
| 1063 | 1067 | else |
| 1064 | 1068 | { |
| 1065 | node->output=0; | |
| 1069 | node->output[0]=0; | |
| 1066 | 1070 | } |
| 1067 | 1071 | } |
| 1068 | 1072 | |
| r2241 | r2242 | |
| 1073 | 1077 | context->exponent = -1.0 / (DST_RCFILTER__R * DST_RCFILTER__C * discrete_current_context->sample_rate); |
| 1074 | 1078 | context->exponent = 1.0 - exp(context->exponent); |
| 1075 | 1079 | context->vCap = 0; |
| 1076 | node->output = 0; | |
| 1080 | node->output[0] = 0; | |
| 1077 | 1081 | } |
| 1078 | 1082 | |
| 1083 | /************************************************************************ | |
| 1084 | * | |
| 1085 | * DST_RCFILTER_SW - Usage of node_description values for switchable RC filter | |
| 1086 | * | |
| 1087 | * input[0] - Enable input value | |
| 1088 | * input[1] - input value | |
| 1089 | * input[2] - Resistor value (initialization only) | |
| 1090 | * input[3] - Capacitor Value (initialization only) | |
| 1091 | * input[4] - Voltage reference. Usually 0V. | |
| 1092 | * | |
| 1093 | ************************************************************************/ | |
| 1094 | #define DST_RCFILTER_SW__ENABLE (*(node->input[0])) | |
| 1095 | #define DST_RCFILTER_SW__VIN (*(node->input[1])) | |
| 1096 | #define DST_RCFILTER_SW__SWITCH (*(node->input[2])) | |
| 1097 | #define DST_RCFILTER_SW__R (*(node->input[3])) | |
| 1098 | #define DST_RCFILTER_SW__C(x) (*(node->input[4+x])) | |
| 1079 | 1099 | |
| 1100 | #define CD4066_ON_RES 470 | |
| 1101 | ||
| 1102 | static void dst_rcfilter_sw_step(node_description *node) | |
| 1103 | { | |
| 1104 | struct dst_rcfilter_sw_context *context = node->context; | |
| 1105 | int i; | |
| 1106 | double rcexp; | |
| 1107 | double us=0, rs=0; | |
| 1108 | ||
| 1109 | if(DST_RCFILTER_SW__ENABLE) | |
| 1110 | { | |
| 1111 | for (i=0;i<4;i++) | |
| 1112 | { | |
| 1113 | if ( ( (int)DST_RCFILTER_SW__SWITCH & (1<<i)) == 1) | |
| 1114 | { | |
| 1115 | us += context->vCap[i]; | |
| 1116 | rs += DST_RCFILTER_SW__R; | |
| 1117 | } | |
| 1118 | } | |
| 1119 | node->output[0] = CD4066_ON_RES / ( CD4066_ON_RES + rs) * DST_RCFILTER_SW__VIN + DST_RCFILTER_SW__R / (CD4066_ON_RES + rs) * us; | |
| 1120 | for (i=0;i<4;i++) | |
| 1121 | { | |
| 1122 | if ( ( (int)DST_RCFILTER_SW__SWITCH & (1<<i)) == 1) | |
| 1123 | { | |
| 1124 | rcexp = 1.0 - exp(-1.0 / ( CD4066_ON_RES * DST_RCFILTER_SW__C(i)) * discrete_current_context->sample_rate); | |
| 1125 | context->vCap[i] += ((node->output[0] - context->vCap[i]) * rcexp); | |
| 1126 | } | |
| 1127 | } | |
| 1128 | } | |
| 1129 | else | |
| 1130 | { | |
| 1131 | node->output[0]=0; | |
| 1132 | } | |
| 1133 | } | |
| 1134 | ||
| 1135 | static void dst_rcfilter_sw_reset(node_description *node) | |
| 1136 | { | |
| 1137 | struct dst_rcfilter_sw_context *context = node->context; | |
| 1138 | int i; | |
| 1139 | ||
| 1140 | for (i=0;i<4;i++) | |
| 1141 | context->vCap[i] = 0; | |
| 1142 | node->output[0] = 0; | |
| 1143 | } | |
| 1144 | ||
| 1080 | 1145 | /* !!!!!!!!!!! NEW FILTERS for testing !!!!!!!!!!!!!!!!!!!!! */ |
| 1081 | 1146 | |
| 1082 | 1147 | |
| r2241 | r2242 | |
| 1153 | 1218 | /* A rise in the input signal results in an instant charge, */ |
| 1154 | 1219 | /* else discharge through the RC to zero */ |
| 1155 | 1220 | if (gain* DST_RCDISCN__IN > context->x1) |
| 1156 | node->output = gain* DST_RCDISCN__IN; | |
| 1221 | node->output[0] = gain* DST_RCDISCN__IN; | |
| 1157 | 1222 | else |
| 1158 | node->output = -context->a1*context->y1; | |
| 1223 | node->output[0] = -context->a1*context->y1; | |
| 1159 | 1224 | |
| 1160 | 1225 | context->x1 = gain* DST_RCDISCN__IN; |
| 1161 | context->y1 = node->output; | |
| 1226 | context->y1 = node->output[0]; | |
| 1162 | 1227 | } |
| 1163 | 1228 | |
| 1164 | 1229 | |
| r2241 | r2242 | |
| 1196 | 1261 | double input = ((DST_RCDISC2N__ENABLE == 0) ? DST_RCDISC2N__IN0 : DST_RCDISC2N__IN1); |
| 1197 | 1262 | |
| 1198 | 1263 | if (DST_RCDISC2N__ENABLE == 0) |
| 1199 | node->output = -context->a1_0*context->y1 + context->b0_0*input + context->b1_0*context->x1; | |
| 1264 | node->output[0] = -context->a1_0*context->y1 + context->b0_0*input + context->b1_0*context->x1; | |
| 1200 | 1265 | else |
| 1201 | node->output = -context->a1_1*context->y1 + context->b0_1*input + context->b1_1*context->x1; | |
| 1266 | node->output[0] = -context->a1_1*context->y1 + context->b0_1*input + context->b1_1*context->x1; | |
| 1202 | 1267 | |
| 1203 | 1268 | context->x1 = input; |
| 1204 | context->y1 = node->output; | |
| 1269 | context->y1 = node->output[0]; | |
| 1205 | 1270 | } |
| 1206 | 1271 | |
| 1207 | 1272 | static void dst_rcdisc2N_reset(node_description *node) |
| r2241 | r2242 | |
| 1216 | 1281 | calculate_filter1_coefficients(f2, DISC_FILTER_LOWPASS, &context->a1_1, &context->b0_1, &context->b1_1); |
| 1217 | 1282 | |
| 1218 | 1283 | /* Initialize the object */ |
| 1219 | node->output=0; | |
| 1284 | node->output[0]=0; | |
| 1220 | 1285 | } |
| r2241 | r2242 | |
|---|---|---|
| 233 | 233 | WRITE16_HANDLER( YM2203_control_port_0_lsb_w ) |
| 234 | 234 | { |
| 235 | 235 | struct ym2203_info *info = sndti_token(SOUND_YM2203, 0); |
| 236 | if (ACCESSING_ | |
| 236 | if (ACCESSING_ | |
| 237 | 237 | YM2203Write(info->chip,0,data); |
| 238 | 238 | } |
| 239 | 239 | WRITE16_HANDLER( YM2203_control_port_1_lsb_w ) |
| 240 | 240 | { |
| 241 | 241 | struct ym2203_info *info = sndti_token(SOUND_YM2203, 1); |
| 242 | if (ACCESSING_ | |
| 242 | if (ACCESSING_ | |
| 243 | 243 | YM2203Write(info->chip,0,data); |
| 244 | 244 | } |
| 245 | 245 | WRITE16_HANDLER( YM2203_control_port_2_lsb_w ) |
| 246 | 246 | { |
| 247 | 247 | struct ym2203_info *info = sndti_token(SOUND_YM2203, 2); |
| 248 | if (ACCESSING_ | |
| 248 | if (ACCESSING_ | |
| 249 | 249 | YM2203Write(info->chip,0,data); |
| 250 | 250 | } |
| 251 | 251 | WRITE16_HANDLER( YM2203_control_port_3_lsb_w ) |
| 252 | 252 | { |
| 253 | 253 | struct ym2203_info *info = sndti_token(SOUND_YM2203, 3); |
| 254 | if (ACCESSING_ | |
| 254 | if (ACCESSING_ | |
| 255 | 255 | YM2203Write(info->chip,0,data); |
| 256 | 256 | } |
| 257 | 257 | WRITE16_HANDLER( YM2203_control_port_4_lsb_w ) |
| 258 | 258 | { |
| 259 | 259 | struct ym2203_info *info = sndti_token(SOUND_YM2203, 4); |
| 260 | if (ACCESSING_ | |
| 260 | if (ACCESSING_ | |
| 261 | 261 | YM2203Write(info->chip,0,data); |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | WRITE16_HANDLER( YM2203_write_port_0_lsb_w ) |
| 265 | 265 | { |
| 266 | 266 | struct ym2203_info *info = sndti_token(SOUND_YM2203, 0); |
| 267 | if (ACCESSING_ | |
| 267 | if (ACCESSING_ | |
| 268 | 268 | YM2203Write(info->chip,1,data); |
| 269 | 269 | } |
| 270 | 270 | WRITE16_HANDLER( YM2203_write_port_1_lsb_w ) |
| 271 | 271 | { |
| 272 | 272 | struct ym2203_info *info = sndti_token(SOUND_YM2203, 1); |
| 273 | if (ACCESSING_ | |
| 273 | if (ACCESSING_ | |
| 274 | 274 | YM2203Write(info->chip,1,data); |
| 275 | 275 | } |
| 276 | 276 | WRITE16_HANDLER( YM2203_write_port_2_lsb_w ) |
| 277 | 277 | { |
| 278 | 278 | struct ym2203_info *info = sndti_token(SOUND_YM2203, 2); |
| 279 | if (ACCESSING_ | |
| 279 | if (ACCESSING_ | |
| 280 | 280 | YM2203Write(info->chip,1,data); |
| 281 | 281 | } |
| 282 | 282 | WRITE16_HANDLER( YM2203_write_port_3_lsb_w ) |
| 283 | 283 | { |
| 284 | 284 | struct ym2203_info *info = sndti_token(SOUND_YM2203, 3); |
| 285 | if (ACCESSING_ | |
| 285 | if (ACCESSING_ | |
| 286 | 286 | YM2203Write(info->chip,1,data); |
| 287 | 287 | } |
| 288 | 288 | WRITE16_HANDLER( YM2203_write_port_4_lsb_w ) |
| 289 | 289 | { |
| 290 | 290 | struct ym2203_info *info = sndti_token(SOUND_YM2203, 4); |
| 291 | if (ACCESSING_ | |
| 291 | if (ACCESSING_ | |
| 292 | 292 | YM2203Write(info->chip,1,data); |
| 293 | 293 | } |
| 294 | 294 |
| r2241 | r2242 | |
|---|---|---|
| 407 | 407 | |
| 408 | 408 | WRITE16_HANDLER( ES8712_data_0_lsb_w ) |
| 409 | 409 | { |
| 410 | if (ACCESSING_ | |
| 410 | if (ACCESSING_ | |
| 411 | 411 | ES8712_data_w(0, offset, data & 0xff); |
| 412 | 412 | } |
| 413 | 413 | |
| 414 | 414 | WRITE16_HANDLER( ES8712_data_1_lsb_w ) |
| 415 | 415 | { |
| 416 | if (ACCESSING_ | |
| 416 | if (ACCESSING_ | |
| 417 | 417 | ES8712_data_w(1, offset, data & 0xff); |
| 418 | 418 | } |
| 419 | 419 | |
| 420 | 420 | WRITE16_HANDLER( ES8712_data_2_lsb_w ) |
| 421 | 421 | { |
| 422 | if (ACCESSING_ | |
| 422 | if (ACCESSING_ | |
| 423 | 423 | ES8712_data_w(2, offset, data & 0xff); |
| 424 | 424 | } |
| 425 | 425 | |
| 426 | 426 | WRITE16_HANDLER( ES8712_data_0_msb_w ) |
| 427 | 427 | { |
| 428 | if (ACCESSING_ | |
| 428 | if (ACCESSING_ | |
| 429 | 429 | ES8712_data_w(0, offset, data >> 8); |
| 430 | 430 | } |
| 431 | 431 | |
| 432 | 432 | WRITE16_HANDLER( ES8712_data_1_msb_w ) |
| 433 | 433 | { |
| 434 | if (ACCESSING_ | |
| 434 | if (ACCESSING_ | |
| 435 | 435 | ES8712_data_w(1, offset, data >> 8); |
| 436 | 436 | } |
| 437 | 437 | |
| 438 | 438 | WRITE16_HANDLER( ES8712_data_2_msb_w ) |
| 439 | 439 | { |
| 440 | if (ACCESSING_ | |
| 440 | if (ACCESSING_ | |
| 441 | 441 | ES8712_data_w(2, offset, data >> 8); |
| 442 | 442 | } |
| 443 | 443 |
| r2241 | r2242 | |
|---|---|---|
| 617 | 617 | ************************************/ |
| 618 | 618 | |
| 619 | 619 | #define DEV_READ8TO16BE_MSB( name, read8 ) \ |
| 620 | DEV_READ_TEMPLATE_COND( 16, name, read8, read16be_with_read8_device_handler, ACCESSING_ | |
| 620 | DEV_READ_TEMPLATE_COND( 16, name, read8, read16be_with_read8_device_handler, ACCESSING_ | |
| 621 | 621 | |
| 622 | 622 | |
| 623 | 623 | #define DEV_WRITE8TO16BE_MSB( name, write8 ) \ |
| 624 | DEV_WRITE_TEMPLATE_COND( 16, name, write8, write16be_with_write8_device_handler, ACCESSING_ | |
| 624 | DEV_WRITE_TEMPLATE_COND( 16, name, write8, write16be_with_write8_device_handler, ACCESSING_ | |
| 625 | 625 | |
| 626 | 626 | |
| 627 | 627 | #define DEV_READWRITE8TO16BE_MSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 634 | 634 | ************************************/ |
| 635 | 635 | |
| 636 | 636 | #define DEV_READ8TO16LE_MSB( name, read8 ) \ |
| 637 | DEV_READ_TEMPLATE_COND( 16, name, read8, read16le_with_read8_device_handler, ACCESSING_ | |
| 637 | DEV_READ_TEMPLATE_COND( 16, name, read8, read16le_with_read8_device_handler, ACCESSING_ | |
| 638 | 638 | |
| 639 | 639 | |
| 640 | 640 | #define DEV_WRITE8TO16LE_MSB( name, write8 ) \ |
| 641 | DEV_WRITE_TEMPLATE_COND( 16, name, write8, write16le_with_write8_device_handler, ACCESSING_ | |
| 641 | DEV_WRITE_TEMPLATE_COND( 16, name, write8, write16le_with_write8_device_handler, ACCESSING_ | |
| 642 | 642 | |
| 643 | 643 | |
| 644 | 644 | #define DEV_READWRITE8TO16LE_MSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 651 | 651 | ************************************/ |
| 652 | 652 | |
| 653 | 653 | #define DEV_READ8TO16BE_LSB( name, read8 ) \ |
| 654 | DEV_READ_TEMPLATE_COND( 16, name, read8, read16be_with_read8_device_handler, ACCESSING_ | |
| 654 | DEV_READ_TEMPLATE_COND( 16, name, read8, read16be_with_read8_device_handler, ACCESSING_ | |
| 655 | 655 | |
| 656 | 656 | |
| 657 | 657 | #define DEV_WRITE8TO16BE_LSB( name, write8 ) \ |
| 658 | DEV_WRITE_TEMPLATE_COND( 16, name, write8, write16be_with_write8_device_handler, ACCESSING_ | |
| 658 | DEV_WRITE_TEMPLATE_COND( 16, name, write8, write16be_with_write8_device_handler, ACCESSING_ | |
| 659 | 659 | |
| 660 | 660 | |
| 661 | 661 | #define DEV_READWRITE8TO16BE_LSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 668 | 668 | ************************************/ |
| 669 | 669 | |
| 670 | 670 | #define DEV_READ8TO16LE_LSB( name, read8 ) \ |
| 671 | DEV_READ_TEMPLATE_COND( 16, name, read8, read16le_with_read8_device_handler, ACCESSING_ | |
| 671 | DEV_READ_TEMPLATE_COND( 16, name, read8, read16le_with_read8_device_handler, ACCESSING_ | |
| 672 | 672 | |
| 673 | 673 | |
| 674 | 674 | #define DEV_WRITE8TO16LE_LSB( name, write8 ) \ |
| 675 | DEV_WRITE_TEMPLATE_COND( 16, name, write8, write16le_with_write8_device_handler, ACCESSING_ | |
| 675 | DEV_WRITE_TEMPLATE_COND( 16, name, write8, write16le_with_write8_device_handler, ACCESSING_ | |
| 676 | 676 | |
| 677 | 677 | |
| 678 | 678 | #define DEV_READWRITE8TO16LE_LSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 719 | 719 | ************************************/ |
| 720 | 720 | |
| 721 | 721 | #define DEV_READ8TO32BE_MSB( name, read8 ) \ |
| 722 | DEV_READ_TEMPLATE_COND( 32, name, read8, read32be_with_read8_device_handler, ACCESSING_ | |
| 722 | DEV_READ_TEMPLATE_COND( 32, name, read8, read32be_with_read8_device_handler, ACCESSING_ | |
| 723 | 723 | |
| 724 | 724 | |
| 725 | 725 | #define DEV_WRITE8TO32BE_MSB( name, write8 ) \ |
| 726 | DEV_WRITE_TEMPLATE_COND( 32, name, write8, write32be_with_write8_device_handler, ACCESSING_ | |
| 726 | DEV_WRITE_TEMPLATE_COND( 32, name, write8, write32be_with_write8_device_handler, ACCESSING_ | |
| 727 | 727 | |
| 728 | 728 | |
| 729 | 729 | #define DEV_READWRITE8TO32BE_MSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 736 | 736 | ************************************/ |
| 737 | 737 | |
| 738 | 738 | #define DEV_READ8TO32LE_MSB( name, read8 ) \ |
| 739 | DEV_READ_TEMPLATE_COND( 32, name, read8, read32le_with_read8_device_handler, ACCESSING_ | |
| 739 | DEV_READ_TEMPLATE_COND( 32, name, read8, read32le_with_read8_device_handler, ACCESSING_ | |
| 740 | 740 | |
| 741 | 741 | |
| 742 | 742 | #define DEV_WRITE8TO32LE_MSB( name, write8 ) \ |
| 743 | DEV_WRITE_TEMPLATE_COND( 32, name, write8, write32le_with_write8_device_handler, ACCESSING_ | |
| 743 | DEV_WRITE_TEMPLATE_COND( 32, name, write8, write32le_with_write8_device_handler, ACCESSING_ | |
| 744 | 744 | |
| 745 | 745 | |
| 746 | 746 | #define DEV_READWRITE8TO32LE_MSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 753 | 753 | ************************************/ |
| 754 | 754 | |
| 755 | 755 | #define DEV_READ8TO32BE_LSB( name, read8 ) \ |
| 756 | DEV_READ_TEMPLATE_COND( 32, name, read8, read32be_with_read8_device_handler, ACCESSING_ | |
| 756 | DEV_READ_TEMPLATE_COND( 32, name, read8, read32be_with_read8_device_handler, ACCESSING_ | |
| 757 | 757 | |
| 758 | 758 | |
| 759 | 759 | #define DEV_WRITE8TO32BE_LSB( name, write8 ) \ |
| 760 | DEV_WRITE_TEMPLATE_COND( 32, name, write8, write32be_with_write8_device_handler, ACCESSING_ | |
| 760 | DEV_WRITE_TEMPLATE_COND( 32, name, write8, write32be_with_write8_device_handler, ACCESSING_ | |
| 761 | 761 | |
| 762 | 762 | |
| 763 | 763 | #define DEV_READWRITE8TO32BE_LSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 770 | 770 | ************************************/ |
| 771 | 771 | |
| 772 | 772 | #define DEV_READ8TO32LE_LSB( name, read8 ) \ |
| 773 | DEV_READ_TEMPLATE_COND( 32, name, read8, read32le_with_read8_device_handler, ACCESSING_ | |
| 773 | DEV_READ_TEMPLATE_COND( 32, name, read8, read32le_with_read8_device_handler, ACCESSING_ | |
| 774 | 774 | |
| 775 | 775 | |
| 776 | 776 | #define DEV_WRITE8TO32LE_LSB( name, write8 ) \ |
| 777 | DEV_WRITE_TEMPLATE_COND( 32, name, write8, write32le_with_write8_device_handler, ACCESSING_ | |
| 777 | DEV_WRITE_TEMPLATE_COND( 32, name, write8, write32le_with_write8_device_handler, ACCESSING_ | |
| 778 | 778 | |
| 779 | 779 | |
| 780 | 780 | #define DEV_READWRITE8TO32LE_LSB( name, read8, write8 ) \ |
| r2241 | r2242 | |
| 889 | 889 | *************************************/ |
| 890 | 890 | |
| 891 | 891 | #define DEV_READ16BETO32BE_MSW( name, read16 ) \ |
| 892 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32be_with_16be_device_handler, ACCESSING_ | |
| 892 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32be_with_16be_device_handler, ACCESSING_BITS_16_31 ) | |
| 893 | 893 | |
| 894 | 894 | |
| 895 | 895 | #define DEV_WRITE16BETO32BE_MSW( name, write16 ) \ |
| 896 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16be_device_handler, ACCESSING_ | |
| 896 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16be_device_handler, ACCESSING_BITS_16_31 ) | |
| 897 | 897 | |
| 898 | 898 | |
| 899 | 899 | #define DEV_READWRITE16BETO32BE_MSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 906 | 906 | *************************************/ |
| 907 | 907 | |
| 908 | 908 | #define DEV_READ16LETO32BE_MSW( name, read16 ) \ |
| 909 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32be_with_16le_device_handler, ACCESSING_ | |
| 909 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32be_with_16le_device_handler, ACCESSING_BITS_16_31 ) | |
| 910 | 910 | |
| 911 | 911 | |
| 912 | 912 | #define DEV_WRITE16LETO32BE_MSW( name, write16 ) \ |
| 913 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16le_device_handler, ACCESSING_ | |
| 913 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16le_device_handler, ACCESSING_BITS_16_31 ) | |
| 914 | 914 | |
| 915 | 915 | |
| 916 | 916 | #define DEV_READWRITE16LETO32BE_MSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 923 | 923 | *************************************/ |
| 924 | 924 | |
| 925 | 925 | #define DEV_READ16BETO32LE_MSW( name, read16 ) \ |
| 926 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32le_with_16be_device_handler, ACCESSING_ | |
| 926 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32le_with_16be_device_handler, ACCESSING_BITS_16_31 ) | |
| 927 | 927 | |
| 928 | 928 | |
| 929 | 929 | #define DEV_WRITE16BETO32LE_MSW( name, write16 ) \ |
| 930 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16be_device_handler, ACCESSING_ | |
| 930 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16be_device_handler, ACCESSING_BITS_16_31 ) | |
| 931 | 931 | |
| 932 | 932 | |
| 933 | 933 | #define DEV_READWRITE16BETO32LE_MSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 940 | 940 | *************************************/ |
| 941 | 941 | |
| 942 | 942 | #define DEV_READ16LETO32LE_MSW( name, read16 ) \ |
| 943 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32le_with_16le_device_handler, ACCESSING_ | |
| 943 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32le_with_16le_device_handler, ACCESSING_BITS_16_31 ) | |
| 944 | 944 | |
| 945 | 945 | |
| 946 | 946 | #define DEV_WRITE16LETO32LE_MSW( name, write16 ) \ |
| 947 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16le_device_handler, ACCESSING_ | |
| 947 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16le_device_handler, ACCESSING_BITS_16_31 ) | |
| 948 | 948 | |
| 949 | 949 | |
| 950 | 950 | #define DEV_READWRITE16LETO32LE_MSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 956 | 956 | *************************************/ |
| 957 | 957 | |
| 958 | 958 | #define DEV_READ16BETO32BE_LSW( name, read16 ) \ |
| 959 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32be_with_16be_device_handler, ACCESSING_ | |
| 959 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32be_with_16be_device_handler, ACCESSING_BITS_0_15 ) | |
| 960 | 960 | |
| 961 | 961 | |
| 962 | 962 | #define DEV_WRITE16BETO32BE_LSW( name, write16 ) \ |
| 963 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16be_device_handler, ACCESSING_ | |
| 963 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16be_device_handler, ACCESSING_BITS_0_15 ) | |
| 964 | 964 | |
| 965 | 965 | |
| 966 | 966 | #define DEV_READWRITE16BETO32BE_LSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 973 | 973 | *************************************/ |
| 974 | 974 | |
| 975 | 975 | #define DEV_READ16LETO32BE_LSW( name, read16 ) \ |
| 976 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32be_with_16le_device_handler, ACCESSING_ | |
| 976 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32be_with_16le_device_handler, ACCESSING_BITS_0_15 ) | |
| 977 | 977 | |
| 978 | 978 | |
| 979 | 979 | #define DEV_WRITE16LETO32BE_LSW( name, write16 ) \ |
| 980 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16le_device_handler, ACCESSING_ | |
| 980 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32be_with_16le_device_handler, ACCESSING_BITS_0_15 ) | |
| 981 | 981 | |
| 982 | 982 | |
| 983 | 983 | #define DEV_READWRITE16LETO32BE_LSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 990 | 990 | *************************************/ |
| 991 | 991 | |
| 992 | 992 | #define DEV_READ16BETO32LE_LSW( name, read16 ) \ |
| 993 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32le_with_16be_device_handler, ACCESSING_ | |
| 993 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32le_with_16be_device_handler, ACCESSING_BITS_0_15 ) | |
| 994 | 994 | |
| 995 | 995 | |
| 996 | 996 | #define DEV_WRITE16BETO32LE_LSW( name, write16 ) \ |
| 997 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16be_device_handler, ACCESSING_ | |
| 997 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16be_device_handler, ACCESSING_BITS_0_15 ) | |
| 998 | 998 | |
| 999 | 999 | |
| 1000 | 1000 | #define DEV_READWRITE16BETO32LE_LSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
| 1007 | 1007 | *************************************/ |
| 1008 | 1008 | |
| 1009 | 1009 | #define DEV_READ16LETO32LE_LSW( name, read16 ) \ |
| 1010 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32le_with_16le_device_handler, ACCESSING_ | |
| 1010 | DEV_READ_TEMPLATE_COND( 32, name, read16, read32le_with_16le_device_handler, ACCESSING_BITS_0_15 ) | |
| 1011 | 1011 | |
| 1012 | 1012 | |
| 1013 | 1013 | #define DEV_WRITE16LETO32LE_LSW( name, write16 ) \ |
| 1014 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16le_device_handler, ACCESSING_ | |
| 1014 | DEV_WRITE_TEMPLATE_COND( 32, name, write16, write32le_with_16le_device_handler, ACCESSING_BITS_0_15 ) | |
| 1015 | 1015 | |
| 1016 | 1016 | |
| 1017 | 1017 | #define DEV_READWRITE16LETO32LE_LSW( name, read16, write16 ) \ |
| r2241 | r2242 | |
|---|---|---|
| 244 | 244 | |
| 245 | 245 | /* stop all the sound chips */ |
| 246 | 246 | for (sndnum = 0; sndnum < MAX_SOUND; sndnum++) |
| 247 | if ( | |
| 247 | if (machine->config->sound[sndnum].type != SOUND_DUMMY) | |
| 248 | 248 | sndintrf_exit_sound(sndnum); |
| 249 | 249 | |
| 250 | 250 | /* reset variables */ |
| r2241 | r2242 | |
| 501 | 501 | |
| 502 | 502 | /* reset all the sound chips */ |
| 503 | 503 | for (sndnum = 0; sndnum < MAX_SOUND; sndnum++) |
| 504 | if ( | |
| 504 | if (machine->config->sound[sndnum].type != SOUND_DUMMY) | |
| 505 | 505 | sndnum_reset(sndnum); |
| 506 | 506 | } |
| 507 | 507 |
| r2241 | r2242 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | #include "mame.h" |
| 18 | 18 | #include "memory.h" |
| 19 | #include "deprecat.h" | |
| 19 | 20 | |
| 20 | 21 | |
| 21 | 22 | /*************************************************************************** |
| r2241 | r2242 | |
|---|---|---|
| 45 | 45 | #define INVALID_AXIS_VALUE 0x7fffffff |
| 46 | 46 | |
| 47 | 47 | |
| 48 | ||
| 49 | 48 | /*************************************************************************** |
| 50 | 49 | TYPE DEFINITIONS |
| 51 | 50 | ***************************************************************************/ |
| r2241 | r2242 | |
| 316 | 315 | { ITEM_ID_START, "START" }, |
| 317 | 316 | { ITEM_ID_SELECT, "SELECT" }, |
| 318 | 317 | |
| 318 | /* Hats */ | |
| 319 | { ITEM_ID_HAT1UP, "HAT1UP" }, | |
| 320 | { ITEM_ID_HAT1DOWN, "HAT1DOWN" }, | |
| 321 | { ITEM_ID_HAT1LEFT, "HAT1LEFT" }, | |
| 322 | { ITEM_ID_HAT1RIGHT, "HAT1RIGHT" }, | |
| 323 | { ITEM_ID_HAT2UP, "HAT2UP" }, | |
| 324 | { ITEM_ID_HAT2DOWN, "HAT2DOWN" }, | |
| 325 | { ITEM_ID_HAT2LEFT, "HAT2LEFT" }, | |
| 326 | { ITEM_ID_HAT2RIGHT, "HAT2RIGHT" }, | |
| 327 | { ITEM_ID_HAT3UP, "HAT3UP" }, | |
| 328 | { ITEM_ID_HAT3DOWN, "HAT3DOWN" }, | |
| 329 | { ITEM_ID_HAT3LEFT, "HAT3LEFT" }, | |
| 330 | { ITEM_ID_HAT3RIGHT, "HAT3RIGHT" }, | |
| 331 | { ITEM_ID_HAT4UP, "HAT4UP" }, | |
| 332 | { ITEM_ID_HAT4DOWN, "HAT4DOWN" }, | |
| 333 | { ITEM_ID_HAT4LEFT, "HAT4LEFT" }, | |
| 334 | { ITEM_ID_HAT4RIGHT, "HAT4RIGHT" }, | |
| 335 | ||
| 336 | /* Additional IDs */ | |
| 337 | { ITEM_ID_ADD_SWITCH1, "ADDSW1" }, | |
| 338 | { ITEM_ID_ADD_SWITCH2, "ADDSW2" }, | |
| 339 | { ITEM_ID_ADD_SWITCH3, "ADDSW3" }, | |
| 340 | { ITEM_ID_ADD_SWITCH4, "ADDSW4" }, | |
| 341 | { ITEM_ID_ADD_SWITCH5, "ADDSW5" }, | |
| 342 | { ITEM_ID_ADD_SWITCH6, "ADDSW6" }, | |
| 343 | { ITEM_ID_ADD_SWITCH7, "ADDSW7" }, | |
| 344 | { ITEM_ID_ADD_SWITCH8, "ADDSW8" }, | |
| 345 | { ITEM_ID_ADD_SWITCH9, "ADDSW9" }, | |
| 346 | { ITEM_ID_ADD_SWITCH10, "ADDSW10" }, | |
| 347 | { ITEM_ID_ADD_SWITCH11, "ADDSW11" }, | |
| 348 | { ITEM_ID_ADD_SWITCH12, "ADDSW12" }, | |
| 349 | { ITEM_ID_ADD_SWITCH13, "ADDSW13" }, | |
| 350 | { ITEM_ID_ADD_SWITCH14, "ADDSW14" }, | |
| 351 | { ITEM_ID_ADD_SWITCH15, "ADDSW15" }, | |
| 352 | { ITEM_ID_ADD_SWITCH16, "ADDSW16" }, | |
| 353 | { ITEM_ID_ADD_ABSOLUTE1, "ADDAXIS1" }, | |
| 354 | { ITEM_ID_ADD_ABSOLUTE2, "ADDAXIS2" }, | |
| 355 | { ITEM_ID_ADD_ABSOLUTE3, "ADDAXIS3" }, | |
| 356 | { ITEM_ID_ADD_ABSOLUTE4, "ADDAXIS4" }, | |
| 357 | { ITEM_ID_ADD_ABSOLUTE5, "ADDAXIS5" }, | |
| 358 | { ITEM_ID_ADD_ABSOLUTE6, "ADDAXIS6" }, | |
| 359 | { ITEM_ID_ADD_ABSOLUTE7, "ADDAXIS7" }, | |
| 360 | { ITEM_ID_ADD_ABSOLUTE8, "ADDAXIS8" }, | |
| 361 | { ITEM_ID_ADD_ABSOLUTE9, "ADDAXIS9" }, | |
| 362 | { ITEM_ID_ADD_ABSOLUTE10,"ADDAXIS10" }, | |
| 363 | { ITEM_ID_ADD_ABSOLUTE11,"ADDAXIS11" }, | |
| 364 | { ITEM_ID_ADD_ABSOLUTE12,"ADDAXIS12" }, | |
| 365 | { ITEM_ID_ADD_ABSOLUTE13,"ADDAXIS13" }, | |
| 366 | { ITEM_ID_ADD_ABSOLUTE14,"ADDAXIS14" }, | |
| 367 | { ITEM_ID_ADD_ABSOLUTE15,"ADDAXIS15" }, | |
| 368 | { ITEM_ID_ADD_ABSOLUTE16,"ADDAXIS16" }, | |
| 369 | { ITEM_ID_ADD_RELATIVE1, "ADDREL1" }, | |
| 370 | { ITEM_ID_ADD_RELATIVE2, "ADDREL2" }, | |
| 371 | { ITEM_ID_ADD_RELATIVE3, "ADDREL3" }, | |
| 372 | { ITEM_ID_ADD_RELATIVE4, "ADDREL4" }, | |
| 373 | { ITEM_ID_ADD_RELATIVE5, "ADDREL5" }, | |
| 374 | { ITEM_ID_ADD_RELATIVE6, "ADDREL6" }, | |
| 375 | { ITEM_ID_ADD_RELATIVE7, "ADDREL7" }, | |
| 376 | { ITEM_ID_ADD_RELATIVE8, "ADDREL8" }, | |
| 377 | { ITEM_ID_ADD_RELATIVE9, "ADDREL9" }, | |
| 378 | { ITEM_ID_ADD_RELATIVE10,"ADDREL10" }, | |
| 379 | { ITEM_ID_ADD_RELATIVE11,"ADDREL11" }, | |
| 380 | { ITEM_ID_ADD_RELATIVE12,"ADDREL12" }, | |
| 381 | { ITEM_ID_ADD_RELATIVE13,"ADDREL13" }, | |
| 382 | { ITEM_ID_ADD_RELATIVE14,"ADDREL14" }, | |
| 383 | { ITEM_ID_ADD_RELATIVE15,"ADDREL15" }, | |
| 384 | { ITEM_ID_ADD_RELATIVE16,"ADDREL16" }, | |
| 385 | ||
| 319 | 386 | { ~0, NULL } |
| 320 | 387 | }; |
| 321 | 388 | |
| r2241 | r2242 | |
| 409 | 476 | INLINE input_item_class input_item_standard_class(input_device_class devclass, input_item_id itemid) |
| 410 | 477 | { |
| 411 | 478 | /* most everything standard is a switch, apart from the axes */ |
| 412 | if (itemid == ITEM_ID_OTHER_SWITCH || itemid < ITEM_ID_XAXIS || itemid > ITEM_ID_SLIDER2) | |
| 479 | if (itemid == ITEM_ID_OTHER_SWITCH || itemid < ITEM_ID_XAXIS || (itemid > ITEM_ID_SLIDER2 && itemid < ITEM_ID_ADD_ABSOLUTE1)) | |
| 413 | 480 | return ITEM_CLASS_SWITCH; |
| 414 | 481 | |
| 415 | 482 | /* standard mouse axes are relative */ |
| 416 | else if (devclass == DEVICE_CLASS_MOUSE || itemid == ITEM_ID_OTHER_AXIS_RELATIVE) | |
| 483 | else if (devclass == DEVICE_CLASS_MOUSE || itemid == ITEM_ID_OTHER_AXIS_RELATIVE || (itemid >= ITEM_ID_ADD_RELATIVE1 && itemid <= ITEM_ID_ADD_RELATIVE16)) | |
| 417 | 484 | return ITEM_CLASS_RELATIVE; |
| 418 | 485 | |
| 419 | 486 | /* all other standard axes are absolute */ |
| r2241 | r2242 | |
| 1160 | 1227 | modifier = code_to_string(modifier_token_table, INPUT_CODE_MODIFIER(code)); |
| 1161 | 1228 | |
| 1162 | 1229 | /* determine the itemclass part; if we match the native class, we don't include this */ |
| 1163 | if (item = | |
| 1230 | if (item != | |
| 1164 | 1231 | itemclass = ""; |
| 1165 | 1232 | else |
| 1166 | 1233 | itemclass = code_to_string(itemclass_token_table, INPUT_CODE_ITEMCLASS(code)); |
| r2241 | r2242 | |
|---|---|---|
| 56 | 56 | #define INTERNAL_CODE(x) (INPUT_CODE_INTERNAL | ((x) & 0xfff)) |
| 57 | 57 | #define INPUT_CODE_INVALID STANDARD_CODE(INVALID, 0, INVALID, NONE, INVALID) |
| 58 | 58 | |
| 59 | /* Maximum number of axis/buttons/hats with ITEM_IDs for use by osd layer*/ | |
| 59 | 60 | |
| 61 | #define INPUT_MAX_AXIS (8) | |
| 62 | #define INPUT_MAX_BUTTONS (16) | |
| 63 | #define INPUT_MAX_HATS (4) | |
| 64 | #define INPUT_MAX_ADD_SWITCH (16) | |
| 65 | #define INPUT_MAX_ADD_ABSOLUTE (16) | |
| 66 | #define INPUT_MAX_ADD_RELATIVE (16) | |
| 60 | 67 | |
| 61 | 68 | /*************************************************************************** |
| 62 | 69 | CONSTANTS |
| r2241 | r2242 | |
| 246 | 253 | ITEM_ID_START, |
| 247 | 254 | ITEM_ID_SELECT, |
| 248 | 255 | |
| 256 | /* Hats */ | |
| 257 | ITEM_ID_HAT1UP, | |
| 258 | ITEM_ID_HAT1DOWN, | |
| 259 | ITEM_ID_HAT1LEFT, | |
| 260 | ITEM_ID_HAT1RIGHT, | |
| 261 | ITEM_ID_HAT2UP, | |
| 262 | ITEM_ID_HAT2DOWN, | |
| 263 | ITEM_ID_HAT2LEFT, | |
| 264 | ITEM_ID_HAT2RIGHT, | |
| 265 | ITEM_ID_HAT3UP, | |
| 266 | ITEM_ID_HAT3DOWN, | |
| 267 | ITEM_ID_HAT3LEFT, | |
| 268 | ITEM_ID_HAT3RIGHT, | |
| 269 | ITEM_ID_HAT4UP, | |
| 270 | ITEM_ID_HAT4DOWN, | |
| 271 | ITEM_ID_HAT4LEFT, | |
| 272 | ITEM_ID_HAT4RIGHT, | |
| 273 | ||
| 274 | /* Additional IDs */ | |
| 275 | ITEM_ID_ADD_SWITCH1, | |
| 276 | ITEM_ID_ADD_SWITCH2, | |
| 277 | ITEM_ID_ADD_SWITCH3, | |
| 278 | ITEM_ID_ADD_SWITCH4, | |
| 279 | ITEM_ID_ADD_SWITCH5, | |
| 280 | ITEM_ID_ADD_SWITCH6, | |
| 281 | ITEM_ID_ADD_SWITCH7, | |
| 282 | ITEM_ID_ADD_SWITCH8, | |
| 283 | ITEM_ID_ADD_SWITCH9, | |
| 284 | ITEM_ID_ADD_SWITCH10, | |
| 285 | ITEM_ID_ADD_SWITCH11, | |
| 286 | ITEM_ID_ADD_SWITCH12, | |
| 287 | ITEM_ID_ADD_SWITCH13, | |
| 288 | ITEM_ID_ADD_SWITCH14, | |
| 289 | ITEM_ID_ADD_SWITCH15, | |
| 290 | ITEM_ID_ADD_SWITCH16, | |
| 291 | ||
| 292 | ITEM_ID_ADD_ABSOLUTE1, | |
| 293 | ITEM_ID_ADD_ABSOLUTE2, | |
| 294 | ITEM_ID_ADD_ABSOLUTE3, | |
| 295 | ITEM_ID_ADD_ABSOLUTE4, | |
| 296 | ITEM_ID_ADD_ABSOLUTE5, | |
| 297 | ITEM_ID_ADD_ABSOLUTE6, | |
| 298 | ITEM_ID_ADD_ABSOLUTE7, | |
| 299 | ITEM_ID_ADD_ABSOLUTE8, | |
| 300 | ITEM_ID_ADD_ABSOLUTE9, | |
| 301 | ITEM_ID_ADD_ABSOLUTE10, | |
| 302 | ITEM_ID_ADD_ABSOLUTE11, | |
| 303 | ITEM_ID_ADD_ABSOLUTE12, | |
| 304 | ITEM_ID_ADD_ABSOLUTE13, | |
| 305 | ITEM_ID_ADD_ABSOLUTE14, | |
| 306 | ITEM_ID_ADD_ABSOLUTE15, | |
| 307 | ITEM_ID_ADD_ABSOLUTE16, | |
| 308 | ||
| 309 | ITEM_ID_ADD_RELATIVE1, | |
| 310 | ITEM_ID_ADD_RELATIVE2, | |
| 311 | ITEM_ID_ADD_RELATIVE3, | |
| 312 | ITEM_ID_ADD_RELATIVE4, | |
| 313 | ITEM_ID_ADD_RELATIVE5, | |
| 314 | ITEM_ID_ADD_RELATIVE6, | |
| 315 | ITEM_ID_ADD_RELATIVE7, | |
| 316 | ITEM_ID_ADD_RELATIVE8, | |
| 317 | ITEM_ID_ADD_RELATIVE9, | |
| 318 | ITEM_ID_ADD_RELATIVE10, | |
| 319 | ITEM_ID_ADD_RELATIVE11, | |
| 320 | ITEM_ID_ADD_RELATIVE12, | |
| 321 | ITEM_ID_ADD_RELATIVE13, | |
| 322 | ITEM_ID_ADD_RELATIVE14, | |
| 323 | ITEM_ID_ADD_RELATIVE15, | |
| 324 | ITEM_ID_ADD_RELATIVE16, | |
| 325 | ||
| 249 | 326 | /* generic other IDs */ |
| 250 | 327 | ITEM_ID_OTHER_SWITCH, |
| 251 | 328 | ITEM_ID_OTHER_AXIS_ABSOLUTE, |
| r2241 | r2242 | |
|---|---|---|
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | |
| 160 | /*------------------------------------------------- | |
| 161 | palette_config - palette initialization that | |
| 162 | takes place after the display is created | |
| 163 | -------------------------------------------------*/ | |
| 164 | 160 | |
| 165 | void palette_config(running_machine *machine) | |
| 166 | { | |
| 167 | int i; | |
| 168 | ||
| 169 | /* now let the driver modify the initial palette and colortable */ | |
| 170 | if (machine->config->init_palette) | |
| 171 | (*machine->config->init_palette)(machine, memory_region(REGION_PROMS)); | |
| 172 | ||
| 173 | /* set the color table base for each graphics element */ | |
| 174 | for (i = 0; i < MAX_GFX_ELEMENTS; i++) | |
| 175 | if (machine->gfx[i] != NULL) | |
| 176 | machine->gfx[i]->color_base = machine->config->gfxdecodeinfo[i].color_codes_start; | |
| 177 | } | |
| 178 | ||
| 179 | ||
| 180 | ||
| 181 | 161 | /*************************************************************************** |
| 182 | 162 | SHADOW/HIGHLIGHT CONFIGURATION |
| 183 | 163 | ***************************************************************************/ |
| r2241 | r2242 | |
|---|---|---|
| 126 | 126 | /* palette initialization that takes place before the display is created */ |
| 127 | 127 | void palette_init(running_machine *machine); |
| 128 | 128 | |
| 129 | /* palette initialization that takes place after the display is created */ | |
| 130 | void palette_config(running_machine *machine); | |
| 131 | 129 | |
| 132 | 130 | |
| 133 | ||
| 134 | 131 | /* ----- shadow/hilight configuration ----- */ |
| 135 | 132 | |
| 136 | 133 | /* set the global shadow brightness factor */ |
| r2241 | r2242 | |
|---|---|---|
| 103 | 103 | XTAL_24_576MHz = 24576000, /* Pole Position h/w, Model 3 CPU board */ |
| 104 | 104 | XTAL_25MHz = 25000000, /* Namco System 22, Taito GNET, Dogyuun h/w */ |
| 105 | 105 | XTAL_25_1748MHz = 25174800, /* Sega S16A, S16B */ |
| 106 | XTAL_25_601712MHz = 25601712, /* Astro Corp.'s Show Hand */ | |
| 106 | 107 | XTAL_26_66666MHz = 26666660, /* Irem M92 but most use 27MHz */ |
| 107 | 108 | XTAL_26_686MHz = 26686000, /* Typically used on 90's Taito PCBs to drive the custom chips */ |
| 108 | 109 | XTAL_27MHz = 27000000, /* Some Banpresto games macrossp, Irem M92 and 90's Toaplan games */ |
| r2241 | r2242 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | /*----------- defined in machine/mz700.c -----------*/ |
| 17 | 17 | |
| 18 | const struct pit8253_config mz700_pit8253_config; | |
| 18 | extern const struct pit8253_config mz700_pit8253_config; | |
| 19 | 19 | |
| 20 | 20 | DRIVER_INIT( mz700 ); |
| 21 | 21 | MACHINE_RESET( mz700 ); |
| r2241 | r2242 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | /*----------- defined in machine/special.c -----------*/ |
| 12 | 12 | |
| 13 | const struct pit8253_config specimx_pit8253_intf; | |
| 13 | extern const struct pit8253_config specimx_pit8253_intf; | |
| 14 | 14 | |
| 15 | 15 | extern DRIVER_INIT( special ); |
| 16 | 16 | extern MACHINE_RESET( special ); |
| r2241 | r2242 | |
|---|---|---|
| 394 | 394 | logerror("CRTC: Write to raster IRQ register - %i\n",data); |
| 395 | 395 | break; |
| 396 | 396 | case 20: |
| 397 | if(ACCESSING_ | |
| 397 | if(ACCESSING_ | |
| 398 | 398 | { |
| 399 | 399 | switch(data & 0x0c) |
| 400 | 400 | { |
| r2241 | r2242 | |
| 423 | 423 | break; |
| 424 | 424 | } |
| 425 | 425 | } |
| 426 | if(ACCESSING_ | |
| 426 | if(ACCESSING_ | |
| 427 | 427 | { |
| 428 | 428 | sys.crtc.interlace = 0; |
| 429 | 429 | if(data & 0x0400) // real size 1024x1024 |
| r2241 | r2242 | |
|---|---|---|
| 589 | 589 | |
| 590 | 590 | READ16_HANDLER( atarist_blitter_op_r ) |
| 591 | 591 | { |
| 592 | if (ACCESSING_ | |
| 592 | if (ACCESSING_ | |
| 593 | 593 | { |
| 594 | 594 | return blitter.hop; |
| 595 | 595 | } |
| r2241 | r2242 | |
| 601 | 601 | |
| 602 | 602 | READ16_HANDLER( atarist_blitter_ctrl_r ) |
| 603 | 603 | { |
| 604 | if (ACCESSING_ | |
| 604 | if (ACCESSING_ | |
| 605 | 605 | { |
| 606 | 606 | return blitter.ctrl; |
| 607 | 607 | } |
| r2241 | r2242 | |
| 683 | 683 | |
| 684 | 684 | WRITE16_HANDLER( atarist_blitter_op_w ) |
| 685 | 685 | { |
| 686 | if (ACCESSING_ | |
| 686 | if (ACCESSING_ | |
| 687 | 687 | { |
| 688 | 688 | blitter.hop = (data >> 8) & 0x03; |
| 689 | 689 | } |
| r2241 | r2242 | |
| 695 | 695 | |
| 696 | 696 | WRITE16_HANDLER( atarist_blitter_ctrl_w ) |
| 697 | 697 | { |
| 698 | if (ACCESSING_ | |
| 698 | if (ACCESSING_ | |
| 699 | 699 | { |
| 700 | 700 | blitter.ctrl = (data >> 8) & 0xef; |
| 701 | 701 |
| r2241 | r2242 | |
|---|---|---|
| 1127 | 1127 | if (LOG_MAC_IWM) |
| 1128 | 1128 | logerror("mac_iwm_w: offset=0x%08x data=0x%04x\n", offset, data); |
| 1129 | 1129 | |
| 1130 | if (ACCESSING_ | |
| 1130 | if (ACCESSING_ | |
| 1131 | 1131 | applefdc_w(machine, offset >> 8, data & 0xff); |
| 1132 | 1132 | } |
| 1133 | 1133 | |
| r2241 | r2242 | |
| 1274 | 1274 | if (LOG_VIA) |
| 1275 | 1275 | logerror("mac_via_w: offset=0x%02x data=0x%08x\n", offset, data); |
| 1276 | 1276 | |
| 1277 | if (ACCESSING_ | |
| 1277 | if (ACCESSING_ | |
| 1278 | 1278 | via_0_w(machine, offset, (data >> 8) & 0xff); |
| 1279 | 1279 | } |
| 1280 | 1280 |
| r2241 | r2242 | |
|---|---|---|
| 281 | 281 | |
| 282 | 282 | READ16_HANDLER(concept_io_r) |
| 283 | 283 | { |
| 284 | if (! ACCESSING_ | |
| 284 | if (! ACCESSING_ | |
| 285 | 285 | return 0; |
| 286 | 286 | |
| 287 | 287 | switch ((offset >> 8) & 7) |
| r2241 | r2242 | |
| 416 | 416 | |
| 417 | 417 | WRITE16_HANDLER(concept_io_w) |
| 418 | 418 | { |
| 419 | if (! ACCESSING_ | |
| 419 | if (! ACCESSING_ | |
| 420 | 420 | return; |
| 421 | 421 | |
| 422 | 422 | data &= 0xff; |
| r2241 | r2242 | |
|---|---|---|
| 1770 | 1770 | COMBINE_DATA((UINT16 *) (lisa_ram_ptr + address)); |
| 1771 | 1771 | if (diag2) |
| 1772 | 1772 | { |
| 1773 | if ((ACCESSING_ | |
| 1773 | if ((ACCESSING_ | |
| 1774 | 1774 | && ! (bad_parity_table[address >> 3] & (0x1 << (address & 0x7)))) |
| 1775 | 1775 | { |
| 1776 | 1776 | bad_parity_table[address >> 3] |= 0x1 << (address & 0x7); |
| 1777 | 1777 | bad_parity_count++; |
| 1778 | 1778 | } |
| 1779 | if ((ACCESSING_ | |
| 1779 | if ((ACCESSING_ | |
| 1780 | 1780 | && ! (bad_parity_table[address >> 3] & (0x2 << (address & 0x7)))) |
| 1781 | 1781 | { |
| 1782 | 1782 | bad_parity_table[address >> 3] |= 0x2 << (address & 0x7); |
| r2241 | r2242 | |
| 1785 | 1785 | } |
| 1786 | 1786 | else if (bad_parity_table[address >> 3] & (0x3 << (address & 0x7))) |
| 1787 | 1787 | { |
| 1788 | if ((ACCESSING_ | |
| 1788 | if ((ACCESSING_ | |
| 1789 | 1789 | && (bad_parity_table[address >> 3] & (0x1 << (address & 0x7)))) |
| 1790 | 1790 | { |
| 1791 | 1791 | bad_parity_table[address >> 3] &= ~ (0x1 << (address & 0x7)); |
| 1792 | 1792 | bad_parity_count--; |
| 1793 | 1793 | } |
| 1794 | if ((ACCESSING_ | |
| 1794 | if ((ACCESSING_ | |
| 1795 | 1795 | && (bad_parity_table[address >> 3] & (0x2 << (address & 0x7)))) |
| 1796 | 1796 | { |
| 1797 | 1797 | bad_parity_table[address >> 3] &= ~ (0x2 << (address & 0x7)); |
| r2241 | r2242 | |
| 1809 | 1809 | COMBINE_DATA((UINT16 *) (lisa_ram_ptr + address)); |
| 1810 | 1810 | if (diag2) |
| 1811 | 1811 | { |
| 1812 | if ((ACCESSING_ | |
| 1812 | if ((ACCESSING_ | |
| 1813 | 1813 | && ! (bad_parity_table[address >> 3] & (0x1 << (address & 0x7)))) |
| 1814 | 1814 | { |
| 1815 | 1815 | bad_parity_table[address >> 3] |= 0x1 << (address & 0x7); |
| 1816 | 1816 | bad_parity_count++; |
| 1817 | 1817 | } |
| 1818 | if ((ACCESSING_ | |
| 1818 | if ((ACCESSING_ | |
| 1819 | 1819 | && ! (bad_parity_table[address >> 3] & (0x2 << (address & 0x7)))) |
| 1820 | 1820 | { |
| 1821 | 1821 | bad_parity_table[address >> 3] |= 0x2 << (address & 0x7); |
| r2241 | r2242 | |
| 1824 | 1824 | } |
| 1825 | 1825 | else if (bad_parity_table[address >> 3] & (0x3 << (address & 0x7))) |
| 1826 | 1826 | { |
| 1827 | if ((ACCESSING_ | |
| 1827 | if ((ACCESSING_ | |
| 1828 | 1828 | && (bad_parity_table[address >> 3] & (0x1 << (address & 0x7)))) |
| 1829 | 1829 | { |
| 1830 | 1830 | bad_parity_table[address >> 3] &= ~ (0x1 << (address & 0x7)); |
| 1831 | 1831 | bad_parity_count--; |
| 1832 | 1832 | } |
| 1833 | if ((ACCESSING_ | |
| 1833 | if ((ACCESSING_ | |
| 1834 | 1834 | && (bad_parity_table[address >> 3] & (0x2 << (address & 0x7)))) |
| 1835 | 1835 | { |
| 1836 | 1836 | bad_parity_table[address >> 3] &= ~ (0x2 << (address & 0x7)); |
| r2241 | r2242 | |
| 1969 | 1969 | { |
| 1970 | 1970 | if (! (offset & 0x400)) |
| 1971 | 1971 | { |
| 1972 | /*if (ACCESSING_ | |
| 1972 | /*if (ACCESSING_ | |
| 1973 | 1973 | answer = lisa_fdc_ram[offset & 0x03ff] & 0xff; /* right ??? */ |
| 1974 | 1974 | } |
| 1975 | 1975 | } |
| r2241 | r2242 | |
| 1986 | 1986 | |
| 1987 | 1987 | case 2: /* parallel port */ |
| 1988 | 1988 | /* 1 VIA located at 0xD901 */ |
| 1989 | if (ACCESSING_ | |
| 1989 | if (ACCESSING_ | |
| 1990 | 1990 | return via_read(1, (offset >> 2) & 0xf); |
| 1991 | 1991 | break; |
| 1992 | 1992 | |
| 1993 | 1993 | case 3: /* keyboard/mouse cops via */ |
| 1994 | 1994 | /* 1 VIA located at 0xDD81 */ |
| 1995 | if (ACCESSING_ | |
| 1995 | if (ACCESSING_ | |
| 1996 | 1996 | return via_read(0, offset & 0xf); |
| 1997 | 1997 | break; |
| 1998 | 1998 | } |
| r2241 | r2242 | |
| 2064 | 2064 | /* Floppy Disk Controller shared RAM */ |
| 2065 | 2065 | if (! (offset & 0x0400)) |
| 2066 | 2066 | { |
| 2067 | if (ACCESSING_ | |
| 2067 | if (ACCESSING_ | |
| 2068 | 2068 | lisa_fdc_ram[offset & 0x03ff] = data & 0xff; |
| 2069 | 2069 | } |
| 2070 | 2070 | } |
| r2241 | r2242 | |
| 2077 | 2077 | break; |
| 2078 | 2078 | |
| 2079 | 2079 | case 2: /* paralel port */ |
| 2080 | if (ACCESSING_ | |
| 2080 | if (ACCESSING_ | |
| 2081 | 2081 | via_write(1, (offset >> 2) & 0xf, data & 0xff); |
| 2082 | 2082 | break; |
| 2083 | 2083 | |
| 2084 | 2084 | case 3: /* keyboard/mouse cops via */ |
| 2085 | if (ACCESSING_ | |
| 2085 | if (ACCESSING_ | |
| 2086 | 2086 | via_write(0, offset & 0xf, data & 0xff); |
| 2087 | 2087 | break; |
| 2088 | 2088 | } |
| r2241 | r2242 | |
|---|---|---|
| 191 | 191 | { |
| 192 | 192 | int pc = safe_activecpu_get_pc(); |
| 193 | 193 | |
| 194 | if ( ACCESSING_ | |
| 194 | if ( ACCESSING_ | |
| 195 | 195 | { |
| 196 | 196 | amiga_ar23_freeze(machine); |
| 197 | 197 | } |
| r2241 | r2242 | |
| 220 | 220 | { |
| 221 | 221 | UINT16 *mem = (UINT16 *)memory_region( REGION_USER2 ); |
| 222 | 222 | |
| 223 | if ( ACCESSING_ | |
| 223 | if ( ACCESSING_ | |
| 224 | 224 | { |
| 225 | 225 | if ( offset < 2 ) |
| 226 | 226 | return (mem[offset] | (amiga_ar23_mode&3)); |
| r2241 | r2242 | |
|---|---|---|
| 403 | 403 | READ16_HANDLER( cybiko_lcd_r ) |
| 404 | 404 | { |
| 405 | 405 | UINT16 data = 0; |
| 406 | if ACCESSING_MSB16 data = data | (hd66421_reg_idx_r() << 8); | |
| 407 | if ACCESSING_LSB16 data = data | (hd66421_reg_dat_r() << 0); | |
| 406 | if ACCESSING_BITS_8_15 data = data | (hd66421_reg_idx_r() << 8); | |
| 407 | if ACCESSING_BITS_0_7 data = data | (hd66421_reg_dat_r() << 0); | |
| 408 | 408 | return data; |
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | WRITE16_HANDLER( cybiko_lcd_w ) |
| 412 | 412 | { |
| 413 | if ACCESSING_MSB16 hd66421_reg_idx_w( (data >> 8) & 0xFF); | |
| 414 | if ACCESSING_LSB16 hd66421_reg_dat_w( (data >> 0) & 0xFF); | |
| 413 | if ACCESSING_BITS_8_15 hd66421_reg_idx_w( (data >> 8) & 0xFF); | |
| 414 | if ACCESSING_BITS_0_7 hd66421_reg_dat_w( (data >> 0) & 0xFF); | |
| 415 | 415 | } |
| 416 | 416 | |
| 417 | 417 | static READ8_HANDLER( cybiko_key_r_byte ) |
| r2241 | r2242 | |
| 433 | 433 | { |
| 434 | 434 | UINT16 data = 0; |
| 435 | 435 | _logerror( 2, ("cybiko_key_r (%08X/%04X)\n", offset, mem_mask)); |
| 436 | if ACCESSING_MSB16 data = data | (cybiko_key_r_byte(machine, offset * 2 + 0) << 8); | |
| 437 | if ACCESSING_LSB16 data = data | (cybiko_key_r_byte(machine, offset * 2 + 1) << 0); | |
| 436 | if ACCESSING_BITS_8_15 data = data | (cybiko_key_r_byte(machine, offset * 2 + 0) << 8); | |
| 437 | if ACCESSING_BITS_0_7 data = data | (cybiko_key_r_byte(machine, offset * 2 + 1) << 0); | |
| 438 | 438 | _logerror( 2, ("%04X\n", data)); |
| 439 | 439 | return data; |
| 440 | 440 | } |
| r2241 | r2242 | |
| 562 | 562 | // 20/00, 23/08, 27/01, 2F/08, 2C/02, 2B/08, 28/01, 37/08, 34/04, 33/08, 30/03, 04/80, 05/02, 1B/6C, 00/C8 |
| 563 | 563 | WRITE16_HANDLER( cybiko_unk1_w ) |
| 564 | 564 | { |
| 565 | if ACCESSING_MSB16 logerror( "[%08X] <- %02X\n", 0x200000 + offset * 2 + 0, (data >> 8) & 0xFF); | |
| 566 | if ACCESSING_LSB16 logerror( "[%08X] <- %02X\n", 0x200000 + offset * 2 + 1, (data >> 0) & 0xFF); | |
| 565 | if ACCESSING_BITS_8_15 logerror( "[%08X] <- %02X\n", 0x200000 + offset * 2 + 0, (data >> 8) & 0xFF); | |
| 566 | if ACCESSING_BITS_0_7 logerror( "[%08X] <- %02X\n", 0x200000 + offset * 2 + 1, (data >> 0) & 0xFF); | |
| 567 | 567 | } |
| 568 | 568 | |
| 569 | 569 | READ16_HANDLER( cybiko_unk2_r ) |
| r2241 | r2242 | |
|---|---|---|
| 87 | 87 | switch(reg) |
| 88 | 88 | { |
| 89 | 89 | case 0x00: // CSR / CER |
| 90 | if(ACCESSING_ | |
| 90 | if(ACCESSING_ | |
| 91 | 91 | { |
| 92 | 92 | // dmac.reg[channel].csr = (data & 0xff00) >> 8; |
| 93 | 93 | // logerror("DMA#%i: Channel status write : %02x\n",channel,dmac.reg[channel].csr); |
| r2241 | r2242 | |
| 95 | 95 | // CER is read-only, so no action needed there. |
| 96 | 96 | break; |
| 97 | 97 | case 0x02: // DCR / OCR |
| 98 | if(ACCESSING_ | |
| 98 | if(ACCESSING_ | |
| 99 | 99 | { |
| 100 | 100 | dmac.reg[channel].dcr = (data & 0xff00) >> 8; |
| 101 | 101 | logerror("DMA#%i: Device Control write : %02x\n",channel,dmac.reg[channel].dcr); |
| 102 | 102 | } |
| 103 | if(ACCESSING_ | |
| 103 | if(ACCESSING_ | |
| 104 | 104 | { |
| 105 | 105 | dmac.reg[channel].ocr = data & 0x00ff; |
| 106 | 106 | logerror("DMA#%i: Operation Control write : %02x\n",channel,dmac.reg[channel].ocr); |
| 107 | 107 | } |
| 108 | 108 | break; |
| 109 | 109 | case 0x03: // SCR / CCR |
| 110 | if(ACCESSING_ | |
| 110 | if(ACCESSING_ | |
| 111 | 111 | { |
| 112 | 112 | dmac.reg[channel].scr = (data & 0xff00) >> 8; |
| 113 | 113 | logerror("DMA#%i: Sequence Control write : %02x\n",channel,dmac.reg[channel].scr); |
| 114 | 114 | } |
| 115 | if(ACCESSING_ | |
| 115 | if(ACCESSING_ | |
| 116 | 116 | { |
| 117 | 117 | dmac.reg[channel].ccr = data & 0x00ff; |
| 118 | 118 | if((data & 0x0080))// && !dmac.intf->dma_read[channel] && !dmac.intf->dma_write[channel]) |
| r2241 | r2242 | |
|---|---|---|
| 1102 | 1102 | switch (offset & 3) |
| 1103 | 1103 | { |
| 1104 | 1104 | case 0: |
| 1105 | if (ACCESSING_ | |
| 1105 | if (ACCESSING_ | |
| 1106 | 1106 | else return YM2612_read_port_0_r(0); |
| 1107 | 1107 | break; |
| 1108 | 1108 | case 2: |
| 1109 | if (ACCESSING_ | |
| 1109 | if (ACCESSING_ | |
| 1110 | 1110 | else return 0; |
| 1111 | 1111 | break; |
| 1112 | 1112 | } |
| r2241 | r2242 | |
| 1137 | 1137 | |
| 1138 | 1138 | // logerror("Write Data %04x Mask %04x to Z80 offset %04x\n", data, mem_mask, offset); |
| 1139 | 1139 | |
| 1140 | if ((ACCESSING_ | |
| 1140 | if ((ACCESSING_ | |
| 1141 | 1141 | { |
| 1142 | 1142 | // logerror("word access wrote to z80!\n"); |
| 1143 | 1143 | // ignore LSB |
| r2241 | r2242 | |
| 1146 | 1146 | return; |
| 1147 | 1147 | } |
| 1148 | 1148 | |
| 1149 | if (ACCESSING_ | |
| 1149 | if (ACCESSING_ | |
| 1150 | 1150 | memory_region(REGION_CPU2)[offset^1] = data & 0x00ff; |
| 1151 | 1151 | |
| 1152 | if (ACCESSING_ | |
| 1152 | if (ACCESSING_ | |
| 1153 | 1153 | memory_region(REGION_CPU2)[offset] = (data & 0xff00)>>8; |
| 1154 | 1154 | } |
| 1155 | 1155 | else if ((offset>=0x4000) && (offset<=0x5fff)) |
| r2241 | r2242 | |
| 1157 | 1157 | switch (offset & 3) |
| 1158 | 1158 | { |
| 1159 | 1159 | case 0: |
| 1160 | if (ACCESSING_ | |
| 1160 | if (ACCESSING_ | |
| 1161 | 1161 | else YM2612_data_port_0_A_w (0, (data >> 0) & 0xff); |
| 1162 | 1162 | break; |
| 1163 | 1163 | case 2: |
| 1164 | if (ACCESSING_ | |
| 1164 | if (ACCESSING_ | |
| 1165 | 1165 | else YM2612_data_port_0_B_w (0, (data >> 0) & 0xff); |
| 1166 | 1166 | break; |
| 1167 | 1167 | } |
| r2241 | r2242 | |
| 2000 | 2000 | case 0x00: // Data Port |
| 2001 | 2001 | case 0x02: // Data Port (mirror) |
| 2002 | 2002 | /* for 8-bit writes data gets duplicated in each half */ |
| 2003 | if (!ACCESSING_LSB) data = (data & 0xff00) | ((data >>8 )& 0x00ff); | |
| 2004 | if (!ACCESSING_MSB) data = (data & 0x00ff) | ((data <<8 )& 0xff00); | |
| 2003 | if (!ACCESSING_BITS_0_7) data = (data & 0xff00) | ((data >>8 )& 0x00ff); | |
| 2004 | if (!ACCESSING_BITS_8_15) data = (data & 0x00ff) | ((data <<8 )& 0xff00); | |
| 2005 | 2005 | genesis_vdp_data_write(current_vdp,data); |
| 2006 | 2006 | break; |
| 2007 | 2007 | |
| 2008 | 2008 | case 0x04: // Control Port |
| 2009 | 2009 | case 0x06: // Control Port (mirror) |
| 2010 | 2010 | /* for 8-bit writes data gets duplicated in each half */ |
| 2011 | if (!ACCESSING_LSB) data = (data & 0xff00) | ((data >>8 )& 0x00ff); | |
| 2012 | if (!ACCESSING_MSB) data = (data & 0x00ff) | ((data <<8 )& 0xff00); | |
| 2011 | if (!ACCESSING_BITS_0_7) data = (data & 0xff00) | ((data >>8 )& 0x00ff); | |
| 2012 | if (!ACCESSING_BITS_8_15) data = (data & 0x00ff) | ((data <<8 )& 0xff00); | |
| 2013 | 2013 | genesis_vdp_control_write(current_vdp,data); |
| 2014 | 2014 | break; |
| 2015 | 2015 | |
| r2241 | r2242 | |
| 2029 | 2029 | case 0x16: // SN76489 PSG (mirror) |
| 2030 | 2030 | SN76496_1_w(0, (data) & 0xff); break; |
| 2031 | 2031 | |
| 2032 | // if (ACCESSING_ | |
| 2032 | // if (ACCESSING_ | |
| 2033 | 2033 | |
| 2034 | 2034 | // break; |
| 2035 | 2035 |
| r2241 | r2242 | |
|---|---|---|
| 594 | 594 | return; /* right??? */ |
| 595 | 595 | } |
| 596 | 596 | |
| 597 | if ((hsgpl.cru_reg & cr_mbxena) && (offset == 0x07ff) && ACCESSING_ | |
| 597 | if ((hsgpl.cru_reg & cr_mbxena) && (offset == 0x07ff) && ACCESSING_ | |
| 598 | 598 | { /* MBX: mapper at 0x6ffe */ |
| 599 | 599 | hsgpl.cur_bank = (data >> 8) & 0x3; |
| 600 | 600 | return; |
| r2241 | r2242 | |
| 611 | 611 | case 1: |
| 612 | 612 | if (hsgpl.cru_reg & cr_ramena) |
| 613 | 613 | { |
| 614 | if (ACCESSING_ | |
| 614 | if (ACCESSING_ | |
| 615 | 615 | hsgpl.RAM6_ptr[1 + 2*offset + 0x2000*hsgpl.cur_bank + 0x8000*port] = data; |
| 616 | if (ACCESSING_ | |
| 616 | if (ACCESSING_ | |
| 617 | 617 | hsgpl.RAM6_ptr[2*offset + 0x2000*hsgpl.cur_bank + 0x8000*port] = data >> 8; |
| 618 | 618 | break; |
| 619 | 619 | } |
| r2241 | r2242 | |
| 639 | 639 | |
| 640 | 640 | case 32: |
| 641 | 641 | case 33: |
| 642 | if (ACCESSING_ | |
| 642 | if (ACCESSING_ | |
| 643 | 643 | hsgpl.RAM6_ptr[1 + 2*offset + 0x2000*hsgpl.cur_bank + 0x8000*(port-32)] = data; |
| 644 | if (ACCESSING_ | |
| 644 | if (ACCESSING_ | |
| 645 | 645 | hsgpl.RAM6_ptr[2*offset + 0x2000*hsgpl.cur_bank + 0x8000*(port-32)] = data >> 8; |
| 646 | 646 | break; |
| 647 | 647 |
| r2241 | r2242 | |
|---|---|---|
| 1046 | 1046 | /* mapper at 0x6ffe */ |
| 1047 | 1047 | if ((offset >= 0x0600) && (offset <= 0x07fe)) |
| 1048 | 1048 | COMBINE_DATA(cartridge_pages[0]+offset); |
| 1049 | else if ((offset == 0x07ff) && ACCESSING_ | |
| 1049 | else if ((offset == 0x07ff) && ACCESSING_ | |
| 1050 | 1050 | current_page_ptr = cartridge_pages[cartridge_paged ? ((data >> 8) & 1) : 0]; |
| 1051 | 1051 | } |
| 1052 | 1052 | else if (cartridge_paged) |
| r2241 | r2242 | |
|---|---|---|
| 370 | 370 | $(MESSOBJ)/gce.a \ |
| 371 | 371 | $(MESSOBJ)/glasgow.a \ |
| 372 | 372 | $(MESSOBJ)/gmaster.a \ |
| 373 | $(MESSOBJ)/pasogo.a \ | |
| 374 | 373 | $(MESSOBJ)/hp48.a \ |
| 375 | 374 | $(MESSOBJ)/intv.a \ |
| 376 | 375 | $(MESSOBJ)/jupiter.a \ |
| r2241 | r2242 | |
| 395 | 394 | $(MESSOBJ)/nintendo.a \ |
| 396 | 395 | $(MESSOBJ)/osborne.a \ |
| 397 | 396 | $(MESSOBJ)/p2000.a \ |
| 397 | $(MESSOBJ)/pasogo.a \ | |
| 398 | 398 | $(MESSOBJ)/pc.a \ |
| 399 | 399 | $(MESSOBJ)/pcshare.a \ |
| 400 | 400 | $(MESSOBJ)/pdp1.a \ |
| r2241 | r2242 | |
|---|---|---|
| 1127 | 1127 | } |
| 1128 | 1128 | break; |
| 1129 | 1129 | default: |
| 1130 | if (ACCESSING_ | |
| 1130 | if (ACCESSING_ | |
| 1131 | 1131 | return; |
| 1132 | 1132 | } |
| 1133 | 1133 | } |
| r2241 | r2242 | |
| 1220 | 1220 | break; |
| 1221 | 1221 | case 0x280: // priority levels |
| 1222 | 1222 | COMBINE_DATA(sys.video.reg+1); |
| 1223 | if(ACCESSING_ | |
| 1223 | if(ACCESSING_ | |
| 1224 | 1224 | { |
| 1225 | 1225 | sys.video.gfxlayer_pri[0] = data & 0x0003; |
| 1226 | 1226 | sys.video.gfxlayer_pri[1] = (data & 0x000c) >> 2; |
| 1227 | 1227 | sys.video.gfxlayer_pri[2] = (data & 0x0030) >> 4; |
| 1228 | 1228 | sys.video.gfxlayer_pri[3] = (data & 0x00c0) >> 6; |
| 1229 | 1229 | } |
| 1230 | if(ACCESSING_ | |
| 1230 | if(ACCESSING_ | |
| 1231 | 1231 | { |
| 1232 | 1232 | sys.video.gfx_pri = (data & 0x0300) >> 8; |
| 1233 | 1233 | sys.video.text_pri = (data & 0x0c00) >> 10; |
| r2241 | r2242 | |
| 1353 | 1353 | current_vector[2] = 0x02; // bus error |
| 1354 | 1354 | current_irq_line = 2; |
| 1355 | 1355 | offset *= 2; |
| 1356 | if(ACCESSING_ | |
| 1356 | if(ACCESSING_ | |
| 1357 | 1357 | offset++; |
| 1358 | 1358 | timer_set(ATTOTIME_IN_CYCLES(16,0), NULL, 0xeafa00+offset,x68k_fake_bus_error); |
| 1359 | 1359 | // cpunum_set_input_line_and_vector(machine, 0,2,ASSERT_LINE,current_vector[2]); |
| r2241 | r2242 | |
| 1369 | 1369 | current_vector[2] = 0x02; // bus error |
| 1370 | 1370 | current_irq_line = 2; |
| 1371 | 1371 | offset *= 2; |
| 1372 | if(ACCESSING_ | |
| 1372 | if(ACCESSING_ | |
| 1373 | 1373 | offset++; |
| 1374 | 1374 | timer_set(ATTOTIME_IN_CYCLES(16,0), NULL, 0xeafa00+offset,x68k_fake_bus_error); |
| 1375 | 1375 | // cpunum_set_input_line_and_vector(machine, 0,2,ASSERT_LINE,current_vector[2]); |
| r2241 | r2242 | |
|---|---|---|
| 60 | 60 | { |
| 61 | 61 | atarist_state *state = machine->driver_data; |
| 62 | 62 | |
| 63 | if (ACCESSING_ | |
| 63 | if (ACCESSING_ | |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /* Floppy Disk Controller */ |
| r2241 | r2242 | |
| 752 | 752 | |
| 753 | 753 | static READ16_HANDLER( megaste_scc8530_r ) |
| 754 | 754 | { |
| 755 | if (ACCESSING_ | |
| 755 | if (ACCESSING_ | |
| 756 | 756 | { |
| 757 | 757 | return scc_r(machine, offset); |
| 758 | 758 | } |
| r2241 | r2242 | |
| 764 | 764 | |
| 765 | 765 | static WRITE16_HANDLER( megaste_scc8530_w ) |
| 766 | 766 | { |
| 767 | if (ACCESSING_ | |
| 767 | if (ACCESSING_ | |
| 768 | 768 | { |
| 769 | 769 | scc_w(machine, offset, data); |
| 770 | 770 | } |
| r2241 | r2242 | |
|---|---|---|
| 51 | 51 | |
| 52 | 52 | static ADDRESS_MAP_START( compis_io, ADDRESS_SPACE_IO, 16) |
| 53 | 53 | AM_RANGE( 0x0000, 0x0007) AM_READWRITE( compis_ppi_r, compis_ppi_w ) /* PPI 8255 */ |
| 54 | AM_RANGE( 0x0080, 0x0087) AM_READWRITE( compis_pit_r, compis_pit_w ) /* PIT 8253 */ | |
| 54 | // AM_RANGE( 0x0080, 0x0087) AM_READWRITE( compis_pit_r, compis_pit_w ) /* PIT 8253 */ | |
| 55 | 55 | AM_RANGE( 0x0100, 0x011b) AM_READWRITE( compis_rtc_r, compis_rtc_w ) /* RTC 58174 */ |
| 56 | 56 | AM_RANGE( 0x0280, 0x0283) AM_READWRITE( compis_osp_pic_r, compis_osp_pic_w ) /* PIC 8259 (80150/80130) */ |
| 57 | 57 | // AM_RANGE( 0x0288, 0x028e) AM_READWRITE( compis_osp_pit_r, compis_osp_pit_w ) /* PIT 8254 (80150/80130) */ |
| r2241 | r2242 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | Source Changes: |
| 40 | 40 | ---------------- |
| 41 | - The core is based on MAME 0.124u1. This incorporates all features of the | |
| 42 | update to this core. [MAME team] | |
| 43 | ||
| 41 | 44 | - Major changes to transition MESS's device system onto MAME's device system. |
| 42 | 45 | [Nate Woods] |
| 43 | 46 |
| r2241 | r2242 | |
|---|---|---|
| 139 | 139 | # uncomment next line to generate a link map for exception handling in windows |
| 140 | 140 | # MAP = 1 |
| 141 | 141 | |
| 142 | # uncomment next line to generate verbose build information | |
| 143 | # VERBOSE = 1 | |
| 144 | ||
| 142 | 145 | # specify optimization level or leave commented to use the default |
| 143 | 146 | # (default is OPTIMIZE = 3 normally, or OPTIMIZE = 0 with symbols) |
| 144 | 147 | # OPTIMIZE = 3 |
| r2241 | r2242 | |
| 301 | 304 | CFLAGS += -g |
| 302 | 305 | endif |
| 303 | 306 | |
| 307 | # add -v if we need verbose build information | |
| 308 | ifdef VERBOSE | |
| 309 | CFLAGS += -v | |
| 310 | endif | |
| 311 | ||
| 304 | 312 | # add a basic set of warnings |
| 305 | 313 | CFLAGS += \ |
| 306 | 314 | -Wall \ |
| Previous | 15994 Revisions | Next |