| Previous | 15994 Revisions | Next |
| r15976 Monday 20th August, 2012 at 07:15:05 UTC by Miodrag Milanović |
|---|
| Clean-ups and version bump |
| [hash] | c64_flop.xml gamegear.xml vidbrain.xml |
| [src] | version.c |
| [src/emu] | emuopts.c emuopts.h romload.c ui.c |
| [src/emu/cpu/h83002] | h8ops.h h8speriph.c |
| [src/emu/cpu/powerpc] | ppcdrc.c |
| [src/emu/cpu/v30mz] | v30mz.c |
| [src/emu/cpu/v810] | v810.c |
| [src/emu/machine] | msm6242.c z80ctc.c z80ctc.h z80pio.h z80sio.h |
| [src/emu/sound] | dac.c |
| [src/emu/video] | huc6202.c huc6260.c huc6260.h huc6270.c huc6270.h saa5050.c v9938.h |
| [src/lib/formats] | g64_dsk.c x1_tap.c |
| [src/lib/util] | astring.c astring.h |
| [src/mame] | mame.lst mame.mak |
| [src/mame/drivers] | 30test.c acesp.c alvg.c astrafr.c atari_s2.c atari_s3.c atarig1.c atetris.c atronic.c bankp.c bfm_sc1.c bfm_sc5.c bingo.c blackt96.c by17.c by35.c by6803.c by68701.c capcom.c chihiro.c chsuper.c cobra.c cyclemb.c dassault.c dcon.c de_1.c de_2.c de_3.c de_3b.c deco32.c deco_ld.c docastle.c drmicro.c ecoinfr.c expro02.c freekick.c galpani3.c galpanic.c gp_1.c gp_2.c gts1.c gts3.c gts80.c gts80a.c gts80b.c hikaru.c hng64.c ikki.c intrscti.c invqix.c itgambl2.c jailbrek.c jantotsu.c jchan.c jclub2.c jpmimpct.c kncljoe.c konamim2.c kontest.c ladybug.c markham.c maygayep.c micropin.c midvunit.c mikie.c mjkjidai.c mpu4.c mpu4avan.c mpu4bwb.c mpu4crystal.c mpu4hw.c mpu4mod2sw.c mpu4mod4yam.c mpu4plasma.c mpu4sw.c mpu5.c multfish.c naomi.c peplus.c proconn.c royalmah.c s3.c sandscrp.c segac2.c segahang.c segaorun.c segas16a.c segas16b.c segas18.c segaxbd.c segaybd.c srmp2.c ssv.c tetrisp2.c triforce.c vega.c wildpkr.c |
| [src/mame/includes] | bfm_sc45.h cps1.h dynax.h galaga.h galaxian.h kickgoal.h megadriv.h n64.h neogeo.h pgm.h scramble.h segahang.h segaorun.h segas16a.h segas16b.h segas18.h segaxbd.h segaybd.h senjyo.h snes.h stv.h |
| [src/mame/machine] | cdi070.c cdicdic.c fd1089.c fd1089.h fd1094.c fd1094.h gdrom.c kaneko_calc3.c kaneko_hit.c kaneko_hit.h kaneko_toybox.c konppc.c megadriv.c megavdp.c megavdp.h model1.c model3.c namco06.c naomi.c nmk004.c segaic16.c segaic16.h snes.c |
| [src/mame/video] | kaneko16.c kaneko_grap2.c kaneko_grap2.h kaneko_spr.c kaneko_spr.h kaneko_tmap.h scn2674.c scn2674.h segaorun.c segas18.c st0020.c st0020.h |
| [src/mess/audio] | mos7360.h vboy.c vboy.h |
| [src/mess/drivers] | abc1600.c abc80.c abc80x.c altair.c apollo.c at.c bk.c bullet.c c64.c esq5505.c fm7.c geneve.c genpc.c h8.c irisha.c m20.c mbc200.c megadriv.c ms0515.c orion.c p2000t.c pc.c pc2000.c pc8801.c pce.c pcw16.c pdp1.c pdp11.c pk8000.c pk8020.c plus4.c ptcsol.c rainbow.c sacstate.c smc777.c tiki100.c tmc600.c trs80m2.c vax11.c vboy.c vidbrain.c vk100.c vt100.c |
| [src/mess/includes] | abc80.h abc80x.h c64_legacy.h osi.h plus4.h |
| [src/mess/machine] | 64h156.c abc77.c abc_hdc.c abc_hdc.h abc_turbo.h abc_xebec.c abc_xebec.h c1541.c c1541.h c1571.c c1581.c c2031.c c2040.c cuda.c dec_lk201.c lux21046.c plus4_sid.c plus4_sid.h plus4_std.h rx01.c rx01.h v1050kb.c vb_money_minder.c vb_money_minder.h vb_std.h vb_timeshare.h vidbrain_exp.h vp570.c vp575.c vp620.c |
| [src/mess/video] | abc800.c abc806.c hd44780.h |
| [src/osd/osdmini] | minimain.c |
| [src/osd/sdl] | draw13.c |
| [src/osd/windows] | d3dhlsl.c debugwin.c window.c |
| r15975 | r15976 | |
|---|---|---|
| 7256 | 7256 | </part> |
| 7257 | 7257 | </software> |
| 7258 | 7258 | |
| 7259 | <!-- Apparently, the development of both Sports Trivia and Sports Trivia CE went on in parallel... hard to say which | |
| 7259 | <!-- Apparently, the development of both Sports Trivia and Sports Trivia CE went on in parallel... hard to say which | |
| 7260 | 7260 | version the QTEST/ALOGTEST/etc. protos were for (more info are needed on these, or some code analysis/comparison) --> |
| 7261 | 7261 | <software name="sporttrvp12" cloneof="sporttrv"> |
| 7262 | 7262 | <description>Sports Trivia (Prototype, 19950308)</description> |
| r15975 | r15976 | |
|---|---|---|
| 3 | 3 | <!-- |
| 4 | 4 | |
| 5 | 5 | Undumped cartridges |
| 6 | ||
| 6 | ||
| 7 | 7 | Money Management Series: |
| 8 | 8 | APL/S The Computational Language |
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | Advertised but never released cartridges |
| 12 | ||
| 12 | ||
| 13 | 13 | Money Management Series: |
| 14 | 14 | VB-59 The Programmable |
| 15 | 15 | VB-1100 Budget System |
| r15975 | r15976 | |
|---|---|---|
| 69 | 69 | <publisher>Big Five</publisher> |
| 70 | 70 | <info name="protection" value="halftrack" /> |
| 71 | 71 | <sharedfeat name="compatibility" value="NTSC,PAL"/> |
| 72 | ||
| 72 | ||
| 73 | 73 | <part name="flop1" interface="floppy_5_25"> |
| 74 | 74 | <dataarea name="flop" size="206864"> |
| 75 | 75 | <rom name="bbsb.g64" size="206864" crc="612e0325" sha1="7a8be7b2f04a5fb63f23839c11a3801cff8e022c" offset="0" /> |
| r15975 | r15976 | |
| 107 | 107 | <publisher>Cinemaware</publisher> |
| 108 | 108 | <info name="protection" value="vmaxv2" /> |
| 109 | 109 | <sharedfeat name="compatibility" value="NTSC,PAL"/> |
| 110 | ||
| 110 | ||
| 111 | 111 | <part name="flop1" interface="floppy_5_25"> |
| 112 | 112 | <feature name="part_id" value="Side A"/> |
| 113 | 113 | <dataarea name="flop" size="278234"> |
| 114 | 114 | <rom name="defenderofthecrown_s0.g64" size="278234" crc="131759d0" sha1="2c8695caee776b2082a01856d13a0eeb99f9859f" offset="0" /> |
| 115 | 115 | </dataarea> |
| 116 | 116 | </part> |
| 117 | ||
| 117 | ||
| 118 | 118 | <part name="flop2" interface="floppy_5_25"> |
| 119 | 119 | <feature name="part_id" value="Side B"/> |
| 120 | 120 | <dataarea name="flop" size="323404"> |
| r15975 | r15976 | |
|---|---|---|
| 672 | 672 | navarone // (c) 1980 Namco |
| 673 | 673 | kaitein // [1980] Namco |
| 674 | 674 | kaitei // [1980] K.K. Tokki |
| 675 | sos // [1980] Namco | |
| 675 | sos // [1980] Namco | |
| 676 | 676 | tankbatt // (c) 1980 Namco |
| 677 | 677 | tankbattb // bootleg |
| 678 | 678 | warpwarp // (c) 1981 Namco |
| r15975 | r15976 | |
| 2446 | 2446 | snowbrosj // MIN16-02 (c) 1990 Toaplan |
| 2447 | 2447 | snowbrosd // MIN16-02 (c) 1990 Toaplan + Dooyong license |
| 2448 | 2448 | wintbob // bootleg |
| 2449 | // modif | |
| 2449 | // modif | |
| 2450 | 2450 | honeydol // (c) 1995 Barko Corp |
| 2451 | 2451 | twinadv // (c) 1995 Barko Corp |
| 2452 | 2452 | twinadvk // (c) 1995 Barko Corp |
| r15975 | r15976 | |
| 2526 | 2526 | bbakraidja // (c) 1999 8ing |
| 2527 | 2527 | |
| 2528 | 2528 | /* |
| 2529 | Toa Plan's board list | |
| 2530 | (translated from http://www.aianet.ne.jp/~eisetu/rom/rom_toha.html) | |
| 2529 | Toa Plan's board list | |
| 2530 | (translated from http://www.aianet.ne.jp/~eisetu/rom/rom_toha.html) | |
| 2531 | 2531 | |
| 2532 | Title ROMno. Remark(1) Remark(2) | |
| 2533 | -------------------------------------------------- | |
| 2534 | Tiger Heli A47 GX-551 | |
| 2535 | Hishouzame B02 TP-007 | |
| 2536 | Kyukyoku Tiger B30 TP-011 | |
| 2537 | Dash Yarou B45 TP-012 | |
| 2538 | Tatsujin B65 TP-013B M6100649A | |
| 2539 | Zero Wing O15 TP-015 | |
| 2540 | Horror Story O16 TP-016 | |
| 2541 | Same!Same!Same! O17 TP-017 | |
| 2542 | Out Zone TP-018 | |
| 2543 | Vimana TP-019 | |
| 2544 | Teki Paki O20 TP-020 | |
| 2545 | Ghox TP-21 TP-021 | |
| 2546 | Dogyuun TP-022 | |
| 2547 | Tatsujin Oh TP-024 *1 | |
| 2548 | Fixeight TP-026 | |
| 2549 | V-V TP-027 | |
| 2532 | Title ROMno. Remark(1) Remark(2) | |
| 2533 | -------------------------------------------------- | |
| 2534 | Tiger Heli A47 GX-551 | |
| 2535 | Hishouzame B02 TP-007 | |
| 2536 | Kyukyoku Tiger B30 TP-011 | |
| 2537 | Dash Yarou B45 TP-012 | |
| 2538 | Tatsujin B65 TP-013B M6100649A | |
| 2539 | Zero Wing O15 TP-015 | |
| 2540 | Horror Story O16 TP-016 | |
| 2541 | Same!Same!Same! O17 TP-017 | |
| 2542 | Out Zone TP-018 | |
| 2543 | Vimana TP-019 | |
| 2544 | Teki Paki O20 TP-020 | |
| 2545 | Ghox TP-21 TP-021 | |
| 2546 | Dogyuun TP-022 | |
| 2547 | Tatsujin Oh TP-024 *1 | |
| 2548 | Fixeight TP-026 | |
| 2549 | V-V TP-027 | |
| 2550 | 2550 | |
| 2551 | *1 There is a doubt this game uses TP-024 board and TP-025 romsets. | |
| 2551 | *1 There is a doubt this game uses TP-024 board and TP-025 romsets. | |
| 2552 | 2552 | |
| 2553 | 86 Mahjong Sisters Kit 2P 8W+2B HC Mahjong TP- | |
| 2554 | 88 Dash Kit 2P 8W+2B TP- | |
| 2555 | 89 Fire Shark Kit 2P 8W+2B VC Shooter TP-017 | |
| 2556 | 89 Twin Hawk Kit 2P 8W+2B VC Shooter TP- | |
| 2557 | 91 Whoopie Kit 2P 8W+2B HC Action | |
| 2558 | 92 Teki Paki Kit 2P TP-020 | |
| 2559 | 92 Ghox Kit 2P Paddle+1B VC Action TP-021 | |
| 2560 | 10/92 Dogyuun Kit 2P 8W+2B VC Shooter TP-022 | |
| 2561 | 92/93 Knuckle Bash Atari Games Kit 2P 8W+2B HC Action TP-023 | |
| 2562 | 10/92 Tatsujin II/Truxton II Taito Kit 2P 8W+2B VC Shooter TP-024 | |
| 2563 | 10/92 Truxton II/Tatsujin II Taito Kit 2P 8W+2B VC Shooter TP-024 | |
| 2564 | Pipi & Bipi TP-025 | |
| 2565 | 92 Fix Eight Kit 2P 8W+2B VC Action TP-026 | |
| 2566 | 12/92 V - V (5)/Grind Stormer Kit 2P 8W+2B VC Shooter TP-027 | |
| 2567 | 1/93 Grind Stormer/V - V (Five) Kit 2P 8W+2B VC Shooter TP-027 | |
| 2568 | 2/94 Batsugun Kit 2P 8W+2B VC TP- | |
| 2569 | 4/94 Snow Bros. 2 Kit 2P 8W+2B HC Action TP- | |
| 2553 | 86 Mahjong Sisters Kit 2P 8W+2B HC Mahjong TP- | |
| 2554 | 88 Dash Kit 2P 8W+2B TP- | |
| 2555 | 89 Fire Shark Kit 2P 8W+2B VC Shooter TP-017 | |
| 2556 | 89 Twin Hawk Kit 2P 8W+2B VC Shooter TP- | |
| 2557 | 91 Whoopie Kit 2P 8W+2B HC Action | |
| 2558 | 92 Teki Paki Kit 2P TP-020 | |
| 2559 | 92 Ghox Kit 2P Paddle+1B VC Action TP-021 | |
| 2560 | 10/92 Dogyuun Kit 2P 8W+2B VC Shooter TP-022 | |
| 2561 | 92/93 Knuckle Bash Atari Games Kit 2P 8W+2B HC Action TP-023 | |
| 2562 | 10/92 Tatsujin II/Truxton II Taito Kit 2P 8W+2B VC Shooter TP-024 | |
| 2563 | 10/92 Truxton II/Tatsujin II Taito Kit 2P 8W+2B VC Shooter TP-024 | |
| 2564 | Pipi & Bipi TP-025 | |
| 2565 | 92 Fix Eight Kit 2P 8W+2B VC Action TP-026 | |
| 2566 | 12/92 V - V (5)/Grind Stormer Kit 2P 8W+2B VC Shooter TP-027 | |
| 2567 | 1/93 Grind Stormer/V - V (Five) Kit 2P 8W+2B VC Shooter TP-027 | |
| 2568 | 2/94 Batsugun Kit 2P 8W+2B VC TP- | |
| 2569 | 4/94 Snow Bros. 2 Kit 2P 8W+2B HC Action TP- | |
| 2570 | 2570 | */ |
| 2571 | 2571 | |
| 2572 | 2572 | // Cave games |
| r15975 | r15976 | |
| 4078 | 4078 | ufosensi // 834-6659 (S2) |
| 4079 | 4079 | ufosensib // bootleg |
| 4080 | 4080 | /* |
| 4081 | other System 1 / System 2 games: | |
| 4081 | other System 1 / System 2 games: | |
| 4082 | 4082 | |
| 4083 | WarBall | |
| 4084 | DokiDoki Penguin Land *not confirmed | |
| 4083 | WarBall | |
| 4084 | DokiDoki Penguin Land *not confirmed | |
| 4085 | 4085 | */ |
| 4086 | 4086 | |
| 4087 | 4087 | // Sega System E games (Master System hardware) |
| r15975 | r15976 | |
| 4097 | 4097 | shtzone // (c) 1987 |
| 4098 | 4098 | |
| 4099 | 4099 | // other Sega 8-bit games |
| 4100 | stactics // (c) 1981 Sega | |
| 4100 | 4101 | turbo // (c) 1981 Sega |
| 4101 | 4102 | turboa // (c) 1981 Sega |
| 4102 | 4103 | turbob // (c) 1981 Sega |
| r15975 | r15976 | |
| 4701 | 4702 | logicpr2 // (c) 1997 Deniam (Japan) |
| 4702 | 4703 | |
| 4703 | 4704 | /* |
| 4704 | Deniam is a Korean company (http://deniam.co.kr). | |
| 4705 | Deniam is a Korean company (http://deniam.co.kr). | |
| 4705 | 4706 | |
| 4706 | Game list: | |
| 4707 | Title System Date | |
| 4708 | ---------------- ---------- ---------- | |
| 4709 | GO!GO! deniam-16b 1995/10/11 | |
| 4710 | Logic Pro deniam-16b 1996/10/20 | |
| 4711 | Karian Cross deniam-16b 1997/04/17 | |
| 4712 | LOTTERY GAME deniam-16c 1997/05/21 | |
| 4713 | Logic Pro 2 deniam-16c 1997/06/20 | |
| 4714 | Propose deniam-16c 1997/06/21 | |
| 4715 | BOMULEUL CHAJARA SEGA ST-V 1997/04/11 | |
| 4707 | Game list: | |
| 4708 | Title System Date | |
| 4709 | ---------------- ---------- ---------- | |
| 4710 | GO!GO! deniam-16b 1995/10/11 | |
| 4711 | Logic Pro deniam-16b 1996/10/20 | |
| 4712 | Karian Cross deniam-16b 1997/04/17 | |
| 4713 | LOTTERY GAME deniam-16c 1997/05/21 | |
| 4714 | Logic Pro 2 deniam-16c 1997/06/20 | |
| 4715 | Propose deniam-16c 1997/06/21 | |
| 4716 | BOMULEUL CHAJARA SEGA ST-V 1997/04/11 | |
| 4716 | 4717 | */ |
| 4717 | 4718 | |
| 4718 | 4719 | // System C games |
| r15975 | r15976 | |
| 5034 | 5035 | // 2009.?? Project Cerberus (planned to be released in 2009) |
| 5035 | 5036 | ngdup23a // DIMM Firmware Updater (Rev A) |
| 5036 | 5037 | ngdup23c // DIMM Firmware Updater (Rev C) |
| 5038 | ngdup23e // DIMM Firmware Updater (Rev E) | |
| 5037 | 5039 | |
| 5038 | 5040 | // NAOMI based (System SP) |
| 5039 | 5041 | // 2004.10 Oshare Majo Love and Berry / Fashionable Witch Love and Berry |
| r15975 | r15976 | |
| 5091 | 5093 | // 2006.03 World Club Champion Football European Clubs 2004-2005 Ver 1.2 |
| 5092 | 5094 | // 2006.08 World Club Champion Football European Clubs 2005-2006 |
| 5093 | 5095 | // 2006.10 World Club Champion Football European Clubs 2005-2006 bugfix |
| 5094 | ||
| 5096 | inidv3cy // 2006.?? Initial D Arcade Stage Ver. 3 Cycraft Edition (Rev B) | |
| 5095 | 5097 | |
| 5096 | 5098 | // Atomiswave (Dreamcast-based) games |
| 5097 | 5099 | awbios // 2002.?? Atomiswave BIOS |
| r15975 | r15976 | |
| 5191 | 5193 | // 2005.12 Quest of D Gofu no Keisyousya ver.2.00 |
| 5192 | 5194 | // 2005.12 Mobile Suit Gundam 0079 Card Builder |
| 5193 | 5195 | mj3 // 2005.12 Sega Network Taisen Mahjong MJ 3 (Rev D) |
| 5196 | mj3f // 2005.12 Sega Network Taisen Mahjong MJ 3 (Rev F) | |
| 5194 | 5197 | // 2005.12 Quest of D Gofu no Keisyousya ver.2.01 |
| 5195 | 5198 | scg06nt // 2005.12 Sega Golf Club 2006: Next Tours (Rev A) |
| 5196 | 5199 | // 2006.02 Sangokushi Taisen Ranse no Gunrou ver.1.12 |
| r15975 | r15976 | |
| 5487 | 5490 | robocop2u // MAH (c) 1991 Data East Corporation (US) |
| 5488 | 5491 | robocop2j // MAH (c) 1991 Data East Corporation (Japan) |
| 5489 | 5492 | thndzone // MAJ (c) 1991 Data East Corporation (World) |
| 5493 | thndzonea // MAJ (c) 1991 Data East Corporation (World) | |
| 5490 | 5494 | thndzonej // MAJ (c) 1991 Data East Corporation (Japan) - Some MASK ROMS stamped MAL |
| 5491 | 5495 | dassault // MAJ (c) 1991 Data East Corporation (US) |
| 5492 | 5496 | dassault4 // MAJ (c) 1991 Data East Corporation (US) |
| r15975 | r15976 | |
| 8131 | 8135 | vastar // (c) 1983 Sesame Japan |
| 8132 | 8136 | vastar2 // (c) 1983 Sesame Japan |
| 8133 | 8137 | /* |
| 8134 | other Orca games: | |
| 8135 | 82 Battle Cross Kit 2P | |
| 8136 | 82 River Patrol Empire Mfg/Kerstens Ind Ded 2P HC Action | |
| 8137 | 82 Slalom Kit 2P HC Action | |
| 8138 | 83 Net Wars 2P | |
| 8139 | 83 Super Crush Kit 2P Action | |
| 8138 | other Orca games: | |
| 8139 | 82 Battle Cross Kit 2P | |
| 8140 | 82 River Patrol Empire Mfg/Kerstens Ind Ded 2P HC Action | |
| 8141 | 82 Slalom Kit 2P HC Action | |
| 8142 | 83 Net Wars 2P | |
| 8143 | 83 Super Crush Kit 2P Action | |
| 8140 | 8144 | */ |
| 8141 | 8145 | |
| 8142 | 8146 | // Gaelco 2D games |
| r15975 | r15976 | |
| 8192 | 8196 | atvtracka // (c) 2002 - Ref 020419 |
| 8193 | 8197 | |
| 8194 | 8198 | /* |
| 8195 | Remaining Gaelco Games: | |
| 8196 | ======================= | |
| 8197 | 1999: Rolling Extreme | |
| 8198 | 2000: Football Power | |
| 8199 | 2001: Smashing Drive | |
| 8199 | Remaining Gaelco Games: | |
| 8200 | ======================= | |
| 8201 | 1999: Rolling Extreme | |
| 8202 | 2000: Football Power | |
| 8203 | 2001: Smashing Drive | |
| 8200 | 8204 | */ |
| 8201 | 8205 | |
| 8202 | 8206 | // Galeco PC based games |
| r15975 | r15976 | |
| 8499 | 8503 | heberpop // (c) 1994 Sunsoft / Atlus |
| 8500 | 8504 | blocken // (c) 1994 KID / Visco |
| 8501 | 8505 | /* |
| 8502 | Other Sun games | |
| 8503 | 1978.11 (GT)Block Perfect | |
| 8504 | 1978.12 (GT)Block Challenger | |
| 8505 | 1979.04 Galaxy Force | |
| 8506 | 1979.07 Run Away | |
| 8507 | 1979.12 Warp 1 | |
| 8508 | 1980.10 Cosmo Police (Cosmopolis?) | |
| 8506 | Other Sun games | |
| 8507 | 1978.11 (GT)Block Perfect | |
| 8508 | 1978.12 (GT)Block Challenger | |
| 8509 | 1979.04 Galaxy Force | |
| 8510 | 1979.07 Run Away | |
| 8511 | 1979.12 Warp 1 | |
| 8512 | 1980.10 Cosmo Police (Cosmopolis?) | |
| 8509 | 8513 | */ |
| 8510 | 8514 | |
| 8511 | 8515 | // SunA games |
| r15975 | r15976 | |
| 10036 | 10040 | monzagp // (c) 1981 Olympia |
| 10037 | 10041 | dday // (c) 1982 Olympia |
| 10038 | 10042 | ddayc // (c) 1982 Olympia + Centuri license |
| 10039 | ||
| 10043 | flipjack | |
| 10040 | 10044 | exterm // (c) 1989 Premier Technology - a Gottlieb game |
| 10041 | 10045 | flower // (c) 1986 Komax license |
| 10042 | 10046 | flowerj // 834-5998 (c) 1986 Sega / Alpha license? |
| r15975 | r15976 | |
| 10068 | 10072 | polyplay |
| 10069 | 10073 | amspdwy // no copyright notice, but (c) 1987 Enerdyne Technologies, Inc. |
| 10070 | 10074 | amspdwya // no copyright notice, but (c) 1987 Enerdyne Technologies, Inc. |
| 10075 | jankenmn // (c) 1985 Sunwise | |
| 10071 | 10076 | othldrby // (c) 1995 Sunwise |
| 10072 | 10077 | quizpun // (c) 1989 Space Computer System of Korea |
| 10073 | 10078 | quizpun2 // (c) 1989 Space Computer System of Korea |
| r15975 | r15976 | |
| 10319 | 10324 | dynadice // ? |
| 10320 | 10325 | atamanot // (c) 1983 Yachiyo Denki / Uni Enterprize |
| 10321 | 10326 | ssingles // Yachiyo? |
| 10322 | tcl // (c) 1995 Uniwang | |
| 10327 | tcl // (c) 1995 Uniwang | |
| 10323 | 10328 | othello // (c) 1984 Success |
| 10324 | 10329 | sothello // (c) 1986 Success / Fujiwara |
| 10330 | tonton // 199?, Success. | |
| 10325 | 10331 | quake // (c) 19?? Lazer-Tron / iD Software |
| 10326 | 10332 | majorpkr // (c) 1994 PAL System. |
| 10327 | 10333 | su2000 // (c) 1993 Virtuality |
| r15975 | r15976 | |
| 12028 | 12034 | //3do_pal |
| 12029 | 12035 | orbatak |
| 12030 | 12036 | |
| 12037 | // Global VR | |
| 12038 | hyperv2 // Hyper V2 (Global VR) Install - 06/12/02 | |
| 12039 | hyperv2a // Hyper V2 (Global VR) Install - 09/30/01 | |
| 12040 | gvrxpsys // Global VR XP OS Install - 09/30/01 | |
| 12041 | gvrxpsup // Global VR XP OS Update/Install - 06/11/02 | |
| 12042 | ||
| 12043 | bhead2k // Beach Head 2000 Install - 05/27/03 | |
| 12044 | bhead2ka // Beach Head 2000 Install - 09/16/01 | |
| 12045 | bhead2k2 // Beach Head 2002 Install - 05/27/03 | |
| 12046 | bhead2k3 // Beach Head 2003 Desert War Install - 05/27/03 | |
| 12047 | nfsug // Need For Speed: Underground Install (2 Discs) (v1.1) | |
| 12048 | ||
| 12049 | // Leisure Ent. | |
| 12050 | roul // (c) 1990 | |
| 12051 | ||
| 12052 | // Accept LTD. | |
| 12053 | hitpoker // (c) 1997 | |
| 12054 | ||
| 12055 | // Videotronics | |
| 12056 | vpoker // (c) 198? | |
| 12057 | 5acespkr // (c) 198? | |
| 12058 | ||
| 12059 | // Play Mechanix | |
| 12060 | specfrce // (c) 2002 ICE/Play Mechanix | |
| 12061 | jnero // (c) 2004 ICE/Play Mechanix | |
| 12062 | ||
| 12063 | // Amatic Trading GMBH | |
| 12064 | suprstar // (c) 1996 Amatic | |
| 12065 | am_mg24 // (c) 2000 Amatic | |
| 12066 | am_mg3 // (c) 2000 Amatic | |
| 12067 | am_mg3a // (c) 2000 Amatic | |
| 12068 | am_mg35i // (c) Amatic | |
| 12069 | am_mg34i // (c) Amatic | |
| 12070 | am_mg33i // (c) Amatic | |
| 12071 | am_mg31i // (c) Amatic | |
| 12072 | ||
| 12073 | ||
| 12074 | neptunp2 | |
| 12075 | rgum | |
| 12076 | ||
| 12077 | // Extrema Systems International Ltd. | |
| 12078 | poker72 | |
| 12079 | ||
| 12080 | // Blitz System Inc. | |
| 12081 | megadpkr // (c) 1990 Blitz System Inc | |
| 12082 | megadpkrb // (c) 1990 Blitz System Inc | |
| 12083 | ||
| 12084 | // Blitz System Inc. 68k + Blitter Hardware | |
| 12085 | megadblj // (c) 1990 Blitz Systems Inc. | |
| 12086 | megadble // (c) 1990 Blitz Systems Inc. | |
| 12087 | maxidbl // (c) 1992 Blitz Systems Inc. | |
| 12088 | bankrob // (c) 1993 Entertainment Technology Corp. | |
| 12089 | bankroba // (c) 1993 Entertainment Technology Corp. | |
| 12090 | poker52 // (c) 1993 Blitz Systems Inc. ? | |
| 12091 | steaser // (c) 1993 unknown | |
| 12092 | dualgame // (c) 1995 Labtronix Technologies | |
| 12093 | hermit // (c) 1995 Dugamex | |
| 12094 | deucesw2 // (c) 1997 | |
| 12095 | cj3play // (c) 1998 Cadillac Jack | |
| 12096 | cjffruit // (c) 1998 Cadillac Jack | |
| 12097 | ilpag // (c) 199? unknown | |
| 12098 | ||
| 12099 | // Olympic Video Gaming | |
| 12100 | hotstuff | |
| 12101 | ||
| 12102 | // Interactive Light | |
| 12103 | savquest | |
| 12104 | ||
| 12105 | // Jamie System Development | |
| 12106 | xtom3d | |
| 12107 | ||
| 12108 | // Jubilee | |
| 12109 | jubileep | |
| 12110 | ||
| 12111 | // Golden Games / C+M Technics AG | |
| 12112 | swisspkr // (c) 1990 Golden Games | |
| 12113 | moviecrd // (c) 1998 Golden Games | |
| 12114 | ||
| 12115 | // NSM | |
| 12116 | nsmpoker | |
| 12117 | ||
| 12118 | // Advanced Video Technologies | |
| 12119 | avtsym14 // (c) 1985 AVT | |
| 12120 | avtsym25 // (c) 1985 AVT | |
| 12121 | avtbingo // (c) 1985 AVT | |
| 12122 | avtnfl // (c) 1989 AVT | |
| 12123 | ||
| 12124 | // Corona hardware | |
| 12125 | winner81 // (c) 1981 Corona Co, Ltd. | |
| 12126 | winner81b // (c) 1981 Corona Co, Ltd. | |
| 12127 | winner82 // (c) 1982 Corona Co, Ltd. | |
| 12128 | re800ea // (c) 1991 Entretenimientos GEMINIS | |
| 12129 | re800v1 // (c) 1991 Entretenimientos GEMINIS | |
| 12130 | re800v3 // (c) 1992 Entretenimientos GEMINIS | |
| 12131 | rcirulet // (c) 199? Entretenimientos GEMINIS | |
| 12132 | luckyrlt // (c) 1990 unknown | |
| 12133 | ||
| 12134 | dfruit | |
| 12135 | ||
| 12136 | umipoker | |
| 12137 | saiyukip | |
| 12138 | ||
| 12139 | tmspoker | |
| 12140 | kas89 // 1989, SFC S.R.L. | |
| 12141 | caspoker // 1987, PM / Beck Elektronik. | |
| 12142 | wildpkr // 199?, TAB Austria. | |
| 12143 | ||
| 12144 | manohman // 199?, Merkur. | |
| 12145 | ||
| 12146 | ||
| 12147 | // TTL logic games | |
| 12148 | pong // (c) 1972 Atari | |
| 12149 | pongf // (c) 1972 Atari - no subcycles | |
| 12150 | ||
| 12151 | ||
| 12152 | ||
| 12153 | ||
| 12031 | 12154 | /* Drivers below are mostly mechanical games, usually with no video display, requiring external artwork to function. */ |
| 12032 | 12155 | |
| 12033 | 12156 | /* Bellfruit Hardware */ |
| r15975 | r15976 | |
| 25813 | 25936 | pr_upnun // Up & Under (Project) |
| 25814 | 25937 | pr_bears // Bear Streak (Coinworld) |
| 25815 | 25938 | pr_bearsa |
| 25816 | pr_bearsb | |
| 25939 | pr_bearsb | |
| 25817 | 25940 | pr_bearx // Bear X (Coinworld) |
| 25818 | 25941 | pr_bearxa |
| 25819 | 25942 | pr_bearxb |
| r15975 | r15976 | |
| 26573 | 26696 | //unkfr |
| 26574 | 26697 | //unkfra |
| 26575 | 26698 | |
| 26576 | // Leisure Ent. | |
| 26577 | roul // (c) 1990 | |
| 26578 | ||
| 26579 | // Accept LTD. | |
| 26580 | hitpoker // (c) 1997 | |
| 26581 | ||
| 26582 | // Videotronics | |
| 26583 | vpoker // (c) 198? | |
| 26584 | 5acespkr // (c) 198? | |
| 26585 | ||
| 26586 | // Play Mechanix | |
| 26587 | specfrce // (c) 2002 ICE/Play Mechanix | |
| 26588 | jnero // (c) 2004 ICE/Play Mechanix | |
| 26589 | ||
| 26590 | // Amatic Trading GMBH | |
| 26591 | suprstar // (c) 1996 Amatic | |
| 26592 | am_mg24 // (c) 2000 Amatic | |
| 26593 | am_mg3 // (c) 2000 Amatic | |
| 26594 | am_mg3a // (c) 2000 Amatic | |
| 26595 | am_mg35i // (c) Amatic | |
| 26596 | am_mg34i // (c) Amatic | |
| 26597 | am_mg33i // (c) Amatic | |
| 26598 | am_mg31i // (c) Amatic | |
| 26599 | ||
| 26600 | ||
| 26601 | neptunp2 | |
| 26602 | rgum | |
| 26603 | ||
| 26604 | // Extrema Systems International Ltd. | |
| 26605 | poker72 | |
| 26606 | ||
| 26607 | // Blitz System Inc. | |
| 26608 | megadpkr // (c) 1990 Blitz System Inc | |
| 26609 | megadpkrb // (c) 1990 Blitz System Inc | |
| 26610 | ||
| 26611 | // Blitz System Inc. 68k + Blitter Hardware | |
| 26612 | megadblj // (c) 1990 Blitz Systems Inc. | |
| 26613 | megadble // (c) 1990 Blitz Systems Inc. | |
| 26614 | maxidbl // (c) 1992 Blitz Systems Inc. | |
| 26615 | bankrob // (c) 1993 Entertainment Technology Corp. | |
| 26616 | bankroba // (c) 1993 Entertainment Technology Corp. | |
| 26617 | poker52 // (c) 1993 Blitz Systems Inc. ? | |
| 26618 | steaser // (c) 1993 unknown | |
| 26619 | dualgame // (c) 1995 Labtronix Technologies | |
| 26620 | hermit // (c) 1995 Dugamex | |
| 26621 | deucesw2 // (c) 1997 | |
| 26622 | cj3play // (c) 1998 Cadillac Jack | |
| 26623 | cjffruit // (c) 1998 Cadillac Jack | |
| 26624 | ilpag // (c) 199? unknown | |
| 26625 | ||
| 26626 | // Olympic Video Gaming | |
| 26627 | hotstuff | |
| 26628 | ||
| 26629 | // Interactive Light | |
| 26630 | savquest | |
| 26631 | ||
| 26632 | // Jamie System Development | |
| 26633 | xtom3d | |
| 26634 | ||
| 26635 | // Jubilee | |
| 26636 | jubileep | |
| 26637 | ||
| 26638 | // Golden Games / C+M Technics AG | |
| 26639 | swisspkr // (c) 1990 Golden Games | |
| 26640 | moviecrd // (c) 1998 Golden Games | |
| 26641 | ||
| 26642 | // NSM | |
| 26643 | nsmpoker | |
| 26644 | ||
| 26645 | // Advanced Video Technologies | |
| 26646 | avtsym14 // (c) 1985 AVT | |
| 26647 | avtsym25 // (c) 1985 AVT | |
| 26648 | avtbingo // (c) 1985 AVT | |
| 26649 | avtnfl // (c) 1989 AVT | |
| 26650 | ||
| 26651 | // Corona hardware | |
| 26652 | winner81 // (c) 1981 Corona Co, Ltd. | |
| 26653 | winner81b // (c) 1981 Corona Co, Ltd. | |
| 26654 | winner82 // (c) 1982 Corona Co, Ltd. | |
| 26655 | re800ea // (c) 1991 Entretenimientos GEMINIS | |
| 26656 | re800v1 // (c) 1991 Entretenimientos GEMINIS | |
| 26657 | re800v3 // (c) 1992 Entretenimientos GEMINIS | |
| 26658 | rcirulet // (c) 199? Entretenimientos GEMINIS | |
| 26659 | luckyrlt // (c) 1990 unknown | |
| 26660 | ||
| 26661 | dfruit | |
| 26662 | ||
| 26663 | 26699 | // allied.c |
| 26664 | 26700 | allied |
| 26665 | 26701 | suprpick |
| r15975 | r15976 | |
| 28214 | 28250 | spacecty |
| 28215 | 28251 | strike |
| 28216 | 28252 | |
| 28217 | umipoker | |
| 28218 | saiyukip | |
| 28219 | ||
| 28220 | tmspoker | |
| 28221 | tonton // 199?, Success. | |
| 28222 | kas89 // 1989, SFC S.R.L. | |
| 28223 | caspoker // 1987, PM / Beck Elektronik. | |
| 28224 | wildpkr // 199?, TAB Austria. | |
| 28225 | ||
| 28226 | manohman // 199?, Merkur. | |
| 28227 | jankenmn // 1985, Sunwise. | |
| 28228 | ||
| 28229 | flipjack // 1983? Jackson Co., Ltd. | |
| 28230 | ||
| 28231 | // Global VR | |
| 28232 | hyperv2 // Hyper V2 (Global VR) Install - 06/12/02 | |
| 28233 | hyperv2a // Hyper V2 (Global VR) Install - 09/30/01 | |
| 28234 | gvrxpsys // Global VR XP OS Install - 09/30/01 | |
| 28235 | gvrxpsup // Global VR XP OS Update/Install - 06/11/02 | |
| 28236 | ||
| 28237 | bhead2k // Beach Head 2000 Install - 05/27/03 | |
| 28238 | bhead2ka // Beach Head 2000 Install - 09/16/01 | |
| 28239 | bhead2k2 // Beach Head 2002 Install - 05/27/03 | |
| 28240 | bhead2k3 // Beach Head 2003 Desert War Install - 05/27/03 | |
| 28241 | nfsug // Need For Speed: Underground Install (2 Discs) (v1.1) | |
| 28242 | ||
| 28243 | ||
| 28244 | // TTL logic games | |
| 28245 | pong // (c) 1972 Atari | |
| 28246 | pongf // (c) 1972 Atari - no subcycles | |
| No newline at end of file |
| r15975 | r15976 | |
|---|---|---|
| 195 | 195 | case 0x30: // CD_READ |
| 196 | 196 | if (command[1] & 1) |
| 197 | 197 | { |
| 198 | fatalerror("GDROM: MSF mode used for CD_READ, unsupported"); | |
| 198 | fatalerror("GDROM: MSF mode used for CD_READ, unsupported\n"); | |
| 199 | 199 | *transferLength = 0; |
| 200 | 200 | } |
| 201 | 201 | else |
| r15975 | r15976 | |
| 208 | 208 | |
| 209 | 209 | if (read_type != 2) // mode 1 |
| 210 | 210 | { |
| 211 | fatalerror("GDROM: Unhandled read_type %d", read_type); | |
| 211 | fatalerror("GDROM: Unhandled read_type %d\n", read_type); | |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | if (data_select != 2) // just sector data |
| 215 | 215 | { |
| 216 | fatalerror("GDROM: Unhandled data_select %d", data_select); | |
| 216 | fatalerror("GDROM: Unhandled data_select %d\n", data_select); | |
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | printf("GDROM: CD_READ at LBA %x for %d blocks (%d bytes, read type %d, data select %d)\n", lba, blocks, blocks * bytes_per_sector, read_type, data_select); |
| r15975 | r15976 | |
|---|---|---|
| 270 | 270 | return; |
| 271 | 271 | |
| 272 | 272 | default: |
| 273 | fatalerror("effects channel %d unsupported token %02x",channel,token); | |
| 273 | fatalerror("effects channel %d unsupported token %02x\n",channel,token); | |
| 274 | 274 | } |
| 275 | 275 | } |
| 276 | 276 | } while (token == 0xef || (token & 0xf0) == 0xf0); |
| r15975 | r15976 | |
| 450 | 450 | return; |
| 451 | 451 | |
| 452 | 452 | default: |
| 453 | fatalerror("fm channel %d unsupported token %02x",channel,token); | |
| 453 | fatalerror("fm channel %d unsupported token %02x\n",channel,token); | |
| 454 | 454 | } |
| 455 | 455 | } |
| 456 | 456 | } while (token == 0xef || (token & 0xf0) == 0xf0); |
| r15975 | r15976 | |
| 801 | 801 | psg->note = token; |
| 802 | 802 | if ((psg->note & 0x0f) > NOTE_PAUSE) |
| 803 | 803 | { |
| 804 | fatalerror("PSG channel %d invalid note %02x",channel,psg->note); | |
| 804 | fatalerror("PSG channel %d invalid note %02x\n",channel,psg->note); | |
| 805 | 805 | } |
| 806 | 806 | |
| 807 | 807 | // optional note length (otherwise use the same length as the previous one) |
| r15975 | r15976 | |
| 965 | 965 | channel -= PSG_CHANNELS; |
| 966 | 966 | if (channel >= EFFECTS_CHANNELS) |
| 967 | 967 | { |
| 968 | fatalerror("too many effects channels"); | |
| 968 | fatalerror("too many effects channels\n"); | |
| 969 | 969 | } |
| 970 | 970 | NMK004_state.effects_control[channel].current = table_start; |
| 971 | 971 | NMK004_state.effects_control[channel].return_address_depth = 0; |
| r15975 | r15976 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | **************************************************************************** |
| 12 | 12 | |
| 13 | Decryption tables provided by Charles MacDonald | |
| 14 | Decryption algorithm by Nicola Salmoria | |
| 15 | LCG algorithm by Andreas Naive | |
| 13 | Decryption tables provided by Charles MacDonald | |
| 14 | Decryption algorithm by Nicola Salmoria | |
| 15 | LCG algorithm by Andreas Naive | |
| 16 | 16 | |
| 17 | The FD1089 is a 68000 with built-in encryption. | |
| 18 | It contains some battery-backed RAM, when the battery dies the CPU stops | |
| 19 | working. | |
| 17 | The FD1089 is a 68000 with built-in encryption. | |
| 18 | It contains some battery-backed RAM, when the battery dies the CPU stops | |
| 19 | working. | |
| 20 | 20 | |
| 21 | Both opcodes and data are encrypted, using different (but related) mappings. | |
| 22 | Decryption works on 16-bit words, but only 8 bits are affected, the other 8 are | |
| 23 | left untouched. A special value in internal RAM disables the encryption, this | |
| 24 | is necessary otherwise RAM would not work as expected (writing data and reading | |
| 25 | it back would return a different number). | |
| 21 | Both opcodes and data are encrypted, using different (but related) mappings. | |
| 22 | Decryption works on 16-bit words, but only 8 bits are affected, the other 8 are | |
| 23 | left untouched. A special value in internal RAM disables the encryption, this | |
| 24 | is necessary otherwise RAM would not work as expected (writing data and reading | |
| 25 | it back would return a different number). | |
| 26 | 26 | |
| 27 | The FD1089A and FD1089B work in the same way, but the decryption tables are | |
| 28 | different. The internal RAM contains the 8-bit key to use at every address | |
| 29 | (only 12 bits of the address are used, so the encryption repeats). | |
| 27 | The FD1089A and FD1089B work in the same way, but the decryption tables are | |
| 28 | different. The internal RAM contains the 8-bit key to use at every address | |
| 29 | (only 12 bits of the address are used, so the encryption repeats). | |
| 30 | 30 | |
| 31 | The FD1089 design is clearly derived from the MC8123. The MC8123 is a Z80 so it | |
| 32 | made sense to encrypt all 8 data bits and use 12 of the 16 address bits. It makes | |
| 33 | a lot less sense to encrypt only half of the 16 data bits; using 12 of the 24 | |
| 34 | address bits might be ok, but not in the way it was done. The choice of address | |
| 35 | bits to use was probably dictated by the need to not encrypt data in certain areas | |
| 36 | of the address space, so they had to include the top 8 bits of the address. | |
| 37 | However this means that if you pick e.g. area 000000-00FFFF, where most of the | |
| 38 | program code resides, just 4 address bits affect the encryption, making it very | |
| 39 | weak when compared to the MC8123. Out of the 16KB of internal RAM, you need less | |
| 40 | than 128 bytes to decrypt a whole game - the rest is not used. A waste of space | |
| 41 | and security. Also, since only 8 of the 16 bits are encrypted, it is very easy | |
| 42 | to use the unencrypted ones to search for known sequences of code or data. | |
| 31 | The FD1089 design is clearly derived from the MC8123. The MC8123 is a Z80 so it | |
| 32 | made sense to encrypt all 8 data bits and use 12 of the 16 address bits. It makes | |
| 33 | a lot less sense to encrypt only half of the 16 data bits; using 12 of the 24 | |
| 34 | address bits might be ok, but not in the way it was done. The choice of address | |
| 35 | bits to use was probably dictated by the need to not encrypt data in certain areas | |
| 36 | of the address space, so they had to include the top 8 bits of the address. | |
| 37 | However this means that if you pick e.g. area 000000-00FFFF, where most of the | |
| 38 | program code resides, just 4 address bits affect the encryption, making it very | |
| 39 | weak when compared to the MC8123. Out of the 16KB of internal RAM, you need less | |
| 40 | than 128 bytes to decrypt a whole game - the rest is not used. A waste of space | |
| 41 | and security. Also, since only 8 of the 16 bits are encrypted, it is very easy | |
| 42 | to use the unencrypted ones to search for known sequences of code or data. | |
| 43 | 43 | |
| 44 | Like for the MC8123, the contents of the internal RAM were generated using a | |
| 45 | linear congruential generator, so the whole key can be generated starting from | |
| 46 | a single 24-bit seed. Note however that the "don't decrypt" data sections need | |
| 47 | special treatment so it's not possible to derive the precise key without access | |
| 48 | to the CPU. | |
| 44 | Like for the MC8123, the contents of the internal RAM were generated using a | |
| 45 | linear congruential generator, so the whole key can be generated starting from | |
| 46 | a single 24-bit seed. Note however that the "don't decrypt" data sections need | |
| 47 | special treatment so it's not possible to derive the precise key without access | |
| 48 | to the CPU. | |
| 49 | 49 | |
| 50 | ||
| 50 | static int rndseed; | |
| 51 | 51 | |
| 52 | int rnd() | |
| 53 | { | |
| 54 | rndseed = rndseed * 0x290029; | |
| 55 | return (rndseed >> 16) & 0xff; | |
| 56 | } | |
| 52 | int rnd() | |
| 53 | { | |
| 54 | rndseed = rndseed * 0x290029; | |
| 55 | return (rndseed >> 16) & 0xff; | |
| 56 | } | |
| 57 | 57 | |
| 58 | void generate_key(int seed) | |
| 59 | { | |
| 60 | int i; | |
| 58 | void generate_key(int seed) | |
| 59 | { | |
| 60 | int i; | |
| 61 | 61 | |
| 62 | rndseed = seed; | |
| 63 | for (i = 0; i < 0x1000; ++i) | |
| 64 | { | |
| 65 | if ("we must encrypt this data table position") | |
| 66 | { | |
| 67 | UINT8 byteval; | |
| 62 | rndseed = seed; | |
| 63 | for (i = 0; i < 0x1000; ++i) | |
| 64 | { | |
| 65 | if ("we must encrypt this data table position") | |
| 66 | { | |
| 67 | UINT8 byteval; | |
| 68 | 68 | |
| 69 | do | |
| 70 | { | |
| 71 | byteval = rnd(); | |
| 72 | } while (byteval == 0x40); | |
| 69 | do | |
| 70 | { | |
| 71 | byteval = rnd(); | |
| 72 | } while (byteval == 0x40); | |
| 73 | 73 | |
| 74 | ||
| 74 | opcode_key[i] = byteval; | |
| 75 | 75 | |
| 76 | do | |
| 77 | { | |
| 78 | byteval = rnd(); | |
| 79 | } while (byteval == 0x40); | |
| 76 | do | |
| 77 | { | |
| 78 | byteval = rnd(); | |
| 79 | } while (byteval == 0x40); | |
| 80 | 80 | |
| 81 | data_key[i] = byteval; | |
| 82 | } | |
| 83 | } | |
| 81 | data_key[i] = byteval; | |
| 82 | } | |
| 83 | } | |
| 84 | 84 | |
| 85 | for (i = 0; i < 0x1000; ++i) | |
| 86 | { | |
| 87 | if ("we mustn't encrypt this data table position") | |
| 88 | { | |
| 89 | UINT8 byteval; | |
| 85 | for (i = 0; i < 0x1000; ++i) | |
| 86 | { | |
| 87 | if ("we mustn't encrypt this data table position") | |
| 88 | { | |
| 89 | UINT8 byteval; | |
| 90 | 90 | |
| 91 | do | |
| 92 | { | |
| 93 | byteval = rnd(); | |
| 94 | } while (byteval == 0x40); | |
| 91 | do | |
| 92 | { | |
| 93 | byteval = rnd(); | |
| 94 | } while (byteval == 0x40); | |
| 95 | 95 | |
| 96 | opcode_key[i] = byteval; | |
| 97 | data_key[i] = 0x40; | |
| 98 | } | |
| 99 | } | |
| 100 | } | |
| 96 | opcode_key[i] = byteval; | |
| 97 | data_key[i] = 0x40; | |
| 98 | } | |
| 99 | } | |
| 100 | } | |
| 101 | 101 | |
| 102 | 102 | |
| 103 | Note that when both FD1089A and FD1089B versions of a game exist, they use the | |
| 104 | same key. | |
| 103 | Note that when both FD1089A and FD1089B versions of a game exist, they use the | |
| 104 | same key. | |
| 105 | 105 | |
| 106 | ||
| 106 | Known games that use this CPU: | |
| 107 | 107 | |
| 108 | CPU # Type Status Game Seed Unencrypted data range | |
| 109 | --------- ------- --- -------------------- ------ ----------------------------------- | |
| 110 | 317-0013A FD1089B [1] Enduro Racer 400001 030000-04ffff + 100000-1fffff | |
| 111 | 317-0018 FD1089A [1] Action Fighter 400003 400000-4fffff + 840000-8dffff + c00000-c4ffff + ff0000-ffffff | |
| 112 | 317-0021 FD1089A [2] Alex Kidd 40000b ? | |
| 113 | 317-0022 FD1089A [1] Dunk Shot 40000d 030000-ffffff | |
| 114 | 317-0024 FD1089B [2] Time Scanner 40000f ? | |
| 115 | 317-0027 FD1089B [2] SDI 400011 ? | |
| 116 | 317-0028 FD1089A [2] Defense 400011 ? | |
| 117 | 317-0033 FD1089A [1] Alien Syndrome 400013 030000-ffffff | |
| 118 | 317-0037 FD1089B [2] Alien Syndrome 400013 030000-ffffff | |
| 119 | 317-0034 FD1089B [1] Super Hang-On 400015 030000-06ffff + 100000-2fffff + ff0000-ffffff | |
| 120 | 317-0167 FD1089A [2] Aurail 400030 010000-ffffff | |
| 121 | 317-0168 FD1089B [1] Aurail 400030 010000-ffffff | |
| 122 | 317-???? FD1089A [2] Wonder Boy III 400043 ? | |
| 123 | 317-5021 FD1089B [2] Sukeban Jansi Ryuko 40004b ? | |
| 108 | CPU # Type Status Game Seed Unencrypted data range | |
| 109 | --------- ------- --- -------------------- ------ ----------------------------------- | |
| 110 | 317-0013A FD1089B [1] Enduro Racer 400001 030000-04ffff + 100000-1fffff | |
| 111 | 317-0018 FD1089A [1] Action Fighter 400003 400000-4fffff + 840000-8dffff + c00000-c4ffff + ff0000-ffffff | |
| 112 | 317-0021 FD1089A [2] Alex Kidd 40000b ? | |
| 113 | 317-0022 FD1089A [1] Dunk Shot 40000d 030000-ffffff | |
| 114 | 317-0024 FD1089B [2] Time Scanner 40000f ? | |
| 115 | 317-0027 FD1089B [2] SDI 400011 ? | |
| 116 | 317-0028 FD1089A [2] Defense 400011 ? | |
| 117 | 317-0033 FD1089A [1] Alien Syndrome 400013 030000-ffffff | |
| 118 | 317-0037 FD1089B [2] Alien Syndrome 400013 030000-ffffff | |
| 119 | 317-0034 FD1089B [1] Super Hang-On 400015 030000-06ffff + 100000-2fffff + ff0000-ffffff | |
| 120 | 317-0167 FD1089A [2] Aurail 400030 010000-ffffff | |
| 121 | 317-0168 FD1089B [1] Aurail 400030 010000-ffffff | |
| 122 | 317-???? FD1089A [2] Wonder Boy III 400043 ? | |
| 123 | 317-5021 FD1089B [2] Sukeban Jansi Ryuko 40004b ? | |
| 124 | 124 | |
| 125 | [1] Complete | |
| 126 | [2] Partial | |
| 125 | [1] Complete | |
| 126 | [2] Partial | |
| 127 | 127 | |
| 128 | 128 | ***************************************************************************/ |
| 129 | 129 | |
| r15975 | r15976 | |
| 133 | 133 | |
| 134 | 134 | |
| 135 | 135 | //************************************************************************** |
| 136 | // | |
| 136 | // CONSTANTS | |
| 137 | 137 | //************************************************************************** |
| 138 | 138 | |
| 139 | 139 | // device type definition |
| r15975 | r15976 | |
| 206 | 206 | |
| 207 | 207 | |
| 208 | 208 | //************************************************************************** |
| 209 | // | |
| 209 | // CORE IMPLEMENTATION | |
| 210 | 210 | //************************************************************************** |
| 211 | 211 | |
| 212 | 212 | //------------------------------------------------- |
| r15975 | r15976 | |
| 245 | 245 | UINT32 romsize = region()->bytes(); |
| 246 | 246 | m_plaintext.resize(romsize/2); |
| 247 | 247 | m_decrypted_opcodes.resize(romsize/2); |
| 248 | ||
| 248 | ||
| 249 | 249 | // copy the plaintext |
| 250 | 250 | memcpy(m_plaintext, rombase, romsize); |
| 251 | ||
| 251 | ||
| 252 | 252 | // decrypt it, overwriting original data with the decrypted data |
| 253 | 253 | decrypt(0x000000, romsize, m_plaintext, m_decrypted_opcodes, rombase); |
| 254 | 254 | |
| r15975 | r15976 | |
| 261 | 261 | |
| 262 | 262 | |
| 263 | 263 | //************************************************************************** |
| 264 | // | |
| 264 | // INTERNAL HELPERS | |
| 265 | 265 | //************************************************************************** |
| 266 | 266 | |
| 267 | 267 | //------------------------------------------------- |
| 268 | 268 | // rearrange_key - shuffle bits in the table |
| 269 | // based on whether this is an opcode or a data | |
| 270 | // decode | |
| 269 | // based on whether this is an opcode or a data | |
| 270 | // decode | |
| 271 | 271 | //------------------------------------------------- |
| 272 | 272 | |
| 273 | 273 | UINT8 fd1089_base_device::rearrange_key(UINT8 table, bool opcode) |
| r15975 | r15976 | |
| 324 | 324 | |
| 325 | 325 | //------------------------------------------------- |
| 326 | 326 | // decode_fd1089a - decode an 8-bit value |
| 327 | // | |
| 327 | // according to FD1089A rules | |
| 328 | 328 | //------------------------------------------------- |
| 329 | 329 | |
| 330 | 330 | UINT8 fd1089_base_device::decode_fd1089a(UINT8 val, UINT8 key, bool opcode) |
| r15975 | r15976 | |
| 384 | 384 | |
| 385 | 385 | //------------------------------------------------- |
| 386 | 386 | // decode_fd1089b - decode an 8-bit value |
| 387 | // | |
| 387 | // according to FD1089B rules | |
| 388 | 388 | //------------------------------------------------- |
| 389 | 389 | |
| 390 | 390 | UINT8 fd1089_base_device::decode_fd1089b(UINT8 val, UINT8 key, bool opcode) |
| r15975 | r15976 | |
| 442 | 442 | |
| 443 | 443 | //------------------------------------------------- |
| 444 | 444 | // decrypt_one - decrypt a single 16-bit value |
| 445 | // interpreted as being read at the given address | |
| 446 | // as either an opcode or as data | |
| 445 | // interpreted as being read at the given address | |
| 446 | // as either an opcode or as data | |
| 447 | 447 | //------------------------------------------------- |
| 448 | 448 | |
| 449 | 449 | UINT16 fd1089_base_device::decrypt_one(offs_t addr, UINT16 val, const UINT8 *key, bool opcode, char cputype) |
| r15975 | r15976 | |
| 475 | 475 | |
| 476 | 476 | //------------------------------------------------- |
| 477 | 477 | // decrypt - decrypt a buffers' worth of opcodes |
| 478 | // | |
| 478 | // and data | |
| 479 | 479 | //------------------------------------------------- |
| 480 | 480 | |
| 481 | 481 | void fd1089_base_device::decrypt(offs_t baseaddr, UINT32 size, const UINT16 *srcptr, UINT16 *opcodesptr, UINT16 *dataptr) |
| r15975 | r15976 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | //************************************************************************** |
| 20 | // | |
| 20 | // CONSTANTS | |
| 21 | 21 | //************************************************************************** |
| 22 | 22 | |
| 23 | 23 | // device type definition |
| r15975 | r15976 | |
| 27 | 27 | |
| 28 | 28 | |
| 29 | 29 | //************************************************************************** |
| 30 | // | |
| 30 | // TYPE DEFINITIONS | |
| 31 | 31 | //************************************************************************** |
| 32 | 32 | |
| 33 | 33 | // ======================> fd1089_base_device |
| r15975 | r15976 | |
| 38 | 38 | public: |
| 39 | 39 | // construction/destruction |
| 40 | 40 | fd1089_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, char cputype); |
| 41 | ||
| 41 | ||
| 42 | 42 | // explicit decryption helpers |
| 43 | 43 | void decrypt(offs_t baseaddr, UINT32 size, offs_t regionoffs, UINT16 *opcodesptr, UINT16 *dataptr) { decrypt(baseaddr, size, &m_plaintext[regionoffs/2], opcodesptr, dataptr); } |
| 44 | 44 | |
| r15975 | r15976 | |
| 52 | 52 | UINT8 decode_fd1089b(UINT8 val, UINT8 key, bool opcode); |
| 53 | 53 | UINT16 decrypt_one(offs_t addr, UINT16 val, const UINT8 *key, bool opcode, char cputype); |
| 54 | 54 | void decrypt(offs_t baseaddr, UINT32 size, const UINT16 *srcptr, UINT16 *opcodesptr, UINT16 *dataptr); |
| 55 | ||
| 55 | ||
| 56 | 56 | // internal state |
| 57 | 57 | const UINT8 * m_key; |
| 58 | 58 | char m_cputype; |
| 59 | dynamic_array<UINT16> m_plaintext; | |
| 60 | dynamic_array<UINT16> m_decrypted_opcodes; | |
| 61 | ||
| 59 | dynamic_array<UINT16> m_plaintext; | |
| 60 | dynamic_array<UINT16> m_decrypted_opcodes; | |
| 61 | ||
| 62 | 62 | // internal types |
| 63 | 63 | struct decrypt_parameters |
| 64 | 64 | { |
| r15975 | r15976 | |
| 81 | 81 | public: |
| 82 | 82 | // construction/destruction |
| 83 | 83 | fd1089a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 84 | : fd1089_base_device(mconfig, FD1089A, tag, owner, clock, 'A') { } | |
| 84 | : fd1089_base_device(mconfig, FD1089A, tag, owner, clock, 'A') { } | |
| 85 | 85 | }; |
| 86 | 86 | |
| 87 | 87 | |
| r15975 | r15976 | |
| 93 | 93 | public: |
| 94 | 94 | // construction/destruction |
| 95 | 95 | fd1089b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 96 | : fd1089_base_device(mconfig, FD1089B, tag, owner, clock, 'B') { } | |
| 96 | : fd1089_base_device(mconfig, FD1089B, tag, owner, clock, 'B') { } | |
| 97 | 97 | }; |
| 98 | 98 | |
| 99 | 99 |
| r15975 | r15976 | |
|---|---|---|
| 78 | 78 | */ |
| 79 | 79 | else |
| 80 | 80 | { |
| 81 | fatalerror("unexpected value in asciihex_to_dec"); | |
| 81 | fatalerror("unexpected value in asciihex_to_dec\n"); | |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 |
| r15975 | r15976 | |
|---|---|---|
| 3 | 3 | It is thought that this is done by the 'CALC1' 'TOYBOX' and 'CALC3' protection chips found on the various boards |
| 4 | 4 | however we have 3 implementations, and they don't quite pair up with the chips at the moment, this might be |
| 5 | 5 | because our implementations are wrong / incomplete, or in some cases the newer chips are backwards compatible. |
| 6 | ||
| 7 | galpanica - CALC1 - type 0 | |
| 8 | sandscrp - CALC1 - type 0 ( only uses Random Number? ) | |
| 9 | bonkadv - TOYBOX - type 0 ( only uses Random Number, XY Overlap Collision bit and register '0x02' ) | |
| 10 | gtmr - TOYBOX - type 1 ( only uses Random Number ) | |
| 11 | gtmr2 - TOYBOX - type 1 ( only uses Random Number ) | |
| 12 | bloodwar - TOYBOX - type 1 | |
| 6 | ||
| 7 | galpanica - CALC1 - type 0 | |
| 8 | sandscrp - CALC1 - type 0 ( only uses Random Number? ) | |
| 9 | bonkadv - TOYBOX - type 0 ( only uses Random Number, XY Overlap Collision bit and register '0x02' ) | |
| 10 | gtmr - TOYBOX - type 1 ( only uses Random Number ) | |
| 11 | gtmr2 - TOYBOX - type 1 ( only uses Random Number ) | |
| 12 | bloodwar - TOYBOX - type 1 | |
| 13 | 13 | shogwarr - CALC3 - type 1 |
| 14 | 14 | brapboys - CALC3 - type 2 |
| 15 | 15 | |
| r15975 | r15976 | |
| 118 | 118 | case 0: return kaneko_hit_type0_r(space,offset,mem_mask); |
| 119 | 119 | case 1: return kaneko_hit_type1_r(space,offset,mem_mask); |
| 120 | 120 | case 2: return kaneko_hit_type2_r(space,offset,mem_mask); |
| 121 | ||
| 121 | ||
| 122 | 122 | default: |
| 123 | 123 | fatalerror("kaneko_hit_r called, but m_hittype not set\n"); |
| 124 | 124 | return 0; |
| r15975 | r15976 | |
| 132 | 132 | case 0: kaneko_hit_type0_w(space,offset,data, mem_mask); break; |
| 133 | 133 | case 1: kaneko_hit_type1_w(space,offset,data, mem_mask); break; |
| 134 | 134 | case 2: kaneko_hit_type2_w(space,offset,data, mem_mask); break; |
| 135 | ||
| 135 | ||
| 136 | 136 | default: |
| 137 | 137 | fatalerror("kaneko_hit_r called, but m_hittype not set\n"); |
| 138 | 138 | break; |
| r15975 | r15976 | |
|---|---|---|
| 37 | 37 | { |
| 38 | 38 | public: |
| 39 | 39 | kaneko_hit_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 40 | ||
| 40 | ||
| 41 | 41 | static void set_type(device_t &device, int hittype); |
| 42 | 42 | |
| 43 | 43 | int m_hittype; |
| r15975 | r15976 | |
|---|---|---|
| 267 | 267 | else if (type == NAMCO_54XX) |
| 268 | 268 | state->m_write[devnum] = namco_54xx_write; |
| 269 | 269 | else |
| 270 | fatalerror("Unknown device type %s connected to Namco 06xx", state->m_device[devnum]->name()); | |
| 270 | fatalerror("Unknown device type %s connected to Namco 06xx\n", state->m_device[devnum]->name()); | |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | /* allocate a timer */ |
| r15975 | r15976 | |
|---|---|---|
| 474 | 474 | break; |
| 475 | 475 | |
| 476 | 476 | default: |
| 477 | fatalerror("play_xa: unhandled xa mode %08x",hdr[2]); | |
| 477 | fatalerror("play_xa: unhandled xa mode %08x\n",hdr[2]); | |
| 478 | 478 | return; |
| 479 | 479 | } |
| 480 | 480 |
| r15975 | r15976 | |
|---|---|---|
| 941 | 941 | { |
| 942 | 942 | UINT32* desty = &bitmap.pix32(y, 0); |
| 943 | 943 | UINT16* srcy; |
| 944 | ||
| 944 | ||
| 945 | 945 | if (!vdp->m_use_alt_timing) |
| 946 | 946 | { |
| 947 | 947 | srcy = &vdp->m_render_bitmap->pix(y, 0); |
| r15975 | r15976 | |
|---|---|---|
| 16 | 16 | model1_state *state = space->machine().driver_data<model1_state>(); |
| 17 | 17 | UINT32 v; |
| 18 | 18 | if(state->m_fifoout_wpos == state->m_fifoout_rpos) { |
| 19 | fatalerror("TGP FIFOOUT underflow (%x)", cpu_get_pc(&space->device())); | |
| 19 | fatalerror("TGP FIFOOUT underflow (%x)\n", cpu_get_pc(&space->device())); | |
| 20 | 20 | } |
| 21 | 21 | v = state->m_fifoout_data[state->m_fifoout_rpos++]; |
| 22 | 22 | if(state->m_fifoout_rpos == FIFO_SIZE) |
| r15975 | r15976 | |
| 2077 | 2077 | model1_state *state = space->machine().driver_data<model1_state>(); |
| 2078 | 2078 | if (state->m_copro_fifoin_num == FIFO_SIZE) |
| 2079 | 2079 | { |
| 2080 | fatalerror("Copro FIFOIN overflow (at %08X)", cpu_get_pc(&space->device())); | |
| 2080 | fatalerror("Copro FIFOIN overflow (at %08X)\n", cpu_get_pc(&space->device())); | |
| 2081 | 2081 | return; |
| 2082 | 2082 | } |
| 2083 | 2083 | |
| r15975 | r15976 | |
| 2123 | 2123 | model1_state *state = device->machine().driver_data<model1_state>(); |
| 2124 | 2124 | if (state->m_copro_fifoout_num == FIFO_SIZE) |
| 2125 | 2125 | { |
| 2126 | fatalerror("Copro FIFOOUT overflow (at %08X)", cpu_get_pc(device)); | |
| 2126 | fatalerror("Copro FIFOOUT overflow (at %08X)\n", cpu_get_pc(device)); | |
| 2127 | 2127 | return; |
| 2128 | 2128 | } |
| 2129 | 2129 |
| r15975 | r15976 | |
|---|---|---|
| 2603 | 2603 | else |
| 2604 | 2604 | m_render_line_raw[x] = 0x000; |
| 2605 | 2605 | |
| 2606 | ||
| 2606 | ||
| 2607 | 2607 | if (drawn==0) |
| 2608 | 2608 | { |
| 2609 | 2609 | if (dat&0x10000) |
| r15975 | r15976 | |
|---|---|---|
| 155 | 155 | { |
| 156 | 156 | public: |
| 157 | 157 | sega_genesis_vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 158 | ||
| 158 | ||
| 159 | 159 | static void set_genesis_vdp_sndirqline_callback(device_t &device, genesis_vdp_sndirqline_callback_func callback); |
| 160 | 160 | static void set_genesis_vdp_lv6irqline_callback(device_t &device, genesis_vdp_lv6irqline_callback_func callback); |
| 161 | 161 | static void set_genesis_vdp_lv4irqline_callback(device_t &device, genesis_vdp_lv4irqline_callback_func callback); |
| r15975 | r15976 | |
| 163 | 163 | static void set_genesis_vdp_palwrite_base(device_t &device, int palwrite_base); |
| 164 | 164 | |
| 165 | 165 | int m_use_alt_timing; // use MAME scanline timer instead, render only one scanline to a single line buffer, to be rendered by a partial update call.. experimental |
| 166 | ||
| 166 | ||
| 167 | 167 | int m_palwrite_base; // if we want to write to the actual MAME palette.. |
| 168 | 168 | |
| 169 | 169 | DECLARE_READ16_MEMBER( megadriv_vdp_r ); |
| r15975 | r15976 | |
| 228 | 228 | UINT16* m_cram; |
| 229 | 229 | UINT16* m_vsram; |
| 230 | 230 | /* The VDP keeps a 0x400 byte on-chip cache of the Sprite Attribute Table |
| 231 | ||
| 231 | to speed up processing, Castlevania Bloodlines abuses this on the upside down level */ | |
| 232 | 232 | UINT16* m_internal_sprite_attribute_table; |
| 233 | 233 | |
| 234 | 234 | // these are used internally by the VDP to schedule when after the start of a scanline |
| r15975 | r15976 | |
|---|---|---|
| 12 | 12 | /* |
| 13 | 13 | MCU Tasks: |
| 14 | 14 | |
| 15 | ||
| 15 | - Read Dipswitch | |
| 16 | 16 | - Read / Write the EEPROM |
| 17 | 17 | - Supply code / data snippets to the 68000 by decrypting them from ROM |
| 18 | 18 | |
| 19 | ||
| 20 | may also be responsible for the hit detection (kaneko_hit.c) | |
| 21 | ||
| 19 | ||
| 20 | may also be responsible for the hit detection (kaneko_hit.c) | |
| 21 | ||
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | 24 | #include "emu.h" |
| r15975 | r15976 | |
|---|---|---|
| 10 | 10 | |
| 11 | 11 | **************************************************************************** |
| 12 | 12 | |
| 13 | The FD1094 is a custom CPU based on the 68000, which runs encrypted code. | |
| 14 | The decryption key is stored in 8KB of battery-backed RAM; when the battery | |
| 15 | dies, the CPU can no longer decrypt the program code and the game stops | |
| 16 | working (though the CPU itself still works - it just uses a wrong decryption | |
| 17 | key). | |
| 13 | The FD1094 is a custom CPU based on the 68000, which runs encrypted code. | |
| 14 | The decryption key is stored in 8KB of battery-backed RAM; when the battery | |
| 15 | dies, the CPU can no longer decrypt the program code and the game stops | |
| 16 | working (though the CPU itself still works - it just uses a wrong decryption | |
| 17 | key). | |
| 18 | 18 | |
| 19 | Being a 68000, the encryption works on 16-bit words. Only words fetched from | |
| 20 | program space are decrypted; words fetched from data space are not affected. | |
| 19 | Being a 68000, the encryption works on 16-bit words. Only words fetched from | |
| 20 | program space are decrypted; words fetched from data space are not affected. | |
| 21 | 21 | |
| 22 | The decryption can logically be split in two parts. The first part consists | |
| 23 | of a series of conditional XORs and bitswaps, controlled by the decryption | |
| 24 | key, which will be described in the next paragraph. The second part does a | |
| 25 | couple more XORs which don't depend on the key, followed by the replacement | |
| 26 | of several values with FFFF. This last step is done to prevent usage of any | |
| 27 | PC-relative opcode, which would easily allow an intruder to dump decrypted | |
| 28 | values from program space. The FFFF replacement may affect either ~300 values | |
| 29 | or ~5000, depending on the decryption key. | |
| 22 | The decryption can logically be split in two parts. The first part consists | |
| 23 | of a series of conditional XORs and bitswaps, controlled by the decryption | |
| 24 | key, which will be described in the next paragraph. The second part does a | |
| 25 | couple more XORs which don't depend on the key, followed by the replacement | |
| 26 | of several values with FFFF. This last step is done to prevent usage of any | |
| 27 | PC-relative opcode, which would easily allow an intruder to dump decrypted | |
| 28 | values from program space. The FFFF replacement may affect either ~300 values | |
| 29 | or ~5000, depending on the decryption key. | |
| 30 | 30 | |
| 31 | The main part of the decryption can itself be subdivided in four consecutive | |
| 32 | steps. The first one is executed only if bit 15 of the encrypted value is 1; | |
| 33 | the second one only if bit 14 of the _current_ value is 1; the third one only | |
| 34 | if bit 13 of the current value is 1; the fourth one is always executed. The | |
| 35 | first three steps consist of a few conditional XORs and a final conditional | |
| 36 | bitswap; the fourth one consists of a fixed XOR and a few conditional | |
| 37 | bitswaps. There is, however, a special case: if bits 15, 14 and 13 of the | |
| 38 | encrypted value are all 0, none of the above steps are executed, replaced by | |
| 39 | a single fixed bitswap. | |
| 31 | The main part of the decryption can itself be subdivided in four consecutive | |
| 32 | steps. The first one is executed only if bit 15 of the encrypted value is 1; | |
| 33 | the second one only if bit 14 of the _current_ value is 1; the third one only | |
| 34 | if bit 13 of the current value is 1; the fourth one is always executed. The | |
| 35 | first three steps consist of a few conditional XORs and a final conditional | |
| 36 | bitswap; the fourth one consists of a fixed XOR and a few conditional | |
| 37 | bitswaps. There is, however, a special case: if bits 15, 14 and 13 of the | |
| 38 | encrypted value are all 0, none of the above steps are executed, replaced by | |
| 39 | a single fixed bitswap. | |
| 40 | 40 | |
| 41 | In the end, the decryption of a value at a given address is controlled by 32 | |
| 42 | boolean variables; 8 of them change at every address (repeating after 0x2000 | |
| 43 | words), and constitute the main key which is stored in the battery-backed | |
| 44 | RAM; the other 24 don't change with the address, and depend solely on bytes | |
| 45 | 1, 2, and 3 of the battery-backed RAM, modified by the "state" which the CPU | |
| 46 | is in. | |
| 41 | In the end, the decryption of a value at a given address is controlled by 32 | |
| 42 | boolean variables; 8 of them change at every address (repeating after 0x2000 | |
| 43 | words), and constitute the main key which is stored in the battery-backed | |
| 44 | RAM; the other 24 don't change with the address, and depend solely on bytes | |
| 45 | 1, 2, and 3 of the battery-backed RAM, modified by the "state" which the CPU | |
| 46 | is in. | |
| 47 | 47 | |
| 48 | The CPU can be in one of 256 possible states. The 8 bits of the state modify | |
| 49 | the 24 bits of the global key in a fixed way, which isn't affected by the | |
| 50 | battery-backed RAM. | |
| 51 | On reset, the CPU goes in state 0x00. The state can then be modified by the | |
| 52 | program, executing the instruction | |
| 53 | CMPI.L #$00xxFFFF, D0 | |
| 54 | where xx is the state. | |
| 55 | When an interrupt happens, the CPU enters "irq mode", forcing a specific | |
| 56 | state, which is stored in byte 0 of the battery-backed RAM. Irq mode can also | |
| 57 | be selected by the program with the instruction | |
| 58 | CMPI.L #$0200FFFF, D0 | |
| 59 | When RTE is executed, the CPU leaves irq mode, restoring the previous state. | |
| 60 | This can also be done by the program with the instruction | |
| 61 | CMPI.L #$0300FFFF, D0 | |
| 48 | The CPU can be in one of 256 possible states. The 8 bits of the state modify | |
| 49 | the 24 bits of the global key in a fixed way, which isn't affected by the | |
| 50 | battery-backed RAM. | |
| 51 | On reset, the CPU goes in state 0x00. The state can then be modified by the | |
| 52 | program, executing the instruction | |
| 53 | CMPI.L #$00xxFFFF, D0 | |
| 54 | where xx is the state. | |
| 55 | When an interrupt happens, the CPU enters "irq mode", forcing a specific | |
| 56 | state, which is stored in byte 0 of the battery-backed RAM. Irq mode can also | |
| 57 | be selected by the program with the instruction | |
| 58 | CMPI.L #$0200FFFF, D0 | |
| 59 | When RTE is executed, the CPU leaves irq mode, restoring the previous state. | |
| 60 | This can also be done by the program with the instruction | |
| 61 | CMPI.L #$0300FFFF, D0 | |
| 62 | 62 | |
| 63 | Since bytes 0-3 of the battery-backed RAM are used to store the irq state and | |
| 64 | the global key, they have a double use: this one, and the normal 8-bit key | |
| 65 | that changes at every address. To prevent that double use, the CPU fetches | |
| 66 | the 8-bit key from a different place when decrypting words 0-3, but this only | |
| 67 | happens after wrapping around at least once; when decrypting the first four | |
| 68 | words of memory, which correspond the the initial SP and initial PC vectors, | |
| 69 | the 8-bit key is taken from bytes 0-3 of RAM. Instead, when fetching the | |
| 70 | vectors, the global key is handled differently, to prevent double use of | |
| 71 | those bytes. But this special handling of the global key doesn't apply to | |
| 72 | normal operations: reading words 1-3 from program space results in bytes 1-3 | |
| 73 | of RAM being used both for the 8-bit key and for the 24-bit global key. | |
| 63 | Since bytes 0-3 of the battery-backed RAM are used to store the irq state and | |
| 64 | the global key, they have a double use: this one, and the normal 8-bit key | |
| 65 | that changes at every address. To prevent that double use, the CPU fetches | |
| 66 | the 8-bit key from a different place when decrypting words 0-3, but this only | |
| 67 | happens after wrapping around at least once; when decrypting the first four | |
| 68 | words of memory, which correspond the the initial SP and initial PC vectors, | |
| 69 | the 8-bit key is taken from bytes 0-3 of RAM. Instead, when fetching the | |
| 70 | vectors, the global key is handled differently, to prevent double use of | |
| 71 | those bytes. But this special handling of the global key doesn't apply to | |
| 72 | normal operations: reading words 1-3 from program space results in bytes 1-3 | |
| 73 | of RAM being used both for the 8-bit key and for the 24-bit global key. | |
| 74 | 74 | |
| 75 | 75 | |
| 76 | 76 | |
| 77 | ||
| 77 | There is still uncertainty about the assignment of two global key bits. | |
| 78 | 78 | |
| 79 | key[1] | |
| 80 | ------ | |
| 81 | key_0b invert; \ bits 7,5 always 1 for now (but 0 in a bad CPU) | |
| 82 | global_xor0; / | |
| 83 | key_5b invert; bit 6 | |
| 84 | key_2b invert; bit 4 | |
| 85 | key_1b invert; bit 3 always 1 for now (but 0 in a bad CPU) | |
| 86 | global_xor1; bit 2 | |
| 87 | key_0c invert; bit 1 | |
| 88 | global_swap2; bit 0 | |
| 79 | key[1] | |
| 80 | ------ | |
| 81 | key_0b invert; \ bits 7,5 always 1 for now (but 0 in a bad CPU) | |
| 82 | global_xor0; / | |
| 83 | key_5b invert; bit 6 | |
| 84 | key_2b invert; bit 4 | |
| 85 | key_1b invert; bit 3 always 1 for now (but 0 in a bad CPU) | |
| 86 | global_xor1; bit 2 | |
| 87 | key_0c invert; bit 1 | |
| 88 | global_swap2; bit 0 | |
| 89 | 89 | |
| 90 | key[2] | |
| 91 | ------ | |
| 92 | key_1a invert; bit 7 always 1 for now (but 0 in a bad CPU) | |
| 93 | key_6b invert; bit 6 always 1 for now (but 0 in a bad CPU) | |
| 94 | global_swap0a; bit 5 | |
| 95 | key_7a invert; bit 4 | |
| 96 | key_4a invert; bit 3 | |
| 97 | global_swap0b; bit 2 | |
| 98 | key_6a invert; bit 1 | |
| 99 | key_3a invert; bit 0 | |
| 90 | key[2] | |
| 91 | ------ | |
| 92 | key_1a invert; bit 7 always 1 for now (but 0 in a bad CPU) | |
| 93 | key_6b invert; bit 6 always 1 for now (but 0 in a bad CPU) | |
| 94 | global_swap0a; bit 5 | |
| 95 | key_7a invert; bit 4 | |
| 96 | key_4a invert; bit 3 | |
| 97 | global_swap0b; bit 2 | |
| 98 | key_6a invert; bit 1 | |
| 99 | key_3a invert; bit 0 | |
| 100 | 100 | |
| 101 | key[3] | |
| 102 | ------ | |
| 103 | key_2a invert; bit 7 always 1 for now (but 0 in a bad CPU) | |
| 104 | global_swap3; bit 6 always 1 for now (but 0 in a bad CPU) | |
| 105 | key_5a_invert; bit 5 | |
| 106 | global_swap1; bit 4 | |
| 107 | key_3b invert; bit 3 | |
| 108 | global_swap4; bit 2 | |
| 109 | key_0a invert; bit 1 | |
| 110 | key_4b invert; bit 0 | |
| 101 | key[3] | |
| 102 | ------ | |
| 103 | key_2a invert; bit 7 always 1 for now (but 0 in a bad CPU) | |
| 104 | global_swap3; bit 6 always 1 for now (but 0 in a bad CPU) | |
| 105 | key_5a_invert; bit 5 | |
| 106 | global_swap1; bit 4 | |
| 107 | key_3b invert; bit 3 | |
| 108 | global_swap4; bit 2 | |
| 109 | key_0a invert; bit 1 | |
| 110 | key_4b invert; bit 0 | |
| 111 | 111 | |
| 112 | 112 | |
| 113 | Analysis of the data contained in the 8k key data indicates some regularities. | |
| 114 | To begin with, in all the keys seen so far, bit 7 ($80) in key values at | |
| 115 | addresses $0004-$0FFF is always set to 1. Similarly, bit 6 ($40) in key values | |
| 116 | at addresses $1000-$1FFF is always set to 1. | |
| 113 | Analysis of the data contained in the 8k key data indicates some regularities. | |
| 114 | To begin with, in all the keys seen so far, bit 7 ($80) in key values at | |
| 115 | addresses $0004-$0FFF is always set to 1. Similarly, bit 6 ($40) in key values | |
| 116 | at addresses $1000-$1FFF is always set to 1. | |
| 117 | 117 | |
| 118 | Even more interesting, however, is that analyzing the low 6 bits of the key | |
| 119 | data reveals that a simple linear congruential generator has been used | |
| 120 | consistently to generate the key bits. The LCG is of the form: | |
| 118 | Even more interesting, however, is that analyzing the low 6 bits of the key | |
| 119 | data reveals that a simple linear congruential generator has been used | |
| 120 | consistently to generate the key bits. The LCG is of the form: | |
| 121 | 121 | |
| 122 | temp = A * val; | |
| 123 | val' = temp + (temp << 16); | |
| 122 | temp = A * val; | |
| 123 | val' = temp + (temp << 16); | |
| 124 | 124 | |
| 125 | and it appears to be calculated to at least 22 bits. In all cases seen so far, | |
| 126 | the value of 'A' is fixed at $29. To generate the low 6 bits of the key, the | |
| 127 | result of the LCG is shifted right 16 bits and inverted. | |
| 125 | and it appears to be calculated to at least 22 bits. In all cases seen so far, | |
| 126 | the value of 'A' is fixed at $29. To generate the low 6 bits of the key, the | |
| 127 | result of the LCG is shifted right 16 bits and inverted. | |
| 128 | 128 | |
| 129 | The following pseudo-code will generate 7 of the 8 bits of the key data | |
| 130 | successfully for all known keys, given the values of the 'shift' and 'B' | |
| 131 | parameters, as well as an initial 'seed' for the generator: | |
| 129 | The following pseudo-code will generate 7 of the 8 bits of the key data | |
| 130 | successfully for all known keys, given the values of the 'shift' and 'B' | |
| 131 | parameters, as well as an initial 'seed' for the generator: | |
| 132 | 132 | |
| 133 | void genkey(UINT32 seed, UINT8 *output) | |
| 134 | { | |
| 135 | int bytenum; | |
| 133 | void genkey(UINT32 seed, UINT8 *output) | |
| 134 | { | |
| 135 | int bytenum; | |
| 136 | 136 | |
| 137 | for (bytenum = 4; bytenum < 8192; bytenum++) | |
| 138 | { | |
| 139 | UINT8 byteval; | |
| 137 | for (bytenum = 4; bytenum < 8192; bytenum++) | |
| 138 | { | |
| 139 | UINT8 byteval; | |
| 140 | 140 | |
| 141 | seed = seed * 0x29; | |
| 142 | seed += seed << 16; | |
| 141 | seed = seed * 0x29; | |
| 142 | seed += seed << 16; | |
| 143 | 143 | |
| 144 | byteval = (~seed >> 16) & 0x3f; | |
| 145 | byteval |= (bytenum < 0x1000) ? 0x80 : 0x40; | |
| 144 | byteval = (~seed >> 16) & 0x3f; | |
| 145 | byteval |= (bytenum < 0x1000) ? 0x80 : 0x40; | |
| 146 | 146 | |
| 147 | output[bytenum] = byteval; | |
| 148 | } | |
| 149 | } | |
| 147 | output[bytenum] = byteval; | |
| 148 | } | |
| 149 | } | |
| 150 | 150 | |
| 151 | This only leaves one bit per key value (and the global key) left to determine. | |
| 152 | It is worth pointing out that this remaining bit is the same bit that controls | |
| 153 | how many opcodes to blank to $FFFF: 0 means a smaller subset (~300), while 1 | |
| 154 | indicates a much larger subset (~5000). Looking at the correlations between | |
| 155 | where the key has this bit set to 0, and the presence of opcodes that would | |
| 156 | be blanked as a result, seems to imply that the key is generated based on the | |
| 157 | plaintext. That is, this final bit is set to 1 by default (hence blanking | |
| 158 | more aggressively), and cleared to 0 if any plaintext words affected by the | |
| 159 | byte in question would be incorrectly blanked. | |
| 151 | This only leaves one bit per key value (and the global key) left to determine. | |
| 152 | It is worth pointing out that this remaining bit is the same bit that controls | |
| 153 | how many opcodes to blank to $FFFF: 0 means a smaller subset (~300), while 1 | |
| 154 | indicates a much larger subset (~5000). Looking at the correlations between | |
| 155 | where the key has this bit set to 0, and the presence of opcodes that would | |
| 156 | be blanked as a result, seems to imply that the key is generated based on the | |
| 157 | plaintext. That is, this final bit is set to 1 by default (hence blanking | |
| 158 | more aggressively), and cleared to 0 if any plaintext words affected by the | |
| 159 | byte in question would be incorrectly blanked. | |
| 160 | 160 | |
| 161 | 161 | |
| 162 | When the keys were generated, the LCG seed wasn't input directly. Instead, | |
| 163 | another value was entered, which in most cases was derived from the current | |
| 164 | date/time. The LCG seed is obtained from that value via a multiplication. | |
| 165 | The current date/time was also used in most cases to select the three bytes of | |
| 166 | the global key. Interestingly, the global key must be inverted and read in | |
| 167 | decimal representation to see this, while the seed must be read in hexadecimal | |
| 168 | representation. | |
| 162 | When the keys were generated, the LCG seed wasn't input directly. Instead, | |
| 163 | another value was entered, which in most cases was derived from the current | |
| 164 | date/time. The LCG seed is obtained from that value via a multiplication. | |
| 165 | The current date/time was also used in most cases to select the three bytes of | |
| 166 | the global key. Interestingly, the global key must be inverted and read in | |
| 167 | decimal representation to see this, while the seed must be read in hexadecimal | |
| 168 | representation. | |
| 169 | 169 | |
| 170 | For some reason, bit 3 of the first byte of the global key was always set to 1 | |
| 171 | regardless of the value input into the key generator program, so e.g. the | |
| 172 | input "88 01 23" would become "80 01 23". | |
| 170 | For some reason, bit 3 of the first byte of the global key was always set to 1 | |
| 171 | regardless of the value input into the key generator program, so e.g. the | |
| 172 | input "88 01 23" would become "80 01 23". | |
| 173 | 173 | |
| 174 | The very first byte of internal RAM, which indicates the IRQ state, doesn't | |
| 175 | seem to follow the same procedure. The IRQ state was probably decided at an | |
| 176 | earlier time, not during the final key generation. | |
| 174 | The very first byte of internal RAM, which indicates the IRQ state, doesn't | |
| 175 | seem to follow the same procedure. The IRQ state was probably decided at an | |
| 176 | earlier time, not during the final key generation. | |
| 177 | 177 | |
| 178 | 178 | |
| 179 | summary: | |
| 180 | -------- | |
| 179 | summary: | |
| 180 | -------- | |
| 181 | 181 | |
| 182 | +------------------------------------------------- 317- part # | |
| 183 | | +----------------------------------------- IRQ state (hex) | |
| 184 | | | +----------------------------------- global key (inverted, dec) | |
| 185 | | | | +-------------------------- main key seed (hex) (LCG seed = seed * 0x2F1E21) | |
| 186 | | | | | +----------------- game | |
| 187 | | | | | | +---------- year | |
| 188 | | | | | | | +- inferred key generation date | |
| 189 | | | | | | | | | |
| 190 | -------- -- -------- ------ -------- ---- -------------------------- | |
| 191 | 0041 12 87 06 19 895963 bullet 1987 87/06/19 (atypical) | |
| 192 | 0045 34 97 02 39 384694 suprleag 1987 (atypical) | |
| 193 | 0049 F1 87 10 28 8932F7 shinobi2 1987 87/10/28 (atypical) | |
| 194 | 0050 F1 87 10 28 8932F7 shinobi1 1987 87/10/28 (atypical) | |
| 195 | 0053 00 00 00 00 020000 sonicbom 1987 atypical | |
| 196 | 0056 CD 80 01 23 032ABC thndrbld 1987 88/01/23 (atypical) | |
| 197 | 0059 aceattac 1988 | |
| 198 | 0060 45 80 03 30 343210 aceattaa 1988 88/03/30 (atypical) | |
| 199 | 0065 altbeaj1 1988 | |
| 200 | 0068 20 80 06 10 880610 altbeaj3 1988 88/06/10 | |
| 201 | 0070 59 80 08 06 880806 passshtj 1988 88/08/06 | |
| 202 | 0074 47 80 08 06 880806 passshta 1988 88/08/06 | |
| 203 | 0071 20 80 08 09 880809 passsht 1988 88/08/09 | |
| 204 | 0079 98 80 09 05 880906 exctleag 1988 88/09/05-88/09/06 (atypical) | |
| 205 | 0080 96 80 08 26 880826 passsht 1988 88/08/26 | |
| 206 | 0058-02C FF 80 10 07 881007 sspirtfc 1988 88/10/07 | |
| 207 | 0084 0E 80 10 31 881031 wb31 1988 88/10/31 | |
| 208 | 0085 26 80 11 08 881108 wb32 1988 88/11/08 | |
| 209 | 0087 69 80 11 08 881108 wb34 1988 88/11/08 | |
| 210 | 0089 52 80 11 29 881129 wb33 1988 88/11/29 | |
| 211 | 0058-03B 71 80 11 25 881125 ggroundj 1988 88/11/25 | |
| 212 | 0058-03C 04 80 11 27 881127 gground 1988 88/11/27 | |
| 213 | 0090 AB 80 01 27 247333 wrestwa1 1989 atypical | |
| 214 | 0091 68 80 11 27 881127 tetris1 1988 88/11/27 | |
| 215 | 0092 10 80 11 28 881128 tetris2 1988 88/11/28 | |
| 216 | 0093 25 80 11 29 881129 tetris 1988 88/11/29 | |
| 217 | 0093A 35 02 09 17 900209 tetris3 1988 90/02/09 | |
| 218 | 0096 21 80 11 21 881121 ddux 1988 88/11/21 | |
| 219 | 0102 AB 80 02 03 04588A wrestwa2 1989 atypical | |
| 220 | 0058-04B 27 03 27 14 032714 crkdownj 1989 89/03/27 14:xx | |
| 221 | 0058-04C 19 03 27 05 032705 crkdown 1989 89/03/27 05:xx | |
| 222 | 0058-04D DC 03 27 06 032706 crkdownu 1989 89/03/27 06:xx | |
| 223 | 0110 19 81 03 29 032916 goldnax1 1989 89/03/29 16:xx | |
| 224 | 0115 12 04 05 11 040511 bayroutj 1989 89/04/05 11:xx | |
| 225 | 0116 11 03 30 09 033009 bayroute 1989 89/03/30 09:xx | |
| 226 | 0118 22 81 03 07 030719 toutrun 1989 89/03/07 19:xx | |
| 227 | toutrun2 22 81 03 07 031113 toutrun2 1989 89/03/11 13:xx (atypical) | |
| 228 | 0120 0D 81 03 29 032916 goldnax3 1989 89/03/29 16:xx | |
| 229 | 0121 35 81 03 29 032916 goldnaxj 1989 89/03/29 16:xx | |
| 230 | 0122 03 81 04 04 890404 goldnaxu 1989 89/04/04 | |
| 231 | 0058-05B 92 81 06 09 890609 sgmastj 1989 89/06/09 | |
| 232 | 0058-05C 30 81 06 13 890613 sgmastc 1989 89/06/13 | |
| 233 | 0058-05D sgmast 1989 | |
| 234 | 0124A 80 06 21 11 890621 smgpj 1989 89/06/21 11:xx | |
| 235 | 0125A DE 06 15 16 890615 smgpu 1989 89/06/15 16:xx | |
| 236 | 0126 54 05 28 01 890528 smgp5 1989 89/05/28 01:xx | |
| 237 | 0126A 74 06 16 15 890616 smgp 1989 89/06/16 15:xx | |
| 238 | 0127A 5F 81 07 06 890706 fpoint 1989 89/07/06 | |
| 239 | 0128 55 00 28 20 890828 eswatj 1989 89/08/28 20:xx | |
| 240 | 0129 0A 00 28 20 890828 eswatu 1989 89/08/28 20:xx | |
| 241 | 0130 EC 00 28 19 890828 eswat 1989 89/08/28 19:xx | |
| 242 | 0134 DE 81 11 30 891130 loffirej 1989 89/11/30 | |
| 243 | 0135 98 81 11 31 891131 loffireu 1989 89/11/31 | |
| 244 | 0136 12 81 11 29 891129 loffire 1989 89/11/29 | |
| 245 | 0139 49 03 25 15 891125 bloxeed 1990 89/11/25 15:xx | |
| 246 | 0142 91 01 24 17 900124 mvpj 1989 90/01/24 17:xx | |
| 247 | 0143 20 02 02 18 900202 mvp 1989 90/02/02 18:xx | |
| 248 | 0144 2E 02 23 18 022318 rachero 1989 90/02/23 18:xx | |
| 249 | 0058-06B 88 03 15 09 900315 roughrac 1990 90/03/15 09:xx | |
| 250 | 0146 10 04 26 17 900426 astormj 1990 90/04/26 17:xx | |
| 251 | 0147 2D 04 14 14 900414 astormu 1990 90/04/14 14:xx | |
| 252 | 0148 50 04 26 15 900426 astorm3 1990 90/04/26 15:xx | |
| 253 | 0153 FC 04 10 14 900410 pontoon 1990 90/04/10 14:xx | |
| 254 | 0157 20 07 20 10 900720 mwalkj 1990 90/07/20 10:xx | |
| 255 | 0158 DE 07 15 15 900715 mwalku 1990 90/07/15 15:xx | |
| 256 | 0159 39 07 20 10 900720 mwalk 1990 90/07/20 10:xx | |
| 257 | 0162 8F 01 14 15 900914 gprider1 1990 90/09/14 15:xx | |
| 258 | 0163 99 01 13 15 900913 gprider 1990 90/09/13 15:xx | |
| 259 | 5023 EF 04 18 05 900917 ryukyu 1990 90/09/17 12:18? (atypical) | |
| 260 | 0165 56 82 11 25 901125 lghostu 1990 90/11/25 | |
| 261 | 0166 A2 82 11 24 901124 lghost 1990 90/11/24 | |
| 262 | 0169B 48 06 35 32 901205 abcop 1990 90/12/05 14:35? (atypical) | |
| 263 | 0058-08B 4E 04 17 15 910206 qsww 1991 91/02/06 12:17? (atypical) | |
| 264 | 0175 91 83 03 22 910322 cltchtrj 1991 91/03/22 | |
| 265 | 0176 FC 83 03 14 910314 cltchitr 1991 91/03/14 | |
| 266 | 0179A 73 06 55 17 910318 cottonj 1991 91/03/18 14:55? (atypical) | |
| 267 | 0180 73 03 53 00 910403 cottonu 1991 91/04/03 11:53? (atypical) | |
| 268 | 0181A 73 06 55 17 910318 cotton 1991 91/03/18 14:55? (atypical) | |
| 269 | 0058-09D 91 83 06 26 910618 dcclubfd 1991 91/06/18-91/06/26 (atypical) | |
| 270 | 0182 07 07 12 14 921401 ddcrewj 1991 92/07/12 14:01? (atypical) | |
| 271 | 0184 07 07 12 16 921622 ddcrew2 1991 92/07/12 16:22? (atypical) | |
| 272 | 0186 5F 83 07 01 912030 ddcrewu 1991 92/07/01 20:30? (atypical) | |
| 273 | 0190 07 07 17 16 921716 ddcrew 1991 92/07/17 17:16? (atypical) | |
| 274 | ddcrew1 91 84 07 42 910744 ddcrew1 1991 92/07/xx 07:44? (atypical) | |
| 275 | 0196 4A 20 12 22 920623 desertbr 1992 92/06/23 20:12? (atypical) | |
| 276 | 0197A 3F 84 06 19 920612 wwallyja 1992 92/06/12-92/06/19 (atypical) | |
| 277 | 0197B 3F 84 06 19 920612 wwallyj 1992 92/06/12-92/06/19 (atypical) | |
| 182 | +------------------------------------------------- 317- part # | |
| 183 | | +----------------------------------------- IRQ state (hex) | |
| 184 | | | +----------------------------------- global key (inverted, dec) | |
| 185 | | | | +-------------------------- main key seed (hex) (LCG seed = seed * 0x2F1E21) | |
| 186 | | | | | +----------------- game | |
| 187 | | | | | | +---------- year | |
| 188 | | | | | | | +- inferred key generation date | |
| 189 | | | | | | | | | |
| 190 | -------- -- -------- ------ -------- ---- -------------------------- | |
| 191 | 0041 12 87 06 19 895963 bullet 1987 87/06/19 (atypical) | |
| 192 | 0045 34 97 02 39 384694 suprleag 1987 (atypical) | |
| 193 | 0049 F1 87 10 28 8932F7 shinobi2 1987 87/10/28 (atypical) | |
| 194 | 0050 F1 87 10 28 8932F7 shinobi1 1987 87/10/28 (atypical) | |
| 195 | 0053 00 00 00 00 020000 sonicbom 1987 atypical | |
| 196 | 0056 CD 80 01 23 032ABC thndrbld 1987 88/01/23 (atypical) | |
| 197 | 0059 aceattac 1988 | |
| 198 | 0060 45 80 03 30 343210 aceattaa 1988 88/03/30 (atypical) | |
| 199 | 0065 altbeaj1 1988 | |
| 200 | 0068 20 80 06 10 880610 altbeaj3 1988 88/06/10 | |
| 201 | 0070 59 80 08 06 880806 passshtj 1988 88/08/06 | |
| 202 | 0074 47 80 08 06 880806 passshta 1988 88/08/06 | |
| 203 | 0071 20 80 08 09 880809 passsht 1988 88/08/09 | |
| 204 | 0079 98 80 09 05 880906 exctleag 1988 88/09/05-88/09/06 (atypical) | |
| 205 | 0080 96 80 08 26 880826 passsht 1988 88/08/26 | |
| 206 | 0058-02C FF 80 10 07 881007 sspirtfc 1988 88/10/07 | |
| 207 | 0084 0E 80 10 31 881031 wb31 1988 88/10/31 | |
| 208 | 0085 26 80 11 08 881108 wb32 1988 88/11/08 | |
| 209 | 0087 69 80 11 08 881108 wb34 1988 88/11/08 | |
| 210 | 0089 52 80 11 29 881129 wb33 1988 88/11/29 | |
| 211 | 0058-03B 71 80 11 25 881125 ggroundj 1988 88/11/25 | |
| 212 | 0058-03C 04 80 11 27 881127 gground 1988 88/11/27 | |
| 213 | 0090 AB 80 01 27 247333 wrestwa1 1989 atypical | |
| 214 | 0091 68 80 11 27 881127 tetris1 1988 88/11/27 | |
| 215 | 0092 10 80 11 28 881128 tetris2 1988 88/11/28 | |
| 216 | 0093 25 80 11 29 881129 tetris 1988 88/11/29 | |
| 217 | 0093A 35 02 09 17 900209 tetris3 1988 90/02/09 | |
| 218 | 0096 21 80 11 21 881121 ddux 1988 88/11/21 | |
| 219 | 0102 AB 80 02 03 04588A wrestwa2 1989 atypical | |
| 220 | 0058-04B 27 03 27 14 032714 crkdownj 1989 89/03/27 14:xx | |
| 221 | 0058-04C 19 03 27 05 032705 crkdown 1989 89/03/27 05:xx | |
| 222 | 0058-04D DC 03 27 06 032706 crkdownu 1989 89/03/27 06:xx | |
| 223 | 0110 19 81 03 29 032916 goldnax1 1989 89/03/29 16:xx | |
| 224 | 0115 12 04 05 11 040511 bayroutj 1989 89/04/05 11:xx | |
| 225 | 0116 11 03 30 09 033009 bayroute 1989 89/03/30 09:xx | |
| 226 | 0118 22 81 03 07 030719 toutrun 1989 89/03/07 19:xx | |
| 227 | toutrun2 22 81 03 07 031113 toutrun2 1989 89/03/11 13:xx (atypical) | |
| 228 | 0120 0D 81 03 29 032916 goldnax3 1989 89/03/29 16:xx | |
| 229 | 0121 35 81 03 29 032916 goldnaxj 1989 89/03/29 16:xx | |
| 230 | 0122 03 81 04 04 890404 goldnaxu 1989 89/04/04 | |
| 231 | 0058-05B 92 81 06 09 890609 sgmastj 1989 89/06/09 | |
| 232 | 0058-05C 30 81 06 13 890613 sgmastc 1989 89/06/13 | |
| 233 | 0058-05D sgmast 1989 | |
| 234 | 0124A 80 06 21 11 890621 smgpj 1989 89/06/21 11:xx | |
| 235 | 0125A DE 06 15 16 890615 smgpu 1989 89/06/15 16:xx | |
| 236 | 0126 54 05 28 01 890528 smgp5 1989 89/05/28 01:xx | |
| 237 | 0126A 74 06 16 15 890616 smgp 1989 89/06/16 15:xx | |
| 238 | 0127A 5F 81 07 06 890706 fpoint 1989 89/07/06 | |
| 239 | 0128 55 00 28 20 890828 eswatj 1989 89/08/28 20:xx | |
| 240 | 0129 0A 00 28 20 890828 eswatu 1989 89/08/28 20:xx | |
| 241 | 0130 EC 00 28 19 890828 eswat 1989 89/08/28 19:xx | |
| 242 | 0134 DE 81 11 30 891130 loffirej 1989 89/11/30 | |
| 243 | 0135 98 81 11 31 891131 loffireu 1989 89/11/31 | |
| 244 | 0136 12 81 11 29 891129 loffire 1989 89/11/29 | |
| 245 | 0139 49 03 25 15 891125 bloxeed 1990 89/11/25 15:xx | |
| 246 | 0142 91 01 24 17 900124 mvpj 1989 90/01/24 17:xx | |
| 247 | 0143 20 02 02 18 900202 mvp 1989 90/02/02 18:xx | |
| 248 | 0144 2E 02 23 18 022318 rachero 1989 90/02/23 18:xx | |
| 249 | 0058-06B 88 03 15 09 900315 roughrac 1990 90/03/15 09:xx | |
| 250 | 0146 10 04 26 17 900426 astormj 1990 90/04/26 17:xx | |
| 251 | 0147 2D 04 14 14 900414 astormu 1990 90/04/14 14:xx | |
| 252 | 0148 50 04 26 15 900426 astorm3 1990 90/04/26 15:xx | |
| 253 | 0153 FC 04 10 14 900410 pontoon 1990 90/04/10 14:xx | |
| 254 | 0157 20 07 20 10 900720 mwalkj 1990 90/07/20 10:xx | |
| 255 | 0158 DE 07 15 15 900715 mwalku 1990 90/07/15 15:xx | |
| 256 | 0159 39 07 20 10 900720 mwalk 1990 90/07/20 10:xx | |
| 257 | 0162 8F 01 14 15 900914 gprider1 1990 90/09/14 15:xx | |
| 258 | 0163 99 01 13 15 900913 gprider 1990 90/09/13 15:xx | |
| 259 | 5023 EF 04 18 05 900917 ryukyu 1990 90/09/17 12:18? (atypical) | |
| 260 | 0165 56 82 11 25 901125 lghostu 1990 90/11/25 | |
| 261 | 0166 A2 82 11 24 901124 lghost 1990 90/11/24 | |
| 262 | 0169B 48 06 35 32 901205 abcop 1990 90/12/05 14:35? (atypical) | |
| 263 | 0058-08B 4E 04 17 15 910206 qsww 1991 91/02/06 12:17? (atypical) | |
| 264 | 0175 91 83 03 22 910322 cltchtrj 1991 91/03/22 | |
| 265 | 0176 FC 83 03 14 910314 cltchitr 1991 91/03/14 | |
| 266 | 0179A 73 06 55 17 910318 cottonj 1991 91/03/18 14:55? (atypical) | |
| 267 | 0180 73 03 53 00 910403 cottonu 1991 91/04/03 11:53? (atypical) | |
| 268 | 0181A 73 06 55 17 910318 cotton 1991 91/03/18 14:55? (atypical) | |
| 269 | 0058-09D 91 83 06 26 910618 dcclubfd 1991 91/06/18-91/06/26 (atypical) | |
| 270 | 0182 07 07 12 14 921401 ddcrewj 1991 92/07/12 14:01? (atypical) | |
| 271 | 0184 07 07 12 16 921622 ddcrew2 1991 92/07/12 16:22? (atypical) | |
| 272 | 0186 5F 83 07 01 912030 ddcrewu 1991 92/07/01 20:30? (atypical) | |
| 273 | 0190 07 07 17 16 921716 ddcrew 1991 92/07/17 17:16? (atypical) | |
| 274 | ddcrew1 91 84 07 42 910744 ddcrew1 1991 92/07/xx 07:44? (atypical) | |
| 275 | 0196 4A 20 12 22 920623 desertbr 1992 92/06/23 20:12? (atypical) | |
| 276 | 0197A 3F 84 06 19 920612 wwallyja 1992 92/06/12-92/06/19 (atypical) | |
| 277 | 0197B 3F 84 06 19 920612 wwallyj 1992 92/06/12-92/06/19 (atypical) | |
| 278 | 278 | |
| 279 | ||
| 279 | ---- | |
| 280 | 280 | |
| 281 | ||
| 281 | Bad CPUs that gave some more information about the global key: | |
| 282 | 282 | |
| 283 | global01 global02 global03 | |
| 284 | -------- -------- -------- | |
| 285 | ..... .. .. | |
| 286 | unknown 11111111 11110110 10111110 (Shinobi 16A, part no. unreadable, could be dead) | |
| 287 | unknown 10101011 11111000 11010101 (unknown ddcrewa key) | |
| 288 | dead 00001111 00001111 00001111 (Alien Storm CPU with no battery) | |
| 289 | bad 11100000 10101011 10111001 (flaky 317-0049) | |
| 283 | global01 global02 global03 | |
| 284 | -------- -------- -------- | |
| 285 | ..... .. .. | |
| 286 | unknown 11111111 11110110 10111110 (Shinobi 16A, part no. unreadable, could be dead) | |
| 287 | unknown 10101011 11111000 11010101 (unknown ddcrewa key) | |
| 288 | dead 00001111 00001111 00001111 (Alien Storm CPU with no battery) | |
| 289 | bad 11100000 10101011 10111001 (flaky 317-0049) | |
| 290 | 290 | |
| 291 | ||
| 291 | ---- | |
| 292 | 292 | |
| 293 | ||
| 293 | Notes: | |
| 294 | 294 | |
| 295 | We start in state 0. | |
| 296 | Vectors are fetched: | |
| 297 | SP.HI @ $000000 -> mainkey = key[0], globalkey = { $00, $00, $00 }, less aggressive blanking | |
| 298 | SP.LO @ $000002 -> mainkey = key[1], globalkey = { $00, $00, $00 }, less aggressive blanking | |
| 299 | PC.HI @ $000004 -> mainkey = key[2], globalkey = { key[1], $00, $00 } | |
| 300 | PC.LO @ $000006 -> mainkey = key[3], globalkey = { key[1], key[2], $00 } | |
| 295 | We start in state 0. | |
| 296 | Vectors are fetched: | |
| 297 | SP.HI @ $000000 -> mainkey = key[0], globalkey = { $00, $00, $00 }, less aggressive blanking | |
| 298 | SP.LO @ $000002 -> mainkey = key[1], globalkey = { $00, $00, $00 }, less aggressive blanking | |
| 299 | PC.HI @ $000004 -> mainkey = key[2], globalkey = { key[1], $00, $00 } | |
| 300 | PC.LO @ $000006 -> mainkey = key[3], globalkey = { key[1], key[2], $00 } | |
| 301 | 301 | |
| 302 | driver FD1094 SP plain SP enc PC plain PC enc States Used | |
| 303 | -------- -------- -------- -------- -------- -------- ----------- | |
| 304 | aceattaa 317-0060 00000000 A711AF59 00000400 AF59EADD 00 17 31 45 90 FC | |
| 305 | altbeaj3 317-0068 FFFFFF00 B2F7F299 00000400 CCDDEF58 00 0F 18 20 93 A7 D8 | |
| 306 | altbeaj1 317-0065 C9C5F299 CCDDECDD | |
| 307 | bayroute 317-0116 00504000 5EB40000 00001000 5533A184 00 04 11 18 | |
| 308 | bayroutj 317-0115 00504000 56150000 00001000 85948DCF 00 05 12 16 | |
| 309 | bullet 317-0041 00000000 57355D96 00001882 8DDC8CF4 (deduced, not 100% sure) | |
| 310 | cotton 317-0181a 00204000 5DB20000 00000716 CCDD0716 00 0E 73 | |
| 311 | cottonu 317-0180 00204000 5DB20000 00000716 A1840716 00 0E 73 | |
| 312 | cottonj 317-0179a 00204000 5DB20000 00000716 CCDD0716 00 0E 73 | |
| 313 | ddux 317-0096 00000000 5F94AF59 00000406 AF5987A0 00 21 28 70 D9 | |
| 314 | eswat 317-0130 00000000 A711AF59 00000400 5533BC59 00 05 0C EC FA | |
| 315 | eswatu 317-0129 00000000 5537AF59 00000400 55334735 00 0A 12 C3 CC | |
| 316 | eswatj 317-0128 00000000 A711AF59 00000400 55334735 00 63 CB D5 | |
| 317 | exctleag 317-0079? 00000000 5537AF59 00000410 83018384 (deduced, not 100% sure) | |
| 318 | fpoint 317-0127A 00000000 AF59AF59 00001A40 8DDC9960 00 15 35 5F 82 DB | |
| 319 | fpoint1 317-0127A 00000000 AF59AF59 00001A40 8DDC9960 00 15 35 5F 82 DB | |
| 320 | goldnaxu 317-0122 FFFFFF00 E53AF2B9 00000400 A184A196 00 03 51 72 99 F6 | |
| 321 | goldnaxj 317-0121 FFFFFF00 C9D6F2B9 00000400 AF59A785 00 12 35 58 7A 9E | |
| 322 | goldnax3 317-0120 FFFFFF00 ED62F2B9 00000400 AF59A785 00 0A 0D 44 C7 EF | |
| 323 | goldnax1 317-0110 FFFFFF00 ED62F2B9 00000400 AF59A785 00 19 2E 31 48 5D | |
| 324 | mvp 317-0143 00000000 5F94A711 00000416 BD59DC5B 00 19 20 88 98 | |
| 325 | mvpj 317-0142 00000000 5F94AF59 00000416 BD599C7D 00 19 35 91 DA | |
| 326 | passsht 317-0080 00000000 AF59AF59 00003202 C2003923 00 11 52 96 EE | |
| 327 | passshta 317-0074 00000000 AF59AF59 000031E4 C2003F8C 00 12 47 83 A7 | |
| 328 | passshtj 317-0070 00000000 5D92AF59 000031E4 C2003F8C 00 12 59 83 FE | |
| 329 | ryukyu 317-5023 00203800 AF49D30B 0000042E FC5863B5 00 DC EF | |
| 330 | shinobi2 317-0049 FFFFFF00 C9C5F25F 00000400 AF598395 00 53 88 9B 9C F1 | |
| 331 | sonicbom 317-0053 00000000 5735AF59 00001000 FC587133 00 | |
| 332 | suprleag 317-0045? 00000000 A711AF59 BD59CE5B | |
| 333 | tetris2 317-0092 00000000 5735AF59 00000410 AF598685 00 10 52 74 97 FC | |
| 334 | tetris1 317-0091 00000000 5D92AF59 00000410 AF59AE58 99 25 42 5B 68 FC | |
| 335 | wb34 317-0087 FFFFFF7E B2978997 00000500 AF590500 00 11 64 69 82 | |
| 336 | wb33 317-0089 FFFFFF7E E5C78997 00000500 AF590500 00 23 40 52 71 | |
| 337 | wb32 317-0085 FFFFFF7E B2F78997 00000500 AF590500 00 10 13 26 77 | |
| 338 | wrestwa2 317-0102 00000000 5D96AF59 00000414 EE588E5B 00 12 A7 AB CC F9 FC | |
| 339 | wrestwa1 317-0090 00000000 5D96AF59 00000414 8301AE18 00 12 A7 AB CC F9 FC | |
| 302 | driver FD1094 SP plain SP enc PC plain PC enc States Used | |
| 303 | -------- -------- -------- -------- -------- -------- ----------- | |
| 304 | aceattaa 317-0060 00000000 A711AF59 00000400 AF59EADD 00 17 31 45 90 FC | |
| 305 | altbeaj3 317-0068 FFFFFF00 B2F7F299 00000400 CCDDEF58 00 0F 18 20 93 A7 D8 | |
| 306 | altbeaj1 317-0065 C9C5F299 CCDDECDD | |
| 307 | bayroute 317-0116 00504000 5EB40000 00001000 5533A184 00 04 11 18 | |
| 308 | bayroutj 317-0115 00504000 56150000 00001000 85948DCF 00 05 12 16 | |
| 309 | bullet 317-0041 00000000 57355D96 00001882 8DDC8CF4 (deduced, not 100% sure) | |
| 310 | cotton 317-0181a 00204000 5DB20000 00000716 CCDD0716 00 0E 73 | |
| 311 | cottonu 317-0180 00204000 5DB20000 00000716 A1840716 00 0E 73 | |
| 312 | cottonj 317-0179a 00204000 5DB20000 00000716 CCDD0716 00 0E 73 | |
| 313 | ddux 317-0096 00000000 5F94AF59 00000406 AF5987A0 00 21 28 70 D9 | |
| 314 | eswat 317-0130 00000000 A711AF59 00000400 5533BC59 00 05 0C EC FA | |
| 315 | eswatu 317-0129 00000000 5537AF59 00000400 55334735 00 0A 12 C3 CC | |
| 316 | eswatj 317-0128 00000000 A711AF59 00000400 55334735 00 63 CB D5 | |
| 317 | exctleag 317-0079? 00000000 5537AF59 00000410 83018384 (deduced, not 100% sure) | |
| 318 | fpoint 317-0127A 00000000 AF59AF59 00001A40 8DDC9960 00 15 35 5F 82 DB | |
| 319 | fpoint1 317-0127A 00000000 AF59AF59 00001A40 8DDC9960 00 15 35 5F 82 DB | |
| 320 | goldnaxu 317-0122 FFFFFF00 E53AF2B9 00000400 A184A196 00 03 51 72 99 F6 | |
| 321 | goldnaxj 317-0121 FFFFFF00 C9D6F2B9 00000400 AF59A785 00 12 35 58 7A 9E | |
| 322 | goldnax3 317-0120 FFFFFF00 ED62F2B9 00000400 AF59A785 00 0A 0D 44 C7 EF | |
| 323 | goldnax1 317-0110 FFFFFF00 ED62F2B9 00000400 AF59A785 00 19 2E 31 48 5D | |
| 324 | mvp 317-0143 00000000 5F94A711 00000416 BD59DC5B 00 19 20 88 98 | |
| 325 | mvpj 317-0142 00000000 5F94AF59 00000416 BD599C7D 00 19 35 91 DA | |
| 326 | passsht 317-0080 00000000 AF59AF59 00003202 C2003923 00 11 52 96 EE | |
| 327 | passshta 317-0074 00000000 AF59AF59 000031E4 C2003F8C 00 12 47 83 A7 | |
| 328 | passshtj 317-0070 00000000 5D92AF59 000031E4 C2003F8C 00 12 59 83 FE | |
| 329 | ryukyu 317-5023 00203800 AF49D30B 0000042E FC5863B5 00 DC EF | |
| 330 | shinobi2 317-0049 FFFFFF00 C9C5F25F 00000400 AF598395 00 53 88 9B 9C F1 | |
| 331 | sonicbom 317-0053 00000000 5735AF59 00001000 FC587133 00 | |
| 332 | suprleag 317-0045? 00000000 A711AF59 BD59CE5B | |
| 333 | tetris2 317-0092 00000000 5735AF59 00000410 AF598685 00 10 52 74 97 FC | |
| 334 | tetris1 317-0091 00000000 5D92AF59 00000410 AF59AE58 99 25 42 5B 68 FC | |
| 335 | wb34 317-0087 FFFFFF7E B2978997 00000500 AF590500 00 11 64 69 82 | |
| 336 | wb33 317-0089 FFFFFF7E E5C78997 00000500 AF590500 00 23 40 52 71 | |
| 337 | wb32 317-0085 FFFFFF7E B2F78997 00000500 AF590500 00 10 13 26 77 | |
| 338 | wrestwa2 317-0102 00000000 5D96AF59 00000414 EE588E5B 00 12 A7 AB CC F9 FC | |
| 339 | wrestwa1 317-0090 00000000 5D96AF59 00000414 8301AE18 00 12 A7 AB CC F9 FC | |
| 340 | 340 | |
| 341 | suprleag pc possibilities: | |
| 342 | 101E -> follows an RTS | |
| 343 | 108E -> follows 3 NOPs | |
| 344 | 11C4 | |
| 345 | 11C8 | |
| 346 | 1212 | |
| 347 | 1214 | |
| 348 | 1218 | |
| 349 | 1282 | |
| 350 | 1284 | |
| 351 | 1288 | |
| 352 | 1342 | |
| 353 | 1416 | |
| 354 | 141C | |
| 355 | 1486 | |
| 356 | 148C | |
| 357 | 1606 | |
| 358 | 1E52 | |
| 359 | 1E54 | |
| 341 | suprleag pc possibilities: | |
| 342 | 101E -> follows an RTS | |
| 343 | 108E -> follows 3 NOPs | |
| 344 | 11C4 | |
| 345 | 11C8 | |
| 346 | 1212 | |
| 347 | 1214 | |
| 348 | 1218 | |
| 349 | 1282 | |
| 350 | 1284 | |
| 351 | 1288 | |
| 352 | 1342 | |
| 353 | 1416 | |
| 354 | 141C | |
| 355 | 1486 | |
| 356 | 148C | |
| 357 | 1606 | |
| 358 | 1E52 | |
| 359 | 1E54 | |
| 360 | 360 | |
| 361 | bullet pc possibilities: | |
| 362 | 0822 | |
| 363 | 0824 | |
| 364 | 0882 | |
| 365 | 0884 | |
| 366 | 0C08 | |
| 367 | 137C | |
| 368 | 1822 | |
| 369 | 1824 | |
| 370 | 1882 | |
| 371 | 1884 | |
| 372 | 1C08 | |
| 361 | bullet pc possibilities: | |
| 362 | 0822 | |
| 363 | 0824 | |
| 364 | 0882 | |
| 365 | 0884 | |
| 366 | 0C08 | |
| 367 | 137C | |
| 368 | 1822 | |
| 369 | 1824 | |
| 370 | 1882 | |
| 371 | 1884 | |
| 372 | 1C08 | |
| 373 | 373 | |
| 374 | tetris1: | |
| 375 | 410: 4ff9 0000 0000 lea $0.l, a7 | |
| 376 | 416: 46fc 2700 move #$2700, sr | |
| 377 | 41a: 0c80 005b ffff cmpi.l #$5bffff, d0 | |
| 374 | tetris1: | |
| 375 | 410: 4ff9 0000 0000 lea $0.l, a7 | |
| 376 | 416: 46fc 2700 move #$2700, sr | |
| 377 | 41a: 0c80 005b ffff cmpi.l #$5bffff, d0 | |
| 378 | 378 | |
| 379 | 400: 4e71 nop | |
| 380 | 402: 4e73 rte | |
| 379 | 400: 4e71 nop | |
| 380 | 402: 4e73 rte | |
| 381 | 381 | |
| 382 | tetris2: | |
| 383 | 410: 4ff9 0000 0000 lea $0.l, a7 | |
| 384 | 416: 46fc 2700 move #$2700, sr | |
| 385 | 41a: 0c80 0052 ffff cmpi.l #$52ffff, d0 | |
| 382 | tetris2: | |
| 383 | 410: 4ff9 0000 0000 lea $0.l, a7 | |
| 384 | 416: 46fc 2700 move #$2700, sr | |
| 385 | 41a: 0c80 0052 ffff cmpi.l #$52ffff, d0 | |
| 386 | 386 | |
| 387 | 400: 4e71 nop | |
| 388 | 402: 4e73 rte | |
| 387 | 400: 4e71 nop | |
| 388 | 402: 4e73 rte | |
| 389 | 389 | |
| 390 | wrestwa1: | |
| 391 | 414: 4ff8 0000 lea $0.w, a7 | |
| 392 | 418: 46fc 2700 move #$2700, sr | |
| 393 | 41c: 0c80 00fc ffff cmpi.l #$fcffff, d0 | |
| 390 | wrestwa1: | |
| 391 | 414: 4ff8 0000 lea $0.w, a7 | |
| 392 | 418: 46fc 2700 move #$2700, sr | |
| 393 | 41c: 0c80 00fc ffff cmpi.l #$fcffff, d0 | |
| 394 | 394 | |
| 395 | mvp: | |
| 396 | 416: 4ff8 0000 lea $0.w, a7 | |
| 397 | 41a: 46fc 2700 move #$2700, sr | |
| 398 | 41e: 7000 moveq #0, d0 | |
| 399 | 420: 2200 move.l d0, d1 | |
| 400 | ... | |
| 401 | 42c: 2e00 move.l d0, d7 | |
| 402 | 42e: 2040 movea.l d0, a0 | |
| 403 | ... | |
| 404 | 43a: 2c40 movea.l d0, a6 | |
| 405 | 43c: 0c80 0098 ffff cmpi.l #$98ffff, d0 | |
| 395 | mvp: | |
| 396 | 416: 4ff8 0000 lea $0.w, a7 | |
| 397 | 41a: 46fc 2700 move #$2700, sr | |
| 398 | 41e: 7000 moveq #0, d0 | |
| 399 | 420: 2200 move.l d0, d1 | |
| 400 | ... | |
| 401 | 42c: 2e00 move.l d0, d7 | |
| 402 | 42e: 2040 movea.l d0, a0 | |
| 403 | ... | |
| 404 | 43a: 2c40 movea.l d0, a6 | |
| 405 | 43c: 0c80 0098 ffff cmpi.l #$98ffff, d0 | |
| 406 | 406 | |
| 407 | wb34: | |
| 408 | 500: 46fc 2700 move #$2700, sr | |
| 409 | 504: 0c80 0064 ffff cmpi.l #$64ffff, d0 | |
| 407 | wb34: | |
| 408 | 500: 46fc 2700 move #$2700, sr | |
| 409 | 504: 0c80 0064 ffff cmpi.l #$64ffff, d0 | |
| 410 | 410 | |
| 411 | goldnaxu: | |
| 412 | 400: 6000 000c bra $40e | |
| 413 | 40e: 4ff8 ff00 lea $ff00.w, a7 | |
| 414 | 412: 46fc 2700 move #$2700, sr | |
| 415 | 416: 0c80 0072 ffff cmpi.l #$72ffff, d0 | |
| 411 | goldnaxu: | |
| 412 | 400: 6000 000c bra $40e | |
| 413 | 40e: 4ff8 ff00 lea $ff00.w, a7 | |
| 414 | 412: 46fc 2700 move #$2700, sr | |
| 415 | 416: 0c80 0072 ffff cmpi.l #$72ffff, d0 | |
| 416 | 416 | |
| 417 | ryukyu: | |
| 418 | 42e: 4e71 nop | |
| 419 | ... | |
| 420 | 440: 0c80 00dc ffff cmpi.l #$dcffff, d0 | |
| 417 | ryukyu: | |
| 418 | 42e: 4e71 nop | |
| 419 | ... | |
| 420 | 440: 0c80 00dc ffff cmpi.l #$dcffff, d0 | |
| 421 | 421 | |
| 422 | eswat: | |
| 423 | 400: 4ff8 0000 lea $0.w, a7 | |
| 424 | 404: 46fc 2700 move #$2700, sr | |
| 425 | 408: 0c80 000c ffff cmpi.l #$cffff, d0 | |
| 422 | eswat: | |
| 423 | 400: 4ff8 0000 lea $0.w, a7 | |
| 424 | 404: 46fc 2700 move #$2700, sr | |
| 425 | 408: 0c80 000c ffff cmpi.l #$cffff, d0 | |
| 426 | 426 | |
| 427 | 427 | *****************************************************************************/ |
| 428 | 428 | |
| r15975 | r15976 | |
| 431 | 431 | |
| 432 | 432 | |
| 433 | 433 | //************************************************************************** |
| 434 | // | |
| 434 | // CONSTANTS | |
| 435 | 435 | //************************************************************************** |
| 436 | 436 | |
| 437 | 437 | // device type definition |
| r15975 | r15976 | |
| 531 | 531 | |
| 532 | 532 | |
| 533 | 533 | //************************************************************************** |
| 534 | // | |
| 534 | // DECRYPTION CACHE HELPER | |
| 535 | 535 | //************************************************************************** |
| 536 | 536 | |
| 537 | 537 | //------------------------------------------------- |
| r15975 | r15976 | |
| 562 | 562 | |
| 563 | 563 | //------------------------------------------------- |
| 564 | 564 | // configure - configure the address and size |
| 565 | // | |
| 565 | // of the region we are caching | |
| 566 | 566 | //------------------------------------------------- |
| 567 | 567 | |
| 568 | 568 | void fd1094_decryption_cache::configure(offs_t baseaddress, UINT32 size, offs_t rgnoffset) |
| r15975 | r15976 | |
| 580 | 580 | |
| 581 | 581 | //------------------------------------------------- |
| 582 | 582 | // decrypted_opcodes - return a pointer to the |
| 583 | // | |
| 583 | // decrypted opcodes for the given state | |
| 584 | 584 | //------------------------------------------------- |
| 585 | 585 | |
| 586 | 586 | UINT16 *fd1094_decryption_cache::decrypted_opcodes(UINT8 state) |
| r15975 | r15976 | |
| 598 | 598 | |
| 599 | 599 | |
| 600 | 600 | //************************************************************************** |
| 601 | // | |
| 601 | // CORE IMPLEMENTATION | |
| 602 | 602 | //************************************************************************** |
| 603 | 603 | |
| 604 | 604 | //------------------------------------------------- |
| r15975 | r15976 | |
| 625 | 625 | m_masked_opcodes_lookup[0][opcode >> 4] |= 1 << ((opcode >> 1) & 7); |
| 626 | 626 | m_masked_opcodes_lookup[1][opcode >> 4] |= 1 << ((opcode >> 1) & 7); |
| 627 | 627 | } |
| 628 | ||
| 628 | ||
| 629 | 629 | // add some more opcodes for the more aggressive table |
| 630 | 630 | for (int opcode = 0; opcode < 65536; opcode += 2) |
| 631 | 631 | if ((opcode & 0xff80) == 0x4e80 || (opcode & 0xf0f8) == 0x50c8 || (opcode & 0xf000) == 0x6000) |
| r15975 | r15976 | |
| 634 | 634 | |
| 635 | 635 | |
| 636 | 636 | //------------------------------------------------- |
| 637 | // change_state - set the current state of the | |
| 638 | // chip | |
| 637 | // change_state - set the current state of the | |
| 638 | // chip | |
| 639 | 639 | //------------------------------------------------- |
| 640 | 640 | |
| 641 | 641 | void fd1094_device::change_state(int newstate) |
| r15975 | r15976 | |
| 671 | 671 | |
| 672 | 672 | |
| 673 | 673 | //************************************************************************** |
| 674 | // | |
| 674 | // DEVICE OVERRIDES | |
| 675 | 675 | //************************************************************************** |
| 676 | 676 | |
| 677 | 677 | //------------------------------------------------- |
| r15975 | r15976 | |
| 682 | 682 | { |
| 683 | 683 | // start the base device |
| 684 | 684 | m68000_device::device_start(); |
| 685 | ||
| 685 | ||
| 686 | 686 | // find the key |
| 687 | 687 | m_key = memregion("key")->base(); |
| 688 | 688 | if (m_key == NULL) |
| r15975 | r15976 | |
| 694 | 694 | m_srcbase = reinterpret_cast<UINT16 *>(region()->base()); |
| 695 | 695 | m_srcbytes = region()->bytes(); |
| 696 | 696 | } |
| 697 | ||
| 697 | ||
| 698 | 698 | // if no ROM region, see if there's a memory share with our name |
| 699 | 699 | else |
| 700 | 700 | { |
| r15975 | r15976 | |
| 705 | 705 | m_srcbytes = share->bytes(); |
| 706 | 706 | } |
| 707 | 707 | } |
| 708 | ||
| 708 | ||
| 709 | 709 | // if we got nothing, error |
| 710 | 710 | if (m_srcbase == NULL) |
| 711 | 711 | throw emu_fatalerror("FD1094 found no data to decrypt!"); |
| r15975 | r15976 | |
| 722 | 722 | m68k_set_cmpild_callback(this, &fd1094_device::cmp_callback); |
| 723 | 723 | m68k_set_rte_callback(this, &fd1094_device::rte_callback); |
| 724 | 724 | device_set_irq_callback(this, &fd1094_device::irq_callback); |
| 725 | ||
| 725 | ||
| 726 | 726 | // save state |
| 727 | 727 | save_item(NAME(m_state)); |
| 728 | 728 | save_item(NAME(m_irqmode)); |
| r15975 | r15976 | |
| 757 | 757 | |
| 758 | 758 | |
| 759 | 759 | //************************************************************************** |
| 760 | // | |
| 760 | // INTERNAL HELPERS | |
| 761 | 761 | //************************************************************************** |
| 762 | 762 | |
| 763 | 763 | //------------------------------------------------- |
| 764 | 764 | // decrypt_one - decrypt a single opcode given |
| 765 | // the address, data, and keys; note that the | |
| 766 | // address provided is the word address | |
| 767 | // (physical address / 2) | |
| 765 | // the address, data, and keys; note that the | |
| 766 | // address provided is the word address | |
| 767 | // (physical address / 2) | |
| 768 | 768 | //------------------------------------------------- |
| 769 | 769 | |
| 770 | 770 | UINT16 fd1094_device::decrypt_one(offs_t address, UINT16 val, const UINT8 *main_key, UINT8 state, bool vector_fetch) |
| r15975 | r15976 | |
| 821 | 821 | gkey3 ^= 0x02; // key_0a invert |
| 822 | 822 | gkey3 ^= 0x40; // global_swap3 |
| 823 | 823 | } |
| 824 | ||
| 824 | ||
| 825 | 825 | // for address xx0000-xx0006 (but only if >= 000008), use key xx2000-xx2006 |
| 826 | 826 | UINT8 mainkey; |
| 827 | 827 | if ((address & 0x0ffc) == 0 && address >= 4) |
| 828 | 828 | mainkey = main_key[(address & 0x1fff) | 0x1000]; |
| 829 | 829 | else |
| 830 | 830 | mainkey = main_key[address & 0x1fff]; |
| 831 | ||
| 831 | ||
| 832 | 832 | UINT8 key_F; |
| 833 | 833 | if (address & 0x1000) key_F = BIT(mainkey,7); |
| 834 | 834 | else key_F = BIT(mainkey,6); |
| r15975 | r15976 | |
| 956 | 956 | |
| 957 | 957 | //------------------------------------------------- |
| 958 | 958 | // default_state_change - handle state changes |
| 959 | // | |
| 959 | // for standard cases | |
| 960 | 960 | //------------------------------------------------- |
| 961 | 961 | |
| 962 | 962 | void fd1094_device::default_state_change(UINT8 state) |
| r15975 | r15976 | |
| 967 | 967 | |
| 968 | 968 | |
| 969 | 969 | //************************************************************************** |
| 970 | // | |
| 970 | // STATIC CALLBACKS | |
| 971 | 971 | //************************************************************************** |
| 972 | 972 | |
| 973 | 973 | //------------------------------------------------- |
| 974 | // cmp_callback - callback for CMP.L instructions | |
| 975 | // (state change) | |
| 974 | // cmp_callback - callback for CMP.L instructions | |
| 975 | // (state change) | |
| 976 | 976 | //------------------------------------------------- |
| 977 | 977 | |
| 978 | 978 | void fd1094_device::cmp_callback(device_t *device, UINT32 val, UINT8 reg) |
| r15975 | r15976 | |
| 983 | 983 | |
| 984 | 984 | |
| 985 | 985 | //------------------------------------------------- |
| 986 | // irq_callback - callback when the FD1094 enters | |
| 987 | // interrupt code | |
| 986 | // irq_callback - callback when the FD1094 enters | |
| 987 | // interrupt code | |
| 988 | 988 | //------------------------------------------------- |
| 989 | 989 | |
| 990 | 990 | IRQ_CALLBACK( fd1094_device::irq_callback ) |
| r15975 | r15976 | |
| 996 | 996 | |
| 997 | 997 | //------------------------------------------------- |
| 998 | 998 | // rte_callback - callback when an RTE instruction |
| 999 | // | |
| 999 | // is encountered | |
| 1000 | 1000 | //------------------------------------------------- |
| 1001 | 1001 | |
| 1002 | 1002 | void fd1094_device::rte_callback(device_t *device) |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /* Kaneko 'Toybox' protection |
| 2 | ||
| 2 | ||
| 3 | 3 | the following chips have been seen |
| 4 | 4 | |
| 5 | 5 | TBSOP01 is a NEC uPD78324 series MCU with 32K internal rom & 1024 bytes of ram |
| r15975 | r15976 | |
| 14 | 14 | 94 Bonk's Adventure TOYBOX? TBSOP01 |
| 15 | 15 | 94 Blood Warrior TOYBOX? TBS0P01 452 9339PK001 |
| 16 | 16 | 94 Great 1000 Miles Rally TOYBOX "MM0525-TOYBOX199","USMM0713-TB1994 " |
| 17 | 94 Great 1000 Miles Rally EV/US TOYBOX | |
| 17 | 94 Great 1000 Miles Rally EV/US TOYBOX | |
| 18 | 18 | 95 Great 1000 Miles Rally 2 TOYBOX KANEKO TBSOP02 454 9451MK002 (74 pin PQFP) "USMM0713-TB1994 " |
| 19 | 19 | 95 Jackie Chan TOYBOX "USMM0713-TB1994 " |
| 20 | 20 | 95 Gals Panic 3 TOYBOX? TBSOP01 |
| r15975 | r15976 | |
| 22 | 22 | todo: |
| 23 | 23 | |
| 24 | 24 | bonk: |
| 25 | Where does the hardcoded EEPROM default data come from (there is a command to restore defaults directly, not from RAM) | |
| 26 | Where does the data for the additional tables come from, a transfer mode none of the other games use is used. (related to src[offs+6] and src[offs+7] params? ) | |
| 25 | Where does the hardcoded EEPROM default data come from (there is a command to restore defaults directly, not from RAM) | |
| 26 | Where does the data for the additional tables come from, a transfer mode none of the other games use is used. (related to src[offs+6] and src[offs+7] params? ) | |
| 27 | 27 | |
| 28 | 28 | |
| 29 | 29 | MCU parameters: |
| r15975 | r15976 | |
| 39 | 39 | - 0x03: read DSW |
| 40 | 40 | - 0x02: load game settings \ stored in ATMEL AT93C46 chip, |
| 41 | 41 | - 0x42: save game settings / 128 bytes serial EEPROM |
| 42 | ||
| 42 | - 0x43: restore eeprom defaults (from internal ROM or data ROM?) | |
| 43 | 43 | |
| 44 | 44 | */ |
| 45 | 45 | |
| r15975 | r15976 | |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | logerror("%s : MCU executed command: %04X %04X (load NVRAM settings)\n", machine.describe_context(), mcu_command, mcu_offset*2); |
| 211 | ||
| 211 | ||
| 212 | 212 | } |
| 213 | 213 | break; |
| 214 | 214 | |
| r15975 | r15976 | |
| 231 | 231 | if (m_gametype == GAME_BONK) |
| 232 | 232 | { |
| 233 | 233 | //memcpy(m_nvram_save, bonkadv_mcu_43, sizeof(bonkadv_mcu_43)); |
| 234 | ||
| 235 | ||
| 234 | ||
| 235 | ||
| 236 | 236 | address_space *eeprom_space = machine.device<eeprom_device>(":eeprom")->space(); |
| 237 | 237 | UINT8* nvdat = (UINT8*)&bonkadv_mcu_43[0]; |
| 238 | 238 | for (int i=0;i<0x80;i++) |
| r15975 | r15976 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | //************************************************************************** |
| 20 | // | |
| 20 | // CONSTANTS | |
| 21 | 21 | //************************************************************************** |
| 22 | 22 | |
| 23 | 23 | // device type definition |
| r15975 | r15976 | |
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | //************************************************************************** |
| 29 | // | |
| 29 | // TYPE DEFINITIONS | |
| 30 | 30 | //************************************************************************** |
| 31 | 31 | |
| 32 | 32 | class fd1094_device; |
| r15975 | r15976 | |
| 39 | 39 | public: |
| 40 | 40 | // construction/destruction |
| 41 | 41 | fd1094_decryption_cache(fd1094_device &fd1094); |
| 42 | ||
| 42 | ||
| 43 | 43 | // getters |
| 44 | 44 | fd1094_device &fd1094() const { return m_fd1094; } |
| 45 | 45 | UINT16 *decrypted_opcodes(UINT8 state); |
| 46 | ||
| 46 | ||
| 47 | 47 | // operations |
| 48 | 48 | void reset(); |
| 49 | 49 | void configure(offs_t baseaddress, UINT32 size, offs_t rgnoffset); |
| r15975 | r15976 | |
| 51 | 51 | protected: |
| 52 | 52 | // internal state |
| 53 | 53 | fd1094_device & m_fd1094; |
| 54 | UINT32 m_baseaddress; | |
| 54 | UINT32 m_baseaddress; | |
| 55 | 55 | UINT32 m_size; |
| 56 | 56 | UINT32 m_rgnoffset; |
| 57 | dynamic_array<UINT16> | |
| 57 | dynamic_array<UINT16> | |
| 58 | 58 | }; |
| 59 | 59 | |
| 60 | 60 | |
| r15975 | r15976 | |
| 68 | 68 | |
| 69 | 69 | // construction/destruction |
| 70 | 70 | fd1094_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 71 | ||
| 71 | ||
| 72 | 72 | // explicit decryption helpers |
| 73 | 73 | void decrypt(offs_t baseaddr, UINT32 size, offs_t regionoffs, UINT16 *opcodesptr, UINT8 state) { decrypt(baseaddr, size, m_srcbase + regionoffs/2, opcodesptr, state); } |
| 74 | 74 | |
| r15975 | r15976 | |
| 84 | 84 | STATE_IRQ = 0x200, |
| 85 | 85 | STATE_RTE = 0x300 |
| 86 | 86 | }; |
| 87 | ||
| 87 | ||
| 88 | 88 | protected: |
| 89 | 89 | // device overrides |
| 90 | 90 | virtual void device_start(); |
| r15975 | r15976 | |
| 100 | 100 | static void cmp_callback(device_t *device, UINT32 val, UINT8 reg); |
| 101 | 101 | static IRQ_CALLBACK( irq_callback ); |
| 102 | 102 | static void rte_callback(device_t *device); |
| 103 | ||
| 103 | ||
| 104 | 104 | // internal state |
| 105 | 105 | UINT8 m_state; |
| 106 | 106 | bool m_irqmode; |
| r15975 | r15976 | |
| 109 | 109 | UINT16 * m_srcbase; |
| 110 | 110 | UINT32 m_srcbytes; |
| 111 | 111 | const UINT8 * m_key; |
| 112 | UINT8 m_masked_opcodes_lookup[2][65536/8/2]; | |
| 113 | ||
| 112 | UINT8 m_masked_opcodes_lookup[2][65536/8/2]; | |
| 113 | ||
| 114 | 114 | // static tables |
| 115 | 115 | static const UINT16 s_masked_opcodes[]; |
| 116 | 116 | }; |
| r15975 | r15976 | |
|---|---|---|
| 216 | 216 | { |
| 217 | 217 | if (offset >= 2) |
| 218 | 218 | { |
| 219 | fatalerror("dsp_comm_w: %08X, %08X", data, offset); | |
| 219 | fatalerror("dsp_comm_w: %08X, %08X\n", data, offset); | |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | switch (cgboard_type) |
| r15975 | r15976 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | |
| 43 | 43 | //************************************************************************** |
| 44 | // | |
| 44 | // DEBUGGING | |
| 45 | 45 | //************************************************************************** |
| 46 | 46 | |
| 47 | 47 | #define LOG_MEMORY_MAP (0) |
| r15975 | r15976 | |
| 52 | 52 | |
| 53 | 53 | |
| 54 | 54 | //************************************************************************** |
| 55 | // | |
| 55 | // CONSTANTS | |
| 56 | 56 | //************************************************************************** |
| 57 | 57 | |
| 58 | 58 | // device type definition |
| r15975 | r15976 | |
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | //************************************************************************** |
| 67 | // | |
| 67 | // MISC HELPERS | |
| 68 | 68 | //************************************************************************** |
| 69 | 69 | |
| 70 | 70 | READ16_HANDLER( segaic16_open_bus_r ) |
| r15975 | r15976 | |
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | //************************************************************************** |
| 97 | // | |
| 97 | // 315-5195 MEMORY MAPPER | |
| 98 | 98 | //************************************************************************** |
| 99 | 99 | |
| 100 | 100 | //------------------------------------------------- |
| r15975 | r15976 | |
| 136 | 136 | |
| 137 | 137 | |
| 138 | 138 | //------------------------------------------------- |
| 139 | // static_set_sound_readwrite - configuration | |
| 140 | // helper to set the sound read/write callbacks | |
| 139 | // static_set_sound_readwrite - configuration | |
| 140 | // helper to set the sound read/write callbacks | |
| 141 | 141 | //------------------------------------------------- |
| 142 | 142 | |
| 143 | 143 | void sega_315_5195_mapper_device::static_set_sound_readwrite(device_t &device, sound_read_delegate read, sound_write_delegate write) |
| r15975 | r15976 | |
| 292 | 292 | if (!whandler.isnull()) mame_printf_debug(" with handler=%s", whandler.name()); |
| 293 | 293 | mame_printf_debug("\n"); |
| 294 | 294 | } |
| 295 | ||
| 295 | ||
| 296 | 296 | // don't map if the start is past the end of the ROM region |
| 297 | 297 | offs_t romsize = m_cpu->region()->bytes(); |
| 298 | 298 | if (rgnoffset < romsize) |
| r15975 | r15976 | |
| 309 | 309 | memory_bank *bank = owner()->membank(bank_name); |
| 310 | 310 | UINT8 *memptr = m_cpu->region()->base() + rgnoffset; |
| 311 | 311 | bank->set_base(memptr); |
| 312 | ||
| 312 | ||
| 313 | 313 | // remember this bank, and decrypt if necessary |
| 314 | 314 | m_banks[m_curregion].set(bank, info.start, romend, rgnoffset, memptr); |
| 315 | 315 | } |
| r15975 | r15976 | |
| 322 | 322 | |
| 323 | 323 | //------------------------------------------------- |
| 324 | 324 | // map_as_ram - map a region as RAM, with an |
| 325 | // | |
| 325 | // optional write handler | |
| 326 | 326 | //------------------------------------------------- |
| 327 | 327 | |
| 328 | 328 | void sega_315_5195_mapper_device::map_as_ram(UINT32 offset, UINT32 length, offs_t mirror, const char *bank_share_name, write16_delegate whandler) |
| r15975 | r15976 | |
| 336 | 336 | if (!whandler.isnull()) mame_printf_debug(" with handler=%s", whandler.name()); |
| 337 | 337 | mame_printf_debug("\n"); |
| 338 | 338 | } |
| 339 | ||
| 339 | ||
| 340 | 340 | // map now |
| 341 | 341 | m_space->install_read_bank(info.start, info.end, 0, info.mirror, bank_share_name); |
| 342 | 342 | |
| r15975 | r15976 | |
| 345 | 345 | m_space->install_write_handler(info.start, info.end, 0, info.mirror, whandler); |
| 346 | 346 | else |
| 347 | 347 | m_space->install_write_bank(info.start, info.end, 0, info.mirror, bank_share_name); |
| 348 | ||
| 348 | ||
| 349 | 349 | // configure the bank |
| 350 | 350 | memory_bank *bank = owner()->membank(bank_share_name); |
| 351 | 351 | bank->set_base(owner()->memshare(bank_share_name)->ptr()); |
| r15975 | r15976 | |
| 356 | 356 | |
| 357 | 357 | |
| 358 | 358 | //------------------------------------------------- |
| 359 | // map_as_handler - map a region as a pair of | |
| 359 | // map_as_handler - map a region as a pair of | |
| 360 | 360 | // read write handlers |
| 361 | 361 | //------------------------------------------------- |
| 362 | 362 | |
| r15975 | r15976 | |
| 372 | 372 | if (!whandler.isnull()) mame_printf_debug(" write=%s", whandler.name()); |
| 373 | 373 | mame_printf_debug("\n"); |
| 374 | 374 | } |
| 375 | ||
| 375 | ||
| 376 | 376 | // install read/write handlers |
| 377 | 377 | if (!rhandler.isnull()) |
| 378 | 378 | m_space->install_read_handler(info.start, info.end, 0, info.mirror, rhandler); |
| r15975 | r15976 | |
| 383 | 383 | m_banks[m_curregion].clear(); |
| 384 | 384 | } |
| 385 | 385 | |
| 386 | ||
| 386 | ||
| 387 | 387 | //------------------------------------------------- |
| 388 | 388 | // configure_explicit - explicitly configure the |
| 389 | // | |
| 389 | // memory map | |
| 390 | 390 | //------------------------------------------------- |
| 391 | 391 | |
| 392 | 392 | void sega_315_5195_mapper_device::configure_explicit(const UINT8 *map_data) |
| r15975 | r15976 | |
| 398 | 398 | |
| 399 | 399 | //------------------------------------------------- |
| 400 | 400 | // fd1094_state_change - handle notifications |
| 401 | // | |
| 401 | // of state changes | |
| 402 | 402 | //------------------------------------------------- |
| 403 | 403 | |
| 404 | 404 | void sega_315_5195_mapper_device::fd1094_state_change(UINT8 state) |
| r15975 | r15976 | |
| 424 | 424 | m_cpu = siblingdevice<m68000_device>(m_cputag); |
| 425 | 425 | if (m_cpu == NULL) |
| 426 | 426 | throw emu_fatalerror("Unable to find sibling device '%s'", m_cputag); |
| 427 | ||
| 427 | ||
| 428 | 428 | // if we are mapping an FD1089, tell all the banks |
| 429 | 429 | fd1089_base_device *fd1089 = dynamic_cast<fd1089_base_device *>(m_cpu); |
| 430 | 430 | if (fd1089 != NULL) |
| r15975 | r15976 | |
| 444 | 444 | m_space = m_cpu->space(AS_PROGRAM); |
| 445 | 445 | if (m_space == NULL) |
| 446 | 446 | throw emu_fatalerror("Unable to find program address space on device '%s'", m_cputag); |
| 447 | ||
| 447 | ||
| 448 | 448 | // register for saves |
| 449 | 449 | save_item(NAME(m_regs)); |
| 450 | 450 | } |
| r15975 | r15976 | |
| 470 | 470 | |
| 471 | 471 | //------------------------------------------------- |
| 472 | 472 | // compute_region - determine region parameters |
| 473 | // based on current configuration registers and | |
| 474 | // actual underlying bus connections | |
| 473 | // based on current configuration registers and | |
| 474 | // actual underlying bus connections | |
| 475 | 475 | //------------------------------------------------- |
| 476 | 476 | |
| 477 | 477 | void sega_315_5195_mapper_device::compute_region(region_info &info, UINT8 index, UINT32 length, UINT32 mirror, UINT32 offset) |
| 478 | 478 | { |
| 479 | 479 | static const offs_t region_size_map[4] = { 0x00ffff, 0x01ffff, 0x07ffff, 0x1fffff }; |
| 480 | 480 | info.size_mask = region_size_map[m_regs[0x10 + 2 * index] & 3]; |
| 481 | info.base = (m_regs[0x11 + 2 * index] << 16) & ~info.size_mask; | |
| 481 | info.base = (m_regs[0x11 + 2 * index] << 16) & ~info.size_mask; | |
| 482 | 482 | info.mirror = mirror & info.size_mask; |
| 483 | 483 | info.start = info.base + (offset & info.size_mask); |
| 484 | 484 | info.end = info.start + MIN(length - 1, info.size_mask); |
| 485 | 485 | } |
| 486 | ||
| 487 | 486 | |
| 487 | ||
| 488 | 488 | //------------------------------------------------- |
| 489 | // update_mapping - remap the entire CPU address | |
| 489 | // update_mapping - remap the entire CPU address | |
| 490 | 490 | // space based on updated mappings |
| 491 | 491 | //------------------------------------------------- |
| 492 | 492 | |
| r15975 | r15976 | |
| 509 | 509 | |
| 510 | 510 | |
| 511 | 511 | //************************************************************************** |
| 512 | // | |
| 512 | // DECRYPT BANK HELPER CLASS | |
| 513 | 513 | //************************************************************************** |
| 514 | 514 | |
| 515 | 515 | //------------------------------------------------- |
| r15975 | r15976 | |
| 517 | 517 | //------------------------------------------------- |
| 518 | 518 | |
| 519 | 519 | sega_315_5195_mapper_device::decrypt_bank::decrypt_bank() |
| 520 | : m_bank(NULL), | |
| 521 | m_start(0), | |
| 522 | m_end(0), | |
| 520 | : m_bank(NULL), | |
| 521 | m_start(0), | |
| 522 | m_end(0), | |
| 523 | 523 | m_rgnoffs(~0), |
| 524 | 524 | m_srcptr(NULL), |
| 525 | 525 | m_fd1089(NULL), |
| r15975 | r15976 | |
| 543 | 543 | |
| 544 | 544 | //------------------------------------------------- |
| 545 | 545 | // set_decrypt - configure the decryption target |
| 546 | // | |
| 546 | // CPU | |
| 547 | 547 | //------------------------------------------------- |
| 548 | 548 | |
| 549 | 549 | void sega_315_5195_mapper_device::decrypt_bank::set_decrypt(fd1089_base_device *fd1089) |
| 550 | 550 | { |
| 551 | 551 | // set the fd1089 pointer |
| 552 | 552 | m_fd1089 = fd1089; |
| 553 | ||
| 553 | ||
| 554 | 554 | // clear out all fd1094 stuff |
| 555 | 555 | delete m_fd1094_cache; |
| 556 | 556 | m_fd1094_cache = NULL; |
| r15975 | r15976 | |
| 560 | 560 | { |
| 561 | 561 | // set the fd1094 pointer and allocate a decryption cache |
| 562 | 562 | m_fd1094_cache = global_alloc(fd1094_decryption_cache(*fd1094)); |
| 563 | ||
| 563 | ||
| 564 | 564 | // clear out all fd1089 stuff |
| 565 | 565 | m_fd1089 = NULL; |
| 566 | 566 | m_fd1089_decrypted.reset(); |
| r15975 | r15976 | |
| 569 | 569 | |
| 570 | 570 | //------------------------------------------------- |
| 571 | 571 | // set - set the parameters of this bank after |
| 572 | // | |
| 572 | // a change | |
| 573 | 573 | //------------------------------------------------- |
| 574 | 574 | |
| 575 | 575 | void sega_315_5195_mapper_device::decrypt_bank::set(memory_bank *bank, offs_t start, offs_t end, offs_t rgnoffs, UINT8 *src) |
| r15975 | r15976 | |
| 577 | 577 | // ignore if not encrypted |
| 578 | 578 | if (m_fd1089 == NULL && m_fd1094_cache == NULL) |
| 579 | 579 | return; |
| 580 | ||
| 580 | ||
| 581 | 581 | // ignore if nothing is changing |
| 582 | 582 | if (bank == m_bank && start == m_start && end == m_end && rgnoffs == m_rgnoffs && src == m_srcptr) |
| 583 | 583 | return; |
| r15975 | r15976 | |
| 591 | 591 | m_end = end; |
| 592 | 592 | m_rgnoffs = rgnoffs; |
| 593 | 593 | m_srcptr = src; |
| 594 | ||
| 594 | ||
| 595 | 595 | // configure the fd1094 cache |
| 596 | 596 | if (m_fd1094_cache != NULL) |
| 597 | 597 | m_fd1094_cache->configure(m_start, m_end + 1 - m_start, m_rgnoffs); |
| r15975 | r15976 | |
| 603 | 603 | |
| 604 | 604 | //------------------------------------------------- |
| 605 | 605 | // update - update the decrypted memory base |
| 606 | // | |
| 606 | // if this rom bank has been assigned | |
| 607 | 607 | //------------------------------------------------- |
| 608 | 608 | |
| 609 | 609 | void sega_315_5195_mapper_device::decrypt_bank::update() |
| r15975 | r15976 | |
| 611 | 611 | // if this isn't a valid state, don't try to do anything |
| 612 | 612 | if (m_bank == NULL || m_srcptr == NULL) |
| 613 | 613 | return; |
| 614 | ||
| 614 | ||
| 615 | 615 | // fd1089 case |
| 616 | 616 | if (m_fd1089 != NULL) |
| 617 | 617 | { |
| r15975 | r15976 | |
| 619 | 619 | m_fd1089->decrypt(m_start, m_end + 1 - m_start, m_rgnoffs, m_fd1089_decrypted, reinterpret_cast<UINT16 *>(m_srcptr)); |
| 620 | 620 | m_bank->set_base_decrypted(m_fd1089_decrypted); |
| 621 | 621 | } |
| 622 | ||
| 622 | ||
| 623 | 623 | // fd1094 case |
| 624 | 624 | if (m_fd1094_cache != NULL) |
| 625 | 625 | m_bank->set_base_decrypted(m_fd1094_cache->decrypted_opcodes(m_fd1094_cache->fd1094().state())); |
| r15975 | r15976 | |
| 628 | 628 | |
| 629 | 629 | |
| 630 | 630 | //************************************************************************** |
| 631 | // | |
| 631 | // 315-5248 MULTIPLIER | |
| 632 | 632 | //************************************************************************** |
| 633 | 633 | |
| 634 | 634 | //------------------------------------------------- |
| r15975 | r15976 | |
| 652 | 652 | // if bit 1 is 0, just return register values |
| 653 | 653 | case 0: return m_regs[0]; |
| 654 | 654 | case 1: return m_regs[1]; |
| 655 | ||
| 655 | ||
| 656 | 656 | // if bit 1 is 1, return ther results |
| 657 | 657 | case 2: return (INT16(m_regs[0]) * INT16(m_regs[1])) >> 16; |
| 658 | 658 | case 3: return (INT16(m_regs[0]) * INT16(m_regs[1])) & 0xffff; |
| 659 | 659 | } |
| 660 | ||
| 660 | ||
| 661 | 661 | // should never get here |
| 662 | 662 | return 0xffff; |
| 663 | 663 | } |
| r15975 | r15976 | |
| 696 | 696 | |
| 697 | 697 | |
| 698 | 698 | //************************************************************************** |
| 699 | // | |
| 699 | // 315-5249 DIVIDER | |
| 700 | 700 | //************************************************************************** |
| 701 | 701 | |
| 702 | 702 | //------------------------------------------------- |
| r15975 | r15976 | |
| 788 | 788 | INT32 dividend = INT32((m_regs[0] << 16) | m_regs[1]); |
| 789 | 789 | INT32 divisor = INT16(m_regs[2]); |
| 790 | 790 | INT32 quotient; |
| 791 | ||
| 791 | ||
| 792 | 792 | // check for divide by 0, signal if we did |
| 793 | 793 | if (divisor == 0) |
| 794 | 794 | { |
| r15975 | r15976 | |
| 840 | 840 | |
| 841 | 841 | |
| 842 | 842 | //************************************************************************** |
| 843 | // | |
| 843 | // 315-5250 COMPARE/TIMER | |
| 844 | 844 | //************************************************************************** |
| 845 | 845 | |
| 846 | 846 | //------------------------------------------------- |
| 847 | // sega_315_5250_compare_timer_device - | |
| 848 | // constructor | |
| 847 | // sega_315_5250_compare_timer_device - | |
| 848 | // constructor | |
| 849 | 849 | //------------------------------------------------- |
| 850 | 850 | |
| 851 | 851 | sega_315_5250_compare_timer_device::sega_315_5250_compare_timer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| r15975 | r15976 | |
| 867 | 867 | |
| 868 | 868 | |
| 869 | 869 | //------------------------------------------------- |
| 870 | // static_set_sound_readwrite - configuration | |
| 871 | // helper to set the sound read/write callbacks | |
| 870 | // static_set_sound_readwrite - configuration | |
| 871 | // helper to set the sound read/write callbacks | |
| 872 | 872 | //------------------------------------------------- |
| 873 | 873 | |
| 874 | 874 | void sega_315_5250_compare_timer_device::static_set_sound_write(device_t &device, sound_write_delegate write) |
| r15975 | r15976 | |
|---|---|---|
| 132 | 132 | // construction/destruction |
| 133 | 133 | decrypt_bank(); |
| 134 | 134 | ~decrypt_bank(); |
| 135 | ||
| 135 | ||
| 136 | 136 | // configuration |
| 137 | 137 | void set_decrypt(fd1089_base_device *fd1089); |
| 138 | 138 | void set_decrypt(fd1094_device *fd1094); |
| r15975 | r15976 | |
| 253 | 253 | // internal helpers |
| 254 | 254 | void execute(bool update_history = false); |
| 255 | 255 | void interrupt_ack() { if (!m_timer_ack.isnull()) m_timer_ack(); } |
| 256 | ||
| 256 | ||
| 257 | 257 | // configuration |
| 258 | 258 | timer_ack_delegate m_timer_ack; |
| 259 | 259 | sound_write_delegate m_sound_write; |
| r15975 | r15976 | |
|---|---|---|
| 333 | 333 | return 0; |
| 334 | 334 | |
| 335 | 335 | default: |
| 336 | fatalerror("RTC-72421: Unknown reg %02X", reg); | |
| 336 | fatalerror("RTC-72421: Unknown reg %02X\n", reg); | |
| 337 | 337 | return 0; |
| 338 | 338 | } |
| 339 | 339 | } |
| r15975 | r15976 | |
|---|---|---|
| 1991 | 1991 | |
| 1992 | 1992 | /* for mame we use an init, maybe we will need more for the different games */ |
| 1993 | 1993 | DRIVER_INIT_MEMBER(snes_state,snes) |
| 1994 | { | |
| 1994 | { | |
| 1995 | 1995 | address_space *space = machine().device("maincpu")->memory().space(AS_PROGRAM); |
| 1996 | 1996 | UINT16 total_blocks, read_blocks; |
| 1997 | 1997 | UINT8 *rom; |
| r15975 | r15976 | |
|---|---|---|
| 56 | 56 | scc68070->timers.timer0_timer->adjust(period); |
| 57 | 57 | break; |
| 58 | 58 | default: |
| 59 | fatalerror( "Unsupported timer channel to scc68070_set_timer_callback!" ); | |
| 59 | fatalerror( "Unsupported timer channel to scc68070_set_timer_callback!\n" ); | |
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 |
| r15975 | r15976 | |
|---|---|---|
| 31 | 31 | int m_single_rate; |
| 32 | 32 | int m_single_volume; |
| 33 | 33 | int m_sound_state; |
| 34 | ||
| 34 | ||
| 35 | 35 | required_device<dac_device> m_dac; |
| 36 | 36 | |
| 37 | 37 | required_shared_ptr<UINT8> m_spriteram; |
| r15975 | r15976 | |
|---|---|---|
| 68 | 68 | memset(m_iochip_regs, 0, sizeof(m_iochip_regs)); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | // compare/timer chip callbacks | |
| 71 | // compare/timer chip callbacks | |
| 72 | 72 | void timer_ack_callback(); |
| 73 | 73 | void sound_data_w(UINT8 data); |
| 74 | ||
| 74 | ||
| 75 | 75 | // YM2151 chip callbacks |
| 76 | 76 | WRITE_LINE_MEMBER( sound_cpu_irq ); |
| 77 | 77 | |
| r15975 | r15976 | |
| 84 | 84 | READ16_MEMBER( iochip_1_r ); |
| 85 | 85 | WRITE16_MEMBER( iochip_1_w ); |
| 86 | 86 | WRITE16_MEMBER( iocontrol_w ); |
| 87 | ||
| 87 | ||
| 88 | 88 | // game-specific main CPU read/write handlers |
| 89 | 89 | WRITE16_MEMBER( loffire_sync0_w ); |
| 90 | 90 | READ16_MEMBER( rascot_excs_r ); |
| 91 | 91 | WRITE16_MEMBER( rascot_excs_w ); |
| 92 | 92 | READ16_MEMBER( smgp_excs_r ); |
| 93 | 93 | WRITE16_MEMBER( smgp_excs_w ); |
| 94 | ||
| 94 | ||
| 95 | 95 | // sound Z80 CPU read/write handlers |
| 96 | 96 | READ8_MEMBER( sound_data_r ); |
| 97 | ||
| 97 | ||
| 98 | 98 | // game-specific driver init |
| 99 | 99 | DECLARE_DRIVER_INIT(generic); |
| 100 | 100 | DECLARE_DRIVER_INIT(aburner2); |
| r15975 | r15976 | |
| 119 | 119 | TID_IRQ2_GEN, |
| 120 | 120 | TID_SOUND_WRITE |
| 121 | 121 | }; |
| 122 | ||
| 122 | ||
| 123 | 123 | // device overrides |
| 124 | 124 | virtual void machine_reset(); |
| 125 | 125 | virtual void video_start(); |
| r15975 | r15976 | |
| 148 | 148 | |
| 149 | 149 | // configuration |
| 150 | 150 | bool m_gprider_hack; |
| 151 | bool | |
| 151 | bool | |
| 152 | 152 | ioread_delegate m_iochip_custom_io_r[2][8]; |
| 153 | 153 | iowrite_delegate m_iochip_custom_io_w[2][8]; |
| 154 | UINT8 m_road_priority; | |
| 155 | ||
| 154 | UINT8 m_road_priority; | |
| 155 | ||
| 156 | 156 | // internal state |
| 157 | 157 | emu_timer * m_scanline_timer; |
| 158 | UINT8 m_timer_irq_state; | |
| 159 | UINT8 m_vblank_irq_state; | |
| 160 | UINT8 m_iochip_regs[2][8]; | |
| 158 | UINT8 m_timer_irq_state; | |
| 159 | UINT8 m_vblank_irq_state; | |
| 160 | UINT8 m_iochip_regs[2][8]; | |
| 161 | 161 | |
| 162 | 162 | // game-specific state |
| 163 | 163 | UINT16 * m_loffire_sync; |
| r15975 | r15976 | |
|---|---|---|
| 427 | 427 | DECLARE_DRIVER_INIT(maya); |
| 428 | 428 | DECLARE_DRIVER_INIT(rongrong); |
| 429 | 429 | DECLARE_DRIVER_INIT(momotaro); |
| 430 | ||
| 430 | ||
| 431 | 431 | }; |
| 432 | 432 | |
| 433 | 433 | //----------- defined in drivers/dynax.c ----------- |
| r15975 | r15976 | |
|---|---|---|
| 189 | 189 | m_protcount = 0; |
| 190 | 190 | return ret; |
| 191 | 191 | } |
| 192 | ||
| 192 | ||
| 193 | 193 | DECLARE_DRIVER_INIT(aladmdb); |
| 194 | 194 | DECLARE_DRIVER_INIT(mk3mdb); |
| 195 | 195 | DECLARE_DRIVER_INIT(ssf2mdb); |
| 196 | 196 | DECLARE_DRIVER_INIT(srmdb); |
| 197 | DECLARE_DRIVER_INIT(topshoot); | |
| 197 | DECLARE_DRIVER_INIT(topshoot); | |
| 198 | 198 | DECLARE_DRIVER_INIT(puckpkmn); |
| 199 | 199 | }; |
| 200 | 200 | |
| r15975 | r15976 | |
| 228 | 228 | |
| 229 | 229 | /* sound-related variables */ |
| 230 | 230 | UINT8 m_sound_banks; /* number of sound banks */ |
| 231 | ||
| 231 | ||
| 232 | 232 | DECLARE_DRIVER_INIT(c2boot); |
| 233 | 233 | DECLARE_DRIVER_INIT(bloxeedc); |
| 234 | 234 | DECLARE_DRIVER_INIT(columns); |
| r15975 | r15976 | |
| 266 | 266 | m_vdp1(*this, "vdp1"), |
| 267 | 267 | m_bioscpu(*this, "mtbios") |
| 268 | 268 | |
| 269 | ||
| 269 | ||
| 270 | 270 | { } |
| 271 | 271 | |
| 272 | 272 | UINT32 m_bios_mode; // determines whether ROM banks or Game data |
| r15975 | r15976 | |
| 364 | 364 | UINT8 m_jcart_io_data[2]; |
| 365 | 365 | |
| 366 | 366 | megadriv_cart m_md_cart; |
| 367 | ||
| 367 | ||
| 368 | 368 | DECLARE_DRIVER_INIT(hshavoc); |
| 369 | 369 | DECLARE_DRIVER_INIT(topshoot); |
| 370 | ||
| 370 | ||
| 371 | 371 | DECLARE_DRIVER_INIT(genesis); |
| 372 | 372 | DECLARE_DRIVER_INIT(mess_md_common); |
| 373 | 373 | DECLARE_DRIVER_INIT(_32x); |
| r15975 | r15976 | |
|---|---|---|
| 100 | 100 | protected: |
| 101 | 101 | // internal types |
| 102 | 102 | typedef delegate<void (UINT16)> output_delegate; |
| 103 | ||
| 103 | ||
| 104 | 104 | // timer IDs |
| 105 | 105 | enum |
| 106 | 106 | { |
| 107 | 107 | TID_IRQ2_GEN, |
| 108 | 108 | TID_SOUND_WRITE |
| 109 | 109 | }; |
| 110 | ||
| 110 | ||
| 111 | 111 | // device overrides |
| 112 | 112 | virtual void machine_reset(); |
| 113 | 113 | virtual void video_start(); |
| r15975 | r15976 | |
| 127 | 127 | output_delegate m_output_cb2; |
| 128 | 128 | |
| 129 | 129 | // internal state |
| 130 | UINT16 | |
| 130 | UINT16 | |
| 131 | 131 | emu_timer * m_scanline_timer; |
| 132 | UINT8 | |
| 132 | UINT8 | |
| 133 | 133 | int m_irq2_scanline; |
| 134 | UINT8 m_timer_irq_state; | |
| 135 | UINT8 m_vblank_irq_state; | |
| 136 | UINT8 m_misc_io_data[0x10]; | |
| 134 | UINT8 m_timer_irq_state; | |
| 135 | UINT8 m_vblank_irq_state; | |
| 136 | UINT8 m_misc_io_data[0x10]; | |
| 137 | 137 | bitmap_ind16 m_tmp_bitmap; |
| 138 | 138 | }; |
| r15975 | r15976 | |
|---|---|---|
| 83 | 83 | DECLARE_READ16_MEMBER( misc_io_r ); |
| 84 | 84 | DECLARE_WRITE16_MEMBER( misc_io_w ); |
| 85 | 85 | DECLARE_WRITE16_MEMBER( nop_w ); |
| 86 | ||
| 86 | ||
| 87 | 87 | // Z80 sound CPU read/write handlers |
| 88 | 88 | DECLARE_READ8_MEMBER( sound_data_r ); |
| 89 | 89 | |
| r15975 | r15976 | |
| 111 | 111 | TID_IRQ2_GEN, |
| 112 | 112 | TID_SOUND_WRITE |
| 113 | 113 | }; |
| 114 | ||
| 114 | ||
| 115 | 115 | // device overrides |
| 116 | 116 | virtual void machine_reset(); |
| 117 | 117 | virtual void video_start(); |
| r15975 | r15976 | |
| 126 | 126 | DECLARE_WRITE16_MEMBER( outrun_custom_io_w ); |
| 127 | 127 | DECLARE_READ16_MEMBER( shangon_custom_io_r ); |
| 128 | 128 | DECLARE_WRITE16_MEMBER( shangon_custom_io_w ); |
| 129 | ||
| 129 | ||
| 130 | 130 | // devices |
| 131 | 131 | required_device<sega_315_5195_mapper_device> m_mapper; |
| 132 | 132 | required_device<m68000_device> m_maincpu; |
| r15975 | r15976 | |
| 137 | 137 | |
| 138 | 138 | // memory |
| 139 | 139 | required_shared_ptr<UINT16> m_workram; |
| 140 | ||
| 140 | ||
| 141 | 141 | // configuration |
| 142 | read16_delegate m_custom_io_r; | |
| 143 | write16_delegate m_custom_io_w; | |
| 142 | read16_delegate m_custom_io_r; | |
| 143 | write16_delegate m_custom_io_w; | |
| 144 | 144 | const UINT8 * m_custom_map; |
| 145 | 145 | bool m_shangon_video; |
| 146 | 146 | |
| 147 | 147 | // internal state |
| 148 | 148 | emu_timer * m_scanline_timer; |
| 149 | UINT8 m_irq2_state; | |
| 150 | UINT8 m_adc_select; | |
| 151 | UINT8 m_vblank_irq_state; | |
| 149 | UINT8 m_irq2_state; | |
| 150 | UINT8 m_adc_select; | |
| 151 | UINT8 m_vblank_irq_state; | |
| 152 | 152 | }; |
| r15975 | r15976 | |
|---|---|---|
| 191 | 191 | DECLARE_DRIVER_INIT(cps2crpt); |
| 192 | 192 | DECLARE_DRIVER_INIT(ssf2tb); |
| 193 | 193 | DECLARE_DRIVER_INIT(pzloop2); |
| 194 | DECLARE_DRIVER_INIT(gigaman2); | |
| 194 | DECLARE_DRIVER_INIT(gigaman2); | |
| 195 | 195 | }; |
| 196 | 196 | |
| 197 | 197 | /*----------- defined in drivers/cps1.c -----------*/ |
| r15975 | r15976 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | int m_bg_base; |
| 47 | 47 | int m_bg_mask; |
| 48 | ||
| 48 | ||
| 49 | 49 | int m_bg2_base; |
| 50 | 50 | int m_bg2_mask; |
| 51 | 51 | int m_bg2_region; |
| r15975 | r15976 | |
|---|---|---|
| 217 | 217 | DECLARE_DRIVER_INIT(anteateruk); |
| 218 | 218 | DECLARE_DRIVER_INIT(superbon); |
| 219 | 219 | DECLARE_DRIVER_INIT(calipso); |
| 220 | DECLARE_DRIVER_INIT(moonwar); | |
| 220 | DECLARE_DRIVER_INIT(moonwar); | |
| 221 | 221 | }; |
| 222 | 222 | |
| 223 | 223 |
| r15975 | r15976 | |
|---|---|---|
| 39 | 39 | DECLARE_DRIVER_INIT(ad2083); |
| 40 | 40 | DECLARE_DRIVER_INIT(devilfsh); |
| 41 | 41 | DECLARE_DRIVER_INIT(mrkougar); |
| 42 | ||
| 42 | ||
| 43 | 43 | DECLARE_DRIVER_INIT(scobra); |
| 44 | 44 | DECLARE_DRIVER_INIT(stratgyx); |
| 45 | 45 | DECLARE_DRIVER_INIT(tazmani2); |
| r15975 | r15976 | |
| 51 | 51 | DECLARE_DRIVER_INIT(hustler); |
| 52 | 52 | DECLARE_DRIVER_INIT(hustlerd); |
| 53 | 53 | DECLARE_DRIVER_INIT(billiard); |
| 54 | }; | |
| 54 | }; | |
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | /*----------- defined in machine/scramble.c -----------*/ |
| r15975 | r15976 | |
|---|---|---|
| 129 | 129 | UINT8 m_asic3_h1; |
| 130 | 130 | UINT8 m_asic3_h2; |
| 131 | 131 | UINT16 m_asic3_hold; |
| 132 | ||
| 132 | ||
| 133 | 133 | DECLARE_DRIVER_INIT(orlegend); |
| 134 | 134 | }; |
| 135 | 135 | |
| r15975 | r15976 | |
| 215 | 215 | required_shared_ptr<UINT32> m_arm7_shareram; |
| 216 | 216 | |
| 217 | 217 | cpu_device *m_prot; |
| 218 | ||
| 218 | ||
| 219 | 219 | DECLARE_DRIVER_INIT(kov2); |
| 220 | 220 | DECLARE_DRIVER_INIT(kov2p); |
| 221 | 221 | DECLARE_DRIVER_INIT(martmast); |
| r15975 | r15976 | |
| 244 | 244 | required_shared_ptr<UINT32> m_arm_ram; |
| 245 | 245 | |
| 246 | 246 | cpu_device *m_prot; |
| 247 | ||
| 247 | ||
| 248 | 248 | DECLARE_DRIVER_INIT(theglad); |
| 249 | 249 | DECLARE_DRIVER_INIT(svg); |
| 250 | 250 | DECLARE_DRIVER_INIT(svgpcb); |
| 251 | 251 | DECLARE_DRIVER_INIT(killbldp); |
| 252 | 252 | DECLARE_DRIVER_INIT(dmnfrnt); |
| 253 | DECLARE_DRIVER_INIT(happy6); | |
| 253 | DECLARE_DRIVER_INIT(happy6); | |
| 254 | 254 | }; |
| 255 | 255 | |
| 256 | 256 | |
| r15975 | r15976 | |
| 290 | 290 | UINT16 m_olds_bs; |
| 291 | 291 | UINT16 m_olds_cmd3; |
| 292 | 292 | required_shared_ptr<UINT16> m_sharedprotram; |
| 293 | ||
| 293 | ||
| 294 | 294 | DECLARE_DRIVER_INIT(olds); |
| 295 | 295 | }; |
| 296 | 296 |
| r15975 | r15976 | |
|---|---|---|
| 491 | 491 | DECLARE_DIRECT_UPDATE_MEMBER(snes_spc_direct); |
| 492 | 492 | DECLARE_DIRECT_UPDATE_MEMBER(snes_direct); |
| 493 | 493 | DECLARE_DRIVER_INIT(snes); |
| 494 | DECLARE_DRIVER_INIT(snes_hirom); | |
| 494 | DECLARE_DRIVER_INIT(snes_hirom); | |
| 495 | 495 | DECLARE_DRIVER_INIT(snes_mess); |
| 496 | 496 | DECLARE_DRIVER_INIT(snesst); |
| 497 | 497 | }; |
| r15975 | r15976 | |
|---|---|---|
| 57 | 57 | DECLARE_WRITE16_MEMBER(sc4_mem_w); |
| 58 | 58 | |
| 59 | 59 | DECLARE_READ16_MEMBER(sc4_cs1_r); |
| 60 | ||
| 60 | ||
| 61 | 61 | DECLARE_DRIVER_INIT(sc4); |
| 62 | 62 | DECLARE_DRIVER_INIT(sc4mbus); |
| 63 | 63 | DECLARE_DRIVER_INIT(sc4cvani); |
| r15975 | r15976 | |
|---|---|---|
| 189 | 189 | DECLARE_DRIVER_INIT(znpwfv); |
| 190 | 190 | DECLARE_DRIVER_INIT(othellos); |
| 191 | 191 | DECLARE_DRIVER_INIT(mausuke); |
| 192 | ||
| 192 | ||
| 193 | 193 | DECLARE_DRIVER_INIT(saturnus); |
| 194 | 194 | DECLARE_DRIVER_INIT(saturneu); |
| 195 | 195 | DECLARE_DRIVER_INIT(saturnjp); |
| r15975 | r15976 | |
|---|---|---|
| 76 | 76 | INT32 m_xevious_bs[2]; |
| 77 | 77 | DECLARE_DRIVER_INIT(xevious); |
| 78 | 78 | DECLARE_DRIVER_INIT(xevios); |
| 79 | DECLARE_DRIVER_INIT(battles); | |
| 79 | DECLARE_DRIVER_INIT(battles); | |
| 80 | 80 | }; |
| 81 | 81 | |
| 82 | 82 |
| r15975 | r15976 | |
|---|---|---|
| 73 | 73 | m_read_port(0), |
| 74 | 74 | m_mj_input_num(0) |
| 75 | 75 | { } |
| 76 | ||
| 76 | ||
| 77 | 77 | // PPI read/write callbacks |
| 78 | 78 | DECLARE_WRITE8_MEMBER( misc_control_w ); |
| 79 | 79 | DECLARE_WRITE8_MEMBER( tilemap_sound_w ); |
| r15975 | r15976 | |
| 83 | 83 | DECLARE_WRITE16_MEMBER( standard_io_w ); |
| 84 | 84 | DECLARE_READ16_MEMBER( misc_io_r ); |
| 85 | 85 | DECLARE_WRITE16_MEMBER( misc_io_w ); |
| 86 | ||
| 86 | ||
| 87 | 87 | // Z80 sound CPU read/write handlers |
| 88 | 88 | DECLARE_READ8_MEMBER( sound_data_r ); |
| 89 | 89 | DECLARE_WRITE8_MEMBER( n7751_command_w ); |
| r15975 | r15976 | |
| 131 | 131 | TID_INIT_I8751, |
| 132 | 132 | TID_PPI_WRITE |
| 133 | 133 | }; |
| 134 | ||
| 134 | ||
| 135 | 135 | // driver overrides |
| 136 | 136 | virtual void video_start(); |
| 137 | 137 | virtual void machine_reset(); |
| r15975 | r15976 | |
| 140 | 140 | // I8751 simulations |
| 141 | 141 | void dumpmtmt_i8751_sim(); |
| 142 | 142 | void quartet_i8751_sim(); |
| 143 | ||
| 143 | ||
| 144 | 144 | // custom I/O handlers |
| 145 | 145 | DECLARE_READ16_MEMBER( aceattaa_custom_io_r ); |
| 146 | 146 | DECLARE_READ16_MEMBER( mjleague_custom_io_r ); |
| r15975 | r15976 | |
| 159 | 159 | optional_device<i8243_device> m_n7751_i8243; |
| 160 | 160 | required_device<nvram_device> m_nvram; |
| 161 | 161 | |
| 162 | // memory pointers | |
| 162 | // memory pointers | |
| 163 | 163 | required_shared_ptr<UINT16> m_workram; |
| 164 | 164 | |
| 165 | 165 | // configuration |
| r15975 | r15976 | |
| 169 | 169 | lamp_changed_delegate m_lamp_changed_w; |
| 170 | 170 | |
| 171 | 171 | // internal state |
| 172 | UINT8 m_video_control; | |
| 173 | UINT8 m_mcu_control; | |
| 174 | UINT8 m_n7751_command; | |
| 175 | UINT32 m_n7751_rom_address; | |
| 176 | UINT8 m_last_buttons1; | |
| 177 | UINT8 m_last_buttons2; | |
| 178 | UINT8 m_read_port; | |
| 179 | UINT8 m_mj_input_num; | |
| 172 | UINT8 m_video_control; | |
| 173 | UINT8 m_mcu_control; | |
| 174 | UINT8 m_n7751_command; | |
| 175 | UINT32 m_n7751_rom_address; | |
| 176 | UINT8 m_last_buttons1; | |
| 177 | UINT8 m_last_buttons2; | |
| 178 | UINT8 m_read_port; | |
| 179 | UINT8 m_mj_input_num; | |
| 180 | 180 | }; |
| r15975 | r15976 | |
|---|---|---|
| 200 | 200 | DECLARE_DRIVER_INIT(kog); |
| 201 | 201 | DECLARE_DRIVER_INIT(lans2004); |
| 202 | 202 | DECLARE_DRIVER_INIT(sbp); |
| 203 | DECLARE_DRIVER_INIT(mvs); | |
| 203 | DECLARE_DRIVER_INIT(mvs); | |
| 204 | 204 | void mvs_install_protection(device_image_interface& image); |
| 205 | 205 | }; |
| 206 | 206 |
| r15975 | r15976 | |
|---|---|---|
| 67 | 67 | DECLARE_WRITE8_MEMBER( tilemap_sound_w ); |
| 68 | 68 | DECLARE_WRITE8_MEMBER( sub_control_adc_w ); |
| 69 | 69 | DECLARE_READ8_MEMBER( adc_status_r ); |
| 70 | ||
| 70 | ||
| 71 | 71 | // main CPU read/write handlers |
| 72 | 72 | DECLARE_READ16_MEMBER( hangon_io_r ); |
| 73 | 73 | DECLARE_WRITE16_MEMBER( hangon_io_w ); |
| r15975 | r15976 | |
| 100 | 100 | TID_INIT_I8751, |
| 101 | 101 | TID_PPI_WRITE |
| 102 | 102 | }; |
| 103 | ||
| 103 | ||
| 104 | 104 | // driver overrides |
| 105 | 105 | virtual void video_start(); |
| 106 | 106 | virtual void machine_reset(); |
| r15975 | r15976 | |
| 116 | 116 | optional_device<i8751_device> m_mcu; |
| 117 | 117 | required_device<i8255_device> m_i8255_1; |
| 118 | 118 | required_device<i8255_device> m_i8255_2; |
| 119 | ||
| 120 | // memory pointers | |
| 119 | ||
| 120 | // memory pointers | |
| 121 | 121 | required_shared_ptr<UINT16> m_workram; |
| 122 | ||
| 122 | ||
| 123 | 123 | // configuration |
| 124 | 124 | bool m_sharrier_video; |
| 125 | 125 | i8751_sim_delegate m_i8751_vblank_hook; |
| 126 | 126 | |
| 127 | 127 | // internal state |
| 128 | UINT8 | |
| 128 | UINT8 | |
| 129 | 129 | }; |
| r15975 | r15976 | |
|---|---|---|
| 19 | 19 | /* video-related */ |
| 20 | 20 | n64_rdp *m_rdp; |
| 21 | 21 | DECLARE_DRIVER_INIT(aleck64); |
| 22 | ||
| 22 | ||
| 23 | 23 | }; |
| 24 | 24 | |
| 25 | 25 | /*----------- devices -----------*/ |
| r15975 | r15976 | |
|---|---|---|
| 91 | 91 | DECLARE_READ16_MEMBER( standard_io_r ); |
| 92 | 92 | DECLARE_WRITE16_MEMBER( standard_io_w ); |
| 93 | 93 | DECLARE_WRITE16_MEMBER( atomicp_sound_w ); |
| 94 | ||
| 94 | ||
| 95 | 95 | // sound CPU read/write handlers |
| 96 | 96 | DECLARE_WRITE8_MEMBER( upd7759_control_w ); |
| 97 | 97 | DECLARE_READ8_MEMBER( upd7759_status_r ); |
| r15975 | r15976 | |
| 107 | 107 | DECLARE_DRIVER_INIT(generic_5358_small); |
| 108 | 108 | DECLARE_DRIVER_INIT(generic_5797); |
| 109 | 109 | DECLARE_DRIVER_INIT(generic_korean); |
| 110 | ||
| 110 | ||
| 111 | 111 | // game-specific driver init |
| 112 | 112 | DECLARE_DRIVER_INIT(isgsm); |
| 113 | 113 | DECLARE_DRIVER_INIT(tturf_5704); |
| r15975 | r15976 | |
| 133 | 133 | DECLARE_DRIVER_INIT(shinobi3_5358); |
| 134 | 134 | DECLARE_DRIVER_INIT(goldnaxe_5797); |
| 135 | 135 | DECLARE_DRIVER_INIT(altbeas4_5521); |
| 136 | ||
| 136 | ||
| 137 | 137 | // video updates |
| 138 | 138 | UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 139 | 139 | |
| r15975 | r15976 | |
| 163 | 163 | ROM_BOARD_171_5797, // 171-5797 |
| 164 | 164 | ROM_BOARD_KOREAN // (custom Korean) |
| 165 | 165 | }; |
| 166 | ||
| 166 | ||
| 167 | 167 | // device overrides |
| 168 | 168 | virtual void video_start(); |
| 169 | 169 | virtual void machine_reset(); |
| 170 | 170 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 171 | 171 | |
| 172 | // internal helpers | |
| 172 | // internal helpers | |
| 173 | 173 | void init_generic(segas16b_rom_board rom_board); |
| 174 | 174 | |
| 175 | 175 | // i8751 simulations |
| r15975 | r15976 | |
| 191 | 191 | DECLARE_READ16_MEMBER( sdi_custom_io_r ); |
| 192 | 192 | DECLARE_READ16_MEMBER( sjryuko_custom_io_r ); |
| 193 | 193 | DECLARE_WRITE16_MEMBER( sjryuko_custom_io_w ); |
| 194 | ||
| 194 | ||
| 195 | 195 | // devices |
| 196 | 196 | required_device<sega_315_5195_mapper_device> m_mapper; |
| 197 | 197 | required_device<m68000_device> m_maincpu; |
| r15975 | r15976 | |
| 205 | 205 | optional_device<sega_315_5250_compare_timer_device> m_cmptimer_2; |
| 206 | 206 | required_device<nvram_device> m_nvram; |
| 207 | 207 | |
| 208 | // memory pointers | |
| 208 | // memory pointers | |
| 209 | 209 | required_shared_ptr<UINT16> m_workram; |
| 210 | 210 | |
| 211 | 211 | // configuration |
| 212 | 212 | segas16b_rom_board m_romboard; |
| 213 | 213 | int m_tilemap_type; |
| 214 | read16_delegate m_custom_io_r; | |
| 215 | write16_delegate m_custom_io_w; | |
| 214 | read16_delegate m_custom_io_r; | |
| 215 | write16_delegate m_custom_io_w; | |
| 216 | 216 | bool m_disable_screen_blanking; |
| 217 | 217 | const UINT8 * m_i8751_initial_config; |
| 218 | 218 | i8751_sim_delegate m_i8751_vblank_hook; |
| 219 | UINT8 | |
| 219 | UINT8 | |
| 220 | 220 | |
| 221 | 221 | // game-specific state |
| 222 | UINT8 m_atomicp_sound_count; | |
| 223 | UINT8 m_hwc_input_value; | |
| 224 | UINT8 m_mj_input_num; | |
| 225 | UINT8 m_mj_last_val; | |
| 222 | UINT8 m_atomicp_sound_count; | |
| 223 | UINT8 m_hwc_input_value; | |
| 224 | UINT8 m_mj_input_num; | |
| 225 | UINT8 m_mj_last_val; | |
| 226 | 226 | }; |
| 227 | 227 | |
| 228 | 228 | |
| r15975 | r15976 | |
| 279 | 279 | virtual void machine_reset(); |
| 280 | 280 | |
| 281 | 281 | // configuration |
| 282 | UINT8 | |
| 282 | UINT8 | |
| 283 | 283 | typedef delegate<UINT32 (UINT32)> security_callback_delegate; |
| 284 | 284 | security_callback_delegate m_security_callback; |
| 285 | 285 | |
| 286 | 286 | // internal state |
| 287 | UINT16 m_cart_addrlatch; | |
| 288 | UINT32 m_cart_addr; | |
| 289 | UINT8 m_data_type; | |
| 290 | UINT32 m_data_addr; | |
| 291 | UINT8 m_data_mode; | |
| 292 | UINT16 m_addr_latch; | |
| 293 | UINT32 m_security_value; | |
| 294 | UINT16 m_security_latch; | |
| 295 | UINT8 m_rle_control_position; | |
| 296 | UINT8 m_rle_control_byte; | |
| 297 | bool m_rle_latched; | |
| 298 | UINT8 m_rle_byte; | |
| 287 | UINT16 m_cart_addrlatch; | |
| 288 | UINT32 m_cart_addr; | |
| 289 | UINT8 m_data_type; | |
| 290 | UINT32 m_data_addr; | |
| 291 | UINT8 m_data_mode; | |
| 292 | UINT16 m_addr_latch; | |
| 293 | UINT32 m_security_value; | |
| 294 | UINT16 m_security_latch; | |
| 295 | UINT8 m_rle_control_position; | |
| 296 | UINT8 m_rle_control_byte; | |
| 297 | bool m_rle_latched; | |
| 298 | UINT8 m_rle_byte; | |
| 299 | 299 | }; |
| r15975 | r15976 | |
|---|---|---|
| 72 | 72 | memset(m_wwally_last_x, 0, sizeof(m_wwally_last_x)); |
| 73 | 73 | memset(m_wwally_last_y, 0, sizeof(m_wwally_last_y)); |
| 74 | 74 | } |
| 75 | ||
| 75 | ||
| 76 | 76 | // driver init |
| 77 | 77 | DECLARE_DRIVER_INIT(ddcrew); |
| 78 | 78 | DECLARE_DRIVER_INIT(lghost); |
| r15975 | r15976 | |
| 80 | 80 | DECLARE_DRIVER_INIT(generic_5874); |
| 81 | 81 | DECLARE_DRIVER_INIT(wwally); |
| 82 | 82 | DECLARE_DRIVER_INIT(generic_5987); |
| 83 | ||
| 83 | ||
| 84 | 84 | // memory mapping |
| 85 | 85 | void memory_mapper(sega_315_5195_mapper_device &mapper, UINT8 index); |
| 86 | 86 | UINT8 mapper_sound_r(); |
| r15975 | r15976 | |
| 130 | 130 | ROM_BOARD_171_5874, // 171-5874 |
| 131 | 131 | ROM_BOARD_171_5987 // 171-5987 |
| 132 | 132 | }; |
| 133 | ||
| 133 | ||
| 134 | 134 | // device overrides |
| 135 | 135 | virtual void machine_reset(); |
| 136 | 136 | virtual void video_start(); |
| 137 | 137 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 138 | 138 | |
| 139 | // internal helpers | |
| 139 | // internal helpers | |
| 140 | 140 | void init_generic(segas18_rom_board rom_board); |
| 141 | 141 | void set_grayscale(bool enable); |
| 142 | 142 | void set_vdp_enable(bool enable); |
| r15975 | r15976 | |
| 151 | 151 | required_device<sega_genesis_vdp_device> m_vdp; |
| 152 | 152 | required_device<nvram_device> m_nvram; |
| 153 | 153 | |
| 154 | // memory pointers | |
| 154 | // memory pointers | |
| 155 | 155 | required_shared_ptr<UINT16> m_workram; |
| 156 | ||
| 156 | ||
| 157 | 157 | // configuration |
| 158 | 158 | segas18_rom_board m_romboard; |
| 159 | read16_delegate m_custom_io_r; | |
| 160 | write16_delegate m_custom_io_w; | |
| 161 | bool m_has_guns; | |
| 159 | read16_delegate m_custom_io_r; | |
| 160 | write16_delegate m_custom_io_w; | |
| 161 | bool m_has_guns; | |
| 162 | 162 | |
| 163 | 163 | // internal state |
| 164 | bool m_grayscale_enable; | |
| 165 | bool m_vdp_enable; | |
| 166 | UINT8 m_vdp_mixing; | |
| 164 | bool m_grayscale_enable; | |
| 165 | bool m_vdp_enable; | |
| 166 | UINT8 m_vdp_mixing; | |
| 167 | 167 | bitmap_ind16 m_temp_bitmap; |
| 168 | UINT8 m_mcu_data; | |
| 169 | UINT8 m_misc_io_data[0x10]; | |
| 170 | ||
| 168 | UINT8 m_mcu_data; | |
| 169 | UINT8 m_misc_io_data[0x10]; | |
| 170 | ||
| 171 | 171 | // game-specific state |
| 172 | UINT8 m_wwally_last_x[3]; | |
| 173 | UINT8 m_wwally_last_y[3]; | |
| 174 | UINT8 m_lghost_value; | |
| 175 | UINT8 m_lghost_select; | |
| 172 | UINT8 m_wwally_last_x[3]; | |
| 173 | UINT8 m_wwally_last_y[3]; | |
| 174 | UINT8 m_lghost_value; | |
| 175 | UINT8 m_lghost_select; | |
| 176 | 176 | }; |
| r15975 | r15976 | |
|---|---|---|
| 843 | 843 | $(DRIVERS)/jpmimpct.o $(VIDEO)/jpmimpct.o \ |
| 844 | 844 | $(DRIVERS)/pluto5.o \ |
| 845 | 845 | $(DRIVERS)/jpmsys7.o \ |
| 846 | $(VIDEO)/awpvid.o \ | |
| 847 | $(MACHINE)/meters.o \ | |
| 848 | $(MACHINE)/steppers.o \ | |
| 846 | 849 | |
| 847 | 850 | $(MAMEOBJ)/kaneko.a: \ |
| 848 | 851 | $(DRIVERS)/airbustr.o $(VIDEO)/airbustr.o \ |
| r15975 | r15976 | |
| 2061 | 2064 | |
| 2062 | 2065 | $(DRIVERS)/jankenmn.o: $(LAYOUT)/jankenmn.lh |
| 2063 | 2066 | |
| 2067 | $(DRIVERS)/jpmimpct.o: $(LAYOUT)/awpvid16.lh | |
| 2068 | ||
| 2069 | $(DRIVERS)/jpmsys5.o: $(LAYOUT)/awpvid16.lh | |
| 2070 | ||
| 2064 | 2071 | $(DRIVERS)/kas89.o: $(LAYOUT)/kas89.lh |
| 2065 | 2072 | |
| 2066 | 2073 | $(DRIVERS)/kingdrby.o: $(LAYOUT)/kingdrby.lh |
| r15975 | r15976 | |
| 2085 | 2092 | $(DRIVERS)/mpoker.o: $(LAYOUT)/mpoker.lh |
| 2086 | 2093 | |
| 2087 | 2094 | $(DRIVERS)/mpu4mod2sw.o: $(LAYOUT)/connect4.lh \ |
| 2088 | ||
| 2095 | ||
| 2089 | 2096 | $(DRIVERS)/mpu4mod4yam.o: $(LAYOUT)/gamball.lh \ |
| 2090 | 2097 | |
| 2091 | 2098 | $(DRIVERS)/mpu4hw.o: $(LAYOUT)/mpu4.lh \ |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /* ST0020 - Seta Zooming Sprites + Blitter |
| 2 | ||
| 2 | ||
| 3 | 3 | (gdfs also has a tilemap, I don't know if this chip supplies that) |
| 4 | 4 | |
| 5 | 5 | The ST0032 seems very similar, used by the newer Jockey Club II boards |
| r15975 | r15976 | |
| 49 | 49 | void st0020_device::device_start() |
| 50 | 50 | { |
| 51 | 51 | m_st0020_gfxram = auto_alloc_array_clear(machine(), UINT16, 4 * 0x100000 / 2); |
| 52 | m_st0020_spriteram = auto_alloc_array_clear(machine(), UINT16, 0x80000 / 2); | |
| 53 | m_st0020_blitram = auto_alloc_array_clear(machine(), UINT16, 0x100 / 2); | |
| 52 | m_st0020_spriteram = auto_alloc_array_clear(machine(), UINT16, 0x80000 / 2); | |
| 53 | m_st0020_blitram = auto_alloc_array_clear(machine(), UINT16, 0x100 / 2); | |
| 54 | 54 | |
| 55 | 55 | for (m_gfx_index = 0; m_gfx_index < MAX_GFX_ELEMENTS; m_gfx_index++) |
| 56 | 56 | if (machine().gfx[m_gfx_index] == 0) |
| r15975 | r15976 | |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | |
| 203 | ||
| 203 | ||
| 204 | 204 | /* |
| 205 | 205 | Sprites RAM is 0x80000 bytes long. The first 0x2000? bytes hold a list |
| 206 | 206 | of sprites to display (the list can be made shorter using an end-of-list |
| r15975 | r15976 | |
| 381 | 381 | } |
| 382 | 382 | } |
| 383 | 383 | |
| 384 | ||
| 384 | ||
| 385 | 385 | #if 0 /* doesn't compile in a device context (can't use ui_draw_text? */ |
| 386 | 386 | if (machine.input().code_pressed(KEYCODE_Z)) /* Display some info on each sprite */ |
| 387 | 387 | { |
| r15975 | r15976 | |
|---|---|---|
| 10 | 10 | static void set_is_jclub2o(device_t &device, int is_jclub2o); |
| 11 | 11 | |
| 12 | 12 | int m_gfx_index; |
| 13 | ||
| 13 | ||
| 14 | 14 | // see if we can handle the difference between this and the st0032 in here, or if we need another |
| 15 | 15 | // device |
| 16 | 16 | int m_is_st0032; |
| 17 | ||
| 17 | ||
| 18 | 18 | // per-game hack |
| 19 | 19 | int m_is_jclub2; |
| 20 | 20 |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /* |
| 2 | ||
| 2 | SCN2674 - Advanced Video Display Controller (AVDC) (Video Chip) | |
| 3 | 3 | |
| 4 | This is a somewhat terrible implementation and should probably just be rewritten from scratch | |
| 5 | it is currently used by mpu4vid.c and still quite heavily tied to the behavior of that. | |
| 4 | This is a somewhat terrible implementation and should probably just be rewritten from scratch | |
| 5 | it is currently used by mpu4vid.c and still quite heavily tied to the behavior of that. | |
| 6 | 6 | |
| 7 | I don't know if the timing bugs with those games comes from this, or emulation of the other | |
| 8 | MPU4 devices tho because even some of the non-video games seem laggy and prone to failure. | |
| 7 | I don't know if the timing bugs with those games comes from this, or emulation of the other | |
| 8 | MPU4 devices tho because even some of the non-video games seem laggy and prone to failure. | |
| 9 | 9 | |
| 10 | -- currently expects (from the host driver) | |
| 11 | decoded gfx in regions 0,1,2,3 in various formats (normal, double height etc.) | |
| 12 | eventually the chip should just handle this without the need to decode anything | |
| 10 | -- currently expects (from the host driver) | |
| 11 | decoded gfx in regions 0,1,2,3 in various formats (normal, double height etc.) | |
| 12 | eventually the chip should just handle this without the need to decode anything | |
| 13 | 13 | |
| 14 | 14 | a callback function for when the irqs are changed / updated |
| 15 | 15 | |
| 16 | ||
| 16 | a call from the video start from your video start function | |
| 17 | 17 | |
| 18 | ||
| 18 | a call to the scanline function each scanline | |
| 19 | 19 | |
| 20 | a call to the video draw (with ram pointer) from a screen update function | |
| 21 | ||
| 22 | video to be on the primary screen | |
| 20 | a call to the video draw (with ram pointer) from a screen update function | |
| 23 | 21 | |
| 24 | this could all be simplified / changed, the chip can actually be hooked up in various ways | |
| 25 | including working on a per scanline basis with almost no ram | |
| 22 | video to be on the primary screen | |
| 23 | ||
| 24 | this could all be simplified / changed, the chip can actually be hooked up in various ways | |
| 25 | including working on a per scanline basis with almost no ram | |
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | #include "emu.h" |
| r15975 | r15976 | |
| 35 | 35 | |
| 36 | 36 | static void default_scn2674_callback(running_machine &machine) |
| 37 | 37 | { |
| 38 | // | |
| 38 | // logerror("no scn2674_callback\n"); | |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | |
| r15975 | r15976 | |
| 697 | 697 | m_linecounter =297;//hold the counter in the vsync point, it's not clear whether this is done or not |
| 698 | 698 | } |
| 699 | 699 | scn2674_line(machine); |
| 700 | // | |
| 700 | // timer.machine().scheduler().synchronize(); | |
| 701 | 701 | } |
| 702 | 702 | |
| 703 | 703 |
| r15975 | r15976 | |
|---|---|---|
| 14 | 14 | static void set_irq_update_callback(device_t &device, s2574_interrupt_callback_func callback); |
| 15 | 15 | |
| 16 | 16 | |
| 17 | // int m_gfx_index; | |
| 18 | ||
| 17 | // int m_gfx_index; | |
| 18 | ||
| 19 | 19 | DECLARE_READ16_MEMBER( mpu4_vid_scn2674_r ); |
| 20 | 20 | DECLARE_WRITE16_MEMBER( mpu4_vid_scn2674_w ); |
| 21 | 21 |
| r15975 | r15976 | |
|---|---|---|
| 48 | 48 | { |
| 49 | 49 | // compute palette info |
| 50 | 50 | segaic16_palette_init(0x1000); |
| 51 | ||
| 51 | ||
| 52 | 52 | if (m_shangon_video) |
| 53 | 53 | { |
| 54 | 54 | // initialize the tile/text layers |
| r15975 | r15976 | |
|---|---|---|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
| 40 | ||
| 40 | ||
| 41 | 41 | /* Fill the bitmap with pen 0. This is wrong, but will work most of |
| 42 | 42 | the times. To do it right, each pixel should be drawn with pen 0 |
| 43 | 43 | of the bottomost tile that covers it (which is pretty tricky to do) */ |
| r15975 | r15976 | |
|---|---|---|
| 59 | 59 | m_framebuffer_scrollx = 0; |
| 60 | 60 | m_framebuffer_enable = 0; |
| 61 | 61 | m_regs1_i = 0x0; |
| 62 | ||
| 62 | ||
| 63 | 63 | m_framebuffer_bright1 = 0; |
| 64 | 64 | m_framebuffer_bright2 = 0; |
| 65 | 65 | } |
| r15975 | r15976 | |
| 147 | 147 | UINT32 address = m_regs1_address_regs[1]| (m_regs1_address_regs[0]<<16); |
| 148 | 148 | UINT8* rledata = memregion(":gfx2")->base(); |
| 149 | 149 | |
| 150 | // | |
| 150 | // printf("galpani3_regs1_go_w? %08x\n",address ); | |
| 151 | 151 | if ((data==0x2000) || (data==0x3000)) gp3_do_rle(address, m_framebuffer, rledata); |
| 152 | 152 | } |
| 153 | 153 |
| r15975 | r15976 | |
|---|---|---|
| 22 | 22 | { |
| 23 | 23 | public: |
| 24 | 24 | kaneko_grap2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 25 | ||
| 26 | 25 | |
| 26 | ||
| 27 | 27 | int m_chipnum; // used to decide where we write the palette |
| 28 | 28 | |
| 29 | 29 | static void set_chipnum(device_t &device, int chipnum); |
| r15975 | r15976 | |
| 41 | 41 | UINT16 m_framebuffer_scrollx; |
| 42 | 42 | UINT16 m_framebuffer_enable; |
| 43 | 43 | int m_regs1_i; |
| 44 | ||
| 44 | ||
| 45 | 45 | UINT16 m_framebuffer_bright1; |
| 46 | 46 | UINT16 m_framebuffer_bright2; |
| 47 | 47 | |
| 48 | 48 | UINT16 m_regs1_address_regs[0x2]; |
| 49 | ||
| 49 | ||
| 50 | 50 | DECLARE_WRITE16_MEMBER(galpani3_framebuffer1_enable_w) { m_framebuffer_enable = data; } |
| 51 | 51 | |
| 52 | 52 | DECLARE_WRITE16_MEMBER(galpani3_framebuffer1_scrolly_w) { m_framebuffer_scrolly = data; } |
| r15975 | r15976 | |
|---|---|---|
| 4 | 4 | { |
| 5 | 5 | public: |
| 6 | 6 | kaneko_view2_tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 7 | ||
| 7 | ||
| 8 | 8 | // used to set values when creating device |
| 9 | 9 | static void set_gfx_region(device_t &device, int region); |
| 10 | 10 | static void set_offset(device_t &device, int dx, int dy, int xdim, int ydim); |
| r15975 | r15976 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | /* |
| 4 | 4 | Kaneko 16-bit sprites |
| 5 | VU-002 052 151021 ('type 0') (blazeon, berlwall etc., confirmed) | |
| 6 | KC-002 L0002 023 9321EK702 ('type 1') (gtmr, bloodwar etc., confirmed) | |
| 5 | VU-002 052 151021 ('type 0') (blazeon, berlwall etc., confirmed) | |
| 6 | KC-002 L0002 023 9321EK702 ('type 1') (gtmr, bloodwar etc., confirmed) | |
| 7 | 7 | |
| 8 | 8 | |
| 9 | 9 | [ 1024 Sprites ] |
| r15975 | r15976 | |
| 14 | 14 | sprites on the screen |
| 15 | 15 | |
| 16 | 16 | |
| 17 | Notes: | |
| 18 | - Blaze On has 2 sprite chips, with 2 sets of sprite registers, the | |
| 19 | existing code here just handles it as one, ignoring the second | |
| 20 | set of registers, we should really be producing 2 sprite bitmaps | |
| 21 | and manually mixing them. | |
| 17 | Notes: | |
| 18 | - Blaze On has 2 sprite chips, with 2 sets of sprite registers, the | |
| 19 | existing code here just handles it as one, ignoring the second | |
| 20 | set of registers, we should really be producing 2 sprite bitmaps | |
| 21 | and manually mixing them. | |
| 22 | 22 | |
| 23 | 23 | */ |
| 24 | 24 | |
| r15975 | r15976 | |
| 120 | 120 | |
| 121 | 121 | Each sprite is always stuffed in 4 words. There may be some extra |
| 122 | 122 | padding words though |
| 123 | ||
| 124 | Examples are: | |
| 125 | 123 | |
| 124 | Examples are: | |
| 125 | ||
| 126 | 126 | Type 0: shogwarr, blazeon, bakubrkr. |
| 127 | 127 | Type 1: gtmr. |
| 128 | 128 | |
| r15975 | r15976 | |
| 170 | 170 | s->flipx = (attr & 0x0200); |
| 171 | 171 | s->code += (s->y & 1) << 16; // bloodwar |
| 172 | 172 | } |
| 173 | ||
| 173 | ||
| 174 | 174 | void kaneko_vu002_sprite_device::get_sprite_attributes(struct tempsprite *s, UINT16 attr) |
| 175 | 175 | { |
| 176 | 176 | s->flipy = (attr & 0x0001); |
| r15975 | r15976 | |
| 346 | 346 | { |
| 347 | 347 | int flags; |
| 348 | 348 | |
| 349 | flags = kaneko16_parse_sprite_type012(machine, i,s, spriteram16, spriteram16_bytes); | |
| 349 | flags = kaneko16_parse_sprite_type012(machine, i,s, spriteram16, spriteram16_bytes); | |
| 350 | 350 | |
| 351 | 351 | if (flags == -1) // End of Sprites |
| 352 | 352 | break; |
| r15975 | r15976 | |
|---|---|---|
| 31 | 31 | { |
| 32 | 32 | public: |
| 33 | 33 | kaneko16_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, device_type type); |
| 34 | ||
| 34 | ||
| 35 | 35 | static void set_altspacing(device_t &device, int spacing); |
| 36 | 36 | static void set_fliptype(device_t &device, int fliptype); |
| 37 | 37 | static void set_offsets(device_t &device, int xoffs, int yoffs); |
| r15975 | r15976 | |
| 101 | 101 | public: |
| 102 | 102 | kaneko_vu002_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 103 | 103 | void get_sprite_attributes(struct tempsprite *s, UINT16 attr); |
| 104 | int get_sprite_type(void){ return 0; }; | |
| 104 | int get_sprite_type(void){ return 0; }; | |
| 105 | 105 | }; |
| 106 | 106 | |
| 107 | 107 | extern const device_type KANEKO_VU002_SPRITE; |
| r15975 | r15976 | |
| 111 | 111 | public: |
| 112 | 112 | kaneko_kc002_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 113 | 113 | void get_sprite_attributes(struct tempsprite *s, UINT16 attr); |
| 114 | int get_sprite_type(void){ return 1; }; | |
| 114 | int get_sprite_type(void){ return 1; }; | |
| 115 | 115 | }; |
| 116 | 116 | |
| 117 | 117 | extern const device_type KANEKO_KC002_SPRITE; |
| r15975 | r15976 | |
|---|---|---|
| 133 | 133 | bitmap_ind8 &priority_bitmap = screen.machine().priority_bitmap; |
| 134 | 134 | for (int y = cliprect.min_y; y <= cliprect.max_y; y++) |
| 135 | 135 | { |
| 136 | // UINT16 *src = vdp->m_render_line; // can't use this because we're not in RGB32, which we'll need to be if there are palette effects | |
| 137 | // UINT16 *src2 = vdp->m_render_line_raw; | |
| 136 | // UINT16 *src = vdp->m_render_line; // can't use this because we're not in RGB32, which we'll need to be if there are palette effects | |
| 137 | // UINT16 *src2 = vdp->m_render_line_raw; | |
| 138 | 138 | |
| 139 | 139 | UINT16 *dst = &bitmap.pix(y); |
| 140 | 140 | UINT8 *pri = &priority_bitmap.pix(y); |
| r15975 | r15976 | |
| 147 | 147 | { |
| 148 | 148 | switch (pix & 0xc0) |
| 149 | 149 | { |
| 150 | case 0x00: | |
| 150 | case 0x00: | |
| 151 | 151 | dst[x] = pix + 0x2000; /* 0x2040 - would be shadow? */ |
| 152 | 152 | break; |
| 153 | 153 | case 0x40: |
| r15975 | r15976 | |
|---|---|---|
| 639 | 639 | MCFG_SOUND_ADD("sn1", SN76489A_NEW, XTAL_4MHz) |
| 640 | 640 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 641 | 641 | MCFG_SOUND_CONFIG(psg_intf) |
| 642 | ||
| 642 | ||
| 643 | 643 | MCFG_SOUND_ADD("sn2", SN76489A_NEW, XTAL_4MHz) |
| 644 | 644 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 645 | 645 | MCFG_SOUND_CONFIG(psg_intf) |
| 646 | ||
| 646 | ||
| 647 | 647 | MCFG_SOUND_ADD("sn3", SN76489A_NEW, XTAL_4MHz) |
| 648 | 648 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 649 | 649 | MCFG_SOUND_CONFIG(psg_intf) |
| 650 | ||
| 650 | ||
| 651 | 651 | MCFG_SOUND_ADD("sn4", SN76489A_NEW, XTAL_4MHz) |
| 652 | 652 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 653 | 653 | MCFG_SOUND_CONFIG(psg_intf) |
| r15975 | r15976 | |
|---|---|---|
| 508 | 508 | |
| 509 | 509 | static MACHINE_RESET( galsnew ) |
| 510 | 510 | { |
| 511 | // | |
| 511 | // expro02_state *state = machine.driver_data<expro02_state>(); | |
| 512 | 512 | } |
| 513 | 513 | |
| 514 | 514 | /************************************* |
| r15975 | r15976 | |
|---|---|---|
| 3109 | 3109 | GAME( 198?, sc1bigmt , 0 , scorpion1_viper , clatt , bfm_sc1_state, nocrypt , 0, "BFM", "The Big Match (Bellfruit) (Scorpion 1)", GAME_FLAGS ) |
| 3110 | 3110 | GAME( 198?, sc1calyp , 0 , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM/ELAM", "Calypso (Bellfruit) (Dutch) (Scorpion 1)", GAME_FLAGS ) |
| 3111 | 3111 | GAME( 198?, sc1carro , 0 , scorpion1 , scorpion1 , bfm_sc1_state, nocrypt_bank0 , 0, "BFM/ELAM", "Carrousel (Bellfruit) (Scorpion 1)", GAME_FLAGS ) |
| 3112 | GAME( 198?, sc1cshat , 0 , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM", "Cash Attraction (Bellfruit) (set 1) (Scorpion 1)", GAME_FLAGS ) | |
| 3113 | GAME( 198?, sc1cshata , sc1cshat , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM", "Cash Attraction (Bellfruit) (set 2) (Scorpion 1)", GAME_FLAGS ) | |
| 3114 | GAME( 198?, sc1cshatb , sc1cshat , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM", "Cash Attraction (Bellfruit) (set 3) (Scorpion 1)", GAME_FLAGS ) | |
| 3115 | GAME( 198?, sc1cshatc , sc1cshat , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM", "Cash Attraction (Bellfruit) (set 4) (Scorpion 1)", GAME_FLAGS ) | |
| 3112 | GAME( 198?, sc1cshat , 0 , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM", "Cash Attraction (Bellfruit) (set 1) (Scorpion 1)", GAME_FLAGS ) | |
| 3113 | GAME( 198?, sc1cshata , sc1cshat , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM", "Cash Attraction (Bellfruit) (set 2) (Scorpion 1)", GAME_FLAGS ) | |
| 3114 | GAME( 198?, sc1cshatb , sc1cshat , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM", "Cash Attraction (Bellfruit) (set 3) (Scorpion 1)", GAME_FLAGS ) | |
| 3115 | GAME( 198?, sc1cshatc , sc1cshat , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM", "Cash Attraction (Bellfruit) (set 4) (Scorpion 1)", GAME_FLAGS ) | |
| 3116 | 3116 | |
| 3117 | 3117 | GAME( 198?, sc1cshcd , 0 , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM/ELAM", "Cash Card (Bellfruit) (Dutch) (Scorpion 1)", GAME_FLAGS ) |
| 3118 | 3118 | GAME( 198?, sc1cshcda , sc1cshcd , scorpion1 , scorpion1 , bfm_sc1_state, lotse , 0, "BFM", "Cash Card (Bellfruit) (set 1) (Scorpion 1)", GAME_FLAGS ) |
| r15975 | r15976 | |
|---|---|---|
| 302 | 302 | |
| 303 | 303 | |
| 304 | 304 | //************************************************************************** |
| 305 | // | |
| 305 | // CONSTANTS | |
| 306 | 306 | //************************************************************************** |
| 307 | 307 | |
| 308 | 308 | const UINT32 MASTER_CLOCK = XTAL_50MHz; |
| r15975 | r15976 | |
| 311 | 311 | |
| 312 | 312 | |
| 313 | 313 | //************************************************************************** |
| 314 | // | |
| 314 | // COMPARE/TIMER CHIP CALLBACKS | |
| 315 | 315 | //************************************************************************** |
| 316 | 316 | |
| 317 | 317 | //------------------------------------------------- |
| 318 | 318 | // timer_ack_callback - acknowledge a timer chip |
| 319 | // | |
| 319 | // interrupt signal | |
| 320 | 320 | //------------------------------------------------- |
| 321 | 321 | |
| 322 | 322 | void segaxbd_state::timer_ack_callback() |
| r15975 | r15976 | |
| 339 | 339 | |
| 340 | 340 | |
| 341 | 341 | //************************************************************************** |
| 342 | // | |
| 342 | // YM2151 CHIP CALLBACKS | |
| 343 | 343 | //************************************************************************** |
| 344 | 344 | |
| 345 | 345 | //------------------------------------------------- |
| r15975 | r15976 | |
| 354 | 354 | |
| 355 | 355 | |
| 356 | 356 | //************************************************************************** |
| 357 | // | |
| 357 | // MAIN CPU READ/WRITE CALLBACKS | |
| 358 | 358 | //************************************************************************** |
| 359 | 359 | |
| 360 | 360 | //------------------------------------------------- |
| r15975 | r15976 | |
| 427 | 427 | |
| 428 | 428 | //------------------------------------------------- |
| 429 | 429 | // iochip_0_r - handle reads from the first I/O |
| 430 | // | |
| 430 | // chip | |
| 431 | 431 | //------------------------------------------------- |
| 432 | 432 | |
| 433 | 433 | READ16_MEMBER( segaxbd_state::iochip_0_r ) |
| r15975 | r15976 | |
| 465 | 465 | |
| 466 | 466 | //------------------------------------------------- |
| 467 | 467 | // iochip_0_w - handle writes to the first I/O |
| 468 | // | |
| 468 | // chip | |
| 469 | 469 | //------------------------------------------------- |
| 470 | 470 | |
| 471 | 471 | WRITE16_MEMBER( segaxbd_state::iochip_0_w ) |
| r15975 | r15976 | |
| 508 | 508 | machine().sound().system_enable(data & 0x80); |
| 509 | 509 | break; |
| 510 | 510 | |
| 511 | default: | |
| 511 | default: | |
| 512 | 512 | break; |
| 513 | 513 | } |
| 514 | 514 | |
| r15975 | r15976 | |
| 522 | 522 | |
| 523 | 523 | //------------------------------------------------- |
| 524 | 524 | // iochip_1_r - handle reads from the second I/O |
| 525 | // | |
| 525 | // chip | |
| 526 | 526 | //------------------------------------------------- |
| 527 | 527 | |
| 528 | 528 | READ16_MEMBER( segaxbd_state::iochip_1_r ) |
| r15975 | r15976 | |
| 557 | 557 | |
| 558 | 558 | //------------------------------------------------- |
| 559 | 559 | // iochip_1_w - handle writes to the second I/O |
| 560 | // | |
| 560 | // chip | |
| 561 | 561 | //------------------------------------------------- |
| 562 | 562 | |
| 563 | 563 | WRITE16_MEMBER( segaxbd_state::iochip_1_w ) |
| r15975 | r15976 | |
| 579 | 579 | |
| 580 | 580 | //------------------------------------------------- |
| 581 | 581 | // iocontrol_w - handle writes to the I/O control |
| 582 | // | |
| 582 | // port | |
| 583 | 583 | //------------------------------------------------- |
| 584 | 584 | |
| 585 | 585 | WRITE16_MEMBER( segaxbd_state::iocontrol_w ) |
| r15975 | r15976 | |
| 595 | 595 | |
| 596 | 596 | |
| 597 | 597 | //************************************************************************** |
| 598 | // | |
| 598 | // GAME-SPECIFIC MAIN CPU READ/WRITE HANDLERS | |
| 599 | 599 | //************************************************************************** |
| 600 | 600 | |
| 601 | 601 | //------------------------------------------------- |
| 602 | 602 | // loffire_sync0_w - force synchronization on |
| 603 | // | |
| 603 | // writes to this address for Line of Fire | |
| 604 | 604 | //------------------------------------------------- |
| 605 | 605 | |
| 606 | 606 | WRITE16_MEMBER( segaxbd_state::loffire_sync0_w ) |
| r15975 | r15976 | |
| 636 | 636 | |
| 637 | 637 | |
| 638 | 638 | //------------------------------------------------- |
| 639 | // smgp_excs_r - /EXCS region reads for | |
| 640 | // Super Monaco GP | |
| 639 | // smgp_excs_r - /EXCS region reads for | |
| 640 | // Super Monaco GP | |
| 641 | 641 | //------------------------------------------------- |
| 642 | 642 | |
| 643 | 643 | READ16_MEMBER( segaxbd_state::smgp_excs_r ) |
| r15975 | r15976 | |
| 648 | 648 | |
| 649 | 649 | |
| 650 | 650 | //------------------------------------------------- |
| 651 | // smgp_excs_w - /EXCS region writes for | |
| 652 | // Super Monaco GP | |
| 651 | // smgp_excs_w - /EXCS region writes for | |
| 652 | // Super Monaco GP | |
| 653 | 653 | //------------------------------------------------- |
| 654 | 654 | |
| 655 | 655 | WRITE16_MEMBER( segaxbd_state::smgp_excs_w ) |
| r15975 | r15976 | |
| 660 | 660 | |
| 661 | 661 | |
| 662 | 662 | //************************************************************************** |
| 663 | // | |
| 663 | // SOUND Z80 CPU READ/WRITE CALLBACKS | |
| 664 | 664 | //************************************************************************** |
| 665 | 665 | |
| 666 | 666 | //------------------------------------------------- |
| r15975 | r15976 | |
| 676 | 676 | |
| 677 | 677 | |
| 678 | 678 | //************************************************************************** |
| 679 | // | |
| 679 | // DRIVER OVERRIDES | |
| 680 | 680 | //************************************************************************** |
| 681 | 681 | |
| 682 | 682 | //------------------------------------------------- |
| r15975 | r15976 | |
| 754 | 754 | |
| 755 | 755 | |
| 756 | 756 | //************************************************************************** |
| 757 | // | |
| 757 | // CUSTOM I/O HANDLERS | |
| 758 | 758 | //************************************************************************** |
| 759 | 759 | |
| 760 | 760 | //------------------------------------------------- |
| 761 | 761 | // generic_iochip0_lamps_w - shared handler for |
| 762 | // | |
| 762 | // coin counters and lamps | |
| 763 | 763 | //------------------------------------------------- |
| 764 | 764 | |
| 765 | 765 | void segaxbd_state::generic_iochip0_lamps_w(UINT8 data) |
| r15975 | r15976 | |
| 788 | 788 | |
| 789 | 789 | //------------------------------------------------- |
| 790 | 790 | // aburner2_iochip0_motor_r - motor I/O reads |
| 791 | // | |
| 791 | // for Afterburner II | |
| 792 | 792 | //------------------------------------------------- |
| 793 | 793 | |
| 794 | 794 | UINT8 segaxbd_state::aburner2_iochip0_motor_r(UINT8 data) |
| r15975 | r15976 | |
| 802 | 802 | |
| 803 | 803 | //------------------------------------------------- |
| 804 | 804 | // aburner2_iochip0_motor_w - motor I/O writes |
| 805 | // | |
| 805 | // for Afterburner II | |
| 806 | 806 | //------------------------------------------------- |
| 807 | 807 | |
| 808 | 808 | void segaxbd_state::aburner2_iochip0_motor_w(UINT8 data) |
| r15975 | r15976 | |
| 813 | 813 | |
| 814 | 814 | //------------------------------------------------- |
| 815 | 815 | // smgp_iochip0_motor_r - motor I/O reads |
| 816 | // | |
| 816 | // for Super Monaco GP | |
| 817 | 817 | //------------------------------------------------- |
| 818 | 818 | |
| 819 | 819 | UINT8 segaxbd_state::smgp_iochip0_motor_r(UINT8 data) |
| r15975 | r15976 | |
| 827 | 827 | |
| 828 | 828 | //------------------------------------------------- |
| 829 | 829 | // smgp_iochip0_motor_w - motor I/O reads |
| 830 | // | |
| 830 | // for Super Monaco GP | |
| 831 | 831 | //------------------------------------------------- |
| 832 | 832 | |
| 833 | 833 | void segaxbd_state::smgp_iochip0_motor_w(UINT8 data) |
| r15975 | r15976 | |
| 838 | 838 | |
| 839 | 839 | //------------------------------------------------- |
| 840 | 840 | // lastsurv_iochip1_port_r - muxed I/O reads |
| 841 | // | |
| 841 | // for Last Survivor | |
| 842 | 842 | //------------------------------------------------- |
| 843 | 843 | |
| 844 | 844 | UINT8 segaxbd_state::lastsurv_iochip1_port_r(UINT8 data) |
| r15975 | r15976 | |
| 850 | 850 | |
| 851 | 851 | //------------------------------------------------- |
| 852 | 852 | // lastsurv_iochip0_muxer_w - muxed I/O writes |
| 853 | // | |
| 853 | // for Last Survivor | |
| 854 | 854 | //------------------------------------------------- |
| 855 | 855 | |
| 856 | 856 | void segaxbd_state::lastsurv_iochip0_muxer_w(UINT8 data) |
| r15975 | r15976 | |
| 862 | 862 | |
| 863 | 863 | |
| 864 | 864 | //************************************************************************** |
| 865 | // | |
| 865 | // INTERNAL HELPERS | |
| 866 | 866 | //************************************************************************** |
| 867 | 867 | |
| 868 | 868 | //------------------------------------------------- |
| 869 | 869 | // update_main_irqs - flush IRQ state to the |
| 870 | // | |
| 870 | // CPU device | |
| 871 | 871 | //------------------------------------------------- |
| 872 | 872 | |
| 873 | 873 | void segaxbd_state::update_main_irqs() |
| r15975 | r15976 | |
| 900 | 900 | |
| 901 | 901 | //------------------------------------------------- |
| 902 | 902 | // m68k_reset_callback - callback for when the |
| 903 | // | |
| 903 | // main 68000 is reset | |
| 904 | 904 | //------------------------------------------------- |
| 905 | 905 | |
| 906 | 906 | void segaxbd_state::m68k_reset_callback(device_t *device) |
| r15975 | r15976 | |
| 913 | 913 | |
| 914 | 914 | |
| 915 | 915 | //************************************************************************** |
| 916 | // | |
| 916 | // MAIN CPU ADDRESS MAPS | |
| 917 | 917 | //************************************************************************** |
| 918 | 918 | |
| 919 | 919 | static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, segaxbd_state ) |
| r15975 | r15976 | |
| 950 | 950 | |
| 951 | 951 | |
| 952 | 952 | //************************************************************************** |
| 953 | // | |
| 953 | // SUB CPU ADDRESS MAPS | |
| 954 | 954 | //************************************************************************** |
| 955 | 955 | |
| 956 | 956 | static ADDRESS_MAP_START( sub_map, AS_PROGRAM, 16, segaxbd_state ) |
| r15975 | r15976 | |
| 970 | 970 | |
| 971 | 971 | |
| 972 | 972 | //************************************************************************** |
| 973 | // | |
| 973 | // Z80 SOUND CPU ADDRESS MAPS | |
| 974 | 974 | //************************************************************************** |
| 975 | 975 | |
| 976 | 976 | static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, segaxbd_state ) |
| r15975 | r15976 | |
| 990 | 990 | |
| 991 | 991 | |
| 992 | 992 | //************************************************************************** |
| 993 | // | |
| 993 | // SUPER MONACO GP 2ND SOUND CPU ADDRESS MAPS | |
| 994 | 994 | //************************************************************************** |
| 995 | 995 | |
| 996 | 996 | // Sound Board |
| r15975 | r15976 | |
| 1012 | 1012 | |
| 1013 | 1013 | |
| 1014 | 1014 | //************************************************************************** |
| 1015 | // | |
| 1015 | // SUPER MONACO GP MOTOR BOARD CPU ADDRESS MAPS | |
| 1016 | 1016 | //************************************************************************** |
| 1017 | 1017 | |
| 1018 | 1018 | // Motor Board, not yet emulated |
| r15975 | r15976 | |
| 1032 | 1032 | |
| 1033 | 1033 | |
| 1034 | 1034 | //************************************************************************** |
| 1035 | // | |
| 1035 | // SUPER MONACO GP LINK BOARD CPU ADDRESS MAPS | |
| 1036 | 1036 | //************************************************************************** |
| 1037 | 1037 | |
| 1038 | 1038 | // Link Board, not yet emulated |
| r15975 | r15976 | |
| 1051 | 1051 | |
| 1052 | 1052 | |
| 1053 | 1053 | //************************************************************************** |
| 1054 | // | |
| 1054 | // RASCOT UNKNOWN Z80 CPU ADDRESS MAPS | |
| 1055 | 1055 | //************************************************************************** |
| 1056 | 1056 | |
| 1057 | 1057 | // Z80, unknown function |
| r15975 | r15976 | |
| 1069 | 1069 | |
| 1070 | 1070 | |
| 1071 | 1071 | //************************************************************************** |
| 1072 | // | |
| 1072 | // GENERIC PORT DEFINITIONS | |
| 1073 | 1073 | //************************************************************************** |
| 1074 | 1074 | |
| 1075 | 1075 | static INPUT_PORTS_START( xboard_generic ) |
| r15975 | r15976 | |
| 1111 | 1111 | |
| 1112 | 1112 | |
| 1113 | 1113 | //************************************************************************** |
| 1114 | // | |
| 1114 | // GAME-SPECIFIC PORT DEFINITIONS | |
| 1115 | 1115 | //************************************************************************** |
| 1116 | 1116 | |
| 1117 | 1117 | static INPUT_PORTS_START( aburner ) |
| r15975 | r15976 | |
| 1284 | 1284 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 ) |
| 1285 | 1285 | |
| 1286 | 1286 | PORT_START("MUX0") |
| 1287 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 1288 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 1289 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 1290 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 1287 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2) | |
| 1288 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) | |
| 1289 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2) | |
| 1290 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2) | |
| 1291 | 1291 | PORT_BIT( 0xf0, 0xf0 ^ 0x40, IPT_POSITIONAL ) PORT_PLAYER(2) PORT_POSITIONS(8) PORT_REMAP_TABLE(lastsurv_position_table) PORT_WRAPS PORT_SENSITIVITY(1) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_CODE_DEC(KEYCODE_Q) PORT_CODE_INC(KEYCODE_W) |
| 1292 | 1292 | |
| 1293 | 1293 | PORT_START("MUX1") |
| 1294 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 1294 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) | |
| 1295 | 1295 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) |
| 1296 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 1297 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 1296 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) | |
| 1297 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) | |
| 1298 | 1298 | PORT_BIT( 0xf0, 0xf0 ^ 0x40, IPT_POSITIONAL ) PORT_PLAYER(1) PORT_POSITIONS(8) PORT_REMAP_TABLE(lastsurv_position_table) PORT_WRAPS PORT_SENSITIVITY(1) PORT_KEYDELTA(10) PORT_CENTERDELTA(0) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X) |
| 1299 | 1299 | |
| 1300 | 1300 | PORT_START("MUX2") |
| r15975 | r15976 | |
| 1316 | 1316 | PORT_DIPSETTING( 0x0c, "Off" ) |
| 1317 | 1317 | PORT_DIPSETTING( 0x08, "On (2)" ) |
| 1318 | 1318 | PORT_DIPSETTING( 0x04, "On (4)" ) |
| 1319 | // | |
| 1319 | // PORT_DIPSETTING( 0x00, "No Use" ) | |
| 1320 | 1320 | PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:5,6") |
| 1321 | 1321 | PORT_DIPSETTING( 0x20, DEF_STR( Easy ) ) |
| 1322 | 1322 | PORT_DIPSETTING( 0x30, DEF_STR( Normal ) ) |
| r15975 | r15976 | |
| 1548 | 1548 | |
| 1549 | 1549 | |
| 1550 | 1550 | //************************************************************************** |
| 1551 | // | |
| 1551 | // SOUND DEFINITIONS | |
| 1552 | 1552 | //************************************************************************** |
| 1553 | 1553 | |
| 1554 | 1554 | static const ym2151_interface ym2151_config = |
| r15975 | r15976 | |
| 1564 | 1564 | |
| 1565 | 1565 | |
| 1566 | 1566 | //************************************************************************** |
| 1567 | // | |
| 1567 | // GRAPHICS DEFINITIONS | |
| 1568 | 1568 | //************************************************************************** |
| 1569 | 1569 | |
| 1570 | 1570 | static GFXDECODE_START( segaxbd ) |
| r15975 | r15976 | |
| 1574 | 1574 | |
| 1575 | 1575 | |
| 1576 | 1576 | //************************************************************************** |
| 1577 | // | |
| 1577 | // GENERIC MACHINE DRIVERS | |
| 1578 | 1578 | //************************************************************************** |
| 1579 | 1579 | |
| 1580 | 1580 | static MACHINE_CONFIG_START( xboard, segaxbd_state ) |
| r15975 | r15976 | |
| 1598 | 1598 | MCFG_SEGA_315_5248_MULTIPLIER_ADD("multiplier_subx") |
| 1599 | 1599 | MCFG_SEGA_315_5249_DIVIDER_ADD("divider_main") |
| 1600 | 1600 | MCFG_SEGA_315_5249_DIVIDER_ADD("divider_subx") |
| 1601 | ||
| 1601 | ||
| 1602 | 1602 | MCFG_SEGA_315_5250_COMPARE_TIMER_ADD("cmptimer_main") |
| 1603 | 1603 | MCFG_SEGA_315_5250_TIMER_ACK(segaxbd_state, timer_ack_callback) |
| 1604 | 1604 | MCFG_SEGA_315_5250_SOUND_WRITE(segaxbd_state, sound_data_w) |
| r15975 | r15976 | |
| 1637 | 1637 | |
| 1638 | 1638 | |
| 1639 | 1639 | //************************************************************************** |
| 1640 | // | |
| 1640 | // GAME-SPECIFIC MACHINE DRIVERS | |
| 1641 | 1641 | //************************************************************************** |
| 1642 | 1642 | |
| 1643 | 1643 | static MACHINE_CONFIG_DERIVED( lastsurv_fd1094, xboard_fd1094 ) |
| r15975 | r15976 | |
| 1687 | 1687 | |
| 1688 | 1688 | |
| 1689 | 1689 | //************************************************************************** |
| 1690 | // | |
| 1690 | // ROM DEFINITIONS | |
| 1691 | 1691 | //************************************************************************** |
| 1692 | 1692 | |
| 1693 | 1693 | |
| r15975 | r15976 | |
| 3165 | 3165 | //************************************************************************************************************************* |
| 3166 | 3166 | //************************************************************************************************************************* |
| 3167 | 3167 | //************************************************************************************************************************* |
| 3168 | // Royal Ascot - should be X-Board, or closely related, although it's a main display / terminal setup, | |
| 3168 | // Royal Ascot - should be X-Board, or closely related, although it's a main display / terminal setup, | |
| 3169 | 3169 | // and we only have the ROMs for one of those parts.. |
| 3170 | 3170 | // |
| 3171 | 3171 | ROM_START( rascot ) |
| r15975 | r15976 | |
| 3202 | 3202 | |
| 3203 | 3203 | |
| 3204 | 3204 | //************************************************************************** |
| 3205 | // | |
| 3205 | // CONFIGURATION | |
| 3206 | 3206 | //************************************************************************** |
| 3207 | 3207 | |
| 3208 | 3208 | //------------------------------------------------- |
| r15975 | r15976 | |
| 3295 | 3295 | |
| 3296 | 3296 | |
| 3297 | 3297 | //************************************************************************** |
| 3298 | // | |
| 3298 | // GAME DRIVERS | |
| 3299 | 3299 | //************************************************************************** |
| 3300 | 3300 | |
| 3301 | 3301 | // YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR,COMPANY,FULLNAME,FLAGS |
| r15975 | r15976 | |
|---|---|---|
| 212 | 212 | static ADDRESS_MAP_START( wildpkr_map, AS_PROGRAM, 16, wildpkr_state ) |
| 213 | 213 | AM_RANGE(0x000000, 0x07ffff) AM_ROM |
| 214 | 214 | AM_RANGE(0x100000, 0x103fff) AM_RAM |
| 215 | // | |
| 215 | // AM_RANGE(0x800000, 0x800003) ACRTC? | |
| 216 | 216 | AM_RANGE(0x800180, 0x800181) AM_READNOP // protection, puts m68k code snippets to RAM |
| 217 | 217 | AM_RANGE(0x800200, 0x800201) AM_DEVWRITE8("ramdac", ramdac_device, index_w, 0xff00) |
| 218 | 218 | AM_RANGE(0x800202, 0x800203) AM_DEVWRITE8("ramdac", ramdac_device, pal_w, 0xff00) |
| r15975 | r15976 | |
| 273 | 273 | /* basic machine hardware */ |
| 274 | 274 | MCFG_CPU_ADD("maincpu", M68000, MAIN_CLOCK) |
| 275 | 275 | MCFG_CPU_PROGRAM_MAP(wildpkr_map) |
| 276 | // | |
| 276 | // MCFG_CPU_VBLANK_INT("screen", irq1_line_hold) //guess | |
| 277 | 277 | |
| 278 | 278 | MCFG_MACHINE_START(wildpkr) |
| 279 | 279 |
| r15975 | r15976 | |
|---|---|---|
| 199 | 199 | |
| 200 | 200 | bitmap.fill(0x0000, cliprect); |
| 201 | 201 | |
| 202 | // | |
| 202 | // popmessage("%02x %02x", state->m_grap2_0->m_framebuffer_bright2, state->m_grap2_1->m_framebuffer_bright2); | |
| 203 | 203 | |
| 204 | 204 | |
| 205 | 205 | |
| r15975 | r15976 | |
| 475 | 475 | |
| 476 | 476 | AM_RANGE(0x400000, 0x40ffff) AM_DEVREADWRITE( "toybox", kaneko_toybox_device, toybox_mcu_ram_r, toybox_mcu_ram_w ) // area [C] |
| 477 | 477 | |
| 478 | AM_RANGE(0x580000, 0x580001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com0_w) | |
| 479 | AM_RANGE(0x600000, 0x600001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com1_w) | |
| 480 | AM_RANGE(0x680000, 0x680001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com2_w) | |
| 481 | AM_RANGE(0x700000, 0x700001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com3_w) | |
| 478 | AM_RANGE(0x580000, 0x580001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com0_w) | |
| 479 | AM_RANGE(0x600000, 0x600001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com1_w) | |
| 480 | AM_RANGE(0x680000, 0x680001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com2_w) | |
| 481 | AM_RANGE(0x700000, 0x700001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com3_w) | |
| 482 | 482 | AM_RANGE(0x780000, 0x780001) AM_DEVREAD( "toybox", kaneko_toybox_device, toybox_mcu_status_r) |
| 483 | 483 | |
| 484 | 484 | GRAP2_AREA( 0x800000, "grap2_0" ) |
| r15975 | r15976 | |
|---|---|---|
| 936 | 936 | GAME( 200?, sspac2k1, 0, itgambl2, itgambl2, driver_device, 0, ROT0, "<unknown>", "Super Space 2001", GAME_IS_SKELETON ) |
| 937 | 937 | GAME( 200?, elvis, 0, itgambl2, itgambl2, driver_device, 0, ROT0, "<unknown>", "Elvis?", GAME_IS_SKELETON ) |
| 938 | 938 | GAME( 200?, sstar, 0, itgambl2, itgambl2, driver_device, 0, ROT0, "<unknown>", "Super Star", GAME_IS_SKELETON ) |
| 939 | GAME( 2001, pirati, 0, itgambl2, itgambl2, driver_device, 0, ROT0, "Cin", | |
| 939 | GAME( 2001, pirati, 0, itgambl2, itgambl2, driver_device, 0, ROT0, "Cin", | |
| 940 | 940 | GAME( 200?, mnumitg, 0, itgambl2, itgambl2, driver_device, 0, ROT0, "<unknown>", "Magic Number (Italian Gambling Game, Ver 1.5)", GAME_IS_SKELETON ) |
| 941 | 941 | GAME( 200?, mclass, 0, itgambl2, itgambl2, driver_device, 0, ROT0, "<unknown>", "Magic Class (Ver 2.2)", GAME_IS_SKELETON ) |
| 942 | 942 | GAME( 200?, europass, 0, itgambl2, itgambl2, driver_device, 0, ROT0, "<unknown>", "Euro Pass (Ver 1.1)", GAME_IS_SKELETON ) |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(de_1); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 906 | 906 | |
| 907 | 907 | AM_RANGE(0x300000, 0x3fffff) AM_ROM |
| 908 | 908 | |
| 909 | // | |
| 909 | // AM_RANGE(0x400000, 0x400003) AM_DEVREADWRITE8("oki3", okim6295_device, read, write, 0x000000ff) | |
| 910 | 910 | AM_RANGE(0x420000, 0x420003) AM_READWRITE(dragngun_eeprom_r, dragngun_eeprom_w) |
| 911 | 911 | // AM_RANGE(0x430000, 0x43001f) AM_WRITE(dragngun_lightgun_w) |
| 912 | 912 | // AM_RANGE(0x438000, 0x438003) AM_READ(dragngun_lightgun_r) |
| r15975 | r15976 | |
|---|---|---|
| 30 | 30 | |
| 31 | 31 | // devices |
| 32 | 32 | required_device<cpu_device> m_maincpu; |
| 33 | public: | |
| 33 | public: | |
| 34 | 34 | DECLARE_DRIVER_INIT(ace_sp); |
| 35 | 35 | DECLARE_DRIVER_INIT(ace_cr); |
| 36 | 36 | }; |
| r15975 | r15976 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | **************************************************************************** |
| 37 | 37 | |
| 38 | ||
| 38 | Games supported: | |
| 39 | 39 | |
| 40 | G-LOC Air Battle | |
| 41 | G-LOC R360 | |
| 42 | Galaxy Force 2 | |
| 43 | Power Drift | |
| 44 | Rail Chase | |
| 45 | Strike Fighter | |
| 40 | G-LOC Air Battle | |
| 41 | G-LOC R360 | |
| 42 | Galaxy Force 2 | |
| 43 | Power Drift | |
| 44 | Rail Chase | |
| 45 | Strike Fighter | |
| 46 | 46 | |
| 47 | ||
| 47 | Known games currently not dumped: | |
| 48 | 48 | |
| 49 | ||
| 49 | Galaxy Force | |
| 50 | 50 | |
| 51 | 51 | **************************************************************************** |
| 52 | 52 | |
| r15975 | r15976 | |
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | //************************************************************************** |
| 72 | // | |
| 72 | // CONSTANTS | |
| 73 | 73 | //************************************************************************** |
| 74 | 74 | |
| 75 | 75 | const UINT32 MASTER_CLOCK = 50000000; |
| r15975 | r15976 | |
| 81 | 81 | |
| 82 | 82 | |
| 83 | 83 | //************************************************************************** |
| 84 | // | |
| 84 | // YM2151 CHIP CALLBACKS | |
| 85 | 85 | //************************************************************************** |
| 86 | 86 | |
| 87 | 87 | //------------------------------------------------- |
| r15975 | r15976 | |
| 96 | 96 | |
| 97 | 97 | |
| 98 | 98 | //************************************************************************** |
| 99 | // | |
| 99 | // MAIN CPU READ/WRITE HANDLERS | |
| 100 | 100 | //************************************************************************** |
| 101 | 101 | |
| 102 | 102 | //------------------------------------------------- |
| r15975 | r15976 | |
| 218 | 218 | // D3 = XRES |
| 219 | 219 | // D2 = YRES |
| 220 | 220 | // D1-D0 = ADC0-1 |
| 221 | | |
| 221 | | |
| 222 | 222 | segaic16_set_display_enable(machine(), data & 0x80); |
| 223 | 223 | if (((old ^ data) & 0x20) && !(data & 0x20)) |
| 224 | 224 | machine().watchdog_reset(); |
| r15975 | r15976 | |
| 247 | 247 | |
| 248 | 248 | //------------------------------------------------- |
| 249 | 249 | // sound_data_w - handle writes to sound control |
| 250 | // | |
| 250 | // port | |
| 251 | 251 | //------------------------------------------------- |
| 252 | 252 | |
| 253 | 253 | WRITE16_MEMBER( segaybd_state::sound_data_w ) |
| r15975 | r15976 | |
| 259 | 259 | |
| 260 | 260 | |
| 261 | 261 | //************************************************************************** |
| 262 | // | |
| 262 | // SOUND Z80 CPU READ/WRITE CALLBACKS | |
| 263 | 263 | //************************************************************************** |
| 264 | 264 | |
| 265 | 265 | //------------------------------------------------- |
| r15975 | r15976 | |
| 275 | 275 | |
| 276 | 276 | |
| 277 | 277 | //************************************************************************** |
| 278 | // | |
| 278 | // DRIVER OVERRIDES | |
| 279 | 279 | //************************************************************************** |
| 280 | 280 | |
| 281 | 281 | //------------------------------------------------- |
| r15975 | r15976 | |
| 394 | 394 | |
| 395 | 395 | |
| 396 | 396 | //************************************************************************** |
| 397 | // | |
| 397 | // GAME-SPECIFIC OUTPUT CALLBACKS | |
| 398 | 398 | //************************************************************************** |
| 399 | 399 | |
| 400 | 400 | // TODO: kokoroj2 and jpark (SW2) |
| r15975 | r15976 | |
| 408 | 408 | |
| 409 | 409 | //------------------------------------------------- |
| 410 | 410 | // gforce2_output_cb2 - output #2 handler for |
| 411 | // | |
| 411 | // Galaxy Force | |
| 412 | 412 | //------------------------------------------------- |
| 413 | 413 | |
| 414 | 414 | void segaybd_state::gforce2_output_cb2(UINT16 data) |
| r15975 | r15976 | |
| 419 | 419 | |
| 420 | 420 | //------------------------------------------------- |
| 421 | 421 | // gloc_output_cb1 - output #1 handler for |
| 422 | // | |
| 422 | // G-Loc | |
| 423 | 423 | //------------------------------------------------- |
| 424 | 424 | |
| 425 | 425 | void segaybd_state::gloc_output_cb1(UINT16 data) |
| r15975 | r15976 | |
| 453 | 453 | |
| 454 | 454 | //------------------------------------------------- |
| 455 | 455 | // gloc_output_cb2 - output #2 handler for |
| 456 | // | |
| 456 | // G-Loc | |
| 457 | 457 | //------------------------------------------------- |
| 458 | 458 | |
| 459 | 459 | void segaybd_state::gloc_output_cb2(UINT16 data) |
| r15975 | r15976 | |
| 466 | 466 | |
| 467 | 467 | //------------------------------------------------- |
| 468 | 468 | // r360_output_cb2 - output #2 handler for |
| 469 | // | |
| 469 | // G-Loc R360 | |
| 470 | 470 | //------------------------------------------------- |
| 471 | 471 | |
| 472 | 472 | void segaybd_state::r360_output_cb2(UINT16 data) |
| r15975 | r15976 | |
| 480 | 480 | |
| 481 | 481 | //------------------------------------------------- |
| 482 | 482 | // pdrift_output_cb1 - output #1 handler for |
| 483 | // | |
| 483 | // Power Drift | |
| 484 | 484 | //------------------------------------------------- |
| 485 | 485 | |
| 486 | 486 | void segaybd_state::pdrift_output_cb1(UINT16 data) |
| r15975 | r15976 | |
| 639 | 639 | |
| 640 | 640 | //------------------------------------------------- |
| 641 | 641 | // pdrift_output_cb2 - output #2 handler for |
| 642 | // | |
| 642 | // Power Drift | |
| 643 | 643 | //------------------------------------------------- |
| 644 | 644 | |
| 645 | 645 | void segaybd_state::pdrift_output_cb2(UINT16 data) |
| r15975 | r15976 | |
| 651 | 651 | |
| 652 | 652 | //------------------------------------------------- |
| 653 | 653 | // rchase_output_cb2 - output #2 handler for |
| 654 | // | |
| 654 | // Rail Chase | |
| 655 | 655 | //------------------------------------------------- |
| 656 | 656 | |
| 657 | 657 | void segaybd_state::rchase_output_cb2(UINT16 data) |
| r15975 | r15976 | |
| 666 | 666 | |
| 667 | 667 | |
| 668 | 668 | //************************************************************************** |
| 669 | // | |
| 669 | // INTERNAL HELPERS | |
| 670 | 670 | //************************************************************************** |
| 671 | 671 | |
| 672 | 672 | //------------------------------------------------- |
| 673 | 673 | // update_irqs - flush IRQ state to the various |
| 674 | // | |
| 674 | // CPU devices | |
| 675 | 675 | //------------------------------------------------- |
| 676 | 676 | |
| 677 | 677 | void segaybd_state::update_irqs() |
| r15975 | r15976 | |
| 679 | 679 | m_maincpu->set_input_line(2, m_timer_irq_state ? ASSERT_LINE : CLEAR_LINE); |
| 680 | 680 | m_subx->set_input_line(2, m_timer_irq_state ? ASSERT_LINE : CLEAR_LINE); |
| 681 | 681 | m_suby->set_input_line(2, m_timer_irq_state ? ASSERT_LINE : CLEAR_LINE); |
| 682 | ||
| 682 | ||
| 683 | 683 | m_maincpu->set_input_line(4, m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); |
| 684 | 684 | m_subx->set_input_line(4, m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); |
| 685 | 685 | m_suby->set_input_line(4, m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); |
| 686 | ||
| 686 | ||
| 687 | 687 | m_maincpu->set_input_line(6, m_timer_irq_state && m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); |
| 688 | 688 | m_subx->set_input_line(6, m_timer_irq_state && m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); |
| 689 | 689 | m_suby->set_input_line(6, m_timer_irq_state && m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE); |
| r15975 | r15976 | |
| 695 | 695 | |
| 696 | 696 | |
| 697 | 697 | //************************************************************************** |
| 698 | // | |
| 698 | // MAIN CPU ADDRESS MAPS | |
| 699 | 699 | //************************************************************************** |
| 700 | 700 | |
| 701 | 701 | static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, segaybd_state ) |
| r15975 | r15976 | |
| 715 | 715 | |
| 716 | 716 | |
| 717 | 717 | //************************************************************************** |
| 718 | // | |
| 718 | // SUB CPU ADDRESS MAPS | |
| 719 | 719 | //************************************************************************** |
| 720 | 720 | |
| 721 | 721 | static ADDRESS_MAP_START( subx_map, AS_PROGRAM, 16, segaybd_state ) |
| r15975 | r15976 | |
| 747 | 747 | |
| 748 | 748 | |
| 749 | 749 | //************************************************************************** |
| 750 | // | |
| 750 | // Z80 SOUND CPU ADDRESS MAPS | |
| 751 | 751 | //************************************************************************** |
| 752 | 752 | |
| 753 | 753 | static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, segaybd_state ) |
| r15975 | r15976 | |
| 767 | 767 | |
| 768 | 768 | |
| 769 | 769 | //************************************************************************** |
| 770 | // | |
| 770 | // GENERIC PORT DEFINITIONS | |
| 771 | 771 | //************************************************************************** |
| 772 | 772 | |
| 773 | 773 | static INPUT_PORTS_START( yboard_generic ) |
| r15975 | r15976 | |
| 813 | 813 | |
| 814 | 814 | |
| 815 | 815 | //************************************************************************** |
| 816 | // | |
| 816 | // GAME-SPECIFIC PORT DEFINITIONS | |
| 817 | 817 | //************************************************************************** |
| 818 | 818 | |
| 819 | 819 | static INPUT_PORTS_START( gforce2 ) |
| r15975 | r15976 | |
| 1183 | 1183 | |
| 1184 | 1184 | |
| 1185 | 1185 | //************************************************************************** |
| 1186 | // | |
| 1186 | // SOUND DEFINITIONS | |
| 1187 | 1187 | //************************************************************************** |
| 1188 | 1188 | |
| 1189 | 1189 | static const ym2151_interface ym2151_config = |
| r15975 | r15976 | |
| 1199 | 1199 | |
| 1200 | 1200 | |
| 1201 | 1201 | //************************************************************************** |
| 1202 | // | |
| 1202 | // GENERIC MACHINE DRIVERS | |
| 1203 | 1203 | //************************************************************************** |
| 1204 | 1204 | |
| 1205 | 1205 | static MACHINE_CONFIG_START( yboard, segaybd_state ) |
| r15975 | r15976 | |
| 1257 | 1257 | |
| 1258 | 1258 | |
| 1259 | 1259 | //************************************************************************** |
| 1260 | // | |
| 1260 | // ROM DEFINITIONS | |
| 1261 | 1261 | //************************************************************************** |
| 1262 | 1262 | |
| 1263 | 1263 | |
| r15975 | r15976 | |
| 1814 | 1814 | ROM_END |
| 1815 | 1815 | |
| 1816 | 1816 | //************************************************************************************************************************* |
| 1817 | // | |
| 1817 | // Earlier set based on eprom numbers & Sega Eprom/Mask Rom Locations sheet 421-7708 | |
| 1818 | 1818 | // |
| 1819 | 1819 | ROM_START( pdrifte ) |
| 1820 | 1820 | ROM_REGION( 0x080000, "maincpu", 0 ) // M |
| r15975 | r15976 | |
| 2185 | 2185 | |
| 2186 | 2186 | |
| 2187 | 2187 | //************************************************************************** |
| 2188 | // | |
| 2188 | // CONFIGURATION | |
| 2189 | 2189 | //************************************************************************** |
| 2190 | 2190 | |
| 2191 | 2191 | //------------------------------------------------- |
| r15975 | r15976 | |
| 2258 | 2258 | |
| 2259 | 2259 | |
| 2260 | 2260 | //************************************************************************** |
| 2261 | // | |
| 2261 | // GAME DRIVERS | |
| 2262 | 2262 | //************************************************************************** |
| 2263 | 2263 | |
| 2264 | 2264 | // YEAR, NAME, PARENT, MACHINE,INPUT, INIT, MONITOR,COMPANY,FULLNAME,FLAGS, LAYOUT |
| r15975 | r15976 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | /* todo: driver inits (basic hw reel, protection configs etc.) should probably be moved here |
| 4 | 4 | once the actual code for them is cleaned up and can be put into neater structures |
| 5 | like bfm_sc4 | |
| 6 | ||
| 7 | due to the vast number of sets here this might be further split up by manufacturer | |
| 8 | ||
| 5 | like bfm_sc4 | |
| 6 | ||
| 7 | due to the vast number of sets here this might be further split up by manufacturer | |
| 8 | ||
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | #include "emu.h" |
| r15975 | r15976 | |
| 434 | 434 | |
| 435 | 435 | ROM_START( m4crzjwlh ) |
| 436 | 436 | ROM_REGION( 0x20000, "maincpu", 0 ) |
| 437 | ROM_LOAD( "cjg.p1", 0x0000, 0x020000, CRC(1f4743bf) SHA1(f9a0da2ed9cad5e6685c8a6d1d09e5d4bbcfacec) ) | |
| 437 | ROM_LOAD( "cjg.p1", 0x0000, 0x020000, CRC(1f4743bf) SHA1(f9a0da2ed9cad5e6685c8a6d1d09e5d4bbcfacec) ) | |
| 438 | 438 | M4CRZJWL_EXTRAS |
| 439 | 439 | ROM_END |
| 440 | 440 | |
| r15975 | r15976 | |
| 2392 | 2392 | |
| 2393 | 2393 | |
| 2394 | 2394 | // other issues |
| 2395 | GAME(199?, m4casmul ,0 ,mod4oki | |
| 2395 | GAME(199?, m4casmul ,0 ,mod4oki | |
| 2396 | 2396 | |
| 2397 | 2397 | |
| 2398 | 2398 | |
| r15975 | r15976 | |
| 2608 | 2608 | GAME(199?, m4sunscla,m4sunscl ,mod2 ,mpu4 , mpu4_state,m4default ,ROT0, "Bwb","Sunset Club (Bwb) (MPU4) (set 2)",GAME_FLAGS ) |
| 2609 | 2609 | GAME(199?, m4sunsclb,m4sunscl ,mod2 ,mpu4 , mpu4_state,m4default ,ROT0, "Bwb","Sunset Club (Bwb) (MPU4) (set 3)",GAME_FLAGS ) |
| 2610 | 2610 | |
| 2611 | GAME(199?, m4bigban ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Big Bandit (Nova) (MPU4)",GAME_FLAGS ) | |
| 2612 | GAME(199?, m4crzcsn ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Crazy Casino (Nova) (MPU4)",GAME_FLAGS ) | |
| 2613 | GAME(199?, m4crzcav ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Crazy Cavern (Nova) (MPU4)",GAME_FLAGS ) | |
| 2614 | GAME(199?, m4dragon ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Dragon (Nova) (MPU4)",GAME_FLAGS ) | |
| 2615 | GAME(199?, m4hilonv ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Hi Lo Casino (Nova) (MPU4)",GAME_FLAGS ) | |
| 2616 | GAME(199?, m4octo ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Octopus (Nova) (MPU4)",GAME_FLAGS ) | |
| 2617 | GAME(199?, m4sctagt ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Secret Agent (Nova) (MPU4)",GAME_FLAGS ) | |
| 2611 | GAME(199?, m4bigban ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Big Bandit (Nova) (MPU4)",GAME_FLAGS ) | |
| 2612 | GAME(199?, m4crzcsn ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Crazy Casino (Nova) (MPU4)",GAME_FLAGS ) | |
| 2613 | GAME(199?, m4crzcav ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Crazy Cavern (Nova) (MPU4)",GAME_FLAGS ) | |
| 2614 | GAME(199?, m4dragon ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Dragon (Nova) (MPU4)",GAME_FLAGS ) | |
| 2615 | GAME(199?, m4hilonv ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Hi Lo Casino (Nova) (MPU4)",GAME_FLAGS ) | |
| 2616 | GAME(199?, m4octo ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Octopus (Nova) (MPU4)",GAME_FLAGS ) | |
| 2617 | GAME(199?, m4sctagt ,0 ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Nova","Secret Agent (Nova) (MPU4)",GAME_FLAGS ) | |
| 2618 | 2618 | |
| 2619 | 2619 | |
| 2620 | 2620 | |
| r15975 | r15976 | |
| 2736 | 2736 | // not sure about several of the nova ones |
| 2737 | 2737 | GAME( 199?, m4aliz , 0 , mod4oki , mpu4 , mpu4_state, m4default , 0, "Qps", "AlizBaz (Qps) (German) (MPU4)",GAME_FLAGS|GAME_MECHANICAL|GAME_SUPPORTS_SAVE) |
| 2738 | 2738 | GAME( 199?, m4coney , 0 , mod4oki , mpu4 , mpu4_state, m4default , 0, "Qps", "Coney Island (Qps) (MPU4)",GAME_FLAGS|GAME_MECHANICAL|GAME_SUPPORTS_SAVE) |
| 2739 | GAME( 199?, m4crzjk , 0 , mod2 | |
| 2739 | GAME( 199?, m4crzjk , 0 , mod2 | |
| 2740 | 2740 | GAME( 199?, m4c2 , 0 , mod4oki , mpu4 , mpu4_state, m4default , 0, "Nova?", "Circus Circus 2 (Nova?) (MPU4)",GAME_FLAGS|GAME_MECHANICAL|GAME_SUPPORTS_SAVE) // COIN ALM |
| 2741 | 2741 | // regular barcrest structure |
| 2742 | 2742 | GAME( 199?, m4vivan , 0 , mod4oki , mpu4 , mpu4_state, m4default , 0, "Nova", "Viva Las Vegas (Nova) (MPU4)",GAME_FLAGS|GAME_MECHANICAL|GAME_SUPPORTS_SAVE) |
| r15975 | r15976 | |
| 2749 | 2749 | |
| 2750 | 2750 | |
| 2751 | 2751 | |
| 2752 | GAME(199?, m4sunseta ,m4sunset ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (B25 1.2, set 1)",GAME_FLAGS ) | |
| 2753 | GAME(199?, m4sunsetb ,m4sunset ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (B25 1.2, set 2)",GAME_FLAGS ) | |
| 2754 | GAME(199?, m4sunsetc ,m4sunset ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (OSB 0.2)",GAME_FLAGS ) // might be a mod 2 | |
| 2752 | GAME(199?, m4sunseta ,m4sunset ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (B25 1.2, set 1)",GAME_FLAGS ) | |
| 2753 | GAME(199?, m4sunsetb ,m4sunset ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (B25 1.2, set 2)",GAME_FLAGS ) | |
| 2754 | GAME(199?, m4sunsetc ,m4sunset ,mod4oki ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (OSB 0.2)",GAME_FLAGS ) // might be a mod 2 |
| r15975 | r15976 | |
|---|---|---|
| 530 | 530 | ROM_REGION( 0x100000, "msm6376", 0 ) \ |
| 531 | 531 | ROM_LOAD( "mcsnd1.dat", 0x000000, 0x080000, CRC(9477e648) SHA1(1abefced0cf708ad035720d5e58dc7dae50de5d1) ) \ |
| 532 | 532 | ROM_LOAD( "mcsnd2.dat", 0x080000, 0x080000, CRC(088796bd) SHA1(877bf21add8ef95f5384a88e1287bd9aa5dbfa95) ) \ |
| 533 | ||
| 534 | 533 | |
| 534 | ||
| 535 | 535 | #define M4CMONT_SET(year, setname,parent,name,offset,length,hash,company,title) \ |
| 536 | 536 | ROM_START( setname ) \ |
| 537 | 537 | ROM_REGION( length, "maincpu", 0 ) \ |
| r15975 | r15976 | |
| 619 | 619 | #define M4BLKMGC_EXTRA_ROMS \ |
| 620 | 620 | ROM_REGION( 0x100000, "msm6376", 0 ) \ |
| 621 | 621 | ROM_LOAD( "bmsnd", 0x0000, 0x080000, CRC(81da8bc9) SHA1(a60fd689e2683b987f48e3a4c8817b169a9c3fdf) ) \ |
| 622 | ||
| 623 | 622 | |
| 623 | ||
| 624 | 624 | #define M4BLKMGC_SET(year, setname,parent,name,offset,length,hash,company,title) \ |
| 625 | 625 | ROM_START( setname ) \ |
| 626 | 626 | ROM_REGION( length, "maincpu", 0 ) \ |
| r15975 | r15976 | |
| 647 | 647 | #define M4AMALAD_EXTRA_ROMS \ |
| 648 | 648 | ROM_REGION( 0x100000, "msm6376", 0 ) \ |
| 649 | 649 | ROM_LOAD( "aasnd", 0x0000, 0x080000, CRC(6b78f3de) SHA1(4f10afdc5cf7c84e2d048f7c9c5f83323f1e5a6e) ) \ |
| 650 | ||
| 651 | 650 | |
| 651 | ||
| 652 | 652 | #define M4AMALAD_SET(year, setname,parent,name,offset,length,hash,company,title) \ |
| 653 | 653 | ROM_START( setname ) \ |
| 654 | 654 | ROM_REGION( length, "maincpu", 0 ) \ |
| r15975 | r15976 | |
| 680 | 680 | #define M4BBEN_EXTRA_ROMS \ |
| 681 | 681 | ROM_REGION( 0x100000, "msm6376", 0 ) \ |
| 682 | 682 | ROM_LOAD( "bben1s.bin", 0x0000, 0x02dbc5, CRC(9240317e) SHA1(d9167e52a09ff1783bb10e2e34fb80bdf555f00e) ) \ |
| 683 | ||
| 683 | ||
| 684 | 684 | #define M4BBEN_SET(year, setname,parent,name,offset,length,hash,company,title) \ |
| 685 | 685 | ROM_START( setname ) \ |
| 686 | 686 | ROM_REGION( length, "maincpu", 0 ) \ |
| r15975 | r15976 | |
| 702 | 702 | M4BBEN_SET( 199?, m4bben__h, m4bben, "bbc2a106.bin", 0x0000, 0x010000, CRC(4929273e) SHA1(0703b89884a2d410854d813fe8304eac0dbfb30e), "Avantime?","Big Ben (Avantime?) (MPU4) (set 9)" ) |
| 703 | 703 | M4BBEN_SET( 199?, m4bben__i, m4bben, "bbc2b106.bin", 0x0000, 0x010000, CRC(d06687ed) SHA1(2e5b32c772f47f3f10ee90cbc72c00995871c2c0), "Avantime?","Big Ben (Avantime?) (MPU4) (set 10)" ) |
| 704 | 704 | |
| 705 | ||
| 706 | 705 | |
| 707 | 706 | |
| 707 | ||
| 708 | 708 | #define M4BBOX_EXTRA_ROMS \ |
| 709 | 709 | ROM_REGION( 0x100000, "msm6376", 0 ) \ |
| 710 | 710 | ROM_LOAD( "bb1snd.bin", 0x0000, 0x068880, CRC(69d53f5a) SHA1(dd7958060804fda97a1fdf69c230bfab092b9707) ) \ |
| 711 | ||
| 711 | ||
| 712 | 712 | #define M4BBOX_SET(year, setname,parent,name,offset,length,hash,company,title) \ |
| 713 | 713 | ROM_START( setname ) \ |
| 714 | 714 | ROM_REGION( length, "maincpu", 0 ) \ |
| r15975 | r15976 | |
| 735 | 735 | |
| 736 | 736 | #define M4FRNUDG_EXTRA_ROMS \ |
| 737 | 737 | ROM_REGION( 0x100000, "msm6376", ROMREGION_ERASE00 ) \ |
| 738 | ||
| 738 | ||
| 739 | 739 | #define M4FRNUDG_SET(year, setname,parent,name,offset,length,hash,company,title) \ |
| 740 | 740 | ROM_START( setname ) \ |
| 741 | 741 | ROM_REGION( length, "maincpu", 0 ) \ |
| r15975 | r15976 | |
| 749 | 749 | M4FRNUDG_SET( 199?, m4frnudg__a, m4frnudg, "fanhc12.bin", 0x0000, 0x010000, CRC(2b2176e0) SHA1(9acffc05c02e76a6cbe4cfd708ff2d94ecb6c308), "Avantime?","Fruit & Nudge (Avantime?) (MPU4) (set 2)" ) |
| 750 | 750 | M4FRNUDG_SET( 199?, m4frnudg__b, m4frnudg, "fanhc8.bin", 0x0000, 0x010000, CRC(d1eecc15) SHA1(7dd3d218bc42ed7a92b8cd04b3de0eecda1d7eb0), "Avantime?","Fruit & Nudge (Avantime?) (MPU4) (set 3)" ) |
| 751 | 751 | M4FRNUDG_SET( 199?, m4frnudg__c, m4frnudg, "fanhc9.bin", 0x0000, 0x010000, CRC(0b581d12) SHA1(e62c831d8d21eb3c9a15ebe7f0245e804f912e32), "Avantime?","Fruit & Nudge (Avantime?) (MPU4) (set 4)" ) |
| 752 | ||
| 753 | 752 | |
| 753 | ||
| 754 | 754 | #define M4FRMTX_EXTRA_ROMS \ |
| 755 | 755 | ROM_REGION( 0x100000, "msm6376", 0 ) \ |
| 756 | 756 | ROM_LOAD( "fmsnd1.bin", 0x0000, 0x080000, CRC(300fcb23) SHA1(c3a7424089e7893972e04a6a5e77cfb4e0ffc8ec)) \ |
| 757 | 757 | ROM_REGION( 0x100000, "pals", 0 ) \ |
| 758 | 758 | ROM_LOAD( "fm.jed", 0x0000, 0x000580, CRC(dc166c8e) SHA1(0cc49836b7ad57daa54e08f10f07aa279ccc53a0)) \ |
| 759 | ||
| 759 | ||
| 760 | 760 | #define M4FRMTX_SET(year, setname,parent,name,offset,length,hash,company,title) \ |
| 761 | 761 | ROM_START( setname ) \ |
| 762 | 762 | ROM_REGION( length, "maincpu", 0 ) \ |
| r15975 | r15976 | |
| 773 | 773 | M4FRMTX_SET( 199?, m4frmtx__e, m4frmtx, "fmuk1.bin", 0x0000, 0x010000, CRC(1e798ba4) SHA1(e8d06f8281bc9bc52c7ddd3133abf7eaa231d731), "Avantime?","Fruit Matrix (Avantime?) (MPU4) (set 6)" ) |
| 774 | 774 | M4FRMTX_SET( 199?, m4frmtx__f, m4frmtx, "frmatx3", 0x0000, 0x010000, CRC(d3c47cad) SHA1(e89d8df496405903f51c31bf48774bfa877d90c2), "Avantime?","Fruit Matrix (Avantime?) (MPU4) (set 7)" ) |
| 775 | 775 | |
| 776 | ||
| 777 | 776 | |
| 778 | 777 | |
| 778 | ||
| 779 | 779 | #define M4JOK2K_EXTRA_ROMS \ |
| 780 | 780 | ROM_REGION( 0x100000, "msm6376", ROMREGION_ERASE00 ) \ |
| 781 | 781 |
| r15975 | r15976 | |
|---|---|---|
| 542 | 542 | MCFG_SOUND_ADD("sn1", SN76489A_NEW, MAIN_CLOCK/4) |
| 543 | 543 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 544 | 544 | MCFG_SOUND_CONFIG(psg_intf) |
| 545 | ||
| 545 | ||
| 546 | 546 | MCFG_SOUND_ADD("sn2", SN76489A_NEW, MAIN_CLOCK/4) |
| 547 | 547 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 548 | 548 | MCFG_SOUND_CONFIG(psg_intf) |
| 549 | ||
| 549 | ||
| 550 | 550 | MCFG_SOUND_ADD("adpcm", MSM5205, XTAL_384kHz) |
| 551 | 551 | MCFG_SOUND_CONFIG(msm5205_config) |
| 552 | 552 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| r15975 | r15976 | |
|---|---|---|
| 44 | 44 | //virtual void machine_reset(); |
| 45 | 45 | |
| 46 | 46 | virtual void video_start(); |
| 47 | public: | |
| 47 | public: | |
| 48 | 48 | DECLARE_DRIVER_INIT(chsuper3); |
| 49 | 49 | DECLARE_DRIVER_INIT(chmpnum); |
| 50 | 50 | DECLARE_DRIVER_INIT(chsuper2); |
| r15975 | r15976 | |
|---|---|---|
| 25 | 25 | |
| 26 | 26 | // driver_device overrides |
| 27 | 27 | virtual void machine_reset(); |
| 28 | public: | |
| 28 | public: | |
| 29 | 29 | DECLARE_DRIVER_INIT(de_3); |
| 30 | 30 | }; |
| 31 | 31 |
| r15975 | r15976 | |
|---|---|---|
| 141 | 141 | static INPUT_PORTS_START( sdgndmps ) |
| 142 | 142 | PORT_INCLUDE( common ) |
| 143 | 143 | |
| 144 | PORT_MODIFY("SYSTEM") | |
| 145 | PORT_SERVICE_NO_TOGGLE( 0x0100, IP_ACTIVE_LOW ) | |
| 146 | ||
| 144 | 147 | PORT_START("DSW") |
| 145 | 148 | PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_B ) ) |
| 146 | 149 | PORT_DIPSETTING( 0x0004, DEF_STR( 4C_1C ) ) |
| r15975 | r15976 | |
| 187 | 190 | PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) ) |
| 188 | 191 | PORT_DIPSETTING( 0x0800, DEF_STR( Off ) ) |
| 189 | 192 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 190 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) | |
| 193 | PORT_DIPNAME( 0x1000, 0x1000, DEF_STR( Unknown ) ) // plays a jingle at the game intro (why?) | |
| 191 | 194 | PORT_DIPSETTING( 0x1000, DEF_STR( Off ) ) |
| 192 | 195 | PORT_DIPSETTING( 0x0000, DEF_STR( On ) ) |
| 193 | 196 | PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Allow_Continue ) ) |
| r15975 | r15976 | |
|---|---|---|
| 31 | 31 | |
| 32 | 32 | // devices |
| 33 | 33 | required_device<cpu_device> m_maincpu; |
| 34 | public: | |
| 34 | public: | |
| 35 | 35 | DECLARE_DRIVER_INIT(sc5); |
| 36 | 36 | }; |
| 37 | 37 |
| r15975 | r15976 | |
|---|---|---|
| 25 | 25 | |
| 26 | 26 | // driver_device overrides |
| 27 | 27 | virtual void machine_reset(); |
| 28 | public: | |
| 28 | public: | |
| 29 | 29 | DECLARE_DRIVER_INIT(de_3b); |
| 30 | 30 | }; |
| 31 | 31 |
| r15975 | r15976 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | // driver_device overrides |
| 19 | 19 | virtual void machine_reset(); |
| 20 | public: | |
| 20 | public: | |
| 21 | 21 | DECLARE_DRIVER_INIT(by68701); |
| 22 | 22 | }; |
| 23 | 23 |
| r15975 | r15976 | |
|---|---|---|
| 5479 | 5479 | GAME( 1995, cluedo, 0, jpmimpct, cluedo, driver_device, 0, ROT0, "JPM", "Cluedo (prod. 2D)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 5480 | 5480 | GAME( 1995, cluedod, cluedo, jpmimpct, cluedo, driver_device, 0, ROT0, "JPM", "Cluedo (prod. 2D) (Protocol)",GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 5481 | 5481 | GAME( 1995, cluedo2c, cluedo, jpmimpct, cluedo, driver_device, 0, ROT0, "JPM", "Cluedo (prod. 2C)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) |
| 5482 | GAME( 1995, cluedo2, cluedo, jpmimpct, cluedo, driver_device, 0, ROT0, "JPM", "Cluedo (prod. 2)", | |
| 5482 | GAME( 1995, cluedo2, cluedo, jpmimpct, cluedo, driver_device, 0, ROT0, "JPM", "Cluedo (prod. 2)", | |
| 5483 | 5483 | GAME( 1996, trivialp, 0, jpmimpct, trivialp, driver_device, 0, ROT0, "JPM", "Trivial Pursuit (New Edition) (prod. 1D)", GAME_SUPPORTS_SAVE ) |
| 5484 | 5484 | GAME( 1996, trivialpd,trivialp,jpmimpct, trivialp, driver_device, 0, ROT0, "JPM", "Trivial Pursuit (New Edition) (prod. 1D) (Protocol)",GAME_SUPPORTS_SAVE ) |
| 5485 | 5485 | GAME( 1996, trivialpo,trivialp,jpmimpct, trivialp, driver_device, 0, ROT0, "JPM", "Trivial Pursuit", GAME_SUPPORTS_SAVE ) |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(by17); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 207 | 207 | * Sound definitions |
| 208 | 208 | * |
| 209 | 209 | *************************************/ |
| 210 | ||
| 211 | ||
| 210 | ||
| 211 | ||
| 212 | 212 | //------------------------------------------------- |
| 213 | 213 | // sn76496_config psg_intf |
| 214 | 214 | //------------------------------------------------- |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(gts1); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 384 | 384 | * Sound interface |
| 385 | 385 | * |
| 386 | 386 | *************************************/ |
| 387 | ||
| 388 | ||
| 387 | ||
| 388 | ||
| 389 | 389 | //------------------------------------------------- |
| 390 | 390 | // sn76496_config psg_intf |
| 391 | 391 | //------------------------------------------------- |
| r15975 | r15976 | |
| 426 | 426 | MCFG_SOUND_ADD("sn1", SN76489_NEW, 10000000/4) |
| 427 | 427 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 428 | 428 | MCFG_SOUND_CONFIG(psg_intf) |
| 429 | ||
| 429 | ||
| 430 | 430 | MCFG_SOUND_ADD("sn2", SN76489_NEW, 10000000/4) |
| 431 | 431 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 432 | 432 | MCFG_SOUND_CONFIG(psg_intf) |
| 433 | ||
| 433 | ||
| 434 | 434 | MCFG_SOUND_ADD("adpcm", MJKJIDAI, 6000) |
| 435 | 435 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 436 | 436 | MACHINE_CONFIG_END |
| r15975 | r15976 | |
|---|---|---|
| 242 | 242 | * Sound definitions |
| 243 | 243 | * |
| 244 | 244 | *************************************/ |
| 245 | ||
| 246 | ||
| 245 | ||
| 246 | ||
| 247 | 247 | //------------------------------------------------- |
| 248 | 248 | // sn76496_config psg_intf |
| 249 | 249 | //------------------------------------------------- |
| r15975 | r15976 | |
| 296 | 296 | MCFG_SOUND_ADD("snsnd", SN76489A_NEW, MASTER_CLOCK/12) |
| 297 | 297 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 298 | 298 | MCFG_SOUND_CONFIG(psg_intf) |
| 299 | ||
| 299 | ||
| 300 | 300 | MCFG_SOUND_ADD("vlm", VLM5030, VOICE_CLOCK) |
| 301 | 301 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 302 | 302 | MACHINE_CONFIG_END |
| r15975 | r15976 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | // driver_device overrides |
| 19 | 19 | virtual void machine_reset(); |
| 20 | public: | |
| 20 | public: | |
| 21 | 21 | DECLARE_DRIVER_INIT(micropin); |
| 22 | 22 | }; |
| 23 | 23 |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(by35); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 659 | 659 | MCFG_SOUND_ADD("sn1", SN76496_NEW, 12000000/4) |
| 660 | 660 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 661 | 661 | MCFG_SOUND_CONFIG(psg_intf) |
| 662 | ||
| 662 | ||
| 663 | 663 | MCFG_SOUND_ADD("sn2", SN76496_NEW, 12000000/4) |
| 664 | 664 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 665 | 665 | MCFG_SOUND_CONFIG(psg_intf) |
| 666 | ||
| 666 | ||
| 667 | 667 | MCFG_SOUND_ADD("sn3", SN76496_NEW, 12000000/4) |
| 668 | 668 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 669 | 669 | MCFG_SOUND_CONFIG(psg_intf) |
| 670 | ||
| 670 | ||
| 671 | 671 | MCFG_SOUND_ADD("sn4", SN76496_NEW, 12000000/4) |
| 672 | 672 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 673 | 673 | MCFG_SOUND_CONFIG(psg_intf) |
| r15975 | r15976 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | static ADDRESS_MAP_START( atronic_portmap, AS_IO, 8, atronic_state ) |
| 48 | // | |
| 48 | // ADDRESS_MAP_GLOBAL_MASK(0xff) | |
| 49 | 49 | ADDRESS_MAP_UNMAP_HIGH |
| 50 | 50 | AM_RANGE(0x00, 0x3f) AM_RAM |
| 51 | 51 | ADDRESS_MAP_END |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(atari_s3); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 2050 | 2050 | ROM_LOAD("gdx-0017d.pic_data", 0x00, 0x50, NO_DUMP ) |
| 2051 | 2051 | ROM_END |
| 2052 | 2052 | |
| 2053 | ROM_START( mj3f ) | |
| 2054 | CHIHIRO_BIOS | |
| 2055 | ||
| 2056 | DISK_REGION( "gdrom" ) | |
| 2057 | DISK_IMAGE_READONLY( "gdx-0017f", 0, SHA1(a859313c80c5303bba5514ff734a7205cd12e456) ) | |
| 2058 | ||
| 2059 | ROM_REGION( 0x50, "pic", ROMREGION_ERASE) // key was missing | |
| 2060 | ROM_LOAD("gdx-0017f.pic_data", 0x00, 0x50, NO_DUMP ) | |
| 2061 | ROM_END | |
| 2062 | ||
| 2053 | 2063 | ROM_START( scg06nt ) |
| 2054 | 2064 | CHIHIRO_BIOS |
| 2055 | 2065 | |
| r15975 | r15976 | |
| 2096 | 2106 | GAME( 2005, wangmid2, chihiro, chihirogd, chihiro, driver_device, 0, ROT0, "Namco", "Wangan Midnight Maximum Tune 2 (Export) (GDX-0015)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2097 | 2107 | GAME( 2005, wangmd2b, chihiro, chihirogd, chihiro, driver_device, 0, ROT0, "Namco", "Wangan Midnight Maximum Tune 2 (Japan) (Rev A) (GDX-0016A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2098 | 2108 | GAME( 2005, mj3, chihiro, chihirogd, chihiro, driver_device, 0, ROT0, "Sega", "Sega Network Taisen Mahjong MJ 3 (Rev D) (GDX-0017D)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 2109 | GAME( 2005, mj3f, mj3, chihirogd, chihiro, driver_device, 0, ROT0, "Sega", "Sega Network Taisen Mahjong MJ 3 (Rev F) (GDX-0017F)", GAME_NO_SOUND|GAME_NOT_WORKING ) | |
| 2099 | 2110 | GAME( 2005, scg06nt, chihiro, chihirogd, chihiro, driver_device, 0, ROT0, "Sega", "Sega Club Golf 2006 Next Tours (Rev A) (GDX-0018A)", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(gts3); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 25 | 25 | { |
| 26 | 26 | return machine().rand(); |
| 27 | 27 | } |
| 28 | ||
| 28 | ||
| 29 | 29 | DECLARE_WRITE16_MEMBER( mpu4plasma_unk_w ) |
| 30 | 30 | { |
| 31 | 31 | |
| r15975 | r15976 | |
| 40 | 40 | |
| 41 | 41 | static ADDRESS_MAP_START( mpu4plasma_map, AS_PROGRAM, 16, mpu4plasma_state ) |
| 42 | 42 | AM_RANGE(0x000000, 0x03ffff) AM_ROM |
| 43 | ||
| 43 | ||
| 44 | 44 | // why does it test this much ram, just sloppy code expecting mirroring? |
| 45 | 45 | AM_RANGE(0x400000, 0x4fffff) AM_RAM AM_SHARE("plasmaram") |
| 46 | 46 | // comms? |
| 47 | AM_RANGE(0xffff00, 0xffff01) AM_READ( mpu4plasma_unk_r ) | |
| 47 | AM_RANGE(0xffff00, 0xffff01) AM_READ( mpu4plasma_unk_r ) | |
| 48 | 48 | AM_RANGE(0xffff04, 0xffff05) AM_WRITE( mpu4plasma_unk_w ) |
| 49 | 49 | ADDRESS_MAP_END |
| 50 | 50 | |
| r15975 | r15976 | |
| 67 | 67 | for (x=0;x<128/16;x++) |
| 68 | 68 | { |
| 69 | 69 | UINT16 pix = rambase[base+i]; |
| 70 | ||
| 70 | ||
| 71 | 71 | for (p=0;p<16;p++) |
| 72 | 72 | { |
| 73 | 73 | UINT16 bit = (pix << p)&0x8000; |
| r15975 | r15976 | |
| 79 | 79 | |
| 80 | 80 | } |
| 81 | 81 | } |
| 82 | ||
| 82 | ||
| 83 | 83 | return 0; |
| 84 | 84 | } |
| 85 | 85 | |
| r15975 | r15976 | |
| 170 | 170 | ROM_REGION( 0x40000, "plasmacpu", 0 ) \ |
| 171 | 171 | ROM_LOAD16_BYTE( "plasma.p0", 0x00000, 0x010000, NO_DUMP ) \ |
| 172 | 172 | ROM_LOAD16_BYTE( "plasma.p1", 0x00001, 0x010000, NO_DUMP ) \ |
| 173 | ||
| 174 | 173 | |
| 174 | ||
| 175 | 175 | ROM_START( m4apach ) |
| 176 | 176 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 177 | 177 | ROM_LOAD( "a6ps.p1", 0x0000, 0x010000, CRC(41e375c7) SHA1(93556a90227cde6814123c8a7f29f734884e182c) ) |
| r15975 | r15976 | |
| 196 | 196 | |
| 197 | 197 | #define GAME_FLAGS (GAME_NOT_WORKING|GAME_REQUIRES_ARTWORK) |
| 198 | 198 | |
| 199 | GAMEL(199?, m4bigchf ,0 ,mpu4plasma ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Big Chief (Barcrest) (MPU4 w/ Plasma DMD) (set 1)", GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma ) | |
| 200 | GAMEL(199?, m4bigchfa ,m4bigchf ,mpu4plasma ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Big Chief (Barcrest) (MPU4 w/ Plasma DMD) (set 2)", GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma ) | |
| 201 | GAMEL(199?, m4bigchfb ,m4bigchf ,mpu4plasma ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Big Chief (Barcrest) (MPU4 w/ Plasma DMD) (set 3)", GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma ) | |
| 202 | GAMEL(199?, m4bigchfc ,m4bigchf ,mpu4plasma ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Big Chief (Barcrest) (MPU4 w/ Plasma DMD) (set 4)", GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma ) | |
| 199 | GAMEL(199?, m4bigchf ,0 ,mpu4plasma ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Big Chief (Barcrest) (MPU4 w/ Plasma DMD) (set 1)", GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma ) | |
| 200 | GAMEL(199?, m4bigchfa ,m4bigchf ,mpu4plasma ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Big Chief (Barcrest) (MPU4 w/ Plasma DMD) (set 2)", GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma ) | |
| 201 | GAMEL(199?, m4bigchfb ,m4bigchf ,mpu4plasma ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Big Chief (Barcrest) (MPU4 w/ Plasma DMD) (set 3)", GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma ) | |
| 202 | GAMEL(199?, m4bigchfc ,m4bigchf ,mpu4plasma ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Big Chief (Barcrest) (MPU4 w/ Plasma DMD) (set 4)", GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma ) | |
| 203 | 203 | |
| 204 | 204 | GAMEL(199?, m4click ,0 ,mpu4plasma ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Clickity Click (Barcrest) (MPU4 w/ Plasma DMD)", GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma ) |
| 205 | 205 | |
| 206 | 206 | // not confirmed to be plasma, is this an alt version of big chief? maybe it uses the same plasma roms? |
| 207 | GAMEL(199?, m4apach ,0 ,mpu4plasma | |
| 207 | GAMEL(199?, m4apach ,0 ,mpu4plasma | |
| 208 | 208 | // not confirmed to be plasma, but acts like it |
| 209 | GAMEL(199?, m4elite ,0 ,mpu4plasma | |
| 209 | GAMEL(199?, m4elite ,0 ,mpu4plasma |
| r15975 | r15976 | |
|---|---|---|
| 4867 | 4867 | NAOMI_DEFAULT_EEPROM |
| 4868 | 4868 | |
| 4869 | 4869 | ROM_REGION( 0x8800000, "rom_board", ROMREGION_ERASEFF) |
| 4870 | ROM_LOAD( "sambaproto.ic22",0x000000, 0x0400000, CRC(ca069449) SHA1(03c2498664df187a98b335f1757979ebcf45c591) ) | |
| 4870 | ROM_LOAD( "sambaproto.ic22",0x000000, 0x0400000, CRC(ca069449) SHA1(03c2498664df187a98b335f1757979ebcf45c591) ) | |
| 4871 | 4871 | ROM_LOAD("mpr-22950.ic1", 0x0800000, 0x0800000, CRC(16dee15c) SHA1(b46849e492756ff406bf8956303472255fcf55a5) ) |
| 4872 | 4872 | ROM_LOAD("mpr-22951.ic2", 0x1000000, 0x0800000, CRC(f509496f) SHA1(41281576f7d58c8ede9c0a89bfd46a98d5b97033) ) |
| 4873 | 4873 | ROM_LOAD("mpr-22952.ic3", 0x1800000, 0x0800000, CRC(fb9b3ef0) SHA1(e9d44b673c273e97445a12186496a0594e291542) ) |
| r15975 | r15976 | |
| 6019 | 6019 | NAOMI_DEFAULT_EEPROM |
| 6020 | 6020 | |
| 6021 | 6021 | DISK_REGION( "gdrom" ) |
| 6022 | DISK_IMAGE_READONLY( "gdl-0005", 0, | |
| 6022 | DISK_IMAGE_READONLY( "gdl-0005", 0, | |
| 6023 | 6023 | |
| 6024 | 6024 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6025 | 6025 | //PIC16C621A-20 (317-5077-JPN) |
| r15975 | r15976 | |
| 6064 | 6064 | NAOMI_DEFAULT_EEPROM |
| 6065 | 6065 | |
| 6066 | 6066 | DISK_REGION( "gdrom" ) |
| 6067 | DISK_IMAGE_READONLY( "gdl-0010", 0, | |
| 6067 | DISK_IMAGE_READONLY( "gdl-0010", 0, | |
| 6068 | 6068 | |
| 6069 | 6069 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6070 | 6070 | //PIC16C622A (317-5081-JPN) |
| r15975 | r15976 | |
| 6123 | 6123 | NAOMI_DEFAULT_EEPROM |
| 6124 | 6124 | |
| 6125 | 6125 | DISK_REGION( "gdrom" ) |
| 6126 | DISK_IMAGE_READONLY( "gdl-0014a", 0, | |
| 6126 | DISK_IMAGE_READONLY( "gdl-0014a", 0, | |
| 6127 | 6127 | |
| 6128 | 6128 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6129 | 6129 | //PIC16C622A (317-5085-JPN) |
| r15975 | r15976 | |
| 6200 | 6200 | ROM_LOAD("shikgam2-default-eeprom.bin", 0, 0x80, CRC(5fb60e27) SHA1(a64242083a718f0a4b1d2e4707f5eb7480265719)) |
| 6201 | 6201 | |
| 6202 | 6202 | DISK_REGION( "gdrom" ) |
| 6203 | DISK_IMAGE_READONLY( "gdl-0021", 0, | |
| 6203 | DISK_IMAGE_READONLY( "gdl-0021", 0, | |
| 6204 | 6204 | |
| 6205 | 6205 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6206 | 6206 | //PIC16C622A (317-5095-JPN) |
| r15975 | r15976 | |
| 6234 | 6234 | ROM_LOAD("bdrdown-default-eeprom.bin", 0, 0x80, CRC(5b19727c) SHA1(1dd9c721d58e4542d04afe17baa77980d0ed8b6a)) |
| 6235 | 6235 | |
| 6236 | 6236 | DISK_REGION( "gdrom" ) |
| 6237 | DISK_IMAGE_READONLY( "gdl-0023a", 0, | |
| 6237 | DISK_IMAGE_READONLY( "gdl-0023a", 0, | |
| 6238 | 6238 | |
| 6239 | 6239 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6240 | 6240 | //PIC16C622A (317-5097-JPN) |
| r15975 | r15976 | |
| 6252 | 6252 | ROM_LOAD("psyvar2-default-eeprom.bin", 0, 0x80, CRC(9d8661f3) SHA1(c696277a7b488bee6ddb33a1d5345a85c1567cbe)) |
| 6253 | 6253 | |
| 6254 | 6254 | DISK_REGION( "gdrom" ) |
| 6255 | DISK_IMAGE_READONLY( "gdl-0024", 0, | |
| 6255 | DISK_IMAGE_READONLY( "gdl-0024", 0, | |
| 6256 | 6256 | |
| 6257 | 6257 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6258 | 6258 | //PIC16C621A (317-5100-JPN) |
| r15975 | r15976 | |
| 6286 | 6286 | ROM_LOAD("trizeal-default-eeprom.bin", 0, 0x80, CRC(ac0847ce) SHA1(ec12a6bbf074bf3bfe2e9bfe2855b7bd7e699f3c)) |
| 6287 | 6287 | |
| 6288 | 6288 | DISK_REGION( "gdrom" ) |
| 6289 | DISK_IMAGE_READONLY( "gdl-0026", 0, BAD_DUMP SHA1(e4c1e51292a7923b25bfc61d38fe386bf596002a) ) | |
| 6289 | DISK_IMAGE_READONLY( "gdl-0026", 0, SHA1(2aacd8400d91db8bb1c103b915f6d808e9aef333 | |
| 6290 | ) ) | |
| 6290 | 6291 | |
| 6291 | 6292 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6292 | 6293 | //PIC16C621A (317-5103-JPN) |
| r15975 | r15976 | |
| 6317 | 6318 | ROM_LOAD("senko-default-eeprom.bin", 0, 0x80, CRC(b3d3be09) SHA1(55af4f6e35f82f683682bf731d3070bc275d6e57)) |
| 6318 | 6319 | |
| 6319 | 6320 | DISK_REGION( "gdrom" ) |
| 6320 | DISK_IMAGE_READONLY( "gdl-0030a", 0, | |
| 6321 | DISK_IMAGE_READONLY( "gdl-0030a", 0, | |
| 6321 | 6322 | |
| 6322 | 6323 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6323 | 6324 | //PIC16C622A (317-5107-JPN) |
| r15975 | r15976 | |
| 6349 | 6350 | ROM_REGION( 0x80, "mie_eeprom", 0 ) |
| 6350 | 6351 | ROM_LOAD("ss2005-default-eeprom.bin", 0, 0x80, CRC(26bd9003) SHA1(f35551c96c49eef5473ff50a94b82ef5110b0f10)) |
| 6351 | 6352 | |
| 6352 | DISK_REGION( "gdrom" ) | |
| 6353 | DISK_IMAGE_READONLY( "gdl-0031", 0, BAD_DUMP SHA1(83697f45f0ffbb964f0504b19171c554499cd709) ) | |
| 6353 | DISK_REGION( "gdrom" ) | |
| 6354 | DISK_IMAGE_READONLY( "gdl-0031", 0, BAD_DUMP SHA1(83697f45f0ffbb964f0504b19171c554499cd709) ) | |
| 6354 | 6355 | |
| 6355 | 6356 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6356 | 6357 | //PIC16C622A (317-5108-JPN) |
| r15975 | r15976 | |
| 6443 | 6444 | ROM_LOAD("trgheart-default-eeprom.bin", 0, 0x80, CRC(7faff313) SHA1(1bc25e4595ef050e82eb820842ba6ccd63b6703e)) |
| 6444 | 6445 | |
| 6445 | 6446 | DISK_REGION( "gdrom" ) |
| 6446 | DISK_IMAGE_READONLY( "gdl-0036a", 0, | |
| 6447 | DISK_IMAGE_READONLY( "gdl-0036a", 0, | |
| 6447 | 6448 | |
| 6448 | 6449 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6449 | 6450 | //PIC16C622A (317-5121-JPN) |
| r15975 | r15976 | |
| 6515 | 6516 | ROM_LOAD("karous-default-eeprom.bin", 0, 0x80, CRC(b017451c) SHA1(a16d8e2cde8ebe0e2dd6d0b5c027bcdff56a809b)) |
| 6516 | 6517 | |
| 6517 | 6518 | DISK_REGION( "gdrom" ) |
| 6518 | DISK_IMAGE_READONLY( "gdl-0040", 0, | |
| 6519 | DISK_IMAGE_READONLY( "gdl-0040", 0, | |
| 6519 | 6520 | |
| 6520 | 6521 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 6521 | 6522 | //PIC16C621A (317-5125-COM) |
| r15975 | r15976 | |
| 7011 | 7012 | ROM_LOAD("317-0338-jpn.pic", 0x00, 0x4000, CRC(b177ba7d) SHA1(f751ec43a8e944a01eeda58c01b7bc73e5df749d) ) |
| 7012 | 7013 | ROM_END |
| 7013 | 7014 | |
| 7015 | ROM_START( ngdup23e ) | |
| 7016 | NAOMIGD_BIOS | |
| 7017 | NAOMI_DEFAULT_EEPROM | |
| 7014 | 7018 | |
| 7019 | DISK_REGION( "gdrom" ) | |
| 7020 | DISK_IMAGE_READONLY( "gds-0023e", 0, SHA1(cc592e5b32273f93866c4447e1fb56751911992c)) | |
| 7021 | ||
| 7022 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) | |
| 7023 | // PIC and sticker unknown | |
| 7024 | ROM_LOAD("317-unk-jpn.pic", 0x00, 0x4000, NO_DUMP ) | |
| 7025 | ROM_END | |
| 7026 | ||
| 7015 | 7027 | ROM_START( puyofev ) |
| 7016 | 7028 | NAOMIGD_BIOS |
| 7017 | 7029 | NAOMI_DEFAULT_EEPROM |
| r15975 | r15976 | |
| 7020 | 7032 | ROM_LOAD("puyofev-default-eeprom.bin", 0, 0x80, CRC(42e5fd40) SHA1(e805bca22ae192e26965ba00534e6b87a3df238f)) |
| 7021 | 7033 | |
| 7022 | 7034 | DISK_REGION( "gdrom" ) |
| 7023 | DISK_IMAGE_READONLY( "gds-0031", 0, | |
| 7035 | DISK_IMAGE_READONLY( "gds-0031", 0, | |
| 7024 | 7036 | |
| 7025 | 7037 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 7026 | 7038 | //PIC16C621A (317-0375-COM) |
| r15975 | r15976 | |
| 7321 | 7333 | NAOMI_DEFAULT_EEPROM |
| 7322 | 7334 | |
| 7323 | 7335 | DISK_REGION( "gdrom" ) |
| 7324 | DISK_IMAGE_READONLY( "gds-0036f", 0, | |
| 7336 | DISK_IMAGE_READONLY( "gds-0036f", 0, | |
| 7325 | 7337 | |
| 7326 | 7338 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) |
| 7327 | 7339 | //PIC16C622A (317-0387-COM) |
| r15975 | r15976 | |
| 7421 | 7433 | ROM_LOAD("317-0343-com.pic", 0x00, 0x4000, CRC(80eea4eb) SHA1(5aedc0d52a2a8a2d186ca591094835d972574092) ) |
| 7422 | 7434 | ROM_END |
| 7423 | 7435 | |
| 7436 | ROM_START( inidv3cy ) | |
| 7437 | NAOMI2_BIOS | |
| 7438 | NAOMI_DEFAULT_EEPROM | |
| 7424 | 7439 | |
| 7440 | DISK_REGION( "gdrom" ) | |
| 7441 | DISK_IMAGE_READONLY( "gds-0039b", 0, SHA1(49521709c44a4eee1b384455940b3fec6e03e8fe) ) | |
| 7425 | 7442 | |
| 7443 | ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF) | |
| 7444 | // PIC/sticker unknown | |
| 7445 | ROM_LOAD("317-unk-com.pic", 0x00, 0x4000, NO_DUMP ) | |
| 7446 | ROM_END | |
| 7447 | ||
| 7448 | ||
| 7426 | 7449 | /********************************************** |
| 7427 | 7450 | * |
| 7428 | 7451 | * Atomiswave cart defines |
| r15975 | r15976 | |
| 8017 | 8040 | // 0023B Naomi DIMM Firmware Updater (Rev B) |
| 8018 | 8041 | /* 0023C */ GAME( 2001, ngdup23c, naomigd, naomigd, naomi, dc_state, naomigd, ROT0, "Sega", "Naomi DIMM Firmware Updater (Rev C) (GDS-0023C)", GAME_FLAGS ) |
| 8019 | 8042 | // 0023D Naomi DIMM Firmware Updater (Rev D) |
| 8020 | / | |
| 8043 | /* 0023E */ GAME( 2001, ngdup23e, naomigd, naomigd, naomi, dc_state, naomigd, ROT0, "Sega", "Naomi DIMM Firmware Updater (Rev E) (GDS-0023E)", GAME_FLAGS ) | |
| 8021 | 8044 | // 0024 Virtua Fighter 4 Evolution |
| 8022 | 8045 | /* 0024A */ GAME( 2002, vf4evoa, vf4evo, naomi2gd,naomi, dc_state, naomi2, ROT0, "Sega", "Virtua Fighter 4 Evolution (Rev A) (GDS-0024A)", GAME_FLAGS ) |
| 8023 | 8046 | /* 0024B */ GAME( 2002, vf4evo, naomi2, naomi2gd,naomi, dc_state, naomi2, ROT0, "Sega", "Virtua Fighter 4 Evolution (Rev B) (GDS-0024B)", GAME_FLAGS ) |
| r15975 | r15976 | |
| 8048 | 8071 | // 0038 |
| 8049 | 8072 | // 0039 Initial D: Arcade Stage Ver. 3 Cycraft Edition |
| 8050 | 8073 | // 0039A Initial D: Arcade Stage Ver. 3 Cycraft Edition (Rev A) |
| 8051 | / | |
| 8074 | /* 0039B */ GAME( 2006, inidv3cy, naomi2, naomigd, naomi, dc_state, naomi2, ROT0, "Sega", "Initial D | |
| 8052 | 8075 | // 0040 |
| 8053 | 8076 | // 0041 Dragon Treasure 3 |
| 8054 | 8077 | // 0041A Dragon Treasure 3 (Rev A) |
| r15975 | r15976 | |
|---|---|---|
| 17 | 17 | // this helps with sorting |
| 18 | 18 | UINT8 *src = machine().root_device().memregion( "maincpu" )->base(); |
| 19 | 19 | int size = machine().root_device().memregion( "maincpu" )->bytes(); |
| 20 | ||
| 20 | ||
| 21 | 21 | for (int j=0;j<size;j+=0x10000) |
| 22 | 22 | { |
| 23 | 23 | if (size>0x10000) printf("\nblock 0x%06x:\n",j); |
| r15975 | r15976 | |
| 645 | 645 | |
| 646 | 646 | |
| 647 | 647 | GAME(199?, m4vivasx ,0 ,mod4yam ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Viva Las Vegas Six (Barcrest) (MPU4)",GAME_FLAGS) |
| 648 | GAME(199?, m4stc ,0 ,mod4yam | |
| 648 | GAME(199?, m4stc ,0 ,mod4yam | |
| 649 | 649 | GAME(199?, m4sstrek ,m4supst ,mod4yam ,mpu4 , mpu4_state,m4default ,ROT0, "bootleg","Super Streak (bootleg) (MPU4)",GAME_FLAGS) |
| 650 | 650 | GAME(199?, m4joljokd,m4joljok ,mod4yam ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Jolly Joker (Barcrest) [Dutch] (MPU4) (DJJ)",GAME_FLAGS) |
| 651 | 651 | GAME(199?, m4clbshf ,0 ,mod4yam ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Club Shuffle (Barcrest) (MPU4)",GAME_FLAGS) // set stake |
| 652 | GAME(199?, m4voodoo ,0 ,mod4yam | |
| 652 | GAME(199?, m4voodoo ,0 ,mod4yam | |
| 653 | 653 | GAME(199?, m4graffd ,m4graff ,mod4yam ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Grafitti (Barcrest) [Dutch] (MPU4)",GAME_FLAGS ) |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | |
| 3 | Thunder Zone (c) 1991 Data East Corporation (World 2 players) | |
| 4 | Thunder Zone (c) 1991 Data East Corporation (Japan 2 players) | |
| 5 | Desert Assault (c) 1991 Data East Corporation (USA 4 players) | |
| 6 | Desert Assault (c) 1991 Data East Corporation (USA 2 players) | |
| 3 | Thunder Zone / Desert Assault (c) 1991 Data East Corporation | |
| 7 | 4 | |
| 5 | Thunder Zone (World 2 players, 2 sets) | |
| 6 | Thunder Zone (Japan 2 players) | |
| 7 | Desert Assault (USA 4 players) | |
| 8 | Desert Assault (USA 2 players) | |
| 9 | ||
| 8 | 10 | Emulation by Bryan McPhail, mish@tendril.co.uk |
| 9 | 11 | |
| 10 | PCB DE-0344-3 (verified for the Japan set) | |
| 12 | PCB DE-0344-3 (Main board) | |
| 13 | Data East 59 (68000 Main CPU) | |
| 14 | Data East 55 x 2 | |
| 15 | Data East 45 (H6280 Sound CPU) | |
| 16 | YM2203C + YM3014B | |
| 17 | YM2151 + YM3012 | |
| 18 | OKI M6295 x 2 | |
| 19 | 32.220MHz OSC | |
| 20 | DSW 8-switch (2 populated, 1 unpopulated) | |
| 11 | 21 | |
| 22 | PCB DE-0345-1 (Sub board) | |
| 23 | Data East 59 (68000 Sub CPU) | |
| 24 | Data East 55 x 2 | |
| 25 | 28MHz OSC | |
| 12 | 26 | |
| 27 | ||
| 13 | 28 | Stephh's notes (based on the games M68000 code and some tests) : |
| 14 | 29 | |
| 15 | 30 | 0) all games |
| r15975 | r15976 | |
| 564 | 579 | static MACHINE_CONFIG_START( dassault, dassault_state ) |
| 565 | 580 | |
| 566 | 581 | /* basic machine hardware */ |
| 567 | MCFG_CPU_ADD("maincpu", M68000, | |
| 582 | MCFG_CPU_ADD("maincpu", M68000, XTAL_28MHz/2) /* 14MHz - Accurate */ | |
| 568 | 583 | MCFG_CPU_PROGRAM_MAP(dassault_map) |
| 569 | 584 | MCFG_CPU_VBLANK_INT("screen", irq4_line_hold) |
| 570 | 585 | |
| 571 | MCFG_CPU_ADD("sub", M68000, | |
| 586 | MCFG_CPU_ADD("sub", M68000, XTAL_28MHz/2) /* 14MHz - Accurate */ | |
| 572 | 587 | MCFG_CPU_PROGRAM_MAP(dassault_sub_map) |
| 573 | 588 | MCFG_CPU_VBLANK_INT("screen", irq5_line_hold) |
| 574 | 589 | |
| 575 | MCFG_CPU_ADD("audiocpu", H6280,3222 | |
| 590 | MCFG_CPU_ADD("audiocpu", H6280, XTAL_32_22MHz | |
| 576 | 591 | MCFG_CPU_PROGRAM_MAP(sound_map) |
| 577 | 592 | |
| 578 | 593 | // MCFG_QUANTUM_TIME(attotime::from_hz(8400)) /* 140 CPU slices per frame */ |
| r15975 | r15976 | |
| 609 | 624 | /* sound hardware */ |
| 610 | 625 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 611 | 626 | |
| 612 | MCFG_SOUND_ADD("ym1", YM2203, 3222 | |
| 627 | MCFG_SOUND_ADD("ym1", YM2203, XTAL_32_22MHz | |
| 613 | 628 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.40) |
| 614 | 629 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.40) |
| 615 | 630 | |
| 616 | MCFG_SOUND_ADD("ym2", YM2151, 3222 | |
| 631 | MCFG_SOUND_ADD("ym2", YM2151, XTAL_32_22MHz | |
| 617 | 632 | MCFG_SOUND_CONFIG(ym2151_config) |
| 618 | 633 | MCFG_SOUND_ROUTE(0, "lspeaker", 0.45) |
| 619 | 634 | MCFG_SOUND_ROUTE(1, "rspeaker", 0.45) |
| 620 | 635 | |
| 621 | MCFG_OKIM6295_ADD("oki1", | |
| 636 | MCFG_OKIM6295_ADD("oki1", XTAL_32_22MHz/3 | |
| 622 | 637 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50) |
| 623 | 638 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.50) |
| 624 | 639 | |
| 625 | MCFG_OKIM6295_ADD("oki2", 2 | |
| 640 | MCFG_OKIM6295_ADD("oki2", XTAL_32_22MHz/16, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified - was 2.047848MHz | |
| 626 | 641 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25) |
| 627 | 642 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25) |
| 628 | 643 | MACHINE_CONFIG_END |
| r15975 | r15976 | |
| 631 | 646 | |
| 632 | 647 | ROM_START( thndzone ) |
| 633 | 648 | ROM_REGION(0x80000, "maincpu", 0 ) /* 68000 code */ |
| 649 | ROM_LOAD16_BYTE("gz01-1.a15", 0x00000, 0x20000, CRC(20250da6) SHA1(2d01d59b67a2ecc2ddc88eded43f451931a0a33b) ) | |
| 650 | ROM_LOAD16_BYTE("gz03-1.a17", 0x00001, 0x20000, CRC(3595fad0) SHA1(5d61776cdf2274cb26ea06ce97c35f5ce7f27e66) ) | |
| 651 | ROM_LOAD16_BYTE("gt00.a14", 0x40000, 0x20000, CRC(b7277175) SHA1(ffb19c4dd12e0391f01de57c46a7998885fe22bf) ) /* Same data as GS00.A14 */ | |
| 652 | ROM_LOAD16_BYTE("gt02.a16", 0x40001, 0x20000, CRC(cde31e35) SHA1(0219845308c9f46e73b0504bd2aefa2fa74f388e) ) /* Same data as GS02.A16 */ | |
| 653 | ||
| 654 | ROM_REGION(0x80000, "sub", 0 ) /* 68000 code (Sub cpu) */ | |
| 655 | ROM_LOAD16_BYTE("gz10-1.a12", 0x00000, 0x20000, CRC(811d86d7) SHA1(94971acad2c648b7a65ca54d9315414ed3b94f24) ) | |
| 656 | ROM_LOAD16_BYTE("gz08-1.a9", 0x00001, 0x20000, CRC(8f61ab1e) SHA1(df4e7db889915eca39ed4e1a4b5fcae9cd1a9882) ) | |
| 657 | ROM_LOAD16_BYTE("gt11-1.a14", 0x40000, 0x20000, CRC(80cb23de) SHA1(d52426460eea2285c57cfc3fe37aa6dc79990e25) ) /* Same data as GS11.A14 */ | |
| 658 | ROM_LOAD16_BYTE("gt09-1.a11", 0x40001, 0x20000, CRC(0a8fa7e1) SHA1(330ae9602b5f56b5dc4961a41991b64412a59880) ) /* Same data as GS09.A11 */ | |
| 659 | ||
| 660 | ROM_REGION(0x10000, "audiocpu", 0 ) /* Sound CPU */ | |
| 661 | ROM_LOAD( "gt04.f18", 0x00000, 0x10000, CRC(81c29ebf) SHA1(1b241277a8e35cdeaeb120970d14a09d33032459) ) /* Same data for all regions, different label */ | |
| 662 | ||
| 663 | ROM_REGION(0x020000, "gfx1", 0 ) | |
| 664 | ROM_LOAD16_BYTE( "gt05.h11", 0x000000, 0x10000, CRC(0aae996a) SHA1(d37a12b057e9934212362d7eafa575c961819a27) ) /* Same data for all regions, different label */ | |
| 665 | ROM_LOAD16_BYTE( "gt06.h12", 0x000001, 0x10000, CRC(4efdf03d) SHA1(835d22829c6d0f4efc76801b449f9a779f460f1c) ) /* Same data for all regions, different label */ | |
| 666 | ||
| 667 | ROM_REGION(0x120000, "gfx2", 0 ) | |
| 668 | ROM_LOAD( "maj-02.h14", 0x000000, 0x100000, CRC(383bbc37) SHA1(c537ab147a2770ce28ee185b08dd62d35249bfa9) ) | |
| 669 | /* Other 0x20000 filled in later */ | |
| 670 | ||
| 671 | ROM_REGION(0x200000, "gfx3", 0 ) | |
| 672 | ROM_LOAD( "maj-01.c18", 0x000000, 0x100000, CRC(9840a204) SHA1(096c351769da5184c3d9a05495370134acc9507a) ) | |
| 673 | ROM_LOAD( "maj-00.c17", 0x100000, 0x100000, CRC(87ea8d16) SHA1(db47123aa2ebbb800cfc5cfcf50309bc39cadbcd) ) | |
| 674 | ||
| 675 | ROM_REGION( 0x400000, "gfx4", 0 ) /* sprites chip 1 */ | |
| 676 | ROM_LOAD( "maj-04.r1", 0x000000, 0x80000, CRC(36e49b19) SHA1(bfbc45b635bf3d46ff8b8a514a3f352bf3a95535) ) | |
| 677 | ROM_LOAD( "maj-05.r2", 0x080000, 0x80000, CRC(80fc71cc) SHA1(65b15afbe5d628051b012777d486b6ce92a3795c) ) | |
| 678 | ROM_LOAD( "maj-06.r3", 0x100000, 0x80000, CRC(2e7a684b) SHA1(cffeda1a816dad30d6b1cb12458661188d625d40) ) | |
| 679 | ROM_LOAD( "maj-07.r5", 0x180000, 0x80000, CRC(3acc1f78) SHA1(87ec65b4f54a66370754534d03f4c9217531b42f) ) | |
| 680 | ROM_LOAD( "maj-08.s6", 0x200000, 0x80000, CRC(1958a36d) SHA1(466a30dcd2ea13028272ed2187f890ee20d6636b) ) | |
| 681 | ROM_LOAD( "maj-09.s8", 0x280000, 0x80000, CRC(c21087a1) SHA1(b769c5f2f9b9c525d121902fe9557a6bfc077b99) ) | |
| 682 | ROM_LOAD( "maj-10.s9", 0x300000, 0x80000, CRC(a02fa641) SHA1(14b999a441964e612700bf21945a948eaebb253e) ) | |
| 683 | ROM_LOAD( "maj-11.s11", 0x380000, 0x80000, CRC(dabe9305) SHA1(44d69fe55e674de7f4c610d295d4528d4b2eb150) ) | |
| 684 | ||
| 685 | ROM_REGION( 0x80000, "gfx5", 0 ) /* sprites chip 2 */ | |
| 686 | ROM_LOAD16_BYTE( "gt12.n1", 0x000000, 0x20000, CRC(9a86a015) SHA1(968576b8422393ab9a93d98c15428b1c11417b3d) ) | |
| 687 | ROM_LOAD16_BYTE( "gt13.n2", 0x000001, 0x20000, CRC(f4709905) SHA1(697842a3d7bc2588c77833c3af8938e6f0b1238d) ) | |
| 688 | ROM_LOAD16_BYTE( "gt14.n3", 0x040000, 0x20000, CRC(750fc523) SHA1(ef8794359ff3a44a97ab402821fbe205a0be8f6a) ) | |
| 689 | ROM_LOAD16_BYTE( "gt15.n5", 0x040001, 0x20000, CRC(f14edd3d) SHA1(802d576df6dac2c9bf99f963f1955fc3a7ffdac0) ) | |
| 690 | ||
| 691 | ROM_REGION(0x40000, "oki1", 0 ) /* Oki samples */ | |
| 692 | ROM_LOAD( "gt07.h15", 0x00000, 0x20000, CRC(750b7e5d) SHA1(d33b17a1d8c9b05d5c1daf0c80fed6381e04b167) ) /* Same data as GS07.H15 */ | |
| 693 | ||
| 694 | ROM_REGION(0x80000, "oki2", 0 ) /* Extra Oki samples */ | |
| 695 | ROM_LOAD( "maj-03.h16", 0x00000, 0x80000, CRC(31dcfac3) SHA1(88c7fc139f871991defbc8dc2c9c66b150dd6f6f) ) /* banked */ | |
| 696 | ||
| 697 | ROM_REGION( 0x1000, "proms", 0 ) | |
| 698 | ROM_LOAD( "mb7128y.10m", 0x00000, 0x800, CRC(bde780a2) SHA1(94ea9fe6c3a421e976d077e67f564ca5c37a5e88) ) /* Priority? Unused */ | |
| 699 | ROM_LOAD( "mb7128y.16p", 0x00800, 0x800, CRC(c44d2751) SHA1(7c195650689d5cbbdccba696e0e7d3dc5bb7c506) ) /* Timing?? Unused */ | |
| 700 | /* Above prom also at 16s and 17s */ | |
| 701 | ||
| 702 | ROM_REGION( 0x1000, "plds", 0 ) | |
| 703 | ROM_LOAD( "pal16r8a 1h", 0x0000, 0x0104, NO_DUMP ) /* PAL is read protected */ | |
| 704 | ROM_LOAD( "pal16l8b.7c", 0x0200, 0x0104, NO_DUMP ) /* PAL is read protected */ | |
| 705 | ROM_LOAD( "pal16l8b.7d", 0x0400, 0x0104, CRC(199e83fd) SHA1(ebb5d66f29935b0a58e79b0db30611b5dce328a6) ) /* PAL is read protected */ | |
| 706 | ROM_LOAD( "pal16l8b.7e", 0x0600, 0x0104, NO_DUMP ) /* PAL is read protected */ | |
| 707 | ROM_LOAD( "pal16l8b.7l", 0x0800, 0x0104, NO_DUMP ) /* PAL is read protected */ | |
| 708 | ROM_LOAD( "pal16l8b.8e", 0x0a00, 0x0104, NO_DUMP ) /* PAL is read protected */ | |
| 709 | ROM_LOAD( "pal16l8b.9d", 0x0c00, 0x0104, NO_DUMP ) /* PAL is read protected */ | |
| 710 | ROM_LOAD( "pal16l8b.10c", 0x0e00, 0x0104, NO_DUMP ) /* PAL is read protected */ | |
| 711 | ROM_END | |
| 712 | ||
| 713 | ROM_START( thndzonea ) | |
| 714 | ROM_REGION(0x80000, "maincpu", 0 ) /* 68000 code */ | |
| 634 | 715 | ROM_LOAD16_BYTE("gz01.a15", 0x00000, 0x20000, CRC(15e8c328) SHA1(8876b5fde77604c2fe4654271ceb341a8fa460c1) ) |
| 635 | 716 | ROM_LOAD16_BYTE("gz03.a17", 0x00001, 0x20000, CRC(aab5c86e) SHA1(c3560b15360ddf14e8444d9f70724e698b2bd42f) ) |
| 636 | 717 | ROM_LOAD16_BYTE("gt00.a14", 0x40000, 0x20000, CRC(b7277175) SHA1(ffb19c4dd12e0391f01de57c46a7998885fe22bf) ) /* Same data as GS00.A14 */ |
| r15975 | r15976 | |
| 943 | 1024 | |
| 944 | 1025 | /**********************************************************************************/ |
| 945 | 1026 | |
| 946 | GAME( 1991, thndzone, 0, dassault, thndzone, dassault_state, thndzone, ROT0, "Data East Corporation", "Thunder Zone (World)", GAME_SUPPORTS_SAVE ) | |
| 1027 | GAME( 1991, thndzone, 0, dassault, thndzone, dassault_state, thndzone, ROT0, "Data East Corporation", "Thunder Zone (Rev 1, World)", GAME_SUPPORTS_SAVE ) | |
| 1028 | GAME( 1991, thndzonea, thndzone, dassault, thndzone, dassault_state, thndzone, ROT0, "Data East Corporation", "Thunder Zone (World)", GAME_SUPPORTS_SAVE ) | |
| 947 | 1029 | GAME( 1991, thndzonej, thndzone, dassault, thndzone, dassault_state, thndzone, ROT0, "Data East Corporation", "Thunder Zone (Japan)", GAME_SUPPORTS_SAVE ) |
| 948 | 1030 | GAME( 1991, dassault, thndzone, dassault, dassault, dassault_state, dassault, ROT0, "Data East Corporation", "Desert Assault (US)", GAME_SUPPORTS_SAVE ) |
| 949 | 1031 | GAME( 1991, dassault4, thndzone, dassault, dassault4, dassault_state, dassault, ROT0, "Data East Corporation", "Desert Assault (US 4 Players)", GAME_SUPPORTS_SAVE ) |
| r15975 | r15976 | |
|---|---|---|
| 456 | 456 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 457 | 457 | ROM_LOAD( "caz_1_2.p1", 0x0000, 0x010000, CRC(78383d52) SHA1(cd69d4e600273e3da7aa61e51266e8f1765ad5dc) ) |
| 458 | 458 | ROM_END |
| 459 | ||
| 459 | ||
| 460 | 460 | ROM_START( m4cashzna ) |
| 461 | 461 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 462 | 462 | ROM_LOAD( "caz_1_5.p1", 0x0000, 0x010000, CRC(c0d80d62) SHA1(e062be12159a67b5da883345565f3a52a1dd2ebe) ) |
| r15975 | r15976 | |
| 985 | 985 | ROM_START( m4supjstb ) |
| 986 | 986 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 987 | 987 | ROM_LOAD( "super jester 2.1.90 10p 4.80 p1.bin", 0x8000, 0x008000, CRC(14f2dc51) SHA1(7dcf54a25bcaa2081f906d0ad44bcae183a32371) ) |
| 988 | // | |
| 988 | // ROM_LOAD( "31.1.90cj10p4.80v6.bin", 0x8000, 0x008000, CRC(14f2dc51) SHA1(7dcf54a25bcaa2081f906d0ad44bcae183a32371) ) // marked crown jester? | |
| 989 | 989 | ROM_END |
| 990 | 990 | |
| 991 | 991 | ROM_START( m4supjstc ) |
| r15975 | r15976 | |
| 1867 | 1867 | GAME(199?, m4ttak , 0, mod2 ,mpu4, mpu4_state, m4default, ROT0, "<unknown>","Tic Tac Take (unknown) (MPU4)",GAME_FLAGS ) |
| 1868 | 1868 | |
| 1869 | 1869 | GAME(199?, m4actbnka,m4actbnk ,mod2 ,mpu4jackpot8tkn , mpu4_state,m4default ,ROT0, "Barcrest","Action Bank (Barcrest) (Mod 2 type, AC3.0) (MPU4)",GAME_FLAGS ) // set jackpot key to 8GBP TOKEN & stake key |
| 1870 | GAME(199?, m4actbnkb,m4actbnk ,mod2 ,mpu4jackpot8tkn , mpu4_state,m4default ,ROT0, "Barcrest","Action Bank (Barcrest) (Mod 2 type, ACT2.0) (MPU4)",GAME_FLAGS ) | |
| 1870 | GAME(199?, m4actbnkb,m4actbnk ,mod2 ,mpu4jackpot8tkn , mpu4_state,m4default ,ROT0, "Barcrest","Action Bank (Barcrest) (Mod 2 type, ACT2.0) (MPU4)",GAME_FLAGS ) | |
| 1871 | 1871 | |
| 1872 | 1872 | GAME(199?, m4actclb ,0 ,mod2 ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Action Club (Barcrest) (MPU4) (1.9)",GAME_FLAGS ) // set stake to boot |
| 1873 | 1873 | GAME(199?, m4actclba ,m4actclb ,mod2 ,mpu4 , mpu4_state,m4default ,ROT0, "Barcrest","Action Club (Barcrest) (MPU4) (1.1)",GAME_FLAGS ) // ^^ |
| r15975 | r15976 | |
|---|---|---|
| 6 | 6 | various hardware revisions |
| 7 | 7 | all use a MC68EC020FG16 CPU |
| 8 | 8 | |
| 9 | ||
| 9 | extra customs | |
| 10 | 10 | |
| 11 | 11 | jclub2 : SETA ST-0032 (video + sound? **1), SETA ST-0013, SETA ST-0017 ( PCB E79-001 rev 01a ) |
| 12 | 12 | jclub2o : SETA ST-0020 (video), SETA ST-0016 (sound + video? **2), SETA ST-0013, SETA ST-0017 ( E06-00409 / E06-00407 ) |
| r15975 | r15976 | |
| 26 | 26 | **1 ST-0032 seems to be similar to ST-0020 but the ram / list formats aren't the same, maybe it handles sound as there doesn't |
| 27 | 27 | seem to be any other dedicated sound chip |
| 28 | 28 | |
| 29 | **2 ST-0016 video functionality is probably not used | |
| 29 | **2 ST-0016 video functionality is probably not used | |
| 30 | 30 | |
| 31 | 31 | |
| 32 | 32 | |
| r15975 | r15976 | |
| 883 | 883 | |
| 884 | 884 | Graphics : SETA ST-0032 70C600JF505 |
| 885 | 885 | |
| 886 | Others : | |
| 886 | Others : | |
| 887 | 887 | SETA ST-0013 |
| 888 | 888 | SETA ST-0017 |
| 889 | 889 | |
| r15975 | r15976 | |
| 1001 | 1001 | // is there a way (key sequence) to reprogram it?? |
| 1002 | 1002 | // I bet the original sets need similar get further in their boot sequence |
| 1003 | 1003 | UINT8 *eeprom = (UINT8 *) machine().root_device().memregion("eeprom")->base(); |
| 1004 | if (eeprom != NULL) | |
| 1004 | if (eeprom != NULL) | |
| 1005 | 1005 | { |
| 1006 | 1006 | size_t len = machine().root_device().memregion("eeprom")->bytes(); |
| 1007 | 1007 | UINT8* temp = (UINT8*)auto_alloc_array(machine(), UINT8, len); |
| 1008 | 1008 | int i; |
| 1009 | 1009 | for (i = 0; i < len; i++) |
| 1010 | 1010 | temp[i] = eeprom[BITSWAP8(i,7,5,4,3,2,1,0,6)]; |
| 1011 | ||
| 1011 | ||
| 1012 | 1012 | memcpy(eeprom, temp, len); |
| 1013 | 1013 | auto_free(machine(), temp); |
| 1014 | 1014 | } |
| r15975 | r15976 | |
|---|---|---|
| 1232 | 1232 | |
| 1233 | 1233 | DRIVER_INIT_MEMBER(atarig1_state,hydra) { init_g1_common(machine(), 0x078000, 116, 0); } |
| 1234 | 1234 | DRIVER_INIT_MEMBER(atarig1_state,hydrap) { init_g1_common(machine(), 0x000000, 0, 0); } |
| 1235 | ||
| 1235 | ||
| 1236 | 1236 | DRIVER_INIT_MEMBER(atarig1_state,pitfight9) { init_g1_common(machine(), 0x038000, 114, 1); } |
| 1237 | 1237 | DRIVER_INIT_MEMBER(atarig1_state,pitfight7) { init_g1_common(machine(), 0x038000, 112, 1); } |
| 1238 | 1238 | DRIVER_INIT_MEMBER(atarig1_state,pitfight) { init_g1_common(machine(), 0x038000, 111, 1); } |
| r15975 | r15976 | |
|---|---|---|
| 177 | 177 | * Sound interface |
| 178 | 178 | * |
| 179 | 179 | *************************************/ |
| 180 | ||
| 181 | ||
| 180 | ||
| 181 | ||
| 182 | 182 | //------------------------------------------------- |
| 183 | 183 | // sn76496_config psg_intf |
| 184 | 184 | //------------------------------------------------- |
| r15975 | r15976 | |
| 222 | 222 | MCFG_SOUND_ADD("sn1", SN76496_NEW, 8000000/2) |
| 223 | 223 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| 224 | 224 | MCFG_SOUND_CONFIG(psg_intf) |
| 225 | ||
| 225 | ||
| 226 | 226 | MCFG_SOUND_ADD("sn2", SN76496_NEW, 8000000/2) |
| 227 | 227 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| 228 | 228 | MCFG_SOUND_CONFIG(psg_intf) |
| r15975 | r15976 | |
|---|---|---|
| 83 | 83 | OBJ_1, |
| 84 | 84 | OBJ_2, |
| 85 | 85 | OBJ_PLAYER, |
| 86 | ||
| 86 | ||
| 87 | 87 | NUM_OBJ |
| 88 | 88 | }; |
| 89 | 89 | |
| r15975 | r15976 | |
| 97 | 97 | m_i8255(*this, "ppi8255"), |
| 98 | 98 | m_ins8154(*this, "ins8154"), |
| 99 | 99 | m_ay8910(*this, "ay8910") {} |
| 100 | ||
| 101 | required_device<cpu_device> m_maincpu; | |
| 102 | required_device<i8255_device> m_i8255; | |
| 103 | required_device<ins8154_device> m_ins8154; | |
| 104 | required_device<ay8910_device> m_ay8910; | |
| 105 | ||
| 100 | ||
| 101 | required_device<cpu_device> m_maincpu; | |
| 102 | required_device<i8255_device> m_i8255; | |
| 103 | required_device<ins8154_device> m_ins8154; | |
| 104 | required_device<ay8910_device> m_ay8910; | |
| 105 | ||
| 106 | 106 | int m_p2_data; |
| 107 | int m_ext_offset_w; | |
| 108 | int m_ext_offset_r; | |
| 109 | ||
| 110 | int m_tmp; | |
| 111 | int m_t1; | |
| 112 | ||
| 113 | UINT8 m_ins8154_ram[0x80]; | |
| 107 | int m_ext_offset_w; | |
| 108 | int m_ext_offset_r; | |
| 109 | ||
| 110 | int m_tmp; | |
| 111 | int m_t1; | |
| 112 | ||
| 113 | UINT8 m_ins8154_ram[0x80]; | |
| 114 | 114 | UINT8 m_txt_ram[0x400]; |
| 115 | ||
| 116 | vega_obj m_obj[NUM_OBJ]; | |
| 117 | ||
| 118 | int m_frame_counter; | |
| 119 | ||
| 120 | int m_tilemap_offset_x, m_tilemap_offset_y, m_tilemap_flags, m_tilemap_top; | |
| 121 | ||
| 122 | DECLARE_READ8_MEMBER( extern_r ); | |
| 123 | DECLARE_WRITE8_MEMBER(extern_w); | |
| 124 | DECLARE_WRITE8_MEMBER(p2_w); | |
| 115 | ||
| 116 | vega_obj m_obj[NUM_OBJ]; | |
| 117 | ||
| 118 | int m_frame_counter; | |
| 119 | ||
| 120 | int m_tilemap_offset_x, m_tilemap_offset_y, m_tilemap_flags, m_tilemap_top; | |
| 121 | ||
| 122 | DECLARE_READ8_MEMBER( extern_r ); | |
| 123 | DECLARE_WRITE8_MEMBER(extern_w); | |
| 124 | DECLARE_WRITE8_MEMBER(p2_w); | |
| 125 | 125 | DECLARE_READ8_MEMBER(p2_r); |
| 126 | 126 | DECLARE_READ8_MEMBER(t1_r); |
| 127 | 127 | DECLARE_WRITE8_MEMBER(rombank_w); |
| 128 | ||
| 128 | ||
| 129 | 129 | DECLARE_READ8_MEMBER(txtram_r); |
| 130 | 130 | DECLARE_READ8_MEMBER(randomizer); |
| 131 | 131 | DECLARE_WRITE8_MEMBER(txtram_w); |
| 132 | 132 | DECLARE_WRITE8_MEMBER(ppi_pb_w); |
| 133 | 133 | DECLARE_WRITE8_MEMBER(ppi_pc_w); |
| 134 | ||
| 134 | ||
| 135 | 135 | DECLARE_READ8_MEMBER(ins8154_pa_r); |
| 136 | 136 | DECLARE_WRITE8_MEMBER(ins8154_pa_w); |
| 137 | 137 | DECLARE_READ8_MEMBER(ins8154_pb_r); |
| r15975 | r15976 | |
| 141 | 141 | DECLARE_WRITE8_MEMBER(ay8910_pa_w); |
| 142 | 142 | DECLARE_READ8_MEMBER(ay8910_pb_r); |
| 143 | 143 | DECLARE_WRITE8_MEMBER(ay8910_pb_w); |
| 144 | ||
| 144 | ||
| 145 | 145 | DECLARE_DRIVER_INIT(vega); |
| 146 | 146 | |
| 147 | 147 | |
| r15975 | r15976 | |
| 150 | 150 | WRITE8_MEMBER(vega_state::extern_w) |
| 151 | 151 | { |
| 152 | 152 | m_ext_offset_w=offset; |
| 153 | ||
| 153 | ||
| 154 | 154 | switch((m_p2_data>>2)&7) /* 7442 = lines 2,3,4 - select device */ |
| 155 | 155 | { |
| 156 | ||
| 156 | ||
| 157 | 157 | case 0: /* 00-03 */ |
| 158 | 158 | { |
| 159 | 159 | /* PPI 8255 /CS */ |
| 160 | 160 | m_i8255->write(space, (m_p2_data>>6)&3, data); |
| 161 | 161 | } |
| 162 | 162 | break; |
| 163 | ||
| 163 | ||
| 164 | 164 | case 1: /* 04-07 */ |
| 165 | 165 | { |
| 166 | 166 | /* AY 3-8910 */ |
| 167 | 167 | ay8910_address_w(m_ay8910, 0, offset); |
| 168 | 168 | } |
| 169 | 169 | break; |
| 170 | ||
| 170 | ||
| 171 | 171 | case 2: /* 08-0b */ |
| 172 | 172 | { |
| 173 | 173 | /* INS 8154 /CS0 */ |
| 174 | ||
| 174 | ||
| 175 | 175 | if(m_p2_data&0x40) /* P26 connected to M/IO pin */ |
| 176 | 176 | { |
| 177 | 177 | m_ins8154_ram[offset&0x7f]=data; |
| r15975 | r15976 | |
| 183 | 183 | } |
| 184 | 184 | } |
| 185 | 185 | break; |
| 186 | ||
| 186 | ||
| 187 | 187 | case 3: /* 0c-0f */ |
| 188 | 188 | { |
| 189 | 189 | if(offset&4) |
| 190 | 190 | { |
| 191 | 191 | int num=0; //? |
| 192 | ||
| 192 | ||
| 193 | 193 | switch(offset&3) |
| 194 | 194 | { |
| 195 | case 0: | |
| 195 | case 0: | |
| 196 | 196 | m_obj[num].m_x=(m_obj[num].m_x&0x80)|(data>>1); //? |
| 197 | 197 | m_obj[num].m_enable=data&1; |
| 198 | 198 | break; |
| 199 | ||
| 200 | case 1: | |
| 199 | ||
| 200 | case 1: | |
| 201 | 201 | m_obj[num].m_x=(m_obj[num].m_x&0x7f)|((data&1)<<7); |
| 202 | 202 | break; |
| 203 | ||
| 203 | ||
| 204 | 204 | case 2: m_obj[num].m_y=data; break; |
| 205 | 205 | case 3: m_obj[num].m_type=data&0x0f; break; |
| 206 | 206 | } |
| r15975 | r15976 | |
| 210 | 210 | // 0 - y ? |
| 211 | 211 | switch(offset&3) |
| 212 | 212 | { |
| 213 | case 0: | |
| 213 | case 0: | |
| 214 | 214 | m_obj[OBJ_PLAYER].m_y=data; |
| 215 | 215 | break; |
| 216 | ||
| 216 | ||
| 217 | 217 | case 1: |
| 218 | 218 | m_tilemap_offset_y=data; |
| 219 | 219 | break; |
| 220 | ||
| 220 | ||
| 221 | 221 | case 2: |
| 222 | 222 | m_tilemap_offset_x=((m_tilemap_offset_x)&(~0xff))|data; |
| 223 | 223 | break; |
| 224 | ||
| 224 | ||
| 225 | 225 | case 3: |
| 226 | 226 | m_tilemap_top=data&0x0f; |
| 227 | 227 | m_tilemap_flags=data>>4; |
| 228 | 228 | break; |
| 229 | 229 | } |
| 230 | ||
| 230 | ||
| 231 | 231 | } |
| 232 | ||
| 232 | ||
| 233 | 233 | } |
| 234 | 234 | break; |
| 235 | ||
| 235 | ||
| 236 | 236 | case 4: /* 10-13 */ |
| 237 | 237 | { |
| 238 | 238 | int num=(offset&4)?1:2; |
| 239 | ||
| 239 | ||
| 240 | 240 | switch(offset&3) |
| 241 | 241 | { |
| 242 | case 0: | |
| 242 | case 0: | |
| 243 | 243 | m_obj[num].m_x=(m_obj[num].m_x&0x80)|(data>>1); |
| 244 | 244 | m_obj[num].m_enable=data&1; |
| 245 | 245 | break; |
| 246 | ||
| 247 | case 1: | |
| 246 | ||
| 247 | case 1: | |
| 248 | 248 | m_obj[num].m_x=(m_obj[num].m_x&0x7f)|((data&1)<<7); |
| 249 | 249 | break; |
| 250 | ||
| 250 | ||
| 251 | 251 | case 2: m_obj[num].m_y=data; break; |
| 252 | 252 | case 3: m_obj[num].m_type=data&0x0f; break; |
| 253 | ||
| 253 | ||
| 254 | 254 | } |
| 255 | ||
| 255 | ||
| 256 | 256 | } |
| 257 | 257 | break; |
| 258 | ||
| 259 | // case 5: /* 14-17 */ | |
| 260 | // { | |
| 261 | // | |
| 262 | // } | |
| 263 | // break; | |
| 264 | // | |
| 265 | // case 6: /* 18-1b */ | |
| 266 | // { | |
| 267 | // | |
| 268 | // } | |
| 269 | // break; | |
| 270 | // | |
| 271 | // case 7: /* 1c-1f */ | |
| 272 | // { | |
| 273 | // | |
| 274 | // } | |
| 275 | // break; | |
| 276 | ||
| 258 | ||
| 259 | // case 5: /* 14-17 */ | |
| 260 | // { | |
| 261 | // | |
| 262 | // } | |
| 263 | // break; | |
| 264 | // | |
| 265 | // case 6: /* 18-1b */ | |
| 266 | // { | |
| 267 | // | |
| 268 | // } | |
| 269 | // break; | |
| 270 | // | |
| 271 | // case 7: /* 1c-1f */ | |
| 272 | // { | |
| 273 | // | |
| 274 | // } | |
| 275 | // break; | |
| 276 | ||
| 277 | 277 | default: logerror("unknown w %x %x %x\n",m_p2_data,offset, data); |
| 278 | ||
| 278 | ||
| 279 | 279 | } |
| 280 | 280 | } |
| 281 | 281 | READ8_MEMBER(vega_state::extern_r) |
| 282 | 282 | { |
| 283 | 283 | m_ext_offset_r=offset; |
| 284 | ||
| 284 | ||
| 285 | 285 | switch((m_p2_data>>2)&7) |
| 286 | 286 | { |
| 287 | 287 | case 0: /* PPI 8255 /CS */ |
| r15975 | r15976 | |
| 289 | 289 | return m_i8255->read( space, m_p2_data>>6); /* A6,A7 -> A0,A1 */ |
| 290 | 290 | } |
| 291 | 291 | break; |
| 292 | ||
| 292 | ||
| 293 | 293 | case 1: /* 04-07 */ |
| 294 | 294 | { |
| 295 | 295 | /* AY 3-8910 */ |
| r15975 | r15976 | |
| 298 | 298 | |
| 299 | 299 | } |
| 300 | 300 | break; |
| 301 | ||
| 301 | ||
| 302 | 302 | case 2: /* 08-0b */ |
| 303 | 303 | { |
| 304 | 304 | /* INS 8154 /CS0 */ |
| 305 | ||
| 305 | ||
| 306 | 306 | if(m_p2_data&0x40) /* P26 connected to M/IO pin */ |
| 307 | 307 | { |
| 308 | 308 | return m_ins8154_ram[offset&0x7f]; |
| r15975 | r15976 | |
| 312 | 312 | //register r ? |
| 313 | 313 | return ins8154_r(m_ins8154,offset&0x7f); |
| 314 | 314 | } |
| 315 | ||
| 315 | ||
| 316 | 316 | } |
| 317 | 317 | break; |
| 318 | #if 0 | |
| 318 | #if 0 | |
| 319 | 319 | case 3: /* 0c-0f */ |
| 320 | 320 | { |
| 321 | ||
| 322 | ||
| 321 | ||
| 322 | ||
| 323 | 323 | } |
| 324 | 324 | break; |
| 325 | ||
| 325 | ||
| 326 | 326 | case 4: /* 10-13 */ |
| 327 | 327 | { |
| 328 | ||
| 328 | ||
| 329 | 329 | } |
| 330 | 330 | break; |
| 331 | ||
| 331 | ||
| 332 | 332 | case 5: /* 14-17 */ |
| 333 | 333 | { |
| 334 | ||
| 334 | ||
| 335 | 335 | } |
| 336 | 336 | break; |
| 337 | ||
| 337 | ||
| 338 | 338 | case 6: /* 18-1b */ |
| 339 | 339 | { |
| 340 | ||
| 340 | ||
| 341 | 341 | } |
| 342 | 342 | break; |
| 343 | ||
| 343 | ||
| 344 | 344 | case 7: /* 1c-1f */ |
| 345 | 345 | { |
| 346 | ||
| 346 | ||
| 347 | 347 | } |
| 348 | 348 | break; |
| 349 | 349 | #endif |
| 350 | default: logerror("unknown r %x %x\n",m_p2_data,offset); | |
| 350 | default: logerror("unknown r %x %x\n",m_p2_data,offset); | |
| 351 | 351 | } |
| 352 | ||
| 352 | ||
| 353 | 353 | return 0; |
| 354 | 354 | } |
| 355 | 355 | |
| r15975 | r15976 | |
| 380 | 380 | ADDRESS_MAP_END |
| 381 | 381 | |
| 382 | 382 | /* |
| 383 | MCS48_PORT_P0 = 0x100, | |
| 384 | MCS48_PORT_P1 = 0x101, | |
| 385 | MCS48_PORT_P2 = 0x102, | |
| 386 | MCS48_PORT_T0 = 0x110, | |
| 387 | MCS48_PORT_T1 = 0x111, | |
| 388 | MCS48_PORT_BUS = 0x120, | |
| 389 | MCS48_PORT_PROG = 0x121 0/1 | |
| 390 | */ | |
| 383 | MCS48_PORT_P0 = 0x100, | |
| 384 | MCS48_PORT_P1 = 0x101, | |
| 385 | MCS48_PORT_P2 = 0x102, | |
| 386 | MCS48_PORT_T0 = 0x110, | |
| 387 | MCS48_PORT_T1 = 0x111, | |
| 388 | MCS48_PORT_BUS = 0x120, | |
| 389 | MCS48_PORT_PROG = 0x121 0/1 | |
| 390 | */ | |
| 391 | 391 | static ADDRESS_MAP_START( vega_io_map, AS_IO, 8, vega_state ) |
| 392 | 392 | AM_RANGE(0x00, 0xff) AM_READWRITE(extern_r, extern_w) |
| 393 | 393 | AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_READ_PORT("DSW") AM_WRITE(rombank_w) //101 |
| r15975 | r15976 | |
| 414 | 414 | PORT_DIPSETTING( 0x08, DEF_STR( 1C_1C ) ) |
| 415 | 415 | PORT_DIPSETTING( 0x10, DEF_STR( 1C_2C ) ) |
| 416 | 416 | PORT_DIPSETTING( 0x18, DEF_STR( 1C_3C ) ) |
| 417 | ||
| 417 | ||
| 418 | 418 | PORT_DIPNAME( 0x20, 0x20, "Speed" ) PORT_DIPLOCATION("SW1:6") |
| 419 | 419 | PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) |
| 420 | 420 | PORT_DIPSETTING( 0x00, DEF_STR( High ) ) |
| 421 | ||
| 421 | ||
| 422 | 422 | PORT_DIPNAME( 0x40, 0x40, "Ext Play at" ) PORT_DIPLOCATION("SW1:7") |
| 423 | 423 | PORT_DIPSETTING( 0x40, "3.000" ) |
| 424 | 424 | PORT_DIPSETTING( 0x00, "4.000" ) |
| 425 | ||
| 425 | ||
| 426 | 426 | PORT_DIPNAME( 0x80, 0x80, "Bomb Speed" ) PORT_DIPLOCATION("SW1:8") |
| 427 | 427 | PORT_DIPSETTING( 0x80, DEF_STR( Normal ) ) |
| 428 | 428 | PORT_DIPSETTING( 0x00, DEF_STR( High ) ) |
| 429 | 429 | |
| 430 | ||
| 430 | ||
| 431 | 431 | //PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) /* output */ |
| 432 | ||
| 432 | ||
| 433 | 433 | PORT_START("IN0") |
| 434 | 434 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) |
| 435 | 435 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) |
| 436 | 436 | |
| 437 | 437 | |
| 438 | 438 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 ) |
| 439 | ||
| 439 | ||
| 440 | 440 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 441 | ||
| 441 | ||
| 442 | 442 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 443 | 443 | |
| 444 | 444 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) |
| 445 | 445 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) |
| 446 | 446 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 ) |
| 447 | ||
| 447 | ||
| 448 | 448 | PORT_START("IN1") |
| 449 | 449 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT ) |
| 450 | 450 | PORT_BIT( 0x02, IP_ACTIVE_LOW,IPT_COIN1 ) |
| 451 | 451 | PORT_BIT( 0x04, IP_ACTIVE_LOW,IPT_COIN2 ) |
| 452 | ||
| 452 | ||
| 453 | 453 | PORT_DIPNAME( 0x08, 0x00, "1-3" ) //unused ? |
| 454 | 454 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 455 | 455 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 456 | ||
| 456 | ||
| 457 | 457 | PORT_DIPNAME( 0x10, 0x00, "1-4" ) //unused ? |
| 458 | 458 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 459 | 459 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 460 | ||
| 460 | ||
| 461 | 461 | PORT_DIPNAME( 0x20, 0x00, "1-5" ) //unused ? |
| 462 | 462 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 463 | 463 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 464 | ||
| 464 | ||
| 465 | 465 | PORT_DIPNAME( 0x40, 0x00, "1-6" ) //some video status ? |
| 466 | 466 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 467 | 467 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 468 | ||
| 468 | ||
| 469 | 469 | PORT_DIPNAME( 0x80, 0x00, "1-7" ) //some video status ? |
| 470 | 470 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 471 | 471 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 472 | ||
| 472 | ||
| 473 | 473 | INPUT_PORTS_END |
| 474 | 474 | |
| 475 | 475 | |
| r15975 | r15976 | |
| 488 | 488 | static void draw_tilemap(vega_state *state, screen_device& screen, bitmap_ind16& bitmap, const rectangle& cliprect) |
| 489 | 489 | { |
| 490 | 490 | { |
| 491 | ||
| 491 | ||
| 492 | 492 | UINT8 *map_lookup = state->memregion("tilemaps")->base(); |
| 493 | 493 | |
| 494 | 494 | int offset_y=state->m_tilemap_offset_y; |
| 495 | 495 | int offset_x=state->m_tilemap_offset_x; |
| 496 | ||
| 496 | ||
| 497 | 497 | //logerror("%d %d\n",offset_x, offset_y); |
| 498 | ||
| 498 | ||
| 499 | 499 | for(int xx=0;xx<128;++xx) |
| 500 | 500 | { |
| 501 | 501 | for(int yy=0;yy<8;yy++) |
| 502 | 502 | { |
| 503 | ||
| 504 | 503 | |
| 504 | ||
| 505 | 505 | int x0=xx*32; |
| 506 | 506 | int y0=yy*32; |
| 507 | ||
| 508 | ||
| 507 | ||
| 508 | ||
| 509 | 509 | int id=map_lookup[((yy+xx*8)+ ((state->m_tilemap_flags&2)?0x400:0) + (state->m_tilemap_top<<6 ) ) &0x7ff]; |
| 510 | ||
| 510 | ||
| 511 | 511 | int flip=BIT(id,5); |
| 512 | 512 | |
| 513 | ||
| 513 | ||
| 514 | 514 | int num=(BITSWAP8( ((id>>2) &7), 7,6,5,4,3,0,1,2 )); |
| 515 | ||
| 515 | ||
| 516 | 516 | int bank=id&3; |
| 517 | ||
| 517 | ||
| 518 | 518 | if(bank!=3) |
| 519 | 519 | { |
| 520 | ||
| 520 | ||
| 521 | 521 | num+=bank*8; |
| 522 | ||
| 522 | ||
| 523 | 523 | num*=8*4; |
| 524 | ||
| 525 | ||
| 524 | ||
| 525 | ||
| 526 | 526 | for(int x=0;x<8;++x) |
| 527 | 527 | for(int y=0;y<4;++y) |
| 528 | 528 | { |
| r15975 | r15976 | |
| 535 | 535 | } |
| 536 | 536 | } |
| 537 | 537 | } |
| 538 | ||
| 539 | ||
| 538 | ||
| 539 | ||
| 540 | 540 | } |
| 541 | ||
| 542 | ||
| 543 | ||
| 544 | ||
| 541 | ||
| 542 | ||
| 543 | ||
| 544 | ||
| 545 | 545 | } |
| 546 | 546 | |
| 547 | 547 | static SCREEN_UPDATE_IND16( vega ) |
| 548 | 548 | { |
| 549 | 549 | vega_state *state = screen.machine().driver_data<vega_state>(); |
| 550 | 550 | ++state->m_frame_counter; |
| 551 | ||
| 551 | ||
| 552 | 552 | bitmap.fill(0, cliprect); |
| 553 | ||
| 553 | ||
| 554 | 554 | draw_tilemap(state, screen, bitmap, cliprect); |
| 555 | ||
| 556 | 555 | |
| 556 | ||
| 557 | 557 | { |
| 558 | 558 | int x,y; |
| 559 | 559 | int idx=0; |
| r15975 | r15976 | |
| 562 | 562 | for(y=0;y<25;++y) |
| 563 | 563 | for(x=0;x<40;++x) |
| 564 | 564 | { |
| 565 | ||
| 565 | ||
| 566 | 566 | int character=state->m_txt_ram[idx]; |
| 567 | 567 | //int color=BITSWAP8(color_lookup[character],7,6,5,4,0,1,2,3)>>1; |
| 568 | 568 | int color=color_lookup[character]&0xf; |
| 569 | /* | |
| 570 | bit 0 - unknown | |
| 571 | bit 1 - blue | |
| 572 | bit 2 - green | |
| 573 | bit 3 - red | |
| 574 | */ | |
| 575 | ||
| 569 | /* | |
| 570 | bit 0 - unknown | |
| 571 | bit 1 - blue | |
| 572 | bit 2 - green | |
| 573 | bit 3 - red | |
| 574 | */ | |
| 575 | ||
| 576 | 576 | color=BITSWAP8(color,7,6,5,4,0,1,2,3)&0x7; |
| 577 | ||
| 577 | ||
| 578 | 578 | color^=0xf; |
| 579 | ||
| 580 | // if(color==0) color=0xf; | |
| 581 | ||
| 579 | ||
| 580 | // if(color==0) color=0xf; | |
| 581 | ||
| 582 | 582 | drawgfx_transpen(bitmap, cliprect, screen.machine().gfx[0], character, color, 0, 0, x*7, y*10,0); |
| 583 | ||
| 583 | ||
| 584 | 584 | ++idx; |
| 585 | 585 | } |
| 586 | ||
| 586 | ||
| 587 | 587 | } |
| 588 | ||
| 588 | ||
| 589 | 589 | { |
| 590 | 590 | for(int i=OBJ_0;i<OBJ_PLAYER;++i) |
| 591 | 591 | { |
| 592 | ||
| 592 | ||
| 593 | 593 | int x0=255-state->m_obj[i].m_x; |
| 594 | 594 | int y0=255-state->m_obj[i].m_y; |
| 595 | 595 | int num=state->m_obj[i].m_type&7; |
| 596 | 596 | int flip=state->m_obj[i].m_type&8; |
| 597 | ||
| 597 | ||
| 598 | 598 | num*=4*8; |
| 599 | 599 | for(int x=0;x<8;++x) |
| 600 | 600 | for(int y=0;y<4;++y) |
| r15975 | r15976 | |
| 610 | 610 | |
| 611 | 611 | /* |
| 612 | 612 | |
| 613 | 64 strips | |
| 614 | ||
| 615 | x - - x x x | |
| 616 | ||
| 617 | ||
| 613 | 64 strips | |
| 618 | 614 | |
| 615 | x - - x x x | |
| 616 | ||
| 617 | ||
| 618 | ||
| 619 | 619 | */ |
| 620 | 620 | |
| 621 | 621 | |
| r15975 | r15976 | |
| 624 | 624 | { |
| 625 | 625 | int x0=state->m_obj[OBJ_PLAYER].m_x; |
| 626 | 626 | int y0=255-state->m_obj[OBJ_PLAYER].m_y-32; |
| 627 | ||
| 627 | ||
| 628 | 628 | UINT8 *sprite_lookup = state->memregion("proms")->base(); |
| 629 | 629 | |
| 630 | ||
| 630 | ||
| 631 | 631 | for(int x=0;x<16;++x) |
| 632 | 632 | { |
| 633 | 633 | int prom_data=sprite_lookup[ ((state->m_obj[OBJ_PLAYER].m_type&0xf)<<2)|((x>>2)&3)|(((state->m_frame_counter>>1)&3)<<6) ]; |
| 634 | ||
| 634 | ||
| 635 | 635 | int xor_line=( ! (( ! ((BIT(prom_data,1))&(BIT(prom_data,2))&(BIT(prom_data,3))&(BIT(x,2)) ) ) & |
| 636 | 636 | ( (BIT(prom_data,2)) | (BIT(prom_data,3)) | ( BIT(state->m_obj[OBJ_PLAYER].m_type,4)) ) )); |
| 637 | ||
| 637 | ||
| 638 | 638 | int strip_num=((prom_data)&0x7)|( ((x&3)^(xor_line?0x3:0)) <<3)|((BIT(prom_data,3))<<5); |
| 639 | ||
| 639 | ||
| 640 | 640 | strip_num<<=2; |
| 641 | ||
| 641 | ||
| 642 | 642 | for(int y=0;y<4;++y) |
| 643 | 643 | { |
| 644 | ||
| 644 | ||
| 645 | 645 | drawgfx_transpen(bitmap, cliprect, screen.machine().gfx[3], strip_num, 0, !xor_line, 0, x*4+x0, y*8+y0, 0); |
| 646 | 646 | ++strip_num; |
| 647 | 647 | } |
| r15975 | r15976 | |
| 662 | 662 | { 1,2,3,4,5,6,7 }, |
| 663 | 663 | /* y offsets */ |
| 664 | 664 | { 0*8, 8*8, 4*8, 12*8, 2*8, 10*8, 6*8, 14*8, 1*8, 9*8 }, |
| 665 | 8*16 | |
| 665 | 8*16 | |
| 666 | 666 | }; |
| 667 | 667 | |
| 668 | 668 | static const gfx_layout tile_layout2 = |
| r15975 | r15976 | |
| 722 | 722 | |
| 723 | 723 | READ8_MEMBER(vega_state::txtram_r) |
| 724 | 724 | { |
| 725 | ||
| 725 | ||
| 726 | 726 | return m_txt_ram[m_ext_offset_r+((m_p2_data&3)<<8)]; |
| 727 | 727 | } |
| 728 | 728 | |
| r15975 | r15976 | |
| 830 | 830 | |
| 831 | 831 | static MACHINE_START( vega ) |
| 832 | 832 | { |
| 833 | ||
| 833 | ||
| 834 | 834 | } |
| 835 | 835 | |
| 836 | 836 | |
| 837 | 837 | static MACHINE_CONFIG_START( vega, vega_state ) |
| 838 | 838 | |
| 839 | ||
| 840 | MCFG_CPU_ADD("maincpu", I8035, 4000000) | |
| 839 | ||
| 840 | MCFG_CPU_ADD("maincpu", I8035, 4000000) | |
| 841 | 841 | MCFG_CPU_PROGRAM_MAP(vega_map) |
| 842 | 842 | MCFG_CPU_IO_MAP(vega_io_map) |
| 843 | 843 | MCFG_CPU_VBLANK_INT("screen",irq0_line_hold) |
| 844 | 844 | |
| 845 | ||
| 845 | ||
| 846 | 846 | MCFG_MACHINE_START(vega) |
| 847 | 847 | MCFG_MACHINE_RESET(vega) |
| 848 | ||
| 848 | ||
| 849 | 849 | MCFG_I8255A_ADD( "ppi8255", ppi8255_intf ) |
| 850 | 850 | MCFG_INS8154_ADD( "ins8154", ins8154_intf) |
| 851 | 851 | |
| r15975 | r15976 | |
| 862 | 862 | |
| 863 | 863 | MCFG_PALETTE_INIT(vega) |
| 864 | 864 | MCFG_SCREEN_UPDATE_STATIC(vega) |
| 865 | ||
| 865 | ||
| 866 | 866 | /* sound hardware */ |
| 867 | 867 | |
| 868 | 868 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| r15975 | r15976 | |
| 870 | 870 | MCFG_SOUND_ADD("ay8910", AY8910, 1500000 ) |
| 871 | 871 | MCFG_SOUND_CONFIG(ay8910_inf) |
| 872 | 872 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 873 | ||
| 873 | ||
| 874 | 874 | MACHINE_CONFIG_END |
| 875 | 875 | |
| 876 | 876 | ROM_START( vega ) |
| 877 | 877 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 878 | 878 | ROM_LOAD( "rom9.bin", 0x0800, 0x0800, CRC(191c73cd) SHA1(17b1c3790f82b276e55d25ea8a38a3c9cf20bf12) ) |
| 879 | 879 | ROM_LOAD( "rom10a.bin", 0x1000, 0x1000, CRC(fca9a570) SHA1(598772db11b32518ed6bf5155a19f4f1761a4831) ) |
| 880 | ||
| 880 | ||
| 881 | 881 | ROM_REGION( 0x01000, "gfx1", ROMREGION_INVERT ) |
| 882 | 882 | ROM_LOAD( "rom8.bin", 0x0000, 0x0800, CRC(ccb8598c) SHA1(8c4a702f0653bb189db7d8ac4c2a06aacecc0de0) ) |
| 883 | 883 | ROM_LOAD( "rom7.bin", 0x0800, 0x0800, CRC(1de564cd) SHA1(7408cd29f1afc111aa695ecb00160d8f7fba7532) ) |
| 884 | ||
| 884 | ||
| 885 | 885 | ROM_REGION( 0x01800, "gfx2", ROMREGION_INVERT ) |
| 886 | 886 | ROM_LOAD( "rom2.bin", 0x0000, 0x0800, CRC(718da952) SHA1(1a0023be1ee3a48ed3ddb8daddbb49ca3f442d46) ) |
| 887 | 887 | ROM_LOAD( "rom3.bin", 0x0800, 0x0800, CRC(37944311) SHA1(8b20be3d3ca5cb27bef78a73ee7e977fdf76c7f1) ) |
| 888 | 888 | ROM_LOAD( "rom4.bin", 0x1000, 0x0800, CRC(09453d7a) SHA1(75fe96ae25467f82c0725834c6c04a197f50cce7) ) |
| 889 | ||
| 889 | ||
| 890 | 890 | ROM_REGION( 0x01000, "gfx3", ROMREGION_INVERT ) |
| 891 | 891 | ROM_LOAD( "rom5.bin", 0x0000, 0x0800, CRC(be3df449) SHA1(acba1e07bdf9c0e971f47f2433d2760472c4326a) ) |
| 892 | 892 | ROM_LOAD( "rom6.bin", 0x0800, 0x0800, CRC(dc46527c) SHA1(d10a54d8d3ce9ffd8a53bede3d089625aff445a2) ) |
| 893 | ||
| 893 | ||
| 894 | 894 | ROM_REGION( 0x01000, "gfx4", ROMREGION_INVERT ) |
| 895 | 895 | ROM_LOAD( "rom11.bin", 0x0000, 0x0800, CRC(d1896f77) SHA1(5b80bf7aa81508edfae4fa583b4b0077575a300c) ) |
| 896 | 896 | ROM_LOAD( "rom12.bin", 0x0800, 0x0800, CRC(f5f1df2f) SHA1(5851b468702e5e4f085b64afbe7d8b797bb109b5) ) |
| r15975 | r15976 | |
| 900 | 900 | ROM_LOAD( "r9.bin", 0x0100, 0x0100, CRC(db0bcea5) SHA1(692bea2d9e28985fe7270a940e9f48ac64bdeaa8) ) // FIXED BITS (0000xxxx) |
| 901 | 901 | ROM_LOAD( "r10.bin", 0x0200, 0x0100, CRC(ca5a3627) SHA1(8c632fa9174e336c588074f92f3519b0cf224852) ) // FIXED BITS (0000xxxx) - txt layer lookup table |
| 902 | 902 | ROM_LOAD( "r11.bin", 0x0300, 0x0100, CRC(d8aab14a) SHA1(798feaa929dd7b71266220b568826997acd2a93e) ) // FIXED BITS (000011xx) - RNG? not used |
| 903 | ||
| 903 | ||
| 904 | 904 | ROM_REGION( 0x800, "tilemaps", 0 ) |
| 905 | 905 | ROM_LOAD( "rom1.bin", 0x0000, 0x0800, CRC(a0c0e0af) SHA1(7ccbfe3c23cda4c3a639c89ff4b2f554e2876c98) ) // FIXED BITS (00xxxxxx) (tile attribs?) |
| 906 | 906 |
| r15975 | r15976 | |
|---|---|---|
| 221 | 221 | * Sound interface |
| 222 | 222 | * |
| 223 | 223 | *************************************/ |
| 224 | ||
| 225 | ||
| 224 | ||
| 225 | ||
| 226 | 226 | //------------------------------------------------- |
| 227 | 227 | // sn76496_config psg_intf |
| 228 | 228 | //------------------------------------------------- |
| r15975 | r15976 | |
| 282 | 282 | MCFG_SOUND_ADD("sn1", SN76489A_NEW, MAIN_CLOCK/16) |
| 283 | 283 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.50) |
| 284 | 284 | MCFG_SOUND_CONFIG(psg_intf) |
| 285 | ||
| 285 | ||
| 286 | 286 | MCFG_SOUND_ADD("sn2", SN76489A_NEW, MAIN_CLOCK/16) |
| 287 | 287 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50) |
| 288 | 288 | MCFG_SOUND_CONFIG(psg_intf) |
| r15975 | r15976 | |
|---|---|---|
| 185 | 185 | |
| 186 | 186 | |
| 187 | 187 | //************************************************************************** |
| 188 | // | |
| 188 | // PPI INTERFACES | |
| 189 | 189 | //************************************************************************** |
| 190 | 190 | |
| 191 | 191 | static I8255_INTERFACE(single_ppi_intf) |
| r15975 | r15976 | |
| 201 | 201 | |
| 202 | 202 | |
| 203 | 203 | //************************************************************************** |
| 204 | // | |
| 204 | // PPI READ/WRITE CALLBACKS | |
| 205 | 205 | //************************************************************************** |
| 206 | 206 | |
| 207 | 207 | //------------------------------------------------- |
| r15975 | r15976 | |
| 241 | 241 | |
| 242 | 242 | // bit 4: enable display |
| 243 | 243 | segaic16_set_display_enable(machine(), data & 0x10); |
| 244 | ||
| 244 | ||
| 245 | 245 | // bits 0 & 1: update coin counters |
| 246 | 246 | coin_counter_w(machine(), 1, data & 0x02); |
| 247 | 247 | coin_counter_w(machine(), 0, data & 0x01); |
| r15975 | r15976 | |
| 276 | 276 | |
| 277 | 277 | |
| 278 | 278 | //************************************************************************** |
| 279 | // | |
| 279 | // MAIN CPU READ/WRITE HANDLERS | |
| 280 | 280 | //************************************************************************** |
| 281 | 281 | |
| 282 | 282 | //------------------------------------------------- |
| r15975 | r15976 | |
| 349 | 349 | |
| 350 | 350 | |
| 351 | 351 | //************************************************************************** |
| 352 | // | |
| 352 | // Z80 SOUND CPU READ/WRITE HANDLERS | |
| 353 | 353 | //************************************************************************** |
| 354 | 354 | |
| 355 | 355 | //------------------------------------------------- |
| r15975 | r15976 | |
| 433 | 433 | |
| 434 | 434 | |
| 435 | 435 | //************************************************************************** |
| 436 | // | |
| 436 | // N7751 SOUND GENERATOR CPU READ/WRITE HANDLERS | |
| 437 | 437 | //************************************************************************** |
| 438 | 438 | |
| 439 | 439 | //------------------------------------------------- |
| r15975 | r15976 | |
| 486 | 486 | |
| 487 | 487 | |
| 488 | 488 | //************************************************************************** |
| 489 | // | |
| 489 | // I8751 MCU READ/WRITE HANDLERS | |
| 490 | 490 | //************************************************************************** |
| 491 | 491 | |
| 492 | 492 | //------------------------------------------------- |
| r15975 | r15976 | |
| 501 | 501 | |
| 502 | 502 | // apply reset to the main CPU |
| 503 | 503 | m_maincpu->set_input_line(INPUT_LINE_RESET, (data & 0x40) ? ASSERT_LINE : CLEAR_LINE); |
| 504 | ||
| 504 | ||
| 505 | 505 | // apply IRQ bits to the main CPU |
| 506 | 506 | for (int irqline = 1; irqline <= 7; irqline++) |
| 507 | 507 | m_maincpu->set_input_line(irqline, ((~data & 7) == irqline) ? ASSERT_LINE : CLEAR_LINE); |
| r15975 | r15976 | |
| 521 | 521 | |
| 522 | 522 | //------------------------------------------------- |
| 523 | 523 | // mcu_io_w - handle I/O space writes, which map |
| 524 | // | |
| 524 | // to the 68000's address space | |
| 525 | 525 | //------------------------------------------------- |
| 526 | 526 | |
| 527 | 527 | WRITE8_MEMBER( segas16a_state::mcu_io_w ) |
| r15975 | r15976 | |
| 576 | 576 | |
| 577 | 577 | //------------------------------------------------- |
| 578 | 578 | // mcu_io_r - handle I/O space reads, which map |
| 579 | // | |
| 579 | // to the 68000's address space | |
| 580 | 580 | //------------------------------------------------- |
| 581 | 581 | |
| 582 | 582 | READ8_MEMBER( segas16a_state::mcu_io_r ) |
| r15975 | r15976 | |
| 586 | 586 | case 0: |
| 587 | 587 | // access watchdog? (unsure about this one) |
| 588 | 588 | if (offset >= 0x0000 && offset < 0x3fff) |
| 589 | return watchdog_reset_r(space, 0); | |
| 590 | ||
| 589 | return watchdog_reset_r(space, 0); | |
| 590 | ||
| 591 | 591 | // access main work RAM |
| 592 | 592 | else if (offset >= 0x4000 && offset < 0x8000) |
| 593 | 593 | return m_maincpu->space(AS_PROGRAM)->read_byte(0xc70001 ^ (offset & 0x3fff)); |
| 594 | ||
| 594 | ||
| 595 | 595 | // access misc I/O space |
| 596 | 596 | else if (offset >= 0x8000 && offset < 0xc000) |
| 597 | 597 | return m_maincpu->space(AS_PROGRAM)->read_byte(0xc40001 ^ (offset & 0x3fff)); |
| r15975 | r15976 | |
| 627 | 627 | |
| 628 | 628 | |
| 629 | 629 | //************************************************************************** |
| 630 | // | |
| 630 | // I8751-RELATED VBLANK INTERRUPT HANDLERS | |
| 631 | 631 | //************************************************************************** |
| 632 | 632 | |
| 633 | 633 | //------------------------------------------------- |
| 634 | 634 | // mcu_irq_assert - signal an interrupt to the |
| 635 | // I8751 MCU, and boost interleave to ensure | |
| 636 | // good synchronization with the main CPU | |
| 635 | // I8751 MCU, and boost interleave to ensure | |
| 636 | // good synchronization with the main CPU | |
| 637 | 637 | //------------------------------------------------- |
| 638 | 638 | |
| 639 | 639 | INTERRUPT_GEN_MEMBER( segas16a_state::mcu_irq_assert ) |
| r15975 | r15976 | |
| 649 | 649 | |
| 650 | 650 | //------------------------------------------------- |
| 651 | 651 | // i8751_main_cpu_vblank - if we have a fake |
| 652 | // | |
| 652 | // handler, we hook this to execute it | |
| 653 | 653 | //------------------------------------------------- |
| 654 | 654 | |
| 655 | 655 | INTERRUPT_GEN_MEMBER( segas16a_state::i8751_main_cpu_vblank ) |
| r15975 | r15976 | |
| 662 | 662 | |
| 663 | 663 | |
| 664 | 664 | //************************************************************************** |
| 665 | // | |
| 665 | // DRIVER OVERRIDES | |
| 666 | 666 | //************************************************************************** |
| 667 | 667 | |
| 668 | 668 | //------------------------------------------------- |
| r15975 | r15976 | |
| 692 | 692 | else if (m_mcu != NULL) |
| 693 | 693 | machine().scheduler().boost_interleave(attotime::zero, attotime::from_msec(10)); |
| 694 | 694 | break; |
| 695 | ||
| 695 | ||
| 696 | 696 | // synchronize writes to the 8255 PPI |
| 697 | 697 | case TID_PPI_WRITE: |
| 698 | 698 | m_i8255->write(*m_maincpu->space(AS_PROGRAM), param >> 8, param & 0xff); |
| r15975 | r15976 | |
| 703 | 703 | |
| 704 | 704 | |
| 705 | 705 | //************************************************************************** |
| 706 | // | |
| 706 | // I8751 SIMULATIONS | |
| 707 | 707 | //************************************************************************** |
| 708 | 708 | |
| 709 | 709 | //------------------------------------------------- |
| 710 | 710 | // dumpmtmt_i8751_sim - simulate the I8751 |
| 711 | // | |
| 711 | // from Dump Matsumoto | |
| 712 | 712 | //------------------------------------------------- |
| 713 | 713 | |
| 714 | 714 | void segas16a_state::dumpmtmt_i8751_sim() |
| r15975 | r15976 | |
| 758 | 758 | |
| 759 | 759 | //------------------------------------------------- |
| 760 | 760 | // quartet_i8751_sim - simulate the I8751 |
| 761 | // | |
| 761 | // from Quartet | |
| 762 | 762 | //------------------------------------------------- |
| 763 | 763 | |
| 764 | 764 | void segas16a_state::quartet_i8751_sim() |
| r15975 | r15976 | |
| 779 | 779 | |
| 780 | 780 | |
| 781 | 781 | //************************************************************************** |
| 782 | // | |
| 782 | // CUSTOM I/O HANDLERS | |
| 783 | 783 | //************************************************************************** |
| 784 | 784 | |
| 785 | 785 | //------------------------------------------------- |
| 786 | 786 | // aceattaa_custom_io_r - custom I/O read handler |
| 787 | // | |
| 787 | // for Ace Attacker | |
| 788 | 788 | //------------------------------------------------- |
| 789 | 789 | |
| 790 | 790 | READ16_MEMBER( segas16a_state::aceattaa_custom_io_r ) |
| r15975 | r15976 | |
| 831 | 831 | |
| 832 | 832 | //------------------------------------------------- |
| 833 | 833 | // mjleague_custom_io_r - custom I/O read handler |
| 834 | // | |
| 834 | // for Major League | |
| 835 | 835 | //------------------------------------------------- |
| 836 | 836 | |
| 837 | 837 | READ16_MEMBER( segas16a_state::mjleague_custom_io_r ) |
| r15975 | r15976 | |
| 911 | 911 | |
| 912 | 912 | //------------------------------------------------- |
| 913 | 913 | // passsht16a_custom_io_r - custom I/O read handler |
| 914 | // | |
| 914 | // for Passing Shot | |
| 915 | 915 | //------------------------------------------------- |
| 916 | 916 | |
| 917 | 917 | READ16_MEMBER( segas16a_state::passsht16a_custom_io_r ) |
| r15975 | r15976 | |
| 944 | 944 | |
| 945 | 945 | //------------------------------------------------- |
| 946 | 946 | // sdi_custom_io_r - custom I/O read handler |
| 947 | // | |
| 947 | // for SDI | |
| 948 | 948 | //------------------------------------------------- |
| 949 | 949 | |
| 950 | 950 | READ16_MEMBER( segas16a_state::sdi_custom_io_r ) |
| r15975 | r15976 | |
| 965 | 965 | |
| 966 | 966 | //------------------------------------------------- |
| 967 | 967 | // sjryuko_custom_io_r - custom I/O read handler |
| 968 | // | |
| 968 | // for Sukeban Jansi Ryuko | |
| 969 | 969 | //------------------------------------------------- |
| 970 | 970 | |
| 971 | 971 | READ16_MEMBER( segas16a_state::sjryuko_custom_io_r ) |
| r15975 | r15976 | |
| 999 | 999 | |
| 1000 | 1000 | |
| 1001 | 1001 | //************************************************************************** |
| 1002 | // | |
| 1002 | // MAIN CPU ADDRESS MAPS | |
| 1003 | 1003 | //************************************************************************** |
| 1004 | 1004 | |
| 1005 | 1005 | static ADDRESS_MAP_START( system16a_map, AS_PROGRAM, 16, segas16a_state ) |
| r15975 | r15976 | |
| 1017 | 1017 | |
| 1018 | 1018 | |
| 1019 | 1019 | //************************************************************************** |
| 1020 | // | |
| 1020 | // SOUND CPU ADDRESS MAPS | |
| 1021 | 1021 | //************************************************************************** |
| 1022 | 1022 | |
| 1023 | 1023 | static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, segas16a_state ) |
| r15975 | r15976 | |
| 1038 | 1038 | |
| 1039 | 1039 | |
| 1040 | 1040 | //************************************************************************** |
| 1041 | // | |
| 1041 | // N7751 SOUND GENERATOR CPU ADDRESS MAPS | |
| 1042 | 1042 | //************************************************************************** |
| 1043 | 1043 | |
| 1044 | 1044 | static ADDRESS_MAP_START( n7751_portmap, AS_IO, 8, segas16a_state ) |
| r15975 | r15976 | |
| 1052 | 1052 | |
| 1053 | 1053 | |
| 1054 | 1054 | //************************************************************************** |
| 1055 | // | |
| 1055 | // I8751 MCU ADDRESS MAPS | |
| 1056 | 1056 | //************************************************************************** |
| 1057 | 1057 | |
| 1058 | 1058 | static ADDRESS_MAP_START( mcu_io_map, AS_IO, 8, segas16a_state ) |
| r15975 | r15976 | |
| 1065 | 1065 | |
| 1066 | 1066 | |
| 1067 | 1067 | //************************************************************************** |
| 1068 | // | |
| 1068 | // GENERIC PORT DEFINITIONS | |
| 1069 | 1069 | //************************************************************************** |
| 1070 | 1070 | |
| 1071 | 1071 | static INPUT_PORTS_START( system16a_generic ) |
| r15975 | r15976 | |
| 1119 | 1119 | |
| 1120 | 1120 | |
| 1121 | 1121 | //************************************************************************** |
| 1122 | // | |
| 1122 | // GAME-SPECIFIC PORT DEFINITIONS | |
| 1123 | 1123 | //************************************************************************** |
| 1124 | 1124 | |
| 1125 | 1125 | static INPUT_PORTS_START( aceattaa ) |
| r15975 | r15976 | |
| 1917 | 1917 | |
| 1918 | 1918 | |
| 1919 | 1919 | //************************************************************************** |
| 1920 | // | |
| 1920 | // SOUND CONFIGURATIONS | |
| 1921 | 1921 | //************************************************************************** |
| 1922 | 1922 | |
| 1923 | 1923 | static const ym2151_interface ym2151_config = |
| r15975 | r15976 | |
| 1929 | 1929 | |
| 1930 | 1930 | |
| 1931 | 1931 | //************************************************************************** |
| 1932 | // | |
| 1932 | // GRAPHICS DECODING | |
| 1933 | 1933 | //************************************************************************** |
| 1934 | 1934 | |
| 1935 | 1935 | static GFXDECODE_START( segas16a ) |
| r15975 | r15976 | |
| 1939 | 1939 | |
| 1940 | 1940 | |
| 1941 | 1941 | //************************************************************************** |
| 1942 | // | |
| 1942 | // GENERIC MACHINE DRIVERS | |
| 1943 | 1943 | //************************************************************************** |
| 1944 | 1944 | |
| 1945 | 1945 | static MACHINE_CONFIG_START( system16a, segas16a_state ) |
| r15975 | r15976 | |
| 2050 | 2050 | |
| 2051 | 2051 | |
| 2052 | 2052 | //************************************************************************** |
| 2053 | // | |
| 2053 | // ROM definitions | |
| 2054 | 2054 | //************************************************************************** |
| 2055 | 2055 | |
| 2056 | 2056 | |
| r15975 | r15976 | |
| 3443 | 3443 | |
| 3444 | 3444 | |
| 3445 | 3445 | //************************************************************************** |
| 3446 | // | |
| 3446 | // CONFIGURATION | |
| 3447 | 3447 | //************************************************************************** |
| 3448 | 3448 | |
| 3449 | 3449 | //------------------------------------------------- |
| r15975 | r15976 | |
| 3533 | 3533 | |
| 3534 | 3534 | |
| 3535 | 3535 | //************************************************************************** |
| 3536 | // | |
| 3536 | // GAME DRIVERS | |
| 3537 | 3537 | //************************************************************************** |
| 3538 | 3538 | |
| 3539 | 3539 | // YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR,COMPANY,FULLNAME,FLAGS |
| r15975 | r15976 | |
|---|---|---|
| 59 | 59 | |
| 60 | 60 | |
| 61 | 61 | //************************************************************************** |
| 62 | // | |
| 62 | // CONSTANTS | |
| 63 | 63 | //************************************************************************** |
| 64 | 64 | |
| 65 | 65 | const UINT32 MASTER_CLOCK_25MHz = 25174800; |
| r15975 | r15976 | |
| 69 | 69 | |
| 70 | 70 | |
| 71 | 71 | //************************************************************************** |
| 72 | // | |
| 72 | // PPI INTERFACES | |
| 73 | 73 | //************************************************************************** |
| 74 | 74 | |
| 75 | 75 | static I8255_INTERFACE(hangon_ppi_intf_0) |
| r15975 | r15976 | |
| 95 | 95 | |
| 96 | 96 | |
| 97 | 97 | //************************************************************************** |
| 98 | // | |
| 98 | // PPI READ/WRITE CALLBACKS | |
| 99 | 99 | //************************************************************************** |
| 100 | 100 | |
| 101 | 101 | //------------------------------------------------- |
| 102 | 102 | // video_lamps_w - screen flip, sprite shadows, |
| 103 | // | |
| 103 | // display enable, lamps, and coin counters | |
| 104 | 104 | //------------------------------------------------- |
| 105 | 105 | |
| 106 | 106 | WRITE8_MEMBER( segahang_state::video_lamps_w ) |
| r15975 | r15976 | |
| 120 | 120 | // bit 7: screen flip |
| 121 | 121 | segaic16_tilemap_set_flip(machine(), 0, data & 0x80); |
| 122 | 122 | segaic16_sprites_set_flip(machine(), 0, data & 0x80); |
| 123 | ||
| 123 | ||
| 124 | 124 | // bit 6: shadow/highlight control |
| 125 | 125 | segaic16_sprites_set_shadow(machine(), 0, ~data & 0x40); |
| 126 | 126 | |
| r15975 | r15976 | |
| 130 | 130 | // bits 2 & 3: control the lamps |
| 131 | 131 | set_led_status(machine(), 1, data & 0x08); |
| 132 | 132 | set_led_status(machine(), 0, data & 0x04); |
| 133 | ||
| 133 | ||
| 134 | 134 | // bits 0 & 1: update coin counters |
| 135 | 135 | coin_counter_w(machine(), 1, data & 0x02); |
| 136 | 136 | coin_counter_w(machine(), 0, data & 0x01); |
| r15975 | r15976 | |
| 139 | 139 | |
| 140 | 140 | //------------------------------------------------- |
| 141 | 141 | // tilemap_sound_w - handshaking bits, plus |
| 142 | // | |
| 142 | // tilemap control and global sound mute | |
| 143 | 143 | //------------------------------------------------- |
| 144 | 144 | |
| 145 | 145 | WRITE8_MEMBER( segahang_state::tilemap_sound_w ) |
| r15975 | r15976 | |
| 156 | 156 | // D1 : SCONT0 - Tilemap origin bit 0 |
| 157 | 157 | // D0 : MUTE (1= audio on, 0= audio off) |
| 158 | 158 | // |
| 159 | ||
| 159 | ||
| 160 | 160 | // bit 7: NMI signal to the sound CPU |
| 161 | 161 | m_soundcpu->set_input_line(INPUT_LINE_NMI, (data & 0x80) ? CLEAR_LINE : ASSERT_LINE); |
| 162 | ||
| 162 | ||
| 163 | 163 | // bits 1 & 2: tilemap origin |
| 164 | 164 | segaic16_tilemap_set_colscroll(machine(), 0, ~data & 0x04); |
| 165 | 165 | segaic16_tilemap_set_rowscroll(machine(), 0, ~data & 0x02); |
| 166 | ||
| 166 | ||
| 167 | 167 | // bit 0: sound mute |
| 168 | 168 | machine().sound().system_enable(data & 0x01); |
| 169 | 169 | } |
| r15975 | r15976 | |
| 171 | 171 | |
| 172 | 172 | //------------------------------------------------- |
| 173 | 173 | // sub_control_adc_w - sub CPU control and ADC |
| 174 | // | |
| 174 | // selects | |
| 175 | 175 | //------------------------------------------------- |
| 176 | 176 | |
| 177 | 177 | WRITE8_MEMBER( segahang_state::sub_control_adc_w ) |
| 178 | 178 | { |
| 179 | 179 | // |
| 180 | // | |
| 180 | // Sub PPI port A | |
| 181 | 181 | // |
| 182 | 182 | // D6 : INTR line on second CPU |
| 183 | 183 | // D5 : RESET line on second CPU |
| 184 | 184 | // D3-D2 : ADC_SELECT |
| 185 | 185 | // |
| 186 | ||
| 186 | ||
| 187 | 187 | // bit 6: INTR line |
| 188 | 188 | m_subcpu->set_input_line(4, (data & 0x40) ? CLEAR_LINE : ASSERT_LINE); |
| 189 | ||
| 189 | ||
| 190 | 190 | // bit 5: RESET line |
| 191 | 191 | m_subcpu->set_input_line(INPUT_LINE_RESET, (data & 0x20) ? ASSERT_LINE : CLEAR_LINE); |
| 192 | 192 | |
| r15975 | r15976 | |
| 213 | 213 | |
| 214 | 214 | |
| 215 | 215 | //************************************************************************** |
| 216 | // | |
| 216 | // MAIN CPU READ/WRITE HANDLERS | |
| 217 | 217 | //************************************************************************** |
| 218 | 218 | |
| 219 | 219 | //------------------------------------------------- |
| r15975 | r15976 | |
| 277 | 277 | |
| 278 | 278 | //------------------------------------------------- |
| 279 | 279 | // sharrier_io_r - I/O handler for Space Harrier |
| 280 | // | |
| 280 | // boards | |
| 281 | 281 | //------------------------------------------------- |
| 282 | 282 | |
| 283 | 283 | READ16_MEMBER( segahang_state::sharrier_io_r ) |
| r15975 | r15976 | |
| 311 | 311 | |
| 312 | 312 | //------------------------------------------------- |
| 313 | 313 | // sharrier_io_w - I/O handler for Space Harrier |
| 314 | // | |
| 314 | // boards | |
| 315 | 315 | //------------------------------------------------- |
| 316 | 316 | |
| 317 | 317 | WRITE16_MEMBER( segahang_state::sharrier_io_w ) |
| r15975 | r15976 | |
| 354 | 354 | |
| 355 | 355 | |
| 356 | 356 | //************************************************************************** |
| 357 | // | |
| 357 | // Z80 SOUND CPU READ/WRITE HANDLERS | |
| 358 | 358 | //************************************************************************** |
| 359 | 359 | |
| 360 | 360 | //------------------------------------------------- |
| r15975 | r15976 | |
| 381 | 381 | |
| 382 | 382 | |
| 383 | 383 | //************************************************************************** |
| 384 | // | |
| 384 | // I8751-RELATED VBLANK INTERRUPT HANDLERS | |
| 385 | 385 | //************************************************************************** |
| 386 | 386 | |
| 387 | 387 | //------------------------------------------------- |
| 388 | 388 | // i8751_main_cpu_vblank - if we have a fake |
| 389 | // | |
| 389 | // handler, we hook this to execute it | |
| 390 | 390 | //------------------------------------------------- |
| 391 | 391 | |
| 392 | 392 | INTERRUPT_GEN_MEMBER( segahang_state::i8751_main_cpu_vblank ) |
| r15975 | r15976 | |
| 399 | 399 | |
| 400 | 400 | |
| 401 | 401 | //************************************************************************** |
| 402 | // | |
| 402 | // DRIVER OVERRIDES | |
| 403 | 403 | //************************************************************************** |
| 404 | 404 | |
| 405 | 405 | //------------------------------------------------- |
| r15975 | r15976 | |
| 434 | 434 | else if (m_mcu != NULL) |
| 435 | 435 | machine().scheduler().boost_interleave(attotime::zero, attotime::from_msec(10)); |
| 436 | 436 | break; |
| 437 | ||
| 437 | ||
| 438 | 438 | // synchronize writes to the 8255 PPI |
| 439 | 439 | case TID_PPI_WRITE: |
| 440 | 440 | m_i8255_1->write(*m_maincpu->space(AS_PROGRAM), param >> 8, param & 0xff); |
| r15975 | r15976 | |
| 445 | 445 | |
| 446 | 446 | |
| 447 | 447 | //************************************************************************** |
| 448 | // | |
| 448 | // I8751 SIMULATIONS | |
| 449 | 449 | //************************************************************************** |
| 450 | 450 | |
| 451 | 451 | //------------------------------------------------- |
| 452 | 452 | // sharrier_i8751_sim - simulate the I8751 |
| 453 | // | |
| 453 | // from Space Harrier | |
| 454 | 454 | //------------------------------------------------- |
| 455 | 455 | |
| 456 | 456 | void segahang_state::sharrier_i8751_sim() |
| r15975 | r15976 | |
| 465 | 465 | |
| 466 | 466 | |
| 467 | 467 | //************************************************************************** |
| 468 | // | |
| 468 | // MAIN CPU ADDRESS MAPS | |
| 469 | 469 | //************************************************************************** |
| 470 | 470 | |
| 471 | 471 | static ADDRESS_MAP_START( hangon_map, AS_PROGRAM, 16, segahang_state ) |
| r15975 | r15976 | |
| 498 | 498 | |
| 499 | 499 | |
| 500 | 500 | //************************************************************************** |
| 501 | // | |
| 501 | // SUB CPU ADDRESS MAPS | |
| 502 | 502 | //************************************************************************** |
| 503 | 503 | |
| 504 | 504 | // On Super Hang On there is a memory mapper, like the System16 one, todo: emulate it! |
| r15975 | r15976 | |
| 513 | 513 | |
| 514 | 514 | |
| 515 | 515 | //************************************************************************** |
| 516 | // | |
| 516 | // SOUND CPU ADDRESS MAPS | |
| 517 | 517 | //************************************************************************** |
| 518 | 518 | |
| 519 | 519 | static ADDRESS_MAP_START( sound_map_2203, AS_PROGRAM, 8, segahang_state ) |
| r15975 | r15976 | |
| 555 | 555 | |
| 556 | 556 | |
| 557 | 557 | //************************************************************************** |
| 558 | // | |
| 558 | // I8751 MCU ADDRESS MAPS | |
| 559 | 559 | //************************************************************************** |
| 560 | 560 | |
| 561 | 561 | static ADDRESS_MAP_START( mcu_io_map, AS_IO, 8, segahang_state ) |
| r15975 | r15976 | |
| 564 | 564 | |
| 565 | 565 | |
| 566 | 566 | //************************************************************************** |
| 567 | // | |
| 567 | // GENERIC PORT DEFINITIONS | |
| 568 | 568 | //************************************************************************** |
| 569 | 569 | |
| 570 | 570 | static INPUT_PORTS_START( hangon_generic ) |
| r15975 | r15976 | |
| 627 | 627 | |
| 628 | 628 | |
| 629 | 629 | //************************************************************************** |
| 630 | // | |
| 630 | // GAME-SPECIFIC PORT DEFINITIONS | |
| 631 | 631 | //************************************************************************** |
| 632 | 632 | |
| 633 | 633 | static INPUT_PORTS_START( hangon ) |
| r15975 | r15976 | |
| 789 | 789 | |
| 790 | 790 | |
| 791 | 791 | //************************************************************************** |
| 792 | // | |
| 792 | // SOUND CONFIGURATIONS | |
| 793 | 793 | //************************************************************************** |
| 794 | 794 | |
| 795 | 795 | static const ym2203_interface ym2203_config = |
| r15975 | r15976 | |
| 815 | 815 | |
| 816 | 816 | |
| 817 | 817 | //************************************************************************** |
| 818 | // | |
| 818 | // GRAPHICS DECODING | |
| 819 | 819 | //************************************************************************** |
| 820 | 820 | |
| 821 | 821 | static GFXDECODE_START( segahang ) |
| r15975 | r15976 | |
| 825 | 825 | |
| 826 | 826 | |
| 827 | 827 | //************************************************************************** |
| 828 | // | |
| 828 | // GENERIC MACHINE DRIVERS | |
| 829 | 829 | //************************************************************************** |
| 830 | 830 | |
| 831 | 831 | static MACHINE_CONFIG_START( shared_base, segahang_state ) |
| r15975 | r15976 | |
| 973 | 973 | |
| 974 | 974 | |
| 975 | 975 | //************************************************************************** |
| 976 | // | |
| 976 | // SPECIFIC MACHINE DRIVERS | |
| 977 | 977 | //************************************************************************** |
| 978 | 978 | |
| 979 | 979 | static MACHINE_CONFIG_DERIVED( hangon, hangon_base ) |
| r15975 | r15976 | |
| 1032 | 1032 | |
| 1033 | 1033 | |
| 1034 | 1034 | //************************************************************************** |
| 1035 | // | |
| 1035 | // ROM definitions | |
| 1036 | 1036 | //************************************************************************** |
| 1037 | 1037 | |
| 1038 | 1038 | |
| r15975 | r15976 | |
| 1152 | 1152 | //************************************************************************************************************************* |
| 1153 | 1153 | //************************************************************************************************************************* |
| 1154 | 1154 | //************************************************************************************************************************* |
| 1155 | // Super Hang-On (Japan Ver.) | |
| 1156 | // (c)1987 Sega | |
| 1157 | // Ride-on Type | |
| 1155 | // Super Hang-On (Japan Ver.) | |
| 1156 | // (c)1987 Sega | |
| 1157 | // Ride-on Type | |
| 1158 | 1158 | // |
| 1159 | // | |
| 1159 | // CPU: FD1094 317-0038 | |
| 1160 | 1160 | // |
| 1161 | // Top : Label 834-6273 | |
| 1162 | // Middle: 834-5704 (Label 837-6340) | |
| 1163 | // Bottom: 834-5668 (Label 837-6341) | |
| 1161 | // Top : Label 834-6273 | |
| 1162 | // Middle: 834-5704 (Label 837-6340) | |
| 1163 | // Bottom: 834-5668 (Label 837-6341) | |
| 1164 | 1164 | // |
| 1165 | 1165 | ROM_START( shangonro ) |
| 1166 | 1166 | ROM_REGION( 0x40000, "maincpu", 0 ) // 68000 code |
| r15975 | r15976 | |
| 1353 | 1353 | |
| 1354 | 1354 | //************************************************************************************************************************* |
| 1355 | 1355 | // Space Harrier |
| 1356 | // | |
| 1356 | // CPU: 68000 + i8751 (315-5163) | |
| 1357 | 1357 | // |
| 1358 | 1358 | // ASSY CPU BD 834-5797 |
| 1359 | 1359 | // ASSY CONTROL BD 834-5798 |
| r15975 | r15976 | |
| 1745 | 1745 | |
| 1746 | 1746 | |
| 1747 | 1747 | //************************************************************************** |
| 1748 | // | |
| 1748 | // CONFIGURATION | |
| 1749 | 1749 | //************************************************************************** |
| 1750 | 1750 | |
| 1751 | 1751 | //------------------------------------------------- |
| r15975 | r15976 | |
| 1809 | 1809 | |
| 1810 | 1810 | |
| 1811 | 1811 | //************************************************************************** |
| 1812 | // | |
| 1812 | // GAME DRIVERS | |
| 1813 | 1813 | //************************************************************************** |
| 1814 | 1814 | |
| 1815 | 1815 | // YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR,COMPANY,FULLNAME,FLAGS |
| r15975 | r15976 | |
|---|---|---|
| 714 | 714 | * Sound interface |
| 715 | 715 | * |
| 716 | 716 | *************************************/ |
| 717 | ||
| 718 | ||
| 717 | ||
| 718 | ||
| 719 | 719 | //------------------------------------------------- |
| 720 | 720 | // sn76496_config psg_intf |
| 721 | 721 | //------------------------------------------------- |
| r15975 | r15976 | |
|---|---|---|
| 62 | 62 | /* in many sets the 0x100 - 0x1ff area contains revision information |
| 63 | 63 | and sometimes bugfix notes.. |
| 64 | 64 | |
| 65 | in other sets 0x200 - 0x204 contains 'bank' or 'reels' maybe to | |
| 65 | in other sets 0x200 - 0x204 contains 'bank' or 'reels' maybe to | |
| 66 | 66 | indicate if the roms are for a topbox or the player unit? |
| 67 | ||
| 67 | ||
| 68 | 68 | there doesn't seem to be a hard defined standard for this header |
| 69 | 69 | information, it probably varies between manufacturer |
| 70 | 70 | |
| r15975 | r15976 | |
| 349 | 349 | ROM_LOAD16_BYTE( "i00pwo17.g1", 0x000001, 0x020000, CRC(026c77ac) SHA1(deee91163e955dcc58d78fb3bad266dbf8036913) ) |
| 350 | 350 | EP_WIPEO_SOUND |
| 351 | 351 | ROM_END |
| 352 | ||
| 353 | 352 | |
| 353 | ||
| 354 | 354 | #define EP_FUNNY_SOUND \ |
| 355 | 355 | ROM_REGION( 0x100000, "ymz", 0 ) \ |
| 356 | 356 | ROM_LOAD( "funnymoneysound0.bin", 0x000000, 0x080000, CRC(81354590) SHA1(f11e46ed0dadf98ffc2476ee993708cc15ffc7bd) ) \ |
| r15975 | r15976 | |
| 1641 | 1641 | ROM_LOAD16_BYTE( "sa980008.g1", 0x00001, 0x020000, CRC(8366da15) SHA1(a7ca77ba8297df24e8f008844e25935848528613) ) |
| 1642 | 1642 | EP_CFALL_SOUND |
| 1643 | 1643 | ROM_END |
| 1644 | ||
| 1644 | ||
| 1645 | 1645 | ROM_START( ep_cfalla ) |
| 1646 | 1646 | ROM_REGION( 0x080000, "maincpu", 0 ) |
| 1647 | 1647 | ROM_LOAD16_BYTE( "sa980170.g0", 0x00000, 0x020000, CRC(3625c374) SHA1(9559516ed6b3612749615ddc7638b0a26648d9e7) ) |
| r15975 | r15976 | |
| 1920 | 1920 | ROM_LOAD16_BYTE( "970024g1", 0x00001, 0x020000, CRC(968cac01) SHA1(de032081acdbd7242cde168a0c70d87233cb6b48) ) |
| 1921 | 1921 | EP_MARIO_SOUND |
| 1922 | 1922 | ROM_END |
| 1923 | ||
| 1923 | ||
| 1924 | 1924 | ROM_START( ep_marioa ) |
| 1925 | 1925 | ROM_REGION( 0x080000, "maincpu", 0 ) |
| 1926 | 1926 | ROM_LOAD16_BYTE( "970025g0", 0x00000, 0x020000, CRC(f2b71e7c) SHA1(b06f4fcc97b57b6ae4bbdaa7e99224c9af2d62df) ) |
| r15975 | r15976 | |
| 2151 | 2151 | ROM_LOAD16_BYTE( "1ba6.1g1", 0x000001, 0x020000, CRC(fcac8e99) SHA1(a5aeec7ba1415525ac57427c8eca2309377d1a42) ) |
| 2152 | 2152 | EP_25CRT_SOUND |
| 2153 | 2153 | ROM_END |
| 2154 | ||
| 2154 | ||
| 2155 | 2155 | ROM_START( ep_25crta ) |
| 2156 | 2156 | ROM_REGION( 0x080000, "maincpu", 0 ) |
| 2157 | 2157 | ROM_LOAD16_BYTE( "msb02029.g0", 0x000000, 0x020000, CRC(0062a16b) SHA1(0025bca547826e47f27965284a6b9f5fe9394dc3) ) |
| r15975 | r15976 | |
| 2858 | 2858 | ROM_LOAD16_BYTE( "f_n_gl.g1", 0x000001, 0x020000, CRC(c35cbb80) SHA1(401e81a8ec2c23b3494f4603a4f9f6fb5f83c4dd) ) |
| 2859 | 2859 | EP_FORTG_SOUND |
| 2860 | 2860 | ROM_END |
| 2861 | ||
| 2861 | ||
| 2862 | 2862 | ROM_START( ep_fortga ) |
| 2863 | 2863 | ROM_REGION( 0x080000, "maincpu", 0 ) |
| 2864 | 2864 | ROM_LOAD16_BYTE( "i01nfg35.g0", 0x000000, 0x020000, CRC(99fd5271) SHA1(331ae4edafb13caae93a2a4e3f9bc53a56a081fa) ) |
| r15975 | r15976 | |
| 5913 | 5913 | ROM_LOAD16_BYTE( "i00pff19.g3", 0x040001, 0x020000, CRC(d34de35f) SHA1(cc144e67153a329034cc54673c7c363c94be1b61) ) |
| 5914 | 5914 | EP_FULLM_SOUND |
| 5915 | 5915 | ROM_END |
| 5916 | ||
| 5916 | ||
| 5917 | 5917 | ROM_START( ep_fullma ) |
| 5918 | 5918 | ROM_REGION( 0x080000, "maincpu", 0 ) |
| 5919 | 5919 | ROM_LOAD16_BYTE( "i00nff14.g0", 0x000000, 0x020000, CRC(825e2004) SHA1(5462c5b813799409ab44161b40fbf8ae00736444) ) |
| r15975 | r15976 | |
|---|---|---|
| 967 | 967 | EC_SBARX_SET( 199?, ec_sbarx__ay, ec_sbarx, "iss9405.rom", 0x0000, 0x008000, CRC(6435586d) SHA1(95f2cda1bc80bb8f7c3d2d2b41abbfd634a88237), "Electrocoin","Super Bar X (Electrocoin) (set 62)" ) // from unknown set |
| 968 | 968 | /* No header (all 0x00) space for one tho */ |
| 969 | 969 | EC_SBARX_SET( 199?, ec_sbarx__az, ec_sbarx, "iss129.rom", 0x0000, 0x008000, CRC(b4adae28) SHA1(5d747624dafc8d65fd3b49ff3649ad9973d9271b), "Electrocoin","Super Bar X (Electrocoin) (set 63)" ) // superbarx_issue129_10cash.bin, doesn't do port09 0x40 changed 40 |
| 970 | EC_SBARX_SET( 199?, ec_sbarx__a0, ec_sbarx, "superbarx_issue158_sitdown10cash.bin", 0x0000, 0x008000, CRC(80c2d523) SHA1(1252bf66987aa9ac610c3e9f0919f29a6ad6cc52), "Electrocoin","Super Bar X (Electrocoin) (set 64)" ) // ^^ | |
| 970 | EC_SBARX_SET( 199?, ec_sbarx__a0, ec_sbarx, "superbarx_issue158_sitdown10cash.bin", 0x0000, 0x008000, CRC(80c2d523) SHA1(1252bf66987aa9ac610c3e9f0919f29a6ad6cc52), "Electrocoin","Super Bar X (Electrocoin) (set 64)" ) // ^^ | |
| 971 | 971 | EC_SBARX_SET( 199?, ec_sbarx__a1, ec_sbarx, "iss173.rom", 0x0000, 0x008000, CRC(984f9c18) SHA1(f160eeee6ea70c79502fc68f70cb973e1ca029b8), "Electrocoin","Super Bar X (Electrocoin) (set 65)" ) |
| 972 | 972 | EC_SBARX_SET( 199?, ec_sbarx__a2, ec_sbarx, "iss2012.rom", 0x0000, 0x008000, CRC(455cfdcb) SHA1(53fb0748a544b432b88455fa597b7017e06b3059), "Electrocoin","Super Bar X (Electrocoin) (set 66)" ) |
| 973 | 973 | EC_SBARX_SET( 199?, ec_sbarx__a3, ec_sbarx, "sbx5red", 0x0000, 0x008000, CRC(7991231a) SHA1(cd1978c48a3c214666d51ca930d3d480540448ec), "Electrocoin","Super Bar X (Electrocoin) (set 67)" ) |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /*************************************************************************************************** |
| 2 | 2 | |
| 3 | 3 | Cycle Maabou (c) 1984 Taito Corporation / Seta |
| 4 | ||
| 4 | Sky Destroyer (c) 1985 Taito Corporation | |
| 5 | 5 | |
| 6 | 6 | appears to be in the exact middle between the gsword / josvolly HW and the ppking / gladiator HW |
| 7 | 7 | |
| 8 | 8 | driver by Angelo Salese |
| 9 | 9 | |
| 10 | 10 | TODO: |
| 11 | ||
| 11 | - inputs in Cycle Maabou; | |
| 12 | 12 | - sound (controlled by three i8741); |
| 13 | 13 | - add flipscreen; |
| 14 | 14 | - color prom resistor network is guessed; |
| r15975 | r15976 | |
| 108 | 108 | UINT16 m_dsw_pc_hack; |
| 109 | 109 | |
| 110 | 110 | DECLARE_WRITE8_MEMBER(cyclemb_bankswitch_w); |
| 111 | // DECLARE_READ8_MEMBER(mcu_status_r); | |
| 112 | // DECLARE_WRITE8_MEMBER(sound_cmd_w); | |
| 111 | // DECLARE_READ8_MEMBER(mcu_status_r); | |
| 112 | // DECLARE_WRITE8_MEMBER(sound_cmd_w); | |
| 113 | 113 | DECLARE_WRITE8_MEMBER(cyclemb_flip_w); |
| 114 | 114 | DECLARE_READ8_MEMBER(skydest_i8741_0_r); |
| 115 | 115 | DECLARE_WRITE8_MEMBER(skydest_i8741_0_w); |
| r15975 | r15976 | |
| 317 | 317 | UINT16 spr_offs,i; |
| 318 | 318 | INT16 x,y; |
| 319 | 319 | |
| 320 | // | |
| 320 | // popmessage("%d %d",state->m_obj2_ram[0x0d], 0xf1 - state->m_obj2_ram[0x0c+1] + 68); | |
| 321 | 321 | |
| 322 | 322 | for(i=0;i<0x80;i+=2) |
| 323 | 323 | { |
| r15975 | r15976 | |
| 336 | 336 | if(region == 2) |
| 337 | 337 | { |
| 338 | 338 | spr_offs >>= 2; |
| 339 | // | |
| 339 | // spr_offs += ((state->m_obj3_ram[i+0] & 3) << 5); | |
| 340 | 340 | x-=16; |
| 341 | 341 | } |
| 342 | 342 | |
| r15975 | r15976 | |
| 939 | 939 | MCFG_SCREEN_VISIBLE_AREA(2*8, 34*8-1, 2*8, 30*8-1) |
| 940 | 940 | MCFG_SCREEN_UPDATE_STATIC(skydest) |
| 941 | 941 | |
| 942 | // | |
| 942 | // MCFG_PALETTE_INIT(skydest) | |
| 943 | 943 | MACHINE_CONFIG_END |
| 944 | 944 | |
| 945 | 945 | /*************************************************************************** |
| r15975 | r15976 | |
| 998 | 998 | |
| 999 | 999 | ROM_REGION( 0x10000, "sprite_data", ROMREGION_ERASEFF ) |
| 1000 | 1000 | ROM_LOAD( "pd0-7.1k", 0x000000, 0x002000, CRC(83137d42) SHA1(7e35f28577d6bfeee184a0ac3095b478999d6477) ) //ok |
| 1001 | ||
| 1001 | ||
| 1002 | 1002 | ROM_LOAD( "pd0-9.1m", 0x004000, 0x002000, CRC(6f558bee) SHA1(0539feaa848d6cfb9f90a46a851f73fb74e82676) ) //ok |
| 1003 | 1003 | ROM_LOAD( "pd1-10.1n", 0x006000, 0x002000, CRC(5840b5b5) SHA1(1b5b188023c4d3198402c946b8c5a51d7f512a07) ) |
| 1004 | 1004 | ROM_LOAD( "pd0-11.1r", 0x008000, 0x002000, CRC(29e5fce4) SHA1(59748e3a192a45dce7920e8d5a7a11d5145915b0) ) //ok |
| 1005 | ||
| 1005 | ||
| 1006 | 1006 | ROM_LOAD( "pd1-13.1t", 0x00c000, 0x002000, CRC(3cca5b95) SHA1(74baec7c128254c394dd3162df7abacf5ed5a99b) ) //ok |
| 1007 | 1007 | ROM_LOAD( "pd0-14.1u", 0x00e000, 0x002000, CRC(7ef05b01) SHA1(f36ad1c0dac201729def78dc18feacda8fcf1a3f) ) |
| 1008 | 1008 |
| r15975 | r15976 | |
|---|---|---|
| 722 | 722 | ROM_LOAD( "ct15.bin", 0x8000, 0x008000, CRC(27eab355) SHA1(0ad6a09015b2ddfe87563f3d88f84d2d5b3c74a0) ) |
| 723 | 723 | M4RAGS_SOUND |
| 724 | 724 | ROM_END |
| 725 | ||
| 725 | ||
| 726 | 726 | ROM_START( m4ragsa ) |
| 727 | 727 | ROM_REGION( 0x010000, "maincpu", 0 ) |
| 728 | 728 | ROM_LOAD( "ct15p.bin", 0x8000, 0x008000, CRC(7ea5df79) SHA1(d1c355db97010dc9075217efe40d6620258ae3e4) ) |
| r15975 | r15976 | |
| 798 | 798 | GAME(199?, m4frkstng,m4frkstn ,mpu4crys ,mpu4 , mpu4_state,m_frkstn, ROT0, "Crystal","Frank 'n' Stein (Crystal) (MPU4, set 8)", GAME_FLAGS|GAME_NO_SOUND ) |
| 799 | 799 | GAME(199?, m4frkstnh,m4frkstn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Frank 'n' Stein (Crystal) (MPU4, set 9)", GAME_FLAGS|GAME_NO_SOUND ) // this set is encrypted |
| 800 | 800 | GAME(199?, m4aladn ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 801 | GAME(199?, m4aladna ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 802 | GAME(199?, m4aladnb ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 803 | GAME(199?, m4aladnc ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 804 | GAME(199?, m4aladnd ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 5)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 805 | GAME(199?, m4aladne ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 6)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 806 | GAME(199?, m4aladnf ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 7)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 807 | GAME(199?, m4aladng ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 8)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 808 | GAME(199?, m4aladnh ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 9)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 809 | GAME(199?, m4aladni ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 10)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 801 | GAME(199?, m4aladna ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 802 | GAME(199?, m4aladnb ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 803 | GAME(199?, m4aladnc ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 804 | GAME(199?, m4aladnd ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 5)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 805 | GAME(199?, m4aladne ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 6)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 806 | GAME(199?, m4aladnf ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 7)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 807 | GAME(199?, m4aladng ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 8)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 808 | GAME(199?, m4aladnh ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 9)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 809 | GAME(199?, m4aladni ,m4aladn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 10)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 810 | 810 | GAME(199?, m4bagcsh ,0 ,mpu4crys ,mpu4 , mpu4_state,m_frkstn, ROT0, "Crystal","Bags Of Cash Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 811 | GAME(199?, m4bagcsha,m4bagcsh | |
| 811 | GAME(199?, m4bagcsha,m4bagcsh | |
| 812 | 812 | GAME(199?, m4bucclb ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Buccaneer Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 813 | 813 | GAME(199?, m4bucclba,m4bucclb ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Buccaneer Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) |
| 814 | 814 | GAME(199?, m4bucclbb,m4bucclb ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Buccaneer Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) |
| 815 | 815 | GAME(199?, m4bucclbc,m4bucclb ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Buccaneer Club (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) |
| 816 | 816 | GAME(199?, m4bullio ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Bullion Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 817 | GAME(199?, m4bullioa,m4bullio ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Bullion Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 818 | GAME(199?, m4bulliob,m4bullio ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Bullion Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 817 | GAME(199?, m4bullioa,m4bullio ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Bullion Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 818 | GAME(199?, m4bulliob,m4bullio ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Bullion Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 819 | 819 | GAME(199?, m4carou ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Carousel Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 820 | GAME(199?, m4caroua ,m4carou ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Carousel Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 821 | GAME(199?, m4caroub ,m4carou ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Carousel Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 822 | GAME(199?, m4carouc ,m4carou ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Carousel Club (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 820 | GAME(199?, m4caroua ,m4carou ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Carousel Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 821 | GAME(199?, m4caroub ,m4carou ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Carousel Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 822 | GAME(199?, m4carouc ,m4carou ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Carousel Club (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 823 | 823 | GAME(199?, m4cclimb ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Crazy Climber (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 824 | GAME(199?, m4cclimba,m4cclimb | |
| 824 | GAME(199?, m4cclimba,m4cclimb | |
| 825 | 825 | GAME(199?, m4crzcl ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 826 | GAME(199?, m4crzcla ,m4crzcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 827 | GAME(199?, m4crzclb ,m4crzcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 828 | GAME(199?, m4crzclc ,m4crzcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 829 | GAME(199?, m4crzcld ,m4crzcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 5)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 826 | GAME(199?, m4crzcla ,m4crzcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 827 | GAME(199?, m4crzclb ,m4crzcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 828 | GAME(199?, m4crzclc ,m4crzcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 829 | GAME(199?, m4crzcld ,m4crzcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 5)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 830 | 830 | GAME(199?, m4elitc ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Elite Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 831 | GAME(199?, m4elitca ,m4elitc | |
| 831 | GAME(199?, m4elitca ,m4elitc | |
| 832 | 832 | GAME(199?, m4fairg ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Fairground (Crystal) (MPU4)", GAME_FLAGS|GAME_NO_SOUND ) |
| 833 | 833 | GAME(199?, m4frmani ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Fruit Mania (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 834 | GAME(199?, m4frmania,m4frmani ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Fruit Mania (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 835 | GAME(199?, m4frmanib,m4frmani ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Fruit Mania (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 836 | GAME(199?, m4frmanic,m4frmani ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Fruit Mania (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 834 | GAME(199?, m4frmania,m4frmani ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Fruit Mania (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 835 | GAME(199?, m4frmanib,m4frmani ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Fruit Mania (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 836 | GAME(199?, m4frmanic,m4frmani ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Fruit Mania (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 837 | 837 | GAME(199?, m4goldxc ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Gold Exchange Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 838 | 838 | GAME(199?, m4goldxca,m4goldxc ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Gold Exchange Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) |
| 839 | 839 | GAME(199?, m4goldxcb,m4goldxc ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Gold Exchange Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) |
| r15975 | r15976 | |
| 841 | 841 | GAME(199?, m4goldxcd,m4goldxc ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Gold Exchange Club (Crystal) (MPU4) (set 5)", GAME_FLAGS|GAME_NO_SOUND ) |
| 842 | 842 | GAME(199?, m4goldxce,m4goldxc ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Gold Exchange Club (Crystal) (MPU4) (set 6)", GAME_FLAGS|GAME_NO_SOUND ) |
| 843 | 843 | GAME(199?, m4goldfc ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Gold Fever (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 844 | GAME(199?, m4goldfca,m4goldfc ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Gold Fever (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 845 | GAME(199?, m4goldfcb,m4goldfc ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Gold Fever (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 844 | GAME(199?, m4goldfca,m4goldfc ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Gold Fever (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 845 | GAME(199?, m4goldfcb,m4goldfc ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Gold Fever (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 846 | 846 | GAME(199?, m4hirol ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Hi Roller Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 847 | GAME(199?, m4hirola ,m4hirol | |
| 847 | GAME(199?, m4hirola ,m4hirol | |
| 848 | 848 | GAME(199?, m4kingqn ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Kings & Queens Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 849 | 849 | GAME(199?, m4kingqna,m4kingqn ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Kings & Queens Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) |
| 850 | 850 | GAME(199?, m4lotclb ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Lottery Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 851 | GAME(199?, m4lotclba,m4lotclb | |
| 851 | GAME(199?, m4lotclba,m4lotclb | |
| 852 | 852 | GAME(199?, m4montrl ,0 ,mpu4crys ,mpu4 , mpu4_state,crystali, ROT0, "Crystal","Money Trail (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted! |
| 853 | GAME(199?, m4montrla,m4montrl ,mpu4crys ,mpu4 , mpu4_state,crystali, ROT0, "Crystal","Money Trail (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted! | |
| 854 | GAME(199?, m4montrlb,m4montrl ,mpu4crys ,mpu4 , mpu4_state,crystali, ROT0, "Crystal","Money Trail (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted! | |
| 855 | GAME(199?, m4montrlc,m4montrl ,mpu4crys ,mpu4 , mpu4_state,crystali, ROT0, "Crystal","Money Trail (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted! | |
| 856 | GAME(199?, m4montrld,m4montrl ,mpu4crys ,mpu4 , mpu4_state,crystali, ROT0, "Crystal","Money Trail (Crystal) (MPU4) (set 5)", GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted! | |
| 853 | GAME(199?, m4montrla,m4montrl ,mpu4crys ,mpu4 , mpu4_state,crystali, ROT0, "Crystal","Money Trail (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted! | |
| 854 | GAME(199?, m4montrlb,m4montrl ,mpu4crys ,mpu4 , mpu4_state,crystali, ROT0, "Crystal","Money Trail (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted! | |
| 855 | GAME(199?, m4montrlc,m4montrl ,mpu4crys ,mpu4 , mpu4_state,crystali, ROT0, "Crystal","Money Trail (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted! | |
| 856 | GAME(199?, m4montrld,m4montrl ,mpu4crys ,mpu4 , mpu4_state,crystali, ROT0, "Crystal","Money Trail (Crystal) (MPU4) (set 5)", GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted! | |
| 857 | 857 | GAME(199?, m4mystiq ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Mystique Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 858 | GAME(199?, m4mystiqa,m4mystiq ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Mystique Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 859 | GAME(199?, m4mystiqb,m4mystiq ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Mystique Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 860 | GAME(199?, m4mystiqc,m4mystiq ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Mystique Club (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 858 | GAME(199?, m4mystiqa,m4mystiq ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Mystique Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 859 | GAME(199?, m4mystiqb,m4mystiq ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Mystique Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 860 | GAME(199?, m4mystiqc,m4mystiq ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Mystique Club (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 861 | 861 | GAME(199?, m4nudwin ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Nudge & Win (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 862 | 862 | GAME(199?, m4nudwina,m4nudwin ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Nudge & Win (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) |
| 863 | 863 | GAME(199?, m4paracl ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Paradise Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 864 | GAME(199?, m4paracla,m4paracl | |
| 864 | GAME(199?, m4paracla,m4paracl | |
| 865 | 865 | GAME(199?, m4rlpick ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Reel Picks (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 866 | 866 | GAME(199?, m4rlpicka,m4rlpick ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Reel Picks (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) |
| 867 | 867 | GAME(199?, m4rlpickb,m4rlpick ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Reel Picks (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) |
| 868 | 868 | GAME(199?, m4rlpickc,m4rlpick ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Reel Picks (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) |
| 869 | 869 | GAME(199?, m4twstr ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 870 | GAME(199?, m4twstra ,m4twstr ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 871 | GAME(199?, m4twstrb ,m4twstr ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 872 | GAME(199?, m4twstrc ,m4twstr ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 873 | GAME(199?, m4twstrd ,m4twstr ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister (Crystal) (MPU4) (set 5)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 870 | GAME(199?, m4twstra ,m4twstr ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 871 | GAME(199?, m4twstrb ,m4twstr ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 872 | GAME(199?, m4twstrc ,m4twstr ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister (Crystal) (MPU4) (set 4)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 873 | GAME(199?, m4twstrd ,m4twstr ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister (Crystal) (MPU4) (set 5)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 874 | 874 | GAME(199?, m4twstcl ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister Club (Crystal) (MPU4) (set 1)", GAME_FLAGS|GAME_NO_SOUND ) |
| 875 | GAME(199?, m4twstcla,m4twstcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 876 | GAME(199?, m4twstclb,m4twstcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 875 | GAME(199?, m4twstcla,m4twstcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister Club (Crystal) (MPU4) (set 2)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 876 | GAME(199?, m4twstclb,m4twstcl ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Twister Club (Crystal) (MPU4) (set 3)", GAME_FLAGS|GAME_NO_SOUND ) | |
| 877 | 877 | GAME(199?, m4dz ,0 ,mpu4crys ,mpu4 , mpu4_state,crystal, ROT0, "Crystal","Danger Zone (Crystal) (MPU4)", GAME_FLAGS|GAME_NO_SOUND ) |
| 878 | 878 | GAME(199?, m4tylb ,0 ,mod4oki ,mpu4 , mpu4_state,m4default, ROT0, "Crystal","Thank Your Lucky Bars (Crystal) (MPU4) (set 1)",GAME_FLAGS|GAME_NO_SOUND|GAME_MECHANICAL ) |
| 879 | 879 | GAME(199?, m4tylba ,m4tylb ,mod4oki ,mpu4 , mpu4_state,m4default, ROT0, "Crystal","Thank Your Lucky Bars (Crystal) (MPU4) (set 2)",GAME_FLAGS|GAME_NO_SOUND|GAME_MECHANICAL ) |
| r15975 | r15976 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | // driver_device overrides |
| 25 | 25 | virtual void machine_reset(); |
| 26 | public: | |
| 26 | public: | |
| 27 | 27 | DECLARE_DRIVER_INIT(gts80b); |
| 28 | 28 | }; |
| 29 | 29 |
| r15975 | r15976 | |
|---|---|---|
| 80 | 80 | case 7: |
| 81 | 81 | mapper.map_as_handler(0x00000, 0x04000, 0xffc000, read16_delegate(FUNC(segas18_state::misc_io_r), this), write16_delegate(FUNC(segas18_state::misc_io_w), this)); |
| 82 | 82 | break; |
| 83 | ||
| 83 | ||
| 84 | 84 | case 6: |
| 85 | 85 | mapper.map_as_ram(0x00000, 0x02000, 0xffe000, "paletteram", write16_delegate(FUNC(segas18_state::legacy_wrapper<segaic16_paletteram_w>), this)); |
| 86 | 86 | break; |
| 87 | ||
| 87 | ||
| 88 | 88 | case 5: |
| 89 | 89 | mapper.map_as_ram(0x00000, 0x10000, 0xfe0000, "tileram", write16_delegate(FUNC(segas18_state::legacy_wrapper<segaic16_tileram_0_w>), this)); |
| 90 | 90 | mapper.map_as_ram(0x10000, 0x01000, 0xfef000, "textram", write16_delegate(FUNC(segas18_state::legacy_wrapper<segaic16_textram_0_w>), this)); |
| 91 | 91 | break; |
| 92 | ||
| 92 | ||
| 93 | 93 | case 4: |
| 94 | 94 | mapper.map_as_ram(0x00000, 0x00800, 0xfff800, "spriteram", write16_delegate()); |
| 95 | 95 | break; |
| 96 | ||
| 96 | ||
| 97 | 97 | case 3: |
| 98 | 98 | mapper.map_as_ram(0x00000, 0x04000, 0xffc000, "workram", write16_delegate()); |
| 99 | 99 | break; |
| 100 | ||
| 100 | ||
| 101 | 101 | case 2: |
| 102 | 102 | switch (m_romboard) |
| 103 | 103 | { |
| 104 | 104 | case ROM_BOARD_171_SHADOW: break; // ??? |
| 105 | case ROM_BOARD_171_5874: | |
| 105 | case ROM_BOARD_171_5874: | |
| 106 | 106 | case ROM_BOARD_171_5987: mapper.map_as_handler(0x00000, 0x00010, 0xfffff0, read16_delegate(FUNC(segas18_state::genesis_vdp_r), this), write16_delegate(FUNC(segas18_state::genesis_vdp_w), this)); break; |
| 107 | 107 | default: assert(false); |
| 108 | 108 | } |
| 109 | 109 | break; |
| 110 | ||
| 110 | ||
| 111 | 111 | case 1: |
| 112 | 112 | switch (m_romboard) |
| 113 | 113 | { |
| r15975 | r15976 | |
| 121 | 121 | default: assert(false); |
| 122 | 122 | } |
| 123 | 123 | break; |
| 124 | ||
| 124 | ||
| 125 | 125 | case 0: |
| 126 | 126 | switch (m_romboard) |
| 127 | 127 | { |
| r15975 | r15976 | |
| 205 | 205 | |
| 206 | 206 | megadriv_reset_vdp(machine()); |
| 207 | 207 | genvdp_use_cram = 1; |
| 208 | ||
| 208 | ||
| 209 | 209 | // if we are running with a real live 8751, we need to boost the interleave at startup |
| 210 | 210 | if (m_mcu != NULL && m_mcu->type() == I8751) |
| 211 | 211 | synchronize(TID_INITIAL_BOOST); |
| r15975 | r15976 | |
|---|---|---|
| 512 | 512 | */ |
| 513 | 513 | WRITE8_MEMBER(mpu4_state::bankswitch_w) |
| 514 | 514 | { |
| 515 | // | |
| 515 | // printf("bankswitch_w %02x\n", data); | |
| 516 | 516 | |
| 517 | 517 | // m_pageset is never even set?? |
| 518 | 518 | m_pageval = (data & 0x03); |
| r15975 | r15976 | |
| 529 | 529 | WRITE8_MEMBER(mpu4_state::bankset_w) |
| 530 | 530 | { |
| 531 | 531 | |
| 532 | // | |
| 532 | // printf("bankset_w %02x\n", data); | |
| 533 | 533 | |
| 534 | 534 | // m_pageset is never even set?? |
| 535 | 535 |
| r15975 | r15976 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | |
| 4 | 4 | Games on this hardware |
| 5 | ||
| 5 | ---------------------- | |
| 6 | 6 | |
| 7 | Game ID Year Notes | |
| 8 | ----------------------------------------------------------------------- | |
| 9 | Fighting Bujutsu / Fighting Wu-Shu | G?645 | 1997 | | |
| 10 | Racing Jam DX | GY676 | 1997 | GY676-PWB(F) LAN board | |
| 7 | Game ID Year Notes | |
| 8 | ----------------------------------------------------------------------- | |
| 9 | Fighting Bujutsu / Fighting Wu-Shu | G?645 | 1997 | | |
| 10 | Racing Jam DX | GY676 | 1997 | GY676-PWB(F) LAN board | |
| 11 | 11 | |
| 12 | 12 | |
| 13 | Hardware overview: | |
| 14 | ||
| 15 | COBRA/603 GN645-PWB(A) CPU Board | |
| 16 | ---------------------------------- | |
| 17 | IBM PowerPC 603EV | |
| 18 | Motorola XPC105ARX66CD | |
| 13 | Hardware overview: | |
| 19 | 14 | |
| 20 | COBRA/403 GN645-PWB(B) SUB Board | |
| 21 | ---------------------------------- | |
| 22 | IBM PowerPC 403GA-JC33C1 (32MHz) | |
| 23 | TI TMS57002 | |
| 24 | Ricoh RF5c400 | |
| 25 | M48T58-70PC1 Timekeeper | |
| 26 | ADC1038CIN A/D Converter | |
| 27 | 2x AM7203A(?) FIFO (2K x 9) | |
| 15 | COBRA/603 GN645-PWB(A) CPU Board | |
| 16 | ---------------------------------- | |
| 17 | IBM PowerPC 603EV | |
| 18 | Motorola XPC105ARX66CD | |
| 28 | 19 | |
| 29 | COBRA/604 GN645-PWB(C) GFX Board | |
| 30 | ---------------------------------- | |
| 31 | IBM PowerPC 604 | |
| 32 | Motorola XPC105ARX66CD | |
| 33 | Toshiba TMP47P241VM MCU (internal ROM?) | |
| 34 | 4x CY7C4231 FIFO (2K x 9) | |
| 35 | Xilinx XC4300E FPGA | |
| 36 | Xilinx XC9536 FPGA | |
| 20 | COBRA/403 GN645-PWB(B) SUB Board | |
| 21 | ---------------------------------- | |
| 22 | IBM PowerPC 403GA-JC33C1 (32MHz) | |
| 23 | TI TMS57002 | |
| 24 | Ricoh RF5c400 | |
| 25 | M48T58-70PC1 Timekeeper | |
| 26 | ADC1038CIN A/D Converter | |
| 27 | 2x AM7203A(?) FIFO (2K x 9) | |
| 37 | 28 | |
| 38 | GN645-PWB(D) Video Board (Also labeled IBM 36H3800. Seems to be related to the RS/6000 OpenGL accelerators.) | |
| 39 | ----------------------------------- | |
| 40 | 89G9380 (Xilinx part with an IBM sticker) | |
| 41 | PKA0702 | |
| 42 | PLA0702 (4 dies on the chip) | |
| 43 | RAA0800 | |
| 44 | BTA0803 | |
| 45 | 4x TOA2602 | |
| 46 | Bt121KPJ80 RAMDAC | |
| 29 | COBRA/604 GN645-PWB(C) GFX Board | |
| 30 | ---------------------------------- | |
| 31 | IBM PowerPC 604 | |
| 32 | Motorola XPC105ARX66CD | |
| 33 | Toshiba TMP47P241VM MCU (internal ROM?) | |
| 34 | 4x CY7C4231 FIFO (2K x 9) | |
| 35 | Xilinx XC4300E FPGA | |
| 36 | Xilinx XC9536 FPGA | |
| 47 | 37 | |
| 48 | GY676-PWB(F) LAN Board | |
| 49 | ---------------------- | |
| 50 | Xilinx XC5210 FPGA | |
| 51 | Xilinx XC5204 FPGA | |
| 52 | Konami K001604 (2D tilemaps + 2x ROZ) | |
| 53 | Bt121KPC80 RAMDAC | |
| 38 | GN645-PWB(D) Video Board (Also labeled IBM 36H3800. Seems to be related to the RS/6000 OpenGL accelerators.) | |
| 39 | ----------------------------------- | |
| 40 | 89G9380 (Xilinx part with an IBM sticker) | |
| 41 | PKA0702 | |
| 42 | PLA0702 (4 dies on the chip) | |
| 43 | RAA0800 | |
| 44 | BTA0803 | |
| 45 | 4x TOA2602 | |
| 46 | Bt121KPJ80 RAMDAC | |
| 47 | ||
| 48 | GY676-PWB(F) LAN Board | |
| 49 | ---------------------- | |
| 50 | Xilinx XC5210 FPGA | |
| 51 | Xilinx XC5204 FPGA | |
| 52 | Konami K001604 (2D tilemaps + 2x ROZ) | |
| 53 | Bt121KPC80 RAMDAC | |
| 54 | 54 | */ |
| 55 | 55 | |
| 56 | 56 | /* |
| r15975 | r15976 | |
| 107 | 107 | |
| 108 | 108 | |
| 109 | 109 | |
| 110 | Bujutsu GL functions (603 board): | |
| 111 | ||
| 112 | ? : glDebugSwitch | |
| 113 | 0x0000b784: glBindTexture? | |
| 114 | 0x0000d40c: glEnable? | |
| 115 | 0x0000d7f4: glDisable? | |
| 116 | 0x0000d840: glAlphaFunc | |
| 117 | 0x0000d9a4: glNewList | |
| 118 | 0x0000dab0: glMatrixMode | |
| 119 | ? : glOrtho | |
| 120 | ? : glViewport | |
| 121 | 0x0000db6c: glIdentity? | |
| 122 | 0x0000dbf0: glFrustum | |
| 123 | ? : glCullFace | |
| 124 | ? : glClear | |
| 125 | ? : glCallList | |
| 126 | ? : glLightfv | |
| 127 | ? : glMaterialfv | |
| 128 | 0x0001b5c8: glBlendFunc | |
| 129 | 0x0001b8b0: glStencilOp | |
| 130 | ? : glStencilFunc | |
| 131 | 0x000471e0: glTexParameterf | |
| 132 | 0x0004a228: glColorMaterial | |
| 133 | ? : glFogfv | |
| 134 | ? : glFogf | |
| 135 | 0x0004a7a8: glDepthFunc | |
| 136 | 0x000508a8: glMaterialf | |
| 137 | 0x000508fc: glLightModelfv | |
| 138 | 0x00050a50: glTexEnvf | |
| 139 | ? : glTexEnvfv | |
| 140 | 0x00050cc8: ? (param 0xff) could be glStencilMask | |
| 141 | 0x00050d54: glFogi | |
| 142 | 0x00050da0: glHint | |
| 143 | 0x000cba6c: glTexParameteri | |
| 110 | Bujutsu GL functions (603 board): | |
| 144 | 111 | |
| 112 | ? : glDebugSwitch | |
| 113 | 0x0000b784: glBindTexture? | |
| 114 | 0x0000d40c: glEnable? | |
| 115 | 0x0000d7f4: glDisable? | |
| 116 | 0x0000d840: glAlphaFunc | |
| 117 | 0x0000d9a4: glNewList | |
| 118 | 0x0000dab0: glMatrixMode | |
| 119 | ? : glOrtho | |
| 120 | ? : glViewport | |
| 121 | 0x0000db6c: glIdentity? | |
| 122 | 0x0000dbf0: glFrustum | |
| 123 | ? : glCullFace | |
| 124 | ? : glClear | |
| 125 | ? : glCallList | |
| 126 | ? : glLightfv | |
| 127 | ? : glMaterialfv | |
| 128 | 0x0001b5c8: glBlendFunc | |
| 129 | 0x0001b8b0: glStencilOp | |
| 130 | ? : glStencilFunc | |
| 131 | 0x000471e0: glTexParameterf | |
| 132 | 0x0004a228: glColorMaterial | |
| 133 | ? : glFogfv | |
| 134 | ? : glFogf | |
| 135 | 0x0004a7a8: glDepthFunc | |
| 136 | 0x000508a8: glMaterialf | |
| 137 | 0x000508fc: glLightModelfv | |
| 138 | 0x00050a50: glTexEnvf | |
| 139 | ? : glTexEnvfv | |
| 140 | 0x00050cc8: ? (param 0xff) could be glStencilMask | |
| 141 | 0x00050d54: glFogi | |
| 142 | 0x00050da0: glHint | |
| 143 | 0x000cba6c: glTexParameteri | |
| 145 | 144 | |
| 146 | 145 | |
| 147 | GFX Registers: | |
| 148 | 146 | |
| 149 | 0x00090: Viewport width / 2? | |
| 150 | 0x0009c: Viewport center X | |
| 151 | 0x000a4: Viewport height / 2? | |
| 152 | 0x000ac: Viewport center Y | |
| 147 | GFX Registers: | |
| 153 | 148 | |
| 154 | 0x00114: High word: framebuffer pitch? Low word: framebuffer pixel size? | |
| 155 | ||
| 156 | 0x00118: xxxxxxxx xxxxxxxx -------- -------- Framebuffer pixel read X pos | |
| 157 | -------- -------- xxxxxxxx xxxxxxxx Framebuffer pixel read Y pos | |
| 158 | ||
| 159 | 0x0011c: Same as above? | |
| 160 | ||
| 161 | 0x00458: Set to 0x02100000 (0xff) by texselect() | |
| 149 | 0x00090: Viewport width / 2? | |
| 150 | 0x0009c: Viewport center X | |
| 151 | 0x000a4: Viewport height / 2? | |
| 152 | 0x000ac: Viewport center Y | |
| 162 | 153 | |
| 163 | 0x02904: -------- ------xx xx------ -------- Tex mag filter? | |
| 164 | -------- -------- --xxxx-- -------- Tex min filter? | |
| 154 | 0x00114: High word: framebuffer pitch? Low word: framebuffer pixel size? | |
| 165 | 155 | |
| 166 | 0x02908: -------- ----xxx- -------- -------- Tex wrap S (0 = repeat, 1 = mirror, 2 = clamp) | |
| 167 | -------- -------x xx------ -------- Tex wrap T | |
| 156 | 0x00118: xxxxxxxx xxxxxxxx -------- -------- Framebuffer pixel read X pos | |
| 157 | -------- -------- xxxxxxxx xxxxxxxx Framebuffer pixel read Y pos | |
| 168 | 158 | |
| 169 | 0x02910: xxxx---- -------- -------- -------- Texture width shift (size = 1 << X) | |
| 170 | ----xxxx -------- -------- -------- Texture height shift (size = 1 << X) | |
| 171 | -------- ----x--- -------- -------- ? | |
| 172 | -------- -------- -x------ -------- ? | |
| 173 | -------- -------- -------- xxx----- Texture format (texel size, 2 = 4-bit, 3 = 8-bit, 4 = 16-bit) | |
| 174 | -------- -------- -------- ---xxx-- Texture format param | |
| 159 | 0x0011c: Same as above? | |
| 175 | 160 | |
| 176 | ||
| 161 | 0x00 | |
| 177 | 162 | |
| 178 | 0x40018: Set to 0x0001040a (0xc0) by mode_stipple() (bits 24..27 = stipple pattern?) | |
| 179 | 0x400d0: Set to 0x80000000 (0x80) by mode_stipple() | |
| 180 | 0x400f4: Set to 0x40000000 (0x80) by texselect() | |
| 163 | 0x02904: -------- ------xx xx------ -------- Tex mag filter? | |
| 164 | -------- -------- --xxxx-- -------- Tex min filter? | |
| 181 | 165 | |
| 182 | 0x40114: -------- ----x--- -------- -------- Scissor enable | |
| 166 | 0x02908: -------- ----xxx- -------- -------- Tex wrap S (0 = repeat, 1 = mirror, 2 = clamp) | |
| 167 | -------- -------x xx------ -------- Tex wrap T | |
| 183 | 168 | |
| 184 | 0x40138: Set to 0x88800000 (0xe0) by mode_viewclip() | |
| 185 | ||
| 186 | 0x40160: xxxxxxxx xxxxxxxx -------- -------- Scissor Left | |
| 187 | -------- -------- xxxxxxxx xxxxxxxx Scissor Top | |
| 169 | 0x02910: xxxx---- -------- -------- -------- Texture width shift (size = 1 << X) | |
| 170 | ----xxxx -------- -------- -------- Texture height shift (size = 1 << X) | |
| 171 | -------- ----x--- -------- -------- ? | |
| 172 | -------- -------- -x------ -------- ? | |
| 173 | -------- -------- -------- xxx----- Texture format (texel size, 2 = 4-bit, 3 = 8-bit, 4 = 16-bit) | |
| 174 | -------- -------- -------- ---xxx-- Texture format param | |
| 188 | 175 | |
| 189 | 0x40164: xxxxxxxx xxxxxxxx -------- -------- Scissor Right | |
| 190 | -------- -------- xxxxxxxx xxxxxxxx Scissor Bottom | |
| 176 | 0x02914: --xxxxxx xxxxxxxx xx------ -------- ? (texture param, set to 0x1243) | |
| 191 | 177 | |
| 192 | 0x40170: xxxxxxxx xxxxxxxx -------- -------- Viewport Left | |
| 193 | -------- -------- xxxxxxxx xxxxxxxx Viewport Top | |
| 178 | 0x40018: Set to 0x0001040a (0xc0) by mode_stipple() (bits 24..27 = stipple pattern?) | |
| 179 | 0x400d0: Set to 0x80000000 (0x80) by mode_stipple() | |
| 180 | 0x400f4: Set to 0x40000000 (0x80) by texselect() | |
| 194 | 181 | |
| 195 | 0x40174: xxxxxxxx xxxxxxxx -------- -------- Viewport Right | |
| 196 | -------- -------- xxxxxxxx xxxxxxxx Viewport Bottom | |
| 182 | 0x40114: -------- ----x--- -------- -------- Scissor enable | |
| 197 | 183 | |
| 198 | 0x40198: x------- -------- -------- -------- Alpha test enable? | |
| 199 | -------- xxx----- -------- -------- Alpha test function (0 = never, 1 = less, 2 = lequal, 3 = greater, | |
| 200 | 4 = gequal, 5 = equal, 6 = notequal, 7 = always) | |
| 201 | ||
| 202 | 0x4019c: x------- -------- -------- -------- Fog enable | |
| 203 | ----x--- -------- -------- -------- 0 = table fog, 1 = linear fog | |
| 184 | 0x40138: Set to 0x88800000 (0xe0) by mode_viewclip() | |
| 204 | 185 | |
| 205 | 0x401bc: Texture env mode | |
| 206 | xxx----- -------- -------- -------- ? | |
| 207 | ---xxx-- -------- -------- -------- ? | |
| 186 | 0x40160: xxxxxxxx xxxxxxxx -------- -------- Scissor Left | |
| 187 | -------- -------- xxxxxxxx xxxxxxxx Scissor Top | |
| 208 | 188 | |
| 209 | 0x8001c: (mask 0xfe) 0xc1d60060 = (not equal, 6) Stencil register | |
| 210 | 0xca9b0010 = (not equal, 1) | |
| 211 | 0x037dfff0 = (never) | |
| 212 | 0x2616fff0 = (greater) | |
| 213 | 0x459cfff0 = (greater/equal) | |
| 214 | 0x6672fff0 = (less) | |
| 215 | 0x8827fff0 = (less/equal) | |
| 216 | 0xa92b0100 = (equal, 16) | |
| 189 | 0x40164: xxxxxxxx xxxxxxxx -------- -------- Scissor Right | |
| 190 | -------- -------- xxxxxxxx xxxxxxxx Scissor Bottom | |
| 217 | 191 | |
| 218 | -------- -------- xxxxxxxx xxxx---- Stencil reference value? | |
| 219 | xxx----- -------- -------- -------- Stencil function? | |
| 192 | 0x40170: xxxxxxxx xxxxxxxx -------- -------- Viewport Left | |
| 193 | -------- -------- xxxxxxxx xxxxxxxx Viewport Top | |
| 220 | 194 | |
| 221 | ||
| 222 | 0x80020: -------- ----xxx- -------- -------- Depth test function (7 = always?) | |
| 195 | 0x40174: xxxxxxxx xxxxxxxx -------- -------- Viewport Right | |
| 196 | -------- -------- xxxxxxxx xxxxxxxx Viewport Bottom | |
| 223 | 197 | |
| 224 | 0x80050: (mask 0x7c) 0x04445500 = (As, 1-As) Blend register | |
| 225 | 0x04111100 = (1, 1) | |
| 226 | 0x04441100 = (As, 1) | |
| 227 | 0x04114400 = (1, As) | |
| 228 | 0x04681100 = (Cd, 1) | |
| 229 | 0x04680000 = (Cd, 0) | |
| 230 | 0x04002400 = (0, Cs) | |
| 231 | 0x04e11100 = (Ad, 1-Ad) | |
| 232 | 0x04889900 = (pseudo-fog) | |
| 198 | 0x40198: x------- -------- -------- -------- Alpha test enable? | |
| 199 | -------- xxx----- -------- -------- Alpha test function (0 = never, 1 = less, 2 = lequal, 3 = greater, | |
| 200 | 4 = gequal, 5 = equal, 6 = notequal, 7 = always) | |
| 233 | 201 | |
| 234 | -----x-- -------- -------- -------- Blend enable? | |
| 235 | -------- xxxx---- -------- -------- source factor? | |
| 236 | -------- ----xxxx -------- -------- source? | |
| 237 | -------- -------- xxxx---- -------- dest factor? | |
| 238 | -------- -------- ----xxxx -------- dest? | |
| 239 | ||
| 202 | 0x4019c: x------- -------- -------- -------- Fog enable | |
| 203 | ----x--- -------- -------- -------- 0 = table fog, 1 = linear fog | |
| 240 | 204 | |
| 241 | 0x80054: Set to 0x02400000 (0xe0) by mode_stencilmod() | |
| 205 | 0x401bc: Texture env mode | |
| 206 | xxx----- -------- -------- -------- ? | |
| 207 | ---xxx-- -------- -------- -------- ? | |
| 242 | 208 | |
| 243 | 0x800a4: x------- -------- -------- -------- Logic op enable? | |
| 244 | -----xxx x------- -------- -------- Logic op (0 = clear, 1 = and, 2 = and reverse, 3 = copy, | |
| 245 | 4 = and inverted, 5 = noop, 6 = xor, 7 = or inverted, | |
| 246 | 8 = nor, 9 = equiv, 10 = invert, 11 = or reverse, | |
| 247 | 12 = copy inverted, 13 = or inverted, 14 = nand, 15 = set) | |
| 209 | 0x8001c: (mask 0xfe) 0xc1d60060 = (not equal, 6) Stencil register | |
| 210 | 0xca9b0010 = (not equal, 1) | |
| 211 | 0x037dfff0 = (never) | |
| 212 | 0x2616fff0 = (greater) | |
| 213 | 0x459cfff0 = (greater/equal) | |
| 214 | 0x6672fff0 = (less) | |
| 215 | 0x8827fff0 = (less/equal) | |
| 216 | 0xa92b0100 = (equal, 16) | |
| 248 | 217 | |
| 249 | 0x80114: (0xcc) by mode_colormask() | |
| 250 | 0x80118: (0xcc) by mode_colormask() | |
| 218 | -------- -------- xxxxxxxx xxxx---- Stencil reference value? | |
| 219 | xxx----- -------- -------- -------- Stencil function? | |
| 251 | 220 | |
| 252 | 0x8011c: xxxxxxxx xxxx---- -------- -------- Stencil mask | |
| 253 | 221 | |
| 254 | ||
| 222 | 0x80020: -------- ----xxx- -------- -------- Depth test function (7 = always?) | |
| 255 | 223 | |
| 256 | 0xc0c00..fff: Texture RAM readback | |
| 257 | 0xc3020: Start address for texram writes? | |
| 258 | 0xc3028: Reads address from texram? | |
| 259 | 0xc4c00..fff: Texture RAM readback | |
| 260 | 0xc8c00..fff: Texture RAM readback | |
| 261 | 0xccc00..fff: Texture RAM readback | |
| 224 | 0x80050: (mask 0x7c) 0x04445500 = (As, 1-As) Blend register | |
| 225 | 0x04111100 = (1, 1) | |
| 226 | 0x04441100 = (As, 1) | |
| 227 | 0x04114400 = (1, As) | |
| 228 | 0x04681100 = (Cd, 1) | |
| 229 | 0x04680000 = (Cd, 0) | |
| 230 | 0x04002400 = (0, Cs) | |
| 231 | 0x04e11100 = (Ad, 1-Ad) | |
| 232 | 0x04889900 = (pseudo-fog) | |
| 262 | 233 | |
| 234 | -----x-- -------- -------- -------- Blend enable? | |
| 235 | -------- xxxx---- -------- -------- source factor? | |
| 236 | -------- ----xxxx -------- -------- source? | |
| 237 | -------- -------- xxxx---- -------- dest factor? | |
| 238 | -------- -------- ----xxxx -------- dest? | |
| 263 | 239 | |
| 264 | 240 | |
| 265 | ||
| 241 | 0x80054: Set | |
| 266 | 242 | |
| 267 | Main: | |
| 268 | 0xe948 -> 0x1ea4(): Waiting for [0x168700] != 1 @ 0x1ebc | |
| 243 | 0x800a4: x------- -------- -------- -------- Logic op enable? | |
| 244 | -----xxx x------- -------- -------- Logic op (0 = clear, 1 = and, 2 = and reverse, 3 = copy, | |
| 245 | 4 = and inverted, 5 = noop, 6 = xor, 7 = or inverted, | |
| 246 | 8 = nor, 9 = equiv, 10 = invert, 11 = or reverse, | |
| 247 | 12 = copy inverted, 13 = or inverted, 14 = nand, 15 = set) | |
| 269 | 248 | |
| 270 | Gfx: | |
| 271 | 0x3b1a0 -> 0x3ad70(): Waiting for [0x132000] != 0 @ 0x3adf4 | |
| 272 | ||
| 249 | 0x80114: (0xcc) by mode_colormask() | |
| 250 | 0x80118: (0xcc) by mode_colormask() | |
| 251 | ||
| 252 | 0x8011c: xxxxxxxx xxxx---- -------- -------- Stencil mask | |
| 253 | ||
| 254 | 0x80120: -------- -------- xxxxxxxx xxxxxxxx Depth mask register | |
| 255 | ||
| 256 | 0xc0c00..fff: Texture RAM readback | |
| 257 | 0xc3020: Start address for texram writes? | |
| 258 | 0xc3028: Reads address from texram? | |
| 259 | 0xc4c00..fff: Texture RAM readback | |
| 260 | 0xc8c00..fff: Texture RAM readback | |
| 261 | 0xccc00..fff: Texture RAM readback | |
| 262 | ||
| 263 | ||
| 264 | ||
| 265 | Bujutsu status: | |
| 266 | ||
| 267 | Main: | |
| 268 | 0xe948 -> 0x1ea4(): Waiting for [0x168700] != 1 @ 0x1ebc | |
| 269 | ||
| 270 | Gfx: | |
| 271 | 0x3b1a0 -> 0x3ad70(): Waiting for [0x132000] != 0 @ 0x3adf4 | |
| 272 | ||
| 273 | 273 | */ |
| 274 | 274 | |
| 275 | 275 | |
| r15975 | r15976 | |
| 469 | 469 | UINT8 m_s2m_int_enable; |
| 470 | 470 | UINT8 m_vblank_enable; |
| 471 | 471 | |
| 472 | int m2sfifo_unk_flag; | |
| 473 | int s2mfifo_unk_flag; | |
| 472 | UINT8 m_m2s_int_mode; | |
| 473 | UINT8 m_s2m_int_mode; | |
| 474 | 474 | |
| 475 | UINT8 m_main_int_active; | |
| 475 | 476 | |
| 477 | ||
| 476 | 478 | UINT32 *m_comram[2]; |
| 477 | 479 | int m_comram_page; |
| 478 | 480 | |
| r15975 | r15976 | |
| 509 | 511 | void cobra_renderer::render_color_scan(INT32 scanline, const extent_t &extent, const cobra_polydata &extradata, int threadid) |
| 510 | 512 | { |
| 511 | 513 | /* |
| 512 | ||
| 514 | UINT32 *fb = &m_framebuffer->pix32(scanline); | |
| 513 | 515 | |
| 514 | ||
| 516 | UINT32 color = 0xffff0000; // TODO | |
| 515 | 517 | |
| 516 | for (int x = extent.startx; x < extent.stopx; x++) | |
| 517 | { | |
| 518 | fb[x] = color; | |
| 519 | } | |
| 520 | */ | |
| 518 | for (int x = extent.startx; x < extent.stopx; x++) | |
| 519 | { | |
| 520 | fb[x] = color; | |
| 521 | } | |
| 522 | */ | |
| 521 | 523 | } |
| 522 | 524 | |
| 523 | 525 | void cobra_renderer::render_texture_scan(INT32 scanline, const extent_t &extent, const cobra_polydata &extradata, int threadid) |
| r15975 | r15976 | |
| 863 | 865 | switch (event) |
| 864 | 866 | { |
| 865 | 867 | case cobra_fifo::EVENT_EMPTY: |
| 868 | { | |
| 869 | cputag_set_input_line(machine(), "subcpu", INPUT_LINE_IRQ0, CLEAR_LINE); | |
| 870 | ||
| 871 | // give sub cpu a bit more time to stabilize on the current fifo status | |
| 872 | device_spin_until_time(machine().device("maincpu"), attotime::from_usec(1)); | |
| 873 | ||
| 874 | if (m_m2s_int_enable & 0x80) | |
| 875 | { | |
| 876 | cputag_set_input_line(machine(), "maincpu", INPUT_LINE_IRQ0, ASSERT_LINE); | |
| 877 | } | |
| 878 | ||
| 879 | // EXISR needs to update for the *next* instruction during FIFO tests | |
| 880 | // TODO: try to abort the timeslice before the next instruction? | |
| 881 | cpu_set_reg(m_subcpu, PPC_EXISR, cpu_get_reg(m_subcpu, PPC_EXISR) & ~0x10); | |
| 866 | 882 | break; |
| 867 | ||
| 883 | } | |
| 884 | ||
| 868 | 885 | case cobra_fifo::EVENT_HALF_FULL: |
| 869 | 886 | break; |
| 870 | 887 | |
| r15975 | r15976 | |
| 879 | 896 | { |
| 880 | 897 | case cobra_fifo::EVENT_EMPTY: |
| 881 | 898 | break; |
| 882 | ||
| 899 | ||
| 883 | 900 | case cobra_fifo::EVENT_HALF_FULL: |
| 884 | 901 | break; |
| 885 | 902 | |
| r15975 | r15976 | |
| 1005 | 1022 | UINT64 value; |
| 1006 | 1023 | m_s2mfifo->pop(&space.device(), &value); |
| 1007 | 1024 | |
| 1008 | if (m_s2mfifo->is_empty()) | |
| 1009 | { | |
| 1010 | s2mfifo_unk_flag = 1; | |
| 1011 | } | |
| 1012 | else if (m_s2mfifo->is_full()) | |
| 1013 | { | |
| 1014 | s2mfifo_unk_flag = 0; | |
| 1015 | } | |
| 1016 | ||
| 1017 | 1025 | r |= (UINT64)(value & 0xff) << 40; |
| 1018 | 1026 | } |
| 1019 | 1027 | if (ACCESSING_BITS_32_39) |
| r15975 | r15976 | |
| 1027 | 1035 | // x M2S FIFO unknown flag |
| 1028 | 1036 | |
| 1029 | 1037 | int value = 0x01; |
| 1030 | //value |= s2mfifo_unk_flag ? 0x2 : 0x0; | |
| 1031 | 1038 | |
| 1032 | if (m_s2mfifo->is_empty()) | |
| 1039 | if (m_s2mfifo->is_empty()) // TODO: this is an interrupt | |
| 1033 | 1040 | { |
| 1034 | 1041 | value |= 0x2; |
| 1035 | 1042 | } |
| 1036 | else if (!m_s2mfifo->is_full() && !m_s2mfifo->is_half_full()) | |
| 1037 | { | |
| 1038 | //value |= s2mfifo_unk_flag ? 0x2 : 0x0; | |
| 1039 | } | |
| 1040 | 1043 | |
| 1041 | value |= m2sfifo_unk_flag ? 0x8 : 0x0; | |
| 1042 | ||
| 1044 | //value |= (m_main_int_active & 2) ? 0x00 : 0x02; | |
| 1045 | value |= (m_main_int_active & 1) ? 0x00 : 0x08; | |
| 1043 | 1046 | value |= (m_gfx_unk_flag & 0x80) ? 0x00 : 0x04; |
| 1044 | 1047 | |
| 1045 | 1048 | r |= (UINT64)(value) << 32; |
| r15975 | r15976 | |
| 1055 | 1058 | // Register 0xffff0002: |
| 1056 | 1059 | // Main-to-Sub FIFO write data |
| 1057 | 1060 | |
| 1058 | //printf("MAIN: M2S FIFO data write %02X\n", (UINT8)(data >> 40) & 0xff); | |
| 1059 | ||
| 1060 | 1061 | m_m2sfifo->push(&space.device(), (UINT8)(data >> 40)); |
| 1061 | 1062 | |
| 1062 | 1063 | cputag_set_input_line(space.machine(), "subcpu", INPUT_LINE_IRQ0, ASSERT_LINE); |
| 1063 | 1064 | |
| 1064 | // this is a hack... | |
| 1065 | // MAME has a small interrupt latency, which prevents the IRQ bit from being set in | |
| 1066 | // the EXISR at the same time as the FIFO status updates..... | |
| 1065 | // EXISR needs to update for the *next* instruction during FIFO tests | |
| 1066 | // TODO: try to abort the timeslice before the next instruction? | |
| 1067 | 1067 | cpu_set_reg(m_subcpu, PPC_EXISR, cpu_get_reg(m_subcpu, PPC_EXISR) | 0x10); |
| 1068 | 1068 | } |
| 1069 | 1069 | if (ACCESSING_BITS_32_39) |
| r15975 | r15976 | |
| 1073 | 1073 | // |
| 1074 | 1074 | // 7 6 5 4 3 2 1 0 |
| 1075 | 1075 | //---------------- |
| 1076 | // x M2S | |
| 1076 | // x M2S interrupt mode (0 = empty, 1 = half full) | |
| 1077 | 1077 | // x Comram page |
| 1078 | 1078 | |
| 1079 | if (!m_m2sfifo->is_empty()) | |
| 1079 | m_m2s_int_mode = ((data >> 32) & 0x8) ? 1 : 0; | |
| 1080 | ||
| 1081 | if (m_m2s_int_mode) | |
| 1080 | 1082 | { |
| 1081 | if (m_m2sfifo->is_half_full()) | |
| 1083 | if (!m_m2sfifo->is_half_full()) | |
| 1082 | 1084 | { |
| 1083 | m | |
| 1085 | m_main | |
| 1084 | 1086 | } |
| 1085 | 1087 | else |
| 1086 | 1088 | { |
| 1087 | m | |
| 1089 | m_main | |
| 1088 | 1090 | } |
| 1089 | 1091 | } |
| 1090 | 1092 | else |
| 1091 | 1093 | { |
| 1092 | m2sfifo_unk_flag = 0x0; | |
| 1094 | if (m_m2sfifo->is_empty()) | |
| 1095 | { | |
| 1096 | m_main_int_active |= 1; | |
| 1097 | } | |
| 1098 | else | |
| 1099 | { | |
| 1100 | m_main_int_active &= ~1; | |
| 1101 | } | |
| 1093 | 1102 | } |
| 1094 | 1103 | |
| 1095 | 1104 | m_comram_page = ((data >> 32) & 0x80) ? 1 : 0; |
| r15975 | r15976 | |
| 1124 | 1133 | |
| 1125 | 1134 | if ((m_s2m_int_enable & 0x80) == 0) |
| 1126 | 1135 | { |
| 1136 | m_main_int_active &= ~2; | |
| 1137 | ||
| 1127 | 1138 | // clear the interrupt |
| 1128 | 1139 | cputag_set_input_line(space.machine(), "maincpu", INPUT_LINE_IRQ0, CLEAR_LINE); |
| 1129 | 1140 | } |
| r15975 | r15976 | |
| 1240 | 1251 | |
| 1241 | 1252 | // Interrupts: |
| 1242 | 1253 | |
| 1243 | // Serial Transmit JVS | |
| 1244 | // DMA0: Sound-related (TMS57002?) | |
| 1245 | // DMA2: SCSI? | |
| 1246 | // DMA3: JVS | |
| 1247 | // External IRQ0 M2SFIFO | |
| 1248 | // External IRQ1 S2MFIFO (mostly dummy, only disables the interrupt) | |
| 1249 | // External IRQ2 SCSI Interrupt? | |
| 1254 | // Serial Transmit JVS | |
| 1255 | // DMA0: Sound-related (TMS57002?) | |
| 1256 | // DMA2: SCSI? | |
| 1257 | // DMA3: JVS | |
| 1258 | // External IRQ0 M2SFIFO | |
| 1259 | // External IRQ1 S2MFIFO (mostly dummy, only disables the interrupt) | |
| 1260 | // External IRQ2 SCSI Interrupt? | |
| 1250 | 1261 | |
| 1251 | 1262 | //static int ucount = 0; |
| 1252 | 1263 | |
| r15975 | r15976 | |
| 1291 | 1302 | UINT64 value; |
| 1292 | 1303 | m_m2sfifo->pop(&space.device(), &value); |
| 1293 | 1304 | |
| 1294 | if (m_m2sfifo->is_empty()) | |
| 1295 | { | |
| 1296 | cputag_set_input_line(space.machine(), "subcpu", INPUT_LINE_IRQ0, CLEAR_LINE); | |
| 1297 | ||
| 1298 | // give sub cpu a bit more time to stabilize on the current fifo status | |
| 1299 | device_spin_until_time(machine().device("maincpu"), attotime::from_usec(1)); | |
| 1300 | ||
| 1301 | if (m_m2s_int_enable & 0x80) | |
| 1302 | { | |
| 1303 | cputag_set_input_line(space.machine(), "maincpu", INPUT_LINE_IRQ0, ASSERT_LINE); | |
| 1304 | } | |
| 1305 | ||
| 1306 | // this is a hack... | |
| 1307 | // MAME has a small interrupt latency, which prevents the IRQ bit from being cleared in | |
| 1308 | // the EXISR at the same time as the FIFO status updates..... | |
| 1309 | cpu_set_reg(m_subcpu, PPC_EXISR, cpu_get_reg(m_subcpu, PPC_EXISR) & ~0x10); | |
| 1310 | } | |
| 1311 | ||
| 1312 | 1305 | r |= (value & 0xff) << 24; |
| 1313 | 1306 | } |
| 1314 | 1307 | if (ACCESSING_BITS_16_23) |
| r15975 | r15976 | |
| 1325 | 1318 | // x M2S FIFO full flag |
| 1326 | 1319 | // x M2S FIFO empty flag |
| 1327 | 1320 | // x M2S FIFO half-full flag |
| 1328 | // x | |
| 1321 | // x Comram page | |
| 1329 | 1322 | |
| 1330 | 1323 | UINT32 value = 0x00; |
| 1331 | 1324 | value |= m_s2mfifo->is_full() ? 0x00 : 0x01; |
| r15975 | r15976 | |
| 1356 | 1349 | // fire off an interrupt if enabled |
| 1357 | 1350 | if (m_s2m_int_enable & 0x80) |
| 1358 | 1351 | { |
| 1352 | m_main_int_active |= 2; | |
| 1353 | ||
| 1359 | 1354 | cputag_set_input_line(space.machine(), "maincpu", INPUT_LINE_IRQ0, ASSERT_LINE); |
| 1360 | 1355 | } |
| 1361 | 1356 | } |
| 1362 | 1357 | if (ACCESSING_BITS_16_23) |
| 1363 | 1358 | { |
| 1364 | 1359 | // Register 0x7E380001 |
| 1360 | // | |
| 1361 | // 7 6 5 4 3 2 1 0 | |
| 1362 | //---------------- | |
| 1363 | // x S2M interrupt mode (0 = empty, 1 = half full) | |
| 1365 | 1364 | |
| 1366 | if (!m_s2mfifo->is_empty()) | |
| 1365 | m_s2m_int_mode = (data & 0x10000) ? 1 : 0; | |
| 1366 | ||
| 1367 | if (m_s2m_int_mode) | |
| 1367 | 1368 | { |
| 1368 | if (m_s2mfifo->is_half_full()) | |
| 1369 | if (!m_s2mfifo->is_half_full()) | |
| 1369 | 1370 | { |
| 1370 | s | |
| 1371 | cpu_set_reg(m | |
| 1371 | 1372 | } |
| 1372 | 1373 | else |
| 1373 | 1374 | { |
| 1374 | s | |
| 1375 | cpu_set_reg(m | |
| 1375 | 1376 | } |
| 1376 | 1377 | } |
| 1377 | 1378 | else |
| 1378 | 1379 | { |
| 1379 | s2mfifo_unk_flag = 0; | |
| 1380 | if (m_s2mfifo->is_empty()) | |
| 1381 | { | |
| 1382 | cpu_set_reg(m_subcpu, PPC_EXISR, cpu_get_reg(m_subcpu, PPC_EXISR) | 0x08); | |
| 1383 | } | |
| 1384 | else | |
| 1385 | { | |
| 1386 | cpu_set_reg(m_subcpu, PPC_EXISR, cpu_get_reg(m_subcpu, PPC_EXISR) & ~0x08); | |
| 1387 | } | |
| 1380 | 1388 | } |
| 1381 | ||
| 1382 | if (!s2mfifo_unk_flag) | |
| 1383 | { | |
| 1384 | // cputag_set_input_line(space.machine(), "subcpu", INPUT_LINE_IRQ1, ASSERT_LINE); | |
| 1385 | ||
| 1386 | // this is a hack... | |
| 1387 | // MAME has a small interrupt latency, which prevents the IRQ bit from being set in | |
| 1388 | // the EXISR at the same time as the FIFO status updates..... | |
| 1389 | cpu_set_reg(m_subcpu, PPC_EXISR, cpu_get_reg(m_subcpu, PPC_EXISR) | 0x08); | |
| 1390 | } | |
| 1391 | else | |
| 1392 | { | |
| 1393 | // cputag_set_input_line(space.machine(), "subcpu", INPUT_LINE_IRQ1, CLEAR_LINE); | |
| 1394 | ||
| 1395 | // this is a hack... | |
| 1396 | // MAME has a small interrupt latency, which prevents the IRQ bit from being cleared in | |
| 1397 | // the EXISR at the same time as the FIFO status updates..... | |
| 1398 | cpu_set_reg(m_subcpu, PPC_EXISR, cpu_get_reg(m_subcpu, PPC_EXISR) & ~0x08); | |
| 1399 | } | |
| 1400 | 1389 | } |
| 1401 | 1390 | } |
| 1402 | 1391 | |
| r15975 | r15976 | |
| 1570 | 1559 | static ADDRESS_MAP_START( cobra_sub_map, AS_PROGRAM, 32, cobra_state ) |
| 1571 | 1560 | AM_RANGE(0x00000000, 0x003fffff) AM_MIRROR(0x80000000) AM_RAM // Main RAM |
| 1572 | 1561 | AM_RANGE(0x70000000, 0x7003ffff) AM_MIRROR(0x80000000) AM_READWRITE(sub_comram_r, sub_comram_w) // Double buffered shared RAM between Main and Sub |
| 1573 | // AM_RANGE(0x78000000, 0x780000ff) AM_MIRROR(0x80000000) AM_NOP | |
| 1562 | // AM_RANGE(0x78000000, 0x780000ff) AM_MIRROR(0x80000000) AM_NOP // SCSI controller (unused) | |
| 1574 | 1563 | AM_RANGE(0x78040000, 0x7804ffff) AM_MIRROR(0x80000000) AM_DEVREADWRITE16_LEGACY("rfsnd", rf5c400_r, rf5c400_w, 0xffffffff) |
| 1575 | 1564 | AM_RANGE(0x78080000, 0x7808000f) AM_MIRROR(0x80000000) AM_READWRITE(sub_ata0_r, sub_ata0_w) |
| 1576 | 1565 | AM_RANGE(0x780c0010, 0x780c001f) AM_MIRROR(0x80000000) AM_READWRITE(sub_ata1_r, sub_ata1_w) |
| r15975 | r15976 | |
| 1629 | 1618 | cobra_state *cobra = machine.driver_data<cobra_state>(); |
| 1630 | 1619 | |
| 1631 | 1620 | m_gfx_gram = auto_alloc_array(machine, UINT32, 0x40000); |
| 1632 | ||
| 1621 | ||
| 1633 | 1622 | cobra->m_gfx_register = auto_alloc_array(machine, UINT64, 0x3000); |
| 1634 | 1623 | } |
| 1635 | 1624 | |
| 1636 | 1625 | void cobra_renderer::gfx_exit(running_machine &machine) |
| 1637 | 1626 | { |
| 1638 | 1627 | /* |
| 1639 | FILE *file; | |
| 1640 | file = fopen("texture_ram.bin","wb"); | |
| 1641 | for (int i=0; i < 0x100000; i++) | |
| 1642 | { | |
| 1643 | fputc((UINT8)(m_texture_ram[i] >> 24), file); | |
| 1644 | fputc((UINT8)(m_texture_ram[i] >> 16), file); | |
| 1645 | fputc((UINT8)(m_texture_ram[i] >> 8), file); | |
| 1646 | fputc((UINT8)(m_texture_ram[i] >> 0), file); | |
| 1647 | } | |
| 1648 | fclose(file); | |
| 1649 | */ | |
| 1628 | FILE *file; | |
| 1629 | file = fopen("texture_ram.bin","wb"); | |
| 1630 | for (int i=0; i < 0x100000; i++) | |
| 1631 | { | |
| 1632 | fputc((UINT8)(m_texture_ram[i] >> 24), file); | |
| 1633 | fputc((UINT8)(m_texture_ram[i] >> 16), file); | |
| 1634 | fputc((UINT8)(m_texture_ram[i] >> 8), file); | |
| 1635 | fputc((UINT8)(m_texture_ram[i] >> 0), file); | |
| 1636 | } | |
| 1637 | fclose(file); | |
| 1638 | */ | |
| 1650 | 1639 | } |
| 1651 | 1640 | |
| 1652 | 1641 | void cobra_renderer::gfx_reset(running_machine &machine) |
| r15975 | r15976 | |
| 1748 | 1737 | w2 = cobra->m_gfx_re_command_word2; |
| 1749 | 1738 | } |
| 1750 | 1739 | |
| 1751 | ||
| 1752 | 1740 | |
| 1741 | ||
| 1753 | 1742 | switch ((w1 >> 24) & 0xff) |
| 1754 | 1743 | { |
| 1755 | 1744 | case 0x00: |
| r15975 | r15976 | |
| 1861 | 1850 | // Draw graphics primitives |
| 1862 | 1851 | |
| 1863 | 1852 | // 0x00: xxxx---- -------- -------- -------- Command |
| 1864 | // 0x00: ----xxxx -------- -------- -------- Primitive type (0 = triangle, 2 = point, 3 = line) | |
| 1865 | // 0x00: -------- xx------ -------- -------- ? | |
| 1866 | // 0x00: -------- -------- -------- xxxxxxxx Number of units (amount of bits is uncertain) | |
| 1853 | // 0x00: ----xxxx -------- -------- -------- Primitive type (0 = triangle, 2 = point, 3 = line) | |
| 1854 | // 0x00: -------- xx------ -------- -------- ? | |
| 1855 | // 0x00: -------- -------- -------- xxxxxxxx Number of units (amount of bits is uncertain) | |
| 1867 | 1856 | // |
| 1868 | 1857 | // 0x01: -x------ -------- -------- -------- Has extra flags word (used by lines only) |
| 1869 | 1858 | // 0x01: --x----- -------- -------- -------- Has extra unknown float (seems to be fog-related?) |
| 1870 | 1859 | // 0x01: ---x---- -------- -------- -------- Always 1? |
| 1871 | 1860 | // 0x01: -------- xx------ -------- -------- ? |
| 1872 | 1861 | // 0x01: -------- --x----- -------- -------- Has texture coords |
| 1873 | // 0x01: -------- ---x---- -------- -------- ? | |
| 1874 | // 0x01: -------- ----x--- -------- -------- ? | |
| 1875 | // 0x01: -------- -------- ------xx xx------ ? (always set to 1s?) | |
| 1876 | // 0x01: -------- -------- -------- -------x Has extra unknown float | |
| 1862 | // 0x01: -------- ---x---- -------- -------- ? | |
| 1863 | // 0x01: -------- ----x--- -------- -------- ? | |
| 1864 | // 0x01: -------- -------- ------xx xx------ ? (always set to 1s?) | |
| 1865 | // 0x01: -------- -------- -------- -------x Has extra unknown float | |
| 1877 | 1866 | |
| 1878 | 1867 | int i; |
| 1879 | 1868 | int num = 0; |
| r15975 | r15976 | |
| 1904 | 1893 | { |
| 1905 | 1894 | fifo_in->pop(NULL, &in); |
| 1906 | 1895 | } |
| 1907 | ||
| 1896 | ||
| 1908 | 1897 | if (w2 & 0x20000000) // unknown float (0.0f ... 1.0f) |
| 1909 | 1898 | { |
| 1910 | 1899 | fifo_in->pop(NULL, &in); |
| 1911 | 1900 | } |
| 1912 | ||
| 1901 | ||
| 1913 | 1902 | fifo_in->pop(NULL, &vert[i].x); // X coord |
| 1914 | 1903 | fifo_in->pop(NULL, &vert[i].y); // Y coord |
| 1915 | 1904 | fifo_in->pop(NULL, &in); // coord? |
| r15975 | r15976 | |
| 2026 | 2015 | case 0x0e0000: buffer = &m_overlay->pix32(y); break; |
| 2027 | 2016 | case 0x000800: buffer = &m_zbuffer->pix32(y); break; |
| 2028 | 2017 | case 0x000200: buffer = &m_stencil->pix32(y); break; |
| 2029 | ||
| 2018 | ||
| 2030 | 2019 | default: |
| 2031 | 2020 | { |
| 2032 | 2021 | fatalerror("gfxfifo_exec: fb write to buffer %08X!\n", m_gfx_gram[0x80100/4]); |
| r15975 | r15976 | |
| 2058 | 2047 | { |
| 2059 | 2048 | // Read a specified pixel position from a pixelbuffer |
| 2060 | 2049 | |
| 2061 | // | |
| 2050 | // printf("GFX: FB read X: %d, Y: %d\n", (UINT16)(m_gfx_gram[0x118/4] >> 16), (UINT16)(m_gfx_gram[0x118/4])); | |
| 2062 | 2051 | |
| 2063 | 2052 | int x = (m_gfx_gram[0x118/4] >> 16) & 0xffff; |
| 2064 | 2053 | int y = m_gfx_gram[0x118/4] & 0xffff; |
| r15975 | r15976 | |
| 2071 | 2060 | case 0x0e0000: buffer = &m_overlay->pix32(y); break; |
| 2072 | 2061 | case 0x000800: buffer = &m_zbuffer->pix32(y); break; |
| 2073 | 2062 | case 0x000200: buffer = &m_stencil->pix32(y); break; |
| 2074 | ||
| 2063 | ||
| 2075 | 2064 | default: |
| 2076 | 2065 | { |
| 2077 | 2066 | fatalerror("gfxfifo_exec: fb read from buffer %08X!\n", m_gfx_gram[0x80100/4]); |
| r15975 | r15976 | |
| 2205 | 2194 | UINT32 ret = gfx_read_gram(reg); |
| 2206 | 2195 | fifo_out->push(NULL, ret); |
| 2207 | 2196 | |
| 2208 | // | |
| 2197 | // printf("GFX: reg read %08X\n", reg); | |
| 2209 | 2198 | |
| 2210 | 2199 | cobra->m_gfx_re_status = RE_STATUS_IDLE; |
| 2211 | 2200 | break; |
| r15975 | r15976 | |
| 2785 | 2774 | } |
| 2786 | 2775 | |
| 2787 | 2776 | // hd patches |
| 2788 | // 0x18932c = 0x38600000 | |
| 2777 | // 0x18932c = 0x38600000 skips check_one_scene() | |
| 2789 | 2778 | } |
| 2790 | 2779 | |
| 2791 | 2780 | DRIVER_INIT_MEMBER(cobra_state,racjamdx) |
| r15975 | r15976 | |
|---|---|---|
| 23 | 23 | m_vram(*this, "vram"){ } |
| 24 | 24 | |
| 25 | 25 | required_shared_ptr<UINT8> m_vram; |
| 26 | // | |
| 26 | // DECLARE_READ8_MEMBER(unk_r); | |
| 27 | 27 | DECLARE_DRIVER_INIT(intrscti); |
| 28 | 28 | }; |
| 29 | 29 | |
| r15975 | r15976 | |
| 202 | 202 | cpu[i+0x8000]=0xc9; // ret |
| 203 | 203 | |
| 204 | 204 | /* |
| 205 | 0x8208 -> string copy | |
| 206 | */ | |
| 205 | 0x8208 -> string copy | |
| 206 | */ | |
| 207 | 207 | |
| 208 | 208 | /* one of the protection sub-routines does this */ |
| 209 | 209 | for (i=0;i<0x400;i++) |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /* mpu4 sets which have been split, and appear to do something useful |
| 2 | ||
| 2 | ||
| 3 | 3 | I'm trying to keep this file to official Barcrest / BwB rebuilds on mod4 hw |
| 4 | 4 | (licensed versions and bootlegs also included) |
| 5 | 5 | |
| r15975 | r15976 | |
| 8 | 8 | |
| 9 | 9 | /* many sets have the BARCREST or BWB string at FFE0 replaced with other things |
| 10 | 10 | such at 'FATHER CHRISTMAS' are these hacked / bootlegs requiring special hw? |
| 11 | ||
| 11 | ||
| 12 | 12 | sets with 'D' in the ident code are Datapak sets, and do not play without a datapak connected |
| 13 | 13 | sets with 'Y' seem to require the % key to be set |
| 14 | 14 | |
| r15975 | r15976 | |
| 33 | 33 | // this helps with sorting |
| 34 | 34 | UINT8 *src = machine().root_device().memregion( "maincpu" )->base(); |
| 35 | 35 | int size = machine().root_device().memregion( "maincpu" )->bytes(); |
| 36 | ||
| 36 | ||
| 37 | 37 | for (int j=0;j<size;j+=0x10000) |
| 38 | 38 | { |
| 39 | 39 | if (size>0x10000) printf("\nblock 0x%06x:\n",j); |
| r15975 | r15976 | |
|---|---|---|
| 273 | 273 | ROM_LOAD( "tt1-voi0.7p", 0x0000, 0x80000, CRC(b4fc5921) SHA1(92a88d5adb50dae48715847f12e88a35e37ef78c) ) |
| 274 | 274 | ROM_END |
| 275 | 275 | |
| 276 | GAMEL( 1997, 30test, 0, 30test, 30test, driver_device, 0, ROT0, "Namco", "30 Test (Remake)", GAME_SUPPORTS_SAVE, layout_30test ) | |
| 276 | GAMEL( 1997, 30test, 0, 30test, 30test, driver_device, 0, ROT0, "Namco", "30 Test (Remake)", GAME_SUPPORTS_SAVE | GAME_CLICKABLE_ARTWORK, layout_30test ) |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(gp_2); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 1934 | 1934 | ROM_START( lhaunt_10 ) // 090712 entertainment |
| 1935 | 1935 | ROM_REGION( 0x40000, "maincpu", 0 ) // z80 code, banked |
| 1936 | 1936 | ROM_LOAD( "lh_e_090712.rom", 0x00000, 0x40000, CRC(16a3d1f3) SHA1(a1350d957d06a679db7f27eb949ddb3befe178d8) ) |
| 1937 | ||
| 1937 | ||
| 1938 | 1938 | ROM_REGION( 0x400000, "gfx", 0 ) |
| 1939 | 1939 | ROM_LOAD( "lh_ent.001", 0x000000, 0x80000, CRC(66de9088) SHA1(b8287b4d9eeeb6502b656dc9d104048364c55326) ) |
| 1940 | 1940 | ROM_LOAD( "lh_ent.002", 0x100000, 0x80000, CRC(04df45d7) SHA1(f74d72244fb3cefc3599b68af0fec01f9d1a17a1) ) |
| r15975 | r15976 | |
| 2275 | 2275 | ROM_START( sweetl2_3 ) // 090525 lottery |
| 2276 | 2276 | ROM_REGION( 0x40000, "maincpu", 0 ) // z80 code, banked |
| 2277 | 2277 | ROM_LOAD( "sl2_l_090525.rom", 0x00000, 0x40000, CRC(79f878b4) SHA1(a21dc4a7986dab7ec9236b2c612c43c1604b5588) ) |
| 2278 | ||
| 2278 | ||
| 2279 | 2279 | ROM_REGION( 0x400000, "gfx", 0 ) |
| 2280 | 2280 | ROM_LOAD( "sweetlife2_loto.001", 0x000000, 0x80000, CRC(01b8bc85) SHA1(9c6475e8e6e01717d61b5f15f95748a66ea958b7) ) |
| 2281 | 2281 | ROM_LOAD( "sweetlife2_loto.002", 0x100000, 0x80000, CRC(e95f1ecb) SHA1(a538c6df004129ccf54a09ab6dae79d301ee6966) ) |
| r15975 | r15976 | |
| 2290 | 2290 | ROM_START( sweetl2_4 ) // 090812 entertainment |
| 2291 | 2291 | ROM_REGION( 0x40000, "maincpu", 0 ) // z80 code, banked |
| 2292 | 2292 | ROM_LOAD( "sl2_e_090812.rom", 0x00000, 0x40000, CRC(1ee6b0c9) SHA1(481ec72b87e0419aa435e3876404c1b802aed7dd) ) |
| 2293 | ||
| 2293 | ||
| 2294 | 2294 | ROM_REGION( 0x400000, "gfx", 0 ) |
| 2295 | 2295 | ROM_LOAD( "sweetlife2_ent.001", 0x000000, 0x80000, CRC(378c185d) SHA1(3486bc353c2947375e0f60b6e0f188e95fb7ebcb) ) |
| 2296 | 2296 | ROM_LOAD( "sweetlife2_ent.002", 0x100000, 0x80000, CRC(3f92e579) SHA1(0b1ddd294c6a8d7bb353965a7117ea336c577ff5) ) |
| r15975 | r15976 | |
|---|---|---|
| 23 | 23 | |
| 24 | 24 | // driver_device overrides |
| 25 | 25 | virtual void machine_reset(); |
| 26 | public: | |
| 26 | public: | |
| 27 | 27 | DECLARE_DRIVER_INIT(gts80); |
| 28 | 28 | }; |
| 29 | 29 |
| r15975 | r15976 | |
|---|---|---|
| 296 | 296 | MCFG_SOUND_ADD("sn2", SN76496_NEW, MCLK/4) |
| 297 | 297 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 298 | 298 | MCFG_SOUND_CONFIG(psg_intf) |
| 299 | ||
| 299 | ||
| 300 | 300 | MCFG_SOUND_ADD("sn3", SN76496_NEW, MCLK/4) |
| 301 | 301 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 302 | 302 | MCFG_SOUND_CONFIG(psg_intf) |
| 303 | ||
| 303 | ||
| 304 | 304 | MCFG_SOUND_ADD("msm", MSM5205, 384000) |
| 305 | 305 | MCFG_SOUND_CONFIG(msm5205_config) |
| 306 | 306 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| r15975 | r15976 | |
|---|---|---|
| 2286 | 2286 | GAME( 200?, as_rtrh, as_rtr , astra_single_2e, astrafr, astrafr_state, astradec, ROT0, "Astra", "Ready To Roll (Astra, V202)" , GAME_IS_SKELETON_MECHANICAL) |
| 2287 | 2287 | |
| 2288 | 2288 | GAME( 200?, as_rab, 0 , astra_single_2e, astrafr, driver_device, 0, ROT0, "Astra", "Ring A Bell (Astra, V105)" , GAME_IS_SKELETON_MECHANICAL) |
| 2289 | GAME( 200?, as_raba, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Ring A Bell (Astra, V106)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2290 | GAME( 200?, as_rabb, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Ring A Bell (Astra, V107)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2291 | GAME( 200?, as_rabc, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Ring A Bell (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2289 | GAME( 200?, as_raba, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Ring A Bell (Astra, V106)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2290 | GAME( 200?, as_rabb, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Ring A Bell (Astra, V107)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2291 | GAME( 200?, as_rabc, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Ring A Bell (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2292 | 2292 | GAME( 200?, as_rbg, 0 , astra_single_2e, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V304)" , GAME_IS_SKELETON_MECHANICAL) |
| 2293 | GAME( 200?, as_rbga, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V303)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2294 | GAME( 200?, as_rbgb, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2295 | GAME( 200?, as_rbgc, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V102)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2296 | GAME( 200?, as_rbgd, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V101)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2297 | GAME( 200?, as_rbge, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V008)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2293 | GAME( 200?, as_rbga, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V303)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2294 | GAME( 200?, as_rbgb, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2295 | GAME( 200?, as_rbgc, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V102)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2296 | GAME( 200?, as_rbgd, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V101)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2297 | GAME( 200?, as_rbge, as_rab , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "River Boat Gambler (Astra, V008)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2298 | 2298 | GAME( 200?, as_rbglo, 0 , astrafr_dual_37, astrafr, astrafr_state, astradec_sml_dual, ROT0, "Lowen", "River Boat Gambler (Lowen, V106)" , GAME_IS_SKELETON_MECHANICAL) |
| 2299 | GAME( 200?, as_rox, 0 , astra_single, astrafr, driver_device, 0, | |
| 2299 | GAME( 200?, as_rox, 0 , astra_single, astrafr, driver_device, 0, | |
| 2300 | 2300 | GAME( 200?, as_csv, 0 , astra_single_37, astrafr, driver_device, 0, ROT0, "Astra", "Slot Slant (?) (Astra, V202)" , GAME_IS_SKELETON_MECHANICAL) |
| 2301 | GAME( 200?, as_sltcl, 0 , astra_single, astrafr, driver_device, 0, | |
| 2301 | GAME( 200?, as_sltcl, 0 , astra_single, astrafr, driver_device, 0, | |
| 2302 | 2302 | GAME( 200?, as_stp, 0 , astra_single_2e, astrafr, astrafr_state, astradec, ROT0, "Astra", "Stampede (Astra, V103)" , GAME_IS_SKELETON_MECHANICAL) |
| 2303 | 2303 | GAME( 200?, as_stpa, as_stp , astra_single, astrafr, astrafr_state, astradec, ROT0, "Astra", "Stampede (Astra, V102)" , GAME_IS_SKELETON_MECHANICAL) |
| 2304 | 2304 | GAME( 200?, as_stpb, as_stp , astra_single, astrafr, astrafr_state, astradec, ROT0, "Astra", "Stampede (Astra, V105)" , GAME_IS_SKELETON_MECHANICAL) |
| 2305 | 2305 | GAME( 200?, as_siu, 0 , astra_single_37, astrafr, astrafr_state, astradec_sml, ROT0, "Astra", "Step It Up (Astra, V202)" , GAME_IS_SKELETON_MECHANICAL) // extra sound roms(?) in this set |
| 2306 | 2306 | GAME( 200?, as_siua, as_siu , astra_single, astrafr, astrafr_state, astradec_sml, ROT0, "Astra", "Step It Up (Astra, V203)" , GAME_IS_SKELETON_MECHANICAL) |
| 2307 | GAME( 200?, as_sld, 0 , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V700)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2308 | GAME( 200?, as_slda, as_sld , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V600)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2309 | GAME( 200?, as_sldb, as_sld , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V500)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2310 | GAME( 200?, as_sldc, as_sld , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V400)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2311 | GAME( 200?, as_sldd, as_sld , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V200)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2312 | GAME( 200?, as_slde, as_sld , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V101)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2307 | GAME( 200?, as_sld, 0 , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V700)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2308 | GAME( 200?, as_slda, as_sld , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V600)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2309 | GAME( 200?, as_sldb, as_sld , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V500)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2310 | GAME( 200?, as_sldc, as_sld , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V400)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2311 | GAME( 200?, as_sldd, as_sld , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V200)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2312 | GAME( 200?, as_slde, as_sld , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Super Little Devil (Astra, V101)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2313 | 2313 | GAME( 200?, as_tem, 0 , astra_single_alt_37, astrafr, astrafr_state, astradec, ROT0, "Astra", "Temptation (Astra, V101)" , GAME_IS_SKELETON_MECHANICAL) |
| 2314 | 2314 | GAME( 200?, as_tema, as_tem , astra_single_alt_37, astrafr, astrafr_state, astradec, ROT0, "Astra", "Temptation (Astra, V006)" , GAME_IS_SKELETON_MECHANICAL) |
| 2315 | 2315 | GAME( 200?, as_tbl, 0 , astra_single_2e, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) |
| 2316 | GAME( 200?, as_tbla, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V105)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2317 | GAME( 200?, as_tblb, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V106)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2318 | GAME( 200?, as_tblc, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V103)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2319 | GAME( 200?, as_tbld, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V304)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2320 | GAME( 200?, as_tble, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V303)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2321 | GAME( 200?, as_tblf, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V301)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2316 | GAME( 200?, as_tbla, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V105)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2317 | GAME( 200?, as_tblb, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V106)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2318 | GAME( 200?, as_tblc, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V103)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2319 | GAME( 200?, as_tbld, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V304)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2320 | GAME( 200?, as_tble, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V303)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2321 | GAME( 200?, as_tblf, as_tbl , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Triple Bells (Astra, V301)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2322 | 2322 | GAME( 200?, as_td, 0 , astra_single_2e, astrafr, astrafr_state, astradec, ROT0, "Astra", "Twin Dragons (Astra, V103)" , GAME_IS_SKELETON_MECHANICAL) |
| 2323 | 2323 | |
| 2324 | 2324 | GAME( 200?, as_twp, 0 , astra_single_2e, astrafr, driver_device, 0, ROT0, "Astra", "Twin Pots (Astra, V106)" , GAME_IS_SKELETON_MECHANICAL) |
| 2325 | GAME( 200?, as_twpa, as_twp , astra_single, astrafr, driver_device, 0, | |
| 2325 | GAME( 200?, as_twpa, as_twp , astra_single, astrafr, driver_device, 0, | |
| 2326 | 2326 | GAME( 200?, as_vn, 0 , astrafr_dual_alt_37, astrafr, astrafr_state, astradec_dual, ROT0, "Astra", "Vegas Nights (Astra, V205)" , GAME_IS_SKELETON_MECHANICAL) |
| 2327 | 2327 | GAME( 200?, as_vcv, 0 , astra_single, astrafr, astrafr_state, astradec, ROT0, "Astra", "Viva Cash Vegas (Astra, V005)" , GAME_IS_SKELETON_MECHANICAL) |
| 2328 | 2328 | GAME( 200?, as_vcva, as_vcv , astra_single, astrafr, astrafr_state, astradec, ROT0, "Astra", "Viva Cash Vegas (Astra, V107)" , GAME_IS_SKELETON_MECHANICAL) |
| r15975 | r15976 | |
| 2330 | 2330 | GAME( 200?, as_vcvc, as_vcv , astra_single, astrafr, astrafr_state, astradec, ROT0, "Astra", "Viva Cash Vegas (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) |
| 2331 | 2331 | GAME( 200?, as_vcvd, as_vcv , astra_single, astrafr, astrafr_state, astradec, ROT0, "Astra", "Viva Cash Vegas (Astra, V102)" , GAME_IS_SKELETON_MECHANICAL) |
| 2332 | 2332 | GAME( 200?, as_vcve, as_vcv , astra_single, astrafr, astrafr_state, astradec, ROT0, "Astra", "Viva Cash Vegas (Astra, V101)" , GAME_IS_SKELETON_MECHANICAL) |
| 2333 | GAME( 200?, as_ww, 0 , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V203)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2334 | GAME( 200?, as_wwa, as_ww , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V204)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2335 | GAME( 200?, as_wwb, as_ww , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V205)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2336 | GAME( 200?, as_wwc, as_ww , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2337 | GAME( 200?, as_wwd, as_ww , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V103)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2338 | GAME( 200?, as_wwe, as_ww , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V102)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2333 | GAME( 200?, as_ww, 0 , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V203)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2334 | GAME( 200?, as_wwa, as_ww , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V204)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2335 | GAME( 200?, as_wwb, as_ww , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V205)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2336 | GAME( 200?, as_wwc, as_ww , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V104)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2337 | GAME( 200?, as_wwd, as_ww , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V103)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2338 | GAME( 200?, as_wwe, as_ww , astra_single, astrafr, driver_device, 0, ROT0, "Astra", "Wicked Willy (Astra, V102)" , GAME_IS_SKELETON_MECHANICAL) | |
| 2339 | 2339 | GAME( 200?, as_ws, 0 , astra_single, astrafr, astrafr_state, astradec, ROT0, "Astra", "Win Streak (Astra, V100)" , GAME_IS_SKELETON_MECHANICAL) // incomplete dump |
| 2340 | 2340 |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(capcom); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 17 | 17 | |
| 18 | 18 | // driver_device overrides |
| 19 | 19 | virtual void machine_reset(); |
| 20 | public: | |
| 20 | public: | |
| 21 | 21 | DECLARE_DRIVER_INIT(alvg); |
| 22 | 22 | }; |
| 23 | 23 |
| r15975 | r15976 | |
|---|---|---|
| 574 | 574 | MCFG_PALETTE_LENGTH(1024 + 32768) |
| 575 | 575 | |
| 576 | 576 | MCFG_KANEKO_PANDORA_ADD("pandora", galpanic_pandora_config) |
| 577 | ||
| 577 | ||
| 578 | 578 | MCFG_DEVICE_ADD("calc1_mcu", KANEKO_HIT, 0) |
| 579 | 579 | kaneko_hit_device::set_type(*device, 0); |
| 580 | 580 | |
| 581 | 581 | |
| 582 | ||
| 583 | 582 | |
| 583 | ||
| 584 | 584 | MCFG_PALETTE_INIT(galpanic) |
| 585 | 585 | MCFG_VIDEO_START(galpanic) |
| 586 | 586 |
| r15975 | r15976 | |
|---|---|---|
| 312 | 312 | |
| 313 | 313 | |
| 314 | 314 | //************************************************************************** |
| 315 | // | |
| 315 | // CONSTANTS | |
| 316 | 316 | //************************************************************************** |
| 317 | 317 | |
| 318 | 318 | const UINT32 MASTER_CLOCK = XTAL_40MHz; |
| r15975 | r15976 | |
| 322 | 322 | |
| 323 | 323 | |
| 324 | 324 | //************************************************************************** |
| 325 | // | |
| 325 | // PPI INTERFACES | |
| 326 | 326 | //************************************************************************** |
| 327 | 327 | |
| 328 | 328 | static I8255_INTERFACE(single_ppi_intf) |
| r15975 | r15976 | |
| 338 | 338 | |
| 339 | 339 | |
| 340 | 340 | //************************************************************************** |
| 341 | // | |
| 341 | // PPI READ/WRITE CALLBACKS | |
| 342 | 342 | //************************************************************************** |
| 343 | 343 | |
| 344 | 344 | //------------------------------------------------- |
| 345 | 345 | // unknown_port*_r - loggers for reading |
| 346 | // | |
| 346 | // unknown ports | |
| 347 | 347 | //------------------------------------------------- |
| 348 | 348 | |
| 349 | 349 | READ8_MEMBER( segaorun_state::unknown_porta_r ) |
| r15975 | r15976 | |
| 367 | 367 | |
| 368 | 368 | //------------------------------------------------- |
| 369 | 369 | // unknown_port*_w - loggers for writing |
| 370 | // | |
| 370 | // unknown ports | |
| 371 | 371 | //------------------------------------------------- |
| 372 | 372 | |
| 373 | 373 | WRITE8_MEMBER( segaorun_state::unknown_porta_w ) |
| r15975 | r15976 | |
| 383 | 383 | |
| 384 | 384 | //------------------------------------------------- |
| 385 | 385 | // video_control_w - display enable, ADC select, |
| 386 | // | |
| 386 | // sound interrupt control | |
| 387 | 387 | //------------------------------------------------- |
| 388 | 388 | |
| 389 | 389 | WRITE8_MEMBER( segaorun_state::video_control_w ) |
| r15975 | r15976 | |
| 395 | 395 | // D4-D2: (ADC2-0) |
| 396 | 396 | // D1: (CONT) - affects sprite hardware |
| 397 | 397 | // D0: Sound section reset (1= normal operation, 0= reset) |
| 398 | ||
| 398 | ||
| 399 | 399 | segaic16_set_display_enable(machine(), data & 0x20); |
| 400 | 400 | m_adc_select = (data >> 2) & 7; |
| 401 | 401 | m_soundcpu->set_input_line(INPUT_LINE_RESET, (data & 0x01) ? CLEAR_LINE : ASSERT_LINE); |
| r15975 | r15976 | |
| 404 | 404 | |
| 405 | 405 | |
| 406 | 406 | //************************************************************************** |
| 407 | // | |
| 407 | // MEMORY MAPPING | |
| 408 | 408 | //************************************************************************** |
| 409 | 409 | |
| 410 | 410 | //------------------------------------------------- |
| 411 | 411 | // memory_mapper - callback to implement memory |
| 412 | // | |
| 412 | // mapping for a given index | |
| 413 | 413 | //------------------------------------------------- |
| 414 | 414 | |
| 415 | 415 | void segaorun_state::memory_mapper(sega_315_5195_mapper_device &mapper, UINT8 index) |
| r15975 | r15976 | |
| 422 | 422 | mapper.map_as_ram(0x60000, 0x08000, 0xf18000, "cpu1ram", write16_delegate()); |
| 423 | 423 | mapper.map_as_ram(0x00000, 0x60000, 0xf00000, "cpu1rom", write16_delegate(FUNC(segaorun_state::nop_w), this)); |
| 424 | 424 | break; |
| 425 | ||
| 425 | ||
| 426 | 426 | case 4: |
| 427 | 427 | mapper.map_as_handler(0x90000, 0x10000, 0xf00000, read16_delegate(FUNC(segaorun_state::misc_io_r), this), write16_delegate(FUNC(segaorun_state::misc_io_w), this)); |
| 428 | 428 | break; |
| 429 | ||
| 429 | ||
| 430 | 430 | case 3: |
| 431 | 431 | mapper.map_as_ram(0x00000, 0x01000, 0xfff000, "spriteram", write16_delegate()); |
| 432 | 432 | break; |
| 433 | ||
| 433 | ||
| 434 | 434 | case 2: |
| 435 | 435 | mapper.map_as_ram(0x00000, 0x02000, 0xffe000, "paletteram", write16_delegate(FUNC(segaorun_state::legacy_wrapper<segaic16_paletteram_w>), this)); |
| 436 | 436 | break; |
| 437 | ||
| 437 | ||
| 438 | 438 | case 1: |
| 439 | 439 | mapper.map_as_ram(0x00000, 0x10000, 0xfe0000, "tileram", write16_delegate(FUNC(segaorun_state::legacy_wrapper<segaic16_tileram_0_w>), this)); |
| 440 | 440 | mapper.map_as_ram(0x10000, 0x01000, 0xfef000, "textram", write16_delegate(FUNC(segaorun_state::legacy_wrapper<segaic16_textram_0_w>), this)); |
| 441 | 441 | break; |
| 442 | ||
| 442 | ||
| 443 | 443 | case 0: |
| 444 | 444 | mapper.map_as_ram(0x60000, 0x08000, 0xf98000, "workram", write16_delegate()); |
| 445 | 445 | mapper.map_as_rom(0x00000, 0x60000, 0xf80000, "rom0base", 0x00000, write16_delegate()); |
| r15975 | r15976 | |
| 450 | 450 | |
| 451 | 451 | //------------------------------------------------- |
| 452 | 452 | // mapper_sound_r - callback when the sound I/O |
| 453 | // | |
| 453 | // port on the memory mapper is read | |
| 454 | 454 | //------------------------------------------------- |
| 455 | 455 | |
| 456 | 456 | UINT8 segaorun_state::mapper_sound_r() |
| r15975 | r15976 | |
| 461 | 461 | |
| 462 | 462 | //------------------------------------------------- |
| 463 | 463 | // mapper_sound_w - callback when the sound I/O |
| 464 | // | |
| 464 | // port on the memory mapper is written | |
| 465 | 465 | //------------------------------------------------- |
| 466 | 466 | |
| 467 | 467 | void segaorun_state::mapper_sound_w(UINT8 data) |
| r15975 | r15976 | |
| 472 | 472 | |
| 473 | 473 | |
| 474 | 474 | //************************************************************************** |
| 475 | // | |
| 475 | // MAIN CPU READ/WRITE HANDLERS | |
| 476 | 476 | //************************************************************************** |
| 477 | 477 | |
| 478 | 478 | //------------------------------------------------- |
| r15975 | r15976 | |
| 514 | 514 | |
| 515 | 515 | |
| 516 | 516 | //************************************************************************** |
| 517 | // | |
| 517 | // Z80 SOUND CPU READ/WRITE HANDLERS | |
| 518 | 518 | //************************************************************************** |
| 519 | 519 | |
| 520 | 520 | //------------------------------------------------- |
| 521 | // sound_data_r - handle sound board reads from | |
| 521 | // sound_data_r - handle sound board reads from | |
| 522 | 522 | // the sound latch |
| 523 | 523 | //------------------------------------------------- |
| 524 | 524 | |
| r15975 | r15976 | |
| 531 | 531 | |
| 532 | 532 | |
| 533 | 533 | //************************************************************************** |
| 534 | // | |
| 534 | // DRIVER OVERRIDES | |
| 535 | 535 | //************************************************************************** |
| 536 | 536 | |
| 537 | 537 | //------------------------------------------------- |
| r15975 | r15976 | |
| 565 | 565 | soundlatch_write(param); |
| 566 | 566 | m_soundcpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE); |
| 567 | 567 | break; |
| 568 | ||
| 568 | ||
| 569 | 569 | case TID_IRQ2_GEN: |
| 570 | 570 | // set the IRQ2 line |
| 571 | 571 | m_irq2_state = 1; |
| 572 | 572 | update_main_irqs(); |
| 573 | 573 | break; |
| 574 | ||
| 574 | ||
| 575 | 575 | case TID_SCANLINE: |
| 576 | 576 | { |
| 577 | 577 | int scanline = param; |
| r15975 | r15976 | |
| 624 | 624 | |
| 625 | 625 | |
| 626 | 626 | //************************************************************************** |
| 627 | // | |
| 627 | // CUSTOM I/O HANDLERS | |
| 628 | 628 | //************************************************************************** |
| 629 | 629 | |
| 630 | 630 | //------------------------------------------------- |
| 631 | 631 | // outrun_custom_io_r - custom I/O read handler |
| 632 | // | |
| 632 | // for Out Run | |
| 633 | 633 | //------------------------------------------------- |
| 634 | 634 | |
| 635 | 635 | READ16_MEMBER( segaorun_state::outrun_custom_io_r ) |
| r15975 | r15976 | |
| 663 | 663 | |
| 664 | 664 | //------------------------------------------------- |
| 665 | 665 | // outrun_custom_io_w - custom I/O write handler |
| 666 | // | |
| 666 | // for Out Run | |
| 667 | 667 | //------------------------------------------------- |
| 668 | 668 | |
| 669 | 669 | WRITE16_MEMBER( segaorun_state::outrun_custom_io_w ) |
| r15975 | r15976 | |
| 704 | 704 | |
| 705 | 705 | //------------------------------------------------- |
| 706 | 706 | // shangon_custom_io_r - custom I/O read handler |
| 707 | // | |
| 707 | // for Super Hang-On | |
| 708 | 708 | //------------------------------------------------- |
| 709 | 709 | |
| 710 | 710 | READ16_MEMBER( segaorun_state::shangon_custom_io_r ) |
| r15975 | r15976 | |
| 734 | 734 | |
| 735 | 735 | //------------------------------------------------- |
| 736 | 736 | // shangon_custom_io_w - custom I/O write handler |
| 737 | // | |
| 737 | // for Super Hang-On | |
| 738 | 738 | //------------------------------------------------- |
| 739 | 739 | |
| 740 | 740 | WRITE16_MEMBER( segaorun_state::shangon_custom_io_w ) |
| r15975 | r15976 | |
| 770 | 770 | |
| 771 | 771 | |
| 772 | 772 | //************************************************************************** |
| 773 | // | |
| 773 | // INTERNAL HELPERS | |
| 774 | 774 | //************************************************************************** |
| 775 | 775 | |
| 776 | 776 | //------------------------------------------------- |
| 777 | 777 | // update_main_irqs - flush IRQ state to the |
| 778 | // | |
| 778 | // CPU device | |
| 779 | 779 | //------------------------------------------------- |
| 780 | 780 | |
| 781 | 781 | void segaorun_state::update_main_irqs() |
| r15975 | r15976 | |
| 793 | 793 | |
| 794 | 794 | //------------------------------------------------- |
| 795 | 795 | // m68k_reset_callback - callback for when the |
| 796 | // | |
| 796 | // main 68000 is reset | |
| 797 | 797 | //------------------------------------------------- |
| 798 | 798 | |
| 799 | 799 | void segaorun_state::m68k_reset_callback(device_t *device) |
| r15975 | r15976 | |
| 805 | 805 | |
| 806 | 806 | |
| 807 | 807 | //************************************************************************** |
| 808 | // | |
| 808 | // MAIN CPU MEMORY MAP | |
| 809 | 809 | //************************************************************************** |
| 810 | 810 | |
| 811 | 811 | static ADDRESS_MAP_START( outrun_map, AS_PROGRAM, 16, segaorun_state ) |
| 812 | 812 | ADDRESS_MAP_UNMAP_HIGH |
| 813 | 813 | AM_RANGE(0x000000, 0xffffff) AM_DEVREADWRITE8("mapper", sega_315_5195_mapper_device, read, write, 0x00ff) |
| 814 | ||
| 814 | ||
| 815 | 815 | // these get overwritten by the memory mapper above, but we put them here |
| 816 | 816 | // so they are properly allocated and tracked for saving |
| 817 | 817 | AM_RANGE(0x100000, 0x100fff) AM_RAM AM_SHARE("spriteram") |
| r15975 | r15976 | |
| 824 | 824 | |
| 825 | 825 | |
| 826 | 826 | //************************************************************************** |
| 827 | // | |
| 827 | // SECOND CPU MEMORY MAP | |
| 828 | 828 | //************************************************************************** |
| 829 | 829 | |
| 830 | 830 | static ADDRESS_MAP_START( sub_map, AS_PROGRAM, 16, segaorun_state ) |
| r15975 | r15976 | |
| 839 | 839 | |
| 840 | 840 | |
| 841 | 841 | //************************************************************************** |
| 842 | // | |
| 842 | // SOUND CPU MEMORY MAP | |
| 843 | 843 | //************************************************************************** |
| 844 | 844 | |
| 845 | 845 | static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, segaorun_state ) |
| r15975 | r15976 | |
| 859 | 859 | |
| 860 | 860 | |
| 861 | 861 | //************************************************************************** |
| 862 | // | |
| 862 | // GENERIC PORT DEFINITIONS | |
| 863 | 863 | //************************************************************************** |
| 864 | 864 | |
| 865 | 865 | static INPUT_PORTS_START( outrun_generic ) |
| r15975 | r15976 | |
| 910 | 910 | |
| 911 | 911 | |
| 912 | 912 | //************************************************************************** |
| 913 | // | |
| 913 | // GAME-SPECIFIC PORT DEFINITIONS | |
| 914 | 914 | //************************************************************************** |
| 915 | 915 | |
| 916 | 916 | static INPUT_PORTS_START( outrun ) |
| r15975 | r15976 | |
| 1041 | 1041 | |
| 1042 | 1042 | |
| 1043 | 1043 | //************************************************************************** |
| 1044 | // | |
| 1044 | // SOUND DEFINITIONS | |
| 1045 | 1045 | //************************************************************************** |
| 1046 | 1046 | |
| 1047 | 1047 | static const sega_pcm_interface segapcm_interface = |
| r15975 | r15976 | |
| 1052 | 1052 | |
| 1053 | 1053 | |
| 1054 | 1054 | //************************************************************************** |
| 1055 | // | |
| 1055 | // GRAPHICS DEFINITIONS | |
| 1056 | 1056 | //************************************************************************** |
| 1057 | 1057 | |
| 1058 | 1058 | static GFXDECODE_START( segaorun ) |
| r15975 | r15976 | |
| 1062 | 1062 | |
| 1063 | 1063 | |
| 1064 | 1064 | //************************************************************************** |
| 1065 | // | |
| 1065 | // GENERIC MACHINE DRIVERS | |
| 1066 | 1066 | //************************************************************************** |
| 1067 | 1067 | |
| 1068 | 1068 | static MACHINE_CONFIG_START( outrun_base, segaorun_state ) |
| r15975 | r15976 | |
| 1107 | 1107 | |
| 1108 | 1108 | |
| 1109 | 1109 | //************************************************************************** |
| 1110 | // | |
| 1110 | // GAME-SPECIFIC MACHINE DRIVERS | |
| 1111 | 1111 | //************************************************************************** |
| 1112 | 1112 | |
| 1113 | 1113 | static MACHINE_CONFIG_DERIVED( outrundx, outrun_base ) |
| r15975 | r15976 | |
| 1144 | 1144 | |
| 1145 | 1145 | |
| 1146 | 1146 | //************************************************************************** |
| 1147 | // | |
| 1147 | // ROM DEFINITIONS | |
| 1148 | 1148 | //************************************************************************** |
| 1149 | 1149 | |
| 1150 | 1150 | |
| r15975 | r15976 | |
| 1605 | 1605 | // CPU BD SUPER HANG-ON 837-6278-01 (or 837-6278-03) |
| 1606 | 1606 | // VIDEO BD SUPER HANG-ON 837-6279 (or 837-6279-02, roms would be "OPR") |
| 1607 | 1607 | // |
| 1608 | // Manual states for this set: | |
| 1609 | // 834-6277-01 (Object data (sprits) EPR type AKA EP-ROM type) | |
| 1610 | // 834-6277-03 (Object data (sprits) MPR type AKA Mask-ROM type) | |
| 1611 | // 834-6277-05 (Object data (sprits) OPR type AKA One Time ROM type) | |
| 1608 | // Manual states for this set: | |
| 1609 | // 834-6277-01 (Object data (sprits) EPR type AKA EP-ROM type) | |
| 1610 | // 834-6277-03 (Object data (sprits) MPR type AKA Mask-ROM type) | |
| 1611 | // 834-6277-05 (Object data (sprits) OPR type AKA One Time ROM type) | |
| 1612 | 1612 | // |
| 1613 | 1613 | ROM_START( shangon3 ) |
| 1614 | 1614 | ROM_REGION( 0x60000, "maincpu", 0 ) // 68000 code - protected |
| r15975 | r15976 | |
| 1794 | 1794 | // VIDEO BD SUPER HANG-ON 837-6279 (or 837-6279-02, rom would be "OPR") |
| 1795 | 1795 | // |
| 1796 | 1796 | ROM_START( shangonle ) |
| 1797 | ROM_REGION( 0x60000, "maincpu", 0 ) // 68000 code | |
| 1797 | ROM_REGION( 0x60000, "maincpu", 0 ) // 68000 code | |
| 1798 | 1798 | ROM_LOAD16_BYTE( "epr-13944.133", 0x000000, 0x10000, CRC(989a80db) SHA1(5026e5cf52d4fd85a0bab6c4ea7a34cf266b2a3b) ) |
| 1799 | 1799 | ROM_LOAD16_BYTE( "epr-13943.118", 0x000001, 0x10000, CRC(426e3050) SHA1(f332ea76285b4e1361d818cbe5aab0640b4185c3) ) |
| 1800 | 1800 | ROM_LOAD16_BYTE( "epr-10899.132", 0x020000, 0x10000, CRC(bb3faa37) SHA1(ccf3352255503fd6619e6e116d187a8cd1ff75e6) ) |
| r15975 | r15976 | |
| 2103 | 2103 | |
| 2104 | 2104 | |
| 2105 | 2105 | //************************************************************************** |
| 2106 | // | |
| 2106 | // CONFIGURATION | |
| 2107 | 2107 | //************************************************************************** |
| 2108 | 2108 | |
| 2109 | 2109 | //------------------------------------------------- |
| r15975 | r15976 | |
| 2193 | 2193 | |
| 2194 | 2194 | |
| 2195 | 2195 | //************************************************************************** |
| 2196 | // | |
| 2196 | // GAME DRIVERS | |
| 2197 | 2197 | //************************************************************************** |
| 2198 | 2198 | |
| 2199 | 2199 | // YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR,COMPANY,FULLNAME,FLAGS, LAYOUT |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(de_2); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 19 | 19 | |
| 20 | 20 | // driver_device overrides |
| 21 | 21 | virtual void machine_reset(); |
| 22 | public: | |
| 22 | public: | |
| 23 | 23 | DECLARE_DRIVER_INIT(bingo); |
| 24 | 24 | }; |
| 25 | 25 | |
| r15975 | r15976 | |
| 63 | 63 | // driver_device overrides |
| 64 | 64 | virtual void machine_reset(); |
| 65 | 65 | public: |
| 66 | DECLARE_DRIVER_INIT(seeben); | |
| 66 | DECLARE_DRIVER_INIT(seeben); | |
| 67 | 67 | }; |
| 68 | 68 | |
| 69 | 69 | |
| r15975 | r15976 | |
| 102 | 102 | |
| 103 | 103 | // driver_device overrides |
| 104 | 104 | virtual void machine_reset(); |
| 105 | public: | |
| 105 | public: | |
| 106 | 106 | DECLARE_DRIVER_INIT(splin); |
| 107 | 107 | }; |
| 108 | 108 |
| r15975 | r15976 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | // driver_device overrides |
| 24 | 24 | virtual void machine_reset(); |
| 25 | public: | |
| 25 | public: | |
| 26 | 26 | DECLARE_DRIVER_INIT(by6803); |
| 27 | 27 | }; |
| 28 | 28 |
| r15975 | r15976 | |
|---|---|---|
| 1579 | 1579 | ROM_REGION( 0x400000, "maincpu", 0 ) |
| 1580 | 1580 | ROM_LOAD16_BYTE( "trop2_5.p1", 0x000000, 0x080000, CRC(731f2cfe) SHA1(c0cecda77f6726631982c5342ec2740c86432594) ) // == "trop2_4.p1 ?? |
| 1581 | 1581 | ROM_LOAD16_BYTE( "trop2_5.p2", 0x000001, 0x080000, CRC(665c2043) SHA1(32146abb066d50b901a110e8260c94ea4b9db4e9) ) |
| 1582 | ||
| 1582 | ||
| 1583 | 1583 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 1584 | 1584 | ROM_LOAD16_BYTE( "trop2_5d.p1", 0x000000, 0x080000, CRC(a5eac7a4) SHA1(77fa99ae3a2ee7d4856a3d9918086a471e161a91) ) // == trop2_4d.p1 ?? |
| 1585 | 1585 | ROM_END |
| r15975 | r15976 | |
| 2272 | 2272 | ROM_LOAD16_BYTE( "gge_sjh2.2d1", 0x000000, 0x080000, CRC(8a2b8ebe) SHA1(b89bf6a8778421cf891cce8274d01b168e434e68) ) |
| 2273 | 2273 | ROM_LOAD16_BYTE( "gge_sjk2.2_1", 0x000000, 0x080000, CRC(30e8d9aa) SHA1(cf70d3fb91d4f2f42af38293f218e14435f773f1) ) |
| 2274 | 2274 | ROM_LOAD16_BYTE( "gge_sjl2.2d1", 0x000000, 0x080000, CRC(f755ffda) SHA1(b53ba6d4c6dda468997d9d36e2896a9a52bf8c26) ) |
| 2275 | ||
| 2275 | ||
| 2276 | 2276 | // these just seem to be bad (sound) roms from something else |
| 2277 | 2277 | //ROM_LOAD16_BYTE( "gia_gems.p1", 0x000000, 0x080000, CRC(c841d2f7) SHA1(480397141c917bce26cfdc8ba7fa8d21ab741770) ) |
| 2278 | 2278 | //ROM_LOAD16_BYTE( "gia_gems.p2", 0x000000, 0x080000, CRC(7824adf5) SHA1(99b59d28adb80d5cf3d70691cc134eba72288f20) ) |
| r15975 | r15976 | |
| 3574 | 3574 | ROM_LOAD16_BYTE( "mmak06.p2", 0x000001, 0x080000, CRC(24ad42b1) SHA1(5189199316cf5f896fbdc00f15cf9abcba2489c6) ) |
| 3575 | 3575 | ROM_LOAD16_BYTE( "mmak06.p3", 0x100000, 0x080000, CRC(1048ceca) SHA1(f6a6790ed3c7b60cbe31db9eb1ed7da5ac81c0fd) ) // == 05 |
| 3576 | 3576 | ROM_LOAD16_BYTE( "mmak06.p4", 0x100001, 0x080000, CRC(50f7100c) SHA1(b7e0199bf183b7954416eb091a5aa8ed5c44143b) ) // == 05 |
| 3577 | ||
| 3577 | ||
| 3578 | 3578 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 3579 | 3579 | ROM_LOAD16_BYTE( "mmak06ad.p1", 0x000000, 0x080000, CRC(fe92d3b3) SHA1(70bade6ac8a524ff640923960d6b33720d10945e) ) |
| 3580 | 3580 | ROM_LOAD16_BYTE( "mmak06b.p1", 0x000000, 0x080000, CRC(4c283966) SHA1(97a6d2b7778998067f9556f412cc116999a37fae) ) |
| r15975 | r15976 | |
| 3817 | 3817 | ROM_LOAD16_BYTE( "oboj06.p6", 0x200001, 0x080000, CRC(b151d179) SHA1(0a3bfde2310478c341b5ddae142f5efc9469a51c) ) // == 02 |
| 3818 | 3818 | ROM_LOAD16_BYTE( "obtr06.p7", 0x300000, 0x080000, CRC(163ba007) SHA1(94a8618143910b63f70cd0e7339b337d6e81ef33) ) // missing but assumed the same |
| 3819 | 3819 | ROM_LOAD16_BYTE( "oboj06.p8", 0x300001, 0x080000, CRC(5de27262) SHA1(c941275ce21506ab322ac0917725409a14660011) ) // == 02 |
| 3820 | ||
| 3820 | ||
| 3821 | 3821 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 3822 | 3822 | ROM_LOAD16_BYTE( "oboj06ad.p1", 0x000000, 0x080000, CRC(ebf9d0b2) SHA1(cf1d3378d8a6e42b267a8d3e5c8f1cd48cccf3c0) ) |
| 3823 | 3823 | ROM_LOAD16_BYTE( "oboj06b.p1", 0x000000, 0x080000, CRC(bc0aaac3) SHA1(d22e9696e05fb57be8e01e0771678dec3a0d0080) ) |
| r15975 | r15976 | |
| 3962 | 3962 | ROM_LOAD16_BYTE( "patr01.p2", 0x000001, 0x080000, CRC(aacd9a52) SHA1(0bc676d9708148f02ae121185a5b4f6eae34f3d4) ) |
| 3963 | 3963 | ROM_LOAD16_BYTE( "patr01.p3", 0x100000, 0x080000, CRC(76eb81df) SHA1(6fd6376eedf74330aa2b019ad0044ce39210610a) ) // == 03 |
| 3964 | 3964 | ROM_LOAD16_BYTE( "patr01.p4", 0x100001, 0x080000, CRC(64f081ec) SHA1(22fc6ea30bb503247fe108e645c197e0fc90063a) ) // == 03 |
| 3965 | ||
| 3965 | ||
| 3966 | 3966 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 3967 | 3967 | ROM_LOAD16_BYTE( "patr01d.p1", 0x000000, 0x080000, CRC(71085bfa) SHA1(87dd1334077da967796c1847e3010de1acc8c32f) ) |
| 3968 | 3968 | ROM_LOAD16_BYTE( "patr01dy.p1", 0x000000, 0x080000, CRC(a9be6297) SHA1(b5d8b6e26d19a9af98665429d29bfcda7f3d4bfa) ) |
| r15975 | r15976 | |
| 4323 | 4323 | ROM_LOAD16_BYTE( "rttr10.p2", 0x000001, 0x080000, CRC(38066b10) SHA1(116b8dac97ed2060243e78ed94bc121076c66dfe) ) |
| 4324 | 4324 | ROM_LOAD16_BYTE( "rttr10.p3", 0x100000, 0x080000, CRC(9519dc05) SHA1(32c46c95ccedb99f1e517242bc89249020fbd66c) ) |
| 4325 | 4325 | ROM_LOAD16_BYTE( "rttr10.p4", 0x100001, 0x080000, CRC(5af465d8) SHA1(e484e495a4fe92ab6ccdfc3069ce528293d4f277) ) |
| 4326 | ||
| 4326 | ||
| 4327 | 4327 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 4328 | 4328 | ROM_LOAD16_BYTE( "rttr10ad.p1", 0x000000, 0x080000, CRC(28ebaa1a) SHA1(5f93efc9b089680cfcf854f9ce91a7fabcd0646c) ) |
| 4329 | 4329 | ROM_LOAD16_BYTE( "rttr10b.p1", 0x000000, 0x080000, CRC(05e3597f) SHA1(fe5b6f71f1dc84be90ed4c687c0f07bed7ab9fce) ) |
| r15975 | r15976 | |
| 4423 | 4423 | ROM_LOAD16_BYTE( "rhrt12.p2", 0x000001, 0x080000, CRC(9a9a9c45) SHA1(2b178bbc57a1dd8bf347002f9deb7f1690e89423) ) |
| 4424 | 4424 | ROM_LOAD16_BYTE( "rhrt12.p3", 0x100000, 0x080000, CRC(77a16da8) SHA1(1598e547b39d4fe58e8f05aea5f949d2b0a9678d) ) // == 13 |
| 4425 | 4425 | ROM_LOAD16_BYTE( "rhrt12.p4", 0x100001, 0x080000, CRC(eb880b1f) SHA1(65402cd0a5cdc95e5c3a7be2f100e1e19eb45152) ) // == 13 |
| 4426 | ||
| 4426 | ||
| 4427 | 4427 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 4428 | 4428 | ROM_LOAD16_BYTE( "rhrt12ad.p1", 0x000000, 0x080000, CRC(65d6d9dd) SHA1(d53278b0b5e8b3bcab8bc9da008b016e1b3a2dfa) ) |
| 4429 | 4429 | ROM_LOAD16_BYTE( "rhrt12b.p1", 0x000000, 0x080000, CRC(7643fca7) SHA1(03916131ce827e2b903644b1857c20dc8af6dc20) ) |
| r15975 | r15976 | |
| 4544 | 4544 | ROM_LOAD16_BYTE( "revl13.p2", 0x000001, 0x080000, CRC(44bb41e0) SHA1(3a55312369e13f007e3541e6cbe4cf0694c681a4) ) |
| 4545 | 4545 | ROM_LOAD16_BYTE( "revl13.p3", 0x100000, 0x080000, CRC(594cd05f) SHA1(6183a9e3c9c14e19245ca457a3267ceceb8490b3) ) // == 01 |
| 4546 | 4546 | ROM_LOAD16_BYTE( "revl13.p4", 0x100001, 0x080000, CRC(d80f34a2) SHA1(87d3bd9809a1fa96217e27de3778b231ef6c41a1) ) // == 01 |
| 4547 | ||
| 4547 | ||
| 4548 | 4548 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 4549 | 4549 | ROM_LOAD16_BYTE( "revl13ad.p1", 0x000000, 0x080000, CRC(48eb39a1) SHA1(c78145688c66215d971d18fcf7a5ff593efe4aff) ) |
| 4550 | 4550 | ROM_LOAD16_BYTE( "revl13b.p1", 0x000000, 0x080000, CRC(45555b0c) SHA1(6483bd52cc82f2943e261f9fd8ec0409222deb25) ) |
| r15975 | r15976 | |
| 4657 | 4657 | ROM_LOAD16_BYTE( "trgb0_1.p2", 0x000001, 0x080000, CRC(0b52162a) SHA1(41e84d3fa1f5ab148d59dadb91a1ce9690255a14) ) |
| 4658 | 4658 | ROM_LOAD16_BYTE( "trgb0_1.p3", 0x100000, 0x080000, CRC(97d97647) SHA1(2dd1af527e614703690fb3c881c88602e6f7636e) ) // == 03 |
| 4659 | 4659 | ROM_LOAD16_BYTE( "trgb0_1.p4", 0x100001, 0x080000, CRC(58a7a86f) SHA1(a5847bc90b6ae3f013b7954b6cdb379997f820c6) ) // == 03 |
| 4660 | ||
| 4660 | ||
| 4661 | 4661 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 4662 | 4662 | ROM_LOAD16_BYTE( "trgb0_1d.p1", 0x000000, 0x080000, CRC(5c3f22d9) SHA1(b5c09c5b913958ca723c6e15d29c57437e8bdf22) ) |
| 4663 | 4663 | ROM_LOAD16_BYTE( "trgb0_1f.p1", 0x000000, 0x080000, CRC(d7a4f6c6) SHA1(666b9444e3d49bfc6754c4ca93eb0ccc80fd7db3) ) |
| r15975 | r15976 | |
| 4904 | 4904 | ROM_LOAD16_BYTE( "sono05.p2", 0x000001, 0x080000, CRC(8ffae24a) SHA1(0a20ea91fb8241f9da665cc9b2bc86a66b153b8c) ) |
| 4905 | 4905 | ROM_LOAD16_BYTE( "sono05.p3", 0x100000, 0x080000, CRC(868d1a96) SHA1(0ebca6a12b1ae912d836c2ee86b555dbdf6fe16f) ) // == 01 |
| 4906 | 4906 | ROM_LOAD16_BYTE( "sono05.p4", 0x100001, 0x080000, CRC(b4a37232) SHA1(c85a185786ad5e0a0a2fb7c525f9be8c0c376d3e) ) // == 01 |
| 4907 | ||
| 4907 | ||
| 4908 | 4908 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 4909 | 4909 | ROM_LOAD16_BYTE( "sono05ad.p1", 0x000000, 0x080000, CRC(4e162d7f) SHA1(9533f8ac7ca385b9b5aeaa0767628e16a6ee8e5d) ) |
| 4910 | 4910 | ROM_LOAD16_BYTE( "sono05b.p1", 0x000000, 0x080000, CRC(d62b4d88) SHA1(6760752341091c4aeb5b908c89de7c868af4e455) ) |
| r15975 | r15976 | |
| 5006 | 5006 | ROM_LOAD16_BYTE( "sbtr02.p2", 0x000001, 0x080000, CRC(00ada2e2) SHA1(d6979b9d29d3a5da04d9d9910ca2f2af91f5531e) ) |
| 5007 | 5007 | ROM_LOAD16_BYTE( "sbtr02.p3", 0x100000, 0x080000, CRC(cbd103db) SHA1(a4b49e74a5a37c8779d9f6e960c7d904fc9b4a9a) ) // == 03 |
| 5008 | 5008 | ROM_LOAD16_BYTE( "sbtr02.p4", 0x100001, 0x080000, CRC(0d5a7af8) SHA1(14dde9f4f2437b40ad5756931bb4428b571acc2c) ) // == 03 |
| 5009 | ||
| 5009 | ||
| 5010 | 5010 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 5011 | 5011 | ROM_LOAD16_BYTE( "sbtr02ad.p1", 0x000000, 0x080000, CRC(cad3e3bd) SHA1(f6076754bcd560aaf09730bd23fb3c94138579c0) ) |
| 5012 | 5012 | ROM_LOAD16_BYTE( "sbtr02b.p1", 0x000000, 0x080000, CRC(6a3bfc70) SHA1(202d453cd3e44337168e9e023f2d5daefcbe2c6c) ) |
| r15975 | r15976 | |
| 5067 | 5067 | ROM_LOAD16_BYTE( "sqid05.p2", 0x000001, 0x080000, CRC(3a5c50cc) SHA1(082b2918fbb0718d567bc4ed1f7f03034138f5c1) ) |
| 5068 | 5068 | ROM_LOAD16_BYTE( "sqid05.p3", 0x100000, 0x080000, CRC(2808fd4a) SHA1(1f75987b42f83b54dd2eb376cc9ce0fccfbb693c) ) // == 04 |
| 5069 | 5069 | ROM_LOAD16_BYTE( "sqid05.p4", 0x100001, 0x080000, CRC(5983db8c) SHA1(1cf396ea35a6b947fd7fd827fc79e8bf2ef95811) ) // == 04 |
| 5070 | ||
| 5070 | ||
| 5071 | 5071 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 5072 | 5072 | ROM_LOAD16_BYTE( "sqid05ad.p1", 0x000000, 0x080000, CRC(15051db0) SHA1(b4cfb41aa9f218144511e5e54630c67d8fd744c5) ) |
| 5073 | 5073 | ROM_LOAD16_BYTE( "sqid05b.p1", 0x000000, 0x080000, CRC(6ea2eb9e) SHA1(28a1c92688daf90a8363798d797035b661282189) ) |
| r15975 | r15976 | |
| 5672 | 5672 | ROM_LOAD16_BYTE( "ultr03.p2", 0x000001, 0x080000, CRC(b78b8f57) SHA1(ce1c20e8a97727c2b37983edb47c0603ac21a59a) ) |
| 5673 | 5673 | ROM_LOAD16_BYTE( "ultr03.p3", 0x100000, 0x080000, CRC(bfc649eb) SHA1(85f31848918e35385ab96cbadadbc33ddb1e42b1) ) // == 03 |
| 5674 | 5674 | ROM_LOAD16_BYTE( "ultr03.p4", 0x100001, 0x080000, CRC(8579127e) SHA1(5ba966008c0f7b4c910eddc6400ed2178c70e096) ) // == 03 |
| 5675 | ||
| 5675 | ||
| 5676 | 5676 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 5677 | 5677 | ROM_LOAD16_BYTE( "ultr03ad.p1", 0x000000, 0x080000, CRC(94e18680) SHA1(80e7024464abff00a880c0f88f2b336e168ad025) ) |
| 5678 | 5678 | ROM_LOAD16_BYTE( "ultr03b.p1", 0x000000, 0x080000, CRC(8c66b958) SHA1(cd6a5c931bb432169ffe337ca6b2ffdd08d3fc5a) ) |
| r15975 | r15976 | |
| 5830 | 5830 | ROM_LOAD16_BYTE( "xfac1_1.p1", 0x000000, 0x080000, CRC(f3303449) SHA1(61284a5e950df86efc72aef436b81a80a8370380) ) |
| 5831 | 5831 | ROM_LOAD16_BYTE( "xfac1_1.p2", 0x000001, 0x080000, CRC(c1508630) SHA1(1ad9f38ddef32bc5a64db434c681b06967edd988) ) |
| 5832 | 5832 | /* 3+4 */ |
| 5833 | ||
| 5833 | ||
| 5834 | 5834 | ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */ |
| 5835 | 5835 | ROM_LOAD16_BYTE( "xfac1_1d.p1", 0x000000, 0x080000, CRC(ffbcb9f2) SHA1(a57760ff5b092d7550a5b2d69065782cbdd056e4) ) |
| 5836 | 5836 | ROM_END |
| r15975 | r15976 | |
|---|---|---|
| 403 | 403 | MCFG_SOUND_ADD("sn1", SN76496_NEW, BOOTLEG_CLOCK/8) |
| 404 | 404 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 405 | 405 | MCFG_SOUND_CONFIG(psg_intf) |
| 406 | ||
| 406 | ||
| 407 | 407 | MCFG_SOUND_ADD("sn2", SN76496_NEW, BOOTLEG_CLOCK/8) |
| 408 | 408 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 409 | 409 | MCFG_SOUND_CONFIG(psg_intf) |
| 410 | ||
| 410 | ||
| 411 | 411 | MCFG_SOUND_ADD("sn3", SN76496_NEW, BOOTLEG_CLOCK/8) |
| 412 | 412 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 413 | 413 | MCFG_SOUND_CONFIG(psg_intf) |
| r15975 | r15976 | |
|---|---|---|
| 441 | 441 | AM_RANGE(0x000000, 0x1fffff) AM_ROM |
| 442 | 442 | AM_RANGE(0x200000, 0x20ffff) AM_RAM // Work RAM - [A] grid tested, cleared ($9d6-$a54) |
| 443 | 443 | |
| 444 | AM_RANGE(0x300000, 0x30ffff) AM_DEVREADWRITE( "toybox", kaneko_toybox_device, toybox_mcu_ram_r, toybox_mcu_ram_w )// [G] MCU share | |
| 445 | AM_RANGE(0x330000, 0x330001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com0_w) | |
| 446 | AM_RANGE(0x340000, 0x340001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com1_w) | |
| 447 | AM_RANGE(0x350000, 0x350001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com2_w) | |
| 448 | AM_RANGE(0x360000, 0x360001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com3_w) | |
| 444 | AM_RANGE(0x300000, 0x30ffff) AM_DEVREADWRITE( "toybox", kaneko_toybox_device, toybox_mcu_ram_r, toybox_mcu_ram_w )// [G] MCU share | |
| 445 | AM_RANGE(0x330000, 0x330001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com0_w) | |
| 446 | AM_RANGE(0x340000, 0x340001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com1_w) | |
| 447 | AM_RANGE(0x350000, 0x350001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com2_w) | |
| 448 | AM_RANGE(0x360000, 0x360001) AM_DEVWRITE( "toybox", kaneko_toybox_device, toybox_mcu_com3_w) | |
| 449 | 449 | AM_RANGE(0x370000, 0x370001) AM_DEVREAD( "toybox", kaneko_toybox_device, toybox_mcu_status_r) |
| 450 | 450 | |
| 451 | 451 | AM_RANGE(0x400000, 0x403fff) AM_RAM AM_SHARE("mainsub_shared") |
| r15975 | r15976 | |
|---|---|---|
| 325 | 325 | MCFG_SOUND_ADD("sn1", SN76489_NEW, MASTER_CLOCK/6) |
| 326 | 326 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 327 | 327 | MCFG_SOUND_CONFIG(psg_intf) |
| 328 | ||
| 328 | ||
| 329 | 329 | MCFG_SOUND_ADD("sn2", SN76489_NEW, MASTER_CLOCK/6) |
| 330 | 330 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 331 | 331 | MCFG_SOUND_CONFIG(psg_intf) |
| 332 | ||
| 332 | ||
| 333 | 333 | MCFG_SOUND_ADD("sn3", SN76489_NEW, MASTER_CLOCK/6) |
| 334 | 334 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) |
| 335 | 335 | MCFG_SOUND_CONFIG(psg_intf) |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(atari_s2); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 1756 | 1756 | There's an external sound board. No ROMs on it but there's an NEC D78P014 MCU(?) |
| 1757 | 1757 | and an Altera FPGA and other sound related stuff, plus a Sony CXD1178Q (RGBDAC?) |
| 1758 | 1758 | |
| 1759 | The game boots here to a message screen and complains and won't go further. | |
| 1759 | The game boots here to a message screen and complains and won't go further. | |
| 1760 | 1760 | Probably the external sound PCB is required to boot up. |
| 1761 | 1761 | It's missing the special cable so I can't connect it. |
| 1762 | 1762 | |
| r15975 | r15976 | |
| 1794 | 1794 | |
| 1795 | 1795 | ROM_REGION( 0x400000, "gfx3", 0 ) // 16x16x8 (Rotation) |
| 1796 | 1796 | ROM_LOAD( "mr97032-01.ic2", 0x000000, 0x400000, CRC(18c1a394) SHA1(491a2eb190efb5684f5eddb317adacd55afa727c) ) |
| 1797 | ||
| 1797 | ||
| 1798 | 1798 | ROM_REGION( 0x100000, "gfx4", 0 ) // 8x8x8 (Foreground) |
| 1799 | 1799 | ROM_LOAD( "mr97032-03.ic8", 0x000000, 0x100000, CRC(5678a378) SHA1(306a3238590fa6e274e3c2ad334f5f210738dd7d) ) |
| 1800 | 1800 |
| r15975 | r15976 | |
|---|---|---|
| 2580 | 2580 | DRIVER_INIT_MEMBER(ssv_state,hypreac2) { init_ssv(machine(), 0); init_hypreac2_common(machine()); } |
| 2581 | 2581 | DRIVER_INIT_MEMBER(ssv_state,janjans1) { init_ssv(machine(), 0); } |
| 2582 | 2582 | DRIVER_INIT_MEMBER(ssv_state,keithlcy) { init_ssv(machine(), 0); } |
| 2583 | DRIVER_INIT_MEMBER(ssv_state,meosism) { init_ssv(machine(), 0); } | |
| 2584 | DRIVER_INIT_MEMBER(ssv_state,mslider) { init_ssv(machine(), 0); } | |
| 2585 | DRIVER_INIT_MEMBER(ssv_state,ryorioh) { init_ssv(machine(), 0); } | |
| 2583 | DRIVER_INIT_MEMBER(ssv_state,meosism) { init_ssv(machine(), 0); } | |
| 2584 | DRIVER_INIT_MEMBER(ssv_state,mslider) { init_ssv(machine(), 0); } | |
| 2585 | DRIVER_INIT_MEMBER(ssv_state,ryorioh) { init_ssv(machine(), 0); } | |
| 2586 | 2586 | DRIVER_INIT_MEMBER(ssv_state,srmp4) { init_ssv(machine(), 0); |
| 2587 | 2587 | // ((UINT16 *)machine().root_device().memregion("user1")->base())[0x2b38/2] = 0x037a; /* patch to see gal test mode */ |
| 2588 | } | |
| 2588 | } | |
| 2589 | 2589 | DRIVER_INIT_MEMBER(ssv_state,srmp7) { init_ssv(machine(), 0); } |
| 2590 | 2590 | DRIVER_INIT_MEMBER(ssv_state,stmblade) { init_ssv(machine(), 0); init_st010(machine()); } |
| 2591 | 2591 | DRIVER_INIT_MEMBER(ssv_state,survarts) { init_ssv(machine(), 0); } |
| r15975 | r15976 | |
| 2594 | 2594 | DRIVER_INIT_MEMBER(ssv_state,cairblad) { init_ssv(machine(), 0); init_hypreac2_common(machine()); } |
| 2595 | 2595 | DRIVER_INIT_MEMBER(ssv_state,sxyreac2) { init_ssv(machine(), 0); init_hypreac2_common(machine()); } |
| 2596 | 2596 | DRIVER_INIT_MEMBER(ssv_state,twineag2) { init_ssv(machine(), 1); init_st010(machine()); } |
| 2597 | DRIVER_INIT_MEMBER(ssv_state,ultrax) { init_ssv(machine(), 1); } | |
| 2598 | DRIVER_INIT_MEMBER(ssv_state,vasara) { init_ssv(machine(), 0); } | |
| 2597 | DRIVER_INIT_MEMBER(ssv_state,ultrax) { init_ssv(machine(), 1); } | |
| 2598 | DRIVER_INIT_MEMBER(ssv_state,vasara) { init_ssv(machine(), 0); } | |
| 2599 | 2599 | DRIVER_INIT_MEMBER(ssv_state,jsk) { init_ssv(machine(), 0); } |
| 2600 | 2600 | |
| 2601 | 2601 |
| r15975 | r15976 | |
|---|---|---|
| 229 | 229 | * Sound interface |
| 230 | 230 | * |
| 231 | 231 | *************************************/ |
| 232 | ||
| 233 | ||
| 232 | ||
| 233 | ||
| 234 | 234 | //------------------------------------------------- |
| 235 | 235 | // sn76496_config psg_intf |
| 236 | 236 | //------------------------------------------------- |
| r15975 | r15976 | |
| 307 | 307 | MCFG_SOUND_ADD("sn1", SN76489A_NEW, XTAL/8) |
| 308 | 308 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) |
| 309 | 309 | MCFG_SOUND_CONFIG(psg_intf) |
| 310 | ||
| 310 | ||
| 311 | 311 | MCFG_SOUND_ADD("sn2", SN76489A_NEW, CLK) |
| 312 | 312 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60) |
| 313 | 313 | MCFG_SOUND_CONFIG(psg_intf) |
| r15975 | r15976 | |
|---|---|---|
| 1755 | 1755 | m_generic_speedup = machine().device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(speedup, speedup + 1, read32_delegate(FUNC(midvunit_state::generic_speedup_r),this)); |
| 1756 | 1756 | } |
| 1757 | 1757 | DRIVER_INIT_MEMBER(midvunit_state,crusnwld) { init_crusnwld_common(0xd4c0); } |
| 1758 | #if 0 | |
| 1758 | #if 0 | |
| 1759 | 1759 | DRIVER_INIT_MEMBER(midvunit_state,crusnw20) { init_crusnwld_common(0xd49c); } |
| 1760 | 1760 | DRIVER_INIT_MEMBER(midvunit_state,crusnw13) { init_crusnwld_common(0); } |
| 1761 | 1761 | #endif |
| r15975 | r15976 | |
|---|---|---|
| 704 | 704 | ROM_END |
| 705 | 705 | |
| 706 | 706 | GAME( 2000, hikaru, 0, hikaru, hikaru, driver_device, 0, ROT0, "Sega", "Hikaru Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT ) |
| 707 | GAME( 1999, braveff, hikaru, hikaru, hikaru, driver_device, 0, ROT0, "Sega", "Brave Fire Fighters", GAME_NO_SOUND|GAME_NOT_WORKING | |
| 707 | GAME( 1999, braveff, hikaru, hikaru, hikaru, driver_device, 0, ROT0, "Sega", "Brave Fire Fighters", GAME_NO_SOUND|GAME_NOT_WORKING | |
| 708 | 708 | GAME( 2000, airtrix, hikaru, hikaru, hikaru, driver_device, 0, ROT0, "Sega", "Air Trix", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 709 | 709 | GAME( 2000, sgnascar, hikaru, hikaru, hikaru, driver_device, 0, ROT0, "Sega / Electronic Arts", "NASCAR Racing", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| 710 | 710 | GAME( 2001, pharrier, hikaru, hikaru, hikaru, driver_device, 0, ROT0, "Sega", "Planet Harriers", GAME_NO_SOUND|GAME_NOT_WORKING ) |
| r15975 | r15976 | |
|---|---|---|
| 235 | 235 | * Sound interface |
| 236 | 236 | * |
| 237 | 237 | *************************************/ |
| 238 | ||
| 239 | ||
| 238 | ||
| 239 | ||
| 240 | 240 | //------------------------------------------------- |
| 241 | 241 | // sn76496_config psg_intf |
| 242 | 242 | //------------------------------------------------- |
| r15975 | r15976 | |
| 327 | 327 | MCFG_SOUND_ADD("sn1", SN76489_NEW, XTAL_3_579545MHz) /* verified on pcb */ |
| 328 | 328 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 329 | 329 | MCFG_SOUND_CONFIG(psg_intf) |
| 330 | ||
| 330 | ||
| 331 | 331 | MCFG_SOUND_ADD("sn2", SN76489_NEW, XTAL_3_579545MHz) /* verified on pcb */ |
| 332 | 332 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 333 | 333 | MCFG_SOUND_CONFIG(psg_intf) |
| r15975 | r15976 | |
|---|---|---|
| 153 | 153 | int i,spr_offs,x,y,col,fx,fy; |
| 154 | 154 | |
| 155 | 155 | /* |
| 156 | [+0] ---- -x-- flip X | |
| 157 | [+0] ---- --x- flip Y | |
| 158 | [+0] ---- ---x enable this sprite | |
| 159 | [+1] tile number | |
| 160 | [+2] y coord | |
| 161 | [+3] x coord | |
| 162 | */ | |
| 156 | [+0] ---- -x-- flip X | |
| 157 | [+0] ---- --x- flip Y | |
| 158 | [+0] ---- ---x enable this sprite | |
| 159 | [+1] tile number | |
| 160 | [+2] y coord | |
| 161 | [+3] x coord | |
| 162 | */ | |
| 163 | 163 | |
| 164 | 164 | for(i=0;i<0x20;i+=4) |
| 165 | 165 | { |
| r15975 | r15976 | |
| 464 | 464 | MCFG_CPU_PROGRAM_MAP(rblaster_sound_map) |
| 465 | 465 | MCFG_CPU_PERIODIC_INT(sound_interrupt, 640) |
| 466 | 466 | |
| 467 | // | |
| 467 | // MCFG_QUANTUM_TIME(attotime::from_hz(6000)) | |
| 468 | 468 | |
| 469 | 469 | MCFG_LASERDISC_LDV1000_ADD("laserdisc") //Sony LDP-1000A, is it truly compatible with the Pioneer? |
| 470 | 470 | MCFG_LASERDISC_OVERLAY_STATIC(256, 256, rblaster) |
| r15975 | r15976 | |
|---|---|---|
| 88 | 88 | m_spriteram4(*this, "spriteram4"), |
| 89 | 89 | m_spriteram5(*this, "spriteram5"), |
| 90 | 90 | m_spriteram6(*this, "spriteram6"), |
| 91 | m_spriteram7(*this, "spriteram7") | |
| 92 | { | |
| 91 | m_spriteram7(*this, "spriteram7") | |
| 92 | { | |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | required_shared_ptr<UINT16> m_tilemapram; |
| r15975 | r15976 | |
| 186 | 186 | base += page * 2; |
| 187 | 187 | |
| 188 | 188 | /* ---- ---- ---x xxxx |
| 189 | ||
| 189 | xxxx ---y yyyy yyyy */ | |
| 190 | 190 | |
| 191 | 191 | int xx= ((state->m_spriteram[0][base+0]&0x001f)<<4) | (state->m_spriteram[0][base+1]&0xf000)>>12; |
| 192 | 192 | int yy = ((state->m_spriteram[0][base+1]&0x1ff)); |
| r15975 | r15976 | |
| 202 | 202 | for (int y=0;y<32;y++) |
| 203 | 203 | { |
| 204 | 204 | /* -Xtt tttt tttt tttt |
| 205 | ||
| 205 | ---- ---- cccc cccc */ | |
| 206 | 206 | |
| 207 | 207 | UINT16 tile = (base2[y*2+1]&0x3fff); |
| 208 | 208 | UINT16 flipx = (base2[y*2+1]&0x4000); |
| r15975 | r15976 | |
|---|---|---|
| 464 | 464 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 465 | 465 | ROM_LOAD( "bx8t10n6.bin", 0x0000, 0x008000, CRC(829dcc99) SHA1(014b53999becb241a3fcd34e802be8b58bfeb3c4) ) |
| 466 | 466 | ROM_END |
| 467 | ||
| 467 | ||
| 468 | 468 | ROM_START( pr_bearxl ) |
| 469 | 469 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 470 | 470 | ROM_LOAD( "p_bx41.bin", 0x0000, 0x008000, CRC(e9212049) SHA1(215038324baa928b3c41495e78a2be68c8a1a767) )//bx1c20n7.bin |
| r15975 | r15976 | |
| 585 | 585 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 586 | 586 | ROM_LOAD( "7h10p3c_380.bin", 0x0000, 0x010000, CRC(9fafd2a1) SHA1(7da1fa02005e0e232b7bb01088b180c32f271b00) )//10p 3 pound cash rom 380 |
| 587 | 587 | ROM_END |
| 588 | ||
| 588 | ||
| 589 | 589 | ROM_START( pr_7hvnd ) |
| 590 | 590 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 591 | 591 | ROM_LOAD( "7775prb", 0x0000, 0x010000, CRC(cc6cb41e) SHA1(7b9e4d9cfdb4071c83081a1306ffa7e0be3938aa) )//5p 3 pound cash 105 |
| 592 | 592 | ROM_END |
| 593 | ||
| 593 | ||
| 594 | 594 | ROM_START( pr_7hvne ) |
| 595 | 595 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 596 | 596 | ROM_LOAD( "777 heaven 892a20pn-390 (27256)", 0x0000, 0x008000, CRC(ffd1a8e0) SHA1(4b3a72c855d5b28d8be5db13166c58a44a1cbb59) ) |
| 597 | 597 | ROM_END |
| 598 | ||
| 598 | ||
| 599 | 599 | ROM_START( pr_7hvnf ) |
| 600 | 600 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 601 | 601 | ROM_LOAD( "777 heaven 892a10pn-380 (27256)", 0x0000, 0x008000, CRC(ca9d2108) SHA1(ebbb54c6640c67ce905a2dbf83f9f2fde31d342f) ) |
| r15975 | r15976 | |
| 676 | 676 | ROM_LOAD( "cl7h1020", 0x0000, 0x010000, CRC(b12e3219) SHA1(634f6984d9ef6ef9964841b5586143d82d8b52f7) ) |
| 677 | 677 | ROM_END |
| 678 | 678 | |
| 679 | ||
| 679 | ||
| 680 | 680 | ROM_START( pr_alwy9 ) |
| 681 | 681 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 682 | 682 | ROM_LOAD( "always 9 10p.bin", 0x0000, 0x010000, CRC(aff337c0) SHA1(a335a857c1bba696150d51cabfd39a2996c1092f) ) |
| r15975 | r15976 | |
| 696 | 696 | ROM_REGION( 0x80000, "snd", 0 )\ |
| 697 | 697 | ROM_LOAD( "080snd1.bin", 0x0000, 0x020000, CRC(011170ab) SHA1(60a174c09261c2ee230c4194d918173b41f267de) )\ |
| 698 | 698 | ROM_LOAD( "080snd2.bin", 0x020000, 0x020000, CRC(9189793b) SHA1(b47a3c214eb01595581f1e9d18c154560ee02ca1) )\ |
| 699 | ||
| 699 | ||
| 700 | 700 | ROM_START( pr_batls ) |
| 701 | 701 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 702 | 702 | ROM_LOAD( "batt72c", 0x0000, 0x010000, CRC(6c6ab1f1) SHA1(6e0663fcdfa1948d9d74b6df388d09fed73f0ed2) ) |
| r15975 | r15976 | |
| 757 | 757 | ROM_REGION( 0x80000, "snd", 0 )\ |
| 758 | 758 | ROM_LOAD( "010snd1 316e.bin" , 0x0000, 0x020000, CRC(5e3cfdc6) SHA1(32db10e7bacc6a4728d8821e77789cf146e2a277) )\ |
| 759 | 759 | ROM_LOAD( "010snd2 9e9a.bin" , 0x0000, 0x020000, CRC(496a9d51) SHA1(703631d3cb2e3c7fa676cb5a31903bf39ee6c44f) )\ |
| 760 | ||
| 761 | ||
| 760 | ||
| 761 | ||
| 762 | 762 | ROM_START( pr_bulls ) |
| 763 | 763 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 764 | 764 | ROM_LOAD( "beye58c", 0x0000, 0x010000, CRC(5fc52311) SHA1(dd4d3f29ec608c37d3d644bfbfa3ba06cc134b59) ) |
| r15975 | r15976 | |
| 833 | 833 | ROM_REGION( 0x80000, "snd", 0 )\ |
| 834 | 834 | ROM_LOAD( "006snd1.000", 0x0000, 0x020000, CRC(f906857a) SHA1(cfa47a3e887e6788c577d31bb567f7fbaaf0bbf3) )\ |
| 835 | 835 | ROM_LOAD( "006snd2.000", 0x0000, 0x020000, CRC(8445d0ef) SHA1(fd2ecc96f74e99e8f5ea7c7772fbd451ce52e889) )\ |
| 836 | ||
| 836 | ||
| 837 | 837 | ROM_START( pr_chico ) |
| 838 | 838 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 839 | 839 | ROM_LOAD( "006a20pn.810", 0x0000, 0x010000, CRC(c4b491b7) SHA1(7629857cf6f1f69fb9ccf82a290a491cf695d373) ) |
| r15975 | r15976 | |
| 844 | 844 | ROM_START( pr_chicoa ) |
| 845 | 845 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 846 | 846 | ROM_LOAD( "006a25pn.810", 0x0000, 0x010000, CRC(d765215c) SHA1(22fe8d4b387e9fbc34a72ea1583b1c040f7761bc) ) |
| 847 | ||
| 847 | ||
| 848 | 848 | pr_chico_sound |
| 849 | 849 | ROM_END |
| 850 | 850 | |
| 851 | 851 | ROM_START( pr_chicob ) |
| 852 | 852 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 853 | ROM_LOAD( "chic8c", 0x0000, 0x010000, CRC(2d5628be) SHA1(0c3f60f72a4d4eb458cac8ca4fe7d5584cbe4f18) ) | |
| 853 | ROM_LOAD( "chic8c", 0x0000, 0x010000, CRC(2d5628be) SHA1(0c3f60f72a4d4eb458cac8ca4fe7d5584cbe4f18) ) | |
| 854 | 854 | |
| 855 | 855 | pr_chico_sound |
| 856 | 856 | ROM_END |
| r15975 | r15976 | |
| 867 | 867 | ROM_START( pr_coolma ) |
| 868 | 868 | ROM_REGION( 0x80000, "maincpu", 0 ) |
| 869 | 869 | ROM_LOAD( "cm5pndan", 0x0000, 0x010000, CRC(e0697fe6) SHA1(d4b66272030dd64c86834f0546376dd02cfb0cc4) ) |
| 870 | ||
| 870 | ||
| 871 | 871 | ROM_REGION( 0x80000, "snd", 0 ) |
| 872 | 872 | ROM_LOAD( "cmsnd.bin", 0x0000, 0x080000, CRC(db79a326) SHA1(afe19eaa5d63c871ed80ffdfc8fb991a8c16cb36) ) |
| 873 | 873 | ROM_END |
| r15975 | r15976 | |
|---|---|---|
| 2 | 2 | - these are Bwb originals, not rebuilds.. |
| 3 | 3 | typically they have large 0x3f fills in rom.. |
| 4 | 4 | some have information about the various set |
| 5 | types in unused areas | |
| 5 | types in unused areas | |
| 6 | 6 | |
| 7 | 7 | some QPS sets also have large 0x3f fills but |
| 8 | 8 | seem to be unrelated. |
| r15975 | r15976 | |
| 1181 | 1181 | M4XS_SET( 199?, m4xs__e, m4xs, "es_49bmd.3_0", 0x0000, 0x020000, CRC(1150e499) SHA1(25d2c37e5287f73d2b11608c50f21072422850f0), "Bwb","X-s (Bwb) (MPU4) (set 6)" ) |
| 1182 | 1182 | M4XS_SET( 199?, m4xs__f, m4xs, "es_sja__.3_0", 0x0000, 0x020000, CRC(5909092d) SHA1(64df6ad5ba5ac74592b525af2f4cab8a092a5766), "Bwb","X-s (Bwb) (MPU4) (set 7)" ) |
| 1183 | 1183 | |
| 1184 | ||
| 1184 | ||
| 1185 | 1185 | #define M4XTRM_EXTRA_ROMS \ |
| 1186 | 1186 | ROM_REGION( 0x200000, "msm6376", ROMREGION_ERASE00 ) \ |
| 1187 | 1187 | /* missing? */ \ |
| r15975 | r15976 | |
|---|---|---|
| 1566 | 1566 | |
| 1567 | 1567 | |
| 1568 | 1568 | |
| 1569 | GAME( 1987, srmp1, 0, srmp2, srmp2, driver_device, 0, ROT0, "Seta", "Super Real Mahjong Part 1 (Japan)", 0 ) | |
| 1570 | GAME( 1987, srmp2, 0, srmp2, srmp2, driver_device, 0, ROT0, "Seta", "Super Real Mahjong Part 2 (Japan)", 0 ) | |
| 1571 | GAME( 1988, srmp3, 0, srmp3, srmp3, driver_device, 0, ROT0, "Seta", "Super Real Mahjong Part 3 (Japan)", 0 ) | |
| 1569 | GAME( 1987, srmp1, 0, srmp2, srmp2, driver_device, 0, ROT0, "Seta", "Super Real Mahjong Part 1 (Japan)", 0 ) | |
| 1570 | GAME( 1987, srmp2, 0, srmp2, srmp2, driver_device, 0, ROT0, "Seta", "Super Real Mahjong Part 2 (Japan)", 0 ) | |
| 1571 | GAME( 1988, srmp3, 0, srmp3, srmp3, driver_device, 0, ROT0, "Seta", "Super Real Mahjong Part 3 (Japan)", 0 ) | |
| 1572 | 1572 | GAME( 1988, rmgoldyh, srmp3, rmgoldyh, rmgoldyh, driver_device, 0, ROT0, "Seta (Alba license)", "Real Mahjong Gold Yumehai / Super Real Mahjong GOLD part.2 [BET] (Japan)", 0 ) |
| 1573 | 1573 | GAME( 1990, mjyuugi, 0, mjyuugi, mjyuugi, driver_device, 0, ROT0, "Visco", "Mahjong Yuugi (Japan set 1)", 0 ) |
| 1574 | 1574 | GAME( 1990, mjyuugia, mjyuugi, mjyuugi, mjyuugi, driver_device, 0, ROT0, "Visco", "Mahjong Yuugi (Japan set 2)", 0 ) |
| r15975 | r15976 | |
|---|---|---|
| 126 | 126 | |
| 127 | 127 | GAME( 1977, httip_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "Hot Tip (L-1)", GAME_IS_SKELETON_MECHANICAL) |
| 128 | 128 | GAME( 1977, lucky_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "Lucky Seven (L-1)", GAME_IS_SKELETON_MECHANICAL) |
| 129 | GAME( 1978, wldcp_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "World Cup Soccer (L-1)", | |
| 129 | GAME( 1978, wldcp_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "World Cup Soccer (L-1)", | |
| 130 | 130 | GAME( 1978, cntct_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "Contact (L-1)", GAME_IS_SKELETON_MECHANICAL) |
| 131 | 131 | GAME( 1978, disco_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "Disco Fever (L-1)", GAME_IS_SKELETON_MECHANICAL) |
| r15975 | r15976 | |
|---|---|---|
| 72 | 72 | 400000-400003: OKI M9810 |
| 73 | 73 | 600000-61ffff: VRAM |
| 74 | 74 | 620000-620005: video registers |
| 75 | ||
| 75 | ||
| 76 | 76 | I/O map: |
| 77 | 77 | port 1: player 2 inputs |
| 78 | ||
| 78 | ||
| 79 | 79 | port 2 bit 3: must be "1" to avoid SERVICE ERROR |
| 80 | 80 | port 2 bit 6: FPGA chip select |
| 81 | 81 | port 2 bit 7: FPGA clock in |
| r15975 | r15976 | |
| 86 | 86 | port 3 bit 3: EEPROM clock |
| 87 | 87 | port 3 bit 4: EEPROM data to EEPROM |
| 88 | 88 | port 3 bit 5: EEPROM data from EEPROM |
| 89 | ||
| 89 | ||
| 90 | 90 | port 4: player 1 inputs |
| 91 | ||
| 91 | ||
| 92 | 92 | port 6 bit 3: FPGA data bit in |
| 93 | 93 | |
| 94 | 94 | port G bit 0: watchdog (toggled each frame) |
| r15975 | r15976 | |
| 273 | 273 | AM_RANGE(H8_PORT_2, H8_PORT_2) AM_READ_PORT("SYSTEM") AM_WRITENOP |
| 274 | 274 | AM_RANGE(H8_PORT_3, H8_PORT_3) AM_READWRITE(port3_r, port3_w) |
| 275 | 275 | AM_RANGE(H8_PORT_4, H8_PORT_4) AM_READ_PORT("P4") |
| 276 | AM_RANGE(H8_PORT_5, H8_PORT_5) AM_READWRITE(port5_r, port5_w) | |
| 277 | AM_RANGE(H8_PORT_6, H8_PORT_6) AM_READWRITE(port6_r, port6_w) | |
| 276 | AM_RANGE(H8_PORT_5, H8_PORT_5) AM_READWRITE(port5_r, port5_w) | |
| 277 | AM_RANGE(H8_PORT_6, H8_PORT_6) AM_READWRITE(port6_r, port6_w) | |
| 278 | 278 | AM_RANGE(H8_PORT_A, H8_PORT_A) AM_READ(porta_r) |
| 279 | 279 | AM_RANGE(H8_PORT_G, H8_PORT_G) AM_READ(portg_r) AM_WRITENOP |
| 280 | 280 | ADDRESS_MAP_END |
| r15975 | r15976 | |
| 297 | 297 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2) |
| 298 | 298 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 299 | 299 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) |
| 300 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Right 2 players start") // start B-2 | |
| 300 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START4 ) PORT_NAME("Right 2 players start") // start B-2 | |
| 301 | 301 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 302 | ||
| 302 | ||
| 303 | 303 | PORT_START("P4") |
| 304 | 304 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1) |
| 305 | 305 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1) |
| r15975 | r15976 | |
|---|---|---|
| 574 | 574 | { |
| 575 | 575 | /* |
| 576 | 576 | Emulating IGT IDO22 Pulse Protocol (IGT Smoke 2.2) |
| 577 | ID022 protocol requires a 20ms on/off pulse x times for denomination followed by a 50ms stop pulse. | |
| 578 | The DBV then waits for at least 3 toggling (ACK) pulses of alternating 20ms each from the game. | |
| 579 | If no toggling received within 200ms, the bill was rejected by the game (e.g. Max Credits reached). | |
| 580 | Once toggling received, the DBV stacks the bill and sends two 10ms stacked pulses separated by a 10ms pause. | |
| 577 | ID022 protocol requires a 20ms on/off pulse x times for denomination followed by a 50ms stop pulse. | |
| 578 | The DBV then waits for at least 3 toggling (ACK) pulses of alternating 20ms each from the game. | |
| 579 | If no toggling received within 200ms, the bill was rejected by the game (e.g. Max Credits reached). | |
| 580 | Once toggling received, the DBV stacks the bill and sends two 10ms stacked pulses separated by a 10ms pause. | |
| 581 | 581 | |
| 582 | 582 | TODO: Will need to include IGT IDO23 (IGT 2.5) for Superboard games. |
| 583 | 583 | PE+ bill validators have a dip switch setting to switch between ID-022 and ID-023 protocols. |
| r15975 | r15976 | |
| 614 | 614 | // Fetch Current Denomination |
| 615 | 615 | m_bv_denomination = ioport("BC")->read(); |
| 616 | 616 | |
| 617 | m_bv_cycles = curr_cycles; | |
| 617 | m_bv_cycles = curr_cycles; | |
| 618 | 618 | m_bv_pulse = 1; |
| 619 | 619 | |
| 620 | 620 | if (m_bv_denomination == 0) |
| r15975 | r15976 | |
| 623 | 623 | m_bv_state = 1; // Greater than $1 Needs Credit Pulse |
| 624 | 624 | } |
| 625 | 625 | } |
| 626 | ||
| 626 | ||
| 627 | 627 | switch (m_bv_state) |
| 628 | 628 | { |
| 629 | 629 | case 0x00: // Not Active |
| r15975 | r15976 | |
| 642 | 642 | m_bv_pulse = 1; |
| 643 | 643 | |
| 644 | 644 | m_bv_denomination--; |
| 645 | ||
| 645 | ||
| 646 | 646 | if (m_bv_denomination == 0) |
| 647 | 647 | m_bv_state++; // Done with Credit Pulse |
| 648 | 648 | else |
| r15975 | r15976 | |
|---|---|---|
| 474 | 474 | UINT16 v = 0x3ff1; |
| 475 | 475 | |
| 476 | 476 | UINT8 x = 1; |
| 477 | ||
| 477 | ||
| 478 | 478 | for (UINT32 it = 0; it < size;) |
| 479 | 479 | { |
| 480 | 480 | int t0 = t & 1; |
| r15975 | r15976 | |
|---|---|---|
| 115 | 115 | static MACHINE_RESET( segac2 ) |
| 116 | 116 | { |
| 117 | 117 | segac2_state *state = machine.driver_data<segac2_state>(); |
| 118 | // | |
| 118 | // megadriv_framerate = 60; | |
| 119 | 119 | |
| 120 | 120 | |
| 121 | // megadriv_scanline_timer = machine.device<timer_device>("md_scan_timer"); | |
| 122 | // megadriv_scanline_timer->adjust(attotime::zero); | |
| 121 | // megadriv_scanline_timer = machine.device<timer_device>("md_scan_timer"); | |
| 122 | // megadriv_scanline_timer->adjust(attotime::zero); | |
| 123 | 123 | segac2_bg_pal_lookup[0] = 0x00; |
| 124 | 124 | segac2_bg_pal_lookup[1] = 0x10; |
| 125 | 125 | segac2_bg_pal_lookup[2] = 0x20; |
| r15975 | r15976 | |
| 236 | 236 | /* set the color */ |
| 237 | 237 | palette_set_color_rgb(space->machine(), offset, pal5bit(r), pal5bit(g), pal5bit(b)); |
| 238 | 238 | |
| 239 | // megadrive_vdp_palette_lookup[offset] = (b) | (g << 5) | (r << 10); | |
| 240 | // megadrive_vdp_palette_lookup_sprite[offset] = (b) | (g << 5) | (r << 10); | |
| 239 | // megadrive_vdp_palette_lookup[offset] = (b) | (g << 5) | (r << 10); | |
| 240 | // megadrive_vdp_palette_lookup_sprite[offset] = (b) | (g << 5) | (r << 10); | |
| 241 | 241 | |
| 242 | 242 | tmpr = r >> 1; |
| 243 | 243 | tmpg = g >> 1; |
| r15975 | r15976 | |
| 1274 | 1274 | } |
| 1275 | 1275 | |
| 1276 | 1276 | // C2 doesn't use the internal VDP CRAM, instead it uses the digital output of the chip |
| 1277 | // and applies it's own external colour circuity | |
| 1277 | // and applies it's own external colour circuity | |
| 1278 | 1278 | static SCREEN_UPDATE_RGB32(segac2_new) |
| 1279 | 1279 | { |
| 1280 | 1280 | const pen_t *paldata = screen.machine().pens; |
| r15975 | r15976 | |
| 1292 | 1292 | { |
| 1293 | 1293 | UINT32* desty = &bitmap.pix32(y, 0); |
| 1294 | 1294 | UINT16* srcy; |
| 1295 | ||
| 1295 | ||
| 1296 | 1296 | srcy = vdp->m_render_line_raw; |
| 1297 | 1297 | |
| 1298 | 1298 | for (int x = cliprect.min_x; x <= cliprect.max_x; x++) |
| r15975 | r15976 | |
| 1373 | 1373 | MCFG_MACHINE_RESET(segac2) |
| 1374 | 1374 | MCFG_NVRAM_ADD_RANDOM_FILL("nvram") |
| 1375 | 1375 | |
| 1376 | // | |
| 1376 | // MCFG_FRAGMENT_ADD(megadriv_timers) | |
| 1377 | 1377 | |
| 1378 | 1378 | MCFG_DEVICE_ADD("gen_vdp", SEGA_GEN_VDP, 0) |
| 1379 | 1379 | sega_genesis_vdp_device::set_genesis_vdp_sndirqline_callback(*device, genesis_vdp_sndirqline_callback_segac2); |
| r15975 | r15976 | |
|---|---|---|
| 139 | 139 | |
| 140 | 140 | static MACHINE_RESET( sandscrp ) |
| 141 | 141 | { |
| 142 | // | |
| 142 | // sandscrp_state *state = machine.driver_data<sandscrp_state>(); | |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | /* Sand Scorpion */ |
| r15975 | r15976 | |
| 196 | 196 | |
| 197 | 197 | if (ACCESSING_BITS_0_7) |
| 198 | 198 | { |
| 199 | // m_sprite_flipx = data & 1; | |
| 200 | // m_sprite_flipy = data & 1; | |
| 199 | // m_sprite_flipx = data & 1; | |
| 200 | // m_sprite_flipy = data & 1; | |
| 201 | 201 | |
| 202 | 202 | if (data & 0x08) m_sprite_irq = 0; |
| 203 | 203 | if (data & 0x10) m_unknown_irq = 0; |
| r15975 | r15976 | |
|---|---|---|
| 624 | 624 | hng64_do_dma(&space); |
| 625 | 625 | break; |
| 626 | 626 | //default: |
| 627 | // | |
| 627 | // printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, m_sysregs[offset], cpu_get_pc(&space.device())); | |
| 628 | 628 | } |
| 629 | 629 | } |
| 630 | 630 | |
| r15975 | r15976 | |
| 1716 | 1716 | void hng64_state::m_set_irq(UINT32 irq_vector) |
| 1717 | 1717 | { |
| 1718 | 1718 | /* |
| 1719 | TODO: | |
| 1720 | - irq sources; | |
| 1721 | - irq priority; | |
| 1722 | - is there an irq mask mechanism? | |
| 1723 | - is irq level cleared too when the irq acks? | |
| 1719 | TODO: | |
| 1720 | - irq sources; | |
| 1721 | - irq priority; | |
| 1722 | - is there an irq mask mechanism? | |
| 1723 | - is irq level cleared too when the irq acks? | |
| 1724 | 1724 | |
| 1725 | This is written with irqs DISABLED | |
| 1726 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000001. (PC=80009b54) 0 vblank irq | |
| 1727 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000002. (PC=80009b5c) 1 | |
| 1728 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000004. (PC=80009b64) 2 | |
| 1729 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000008. (PC=80009b6c) 3 (actually this is cleared even if it isn't fired?) | |
| 1730 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000200. (PC=80009b70) 9 | |
| 1731 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000400. (PC=80009b78) 10 | |
| 1732 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00020000. (PC=80009b80) 17 | |
| 1733 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000800. (PC=80009b88) 11 network irq? needed by xrally and roadedge | |
| 1725 | This is written with irqs DISABLED | |
| 1726 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000001. (PC=80009b54) 0 vblank irq | |
| 1727 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000002. (PC=80009b5c) 1 | |
| 1728 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000004. (PC=80009b64) 2 | |
| 1729 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000008. (PC=80009b6c) 3 (actually this is cleared even if it isn't fired?) | |
| 1730 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000200. (PC=80009b70) 9 | |
| 1731 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000400. (PC=80009b78) 10 | |
| 1732 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00020000. (PC=80009b80) 17 | |
| 1733 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000800. (PC=80009b88) 11 network irq? needed by xrally and roadedge | |
| 1734 | 1734 | |
| 1735 | samsho64 / samsho64_2 does this during running: | |
| 1736 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000000. (PC=800008fc) just checking? | |
| 1737 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000040. (PC=800008fc) <- most notably causes TLBL error in fatfurwa | |
| 1738 | */ | |
| 1735 | samsho64 / samsho64_2 does this during running: | |
| 1736 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000000. (PC=800008fc) just checking? | |
| 1737 | HNG64 writing to SYSTEM Registers 0x0000111c == 0x00000040. (PC=800008fc) <- most notably causes TLBL error in fatfurwa | |
| 1738 | */ | |
| 1739 | 1739 | |
| 1740 | 1740 | m_irq_pending |= irq_vector; |
| 1741 | 1741 |
| r15975 | r15976 | |
|---|---|---|
| 906 | 906 | |
| 907 | 907 | |
| 908 | 908 | //************************************************************************** |
| 909 | // | |
| 909 | // CONSTANTS | |
| 910 | 910 | //************************************************************************** |
| 911 | 911 | |
| 912 | 912 | #define MASTER_CLOCK_10MHz XTAL_10MHz |
| r15975 | r15976 | |
| 916 | 916 | |
| 917 | 917 | |
| 918 | 918 | //************************************************************************** |
| 919 | // | |
| 919 | // MEMORY MAPPING | |
| 920 | 920 | //************************************************************************** |
| 921 | 921 | |
| 922 | 922 | //------------------------------------------------- |
| 923 | 923 | // memory_mapper - callback to handle mapping |
| 924 | // | |
| 924 | // requests | |
| 925 | 925 | //------------------------------------------------- |
| 926 | 926 | |
| 927 | 927 | void segas16b_state::memory_mapper(sega_315_5195_mapper_device &mapper, UINT8 index) |
| r15975 | r15976 | |
| 931 | 931 | case 7: // 16k of I/O space |
| 932 | 932 | mapper.map_as_handler(0x00000, 0x04000, 0xffc000, m_custom_io_r, m_custom_io_w); |
| 933 | 933 | break; |
| 934 | ||
| 934 | ||
| 935 | 935 | case 6: // 4k of paletteram |
| 936 | 936 | mapper.map_as_ram(0x00000, 0x01000, 0xfff000, "paletteram", write16_delegate(FUNC(segas16b_state::legacy_wrapper<segaic16_paletteram_w>), this)); |
| 937 | 937 | break; |
| 938 | ||
| 938 | ||
| 939 | 939 | case 5: // 64k of tileram + 4k of textram |
| 940 | 940 | mapper.map_as_ram(0x00000, 0x10000, 0xfe0000, "tileram", write16_delegate(FUNC(segas16b_state::legacy_wrapper<segaic16_tileram_0_w>), this)); |
| 941 | 941 | mapper.map_as_ram(0x10000, 0x01000, 0xfef000, "textram", write16_delegate(FUNC(segas16b_state::legacy_wrapper<segaic16_textram_0_w>), this)); |
| 942 | 942 | break; |
| 943 | ||
| 943 | ||
| 944 | 944 | case 4: // 2k of spriteram |
| 945 | 945 | mapper.map_as_ram(0x00000, 0x00800, 0xfff800, "spriteram", write16_delegate()); |
| 946 | 946 | break; |
| 947 | ||
| 947 | ||
| 948 | 948 | case 3: // 16k or 256k of work RAM |
| 949 | 949 | mapper.map_as_ram(0x00000, m_workram.bytes(), ~(m_workram.bytes() - 1), "workram", write16_delegate()); |
| 950 | 950 | break; |
| 951 | ||
| 951 | ||
| 952 | 952 | case 2: // 3rd ROM base, or board-specific banking |
| 953 | 953 | switch (m_romboard) |
| 954 | 954 | { |
| r15975 | r15976 | |
| 961 | 961 | default: assert(false); |
| 962 | 962 | } |
| 963 | 963 | break; |
| 964 | ||
| 964 | ||
| 965 | 965 | case 1: // 2nd ROM base, banking & math, or sound for Korean games |
| 966 | 966 | switch (m_romboard) |
| 967 | 967 | { |
| r15975 | r15976 | |
| 974 | 974 | default: assert(false); |
| 975 | 975 | } |
| 976 | 976 | break; |
| 977 | ||
| 977 | ||
| 978 | 978 | case 0: // 1st ROM base |
| 979 | 979 | switch (m_romboard) |
| 980 | 980 | { |
| r15975 | r15976 | |
| 993 | 993 | |
| 994 | 994 | //------------------------------------------------- |
| 995 | 995 | // mapper_sound_r - sound port read from the |
| 996 | // | |
| 996 | // memory mapper chip | |
| 997 | 997 | //------------------------------------------------- |
| 998 | 998 | |
| 999 | 999 | UINT8 segas16b_state::mapper_sound_r() |
| r15975 | r15976 | |
| 1004 | 1004 | |
| 1005 | 1005 | //------------------------------------------------- |
| 1006 | 1006 | // mapper_sound_w - sound port write from the |
| 1007 | // | |
| 1007 | // memory mapper chip | |
| 1008 | 1008 | //------------------------------------------------- |
| 1009 | 1009 | |
| 1010 | 1010 | void segas16b_state::mapper_sound_w(UINT8 data) |
| r15975 | r15976 | |
| 1017 | 1017 | |
| 1018 | 1018 | |
| 1019 | 1019 | //************************************************************************** |
| 1020 | // | |
| 1020 | // MAIN CPU READ/WRITE HANDLERS | |
| 1021 | 1021 | //************************************************************************** |
| 1022 | 1022 | |
| 1023 | 1023 | //------------------------------------------------- |
| 1024 | // rom_5704_bank_w - ROM board 5704 tile bank | |
| 1025 | // selection | |
| 1024 | // rom_5704_bank_w - ROM board 5704 tile bank | |
| 1025 | // selection | |
| 1026 | 1026 | //------------------------------------------------- |
| 1027 | 1027 | |
| 1028 | 1028 | WRITE16_MEMBER( segas16b_state::rom_5704_bank_w ) |
| r15975 | r15976 | |
| 1034 | 1034 | |
| 1035 | 1035 | //------------------------------------------------- |
| 1036 | 1036 | // rom_5797_bank_math_r - ROM board 5797 custom |
| 1037 | // | |
| 1037 | // math chip reads | |
| 1038 | 1038 | //------------------------------------------------- |
| 1039 | 1039 | |
| 1040 | 1040 | READ16_MEMBER( segas16b_state::rom_5797_bank_math_r ) |
| r15975 | r15976 | |
| 1056 | 1056 | |
| 1057 | 1057 | //------------------------------------------------- |
| 1058 | 1058 | // rom_5797_bank_math_r - ROM board 5797 custom |
| 1059 | // | |
| 1059 | // math chip writes, plus tile bank selection | |
| 1060 | 1060 | //------------------------------------------------- |
| 1061 | 1061 | |
| 1062 | 1062 | WRITE16_MEMBER( segas16b_state::rom_5797_bank_math_w ) |
| r15975 | r15976 | |
| 1084 | 1084 | |
| 1085 | 1085 | //------------------------------------------------- |
| 1086 | 1086 | // unknown_rgn2_r - unknown region 2 reads; |
| 1087 | // | |
| 1087 | // for now treat as a second compare/timer chip | |
| 1088 | 1088 | //------------------------------------------------- |
| 1089 | 1089 | |
| 1090 | 1090 | READ16_MEMBER( segas16b_state::unknown_rgn2_r ) |
| r15975 | r15976 | |
| 1096 | 1096 | |
| 1097 | 1097 | //------------------------------------------------- |
| 1098 | 1098 | // unknown_rgn2_w - unknown region 2 writes; |
| 1099 | // | |
| 1099 | // for now treat as a second compare/timer chip | |
| 1100 | 1100 | //------------------------------------------------- |
| 1101 | 1101 | |
| 1102 | 1102 | WRITE16_MEMBER( segas16b_state::unknown_rgn2_w ) |
| r15975 | r15976 | |
| 1164 | 1164 | |
| 1165 | 1165 | |
| 1166 | 1166 | //------------------------------------------------- |
| 1167 | // atomicp_sound_w - write sound data to the | |
| 1168 | // YM2413 directly from the main CPU | |
| 1167 | // atomicp_sound_w - write sound data to the | |
| 1168 | // YM2413 directly from the main CPU | |
| 1169 | 1169 | //------------------------------------------------- |
| 1170 | 1170 | |
| 1171 | 1171 | WRITE16_MEMBER( segas16b_state::atomicp_sound_w ) |
| r15975 | r15976 | |
| 1176 | 1176 | |
| 1177 | 1177 | |
| 1178 | 1178 | //************************************************************************** |
| 1179 | // | |
| 1179 | // SOUND CPU READ/WRITE HANDLERS | |
| 1180 | 1180 | //************************************************************************** |
| 1181 | 1181 | |
| 1182 | 1182 | //------------------------------------------------- |
| 1183 | // upd7759_control_w - handle writes to the | |
| 1184 | // uPD7759 control register | |
| 1183 | // upd7759_control_w - handle writes to the | |
| 1184 | // uPD7759 control register | |
| 1185 | 1185 | //------------------------------------------------- |
| 1186 | 1186 | |
| 1187 | 1187 | WRITE8_MEMBER( segas16b_state::upd7759_control_w ) |
| r15975 | r15976 | |
| 1242 | 1242 | bankoffs += ((data & 0x10) >> 4) * 0x20000; |
| 1243 | 1243 | bankoffs += (data & 0x07) * 0x04000; |
| 1244 | 1244 | break; |
| 1245 | ||
| 1245 | ||
| 1246 | 1246 | default: |
| 1247 | 1247 | assert(false); |
| 1248 | 1248 | } |
| 1249 | ||
| 1249 | ||
| 1250 | 1250 | // set the final bank |
| 1251 | 1251 | membank("soundbank")->set_base(memregion("soundcpu")->base() + 0x10000 + (bankoffs % size)); |
| 1252 | 1252 | } |
| r15975 | r15976 | |
| 1255 | 1255 | |
| 1256 | 1256 | //------------------------------------------------- |
| 1257 | 1257 | // upd7759_status_r - return the uPD7759 busy |
| 1258 | // | |
| 1258 | // bit in the top bit | |
| 1259 | 1259 | //------------------------------------------------- |
| 1260 | 1260 | |
| 1261 | 1261 | READ8_MEMBER( segas16b_state::upd7759_status_r ) |
| r15975 | r15976 | |
| 1266 | 1266 | |
| 1267 | 1267 | |
| 1268 | 1268 | //************************************************************************** |
| 1269 | // | |
| 1269 | // OTHER CALLBACKS | |
| 1270 | 1270 | //************************************************************************** |
| 1271 | 1271 | |
| 1272 | 1272 | //------------------------------------------------- |
| 1273 | 1273 | // upd7759_generate_nmi - callback to signal an |
| 1274 | // | |
| 1274 | // NMI to the sound CPU | |
| 1275 | 1275 | //------------------------------------------------- |
| 1276 | 1276 | |
| 1277 | 1277 | void segas16b_state::upd7759_generate_nmi(device_t *device, int state) |
| r15975 | r15976 | |
| 1284 | 1284 | |
| 1285 | 1285 | //------------------------------------------------- |
| 1286 | 1286 | // i8751_main_cpu_vblank - update the fake i8751 |
| 1287 | // | |
| 1287 | // state if we have a handler | |
| 1288 | 1288 | //------------------------------------------------- |
| 1289 | 1289 | |
| 1290 | 1290 | INTERRUPT_GEN_MEMBER( segas16b_state::i8751_main_cpu_vblank ) |
| r15975 | r15976 | |
| 1297 | 1297 | |
| 1298 | 1298 | |
| 1299 | 1299 | //************************************************************************** |
| 1300 | // | |
| 1300 | // DRIVER OVERRIDES | |
| 1301 | 1301 | //************************************************************************** |
| 1302 | 1302 | |
| 1303 | 1303 | //------------------------------------------------- |
| r15975 | r15976 | |
| 1341 | 1341 | machine().scheduler().boost_interleave(attotime::zero, attotime::from_msec(10)); |
| 1342 | 1342 | break; |
| 1343 | 1343 | |
| 1344 | // generate a periodic IRQ to the sound CPU | |
| 1344 | // generate a periodic IRQ to the sound CPU | |
| 1345 | 1345 | case TID_ATOMICP_SOUND_IRQ: |
| 1346 | 1346 | if (++m_atomicp_sound_count >= m_atomicp_sound_divisor) |
| 1347 | 1347 | { |
| r15975 | r15976 | |
| 1355 | 1355 | |
| 1356 | 1356 | |
| 1357 | 1357 | //************************************************************************** |
| 1358 | // | |
| 1358 | // I8751 SIMULATIONS | |
| 1359 | 1359 | //************************************************************************** |
| 1360 | 1360 | |
| 1361 | 1361 | //------------------------------------------------- |
| 1362 | 1362 | // altbeast_common_i8751_sim - simulate the I8751 |
| 1363 | // | |
| 1363 | // from Altered Beast | |
| 1364 | 1364 | //------------------------------------------------- |
| 1365 | 1365 | |
| 1366 | 1366 | void segas16b_state::altbeast_common_i8751_sim(offs_t soundoffs, offs_t inputoffs) |
| r15975 | r15976 | |
| 1402 | 1402 | |
| 1403 | 1403 | //------------------------------------------------- |
| 1404 | 1404 | // ddux_i8751_sim - simulate the I8751 |
| 1405 | // | |
| 1405 | // from Dynamite Dux | |
| 1406 | 1406 | //------------------------------------------------- |
| 1407 | 1407 | |
| 1408 | 1408 | void segas16b_state::ddux_i8751_sim() |
| r15975 | r15976 | |
| 1423 | 1423 | |
| 1424 | 1424 | //------------------------------------------------- |
| 1425 | 1425 | // goldnaxe_i8751_sim - simulate the I8751 |
| 1426 | // | |
| 1426 | // from Golden Axe | |
| 1427 | 1427 | //------------------------------------------------- |
| 1428 | 1428 | |
| 1429 | 1429 | void segas16b_state::goldnaxe_i8751_sim() |
| r15975 | r15976 | |
| 1457 | 1457 | |
| 1458 | 1458 | //------------------------------------------------- |
| 1459 | 1459 | // tturf_i8751_sim - simulate the I8751 |
| 1460 | // | |
| 1460 | // from Tough Turf | |
| 1461 | 1461 | //------------------------------------------------- |
| 1462 | 1462 | |
| 1463 | 1463 | void segas16b_state::tturf_i8751_sim() |
| r15975 | r15976 | |
| 1485 | 1485 | |
| 1486 | 1486 | //------------------------------------------------- |
| 1487 | 1487 | // wb3_i8751_sim - simulate the I8751 |
| 1488 | // | |
| 1488 | // from Wonderboy III | |
| 1489 | 1489 | //------------------------------------------------- |
| 1490 | 1490 | |
| 1491 | 1491 | void segas16b_state::wb3_i8751_sim() |
| r15975 | r15976 | |
| 1506 | 1506 | |
| 1507 | 1507 | |
| 1508 | 1508 | //************************************************************************** |
| 1509 | // | |
| 1509 | // CUSTOM I/O SPACE HANDLERS | |
| 1510 | 1510 | //************************************************************************** |
| 1511 | 1511 | |
| 1512 | 1512 | //------------------------------------------------- |
| 1513 | 1513 | // aceattac_custom_io_r - custom I/O read handler |
| 1514 | // | |
| 1514 | // for Ace Attacker | |
| 1515 | 1515 | //------------------------------------------------- |
| 1516 | 1516 | |
| 1517 | 1517 | READ16_MEMBER( segas16b_state::aceattac_custom_io_r ) |
| r15975 | r15976 | |
| 1555 | 1555 | |
| 1556 | 1556 | //------------------------------------------------- |
| 1557 | 1557 | // dunkshot_custom_io_r - custom I/O read handler |
| 1558 | // | |
| 1558 | // for Dunk Shot | |
| 1559 | 1559 | //------------------------------------------------- |
| 1560 | 1560 | |
| 1561 | 1561 | READ16_MEMBER( segas16b_state::dunkshot_custom_io_r ) |
| r15975 | r15976 | |
| 1582 | 1582 | |
| 1583 | 1583 | //------------------------------------------------- |
| 1584 | 1584 | // hwchamp_custom_io_r/w - custom I/O read/write |
| 1585 | // | |
| 1585 | // handlers for Heavyweight Champ | |
| 1586 | 1586 | //------------------------------------------------- |
| 1587 | 1587 | |
| 1588 | 1588 | READ16_MEMBER( segas16b_state::hwchamp_custom_io_r ) |
| r15975 | r15976 | |
| 1633 | 1633 | |
| 1634 | 1634 | //------------------------------------------------- |
| 1635 | 1635 | // passshtj_custom_io_r - custom I/O read handler |
| 1636 | // | |
| 1636 | // for Passing Shot | |
| 1637 | 1637 | //------------------------------------------------- |
| 1638 | 1638 | |
| 1639 | 1639 | READ16_MEMBER( segas16b_state::passshtj_custom_io_r ) |
| r15975 | r15976 | |
| 1656 | 1656 | |
| 1657 | 1657 | //------------------------------------------------- |
| 1658 | 1658 | // sdi_custom_io_r - custom I/O read handler |
| 1659 | // | |
| 1659 | // for SDI | |
| 1660 | 1660 | //------------------------------------------------- |
| 1661 | 1661 | |
| 1662 | 1662 | READ16_MEMBER( segas16b_state::sdi_custom_io_r ) |
| r15975 | r15976 | |
| 1678 | 1678 | |
| 1679 | 1679 | |
| 1680 | 1680 | //------------------------------------------------- |
| 1681 | // sdi_custom_io_r/w - custom I/O read/write | |
| 1682 | // handlers for Sukeban Jansi Ryuko | |
| 1681 | // sdi_custom_io_r/w - custom I/O read/write | |
| 1682 | // handlers for Sukeban Jansi Ryuko | |
| 1683 | 1683 | //------------------------------------------------- |
| 1684 | 1684 | |
| 1685 | 1685 | READ16_MEMBER( segas16b_state::sjryuko_custom_io_r ) |
| r15975 | r15976 | |
| 1721 | 1721 | |
| 1722 | 1722 | |
| 1723 | 1723 | //************************************************************************** |
| 1724 | // | |
| 1724 | // MAIN CPU ADDRESS MAPS | |
| 1725 | 1725 | //************************************************************************** |
| 1726 | 1726 | |
| 1727 | 1727 | static ADDRESS_MAP_START( system16b_map, AS_PROGRAM, 16, segas16b_state ) |
| 1728 | 1728 | ADDRESS_MAP_UNMAP_HIGH |
| 1729 | 1729 | AM_RANGE(0x000000, 0xffffff) AM_DEVREADWRITE8("mapper", sega_315_5195_mapper_device, read, write, 0x00ff) |
| 1730 | ||
| 1730 | ||
| 1731 | 1731 | // these get overwritten by the memory mapper above, but we put them here |
| 1732 | 1732 | // so they are properly allocated and tracked for saving |
| 1733 | 1733 | AM_RANGE(0x100000, 0x1007ff) AM_RAM AM_SHARE("spriteram") |
| r15975 | r15976 | |
| 1741 | 1741 | static ADDRESS_MAP_START( system16c_map, AS_PROGRAM, 16, segas16b_state ) |
| 1742 | 1742 | ADDRESS_MAP_UNMAP_HIGH |
| 1743 | 1743 | AM_RANGE(0x000000, 0xffffff) AM_DEVREADWRITE8("mapper", sega_315_5195_mapper_device, read, write, 0x00ff) |
| 1744 | ||
| 1744 | ||
| 1745 | 1745 | // these get overwritten by the memory mapper above, but we put them here |
| 1746 | 1746 | // so they are properly allocated and tracked for saving |
| 1747 | 1747 | AM_RANGE(0x100000, 0x1007ff) AM_RAM AM_SHARE("spriteram") |
| r15975 | r15976 | |
| 1754 | 1754 | |
| 1755 | 1755 | |
| 1756 | 1756 | //************************************************************************** |
| 1757 | // | |
| 1757 | // SOUND CPU ADDRESS MAPS | |
| 1758 | 1758 | //************************************************************************** |
| 1759 | 1759 | |
| 1760 | 1760 | static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, segas16b_state ) |
| r15975 | r15976 | |
| 1777 | 1777 | |
| 1778 | 1778 | |
| 1779 | 1779 | //************************************************************************** |
| 1780 | // | |
| 1780 | // I8751 MCU ADDRESS MAPS | |
| 1781 | 1781 | //************************************************************************** |
| 1782 | 1782 | |
| 1783 | 1783 | static ADDRESS_MAP_START( mcu_io_map, AS_IO, 8, segas16b_state ) |
| r15975 | r15976 | |
| 1789 | 1789 | |
| 1790 | 1790 | |
| 1791 | 1791 | //************************************************************************** |
| 1792 | // | |
| 1792 | // GENERIC PORT DEFINITIONS | |
| 1793 | 1793 | //************************************************************************** |
| 1794 | 1794 | |
| 1795 | 1795 | static INPUT_PORTS_START( system16b_generic ) |
| r15975 | r15976 | |
| 1843 | 1843 | |
| 1844 | 1844 | |
| 1845 | 1845 | //************************************************************************** |
| 1846 | // | |
| 1846 | // GAME-SPECIFIC PORT DEFINITIONS | |
| 1847 | 1847 | //************************************************************************** |
| 1848 | 1848 | |
| 1849 | 1849 | static INPUT_PORTS_START( aceattac ) |
| r15975 | r15976 | |
| 3257 | 3257 | |
| 3258 | 3258 | |
| 3259 | 3259 | //************************************************************************** |
| 3260 | // | |
| 3260 | // SOUND CONFIGURATIONS | |
| 3261 | 3261 | //************************************************************************** |
| 3262 | 3262 | |
| 3263 | 3263 | static const upd7759_interface upd7759_config = |
| r15975 | r15976 | |
| 3268 | 3268 | |
| 3269 | 3269 | |
| 3270 | 3270 | //************************************************************************** |
| 3271 | // | |
| 3271 | // GRAPHICS DECODING | |
| 3272 | 3272 | //************************************************************************** |
| 3273 | 3273 | |
| 3274 | 3274 | static GFXDECODE_START( segas16b ) |
| r15975 | r15976 | |
| 3278 | 3278 | |
| 3279 | 3279 | |
| 3280 | 3280 | //************************************************************************** |
| 3281 | // | |
| 3281 | // GENERIC MACHINE DRIVERS | |
| 3282 | 3282 | //************************************************************************** |
| 3283 | 3283 | |
| 3284 | 3284 | static MACHINE_CONFIG_START( system16b, segas16b_state ) |
| r15975 | r15976 | |
| 3369 | 3369 | |
| 3370 | 3370 | |
| 3371 | 3371 | //************************************************************************** |
| 3372 | // | |
| 3372 | // GAME-SPECIFIC MACHINE DRIVERS | |
| 3373 | 3373 | //************************************************************************** |
| 3374 | 3374 | |
| 3375 | 3375 | static MACHINE_CONFIG_DERIVED( atomicp, system16b ) // 10MHz CPU Clock verified |
| r15975 | r15976 | |
| 3394 | 3394 | |
| 3395 | 3395 | |
| 3396 | 3396 | //************************************************************************** |
| 3397 | // | |
| 3397 | // ROM definitions | |
| 3398 | 3398 | //************************************************************************** |
| 3399 | 3399 | |
| 3400 | 3400 | |
| r15975 | r15976 | |
| 3894 | 3894 | //************************************************************************************************************************* |
| 3895 | 3895 | // Atomic Point |
| 3896 | 3896 | // |
| 3897 | // Custom Korean Board - NOT Sega: | |
| 3897 | // Custom Korean Board - NOT Sega: | |
| 3898 | 3898 | // |
| 3899 | 3899 | // CPU: TMP68000P-10 |
| 3900 | 3900 | // OSC: 25.1748MHz & 20MHz |
| r15975 | r15976 | |
| 6369 | 6369 | |
| 6370 | 6370 | |
| 6371 | 6371 | //************************************************************************** |
| 6372 | // | |
| 6372 | // CONFIGURATION | |
| 6373 | 6373 | //************************************************************************** |
| 6374 | 6374 | |
| 6375 | 6375 | //------------------------------------------------- |
| r15975 | r15976 | |
| 6403 | 6403 | |
| 6404 | 6404 | |
| 6405 | 6405 | //------------------------------------------------- |
| 6406 | // init_generic_* - ROM board-specific | |
| 6407 | // initialization | |
| 6406 | // init_generic_* - ROM board-specific | |
| 6407 | // initialization | |
| 6408 | 6408 | //------------------------------------------------- |
| 6409 | 6409 | |
| 6410 | 6410 | DRIVER_INIT_MEMBER(segas16b_state,generic_5358_small) { init_generic(ROM_BOARD_171_5358_SMALL); } |
| r15975 | r15976 | |
| 6415 | 6415 | DRIVER_INIT_MEMBER(segas16b_state,generic_korean) |
| 6416 | 6416 | { |
| 6417 | 6417 | init_generic(ROM_BOARD_KOREAN); |
| 6418 | ||
| 6418 | ||
| 6419 | 6419 | // configure special behaviors for the Korean boards |
| 6420 | 6420 | m_disable_screen_blanking = true; |
| 6421 | 6421 | m_atomicp_sound_divisor = 1; |
| r15975 | r15976 | |
| 6572 | 6572 | |
| 6573 | 6573 | |
| 6574 | 6574 | //************************************************************************** |
| 6575 | // | |
| 6575 | // GAME DRIVERS | |
| 6576 | 6576 | //************************************************************************** |
| 6577 | 6577 | |
| 6578 | 6578 | // YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR,COMPANY,FULLNAME,FLAGS |
| r15975 | r15976 | |
| 6682 | 6682 | |
| 6683 | 6683 | // Custom Korean Board - these probably belong with the bootlegs... |
| 6684 | 6684 | GAME( 1990, atomicp, 0, atomicp, atomicp, segas16b_state,generic_korean, ROT0, "Philko", "Atomic Point (Korea)", 0) // korean clone board.. |
| 6685 | GAME( 1990, snapper, 0, atomicp, snapper, segas16b_state,snapper, | |
| 6685 | GAME( 1990, snapper, 0, atomicp, snapper, segas16b_state,snapper, | |
| 6686 | 6686 | |
| 6687 | 6687 | |
| 6688 | 6688 |
| r15975 | r15976 | |
|---|---|---|
| 24 | 24 | |
| 25 | 25 | // driver_device overrides |
| 26 | 26 | virtual void machine_reset(); |
| 27 | public: | |
| 27 | public: | |
| 28 | 28 | DECLARE_DRIVER_INIT(gts80a); |
| 29 | 29 | }; |
| 30 | 30 |
| r15975 | r15976 | |
|---|---|---|
| 1314 | 1314 | GAME( 1998, evilngte, evilngt, m2, m2, konamim2_state, m2, ROT0, "Konami", "Evil Night (ver EAA)", GAME_NOT_WORKING | GAME_NO_SOUND ) |
| 1315 | 1315 | GAME( 1998, hellngt, evilngt, m2, m2, konamim2_state, m2, ROT0, "Konami", "Hell Night (ver EAA)", GAME_NOT_WORKING | GAME_NO_SOUND ) |
| 1316 | 1316 | |
| 1317 | CONS( 199?, 3do_m2, 0, 0, m2, m2, driver_device, 0, "3DO", "3DO M2", | |
| 1317 | CONS( 199?, 3do_m2, 0, 0, m2, m2, driver_device, 0, "3DO", "3DO M2", |
| r15975 | r15976 | |
|---|---|---|
| 4711 | 4711 | |
| 4712 | 4712 | |
| 4713 | 4713 | DRIVER_INIT_MEMBER(royalmah_state,ippatsu) |
| 4714 | { | |
| 4715 | machine().root_device().membank("bank1")->set_base(machine().root_device().memregion("maincpu")->base() + 0x8000 ); | |
| 4714 | { | |
| 4715 | machine().root_device().membank("bank1")->set_base(machine().root_device().memregion("maincpu")->base() + 0x8000 ); | |
| 4716 | 4716 | } |
| 4717 | 4717 | |
| 4718 | 4718 | DRIVER_INIT_MEMBER(royalmah_state,janptr96) |
| r15975 | r15976 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | // driver_device overrides |
| 23 | 23 | virtual void machine_reset(); |
| 24 | public: | |
| 24 | public: | |
| 25 | 25 | DECLARE_DRIVER_INIT(gp_1); |
| 26 | 26 | }; |
| 27 | 27 |
| r15975 | r15976 | |
|---|---|---|
| 139 | 139 | // let's pretend like we have a keyboard device |
| 140 | 140 | keyboard_device = machine.input().device_class(DEVICE_CLASS_KEYBOARD).add_device("Keyboard"); |
| 141 | 141 | if (keyboard_device == NULL) |
| 142 | fatalerror("Error creating keyboard device"); | |
| 142 | fatalerror("Error creating keyboard device\n"); | |
| 143 | 143 | |
| 144 | 144 | // our faux keyboard only has a couple of keys (corresponding to the |
| 145 | 145 | // common defaults) |
| r15975 | r15976 | |
|---|---|---|
| 796 | 796 | round_nearest(vofs + prim->bounds.y0)); |
| 797 | 797 | break; |
| 798 | 798 | default: |
| 799 | throw emu_fatalerror("Unexpected render_primitive type"); | |
| 799 | throw emu_fatalerror("Unexpected render_primitive type\n"); | |
| 800 | 800 | } |
| 801 | 801 | } |
| 802 | 802 |
| r15975 | r15976 | |
|---|---|---|
| 416 | 416 | |
| 417 | 417 | // register the class; fail if we can't |
| 418 | 418 | if (!RegisterClass(&wc)) |
| 419 | fatalerror("Unable to register debug window class"); | |
| 419 | fatalerror("Unable to register debug window class\n"); | |
| 420 | 420 | |
| 421 | 421 | // initialize the description of the view class |
| 422 | 422 | wc.lpszClassName = TEXT("MAMEDebugView"); |
| r15975 | r15976 | |
| 424 | 424 | |
| 425 | 425 | // register the class; fail if we can't |
| 426 | 426 | if (!RegisterClass(&wc)) |
| 427 | fatalerror("Unable to register debug view class"); | |
| 427 | fatalerror("Unable to register debug view class\n"); | |
| 428 | 428 | |
| 429 | 429 | class_registered = TRUE; |
| 430 | 430 | } |
| r15975 | r15976 | |
| 446 | 446 | // create a standard font |
| 447 | 447 | t_face = tstring_from_utf8(options.debugger_font()); |
| 448 | 448 | debug_font = CreateFont(-MulDiv(size, GetDeviceCaps(temp_dc, LOGPIXELSY), 72), 0, 0, 0, FW_MEDIUM, FALSE, FALSE, FALSE, |
| 449 | ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, F | |
| 449 | ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FIXED_PITCH | |
| 450 | 450 | osd_free(t_face); |
| 451 | t_face = NULL; | |
| 451 | 452 | |
| 452 | // fall back to Lucida Console 8 | |
| 453 | 453 | if (debug_font == NULL) |
| 454 | { | |
| 455 | debug_font = CreateFont(-MulDiv(8, GetDeviceCaps(temp_dc, LOGPIXELSY), 72), 0, 0, 0, FW_MEDIUM, FALSE, FALSE, FALSE, | |
| 456 | ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FF_DONTCARE, TEXT("Lucida Console")); | |
| 457 | if (debug_font == NULL) | |
| 458 | fatalerror("Unable to create debug font"); | |
| 459 | } | |
| 454 | fatalerror("Unable to create debugger font\n"); | |
| 460 | 455 | |
| 461 | 456 | // get the metrics |
| 462 | 457 | old_font = SelectObject(temp_dc, debug_font); |
| r15975 | r15976 | |
|---|---|---|
| 238 | 238 | // create an event to signal UI pausing |
| 239 | 239 | ui_pause_event = CreateEvent(NULL, TRUE, FALSE, NULL); |
| 240 | 240 | if (!ui_pause_event) |
| 241 | fatalerror("Failed to create pause event"); | |
| 241 | fatalerror("Failed to create pause event\n"); | |
| 242 | 242 | |
| 243 | 243 | // if multithreading, create a thread to run the windows |
| 244 | 244 | if (multithreading_enabled) |
| r15975 | r15976 | |
| 246 | 246 | // create an event to signal when the window thread is ready |
| 247 | 247 | window_thread_ready_event = CreateEvent(NULL, TRUE, FALSE, NULL); |
| 248 | 248 | if (!window_thread_ready_event) |
| 249 | fatalerror("Failed to create window thread ready event"); | |
| 249 | fatalerror("Failed to create window thread ready event\n"); | |
| 250 | 250 | |
| 251 | 251 | // create a thread to run the windows from |
| 252 | 252 | temp = _beginthreadex(NULL, 0, thread_entry, NULL, 0, (unsigned *)&window_threadid); |
| 253 | 253 | window_thread = (HANDLE)temp; |
| 254 | 254 | if (window_thread == NULL) |
| 255 | fatalerror("Failed to create window thread"); | |
| 255 | fatalerror("Failed to create window thread\n"); | |
| 256 | 256 | |
| 257 | 257 | // set the thread priority equal to the main MAME thread |
| 258 | 258 | SetThreadPriority(window_thread, GetThreadPriority(GetCurrentThread())); |
| r15975 | r15976 | |
| 711 | 711 | |
| 712 | 712 | // handle error conditions |
| 713 | 713 | if (window->init_state == -1) |
| 714 | fatalerror("Unable to complete window creation"); | |
| 714 | fatalerror("Unable to complete window creation\n"); | |
| 715 | 715 | } |
| 716 | 716 | |
| 717 | 717 | |
| r15975 | r15976 | |
| 880 | 880 | |
| 881 | 881 | // register the class; fail if we can't |
| 882 | 882 | if (!RegisterClass(&wc)) |
| 883 | fatalerror("Failed to create window class"); | |
| 883 | fatalerror("Failed to create window class\n"); | |
| 884 | 884 | classes_created = TRUE; |
| 885 | 885 | } |
| 886 | 886 | } |
| r15975 | r15976 | |
|---|---|---|
| 2779 | 2779 | end = snapstr.len(); |
| 2780 | 2780 | |
| 2781 | 2781 | if (end - pos < 3) |
| 2782 | fatalerror("Something very wrong is going on!!!"); | |
| 2782 | fatalerror("Something very wrong is going on!!!\n"); | |
| 2783 | 2783 | |
| 2784 | 2784 | // copy the device name to an astring |
| 2785 | 2785 | astring snapdevname; |
| r15975 | r15976 | |
|---|---|---|
| 155 | 155 | save_item(NAME(m_seg_prefix_next)); |
| 156 | 156 | |
| 157 | 157 | // Register state for debugger |
| 158 | // | |
| 158 | // state_add( NEC_PC, "PC", m_PC ).callimport().callexport().formatstr("%04X"); | |
| 159 | 159 | state_add( NEC_IP, "IP", m_ip ).callimport().callexport().formatstr("%04X"); |
| 160 | 160 | state_add( NEC_SP, "SP", m_regs.w[SP] ).callimport().callexport().formatstr("%04X"); |
| 161 | 161 | state_add( NEC_AW, "AW", m_regs.w[AW] ).callimport().callexport().formatstr("%04X"); |
| r15975 | r15976 | |
| 1369 | 1369 | DEF_r8b(); |
| 1370 | 1370 | ADDB(); |
| 1371 | 1371 | RegByte(m_dst); |
| 1372 | CLKM(1,2); | |
| 1372 | CLKM(1,2); | |
| 1373 | 1373 | break; |
| 1374 | 1374 | |
| 1375 | 1375 | case 0x03: // i_add_r16w |
| r15975 | r15976 | |
| 2781 | 2781 | ANDW(); |
| 2782 | 2782 | CLK(1); |
| 2783 | 2783 | break; |
| 2784 | ||
| 2784 | ||
| 2785 | 2785 | case 0xaa: // i_stosb |
| 2786 | 2786 | i_stosb(); |
| 2787 | 2787 | break; |
| r15975 | r15976 | |
| 3295 | 3295 | |
| 3296 | 3296 | m_sregs[CS] = tmp1; |
| 3297 | 3297 | m_ip = tmp; |
| 3298 | CLK(7); | |
| 3298 | CLK(7); | |
| 3299 | 3299 | } |
| 3300 | 3300 | break; |
| 3301 | 3301 |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /* |
| 2 | ||
| 2 | ||
| 3 | 3 | H8/3xx: Unknown opcode (PC=1c966) 10f - not a valid H8 or H8S opcode, either bad dump or banked ROM |
| 4 | 4 | maygayep.c ep_cfallc |
| 5 | 5 | |
| r15975 | r15976 | |
| 13 | 13 | maygayep.c ep_hogmnc |
| 14 | 14 | |
| 15 | 15 | H8/3xx: Unknown opcode (PC=20000) 6b6e - MOV.B @ERs, Rd |
| 16 | maygayep.c ep_wordf | |
| 17 | ||
| 16 | maygayep.c ep_wordf | |
| 17 | ||
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | 20 | static UINT32 udata32, address24; |
| r15975 | r15976 | |
|---|---|---|
| 1591 | 1591 | { |
| 1592 | 1592 | int port = (offset - H8S_IO_P1DR); |
| 1593 | 1593 | data = h8->drs[port] & h8->ddrs[port]; |
| 1594 | data |= (h8->io->read_byte(H8_PORT_1 + port) & (h8->ddrs[port] ^ 0xff)); | |
| 1594 | data |= (h8->io->read_byte(H8_PORT_1 + port) & (h8->ddrs[port] ^ 0xff)); | |
| 1595 | 1595 | } |
| 1596 | 1596 | break; |
| 1597 | 1597 |
| r15975 | r15976 | |
|---|---|---|
| 2452 | 2452 | |
| 2453 | 2453 | case 0x0b: /* CMPI */ |
| 2454 | 2454 | UML_CMP(block, R32(G_RA(op)), (INT16)G_SIMM(op)); // cmp ra,uimm |
| 2455 | UML_GETFLGS(block, I0, FLAG_Z | FLAG_C | FLAG_S); // getflgs i0,zcs | |
| 2455 | UML_GETFLGS(block, I0, FLAG_Z | FLAG_V | FLAG_C | FLAG_S); // getflgs i0,zvcs | |
| 2456 | 2456 | UML_LOAD(block, I0, ppc->impstate->cmp_cr_table, I0, SIZE_BYTE, SCALE_x1);// load i0,cmp_cr_table,i0,byte |
| 2457 | 2457 | UML_OR(block, CR32(G_CRFD(op)), I0, XERSO32); // or [crn],i0,[xerso] |
| 2458 | 2458 | return TRUE; |
| r15975 | r15976 | |
| 3061 | 3061 | |
| 3062 | 3062 | case 0x000: /* CMP */ |
| 3063 | 3063 | UML_CMP(block, R32(G_RA(op)), R32(G_RB(op))); // cmp ra,rb |
| 3064 | UML_GETFLGS(block, I0, FLAG_Z | FLAG_C | FLAG_S); // getflgs i0,zcs | |
| 3064 | UML_GETFLGS(block, I0, FLAG_Z | FLAG_V | FLAG_C | FLAG_S); // getflgs i0,zvcs | |
| 3065 | 3065 | UML_LOAD(block, I0, ppc->impstate->cmp_cr_table, I0, SIZE_BYTE, SCALE_x1);// load i0,cmp_cr_table,i0,byte |
| 3066 | 3066 | UML_OR(block, CR32(G_CRFD(op)), I0, XERSO32); // or [crn],i0,[xerso] |
| 3067 | 3067 | return TRUE; |
| r15975 | r15976 | |
|---|---|---|
| 993 | 993 | UINT32 dsttmp,tmp; |
| 994 | 994 | UINT8 srctmp; |
| 995 | 995 | |
| 996 | // | |
| 996 | // printf("BDST %08x BSRC %08x SIZE %08x DST %08x SRC %08x\n",cpustate->R26,cpustate->R27,cpustate->R28,cpustate->R29,cpustate->R30); | |
| 997 | 997 | |
| 998 | 998 | dstbit = cpustate->R26; |
| 999 | 999 | srcbit = cpustate->R27; |
| r15975 | r15976 | |
|---|---|---|
| 47 | 47 | devcb_write_line hsync_changed; |
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | ||
| 50 | ||
| 51 | 51 | class huc6260_device : public device_t, |
| 52 | 52 | public huc6260_interface |
| 53 | 53 | { |
| r15975 | r15976 | |
|---|---|---|
| 106 | 106 | break; |
| 107 | 107 | |
| 108 | 108 | case 2: /* Back - BG0 + SP1 => BG0 - Front |
| 109 | BG0 + BG1 => BG0 | |
| 110 | BG1 + SP0 => BG1 | |
| 111 | SP0 + SP1 => SP0 | |
| 112 | */ | |
| 109 | BG0 + BG1 => BG0 | |
| 110 | BG1 + SP0 => BG1 | |
| 111 | SP0 + SP1 => SP0 | |
| 112 | */ | |
| 113 | 113 | if ( data_1 > huc6270_device::HUC6270_SPRITE ) |
| 114 | 114 | { |
| 115 | 115 | if ( data_0 > huc6270_device::HUC6270_SPRITE ) |
| r15975 | r15976 | |
| 201 | 201 | break; |
| 202 | 202 | |
| 203 | 203 | case 0x01: /* Priority register #1 */ |
| 204 | data = ( m_prio[2].prio_type << 2 ) | | |
| 204 | data = ( m_prio[2].prio_type << 2 ) | | |
| 205 | 205 | ( m_prio[2].dev0_enabled ? 0x01 : 0 ) | |
| 206 | 206 | ( m_prio[2].dev1_enabled ? 0x02 : 0 ) | |
| 207 | 207 | ( m_prio[3].prio_type << 6 ) | |
| r15975 | r15976 | |
|---|---|---|
| 115 | 115 | |
| 116 | 116 | |
| 117 | 117 | /* |
| 118 | Read one row of tile data from video ram | |
| 118 | Read one row of tile data from video ram | |
| 119 | 119 | */ |
| 120 | 120 | inline void huc6270_device::fetch_bat_tile_row() |
| 121 | 121 | { |
| r15975 | r15976 | |
| 308 | 308 | } |
| 309 | 309 | |
| 310 | 310 | /* Should we initiate a VRAM->SATB DMA transfer. |
| 311 | The timing for this is incorrect. | |
| 312 | */ | |
| 311 | The timing for this is incorrect. | |
| 312 | */ | |
| 313 | 313 | if ( m_dvssr_written || ( m_dcr & 0x10 ) ) |
| 314 | 314 | { |
| 315 | 315 | int i; |
| r15975 | r15976 | |
| 488 | 488 | |
| 489 | 489 | //inline READ16_MEMBER( huc6270_device::time_until_next_event ) |
| 490 | 490 | //{ |
| 491 | // | |
| 491 | // return m_horz_to_go * 8 + m_horz_steps; | |
| 492 | 492 | //} |
| 493 | 493 | |
| 494 | 494 | |
| r15975 | r15976 | |
| 512 | 512 | handle_vblank(); |
| 513 | 513 | |
| 514 | 514 | /* Should we perform VRAM-VRAM dma. |
| 515 | The timing for this is incorrect. | |
| 516 | */ | |
| 515 | The timing for this is incorrect. | |
| 516 | */ | |
| 517 | 517 | if ( m_dma_enabled ) |
| 518 | 518 | { |
| 519 | 519 | int desr_inc = ( m_dcr & 0x0008 ) ? -1 : +1; |
| r15975 | r15976 | |
| 649 | 649 | case RCR: /* raster compare register LSB */ |
| 650 | 650 | m_rcr = ( m_rcr & 0x0300 ) | data; |
| 651 | 651 | //printf("%s: RCR set to %03x\n", machine().describe_context(), m_rcr); |
| 652 | // if ( m_raster_count == m_rcr && m_cr & 0x04 ) | |
| 653 | // { | |
| 654 | // m_status |= HUC6270_RR; | |
| 655 | // m_irq_changed( ASSERT_LINE ); | |
| 656 | // } | |
| 652 | // if ( m_raster_count == m_rcr && m_cr & 0x04 ) | |
| 653 | // { | |
| 654 | // m_status |= HUC6270_RR; | |
| 655 | // m_irq_changed( ASSERT_LINE ); | |
| 656 | // } | |
| 657 | 657 | //if (LOG) printf("%04x: RCR (%03x) written at %d,%d\n", activecpu_get_pc(), huc6270->m_rcr, video_screen_get_vpos(device->machine->primary_screen), video_screen_get_hpos(device->machine->primary_screen) ); |
| 658 | 658 | break; |
| 659 | 659 | |
| r15975 | r15976 | |
| 740 | 740 | case RCR: /* raster compare register MSB */ |
| 741 | 741 | m_rcr = ( m_rcr & 0x00FF ) | ( ( data & 0x03 ) << 8 ); |
| 742 | 742 | //printf("%s: RCR set to %03x\n", machine().describe_context(), m_rcr); |
| 743 | // if ( m_raster_count == m_rcr && m_cr & 0x04 ) | |
| 744 | // { | |
| 745 | // m_status |= HUC6270_RR; | |
| 746 | // m_irq_changed( ASSERT_LINE ); | |
| 747 | // } | |
| 743 | // if ( m_raster_count == m_rcr && m_cr & 0x04 ) | |
| 744 | // { | |
| 745 | // m_status |= HUC6270_RR; | |
| 746 | // m_irq_changed( ASSERT_LINE ); | |
| 747 | // } | |
| 748 | 748 | break; |
| 749 | 749 | |
| 750 | 750 | case BXR: /* background x-scroll register MSB */ |
| r15975 | r15976 | |
|---|---|---|
| 128 | 128 | UINT16 m_bat_column; |
| 129 | 129 | UINT8 m_bat_tile_row[8]; |
| 130 | 130 | /* Internal sprite attribute table. SATB DMA is used to transfer data |
| 131 | from VRAM to this internal table. | |
| 132 | */ | |
| 131 | from VRAM to this internal table. | |
| 132 | */ | |
| 133 | 133 | UINT16 m_sat[4*64]; |
| 134 | 134 | int m_sprites_this_line; |
| 135 | 135 | int m_sprite_row_index; |
| r15975 | r15976 | |
|---|---|---|
| 132 | 132 | template<typename _PixelType, int _Width> void mode_graphic5(const pen_t *pens, _PixelType *ln, int line); |
| 133 | 133 | template<typename _PixelType, int _Width> void mode_graphic6(const pen_t *pens, _PixelType *ln, int line); |
| 134 | 134 | template<typename _PixelType, int _Width> void mode_graphic7(const pen_t *pens, _PixelType *ln, int line); |
| 135 | // template<typename _PixelType, int _Width> void mode_yae(const pen_t *pens, _PixelType *ln, int line); | |
| 136 | // template<typename _PixelType, int _Width> void mode_yjk(const pen_t *pens, _PixelType *ln, int line); | |
| 135 | // template<typename _PixelType, int _Width> void mode_yae(const pen_t *pens, _PixelType *ln, int line); | |
| 136 | // template<typename _PixelType, int _Width> void mode_yjk(const pen_t *pens, _PixelType *ln, int line); | |
| 137 | 137 | template<typename _PixelType, int _Width> void mode_unknown(const pen_t *pens, _PixelType *ln, int line); |
| 138 | 138 | template<typename _PixelType, int _Width> void default_draw_sprite(const pen_t *pens, _PixelType *ln, UINT8 *col); |
| 139 | 139 | template<typename _PixelType, int _Width> void graphic5_draw_sprite(const pen_t *pens, _PixelType *ln, UINT8 *col); |
| r15975 | r15976 | |
|---|---|---|
| 215 | 215 | for (sy = 0; sy <= saa5050->y; sy++) |
| 216 | 216 | { |
| 217 | 217 | bool dblhi = false; |
| 218 | ||
| 218 | ||
| 219 | 219 | /* Set start of line state */ |
| 220 | 220 | saa5050->flags = 0; |
| 221 | 221 | saa5050->prvchr = 32; |
| r15975 | r15976 | |
|---|---|---|
| 98 | 98 | { |
| 99 | 99 | case HUC6260_HSYNC_START: /* Start of HSync */ |
| 100 | 100 | m_hsync_changed( 0 ); |
| 101 | // if ( v == 0 ) | |
| 102 | // { | |
| 103 | // /* Check if the screen should be resized */ | |
| 104 | // m_height = HUC6260_LPF - ( m_blur ? 1 : 0 ); | |
| 105 | // if ( m_height != video_screen_get_height( m_screen ) ) | |
| 106 | // { | |
| 107 | // rectangle visible_area; | |
| 101 | // if ( v == 0 ) | |
| 102 | // { | |
| 103 | // /* Check if the screen should be resized */ | |
| 104 | // m_height = HUC6260_LPF - ( m_blur ? 1 : 0 ); | |
| 105 | // if ( m_height != video_screen_get_height( m_screen ) ) | |
| 106 | // { | |
| 107 | // rectangle visible_area; | |
| 108 | 108 | // |
| 109 | // /* TODO: Set proper visible area parameters */ | |
| 110 | // visible_area.min_x = 64; | |
| 111 | // visible_area.min_y = 18; | |
| 112 | // visible_area.max_x = 64 + 1024 + 64 - 1; | |
| 113 | // visible_area.max_y = 18 + 242 - 1; | |
| 109 | // /* TODO: Set proper visible area parameters */ | |
| 110 | // visible_area.min_x = 64; | |
| 111 | // visible_area.min_y = 18; | |
| 112 | // visible_area.max_x = 64 + 1024 + 64 - 1; | |
| 113 | // visible_area.max_y = 18 + 242 - 1; | |
| 114 | 114 | // |
| 115 | // video_screen_configure( m_screen, HUC6260_WPF, m_height, &visible_area, HZ_TO_ATTOSECONDS( device->clock / ( HUC6260_WPF * m_height ) ) ); | |
| 116 | // } | |
| 117 | // } | |
| 115 | // video_screen_configure( m_screen, HUC6260_WPF, m_height, &visible_area, HZ_TO_ATTOSECONDS( device->clock / ( HUC6260_WPF * m_height ) ) ); | |
| 116 | // } | |
| 117 | // } | |
| 118 | 118 | break; |
| 119 | 119 | |
| 120 | 120 | case 0: /* End of HSync */ |
| r15975 | r15976 | |
|---|---|---|
| 193 | 193 | { OPTION_UI_FONT, "default", OPTION_STRING, "specify a font to use" }, |
| 194 | 194 | { OPTION_RAMSIZE ";ram", NULL, OPTION_STRING, "size of RAM (if supported by driver)" }, |
| 195 | 195 | { OPTION_CONFIRM_QUIT, "0", OPTION_BOOLEAN, "display confirm quit screen on exit" }, |
| 196 | { OPTION_UI_MOUSE, | |
| 196 | { OPTION_UI_MOUSE, | |
| 197 | 197 | { NULL } |
| 198 | 198 | }; |
| 199 | 199 |
| r15975 | r15976 | |
|---|---|---|
| 348 | 348 | const char *ui_font() const { return value(OPTION_UI_FONT); } |
| 349 | 349 | const char *ram_size() const { return value(OPTION_RAMSIZE); } |
| 350 | 350 | |
| 351 | bool confirm_quit() const { return bool_value(OPTION_CONFIRM_QUIT); } | |
| 351 | bool confirm_quit() const { return bool_value(OPTION_CONFIRM_QUIT); } | |
| 352 | 352 | bool ui_mouse() const { return bool_value(OPTION_UI_MOUSE); } |
| 353 | 353 | |
| 354 | 354 | // device-specific options |
| r15975 | r15976 | |
|---|---|---|
| 63 | 63 | |
| 64 | 64 | |
| 65 | 65 | //------------------------------------------------- |
| 66 | // write_unsigned8 - write an 8-bit value, | |
| 67 | // keeping the scaled result unsigned | |
| 66 | // write_unsigned8 - write an 8-bit value, | |
| 67 | // keeping the scaled result unsigned | |
| 68 | 68 | //------------------------------------------------- |
| 69 | 69 | |
| 70 | 70 | WRITE8_MEMBER( dac_device::write_unsigned8 ) |
| r15975 | r15976 | |
| 74 | 74 | |
| 75 | 75 | |
| 76 | 76 | //------------------------------------------------- |
| 77 | // write_signed8 - write an 8-bit value, | |
| 78 | // keeping the scaled result signed | |
| 77 | // write_signed8 - write an 8-bit value, | |
| 78 | // keeping the scaled result signed | |
| 79 | 79 | //------------------------------------------------- |
| 80 | 80 | |
| 81 | 81 | WRITE8_MEMBER( dac_device::write_signed8 ) |
| r15975 | r15976 | |
|---|---|---|
| 437 | 437 | else |
| 438 | 438 | popup_text_end = 0; |
| 439 | 439 | |
| 440 | if (ui_mouse_show || (machine.options().ui_mouse() && ui_is_menu_active())) | |
| 440 | if (ui_mouse_show || (machine.options().ui_mouse() && ui_is_menu_active())) | |
| 441 | 441 | { |
| 442 | 442 | INT32 mouse_target_x, mouse_target_y; |
| 443 | 443 | int mouse_button; |
| r15975 | r15976 | |
| 915 | 915 | |
| 916 | 916 | |
| 917 | 917 | /*------------------------------------------------- |
| 918 | ui_show_mouse - change mouse status | |
| 918 | ui_show_mouse - change mouse status | |
| 919 | 919 | -------------------------------------------------*/ |
| 920 | 920 | |
| 921 | 921 | void ui_show_mouse(bool status) |
| r15975 | r15976 | |
|---|---|---|
| 1493 | 1493 | |
| 1494 | 1494 | |
| 1495 | 1495 | /*------------------------------------------------- |
| 1496 | software_load_warnings_message - return the | |
| 1496 | software_load_warnings_message - return the | |
| 1497 | 1497 | software load warnings we generated |
| 1498 | 1498 | -------------------------------------------------*/ |
| 1499 | 1499 |
| r15975 | r15976 | |
|---|---|---|
| 117 | 117 | UINT8 port_b_read() { return port_read(PORT_B); } |
| 118 | 118 | void port_a_write(UINT8 data) { port_write(PORT_A, data); } |
| 119 | 119 | void port_b_write(UINT8 data) { port_write(PORT_B, data); } |
| 120 | ||
| 120 | ||
| 121 | 121 | // standard read/write, with C/D in bit 1, B/A in bit 0 |
| 122 | 122 | DECLARE_READ8_MEMBER( read ); |
| 123 | 123 | DECLARE_WRITE8_MEMBER( write ); |
| r15975 | r15976 | |
|---|---|---|
| 252 | 252 | case MSM6242_REG_CD: |
| 253 | 253 | { |
| 254 | 254 | /* |
| 255 | x--- 30s ADJ | |
| 256 | -x-- IRQ FLAG | |
| 257 | --x- BUSY | |
| 258 | ---x HOLD | |
| 259 | */ | |
| 255 | x--- 30s ADJ | |
| 256 | -x-- IRQ FLAG | |
| 257 | --x- BUSY | |
| 258 | ---x HOLD | |
| 259 | */ | |
| 260 | 260 | |
| 261 | 261 | m_reg[0] = data & 0x0f; |
| 262 | 262 | |
| r15975 | r15976 | |
| 279 | 279 | case MSM6242_REG_CE: |
| 280 | 280 | { |
| 281 | 281 | /* |
| 282 | xx-- t0,t1 (timing irq) | |
| 283 | --x- STD | |
| 284 | ---x MASK | |
| 285 | */ | |
| 282 | xx-- t0,t1 (timing irq) | |
| 283 | --x- STD | |
| 284 | ---x MASK | |
| 285 | */ | |
| 286 | 286 | |
| 287 | 287 | m_reg[1] = data & 0x0f; |
| 288 | 288 | if((data & 3) == 0) // MASK & STD = 0 |
| r15975 | r15976 | |
| 304 | 304 | case MSM6242_REG_CF: |
| 305 | 305 | { |
| 306 | 306 | /* |
| 307 | x--- TEST | |
| 308 | -x-- 24/12 | |
| 309 | --x- STOP | |
| 310 | ---x RESET | |
| 311 | */ | |
| 307 | x--- TEST | |
| 308 | -x-- 24/12 | |
| 309 | --x- STOP | |
| 310 | ---x RESET | |
| 311 | */ | |
| 312 | 312 | |
| 313 | 313 | /* the 12/24 mode bit can only be changed when RESET does a 1 -> 0 transition */ |
| 314 | 314 | if (((data & 0x01) == 0x00) && (m_reg[2] & 0x01)) |
| r15975 | r15976 | |
|---|---|---|
| 108 | 108 | |
| 109 | 109 | //------------------------------------------------- |
| 110 | 110 | // trg0-3 - standard write line handlers for each |
| 111 | // | |
| 111 | // trigger | |
| 112 | 112 | //------------------------------------------------- |
| 113 | 113 | |
| 114 | 114 | WRITE_LINE_MEMBER( z80ctc_device::trg0 ) { trigger(0, state); } |
| r15975 | r15976 | |
|---|---|---|
| 78 | 78 | UINT8 read(int ch) { return m_channel[ch].read(); } |
| 79 | 79 | void write(int ch, UINT8 data) { m_channel[ch].write(data); } |
| 80 | 80 | void trigger(int ch, UINT8 data) { m_channel[ch].trigger(data); } |
| 81 | ||
| 81 | ||
| 82 | 82 | // read/write handlers |
| 83 | 83 | DECLARE_READ8_MEMBER( read ); |
| 84 | 84 | DECLARE_WRITE8_MEMBER( write ); |
| r15975 | r15976 | |
|---|---|---|
| 66 | 66 | void set_cts(int ch, int state) { m_channel[ch].set_cts(state); } |
| 67 | 67 | void set_dcd(int ch, int state) { m_channel[ch].set_dcd(state); } |
| 68 | 68 | void receive_data(int ch, int data) { m_channel[ch].receive_data(data); } |
| 69 | ||
| 69 | ||
| 70 | 70 | // standard read/write, with C/D in bit 1, B/A in bit 0 |
| 71 | 71 | DECLARE_READ8_MEMBER( read ); |
| 72 | 72 | DECLARE_WRITE8_MEMBER( write ); |
| r15975 | r15976 | |
|---|---|---|
| 83 | 83 | { |
| 84 | 84 | ret = (caslen - 4) * 8; // each byte = 8 samples |
| 85 | 85 | cas_size = ret; |
| 86 | ||
| 86 | ||
| 87 | 87 | samplerate = casdata[0x00] | (casdata[0x01] << 8) | (casdata[0x02] << 16) | (casdata[0x03] << 24); |
| 88 | 88 | new_format = 0; |
| 89 | 89 | } |
| 90 | ||
| 90 | ||
| 91 | 91 | return ret; |
| 92 | 92 | } |
| 93 | 93 |
| r15975 | r15976 | |
|---|---|---|
| 137 | 137 | { |
| 138 | 138 | /* |
| 139 | 139 | |
| 140 | ||
| 140 | The following is written into the buffer: | |
| 141 | 141 | |
| 142 | n bytes of track data | |
| 143 | 1982 bytes of speed zone data | |
| 142 | n bytes of track data | |
| 143 | 1982 bytes of speed zone data | |
| 144 | 144 | |
| 145 | ||
| 145 | get_track_size() returns n (size of track data) | |
| 146 | 146 | |
| 147 | ||
| 147 | */ | |
| 148 | 148 | |
| 149 | 149 | struct g64dsk_tag *tag = get_tag(floppy); |
| 150 | 150 | floperr_t err; |
| r15975 | r15976 | |
|---|---|---|
| 81 | 81 | // swap in the new buffer and free the old one |
| 82 | 82 | char *oldbuf = (m_text == m_smallbuf) ? NULL : m_text; |
| 83 | 83 | m_text = strcpy(newbuf, m_text); |
| 84 | m_len = strlen(m_text); | |
| 84 | 85 | m_alloclen = alloclen; |
| 85 | 86 | delete[] oldbuf; |
| 86 | 87 | |
| r15975 | r15976 | |
| 133 | 134 | m_text = m_smallbuf; |
| 134 | 135 | m_alloclen = ARRAY_LENGTH(m_smallbuf); |
| 135 | 136 | m_smallbuf[0] = 0; |
| 137 | m_len = 0; | |
| 136 | 138 | return *this; |
| 137 | 139 | } |
| 138 | 140 | |
| r15975 | r15976 | |
| 167 | 169 | if (count > 0 && m_text != src) |
| 168 | 170 | memcpy(m_text, src, count); |
| 169 | 171 | m_text[count] = 0; |
| 172 | m_len = count; | |
| 170 | 173 | return *this; |
| 171 | 174 | } |
| 172 | 175 | |
| r15975 | r15976 | |
| 178 | 181 | |
| 179 | 182 | astring &astring::cpysubstr(const astring &src, int start, int count) |
| 180 | 183 | { |
| 181 | normalize_substr(start, count, s | |
| 184 | normalize_substr(start, count, s | |
| 182 | 185 | return cpy(src.m_text + start, count); |
| 183 | 186 | } |
| 184 | 187 | |
| r15975 | r15976 | |
| 203 | 206 | memmove(m_text + insbefore + count, m_text + insbefore, dstlength - insbefore); |
| 204 | 207 | memcpy(m_text + insbefore, src, count); |
| 205 | 208 | m_text[dstlength + count] = 0; |
| 209 | m_len = dstlength + count; | |
| 206 | 210 | return *this; |
| 207 | 211 | } |
| 208 | 212 | |
| r15975 | r15976 | |
| 214 | 218 | |
| 215 | 219 | astring &astring::inssubstr(int insbefore, const astring &src, int start, int count) |
| 216 | 220 | { |
| 217 | normalize_substr(start, count, s | |
| 221 | normalize_substr(start, count, s | |
| 218 | 222 | return ins(insbefore, src.m_text + start, count); |
| 219 | 223 | } |
| 220 | 224 | |
| r15975 | r15976 | |
| 231 | 235 | return *this; |
| 232 | 236 | |
| 233 | 237 | // normalize parameters |
| 234 | normalize_substr(start, count, | |
| 238 | normalize_substr(start, count, | |
| 235 | 239 | |
| 236 | 240 | // move the data and NULL-terminate |
| 237 | 241 | if (count > 0 && start > 0) |
| 238 | 242 | memmove(m_text, m_text + start, count); |
| 239 | 243 | m_text[count] = 0; |
| 244 | m_len = count; | |
| 240 | 245 | return *this; |
| 241 | 246 | } |
| 242 | 247 | |
| r15975 | r15976 | |
| 253 | 258 | return *this; |
| 254 | 259 | |
| 255 | 260 | // normalize parameters |
| 256 | int strlength = | |
| 261 | int strlength = | |
| 257 | 262 | normalize_substr(start, count, strlength); |
| 258 | 263 | |
| 259 | 264 | // move the data and NULL-terminate |
| 260 | 265 | if (count > 0) |
| 261 | 266 | memmove(m_text + start, m_text + start + count, strlength - (start + count)); |
| 262 | 267 | m_text[strlength - count] = 0; |
| 268 | m_len = strlength - count; | |
| 263 | 269 | return *this; |
| 264 | 270 | } |
| 265 | 271 | |
| r15975 | r15976 | |
| 329 | 335 | |
| 330 | 336 | int astring::cmpsubstr(const astring &str2, int start, int count) const |
| 331 | 337 | { |
| 332 | normalize_substr(start, count, strlen( | |
| 338 | normalize_substr(start, count, str2.len( | |
| 333 | 339 | return cmp(str2.m_text + start, count); |
| 334 | 340 | } |
| 335 | 341 | |
| r15975 | r15976 | |
| 361 | 367 | |
| 362 | 368 | int astring::icmpsubstr(const astring &str2, int start, int count) const |
| 363 | 369 | { |
| 364 | normalize_substr(start, count, strlen( | |
| 370 | normalize_substr(start, count, str2.len( | |
| 365 | 371 | return icmp(str2.m_text + start, count); |
| 366 | 372 | } |
| 367 | 373 | |
| r15975 | r15976 | |
| 439 | 445 | if (*src != ch) |
| 440 | 446 | *dst++ = *src; |
| 441 | 447 | *dst = 0; |
| 448 | m_len = strlen(m_text); | |
| 442 | 449 | return *this; |
| 443 | 450 | } |
| 444 | 451 | |
| r15975 | r15976 | |
| 492 | 499 | astring &astring::trimspace() |
| 493 | 500 | { |
| 494 | 501 | // first remove stuff from the end |
| 495 | for (char *ptr = m_text + | |
| 502 | for (char *ptr = m_text + | |
| 496 | 503 | *ptr = 0; |
| 497 | 504 | |
| 498 | 505 | // then count how much to remove from the beginning |
| r15975 | r15976 | |
| 500 | 507 | for (ptr = m_text; *ptr != 0 && (!(*ptr & 0x80) && isspace(UINT8(*ptr))); ptr++) ; |
| 501 | 508 | if (ptr > m_text) |
| 502 | 509 | substr(ptr - m_text); |
| 510 | m_len = strlen(m_text); | |
| 503 | 511 | return *this; |
| 504 | 512 | } |
| r15975 | r15976 | |
|---|---|---|
| 184 | 184 | char * m_text; |
| 185 | 185 | int m_alloclen; |
| 186 | 186 | char m_smallbuf[64]; |
| 187 | int m_len; | |
| 187 | 188 | }; |
| 188 | 189 | |
| 189 | 190 |
| r15975 | r15976 | |
|---|---|---|
| 38 | 38 | ***************************************************************************/ |
| 39 | 39 | |
| 40 | 40 | extern const char build_version[]; |
| 41 | const char build_version[] = "0.146u | |
| 41 | const char build_version[] = "0.146u5 ("__DATE__")"; |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /* |
| 2 | vboy.c - Virtual Boy audio emulation | |
| 3 | ||
| 2 | vboy.c - Virtual Boy audio emulation | |
| 3 | ||
| 4 | 4 | By Richard Bannister and Gil Pedersen. |
| 5 | 5 | MESS device adaptation by R. Belmont |
| 6 | 6 | */ |
| r15975 | r15976 | |
| 13 | 13 | |
| 14 | 14 | //#define LAME_COMPILER_BUG |
| 15 | 15 | |
| 16 | #define SxINT | |
| 16 | #define SxINT | |
| 17 | 17 | #define SxLRV 0x04 |
| 18 | #define SxFQL 0x08 | |
| 19 | #define SxFQH 0x0c | |
| 20 | #define SxEV0 0x10 | |
| 21 | #define SxEV1 0x14 | |
| 18 | #define SxFQL 0x08 | |
| 19 | #define SxFQH 0x0c | |
| 20 | #define SxEV0 0x10 | |
| 21 | #define SxEV1 0x14 | |
| 22 | 22 | #define SxRAM 0x18 |
| 23 | 23 | |
| 24 | 24 | #define SxINTb 0x400+SxINT |
| r15975 | r15976 | |
| 33 | 33 | #define SST0P 0x580 |
| 34 | 34 | |
| 35 | 35 | static const INT16 outTbl[64][32] = { |
| 36 | { 0x0000, 0xffe0, 0xffc0, 0xffa0, 0xff80, 0xff60, 0xff40, 0xff20, 0xff00, 0xfee0, 0xfec0, 0xfea0, 0xfe80, 0xfe60, 0xfe40, 0xfe20, | |
| 36 | { 0x0000, 0xffe0, 0xffc0, 0xffa0, 0xff80, 0xff60, 0xff40, 0xff20, 0xff00, 0xfee0, 0xfec0, 0xfea0, 0xfe80, 0xfe60, 0xfe40, 0xfe20, | |
| 37 | 37 | 0xfe00, 0xfde0, 0xfdc0, 0xfda0, 0xfd80, 0xfd60, 0xfd40, 0xfd20, 0xfd00, 0xfce0, 0xfcc0, 0xfca0, 0xfc80, 0xfc60, 0xfc40, 0xfc20}, |
| 38 | { 0x0000, 0xffe1, 0xffc2, 0xffa3, 0xff84, 0xff65, 0xff46, 0xff27, 0xff08, 0xfee9, 0xfeca, 0xfeab, 0xfe8c, 0xfe6d, 0xfe4e, 0xfe2f, | |
| 38 | { 0x0000, 0xffe1, 0xffc2, 0xffa3, 0xff84, 0xff65, 0xff46, 0xff27, 0xff08, 0xfee9, 0xfeca, 0xfeab, 0xfe8c, 0xfe6d, 0xfe4e, 0xfe2f, | |
| 39 | 39 | 0xfe10, 0xfdf1, 0xfdd2, 0xfdb3, 0xfd94, 0xfd75, 0xfd56, 0xfd37, 0xfd18, 0xfcf9, 0xfcda, 0xfcbb, 0xfc9c, 0xfc7d, 0xfc5e, 0xfc3f}, |
| 40 | { 0x0000, 0xffe2, 0xffc4, 0xffa6, 0xff88, 0xff6a, 0xff4c, 0xff2e, 0xff10, 0xfef2, 0xfed4, 0xfeb6, 0xfe98, 0xfe7a, 0xfe5c, 0xfe3e, | |
| 40 | { 0x0000, 0xffe2, 0xffc4, 0xffa6, 0xff88, 0xff6a, 0xff4c, 0xff2e, 0xff10, 0xfef2, 0xfed4, 0xfeb6, 0xfe98, 0xfe7a, 0xfe5c, 0xfe3e, | |
| 41 | 41 | 0xfe20, 0xfe02, 0xfde4, 0xfdc6, 0xfda8, 0xfd8a, 0xfd6c, 0xfd4e, 0xfd30, 0xfd12, 0xfcf4, 0xfcd6, 0xfcb8, 0xfc9a, 0xfc7c, 0xfc5e}, |
| 42 | { 0x0000, 0xffe3, 0xffc6, 0xffa9, 0xff8c, 0xff6f, 0xff52, 0xff35, 0xff18, 0xfefb, 0xfede, 0xfec1, 0xfea4, 0xfe87, 0xfe6a, 0xfe4d, | |
| 42 | { 0x0000, 0xffe3, 0xffc6, 0xffa9, 0xff8c, 0xff6f, 0xff52, 0xff35, 0xff18, 0xfefb, 0xfede, 0xfec1, 0xfea4, 0xfe87, 0xfe6a, 0xfe4d, | |
| 43 | 43 | 0xfe30, 0xfe13, 0xfdf6, 0xfdd9, 0xfdbc, 0xfd9f, 0xfd82, 0xfd65, 0xfd48, 0xfd2b, 0xfd0e, 0xfcf1, 0xfcd4, 0xfcb7, 0xfc9a, 0xfc7d}, |
| 44 | { 0x0000, 0xffe4, 0xffc8, 0xffac, 0xff90, 0xff74, 0xff58, 0xff3c, 0xff20, 0xff04, 0xfee8, 0xfecc, 0xfeb0, 0xfe94, 0xfe78, 0xfe5c, | |
| 44 | { 0x0000, 0xffe4, 0xffc8, 0xffac, 0xff90, 0xff74, 0xff58, 0xff3c, 0xff20, 0xff04, 0xfee8, 0xfecc, 0xfeb0, 0xfe94, 0xfe78, 0xfe5c, | |
| 45 | 45 | 0xfe40, 0xfe24, 0xfe08, 0xfdec, 0xfdd0, 0xfdb4, 0xfd98, 0xfd7c, 0xfd60, 0xfd44, 0xfd28, 0xfd0c, 0xfcf0, 0xfcd4, 0xfcb8, 0xfc9c}, |
| 46 | { 0x0000, 0xffe5, 0xffca, 0xffaf, 0xff94, 0xff79, 0xff5e, 0xff43, 0xff28, 0xff0d, 0xfef2, 0xfed7, 0xfebc, 0xfea1, 0xfe86, 0xfe6b, | |
| 46 | { 0x0000, 0xffe5, 0xffca, 0xffaf, 0xff94, 0xff79, 0xff5e, 0xff43, 0xff28, 0xff0d, 0xfef2, 0xfed7, 0xfebc, 0xfea1, 0xfe86, 0xfe6b, | |
| 47 | 47 | 0xfe50, 0xfe35, 0xfe1a, 0xfdff, 0xfde4, 0xfdc9, 0xfdae, 0xfd93, 0xfd78, 0xfd5d, 0xfd42, 0xfd27, 0xfd0c, 0xfcf1, 0xfcd6, 0xfcbb}, |
| 48 | { 0x0000, 0xffe6, 0xffcc, 0xffb2, 0xff98, 0xff7e, 0xff64, 0xff4a, 0xff30, 0xff16, 0xfefc, 0xfee2, 0xfec8, 0xfeae, 0xfe94, 0xfe7a, | |
| 48 | { 0x0000, 0xffe6, 0xffcc, 0xffb2, 0xff98, 0xff7e, 0xff64, 0xff4a, 0xff30, 0xff16, 0xfefc, 0xfee2, 0xfec8, 0xfeae, 0xfe94, 0xfe7a, | |
| 49 | 49 | 0xfe60, 0xfe46, 0xfe2c, 0xfe12, 0xfdf8, 0xfdde, 0xfdc4, 0xfdaa, 0xfd90, 0xfd76, 0xfd5c, 0xfd42, 0xfd28, 0xfd0e, 0xfcf4, 0xfcda}, |
| 50 | { 0x0000, 0xffe7, 0xffce, 0xffb5, 0xff9c, 0xff83, 0xff6a, 0xff51, 0xff38, 0xff1f, 0xff06, 0xfeed, 0xfed4, 0xfebb, 0xfea2, 0xfe89, | |
| 50 | { 0x0000, 0xffe7, 0xffce, 0xffb5, 0xff9c, 0xff83, 0xff6a, 0xff51, 0xff38, 0xff1f, 0xff06, 0xfeed, 0xfed4, 0xfebb, 0xfea2, 0xfe89, | |
| 51 | 51 | 0xfe70, 0xfe57, 0xfe3e, 0xfe25, 0xfe0c, 0xfdf3, 0xfdda, 0xfdc1, 0xfda8, 0xfd8f, 0xfd76, 0xfd5d, 0xfd44, 0xfd2b, 0xfd12, 0xfcf9}, |
| 52 | { 0x0000, 0xffe8, 0xffd0, 0xffb8, 0xffa0, 0xff88, 0xff70, 0xff58, 0xff40, 0xff28, 0xff10, 0xfef8, 0xfee0, 0xfec8, 0xfeb0, 0xfe98, | |
| 52 | { 0x0000, 0xffe8, 0xffd0, 0xffb8, 0xffa0, 0xff88, 0xff70, 0xff58, 0xff40, 0xff28, 0xff10, 0xfef8, 0xfee0, 0xfec8, 0xfeb0, 0xfe98, | |
| 53 | 53 | 0xfe80, 0xfe68, 0xfe50, 0xfe38, 0xfe20, 0xfe08, 0xfdf0, 0xfdd8, 0xfdc0, 0xfda8, 0xfd90, 0xfd78, 0xfd60, 0xfd48, 0xfd30, 0xfd18}, |
| 54 | { 0x0000, 0xffe9, 0xffd2, 0xffbb, 0xffa4, 0xff8d, 0xff76, 0xff5f, 0xff48, 0xff31, 0xff1a, 0xff03, 0xfeec, 0xfed5, 0xfebe, 0xfea7, | |
| 54 | { 0x0000, 0xffe9, 0xffd2, 0xffbb, 0xffa4, 0xff8d, 0xff76, 0xff5f, 0xff48, 0xff31, 0xff1a, 0xff03, 0xfeec, 0xfed5, 0xfebe, 0xfea7, | |
| 55 | 55 | 0xfe90, 0xfe79, 0xfe62, 0xfe4b, 0xfe34, 0xfe1d, 0xfe06, 0xfdef, 0xfdd8, 0xfdc1, 0xfdaa, 0xfd93, 0xfd7c, 0xfd65, 0xfd4e, 0xfd37}, |
| 56 | { 0x0000, 0xffea, 0xffd4, 0xffbe, 0xffa8, 0xff92, 0xff7c, 0xff66, 0xff50, 0xff3a, 0xff24, 0xff0e, 0xfef8, 0xfee2, 0xfecc, 0xfeb6, | |
| 56 | { 0x0000, 0xffea, 0xffd4, 0xffbe, 0xffa8, 0xff92, 0xff7c, 0xff66, 0xff50, 0xff3a, 0xff24, 0xff0e, 0xfef8, 0xfee2, 0xfecc, 0xfeb6, | |
| 57 | 57 | 0xfea0, 0xfe8a, 0xfe74, 0xfe5e, 0xfe48, 0xfe32, 0xfe1c, 0xfe06, 0xfdf0, 0xfdda, 0xfdc4, 0xfdae, 0xfd98, 0xfd82, 0xfd6c, 0xfd56}, |
| 58 | { 0x0000, 0xffeb, 0xffd6, 0xffc1, 0xffac, 0xff97, 0xff82, 0xff6d, 0xff58, 0xff43, 0xff2e, 0xff19, 0xff04, 0xfeef, 0xfeda, 0xfec5, | |
| 58 | { 0x0000, 0xffeb, 0xffd6, 0xffc1, 0xffac, 0xff97, 0xff82, 0xff6d, 0xff58, 0xff43, 0xff2e, 0xff19, 0xff04, 0xfeef, 0xfeda, 0xfec5, | |
| 59 | 59 | 0xfeb0, 0xfe9b, 0xfe86, 0xfe71, 0xfe5c, 0xfe47, 0xfe32, 0xfe1d, 0xfe08, 0xfdf3, 0xfdde, 0xfdc9, 0xfdb4, 0xfd9f, 0xfd8a, 0xfd75}, |
| 60 | { 0x0000, 0xffec, 0xffd8, 0xffc4, 0xffb0, 0xff9c, 0xff88, 0xff74, 0xff60, 0xff4c, 0xff38, 0xff24, 0xff10, 0xfefc, 0xfee8, 0xfed4, | |
| 60 | { 0x0000, 0xffec, 0xffd8, 0xffc4, 0xffb0, 0xff9c, 0xff88, 0xff74, 0xff60, 0xff4c, 0xff38, 0xff24, 0xff10, 0xfefc, 0xfee8, 0xfed4, | |
| 61 | 61 | 0xfec0, 0xfeac, 0xfe98, 0xfe84, 0xfe70, 0xfe5c, 0xfe48, 0xfe34, 0xfe20, 0xfe0c, 0xfdf8, 0xfde4, 0xfdd0, 0xfdbc, 0xfda8, 0xfd94}, |
| 62 | { 0x0000, 0xffed, 0xffda, 0xffc7, 0xffb4, 0xffa1, 0xff8e, 0xff7b, 0xff68, 0xff55, 0xff42, 0xff2f, 0xff1c, 0xff09, 0xfef6, 0xfee3, | |
| 62 | { 0x0000, 0xffed, 0xffda, 0xffc7, 0xffb4, 0xffa1, 0xff8e, 0xff7b, 0xff68, 0xff55, 0xff42, 0xff2f, 0xff1c, 0xff09, 0xfef6, 0xfee3, | |
| 63 | 63 | 0xfed0, 0xfebd, 0xfeaa, 0xfe97, 0xfe84, 0xfe71, 0xfe5e, 0xfe4b, 0xfe38, 0xfe25, 0xfe12, 0xfdff, 0xfdec, 0xfdd9, 0xfdc6, 0xfdb3}, |
| 64 | { 0x0000, 0xffee, 0xffdc, 0xffca, 0xffb8, 0xffa6, 0xff94, 0xff82, 0xff70, 0xff5e, 0xff4c, 0xff3a, 0xff28, 0xff16, 0xff04, 0xfef2, | |
| 64 | { 0x0000, 0xffee, 0xffdc, 0xffca, 0xffb8, 0xffa6, 0xff94, 0xff82, 0xff70, 0xff5e, 0xff4c, 0xff3a, 0xff28, 0xff16, 0xff04, 0xfef2, | |
| 65 | 65 | 0xfee0, 0xfece, 0xfebc, 0xfeaa, 0xfe98, 0xfe86, 0xfe74, 0xfe62, 0xfe50, 0xfe3e, 0xfe2c, 0xfe1a, 0xfe08, 0xfdf6, 0xfde4, 0xfdd2}, |
| 66 | { 0x0000, 0xffef, 0xffde, 0xffcd, 0xffbc, 0xffab, 0xff9a, 0xff89, 0xff78, 0xff67, 0xff56, 0xff45, 0xff34, 0xff23, 0xff12, 0xff01, | |
| 66 | { 0x0000, 0xffef, 0xffde, 0xffcd, 0xffbc, 0xffab, 0xff9a, 0xff89, 0xff78, 0xff67, 0xff56, 0xff45, 0xff34, 0xff23, 0xff12, 0xff01, | |
| 67 | 67 | 0xfef0, 0xfedf, 0xfece, 0xfebd, 0xfeac, 0xfe9b, 0xfe8a, 0xfe79, 0xfe68, 0xfe57, 0xfe46, 0xfe35, 0xfe24, 0xfe13, 0xfe02, 0xfdf1}, |
| 68 | { 0x0000, 0xfff0, 0xffe0, 0xffd0, 0xffc0, 0xffb0, 0xffa0, 0xff90, 0xff80, 0xff70, 0xff60, 0xff50, 0xff40, 0xff30, 0xff20, 0xff10, | |
| 68 | { 0x0000, 0xfff0, 0xffe0, 0xffd0, 0xffc0, 0xffb0, 0xffa0, 0xff90, 0xff80, 0xff70, 0xff60, 0xff50, 0xff40, 0xff30, 0xff20, 0xff10, | |
| 69 | 69 | 0xff00, 0xfef0, 0xfee0, 0xfed0, 0xfec0, 0xfeb0, 0xfea0, 0xfe90, 0xfe80, 0xfe70, 0xfe60, 0xfe50, 0xfe40, 0xfe30, 0xfe20, 0xfe10}, |
| 70 | { 0x0000, 0xfff1, 0xffe2, 0xffd3, 0xffc4, 0xffb5, 0xffa6, 0xff97, 0xff88, 0xff79, 0xff6a, 0xff5b, 0xff4c, 0xff3d, 0xff2e, 0xff1f, | |
| 70 | { 0x0000, 0xfff1, 0xffe2, 0xffd3, 0xffc4, 0xffb5, 0xffa6, 0xff97, 0xff88, 0xff79, 0xff6a, 0xff5b, 0xff4c, 0xff3d, 0xff2e, 0xff1f, | |
| 71 | 71 | 0xff10, 0xff01, 0xfef2, 0xfee3, 0xfed4, 0xfec5, 0xfeb6, 0xfea7, 0xfe98, 0xfe89, 0xfe7a, 0xfe6b, 0xfe5c, 0xfe4d, 0xfe3e, 0xfe2f}, |
| 72 | { 0x0000, 0xfff2, 0xffe4, 0xffd6, 0xffc8, 0xffba, 0xffac, 0xff9e, 0xff90, 0xff82, 0xff74, 0xff66, 0xff58, 0xff4a, 0xff3c, 0xff2e, | |
| 72 | { 0x0000, 0xfff2, 0xffe4, 0xffd6, 0xffc8, 0xffba, 0xffac, 0xff9e, 0xff90, 0xff82, 0xff74, 0xff66, 0xff58, 0xff4a, 0xff3c, 0xff2e, | |
| 73 | 73 | 0xff20, 0xff12, 0xff04, 0xfef6, 0xfee8, 0xfeda, 0xfecc, 0xfebe, 0xfeb0, 0xfea2, 0xfe94, 0xfe86, 0xfe78, 0xfe6a, 0xfe5c, 0xfe4e}, |
| 74 | { 0x0000, 0xfff3, 0xffe6, 0xffd9, 0xffcc, 0xffbf, 0xffb2, 0xffa5, 0xff98, 0xff8b, 0xff7e, 0xff71, 0xff64, 0xff57, 0xff4a, 0xff3d, | |
| 74 | { 0x0000, 0xfff3, 0xffe6, 0xffd9, 0xffcc, 0xffbf, 0xffb2, 0xffa5, 0xff98, 0xff8b, 0xff7e, 0xff71, 0xff64, 0xff57, 0xff4a, 0xff3d, | |
| 75 | 75 | 0xff30, 0xff23, 0xff16, 0xff09, 0xfefc, 0xfeef, 0xfee2, 0xfed5, 0xfec8, 0xfebb, 0xfeae, 0xfea1, 0xfe94, 0xfe87, 0xfe7a, 0xfe6d}, |
| 76 | { 0x0000, 0xfff4, 0xffe8, 0xffdc, 0xffd0, 0xffc4, 0xffb8, 0xffac, 0xffa0, 0xff94, 0xff88, 0xff7c, 0xff70, 0xff64, 0xff58, 0xff4c, | |
| 76 | { 0x0000, 0xfff4, 0xffe8, 0xffdc, 0xffd0, 0xffc4, 0xffb8, 0xffac, 0xffa0, 0xff94, 0xff88, 0xff7c, 0xff70, 0xff64, 0xff58, 0xff4c, | |
| 77 | 77 | 0xff40, 0xff34, 0xff28, 0xff1c, 0xff10, 0xff04, 0xfef8, 0xfeec, 0xfee0, 0xfed4, 0xfec8, 0xfebc, 0xfeb0, 0xfea4, 0xfe98, 0xfe8c}, |
| 78 | { 0x0000, 0xfff5, 0xffea, 0xffdf, 0xffd4, 0xffc9, 0xffbe, 0xffb3, 0xffa8, 0xff9d, 0xff92, 0xff87, 0xff7c, 0xff71, 0xff66, 0xff5b, | |
| 78 | { 0x0000, 0xfff5, 0xffea, 0xffdf, 0xffd4, 0xffc9, 0xffbe, 0xffb3, 0xffa8, 0xff9d, 0xff92, 0xff87, 0xff7c, 0xff71, 0xff66, 0xff5b, | |
| 79 | 79 | 0xff50, 0xff45, 0xff3a, 0xff2f, 0xff24, 0xff19, 0xff0e, 0xff03, 0xfef8, 0xfeed, 0xfee2, 0xfed7, 0xfecc, 0xfec1, 0xfeb6, 0xfeab}, |
| 80 | { 0x0000, 0xfff6, 0xffec, 0xffe2, 0xffd8, 0xffce, 0xffc4, 0xffba, 0xffb0, 0xffa6, 0xff9c, 0xff92, 0xff88, 0xff7e, 0xff74, 0xff6a, | |
| 80 | { 0x0000, 0xfff6, 0xffec, 0xffe2, 0xffd8, 0xffce, 0xffc4, 0xffba, 0xffb0, 0xffa6, 0xff9c, 0xff92, 0xff88, 0xff7e, 0xff74, 0xff6a, | |
| 81 | 81 | 0xff60, 0xff56, 0xff4c, 0xff42, 0xff38, 0xff2e, 0xff24, 0xff1a, 0xff10, 0xff06, 0xfefc, 0xfef2, 0xfee8, 0xfede, 0xfed4, 0xfeca}, |
| 82 | { 0x0000, 0xfff7, 0xffee, 0xffe5, 0xffdc, 0xffd3, 0xffca, 0xffc1, 0xffb8, 0xffaf, 0xffa6, 0xff9d, 0xff94, 0xff8b, 0xff82, 0xff79, | |
| 82 | { 0x0000, 0xfff7, 0xffee, 0xffe5, 0xffdc, 0xffd3, 0xffca, 0xffc1, 0xffb8, 0xffaf, 0xffa6, 0xff9d, 0xff94, 0xff8b, 0xff82, 0xff79, | |
| 83 | 83 | 0xff70, 0xff67, 0xff5e, 0xff55, 0xff4c, 0xff43, 0xff3a, 0xff31, 0xff28, 0xff1f, 0xff16, 0xff0d, 0xff04, 0xfefb, 0xfef2, 0xfee9}, |
| 84 | { 0x0000, 0xfff8, 0xfff0, 0xffe8, 0xffe0, 0xffd8, 0xffd0, 0xffc8, 0xffc0, 0xffb8, 0xffb0, 0xffa8, 0xffa0, 0xff98, 0xff90, 0xff88, | |
| 84 | { 0x0000, 0xfff8, 0xfff0, 0xffe8, 0xffe0, 0xffd8, 0xffd0, 0xffc8, 0xffc0, 0xffb8, 0xffb0, 0xffa8, 0xffa0, 0xff98, 0xff90, 0xff88, | |
| 85 | 85 | 0xff80, 0xff78, 0xff70, 0xff68, 0xff60, 0xff58, 0xff50, 0xff48, 0xff40, 0xff38, 0xff30, 0xff28, 0xff20, 0xff18, 0xff10, 0xff08}, |
| 86 | { 0x0000, 0xfff9, 0xfff2, 0xffeb, 0xffe4, 0xffdd, 0xffd6, 0xffcf, 0xffc8, 0xffc1, 0xffba, 0xffb3, 0xffac, 0xffa5, 0xff9e, 0xff97, | |
| 86 | { 0x0000, 0xfff9, 0xfff2, 0xffeb, 0xffe4, 0xffdd, 0xffd6, 0xffcf, 0xffc8, 0xffc1, 0xffba, 0xffb3, 0xffac, 0xffa5, 0xff9e, 0xff97, | |
| 87 | 87 | 0xff90, 0xff89, 0xff82, 0xff7b, 0xff74, 0xff6d, 0xff66, 0xff5f, 0xff58, 0xff51, 0xff4a, 0xff43, 0xff3c, 0xff35, 0xff2e, 0xff27}, |
| 88 | { 0x0000, 0xfffa, 0xfff4, 0xffee, 0xffe8, 0xffe2, 0xffdc, 0xffd6, 0xffd0, 0xffca, 0xffc4, 0xffbe, 0xffb8, 0xffb2, 0xffac, 0xffa6, | |
| 88 | { 0x0000, 0xfffa, 0xfff4, 0xffee, 0xffe8, 0xffe2, 0xffdc, 0xffd6, 0xffd0, 0xffca, 0xffc4, 0xffbe, 0xffb8, 0xffb2, 0xffac, 0xffa6, | |
| 89 | 89 | 0xffa0, 0xff9a, 0xff94, 0xff8e, 0xff88, 0xff82, 0xff7c, 0xff76, 0xff70, 0xff6a, 0xff64, 0xff5e, 0xff58, 0xff52, 0xff4c, 0xff46}, |
| 90 | { 0x0000, 0xfffb, 0xfff6, 0xfff1, 0xffec, 0xffe7, 0xffe2, 0xffdd, 0xffd8, 0xffd3, 0xffce, 0xffc9, 0xffc4, 0xffbf, 0xffba, 0xffb5, | |
| 90 | { 0x0000, 0xfffb, 0xfff6, 0xfff1, 0xffec, 0xffe7, 0xffe2, 0xffdd, 0xffd8, 0xffd3, 0xffce, 0xffc9, 0xffc4, 0xffbf, 0xffba, 0xffb5, | |
| 91 | 91 | 0xffb0, 0xffab, 0xffa6, 0xffa1, 0xff9c, 0xff97, 0xff92, 0xff8d, 0xff88, 0xff83, 0xff7e, 0xff79, 0xff74, 0xff6f, 0xff6a, 0xff65}, |
| 92 | { 0x0000, 0xfffc, 0xfff8, 0xfff4, 0xfff0, 0xffec, 0xffe8, 0xffe4, 0xffe0, 0xffdc, 0xffd8, 0xffd4, 0xffd0, 0xffcc, 0xffc8, 0xffc4, | |
| 92 | { 0x0000, 0xfffc, 0xfff8, 0xfff4, 0xfff0, 0xffec, 0xffe8, 0xffe4, 0xffe0, 0xffdc, 0xffd8, 0xffd4, 0xffd0, 0xffcc, 0xffc8, 0xffc4, | |
| 93 | 93 | 0xffc0, 0xffbc, 0xffb8, 0xffb4, 0xffb0, 0xffac, 0xffa8, 0xffa4, 0xffa0, 0xff9c, 0xff98, 0xff94, 0xff90, 0xff8c, 0xff88, 0xff84}, |
| 94 | { 0x0000, 0xfffd, 0xfffa, 0xfff7, 0xfff4, 0xfff1, 0xffee, 0xffeb, 0xffe8, 0xffe5, 0xffe2, 0xffdf, 0xffdc, 0xffd9, 0xffd6, 0xffd3, | |
| 94 | { 0x0000, 0xfffd, 0xfffa, 0xfff7, 0xfff4, 0xfff1, 0xffee, 0xffeb, 0xffe8, 0xffe5, 0xffe2, 0xffdf, 0xffdc, 0xffd9, 0xffd6, 0xffd3, | |
| 95 | 95 | 0xffd0, 0xffcd, 0xffca, 0xffc7, 0xffc4, 0xffc1, 0xffbe, 0xffbb, 0xffb8, 0xffb5, 0xffb2, 0xffaf, 0xffac, 0xffa9, 0xffa6, 0xffa3}, |
| 96 | { 0x0000, 0xfffe, 0xfffc, 0xfffa, 0xfff8, 0xfff6, 0xfff4, 0xfff2, 0xfff0, 0xffee, 0xffec, 0xffea, 0xffe8, 0xffe6, 0xffe4, 0xffe2, | |
| 96 | { 0x0000, 0xfffe, 0xfffc, 0xfffa, 0xfff8, 0xfff6, 0xfff4, 0xfff2, 0xfff0, 0xffee, 0xffec, 0xffea, 0xffe8, 0xffe6, 0xffe4, 0xffe2, | |
| 97 | 97 | 0xffe0, 0xffde, 0xffdc, 0xffda, 0xffd8, 0xffd6, 0xffd4, 0xffd2, 0xffd0, 0xffce, 0xffcc, 0xffca, 0xffc8, 0xffc6, 0xffc4, 0xffc2}, |
| 98 | { 0x0000, 0xffff, 0xfffe, 0xfffd, 0xfffc, 0xfffb, 0xfffa, 0xfff9, 0xfff8, 0xfff7, 0xfff6, 0xfff5, 0xfff4, 0xfff3, 0xfff2, 0xfff1, | |
| 98 | { 0x0000, 0xffff, 0xfffe, 0xfffd, 0xfffc, 0xfffb, 0xfffa, 0xfff9, 0xfff8, 0xfff7, 0xfff6, 0xfff5, 0xfff4, 0xfff3, 0xfff2, 0xfff1, | |
| 99 | 99 | 0xfff0, 0xffef, 0xffee, 0xffed, 0xffec, 0xffeb, 0xffea, 0xffe9, 0xffe8, 0xffe7, 0xffe6, 0xffe5, 0xffe4, 0xffe3, 0xffe2, 0xffe1}, |
| 100 | { 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |
| 100 | { 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, | |
| 101 | 101 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000}, |
| 102 | { 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f, | |
| 102 | { 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, 0x0008, 0x0009, 0x000a, 0x000b, 0x000c, 0x000d, 0x000e, 0x000f, | |
| 103 | 103 | 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001f}, |
| 104 | { 0x0000, 0x0002, 0x0004, 0x0006, 0x0008, 0x000a, 0x000c, 0x000e, 0x0010, 0x0012, 0x0014, 0x0016, 0x0018, 0x001a, 0x001c, 0x001e, | |
| 104 | { 0x0000, 0x0002, 0x0004, 0x0006, 0x0008, 0x000a, 0x000c, 0x000e, 0x0010, 0x0012, 0x0014, 0x0016, 0x0018, 0x001a, 0x001c, 0x001e, | |
| 105 | 105 | 0x0020, 0x0022, 0x0024, 0x0026, 0x0028, 0x002a, 0x002c, 0x002e, 0x0030, 0x0032, 0x0034, 0x0036, 0x0038, 0x003a, 0x003c, 0x003e}, |
| 106 | { 0x0000, 0x0003, 0x0006, 0x0009, 0x000c, 0x000f, 0x0012, 0x0015, 0x0018, 0x001b, 0x001e, 0x0021, 0x0024, 0x0027, 0x002a, 0x002d, | |
| 106 | { 0x0000, 0x0003, 0x0006, 0x0009, 0x000c, 0x000f, 0x0012, 0x0015, 0x0018, 0x001b, 0x001e, 0x0021, 0x0024, 0x0027, 0x002a, 0x002d, | |
| 107 | 107 | 0x0030, 0x0033, 0x0036, 0x0039, 0x003c, 0x003f, 0x0042, 0x0045, 0x0048, 0x004b, 0x004e, 0x0051, 0x0054, 0x0057, 0x005a, 0x005d}, |
| 108 | { 0x0000, 0x0004, 0x0008, 0x000c, 0x0010, 0x0014, 0x0018, 0x001c, 0x0020, 0x0024, 0x0028, 0x002c, 0x0030, 0x0034, 0x0038, 0x003c, | |
| 108 | { 0x0000, 0x0004, 0x0008, 0x000c, 0x0010, 0x0014, 0x0018, 0x001c, 0x0020, 0x0024, 0x0028, 0x002c, 0x0030, 0x0034, 0x0038, 0x003c, | |
| 109 | 109 | 0x0040, 0x0044, 0x0048, 0x004c, 0x0050, 0x0054, 0x0058, 0x005c, 0x0060, 0x0064, 0x0068, 0x006c, 0x0070, 0x0074, 0x0078, 0x007c}, |
| 110 | { 0x0000, 0x0005, 0x000a, 0x000f, 0x0014, 0x0019, 0x001e, 0x0023, 0x0028, 0x002d, 0x0032, 0x0037, 0x003c, 0x0041, 0x0046, 0x004b, | |
| 110 | { 0x0000, 0x0005, 0x000a, 0x000f, 0x0014, 0x0019, 0x001e, 0x0023, 0x0028, 0x002d, 0x0032, 0x0037, 0x003c, 0x0041, 0x0046, 0x004b, | |
| 111 | 111 | 0x0050, 0x0055, 0x005a, 0x005f, 0x0064, 0x0069, 0x006e, 0x0073, 0x0078, 0x007d, 0x0082, 0x0087, 0x008c, 0x0091, 0x0096, 0x009b}, |
| 112 | { 0x0000, 0x0006, 0x000c, 0x0012, 0x0018, 0x001e, 0x0024, 0x002a, 0x0030, 0x0036, 0x003c, 0x0042, 0x0048, 0x004e, 0x0054, 0x005a, | |
| 112 | { 0x0000, 0x0006, 0x000c, 0x0012, 0x0018, 0x001e, 0x0024, 0x002a, 0x0030, 0x0036, 0x003c, 0x0042, 0x0048, 0x004e, 0x0054, 0x005a, | |
| 113 | 113 | 0x0060, 0x0066, 0x006c, 0x0072, 0x0078, 0x007e, 0x0084, 0x008a, 0x0090, 0x0096, 0x009c, 0x00a2, 0x00a8, 0x00ae, 0x00b4, 0x00ba}, |
| 114 | { 0x0000, 0x0007, 0x000e, 0x0015, 0x001c, 0x0023, 0x002a, 0x0031, 0x0038, 0x003f, 0x0046, 0x004d, 0x0054, 0x005b, 0x0062, 0x0069, | |
| 114 | { 0x0000, 0x0007, 0x000e, 0x0015, 0x001c, 0x0023, 0x002a, 0x0031, 0x0038, 0x003f, 0x0046, 0x004d, 0x0054, 0x005b, 0x0062, 0x0069, | |
| 115 | 115 | 0x0070, 0x0077, 0x007e, 0x0085, 0x008c, 0x0093, 0x009a, 0x00a1, 0x00a8, 0x00af, 0x00b6, 0x00bd, 0x00c4, 0x00cb, 0x00d2, 0x00d9}, |
| 116 | { 0x0000, 0x0008, 0x0010, 0x0018, 0x0020, 0x0028, 0x0030, 0x0038, 0x0040, 0x0048, 0x0050, 0x0058, 0x0060, 0x0068, 0x0070, 0x0078, | |
| 116 | { 0x0000, 0x0008, 0x0010, 0x0018, 0x0020, 0x0028, 0x0030, 0x0038, 0x0040, 0x0048, 0x0050, 0x0058, 0x0060, 0x0068, 0x0070, 0x0078, | |
| 117 | 117 | 0x0080, 0x0088, 0x0090, 0x0098, 0x00a0, 0x00a8, 0x00b0, 0x00b8, 0x00c0, 0x00c8, 0x00d0, 0x00d8, 0x00e0, 0x00e8, 0x00f0, 0x00f8}, |
| 118 | { 0x0000, 0x0009, 0x0012, 0x001b, 0x0024, 0x002d, 0x0036, 0x003f, 0x0048, 0x0051, 0x005a, 0x0063, 0x006c, 0x0075, 0x007e, 0x0087, | |
| 118 | { 0x0000, 0x0009, 0x0012, 0x001b, 0x0024, 0x002d, 0x0036, 0x003f, 0x0048, 0x0051, 0x005a, 0x0063, 0x006c, 0x0075, 0x007e, 0x0087, | |
| 119 | 119 | 0x0090, 0x0099, 0x00a2, 0x00ab, 0x00b4, 0x00bd, 0x00c6, 0x00cf, 0x00d8, 0x00e1, 0x00ea, 0x00f3, 0x00fc, 0x0105, 0x010e, 0x0117}, |
| 120 | { 0x0000, 0x000a, 0x0014, 0x001e, 0x0028, 0x0032, 0x003c, 0x0046, 0x0050, 0x005a, 0x0064, 0x006e, 0x0078, 0x0082, 0x008c, 0x0096, | |
| 120 | { 0x0000, 0x000a, 0x0014, 0x001e, 0x0028, 0x0032, 0x003c, 0x0046, 0x0050, 0x005a, 0x0064, 0x006e, 0x0078, 0x0082, 0x008c, 0x0096, | |
| 121 | 121 | 0x00a0, 0x00aa, 0x00b4, 0x00be, 0x00c8, 0x00d2, 0x00dc, 0x00e6, 0x00f0, 0x00fa, 0x0104, 0x010e, 0x0118, 0x0122, 0x012c, 0x0136}, |
| 122 | { 0x0000, 0x000b, 0x0016, 0x0021, 0x002c, 0x0037, 0x0042, 0x004d, 0x0058, 0x0063, 0x006e, 0x0079, 0x0084, 0x008f, 0x009a, 0x00a5, | |
| 122 | { 0x0000, 0x000b, 0x0016, 0x0021, 0x002c, 0x0037, 0x0042, 0x004d, 0x0058, 0x0063, 0x006e, 0x0079, 0x0084, 0x008f, 0x009a, 0x00a5, | |
| 123 | 123 | 0x00b0, 0x00bb, 0x00c6, 0x00d1, 0x00dc, 0x00e7, 0x00f2, 0x00fd, 0x0108, 0x0113, 0x011e, 0x0129, 0x0134, 0x013f, 0x014a, 0x0155}, |
| 124 | { 0x0000, 0x000c, 0x0018, 0x0024, 0x0030, 0x003c, 0x0048, 0x0054, 0x0060, 0x006c, 0x0078, 0x0084, 0x0090, 0x009c, 0x00a8, 0x00b4, | |
| 124 | { 0x0000, 0x000c, 0x0018, 0x0024, 0x0030, 0x003c, 0x0048, 0x0054, 0x0060, 0x006c, 0x0078, 0x0084, 0x0090, 0x009c, 0x00a8, 0x00b4, | |
| 125 | 125 | 0x00c0, 0x00cc, 0x00d8, 0x00e4, 0x00f0, 0x00fc, 0x0108, 0x0114, 0x0120, 0x012c, 0x0138, 0x0144, 0x0150, 0x015c, 0x0168, 0x0174}, |
| 126 | { 0x0000, 0x000d, 0x001a, 0x0027, 0x0034, 0x0041, 0x004e, 0x005b, 0x0068, 0x0075, 0x0082, 0x008f, 0x009c, 0x00a9, 0x00b6, 0x00c3, | |
| 126 | { 0x0000, 0x000d, 0x001a, 0x0027, 0x0034, 0x0041, 0x004e, 0x005b, 0x0068, 0x0075, 0x0082, 0x008f, 0x009c, 0x00a9, 0x00b6, 0x00c3, | |
| 127 | 127 | 0x00d0, 0x00dd, 0x00ea, 0x00f7, 0x0104, 0x0111, 0x011e, 0x012b, 0x0138, 0x0145, 0x0152, 0x015f, 0x016c, 0x0179, 0x0186, 0x0193}, |
| 128 | { 0x0000, 0x000e, 0x001c, 0x002a, 0x0038, 0x0046, 0x0054, 0x0062, 0x0070, 0x007e, 0x008c, 0x009a, 0x00a8, 0x00b6, 0x00c4, 0x00d2, | |
| 128 | { 0x0000, 0x000e, 0x001c, 0x002a, 0x0038, 0x0046, 0x0054, 0x0062, 0x0070, 0x007e, 0x008c, 0x009a, 0x00a8, 0x00b6, 0x00c4, 0x00d2, | |
| 129 | 129 | 0x00e0, 0x00ee, 0x00fc, 0x010a, 0x0118, 0x0126, 0x0134, 0x0142, 0x0150, 0x015e, 0x016c, 0x017a, 0x0188, 0x0196, 0x01a4, 0x01b2}, |
| 130 | { 0x0000, 0x000f, 0x001e, 0x002d, 0x003c, 0x004b, 0x005a, 0x0069, 0x0078, 0x0087, 0x0096, 0x00a5, 0x00b4, 0x00c3, 0x00d2, 0x00e1, | |
| 130 | { 0x0000, 0x000f, 0x001e, 0x002d, 0x003c, 0x004b, 0x005a, 0x0069, 0x0078, 0x0087, 0x0096, 0x00a5, 0x00b4, 0x00c3, 0x00d2, 0x00e1, | |
| 131 | 131 | 0x00f0, 0x00ff, 0x010e, 0x011d, 0x012c, 0x013b, 0x014a, 0x0159, 0x0168, 0x0177, 0x0186, 0x0195, 0x01a4, 0x01b3, 0x01c2, 0x01d1}, |
| 132 | { 0x0000, 0x0010, 0x0020, 0x0030, 0x0040, 0x0050, 0x0060, 0x0070, 0x0080, 0x0090, 0x00a0, 0x00b0, 0x00c0, 0x00d0, 0x00e0, 0x00f0, | |
| 132 | { 0x0000, 0x0010, 0x0020, 0x0030, 0x0040, 0x0050, 0x0060, 0x0070, 0x0080, 0x0090, 0x00a0, 0x00b0, 0x00c0, 0x00d0, 0x00e0, 0x00f0, | |
| 133 | 133 | 0x0100, 0x0110, 0x0120, 0x0130, 0x0140, 0x0150, 0x0160, 0x0170, 0x0180, 0x0190, 0x01a0, 0x01b0, 0x01c0, 0x01d0, 0x01e0, 0x01f0}, |
| 134 | { 0x0000, 0x0011, 0x0022, 0x0033, 0x0044, 0x0055, 0x0066, 0x0077, 0x0088, 0x0099, 0x00aa, 0x00bb, 0x00cc, 0x00dd, 0x00ee, 0x00ff, | |
| 134 | { 0x0000, 0x0011, 0x0022, 0x0033, 0x0044, 0x0055, 0x0066, 0x0077, 0x0088, 0x0099, 0x00aa, 0x00bb, 0x00cc, 0x00dd, 0x00ee, 0x00ff, | |
| 135 | 135 | 0x0110, 0x0121, 0x0132, 0x0143, 0x0154, 0x0165, 0x0176, 0x0187, 0x0198, 0x01a9, 0x01ba, 0x01cb, 0x01dc, 0x01ed, 0x01fe, 0x020f}, |
| 136 | { 0x0000, 0x0012, 0x0024, 0x0036, 0x0048, 0x005a, 0x006c, 0x007e, 0x0090, 0x00a2, 0x00b4, 0x00c6, 0x00d8, 0x00ea, 0x00fc, 0x010e, | |
| 136 | { 0x0000, 0x0012, 0x0024, 0x0036, 0x0048, 0x005a, 0x006c, 0x007e, 0x0090, 0x00a2, 0x00b4, 0x00c6, 0x00d8, 0x00ea, 0x00fc, 0x010e, | |
| 137 | 137 | 0x0120, 0x0132, 0x0144, 0x0156, 0x0168, 0x017a, 0x018c, 0x019e, 0x01b0, 0x01c2, 0x01d4, 0x01e6, 0x01f8, 0x020a, 0x021c, 0x022e}, |
| 138 | { 0x0000, 0x0013, 0x0026, 0x0039, 0x004c, 0x005f, 0x0072, 0x0085, 0x0098, 0x00ab, 0x00be, 0x00d1, 0x00e4, 0x00f7, 0x010a, 0x011d, | |
| 138 | { 0x0000, 0x0013, 0x0026, 0x0039, 0x004c, 0x005f, 0x0072, 0x0085, 0x0098, 0x00ab, 0x00be, 0x00d1, 0x00e4, 0x00f7, 0x010a, 0x011d, | |
| 139 | 139 | 0x0130, 0x0143, 0x0156, 0x0169, 0x017c, 0x018f, 0x01a2, 0x01b5, 0x01c8, 0x01db, 0x01ee, 0x0201, 0x0214, 0x0227, 0x023a, 0x024d}, |
| 140 | { 0x0000, 0x0014, 0x0028, 0x003c, 0x0050, 0x0064, 0x0078, 0x008c, 0x00a0, 0x00b4, 0x00c8, 0x00dc, 0x00f0, 0x0104, 0x0118, 0x012c, | |
| 140 | { 0x0000, 0x0014, 0x0028, 0x003c, 0x0050, 0x0064, 0x0078, 0x008c, 0x00a0, 0x00b4, 0x00c8, 0x00dc, 0x00f0, 0x0104, 0x0118, 0x012c, | |
| 141 | 141 | 0x0140, 0x0154, 0x0168, 0x017c, 0x0190, 0x01a4, 0x01b8, 0x01cc, 0x01e0, 0x01f4, 0x0208, 0x021c, 0x0230, 0x0244, 0x0258, 0x026c}, |
| 142 | { 0x0000, 0x0015, 0x002a, 0x003f, 0x0054, 0x0069, 0x007e, 0x0093, 0x00a8, 0x00bd, 0x00d2, 0x00e7, 0x00fc, 0x0111, 0x0126, 0x013b, | |
| 142 | { 0x0000, 0x0015, 0x002a, 0x003f, 0x0054, 0x0069, 0x007e, 0x0093, 0x00a8, 0x00bd, 0x00d2, 0x00e7, 0x00fc, 0x0111, 0x0126, 0x013b, | |
| 143 | 143 | 0x0150, 0x0165, 0x017a, 0x018f, 0x01a4, 0x01b9, 0x01ce, 0x01e3, 0x01f8, 0x020d, 0x0222, 0x0237, 0x024c, 0x0261, 0x0276, 0x028b}, |
| 144 | { 0x0000, 0x0016, 0x002c, 0x0042, 0x0058, 0x006e, 0x0084, 0x009a, 0x00b0, 0x00c6, 0x00dc, 0x00f2, 0x0108, 0x011e, 0x0134, 0x014a, | |
| 144 | { 0x0000, 0x0016, 0x002c, 0x0042, 0x0058, 0x006e, 0x0084, 0x009a, 0x00b0, 0x00c6, 0x00dc, 0x00f2, 0x0108, 0x011e, 0x0134, 0x014a, | |
| 145 | 145 | 0x0160, 0x0176, 0x018c, 0x01a2, 0x01b8, 0x01ce, 0x01e4, 0x01fa, 0x0210, 0x0226, 0x023c, 0x0252, 0x0268, 0x027e, 0x0294, 0x02aa}, |
| 146 | { 0x0000, 0x0017, 0x002e, 0x0045, 0x005c, 0x0073, 0x008a, 0x00a1, 0x00b8, 0x00cf, 0x00e6, 0x00fd, 0x0114, 0x012b, 0x0142, 0x0159, | |
| 146 | { 0x0000, 0x0017, 0x002e, 0x0045, 0x005c, 0x0073, 0x008a, 0x00a1, 0x00b8, 0x00cf, 0x00e6, 0x00fd, 0x0114, 0x012b, 0x0142, 0x0159, | |
| 147 | 147 | 0x0170, 0x0187, 0x019e, 0x01b5, 0x01cc, 0x01e3, 0x01fa, 0x0211, 0x0228, 0x023f, 0x0256, 0x026d, 0x0284, 0x029b, 0x02b2, 0x02c9}, |
| 148 | { 0x0000, 0x0018, 0x0030, 0x0048, 0x0060, 0x0078, 0x0090, 0x00a8, 0x00c0, 0x00d8, 0x00f0, 0x0108, 0x0120, 0x0138, 0x0150, 0x0168, | |
| 148 | { 0x0000, 0x0018, 0x0030, 0x0048, 0x0060, 0x0078, 0x0090, 0x00a8, 0x00c0, 0x00d8, 0x00f0, 0x0108, 0x0120, 0x0138, 0x0150, 0x0168, | |
| 149 | 149 | 0x0180, 0x0198, 0x01b0, 0x01c8, 0x01e0, 0x01f8, 0x0210, 0x0228, 0x0240, 0x0258, 0x0270, 0x0288, 0x02a0, 0x02b8, 0x02d0, 0x02e8}, |
| 150 | { 0x0000, 0x0019, 0x0032, 0x004b, 0x0064, 0x007d, 0x0096, 0x00af, 0x00c8, 0x00e1, 0x00fa, 0x0113, 0x012c, 0x0145, 0x015e, 0x0177, | |
| 150 | { 0x0000, 0x0019, 0x0032, 0x004b, 0x0064, 0x007d, 0x0096, 0x00af, 0x00c8, 0x00e1, 0x00fa, 0x0113, 0x012c, 0x0145, 0x015e, 0x0177, | |
| 151 | 151 | 0x0190, 0x01a9, 0x01c2, 0x01db, 0x01f4, 0x020d, 0x0226, 0x023f, 0x0258, 0x0271, 0x028a, 0x02a3, 0x02bc, 0x02d5, 0x02ee, 0x0307}, |
| 152 | { 0x0000, 0x001a, 0x0034, 0x004e, 0x0068, 0x0082, 0x009c, 0x00b6, 0x00d0, 0x00ea, 0x0104, 0x011e, 0x0138, 0x0152, 0x016c, 0x0186, | |
| 152 | { 0x0000, 0x001a, 0x0034, 0x004e, 0x0068, 0x0082, 0x009c, 0x00b6, 0x00d0, 0x00ea, 0x0104, 0x011e, 0x0138, 0x0152, 0x016c, 0x0186, | |
| 153 | 153 | 0x01a0, 0x01ba, 0x01d4, 0x01ee, 0x0208, 0x0222, 0x023c, 0x0256, 0x0270, 0x028a, 0x02a4, 0x02be, 0x02d8, 0x02f2, 0x030c, 0x0326}, |
| 154 | { 0x0000, 0x001b, 0x0036, 0x0051, 0x006c, 0x0087, 0x00a2, 0x00bd, 0x00d8, 0x00f3, 0x010e, 0x0129, 0x0144, 0x015f, 0x017a, 0x0195, | |
| 154 | { 0x0000, 0x001b, 0x0036, 0x0051, 0x006c, 0x0087, 0x00a2, 0x00bd, 0x00d8, 0x00f3, 0x010e, 0x0129, 0x0144, 0x015f, 0x017a, 0x0195, | |
| 155 | 155 | 0x01b0, 0x01cb, 0x01e6, 0x0201, 0x021c, 0x0237, 0x0252, 0x026d, 0x0288, 0x02a3, 0x02be, 0x02d9, 0x02f4, 0x030f, 0x032a, 0x0345}, |
| 156 | { 0x0000, 0x001c, 0x0038, 0x0054, 0x0070, 0x008c, 0x00a8, 0x00c4, 0x00e0, 0x00fc, 0x0118, 0x0134, 0x0150, 0x016c, 0x0188, 0x01a4, | |
| 156 | { 0x0000, 0x001c, 0x0038, 0x0054, 0x0070, 0x008c, 0x00a8, 0x00c4, 0x00e0, 0x00fc, 0x0118, 0x0134, 0x0150, 0x016c, 0x0188, 0x01a4, | |
| 157 | 157 | 0x01c0, 0x01dc, 0x01f8, 0x0214, 0x0230, 0x024c, 0x0268, 0x0284, 0x02a0, 0x02bc, 0x02d8, 0x02f4, 0x0310, 0x032c, 0x0348, 0x0364}, |
| 158 | { 0x0000, 0x001d, 0x003a, 0x0057, 0x0074, 0x0091, 0x00ae, 0x00cb, 0x00e8, 0x0105, 0x0122, 0x013f, 0x015c, 0x0179, 0x0196, 0x01b3, | |
| 158 | { 0x0000, 0x001d, 0x003a, 0x0057, 0x0074, 0x0091, 0x00ae, 0x00cb, 0x00e8, 0x0105, 0x0122, 0x013f, 0x015c, 0x0179, 0x0196, 0x01b3, | |
| 159 | 159 | 0x01d0, 0x01ed, 0x020a, 0x0227, 0x0244, 0x0261, 0x027e, 0x029b, 0x02b8, 0x02d5, 0x02f2, 0x030f, 0x032c, 0x0349, 0x0366, 0x0383}, |
| 160 | { 0x0000, 0x001e, 0x003c, 0x005a, 0x0078, 0x0096, 0x00b4, 0x00d2, 0x00f0, 0x010e, 0x012c, 0x014a, 0x0168, 0x0186, 0x01a4, 0x01c2, | |
| 160 | { 0x0000, 0x001e, 0x003c, 0x005a, 0x0078, 0x0096, 0x00b4, 0x00d2, 0x00f0, 0x010e, 0x012c, 0x014a, 0x0168, 0x0186, 0x01a4, 0x01c2, | |
| 161 | 161 | 0x01e0, 0x01fe, 0x021c, 0x023a, 0x0258, 0x0276, 0x0294, 0x02b2, 0x02d0, 0x02ee, 0x030c, 0x032a, 0x0348, 0x0366, 0x0384, 0x03a2}, |
| 162 | { 0x0000, 0x001f, 0x003e, 0x005d, 0x007c, 0x009b, 0x00ba, 0x00d9, 0x00f8, 0x0117, 0x0136, 0x0155, 0x0174, 0x0193, 0x01b2, 0x01d1, | |
| 162 | { 0x0000, 0x001f, 0x003e, 0x005d, 0x007c, 0x009b, 0x00ba, 0x00d9, 0x00f8, 0x0117, 0x0136, 0x0155, 0x0174, 0x0193, 0x01b2, 0x01d1, | |
| 163 | 163 | 0x01f0, 0x020f, 0x022e, 0x024d, 0x026c, 0x028b, 0x02aa, 0x02c9, 0x02e8, 0x0307, 0x0326, 0x0345, 0x0364, 0x0383, 0x03a2, 0x03c1} |
| 164 | 164 | }; |
| 165 | 165 | |
| r15975 | r15976 | |
| 209 | 209 | |
| 210 | 210 | // create the stream |
| 211 | 211 | m_stream = machine().sound().stream_alloc(*this, 0, 2, AUDIO_FREQ, this); |
| 212 | ||
| 212 | ||
| 213 | 213 | for (i=0; i<2048; i++) |
| 214 | 214 | waveFreq2LenTbl[i] = AUDIO_FREQ / (5000000.0/(float)((2048-i) * 32)); |
| 215 | 215 | for (i=0; i<32; i++) |
| 216 | 216 | waveTimer2LenTbl[i] = ((0.00384*(float)(i+1)) * (float)AUDIO_FREQ); |
| 217 | 217 | for (i=0; i<8; i++) |
| 218 | 218 | waveEnv2LenTbl[i] = ((0.01536*(float)(i+1)) * (float)AUDIO_FREQ); |
| 219 | ||
| 219 | ||
| 220 | 220 | for (i = 0; i < 5; i++) |
| 221 | 221 | memset(&snd_channel[i], 0, sizeof(s_snd_channel)); |
| 222 | 222 | |
| r15975 | r15976 | |
| 236 | 236 | m_stream->update(); |
| 237 | 237 | |
| 238 | 238 | int i; |
| 239 | ||
| 239 | ||
| 240 | 240 | for (i=0; i<4; i++) |
| 241 | 241 | snd_channel[i].playing = false; |
| 242 | 242 | } |
| r15975 | r15976 | |
| 264 | 264 | outR = outputs[1]; |
| 265 | 265 | |
| 266 | 266 | len = samples; |
| 267 | ||
| 268 | // if (mgetb(m_aram+SST0P) & 0x1) // Sound Stop Reg | |
| 269 | // goto end; | |
| 270 | ||
| 267 | ||
| 268 | // if (mgetb(m_aram+SST0P) & 0x1) // Sound Stop Reg | |
| 269 | // goto end; | |
| 270 | ||
| 271 | 271 | for (channel=0; channel<5; channel++) |
| 272 | 272 | { |
| 273 | 273 | float size; |
| 274 | 274 | int k = 0, waveAddr; |
| 275 | ||
| 275 | ||
| 276 | 276 | i = channel * 0x40; |
| 277 | 277 | snd_channel[channel].sample_len = waveFreq2LenTbl[((mgetb(m_aram+SxFQHb+i) & 0x7) << 8) | mgetb(m_aram+SxFQLb+i)]; |
| 278 | 278 | waveAddr = (mgetb(m_aram + SxRAMb + i) & 0x3) << 7; |
| 279 | ||
| 279 | ||
| 280 | 280 | size = (float)snd_channel[channel].sample_len / 32.0; |
| 281 | 281 | for (j=0; j<32;) |
| 282 | 282 | { |
| 283 | 283 | INT8 byte = mgetb(m_aram + waveAddr + (j++ << 2)) & 0x3f; |
| 284 | // | |
| 284 | // INT8 nbyte = mgetb(m_aram + waveAddr + (j << 2)) & 0x3f; | |
| 285 | 285 | int end = (int)(((float)j)*size); |
| 286 | 286 | float val, add; |
| 287 | ||
| 287 | ||
| 288 | 288 | val = (float)byte; |
| 289 | 289 | add = /*(nbyte-byte)/(end-k)*/ 0.0; // no interpolation |
| 290 | ||
| 290 | ||
| 291 | 291 | for (; k<end; k++, val+=add) |
| 292 | 292 | { |
| 293 | 293 | #ifdef LAME_COMPILER_BUG |
| r15975 | r15976 | |
| 298 | 298 | } |
| 299 | 299 | } |
| 300 | 300 | } |
| 301 | ||
| 301 | ||
| 302 | 302 | for (j=0; j<len; j++) |
| 303 | 303 | { |
| 304 | 304 | INT32 note_left = 0; |
| 305 | 305 | INT32 note_right = 0; |
| 306 | ||
| 306 | ||
| 307 | 307 | // process first 4 sound channels |
| 308 | 308 | for (i=0; i</*5*/5; i++) |
| 309 | 309 | { |
| 310 | 310 | UINT8 outLeft, outRight; |
| 311 | 311 | const INT16 *outTblPtr; |
| 312 | // | |
| 312 | // UINT8 env0, env1; | |
| 313 | 313 | s_snd_channel *channel = &snd_channel[i]; |
| 314 | ||
| 314 | ||
| 315 | 315 | if (!channel->playing) |
| 316 | 316 | continue; |
| 317 | ||
| 317 | ||
| 318 | 318 | outLeft = outLvlTbl[channel->volLeft][channel->envelope]; |
| 319 | 319 | outRight = outLvlTbl[channel->volRight][channel->envelope]; |
| 320 | // | |
| 320 | // env1 = ((UINT8)mgetb(m_aram+SxEV1b+i*0x40)); | |
| 321 | 321 | if (channel->env1 & 0x01) |
| 322 | 322 | { |
| 323 | 323 | channel->env_time++; |
| 324 | ||
| 325 | // env0 = ((UINT8)mgetb(m_aram+SxEV0b+i*0x40)); | |
| 324 | ||
| 325 | // env0 = ((UINT8)mgetb(m_aram+SxEV0b+i*0x40)); | |
| 326 | 326 | if (channel->env_time >= channel->env_steptime /*waveEnv2LenTbl[env0 & 0x7]*/) |
| 327 | 327 | { |
| 328 | 328 | // it's time for a step |
| r15975 | r15976 | |
| 349 | 349 | } |
| 350 | 350 | } |
| 351 | 351 | } |
| 352 | ||
| 352 | ||
| 353 | 353 | outTblPtr = outTbl[channel->sample[channel->offset]]; |
| 354 | 354 | if (outLeft) note_left += outTblPtr[outLeft ]; |
| 355 | 355 | if (outRight) note_right += outTblPtr[outRight]; |
| 356 | 356 | channel->offset++; |
| 357 | ||
| 357 | ||
| 358 | 358 | if (channel->offset >= channel->sample_len) |
| 359 | 359 | channel->offset = 0; |
| 360 | ||
| 360 | ||
| 361 | 361 | if (channel->time > 0) |
| 362 | 362 | { |
| 363 | 363 | channel->time--; |
| r15975 | r15976 | |
| 365 | 365 | channel->playing = false; |
| 366 | 366 | } |
| 367 | 367 | } |
| 368 | ||
| 369 | ||
| 368 | ||
| 369 | ||
| 370 | 370 | // scale to 16 bits |
| 371 | 371 | note_left = (note_left << 5) | ((note_left >> 6) & 0x1f); |
| 372 | 372 | note_right = (note_right << 5) | ((note_right >> 6) & 0x1f); |
| r15975 | r15976 | |
| 398 | 398 | // int waveAddr; |
| 399 | 399 | int volReg, intervalReg; |
| 400 | 400 | int channel, ouroffs; |
| 401 | ||
| 401 | ||
| 402 | 402 | mputb((UINT8 *)m_aram+offset, data); |
| 403 | 403 | if (offset < 0x400) |
| 404 | 404 | return; |
| 405 | ||
| 405 | ||
| 406 | 406 | channel = (offset-0x400) >> 6; |
| 407 | 407 | ouroffs = offset & 0x3f; |
| 408 | ||
| 408 | ||
| 409 | 409 | ///process_sound(cpu.vcount); |
| 410 | ||
| 410 | ||
| 411 | 411 | if (channel == 6 && ouroffs == 0) |
| 412 | 412 | { |
| 413 | 413 | if (mgetb(m_aram+SST0P) & 0x1) |
| r15975 | r15976 | |
| 415 | 415 | snd_channel[i].playing = 0; |
| 416 | 416 | return; |
| 417 | 417 | } |
| 418 | ||
| 418 | ||
| 419 | 419 | // Extract frequencies and build the wave for the first 4 sound sources |
| 420 | 420 | i = channel * 0x40; |
| 421 | 421 | switch (ouroffs) |
| r15975 | r15976 | |
| 438 | 438 | // find out if the sound is playing |
| 439 | 439 | intervalReg = mgetb(m_aram + SxINTb + i); // 6-4-6 - Sound Interval |
| 440 | 440 | volReg = mgetb(m_aram + SxLRVb + i); // 6-4-4 - L/R output level setting |
| 441 | ||
| 441 | ||
| 442 | 442 | if (((intervalReg & 0x80) == 0) || (volReg == 0)) |
| 443 | 443 | { |
| 444 | 444 | snd_channel[channel].playing = false; |
| 445 | 445 | return; |
| 446 | 446 | } |
| 447 | 447 | snd_channel[channel].playing = true; |
| 448 | ||
| 448 | ||
| 449 | 449 | // 6-4-1 - Waveform address comes from SxRAM. |
| 450 | // waveAddr = (mgetb(m_aram + SxRAMb + i) & 0x3) << 7; | |
| 451 | ||
| 450 | // waveAddr = (mgetb(m_aram + SxRAMb + i) & 0x3) << 7; | |
| 451 | ||
| 452 | 452 | // 6-4-15 - Frequency comes from here |
| 453 | 453 | freq = ((mgetb(m_aram+SxFQHb+i) & 0x7) << 8) | mgetb(m_aram+SxFQLb+i); |
| 454 | ||
| 454 | ||
| 455 | 455 | env0 = mgetb(m_aram+SxEV0b+i); env1 = mgetb(m_aram+SxEV1b+i); |
| 456 | 456 | snd_channel[channel].env0 = env0; |
| 457 | 457 | snd_channel[channel].env1 = env1; |
| r15975 | r15976 | |
| 459 | 459 | snd_channel[channel].volRight = ((UINT8)volReg) & 0xf; |
| 460 | 460 | snd_channel[channel].env_steptime = (env1 & 0x1) ? waveEnv2LenTbl[env0 & 0x7] : 0; |
| 461 | 461 | snd_channel[channel].sample_len = waveFreq2LenTbl[freq]; |
| 462 | ||
| 462 | ||
| 463 | 463 | snd_channel[channel].offset = 0; |
| 464 | 464 | snd_channel[channel].time = (intervalReg & 0x20) ? waveTimer2LenTbl[intervalReg & 0x1f] : 0; |
| 465 | 465 | snd_channel[channel].envelope = ((UINT8)mgetb(m_aram+SxEV0b+i)) >> 4; |
| r15975 | r15976 | |
| 469 | 469 | { |
| 470 | 470 | intervalReg = mgetb(m_aram + SxINTb + i); // 6-4-6 - Sound Interval |
| 471 | 471 | volReg = mgetb(m_aram + SxLRVb + i); // 6-4-4 - L/R output level setting |
| 472 | ||
| 472 | ||
| 473 | 473 | if (((intervalReg & 0x80) == 0) || (volReg == 0)) |
| 474 | 474 | { |
| 475 | // | |
| 475 | // snd_channel[channel].playing = false; | |
| 476 | 476 | return; |
| 477 | 477 | } |
| 478 | // Debugger(); // uses white noise | |
| 479 | // snd_channel[channel].playing = true; | |
| 478 | // Debugger(); // uses white noise | |
| 479 | // snd_channel[channel].playing = true; | |
| 480 | 480 | } |
| 481 | 481 | break; |
| 482 | ||
| 482 | ||
| 483 | 483 | case SxEV0: |
| 484 | 484 | if (snd_channel[channel].playing) |
| 485 | 485 | snd_channel[channel].envelope = ((UINT8)mgetb(m_aram+SxEV0b+i)) >> 4; |
| r15975 | r15976 | |
|---|---|---|
| 200 | 200 | m_noisesize, /* number of samples */ |
| 201 | 201 | m_noisepos, /* pos of tone */ |
| 202 | 202 | m_noisesamples; /* count of samples to give out per tone */ |
| 203 | ||
| 203 | ||
| 204 | 204 | int m_variant; |
| 205 | 205 | }; |
| 206 | 206 |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /* |
| 2 | vboy.h - Virtual Boy audio emulation | |
| 3 | ||
| 2 | vboy.h - Virtual Boy audio emulation | |
| 3 | ||
| 4 | 4 | By Richard Bannister and Gil Pedersen. |
| 5 | 5 | MESS device adaptation by R. Belmont |
| 6 | 6 | */ |
| r15975 | r15976 | |
| 42 | 42 | UINT8 volRight; // Right output volume |
| 43 | 43 | UINT8 sample[580]; // sample to play |
| 44 | 44 | int sample_len; // length of sample |
| 45 | ||
| 45 | ||
| 46 | 46 | // values that change, as the sample is played |
| 47 | 47 | int offset; // current offset in sample |
| 48 | 48 | int time; // the duration that this sample is to be played |
| r15975 | r15976 | |
|---|---|---|
| 99 | 99 | int vp620_device::vip_ef3_r() |
| 100 | 100 | { |
| 101 | 101 | int state = m_keystb; |
| 102 | ||
| 102 | ||
| 103 | 103 | m_keystb = CLEAR_LINE; |
| 104 | ||
| 104 | ||
| 105 | 105 | return state; |
| 106 | 106 | } |
| r15975 | r15976 | |
|---|---|---|
| 441 | 441 | void base_c1581_device::device_reset() |
| 442 | 442 | { |
| 443 | 443 | m_maincpu->reset(); |
| 444 | ||
| 445 | m_cia->reset(); | |
| 446 | ||
| 444 | ||
| 445 | m_cia->reset(); | |
| 446 | ||
| 447 | 447 | wd17xx_mr_w(m_fdc, 0); |
| 448 | 448 | wd17xx_mr_w(m_fdc, 1); |
| 449 | 449 |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | ||
| 3 | Unknown Xebec Winchester controller card emulation | |
| 4 | 4 | |
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | 7 | |
| 8 | 8 | *********************************************************************/ |
| 9 | 9 |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | ||
| 3 | Unknown Xebec Winchester controller card emulation | |
| 4 | 4 | |
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | 7 | |
| 8 | 8 | *********************************************************************/ |
| 9 | 9 |
| r15975 | r15976 | |
|---|---|---|
| 332 | 332 | WRITE_LINE_MEMBER( c2031_device::byte_w ) |
| 333 | 333 | { |
| 334 | 334 | m_maincpu->set_input_line(M6502_SET_OVERFLOW, state); |
| 335 | ||
| 335 | ||
| 336 | 336 | m_via1->write_ca1(state); |
| 337 | 337 | } |
| 338 | 338 | |
| r15975 | r15976 | |
| 449 | 449 | void c2031_device::device_reset() |
| 450 | 450 | { |
| 451 | 451 | m_maincpu->reset(); |
| 452 | ||
| 452 | ||
| 453 | 453 | m_via0->reset(); |
| 454 | 454 | m_via1->reset(); |
| 455 | 455 | } |
| r15975 | r15976 | |
|---|---|---|
| 1653 | 1653 | { |
| 1654 | 1654 | m_maincpu->reset(); |
| 1655 | 1655 | |
| 1656 | ||
| 1656 | ||
| 1657 | 1657 | m_maincpu->set_input_line(M6502_SET_OVERFLOW, ASSERT_LINE); |
| 1658 | 1658 | m_maincpu->set_input_line(M6502_SET_OVERFLOW, CLEAR_LINE); |
| 1659 | 1659 | |
| 1660 | 1660 | m_fdccpu->reset(); |
| 1661 | ||
| 1661 | ||
| 1662 | 1662 | m_riot0->reset(); |
| 1663 | 1663 | m_riot1->reset(); |
| 1664 | 1664 | m_miot->reset(); |
| r15975 | r15976 | |
|---|---|---|
| 13 | 13 | |
| 14 | 14 | http://staff.washington.edu/rrcc/uwweb/1541early/1540-2.GIF |
| 15 | 15 | |
| 16 | ||
| 16 | - model disk rotation for proper track alignment | |
| 17 | 17 | - write circuitry |
| 18 | 18 | - cycle exact M6502 |
| 19 | 19 | - cycle exact VIA |
| 20 | 20 | - refactor to use modern floppy system |
| 21 | 21 | |
| 22 | 22 | - get these running and we're golden |
| 23 | | |
| 23 | - Quiwi (speed change within track) | |
| 24 | 24 | - Defender of the Crown (V-MAX! v2, density checks) |
| 25 | 25 | - Test Drive / Cabal (HLS, sub-cycle jitter) |
| 26 | 26 | - Galaxian (?, needs 100% accurate VIA) |
| r15975 | r15976 | |
| 119 | 119 | |
| 120 | 120 | |
| 121 | 121 | //------------------------------------------------- |
| 122 | // update_cycles_until_next_bit - | |
| 122 | // update_cycles_until_next_bit - | |
| 123 | 123 | //------------------------------------------------- |
| 124 | 124 | |
| 125 | 125 | inline void c64h156_device::update_cycles_until_next_bit() |
| r15975 | r15976 | |
| 169 | 169 | if (LOG) logerror("PHANTOM BIT SYNC 1 after %u cycles\n", m_zero_count); |
| 170 | 170 | |
| 171 | 171 | m_bit_sync = 1; |
| 172 | ||
| 172 | ||
| 173 | 173 | m_zero_count = 0; |
| 174 | 174 | m_cycles_until_random_flux = (rand() % 367) + 33; |
| 175 | 175 | } |
| r15975 | r15976 | |
| 180 | 180 | |
| 181 | 181 | m_shift <<= 1; |
| 182 | 182 | m_shift |= m_bit_sync; |
| 183 | ||
| 183 | ||
| 184 | 184 | m_bit_pos--; |
| 185 | 185 | m_bit_count++; |
| 186 | 186 | |
| r15975 | r15976 | |
| 248 | 248 | |
| 249 | 249 | if (LOG) logerror("++"); |
| 250 | 250 | } |
| 251 | else | |
| 251 | else | |
| 252 | 252 | { |
| 253 | 253 | if (LOG) logerror(" "); |
| 254 | 254 | } |
| r15975 | r15976 | |
| 256 | 256 | |
| 257 | 257 | m_last_bit_sync = m_bit_sync; |
| 258 | 258 | m_ue7_tc = ue7_tc; |
| 259 | ||
| 259 | ||
| 260 | 260 | int uf4_qa = BIT(m_uf4, 0); |
| 261 | 261 | int uf4_qb = BIT(m_uf4, 1); |
| 262 | 262 | int uf4_qc = BIT(m_uf4, 2); |
| r15975 | r15976 | |
| 278 | 278 | |
| 279 | 279 | if (LOG) logerror("<<"); |
| 280 | 280 | } |
| 281 | else | |
| 281 | else | |
| 282 | 282 | { |
| 283 | 283 | if (LOG) logerror(" "); |
| 284 | 284 | } |
| r15975 | r15976 | |
| 288 | 288 | // UE3 |
| 289 | 289 | |
| 290 | 290 | int block_sync = !(m_oe && (m_ud2 == 0xff) && m_u4a && m_u4b); |
| 291 | ||
| 291 | ||
| 292 | 292 | if (LOG) logerror("SYNC %u, ", block_sync); |
| 293 | 293 | |
| 294 | 294 | if (!block_sync) |
| r15975 | r15976 | |
| 354 | 354 | } |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | // prepare for next cycle | |
| 358 | ||
| 357 | // prepare for next cycle | |
| 358 | ||
| 359 | 359 | if (m_block_sync != block_sync) |
| 360 | 360 | { |
| 361 | 361 | m_block_sync = block_sync; |
| 362 | 362 | m_out_sync_func(m_block_sync); |
| 363 | 363 | } |
| 364 | ||
| 364 | ||
| 365 | 365 | if (m_byte_sync != byte_sync) |
| 366 | 366 | { |
| 367 | 367 | m_byte_sync = byte_sync; |
| r15975 | r15976 | |
| 595 | 595 | WRITE_LINE_MEMBER( c64h156_device::oe_w ) |
| 596 | 596 | { |
| 597 | 597 | if (LOG) logerror("OE %u\n", state); |
| 598 | ||
| 598 | ||
| 599 | 599 | m_oe = state; |
| 600 | 600 | } |
| 601 | 601 |
| r15975 | r15976 | |
|---|---|---|
| 25 | 25 | // ======================> videobrain_timeshare_cartridge_device |
| 26 | 26 | |
| 27 | 27 | class videobrain_timeshare_cartridge_device : public device_t, |
| 28 | | |
| 28 | | |
| 29 | 29 | { |
| 30 | 30 | public: |
| 31 | 31 | // construction/destruction |
| r15975 | r15976 | |
|---|---|---|
| 85 | 85 | |
| 86 | 86 | void rx01_device::device_reset() |
| 87 | 87 | { |
| 88 | for(int i=0;i<2;i++) | |
| 88 | for(int i=0;i<2;i++) | |
| 89 | 89 | { |
| 90 | 90 | floppy_mon_w(m_image[i], 0); // turn it on |
| 91 | 91 | floppy_drive_set_controller(m_image[i], this); |
| r15975 | r15976 | |
| 103 | 103 | case 0: return status_read(); break; |
| 104 | 104 | default: return data_read(); break; |
| 105 | 105 | } |
| 106 | ||
| 106 | ||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | |
| r15975 | r15976 | |
| 124 | 124 | printf("command_write %04x\n",data); |
| 125 | 125 | m_unit = BIT(data,4); |
| 126 | 126 | m_interrupt = BIT(data,6); |
| 127 | ||
| 127 | ||
| 128 | 128 | floppy_drive_set_ready_state(m_image[m_unit], 1,0); |
| 129 | ||
| 130 | ||
| 129 | ||
| 130 | ||
| 131 | 131 | if (BIT(data,14)) // Initialize |
| 132 | 132 | { |
| 133 | 133 | printf("initialize\n"); |
| 134 | 134 | m_state = RX01_INIT; |
| 135 | } | |
| 135 | } | |
| 136 | 136 | else if (BIT(data,1)) // If GO bit is selected |
| 137 | 137 | { |
| 138 | 138 | m_rxcs &= ~(1<<5); // Clear done bit |
| r15975 | r15976 | |
| 142 | 142 | m_rxcs |= (1<<7); // Set TR Bit |
| 143 | 143 | m_state = RX01_FILL; |
| 144 | 144 | break; |
| 145 | case 1: // Empty Buffer | |
| 145 | case 1: // Empty Buffer | |
| 146 | 146 | m_state = RX01_EMPTY; |
| 147 | 147 | break; |
| 148 | 148 | case 2: // Write Sector |
| r15975 | r15976 | |
| 160 | 160 | break; |
| 161 | 161 | case 7: // Read Error Register |
| 162 | 162 | m_state = RX01_COMPLETE; |
| 163 | // set ready signal according to current drive status | |
| 164 | m_rxes |= floppy_drive_get_flag_state(m_image[m_unit], FLOPPY_DRIVE_READY) << 7; | |
| 163 | // set ready signal according to current drive status | |
| 164 | m_rxes |= floppy_drive_get_flag_state(m_image[m_unit], FLOPPY_DRIVE_READY) << 7; | |
| 165 | 165 | break; |
| 166 | 166 | } |
| 167 | 167 | } |
| r15975 | r15976 | |
| 173 | 173 | //printf("status_read %04x\n",m_rxcs); |
| 174 | 174 | return m_rxcs; |
| 175 | 175 | } |
| 176 | ||
| 176 | ||
| 177 | 177 | void rx01_device::data_write(UINT16 data) |
| 178 | 178 | { |
| 179 | 179 | printf("data_write %04x\n",data); |
| r15975 | r15976 | |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | UINT16 rx01_device::data_read() |
| 186 | { | |
| 186 | { | |
| 187 | 187 | if (m_state==RX01_EMPTY && BIT(m_rxcs,7)) m_rxcs &= (1<<7); // clear TR bit; |
| 188 | 188 | printf("data_read %04x\n",m_rxdb); |
| 189 | 189 | return m_rxdb; |
| r15975 | r15976 | |
| 197 | 197 | case RX01_FILL : |
| 198 | 198 | m_buffer[m_buf_pos] = m_rxdb & 0xff; |
| 199 | 199 | m_buf_pos++; |
| 200 | if (m_buf_pos<128) | |
| 201 | { | |
| 200 | if (m_buf_pos<128) | |
| 201 | { | |
| 202 | 202 | m_rxcs |= (1<<7); // Set TR Bit |
| 203 | 203 | } else { |
| 204 | 204 | //finished |
| 205 | 205 | } |
| 206 | 206 | break; |
| 207 | 207 | case RX01_EMPTY : |
| 208 | if (m_buf_pos>=128) | |
| 209 | { | |
| 208 | if (m_buf_pos>=128) | |
| 209 | { | |
| 210 | 210 | //finished |
| 211 | 211 | } else { |
| 212 | 212 | m_buffer[m_buf_pos] = m_rxdb & 0xff; |
| r15975 | r15976 | |
| 217 | 217 | case RX01_SET_SECTOR: |
| 218 | 218 | m_rxsa = m_rxdb & 0x1f; |
| 219 | 219 | m_rxcs |= (1<<7); // Set TR Bit |
| 220 | m_state = RX01_SET_TRACK; | |
| 220 | m_state = RX01_SET_TRACK; | |
| 221 | 221 | break; |
| 222 | 222 | case RX01_SET_TRACK: |
| 223 | 223 | m_rxta = m_rxdb & 0x7f; |
| 224 | 224 | m_rxcs |= (1<<7); // Set TR Bit |
| 225 | m_state = RX01_TRANSFER; | |
| 225 | m_state = RX01_TRANSFER; | |
| 226 | 226 | position_head(); |
| 227 | 227 | break; |
| 228 | 228 | case RX01_TRANSFER: |
| 229 | break; | |
| 229 | break; | |
| 230 | 230 | case RX01_COMPLETE: |
| 231 | 231 | break; |
| 232 | 232 | case RX01_INIT: |
| r15975 | r15976 | |
| 240 | 240 | { |
| 241 | 241 | int cur_track = floppy_drive_get_current_track(m_image[m_unit]); |
| 242 | 242 | int dir = (cur_track < m_rxta) ? +1 : -1; |
| 243 | ||
| 243 | ||
| 244 | 244 | while (m_rxta != cur_track) |
| 245 | 245 | { |
| 246 | 246 | cur_track += dir; |
| 247 | 247 | |
| 248 | 248 | floppy_drive_seek(m_image[m_unit], dir); |
| 249 | } | |
| 249 | } | |
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | void rx01_device::read_sector() |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | ||
| 3 | DEC RX01 floppy drive controller | |
| 4 | 4 | |
| 5 | 5 | **********************************************************************/ |
| 6 | 6 | |
| r15975 | r15976 | |
| 32 | 32 | DECLARE_WRITE16_MEMBER( write ); |
| 33 | 33 | |
| 34 | 34 | // optional information overrides |
| 35 | virtual machine_config_constructor device_mconfig_additions() const; | |
| 35 | virtual machine_config_constructor device_mconfig_additions() const; | |
| 36 | 36 | protected: |
| 37 | 37 | // device-level overrides |
| 38 | 38 | virtual void device_start(); |
| 39 | 39 | virtual void device_reset(); |
| 40 | ||
| 40 | ||
| 41 | 41 | void command_write(UINT16 data); |
| 42 | 42 | UINT16 status_read(); |
| 43 | ||
| 43 | ||
| 44 | 44 | void data_write(UINT16 data); |
| 45 | 45 | UINT16 data_read(); |
| 46 | ||
| 47 | void service_command(); | |
| 46 | ||
| 47 | void service_command(); | |
| 48 | 48 | static TIMER_CALLBACK( command_execution_callback ) { reinterpret_cast<rx01_device *>(ptr)->service_command(); } |
| 49 | ||
| 49 | ||
| 50 | 50 | void position_head(); |
| 51 | 51 | void read_sector(); |
| 52 | 52 | void write_sector(int ddam); |
| r15975 | r15976 | |
| 60 | 60 | RX01_COMPLETE, |
| 61 | 61 | RX01_INIT |
| 62 | 62 | }; |
| 63 | ||
| 63 | ||
| 64 | 64 | device_t *m_image[2]; |
| 65 | 65 | UINT8 m_buffer[128]; |
| 66 | 66 | int m_buf_pos; |
| 67 | ||
| 67 | ||
| 68 | 68 | UINT16 m_rxcs; // Command and Status Register |
| 69 | 69 | UINT16 m_rxdb; // Data Buffer Register |
| 70 | 70 | UINT16 m_rxta; // RX Track Address |
| 71 | 71 | UINT16 m_rxsa; // RX Sector Address |
| 72 | UINT16 m_rxes; // RX Error and Status | |
| 72 | UINT16 m_rxes; // RX Error and Status | |
| 73 | 73 | int m_unit; |
| 74 | 74 | int m_interrupt; |
| 75 | 75 | rx01_state m_state; |
| r15975 | r15976 | |
|---|---|---|
| 1 | /* | |
| 2 | DEC LK-201 keyboard | |
| 1 | /* | |
| 2 | DEC LK-201 keyboard | |
| 3 | 3 | Emulation by R. Belmont |
| 4 | ||
| 4 | ||
| 5 | 5 | This is currently the 6805 version; there's also an 8048 version. |
| 6 | 6 | */ |
| 7 | 7 | |
| r15975 | r15976 | |
| 23 | 23 | |
| 24 | 24 | ROM_START( lk201 ) |
| 25 | 25 | ROM_REGION(0x2000, LK201_CPU_TAG, 0) |
| 26 | ROM_LOAD( "23-00159-00.bin", 0x0000, 0x2000, CRC(be293c51) SHA1(a11ae004d2d6055d7279da3560c3e56610a19fdb) ) | |
| 26 | ROM_LOAD( "23-00159-00.bin", 0x0000, 0x2000, CRC(be293c51) SHA1(a11ae004d2d6055d7279da3560c3e56610a19fdb) ) | |
| 27 | 27 | ROM_END |
| 28 | 28 | |
| 29 | 29 | //------------------------------------------------- |
| r15975 | r15976 | |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | /* |
| 258 | ||
| 258 | ||
| 259 | 259 | SCI 01 to 4 (PC=24b) firmware ID |
| 260 | 260 | SCI 00 to 4 (PC=cb2) hardware jumpers ID (port C & 0x30) |
| 261 | 261 | SCI 00 to 4 (PC=cb2) self-test result OK |
| 262 | 262 | SCI 00 to 4 (PC=cb2) keycode if there was a self-test error |
| 263 | ||
| 263 | ||
| 264 | 264 | */ |
| r15975 | r15976 | |
|---|---|---|
| 76 | 76 | |
| 77 | 77 | /* |
| 78 | 78 | |
| 79 | ||
| 79 | TODO: | |
| 80 | 80 | |
| 81 | ||
| 81 | - 8" floppy is not supported, but there are no dumps available either | |
| 82 | 82 | |
| 83 | 83 | */ |
| 84 | 84 |
| r15975 | r15976 | |
|---|---|---|
| 29 | 29 | // ======================> turbo_kontroller_device |
| 30 | 30 | |
| 31 | 31 | class turbo_kontroller_device : public device_t, |
| 32 | | |
| 32 | | |
| 33 | 33 | { |
| 34 | 34 | public: |
| 35 | 35 | // construction/destruction |
| r15975 | r15976 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | Commodore Plus/4 SID cartridge emulation |
| 4 | 4 | |
| 5 | ||
| 5 | http://solder.dyndns.info/cgi-bin/showdir.pl?dir=files/commodore/plus4/hardware/SID-Card | |
| 6 | 6 | |
| 7 | 7 | Copyright MESS Team. |
| 8 | 8 | Visit http://mamedev.org for licensing and usage restrictions. |
| r15975 | r15976 | |
| 11 | 11 | |
| 12 | 12 | /* |
| 13 | 13 | |
| 14 | ||
| 14 | TODO: | |
| 15 | 15 | |
| 16 | - GAL16V8 dump | |
| 17 | - get SID clock from expansion port | |
| 16 | - GAL16V8 dump | |
| 17 | - get SID clock from expansion port | |
| 18 | 18 | |
| 19 | 19 | */ |
| 20 | 20 | |
| r15975 | r15976 | |
| 113 | 113 | device_t(mconfig, PLUS4_SID, "Plus/4 SID cartridge", tag, owner, clock), |
| 114 | 114 | device_plus4_expansion_card_interface(mconfig, *this), |
| 115 | 115 | m_sid(*this, MOS8580_TAG), |
| 116 | ||
| 116 | ||
| 117 | 117 | { |
| 118 | 118 | } |
| 119 | 119 |
| r15975 | r15976 | |
|---|---|---|
| 29 | 29 | // ======================> plus4_sid_cartridge_device |
| 30 | 30 | |
| 31 | 31 | class plus4_sid_cartridge_device : public device_t, |
| 32 | | |
| 32 | | |
| 33 | 33 | { |
| 34 | 34 | public: |
| 35 | 35 | // construction/destruction |
| r15975 | r15976 | |
| 38 | 38 | // optional information overrides |
| 39 | 39 | virtual const rom_entry *device_rom_region() const; |
| 40 | 40 | virtual machine_config_constructor device_mconfig_additions() const; |
| 41 | ||
| 41 | ||
| 42 | 42 | protected: |
| 43 | 43 | // device-level overrides |
| 44 | 44 | virtual void device_config_complete() { m_shortname = "plus4_sid"; } |
| r15975 | r15976 | |
|---|---|---|
| 114 | 114 | { |
| 115 | 115 | m_ram[offset & 0xfff] = data; |
| 116 | 116 | } |
| 117 | } | |
| 117 | } | |
| 118 | 118 | } |
| r15975 | r15976 | |
|---|---|---|
| 26 | 26 | // ======================> plus4_standard_cartridge_device |
| 27 | 27 | |
| 28 | 28 | class plus4_standard_cartridge_device : public device_t, |
| 29 | | |
| 29 | | |
| 30 | 30 | { |
| 31 | 31 | public: |
| 32 | 32 | // construction/destruction |
| r15975 | r15976 | |
|---|---|---|
| 319 | 319 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("PF6") PORT_CODE(KEYCODE_F6) PORT_CHAR(UCHAR_MAMEKEY(F6)) |
| 320 | 320 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("PF7") PORT_CODE(KEYCODE_F7) PORT_CHAR(UCHAR_MAMEKEY(F7)) |
| 321 | 321 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("PF8") PORT_CODE(KEYCODE_F8) PORT_CHAR(UCHAR_MAMEKEY(F8)) |
| 322 | ||
| 322 | ||
| 323 | 323 | PORT_START("DSW") |
| 324 | 324 | PORT_DIPNAME( 0x01, 0x01, "Keyboard Program" ) |
| 325 | 325 | PORT_DIPSETTING( 0x00, "Internal (8048)" ) |
| r15975 | r15976 | |
|---|---|---|
| 59 | 59 | { |
| 60 | 60 | data = m_ram[offset & m_ram_mask]; |
| 61 | 61 | } |
| 62 | ||
| 62 | ||
| 63 | 63 | return data; |
| 64 | 64 | } |
| 65 | 65 |
| r15975 | r15976 | |
|---|---|---|
| 58 | 58 | ROM_REGION(0x4400, CUDA_CPU_TAG, 0) |
| 59 | 59 | ROM_LOAD( "341s0060.bin", 0x1100, 0x1100, CRC(0f5e7b4a) SHA1(972b3778146d9787b18c3a9874d505cf606b3e15) ) |
| 60 | 60 | ROM_LOAD( "341s0788.bin", 0x2200, 0x1100, CRC(df6e1b43) SHA1(ec23cc6214c472d61b98964928c40589517a3172) ) |
| 61 | ROM_LOAD( "341s0417.bin", 0x3300, 0x1100, CRC(571f24c9) SHA1(a2ae12492389a00e5f4b1ef19b267d6f3a8eadc3) ) | |
| 61 | ROM_LOAD( "341s0417.bin", 0x3300, 0x1100, CRC(571f24c9) SHA1(a2ae12492389a00e5f4b1ef19b267d6f3a8eadc3) ) | |
| 62 | 62 | ROM_END |
| 63 | 63 | |
| 64 | 64 | //------------------------------------------------- |
| r15975 | r15976 | |
|---|---|---|
| 25 | 25 | // ======================> videobrain_money_minder_cartridge_device |
| 26 | 26 | |
| 27 | 27 | class videobrain_money_minder_cartridge_device : public device_t, |
| 28 | | |
| 28 | | |
| 29 | 29 | { |
| 30 | 30 | public: |
| 31 | 31 | // construction/destruction |
| r15975 | r15976 | |
|---|---|---|
| 965 | 965 | void base_c1541_device::device_reset() |
| 966 | 966 | { |
| 967 | 967 | m_maincpu->reset(); |
| 968 | ||
| 968 | ||
| 969 | 969 | m_via0->reset(); |
| 970 | 970 | m_via1->reset(); |
| 971 | 971 | } |
| r15975 | r15976 | |
|---|---|---|
| 40 | 40 | // ======================> base_c1541_device |
| 41 | 41 | |
| 42 | 42 | class base_c1541_device : public device_t, |
| 43 | public device_cbm_iec_interface, | |
| 44 | public device_c64_floppy_parallel_interface | |
| 43 | public device_cbm_iec_interface, | |
| 44 | public device_c64_floppy_parallel_interface | |
| 45 | 45 | { |
| 46 | 46 | public: |
| 47 | 47 | // construction/destruction |
| r15975 | r15976 | |
|---|---|---|
| 135 | 135 | { |
| 136 | 136 | m_int[i] = CLEAR_LINE; |
| 137 | 137 | m_dma_out[i] = CLEAR_LINE; |
| 138 | m_dma_in[i] = CLEAR_LINE; | |
| 138 | m_dma_in[i] = CLEAR_LINE; | |
| 139 | 139 | } |
| 140 | 140 | } |
| 141 | 141 |
| r15975 | r15976 | |
|---|---|---|
| 25 | 25 | // ======================> videobrain_standard_cartridge_device |
| 26 | 26 | |
| 27 | 27 | class videobrain_standard_cartridge_device : public device_t, |
| 28 | | |
| 28 | | |
| 29 | 29 | { |
| 30 | 30 | public: |
| 31 | 31 | // construction/destruction |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | ||
| 3 | Visual 1050 keyboard emulation | |
| 4 | 4 | |
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | 7 | |
| 8 | 8 | *********************************************************************/ |
| 9 | 9 | |
| r15975 | r15976 | |
| 400 | 400 | { |
| 401 | 401 | /* |
| 402 | 402 | |
| 403 | ||
| 403 | bit description | |
| 404 | 404 | |
| 405 | P20 Z8 A8 (8039 external ROM) | |
| 406 | P21 Z8 A9 | |
| 407 | P22 Z8 A10 | |
| 408 | P23 | |
| 409 | P24 | |
| 410 | P25 led output | |
| 411 | P26 speaker (NE555) output | |
| 412 | P27 serial output | |
| 405 | P20 Z8 A8 (8039 external ROM) | |
| 406 | P21 Z8 A9 | |
| 407 | P22 Z8 A10 | |
| 408 | P23 | |
| 409 | P24 | |
| 410 | P25 led output | |
| 411 | P26 speaker (NE555) output | |
| 412 | P27 serial output | |
| 413 | 413 | |
| 414 | ||
| 414 | */ | |
| 415 | 415 | |
| 416 | 416 | // led output |
| 417 | 417 | output_set_led_value(0, BIT(data, 5)); |
| r15975 | r15976 | |
|---|---|---|
| 84 | 84 | class device_videobrain_expansion_card_interface; |
| 85 | 85 | |
| 86 | 86 | class videobrain_expansion_slot_device : public device_t, |
| 87 | public videobrain_expansion_slot_interface, | |
| 88 | public device_slot_interface, | |
| 89 | public device_image_interface | |
| 87 | public videobrain_expansion_slot_interface, | |
| 88 | public device_slot_interface, | |
| 89 | public device_image_interface | |
| 90 | 90 | { |
| 91 | 91 | public: |
| 92 | 92 | // construction/destruction |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | ||
| 3 | Luxor ABC 850 Winchester controller card emulation | |
| 4 | 4 | |
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | 7 | |
| 8 | 8 | *********************************************************************/ |
| 9 | 9 |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /********************************************************************** |
| 2 | 2 | |
| 3 | ||
| 3 | Luxor ABC 850 Winchester controller card emulation | |
| 4 | 4 | |
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | 7 | |
| 8 | 8 | *********************************************************************/ |
| 9 | 9 |
| r15975 | r15976 | |
|---|---|---|
| 518 | 518 | WRITE_LINE_MEMBER( base_c1571_device::byte_w ) |
| 519 | 519 | { |
| 520 | 520 | m_maincpu->set_input_line(M6502_SET_OVERFLOW, state); |
| 521 | ||
| 521 | ||
| 522 | 522 | m_via1->write_ca1(state); |
| 523 | 523 | } |
| 524 | 524 | |
| r15975 | r15976 | |
| 780 | 780 | void base_c1571_device::device_reset() |
| 781 | 781 | { |
| 782 | 782 | m_maincpu->reset(); |
| 783 | ||
| 783 | ||
| 784 | 784 | m_via0->reset(); |
| 785 | m_via1->reset(); | |
| 786 | m_cia->reset(); | |
| 787 | ||
| 785 | m_via1->reset(); | |
| 786 | m_cia->reset(); | |
| 787 | ||
| 788 | 788 | wd17xx_mr_w(m_fdc, 0); |
| 789 | 789 | wd17xx_mr_w(m_fdc, 1); |
| 790 | 790 |
| r15975 | r15976 | |
|---|---|---|
| 114 | 114 | DECLARE_READ8_MEMBER( pio_pa_r ); |
| 115 | 115 | DECLARE_READ8_MEMBER( pio_pb_r ); |
| 116 | 116 | DECLARE_WRITE8_MEMBER( pio_pb_w ); |
| 117 | ||
| 117 | ||
| 118 | 118 | DECLARE_WRITE_LINE_MEMBER( keydown_w ); |
| 119 | 119 | |
| 120 | 120 | // keyboard state |
| r15975 | r15976 | |
|---|---|---|
| 79 | 79 | DECLARE_READ8_MEMBER( cpu_r ); |
| 80 | 80 | DECLARE_READ8_MEMBER( c16_cpu_r ); |
| 81 | 81 | DECLARE_WRITE8_MEMBER( cpu_w ); |
| 82 | ||
| 82 | ||
| 83 | 83 | DECLARE_WRITE_LINE_MEMBER( ted_irq_w ); |
| 84 | 84 | DECLARE_READ8_MEMBER( ted_ram_r ); |
| 85 | 85 | DECLARE_READ8_MEMBER( ted_rom_r ); |
| r15975 | r15976 | |
|---|---|---|
| 78 | 78 | |
| 79 | 79 | virtual void machine_start(); |
| 80 | 80 | |
| 81 | DECLARE_WRITE8_MEMBER( osi630_ctrl_w ); | |
| 81 | DECLARE_WRITE8_MEMBER( osi630_ctrl_w ); | |
| 82 | 82 | DECLARE_WRITE8_MEMBER( osi630_sound_w ); |
| 83 | 83 | DECLARE_DRIVER_INIT(c1p); |
| 84 | 84 | }; |
| r15975 | r15976 | |
|---|---|---|
| 85 | 85 | UINT8 *m_io_ram_r_ptr; |
| 86 | 86 | c64_cart_t m_cart; |
| 87 | 87 | int m_nmilevel; |
| 88 | ||
| 88 | ||
| 89 | 89 | DECLARE_DRIVER_INIT( c64 ); |
| 90 | 90 | DECLARE_DRIVER_INIT( c64pal ); |
| 91 | 91 | DECLARE_DRIVER_INIT( ultimax ); |
| 92 | 92 | DECLARE_DRIVER_INIT( c64gs ); |
| 93 | DECLARE_DRIVER_INIT( sx64 ); | |
| 93 | DECLARE_DRIVER_INIT( sx64 ); | |
| 94 | 94 | }; |
| 95 | 95 | |
| 96 | 96 |
| r15975 | r15976 | |
|---|---|---|
| 96 | 96 | optional_device<device_t> m_discrete; |
| 97 | 97 | optional_device<cassette_image_device> m_cassette; |
| 98 | 98 | required_device<ram_device> m_ram; |
| 99 | ||
| 99 | ||
| 100 | 100 | enum |
| 101 | 101 | { |
| 102 | 102 | TIMER_ID_CTC, |
| r15975 | r15976 | |
|---|---|---|
| 111 | 111 | if (black || opaque) |
| 112 | 112 | { |
| 113 | 113 | color += 128; |
| 114 | ||
| 114 | ||
| 115 | 115 | bitmap.pix16(y, x) = color; |
| 116 | 116 | bitmap.pix16(y, x + 1) = color; |
| 117 | 117 |
| r15975 | r15976 | |
|---|---|---|
| 17 | 17 | //************************************************************************** |
| 18 | 18 | // TYPE DEFINITIONS |
| 19 | 19 | //************************************************************************** |
| 20 | ||
| 20 | ||
| 21 | 21 | #define HD44780_INTERFACE(name) \ |
| 22 | 22 | const hd44780_interface (name) = |
| 23 | 23 |
| r15975 | r15976 | |
|---|---|---|
| 6 | 6 | |
| 7 | 7 | /* |
| 8 | 8 | |
| 9 | ||
| 9 | TODO: | |
| 10 | 10 | |
| 11 | - flashing | |
| 12 | - double height | |
| 13 | - underline | |
| 11 | - flashing | |
| 12 | - double height | |
| 13 | - underline | |
| 14 | 14 | |
| 15 | 15 | */ |
| 16 | 16 |
| r15975 | r15976 | |
|---|---|---|
| 3 | 3 | DEC Rainbow 100 |
| 4 | 4 | |
| 5 | 5 | Driver-in-progress by R. Belmont and Miodrag Milanovic |
| 6 | ||
| 7 | ||
| 6 | ||
| 7 | ||
| 8 | 8 | Meaning of Diagnostics LEDs (from PC100ESV1.PDF found, e.g., |
| 9 | 9 | on ftp://ftp.update.uu.se/pub/rainbow/doc/rainbow-docs/ |
| 10 | 10 | |
| 11 | 11 | Internal Diagnostic Messages |
| 12 | Msg Message Lights Display | |
| 13 | No. * = on o = off | |
| 14 | - = on or off | |
| 15 | 1 2 3 4 5 6 7 | |
| 12 | Msg Message Lights Display | |
| 13 | No. * = on o = off | |
| 14 | - = on or off | |
| 15 | 1 2 3 4 5 6 7 | |
| 16 | 16 | -------------------------------------------------------------- |
| 17 | 1 Main Board (Video) o * * o * o * | |
| 18 | 2 Main Board* (unsolicited interrupt) * * * * o * o | |
| 19 | 3 Drive A or B (index) o o * o o * * | |
| 20 | 4 Drive A or B (motor) * * o o o * * | |
| 21 | 5 Drive A or B (seek) o * o o o * * | |
| 22 | 6 Drive A or B (read) * o o o o * * | |
| 23 | 7 Drive A or B (restore) o * * o o * * | |
| 24 | 8 Drive A or B (step) * o * o o * * | |
| 25 | 9 System Load incomplete+ (System Load) o o o o o o o | |
| 26 | 10 Main Board (video, vfr) * * * o * o * | |
| 27 | 11 System Load incomplete+ (Boot Load) o o o o o o o | |
| 28 | 12 Drive A or B (not ready) o o o o o * * | |
| 29 | 13 Keyboard * * o * o * o | |
| 30 | 14 Main Board (nvm data) * * * * o * * | |
| 31 | 15 (no msg. 15 in that table) | |
| 32 | 16 Interrupts off* * * * o o o o | |
| 33 | 17 Main Board (video RAM) * * * o * * o | |
| 34 | 18 Main Board (Z80 crc) * * * * o o * | |
| 35 | 19 Main Board RAM (0-64K) - - - * * o * | |
| 36 | 20 Main Board (unsolicited int., Z80) * * * * o o o * | |
| 37 | 21 Drive Not Ready+ o o o o o o o | |
| 38 | 22 Remove Card or Diskette o * * o o o * | |
| 39 | 23 Non-System Diskette+ o o o o o o o | |
| 40 | 24 new memory size = nnnK o o o o o o o | |
| 41 | 25 Set Up Defaults stored o o o o o o o | |
| 42 | 26 Main Board (RAM arbitration) * * * o * o o | |
| 43 | 27 Main Board (RAM option) - - - * * o o | |
| 44 | 28 RX50 controller board * * * o o * * | |
| 45 | 29 Main Board* (Z80 response) * * * * o o o | |
| 46 | 30 Main Board (ROM crc, ROM 0) * * * * * * * | |
| 47 | 31 Main Board (ROM crc, ROM 1) * * * * * * o | |
| 48 | - Main Board (ROM crc, ROM 2) * * * o * * * | |
| 49 | 33 Main Board (contention) o o o o o * o | |
| 50 | 40 Main Board (printer port) * o * * o * o | |
| 51 | 50 Main Board (keyboard port) o o * * o * o | |
| 52 | 60 Main Board (comm port) o * * * o * o | |
| 17 | 1 Main Board (Video) o * * o * o * | |
| 18 | 2 Main Board* (unsolicited interrupt) * * * * o * o | |
| 19 | 3 Drive A or B (index) o o * o o * * | |
| 20 | 4 Drive A or B (motor) * * o o o * * | |
| 21 | 5 Drive A or B (seek) o * o o o * * | |
| 22 | 6 Drive A or B (read) * o o o o * * | |
| 23 | 7 Drive A or B (restore) o * * o o * * | |
| 24 | 8 Drive A or B (step) * o * o o * * | |
| 25 | 9 System Load incomplete+ (System Load) o o o o o o o | |
| 26 | 10 Main Board (video, vfr) * * * o * o * | |
| 27 | 11 System Load incomplete+ (Boot Load) o o o o o o o | |
| 28 | 12 Drive A or B (not ready) o o o o o * * | |
| 29 | 13 Keyboard * * o * o * o | |
| 30 | 14 Main Board (nvm data) * * * * o * * | |
| 31 | 15 (no msg. 15 in that table) | |
| 32 | 16 Interrupts off* * * * o o o o | |
| 33 | 17 Main Board (video RAM) * * * o * * o | |
| 34 | 18 Main Board (Z80 crc) * * * * o o * | |
| 35 | 19 Main Board RAM (0-64K) - - - * * o * | |
| 36 | 20 Main Board (unsolicited int., Z80) * * * * o o o * | |
| 37 | 21 Drive Not Ready+ o o o o o o o | |
| 38 | 22 Remove Card or Diskette o * * o o o * | |
| 39 | 23 Non-System Diskette+ o o o o o o o | |
| 40 | 24 new memory size = nnnK o o o o o o o | |
| 41 | 25 Set Up Defaults stored o o o o o o o | |
| 42 | 26 Main Board (RAM arbitration) * * * o * o o | |
| 43 | 27 Main Board (RAM option) - - - * * o o | |
| 44 | 28 RX50 controller board * * * o o * * | |
| 45 | 29 Main Board* (Z80 response) * * * * o o o | |
| 46 | 30 Main Board (ROM crc, ROM 0) * * * * * * * | |
| 47 | 31 Main Board (ROM crc, ROM 1) * * * * * * o | |
| 48 | - Main Board (ROM crc, ROM 2) * * * o * * * | |
| 49 | 33 Main Board (contention) o o o o o * o | |
| 50 | 40 Main Board (printer port) * o * * o * o | |
| 51 | 50 Main Board (keyboard port) o o * * o * o | |
| 52 | 60 Main Board (comm port) o * * * o * o | |
| 53 | 53 | |
| 54 | 54 | -------------------------------------------------------------- |
| 55 | * These errors can occur at any time because the circuits | |
| 56 | are monitored constantly | |
| 57 | + These messages may occur during power-up if auto boot is | |
| 58 | selected | |
| 59 | ||
| 55 | * These errors can occur at any time because the circuits | |
| 56 | are monitored constantly | |
| 57 | + These messages may occur during power-up if auto boot is | |
| 58 | selected | |
| 59 | ||
| 60 | 60 | ****************************************************************************/ |
| 61 | 61 | |
| 62 | 62 | #include "emu.h" |
| r15975 | r15976 | |
|---|---|---|
| 1998 | 1998 | ***************************************************************************/ |
| 1999 | 1999 | |
| 2000 | 2000 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME */ |
| 2001 | COMP( 1961, pdp1, 0, 0, pdp1, pdp1, driver_device, | |
| 2001 | COMP( 1961, pdp1, 0, 0, pdp1, pdp1, driver_device, |
| r15975 | r15976 | |
|---|---|---|
| 329 | 329 | /* System Drivers */ |
| 330 | 330 | // YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME |
| 331 | 331 | //COMP( 1982, tmc600s1, 0, 0, tmc600, tmc600, driver_device, 0, "Telercas Oy", "Telmac TMC-600 (Sarja I)", GAME_NOT_WORKING ) |
| 332 | COMP( 1982, tmc600s2, 0, 0, tmc600, tmc600, driver_device, 0, | |
| 332 | COMP( 1982, tmc600s2, 0, 0, tmc600, tmc600, driver_device, 0, |
| r15975 | r15976 | |
|---|---|---|
| 1120 | 1120 | /* Driver */ |
| 1121 | 1121 | |
| 1122 | 1122 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 1123 | COMP( 1983, smc777, 0, 0, smc777, smc777, driver_device, | |
| 1123 | COMP( 1983, smc777, 0, 0, smc777, smc777, driver_device, | |
| 1124 | 1124 |
| r15975 | r15976 | |
|---|---|---|
| 63 | 63 | |
| 64 | 64 | TODO: |
| 65 | 65 | |
| 66 | ||
| 66 | - cassette interrupt routine samples the latch too soon | |
| 67 | 67 | - proper keyboard controller emulation |
| 68 | 68 | - MyAB 80-column card |
| 69 | 69 | - GeJo 80-column card |
| r15975 | r15976 | |
| 545 | 545 | // data carrier detect |
| 546 | 546 | data |= m_rs232->dcd_r() << 2; |
| 547 | 547 | |
| 548 | // cassette data | |
| 548 | // cassette data | |
| 549 | 549 | data |= m_tape_in_latch << 7; |
| 550 | ||
| 550 | ||
| 551 | 551 | //logerror("read tape latch %u\n", m_tape_in_latch); |
| 552 | 552 | |
| 553 | 553 | return data; |
| r15975 | r15976 | |
| 597 | 597 | //logerror("clear tape in latch\n"); |
| 598 | 598 | |
| 599 | 599 | m_tape_in_latch = 1; |
| 600 | ||
| 600 | ||
| 601 | 601 | m_pio->port_b_write(m_tape_in_latch << 7); |
| 602 | 602 | } |
| 603 | 603 | }; |
| r15975 | r15976 | |
| 714 | 714 | { |
| 715 | 715 | //logerror("-------- set tape in latch\n"); |
| 716 | 716 | m_tape_in_latch = 0; |
| 717 | ||
| 717 | ||
| 718 | 718 | m_pio->port_b_write(m_tape_in_latch << 7); |
| 719 | 719 | } |
| 720 | 720 |
| r15975 | r15976 | |
|---|---|---|
| 91 | 91 | int m_kbrecv_bitcount; |
| 92 | 92 | UINT16 m_kbrecv_data; |
| 93 | 93 | UINT8 m_port21; |
| 94 | public: | |
| 94 | public: | |
| 95 | 95 | DECLARE_DRIVER_INIT(m20); |
| 96 | 96 | }; |
| 97 | 97 |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /* |
| 2 | 2 | |
| 3 | ||
| 3 | TODO: | |
| 4 | 4 | |
| 5 | - cassette | |
| 6 | - c1551 won't load anything | |
| 7 | - clean up keyboard handling | |
| 8 | - clean up TED | |
| 9 | - dump PLA | |
| 10 | - T6721 speech chip | |
| 11 | - floating bus read (should return the previous byte read by TED) | |
| 12 | - SID card (http://solder.dyndns.info/cgi-bin/showdir.pl?dir=files/commodore/plus4/hardware/SID-Card) | |
| 5 | - cassette | |
| 6 | - c1551 won't load anything | |
| 7 | - clean up keyboard handling | |
| 8 | - clean up TED | |
| 9 | - dump PLA | |
| 10 | - T6721 speech chip | |
| 11 | - floating bus read (should return the previous byte read by TED) | |
| 12 | - SID card (http://solder.dyndns.info/cgi-bin/showdir.pl?dir=files/commodore/plus4/hardware/SID-Card) | |
| 13 | 13 | |
| 14 | 14 | */ |
| 15 | 15 | |
| r15975 | r15976 | |
| 76 | 76 | void plus4_state::bankswitch(offs_t offset, int phi0, int mux, int ras, int *scs, int *phi2, int *user, int *_6551, int *addr_clk, int *keyport, int *kernal, int *cs0, int *cs1) |
| 77 | 77 | { |
| 78 | 78 | UINT16 i = ras << 15 | BA10 << 14 | BA11 << 13 | BA13 << 12 | BA9 << 11 | BA8 << 10 | BA14 << 9 | mux << 8 | BA12 << 7 | BA7 << 6 | BA6 << 5 | BA5 << 4 | BA4 << 3 | BA15 << 2 | phi0 << 1 | 1; |
| 79 | /* | |
| 79 | /* UINT8 data = m_pla->read(i); | |
| 80 | 80 | |
| 81 | *scs = BIT(data, 0); | |
| 82 | *phi2 = BIT(data, 1); | |
| 83 | *user = BIT(data, 2); | |
| 84 | *_6551 = BIT(data, 3); | |
| 85 | *addr_clk = BIT(data, 4); | |
| 86 | *keyport = BIT(data, 5); | |
| 87 | *kernal = BIT(data, 6); | |
| 88 | *f7 = BIT(data, 7);*/ | |
| 81 | *scs = BIT(data, 0); | |
| 82 | *phi2 = BIT(data, 1); | |
| 83 | *user = BIT(data, 2); | |
| 84 | *_6551 = BIT(data, 3); | |
| 85 | *addr_clk = BIT(data, 4); | |
| 86 | *keyport = BIT(data, 5); | |
| 87 | *kernal = BIT(data, 6); | |
| 88 | *f7 = BIT(data, 7);*/ | |
| 89 | 89 | |
| 90 | 90 | // the following code is on loan from http://www.zimmers.net/anonftp/pub/cbm/firmware/computers/plus4/pla.c until we get the PLA dumped |
| 91 | 91 | |
| r15975 | r15976 | |
| 108 | 108 | #define A10 I(14) |
| 109 | 109 | #define RAS_ I(15) |
| 110 | 110 | |
| 111 | /* unused_ | |
| 111 | /* unused_ 0 when 0111 011x 1001 011x */ | |
| 112 | 112 | #define F0 RAS_ || !A10 || !A11 || !A13 || A9 || !A8 || !A14 || \ |
| 113 | 113 | !A12 || A7 || A6 || !A5 || A4 || !A15 || !PHI0 |
| 114 | /* PHI2 | |
| 114 | /* PHI2 1 when 0xxx xxxx xxxx xx11 */ | |
| 115 | 115 | #define F1 !RAS_ && PHI0 && I0_F7 |
| 116 | /* USER_ | |
| 116 | /* USER_ 0 when 0111 011x 1000 1111 */ | |
| 117 | 117 | #define F2 RAS_ || !A10 || !A11 || !A13 || A9 || !A8 || !A14 || \ |
| 118 | 118 | !A12 || A7 || A6 || A5 || !A4 || !A15 || !PHI0 || !I0_F7 |
| 119 | /* 6551_ | |
| 119 | /* 6551_ 0 when x111 011x 1000 011x */ | |
| 120 | 120 | #define F3 !A10 || !A11 || !A13 || A9 || !A8 || !A14 || \ |
| 121 | 121 | !A12 || A7 || A6 || A5 || A4 || !A15 || !PHI0 |
| 122 | /* ADDR_CLK | |
| 122 | /* ADDR_CLK 0 when 1111 011x 1110 1111 */ | |
| 123 | 123 | #define F4 RAS_ || !A10 || !A11 || !A13 || A9 || !A8 || !A14 || \ |
| 124 | 124 | !A12 || !A7 || !A6 || A5 || !A4 || !A15 || !PHI0 || !I0_F7 |
| 125 | /* KEYPORT_ | |
| 125 | /* KEYPORT_ 0 when 0111 011x 1001 1111 */ | |
| 126 | 126 | #define F5 RAS_ || !A10 || !A11 || !A13 || A9 || !A8 || !A14 || \ |
| 127 | 127 | !A12 || A7 || A6 || !A5 || !A4 || !A15 || !PHI0 || !I0_F7 |
| 128 | /* KERNAL_ | |
| 128 | /* KERNAL_ 1 when x111 001x 1xxx x1xx */ | |
| 129 | 129 | #define F6 A10 && A11 && A13 && !A9 && !A8 && A14 && \ |
| 130 | 130 | A12 && A15 |
| 131 | /* I0_F7 1 when xxxx xxx1 xxxx xxxx or | |
| 132 | when 0xxx xxxx xxxx xx11 */ | |
| 131 | /* I0_F7 1 when xxxx xxx1 xxxx xxxx or | |
| 132 | when 0xxx xxxx xxxx xx11 */ | |
| 133 | 133 | #define F7 MUX || (F1) |
| 134 | 134 | |
| 135 | 135 | *scs = F0; |
| r15975 | r15976 | |
| 291 | 291 | int c1l = 1, c1h = 1, c2l = 1, c2h = 1; |
| 292 | 292 | |
| 293 | 293 | bankswitch(offset, phi0, mux, ras, &scs, &phi2, &user, &_6551, &addr_clk, &keyport, &kernal, &cs0, &cs1); |
| 294 | ||
| 294 | ||
| 295 | 295 | //logerror("write offset %04x data %02x user %u 6551 %u addr_clk %u keyport %u kernal %u cs0 %u cs1 %u m_rom_en %u\n", offset,data,user,_6551,addr_clk,keyport,kernal,cs0,cs1,m_rom_en); |
| 296 | 296 | |
| 297 | 297 | if (!scs && m_t6721) |
| r15975 | r15976 | |
| 321 | 321 | else if (offset == 0xff3e) |
| 322 | 322 | { |
| 323 | 323 | m_rom_en = 1; |
| 324 | ||
| 324 | ||
| 325 | 325 | m_ted->rom_switch_w(m_rom_en); |
| 326 | 326 | } |
| 327 | 327 | else if (offset == 0xff3f) |
| r15975 | r15976 | |
| 438 | 438 | READ8_MEMBER( plus4_state::cpu_r ) |
| 439 | 439 | { |
| 440 | 440 | /* |
| 441 | ||
| 442 | bit description | |
| 443 | ||
| 444 | 0 | |
| 445 | 1 | |
| 446 | 2 | |
| 447 | 3 | |
| 448 | 4 CST RD | |
| 449 | 5 | |
| 450 | 6 IEC CLK IN | |
| 451 | 7 IEC DATA IN, CST SENSE (Plus/4) | |
| 452 | ||
| 453 | */ | |
| 454 | 441 | |
| 442 | bit description | |
| 443 | ||
| 444 | 0 | |
| 445 | 1 | |
| 446 | 2 | |
| 447 | 3 | |
| 448 | 4 CST RD | |
| 449 | 5 | |
| 450 | 6 IEC CLK IN | |
| 451 | 7 IEC DATA IN, CST SENSE (Plus/4) | |
| 452 | ||
| 453 | */ | |
| 454 | ||
| 455 | 455 | UINT8 data = 0xff; |
| 456 | 456 | UINT8 c16_port7501 = m6510_get_port(m_maincpu); |
| 457 | 457 | |
| r15975 | r15976 | |
| 472 | 472 | READ8_MEMBER( plus4_state::c16_cpu_r ) |
| 473 | 473 | { |
| 474 | 474 | /* |
| 475 | ||
| 476 | bit description | |
| 477 | ||
| 478 | 0 | |
| 479 | 1 | |
| 480 | 2 | |
| 481 | 3 | |
| 482 | 4 CST RD | |
| 483 | 5 | |
| 484 | 6 IEC CLK IN | |
| 485 | 7 IEC DATA IN | |
| 486 | ||
| 487 | */ | |
| 488 | 475 | |
| 476 | bit description | |
| 477 | ||
| 478 | 0 | |
| 479 | 1 | |
| 480 | 2 | |
| 481 | 3 | |
| 482 | 4 CST RD | |
| 483 | 5 | |
| 484 | 6 IEC CLK IN | |
| 485 | 7 IEC DATA IN | |
| 486 | ||
| 487 | */ | |
| 488 | ||
| 489 | 489 | UINT8 data = 0xff; |
| 490 | 490 | UINT8 c16_port7501 = m6510_get_port(m_maincpu); |
| 491 | 491 | |
| r15975 | r15976 | |
| 506 | 506 | WRITE8_MEMBER( plus4_state::cpu_w ) |
| 507 | 507 | { |
| 508 | 508 | /* |
| 509 | ||
| 510 | bit description | |
| 511 | ||
| 512 | 0 IEC DATA | |
| 513 | 1 IEC CLK, CST WR | |
| 514 | 2 IEC ATN | |
| 515 | 3 CST MTR | |
| 516 | 4 | |
| 517 | 5 | |
| 518 | 6 | |
| 519 | 7 | |
| 520 | ||
| 521 | */ | |
| 522 | 509 | |
| 510 | bit description | |
| 511 | ||
| 512 | 0 IEC DATA | |
| 513 | 1 IEC CLK, CST WR | |
| 514 | 2 IEC ATN | |
| 515 | 3 CST MTR | |
| 516 | 4 | |
| 517 | 5 | |
| 518 | 6 | |
| 519 | 7 | |
| 520 | ||
| 521 | */ | |
| 522 | ||
| 523 | 523 | // serial bus |
| 524 | 524 | m_iec->data_w(!BIT(data, 0)); |
| 525 | 525 | m_iec->clk_w(!BIT(data, 1)); |
| r15975 | r15976 | |
| 722 | 722 | READ8_MEMBER( plus4_state::spi_kb_r ) |
| 723 | 723 | { |
| 724 | 724 | /* |
| 725 | ||
| 726 | bit description | |
| 727 | ||
| 728 | 0 | |
| 729 | 1 | |
| 730 | 2 | |
| 731 | 3 | |
| 732 | 4 | |
| 733 | 5 | |
| 734 | 6 | |
| 735 | 7 | |
| 736 | ||
| 737 | */ | |
| 738 | 725 | |
| 726 | bit description | |
| 727 | ||
| 728 | 0 | |
| 729 | 1 | |
| 730 | 2 | |
| 731 | 3 | |
| 732 | 4 | |
| 733 | 5 | |
| 734 | 6 | |
| 735 | 7 | |
| 736 | ||
| 737 | */ | |
| 738 | ||
| 739 | 739 | return m_port6529 & (read_keyboard (0xff /*databus */ ) | (m_port6529 ^ 0xff)); |
| 740 | 740 | } |
| 741 | 741 | |
| 742 | 742 | WRITE8_MEMBER( plus4_state::spi_kb_w ) |
| 743 | 743 | { |
| 744 | 744 | /* |
| 745 | ||
| 746 | bit description | |
| 747 | ||
| 748 | 0 | |
| 749 | 1 | |
| 750 | 2 | |
| 751 | 3 | |
| 752 | 4 | |
| 753 | 5 | |
| 754 | 6 | |
| 755 | 7 | |
| 756 | ||
| 757 | */ | |
| 758 | 745 | |
| 746 | bit description | |
| 747 | ||
| 748 | 0 | |
| 749 | 1 | |
| 750 | 2 | |
| 751 | 3 | |
| 752 | 4 | |
| 753 | 5 | |
| 754 | 6 | |
| 755 | 7 | |
| 756 | ||
| 757 | */ | |
| 758 | ||
| 759 | 759 | m_port6529 = data; |
| 760 | 760 | } |
| 761 | 761 | |
| r15975 | r15976 | |
| 904 | 904 | MCFG_CPU_PERIODIC_INT(c16_raster_interrupt, TED7360_HRETRACERATE) |
| 905 | 905 | MCFG_QUANTUM_TIME(attotime::from_hz(60)) |
| 906 | 906 | |
| 907 | // video and sound hardware | |
| 907 | // video and sound hardware | |
| 908 | 908 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 909 | 909 | MCFG_MOS7360_ADD(MOS7360_TAG, SCREEN_TAG, XTAL_14_31818MHz/4, ted_intf) |
| 910 | 910 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| r15975 | r15976 | |
| 943 | 943 | MCFG_CPU_PERIODIC_INT(c16_raster_interrupt, TED7360_HRETRACERATE) |
| 944 | 944 | MCFG_QUANTUM_TIME(attotime::from_hz(60)) |
| 945 | 945 | |
| 946 | // video and sound hardware | |
| 946 | // video and sound hardware | |
| 947 | 947 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 948 | 948 | MCFG_MOS7360_ADD(MOS7360_TAG, SCREEN_TAG, XTAL_17_73447MHz/5, ted_intf) |
| 949 | 949 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| r15975 | r15976 | |
| 1023 | 1023 | ROM_REGION( 0x8000, "kernal", 0 ) |
| 1024 | 1024 | ROM_LOAD( "basic-264.bin", 0x0000, 0x4000, CRC(6a2fc8e3) SHA1(473fce23afa07000cdca899fbcffd6961b36a8a0) ) |
| 1025 | 1025 | ROM_LOAD( "kernal-264.bin", 0x4000, 0x4000, CRC(8f32abe7) SHA1(d481faf5fcbb331878dc7851c642d04f26a32873) ) |
| 1026 | ||
| 1026 | ||
| 1027 | 1027 | ROM_REGION( 0x8000, "function", ROMREGION_ERASE00 ) |
| 1028 | 1028 | |
| 1029 | 1029 | ROM_REGION( 0xf5, PLA_TAG, 0 ) |
| r15975 | r15976 | |
| 1130 | 1130 | ROM_START( c16h ) |
| 1131 | 1131 | ROM_REGION( 0x8000, "kernal", 0 ) |
| 1132 | 1132 | ROM_LOAD( "318006-01.u3", 0x0000, 0x4000, CRC(74eaae87) SHA1(161c96b4ad20f3a4f2321808e37a5ded26a135dd) ) |
| 1133 | ||
| 1133 | ||
| 1134 | 1134 | ROM_DEFAULT_BIOS("r2") |
| 1135 | 1135 | ROM_SYSTEM_BIOS( 0, "r1", "Revision 1" ) |
| 1136 | 1136 | ROMX_LOAD( "318030-01.u4", 0x4000, 0x4000, NO_DUMP, ROM_BIOS(1) ) |
| r15975 | r15976 | |
| 1150 | 1150 | ROM_REGION( 0x8000, "kernal", 0 ) |
| 1151 | 1151 | ROM_LOAD( "318006-01.u4", 0x0000, 0x4000, CRC(74eaae87) SHA1(161c96b4ad20f3a4f2321808e37a5ded26a135dd) ) |
| 1152 | 1152 | ROM_LOAD( "318004-01.u5", 0x4000, 0x4000, CRC(dbdc3319) SHA1(3c77caf72914c1c0a0875b3a7f6935cd30c54201) ) |
| 1153 | ||
| 1153 | ||
| 1154 | 1154 | ROM_REGION( 0x8000, "function", ROMREGION_ERASE00 ) |
| 1155 | 1155 | |
| 1156 | 1156 | ROM_REGION( 0xf5, PLA_TAG, 0 ) |
| r15975 | r15976 | |
|---|---|---|
| 214 | 214 | |
| 215 | 215 | saa5050_update(saa5050, bitmap, cliprect); |
| 216 | 216 | saa5050_frame_advance(saa5050); |
| 217 | ||
| 217 | ||
| 218 | 218 | return 0; |
| 219 | 219 | } |
| 220 | 220 |
| r15975 | r15976 | |
|---|---|---|
| 297 | 297 | COMP( 1987, pc, ibm5150, 0, pccga, pccga, driver_device, 0, "<generic>", "PC (CGA)" , GAME_NO_SOUND) |
| 298 | 298 | COMP( 1987, pcega, ibm5150, 0, pcega, pccga, driver_device, 0, "<generic>", "PC (EGA)" , GAME_NO_SOUND) |
| 299 | 299 | COMP ( 1987, pcmda, ibm5150, 0, pcmda, pcgen, driver_device, 0, "<generic>", "PC (MDA)" , GAME_NO_SOUND) |
| 300 | COMP ( 1987, pcherc, ibm5150, 0, pcherc, pcgen, driver_device, 0, | |
| 300 | COMP ( 1987, pcherc, ibm5150, 0, pcherc, pcgen, driver_device, 0, | |
| 301 | 301 | COMP ( 1987, xtvga, ibm5150, 0, xtvga, pcgen, driver_device, 0, "<generic>", "PC (VGA)" , GAME_NOT_WORKING | GAME_NO_SOUND) |
| r15975 | r15976 | |
|---|---|---|
| 915 | 915 | CONS( 1993, wmegam2, xeye, 0, genesis_scd, md, md_cons_state, md_jpn, "Victor", "Wondermega M2 (Japan, NTSC)", GAME_NOT_WORKING ) |
| 916 | 916 | CONS( 1994, cdx, 0, 0, genesis_scd, md, md_cons_state, genesis, "Sega", "CDX (USA, NTSC)", GAME_NOT_WORKING ) |
| 917 | 917 | CONS( 1994, multmega, cdx, 0, genesis_scd, md, md_cons_state, md_eur, "Sega", "Multi-Mega (Europe, PAL)", GAME_NOT_WORKING ) |
| 918 | CONS( 1994, 32x_scd, 0, 0, genesis_32x_scd, md, md_cons_state, | |
| 918 | CONS( 1994, 32x_scd, 0, 0, genesis_32x_scd, md, md_cons_state, | |
| 919 | 919 | |
| 920 | 920 | // this is a standalone system based on the md-like hardware (same vdp etc.) |
| 921 | 921 |
| r15975 | r15976 | |
|---|---|---|
| 1411 | 1411 | COMP ( 1987, atvga, ibm5170, 0, atvga, atvga, at_state, atvga, "<generic>", "PC/AT (VGA, MF2 Keyboard)" , GAME_NOT_WORKING ) |
| 1412 | 1412 | COMP ( 1988, at386, ibm5170, 0, at386, atvga, at_state, atvga, "<generic>", "PC/AT 386 (VGA, MF2 Keyboard)", GAME_NOT_WORKING ) |
| 1413 | 1413 | COMP ( 1990, at486, ibm5170, 0, at486, atvga, at_state, atvga, "<generic>", "PC/AT 486 (VGA, MF2 Keyboard)", GAME_NOT_WORKING ) |
| 1414 | COMP ( 1990, at586, ibm5170, 0, at586, atvga, driver_device, 0, | |
| 1414 | COMP ( 1990, at586, ibm5170, 0, at586, atvga, driver_device, 0, | |
| 1415 | 1415 | COMP ( 1990, at586x3, ibm5170, 0, at586x3, atvga, driver_device, 0, "<generic>", "PC/AT 586 (PIIX3)", GAME_NOT_WORKING ) |
| 1416 | 1416 | COMP ( 1989, neat, ibm5170, 0, neat, atcga, at_state, atcga, "<generic>", "NEAT (CGA, MF2 Keyboard)", GAME_NOT_WORKING ) |
| 1417 | 1417 | COMP ( 1993, ct486, ibm5170, 0, ct486, atvga, at_state, atvga, "<unknown>", "PC/AT 486 with C&T chipset", GAME_NOT_WORKING ) |
| r15975 | r15976 | |
|---|---|---|
| 194 | 194 | |
| 195 | 195 | /* Driver */ |
| 196 | 196 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 197 | COMP( 1983, irisha, 0, 0, irisha, irisha, irisha_state, | |
| 197 | COMP( 1983, irisha, 0, 0, irisha, irisha, irisha_state, |
| r15975 | r15976 | |
|---|---|---|
| 949 | 949 | { |
| 950 | 950 | m_sio_rxdb = !(m_tape_ctr == 15); |
| 951 | 951 | } |
| 952 | ||
| 952 | ||
| 953 | 953 | if (!dfd_in && (m_tape_ctr == 15)) |
| 954 | 954 | { |
| 955 | 955 | m_tape_ctr = 4; |
| r15975 | r15976 | |
| 1600 | 1600 | //************************************************************************** |
| 1601 | 1601 | |
| 1602 | 1602 | // YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS |
| 1603 | COMP( 1981, abc800c, 0, 0, abc800c, abc800, abc800c_state, driver_init, "Luxor Datorer AB", "ABC 800 C/HR", GAME_SUPPORTS_SAVE ) | |
| 1604 | COMP( 1981, abc800m, abc800c, 0, abc800m, abc800, abc800m_state, driver_init, "Luxor Datorer AB", "ABC 800 M/HR", GAME_SUPPORTS_SAVE ) | |
| 1605 | COMP( 1983, abc802, 0, 0, abc802, abc802, abc802_state, driver_init, "Luxor Datorer AB", "ABC 802", GAME_SUPPORTS_SAVE ) | |
| 1606 | COMP( 1983, abc806, 0, 0, abc806, abc806, abc806_state, driver_init, "Luxor Datorer AB", "ABC 806", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_GRAPHICS ) | |
| 1603 | COMP( 1981, abc800c, 0, 0, abc800c, abc800, abc800c_state, driver_init, "Luxor Datorer AB", "ABC 800 C/HR", GAME_SUPPORTS_SAVE ) | |
| 1604 | COMP( 1981, abc800m, abc800c, 0, abc800m, abc800, abc800m_state, driver_init, "Luxor Datorer AB", "ABC 800 M/HR", GAME_SUPPORTS_SAVE ) | |
| 1605 | COMP( 1983, abc802, 0, 0, abc802, abc802, abc802_state, driver_init, "Luxor Datorer AB", "ABC 802", GAME_SUPPORTS_SAVE ) | |
| 1606 | COMP( 1983, abc806, 0, 0, abc806, abc806, abc806_state, driver_init, "Luxor Datorer AB", "ABC 806", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_GRAPHICS ) |
| r15975 | r15976 | |
|---|---|---|
| 358 | 358 | |
| 359 | 359 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 360 | 360 | COMP( 1990, orion128, 0, 0, orion128, radio86, driver_device, 0, "<unknown>", "Orion 128", 0) |
| 361 | COMP( 1990, orionms, orion128, 0, orion128ms, ms7007, driver_device, | |
| 361 | COMP( 1990, orionms, orion128, 0, orion128ms, ms7007, driver_device, | |
| 362 | 362 | COMP( 1990, orionz80, orion128, 0, orionz80, radio86, driver_device, 0, "<unknown>", "Orion 128 + Z80 Card II", 0) |
| 363 | 363 | COMP( 1990, orionide, orion128, 0, orionz80, radio86, driver_device, 0, "<unknown>", "Orion 128 + Z80 Card II + IDE", 0) |
| 364 | COMP( 1990, orionzms, orion128, 0, orionz80ms, ms7007, driver_device, 0, "<unknown>", "Orion 128 + Z80 Card II (MS7007)", 0) | |
| 365 | COMP( 1990, orionidm, orion128, 0, orionz80ms, ms7007, driver_device, 0, "<unknown>", "Orion 128 + Z80 Card II + IDE (MS7007)", 0) | |
| 364 | COMP( 1990, orionzms, orion128, 0, orionz80ms, ms7007, driver_device, 0, "<unknown>", "Orion 128 + Z80 Card II (MS7007)", 0) | |
| 365 | COMP( 1990, orionidm, orion128, 0, orionz80ms, ms7007, driver_device, 0, "<unknown>", "Orion 128 + Z80 Card II + IDE (MS7007)", 0) | |
| 366 | 366 | COMP( 1994, orionpro, orion128, 0, orionpro, radio86, driver_device, 0, "<unknown>", "Orion Pro", 0) |
| r15975 | r15976 | |
|---|---|---|
| 264 | 264 | /* Driver */ |
| 265 | 265 | |
| 266 | 266 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 267 | COMP( 1985, bk0010, 0, 0, bk0010, bk0010, driver_device, 0, "Elektronika", "BK-0010", 0) | |
| 268 | COMP( 1986, bk001001, bk0010, 0, bk0010, bk0010, driver_device, 0, "Elektronika", "BK-0010.01", 0) | |
| 269 | COMP( 1986, bk0010fd, bk0010, 0, bk0010fd, bk0010, driver_device, 0, "Elektronika", "BK-0010 FDD", GAME_NOT_WORKING) | |
| 270 | COMP( 1986, bk0011m, bk0010, 0, bk0010fd, bk0010, driver_device, 0, "Elektronika", "BK-0011M", GAME_NOT_WORKING) | |
| 267 | COMP( 1985, bk0010, 0, 0, bk0010, bk0010, driver_device, 0, "Elektronika", "BK-0010", 0) | |
| 268 | COMP( 1986, bk001001, bk0010, 0, bk0010, bk0010, driver_device, 0, "Elektronika", "BK-0010.01", 0) | |
| 269 | COMP( 1986, bk0010fd, bk0010, 0, bk0010fd, bk0010, driver_device, 0, "Elektronika", "BK-0010 FDD", GAME_NOT_WORKING) | |
| 270 | COMP( 1986, bk0011m, bk0010, 0, bk0010fd, bk0010, driver_device, 0, "Elektronika", "BK-0011M", GAME_NOT_WORKING) |
| r15975 | r15976 | |
|---|---|---|
| 14 | 14 | need to be understood and emulated before this system makes sense. |
| 15 | 15 | |
| 16 | 16 | Known Monitor commands: (from the disassembly) |
| 17 | ! write buffer to AD000 | |
| 18 | * set RAM036 flag | |
| 19 | + increment AD000 by 1 | |
| 20 | +n increment AD000 by n | |
| 21 | - decrement AD000 by 1 | |
| 22 | -n decrement AD000 by n | |
| 23 | : clear RAM036 flag | |
| 24 | = display AD000 | |
| 25 | =nnn set AD000 to nnn | |
| 26 | @ fill buffer with 026 | |
| 17 | ! write buffer to AD000 | |
| 18 | * set RAM036 flag | |
| 19 | + increment AD000 by 1 | |
| 20 | +n increment AD000 by n | |
| 21 | - decrement AD000 by 1 | |
| 22 | -n decrement AD000 by n | |
| 23 | : clear RAM036 flag | |
| 24 | = display AD000 | |
| 25 | =nnn set AD000 to nnn | |
| 26 | @ fill buffer with 026 | |
| 27 | 27 | |
| 28 | 28 | unknown commands: / & d e l r s t u z \ ^ | ~ |
| 29 | 29 |
| r15975 | r15976 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | Nintendo Virtual Boy |
| 4 | 4 | |
| 5 | ||
| 5 | driver by Miodrag Milanovic & Angelo Salese | |
| 6 | 6 | |
| 7 | 7 | Great info at http://www.goliathindustries.com/vb/ |
| 8 | 8 | and http://www.vr32.de/modules/dokuwiki/doku.php? |
| r15975 | r15976 | |
| 10 | 10 | TODO: |
| 11 | 11 | - fix Affine rotation |
| 12 | 12 | - per-game NVRAM hook-up (wariolnd, vleague, golf, others?) |
| 13 | - boundh: game is way too fast | |
| 14 | - boundh: death animation has missing gfxs | |
| 13 | - boundh: game is way too fast | |
| 14 | - boundh: death animation has missing gfxs | |
| 15 | 15 | - galactic: ball isn't shown? |
| 16 | 16 | - galactic: on the rotation layer, half of it isn't shown; |
| 17 | 17 | (http://pastebin.com/9sVT9BbB) |
| 18 | 18 | - innsmout: arrow OBJ graphics are misplaced; |
| 19 | 19 | - marioten: title screen logo is misplaced if Mario completes his animation |
| 20 | 20 | - panicbom: brightness 10 overflows |
| 21 | - spaceinv: Taito logo only if you press the button, framebuffer? | |
| 22 | - spaceinv: missing shots | |
| 23 | - ssquash: misplaced map; | |
| 24 | - ssquash: gameplay seems busted; | |
| 25 | - vleague / vproyak: keeps going into auto pause with 100 usec timer? | |
| 26 | - wariolnd: brightness gets suddently darker during intro, CPU bug? | |
| 21 | - spaceinv: Taito logo only if you press the button, framebuffer? | |
| 22 | - spaceinv: missing shots | |
| 23 | - ssquash: misplaced map; | |
| 24 | - ssquash: gameplay seems busted; | |
| 25 | - vleague / vproyak: keeps going into auto pause with 100 usec timer? | |
| 26 | - wariolnd: brightness gets suddently darker during intro, CPU bug? | |
| 27 | 27 | |
| 28 | 28 | ****************************************************************************/ |
| 29 | 29 | |
| r15975 | r15976 | |
| 509 | 509 | break; |
| 510 | 510 | case 0x28: // KCR (Keypad Control Reg) |
| 511 | 511 | { |
| 512 | // | |
| 512 | // attotime new_time = machine().time(); | |
| 513 | 513 | |
| 514 | // | |
| 514 | // if((new_time - m_input_latch_time) < m_maincpu->cycles_to_attotime(640)) | |
| 515 | 515 | value |= machine().rand() & 2; |
| 516 | 516 | |
| 517 | 517 | value = m_vboy_regs.kcr | 0x4c; |
| r15975 | r15976 | |
| 546 | 546 | break; |
| 547 | 547 | case 0x20: // TCR (Timer Control Reg) |
| 548 | 548 | /* |
| 549 | 111- ---- always 1 | |
| 550 | ---x ---- timer select (1=20 us, 0=100 us) | |
| 551 | ---- x--- timer irq | |
| 552 | ---- -x-- resets timer zero flag | |
| 553 | ---- --x- timer is zero flag | |
| 554 | ---- ---x enables timer | |
| 555 | */ | |
| 549 | 111- ---- always 1 | |
| 550 | ---x ---- timer select (1=20 us, 0=100 us) | |
| 551 | ---- x--- timer irq | |
| 552 | ---- -x-- resets timer zero flag | |
| 553 | ---- --x- timer is zero flag | |
| 554 | ---- ---x enables timer | |
| 555 | */ | |
| 556 | 556 | if(data & 1) |
| 557 | 557 | { |
| 558 | 558 | m_vboy_regs.tlb = m_vboy_timer.latch & 0xff; |
| r15975 | r15976 | |
| 641 | 641 | case 0x40: //XPSTTS, piXel Processor STaTuS |
| 642 | 642 | { |
| 643 | 643 | /* |
| 644 | ---- ---- ---- x--- XPBSY1 (second framebuffer busy flag) | |
| 645 | ---- ---- ---- -x-- XPBSY0 (first framebfuffer busy flag) | |
| 646 | */ | |
| 644 | ---- ---- ---- x--- XPBSY1 (second framebuffer busy flag) | |
| 645 | ---- ---- ---- -x-- XPBSY0 (first framebfuffer busy flag) | |
| 646 | */ | |
| 647 | 647 | UINT8 drawfb = ((m_displayfb ^ 1) + 1) << 2; |
| 648 | 648 | UINT16 res; |
| 649 | 649 | |
| r15975 | r15976 | |
| 658 | 658 | res |= m_row_num<<8; |
| 659 | 659 | } |
| 660 | 660 | //if(m_vip_regs.DPCTRL & 2) |
| 661 | // | |
| 661 | // res |= ((row_num)<<8); | |
| 662 | 662 | |
| 663 | 663 | return res; |
| 664 | 664 | } |
| r15975 | r15976 | |
| 703 | 703 | { |
| 704 | 704 | switch(offset << 1) { |
| 705 | 705 | /* |
| 706 | x--- ---- ---- ---- TIME_ERR | |
| 707 | -x-- ---- ---- ---- XP_END | |
| 708 | --x- ---- ---- ---- SB_HIT | |
| 709 | ---- ---- ---x ---- FRAME_START | |
| 710 | ---- ---- ---- x--- GAME_START | |
| 711 | ---- ---- ---- -x-- RFB_END | |
| 712 | ---- ---- ---- --x- LFB_END | |
| 713 | ---- ---- ---- ---x SCAN_ERR | |
| 714 | */ | |
| 706 | x--- ---- ---- ---- TIME_ERR | |
| 707 | -x-- ---- ---- ---- XP_END | |
| 708 | --x- ---- ---- ---- SB_HIT | |
| 709 | ---- ---- ---x ---- FRAME_START | |
| 710 | ---- ---- ---- x--- GAME_START | |
| 711 | ---- ---- ---- -x-- RFB_END | |
| 712 | ---- ---- ---- --x- LFB_END | |
| 713 | ---- ---- ---- ---x SCAN_ERR | |
| 714 | */ | |
| 715 | 715 | case 0x00: //INTPND |
| 716 | 716 | logerror("Error writing INTPND\n"); |
| 717 | 717 | break; |
| r15975 | r15976 | |
| 724 | 724 | m_vip_regs.INTPND &= ~data; |
| 725 | 725 | m_set_irq(0); |
| 726 | 726 | //else |
| 727 | // | |
| 727 | // printf("%04x\n",m_vip_regs.INTPND); | |
| 728 | 728 | break; |
| 729 | 729 | case 0x20: //DPSTTS |
| 730 | 730 | logerror("Error writing DPSTTS\n"); |
| r15975 | r15976 | |
| 741 | 741 | case 0x24: //BRTA |
| 742 | 742 | m_vip_regs.BRTA = data; |
| 743 | 743 | palette_set_color_rgb(machine(), 1,(m_vip_regs.BRTA) & 0xff,0,0); |
| 744 | // | |
| 744 | // popmessage("%02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC); | |
| 745 | 745 | break; |
| 746 | 746 | case 0x26: //BRTB |
| 747 | 747 | m_vip_regs.BRTB = data; |
| 748 | 748 | palette_set_color_rgb(machine(), 2,(m_vip_regs.BRTA + m_vip_regs.BRTB) & 0xff,0,0); |
| 749 | // | |
| 749 | // popmessage("%02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC); | |
| 750 | 750 | break; |
| 751 | 751 | case 0x28: //BRTC |
| 752 | 752 | m_vip_regs.BRTC = data; |
| 753 | 753 | palette_set_color_rgb(machine(), 3,(m_vip_regs.BRTA + m_vip_regs.BRTB + m_vip_regs.BRTC) & 0xff,0,0); |
| 754 | // | |
| 754 | // popmessage("%02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC); | |
| 755 | 755 | break; |
| 756 | 756 | case 0x2A: //REST |
| 757 | 757 | m_vip_regs.REST = data; |
| r15975 | r15976 | |
| 769 | 769 | break; |
| 770 | 770 | case 0x42: //XPCTRL, w/o |
| 771 | 771 | /* |
| 772 | ---- ---- ---- --x- | |
| 773 | ---- ---- ---- ---x Reset Pixel Processor | |
| 774 | */ | |
| 772 | ---- ---- ---- --x- | |
| 773 | ---- ---- ---- ---x Reset Pixel Processor | |
| 774 | */ | |
| 775 | 775 | m_vip_regs.XPCTRL = data & 0x1f02; |
| 776 | 776 | |
| 777 | 777 | //if(data & 0x1f00) |
| 778 | // | |
| 778 | // printf("%04x SBCMP\n",data); | |
| 779 | 779 | |
| 780 | 780 | if(data & 1) |
| 781 | 781 | { |
| r15975 | r15976 | |
| 959 | 959 | |
| 960 | 960 | AM_RANGE( 0x01000000, 0x010005ff ) AM_DEVREADWRITE8("vbsnd", vboysnd_device, read, write, 0xffffffff) |
| 961 | 961 | AM_RANGE( 0x02000000, 0x0200002b ) AM_MIRROR(0x0ffff00) AM_READWRITE(io_r, io_w) // Hardware control registers mask 0xff |
| 962 | // | |
| 962 | // AM_RANGE( 0x04000000, 0x04ffffff ) // Expansion area | |
| 963 | 963 | AM_RANGE( 0x05000000, 0x0500ffff ) AM_MIRROR(0x0ff0000) AM_RAM AM_SHARE("wram") // Main RAM - 64K mask 0xffff |
| 964 | 964 | AM_RANGE( 0x06000000, 0x06003fff ) AM_RAM AM_SHARE("nvram") // Cart RAM - 8K NVRAM |
| 965 | 965 | AM_RANGE( 0x07000000, 0x071fffff ) AM_MIRROR(0x0e00000) AM_ROM AM_REGION("user1", 0) /* ROM */ |
| r15975 | r15976 | |
|---|---|---|
| 676 | 676 | |
| 677 | 677 | state->m_ctc->trg0(1); |
| 678 | 678 | state->m_ctc->trg0(0); |
| 679 | ||
| 679 | ||
| 680 | 680 | state->m_ctc->trg1(1); |
| 681 | 681 | state->m_ctc->trg1(0); |
| 682 | ||
| 682 | ||
| 683 | 683 | state->m_ctc->trg2(1); |
| 684 | 684 | state->m_ctc->trg2(0); |
| 685 | 685 | } |
| r15975 | r15976 | |
|---|---|---|
| 489 | 489 | |
| 490 | 490 | state->m_ctc->trg0(1); |
| 491 | 491 | state->m_ctc->trg0(0); |
| 492 | ||
| 492 | ||
| 493 | 493 | state->m_ctc->trg1(1); |
| 494 | 494 | state->m_ctc->trg1(0); |
| 495 | 495 | } |
| r15975 | r15976 | |
|---|---|---|
| 826 | 826 | int abc1600_state::get_fc() |
| 827 | 827 | { |
| 828 | 828 | UINT16 fc = m68k_get_fc(m_maincpu); |
| 829 | ||
| 829 | ||
| 830 | 830 | m_ifc2 = !(!(MAGIC || FC0) || FC2); |
| 831 | 831 | |
| 832 | 832 | return fc; |
| r15975 | r15976 | |
|---|---|---|
| 1522 | 1522 | AM_RANGE(0x9000,0x9f7f) AM_RAM // Work RAM(?) |
| 1523 | 1523 | AM_RANGE(0x9f80,0x9fff) AM_RAM AM_SHARE("shared_ram") |
| 1524 | 1524 | AM_RANGE(0xafe0,0xafe3) AM_RAM |
| 1525 | // | |
| 1525 | // AM_RANGE(0xafe4,0xafe4) AM_READWRITE(fm7_sub_busyflag_r,fm7_sub_busyflag_w) | |
| 1526 | 1526 | AM_RANGE(0xafe6,0xafe6) AM_READWRITE(fm77av_video_flags_r,fm77av_video_flags_w) |
| 1527 | 1527 | AM_RANGE(0xaff0,0xaff0) AM_READWRITE(fm7_sub_busyflag_r,fm7_sub_busyflag_w) |
| 1528 | 1528 | AM_RANGE(0xc000,0xffff) AM_ROM // sybsystem ROM |
| r15975 | r15976 | |
|---|---|---|
| 16 | 16 | |
| 17 | 17 | TODO: |
| 18 | 18 | |
| 19 | ||
| 19 | - wait states (UV201: 2.9us, memory except RES1: 1.65us) | |
| 20 | 20 | - interlaced video? |
| 21 | 21 | - pinball background colors |
| 22 | 22 | - Y-zoom starting on odd scanline only 1 line high |
| r15975 | r15976 | |
|---|---|---|
| 1171 | 1171 | COMP( 1982, trs80m16, trs80m2, 0, trs80m16, trs80m2, driver_device, 0, "Tandy Radio Shack", "TRS-80 Model 16", GAME_NO_SOUND_HW | GAME_NOT_WORKING | GAME_IMPERFECT_KEYBOARD ) |
| 1172 | 1172 | //COMP( 1983, trs80m12, trs80m2, 0, trs80m16, trs80m2, driver_device, 0, "Tandy Radio Shack", "TRS-80 Model 12", GAME_NO_SOUND_HW | GAME_NOT_WORKING | GAME_IMPERFECT_KEYBOARD ) |
| 1173 | 1173 | //COMP( 1984, trs80m16b,trs80m2, 0, trs80m16, trs80m2, driver_device, 0, "Tandy Radio Shack", "TRS-80 Model 16B", GAME_NO_SOUND_HW | GAME_NOT_WORKING | GAME_IMPERFECT_KEYBOARD ) |
| 1174 | //COMP( 1985, tandy6k, trs80m2, 0, tandy6k, trs80m2, driver_device, | |
| 1174 | //COMP( 1985, tandy6k, trs80m2, 0, tandy6k, trs80m2, driver_device, 0, "Tandy Radio Shack", "Tandy 6000 HD", GAME_NO_SOUND_HW | GAME_NOT_WORKING | GAME_IMPERFECT_KEYBOARD ) |
| r15975 | r15976 | |
|---|---|---|
| 120 | 120 | AM_RANGE( 0xff72, 0xff73 ) AM_READ(term_r) |
| 121 | 121 | AM_RANGE( 0xff74, 0xff75 ) AM_READ(term_tx_status_r) |
| 122 | 122 | AM_RANGE( 0xff76, 0xff77 ) AM_WRITE(term_w) |
| 123 | ||
| 123 | ||
| 124 | 124 | AM_RANGE( 0xfe78, 0xfe7b ) AM_DEVREADWRITE("rx01", rx01_device, read, write) |
| 125 | 125 | ADDRESS_MAP_END |
| 126 | 126 | |
| r15975 | r15976 | |
| 330 | 330 | |
| 331 | 331 | /* video hardware */ |
| 332 | 332 | MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, terminal_intf) |
| 333 | ||
| 333 | ||
| 334 | 334 | MCFG_RX01_ADD("rx01") |
| 335 | 335 | MACHINE_CONFIG_END |
| 336 | 336 |
| r15975 | r15976 | |
|---|---|---|
| 399 | 399 | /* Driver */ |
| 400 | 400 | |
| 401 | 401 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 402 | COMP( 1987, vesta, 0, 0, pk8000, pk8000, driver_device, 0, "BP EVM", "PK8000 Vesta", 0) | |
| 403 | COMP( 1987, hobby, vesta, 0, pk8000, pk8000, driver_device, 0, "BP EVM", "PK8000 Sura/Hobby", 0) | |
| 404 | COMP( 1987, pk8002, vesta, 0, pk8000, pk8000, driver_device, 0, "<unknown>", "PK8002 Elf", GAME_NOT_WORKING) | |
| 402 | COMP( 1987, vesta, 0, 0, pk8000, pk8000, driver_device, 0, "BP EVM", "PK8000 Vesta", 0) | |
| 403 | COMP( 1987, hobby, vesta, 0, pk8000, pk8000, driver_device, 0, "BP EVM", "PK8000 Sura/Hobby", 0) | |
| 404 | COMP( 1987, pk8002, vesta, 0, pk8000, pk8000, driver_device, 0, "<unknown>", "PK8002 Elf", GAME_NOT_WORKING) | |
| 405 | 405 |
| r15975 | r15976 | |
|---|---|---|
| 153 | 153 | |
| 154 | 154 | static ADDRESS_MAP_START(pcw16_map, AS_PROGRAM, 8, pcw16_state ) |
| 155 | 155 | AM_RANGE(0x0000, 0xffff) AM_READWRITE(pcw16_mem_r, pcw16_mem_w) |
| 156 | // AM_RANGE(0x0000, 0x3fff) AM_READ_BANK("bank1") AM_WRITE_BANK("bank5") | |
| 157 | // AM_RANGE(0x4000, 0x7fff) AM_READ_BANK("bank2") AM_WRITE_BANK("bank6") | |
| 158 | // AM_RANGE(0x8000, 0xbfff) AM_READ_BANK("bank3") AM_WRITE_BANK("bank7") | |
| 159 | // AM_RANGE(0xc000, 0xffff) AM_READ_BANK("bank4") AM_WRITE_BANK("bank8") | |
| 156 | // AM_RANGE(0x0000, 0x3fff) AM_READ_BANK("bank1") AM_WRITE_BANK("bank5") | |
| 157 | // AM_RANGE(0x4000, 0x7fff) AM_READ_BANK("bank2") AM_WRITE_BANK("bank6") | |
| 158 | // AM_RANGE(0x8000, 0xbfff) AM_READ_BANK("bank3") AM_WRITE_BANK("bank7") | |
| 159 | // AM_RANGE(0xc000, 0xffff) AM_READ_BANK("bank4") AM_WRITE_BANK("bank8") | |
| 160 | 160 | ADDRESS_MAP_END |
| 161 | 161 | |
| 162 | 162 | |
| r15975 | r15976 | |
| 369 | 369 | /* |
| 370 | 370 | static void pcw16_set_bank_handlers(running_machine &machine, int bank, PCW16_RAM_TYPE type) |
| 371 | 371 | { |
| 372 | address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM); | |
| 373 | pcw16_state *state = machine.driver_data<pcw16_state>(); | |
| 374 | switch (type) { | |
| 375 | case PCW16_MEM_ROM: | |
| 376 | // rom | |
| 377 | space->install_read_bank((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_read_handler_dram[bank]); | |
| 378 | space->nop_write((bank * 0x4000), (bank * 0x4000) + 0x3fff); | |
| 379 | break; | |
| 372 | address_space *space = machine.device("maincpu")->memory().space(AS_PROGRAM); | |
| 373 | pcw16_state *state = machine.driver_data<pcw16_state>(); | |
| 374 | switch (type) { | |
| 375 | case PCW16_MEM_ROM: | |
| 376 | // rom | |
| 377 | space->install_read_bank((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_read_handler_dram[bank]); | |
| 378 | space->nop_write((bank * 0x4000), (bank * 0x4000) + 0x3fff); | |
| 379 | break; | |
| 380 | 380 | |
| 381 | case PCW16_MEM_FLASH_1: | |
| 382 | // sram | |
| 383 | space->install_legacy_read_handler((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_flash0_bank_handlers_r[bank].func, pcw16_flash0_bank_handlers_r[bank].name); | |
| 384 | space->install_legacy_write_handler((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_flash0_bank_handlers_w[bank].func, pcw16_flash0_bank_handlers_w[bank].name); | |
| 385 | break; | |
| 381 | case PCW16_MEM_FLASH_1: | |
| 382 | // sram | |
| 383 | space->install_legacy_read_handler((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_flash0_bank_handlers_r[bank].func, pcw16_flash0_bank_handlers_r[bank].name); | |
| 384 | space->install_legacy_write_handler((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_flash0_bank_handlers_w[bank].func, pcw16_flash0_bank_handlers_w[bank].name); | |
| 385 | break; | |
| 386 | 386 | |
| 387 | case PCW16_MEM_FLASH_2: | |
| 388 | space->install_legacy_read_handler((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_flash1_bank_handlers_r[bank].func, pcw16_flash1_bank_handlers_r[bank].name); | |
| 389 | space->install_legacy_write_handler((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_flash1_bank_handlers_w[bank].func, pcw16_flash1_bank_handlers_w[bank].name); | |
| 390 | break; | |
| 387 | case PCW16_MEM_FLASH_2: | |
| 388 | space->install_legacy_read_handler((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_flash1_bank_handlers_r[bank].func, pcw16_flash1_bank_handlers_r[bank].name); | |
| 389 | space->install_legacy_write_handler((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_flash1_bank_handlers_w[bank].func, pcw16_flash1_bank_handlers_w[bank].name); | |
| 390 | break; | |
| 391 | 391 | |
| 392 | case PCW16_MEM_NONE: | |
| 393 | space->install_read_handler((bank * 0x4000), (bank * 0x4000) + 0x3fff, read8_delegate(FUNC(pcw16_state::pcw16_no_mem_r),state)); | |
| 394 | space->nop_write((bank * 0x4000), (bank * 0x4000) + 0x3fff); | |
| 395 | break; | |
| 392 | case PCW16_MEM_NONE: | |
| 393 | space->install_read_handler((bank * 0x4000), (bank * 0x4000) + 0x3fff, read8_delegate(FUNC(pcw16_state::pcw16_no_mem_r),state)); | |
| 394 | space->nop_write((bank * 0x4000), (bank * 0x4000) + 0x3fff); | |
| 395 | break; | |
| 396 | 396 | |
| 397 | default: | |
| 398 | case PCW16_MEM_DRAM: | |
| 399 | // dram | |
| 400 | space->install_read_bank((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_read_handler_dram[bank]); | |
| 401 | space->install_write_bank((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_write_handler_dram[bank]); | |
| 402 | break; | |
| 403 | } | |
| 397 | default: | |
| 398 | case PCW16_MEM_DRAM: | |
| 399 | // dram | |
| 400 | space->install_read_bank((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_read_handler_dram[bank]); | |
| 401 | space->install_write_bank((bank * 0x4000), (bank * 0x4000) + 0x3fff, pcw16_write_handler_dram[bank]); | |
| 402 | break; | |
| 403 | } | |
| 404 | 404 | |
| 405 | 405 | } |
| 406 | 406 | |
| 407 | 407 | static void pcw16_update_bank(running_machine &machine, int bank) |
| 408 | 408 | { |
| 409 | pcw16_state *state = machine.driver_data<pcw16_state>(); | |
| 410 | unsigned char *mem_ptr = NULL; // machine.device<ram_device>(RAM_TAG)->pointer(); | |
| 411 | int bank_id = 0; | |
| 412 | int bank_offs = 0; | |
| 413 | char bank1[10]; | |
| 414 | char bank2[10]; | |
| 409 | pcw16_state *state = machine.driver_data<pcw16_state>(); | |
| 410 | unsigned char *mem_ptr = NULL; // machine.device<ram_device>(RAM_TAG)->pointer(); | |
| 411 | int bank_id = 0; | |
| 412 | int bank_offs = 0; | |
| 413 | char bank1[10]; | |
| 414 | char bank2[10]; | |
| 415 | 415 | |
| 416 | // get memory bank | |
| 417 | bank_id = state->m_banks[bank]; | |
| 416 | // get memory bank | |
| 417 | bank_id = state->m_banks[bank]; | |
| 418 | 418 | |
| 419 | 419 | |
| 420 | if ((bank_id & 0x080)==0) | |
| 421 | { | |
| 422 | bank_offs = 0; | |
| 420 | if ((bank_id & 0x080)==0) | |
| 421 | { | |
| 422 | bank_offs = 0; | |
| 423 | 423 | |
| 424 | if (bank_id<4) | |
| 425 | { | |
| 426 | //lower 4 banks are write protected. Use the rom | |
| 424 | if (bank_id<4) | |
| 425 | { | |
| 426 | //lower 4 banks are write protected. Use the rom | |
| 427 | 427 | //loaded |
| 428 | mem_ptr = &state->memregion("maincpu")->base()[0x010000]; | |
| 429 | } | |
| 430 | else | |
| 431 | { | |
| 432 | intelfsh8_device *flashdev; | |
| 428 | mem_ptr = &state->memregion("maincpu")->base()[0x010000]; | |
| 429 | } | |
| 430 | else | |
| 431 | { | |
| 432 | intelfsh8_device *flashdev; | |
| 433 | 433 | |
| 434 | // nvram | |
| 435 | if ((bank_id & 0x040)==0) | |
| 436 | { | |
| 437 | flashdev = machine.device<intelfsh8_device>("flash0"); | |
| 438 | } | |
| 439 | else | |
| 440 | { | |
| 441 | flashdev = machine.device<intelfsh8_device>("flash1"); | |
| 442 | } | |
| 434 | // nvram | |
| 435 | if ((bank_id & 0x040)==0) | |
| 436 | { | |
| 437 | flashdev = machine.device<intelfsh8_device>("flash0"); | |
| 438 | } | |
| 439 | else | |
| 440 | { | |
| 441 | flashdev = machine.device<intelfsh8_device>("flash1"); | |
| 442 | } | |
| 443 | 443 | |
| 444 | mem_ptr = (unsigned char *)flashdev->space()->get_read_ptr(0); | |
| 445 | } | |
| 444 | mem_ptr = (unsigned char *)flashdev->space()->get_read_ptr(0); | |
| 445 | } | |
| 446 | 446 | |
| 447 | } | |
| 448 | else | |
| 449 | { | |
| 450 | bank_offs = 128; | |
| 451 | //dram | |
| 452 | mem_ptr = machine.device<ram_device>(RAM_TAG)->pointer(); | |
| 453 | } | |
| 447 | } | |
| 448 | else | |
| 449 | { | |
| 450 | bank_offs = 128; | |
| 451 | //dram | |
| 452 | mem_ptr = machine.device<ram_device>(RAM_TAG)->pointer(); | |
| 453 | } | |
| 454 | 454 | |
| 455 | mem_ptr = mem_ptr + ((bank_id - bank_offs)<<14); | |
| 456 | state->m_mem_ptr[bank] = (char*)mem_ptr; | |
| 457 | sprintf(bank1,"bank%d",(bank+1)); | |
| 458 | sprintf(bank2,"bank%d",(bank+5)); | |
| 459 | state->membank(bank1)->set_base(mem_ptr); | |
| 460 | state->membank(bank2)->set_base(mem_ptr); | |
| 455 | mem_ptr = mem_ptr + ((bank_id - bank_offs)<<14); | |
| 456 | state->m_mem_ptr[bank] = (char*)mem_ptr; | |
| 457 | sprintf(bank1,"bank%d",(bank+1)); | |
| 458 | sprintf(bank2,"bank%d",(bank+5)); | |
| 459 | state->membank(bank1)->set_base(mem_ptr); | |
| 460 | state->membank(bank2)->set_base(mem_ptr); | |
| 461 | 461 | |
| 462 | if ((bank_id & 0x080)==0) | |
| 463 | { | |
| 464 | // selections 0-3 within the first 64k are write protected | |
| 465 | if (bank_id<4) | |
| 466 | { | |
| 467 | // rom | |
| 468 | pcw16_set_bank_handlers(machine, bank, PCW16_MEM_ROM); | |
| 469 | } | |
| 470 | else | |
| 471 | { | |
| 472 | // selections 0-63 are for flash-rom 0, selections | |
| 462 | if ((bank_id & 0x080)==0) | |
| 463 | { | |
| 464 | // selections 0-3 within the first 64k are write protected | |
| 465 | if (bank_id<4) | |
| 466 | { | |
| 467 | // rom | |
| 468 | pcw16_set_bank_handlers(machine, bank, PCW16_MEM_ROM); | |
| 469 | } | |
| 470 | else | |
| 471 | { | |
| 472 | // selections 0-63 are for flash-rom 0, selections | |
| 473 | 473 | // 64-128 are for flash-rom 1 |
| 474 | if ((bank_id & 0x040)==0) | |
| 475 | { | |
| 476 | pcw16_set_bank_handlers(machine, bank, PCW16_MEM_FLASH_1); | |
| 477 | } | |
| 478 | else | |
| 479 | { | |
| 480 | pcw16_set_bank_handlers(machine, bank, PCW16_MEM_FLASH_2); | |
| 481 | } | |
| 482 | } | |
| 483 | } | |
| 484 | else | |
| 485 | { | |
| 486 | pcw16_set_bank_handlers(machine, bank, PCW16_MEM_DRAM); | |
| 487 | } | |
| 474 | if ((bank_id & 0x040)==0) | |
| 475 | { | |
| 476 | pcw16_set_bank_handlers(machine, bank, PCW16_MEM_FLASH_1); | |
| 477 | } | |
| 478 | else | |
| 479 | { | |
| 480 | pcw16_set_bank_handlers(machine, bank, PCW16_MEM_FLASH_2); | |
| 481 | } | |
| 482 | } | |
| 483 | } | |
| 484 | else | |
| 485 | { | |
| 486 | pcw16_set_bank_handlers(machine, bank, PCW16_MEM_DRAM); | |
| 487 | } | |
| 488 | 488 | } |
| 489 | 489 | */ |
| 490 | 490 | |
| 491 | 491 | /* update memory h/w */ |
| 492 | 492 | static void pcw16_update_memory(running_machine &machine) |
| 493 | 493 | { |
| 494 | // pcw16_update_bank(machine, 0); | |
| 495 | // pcw16_update_bank(machine, 1); | |
| 496 | // pcw16_update_bank(machine, 2); | |
| 497 | // pcw16_update_bank(machine, 3); | |
| 494 | // pcw16_update_bank(machine, 0); | |
| 495 | // pcw16_update_bank(machine, 1); | |
| 496 | // pcw16_update_bank(machine, 2); | |
| 497 | // pcw16_update_bank(machine, 3); | |
| 498 | 498 | |
| 499 | 499 | } |
| 500 | 500 | |
| r15975 | r15976 | |
| 1406 | 1406 | pc_fdc_set_tc_state(machine, 0); |
| 1407 | 1407 | /* select first rom page */ |
| 1408 | 1408 | state->m_banks[0] = 0; |
| 1409 | // | |
| 1409 | // pcw16_update_memory(machine); | |
| 1410 | 1410 | |
| 1411 | 1411 | /* temp rtc setup */ |
| 1412 | 1412 | state->m_rtc_seconds = 0; |
| r15975 | r15976 | |
|---|---|---|
| 693 | 693 | |
| 694 | 694 | // "GPO" aka vt125 "mono board" roms and proms |
| 695 | 695 | ROM_REGION(0x10000, "monocpu", ROMREGION_ERASEFF) // roms for the 8085 subcpu |
| 696 | ROM_LOAD( "23-043e4-00.e22", 0x0000, 0x2000, NO_DUMP) // 2364/MK36xxx mask rom | |
| 696 | ROM_LOAD( "23-043e4-00.e22", 0x0000, 0x2000, NO_DUMP) // 2364/MK36xxx mask rom | |
| 697 | 697 | ROM_LOAD( "23-043e4-00.e23", 0x2000, 0x2000, NO_DUMP) // 2364/MK36xxx mask rom |
| 698 | 698 | ROM_LOAD( "23-045e4-00.e24", 0x4000, 0x2000, NO_DUMP) // 2364/MK36xxx mask rom |
| 699 | 699 | // E25 socket is empty |
| r15975 | r15976 | |
|---|---|---|
| 1080 | 1080 | |
| 1081 | 1081 | DRIVER_INIT_MEMBER(apollo_state,dn3500) |
| 1082 | 1082 | { |
| 1083 | // | |
| 1083 | // MLOG1(("driver_init_dn3500")); | |
| 1084 | 1084 | |
| 1085 | 1085 | device_set_irq_callback(machine().device(MAINCPU), apollo_irq_acknowledge); |
| 1086 | 1086 | |
| r15975 | r15976 | |
| 1099 | 1099 | DRIVER_INIT_MEMBER(apollo_state,dsp3500) |
| 1100 | 1100 | { |
| 1101 | 1101 | DRIVER_INIT_CALL( dn3500 ); |
| 1102 | // | |
| 1102 | // MLOG1(("driver_init_dsp3500")); | |
| 1103 | 1103 | node_type = NODE_TYPE_DSP3500; |
| 1104 | 1104 | dsp_terminal = machine().device(TERMINAL_TAG); |
| 1105 | 1105 | } |
| r15975 | r15976 | |
| 1107 | 1107 | DRIVER_INIT_MEMBER(apollo_state,dn3000) |
| 1108 | 1108 | { |
| 1109 | 1109 | DRIVER_INIT_CALL( dn3500 ); |
| 1110 | // | |
| 1110 | // MLOG1(("driver_init_dn3000")); | |
| 1111 | 1111 | |
| 1112 | 1112 | ram_base_address = DN3000_RAM_BASE; |
| 1113 | 1113 | ram_end_address = DN3000_RAM_END; |
| r15975 | r15976 | |
| 1119 | 1119 | DRIVER_INIT_MEMBER(apollo_state,dsp3000) |
| 1120 | 1120 | { |
| 1121 | 1121 | DRIVER_INIT_CALL( dn3000 ); |
| 1122 | // | |
| 1122 | // MLOG1(("driver_init_dsp3000")); | |
| 1123 | 1123 | node_type = NODE_TYPE_DSP3000; |
| 1124 | 1124 | dsp_terminal = machine().device(TERMINAL_TAG); |
| 1125 | 1125 | } |
| r15975 | r15976 | |
| 1127 | 1127 | DRIVER_INIT_MEMBER(apollo_state,dn5500) |
| 1128 | 1128 | { |
| 1129 | 1129 | DRIVER_INIT_CALL( dn3500 ); |
| 1130 | // | |
| 1130 | // MLOG1(("driver_init_dn5500")); | |
| 1131 | 1131 | |
| 1132 | 1132 | ram_base_address = DN5500_RAM_BASE; |
| 1133 | 1133 | ram_end_address = DN5500_RAM_END; |
| r15975 | r15976 | |
| 1139 | 1139 | DRIVER_INIT_MEMBER(apollo_state,dsp5500) |
| 1140 | 1140 | { |
| 1141 | 1141 | DRIVER_INIT_CALL( dn5500 ); |
| 1142 | // | |
| 1142 | // MLOG1(("driver_init_dsp5500")); | |
| 1143 | 1143 | node_type = NODE_TYPE_DSP5500; |
| 1144 | 1144 | dsp_terminal = machine().device(TERMINAL_TAG); |
| 1145 | 1145 | } |
| r15975 | r15976 | |
|---|---|---|
| 369 | 369 | /* Driver */ |
| 370 | 370 | |
| 371 | 371 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 372 | COMP( 1993, pc2000, 0, 0, pc2000, pc2000, driver_device, | |
| 372 | COMP( 1993, pc2000, 0, 0, pc2000, pc2000, driver_device, |
| r15975 | r15976 | |
|---|---|---|
| 256 | 256 | WRITE_LINE_MEMBER( intb ); |
| 257 | 257 | WRITE_LINE_MEMBER( ext_ready ); |
| 258 | 258 | WRITE_LINE_MEMBER( mapper_ready ); |
| 259 | ||
| 259 | ||
| 260 | 260 | DECLARE_DRIVER_INIT(geneve); |
| 261 | 261 | |
| 262 | 262 | void set_tms9901_INT2_from_v9938(v99x8_device &vdp, int state); |
| r15975 | r15976 | |
|---|---|---|
| 16 | 16 | - waitstates; |
| 17 | 17 | - dipswitches needs to be controlled; |
| 18 | 18 | - below notes states that plain PC-8801 doesn't have a disk CPU, but the BIOS clearly checks the floppy ports. Wrong info? |
| 19 | ||
| 19 | - clean-ups, banking and video in particular (i.e. hook-ups with memory region should go away and device models should be used instead) | |
| 20 | 20 | |
| 21 | 21 | per-game specific TODO: |
| 22 | 22 | - 100yen Soft 8 Revival Special: tight loop with vblank bit, but vblank irq takes too much time to execute its code; |
| r15975 | r15976 | |
| 38 | 38 | - Datenshi Kyouko: gfx garbage on the right edge? |
| 39 | 39 | - Final Crisis: sound stuck with OPNA? |
| 40 | 40 | - Fire Hawk: tries to r/w the opn ports (probably crashed due to floppy?) |
| 41 | ||
| 41 | - Gegege no Kitarou: title screen text/bitmap contrast is pretty ugly (BTANB?); | |
| 42 | 42 | - Grobda: palette is ugly (parent pc8801 only); |
| 43 | - Music Collection Vol. 2 - Final Fantasy Tokushuu: sound irq dies pretty soon | |
| 44 | - N-BASIC: cursor doesn't show up; | |
| 45 | - Star Cruiser: bad kanji data? | |
| 46 | - Star Cruiser: reads at i/o 0x8e? | |
| 43 | - Music Collection Vol. 2 - Final Fantasy Tokushuu: sound irq dies pretty soon | |
| 44 | - N-BASIC: cursor doesn't show up; | |
| 45 | - Star Cruiser: bad kanji data? | |
| 46 | - Star Cruiser: reads at i/o 0x8e? | |
| 47 | 47 | - Wanderers from Ys: user data disk looks screwed? It loads with everything as maximum as per now ... |
| 48 | 48 | - Xevious: game is too fast (parent pc8801 only) |
| 49 | 49 | |
| r15975 | r15976 | |
| 58 | 58 | - Autumn Park (BASIC error) |
| 59 | 59 | - Battle Gorilla |
| 60 | 60 | - Belloncho Shintai Kensa |
| 61 | - Bishoujo Noriko Part I (writes to FDC CPU ROM then expects some strict values, taken from floppy image) | |
| 62 | - Blassty (attempts to read at 0x801b) | |
| 61 | - Bishoujo Noriko Part I (writes to FDC CPU ROM then expects some strict values, taken from floppy image) | |
| 62 | - Blassty (attempts to read at 0x801b) | |
| 63 | 63 | - Bokosuka Wars (polls read ID command) |
| 64 | 64 | - Boukenshatachi |
| 65 | 65 | - Can Can Bunny Superior |
| 66 | 66 | - Carmine |
| 67 | 67 | - Castle Excellent (sets sector 0xf4? Jumps to 0xa100 and it shouldn't) |
| 68 | 68 | - Card Game Pro 8.8k Plus Unit 1 (prints Disk i/o error 135 in vram, not visible for whatever reason) |
| 69 | - Championship Lode Runner (fdc CPU irq doesn't fire anymore) | |
| 70 | - Change Vol. 1 (fdc CPU irq doesn't fire anymore) | |
| 71 | - Chikyuu Boueigun (disk i/o error during "ESDF SYSTEM LOADING") | |
| 72 | - Chikyuu Senshi Rayieza (fdc CPU crashes) | |
| 73 | - Choplifter | |
| 74 | - Columns (code at 0x28c8, copy protection) | |
| 75 | - Corridor ("THIS SYSTEM NOT KOEI SYSTEM" printed on screen) | |
| 76 | - Craze (returns to basic after logo pops up, tries to self-modify program data via the window offset?) | |
| 77 | - Crimson | |
| 78 | - Crimson 3 | |
| 69 | - Championship Lode Runner (fdc CPU irq doesn't fire anymore) | |
| 70 | - Change Vol. 1 (fdc CPU irq doesn't fire anymore) | |
| 71 | - Chikyuu Boueigun (disk i/o error during "ESDF SYSTEM LOADING") | |
| 72 | - Chikyuu Senshi Rayieza (fdc CPU crashes) | |
| 73 | - Choplifter | |
| 74 | - Columns (code at 0x28c8, copy protection) | |
| 75 | - Corridor ("THIS SYSTEM NOT KOEI SYSTEM" printed on screen) | |
| 76 | - Craze (returns to basic after logo pops up, tries to self-modify program data via the window offset?) | |
| 77 | - Crimson | |
| 78 | - Crimson 3 | |
| 79 | 79 | - Cuby Panic (copy protection routine at 0x911A) |
| 80 | 80 | - Daidasso (prints "BOOT dekimasen" on screen, can't boot) |
| 81 | 81 | - Daikoukai Jidai |
| 82 | - Databox (app) | |
| 83 | - Day Dream (hangs at the CrossMedia Soft logo) | |
| 84 | - Demons Ring | |
| 85 | - Dennou Tsuushin | |
| 82 | - Databox (app) | |
| 83 | - Day Dream (hangs at the CrossMedia Soft logo) | |
| 84 | - Demons Ring | |
| 85 | - Dennou Tsuushin | |
| 86 | 86 | - Door Door MK-2 (sets up TC in the middle of execution phase read then wants status bit 6 to be low PC=0x7050 of fdc cpu) |
| 87 | - Dragon Slayer - The Legend of Heroes 2 | |
| 88 | - Dungeon Buster | |
| 89 | - El Dorado Denki | |
| 90 | - Elevator Action | |
| 91 | - Emerald Densetsu | |
| 87 | - Dragon Slayer - The Legend of Heroes 2 | |
| 88 | - Dungeon Buster | |
| 89 | - El Dorado Denki | |
| 90 | - Elevator Action | |
| 91 | - Emerald Densetsu | |
| 92 | 92 | - Emerald Dragon (it seems to miss a timer) |
| 93 | 93 | - Emmy |
| 94 | - Explosion (fails to load ADPCM data?) | |
| 95 | - F-15 Strike Eagle | |
| 96 | - F2 Grand Prix ("Boot dekimasen") | |
| 97 | - Fangs - The Saga of Wolf Blood (Crashes at the first random battle) | |
| 98 | - Fantasian | |
| 99 | - Final Zone | |
| 100 | - Final Zone (demo) | |
| 101 | - Fruit Panic | |
| 102 | - FSD Sample Ongaku Shuu Vol. 1-7 | |
| 103 | - Gaia no Kiba | |
| 104 | - Gaiflame | |
| 105 | - Gambler Jiko Chuushin ha | |
| 106 | - Gambler Jiko Chuushin ha 2 | |
| 107 | - Gambler Jiko Chuushin ha 3 | |
| 108 | - Gambler Jiko Chuushin ha 3 (demo) | |
| 109 | - Gambler Jiko Chuushin ha Mahjong Puzzle Collection | |
| 110 | - Gambler Jiko Chuushin ha Mahjong Puzzle Collection (demo) | |
| 111 | - Game Music Library | |
| 112 | - Gaudi - Barcelona no Kaze (bad Wolfteam logo then black screen) | |
| 113 | - GC-clusterz Music Disk Vol. 1-7 | |
| 114 | - Genji | |
| 115 | - Gokuraku Tengoku | |
| 116 | - Grodius 3 (might not be floppy) | |
| 117 | - Gun Ship (at gameplay) | |
| 118 | (Hacker) | |
| 94 | - Explosion (fails to load ADPCM data?) | |
| 95 | - F-15 Strike Eagle | |
| 96 | - F2 Grand Prix ("Boot dekimasen") | |
| 97 | - Fangs - The Saga of Wolf Blood (Crashes at the first random battle) | |
| 98 | - Fantasian | |
| 99 | - Final Zone | |
| 100 | - Final Zone (demo) | |
| 101 | - Fruit Panic | |
| 102 | - FSD Sample Ongaku Shuu Vol. 1-7 | |
| 103 | - Gaia no Kiba | |
| 104 | - Gaiflame | |
| 105 | - Gambler Jiko Chuushin ha | |
| 106 | - Gambler Jiko Chuushin ha 2 | |
| 107 | - Gambler Jiko Chuushin ha 3 | |
| 108 | - Gambler Jiko Chuushin ha 3 (demo) | |
| 109 | - Gambler Jiko Chuushin ha Mahjong Puzzle Collection | |
| 110 | - Gambler Jiko Chuushin ha Mahjong Puzzle Collection (demo) | |
| 111 | - Game Music Library | |
| 112 | - Gaudi - Barcelona no Kaze (bad Wolfteam logo then black screen) | |
| 113 | - GC-clusterz Music Disk Vol. 1-7 | |
| 114 | - Genji | |
| 115 | - Gokuraku Tengoku | |
| 116 | - Grodius 3 (might not be floppy) | |
| 117 | - Gun Ship (at gameplay) | |
| 118 | (Hacker) | |
| 119 | 119 | |
| 120 | 120 | - Harakiri |
| 121 | 121 | - Kaseijin (app) (code snippet is empty at some point) |
| r15975 | r15976 | |
| 130 | 130 | - The Return of Ishtar |
| 131 | 131 | - Tobira wo Akete (random crashes in parent pc8801 only) |
| 132 | 132 | |
| 133 | list of games that doesn't like i8214_irq_level == 5 in sound irq | |
| 134 | - 100yen Disk 2 / Jumper 2: Sound BGM dies pretty soon; | |
| 135 | - Alpha (demo): stuck note in title screen, doesn't seem to go further; | |
| 133 | list of games that doesn't like i8214_irq_level == 5 in sound irq | |
| 134 | - 100yen Disk 2 / Jumper 2: Sound BGM dies pretty soon; | |
| 135 | - Alpha (demo): stuck note in title screen, doesn't seem to go further; | |
| 136 | 136 | - Ayumi: black screen after new game / load game screen; |
| 137 | 137 | - Brunette: No sound, eventually hangs at gameplay; |
| 138 | 138 | - Digital Devil Story Megami Tensei: hangs at gameplay (sound irq issue) |
| r15975 | r15976 | |
| 147 | 147 | games that needs to HAVE write-protect floppies (BTANBs): |
| 148 | 148 | - 100 Yen Disk 7: (doesn't boot in V2 mode) |
| 149 | 149 | |
| 150 | other BTANBs | |
| 151 | - Attack Hirokochan: returns to BASIC after an initial animation, needs BASIC V1: | |
| 150 | other BTANBs | |
| 151 | - Attack Hirokochan: returns to BASIC after an initial animation, needs BASIC V1: | |
| 152 | 152 | - Jark (needs PC-8801MC) |
| 153 | ||
| 153 | - Kuronekosou Souzoku Satsujin Jiken: "Illegal function call in 105", needs BASIC V1; | |
| 154 | 154 | |
| 155 | 155 | Notes: |
| 156 | 156 | - BIOS disk ROM defines what kind of floppies you could load: |
| r15975 | r15976 | |
| 159 | 159 | - Later models have palette bugs with some games (Alphos, Tokyo Nampa Street). |
| 160 | 160 | This is because you have to set up the V1 / V2 DIP-SW to V1 for those games (it's the BIOS that sets up to analog and never changes back otherwise). |
| 161 | 161 | - Password for "AY-1: Fortress Solomon" is "123" then press enter, any other key pressed makes it to fail the check (you must soft reset the machine) |
| 162 | - Pressing Home in Dennou Gakuen during gameplay makes it to show a fake DASM screen. That's supposed to be a panic button and it's also in the | |
| 163 | sequels (with different screens); | |
| 162 | - Pressing Home in Dennou Gakuen during gameplay makes it to show a fake DASM screen. That's supposed to be a panic button and it's also in the | |
| 163 | sequels (with different screens); | |
| 164 | 164 | |
| 165 | 165 | Bankswitch Notes: |
| 166 | 166 | - 0x31 - graphic banking |
| r15975 | r15976 | |
| 821 | 821 | { |
| 822 | 822 | bitmap.fill(screen.machine().pens[0], cliprect); |
| 823 | 823 | |
| 824 | // | |
| 824 | // popmessage("%04x %04x %02x",m_dma_address[2],m_dma_counter[2],m_dmac_mode); | |
| 825 | 825 | |
| 826 | 826 | if(m_gfx_ctrl & 8) |
| 827 | 827 | { |
| r15975 | r15976 | |
| 1235 | 1235 | xsize = screen_width + hretrace; |
| 1236 | 1236 | ysize = screen_height * lines_per_char + vretrace * lines_per_char; |
| 1237 | 1237 | |
| 1238 | // | |
| 1238 | // popmessage("H %d V %d (%d x %d) HR %d VR %d (%d %d)\n",xvis,yvis,screen_height,lines_per_char,hretrace,vretrace, xsize,ysize); | |
| 1239 | 1239 | |
| 1240 | 1240 | visarea.set(0, xvis - 1, 0, yvis - 1); |
| 1241 | 1241 | if(pc8801_pixel_clock()) |
| r15975 | r15976 | |
| 1297 | 1297 | else |
| 1298 | 1298 | m_i8214_irq_level = data & 7; |
| 1299 | 1299 | |
| 1300 | // | |
| 1300 | // IRQ_LOG(("%02x LV\n",m_i8214_irq_level)); | |
| 1301 | 1301 | } |
| 1302 | 1302 | |
| 1303 | 1303 | |
| r15975 | r15976 | |
| 1315 | 1315 | if(m_timer_irq_latch == 0 && m_vrtc_irq_latch == 0 && m_sound_irq_latch == 0) |
| 1316 | 1316 | cputag_set_input_line(machine(),"maincpu",0,CLEAR_LINE); |
| 1317 | 1317 | |
| 1318 | // | |
| 1318 | // IRQ_LOG(("%02x MASK (%02x %02x)\n",data,m_timer_irq_latch,m_vrtc_irq_latch)); | |
| 1319 | 1319 | |
| 1320 | 1320 | //if(data & 4) |
| 1321 | 1321 | // printf("IRQ mask %02x\n",data); |
| r15975 | r15976 | |
| 1346 | 1346 | WRITE8_MEMBER(pc8801_state::pc8801_misc_ctrl_w) |
| 1347 | 1347 | { |
| 1348 | 1348 | /* |
| 1349 | x--- ---- sound irq mask, active low | |
| 1350 | --x- ---- analog (1) / digital (0) palette select | |
| 1351 | */ | |
| 1349 | x--- ---- sound irq mask, active low | |
| 1350 | --x- ---- analog (1) / digital (0) palette select | |
| 1351 | */ | |
| 1352 | 1352 | |
| 1353 | 1353 | m_misc_ctrl = data; |
| 1354 | 1354 | |
| r15975 | r15976 | |
| 1812 | 1812 | static READ8_DEVICE_HANDLER( cpu_8255_c_r ) |
| 1813 | 1813 | { |
| 1814 | 1814 | pc8801_state *state = device->machine().driver_data<pc8801_state>(); |
| 1815 | // | |
| 1815 | // device->machine().scheduler().synchronize(); // force resync | |
| 1816 | 1816 | |
| 1817 | 1817 | return state->m_i8255_1_pc >> 4; |
| 1818 | 1818 | } |
| r15975 | r15976 | |
| 1820 | 1820 | static WRITE8_DEVICE_HANDLER( cpu_8255_c_w ) |
| 1821 | 1821 | { |
| 1822 | 1822 | pc8801_state *state = device->machine().driver_data<pc8801_state>(); |
| 1823 | // | |
| 1823 | // device->machine().scheduler().synchronize(); // force resync | |
| 1824 | 1824 | |
| 1825 | 1825 | state->m_i8255_0_pc = data; |
| 1826 | 1826 | } |
| r15975 | r15976 | |
| 1839 | 1839 | static READ8_DEVICE_HANDLER( fdc_8255_c_r ) |
| 1840 | 1840 | { |
| 1841 | 1841 | pc8801_state *state = device->machine().driver_data<pc8801_state>(); |
| 1842 | // | |
| 1842 | // device->machine().scheduler().synchronize(); // force resync | |
| 1843 | 1843 | |
| 1844 | 1844 | return state->m_i8255_0_pc >> 4; |
| 1845 | 1845 | } |
| r15975 | r15976 | |
| 1847 | 1847 | static WRITE8_DEVICE_HANDLER( fdc_8255_c_w ) |
| 1848 | 1848 | { |
| 1849 | 1849 | pc8801_state *state = device->machine().driver_data<pc8801_state>(); |
| 1850 | // | |
| 1850 | // device->machine().scheduler().synchronize(); // force resync | |
| 1851 | 1851 | |
| 1852 | 1852 | state->m_i8255_1_pc = data; |
| 1853 | 1853 | } |
| r15975 | r15976 | |
| 2119 | 2119 | PORT_DIPSETTING( 0x80, "N88-BASIC (V1L)" ) |
| 2120 | 2120 | PORT_DIPSETTING( 0xc0, "N88-BASIC (V1H)" ) |
| 2121 | 2121 | PORT_DIPSETTING( 0x40, "N88-BASIC (V2)" ) |
| 2122 | // | |
| 2122 | // PORT_DIPSETTING( 0x00, "N88-BASIC (V2)" ) | |
| 2123 | 2123 | |
| 2124 | 2124 | PORT_START("CTRL") |
| 2125 | 2125 | PORT_DIPNAME( 0x02, 0x02, "Monitor Type" ) |
| r15975 | r15976 | |
| 2376 | 2376 | { |
| 2377 | 2377 | pc8801_state *state = device->machine().driver_data<pc8801_state>(); |
| 2378 | 2378 | |
| 2379 | // | |
| 2379 | // printf("%02x %02x %02x\n",state->m_sound_irq_mask,state->m_i8214_irq_level,irq); | |
| 2380 | 2380 | /* TODO: correct i8214 irq level? */ |
| 2381 | 2381 | if(irq) |
| 2382 | 2382 | { |
| r15975 | r15976 | |
| 2441 | 2441 | state->m_layer_mask = 0x00; |
| 2442 | 2442 | state->m_vram_sel = 3; |
| 2443 | 2443 | |
| 2444 | // | |
| 2444 | // pc8801_dynamic_res_change(machine); | |
| 2445 | 2445 | |
| 2446 | 2446 | state->m_fdc_irq_opcode = 0; //TODO: copied from PC-88VA, could be wrong here ... should be 0x7f ld a,a in the latter case |
| 2447 | 2447 | state->m_mouse.phase = 0; |
| r15975 | r15976 | |
| 2576 | 2576 | shift = (state->m_mouse.phase & 1) ? 0 : 4; |
| 2577 | 2577 | res = (state->m_mouse.phase & 2) ? state->m_mouse.y : state->m_mouse.x; |
| 2578 | 2578 | |
| 2579 | // | |
| 2579 | // printf("%d\n",state->m_mouse.phase); | |
| 2580 | 2580 | |
| 2581 | 2581 | return ((res >> shift) & 0x0f) | 0xf0; |
| 2582 | 2582 | } |
| r15975 | r15976 | |
| 2699 | 2699 | MCFG_PALETTE_LENGTH(0x10) |
| 2700 | 2700 | MCFG_PALETTE_INIT( pc8801 ) |
| 2701 | 2701 | |
| 2702 | // | |
| 2702 | // MCFG_VIDEO_START(pc8801) | |
| 2703 | 2703 | |
| 2704 | 2704 | /* sound hardware */ |
| 2705 | 2705 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| r15975 | r15976 | |
|---|---|---|
| 147 | 147 | /* Driver */ |
| 148 | 148 | |
| 149 | 149 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 150 | COMP( 1975, al8800bt, 0, 0, altair, altair, driver_device, | |
| 150 | COMP( 1975, al8800bt, 0, 0, altair, altair, driver_device, | |
| 151 | 151 |
| r15975 | r15976 | |
|---|---|---|
| 251 | 251 | { |
| 252 | 252 | vk100_state *state = machine.driver_data<vk100_state>(); |
| 253 | 253 | UINT8 thisNyb = vram_read(machine); // read in the nybble |
| 254 | // pattern rom addressing is a complex mess. see the pattern rom def later in this file. | |
| 254 | // pattern rom addressing is a complex mess. see the pattern rom def later in this file. | |
| 255 | 255 | UINT8 newNyb = state->m_pattern[((state->m_vgPAT&state->m_vgPAT_Mask)?0x200:0)|((state->m_vgWOPS&7)<<6)|((state->m_vgX&3)<<4)|thisNyb]; // calculate new nybble based on pattern rom |
| 256 | 256 | // finally write the block back to ram depending on the VG_MODE (sort of a hack until we get the vector and synd and dir roms all hooked up) |
| 257 | 257 | switch (state->m_VG_MODE) |
| r15975 | r15976 | |
| 571 | 571 | * write command -> 0x05 (normal, normal, /RTS is 1, normal, normal, recieve ON, /DTR is 0, transmit off) |
| 572 | 572 | * read SYSTAT B (and xor with 0xe), expect d7 to be SET or jump to error |
| 573 | 573 | * after this it does something and waits for an rxrdy interrupt |
| 574 | ||
| 574 | ||
| 575 | 575 | shows the results of: |
| 576 | 576 | * ACTS (/CTS) ? ? ? ? ? ? ? |
| 577 | 577 | * d7 d6 d5 d4 d3 d2 d1 d0 |
| r15975 | r15976 | |
| 1056 | 1056 | * Y11 |
| 1057 | 1057 | * X8 (aka PX8) |
| 1058 | 1058 | * X9 (aka PX9) |
| 1059 | * ERASE L | |
| 1059 | * ERASE L | |
| 1060 | 1060 | * X'3 |
| 1061 | 1061 | * X'2 |
| 1062 | 1062 | * and the outputs are: |
| r15975 | r15976 | |
| 1067 | 1067 | only has 3 banks (but 2 planes of 3 banks), I (LN) assume there |
| 1068 | 1068 | are four wr banks on the v100, one per nybble, and the X'3 and |
| 1069 | 1069 | X'2 inputs lend credence to this. |
| 1070 | * | |
| 1070 | * | |
| 1071 | 1071 | */ |
| 1072 | 1072 | ROM_LOAD( "wb8151_573a2.mmi6301.pr3.ic44", 0x0000, 0x0100, CRC(75885a9f) SHA1(c721dad6a69c291dd86dad102ed3a8ddd620ecc4)) // label verified from nigwil's and andy's board |
| 1073 | 1073 | // WARNING: it is possible that the first two bytes of this prom are bad! |
| r15975 | r15976 | |
|---|---|---|
| 106 | 106 | UINT32 es5510_dadr_latch; |
| 107 | 107 | UINT32 es5510_gpr_latch; |
| 108 | 108 | UINT8 es5510_ram_sel; |
| 109 | public: | |
| 109 | public: | |
| 110 | 110 | DECLARE_DRIVER_INIT(eps); |
| 111 | 111 | DECLARE_DRIVER_INIT(common); |
| 112 | 112 | DECLARE_DRIVER_INIT(sq1); |
| r15975 | r15976 | |
|---|---|---|
| 1 | 1 | /*************************************************************************** |
| 2 | ||
| 2 | ||
| 3 | 3 | Elektronika MS-0515 |
| 4 | 4 | |
| 5 | 5 | 06/08/2012 Skeleton driver. |
| r15975 | r15976 | |
| 23 | 23 | { } |
| 24 | 24 | |
| 25 | 25 | required_device<cpu_device> m_maincpu; |
| 26 | ||
| 27 | DECLARE_WRITE16_MEMBER(ms0515_bank_w); | |
| 26 | ||
| 27 | DECLARE_WRITE16_MEMBER(ms0515_bank_w); | |
| 28 | 28 | DECLARE_WRITE8_MEMBER(ms0515_sys_w); |
| 29 | ||
| 29 | ||
| 30 | 30 | virtual void machine_reset(); |
| 31 | ||
| 31 | ||
| 32 | 32 | UINT8 *m_video_ram; |
| 33 | 33 | UINT8 m_sysreg; |
| 34 | 34 | int m_blink; |
| r15975 | r15976 | |
| 44 | 44 | AM_RANGE(0120000, 0137777) AM_RAMBANK("bank5") // RAM |
| 45 | 45 | AM_RANGE(0140000, 0157777) AM_RAMBANK("bank6") // RAM |
| 46 | 46 | |
| 47 | AM_RANGE(0160000, 0177377) AM_ROM | |
| 47 | AM_RANGE(0160000, 0177377) AM_ROM | |
| 48 | 48 | |
| 49 | 49 | AM_RANGE(0177400, 0177437) AM_WRITE(ms0515_bank_w) // Register for RAM expansion |
| 50 | ||
| 50 | ||
| 51 | 51 | //AM_RANGE(0177440, 0177441) // read data |
| 52 | 52 | //AM_RANGE(0177460, 0177461) // write data Elektronika MS-7004 Keyboard |
| 53 | 53 | //AM_RANGE(0177442, 0177443) // read |
| 54 | //AM_RANGE(0177462, 0177463) // write | |
| 55 | ||
| 54 | //AM_RANGE(0177462, 0177463) // write | |
| 55 | ||
| 56 | 56 | //AM_RANGE(0177500, 0177501) |
| 57 | 57 | //AM_RANGE(0177502, 0177503) |
| 58 | 58 | //AM_RANGE(0177504, 0177505) // i8253 |
| 59 | 59 | //AM_RANGE(0177506, 0177507) |
| 60 | ||
| 60 | ||
| 61 | 61 | //AM_RANGE(0177540, 0177541) |
| 62 | 62 | //AM_RANGE(0177542, 0177543) |
| 63 | 63 | //AM_RANGE(0177544, 0177545) // i8255 for MS-7007 Keyboard |
| 64 | 64 | //AM_RANGE(0177546, 0177547) |
| 65 | ||
| 66 | AM_RANGE(0177600, 0177607) AM_DEVREADWRITE8("ppi8255_1", i8255_device, read, write, 0x00ff) | |
| 67 | ||
| 65 | ||
| 66 | AM_RANGE(0177600, 0177607) AM_DEVREADWRITE8("ppi8255_1", i8255_device, read, write, 0x00ff) | |
| 67 | ||
| 68 | 68 | AM_RANGE(0177640, 0177641) AM_DEVREADWRITE8_LEGACY("vg93", wd17xx_status_r, wd17xx_command_w,0x00ff) |
| 69 | 69 | AM_RANGE(0177642, 0177643) AM_DEVREADWRITE8_LEGACY("vg93", wd17xx_track_r, wd17xx_track_w,0x00ff) |
| 70 | 70 | AM_RANGE(0177644, 0177645) AM_DEVREADWRITE8_LEGACY("vg93", wd17xx_sector_r, wd17xx_sector_w,0x00ff) |
| 71 | AM_RANGE(0177646, 0177647) AM_DEVREADWRITE8_LEGACY("vg93", wd17xx_data_r, wd17xx_data_w,0x00ff) | |
| 72 | ||
| 71 | AM_RANGE(0177646, 0177647) AM_DEVREADWRITE8_LEGACY("vg93", wd17xx_data_r, wd17xx_data_w,0x00ff) | |
| 72 | ||
| 73 | 73 | //AM_RANGE(0177700, 0177701) // read data |
| 74 | 74 | //AM_RANGE(0177720, 0177721) // write data // protocol S2 |
| 75 | 75 | //AM_RANGE(0177702, 0177703) // read status |
| 76 | //AM_RANGE(0177722, 0177723) // write control | |
| 77 | ||
| 76 | //AM_RANGE(0177722, 0177723) // write control | |
| 77 | ||
| 78 | 78 | //AM_RANGE(0177770, 0177771) // read/write |
| 79 | 79 | ADDRESS_MAP_END |
| 80 | 80 | |
| r15975 | r15976 | |
| 99 | 99 | membank("bank2")->set_base(ram + 0000000 + 0340000); |
| 100 | 100 | membank("bank3")->set_base(ram + 0020000 + 0340000); |
| 101 | 101 | break; |
| 102 | case 2: | |
| 102 | case 2: | |
| 103 | 103 | case 3: // 100000 - 137777 |
| 104 | 104 | membank("bank4")->set_base(ram + 0000000 + 0340000); |
| 105 | 105 | membank("bank5")->set_base(ram + 0020000 + 0340000); |
| 106 | 106 | break; |
| 107 | 107 | } |
| 108 | } | |
| 108 | } | |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | WRITE8_MEMBER(ms0515_state::ms0515_sys_w) |
| r15975 | r15976 | |
| 117 | 117 | { |
| 118 | 118 | UINT8 *ram = machine().device<ram_device>(RAM_TAG)->pointer(); |
| 119 | 119 | ms0515_bank_w(*machine().memory().first_space(),0,0); |
| 120 | ||
| 120 | ||
| 121 | 121 | m_video_ram = ram + 0000000 + 0340000; |
| 122 | 122 | m_blink = 0; |
| 123 | ||
| 124 | floppy_mon_w(machine().device(FLOPPY_0), 0); // turn it on | |
| 123 | ||
| 124 | floppy_mon_w(machine().device(FLOPPY_0), 0); // turn it on | |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /* Input ports */ |
| r15975 | r15976 | |
| 166 | 166 | |
| 167 | 167 | static SCREEN_UPDATE_IND16( ms0515 ) |
| 168 | 168 | { |
| 169 | ms0515_state *state = screen.machine().driver_data<ms0515_state>(); | |
| 170 | int y, x, b; | |
| 169 | ms0515_state *state = screen.machine().driver_data<ms0515_state>(); | |
| 170 | int y, x, b; | |
| 171 | 171 | int addr = 0; |
| 172 | 172 | if (BIT(state->m_sysreg,3)) { |
| 173 | 173 | for (y = 0; y < 200; y++) |
| r15975 | r15976 | |
| 190 | 190 | int horpos = 0; |
| 191 | 191 | for (x = 0; x < 40; x++) |
| 192 | 192 | { |
| 193 | UINT8 code = state->m_video_ram[addr++]; | |
| 194 | UINT8 attr = state->m_video_ram[addr++]; | |
| 193 | UINT8 code = state->m_video_ram[addr++]; | |
| 194 | UINT8 attr = state->m_video_ram[addr++]; | |
| 195 | 195 | UINT8 fg = (attr & 7) + BIT(attr,6)*8; |
| 196 | 196 | UINT8 bg = ((attr >> 3) & 7) + BIT(attr,6)*8; |
| 197 | 197 | if (BIT(attr,7) && (state->m_blink == 20)) { |
| r15975 | r15976 | |
| 222 | 222 | palette_set_color(machine, 5, MAKE_RGB(0, 127, 127)); |
| 223 | 223 | palette_set_color(machine, 6, MAKE_RGB(127, 127, 0)); |
| 224 | 224 | palette_set_color(machine, 7, MAKE_RGB(127, 127, 127)); |
| 225 | ||
| 225 | ||
| 226 | 226 | palette_set_color(machine, 8, MAKE_RGB(127, 127, 127)); |
| 227 | 227 | palette_set_color(machine, 9, MAKE_RGB(127, 127, 255)); |
| 228 | 228 | palette_set_color(machine, 10, MAKE_RGB(255, 127, 127)); |
| r15975 | r15976 | |
| 230 | 230 | palette_set_color(machine, 12, MAKE_RGB(127, 255, 127)); |
| 231 | 231 | palette_set_color(machine, 13, MAKE_RGB(127, 255, 255)); |
| 232 | 232 | palette_set_color(machine, 14, MAKE_RGB(255, 255, 127)); |
| 233 | palette_set_color(machine, 15, MAKE_RGB(255, 255, 255)); | |
| 233 | palette_set_color(machine, 15, MAKE_RGB(255, 255, 255)); | |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | static WRITE8_DEVICE_HANDLER(ms0515_portc_w) |
| r15975 | r15976 | |
| 253 | 253 | MCFG_CPU_ADD("maincpu",T11, XTAL_4MHz) // Need proper CPU here |
| 254 | 254 | MCFG_CPU_CONFIG(ms0515_data) |
| 255 | 255 | MCFG_CPU_PROGRAM_MAP(ms0515_mem) |
| 256 | ||
| 256 | ||
| 257 | 257 | MCFG_FD1793_ADD( "vg93", ms0515_wd17xx_interface ) |
| 258 | ||
| 258 | ||
| 259 | 259 | MCFG_LEGACY_FLOPPY_DRIVE_ADD(FLOPPY_0, ms0515_floppy_interface) |
| 260 | ||
| 260 | ||
| 261 | 261 | /* video hardware */ |
| 262 | 262 | MCFG_SCREEN_ADD("screen", RASTER) |
| 263 | 263 | MCFG_SCREEN_REFRESH_RATE(50) |
| r15975 | r15976 | |
| 265 | 265 | MCFG_SCREEN_SIZE(640, 200) |
| 266 | 266 | MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 200-1) |
| 267 | 267 | MCFG_SCREEN_UPDATE_STATIC(ms0515) |
| 268 | ||
| 268 | ||
| 269 | 269 | MCFG_PALETTE_LENGTH(16) |
| 270 | 270 | MCFG_PALETTE_INIT(ms0515) |
| 271 | ||
| 271 | ||
| 272 | 272 | MCFG_I8255_ADD( "ppi8255_1", ms0515_ppi8255_interface_1 ) |
| 273 | 273 | //MCFG_I8255_ADD( "ppi8255_2", ms0515_ppi8255_interface_2 ) |
| 274 | 274 | |
| r15975 | r15976 | |
| 286 | 286 | |
| 287 | 287 | /* Driver */ |
| 288 | 288 | |
| 289 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ | |
| 290 | COMP( ????, ms0515, 0, 0, ms0515, ms0515, driver_device, 0, "Elektronika", "MS-0515", GAME_NOT_WORKING | GAME_NO_SOUND) | |
| 289 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ | |
| 290 | COMP( ????, ms0515, 0, 0, ms0515, ms0515, driver_device, 0, "Elektronika", "MS-0515", GAME_NOT_WORKING | GAME_NO_SOUND) | |
| 291 | 291 |
| r15975 | r15976 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | VAX-11 |
| 4 | 4 | |
| 5 | VAX-11/785 | |
| 6 | ------- | |
| 7 | M7459 TRS, TERMINATOR & SILO | |
| 8 | M7460 KA785, SBL,CUP SBI LOW BITS | |
| 9 | M7461 KA785, SBH,SBI | |
| 10 | M7462 KA785, CAM, CACHE ADDRESS MATRIX | |
| 11 | M7463 KA785, CDM, CACHE DATA MATRIX | |
| 12 | M7464 KA785, TBM, CPU TRANSLATION BUFFER | |
| 13 | M7465 KA785, IDP, CPU INSTRUCTION DATA | |
| 14 | M7466 KA785, IRC, CPU INSTRUCTION DECODE | |
| 15 | M7467 KA785, DPB, CPU DATA PATH B | |
| 16 | M7468 KA785, DEP, CPU DATA PATH E | |
| 17 | M7469 KA785, DDP, CPU DATA PATH D | |
| 18 | M7470 KA785, DCP, CPU DATA PATH C | |
| 19 | M7471 KA785, DAP, CPU DATA PATH A | |
| 20 | M7472 KA785, CEW (CONDITION CODES, EXCEP | |
| 21 | M7473 KA785, ICL (INTERRUPT CONTROL, LOW | |
| 22 | M7474 KA785, CLK (CPU CLOCK) | |
| 23 | M7475 KA785, JCS, JOINT CONTROL STORE | |
| 24 | M7476 KA785, USC, MICRO SEQUENCER CONTROL | |
| 25 | M7477 KA785, CIB, CPU CONSOLE INTERFACE | |
| 5 | VAX-11/785 | |
| 6 | ------- | |
| 7 | M7459 TRS, TERMINATOR & SILO | |
| 8 | M7460 KA785, SBL,CUP SBI LOW BITS | |
| 9 | M7461 KA785, SBH,SBI | |
| 10 | M7462 KA785, CAM, CACHE ADDRESS MATRIX | |
| 11 | M7463 KA785, CDM, CACHE DATA MATRIX | |
| 12 | M7464 KA785, TBM, CPU TRANSLATION BUFFER | |
| 13 | M7465 KA785, IDP, CPU INSTRUCTION DATA | |
| 14 | M7466 KA785, IRC, CPU INSTRUCTION DECODE | |
| 15 | M7467 KA785, DPB, CPU DATA PATH B | |
| 16 | M7468 KA785, DEP, CPU DATA PATH E | |
| 17 | M7469 KA785, DDP, CPU DATA PATH D | |
| 18 | M7470 KA785, DCP, CPU DATA PATH C | |
| 19 | M7471 KA785, DAP, CPU DATA PATH A | |
| 20 | M7472 KA785, CEW (CONDITION CODES, EXCEP | |
| 21 | M7473 KA785, ICL (INTERRUPT CONTROL, LOW | |
| 22 | M7474 KA785, CLK (CPU CLOCK) | |
| 23 | M7475 KA785, JCS, JOINT CONTROL STORE | |
| 24 | M7476 KA785, USC, MICRO SEQUENCER CONTROL | |
| 25 | M7477 KA785, CIB, CPU CONSOLE INTERFACE | |
| 26 | 26 | |
| 27 | +----------FP785--------+ | |
| 28 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
| 29 | M7459 M7460 M7461 M7462 M7463 M7464 M7465 M7466 M7467 M7468 M7469 M7470 M7471 M7472 M7473 M7474 M7475 M7475 UNUSED M7476 M7540 M7541 M7542 M7543 M7544 M7477 | |
| 30 | TRS SBL SBH CAM CDM TBM IDP IRC DBP DEP DDP DCP DAP CEH ICL CLK JCS JCS USC FNM FMH FML FAD FCT CIB | |
| 31 | ||
| 32 | VAX-11/780 | |
| 33 | ------- | |
| 34 | M8237 TERMINATOR SILO | |
| 35 | M8218 SBL LOW BIT INTERFACE | |
| 36 | M8219 SBH HIGH BITS INTERFACE | |
| 37 | M8220 CAM CPU CACHE ADAPTER MATRIX | |
| 38 | M8221 CDM CPU CACHE DATA MATRIX | |
| 39 | M8222 TBM CPU TRANSLATION BUFFER MATRIX | |
| 40 | M8223 IRC CPU INSTRUCT DECODE&CLOCKS | |
| 41 | M8224 IDP CPU INSTRUCTION DATA PATH | |
| 42 | M8225 DBP DATA PATH B | |
| 43 | M8226 DEP DATA PATH E | |
| 44 | M8227 DDP DATA PATH D | |
| 45 | M8228 DCP DATA PATH C | |
| 46 | M8229 DAP DATA PATH A | |
| 47 | M8230 CEH CPU CONDITION CODE | |
| 48 | M8231 ICL CPU TRAPS AND INTERRUPT CONTROL | |
| 49 | M8232 CLK CPU CLOCK | |
| 50 | M8238 WCS KU780-A 2K WCS | |
| 51 | M8234 PCS KA780-A PCS, PROM CONTROL STORE | |
| 52 | M8235 USC MICRO SEQUENCE CONTROL | |
| 53 | M8236 CIB CONSOLE INTERFACE | |
| 27 | +----------FP785--------+ | |
| 28 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
| 29 | M7459 M7460 M7461 M7462 M7463 M7464 M7465 M7466 M7467 M7468 M7469 M7470 M7471 M7472 M7473 M7474 M7475 M7475 UNUSED M7476 M7540 M7541 M7542 M7543 M7544 M7477 | |
| 30 | TRS SBL SBH CAM CDM TBM IDP IRC DBP DEP DDP DCP DAP CEH ICL CLK JCS JCS USC FNM FMH FML FAD FCT CIB | |
| 54 | 31 | |
| 55 | +----------FP780--------+ | |
| 56 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
| 57 | M8237 M8218 M8219 M8220 M8221 M8222 M8223 M8224 M8225 M8226 M8227 M8228 M8229 M8230 M8231 M8232 M8233 M8233 M8234 M8235 M8285 M8286 M8287 M8288 M8289 M8236 | |
| 58 | TRS SBL SBH CAM CDM TBM IDP IRC DBP DEP DDP DCP DAP CEH ICL CLK or or PCS USC FNM FMH FML FAD FCT CIB | |
| 59 | M8238 M8238 | |
| 60 | ||
| 61 | ||
| 62 | 02/08/2012 Skeleton driver. | |
| 32 | VAX-11/780 | |
| 33 | ------- | |
| 34 | M8237 TERMINATOR SILO | |
| 35 | M8218 SBL LOW BIT INTERFACE | |
| 36 | M8219 SBH HIGH BITS INTERFACE | |
| 37 | M8220 CAM CPU CACHE ADAPTER MATRIX | |
| 38 | M8221 CDM CPU CACHE DATA MATRIX | |
| 39 | M8222 TBM CPU TRANSLATION BUFFER MATRIX | |
| 40 | M8223 IRC CPU INSTRUCT DECODE&CLOCKS | |
| 41 | M8224 IDP CPU INSTRUCTION DATA PATH | |
| 42 | M8225 DBP DATA PATH B | |
| 43 | M8226 DEP DATA PATH E | |
| 44 | M8227 DDP DATA PATH D | |
| 45 | M8228 DCP DATA PATH C | |
| 46 | M8229 DAP DATA PATH A | |
| 47 | M8230 CEH CPU CONDITION CODE | |
| 48 | M8231 ICL CPU TRAPS AND INTERRUPT CONTROL | |
| 49 | M8232 CLK CPU CLOCK | |
| 50 | M8238 WCS KU780-A 2K WCS | |
| 51 | M8234 PCS KA780-A PCS, PROM CONTROL STORE | |
| 52 | M8235 USC MICRO SEQUENCE CONTROL | |
| 53 | M8236 CIB CONSOLE INTERFACE | |
| 63 | 54 | |
| 55 | +----------FP780--------+ | |
| 56 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | |
| 57 | M8237 M8218 M8219 M8220 M8221 M8222 M8223 M8224 M8225 M8226 M8227 M8228 M8229 M8230 M8231 M8232 M8233 M8233 M8234 M8235 M8285 M8286 M8287 M8288 M8289 M8236 | |
| 58 | TRS SBL SBH CAM CDM TBM IDP IRC DBP DEP DDP DCP DAP CEH ICL CLK or or PCS USC FNM FMH FML FAD FCT CIB | |
| 59 | M8238 M8238 | |
| 60 | ||
| 61 | ||
| 62 | 02/08/2012 Skeleton driver. | |
| 63 | ||
| 64 | 64 | ****************************************************************************/ |
| 65 | 65 | |
| 66 | 66 | #include "emu.h" |
| r15975 | r15976 | |
| 82 | 82 | DECLARE_READ16_MEMBER( term_r ); |
| 83 | 83 | DECLARE_READ16_MEMBER( term_tx_status_r ); |
| 84 | 84 | DECLARE_READ16_MEMBER( term_rx_status_r ); |
| 85 | DECLARE_WRITE16_MEMBER( term_w ); | |
| 85 | DECLARE_WRITE16_MEMBER( term_w ); | |
| 86 | 86 | DECLARE_WRITE8_MEMBER( kbd_put ); |
| 87 | 87 | UINT8 m_term_data; |
| 88 | 88 | UINT16 m_term_status; |
| r15975 | r15976 | |
| 113 | 113 | ADDRESS_MAP_UNMAP_HIGH |
| 114 | 114 | AM_RANGE( 0x0000, 0xbfff ) AM_RAM // RAM |
| 115 | 115 | AM_RANGE( 0xc000, 0xd7ff ) AM_ROM |
| 116 | ||
| 116 | ||
| 117 | 117 | AM_RANGE( 0xfe78, 0xfe7b ) AM_DEVREADWRITE("rx01", rx01_device, read, write) |
| 118 | 118 | |
| 119 | 119 | AM_RANGE( 0xff70, 0xff71 ) AM_READ(term_rx_status_r) |
| 120 | 120 | AM_RANGE( 0xff72, 0xff73 ) AM_READ(term_r) |
| 121 | 121 | AM_RANGE( 0xff74, 0xff75 ) AM_READ(term_tx_status_r) |
| 122 | AM_RANGE( 0xff76, 0xff77 ) AM_WRITE(term_w) | |
| 122 | AM_RANGE( 0xff76, 0xff77 ) AM_WRITE(term_w) | |
| 123 | 123 | ADDRESS_MAP_END |
| 124 | 124 | |
| 125 | 125 | /* Input ports */ |
| r15975 | r15976 | |
| 147 | 147 | MCFG_CPU_ADD("maincpu",T11, XTAL_4MHz) // Need proper CPU here |
| 148 | 148 | MCFG_CPU_CONFIG(vax11_data) |
| 149 | 149 | MCFG_CPU_PROGRAM_MAP(vax11_mem) |
| 150 | ||
| 150 | ||
| 151 | 151 | /* video hardware */ |
| 152 | 152 | MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, terminal_intf) |
| 153 | ||
| 154 | MCFG_RX01_ADD("rx01") | |
| 153 | ||
| 154 | MCFG_RX01_ADD("rx01") | |
| 155 | 155 | MACHINE_CONFIG_END |
| 156 | 156 | |
| 157 | 157 | ROM_START( vax785 ) |
| r15975 | r15976 | |
| 171 | 171 | ROMX_LOAD( "23-237f1-00.e69", 0xd000, 0x0400, CRC(2bf8cf0b) SHA1(6db79c5392b265e38b5b8b386528d7c138d995e9), ROM_NIBBLE | ROM_SHIFT_NIBBLE_HI | ROM_SKIP(1)) |
| 172 | 172 | ROMX_LOAD( "23-238f1-00.e85", 0xd001, 0x0400, CRC(ff569f71) SHA1(05985396047fb4639959000a1abe50d2f184deaa), ROM_NIBBLE | ROM_SHIFT_NIBBLE_LO | ROM_SKIP(1)) |
| 173 | 173 | ROMX_LOAD( "23-239f1-00.e73", 0xd001, 0x0400, CRC(cec7abe3) SHA1(8b8b52bd46340c58efa5adef3f306e0cdcb77520), ROM_NIBBLE | ROM_SHIFT_NIBBLE_HI | ROM_SKIP(1)) |
| 174 | ||
| 174 | ||
| 175 | 175 | ROM_END |
| 176 | 176 | |
| 177 | 177 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| r15975 | r15976 | |
|---|---|---|
| 289 | 289 | /* Driver */ |
| 290 | 290 | |
| 291 | 291 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 292 | COMP( 1982, mbc200, 0, 0, mbc200, mbc200, driver_device, | |
| 292 | COMP( 1982, mbc200, 0, 0, mbc200, mbc200, driver_device, | |
| 293 | 293 |
| r15975 | r15976 | |
|---|---|---|
| 1783 | 1783 | COMP( 1982, c64j, c64n, 0, ntsc, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64 (Japan)", 0 ) |
| 1784 | 1784 | COMP( 1982, c64p, c64n, 0, pal, c64, driver_device, 0, "Commodore Business Machines", "Commodore 64 (PAL)", 0 ) |
| 1785 | 1785 | COMP( 1982, c64sw, c64n, 0, pal, c64sw, driver_device, 0, "Commodore Business Machines", "Commodore 64 / VIC-64S (Sweden/Finland)", 0 ) |
| 1786 | COMP( 1983, pet64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "PET 64 / CBM 4064 (NTSC)", 0 ) | |
| 1787 | COMP( 1983, edu64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "Educator 64 (NTSC)", 0 ) | |
| 1786 | COMP( 1983, pet64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "PET 64 / CBM 4064 (NTSC)", 0 ) | |
| 1787 | COMP( 1983, edu64, c64n, 0, pet64, c64, driver_device, 0, "Commodore Business Machines", "Educator 64 (NTSC)", 0 ) | |
| 1788 | 1788 | COMP( 1984, sx64n, c64n, 0, ntsc_sx, c64, driver_device, 0, "Commodore Business Machines", "SX-64 / Executive 64 (NTSC)", 0 ) |
| 1789 | 1789 | COMP( 1984, sx64p, c64n, 0, pal_sx, c64, driver_device, 0, "Commodore Business Machines", "SX-64 / Executive 64 (PAL)", 0 ) |
| 1790 | 1790 | COMP( 1984, vip64, c64n, 0, pal_sx, c64sw, driver_device, 0, "Commodore Business Machines", "VIP-64 (Sweden/Finland)", 0 ) |
| r15975 | r15976 | |
|---|---|---|
| 2264 | 2264 | |
| 2265 | 2265 | COMP( 1983, m24, ibm5150, 0, olivetti, pccga, pc_state, pccga, "Olivetti", "M24", GAME_NOT_WORKING) |
| 2266 | 2266 | COMP( 1987, m240, ibm5150, 0, olivetti, pccga, pc_state, pccga, "Olivetti", "M240", GAME_NOT_WORKING) |
| 2267 | COMP( 198?, olivm15, ibm5150, 0, olivm15, 0, driver_device, | |
| 2267 | COMP( 198?, olivm15, ibm5150, 0, olivm15, 0, driver_device, | |
| 2268 | 2268 | |
| 2269 | 2269 | COMP( 1983, ibm5550, ibm5150, 0, ibm5550, pccga, pc_state, pccga, "International Business Machines", "IBM 5550", GAME_NOT_WORKING) |
| 2270 | 2270 |
| r15975 | r15976 | |
|---|---|---|
| 182 | 182 | const UINT8 *m_p_chargen; |
| 183 | 183 | UINT8 m_framecnt; |
| 184 | 184 | emu_timer *m_cassette_timer; |
| 185 | public: | |
| 185 | public: | |
| 186 | 186 | DECLARE_DRIVER_INIT(sol20); |
| 187 | 187 | }; |
| 188 | 188 |
| r15975 | r15976 | |
|---|---|---|
| 584 | 584 | |
| 585 | 585 | MCFG_HUC6260_ADD( "huc6260", MAIN_CLOCK, pce_huc6260_config ) |
| 586 | 586 | MCFG_HUC6270_ADD( "huc6270", pce_huc6270_config ) |
| 587 | ||
| 587 | ||
| 588 | 588 | MCFG_NVRAM_ADD_0FILL("nvram") |
| 589 | 589 | |
| 590 | 590 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| r15975 | r15976 | |
| 638 | 638 | MCFG_HUC6270_ADD( "huc6270_0", sgx_huc6270_0_config ) |
| 639 | 639 | MCFG_HUC6270_ADD( "huc6270_1", sgx_huc6270_1_config ) |
| 640 | 640 | MCFG_HUC6202_ADD( "huc6202", sgx_huc6202_config ) |
| 641 | ||
| 641 | ||
| 642 | 642 | MCFG_NVRAM_ADD_0FILL("nvram") |
| 643 | 643 | |
| 644 | 644 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| r15975 | r15976 | |
|---|---|---|
| 253 | 253 | /* Driver */ |
| 254 | 254 | |
| 255 | 255 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 256 | COMP( 1977, h8, 0, 0, h8, h8, driver_device, | |
| 256 | COMP( 1977, h8, 0, 0, h8, h8, driver_device, |
| r15975 | r15976 | |
|---|---|---|
| 296 | 296 | /* Driver */ |
| 297 | 297 | |
| 298 | 298 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 299 | COMP( 1987, korvet, 0, 0, pk8020, pk8020, driver_device, 0, "<unknown>", "PK8020 Korvet", 0) | |
| 300 | COMP( 1987, neiva, korvet, 0, pk8020, pk8020, driver_device, 0, "<unknown>", "PK8020 Neiva", 0) | |
| 301 | COMP( 1987, kontur, korvet, 0, pk8020, pk8020, driver_device, 0, "<unknown>", "PK8020 Kontur", 0) | |
| 302 | COMP( 1987, bk8t, korvet, 0, pk8020, pk8020, driver_device, 0, "<unknown>", "BK-8T", 0) | |
| 299 | COMP( 1987, korvet, 0, 0, pk8020, pk8020, driver_device, 0, "<unknown>", "PK8020 Korvet", 0) | |
| 300 | COMP( 1987, neiva, korvet, 0, pk8020, pk8020, driver_device, 0, "<unknown>", "PK8020 Neiva", 0) | |
| 301 | COMP( 1987, kontur, korvet, 0, pk8020, pk8020, driver_device, 0, "<unknown>", "PK8020 Kontur", 0) | |
| 302 | COMP( 1987, bk8t, korvet, 0, pk8020, pk8020, driver_device, 0, "<unknown>", "BK-8T", 0) |
| Previous | 15994 Revisions | Next |