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

hash/gamegear.xml
r15975r15976
72567256      </part>
72577257   </software>
72587258
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
72607260     version the QTEST/ALOGTEST/etc. protos were for (more info are needed on these, or some code analysis/comparison) -->
72617261   <software name="sporttrvp12" cloneof="sporttrv">
72627262      <description>Sports Trivia (Prototype, 19950308)</description>
hash/vidbrain.xml
r15975r15976
33<!--
44
55   Undumped cartridges
6   
6
77   Money Management Series:
88   APL/S   The Computational Language
99
1010
1111   Advertised but never released cartridges
12   
12
1313   Money Management Series:
1414   VB-59   The Programmable
1515   VB-1100 Budget System
hash/c64_flop.xml
r15975r15976
6969      <publisher>Big Five</publisher>
7070      <info name="protection" value="halftrack" />
7171      <sharedfeat name="compatibility" value="NTSC,PAL"/>
72   
72
7373      <part name="flop1" interface="floppy_5_25">
7474         <dataarea name="flop" size="206864">
7575            <rom name="bbsb.g64" size="206864" crc="612e0325" sha1="7a8be7b2f04a5fb63f23839c11a3801cff8e022c" offset="0" />
r15975r15976
107107      <publisher>Cinemaware</publisher>
108108      <info name="protection" value="vmaxv2" />
109109      <sharedfeat name="compatibility" value="NTSC,PAL"/>
110   
110
111111      <part name="flop1" interface="floppy_5_25">
112112         <feature name="part_id" value="Side A"/>
113113         <dataarea name="flop" size="278234">
114114            <rom name="defenderofthecrown_s0.g64" size="278234" crc="131759d0" sha1="2c8695caee776b2082a01856d13a0eeb99f9859f" offset="0" />
115115         </dataarea>
116116      </part>
117   
117
118118      <part name="flop2" interface="floppy_5_25">
119119         <feature name="part_id" value="Side B"/>
120120         <dataarea name="flop" size="323404">
src/mame/mame.lst
r15975r15976
672672navarone      // (c) 1980 Namco
673673kaitein         // [1980] Namco
674674kaitei         // [1980] K.K. Tokki
675sos         // [1980] Namco
675sos            // [1980] Namco
676676tankbatt      // (c) 1980 Namco
677677tankbattb      // bootleg
678678warpwarp      // (c) 1981 Namco
r15975r15976
24462446snowbrosj      // MIN16-02 (c) 1990 Toaplan
24472447snowbrosd      // MIN16-02 (c) 1990 Toaplan + Dooyong license
24482448wintbob         // bootleg
2449// modifeid snowbros 'clone' hardware
2449// modified snowbros 'clone' hardware
24502450honeydol      // (c) 1995 Barko Corp
24512451twinadv         // (c) 1995 Barko Corp
24522452twinadvk      // (c) 1995 Barko Corp
r15975r15976
25262526bbakraidja      // (c) 1999 8ing
25272527
25282528/*
2529Toa 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)
25312531
2532Title              ROMno.   Remark(1)   Remark(2)
2533--------------------------------------------------
2534Tiger Heli           A47      GX-551
2535Hishouzame           B02      TP-007
2536Kyukyoku Tiger       B30      TP-011
2537Dash Yarou           B45      TP-012
2538Tatsujin             B65      TP-013B   M6100649A
2539Zero Wing            O15      TP-015
2540Horror Story         O16      TP-016
2541Same!Same!Same!      O17      TP-017
2542Out Zone                      TP-018
2543Vimana                        TP-019
2544Teki Paki            O20      TP-020
2545Ghox               TP-21      TP-021
2546Dogyuun                       TP-022
2547Tatsujin Oh                   TP-024    *1
2548Fixeight                      TP-026
2549V-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
25502550
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.
25522552
255386 Mahjong Sisters                                 Kit 2P 8W+2B     HC    Mahjong TP-
255488 Dash                                            Kit 2P 8W+2B                   TP-
255589 Fire Shark                                      Kit 2P 8W+2B     VC    Shooter TP-017
255689 Twin Hawk                                       Kit 2P 8W+2B     VC    Shooter TP-
255791 Whoopie                                         Kit 2P 8W+2B     HC    Action
255892 Teki Paki                                       Kit 2P                         TP-020
255992 Ghox                                            Kit 2P Paddle+1B VC    Action  TP-021
256010/92 Dogyuun                                         Kit 2P 8W+2B     VC    Shooter TP-022
256192/93 Knuckle Bash                 Atari Games        Kit 2P 8W+2B     HC    Action  TP-023
256210/92 Tatsujin II/Truxton II       Taito              Kit 2P 8W+2B     VC    Shooter TP-024
256310/92 Truxton II/Tatsujin II       Taito              Kit 2P 8W+2B     VC    Shooter TP-024
2564 Pipi & Bipi                                                                    TP-025
256592 Fix Eight                                       Kit 2P 8W+2B     VC    Action  TP-026
256612/92 V  -  V (5)/Grind Stormer                       Kit 2P 8W+2B     VC    Shooter TP-027
25671/93 Grind Stormer/V - V (Five)                      Kit 2P 8W+2B     VC    Shooter TP-027
25682/94 Batsugun                                        Kit 2P 8W+2B     VC            TP-
25694/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-
25702570*/
25712571
25722572// Cave games
r15975r15976
40784078ufosensi      // 834-6659 (S2)
40794079ufosensib      // bootleg
40804080/*
4081other System 1 / System 2 games:
4081  other System 1 / System 2 games:
40824082
4083WarBall
4084DokiDoki Penguin Land *not confirmed
4083  WarBall
4084  DokiDoki Penguin Land *not confirmed
40854085*/
40864086
40874087// Sega System E games (Master System hardware)
r15975r15976
40974097shtzone         // (c) 1987
40984098
40994099// other Sega 8-bit games
4100stactics      // (c) 1981 Sega
41004101turbo         // (c) 1981 Sega
41014102turboa         // (c) 1981 Sega
41024103turbob         // (c) 1981 Sega
r15975r15976
47014702logicpr2      // (c) 1997 Deniam (Japan)
47024703
47034704/*
4704Deniam is a Korean company (http://deniam.co.kr).
4705  Deniam is a Korean company (http://deniam.co.kr).
47054706
4706Game list:
4707Title            System     Date
4708---------------- ---------- ----------
4709GO!GO!           deniam-16b 1995/10/11
4710Logic Pro        deniam-16b 1996/10/20
4711Karian Cross     deniam-16b 1997/04/17
4712LOTTERY GAME     deniam-16c 1997/05/21
4713Logic Pro 2      deniam-16c 1997/06/20
4714Propose          deniam-16c 1997/06/21
4715BOMULEUL 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
47164717*/
47174718
47184719// System C games
r15975r15976
50345035            // 2009.?? Project Cerberus (planned to be released in 2009)
50355036ngdup23a      // DIMM Firmware Updater (Rev A)
50365037ngdup23c        // DIMM Firmware Updater (Rev C)
5038ngdup23e        // DIMM Firmware Updater (Rev E)
50375039
50385040// NAOMI based (System SP)
50395041            // 2004.10 Oshare Majo Love and Berry / Fashionable Witch Love and Berry
r15975r15976
50915093            // 2006.03 World Club Champion Football European Clubs 2004-2005 Ver 1.2
50925094            // 2006.08 World Club Champion Football European Clubs 2005-2006
50935095            // 2006.10 World Club Champion Football European Clubs 2005-2006 bugfix
5094            // 2006.?? Initial D Arcade Stage Ver. 3 Cycraft Edition (Rev B)
5096inidv3cy      // 2006.?? Initial D Arcade Stage Ver. 3 Cycraft Edition (Rev B)
50955097
50965098// Atomiswave (Dreamcast-based) games
50975099awbios          // 2002.?? Atomiswave BIOS
r15975r15976
51915193            // 2005.12 Quest of D Gofu no Keisyousya ver.2.00
51925194            // 2005.12 Mobile Suit Gundam 0079 Card Builder
51935195mj3            // 2005.12 Sega Network Taisen Mahjong MJ 3 (Rev D)
5196mj3f         // 2005.12 Sega Network Taisen Mahjong MJ 3 (Rev F)
51945197            // 2005.12 Quest of D Gofu no Keisyousya ver.2.01
51955198scg06nt         // 2005.12 Sega Golf Club 2006: Next Tours (Rev A)
51965199            // 2006.02 Sangokushi Taisen Ranse no Gunrou ver.1.12
r15975r15976
54875490robocop2u      // MAH (c) 1991 Data East Corporation (US)
54885491robocop2j      // MAH (c) 1991 Data East Corporation (Japan)
54895492thndzone      // MAJ (c) 1991 Data East Corporation (World)
5493thndzonea      // MAJ (c) 1991 Data East Corporation (World)
54905494thndzonej      // MAJ (c) 1991 Data East Corporation (Japan) - Some MASK ROMS stamped MAL
54915495dassault      // MAJ (c) 1991 Data East Corporation (US)
54925496dassault4      // MAJ (c) 1991 Data East Corporation (US)
r15975r15976
81318135vastar         // (c) 1983 Sesame Japan
81328136vastar2         // (c) 1983 Sesame Japan
81338137/*
8134other Orca games:
813582 Battle Cross                         Kit 2P
813682 River Patrol Empire Mfg/Kerstens Ind Ded 2P        HC Action
813782 Slalom                               Kit 2P        HC Action
813883 Net Wars                                 2P
813983 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
81408144*/
81418145
81428146// Gaelco 2D games
r15975r15976
81928196atvtracka      // (c) 2002 - Ref 020419
81938197
81948198/*
8195Remaining Gaelco Games:
8196=======================
81971999: Rolling Extreme
81982000: Football Power
81992001: Smashing Drive
8199  Remaining Gaelco Games:
8200  =======================
8201  1999: Rolling Extreme
8202  2000: Football Power
8203  2001: Smashing Drive
82008204*/
82018205
82028206// Galeco PC based games
r15975r15976
84998503heberpop      // (c) 1994 Sunsoft / Atlus
85008504blocken         // (c) 1994 KID / Visco
85018505/*
8502Other Sun games
85031978.11 (GT)Block Perfect
85041978.12 (GT)Block Challenger
85051979.04 Galaxy Force
85061979.07 Run Away
85071979.12 Warp 1
85081980.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?)
85098513*/
85108514
85118515// SunA games
r15975r15976
1003610040monzagp         // (c) 1981 Olympia
1003710041dday         // (c) 1982 Olympia
1003810042ddayc         // (c) 1982 Olympia + Centuri license
10039stactics      // [1981 Sega]
10043flipjack      // 1983? Jackson Co., Ltd.
1004010044exterm         // (c) 1989 Premier Technology - a Gottlieb game
1004110045flower         // (c) 1986 Komax license
1004210046flowerj         // 834-5998 (c) 1986 Sega / Alpha license?
r15975r15976
1006810072polyplay
1006910073amspdwy         // no copyright notice, but (c) 1987 Enerdyne Technologies, Inc.
1007010074amspdwya      // no copyright notice, but (c) 1987 Enerdyne Technologies, Inc.
10075jankenmn      // (c) 1985 Sunwise
1007110076othldrby      // (c) 1995 Sunwise
1007210077quizpun       // (c) 1989 Space Computer System of Korea
1007310078quizpun2      // (c) 1989 Space Computer System of Korea
r15975r15976
1031910324dynadice      // ?
1032010325atamanot      // (c) 1983 Yachiyo Denki / Uni Enterprize
1032110326ssingles      // Yachiyo?
10322tcl         // (c) 1995 Uniwang
10327tcl            // (c) 1995 Uniwang
1032310328othello         // (c) 1984 Success
1032410329sothello      // (c) 1986 Success / Fujiwara
10330tonton         // 199?, Success.
1032510331quake         // (c) 19?? Lazer-Tron / iD Software
1032610332majorpkr      // (c) 1994 PAL System.
1032710333su2000         // (c) 1993 Virtuality
r15975r15976
1202812034//3do_pal
1202912035orbatak
1203012036
12037// Global VR
12038hyperv2         // Hyper V2 (Global VR) Install - 06/12/02
12039hyperv2a      // Hyper V2 (Global VR) Install - 09/30/01
12040gvrxpsys      // Global VR XP OS Install - 09/30/01
12041gvrxpsup      // Global VR XP OS Update/Install - 06/11/02
12042
12043bhead2k         // Beach Head 2000 Install - 05/27/03
12044bhead2ka      // Beach Head 2000 Install - 09/16/01
12045bhead2k2      // Beach Head 2002 Install - 05/27/03
12046bhead2k3      // Beach Head 2003 Desert War Install - 05/27/03
12047nfsug         // Need For Speed: Underground Install (2 Discs) (v1.1)
12048
12049// Leisure Ent.
12050roul         // (c) 1990
12051
12052// Accept LTD.
12053hitpoker      // (c) 1997
12054
12055// Videotronics
12056vpoker         // (c) 198?
120575acespkr      // (c) 198?
12058
12059// Play Mechanix
12060specfrce      // (c) 2002 ICE/Play Mechanix
12061jnero         // (c) 2004 ICE/Play Mechanix
12062
12063// Amatic Trading GMBH
12064suprstar      // (c) 1996 Amatic
12065am_mg24         // (c) 2000 Amatic
12066am_mg3         // (c) 2000 Amatic
12067am_mg3a         // (c) 2000 Amatic
12068am_mg35i      // (c) Amatic
12069am_mg34i      // (c) Amatic
12070am_mg33i      // (c) Amatic
12071am_mg31i      // (c) Amatic
12072
12073
12074neptunp2
12075rgum
12076
12077// Extrema Systems International Ltd.
12078poker72
12079
12080// Blitz System Inc.
12081megadpkr      // (c) 1990 Blitz System Inc
12082megadpkrb      // (c) 1990 Blitz System Inc
12083
12084// Blitz System Inc. 68k + Blitter Hardware
12085megadblj      // (c) 1990 Blitz Systems Inc.
12086megadble      // (c) 1990 Blitz Systems Inc.
12087maxidbl         // (c) 1992 Blitz Systems Inc.
12088bankrob         // (c) 1993 Entertainment Technology Corp.
12089bankroba      // (c) 1993 Entertainment Technology Corp.
12090poker52         // (c) 1993 Blitz Systems Inc. ?
12091steaser         // (c) 1993 unknown
12092dualgame      // (c) 1995 Labtronix Technologies
12093hermit         // (c) 1995 Dugamex
12094deucesw2      // (c) 1997
12095cj3play         // (c) 1998 Cadillac Jack
12096cjffruit      // (c) 1998 Cadillac Jack
12097ilpag         // (c) 199? unknown
12098
12099// Olympic Video Gaming
12100hotstuff
12101
12102// Interactive Light
12103savquest
12104
12105// Jamie System Development
12106xtom3d
12107
12108// Jubilee
12109jubileep
12110
12111// Golden Games / C+M Technics AG
12112swisspkr      // (c) 1990 Golden Games
12113moviecrd      // (c) 1998 Golden Games
12114
12115// NSM
12116nsmpoker
12117
12118// Advanced Video Technologies
12119avtsym14      // (c) 1985 AVT
12120avtsym25      // (c) 1985 AVT
12121avtbingo      // (c) 1985 AVT
12122avtnfl         // (c) 1989 AVT
12123
12124// Corona hardware
12125winner81      // (c) 1981 Corona Co, Ltd.
12126winner81b      // (c) 1981 Corona Co, Ltd.
12127winner82      // (c) 1982 Corona Co, Ltd.
12128re800ea         // (c) 1991 Entretenimientos GEMINIS
12129re800v1         // (c) 1991 Entretenimientos GEMINIS
12130re800v3         // (c) 1992 Entretenimientos GEMINIS
12131rcirulet      // (c) 199? Entretenimientos GEMINIS
12132luckyrlt      // (c) 1990 unknown
12133
12134dfruit
12135
12136umipoker
12137saiyukip
12138
12139tmspoker
12140kas89         // 1989, SFC S.R.L.
12141caspoker      // 1987, PM / Beck Elektronik.
12142wildpkr         // 199?, TAB Austria.
12143
12144manohman      // 199?, Merkur.
12145
12146
12147// TTL logic games
12148pong         // (c) 1972 Atari
12149pongf         // (c) 1972 Atari - no subcycles
12150
12151
12152
12153
1203112154/* Drivers below are mostly mechanical games, usually with no video display, requiring external artwork to function. */
1203212155
1203312156/* Bellfruit Hardware */
r15975r15976
2581325936pr_upnun      // Up & Under (Project)
2581425937pr_bears      // Bear Streak (Coinworld)
2581525938pr_bearsa
25816pr_bearsb   
25939pr_bearsb
2581725940pr_bearx      // Bear X (Coinworld)
2581825941pr_bearxa
2581925942pr_bearxb
r15975r15976
2657326696//unkfr
2657426697//unkfra
2657526698
26576// Leisure Ent.
26577roul         // (c) 1990
26578
26579// Accept LTD.
26580hitpoker      // (c) 1997
26581
26582// Videotronics
26583vpoker         // (c) 198?
265845acespkr      // (c) 198?
26585
26586// Play Mechanix
26587specfrce      // (c) 2002 ICE/Play Mechanix
26588jnero         // (c) 2004 ICE/Play Mechanix
26589
26590// Amatic Trading GMBH
26591suprstar      // (c) 1996 Amatic
26592am_mg24         // (c) 2000 Amatic
26593am_mg3         // (c) 2000 Amatic
26594am_mg3a         // (c) 2000 Amatic
26595am_mg35i      // (c) Amatic
26596am_mg34i      // (c) Amatic
26597am_mg33i      // (c) Amatic
26598am_mg31i      // (c) Amatic
26599
26600
26601neptunp2
26602rgum
26603
26604// Extrema Systems International Ltd.
26605poker72
26606
26607// Blitz System Inc.
26608megadpkr      // (c) 1990 Blitz System Inc
26609megadpkrb      // (c) 1990 Blitz System Inc
26610
26611// Blitz System Inc. 68k + Blitter Hardware
26612megadblj      // (c) 1990 Blitz Systems Inc.
26613megadble      // (c) 1990 Blitz Systems Inc.
26614maxidbl         // (c) 1992 Blitz Systems Inc.
26615bankrob         // (c) 1993 Entertainment Technology Corp.
26616bankroba      // (c) 1993 Entertainment Technology Corp.
26617poker52         // (c) 1993 Blitz Systems Inc. ?
26618steaser         // (c) 1993 unknown
26619dualgame      // (c) 1995 Labtronix Technologies
26620hermit         // (c) 1995 Dugamex
26621deucesw2      // (c) 1997
26622cj3play         // (c) 1998 Cadillac Jack
26623cjffruit      // (c) 1998 Cadillac Jack
26624ilpag         // (c) 199? unknown
26625
26626// Olympic Video Gaming
26627hotstuff
26628
26629// Interactive Light
26630savquest
26631
26632// Jamie System Development
26633xtom3d
26634
26635// Jubilee
26636jubileep
26637
26638// Golden Games / C+M Technics AG
26639swisspkr      // (c) 1990 Golden Games
26640moviecrd      // (c) 1998 Golden Games
26641
26642// NSM
26643nsmpoker
26644
26645// Advanced Video Technologies
26646avtsym14      // (c) 1985 AVT
26647avtsym25      // (c) 1985 AVT
26648avtbingo      // (c) 1985 AVT
26649avtnfl         // (c) 1989 AVT
26650
26651// Corona hardware
26652winner81      // (c) 1981 Corona Co, Ltd.
26653winner81b      // (c) 1981 Corona Co, Ltd.
26654winner82      // (c) 1982 Corona Co, Ltd.
26655re800ea         // (c) 1991 Entretenimientos GEMINIS
26656re800v1         // (c) 1991 Entretenimientos GEMINIS
26657re800v3         // (c) 1992 Entretenimientos GEMINIS
26658rcirulet      // (c) 199? Entretenimientos GEMINIS
26659luckyrlt      // (c) 1990 unknown
26660
26661dfruit
26662
2666326699// allied.c
2666426700allied
2666526701suprpick
r15975r15976
2821428250spacecty
2821528251strike
2821628252
28217umipoker
28218saiyukip
28219
28220tmspoker
28221tonton         // 199?, Success.
28222kas89         // 1989, SFC S.R.L.
28223caspoker      // 1987, PM / Beck Elektronik.
28224wildpkr         // 199?, TAB Austria.
28225
28226manohman      // 199?, Merkur.
28227jankenmn      // 1985, Sunwise.
28228
28229flipjack      // 1983? Jackson Co., Ltd.
28230
28231// Global VR
28232hyperv2         // Hyper V2 (Global VR) Install - 06/12/02
28233hyperv2a                // Hyper V2 (Global VR) Install - 09/30/01
28234gvrxpsys                // Global VR XP OS Install - 09/30/01
28235gvrxpsup                // Global VR XP OS Update/Install - 06/11/02
28236
28237bhead2k                 // Beach Head 2000 Install - 05/27/03
28238bhead2ka                // Beach Head 2000 Install - 09/16/01
28239bhead2k2                // Beach Head 2002 Install - 05/27/03
28240bhead2k3                // Beach Head 2003 Desert War Install - 05/27/03
28241nfsug                   // Need For Speed: Underground Install (2 Discs) (v1.1)
28242
28243
28244// TTL logic games
28245pong         // (c) 1972 Atari
28246pongf         // (c) 1972 Atari - no subcycles
No newline at end of file
src/mame/machine/gdrom.c
r15975r15976
195195      case 0x30: // CD_READ
196196         if (command[1] & 1)
197197         {
198            fatalerror("GDROM: MSF mode used for CD_READ, unsupported");
198            fatalerror("GDROM: MSF mode used for CD_READ, unsupported\n");
199199            *transferLength = 0;
200200         }
201201         else
r15975r15976
208208
209209            if (read_type != 2)   // mode 1
210210            {
211               fatalerror("GDROM: Unhandled read_type %d", read_type);
211               fatalerror("GDROM: Unhandled read_type %d\n", read_type);
212212            }
213213
214214            if (data_select != 2)   // just sector data
215215            {
216               fatalerror("GDROM: Unhandled data_select %d", data_select);
216               fatalerror("GDROM: Unhandled data_select %d\n", data_select);
217217            }
218218
219219            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);
src/mame/machine/nmk004.c
r15975r15976
270270                     return;
271271
272272                  default:
273                     fatalerror("effects channel %d unsupported token %02x",channel,token);
273                     fatalerror("effects channel %d unsupported token %02x\n",channel,token);
274274               }
275275            }
276276         } while (token == 0xef || (token & 0xf0) == 0xf0);
r15975r15976
450450                     return;
451451
452452                  default:
453                     fatalerror("fm channel %d unsupported token %02x",channel,token);
453                     fatalerror("fm channel %d unsupported token %02x\n",channel,token);
454454               }
455455            }
456456         } while (token == 0xef || (token & 0xf0) == 0xf0);
r15975r15976
801801         psg->note = token;
802802         if ((psg->note & 0x0f) > NOTE_PAUSE)
803803         {
804            fatalerror("PSG channel %d invalid note %02x",channel,psg->note);
804            fatalerror("PSG channel %d invalid note %02x\n",channel,psg->note);
805805         }
806806
807807         // optional note length (otherwise use the same length as the previous one)
r15975r15976
965965                  channel -= PSG_CHANNELS;
966966                  if (channel >= EFFECTS_CHANNELS)
967967                  {
968                     fatalerror("too many effects channels");
968                     fatalerror("too many effects channels\n");
969969                  }
970970                  NMK004_state.effects_control[channel].current = table_start;
971971                  NMK004_state.effects_control[channel].return_address_depth = 0;
src/mame/machine/fd1089.c
r15975r15976
1010
1111****************************************************************************
1212
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
1616
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.
2020
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).
2626
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).
3030
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.
4343
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.
4949
50   static int rndseed;
50    static int rndseed;
5151
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    }
5757
58   void generate_key(int seed)
59   {
60       int i;
58    void generate_key(int seed)
59    {
60        int i;
6161
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;
6868
69               do
70               {
71                   byteval = rnd();
72               } while (byteval == 0x40);
69                do
70                {
71                    byteval = rnd();
72                } while (byteval == 0x40);
7373
74               opcode_key[i] = byteval;
74                opcode_key[i] = byteval;
7575
76               do
77               {
78                   byteval = rnd();
79               } while (byteval == 0x40);
76                do
77                {
78                    byteval = rnd();
79                } while (byteval == 0x40);
8080
81               data_key[i] = byteval;
82           }
83       }
81                data_key[i] = byteval;
82            }
83        }
8484
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;
9090
91               do
92               {
93                   byteval = rnd();
94               } while (byteval == 0x40);
91                do
92                {
93                    byteval = rnd();
94                } while (byteval == 0x40);
9595
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    }
101101
102102
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.
105105
106   Known games that use this CPU:
106    Known games that use this CPU:
107107
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 ?
124124
125   [1] Complete
126   [2] Partial
125    [1] Complete
126    [2] Partial
127127
128128***************************************************************************/
129129
r15975r15976
133133
134134
135135//**************************************************************************
136//   CONSTANTS
136//  CONSTANTS
137137//**************************************************************************
138138
139139// device type definition
r15975r15976
206206
207207
208208//**************************************************************************
209//   CORE IMPLEMENTATION
209//  CORE IMPLEMENTATION
210210//**************************************************************************
211211
212212//-------------------------------------------------
r15975r15976
245245   UINT32 romsize = region()->bytes();
246246   m_plaintext.resize(romsize/2);
247247   m_decrypted_opcodes.resize(romsize/2);
248   
248
249249   // copy the plaintext
250250   memcpy(m_plaintext, rombase, romsize);
251   
251
252252   // decrypt it, overwriting original data with the decrypted data
253253   decrypt(0x000000, romsize, m_plaintext, m_decrypted_opcodes, rombase);
254254
r15975r15976
261261
262262
263263//**************************************************************************
264//   INTERNAL HELPERS
264//  INTERNAL HELPERS
265265//**************************************************************************
266266
267267//-------------------------------------------------
268268//  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
271271//-------------------------------------------------
272272
273273UINT8 fd1089_base_device::rearrange_key(UINT8 table, bool opcode)
r15975r15976
324324
325325//-------------------------------------------------
326326//  decode_fd1089a - decode an 8-bit value
327//   according to FD1089A rules
327//  according to FD1089A rules
328328//-------------------------------------------------
329329
330330UINT8 fd1089_base_device::decode_fd1089a(UINT8 val, UINT8 key, bool opcode)
r15975r15976
384384
385385//-------------------------------------------------
386386//  decode_fd1089b - decode an 8-bit value
387//   according to FD1089B rules
387//  according to FD1089B rules
388388//-------------------------------------------------
389389
390390UINT8 fd1089_base_device::decode_fd1089b(UINT8 val, UINT8 key, bool opcode)
r15975r15976
442442
443443//-------------------------------------------------
444444//  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
447447//-------------------------------------------------
448448
449449UINT16 fd1089_base_device::decrypt_one(offs_t addr, UINT16 val, const UINT8 *key, bool opcode, char cputype)
r15975r15976
475475
476476//-------------------------------------------------
477477//  decrypt - decrypt a buffers' worth of opcodes
478//   and data
478//  and data
479479//-------------------------------------------------
480480
481481void fd1089_base_device::decrypt(offs_t baseaddr, UINT32 size, const UINT16 *srcptr, UINT16 *opcodesptr, UINT16 *dataptr)
src/mame/machine/fd1089.h
r15975r15976
1717
1818
1919//**************************************************************************
20//   CONSTANTS
20//  CONSTANTS
2121//**************************************************************************
2222
2323// device type definition
r15975r15976
2727
2828
2929//**************************************************************************
30//   TYPE DEFINITIONS
30//  TYPE DEFINITIONS
3131//**************************************************************************
3232
3333// ======================> fd1089_base_device
r15975r15976
3838public:
3939   // construction/destruction
4040   fd1089_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, char cputype);
41   
41
4242   // explicit decryption helpers
4343   void decrypt(offs_t baseaddr, UINT32 size, offs_t regionoffs, UINT16 *opcodesptr, UINT16 *dataptr) { decrypt(baseaddr, size, &m_plaintext[regionoffs/2], opcodesptr, dataptr); }
4444
r15975r15976
5252   UINT8 decode_fd1089b(UINT8 val, UINT8 key, bool opcode);
5353   UINT16 decrypt_one(offs_t addr, UINT16 val, const UINT8 *key, bool opcode, char cputype);
5454   void decrypt(offs_t baseaddr, UINT32 size, const UINT16 *srcptr, UINT16 *opcodesptr, UINT16 *dataptr);
55   
55
5656   // internal state
5757   const UINT8 *         m_key;
5858   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
6262   // internal types
6363   struct decrypt_parameters
6464   {
r15975r15976
8181public:
8282   // construction/destruction
8383   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') { }
8585};
8686
8787
r15975r15976
9393public:
9494   // construction/destruction
9595   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') { }
9797};
9898
9999
src/mame/machine/naomi.c
r15975r15976
7878    */
7979   else
8080   {
81      fatalerror("unexpected value in asciihex_to_dec");
81      fatalerror("unexpected value in asciihex_to_dec\n");
8282   }
8383
8484
src/mame/machine/kaneko_hit.c
r15975r15976
33   It is thought that this is done by the 'CALC1' 'TOYBOX' and 'CALC3' protection chips found on the various boards
44   however we have 3 implementations, and they don't quite pair up with the chips at the moment, this might be
55   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
1313   shogwarr   - CALC3   - type 1
1414   brapboys   - CALC3   - type 2
1515
r15975r15976
118118      case 0: return kaneko_hit_type0_r(space,offset,mem_mask);
119119      case 1: return kaneko_hit_type1_r(space,offset,mem_mask);
120120      case 2: return kaneko_hit_type2_r(space,offset,mem_mask);
121     
121
122122      default:
123123         fatalerror("kaneko_hit_r called, but m_hittype not set\n");
124124         return 0;
r15975r15976
132132      case 0: kaneko_hit_type0_w(space,offset,data, mem_mask); break;
133133      case 1: kaneko_hit_type1_w(space,offset,data, mem_mask); break;
134134      case 2: kaneko_hit_type2_w(space,offset,data, mem_mask); break;
135     
135
136136      default:
137137         fatalerror("kaneko_hit_r called, but m_hittype not set\n");
138138         break;
src/mame/machine/kaneko_hit.h
r15975r15976
3737{
3838public:
3939   kaneko_hit_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
40   
40
4141   static void set_type(device_t &device, int hittype);
4242
4343   int m_hittype;
src/mame/machine/namco06.c
r15975r15976
267267         else if (type == NAMCO_54XX)
268268            state->m_write[devnum] = namco_54xx_write;
269269         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());
271271      }
272272
273273   /* allocate a timer */
src/mame/machine/cdicdic.c
r15975r15976
474474         break;
475475
476476      default:
477         fatalerror("play_xa: unhandled xa mode %08x",hdr[2]);
477         fatalerror("play_xa: unhandled xa mode %08x\n",hdr[2]);
478478         return;
479479   }
480480
src/mame/machine/megadriv.c
r15975r15976
941941   {
942942      UINT32* desty = &bitmap.pix32(y, 0);
943943      UINT16* srcy;
944     
944
945945      if (!vdp->m_use_alt_timing)
946946      {
947947         srcy = &vdp->m_render_bitmap->pix(y, 0);
src/mame/machine/model1.c
r15975r15976
1616   model1_state *state = space->machine().driver_data<model1_state>();
1717   UINT32 v;
1818   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()));
2020   }
2121   v = state->m_fifoout_data[state->m_fifoout_rpos++];
2222   if(state->m_fifoout_rpos == FIFO_SIZE)
r15975r15976
20772077   model1_state *state = space->machine().driver_data<model1_state>();
20782078   if (state->m_copro_fifoin_num == FIFO_SIZE)
20792079   {
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()));
20812081      return;
20822082   }
20832083
r15975r15976
21232123   model1_state *state = device->machine().driver_data<model1_state>();
21242124   if (state->m_copro_fifoout_num == FIFO_SIZE)
21252125   {
2126      fatalerror("Copro FIFOOUT overflow (at %08X)", cpu_get_pc(device));
2126      fatalerror("Copro FIFOOUT overflow (at %08X)\n", cpu_get_pc(device));
21272127      return;
21282128   }
21292129
src/mame/machine/megavdp.c
r15975r15976
26032603         else
26042604            m_render_line_raw[x] = 0x000;
26052605
2606   
2606
26072607         if (drawn==0)
26082608         {
26092609            if (dat&0x10000)
src/mame/machine/megavdp.h
r15975r15976
155155{
156156public:
157157   sega_genesis_vdp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
158   
158
159159   static void set_genesis_vdp_sndirqline_callback(device_t &device, genesis_vdp_sndirqline_callback_func callback);
160160   static void set_genesis_vdp_lv6irqline_callback(device_t &device, genesis_vdp_lv6irqline_callback_func callback);
161161   static void set_genesis_vdp_lv4irqline_callback(device_t &device, genesis_vdp_lv4irqline_callback_func callback);
r15975r15976
163163   static void set_genesis_vdp_palwrite_base(device_t &device, int palwrite_base);
164164
165165   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
167167   int m_palwrite_base; // if we want to write to the actual MAME palette..
168168
169169   DECLARE_READ16_MEMBER( megadriv_vdp_r );
r15975r15976
228228   UINT16* m_cram;
229229   UINT16* m_vsram;
230230   /* The VDP keeps a 0x400 byte on-chip cache of the Sprite Attribute Table
231      to speed up processing, Castlevania Bloodlines abuses this on the upside down level */
231       to speed up processing, Castlevania Bloodlines abuses this on the upside down level */
232232   UINT16* m_internal_sprite_attribute_table;
233233
234234   // these are used internally by the VDP to schedule when after the start of a scanline
src/mame/machine/kaneko_calc3.c
r15975r15976
1212/*
1313    MCU Tasks:
1414
15   - Read Dipswitch
15    - Read Dipswitch
1616    - Read / Write the EEPROM
1717    - Supply code / data snippets to the 68000 by decrypting them from ROM
1818
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
2222*/
2323
2424#include "emu.h"
src/mame/machine/fd1094.c
r15975r15976
1010
1111****************************************************************************
1212
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).
1818
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.
2121
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.
3030
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.
4040
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.
4747
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
6262
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.
7474
7575
7676
77   There is still uncertainty about the assignment of two global key bits.
77    There is still uncertainty about the assignment of two global key bits.
7878
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
8989
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
100100
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
111111
112112
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.
117117
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:
121121
122       temp = A * val;
123       val' = temp + (temp << 16);
122        temp = A * val;
123        val' = temp + (temp << 16);
124124
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.
128128
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:
132132
133   void genkey(UINT32 seed, UINT8 *output)
134   {
135       int bytenum;
133    void genkey(UINT32 seed, UINT8 *output)
134    {
135        int bytenum;
136136
137       for (bytenum = 4; bytenum < 8192; bytenum++)
138       {
139           UINT8 byteval;
137        for (bytenum = 4; bytenum < 8192; bytenum++)
138        {
139            UINT8 byteval;
140140
141           seed = seed * 0x29;
142           seed += seed << 16;
141            seed = seed * 0x29;
142            seed += seed << 16;
143143
144           byteval = (~seed >> 16) & 0x3f;
145           byteval |= (bytenum < 0x1000) ? 0x80 : 0x40;
144            byteval = (~seed >> 16) & 0x3f;
145            byteval |= (bytenum < 0x1000) ? 0x80 : 0x40;
146146
147           output[bytenum] = byteval;
148       }
149   }
147            output[bytenum] = byteval;
148        }
149    }
150150
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.
160160
161161
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.
169169
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".
173173
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.
177177
178178
179   summary:
180   --------
179    summary:
180    --------
181181
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)
278278
279   ----
279    ----
280280
281   Bad CPUs that gave some more information about the global key:
281    Bad CPUs that gave some more information about the global key:
282282
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)
290290
291   ----
291    ----
292292
293   Notes:
293    Notes:
294294
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 }
301301
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
340340
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
360360
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
373373
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
378378
379     400: 4e71            nop
380     402: 4e73            rte
379      400: 4e71            nop
380      402: 4e73            rte
381381
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
386386
387     400: 4e71            nop
388     402: 4e73            rte
387      400: 4e71            nop
388      402: 4e73            rte
389389
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
394394
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
406406
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
410410
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
416416
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
421421
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
426426
427427*****************************************************************************/
428428
r15975r15976
431431
432432
433433//**************************************************************************
434//   CONSTANTS
434//  CONSTANTS
435435//**************************************************************************
436436
437437// device type definition
r15975r15976
531531
532532
533533//**************************************************************************
534//   DECRYPTION CACHE HELPER
534//  DECRYPTION CACHE HELPER
535535//**************************************************************************
536536
537537//-------------------------------------------------
r15975r15976
562562
563563//-------------------------------------------------
564564//  configure - configure the address and size
565//   of the region we are caching
565//  of the region we are caching
566566//-------------------------------------------------
567567
568568void fd1094_decryption_cache::configure(offs_t baseaddress, UINT32 size, offs_t rgnoffset)
r15975r15976
580580
581581//-------------------------------------------------
582582//  decrypted_opcodes - return a pointer to the
583//   decrypted opcodes for the given state
583//  decrypted opcodes for the given state
584584//-------------------------------------------------
585585
586586UINT16 *fd1094_decryption_cache::decrypted_opcodes(UINT8 state)
r15975r15976
598598
599599
600600//**************************************************************************
601//   CORE IMPLEMENTATION
601//  CORE IMPLEMENTATION
602602//**************************************************************************
603603
604604//-------------------------------------------------
r15975r15976
625625      m_masked_opcodes_lookup[0][opcode >> 4] |= 1 << ((opcode >> 1) & 7);
626626      m_masked_opcodes_lookup[1][opcode >> 4] |= 1 << ((opcode >> 1) & 7);
627627   }
628   
628
629629   // add some more opcodes for the more aggressive table
630630   for (int opcode = 0; opcode < 65536; opcode += 2)
631631      if ((opcode & 0xff80) == 0x4e80 || (opcode & 0xf0f8) == 0x50c8 || (opcode & 0xf000) == 0x6000)
r15975r15976
634634
635635
636636//-------------------------------------------------
637//  change_state - set the current state of the
638//   chip
637//  change_state - set the current state of the
638//  chip
639639//-------------------------------------------------
640640
641641void fd1094_device::change_state(int newstate)
r15975r15976
671671
672672
673673//**************************************************************************
674//   DEVICE OVERRIDES
674//  DEVICE OVERRIDES
675675//**************************************************************************
676676
677677//-------------------------------------------------
r15975r15976
682682{
683683   // start the base device
684684   m68000_device::device_start();
685   
685
686686   // find the key
687687   m_key = memregion("key")->base();
688688   if (m_key == NULL)
r15975r15976
694694      m_srcbase = reinterpret_cast<UINT16 *>(region()->base());
695695      m_srcbytes = region()->bytes();
696696   }
697   
697
698698   // if no ROM region, see if there's a memory share with our name
699699   else
700700   {
r15975r15976
705705         m_srcbytes = share->bytes();
706706      }
707707   }
708   
708
709709   // if we got nothing, error
710710   if (m_srcbase == NULL)
711711      throw emu_fatalerror("FD1094 found no data to decrypt!");
r15975r15976
722722   m68k_set_cmpild_callback(this, &fd1094_device::cmp_callback);
723723   m68k_set_rte_callback(this, &fd1094_device::rte_callback);
724724   device_set_irq_callback(this, &fd1094_device::irq_callback);
725   
725
726726   // save state
727727   save_item(NAME(m_state));
728728   save_item(NAME(m_irqmode));
r15975r15976
757757
758758
759759//**************************************************************************
760//   INTERNAL HELPERS
760//  INTERNAL HELPERS
761761//**************************************************************************
762762
763763//-------------------------------------------------
764764//  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)
768768//-------------------------------------------------
769769
770770UINT16 fd1094_device::decrypt_one(offs_t address, UINT16 val, const UINT8 *main_key, UINT8 state, bool vector_fetch)
r15975r15976
821821      gkey3 ^= 0x02;   // key_0a invert
822822      gkey3 ^= 0x40;   // global_swap3
823823   }
824   
824
825825   // for address xx0000-xx0006 (but only if >= 000008), use key xx2000-xx2006
826826   UINT8 mainkey;
827827   if ((address & 0x0ffc) == 0 && address >= 4)
828828      mainkey = main_key[(address & 0x1fff) | 0x1000];
829829   else
830830      mainkey = main_key[address & 0x1fff];
831     
831
832832   UINT8 key_F;
833833   if (address & 0x1000)   key_F = BIT(mainkey,7);
834834   else               key_F = BIT(mainkey,6);
r15975r15976
956956
957957//-------------------------------------------------
958958//  default_state_change - handle state changes
959//   for standard cases
959//  for standard cases
960960//-------------------------------------------------
961961
962962void fd1094_device::default_state_change(UINT8 state)
r15975r15976
967967
968968
969969//**************************************************************************
970//   STATIC CALLBACKS
970//  STATIC CALLBACKS
971971//**************************************************************************
972972
973973//-------------------------------------------------
974//  cmp_callback - callback for CMP.L instructions
975//   (state change)
974//  cmp_callback - callback for CMP.L instructions
975//  (state change)
976976//-------------------------------------------------
977977
978978void fd1094_device::cmp_callback(device_t *device, UINT32 val, UINT8 reg)
r15975r15976
983983
984984
985985//-------------------------------------------------
986//  irq_callback - callback when the FD1094 enters
987//   interrupt code
986//  irq_callback - callback when the FD1094 enters
987//  interrupt code
988988//-------------------------------------------------
989989
990990IRQ_CALLBACK( fd1094_device::irq_callback )
r15975r15976
996996
997997//-------------------------------------------------
998998//  rte_callback - callback when an RTE instruction
999//   is encountered
999//  is encountered
10001000//-------------------------------------------------
10011001
10021002void fd1094_device::rte_callback(device_t *device)
src/mame/machine/kaneko_toybox.c
r15975r15976
11/* Kaneko 'Toybox' protection
2
2
33 the following chips have been seen
44
55TBSOP01 is a NEC uPD78324 series MCU with 32K internal rom & 1024 bytes of ram
r15975r15976
141494  Bonk's Adventure             TOYBOX?            TBSOP01
151594  Blood Warrior                TOYBOX?            TBS0P01 452 9339PK001
161694  Great 1000 Miles Rally       TOYBOX                                                  "MM0525-TOYBOX199","USMM0713-TB1994 "
1794  Great 1000 Miles Rally EV/US TOYBOX                 
1794  Great 1000 Miles Rally EV/US TOYBOX
181895  Great 1000 Miles Rally 2     TOYBOX      KANEKO TBSOP02 454 9451MK002 (74 pin PQFP)  "USMM0713-TB1994 "
191995  Jackie Chan                  TOYBOX                                                  "USMM0713-TB1994 "
202095  Gals Panic 3                 TOYBOX?            TBSOP01
r15975r15976
2222 todo:
2323
2424 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? )
2727
2828
2929MCU parameters:
r15975r15976
3939    - 0x03: read DSW
4040    - 0x02: load game settings \ stored in ATMEL AT93C46 chip,
4141    - 0x42: save game settings / 128 bytes serial EEPROM
42   - 0x43: restore eeprom defaults (from internal ROM or data ROM?)
42    - 0x43: restore eeprom defaults (from internal ROM or data ROM?)
4343
4444*/
4545
r15975r15976
208208         }
209209
210210         logerror("%s : MCU executed command: %04X %04X (load NVRAM settings)\n", machine.describe_context(), mcu_command, mcu_offset*2);
211   
211
212212      }
213213      break;
214214
r15975r15976
231231         if (m_gametype == GAME_BONK)
232232         {
233233            //memcpy(m_nvram_save, bonkadv_mcu_43, sizeof(bonkadv_mcu_43));
234           
235           
234
235
236236            address_space *eeprom_space = machine.device<eeprom_device>(":eeprom")->space();
237237            UINT8* nvdat = (UINT8*)&bonkadv_mcu_43[0];
238238            for (int i=0;i<0x80;i++)
src/mame/machine/fd1094.h
r15975r15976
1717
1818
1919//**************************************************************************
20//   CONSTANTS
20//  CONSTANTS
2121//**************************************************************************
2222
2323// device type definition
r15975r15976
2626
2727
2828//**************************************************************************
29//   TYPE DEFINITIONS
29//  TYPE DEFINITIONS
3030//**************************************************************************
3131
3232class fd1094_device;
r15975r15976
3939public:
4040   // construction/destruction
4141   fd1094_decryption_cache(fd1094_device &fd1094);
42   
42
4343   // getters
4444   fd1094_device &fd1094() const { return m_fd1094; }
4545   UINT16 *decrypted_opcodes(UINT8 state);
46   
46
4747   // operations
4848   void reset();
4949   void configure(offs_t baseaddress, UINT32 size, offs_t rgnoffset);
r15975r15976
5151protected:
5252   // internal state
5353   fd1094_device &         m_fd1094;
54   UINT32               m_baseaddress;   
54   UINT32               m_baseaddress;
5555   UINT32               m_size;
5656   UINT32               m_rgnoffset;
57   dynamic_array<UINT16>    m_decrypted_opcodes[256];
57   dynamic_array<UINT16>   m_decrypted_opcodes[256];
5858};
5959
6060
r15975r15976
6868
6969   // construction/destruction
7070   fd1094_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
71   
71
7272   // explicit decryption helpers
7373   void decrypt(offs_t baseaddr, UINT32 size, offs_t regionoffs, UINT16 *opcodesptr, UINT8 state) { decrypt(baseaddr, size, m_srcbase + regionoffs/2, opcodesptr, state); }
7474
r15975r15976
8484      STATE_IRQ = 0x200,
8585      STATE_RTE = 0x300
8686   };
87   
87
8888protected:
8989   // device overrides
9090   virtual void device_start();
r15975r15976
100100   static void cmp_callback(device_t *device, UINT32 val, UINT8 reg);
101101   static IRQ_CALLBACK( irq_callback );
102102   static void rte_callback(device_t *device);
103   
103
104104   // internal state
105105   UINT8               m_state;
106106   bool               m_irqmode;
r15975r15976
109109   UINT16 *            m_srcbase;
110110   UINT32               m_srcbytes;
111111   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
114114   // static tables
115115   static const UINT16 s_masked_opcodes[];
116116};
src/mame/machine/konppc.c
r15975r15976
216216{
217217   if (offset >= 2)
218218   {
219      fatalerror("dsp_comm_w: %08X, %08X", data, offset);
219      fatalerror("dsp_comm_w: %08X, %08X\n", data, offset);
220220   }
221221
222222   switch (cgboard_type)
src/mame/machine/segaic16.c
r15975r15976
4141
4242
4343//**************************************************************************
44//   DEBUGGING
44//  DEBUGGING
4545//**************************************************************************
4646
4747#define LOG_MEMORY_MAP   (0)
r15975r15976
5252
5353
5454//**************************************************************************
55//   CONSTANTS
55//  CONSTANTS
5656//**************************************************************************
5757
5858// device type definition
r15975r15976
6464
6565
6666//**************************************************************************
67//   MISC HELPERS
67//  MISC HELPERS
6868//**************************************************************************
6969
7070READ16_HANDLER( segaic16_open_bus_r )
r15975r15976
9494
9595
9696//**************************************************************************
97//   315-5195 MEMORY MAPPER
97//  315-5195 MEMORY MAPPER
9898//**************************************************************************
9999
100100//-------------------------------------------------
r15975r15976
136136
137137
138138//-------------------------------------------------
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
141141//-------------------------------------------------
142142
143143void sega_315_5195_mapper_device::static_set_sound_readwrite(device_t &device, sound_read_delegate read, sound_write_delegate write)
r15975r15976
292292      if (!whandler.isnull()) mame_printf_debug(" with handler=%s", whandler.name());
293293      mame_printf_debug("\n");
294294   }
295   
295
296296   // don't map if the start is past the end of the ROM region
297297   offs_t romsize = m_cpu->region()->bytes();
298298   if (rgnoffset < romsize)
r15975r15976
309309      memory_bank *bank = owner()->membank(bank_name);
310310      UINT8 *memptr = m_cpu->region()->base() + rgnoffset;
311311      bank->set_base(memptr);
312     
312
313313      // remember this bank, and decrypt if necessary
314314      m_banks[m_curregion].set(bank, info.start, romend, rgnoffset, memptr);
315315   }
r15975r15976
322322
323323//-------------------------------------------------
324324//  map_as_ram - map a region as RAM, with an
325//   optional write handler
325//  optional write handler
326326//-------------------------------------------------
327327
328328void sega_315_5195_mapper_device::map_as_ram(UINT32 offset, UINT32 length, offs_t mirror, const char *bank_share_name, write16_delegate whandler)
r15975r15976
336336      if (!whandler.isnull()) mame_printf_debug(" with handler=%s", whandler.name());
337337      mame_printf_debug("\n");
338338   }
339   
339
340340   // map now
341341   m_space->install_read_bank(info.start, info.end, 0, info.mirror, bank_share_name);
342342
r15975r15976
345345      m_space->install_write_handler(info.start, info.end, 0, info.mirror, whandler);
346346   else
347347      m_space->install_write_bank(info.start, info.end, 0, info.mirror, bank_share_name);
348   
348
349349   // configure the bank
350350   memory_bank *bank = owner()->membank(bank_share_name);
351351   bank->set_base(owner()->memshare(bank_share_name)->ptr());
r15975r15976
356356
357357
358358//-------------------------------------------------
359//  map_as_handler - map a region as a pair of
359//  map_as_handler - map a region as a pair of
360360//  read write handlers
361361//-------------------------------------------------
362362
r15975r15976
372372      if (!whandler.isnull()) mame_printf_debug(" write=%s", whandler.name());
373373      mame_printf_debug("\n");
374374   }
375   
375
376376   // install read/write handlers
377377   if (!rhandler.isnull())
378378      m_space->install_read_handler(info.start, info.end, 0, info.mirror, rhandler);
r15975r15976
383383   m_banks[m_curregion].clear();
384384}
385385
386   
386
387387//-------------------------------------------------
388388//  configure_explicit - explicitly configure the
389//   memory map
389//  memory map
390390//-------------------------------------------------
391391
392392void sega_315_5195_mapper_device::configure_explicit(const UINT8 *map_data)
r15975r15976
398398
399399//-------------------------------------------------
400400//  fd1094_state_change - handle notifications
401//   of state changes
401//  of state changes
402402//-------------------------------------------------
403403
404404void sega_315_5195_mapper_device::fd1094_state_change(UINT8 state)
r15975r15976
424424   m_cpu = siblingdevice<m68000_device>(m_cputag);
425425   if (m_cpu == NULL)
426426      throw emu_fatalerror("Unable to find sibling device '%s'", m_cputag);
427   
427
428428   // if we are mapping an FD1089, tell all the banks
429429   fd1089_base_device *fd1089 = dynamic_cast<fd1089_base_device *>(m_cpu);
430430   if (fd1089 != NULL)
r15975r15976
444444   m_space = m_cpu->space(AS_PROGRAM);
445445   if (m_space == NULL)
446446      throw emu_fatalerror("Unable to find program address space on device '%s'", m_cputag);
447   
447
448448   // register for saves
449449   save_item(NAME(m_regs));
450450}
r15975r15976
470470
471471//-------------------------------------------------
472472//  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
475475//-------------------------------------------------
476476
477477void sega_315_5195_mapper_device::compute_region(region_info &info, UINT8 index, UINT32 length, UINT32 mirror, UINT32 offset)
478478{
479479   static const offs_t region_size_map[4] = { 0x00ffff, 0x01ffff, 0x07ffff, 0x1fffff };
480480   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;
482482   info.mirror = mirror & info.size_mask;
483483   info.start = info.base + (offset & info.size_mask);
484484   info.end = info.start + MIN(length - 1, info.size_mask);
485485}
486   
487486
487
488488//-------------------------------------------------
489//  update_mapping - remap the entire CPU address
489//  update_mapping - remap the entire CPU address
490490//  space based on updated mappings
491491//-------------------------------------------------
492492
r15975r15976
509509
510510
511511//**************************************************************************
512//   DECRYPT BANK HELPER CLASS
512//  DECRYPT BANK HELPER CLASS
513513//**************************************************************************
514514
515515//-------------------------------------------------
r15975r15976
517517//-------------------------------------------------
518518
519519sega_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),
523523     m_rgnoffs(~0),
524524     m_srcptr(NULL),
525525     m_fd1089(NULL),
r15975r15976
543543
544544//-------------------------------------------------
545545//  set_decrypt - configure the decryption target
546//   CPU
546//  CPU
547547//-------------------------------------------------
548548
549549void sega_315_5195_mapper_device::decrypt_bank::set_decrypt(fd1089_base_device *fd1089)
550550{
551551   // set the fd1089 pointer
552552   m_fd1089 = fd1089;
553   
553
554554   // clear out all fd1094 stuff
555555   delete m_fd1094_cache;
556556   m_fd1094_cache = NULL;
r15975r15976
560560{
561561   // set the fd1094 pointer and allocate a decryption cache
562562   m_fd1094_cache = global_alloc(fd1094_decryption_cache(*fd1094));
563   
563
564564   // clear out all fd1089 stuff
565565   m_fd1089 = NULL;
566566   m_fd1089_decrypted.reset();
r15975r15976
569569
570570//-------------------------------------------------
571571//  set - set the parameters of this bank after
572//   a change
572//  a change
573573//-------------------------------------------------
574574
575575void sega_315_5195_mapper_device::decrypt_bank::set(memory_bank *bank, offs_t start, offs_t end, offs_t rgnoffs, UINT8 *src)
r15975r15976
577577   // ignore if not encrypted
578578   if (m_fd1089 == NULL && m_fd1094_cache == NULL)
579579      return;
580   
580
581581   // ignore if nothing is changing
582582   if (bank == m_bank && start == m_start && end == m_end && rgnoffs == m_rgnoffs && src == m_srcptr)
583583      return;
r15975r15976
591591   m_end = end;
592592   m_rgnoffs = rgnoffs;
593593   m_srcptr = src;
594   
594
595595   // configure the fd1094 cache
596596   if (m_fd1094_cache != NULL)
597597      m_fd1094_cache->configure(m_start, m_end + 1 - m_start, m_rgnoffs);
r15975r15976
603603
604604//-------------------------------------------------
605605//  update - update the decrypted memory base
606//   if this rom bank has been assigned
606//  if this rom bank has been assigned
607607//-------------------------------------------------
608608
609609void sega_315_5195_mapper_device::decrypt_bank::update()
r15975r15976
611611   // if this isn't a valid state, don't try to do anything
612612   if (m_bank == NULL || m_srcptr == NULL)
613613      return;
614   
614
615615   // fd1089 case
616616   if (m_fd1089 != NULL)
617617   {
r15975r15976
619619      m_fd1089->decrypt(m_start, m_end + 1 - m_start, m_rgnoffs, m_fd1089_decrypted, reinterpret_cast<UINT16 *>(m_srcptr));
620620      m_bank->set_base_decrypted(m_fd1089_decrypted);
621621   }
622   
622
623623   // fd1094 case
624624   if (m_fd1094_cache != NULL)
625625      m_bank->set_base_decrypted(m_fd1094_cache->decrypted_opcodes(m_fd1094_cache->fd1094().state()));
r15975r15976
628628
629629
630630//**************************************************************************
631//   315-5248 MULTIPLIER
631//  315-5248 MULTIPLIER
632632//**************************************************************************
633633
634634//-------------------------------------------------
r15975r15976
652652      // if bit 1 is 0, just return register values
653653      case 0:   return m_regs[0];
654654      case 1:   return m_regs[1];
655     
655
656656      // if bit 1 is 1, return ther results
657657      case 2:   return (INT16(m_regs[0]) * INT16(m_regs[1])) >> 16;
658658      case 3:   return (INT16(m_regs[0]) * INT16(m_regs[1])) & 0xffff;
659659   }
660   
660
661661   // should never get here
662662   return 0xffff;
663663}
r15975r15976
696696
697697
698698//**************************************************************************
699//   315-5249 DIVIDER
699//  315-5249 DIVIDER
700700//**************************************************************************
701701
702702//-------------------------------------------------
r15975r15976
788788      INT32 dividend = INT32((m_regs[0] << 16) | m_regs[1]);
789789      INT32 divisor = INT16(m_regs[2]);
790790      INT32 quotient;
791     
791
792792      // check for divide by 0, signal if we did
793793      if (divisor == 0)
794794      {
r15975r15976
840840
841841
842842//**************************************************************************
843//   315-5250 COMPARE/TIMER
843//  315-5250 COMPARE/TIMER
844844//**************************************************************************
845845
846846//-------------------------------------------------
847//  sega_315_5250_compare_timer_device -
848//   constructor
847//  sega_315_5250_compare_timer_device -
848//  constructor
849849//-------------------------------------------------
850850
851851sega_315_5250_compare_timer_device::sega_315_5250_compare_timer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r15975r15976
867867
868868
869869//-------------------------------------------------
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
872872//-------------------------------------------------
873873
874874void sega_315_5250_compare_timer_device::static_set_sound_write(device_t &device, sound_write_delegate write)
src/mame/machine/segaic16.h
r15975r15976
132132      // construction/destruction
133133      decrypt_bank();
134134      ~decrypt_bank();
135   
135
136136      // configuration
137137      void set_decrypt(fd1089_base_device *fd1089);
138138      void set_decrypt(fd1094_device *fd1094);
r15975r15976
253253   // internal helpers
254254   void execute(bool update_history = false);
255255   void interrupt_ack() { if (!m_timer_ack.isnull()) m_timer_ack(); }
256   
256
257257   // configuration
258258   timer_ack_delegate         m_timer_ack;
259259   sound_write_delegate      m_sound_write;
src/mame/machine/model3.c
r15975r15976
333333         return 0;
334334
335335      default:
336         fatalerror("RTC-72421: Unknown reg %02X", reg);
336         fatalerror("RTC-72421: Unknown reg %02X\n", reg);
337337         return 0;
338338   }
339339}
src/mame/machine/snes.c
r15975r15976
19911991
19921992/* for mame we use an init, maybe we will need more for the different games */
19931993DRIVER_INIT_MEMBER(snes_state,snes)
1994{   
1994{
19951995   address_space *space = machine().device("maincpu")->memory().space(AS_PROGRAM);
19961996   UINT16 total_blocks, read_blocks;
19971997   UINT8 *rom;
src/mame/machine/cdi070.c
r15975r15976
5656            scc68070->timers.timer0_timer->adjust(period);
5757            break;
5858        default:
59            fatalerror( "Unsupported timer channel to scc68070_set_timer_callback!" );
59            fatalerror( "Unsupported timer channel to scc68070_set_timer_callback!\n" );
6060    }
6161}
6262
src/mame/includes/senjyo.h
r15975r15976
3131   int m_single_rate;
3232   int m_single_volume;
3333   int m_sound_state;
34   
34
3535   required_device<dac_device> m_dac;
3636
3737   required_shared_ptr<UINT8> m_spriteram;
src/mame/includes/segaxbd.h
r15975r15976
6868      memset(m_iochip_regs, 0, sizeof(m_iochip_regs));
6969   }
7070
71   // compare/timer chip callbacks   
71   // compare/timer chip callbacks
7272   void timer_ack_callback();
7373   void sound_data_w(UINT8 data);
74   
74
7575   // YM2151 chip callbacks
7676   WRITE_LINE_MEMBER( sound_cpu_irq );
7777
r15975r15976
8484   READ16_MEMBER( iochip_1_r );
8585   WRITE16_MEMBER( iochip_1_w );
8686   WRITE16_MEMBER( iocontrol_w );
87   
87
8888   // game-specific main CPU read/write handlers
8989   WRITE16_MEMBER( loffire_sync0_w );
9090   READ16_MEMBER( rascot_excs_r );
9191   WRITE16_MEMBER( rascot_excs_w );
9292   READ16_MEMBER( smgp_excs_r );
9393   WRITE16_MEMBER( smgp_excs_w );
94   
94
9595   // sound Z80 CPU read/write handlers
9696   READ8_MEMBER( sound_data_r );
97   
97
9898   // game-specific driver init
9999   DECLARE_DRIVER_INIT(generic);
100100   DECLARE_DRIVER_INIT(aburner2);
r15975r15976
119119      TID_IRQ2_GEN,
120120      TID_SOUND_WRITE
121121   };
122   
122
123123   // device overrides
124124   virtual void machine_reset();
125125   virtual void video_start();
r15975r15976
148148
149149   // configuration
150150   bool         m_gprider_hack;
151   bool          m_adc_reverse[8];
151   bool         m_adc_reverse[8];
152152   ioread_delegate   m_iochip_custom_io_r[2][8];
153153   iowrite_delegate m_iochip_custom_io_w[2][8];
154   UINT8          m_road_priority;
155   
154   UINT8         m_road_priority;
155
156156   // internal state
157157   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];
161161
162162   // game-specific state
163163   UINT16 *      m_loffire_sync;
src/mame/includes/dynax.h
r15975r15976
427427   DECLARE_DRIVER_INIT(maya);
428428   DECLARE_DRIVER_INIT(rongrong);
429429   DECLARE_DRIVER_INIT(momotaro);
430   
430
431431};
432432
433433//----------- defined in drivers/dynax.c -----------
src/mame/includes/megadriv.h
r15975r15976
189189      m_protcount = 0;
190190      return ret;
191191   }
192   
192
193193   DECLARE_DRIVER_INIT(aladmdb);
194194   DECLARE_DRIVER_INIT(mk3mdb);
195195   DECLARE_DRIVER_INIT(ssf2mdb);
196196   DECLARE_DRIVER_INIT(srmdb);
197   DECLARE_DRIVER_INIT(topshoot);   
197   DECLARE_DRIVER_INIT(topshoot);
198198   DECLARE_DRIVER_INIT(puckpkmn);
199199};
200200
r15975r15976
228228
229229   /* sound-related variables */
230230   UINT8      m_sound_banks;      /* number of sound banks */
231   
231
232232   DECLARE_DRIVER_INIT(c2boot);
233233   DECLARE_DRIVER_INIT(bloxeedc);
234234   DECLARE_DRIVER_INIT(columns);
r15975r15976
266266   m_vdp1(*this, "vdp1"),
267267   m_bioscpu(*this, "mtbios")
268268
269   
269
270270   { }
271271
272272   UINT32 m_bios_mode;  // determines whether ROM banks or Game data
r15975r15976
364364   UINT8 m_jcart_io_data[2];
365365
366366   megadriv_cart m_md_cart;
367   
367
368368   DECLARE_DRIVER_INIT(hshavoc);
369369   DECLARE_DRIVER_INIT(topshoot);
370   
370
371371   DECLARE_DRIVER_INIT(genesis);
372372   DECLARE_DRIVER_INIT(mess_md_common);
373373   DECLARE_DRIVER_INIT(_32x);
src/mame/includes/segaybd.h
r15975r15976
100100protected:
101101   // internal types
102102   typedef delegate<void (UINT16)> output_delegate;
103   
103
104104   // timer IDs
105105   enum
106106   {
107107      TID_IRQ2_GEN,
108108      TID_SOUND_WRITE
109109   };
110   
110
111111   // device overrides
112112   virtual void machine_reset();
113113   virtual void video_start();
r15975r15976
127127   output_delegate   m_output_cb2;
128128
129129   // internal state
130   UINT16          m_pdrift_bank;
130   UINT16         m_pdrift_bank;
131131   emu_timer *      m_scanline_timer;
132   UINT8          m_analog_data[4];
132   UINT8         m_analog_data[4];
133133   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];
137137   bitmap_ind16   m_tmp_bitmap;
138138};
src/mame/includes/segaorun.h
r15975r15976
8383   DECLARE_READ16_MEMBER( misc_io_r );
8484   DECLARE_WRITE16_MEMBER( misc_io_w );
8585   DECLARE_WRITE16_MEMBER( nop_w );
86   
86
8787   // Z80 sound CPU read/write handlers
8888   DECLARE_READ8_MEMBER( sound_data_r );
8989
r15975r15976
111111      TID_IRQ2_GEN,
112112      TID_SOUND_WRITE
113113   };
114   
114
115115   // device overrides
116116   virtual void machine_reset();
117117   virtual void video_start();
r15975r15976
126126   DECLARE_WRITE16_MEMBER( outrun_custom_io_w );
127127   DECLARE_READ16_MEMBER( shangon_custom_io_r );
128128   DECLARE_WRITE16_MEMBER( shangon_custom_io_w );
129   
129
130130   // devices
131131   required_device<sega_315_5195_mapper_device> m_mapper;
132132   required_device<m68000_device> m_maincpu;
r15975r15976
137137
138138   // memory
139139   required_shared_ptr<UINT16> m_workram;
140   
140
141141   // 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;
144144   const UINT8 *      m_custom_map;
145145   bool            m_shangon_video;
146146
147147   // internal state
148148   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;
152152};
src/mame/includes/cps1.h
r15975r15976
191191   DECLARE_DRIVER_INIT(cps2crpt);
192192   DECLARE_DRIVER_INIT(ssf2tb);
193193   DECLARE_DRIVER_INIT(pzloop2);
194   DECLARE_DRIVER_INIT(gigaman2);   
194   DECLARE_DRIVER_INIT(gigaman2);
195195};
196196
197197/*----------- defined in drivers/cps1.c -----------*/
src/mame/includes/kickgoal.h
r15975r15976
4545
4646   int m_bg_base;
4747   int m_bg_mask;
48   
48
4949   int m_bg2_base;
5050   int m_bg2_mask;
5151   int m_bg2_region;
src/mame/includes/galaxian.h
r15975r15976
217217   DECLARE_DRIVER_INIT(anteateruk);
218218   DECLARE_DRIVER_INIT(superbon);
219219   DECLARE_DRIVER_INIT(calipso);
220   DECLARE_DRIVER_INIT(moonwar);   
220   DECLARE_DRIVER_INIT(moonwar);
221221};
222222
223223
src/mame/includes/scramble.h
r15975r15976
3939   DECLARE_DRIVER_INIT(ad2083);
4040   DECLARE_DRIVER_INIT(devilfsh);
4141   DECLARE_DRIVER_INIT(mrkougar);
42   
42
4343   DECLARE_DRIVER_INIT(scobra);
4444   DECLARE_DRIVER_INIT(stratgyx);
4545   DECLARE_DRIVER_INIT(tazmani2);
r15975r15976
5151   DECLARE_DRIVER_INIT(hustler);
5252   DECLARE_DRIVER_INIT(hustlerd);
5353   DECLARE_DRIVER_INIT(billiard);
54};                     
54};
5555
5656
5757/*----------- defined in machine/scramble.c -----------*/
src/mame/includes/pgm.h
r15975r15976
129129   UINT8         m_asic3_h1;
130130   UINT8         m_asic3_h2;
131131   UINT16        m_asic3_hold;
132   
132
133133   DECLARE_DRIVER_INIT(orlegend);
134134};
135135
r15975r15976
215215   required_shared_ptr<UINT32> m_arm7_shareram;
216216
217217   cpu_device *m_prot;
218   
218
219219   DECLARE_DRIVER_INIT(kov2);
220220   DECLARE_DRIVER_INIT(kov2p);
221221   DECLARE_DRIVER_INIT(martmast);
r15975r15976
244244   required_shared_ptr<UINT32> m_arm_ram;
245245
246246   cpu_device *m_prot;
247   
247
248248   DECLARE_DRIVER_INIT(theglad);
249249   DECLARE_DRIVER_INIT(svg);
250250   DECLARE_DRIVER_INIT(svgpcb);
251251   DECLARE_DRIVER_INIT(killbldp);
252252   DECLARE_DRIVER_INIT(dmnfrnt);
253   DECLARE_DRIVER_INIT(happy6);   
253   DECLARE_DRIVER_INIT(happy6);
254254};
255255
256256
r15975r15976
290290   UINT16        m_olds_bs;
291291   UINT16        m_olds_cmd3;
292292   required_shared_ptr<UINT16> m_sharedprotram;
293   
293
294294   DECLARE_DRIVER_INIT(olds);
295295};
296296
src/mame/includes/snes.h
r15975r15976
491491   DECLARE_DIRECT_UPDATE_MEMBER(snes_spc_direct);
492492   DECLARE_DIRECT_UPDATE_MEMBER(snes_direct);
493493   DECLARE_DRIVER_INIT(snes);
494   DECLARE_DRIVER_INIT(snes_hirom);   
494   DECLARE_DRIVER_INIT(snes_hirom);
495495   DECLARE_DRIVER_INIT(snes_mess);
496496   DECLARE_DRIVER_INIT(snesst);
497497};
src/mame/includes/bfm_sc45.h
r15975r15976
5757   DECLARE_WRITE16_MEMBER(sc4_mem_w);
5858
5959   DECLARE_READ16_MEMBER(sc4_cs1_r);
60   
60
6161   DECLARE_DRIVER_INIT(sc4);
6262   DECLARE_DRIVER_INIT(sc4mbus);
6363   DECLARE_DRIVER_INIT(sc4cvani);
src/mame/includes/stv.h
r15975r15976
189189   DECLARE_DRIVER_INIT(znpwfv);
190190   DECLARE_DRIVER_INIT(othellos);
191191   DECLARE_DRIVER_INIT(mausuke);
192   
192
193193   DECLARE_DRIVER_INIT(saturnus);
194194   DECLARE_DRIVER_INIT(saturneu);
195195   DECLARE_DRIVER_INIT(saturnjp);
src/mame/includes/galaga.h
r15975r15976
7676   INT32 m_xevious_bs[2];
7777   DECLARE_DRIVER_INIT(xevious);
7878   DECLARE_DRIVER_INIT(xevios);
79   DECLARE_DRIVER_INIT(battles);   
79   DECLARE_DRIVER_INIT(battles);
8080};
8181
8282
src/mame/includes/segas16a.h
r15975r15976
7373        m_read_port(0),
7474        m_mj_input_num(0)
7575   { }
76   
76
7777   // PPI read/write callbacks
7878   DECLARE_WRITE8_MEMBER( misc_control_w );
7979   DECLARE_WRITE8_MEMBER( tilemap_sound_w );
r15975r15976
8383   DECLARE_WRITE16_MEMBER( standard_io_w );
8484   DECLARE_READ16_MEMBER( misc_io_r );
8585   DECLARE_WRITE16_MEMBER( misc_io_w );
86   
86
8787   // Z80 sound CPU read/write handlers
8888   DECLARE_READ8_MEMBER( sound_data_r );
8989   DECLARE_WRITE8_MEMBER( n7751_command_w );
r15975r15976
131131      TID_INIT_I8751,
132132      TID_PPI_WRITE
133133   };
134   
134
135135   // driver overrides
136136   virtual void video_start();
137137   virtual void machine_reset();
r15975r15976
140140   // I8751 simulations
141141   void dumpmtmt_i8751_sim();
142142   void quartet_i8751_sim();
143   
143
144144   // custom I/O handlers
145145   DECLARE_READ16_MEMBER( aceattaa_custom_io_r );
146146   DECLARE_READ16_MEMBER( mjleague_custom_io_r );
r15975r15976
159159   optional_device<i8243_device> m_n7751_i8243;
160160   required_device<nvram_device> m_nvram;
161161
162   // memory pointers   
162   // memory pointers
163163   required_shared_ptr<UINT16> m_workram;
164164
165165   // configuration
r15975r15976
169169   lamp_changed_delegate   m_lamp_changed_w;
170170
171171   // 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;
180180};
src/mame/includes/neogeo.h
r15975r15976
200200   DECLARE_DRIVER_INIT(kog);
201201   DECLARE_DRIVER_INIT(lans2004);
202202   DECLARE_DRIVER_INIT(sbp);
203   DECLARE_DRIVER_INIT(mvs);   
203   DECLARE_DRIVER_INIT(mvs);
204204   void mvs_install_protection(device_image_interface& image);
205205};
206206
src/mame/includes/segahang.h
r15975r15976
6767   DECLARE_WRITE8_MEMBER( tilemap_sound_w );
6868   DECLARE_WRITE8_MEMBER( sub_control_adc_w );
6969   DECLARE_READ8_MEMBER( adc_status_r );
70   
70
7171   // main CPU read/write handlers
7272   DECLARE_READ16_MEMBER( hangon_io_r );
7373   DECLARE_WRITE16_MEMBER( hangon_io_w );
r15975r15976
100100      TID_INIT_I8751,
101101      TID_PPI_WRITE
102102   };
103   
103
104104   // driver overrides
105105   virtual void video_start();
106106   virtual void machine_reset();
r15975r15976
116116   optional_device<i8751_device> m_mcu;
117117   required_device<i8255_device> m_i8255_1;
118118   required_device<i8255_device> m_i8255_2;
119   
120   // memory pointers   
119
120   // memory pointers
121121   required_shared_ptr<UINT16> m_workram;
122   
122
123123   // configuration
124124   bool               m_sharrier_video;
125125   i8751_sim_delegate      m_i8751_vblank_hook;
126126
127127   // internal state
128   UINT8                m_adc_select;
128   UINT8               m_adc_select;
129129};
src/mame/includes/n64.h
r15975r15976
1919   /* video-related */
2020   n64_rdp *m_rdp;
2121   DECLARE_DRIVER_INIT(aleck64);
22   
22
2323};
2424
2525/*----------- devices -----------*/
src/mame/includes/segas16b.h
r15975r15976
9191   DECLARE_READ16_MEMBER( standard_io_r );
9292   DECLARE_WRITE16_MEMBER( standard_io_w );
9393   DECLARE_WRITE16_MEMBER( atomicp_sound_w );
94   
94
9595   // sound CPU read/write handlers
9696   DECLARE_WRITE8_MEMBER( upd7759_control_w );
9797   DECLARE_READ8_MEMBER( upd7759_status_r );
r15975r15976
107107   DECLARE_DRIVER_INIT(generic_5358_small);
108108   DECLARE_DRIVER_INIT(generic_5797);
109109   DECLARE_DRIVER_INIT(generic_korean);
110   
110
111111   // game-specific driver init
112112   DECLARE_DRIVER_INIT(isgsm);
113113   DECLARE_DRIVER_INIT(tturf_5704);
r15975r15976
133133   DECLARE_DRIVER_INIT(shinobi3_5358);
134134   DECLARE_DRIVER_INIT(goldnaxe_5797);
135135   DECLARE_DRIVER_INIT(altbeas4_5521);
136   
136
137137   // video updates
138138   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
139139
r15975r15976
163163      ROM_BOARD_171_5797,            // 171-5797
164164      ROM_BOARD_KOREAN            // (custom Korean)
165165   };
166   
166
167167   // device overrides
168168   virtual void video_start();
169169   virtual void machine_reset();
170170   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
171171
172   // internal helpers   
172   // internal helpers
173173   void init_generic(segas16b_rom_board rom_board);
174174
175175   // i8751 simulations
r15975r15976
191191   DECLARE_READ16_MEMBER( sdi_custom_io_r );
192192   DECLARE_READ16_MEMBER( sjryuko_custom_io_r );
193193   DECLARE_WRITE16_MEMBER( sjryuko_custom_io_w );
194   
194
195195   // devices
196196   required_device<sega_315_5195_mapper_device> m_mapper;
197197   required_device<m68000_device> m_maincpu;
r15975r15976
205205   optional_device<sega_315_5250_compare_timer_device> m_cmptimer_2;
206206   required_device<nvram_device> m_nvram;
207207
208   // memory pointers   
208   // memory pointers
209209   required_shared_ptr<UINT16> m_workram;
210210
211211   // configuration
212212   segas16b_rom_board   m_romboard;
213213   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;
216216   bool            m_disable_screen_blanking;
217217   const UINT8 *      m_i8751_initial_config;
218218   i8751_sim_delegate   m_i8751_vblank_hook;
219   UINT8             m_atomicp_sound_divisor;
219   UINT8            m_atomicp_sound_divisor;
220220
221221   // 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;
226226};
227227
228228
r15975r15976
279279   virtual void machine_reset();
280280
281281   // configuration
282   UINT8          m_read_xor;
282   UINT8         m_read_xor;
283283   typedef delegate<UINT32 (UINT32)> security_callback_delegate;
284284   security_callback_delegate m_security_callback;
285285
286286   // 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;
299299};
src/mame/includes/segas18.h
r15975r15976
7272      memset(m_wwally_last_x, 0, sizeof(m_wwally_last_x));
7373      memset(m_wwally_last_y, 0, sizeof(m_wwally_last_y));
7474   }
75   
75
7676   // driver init
7777   DECLARE_DRIVER_INIT(ddcrew);
7878   DECLARE_DRIVER_INIT(lghost);
r15975r15976
8080   DECLARE_DRIVER_INIT(generic_5874);
8181   DECLARE_DRIVER_INIT(wwally);
8282   DECLARE_DRIVER_INIT(generic_5987);
83   
83
8484   // memory mapping
8585   void memory_mapper(sega_315_5195_mapper_device &mapper, UINT8 index);
8686   UINT8 mapper_sound_r();
r15975r15976
130130      ROM_BOARD_171_5874,      // 171-5874
131131      ROM_BOARD_171_5987      // 171-5987
132132   };
133   
133
134134   // device overrides
135135   virtual void machine_reset();
136136   virtual void video_start();
137137   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
138138
139   // internal helpers   
139   // internal helpers
140140   void init_generic(segas18_rom_board rom_board);
141141   void set_grayscale(bool enable);
142142   void set_vdp_enable(bool enable);
r15975r15976
151151   required_device<sega_genesis_vdp_device> m_vdp;
152152   required_device<nvram_device> m_nvram;
153153
154   // memory pointers   
154   // memory pointers
155155   required_shared_ptr<UINT16> m_workram;
156   
156
157157   // configuration
158158   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;
162162
163163   // 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;
167167   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
171171   // 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;
176176};
src/mame/mame.mak
r15975r15976
843843   $(DRIVERS)/jpmimpct.o $(VIDEO)/jpmimpct.o \
844844   $(DRIVERS)/pluto5.o \
845845   $(DRIVERS)/jpmsys7.o \
846   $(VIDEO)/awpvid.o \
847   $(MACHINE)/meters.o \
848   $(MACHINE)/steppers.o \
846849
847850$(MAMEOBJ)/kaneko.a: \
848851   $(DRIVERS)/airbustr.o $(VIDEO)/airbustr.o \
r15975r15976
20612064
20622065$(DRIVERS)/jankenmn.o:   $(LAYOUT)/jankenmn.lh
20632066
2067$(DRIVERS)/jpmimpct.o:   $(LAYOUT)/awpvid16.lh
2068
2069$(DRIVERS)/jpmsys5.o:   $(LAYOUT)/awpvid16.lh
2070
20642071$(DRIVERS)/kas89.o:   $(LAYOUT)/kas89.lh
20652072
20662073$(DRIVERS)/kingdrby.o:   $(LAYOUT)/kingdrby.lh
r15975r15976
20852092$(DRIVERS)/mpoker.o:   $(LAYOUT)/mpoker.lh
20862093
20872094$(DRIVERS)/mpu4mod2sw.o:   $(LAYOUT)/connect4.lh \
2088         
2095
20892096$(DRIVERS)/mpu4mod4yam.o: $(LAYOUT)/gamball.lh \
20902097
20912098$(DRIVERS)/mpu4hw.o:   $(LAYOUT)/mpu4.lh \
src/mame/video/st0020.c
r15975r15976
11/* ST0020 - Seta Zooming Sprites + Blitter
2 
2
33  (gdfs also has a tilemap, I don't know if this chip supplies that)
44
55 The ST0032 seems very similar, used by the newer Jockey Club II boards
r15975r15976
4949void st0020_device::device_start()
5050{
5151   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);
5454
5555   for (m_gfx_index = 0; m_gfx_index < MAX_GFX_ELEMENTS; m_gfx_index++)
5656      if (machine().gfx[m_gfx_index] == 0)
r15975r15976
200200}
201201
202202
203   
203
204204/*
205205    Sprites RAM is 0x80000 bytes long. The first 0x2000? bytes hold a list
206206    of sprites to display (the list can be made shorter using an end-of-list
r15975r15976
381381            }
382382         }
383383
384         
384
385385#if 0 /* doesn't compile in a device context (can't use ui_draw_text? */
386386         if (machine.input().code_pressed(KEYCODE_Z))   /* Display some info on each sprite */
387387         {
src/mame/video/st0020.h
r15975r15976
1010   static void set_is_jclub2o(device_t &device, int is_jclub2o);
1111
1212   int m_gfx_index;
13   
13
1414   // see if we can handle the difference between this and the st0032 in here, or if we need another
1515   // device
1616   int m_is_st0032;
17   
17
1818   // per-game hack
1919   int m_is_jclub2;
2020
src/mame/video/scn2674.c
r15975r15976
11/*
2   SCN2674 - Advanced Video Display Controller (AVDC)  (Video Chip)
2    SCN2674 - Advanced Video Display Controller (AVDC)  (Video Chip)
33
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.
66
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.
99
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
1313
1414     a callback function for when the irqs are changed / updated
1515
16    a call from the video start from your video start function
16    a call from the video start from your video start function
1717
18    a call to the scanline function each scanline
18    a call to the scanline function each scanline
1919
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
2321
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
2626*/
2727
2828#include "emu.h"
r15975r15976
3535
3636static void default_scn2674_callback(running_machine &machine)
3737{
38//   logerror("no scn2674_callback\n");
38//  logerror("no scn2674_callback\n");
3939}
4040
4141
r15975r15976
697697      m_linecounter =297;//hold the counter in the vsync point, it's not clear whether this is done or not
698698   }
699699   scn2674_line(machine);
700//   timer.machine().scheduler().synchronize();
700//  timer.machine().scheduler().synchronize();
701701}
702702
703703
src/mame/video/scn2674.h
r15975r15976
1414   static void set_irq_update_callback(device_t &device, s2574_interrupt_callback_func callback);
1515
1616
17//   int m_gfx_index;
18   
17//  int m_gfx_index;
18
1919   DECLARE_READ16_MEMBER( mpu4_vid_scn2674_r );
2020   DECLARE_WRITE16_MEMBER( mpu4_vid_scn2674_w );
2121
src/mame/video/segaorun.c
r15975r15976
4848{
4949   // compute palette info
5050   segaic16_palette_init(0x1000);
51   
51
5252   if (m_shangon_video)
5353   {
5454      // initialize the tile/text layers
src/mame/video/kaneko16.c
r15975r15976
3737      }
3838
3939
40   
40
4141   /* Fill the bitmap with pen 0. This is wrong, but will work most of
4242       the times. To do it right, each pixel should be drawn with pen 0
4343       of the bottomost tile that covers it (which is pretty tricky to do) */
src/mame/video/kaneko_grap2.c
r15975r15976
5959   m_framebuffer_scrollx = 0;
6060   m_framebuffer_enable = 0;
6161   m_regs1_i = 0x0;
62   
62
6363   m_framebuffer_bright1 = 0;
6464   m_framebuffer_bright2 = 0;
6565}
r15975r15976
147147   UINT32 address = m_regs1_address_regs[1]| (m_regs1_address_regs[0]<<16);
148148   UINT8* rledata = memregion(":gfx2")->base();
149149
150//   printf("galpani3_regs1_go_w? %08x\n",address );
150//  printf("galpani3_regs1_go_w? %08x\n",address );
151151   if ((data==0x2000) || (data==0x3000)) gp3_do_rle(address, m_framebuffer, rledata);
152152}
153153
src/mame/video/kaneko_grap2.h
r15975r15976
2222{
2323public:
2424   kaneko_grap2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
25   
2625
26
2727   int m_chipnum; // used to decide where we write the palette
2828
2929   static void set_chipnum(device_t &device, int chipnum);
r15975r15976
4141   UINT16 m_framebuffer_scrollx;
4242   UINT16 m_framebuffer_enable;
4343   int m_regs1_i;
44   
44
4545   UINT16 m_framebuffer_bright1;
4646   UINT16 m_framebuffer_bright2;
4747
4848   UINT16 m_regs1_address_regs[0x2];
49   
49
5050   DECLARE_WRITE16_MEMBER(galpani3_framebuffer1_enable_w) { m_framebuffer_enable = data; }
5151
5252   DECLARE_WRITE16_MEMBER(galpani3_framebuffer1_scrolly_w) { m_framebuffer_scrolly = data; }
src/mame/video/kaneko_tmap.h
r15975r15976
44{
55public:
66   kaneko_view2_tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
7   
7
88   // used to set values when creating device
99   static void set_gfx_region(device_t &device, int region);
1010   static void set_offset(device_t &device, int dx, int dy, int xdim, int ydim);
src/mame/video/kaneko_spr.c
r15975r15976
22
33/*
44    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)
77
88
99    [ 1024 Sprites ]
r15975r15976
1414        sprites on the screen
1515
1616
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.
2222
2323*/
2424
r15975r15976
120120
121121    Each sprite is always stuffed in 4 words. There may be some extra
122122    padding words though
123   
124   Examples are:
125123
124    Examples are:
125
126126    Type 0: shogwarr, blazeon, bakubrkr.
127127    Type 1: gtmr.
128128
r15975r15976
170170   s->flipx      =      (attr & 0x0200);
171171   s->code         +=      (s->y & 1) << 16;   // bloodwar
172172}
173   
173
174174void kaneko_vu002_sprite_device::get_sprite_attributes(struct tempsprite *s, UINT16 attr)
175175{
176176   s->flipy      =      (attr & 0x0001);
r15975r15976
346346   {
347347      int flags;
348348
349      flags = kaneko16_parse_sprite_type012(machine, i,s, spriteram16, spriteram16_bytes);         
349      flags = kaneko16_parse_sprite_type012(machine, i,s, spriteram16, spriteram16_bytes);
350350
351351      if (flags == -1)   // End of Sprites
352352         break;
src/mame/video/kaneko_spr.h
r15975r15976
3131{
3232public:
3333   kaneko16_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock,  device_type type);
34   
34
3535   static void set_altspacing(device_t &device, int spacing);
3636   static void set_fliptype(device_t &device, int fliptype);
3737   static void set_offsets(device_t &device, int xoffs, int yoffs);
r15975r15976
101101public:
102102   kaneko_vu002_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
103103   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; };
105105};
106106
107107extern const device_type KANEKO_VU002_SPRITE;
r15975r15976
111111public:
112112   kaneko_kc002_sprite_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
113113   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; };
115115};
116116
117117extern const device_type KANEKO_KC002_SPRITE;
src/mame/video/segas18.c
r15975r15976
133133   bitmap_ind8 &priority_bitmap = screen.machine().priority_bitmap;
134134   for (int y = cliprect.min_y; y <= cliprect.max_y; y++)
135135   {
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;
138138
139139      UINT16 *dst = &bitmap.pix(y);
140140      UINT8 *pri = &priority_bitmap.pix(y);
r15975r15976
147147            {
148148               switch (pix & 0xc0)
149149               {
150                  case 0x00:               
150                  case 0x00:
151151                     dst[x] = pix + 0x2000; /* 0x2040 - would be shadow? */
152152                     break;
153153                  case 0x40:
src/mame/drivers/docastle.c
r15975r15976
639639   MCFG_SOUND_ADD("sn1", SN76489A_NEW, XTAL_4MHz)
640640   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
641641   MCFG_SOUND_CONFIG(psg_intf)
642   
642
643643   MCFG_SOUND_ADD("sn2", SN76489A_NEW, XTAL_4MHz)
644644   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
645645   MCFG_SOUND_CONFIG(psg_intf)
646   
646
647647   MCFG_SOUND_ADD("sn3", SN76489A_NEW, XTAL_4MHz)
648648   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
649649   MCFG_SOUND_CONFIG(psg_intf)
650   
650
651651   MCFG_SOUND_ADD("sn4", SN76489A_NEW, XTAL_4MHz)
652652   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
653653   MCFG_SOUND_CONFIG(psg_intf)
src/mame/drivers/expro02.c
r15975r15976
508508
509509static MACHINE_RESET( galsnew )
510510{
511//   expro02_state *state = machine.driver_data<expro02_state>();
511//  expro02_state *state = machine.driver_data<expro02_state>();
512512}
513513
514514/*************************************
src/mame/drivers/bfm_sc1.c
r15975r15976
31093109GAME( 198?, sc1bigmt      , 0         , scorpion1_viper   , clatt      , bfm_sc1_state, nocrypt      , 0,       "BFM",      "The Big Match (Bellfruit) (Scorpion 1)", GAME_FLAGS )
31103110GAME( 198?, sc1calyp      , 0         , scorpion1         , scorpion1   , bfm_sc1_state, lotse         , 0,       "BFM/ELAM", "Calypso (Bellfruit) (Dutch) (Scorpion 1)", GAME_FLAGS )
31113111GAME( 198?, sc1carro      , 0         , scorpion1         , scorpion1   , bfm_sc1_state, nocrypt_bank0   , 0,       "BFM/ELAM", "Carrousel (Bellfruit) (Scorpion 1)", GAME_FLAGS )
3112GAME( 198?, sc1cshat      , 0         , scorpion1         , scorpion1 , bfm_sc1_state, lotse       , 0,       "BFM",      "Cash Attraction (Bellfruit) (set 1) (Scorpion 1)", GAME_FLAGS )
3113GAME( 198?, sc1cshata      , sc1cshat   , scorpion1         , scorpion1 , bfm_sc1_state, lotse       , 0,       "BFM",      "Cash Attraction (Bellfruit) (set 2) (Scorpion 1)", GAME_FLAGS )
3114GAME( 198?, sc1cshatb      , sc1cshat   , scorpion1         , scorpion1 , bfm_sc1_state, lotse       , 0,       "BFM",      "Cash Attraction (Bellfruit) (set 3) (Scorpion 1)", GAME_FLAGS )
3115GAME( 198?, sc1cshatc      , sc1cshat   , scorpion1         , scorpion1 , bfm_sc1_state, lotse       , 0,       "BFM",      "Cash Attraction (Bellfruit) (set 4) (Scorpion 1)", GAME_FLAGS )
3112GAME( 198?, sc1cshat      , 0         , scorpion1         , scorpion1 , bfm_sc1_state, lotse      , 0,       "BFM",      "Cash Attraction (Bellfruit) (set 1) (Scorpion 1)", GAME_FLAGS )
3113GAME( 198?, sc1cshata      , sc1cshat   , scorpion1         , scorpion1 , bfm_sc1_state, lotse      , 0,       "BFM",      "Cash Attraction (Bellfruit) (set 2) (Scorpion 1)", GAME_FLAGS )
3114GAME( 198?, sc1cshatb      , sc1cshat   , scorpion1         , scorpion1 , bfm_sc1_state, lotse      , 0,       "BFM",      "Cash Attraction (Bellfruit) (set 3) (Scorpion 1)", GAME_FLAGS )
3115GAME( 198?, sc1cshatc      , sc1cshat   , scorpion1         , scorpion1 , bfm_sc1_state, lotse      , 0,       "BFM",      "Cash Attraction (Bellfruit) (set 4) (Scorpion 1)", GAME_FLAGS )
31163116
31173117GAME( 198?, sc1cshcd      , 0         , scorpion1         , scorpion1   , bfm_sc1_state, lotse         , 0,       "BFM/ELAM", "Cash Card (Bellfruit) (Dutch) (Scorpion 1)", GAME_FLAGS )
31183118GAME( 198?, sc1cshcda      , sc1cshcd   , scorpion1         , scorpion1   , bfm_sc1_state, lotse         , 0,       "BFM",      "Cash Card (Bellfruit) (set 1) (Scorpion 1)", GAME_FLAGS )
src/mame/drivers/segaxbd.c
r15975r15976
302302
303303
304304//**************************************************************************
305//   CONSTANTS
305//  CONSTANTS
306306//**************************************************************************
307307
308308const UINT32 MASTER_CLOCK = XTAL_50MHz;
r15975r15976
311311
312312
313313//**************************************************************************
314//   COMPARE/TIMER CHIP CALLBACKS
314//  COMPARE/TIMER CHIP CALLBACKS
315315//**************************************************************************
316316
317317//-------------------------------------------------
318318//  timer_ack_callback - acknowledge a timer chip
319//   interrupt signal
319//  interrupt signal
320320//-------------------------------------------------
321321
322322void segaxbd_state::timer_ack_callback()
r15975r15976
339339
340340
341341//**************************************************************************
342//   YM2151 CHIP CALLBACKS
342//  YM2151 CHIP CALLBACKS
343343//**************************************************************************
344344
345345//-------------------------------------------------
r15975r15976
354354
355355
356356//**************************************************************************
357//   MAIN CPU READ/WRITE CALLBACKS
357//  MAIN CPU READ/WRITE CALLBACKS
358358//**************************************************************************
359359
360360//-------------------------------------------------
r15975r15976
427427
428428//-------------------------------------------------
429429//  iochip_0_r - handle reads from the first I/O
430//   chip
430//  chip
431431//-------------------------------------------------
432432
433433READ16_MEMBER( segaxbd_state::iochip_0_r )
r15975r15976
465465
466466//-------------------------------------------------
467467//  iochip_0_w - handle writes to the first I/O
468//   chip
468//  chip
469469//-------------------------------------------------
470470
471471WRITE16_MEMBER( segaxbd_state::iochip_0_w )
r15975r15976
508508         machine().sound().system_enable(data & 0x80);
509509         break;
510510
511      default:
511      default:
512512         break;
513513   }
514514
r15975r15976
522522
523523//-------------------------------------------------
524524//  iochip_1_r - handle reads from the second I/O
525//   chip
525//  chip
526526//-------------------------------------------------
527527
528528READ16_MEMBER( segaxbd_state::iochip_1_r )
r15975r15976
557557
558558//-------------------------------------------------
559559//  iochip_1_w - handle writes to the second I/O
560//   chip
560//  chip
561561//-------------------------------------------------
562562
563563WRITE16_MEMBER( segaxbd_state::iochip_1_w )
r15975r15976
579579
580580//-------------------------------------------------
581581//  iocontrol_w - handle writes to the I/O control
582//   port
582//  port
583583//-------------------------------------------------
584584
585585WRITE16_MEMBER( segaxbd_state::iocontrol_w )
r15975r15976
595595
596596
597597//**************************************************************************
598//   GAME-SPECIFIC MAIN CPU READ/WRITE HANDLERS
598//  GAME-SPECIFIC MAIN CPU READ/WRITE HANDLERS
599599//**************************************************************************
600600
601601//-------------------------------------------------
602602//  loffire_sync0_w - force synchronization on
603//   writes to this address for Line of Fire
603//  writes to this address for Line of Fire
604604//-------------------------------------------------
605605
606606WRITE16_MEMBER( segaxbd_state::loffire_sync0_w )
r15975r15976
636636
637637
638638//-------------------------------------------------
639//  smgp_excs_r - /EXCS region reads for
640//   Super Monaco GP
639//  smgp_excs_r - /EXCS region reads for
640//  Super Monaco GP
641641//-------------------------------------------------
642642
643643READ16_MEMBER( segaxbd_state::smgp_excs_r )
r15975r15976
648648
649649
650650//-------------------------------------------------
651//  smgp_excs_w - /EXCS region writes for
652//   Super Monaco GP
651//  smgp_excs_w - /EXCS region writes for
652//  Super Monaco GP
653653//-------------------------------------------------
654654
655655WRITE16_MEMBER( segaxbd_state::smgp_excs_w )
r15975r15976
660660
661661
662662//**************************************************************************
663//   SOUND Z80 CPU READ/WRITE CALLBACKS
663//  SOUND Z80 CPU READ/WRITE CALLBACKS
664664//**************************************************************************
665665
666666//-------------------------------------------------
r15975r15976
676676
677677
678678//**************************************************************************
679//   DRIVER OVERRIDES
679//  DRIVER OVERRIDES
680680//**************************************************************************
681681
682682//-------------------------------------------------
r15975r15976
754754
755755
756756//**************************************************************************
757//   CUSTOM I/O HANDLERS
757//  CUSTOM I/O HANDLERS
758758//**************************************************************************
759759
760760//-------------------------------------------------
761761//  generic_iochip0_lamps_w - shared handler for
762//   coin counters and lamps
762//  coin counters and lamps
763763//-------------------------------------------------
764764
765765void segaxbd_state::generic_iochip0_lamps_w(UINT8 data)
r15975r15976
788788
789789//-------------------------------------------------
790790//  aburner2_iochip0_motor_r - motor I/O reads
791//   for Afterburner II
791//  for Afterburner II
792792//-------------------------------------------------
793793
794794UINT8 segaxbd_state::aburner2_iochip0_motor_r(UINT8 data)
r15975r15976
802802
803803//-------------------------------------------------
804804//  aburner2_iochip0_motor_w - motor I/O writes
805//   for Afterburner II
805//  for Afterburner II
806806//-------------------------------------------------
807807
808808void segaxbd_state::aburner2_iochip0_motor_w(UINT8 data)
r15975r15976
813813
814814//-------------------------------------------------
815815//  smgp_iochip0_motor_r - motor I/O reads
816//   for Super Monaco GP
816//  for Super Monaco GP
817817//-------------------------------------------------
818818
819819UINT8 segaxbd_state::smgp_iochip0_motor_r(UINT8 data)
r15975r15976
827827
828828//-------------------------------------------------
829829//  smgp_iochip0_motor_w - motor I/O reads
830//   for Super Monaco GP
830//  for Super Monaco GP
831831//-------------------------------------------------
832832
833833void segaxbd_state::smgp_iochip0_motor_w(UINT8 data)
r15975r15976
838838
839839//-------------------------------------------------
840840//  lastsurv_iochip1_port_r - muxed I/O reads
841//   for Last Survivor
841//  for Last Survivor
842842//-------------------------------------------------
843843
844844UINT8 segaxbd_state::lastsurv_iochip1_port_r(UINT8 data)
r15975r15976
850850
851851//-------------------------------------------------
852852//  lastsurv_iochip0_muxer_w - muxed I/O writes
853//   for Last Survivor
853//  for Last Survivor
854854//-------------------------------------------------
855855
856856void segaxbd_state::lastsurv_iochip0_muxer_w(UINT8 data)
r15975r15976
862862
863863
864864//**************************************************************************
865//   INTERNAL HELPERS
865//  INTERNAL HELPERS
866866//**************************************************************************
867867
868868//-------------------------------------------------
869869//  update_main_irqs - flush IRQ state to the
870//   CPU device
870//  CPU device
871871//-------------------------------------------------
872872
873873void segaxbd_state::update_main_irqs()
r15975r15976
900900
901901//-------------------------------------------------
902902//  m68k_reset_callback - callback for when the
903//   main 68000 is reset
903//  main 68000 is reset
904904//-------------------------------------------------
905905
906906void segaxbd_state::m68k_reset_callback(device_t *device)
r15975r15976
913913
914914
915915//**************************************************************************
916//   MAIN CPU ADDRESS MAPS
916//  MAIN CPU ADDRESS MAPS
917917//**************************************************************************
918918
919919static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, segaxbd_state )
r15975r15976
950950
951951
952952//**************************************************************************
953//   SUB CPU ADDRESS MAPS
953//  SUB CPU ADDRESS MAPS
954954//**************************************************************************
955955
956956static ADDRESS_MAP_START( sub_map, AS_PROGRAM, 16, segaxbd_state )
r15975r15976
970970
971971
972972//**************************************************************************
973//   Z80 SOUND CPU ADDRESS MAPS
973//  Z80 SOUND CPU ADDRESS MAPS
974974//**************************************************************************
975975
976976static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, segaxbd_state )
r15975r15976
990990
991991
992992//**************************************************************************
993//   SUPER MONACO GP 2ND SOUND CPU ADDRESS MAPS
993//  SUPER MONACO GP 2ND SOUND CPU ADDRESS MAPS
994994//**************************************************************************
995995
996996// Sound Board
r15975r15976
10121012
10131013
10141014//**************************************************************************
1015//   SUPER MONACO GP MOTOR BOARD CPU ADDRESS MAPS
1015//  SUPER MONACO GP MOTOR BOARD CPU ADDRESS MAPS
10161016//**************************************************************************
10171017
10181018// Motor Board, not yet emulated
r15975r15976
10321032
10331033
10341034//**************************************************************************
1035//   SUPER MONACO GP LINK BOARD CPU ADDRESS MAPS
1035//  SUPER MONACO GP LINK BOARD CPU ADDRESS MAPS
10361036//**************************************************************************
10371037
10381038// Link Board, not yet emulated
r15975r15976
10511051
10521052
10531053//**************************************************************************
1054//   RASCOT UNKNOWN Z80 CPU ADDRESS MAPS
1054//  RASCOT UNKNOWN Z80 CPU ADDRESS MAPS
10551055//**************************************************************************
10561056
10571057// Z80, unknown function
r15975r15976
10691069
10701070
10711071//**************************************************************************
1072//   GENERIC PORT DEFINITIONS
1072//  GENERIC PORT DEFINITIONS
10731073//**************************************************************************
10741074
10751075static INPUT_PORTS_START( xboard_generic )
r15975r15976
11111111
11121112
11131113//**************************************************************************
1114//   GAME-SPECIFIC PORT DEFINITIONS
1114//  GAME-SPECIFIC PORT DEFINITIONS
11151115//**************************************************************************
11161116
11171117static INPUT_PORTS_START( aburner )
r15975r15976
12841284   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 )
12851285
12861286   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)
12911291   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)
12921292
12931293   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)
12951295   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)
12981298   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)
12991299
13001300   PORT_START("MUX2")
r15975r15976
13161316   PORT_DIPSETTING(    0x0c, "Off" )
13171317   PORT_DIPSETTING(    0x08, "On (2)" )
13181318   PORT_DIPSETTING(    0x04, "On (4)" )
1319//   PORT_DIPSETTING(    0x00, "No Use" )
1319//  PORT_DIPSETTING(    0x00, "No Use" )
13201320   PORT_DIPNAME( 0x30, 0x30, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SWB:5,6")
13211321   PORT_DIPSETTING(    0x20, DEF_STR( Easy ) )
13221322   PORT_DIPSETTING(    0x30, DEF_STR( Normal ) )
r15975r15976
15481548
15491549
15501550//**************************************************************************
1551//   SOUND DEFINITIONS
1551//  SOUND DEFINITIONS
15521552//**************************************************************************
15531553
15541554static const ym2151_interface ym2151_config =
r15975r15976
15641564
15651565
15661566//**************************************************************************
1567//   GRAPHICS DEFINITIONS
1567//  GRAPHICS DEFINITIONS
15681568//**************************************************************************
15691569
15701570static GFXDECODE_START( segaxbd )
r15975r15976
15741574
15751575
15761576//**************************************************************************
1577//   GENERIC MACHINE DRIVERS
1577//  GENERIC MACHINE DRIVERS
15781578//**************************************************************************
15791579
15801580static MACHINE_CONFIG_START( xboard, segaxbd_state )
r15975r15976
15981598   MCFG_SEGA_315_5248_MULTIPLIER_ADD("multiplier_subx")
15991599   MCFG_SEGA_315_5249_DIVIDER_ADD("divider_main")
16001600   MCFG_SEGA_315_5249_DIVIDER_ADD("divider_subx")
1601   
1601
16021602   MCFG_SEGA_315_5250_COMPARE_TIMER_ADD("cmptimer_main")
16031603   MCFG_SEGA_315_5250_TIMER_ACK(segaxbd_state, timer_ack_callback)
16041604   MCFG_SEGA_315_5250_SOUND_WRITE(segaxbd_state, sound_data_w)
r15975r15976
16371637
16381638
16391639//**************************************************************************
1640//   GAME-SPECIFIC MACHINE DRIVERS
1640//  GAME-SPECIFIC MACHINE DRIVERS
16411641//**************************************************************************
16421642
16431643static MACHINE_CONFIG_DERIVED( lastsurv_fd1094, xboard_fd1094 )
r15975r15976
16871687
16881688
16891689//**************************************************************************
1690//   ROM DEFINITIONS
1690//  ROM DEFINITIONS
16911691//**************************************************************************
16921692
16931693
r15975r15976
31653165//*************************************************************************************************************************
31663166//*************************************************************************************************************************
31673167//*************************************************************************************************************************
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,
31693169//  and we only have the ROMs for one of those parts..
31703170//
31713171ROM_START( rascot )
r15975r15976
32023202
32033203
32043204//**************************************************************************
3205//   CONFIGURATION
3205//  CONFIGURATION
32063206//**************************************************************************
32073207
32083208//-------------------------------------------------
r15975r15976
32953295
32963296
32973297//**************************************************************************
3298//   GAME DRIVERS
3298//  GAME DRIVERS
32993299//**************************************************************************
33003300
33013301//    YEAR, NAME,     PARENT,   MACHINE,        INPUT,    INIT,                    MONITOR,COMPANY,FULLNAME,FLAGS
src/mame/drivers/wildpkr.c
r15975r15976
212212static ADDRESS_MAP_START( wildpkr_map, AS_PROGRAM, 16, wildpkr_state )
213213   AM_RANGE(0x000000, 0x07ffff) AM_ROM
214214   AM_RANGE(0x100000, 0x103fff) AM_RAM
215//   AM_RANGE(0x800000, 0x800003) ACRTC?
215//  AM_RANGE(0x800000, 0x800003) ACRTC?
216216   AM_RANGE(0x800180, 0x800181) AM_READNOP // protection, puts m68k code snippets to RAM
217217   AM_RANGE(0x800200, 0x800201) AM_DEVWRITE8("ramdac", ramdac_device, index_w, 0xff00)
218218   AM_RANGE(0x800202, 0x800203) AM_DEVWRITE8("ramdac", ramdac_device, pal_w, 0xff00)
r15975r15976
273273   /* basic machine hardware */
274274   MCFG_CPU_ADD("maincpu", M68000, MAIN_CLOCK)
275275   MCFG_CPU_PROGRAM_MAP(wildpkr_map)
276//   MCFG_CPU_VBLANK_INT("screen", irq1_line_hold)   //guess
276//  MCFG_CPU_VBLANK_INT("screen", irq1_line_hold)   //guess
277277
278278   MCFG_MACHINE_START(wildpkr)
279279
src/mame/drivers/galpani3.c
r15975r15976
199199
200200   bitmap.fill(0x0000, cliprect);
201201
202//   popmessage("%02x %02x", state->m_grap2_0->m_framebuffer_bright2, state->m_grap2_1->m_framebuffer_bright2);
202//  popmessage("%02x %02x", state->m_grap2_0->m_framebuffer_bright2, state->m_grap2_1->m_framebuffer_bright2);
203203
204204
205205
r15975r15976
475475
476476   AM_RANGE(0x400000, 0x40ffff) AM_DEVREADWRITE( "toybox", kaneko_toybox_device, toybox_mcu_ram_r, toybox_mcu_ram_w ) // area [C]
477477
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)
482482   AM_RANGE(0x780000, 0x780001) AM_DEVREAD( "toybox", kaneko_toybox_device, toybox_mcu_status_r)
483483
484484   GRAP2_AREA( 0x800000, "grap2_0" )
src/mame/drivers/itgambl2.c
r15975r15976
936936GAME( 200?, sspac2k1, 0,      itgambl2, itgambl2, driver_device, 0,   ROT0, "<unknown>", "Super Space 2001",                      GAME_IS_SKELETON )
937937GAME( 200?, elvis,    0,      itgambl2, itgambl2, driver_device, 0,   ROT0, "<unknown>", "Elvis?",                                GAME_IS_SKELETON )
938938GAME( 200?, sstar,    0,      itgambl2, itgambl2, driver_device, 0,   ROT0, "<unknown>", "Super Star",                            GAME_IS_SKELETON )
939GAME( 2001, pirati,   0,      itgambl2, itgambl2, driver_device, 0,   ROT0, "Cin",      "Pirati",                                GAME_IS_SKELETON )
939GAME( 2001, pirati,   0,      itgambl2, itgambl2, driver_device, 0,   ROT0, "Cin",     "Pirati",                                GAME_IS_SKELETON )
940940GAME( 200?, mnumitg,  0,      itgambl2, itgambl2, driver_device, 0,   ROT0, "<unknown>", "Magic Number (Italian Gambling Game, Ver 1.5)", GAME_IS_SKELETON )
941941GAME( 200?, mclass,   0,      itgambl2, itgambl2, driver_device, 0,   ROT0, "<unknown>", "Magic Class (Ver 2.2)",                 GAME_IS_SKELETON )
942942GAME( 200?, europass, 0,      itgambl2, itgambl2, driver_device, 0,   ROT0, "<unknown>", "Euro Pass (Ver 1.1)",                   GAME_IS_SKELETON )
src/mame/drivers/de_1.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(de_1);
2626};
2727
src/mame/drivers/deco32.c
r15975r15976
906906
907907   AM_RANGE(0x300000, 0x3fffff) AM_ROM
908908
909//   AM_RANGE(0x400000, 0x400003) AM_DEVREADWRITE8("oki3", okim6295_device, read, write, 0x000000ff)
909//  AM_RANGE(0x400000, 0x400003) AM_DEVREADWRITE8("oki3", okim6295_device, read, write, 0x000000ff)
910910   AM_RANGE(0x420000, 0x420003) AM_READWRITE(dragngun_eeprom_r, dragngun_eeprom_w)
911911//  AM_RANGE(0x430000, 0x43001f) AM_WRITE(dragngun_lightgun_w)
912912//  AM_RANGE(0x438000, 0x438003) AM_READ(dragngun_lightgun_r)
src/mame/drivers/acesp.c
r15975r15976
3030
3131   // devices
3232   required_device<cpu_device> m_maincpu;
33public:   
33public:
3434   DECLARE_DRIVER_INIT(ace_sp);
3535   DECLARE_DRIVER_INIT(ace_cr);
3636};
src/mame/drivers/segaybd.c
r15975r15976
3535
3636****************************************************************************
3737
38   Games supported:
38    Games supported:
3939
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
4646
47   Known games currently not dumped:
47    Known games currently not dumped:
4848
49       Galaxy Force
49        Galaxy Force
5050
5151****************************************************************************
5252
r15975r15976
6969
7070
7171//**************************************************************************
72//   CONSTANTS
72//  CONSTANTS
7373//**************************************************************************
7474
7575const UINT32 MASTER_CLOCK = 50000000;
r15975r15976
8181
8282
8383//**************************************************************************
84//   YM2151 CHIP CALLBACKS
84//  YM2151 CHIP CALLBACKS
8585//**************************************************************************
8686
8787//-------------------------------------------------
r15975r15976
9696
9797
9898//**************************************************************************
99//   MAIN CPU READ/WRITE HANDLERS
99//  MAIN CPU READ/WRITE HANDLERS
100100//**************************************************************************
101101
102102//-------------------------------------------------
r15975r15976
218218            //  D3 = XRES
219219            //  D2 = YRES
220220            //  D1-D0 = ADC0-1
221          //
221          //
222222         segaic16_set_display_enable(machine(), data & 0x80);
223223         if (((old ^ data) & 0x20) && !(data & 0x20))
224224            machine().watchdog_reset();
r15975r15976
247247
248248//-------------------------------------------------
249249//  sound_data_w - handle writes to sound control
250//   port
250//  port
251251//-------------------------------------------------
252252
253253WRITE16_MEMBER( segaybd_state::sound_data_w )
r15975r15976
259259
260260
261261//**************************************************************************
262//   SOUND Z80 CPU READ/WRITE CALLBACKS
262//  SOUND Z80 CPU READ/WRITE CALLBACKS
263263//**************************************************************************
264264
265265//-------------------------------------------------
r15975r15976
275275
276276
277277//**************************************************************************
278//   DRIVER OVERRIDES
278//  DRIVER OVERRIDES
279279//**************************************************************************
280280
281281//-------------------------------------------------
r15975r15976
394394
395395
396396//**************************************************************************
397//   GAME-SPECIFIC OUTPUT CALLBACKS
397//  GAME-SPECIFIC OUTPUT CALLBACKS
398398//**************************************************************************
399399
400400//  TODO: kokoroj2 and jpark (SW2)
r15975r15976
408408
409409//-------------------------------------------------
410410//  gforce2_output_cb2 - output #2 handler for
411//   Galaxy Force
411//  Galaxy Force
412412//-------------------------------------------------
413413
414414void segaybd_state::gforce2_output_cb2(UINT16 data)
r15975r15976
419419
420420//-------------------------------------------------
421421//  gloc_output_cb1 - output #1 handler for
422//   G-Loc
422//  G-Loc
423423//-------------------------------------------------
424424
425425void segaybd_state::gloc_output_cb1(UINT16 data)
r15975r15976
453453
454454//-------------------------------------------------
455455//  gloc_output_cb2 - output #2 handler for
456//   G-Loc
456//  G-Loc
457457//-------------------------------------------------
458458
459459void segaybd_state::gloc_output_cb2(UINT16 data)
r15975r15976
466466
467467//-------------------------------------------------
468468//  r360_output_cb2 - output #2 handler for
469//   G-Loc R360
469//  G-Loc R360
470470//-------------------------------------------------
471471
472472void segaybd_state::r360_output_cb2(UINT16 data)
r15975r15976
480480
481481//-------------------------------------------------
482482//  pdrift_output_cb1 - output #1 handler for
483//   Power Drift
483//  Power Drift
484484//-------------------------------------------------
485485
486486void segaybd_state::pdrift_output_cb1(UINT16 data)
r15975r15976
639639
640640//-------------------------------------------------
641641//  pdrift_output_cb2 - output #2 handler for
642//   Power Drift
642//  Power Drift
643643//-------------------------------------------------
644644
645645void segaybd_state::pdrift_output_cb2(UINT16 data)
r15975r15976
651651
652652//-------------------------------------------------
653653//  rchase_output_cb2 - output #2 handler for
654//   Rail Chase
654//  Rail Chase
655655//-------------------------------------------------
656656
657657void segaybd_state::rchase_output_cb2(UINT16 data)
r15975r15976
666666
667667
668668//**************************************************************************
669//   INTERNAL HELPERS
669//  INTERNAL HELPERS
670670//**************************************************************************
671671
672672//-------------------------------------------------
673673//  update_irqs - flush IRQ state to the various
674//   CPU devices
674//  CPU devices
675675//-------------------------------------------------
676676
677677void segaybd_state::update_irqs()
r15975r15976
679679   m_maincpu->set_input_line(2, m_timer_irq_state ? ASSERT_LINE : CLEAR_LINE);
680680   m_subx->set_input_line(2, m_timer_irq_state ? ASSERT_LINE : CLEAR_LINE);
681681   m_suby->set_input_line(2, m_timer_irq_state ? ASSERT_LINE : CLEAR_LINE);
682   
682
683683   m_maincpu->set_input_line(4, m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE);
684684   m_subx->set_input_line(4, m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE);
685685   m_suby->set_input_line(4, m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE);
686   
686
687687   m_maincpu->set_input_line(6, m_timer_irq_state && m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE);
688688   m_subx->set_input_line(6, m_timer_irq_state && m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE);
689689   m_suby->set_input_line(6, m_timer_irq_state && m_vblank_irq_state ? ASSERT_LINE : CLEAR_LINE);
r15975r15976
695695
696696
697697//**************************************************************************
698//   MAIN CPU ADDRESS MAPS
698//  MAIN CPU ADDRESS MAPS
699699//**************************************************************************
700700
701701static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, segaybd_state )
r15975r15976
715715
716716
717717//**************************************************************************
718//   SUB CPU ADDRESS MAPS
718//  SUB CPU ADDRESS MAPS
719719//**************************************************************************
720720
721721static ADDRESS_MAP_START( subx_map, AS_PROGRAM, 16, segaybd_state )
r15975r15976
747747
748748
749749//**************************************************************************
750//   Z80 SOUND CPU ADDRESS MAPS
750//  Z80 SOUND CPU ADDRESS MAPS
751751//**************************************************************************
752752
753753static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, segaybd_state )
r15975r15976
767767
768768
769769//**************************************************************************
770//   GENERIC PORT DEFINITIONS
770//  GENERIC PORT DEFINITIONS
771771//**************************************************************************
772772
773773static INPUT_PORTS_START( yboard_generic )
r15975r15976
813813
814814
815815//**************************************************************************
816//   GAME-SPECIFIC PORT DEFINITIONS
816//  GAME-SPECIFIC PORT DEFINITIONS
817817//**************************************************************************
818818
819819static INPUT_PORTS_START( gforce2 )
r15975r15976
11831183
11841184
11851185//**************************************************************************
1186//   SOUND DEFINITIONS
1186//  SOUND DEFINITIONS
11871187//**************************************************************************
11881188
11891189static const ym2151_interface ym2151_config =
r15975r15976
11991199
12001200
12011201//**************************************************************************
1202//   GENERIC MACHINE DRIVERS
1202//  GENERIC MACHINE DRIVERS
12031203//**************************************************************************
12041204
12051205static MACHINE_CONFIG_START( yboard, segaybd_state )
r15975r15976
12571257
12581258
12591259//**************************************************************************
1260//   ROM DEFINITIONS
1260//  ROM DEFINITIONS
12611261//**************************************************************************
12621262
12631263
r15975r15976
18141814ROM_END
18151815
18161816//*************************************************************************************************************************
1817//    Earlier set based on eprom numbers & Sega Eprom/Mask Rom Locations sheet 421-7708
1817// Earlier set based on eprom numbers & Sega Eprom/Mask Rom Locations sheet 421-7708
18181818//
18191819ROM_START( pdrifte )
18201820   ROM_REGION( 0x080000, "maincpu", 0 ) // M
r15975r15976
21852185
21862186
21872187//**************************************************************************
2188//   CONFIGURATION
2188//  CONFIGURATION
21892189//**************************************************************************
21902190
21912191//-------------------------------------------------
r15975r15976
22582258
22592259
22602260//**************************************************************************
2261//   GAME DRIVERS
2261//  GAME DRIVERS
22622262//**************************************************************************
22632263
22642264//    YEAR, NAME,      PARENT,  MACHINE,INPUT,    INIT,                   MONITOR,COMPANY,FULLNAME,FLAGS,                                     LAYOUT
src/mame/drivers/mpu4.c
r15975r15976
22
33/* todo: driver inits (basic hw reel, protection configs etc.) should probably be moved here
44         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
99*/
1010
1111#include "emu.h"
r15975r15976
434434
435435ROM_START( m4crzjwlh )
436436   ROM_REGION( 0x20000, "maincpu", 0 )
437   ROM_LOAD( "cjg.p1", 0x0000, 0x020000, CRC(1f4743bf) SHA1(f9a0da2ed9cad5e6685c8a6d1d09e5d4bbcfacec) )    // Crown Jewels Deluxe (german)
437   ROM_LOAD( "cjg.p1", 0x0000, 0x020000, CRC(1f4743bf) SHA1(f9a0da2ed9cad5e6685c8a6d1d09e5d4bbcfacec) )   // Crown Jewels Deluxe (german)
438438   M4CRZJWL_EXTRAS
439439ROM_END
440440
r15975r15976
23922392
23932393
23942394// other issues
2395GAME(199?, m4casmul   ,0         ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Casino Multiplay (Barcrest) (MPU4)",GAME_FLAGS )
2395GAME(199?, m4casmul   ,0         ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Casino Multiplay (Barcrest) (MPU4)",GAME_FLAGS )
23962396
23972397
23982398
r15975r15976
26082608GAME(199?, m4sunscla,m4sunscl   ,mod2      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Bwb","Sunset Club (Bwb) (MPU4) (set 2)",GAME_FLAGS )
26092609GAME(199?, m4sunsclb,m4sunscl   ,mod2      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Bwb","Sunset Club (Bwb) (MPU4) (set 3)",GAME_FLAGS )
26102610
2611GAME(199?, m4bigban   ,0         ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Big Bandit (Nova) (MPU4)",GAME_FLAGS )
2612GAME(199?, m4crzcsn   ,0         ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Crazy Casino (Nova) (MPU4)",GAME_FLAGS )
2613GAME(199?, m4crzcav   ,0         ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Crazy Cavern (Nova) (MPU4)",GAME_FLAGS )
2614GAME(199?, m4dragon   ,0         ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Dragon (Nova) (MPU4)",GAME_FLAGS )
2615GAME(199?, m4hilonv   ,0         ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Hi Lo Casino (Nova) (MPU4)",GAME_FLAGS )
2616GAME(199?, m4octo   ,0         ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Octopus (Nova) (MPU4)",GAME_FLAGS )
2617GAME(199?, m4sctagt   ,0         ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Secret Agent (Nova) (MPU4)",GAME_FLAGS )
2611GAME(199?, m4bigban   ,0         ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Big Bandit (Nova) (MPU4)",GAME_FLAGS )
2612GAME(199?, m4crzcsn   ,0         ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Crazy Casino (Nova) (MPU4)",GAME_FLAGS )
2613GAME(199?, m4crzcav   ,0         ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Crazy Cavern (Nova) (MPU4)",GAME_FLAGS )
2614GAME(199?, m4dragon   ,0         ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Dragon (Nova) (MPU4)",GAME_FLAGS )
2615GAME(199?, m4hilonv   ,0         ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Hi Lo Casino (Nova) (MPU4)",GAME_FLAGS )
2616GAME(199?, m4octo   ,0         ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Octopus (Nova) (MPU4)",GAME_FLAGS )
2617GAME(199?, m4sctagt   ,0         ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Nova","Secret Agent (Nova) (MPU4)",GAME_FLAGS )
26182618
26192619
26202620
r15975r15976
27362736// not sure about several of the nova ones
27372737GAME( 199?, m4aliz      , 0         ,  mod4oki      , mpu4      , mpu4_state, m4default      , 0,       "Qps",  "AlizBaz (Qps) (German) (MPU4)",GAME_FLAGS|GAME_MECHANICAL|GAME_SUPPORTS_SAVE)
27382738GAME( 199?, m4coney      , 0         ,  mod4oki      , mpu4      , mpu4_state, m4default      , 0,       "Qps",   "Coney Island (Qps) (MPU4)",GAME_FLAGS|GAME_MECHANICAL|GAME_SUPPORTS_SAVE)
2739GAME( 199?, m4crzjk      , 0         ,  mod2         , mpu4      , mpu4_state, m4default      , 0,       "Nova?", "Crazy Jokers (Nova?) (MPU4)",GAME_FLAGS )  // COIN   ALM
2739GAME( 199?, m4crzjk      , 0         ,  mod2       , mpu4      , mpu4_state, m4default      , 0,       "Nova?", "Crazy Jokers (Nova?) (MPU4)",GAME_FLAGS )  // COIN   ALM
27402740GAME( 199?, m4c2      , 0         ,  mod4oki      , mpu4      , mpu4_state, m4default      , 0,       "Nova?", "Circus Circus 2 (Nova?) (MPU4)",GAME_FLAGS|GAME_MECHANICAL|GAME_SUPPORTS_SAVE) // COIN   ALM
27412741// regular barcrest structure
27422742GAME( 199?, m4vivan      , 0         ,  mod4oki      , mpu4      , mpu4_state, m4default      , 0,       "Nova",  "Viva Las Vegas (Nova) (MPU4)",GAME_FLAGS|GAME_MECHANICAL|GAME_SUPPORTS_SAVE)
r15975r15976
27492749
27502750
27512751
2752GAME(199?, m4sunseta   ,m4sunset   ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (B25 1.2, set 1)",GAME_FLAGS )
2753GAME(199?, m4sunsetb   ,m4sunset   ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (B25 1.2, set 2)",GAME_FLAGS )
2754GAME(199?, m4sunsetc   ,m4sunset   ,mod4oki      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (OSB 0.2)",GAME_FLAGS ) // might be a mod 2
2752GAME(199?, m4sunseta   ,m4sunset   ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (B25 1.2, set 1)",GAME_FLAGS )
2753GAME(199?, m4sunsetb   ,m4sunset   ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (B25 1.2, set 2)",GAME_FLAGS )
2754GAME(199?, m4sunsetc   ,m4sunset   ,mod4oki   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Sunset Boulevard (Barcrest) (MPU4) (OSB 0.2)",GAME_FLAGS ) // might be a mod 2
src/mame/drivers/mpu4avan.c
r15975r15976
530530   ROM_REGION( 0x100000, "msm6376", 0 ) \
531531   ROM_LOAD( "mcsnd1.dat", 0x000000, 0x080000, CRC(9477e648) SHA1(1abefced0cf708ad035720d5e58dc7dae50de5d1) ) \
532532   ROM_LOAD( "mcsnd2.dat", 0x080000, 0x080000, CRC(088796bd) SHA1(877bf21add8ef95f5384a88e1287bd9aa5dbfa95) ) \
533 
534533
534
535535#define M4CMONT_SET(year, setname,parent,name,offset,length,hash,company,title) \
536536   ROM_START( setname ) \
537537      ROM_REGION( length, "maincpu", 0 ) \
r15975r15976
619619#define M4BLKMGC_EXTRA_ROMS \
620620   ROM_REGION( 0x100000, "msm6376", 0 ) \
621621   ROM_LOAD( "bmsnd", 0x0000, 0x080000, CRC(81da8bc9) SHA1(a60fd689e2683b987f48e3a4c8817b169a9c3fdf) ) \
622 
623622
623
624624#define M4BLKMGC_SET(year, setname,parent,name,offset,length,hash,company,title) \
625625   ROM_START( setname ) \
626626      ROM_REGION( length, "maincpu", 0 ) \
r15975r15976
647647#define M4AMALAD_EXTRA_ROMS \
648648   ROM_REGION( 0x100000, "msm6376", 0 ) \
649649   ROM_LOAD( "aasnd", 0x0000, 0x080000, CRC(6b78f3de) SHA1(4f10afdc5cf7c84e2d048f7c9c5f83323f1e5a6e) ) \
650 
651650
651
652652#define M4AMALAD_SET(year, setname,parent,name,offset,length,hash,company,title) \
653653   ROM_START( setname ) \
654654      ROM_REGION( length, "maincpu", 0 ) \
r15975r15976
680680#define M4BBEN_EXTRA_ROMS \
681681   ROM_REGION( 0x100000, "msm6376", 0 ) \
682682   ROM_LOAD( "bben1s.bin", 0x0000, 0x02dbc5, CRC(9240317e) SHA1(d9167e52a09ff1783bb10e2e34fb80bdf555f00e) ) \
683 
683
684684#define M4BBEN_SET(year, setname,parent,name,offset,length,hash,company,title) \
685685   ROM_START( setname ) \
686686      ROM_REGION( length, "maincpu", 0 ) \
r15975r15976
702702M4BBEN_SET( 199?, m4bben__h,   m4bben,   "bbc2a106.bin", 0x0000, 0x010000, CRC(4929273e) SHA1(0703b89884a2d410854d813fe8304eac0dbfb30e), "Avantime?","Big Ben (Avantime?) (MPU4) (set 9)" )
703703M4BBEN_SET( 199?, m4bben__i,   m4bben,   "bbc2b106.bin", 0x0000, 0x010000, CRC(d06687ed) SHA1(2e5b32c772f47f3f10ee90cbc72c00995871c2c0), "Avantime?","Big Ben (Avantime?) (MPU4) (set 10)" )
704704
705   
706705
707706
707
708708#define M4BBOX_EXTRA_ROMS \
709709   ROM_REGION( 0x100000, "msm6376", 0 ) \
710710   ROM_LOAD( "bb1snd.bin", 0x0000, 0x068880, CRC(69d53f5a) SHA1(dd7958060804fda97a1fdf69c230bfab092b9707) ) \
711 
711
712712#define M4BBOX_SET(year, setname,parent,name,offset,length,hash,company,title) \
713713   ROM_START( setname ) \
714714      ROM_REGION( length, "maincpu", 0 ) \
r15975r15976
735735
736736#define M4FRNUDG_EXTRA_ROMS \
737737   ROM_REGION( 0x100000, "msm6376", ROMREGION_ERASE00 ) \
738 
738
739739#define M4FRNUDG_SET(year, setname,parent,name,offset,length,hash,company,title) \
740740   ROM_START( setname ) \
741741      ROM_REGION( length, "maincpu", 0 ) \
r15975r15976
749749M4FRNUDG_SET( 199?, m4frnudg__a,   m4frnudg,   "fanhc12.bin",   0x0000, 0x010000, CRC(2b2176e0) SHA1(9acffc05c02e76a6cbe4cfd708ff2d94ecb6c308), "Avantime?","Fruit & Nudge (Avantime?) (MPU4) (set 2)" )
750750M4FRNUDG_SET( 199?, m4frnudg__b,   m4frnudg,   "fanhc8.bin",   0x0000, 0x010000, CRC(d1eecc15) SHA1(7dd3d218bc42ed7a92b8cd04b3de0eecda1d7eb0), "Avantime?","Fruit & Nudge (Avantime?) (MPU4) (set 3)" )
751751M4FRNUDG_SET( 199?, m4frnudg__c,   m4frnudg,   "fanhc9.bin",   0x0000, 0x010000, CRC(0b581d12) SHA1(e62c831d8d21eb3c9a15ebe7f0245e804f912e32), "Avantime?","Fruit & Nudge (Avantime?) (MPU4) (set 4)" )
752   
753752
753
754754#define M4FRMTX_EXTRA_ROMS \
755755   ROM_REGION( 0x100000, "msm6376", 0 ) \
756756   ROM_LOAD( "fmsnd1.bin", 0x0000, 0x080000, CRC(300fcb23) SHA1(c3a7424089e7893972e04a6a5e77cfb4e0ffc8ec)) \
757757   ROM_REGION( 0x100000, "pals", 0 ) \
758758   ROM_LOAD( "fm.jed", 0x0000, 0x000580, CRC(dc166c8e) SHA1(0cc49836b7ad57daa54e08f10f07aa279ccc53a0)) \
759 
759
760760#define M4FRMTX_SET(year, setname,parent,name,offset,length,hash,company,title) \
761761   ROM_START( setname ) \
762762      ROM_REGION( length, "maincpu", 0 ) \
r15975r15976
773773M4FRMTX_SET( 199?, m4frmtx__e,   m4frmtx,   "fmuk1.bin",   0x0000, 0x010000, CRC(1e798ba4) SHA1(e8d06f8281bc9bc52c7ddd3133abf7eaa231d731), "Avantime?","Fruit Matrix (Avantime?) (MPU4) (set 6)" )
774774M4FRMTX_SET( 199?, m4frmtx__f,   m4frmtx,   "frmatx3",      0x0000, 0x010000, CRC(d3c47cad) SHA1(e89d8df496405903f51c31bf48774bfa877d90c2), "Avantime?","Fruit Matrix (Avantime?) (MPU4) (set 7)" )
775775
776   
777776
778777
778
779779#define M4JOK2K_EXTRA_ROMS \
780780   ROM_REGION( 0x100000, "msm6376", ROMREGION_ERASE00 ) \
781781
src/mame/drivers/jantotsu.c
r15975r15976
542542   MCFG_SOUND_ADD("sn1", SN76489A_NEW, MAIN_CLOCK/4)
543543   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
544544   MCFG_SOUND_CONFIG(psg_intf)
545   
545
546546   MCFG_SOUND_ADD("sn2", SN76489A_NEW, MAIN_CLOCK/4)
547547   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
548548   MCFG_SOUND_CONFIG(psg_intf)
549   
549
550550   MCFG_SOUND_ADD("adpcm", MSM5205, XTAL_384kHz)
551551   MCFG_SOUND_CONFIG(msm5205_config)
552552   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
src/mame/drivers/chsuper.c
r15975r15976
4444   //virtual void machine_reset();
4545
4646   virtual void video_start();
47public:   
47public:
4848   DECLARE_DRIVER_INIT(chsuper3);
4949   DECLARE_DRIVER_INIT(chmpnum);
5050   DECLARE_DRIVER_INIT(chsuper2);
src/mame/drivers/de_3.c
r15975r15976
2525
2626   // driver_device overrides
2727   virtual void machine_reset();
28public:   
28public:
2929   DECLARE_DRIVER_INIT(de_3);
3030};
3131
src/mame/drivers/dcon.c
r15975r15976
141141static INPUT_PORTS_START( sdgndmps )
142142   PORT_INCLUDE( common )
143143
144   PORT_MODIFY("SYSTEM")
145   PORT_SERVICE_NO_TOGGLE( 0x0100, IP_ACTIVE_LOW )
146
144147   PORT_START("DSW")
145148   PORT_DIPNAME( 0x000f, 0x000f, DEF_STR( Coin_B ) )
146149   PORT_DIPSETTING(      0x0004, DEF_STR( 4C_1C ) )
r15975r15976
187190   PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unknown ) )
188191   PORT_DIPSETTING(      0x0800, DEF_STR( Off ) )
189192   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?)
191194   PORT_DIPSETTING(      0x1000, DEF_STR( Off ) )
192195   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
193196   PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Allow_Continue ) )
src/mame/drivers/bfm_sc5.c
r15975r15976
3131
3232   // devices
3333   required_device<cpu_device> m_maincpu;
34public:   
34public:
3535   DECLARE_DRIVER_INIT(sc5);
3636};
3737
src/mame/drivers/de_3b.c
r15975r15976
2525
2626   // driver_device overrides
2727   virtual void machine_reset();
28public:   
28public:
2929   DECLARE_DRIVER_INIT(de_3b);
3030};
3131
src/mame/drivers/by68701.c
r15975r15976
1717
1818   // driver_device overrides
1919   virtual void machine_reset();
20public:   
20public:
2121   DECLARE_DRIVER_INIT(by68701);
2222};
2323
src/mame/drivers/jpmimpct.c
r15975r15976
54795479GAME( 1995, cluedo,   0,       jpmimpct, cluedo, driver_device,   0, ROT0, "JPM", "Cluedo (prod. 2D)",           GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
54805480GAME( 1995, cluedod,  cluedo,  jpmimpct, cluedo, driver_device,   0, ROT0, "JPM", "Cluedo (prod. 2D) (Protocol)",GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
54815481GAME( 1995, cluedo2c, cluedo,  jpmimpct, cluedo, driver_device,   0, ROT0, "JPM", "Cluedo (prod. 2C)",           GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
5482GAME( 1995, cluedo2,  cluedo,  jpmimpct, cluedo, driver_device,   0, ROT0, "JPM", "Cluedo (prod. 2)",          GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
5482GAME( 1995, cluedo2,  cluedo,  jpmimpct, cluedo, driver_device,   0, ROT0, "JPM", "Cluedo (prod. 2)",       GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE )
54835483GAME( 1996, trivialp, 0,       jpmimpct, trivialp, driver_device, 0, ROT0, "JPM", "Trivial Pursuit (New Edition) (prod. 1D)",  GAME_SUPPORTS_SAVE )
54845484GAME( 1996, trivialpd,trivialp,jpmimpct, trivialp, driver_device, 0, ROT0, "JPM", "Trivial Pursuit (New Edition) (prod. 1D) (Protocol)",GAME_SUPPORTS_SAVE )
54855485GAME( 1996, trivialpo,trivialp,jpmimpct, trivialp, driver_device, 0, ROT0, "JPM", "Trivial Pursuit",  GAME_SUPPORTS_SAVE )
src/mame/drivers/by17.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(by17);
2626};
2727
src/mame/drivers/ikki.c
r15975r15976
207207 *  Sound definitions
208208 *
209209 *************************************/
210 
211 
210
211
212212//-------------------------------------------------
213213//  sn76496_config psg_intf
214214//-------------------------------------------------
src/mame/drivers/gts1.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(gts1);
2626};
2727
src/mame/drivers/mjkjidai.c
r15975r15976
384384 *  Sound interface
385385 *
386386 *************************************/
387 
388 
387
388
389389//-------------------------------------------------
390390//  sn76496_config psg_intf
391391//-------------------------------------------------
r15975r15976
426426   MCFG_SOUND_ADD("sn1", SN76489_NEW, 10000000/4)
427427   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
428428   MCFG_SOUND_CONFIG(psg_intf)
429   
429
430430   MCFG_SOUND_ADD("sn2", SN76489_NEW, 10000000/4)
431431   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
432432   MCFG_SOUND_CONFIG(psg_intf)
433   
433
434434   MCFG_SOUND_ADD("adpcm", MJKJIDAI, 6000)
435435   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
436436MACHINE_CONFIG_END
src/mame/drivers/jailbrek.c
r15975r15976
242242 *  Sound definitions
243243 *
244244 *************************************/
245 
246 
245
246
247247//-------------------------------------------------
248248//  sn76496_config psg_intf
249249//-------------------------------------------------
r15975r15976
296296   MCFG_SOUND_ADD("snsnd", SN76489A_NEW, MASTER_CLOCK/12)
297297   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
298298   MCFG_SOUND_CONFIG(psg_intf)
299   
299
300300   MCFG_SOUND_ADD("vlm", VLM5030, VOICE_CLOCK)
301301   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
302302MACHINE_CONFIG_END
src/mame/drivers/micropin.c
r15975r15976
1717
1818   // driver_device overrides
1919   virtual void machine_reset();
20public:   
20public:
2121   DECLARE_DRIVER_INIT(micropin);
2222};
2323
src/mame/drivers/by35.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(by35);
2626};
2727
src/mame/drivers/freekick.c
r15975r15976
659659   MCFG_SOUND_ADD("sn1", SN76496_NEW, 12000000/4)
660660   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
661661   MCFG_SOUND_CONFIG(psg_intf)
662   
662
663663   MCFG_SOUND_ADD("sn2", SN76496_NEW, 12000000/4)
664664   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
665665   MCFG_SOUND_CONFIG(psg_intf)
666   
666
667667   MCFG_SOUND_ADD("sn3", SN76496_NEW, 12000000/4)
668668   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
669669   MCFG_SOUND_CONFIG(psg_intf)
670   
670
671671   MCFG_SOUND_ADD("sn4", SN76496_NEW, 12000000/4)
672672   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
673673   MCFG_SOUND_CONFIG(psg_intf)
src/mame/drivers/atronic.c
r15975r15976
4545
4646
4747static ADDRESS_MAP_START( atronic_portmap, AS_IO, 8, atronic_state )
48//   ADDRESS_MAP_GLOBAL_MASK(0xff)
48//  ADDRESS_MAP_GLOBAL_MASK(0xff)
4949   ADDRESS_MAP_UNMAP_HIGH
5050   AM_RANGE(0x00, 0x3f) AM_RAM
5151ADDRESS_MAP_END
src/mame/drivers/atari_s3.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(atari_s3);
2626};
2727
src/mame/drivers/chihiro.c
r15975r15976
20502050   ROM_LOAD("gdx-0017d.pic_data", 0x00, 0x50, NO_DUMP )
20512051ROM_END
20522052
2053ROM_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 )
2061ROM_END
2062
20532063ROM_START( scg06nt )
20542064   CHIHIRO_BIOS
20552065
r15975r15976
20962106GAME( 2005, wangmid2, chihiro, chihirogd,    chihiro, driver_device, 0, ROT0, "Namco",     "Wangan Midnight Maximum Tune 2 (Export) (GDX-0015)", GAME_NO_SOUND|GAME_NOT_WORKING )
20972107GAME( 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 )
20982108GAME( 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 )
2109GAME( 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 )
20992110GAME( 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 )
src/mame/drivers/gts3.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(gts3);
2626};
2727
src/mame/drivers/mpu4plasma.c
r15975r15976
2525   {
2626      return machine().rand();
2727   }
28   
28
2929   DECLARE_WRITE16_MEMBER( mpu4plasma_unk_w )
3030   {
3131
r15975r15976
4040
4141static ADDRESS_MAP_START( mpu4plasma_map, AS_PROGRAM, 16, mpu4plasma_state )
4242   AM_RANGE(0x000000, 0x03ffff) AM_ROM
43   
43
4444   // why does it test this much ram, just sloppy code expecting mirroring?
4545   AM_RANGE(0x400000, 0x4fffff) AM_RAM AM_SHARE("plasmaram")
4646   // comms?
47   AM_RANGE(0xffff00, 0xffff01) AM_READ( mpu4plasma_unk_r )
47   AM_RANGE(0xffff00, 0xffff01) AM_READ( mpu4plasma_unk_r )
4848   AM_RANGE(0xffff04, 0xffff05) AM_WRITE( mpu4plasma_unk_w )
4949ADDRESS_MAP_END
5050
r15975r15976
6767      for (x=0;x<128/16;x++)
6868      {
6969         UINT16 pix = rambase[base+i];
70         
70
7171         for (p=0;p<16;p++)
7272         {
7373            UINT16 bit = (pix << p)&0x8000;
r15975r15976
7979
8080      }
8181   }
82   
82
8383   return 0;
8484}
8585
r15975r15976
170170   ROM_REGION( 0x40000, "plasmacpu", 0 ) \
171171   ROM_LOAD16_BYTE( "plasma.p0", 0x00000, 0x010000, NO_DUMP ) \
172172   ROM_LOAD16_BYTE( "plasma.p1", 0x00001, 0x010000, NO_DUMP ) \
173 
174173
174
175175ROM_START( m4apach )
176176   ROM_REGION( 0x10000, "maincpu", 0 )
177177   ROM_LOAD( "a6ps.p1", 0x0000, 0x010000, CRC(41e375c7) SHA1(93556a90227cde6814123c8a7f29f734884e182c) )
r15975r15976
196196
197197#define GAME_FLAGS (GAME_NOT_WORKING|GAME_REQUIRES_ARTWORK)
198198
199GAMEL(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 )
200GAMEL(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 )
201GAMEL(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 )
202GAMEL(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 )
199GAMEL(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 )
200GAMEL(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 )
201GAMEL(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 )
202GAMEL(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 )
203203
204204GAMEL(199?, m4click      ,0         ,mpu4plasma      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Clickity Click (Barcrest) (MPU4 w/ Plasma DMD)",                     GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma )
205205
206206// not confirmed to be plasma, is this an alt version of big chief? maybe it uses the same plasma roms?
207GAMEL(199?, m4apach      ,0         ,mpu4plasma      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Apache (Barcrest) (MPU4 w/ Plasma DMD?)",                  GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma )
207GAMEL(199?, m4apach      ,0         ,mpu4plasma    ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Apache (Barcrest) (MPU4 w/ Plasma DMD?)",                  GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma )
208208// not confirmed to be plasma, but acts like it
209GAMEL(199?, m4elite      ,0         ,mpu4plasma      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Elite (Barcrest) (MPU4 w/ Plasma DMD?)",                  GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma )
209GAMEL(199?, m4elite      ,0         ,mpu4plasma    ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Elite (Barcrest) (MPU4 w/ Plasma DMD?)",                  GAME_FLAGS|GAME_NO_SOUND,layout_mpu4plasma )
src/mame/drivers/naomi.c
r15975r15976
48674867   NAOMI_DEFAULT_EEPROM
48684868
48694869   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) )
48714871   ROM_LOAD("mpr-22950.ic1",  0x0800000, 0x0800000, CRC(16dee15c) SHA1(b46849e492756ff406bf8956303472255fcf55a5) )
48724872   ROM_LOAD("mpr-22951.ic2",  0x1000000, 0x0800000, CRC(f509496f) SHA1(41281576f7d58c8ede9c0a89bfd46a98d5b97033) )
48734873   ROM_LOAD("mpr-22952.ic3",  0x1800000, 0x0800000, CRC(fb9b3ef0) SHA1(e9d44b673c273e97445a12186496a0594e291542) )
r15975r15976
60196019   NAOMI_DEFAULT_EEPROM
60206020
60216021   DISK_REGION( "gdrom" )
6022   DISK_IMAGE_READONLY( "gdl-0005", 0, BAD_DUMP SHA1(f5513c88528741798ee49f936b9b69480360f103) )
6022   DISK_IMAGE_READONLY( "gdl-0005", 0, SHA1(9778c00e063f29cb401d1877f277e97ec84c7dc4) )
60236023
60246024   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
60256025    //PIC16C621A-20 (317-5077-JPN)
r15975r15976
60646064   NAOMI_DEFAULT_EEPROM
60656065
60666066   DISK_REGION( "gdrom" )
6067   DISK_IMAGE_READONLY( "gdl-0010", 0, BAD_DUMP SHA1(65dcc22dd9e9b70975096464ad8e31a4a73dc5fd) )
6067   DISK_IMAGE_READONLY( "gdl-0010", 0, SHA1(cdae4618adfd8eab5a06fbb491ce18a0286e3cae) )
60686068
60696069   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
60706070   //PIC16C622A (317-5081-JPN)
r15975r15976
61236123   NAOMI_DEFAULT_EEPROM
61246124
61256125   DISK_REGION( "gdrom" )
6126   DISK_IMAGE_READONLY( "gdl-0014a", 0, BAD_DUMP SHA1(f88d8203c8692f51c9492d5549a3ad7d9583dc6f) )
6126   DISK_IMAGE_READONLY( "gdl-0014a", 0, SHA1(f2e94fef622e3142aaaf95c8a013356eb72eae82) )
61276127
61286128   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
61296129   //PIC16C622A (317-5085-JPN)
r15975r15976
62006200   ROM_LOAD("shikgam2-default-eeprom.bin", 0, 0x80, CRC(5fb60e27) SHA1(a64242083a718f0a4b1d2e4707f5eb7480265719))
62016201
62026202   DISK_REGION( "gdrom" )
6203   DISK_IMAGE_READONLY( "gdl-0021", 0, BAD_DUMP SHA1(f5036711a28a211e8d71400a8322db3172c5733f) )
6203   DISK_IMAGE_READONLY( "gdl-0021", 0, SHA1(ca572f71d559b36206a5d70bdeb2db9aebcb227b) )
62046204
62056205   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
62066206   //PIC16C622A (317-5095-JPN)
r15975r15976
62346234   ROM_LOAD("bdrdown-default-eeprom.bin", 0, 0x80, CRC(5b19727c) SHA1(1dd9c721d58e4542d04afe17baa77980d0ed8b6a))
62356235
62366236   DISK_REGION( "gdrom" )
6237   DISK_IMAGE_READONLY( "gdl-0023a", 0, BAD_DUMP SHA1(caac915104d61f2122f5afe27da1ef5fa9cf9f9a) )
6237   DISK_IMAGE_READONLY( "gdl-0023a", 0, SHA1(b8b8c8aeb09e2657095268bd54e71461b1af2abe) )
62386238
62396239   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
62406240   //PIC16C622A (317-5097-JPN)
r15975r15976
62526252   ROM_LOAD("psyvar2-default-eeprom.bin", 0, 0x80, CRC(9d8661f3) SHA1(c696277a7b488bee6ddb33a1d5345a85c1567cbe))
62536253
62546254   DISK_REGION( "gdrom" )
6255   DISK_IMAGE_READONLY( "gdl-0024", 0, BAD_DUMP SHA1(d346762036fb1c40a261a434b50e63459f306f14) )
6255   DISK_IMAGE_READONLY( "gdl-0024", 0, SHA1(f7046f901ede9c70f40d3ff6c022116380c95bd5) )
62566256
62576257   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
62586258   //PIC16C621A (317-5100-JPN)
r15975r15976
62866286   ROM_LOAD("trizeal-default-eeprom.bin", 0, 0x80, CRC(ac0847ce) SHA1(ec12a6bbf074bf3bfe2e9bfe2855b7bd7e699f3c))
62876287
62886288   DISK_REGION( "gdrom" )
6289   DISK_IMAGE_READONLY( "gdl-0026", 0, BAD_DUMP SHA1(e4c1e51292a7923b25bfc61d38fe386bf596002a) )
6289   DISK_IMAGE_READONLY( "gdl-0026", 0, SHA1(2aacd8400d91db8bb1c103b915f6d808e9aef333
6290) )
62906291
62916292   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
62926293   //PIC16C621A (317-5103-JPN)
r15975r15976
63176318   ROM_LOAD("senko-default-eeprom.bin", 0, 0x80, CRC(b3d3be09) SHA1(55af4f6e35f82f683682bf731d3070bc275d6e57))
63186319
63196320   DISK_REGION( "gdrom" )
6320   DISK_IMAGE_READONLY( "gdl-0030a", 0, BAD_DUMP  SHA1(1f7ade47e37a0026451b5baf3ba746400de8d156) )
6321   DISK_IMAGE_READONLY( "gdl-0030a", 0, SHA1(85503fc0793b883f84b191f5ea50c763773c6f59) )
63216322
63226323   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
63236324   //PIC16C622A (317-5107-JPN)
r15975r15976
63496350   ROM_REGION( 0x80, "mie_eeprom", 0 )
63506351   ROM_LOAD("ss2005-default-eeprom.bin", 0, 0x80, CRC(26bd9003) SHA1(f35551c96c49eef5473ff50a94b82ef5110b0f10))
63516352
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) )
63546355
63556356   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
63566357   //PIC16C622A (317-5108-JPN)
r15975r15976
64436444   ROM_LOAD("trgheart-default-eeprom.bin", 0, 0x80, CRC(7faff313) SHA1(1bc25e4595ef050e82eb820842ba6ccd63b6703e))
64446445
64456446   DISK_REGION( "gdrom" )
6446   DISK_IMAGE_READONLY( "gdl-0036a", 0, BAD_DUMP SHA1(91f1e19136997cb1e2edfb1ad342b9427d1d3bfb) )
6447   DISK_IMAGE_READONLY( "gdl-0036a", 0, SHA1(82bc92b0485f6db74465dbe257cf28f9e92ac0fc) )
64476448
64486449   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
64496450   //PIC16C622A (317-5121-JPN)
r15975r15976
65156516   ROM_LOAD("karous-default-eeprom.bin", 0, 0x80, CRC(b017451c) SHA1(a16d8e2cde8ebe0e2dd6d0b5c027bcdff56a809b))
65166517
65176518   DISK_REGION( "gdrom" )
6518   DISK_IMAGE_READONLY( "gdl-0040", 0, BAD_DUMP SHA1(a62c8d4b6c5be44a4aeeea1a1a94f3d0fe542593) )
6519   DISK_IMAGE_READONLY( "gdl-0040", 0, SHA1(a3ca75c20aff34c35bc8e0af609b7353cb9123d9) )
65196520
65206521   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
65216522   //PIC16C621A (317-5125-COM)
r15975r15976
70117012   ROM_LOAD("317-0338-jpn.pic", 0x00, 0x4000, CRC(b177ba7d) SHA1(f751ec43a8e944a01eeda58c01b7bc73e5df749d) )
70127013ROM_END
70137014
7015ROM_START( ngdup23e )
7016   NAOMIGD_BIOS
7017   NAOMI_DEFAULT_EEPROM
70147018
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 )
7025ROM_END
7026
70157027ROM_START( puyofev )
70167028   NAOMIGD_BIOS
70177029   NAOMI_DEFAULT_EEPROM
r15975r15976
70207032   ROM_LOAD("puyofev-default-eeprom.bin", 0, 0x80, CRC(42e5fd40) SHA1(e805bca22ae192e26965ba00534e6b87a3df238f))
70217033
70227034   DISK_REGION( "gdrom" )
7023   DISK_IMAGE_READONLY( "gds-0031", 0, BAD_DUMP SHA1(da2d421da9472b149619b6931bb2fe624be75fa2) )
7035   DISK_IMAGE_READONLY( "gds-0031", 0, SHA1(2b7f1861cd68dbbe9fce51aa87a366540da391e5) )
70247036
70257037   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
70267038   //PIC16C621A (317-0375-COM)
r15975r15976
73217333   NAOMI_DEFAULT_EEPROM
73227334
73237335   DISK_REGION( "gdrom" )
7324   DISK_IMAGE_READONLY( "gds-0036f", 0, BAD_DUMP SHA1(ea35d6ecdf94e5c9a545952758da80f658755df0) )
7336   DISK_IMAGE_READONLY( "gds-0036f", 0, SHA1(197ee1b09531f9bf204033de182e39ec5128d9f6) )
73257337
73267338   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
73277339   //PIC16C622A (317-0387-COM)
r15975r15976
74217433   ROM_LOAD("317-0343-com.pic", 0x00, 0x4000, CRC(80eea4eb) SHA1(5aedc0d52a2a8a2d186ca591094835d972574092) )
74227434ROM_END
74237435
7436ROM_START( inidv3cy )
7437   NAOMI2_BIOS
7438   NAOMI_DEFAULT_EEPROM
74247439
7440   DISK_REGION( "gdrom" )
7441   DISK_IMAGE_READONLY( "gds-0039b", 0, SHA1(49521709c44a4eee1b384455940b3fec6e03e8fe) )
74257442
7443   ROM_REGION( 0x4000, "pic", ROMREGION_ERASEFF)
7444    // PIC/sticker unknown
7445   ROM_LOAD("317-unk-com.pic", 0x00, 0x4000, NO_DUMP )
7446ROM_END
7447
7448
74267449/**********************************************
74277450 *
74287451 * Atomiswave cart defines
r15975r15976
80178040// 0023B Naomi DIMM Firmware Updater (Rev B)
80188041/* 0023C */ GAME( 2001, ngdup23c,  naomigd,  naomigd, naomi, dc_state,    naomigd,    ROT0, "Sega", "Naomi DIMM Firmware Updater (Rev C) (GDS-0023C)", GAME_FLAGS )
80198042// 0023D Naomi DIMM Firmware Updater (Rev D)
8020// 0023E Naomi DIMM Firmware Updater (Rev E)
8043/* 0023E */ GAME( 2001, ngdup23e,  naomigd,  naomigd, naomi, dc_state,    naomigd,    ROT0, "Sega", "Naomi DIMM Firmware Updater (Rev E) (GDS-0023E)", GAME_FLAGS )
80218044// 0024  Virtua Fighter 4 Evolution
80228045/* 0024A */ GAME( 2002, vf4evoa,   vf4evo,   naomi2gd,naomi, dc_state,    naomi2,   ROT0, "Sega", "Virtua Fighter 4 Evolution (Rev A) (GDS-0024A)", GAME_FLAGS )
80238046/* 0024B */ GAME( 2002, vf4evo,    naomi2,   naomi2gd,naomi, dc_state,    naomi2,   ROT0, "Sega", "Virtua Fighter 4 Evolution (Rev B) (GDS-0024B)", GAME_FLAGS )
r15975r15976
80488071// 0038
80498072// 0039  Initial D: Arcade Stage Ver. 3 Cycraft Edition
80508073// 0039A Initial D: Arcade Stage Ver. 3 Cycraft Edition (Rev A)
8051// 0039B Initial D: Arcade Stage Ver. 3 Cycraft Edition (Rev B)
8074/* 0039B */ GAME( 2006, inidv3cy, naomi2, naomigd, naomi, dc_state,    naomi2,   ROT0, "Sega", "Initial D Arcade Stage Ver. 3 Cycraft Edition (Rev. B) (GDS-0039B)", GAME_FLAGS )
80528075// 0040
80538076// 0041  Dragon Treasure 3
80548077// 0041A Dragon Treasure 3 (Rev A)
src/mame/drivers/mpu4mod4yam.c
r15975r15976
1717   // this helps with sorting
1818   UINT8 *src = machine().root_device().memregion( "maincpu" )->base();
1919   int size = machine().root_device().memregion( "maincpu" )->bytes();
20   
20
2121   for (int j=0;j<size;j+=0x10000)
2222   {
2323      if (size>0x10000) printf("\nblock 0x%06x:\n",j);
r15975r15976
645645
646646
647647GAME(199?, m4vivasx   ,0         ,mod4yam   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Viva Las Vegas Six (Barcrest) (MPU4)",GAME_FLAGS)
648GAME(199?, m4stc   ,0         ,mod4yam      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","unknown MPU4 'STC 0.1' (Barcrest) (MPU4)",GAME_FLAGS)
648GAME(199?, m4stc   ,0         ,mod4yam   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","unknown MPU4 'STC 0.1' (Barcrest) (MPU4)",GAME_FLAGS)
649649GAME(199?, m4sstrek   ,m4supst   ,mod4yam    ,mpu4            , mpu4_state,m4default         ,ROT0,   "bootleg","Super Streak (bootleg) (MPU4)",GAME_FLAGS)
650650GAME(199?, m4joljokd,m4joljok   ,mod4yam   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Jolly Joker (Barcrest) [Dutch] (MPU4) (DJJ)",GAME_FLAGS)
651651GAME(199?, m4clbshf   ,0         ,mod4yam   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Club Shuffle (Barcrest) (MPU4)",GAME_FLAGS) // set stake
652GAME(199?, m4voodoo   ,0         ,mod4yam      ,mpu4            , mpu4_state,m4altreels         ,ROT0,   "Barcrest","Voodoo 1000 (Barcrest) (Dutch) (MPU4) (DDO 3.2)",GAME_FLAGS )
652GAME(199?, m4voodoo   ,0         ,mod4yam   ,mpu4            , mpu4_state,m4altreels         ,ROT0,   "Barcrest","Voodoo 1000 (Barcrest) (Dutch) (MPU4) (DDO 3.2)",GAME_FLAGS )
653653GAME(199?, m4graffd   ,m4graff   ,mod4yam   ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Grafitti (Barcrest) [Dutch] (MPU4)",GAME_FLAGS )
src/mame/drivers/dassault.c
r15975r15976
11/***************************************************************************
22
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
74
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
810  Emulation by Bryan McPhail, mish@tendril.co.uk
911
10PCB DE-0344-3 (verified for the Japan set)
12PCB 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)
1121
22PCB DE-0345-1 (Sub board)
23 Data East 59 (68000 Sub CPU)
24 Data East 55 x 2
25 28MHz OSC
1226
27
1328Stephh's notes (based on the games M68000 code and some tests) :
1429
15300) all games
r15975r15976
564579static MACHINE_CONFIG_START( dassault, dassault_state )
565580
566581   /* basic machine hardware */
567   MCFG_CPU_ADD("maincpu", M68000, 14000000) /* Accurate */
582   MCFG_CPU_ADD("maincpu", M68000, XTAL_28MHz/2)   /* 14MHz - Accurate */
568583   MCFG_CPU_PROGRAM_MAP(dassault_map)
569584   MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
570585
571   MCFG_CPU_ADD("sub", M68000, 14000000) /* Accurate */
586   MCFG_CPU_ADD("sub", M68000, XTAL_28MHz/2)   /* 14MHz - Accurate */
572587   MCFG_CPU_PROGRAM_MAP(dassault_sub_map)
573588   MCFG_CPU_VBLANK_INT("screen", irq5_line_hold)
574589
575   MCFG_CPU_ADD("audiocpu", H6280,32220000/8)   /* Accurate */
590   MCFG_CPU_ADD("audiocpu", H6280, XTAL_32_22MHz/8)   /* Accurate */
576591   MCFG_CPU_PROGRAM_MAP(sound_map)
577592
578593//  MCFG_QUANTUM_TIME(attotime::from_hz(8400)) /* 140 CPU slices per frame */
r15975r15976
609624   /* sound hardware */
610625   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
611626
612   MCFG_SOUND_ADD("ym1", YM2203, 32220000/8)
627   MCFG_SOUND_ADD("ym1", YM2203, XTAL_32_22MHz/8)
613628   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.40)
614629   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.40)
615630
616   MCFG_SOUND_ADD("ym2", YM2151, 32220000/9)
631   MCFG_SOUND_ADD("ym2", YM2151, XTAL_32_22MHz/9)
617632   MCFG_SOUND_CONFIG(ym2151_config)
618633   MCFG_SOUND_ROUTE(0, "lspeaker", 0.45)
619634   MCFG_SOUND_ROUTE(1, "rspeaker", 0.45)
620635
621   MCFG_OKIM6295_ADD("oki1", 1023924, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified
636   MCFG_OKIM6295_ADD("oki1", XTAL_32_22MHz/32, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified - was 1.023924MHz
622637   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50)
623638   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.50)
624639
625   MCFG_OKIM6295_ADD("oki2", 2047848, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified
640   MCFG_OKIM6295_ADD("oki2", XTAL_32_22MHz/16, OKIM6295_PIN7_HIGH) // clock frequency & pin 7 not verified - was 2.047848MHz
626641   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.25)
627642   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.25)
628643MACHINE_CONFIG_END
r15975r15976
631646
632647ROM_START( thndzone )
633648   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 */
711ROM_END
712
713ROM_START( thndzonea )
714   ROM_REGION(0x80000, "maincpu", 0 ) /* 68000 code */
634715   ROM_LOAD16_BYTE("gz01.a15", 0x00000, 0x20000, CRC(15e8c328) SHA1(8876b5fde77604c2fe4654271ceb341a8fa460c1) )
635716   ROM_LOAD16_BYTE("gz03.a17", 0x00001, 0x20000, CRC(aab5c86e) SHA1(c3560b15360ddf14e8444d9f70724e698b2bd42f) )
636717   ROM_LOAD16_BYTE("gt00.a14", 0x40000, 0x20000, CRC(b7277175) SHA1(ffb19c4dd12e0391f01de57c46a7998885fe22bf) ) /* Same data as GS00.A14 */
r15975r15976
9431024
9441025/**********************************************************************************/
9451026
946GAME( 1991, thndzone,  0,        dassault, thndzone,  dassault_state, thndzone, ROT0, "Data East Corporation", "Thunder Zone (World)", GAME_SUPPORTS_SAVE )
1027GAME( 1991, thndzone,  0,        dassault, thndzone,  dassault_state, thndzone, ROT0, "Data East Corporation", "Thunder Zone (Rev 1, World)", GAME_SUPPORTS_SAVE )
1028GAME( 1991, thndzonea, thndzone, dassault, thndzone,  dassault_state, thndzone, ROT0, "Data East Corporation", "Thunder Zone (World)", GAME_SUPPORTS_SAVE )
9471029GAME( 1991, thndzonej, thndzone, dassault, thndzone,  dassault_state, thndzone, ROT0, "Data East Corporation", "Thunder Zone (Japan)", GAME_SUPPORTS_SAVE )
9481030GAME( 1991, dassault,  thndzone, dassault, dassault,  dassault_state, dassault, ROT0, "Data East Corporation", "Desert Assault (US)", GAME_SUPPORTS_SAVE )
9491031GAME( 1991, dassault4, thndzone, dassault, dassault4, dassault_state, dassault, ROT0, "Data East Corporation", "Desert Assault (US 4 Players)", GAME_SUPPORTS_SAVE )
src/mame/drivers/mpu4mod2sw.c
r15975r15976
456456   ROM_REGION( 0x10000, "maincpu", 0 )
457457   ROM_LOAD( "caz_1_2.p1", 0x0000, 0x010000, CRC(78383d52) SHA1(cd69d4e600273e3da7aa61e51266e8f1765ad5dc) )
458458ROM_END
459   
459
460460ROM_START( m4cashzna )
461461   ROM_REGION( 0x10000, "maincpu", 0 )
462462   ROM_LOAD( "caz_1_5.p1", 0x0000, 0x010000, CRC(c0d80d62) SHA1(e062be12159a67b5da883345565f3a52a1dd2ebe) )
r15975r15976
985985ROM_START( m4supjstb )
986986   ROM_REGION( 0x10000, "maincpu", 0 )
987987   ROM_LOAD( "super jester 2.1.90 10p 4.80 p1.bin", 0x8000, 0x008000, CRC(14f2dc51) SHA1(7dcf54a25bcaa2081f906d0ad44bcae183a32371) )
988//   ROM_LOAD( "31.1.90cj10p4.80v6.bin", 0x8000, 0x008000, CRC(14f2dc51) SHA1(7dcf54a25bcaa2081f906d0ad44bcae183a32371) ) // marked crown jester?
988//  ROM_LOAD( "31.1.90cj10p4.80v6.bin", 0x8000, 0x008000, CRC(14f2dc51) SHA1(7dcf54a25bcaa2081f906d0ad44bcae183a32371) ) // marked crown jester?
989989ROM_END
990990
991991ROM_START( m4supjstc )
r15975r15976
18671867GAME(199?, m4ttak   ,  0,      mod2   ,mpu4, mpu4_state, m4default, ROT0,   "<unknown>","Tic Tac Take (unknown) (MPU4)",GAME_FLAGS )
18681868
18691869GAME(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
1870GAME(199?, m4actbnkb,m4actbnk   ,mod2      ,mpu4jackpot8tkn   , mpu4_state,m4default         ,ROT0,   "Barcrest","Action Bank (Barcrest) (Mod 2 type, ACT2.0) (MPU4)",GAME_FLAGS )
1870GAME(199?, m4actbnkb,m4actbnk   ,mod2      ,mpu4jackpot8tkn   , mpu4_state,m4default         ,ROT0,   "Barcrest","Action Bank (Barcrest) (Mod 2 type, ACT2.0) (MPU4)",GAME_FLAGS )
18711871
18721872GAME(199?, m4actclb      ,0         ,mod2      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Action Club (Barcrest) (MPU4) (1.9)",GAME_FLAGS ) // set stake to boot
18731873GAME(199?, m4actclba   ,m4actclb   ,mod2      ,mpu4            , mpu4_state,m4default         ,ROT0,   "Barcrest","Action Club (Barcrest) (MPU4) (1.1)",GAME_FLAGS ) //  ^^
src/mame/drivers/jclub2.c
r15975r15976
66  various hardware revisions
77  all use a MC68EC020FG16 CPU
88
9   extra customs
9    extra customs
1010
1111  jclub2  : SETA ST-0032 (video + sound? **1),                       SETA ST-0013, SETA ST-0017     ( PCB E79-001 rev 01a )
1212  jclub2o : SETA ST-0020 (video), SETA ST-0016 (sound + video? **2), SETA ST-0013, SETA ST-0017     ( E06-00409 /  E06-00407 )
r15975r15976
2626  **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
2727   seem to be any other dedicated sound chip
2828
29  **2 ST-0016 video functionality is probably not used
29  **2 ST-0016 video functionality is probably not used
3030
3131
3232
r15975r15976
883883
884884Graphics : SETA ST-0032 70C600JF505
885885
886Others :
886Others :
887887     SETA ST-0013
888888     SETA ST-0017
889889
r15975r15976
10011001   // is there a way (key sequence) to reprogram it??
10021002   // I bet the original sets need similar get further in their boot sequence
10031003   UINT8  *eeprom = (UINT8 *)  machine().root_device().memregion("eeprom")->base();
1004   if (eeprom != NULL)   
1004   if (eeprom != NULL)
10051005   {
10061006      size_t len = machine().root_device().memregion("eeprom")->bytes();
10071007      UINT8* temp = (UINT8*)auto_alloc_array(machine(), UINT8, len);
10081008      int i;
10091009      for (i = 0; i < len; i++)
10101010         temp[i] = eeprom[BITSWAP8(i,7,5,4,3,2,1,0,6)];
1011     
1011
10121012      memcpy(eeprom, temp, len);
10131013      auto_free(machine(), temp);
10141014   }
src/mame/drivers/atarig1.c
r15975r15976
12321232
12331233DRIVER_INIT_MEMBER(atarig1_state,hydra)     { init_g1_common(machine(), 0x078000, 116, 0); }
12341234DRIVER_INIT_MEMBER(atarig1_state,hydrap)    { init_g1_common(machine(), 0x000000,   0, 0); }
1235                                     
1235
12361236DRIVER_INIT_MEMBER(atarig1_state,pitfight9)  { init_g1_common(machine(), 0x038000, 114, 1); }
12371237DRIVER_INIT_MEMBER(atarig1_state,pitfight7)  { init_g1_common(machine(), 0x038000, 112, 1); }
12381238DRIVER_INIT_MEMBER(atarig1_state,pitfight)   { init_g1_common(machine(), 0x038000, 111, 1); }
src/mame/drivers/markham.c
r15975r15976
177177 *  Sound interface
178178 *
179179 *************************************/
180 
181 
180
181
182182//-------------------------------------------------
183183//  sn76496_config psg_intf
184184//-------------------------------------------------
r15975r15976
222222   MCFG_SOUND_ADD("sn1", SN76496_NEW, 8000000/2)
223223   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
224224   MCFG_SOUND_CONFIG(psg_intf)
225   
225
226226   MCFG_SOUND_ADD("sn2", SN76496_NEW, 8000000/2)
227227   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
228228   MCFG_SOUND_CONFIG(psg_intf)
src/mame/drivers/vega.c
r15975r15976
8383   OBJ_1,
8484   OBJ_2,
8585   OBJ_PLAYER,
86   
86
8787   NUM_OBJ
8888};
8989
r15975r15976
9797   m_i8255(*this, "ppi8255"),
9898   m_ins8154(*this, "ins8154"),
9999   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
106106   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];
114114   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);
125125   DECLARE_READ8_MEMBER(p2_r);
126126   DECLARE_READ8_MEMBER(t1_r);
127127   DECLARE_WRITE8_MEMBER(rombank_w);
128   
128
129129   DECLARE_READ8_MEMBER(txtram_r);
130130   DECLARE_READ8_MEMBER(randomizer);
131131   DECLARE_WRITE8_MEMBER(txtram_w);
132132   DECLARE_WRITE8_MEMBER(ppi_pb_w);
133133   DECLARE_WRITE8_MEMBER(ppi_pc_w);
134   
134
135135   DECLARE_READ8_MEMBER(ins8154_pa_r);
136136   DECLARE_WRITE8_MEMBER(ins8154_pa_w);
137137   DECLARE_READ8_MEMBER(ins8154_pb_r);
r15975r15976
141141   DECLARE_WRITE8_MEMBER(ay8910_pa_w);
142142   DECLARE_READ8_MEMBER(ay8910_pb_r);
143143   DECLARE_WRITE8_MEMBER(ay8910_pb_w);
144   
144
145145   DECLARE_DRIVER_INIT(vega);
146146
147147
r15975r15976
150150WRITE8_MEMBER(vega_state::extern_w)
151151{
152152   m_ext_offset_w=offset;
153   
153
154154   switch((m_p2_data>>2)&7) /* 7442 = lines 2,3,4 - select device */
155155   {
156     
156
157157      case 0:  /* 00-03 */
158158      {
159159         /* PPI 8255 /CS */
160160         m_i8255->write(space, (m_p2_data>>6)&3, data);
161161      }
162162      break;
163     
163
164164      case 1: /* 04-07 */
165165      {
166166         /* AY 3-8910 */
167167         ay8910_address_w(m_ay8910, 0, offset);
168168      }
169169      break;
170     
170
171171      case 2: /* 08-0b */
172172      {
173173         /* INS 8154  /CS0 */
174         
174
175175         if(m_p2_data&0x40) /* P26 connected to M/IO pin */
176176         {
177177               m_ins8154_ram[offset&0x7f]=data;
r15975r15976
183183         }
184184      }
185185      break;
186     
186
187187      case 3: /* 0c-0f */
188188      {
189189         if(offset&4)
190190         {
191191            int num=0; //?
192           
192
193193            switch(offset&3)
194194            {
195               case 0:
195               case 0:
196196                  m_obj[num].m_x=(m_obj[num].m_x&0x80)|(data>>1); //?
197197                  m_obj[num].m_enable=data&1;
198198               break;
199               
200               case 1:
199
200               case 1:
201201                  m_obj[num].m_x=(m_obj[num].m_x&0x7f)|((data&1)<<7);
202202               break;
203           
203
204204               case 2: m_obj[num].m_y=data; break;
205205               case 3: m_obj[num].m_type=data&0x0f; break;
206206            }
r15975r15976
210210               // 0 - y ?
211211            switch(offset&3)
212212            {
213               case 0:
213               case 0:
214214                  m_obj[OBJ_PLAYER].m_y=data;
215215               break;
216               
216
217217               case 1:
218218                  m_tilemap_offset_y=data;
219219               break;
220                 
220
221221               case 2:
222222                  m_tilemap_offset_x=((m_tilemap_offset_x)&(~0xff))|data;
223223               break;
224               
224
225225               case 3:
226226                  m_tilemap_top=data&0x0f;
227227                  m_tilemap_flags=data>>4;
228228               break;
229229            }
230         
230
231231         }
232     
232
233233      }
234234      break;
235     
235
236236      case 4: /* 10-13 */
237237      {
238238         int num=(offset&4)?1:2;
239         
239
240240         switch(offset&3)
241241         {
242            case 0:
242            case 0:
243243               m_obj[num].m_x=(m_obj[num].m_x&0x80)|(data>>1);
244244               m_obj[num].m_enable=data&1;
245245            break;
246               
247            case 1:
246
247            case 1:
248248               m_obj[num].m_x=(m_obj[num].m_x&0x7f)|((data&1)<<7);
249249            break;
250           
250
251251            case 2: m_obj[num].m_y=data; break;
252252            case 3: m_obj[num].m_type=data&0x0f; break;
253         
253
254254         }
255           
255
256256      }
257257      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
277277   default: logerror("unknown w %x %x %x\n",m_p2_data,offset, data);
278   
278
279279   }
280280}
281281READ8_MEMBER(vega_state::extern_r)
282282{
283283   m_ext_offset_r=offset;
284   
284
285285   switch((m_p2_data>>2)&7)
286286   {
287287      case 0: /* PPI 8255 /CS */
r15975r15976
289289         return m_i8255->read( space, m_p2_data>>6); /* A6,A7 -> A0,A1 */
290290      }
291291      break;
292     
292
293293      case 1: /* 04-07 */
294294      {
295295         /* AY 3-8910 */
r15975r15976
298298
299299      }
300300      break;
301     
301
302302      case 2: /* 08-0b */
303303      {
304304         /* INS 8154  /CS0 */
305         
305
306306         if(m_p2_data&0x40) /* P26 connected to M/IO pin */
307307         {
308308            return m_ins8154_ram[offset&0x7f];
r15975r15976
312312            //register r ?
313313            return ins8154_r(m_ins8154,offset&0x7f);
314314         }
315         
315
316316      }
317317      break;
318#if 0     
318#if 0
319319      case 3: /* 0c-0f */
320320      {
321     
322     
321
322
323323      }
324324      break;
325     
325
326326      case 4: /* 10-13 */
327327      {
328     
328
329329      }
330330      break;
331     
331
332332      case 5: /* 14-17 */
333333      {
334     
334
335335      }
336336      break;
337     
337
338338      case 6: /* 18-1b */
339339      {
340     
340
341341      }
342342      break;
343     
343
344344      case 7: /* 1c-1f */
345345      {
346     
346
347347      }
348348      break;
349349#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);
351351   }
352   
352
353353   return 0;
354354}
355355
r15975r15976
380380ADDRESS_MAP_END
381381
382382/*
383MCS48_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   */
383MCS48_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    */
391391static ADDRESS_MAP_START( vega_io_map, AS_IO, 8, vega_state )
392392   AM_RANGE(0x00, 0xff) AM_READWRITE(extern_r, extern_w)
393393   AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_READ_PORT("DSW") AM_WRITE(rombank_w) //101
r15975r15976
414414   PORT_DIPSETTING(    0x08, DEF_STR( 1C_1C ) )
415415   PORT_DIPSETTING(    0x10, DEF_STR( 1C_2C ) )
416416   PORT_DIPSETTING(    0x18, DEF_STR( 1C_3C ) )
417   
417
418418   PORT_DIPNAME( 0x20, 0x20, "Speed" ) PORT_DIPLOCATION("SW1:6")
419419   PORT_DIPSETTING(    0x20, DEF_STR( Normal ) )
420420    PORT_DIPSETTING(    0x00, DEF_STR( High ) )
421   
421
422422   PORT_DIPNAME( 0x40, 0x40, "Ext Play at" ) PORT_DIPLOCATION("SW1:7")
423423   PORT_DIPSETTING(    0x40, "3.000" )
424424    PORT_DIPSETTING(    0x00, "4.000" )
425   
425
426426   PORT_DIPNAME( 0x80, 0x80, "Bomb Speed" ) PORT_DIPLOCATION("SW1:8")
427427   PORT_DIPSETTING(    0x80, DEF_STR( Normal ) )
428428    PORT_DIPSETTING(    0x00, DEF_STR( High ) )
429429
430   
430
431431   //PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unused ) ) /* output */
432   
432
433433   PORT_START("IN0")
434434   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
435435   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
436436
437437
438438   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_START1 )
439   
439
440440   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 )
441   
441
442442   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
443443
444444   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
445445   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
446446   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 )
447   
447
448448   PORT_START("IN1")
449449   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_TILT )
450450   PORT_BIT( 0x02, IP_ACTIVE_LOW,IPT_COIN1 )
451451   PORT_BIT( 0x04, IP_ACTIVE_LOW,IPT_COIN2 )
452   
452
453453   PORT_DIPNAME( 0x08, 0x00, "1-3" )  //unused ?
454454    PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
455455    PORT_DIPSETTING(    0x00, DEF_STR( On ) )
456   
456
457457   PORT_DIPNAME( 0x10, 0x00, "1-4" ) //unused ?
458458    PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
459459    PORT_DIPSETTING(    0x00, DEF_STR( On ) )
460   
460
461461   PORT_DIPNAME( 0x20, 0x00, "1-5" ) //unused ?
462462    PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
463463    PORT_DIPSETTING(    0x00, DEF_STR( On ) )
464   
464
465465   PORT_DIPNAME( 0x40, 0x00, "1-6" ) //some video status ?
466466    PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
467467    PORT_DIPSETTING(    0x00, DEF_STR( On ) )
468   
468
469469   PORT_DIPNAME( 0x80, 0x00, "1-7" ) //some video status ?
470470    PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
471471    PORT_DIPSETTING(    0x00, DEF_STR( On ) )
472       
472
473473INPUT_PORTS_END
474474
475475
r15975r15976
488488static void draw_tilemap(vega_state *state, screen_device& screen, bitmap_ind16& bitmap, const rectangle& cliprect)
489489{
490490   {
491   
491
492492   UINT8 *map_lookup = state->memregion("tilemaps")->base();
493493
494494   int offset_y=state->m_tilemap_offset_y;
495495   int offset_x=state->m_tilemap_offset_x;
496   
496
497497   //logerror("%d  %d\n",offset_x, offset_y);
498   
498
499499   for(int xx=0;xx<128;++xx)
500500   {
501501      for(int yy=0;yy<8;yy++)
502502      {
503   
504503
504
505505         int x0=xx*32;
506506         int y0=yy*32;
507               
508         
507
508
509509         int id=map_lookup[((yy+xx*8)+  ((state->m_tilemap_flags&2)?0x400:0) + (state->m_tilemap_top<<6 )  )  &0x7ff];
510         
510
511511         int flip=BIT(id,5);
512512
513         
513
514514         int num=(BITSWAP8( ((id>>2) &7),   7,6,5,4,3,0,1,2 ));
515         
515
516516         int bank=id&3;
517         
517
518518         if(bank!=3)
519519         {
520         
520
521521            num+=bank*8;
522           
522
523523         num*=8*4;
524         
525     
524
525
526526         for(int x=0;x<8;++x)
527527            for(int y=0;y<4;++y)
528528            {
r15975r15976
535535         }
536536      }
537537   }
538   
539   
538
539
540540   }
541   
542   
543   
544   
541
542
543
544
545545}
546546
547547static SCREEN_UPDATE_IND16( vega )
548548{
549549   vega_state *state = screen.machine().driver_data<vega_state>();
550550   ++state->m_frame_counter;
551   
551
552552   bitmap.fill(0, cliprect);
553   
553
554554   draw_tilemap(state, screen, bitmap, cliprect);
555   
556555
556
557557   {
558558      int x,y;
559559      int idx=0;
r15975r15976
562562      for(y=0;y<25;++y)
563563         for(x=0;x<40;++x)
564564         {
565           
565
566566            int character=state->m_txt_ram[idx];
567567            //int color=BITSWAP8(color_lookup[character],7,6,5,4,0,1,2,3)>>1;
568568            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
576576             color=BITSWAP8(color,7,6,5,4,0,1,2,3)&0x7;
577           
577
578578            color^=0xf;
579           
580         //   if(color==0) color=0xf;
581         
579
580         //  if(color==0) color=0xf;
581
582582            drawgfx_transpen(bitmap, cliprect,  screen.machine().gfx[0], character, color, 0, 0, x*7, y*10,0);
583         
583
584584            ++idx;
585585         }
586         
586
587587   }
588   
588
589589   {
590590      for(int i=OBJ_0;i<OBJ_PLAYER;++i)
591591      {
592         
592
593593         int x0=255-state->m_obj[i].m_x;
594594         int y0=255-state->m_obj[i].m_y;
595595         int num=state->m_obj[i].m_type&7;
596596         int flip=state->m_obj[i].m_type&8;
597         
597
598598         num*=4*8;
599599         for(int x=0;x<8;++x)
600600         for(int y=0;y<4;++y)
r15975r15976
610610
611611/*
612612
613   64 strips
614   
615   x - -  x x x
616             
617           
613    64 strips
618614
615    x - -  x x x
616
617
618
619619*/
620620
621621
r15975r15976
624624      {
625625         int x0=state->m_obj[OBJ_PLAYER].m_x;
626626         int y0=255-state->m_obj[OBJ_PLAYER].m_y-32;
627         
627
628628         UINT8 *sprite_lookup = state->memregion("proms")->base();
629629
630         
630
631631         for(int x=0;x<16;++x)
632632         {
633633            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
635635            int xor_line=( ! (( ! ((BIT(prom_data,1))&(BIT(prom_data,2))&(BIT(prom_data,3))&(BIT(x,2)) ) ) &
636636                        ( (BIT(prom_data,2)) | (BIT(prom_data,3)) | ( BIT(state->m_obj[OBJ_PLAYER].m_type,4)) ) ));
637               
637
638638            int strip_num=((prom_data)&0x7)|(   ((x&3)^(xor_line?0x3:0))  <<3)|((BIT(prom_data,3))<<5);
639         
639
640640            strip_num<<=2;
641           
641
642642            for(int y=0;y<4;++y)
643643            {
644               
644
645645               drawgfx_transpen(bitmap, cliprect,  screen.machine().gfx[3], strip_num, 0, !xor_line, 0, x*4+x0, y*8+y0, 0);
646646               ++strip_num;
647647            }
r15975r15976
662662   { 1,2,3,4,5,6,7 },
663663   /* y offsets */
664664   { 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
666666};
667667
668668static const gfx_layout tile_layout2 =
r15975r15976
722722
723723READ8_MEMBER(vega_state::txtram_r)
724724{
725   
725
726726   return m_txt_ram[m_ext_offset_r+((m_p2_data&3)<<8)];
727727}
728728
r15975r15976
830830
831831static MACHINE_START( vega )
832832{
833   
833
834834}
835835
836836
837837static MACHINE_CONFIG_START( vega, vega_state )
838838
839   
840   MCFG_CPU_ADD("maincpu", I8035, 4000000)
839
840   MCFG_CPU_ADD("maincpu", I8035, 4000000)
841841   MCFG_CPU_PROGRAM_MAP(vega_map)
842842   MCFG_CPU_IO_MAP(vega_io_map)
843843   MCFG_CPU_VBLANK_INT("screen",irq0_line_hold)
844844
845   
845
846846   MCFG_MACHINE_START(vega)
847847   MCFG_MACHINE_RESET(vega)
848   
848
849849   MCFG_I8255A_ADD( "ppi8255", ppi8255_intf )
850850   MCFG_INS8154_ADD( "ins8154", ins8154_intf)
851851
r15975r15976
862862
863863   MCFG_PALETTE_INIT(vega)
864864   MCFG_SCREEN_UPDATE_STATIC(vega)
865   
865
866866   /* sound hardware */
867867
868868   MCFG_SPEAKER_STANDARD_MONO("mono")
r15975r15976
870870   MCFG_SOUND_ADD("ay8910", AY8910, 1500000 )
871871   MCFG_SOUND_CONFIG(ay8910_inf)
872872   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
873   
873
874874MACHINE_CONFIG_END
875875
876876ROM_START( vega )
877877   ROM_REGION( 0x10000, "maincpu", 0 )
878878   ROM_LOAD( "rom9.bin",         0x0800, 0x0800, CRC(191c73cd) SHA1(17b1c3790f82b276e55d25ea8a38a3c9cf20bf12) )
879879   ROM_LOAD( "rom10a.bin",         0x1000, 0x1000, CRC(fca9a570) SHA1(598772db11b32518ed6bf5155a19f4f1761a4831) )
880   
880
881881   ROM_REGION( 0x01000, "gfx1", ROMREGION_INVERT  )
882882   ROM_LOAD( "rom8.bin",         0x0000, 0x0800, CRC(ccb8598c) SHA1(8c4a702f0653bb189db7d8ac4c2a06aacecc0de0) )
883883   ROM_LOAD( "rom7.bin",         0x0800, 0x0800, CRC(1de564cd) SHA1(7408cd29f1afc111aa695ecb00160d8f7fba7532) )
884   
884
885885   ROM_REGION( 0x01800, "gfx2", ROMREGION_INVERT  )
886886   ROM_LOAD( "rom2.bin",         0x0000, 0x0800, CRC(718da952) SHA1(1a0023be1ee3a48ed3ddb8daddbb49ca3f442d46) )
887887   ROM_LOAD( "rom3.bin",         0x0800, 0x0800, CRC(37944311) SHA1(8b20be3d3ca5cb27bef78a73ee7e977fdf76c7f1) )
888888   ROM_LOAD( "rom4.bin",         0x1000, 0x0800, CRC(09453d7a) SHA1(75fe96ae25467f82c0725834c6c04a197f50cce7) )
889   
889
890890   ROM_REGION( 0x01000, "gfx3", ROMREGION_INVERT  )
891891   ROM_LOAD( "rom5.bin",         0x0000, 0x0800, CRC(be3df449) SHA1(acba1e07bdf9c0e971f47f2433d2760472c4326a) )
892892   ROM_LOAD( "rom6.bin",         0x0800, 0x0800, CRC(dc46527c) SHA1(d10a54d8d3ce9ffd8a53bede3d089625aff445a2) )
893   
893
894894   ROM_REGION( 0x01000, "gfx4", ROMREGION_INVERT  )
895895   ROM_LOAD( "rom11.bin",         0x0000, 0x0800, CRC(d1896f77) SHA1(5b80bf7aa81508edfae4fa583b4b0077575a300c) )
896896   ROM_LOAD( "rom12.bin",         0x0800, 0x0800, CRC(f5f1df2f) SHA1(5851b468702e5e4f085b64afbe7d8b797bb109b5) )
r15975r15976
900900   ROM_LOAD( "r9.bin",    0x0100, 0x0100, CRC(db0bcea5) SHA1(692bea2d9e28985fe7270a940e9f48ac64bdeaa8) ) // FIXED BITS (0000xxxx)
901901   ROM_LOAD( "r10.bin", 0x0200, 0x0100, CRC(ca5a3627) SHA1(8c632fa9174e336c588074f92f3519b0cf224852) ) // FIXED BITS (0000xxxx) - txt layer lookup table
902902   ROM_LOAD( "r11.bin", 0x0300, 0x0100, CRC(d8aab14a) SHA1(798feaa929dd7b71266220b568826997acd2a93e) ) // FIXED BITS (000011xx) - RNG? not used
903   
903
904904   ROM_REGION( 0x800, "tilemaps", 0 )
905905   ROM_LOAD( "rom1.bin",         0x0000, 0x0800, CRC(a0c0e0af) SHA1(7ccbfe3c23cda4c3a639c89ff4b2f554e2876c98) ) // FIXED BITS (00xxxxxx) (tile attribs?)
906906
src/mame/drivers/kontest.c
r15975r15976
221221 *  Sound interface
222222 *
223223 *************************************/
224 
225 
224
225
226226//-------------------------------------------------
227227//  sn76496_config psg_intf
228228//-------------------------------------------------
r15975r15976
282282   MCFG_SOUND_ADD("sn1", SN76489A_NEW, MAIN_CLOCK/16)
283283   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.50)
284284   MCFG_SOUND_CONFIG(psg_intf)
285   
285
286286   MCFG_SOUND_ADD("sn2", SN76489A_NEW, MAIN_CLOCK/16)
287287   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.50)
288288   MCFG_SOUND_CONFIG(psg_intf)
src/mame/drivers/segas16a.c
r15975r15976
185185
186186
187187//**************************************************************************
188//   PPI INTERFACES
188//  PPI INTERFACES
189189//**************************************************************************
190190
191191static I8255_INTERFACE(single_ppi_intf)
r15975r15976
201201
202202
203203//**************************************************************************
204//   PPI READ/WRITE CALLBACKS
204//  PPI READ/WRITE CALLBACKS
205205//**************************************************************************
206206
207207//-------------------------------------------------
r15975r15976
241241
242242   // bit 4: enable display
243243   segaic16_set_display_enable(machine(), data & 0x10);
244   
244
245245   // bits 0 & 1: update coin counters
246246   coin_counter_w(machine(), 1, data & 0x02);
247247   coin_counter_w(machine(), 0, data & 0x01);
r15975r15976
276276
277277
278278//**************************************************************************
279//   MAIN CPU READ/WRITE HANDLERS
279//  MAIN CPU READ/WRITE HANDLERS
280280//**************************************************************************
281281
282282//-------------------------------------------------
r15975r15976
349349
350350
351351//**************************************************************************
352//   Z80 SOUND CPU READ/WRITE HANDLERS
352//  Z80 SOUND CPU READ/WRITE HANDLERS
353353//**************************************************************************
354354
355355//-------------------------------------------------
r15975r15976
433433
434434
435435//**************************************************************************
436//   N7751 SOUND GENERATOR CPU READ/WRITE HANDLERS
436//  N7751 SOUND GENERATOR CPU READ/WRITE HANDLERS
437437//**************************************************************************
438438
439439//-------------------------------------------------
r15975r15976
486486
487487
488488//**************************************************************************
489//   I8751 MCU READ/WRITE HANDLERS
489//  I8751 MCU READ/WRITE HANDLERS
490490//**************************************************************************
491491
492492//-------------------------------------------------
r15975r15976
501501
502502   // apply reset to the main CPU
503503   m_maincpu->set_input_line(INPUT_LINE_RESET, (data & 0x40) ? ASSERT_LINE : CLEAR_LINE);
504   
504
505505   // apply IRQ bits to the main CPU
506506   for (int irqline = 1; irqline <= 7; irqline++)
507507      m_maincpu->set_input_line(irqline, ((~data & 7) == irqline) ? ASSERT_LINE : CLEAR_LINE);
r15975r15976
521521
522522//-------------------------------------------------
523523//  mcu_io_w - handle I/O space writes, which map
524//   to the 68000's address space
524//  to the 68000's address space
525525//-------------------------------------------------
526526
527527WRITE8_MEMBER( segas16a_state::mcu_io_w )
r15975r15976
576576
577577//-------------------------------------------------
578578//  mcu_io_r - handle I/O space reads, which map
579//   to the 68000's address space
579//  to the 68000's address space
580580//-------------------------------------------------
581581
582582READ8_MEMBER( segas16a_state::mcu_io_r )
r15975r15976
586586      case 0:
587587         // access watchdog? (unsure about this one)
588588         if (offset >= 0x0000 && offset < 0x3fff)
589            return watchdog_reset_r(space, 0);     
590         
589            return watchdog_reset_r(space, 0);
590
591591         // access main work RAM
592592         else if (offset >= 0x4000 && offset < 0x8000)
593593            return m_maincpu->space(AS_PROGRAM)->read_byte(0xc70001 ^ (offset & 0x3fff));
594         
594
595595         // access misc I/O space
596596         else if (offset >= 0x8000 && offset < 0xc000)
597597            return m_maincpu->space(AS_PROGRAM)->read_byte(0xc40001 ^ (offset & 0x3fff));
r15975r15976
627627
628628
629629//**************************************************************************
630//   I8751-RELATED VBLANK INTERRUPT HANDLERS
630//  I8751-RELATED VBLANK INTERRUPT HANDLERS
631631//**************************************************************************
632632
633633//-------------------------------------------------
634634//  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
637637//-------------------------------------------------
638638
639639INTERRUPT_GEN_MEMBER( segas16a_state::mcu_irq_assert )
r15975r15976
649649
650650//-------------------------------------------------
651651//  i8751_main_cpu_vblank - if we have a fake
652//   handler, we hook this to execute it
652//  handler, we hook this to execute it
653653//-------------------------------------------------
654654
655655INTERRUPT_GEN_MEMBER( segas16a_state::i8751_main_cpu_vblank )
r15975r15976
662662
663663
664664//**************************************************************************
665//   DRIVER OVERRIDES
665//  DRIVER OVERRIDES
666666//**************************************************************************
667667
668668//-------------------------------------------------
r15975r15976
692692         else if (m_mcu != NULL)
693693            machine().scheduler().boost_interleave(attotime::zero, attotime::from_msec(10));
694694         break;
695     
695
696696      // synchronize writes to the 8255 PPI
697697      case TID_PPI_WRITE:
698698         m_i8255->write(*m_maincpu->space(AS_PROGRAM), param >> 8, param & 0xff);
r15975r15976
703703
704704
705705//**************************************************************************
706//   I8751 SIMULATIONS
706//  I8751 SIMULATIONS
707707//**************************************************************************
708708
709709//-------------------------------------------------
710710//  dumpmtmt_i8751_sim - simulate the I8751
711//   from Dump Matsumoto
711//  from Dump Matsumoto
712712//-------------------------------------------------
713713
714714void segas16a_state::dumpmtmt_i8751_sim()
r15975r15976
758758
759759//-------------------------------------------------
760760//  quartet_i8751_sim - simulate the I8751
761//   from Quartet
761//  from Quartet
762762//-------------------------------------------------
763763
764764void segas16a_state::quartet_i8751_sim()
r15975r15976
779779
780780
781781//**************************************************************************
782//   CUSTOM I/O HANDLERS
782//  CUSTOM I/O HANDLERS
783783//**************************************************************************
784784
785785//-------------------------------------------------
786786//  aceattaa_custom_io_r - custom I/O read handler
787//   for Ace Attacker
787//  for Ace Attacker
788788//-------------------------------------------------
789789
790790READ16_MEMBER( segas16a_state::aceattaa_custom_io_r )
r15975r15976
831831
832832//-------------------------------------------------
833833//  mjleague_custom_io_r - custom I/O read handler
834//   for Major League
834//  for Major League
835835//-------------------------------------------------
836836
837837READ16_MEMBER( segas16a_state::mjleague_custom_io_r )
r15975r15976
911911
912912//-------------------------------------------------
913913//  passsht16a_custom_io_r - custom I/O read handler
914//   for Passing Shot
914//  for Passing Shot
915915//-------------------------------------------------
916916
917917READ16_MEMBER( segas16a_state::passsht16a_custom_io_r )
r15975r15976
944944
945945//-------------------------------------------------
946946//  sdi_custom_io_r - custom I/O read handler
947//   for SDI
947//  for SDI
948948//-------------------------------------------------
949949
950950READ16_MEMBER( segas16a_state::sdi_custom_io_r )
r15975r15976
965965
966966//-------------------------------------------------
967967//  sjryuko_custom_io_r - custom I/O read handler
968//   for Sukeban Jansi Ryuko
968//  for Sukeban Jansi Ryuko
969969//-------------------------------------------------
970970
971971READ16_MEMBER( segas16a_state::sjryuko_custom_io_r )
r15975r15976
999999
10001000
10011001//**************************************************************************
1002//   MAIN CPU ADDRESS MAPS
1002//  MAIN CPU ADDRESS MAPS
10031003//**************************************************************************
10041004
10051005static ADDRESS_MAP_START( system16a_map, AS_PROGRAM, 16, segas16a_state )
r15975r15976
10171017
10181018
10191019//**************************************************************************
1020//   SOUND CPU ADDRESS MAPS
1020//  SOUND CPU ADDRESS MAPS
10211021//**************************************************************************
10221022
10231023static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, segas16a_state )
r15975r15976
10381038
10391039
10401040//**************************************************************************
1041//   N7751 SOUND GENERATOR CPU ADDRESS MAPS
1041//  N7751 SOUND GENERATOR CPU ADDRESS MAPS
10421042//**************************************************************************
10431043
10441044static ADDRESS_MAP_START( n7751_portmap, AS_IO, 8, segas16a_state )
r15975r15976
10521052
10531053
10541054//**************************************************************************
1055//   I8751 MCU ADDRESS MAPS
1055//  I8751 MCU ADDRESS MAPS
10561056//**************************************************************************
10571057
10581058static ADDRESS_MAP_START( mcu_io_map, AS_IO, 8, segas16a_state )
r15975r15976
10651065
10661066
10671067//**************************************************************************
1068//   GENERIC PORT DEFINITIONS
1068//  GENERIC PORT DEFINITIONS
10691069//**************************************************************************
10701070
10711071static INPUT_PORTS_START( system16a_generic )
r15975r15976
11191119
11201120
11211121//**************************************************************************
1122//   GAME-SPECIFIC PORT DEFINITIONS
1122//  GAME-SPECIFIC PORT DEFINITIONS
11231123//**************************************************************************
11241124
11251125static INPUT_PORTS_START( aceattaa )
r15975r15976
19171917
19181918
19191919//**************************************************************************
1920//   SOUND CONFIGURATIONS
1920//  SOUND CONFIGURATIONS
19211921//**************************************************************************
19221922
19231923static const ym2151_interface ym2151_config =
r15975r15976
19291929
19301930
19311931//**************************************************************************
1932//   GRAPHICS DECODING
1932//  GRAPHICS DECODING
19331933//**************************************************************************
19341934
19351935static GFXDECODE_START( segas16a )
r15975r15976
19391939
19401940
19411941//**************************************************************************
1942//   GENERIC MACHINE DRIVERS
1942//  GENERIC MACHINE DRIVERS
19431943//**************************************************************************
19441944
19451945static MACHINE_CONFIG_START( system16a, segas16a_state )
r15975r15976
20502050
20512051
20522052//**************************************************************************
2053//   ROM definitions
2053//  ROM definitions
20542054//**************************************************************************
20552055
20562056
r15975r15976
34433443
34443444
34453445//**************************************************************************
3446//   CONFIGURATION
3446//  CONFIGURATION
34473447//**************************************************************************
34483448
34493449//-------------------------------------------------
r15975r15976
35333533
35343534
35353535//**************************************************************************
3536//   GAME DRIVERS
3536//  GAME DRIVERS
35373537//**************************************************************************
35383538
35393539//    YEAR, NAME,       PARENT,   MACHINE,                  INPUT,      INIT,                            MONITOR,COMPANY,FULLNAME,FLAGS
src/mame/drivers/segahang.c
r15975r15976
5959
6060
6161//**************************************************************************
62//   CONSTANTS
62//  CONSTANTS
6363//**************************************************************************
6464
6565const UINT32 MASTER_CLOCK_25MHz = 25174800;
r15975r15976
6969
7070
7171//**************************************************************************
72//   PPI INTERFACES
72//  PPI INTERFACES
7373//**************************************************************************
7474
7575static I8255_INTERFACE(hangon_ppi_intf_0)
r15975r15976
9595
9696
9797//**************************************************************************
98//   PPI READ/WRITE CALLBACKS
98//  PPI READ/WRITE CALLBACKS
9999//**************************************************************************
100100
101101//-------------------------------------------------
102102//  video_lamps_w - screen flip, sprite shadows,
103//   display enable, lamps, and coin counters
103//  display enable, lamps, and coin counters
104104//-------------------------------------------------
105105
106106WRITE8_MEMBER( segahang_state::video_lamps_w )
r15975r15976
120120   // bit 7: screen flip
121121   segaic16_tilemap_set_flip(machine(), 0, data & 0x80);
122122   segaic16_sprites_set_flip(machine(), 0, data & 0x80);
123   
123
124124   // bit 6: shadow/highlight control
125125   segaic16_sprites_set_shadow(machine(), 0, ~data & 0x40);
126126
r15975r15976
130130   // bits 2 & 3: control the lamps
131131   set_led_status(machine(), 1, data & 0x08);
132132   set_led_status(machine(), 0, data & 0x04);
133   
133
134134   // bits 0 & 1: update coin counters
135135   coin_counter_w(machine(), 1, data & 0x02);
136136   coin_counter_w(machine(), 0, data & 0x01);
r15975r15976
139139
140140//-------------------------------------------------
141141//  tilemap_sound_w - handshaking bits, plus
142//   tilemap control and global sound mute
142//  tilemap control and global sound mute
143143//-------------------------------------------------
144144
145145WRITE8_MEMBER( segahang_state::tilemap_sound_w )
r15975r15976
156156   //  D1 : SCONT0 - Tilemap origin bit 0
157157   //  D0 : MUTE (1= audio on, 0= audio off)
158158   //
159   
159
160160   // bit 7: NMI signal to the sound CPU
161161   m_soundcpu->set_input_line(INPUT_LINE_NMI, (data & 0x80) ? CLEAR_LINE : ASSERT_LINE);
162   
162
163163   // bits 1 & 2: tilemap origin
164164   segaic16_tilemap_set_colscroll(machine(), 0, ~data & 0x04);
165165   segaic16_tilemap_set_rowscroll(machine(), 0, ~data & 0x02);
166   
166
167167   // bit 0: sound mute
168168   machine().sound().system_enable(data & 0x01);
169169}
r15975r15976
171171
172172//-------------------------------------------------
173173//  sub_control_adc_w - sub CPU control and ADC
174//   selects
174//  selects
175175//-------------------------------------------------
176176
177177WRITE8_MEMBER( segahang_state::sub_control_adc_w )
178178{
179179   //
180   //   Sub PPI port A
180   //  Sub PPI port A
181181   //
182182   //  D6 : INTR line on second CPU
183183   //  D5 : RESET line on second CPU
184184   //  D3-D2 : ADC_SELECT
185185   //
186   
186
187187   // bit 6: INTR line
188188   m_subcpu->set_input_line(4, (data & 0x40) ? CLEAR_LINE : ASSERT_LINE);
189   
189
190190   // bit 5: RESET line
191191   m_subcpu->set_input_line(INPUT_LINE_RESET, (data & 0x20) ? ASSERT_LINE : CLEAR_LINE);
192192
r15975r15976
213213
214214
215215//**************************************************************************
216//   MAIN CPU READ/WRITE HANDLERS
216//  MAIN CPU READ/WRITE HANDLERS
217217//**************************************************************************
218218
219219//-------------------------------------------------
r15975r15976
277277
278278//-------------------------------------------------
279279//  sharrier_io_r - I/O handler for Space Harrier
280//   boards
280//  boards
281281//-------------------------------------------------
282282
283283READ16_MEMBER( segahang_state::sharrier_io_r )
r15975r15976
311311
312312//-------------------------------------------------
313313//  sharrier_io_w - I/O handler for Space Harrier
314//   boards
314//  boards
315315//-------------------------------------------------
316316
317317WRITE16_MEMBER( segahang_state::sharrier_io_w )
r15975r15976
354354
355355
356356//**************************************************************************
357//   Z80 SOUND CPU READ/WRITE HANDLERS
357//  Z80 SOUND CPU READ/WRITE HANDLERS
358358//**************************************************************************
359359
360360//-------------------------------------------------
r15975r15976
381381
382382
383383//**************************************************************************
384//   I8751-RELATED VBLANK INTERRUPT HANDLERS
384//  I8751-RELATED VBLANK INTERRUPT HANDLERS
385385//**************************************************************************
386386
387387//-------------------------------------------------
388388//  i8751_main_cpu_vblank - if we have a fake
389//   handler, we hook this to execute it
389//  handler, we hook this to execute it
390390//-------------------------------------------------
391391
392392INTERRUPT_GEN_MEMBER( segahang_state::i8751_main_cpu_vblank )
r15975r15976
399399
400400
401401//**************************************************************************
402//   DRIVER OVERRIDES
402//  DRIVER OVERRIDES
403403//**************************************************************************
404404
405405//-------------------------------------------------
r15975r15976
434434         else if (m_mcu != NULL)
435435            machine().scheduler().boost_interleave(attotime::zero, attotime::from_msec(10));
436436         break;
437     
437
438438      // synchronize writes to the 8255 PPI
439439      case TID_PPI_WRITE:
440440         m_i8255_1->write(*m_maincpu->space(AS_PROGRAM), param >> 8, param & 0xff);
r15975r15976
445445
446446
447447//**************************************************************************
448//   I8751 SIMULATIONS
448//  I8751 SIMULATIONS
449449//**************************************************************************
450450
451451//-------------------------------------------------
452452//  sharrier_i8751_sim - simulate the I8751
453//   from Space Harrier
453//  from Space Harrier
454454//-------------------------------------------------
455455
456456void segahang_state::sharrier_i8751_sim()
r15975r15976
465465
466466
467467//**************************************************************************
468//   MAIN CPU ADDRESS MAPS
468//  MAIN CPU ADDRESS MAPS
469469//**************************************************************************
470470
471471static ADDRESS_MAP_START( hangon_map, AS_PROGRAM, 16, segahang_state )
r15975r15976
498498
499499
500500//**************************************************************************
501//   SUB CPU ADDRESS MAPS
501//  SUB CPU ADDRESS MAPS
502502//**************************************************************************
503503
504504 // On Super Hang On there is a memory mapper, like the System16 one, todo: emulate it!
r15975r15976
513513
514514
515515//**************************************************************************
516//   SOUND CPU ADDRESS MAPS
516//  SOUND CPU ADDRESS MAPS
517517//**************************************************************************
518518
519519static ADDRESS_MAP_START( sound_map_2203, AS_PROGRAM, 8, segahang_state )
r15975r15976
555555
556556
557557//**************************************************************************
558//   I8751 MCU ADDRESS MAPS
558//  I8751 MCU ADDRESS MAPS
559559//**************************************************************************
560560
561561static ADDRESS_MAP_START( mcu_io_map, AS_IO, 8, segahang_state )
r15975r15976
564564
565565
566566//**************************************************************************
567//   GENERIC PORT DEFINITIONS
567//  GENERIC PORT DEFINITIONS
568568//**************************************************************************
569569
570570static INPUT_PORTS_START( hangon_generic )
r15975r15976
627627
628628
629629//**************************************************************************
630//   GAME-SPECIFIC PORT DEFINITIONS
630//  GAME-SPECIFIC PORT DEFINITIONS
631631//**************************************************************************
632632
633633static INPUT_PORTS_START( hangon )
r15975r15976
789789
790790
791791//**************************************************************************
792//   SOUND CONFIGURATIONS
792//  SOUND CONFIGURATIONS
793793//**************************************************************************
794794
795795static const ym2203_interface ym2203_config =
r15975r15976
815815
816816
817817//**************************************************************************
818//   GRAPHICS DECODING
818//  GRAPHICS DECODING
819819//**************************************************************************
820820
821821static GFXDECODE_START( segahang )
r15975r15976
825825
826826
827827//**************************************************************************
828//   GENERIC MACHINE DRIVERS
828//  GENERIC MACHINE DRIVERS
829829//**************************************************************************
830830
831831static MACHINE_CONFIG_START( shared_base, segahang_state )
r15975r15976
973973
974974
975975//**************************************************************************
976//   SPECIFIC MACHINE DRIVERS
976//  SPECIFIC MACHINE DRIVERS
977977//**************************************************************************
978978
979979static MACHINE_CONFIG_DERIVED( hangon, hangon_base )
r15975r15976
10321032
10331033
10341034//**************************************************************************
1035//   ROM definitions
1035//  ROM definitions
10361036//**************************************************************************
10371037
10381038
r15975r15976
11521152//*************************************************************************************************************************
11531153//*************************************************************************************************************************
11541154//*************************************************************************************************************************
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
11581158//
1159//   CPU: FD1094 317-0038
1159//  CPU: FD1094 317-0038
11601160//
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)
11641164//
11651165ROM_START( shangonro )
11661166   ROM_REGION( 0x40000, "maincpu", 0 ) // 68000 code
r15975r15976
13531353
13541354//*************************************************************************************************************************
13551355//  Space Harrier
1356//   CPU: 68000 + i8751 (315-5163)
1356//  CPU: 68000 + i8751 (315-5163)
13571357//
13581358//  ASSY CPU BD 834-5797
13591359//  ASSY CONTROL BD 834-5798
r15975r15976
17451745
17461746
17471747//**************************************************************************
1748//   CONFIGURATION
1748//  CONFIGURATION
17491749//**************************************************************************
17501750
17511751//-------------------------------------------------
r15975r15976
18091809
18101810
18111811//**************************************************************************
1812//   GAME DRIVERS
1812//  GAME DRIVERS
18131813//**************************************************************************
18141814
18151815//    YEAR, NAME,      PARENT,   MACHINE,  INPUT,     INIT,                        MONITOR,COMPANY,FULLNAME,FLAGS
src/mame/drivers/ladybug.c
r15975r15976
714714 *  Sound interface
715715 *
716716 *************************************/
717 
718 
717
718
719719//-------------------------------------------------
720720//  sn76496_config psg_intf
721721//-------------------------------------------------
src/mame/drivers/maygayep.c
r15975r15976
6262/* in many sets the 0x100 - 0x1ff area contains revision information
6363   and sometimes bugfix notes..
6464
65   in other sets 0x200 - 0x204 contains 'bank' or 'reels' maybe to
65   in other sets 0x200 - 0x204 contains 'bank' or 'reels' maybe to
6666   indicate if the roms are for a topbox or the player unit?
67   
67
6868   there doesn't seem to be a hard defined standard for this header
6969   information, it probably varies between manufacturer
7070
r15975r15976
349349   ROM_LOAD16_BYTE( "i00pwo17.g1", 0x000001, 0x020000, CRC(026c77ac) SHA1(deee91163e955dcc58d78fb3bad266dbf8036913) )
350350   EP_WIPEO_SOUND
351351ROM_END
352   
353352
353
354354#define EP_FUNNY_SOUND \
355355   ROM_REGION( 0x100000, "ymz", 0 ) \
356356   ROM_LOAD( "funnymoneysound0.bin", 0x000000, 0x080000, CRC(81354590) SHA1(f11e46ed0dadf98ffc2476ee993708cc15ffc7bd) ) \
r15975r15976
16411641   ROM_LOAD16_BYTE( "sa980008.g1", 0x00001, 0x020000, CRC(8366da15) SHA1(a7ca77ba8297df24e8f008844e25935848528613) )
16421642   EP_CFALL_SOUND
16431643ROM_END
1644   
1644
16451645ROM_START( ep_cfalla )
16461646   ROM_REGION( 0x080000, "maincpu", 0 )
16471647   ROM_LOAD16_BYTE( "sa980170.g0", 0x00000, 0x020000, CRC(3625c374) SHA1(9559516ed6b3612749615ddc7638b0a26648d9e7) )
r15975r15976
19201920   ROM_LOAD16_BYTE( "970024g1", 0x00001, 0x020000, CRC(968cac01) SHA1(de032081acdbd7242cde168a0c70d87233cb6b48) )
19211921   EP_MARIO_SOUND
19221922ROM_END
1923   
1923
19241924ROM_START( ep_marioa )
19251925   ROM_REGION( 0x080000, "maincpu", 0 )
19261926   ROM_LOAD16_BYTE( "970025g0", 0x00000, 0x020000, CRC(f2b71e7c) SHA1(b06f4fcc97b57b6ae4bbdaa7e99224c9af2d62df) )
r15975r15976
21512151   ROM_LOAD16_BYTE( "1ba6.1g1", 0x000001, 0x020000, CRC(fcac8e99) SHA1(a5aeec7ba1415525ac57427c8eca2309377d1a42) )
21522152   EP_25CRT_SOUND
21532153ROM_END
2154   
2154
21552155ROM_START( ep_25crta )
21562156   ROM_REGION( 0x080000, "maincpu", 0 )
21572157   ROM_LOAD16_BYTE( "msb02029.g0", 0x000000, 0x020000, CRC(0062a16b) SHA1(0025bca547826e47f27965284a6b9f5fe9394dc3) )
r15975r15976
28582858   ROM_LOAD16_BYTE( "f_n_gl.g1", 0x000001, 0x020000, CRC(c35cbb80) SHA1(401e81a8ec2c23b3494f4603a4f9f6fb5f83c4dd) )
28592859   EP_FORTG_SOUND
28602860ROM_END
2861   
2861
28622862ROM_START( ep_fortga )
28632863   ROM_REGION( 0x080000, "maincpu", 0 )
28642864   ROM_LOAD16_BYTE( "i01nfg35.g0", 0x000000, 0x020000, CRC(99fd5271) SHA1(331ae4edafb13caae93a2a4e3f9bc53a56a081fa) )
r15975r15976
59135913   ROM_LOAD16_BYTE( "i00pff19.g3", 0x040001, 0x020000, CRC(d34de35f) SHA1(cc144e67153a329034cc54673c7c363c94be1b61) )
59145914   EP_FULLM_SOUND
59155915ROM_END
5916   
5916
59175917ROM_START( ep_fullma )
59185918   ROM_REGION( 0x080000, "maincpu", 0 )
59195919   ROM_LOAD16_BYTE( "i00nff14.g0", 0x000000, 0x020000, CRC(825e2004) SHA1(5462c5b813799409ab44161b40fbf8ae00736444) )
src/mame/drivers/ecoinfr.c
r15975r15976
967967EC_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
968968/* No header (all 0x00) space for one tho */
969969EC_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
970EC_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)" ) // ^^
970EC_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)" ) // ^^
971971EC_SBARX_SET( 199?, ec_sbarx__a1,   ec_sbarx,   "iss173.rom",                     0x0000, 0x008000, CRC(984f9c18) SHA1(f160eeee6ea70c79502fc68f70cb973e1ca029b8), "Electrocoin","Super Bar X (Electrocoin) (set 65)" )
972972EC_SBARX_SET( 199?, ec_sbarx__a2,   ec_sbarx,   "iss2012.rom",                     0x0000, 0x008000, CRC(455cfdcb) SHA1(53fb0748a544b432b88455fa597b7017e06b3059), "Electrocoin","Super Bar X (Electrocoin) (set 66)" )
973973EC_SBARX_SET( 199?, ec_sbarx__a3,   ec_sbarx,   "sbx5red",                        0x0000, 0x008000, CRC(7991231a) SHA1(cd1978c48a3c214666d51ca930d3d480540448ec), "Electrocoin","Super Bar X (Electrocoin) (set 67)" )
src/mame/drivers/cyclemb.c
r15975r15976
11/***************************************************************************************************
22
33    Cycle Maabou (c) 1984 Taito Corporation / Seta
4   Sky Destroyer (c) 1985 Taito Corporation
4    Sky Destroyer (c) 1985 Taito Corporation
55
66    appears to be in the exact middle between the gsword / josvolly HW and the ppking / gladiator HW
77
88    driver by Angelo Salese
99
1010    TODO:
11   - inputs in Cycle Maabou;
11    - inputs in Cycle Maabou;
1212    - sound (controlled by three i8741);
1313    - add flipscreen;
1414    - color prom resistor network is guessed;
r15975r15976
108108   UINT16 m_dsw_pc_hack;
109109
110110   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);
113113   DECLARE_WRITE8_MEMBER(cyclemb_flip_w);
114114   DECLARE_READ8_MEMBER(skydest_i8741_0_r);
115115   DECLARE_WRITE8_MEMBER(skydest_i8741_0_w);
r15975r15976
317317   UINT16 spr_offs,i;
318318   INT16 x,y;
319319
320//   popmessage("%d %d",state->m_obj2_ram[0x0d], 0xf1 - state->m_obj2_ram[0x0c+1] + 68);
320//  popmessage("%d %d",state->m_obj2_ram[0x0d], 0xf1 - state->m_obj2_ram[0x0c+1] + 68);
321321
322322   for(i=0;i<0x80;i+=2)
323323   {
r15975r15976
336336      if(region == 2)
337337      {
338338         spr_offs >>= 2;
339      //   spr_offs += ((state->m_obj3_ram[i+0] & 3) << 5);
339      //  spr_offs += ((state->m_obj3_ram[i+0] & 3) << 5);
340340         x-=16;
341341      }
342342
r15975r15976
939939   MCFG_SCREEN_VISIBLE_AREA(2*8, 34*8-1, 2*8, 30*8-1)
940940   MCFG_SCREEN_UPDATE_STATIC(skydest)
941941
942//   MCFG_PALETTE_INIT(skydest)
942//  MCFG_PALETTE_INIT(skydest)
943943MACHINE_CONFIG_END
944944
945945/***************************************************************************
r15975r15976
998998
999999   ROM_REGION( 0x10000, "sprite_data", ROMREGION_ERASEFF )
10001000    ROM_LOAD( "pd0-7.1k",     0x000000, 0x002000, CRC(83137d42) SHA1(7e35f28577d6bfeee184a0ac3095b478999d6477) ) //ok
1001      ROM_LOAD( "pd1-8.1l",     0x002000, 0x002000, CRC(b810858b) SHA1(385e625fc989a1dfa18559a62c99363b62c66a67) ) //ok
1001   ROM_LOAD( "pd1-8.1l",     0x002000, 0x002000, CRC(b810858b) SHA1(385e625fc989a1dfa18559a62c99363b62c66a67) ) //ok
10021002    ROM_LOAD( "pd0-9.1m",     0x004000, 0x002000, CRC(6f558bee) SHA1(0539feaa848d6cfb9f90a46a851f73fb74e82676) ) //ok
10031003    ROM_LOAD( "pd1-10.1n",    0x006000, 0x002000, CRC(5840b5b5) SHA1(1b5b188023c4d3198402c946b8c5a51d7f512a07) )
10041004    ROM_LOAD( "pd0-11.1r",    0x008000, 0x002000, CRC(29e5fce4) SHA1(59748e3a192a45dce7920e8d5a7a11d5145915b0) ) //ok
1005      ROM_LOAD( "pd0-12.1s",    0x00a000, 0x002000, CRC(06234942) SHA1(1cc40a8c8e24ab6db1dc7dc88979be23b7a9cab6) )
1005   ROM_LOAD( "pd0-12.1s",    0x00a000, 0x002000, CRC(06234942) SHA1(1cc40a8c8e24ab6db1dc7dc88979be23b7a9cab6) )
10061006    ROM_LOAD( "pd1-13.1t",    0x00c000, 0x002000, CRC(3cca5b95) SHA1(74baec7c128254c394dd3162df7abacf5ed5a99b) ) //ok
10071007    ROM_LOAD( "pd0-14.1u",    0x00e000, 0x002000, CRC(7ef05b01) SHA1(f36ad1c0dac201729def78dc18feacda8fcf1a3f) )
10081008
src/mame/drivers/mpu4crystal.c
r15975r15976
722722   ROM_LOAD( "ct15.bin", 0x8000, 0x008000, CRC(27eab355) SHA1(0ad6a09015b2ddfe87563f3d88f84d2d5b3c74a0) )
723723   M4RAGS_SOUND
724724ROM_END
725     
725
726726ROM_START( m4ragsa )
727727   ROM_REGION( 0x010000, "maincpu", 0 )
728728   ROM_LOAD( "ct15p.bin", 0x8000, 0x008000, CRC(7ea5df79) SHA1(d1c355db97010dc9075217efe40d6620258ae3e4) )
r15975r15976
798798GAME(199?, m4frkstng,m4frkstn   ,mpu4crys   ,mpu4      , mpu4_state,m_frkstn,   ROT0,   "Crystal","Frank 'n' Stein (Crystal) (MPU4, set 8)",   GAME_FLAGS|GAME_NO_SOUND )
799799GAME(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
800800GAME(199?, m4aladn   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
801GAME(199?, m4aladna   ,m4aladn     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
802GAME(199?, m4aladnb   ,m4aladn     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
803GAME(199?, m4aladnc   ,m4aladn     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
804GAME(199?, m4aladnd   ,m4aladn     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 5)",   GAME_FLAGS|GAME_NO_SOUND )
805GAME(199?, m4aladne   ,m4aladn     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 6)",   GAME_FLAGS|GAME_NO_SOUND )
806GAME(199?, m4aladnf   ,m4aladn     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 7)",   GAME_FLAGS|GAME_NO_SOUND )
807GAME(199?, m4aladng   ,m4aladn     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 8)",   GAME_FLAGS|GAME_NO_SOUND )
808GAME(199?, m4aladnh   ,m4aladn     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 9)",   GAME_FLAGS|GAME_NO_SOUND )
809GAME(199?, m4aladni   ,m4aladn     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 10)",   GAME_FLAGS|GAME_NO_SOUND )
801GAME(199?, m4aladna   ,m4aladn   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
802GAME(199?, m4aladnb   ,m4aladn   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
803GAME(199?, m4aladnc   ,m4aladn   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
804GAME(199?, m4aladnd   ,m4aladn   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 5)",   GAME_FLAGS|GAME_NO_SOUND )
805GAME(199?, m4aladne   ,m4aladn   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 6)",   GAME_FLAGS|GAME_NO_SOUND )
806GAME(199?, m4aladnf   ,m4aladn   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 7)",   GAME_FLAGS|GAME_NO_SOUND )
807GAME(199?, m4aladng   ,m4aladn   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 8)",   GAME_FLAGS|GAME_NO_SOUND )
808GAME(199?, m4aladnh   ,m4aladn   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 9)",   GAME_FLAGS|GAME_NO_SOUND )
809GAME(199?, m4aladni   ,m4aladn   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Aladdin's Cave (Crystal) (MPU4) (set 10)",   GAME_FLAGS|GAME_NO_SOUND )
810810GAME(199?, m4bagcsh   ,0         ,mpu4crys   ,mpu4      , mpu4_state,m_frkstn,   ROT0,   "Crystal","Bags Of Cash Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
811GAME(199?, m4bagcsha,m4bagcsh     ,mpu4crys   ,mpu4      , mpu4_state,m_frkstn,   ROT0,   "Crystal","Bags Of Cash Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
811GAME(199?, m4bagcsha,m4bagcsh   ,mpu4crys   ,mpu4      , mpu4_state,m_frkstn,   ROT0,   "Crystal","Bags Of Cash Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
812812GAME(199?, m4bucclb   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Buccaneer Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
813813GAME(199?, m4bucclba,m4bucclb   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Buccaneer Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
814814GAME(199?, m4bucclbb,m4bucclb   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Buccaneer Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
815815GAME(199?, m4bucclbc,m4bucclb   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Buccaneer Club (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
816816GAME(199?, m4bullio   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Bullion Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
817GAME(199?, m4bullioa,m4bullio     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Bullion Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
818GAME(199?, m4bulliob,m4bullio     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Bullion Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
817GAME(199?, m4bullioa,m4bullio   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Bullion Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
818GAME(199?, m4bulliob,m4bullio   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Bullion Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
819819GAME(199?, m4carou   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Carousel Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
820GAME(199?, m4caroua   ,m4carou      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Carousel Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
821GAME(199?, m4caroub   ,m4carou      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Carousel Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
822GAME(199?, m4carouc   ,m4carou      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Carousel Club (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
820GAME(199?, m4caroua   ,m4carou   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Carousel Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
821GAME(199?, m4caroub   ,m4carou   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Carousel Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
822GAME(199?, m4carouc   ,m4carou   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Carousel Club (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
823823GAME(199?, m4cclimb   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
824GAME(199?, m4cclimba,m4cclimb     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
824GAME(199?, m4cclimba,m4cclimb   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
825825GAME(199?, m4crzcl   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
826GAME(199?, m4crzcla   ,m4crzcl      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
827GAME(199?, m4crzclb   ,m4crzcl      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
828GAME(199?, m4crzclc   ,m4crzcl      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
829GAME(199?, m4crzcld   ,m4crzcl      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 5)",   GAME_FLAGS|GAME_NO_SOUND )
826GAME(199?, m4crzcla   ,m4crzcl   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
827GAME(199?, m4crzclb   ,m4crzcl   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
828GAME(199?, m4crzclc   ,m4crzcl   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
829GAME(199?, m4crzcld   ,m4crzcl   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Crazy Climber Club (Crystal) (MPU4) (set 5)",   GAME_FLAGS|GAME_NO_SOUND )
830830GAME(199?, m4elitc   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Elite Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
831GAME(199?, m4elitca   ,m4elitc      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Elite Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
831GAME(199?, m4elitca   ,m4elitc   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Elite Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
832832GAME(199?, m4fairg   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Fairground (Crystal) (MPU4)",   GAME_FLAGS|GAME_NO_SOUND )
833833GAME(199?, m4frmani   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Fruit Mania (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
834GAME(199?, m4frmania,m4frmani     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Fruit Mania (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
835GAME(199?, m4frmanib,m4frmani     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Fruit Mania (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
836GAME(199?, m4frmanic,m4frmani     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Fruit Mania (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
834GAME(199?, m4frmania,m4frmani   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Fruit Mania (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
835GAME(199?, m4frmanib,m4frmani   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Fruit Mania (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
836GAME(199?, m4frmanic,m4frmani   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Fruit Mania (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
837837GAME(199?, m4goldxc   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Gold Exchange Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
838838GAME(199?, m4goldxca,m4goldxc   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Gold Exchange Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
839839GAME(199?, m4goldxcb,m4goldxc   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Gold Exchange Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
r15975r15976
841841GAME(199?, m4goldxcd,m4goldxc   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Gold Exchange Club (Crystal) (MPU4) (set 5)",   GAME_FLAGS|GAME_NO_SOUND )
842842GAME(199?, m4goldxce,m4goldxc   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Gold Exchange Club (Crystal) (MPU4) (set 6)",   GAME_FLAGS|GAME_NO_SOUND )
843843GAME(199?, m4goldfc   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Gold Fever (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
844GAME(199?, m4goldfca,m4goldfc     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Gold Fever (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
845GAME(199?, m4goldfcb,m4goldfc     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Gold Fever (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
844GAME(199?, m4goldfca,m4goldfc   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Gold Fever (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
845GAME(199?, m4goldfcb,m4goldfc   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Gold Fever (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
846846GAME(199?, m4hirol   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Hi Roller Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
847GAME(199?, m4hirola   ,m4hirol      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Hi Roller Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
847GAME(199?, m4hirola   ,m4hirol   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Hi Roller Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
848848GAME(199?, m4kingqn   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Kings & Queens Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
849849GAME(199?, m4kingqna,m4kingqn   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Kings & Queens Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
850850GAME(199?, m4lotclb   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Lottery Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
851GAME(199?, m4lotclba,m4lotclb     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Lottery Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
851GAME(199?, m4lotclba,m4lotclb   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Lottery Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
852852GAME(199?, m4montrl   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystali,   ROT0,   "Crystal","Money Trail (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted!
853GAME(199?, m4montrla,m4montrl     ,mpu4crys   ,mpu4      , mpu4_state,crystali,   ROT0,   "Crystal","Money Trail (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted!
854GAME(199?, m4montrlb,m4montrl     ,mpu4crys   ,mpu4      , mpu4_state,crystali,   ROT0,   "Crystal","Money Trail (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted!
855GAME(199?, m4montrlc,m4montrl     ,mpu4crys   ,mpu4      , mpu4_state,crystali,   ROT0,   "Crystal","Money Trail (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted!
856GAME(199?, m4montrld,m4montrl     ,mpu4crys   ,mpu4      , mpu4_state,crystali,   ROT0,   "Crystal","Money Trail (Crystal) (MPU4) (set 5)",   GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted!
853GAME(199?, m4montrla,m4montrl   ,mpu4crys   ,mpu4      , mpu4_state,crystali,   ROT0,   "Crystal","Money Trail (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted!
854GAME(199?, m4montrlb,m4montrl   ,mpu4crys   ,mpu4      , mpu4_state,crystali,   ROT0,   "Crystal","Money Trail (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted!
855GAME(199?, m4montrlc,m4montrl   ,mpu4crys   ,mpu4      , mpu4_state,crystali,   ROT0,   "Crystal","Money Trail (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted!
856GAME(199?, m4montrld,m4montrl   ,mpu4crys   ,mpu4      , mpu4_state,crystali,   ROT0,   "Crystal","Money Trail (Crystal) (MPU4) (set 5)",   GAME_FLAGS|GAME_NO_SOUND ) // encryption is inverted!
857857GAME(199?, m4mystiq   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Mystique Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
858GAME(199?, m4mystiqa,m4mystiq     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Mystique Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
859GAME(199?, m4mystiqb,m4mystiq     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Mystique Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
860GAME(199?, m4mystiqc,m4mystiq     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Mystique Club (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
858GAME(199?, m4mystiqa,m4mystiq   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Mystique Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
859GAME(199?, m4mystiqb,m4mystiq   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Mystique Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
860GAME(199?, m4mystiqc,m4mystiq   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Mystique Club (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
861861GAME(199?, m4nudwin   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Nudge & Win (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
862862GAME(199?, m4nudwina,m4nudwin   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Nudge & Win (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
863863GAME(199?, m4paracl   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Paradise Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
864GAME(199?, m4paracla,m4paracl     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Paradise Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
864GAME(199?, m4paracla,m4paracl   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Paradise Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
865865GAME(199?, m4rlpick   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Reel Picks (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
866866GAME(199?, m4rlpicka,m4rlpick   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Reel Picks (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
867867GAME(199?, m4rlpickb,m4rlpick   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Reel Picks (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
868868GAME(199?, m4rlpickc,m4rlpick   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Reel Picks (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
869869GAME(199?, m4twstr   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
870GAME(199?, m4twstra   ,m4twstr      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
871GAME(199?, m4twstrb   ,m4twstr      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
872GAME(199?, m4twstrc   ,m4twstr      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
873GAME(199?, m4twstrd   ,m4twstr      ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister (Crystal) (MPU4) (set 5)",   GAME_FLAGS|GAME_NO_SOUND )
870GAME(199?, m4twstra   ,m4twstr   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
871GAME(199?, m4twstrb   ,m4twstr   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
872GAME(199?, m4twstrc   ,m4twstr   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister (Crystal) (MPU4) (set 4)",   GAME_FLAGS|GAME_NO_SOUND )
873GAME(199?, m4twstrd   ,m4twstr   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister (Crystal) (MPU4) (set 5)",   GAME_FLAGS|GAME_NO_SOUND )
874874GAME(199?, m4twstcl   ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister Club (Crystal) (MPU4) (set 1)",   GAME_FLAGS|GAME_NO_SOUND )
875GAME(199?, m4twstcla,m4twstcl     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
876GAME(199?, m4twstclb,m4twstcl     ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
875GAME(199?, m4twstcla,m4twstcl   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister Club (Crystal) (MPU4) (set 2)",   GAME_FLAGS|GAME_NO_SOUND )
876GAME(199?, m4twstclb,m4twstcl   ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Twister Club (Crystal) (MPU4) (set 3)",   GAME_FLAGS|GAME_NO_SOUND )
877877GAME(199?, m4dz      ,0         ,mpu4crys   ,mpu4      , mpu4_state,crystal,   ROT0,   "Crystal","Danger Zone (Crystal) (MPU4)",   GAME_FLAGS|GAME_NO_SOUND )
878878GAME(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 )
879879GAME(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 )
src/mame/drivers/gts80b.c
r15975r15976
2323
2424   // driver_device overrides
2525   virtual void machine_reset();
26public:   
26public:
2727   DECLARE_DRIVER_INIT(gts80b);
2828};
2929
src/mame/drivers/segas18.c
r15975r15976
8080      case 7:
8181         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));
8282         break;
83         
83
8484      case 6:
8585         mapper.map_as_ram(0x00000, 0x02000, 0xffe000, "paletteram", write16_delegate(FUNC(segas18_state::legacy_wrapper<segaic16_paletteram_w>), this));
8686         break;
87         
87
8888      case 5:
8989         mapper.map_as_ram(0x00000, 0x10000, 0xfe0000, "tileram", write16_delegate(FUNC(segas18_state::legacy_wrapper<segaic16_tileram_0_w>), this));
9090         mapper.map_as_ram(0x10000, 0x01000, 0xfef000, "textram", write16_delegate(FUNC(segas18_state::legacy_wrapper<segaic16_textram_0_w>), this));
9191         break;
92     
92
9393      case 4:
9494         mapper.map_as_ram(0x00000, 0x00800, 0xfff800, "spriteram", write16_delegate());
9595         break;
96     
96
9797      case 3:
9898         mapper.map_as_ram(0x00000, 0x04000, 0xffc000, "workram", write16_delegate());
9999         break;
100         
100
101101      case 2:
102102         switch (m_romboard)
103103         {
104104            case ROM_BOARD_171_SHADOW:   break;   // ???
105            case ROM_BOARD_171_5874:   
105            case ROM_BOARD_171_5874:
106106            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;
107107            default:               assert(false);
108108         }
109109         break;
110         
110
111111      case 1:
112112         switch (m_romboard)
113113         {
r15975r15976
121121            default:               assert(false);
122122         }
123123         break;
124         
124
125125      case 0:
126126         switch (m_romboard)
127127         {
r15975r15976
205205
206206   megadriv_reset_vdp(machine());
207207   genvdp_use_cram = 1;
208   
208
209209   // if we are running with a real live 8751, we need to boost the interleave at startup
210210   if (m_mcu != NULL && m_mcu->type() == I8751)
211211      synchronize(TID_INITIAL_BOOST);
src/mame/drivers/mpu4hw.c
r15975r15976
512512*/
513513WRITE8_MEMBER(mpu4_state::bankswitch_w)
514514{
515//   printf("bankswitch_w %02x\n", data);
515//  printf("bankswitch_w %02x\n", data);
516516
517517   // m_pageset is never even set??
518518   m_pageval = (data & 0x03);
r15975r15976
529529WRITE8_MEMBER(mpu4_state::bankset_w)
530530{
531531
532//   printf("bankset_w %02x\n", data);
532//  printf("bankset_w %02x\n", data);
533533
534534   // m_pageset is never even set??
535535
src/mame/drivers/cobra.c
r15975r15976
22
33
44    Games on this hardware
5   ----------------------
5    ----------------------
66
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
1111
1212
13   Hardware overview:
14   
15   COBRA/603 GN645-PWB(A)   CPU Board
16   ----------------------------------
17       IBM PowerPC 603EV
18      Motorola XPC105ARX66CD
13    Hardware overview:
1914
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
2819
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)
3728
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
4737
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
5454*/
5555
5656/*
r15975r15976
107107
108108
109109
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):
144111
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
145144
146145
147   GFX Registers:
148146
149      0x00090:      Viewport width / 2?
150      0x0009c:      Viewport center X
151      0x000a4:      Viewport height / 2?
152      0x000ac:      Viewport center Y
147    GFX Registers:
153148
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
162153
163      0x02904:      -------- ------xx xx------ --------            Tex mag filter?
164                  -------- -------- --xxxx-- --------            Tex min filter?
154        0x00114:        High word: framebuffer pitch?   Low word: framebuffer pixel size?
165155
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
168158
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?
175160
176      0x02914:      --xxxxxx xxxxxxxx xx------ --------            ? (texture param, set to 0x1243)
161        0x00458:   Set to 0x02100000 (0xff) by texselect()
177162
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?
181165
182      0x40114:      -------- ----x--- -------- --------            Scissor enable
166        0x02908:        -------- ----xxx- -------- --------             Tex wrap S (0 = repeat, 1 = mirror, 2 = clamp)
167                        -------- -------x xx------ --------             Tex wrap T
183168
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
188175
189      0x40164:      xxxxxxxx xxxxxxxx -------- --------            Scissor Right
190                  -------- -------- xxxxxxxx xxxxxxxx            Scissor Bottom
176        0x02914:        --xxxxxx xxxxxxxx xx------ --------             ? (texture param, set to 0x1243)
191177
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()
194181
195      0x40174:      xxxxxxxx xxxxxxxx -------- --------            Viewport Right
196                  -------- -------- xxxxxxxx xxxxxxxx            Viewport Bottom
182        0x40114:        -------- ----x--- -------- --------             Scissor enable
197183
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()
204185
205      0x401bc:                                          Texture env mode
206                  xxx----- -------- -------- --------            ?
207                  ---xxx-- -------- -------- --------            ?
186        0x40160:        xxxxxxxx xxxxxxxx -------- --------             Scissor Left
187                        -------- -------- xxxxxxxx xxxxxxxx             Scissor Top
208188
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
217191
218                  -------- -------- xxxxxxxx xxxx----            Stencil reference value?
219                  xxx----- -------- -------- --------            Stencil function?
192        0x40170:        xxxxxxxx xxxxxxxx -------- --------             Viewport Left
193                        -------- -------- xxxxxxxx xxxxxxxx             Viewport Top
220194
221     
222      0x80020:      -------- ----xxx- -------- --------            Depth test function (7 = always?)
195        0x40174:        xxxxxxxx xxxxxxxx -------- --------             Viewport Right
196                        -------- -------- xxxxxxxx xxxxxxxx             Viewport Bottom
223197
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)
233201
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
240204
241      0x80054:      Set to 0x02400000 (0xe0) by mode_stencilmod()
205        0x401bc:                                                        Texture env mode
206                        xxx----- -------- -------- --------             ?
207                        ---xxx-- -------- -------- --------             ?
242208
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)
248217
249      0x80114:      (0xcc) by mode_colormask()
250      0x80118:      (0xcc) by mode_colormask()
218                        -------- -------- xxxxxxxx xxxx----             Stencil reference value?
219                        xxx----- -------- -------- --------             Stencil function?
251220
252      0x8011c:      xxxxxxxx xxxx---- -------- --------            Stencil mask
253221
254      0x80120:      -------- -------- xxxxxxxx xxxxxxxx            Depth mask register
222        0x80020:        -------- ----xxx- -------- --------             Depth test function (7 = always?)
255223
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)
262233
234                        -----x-- -------- -------- --------             Blend enable?
235                        -------- xxxx---- -------- --------             source factor?
236                        -------- ----xxxx -------- --------             source?
237                        -------- -------- xxxx---- --------             dest factor?
238                        -------- -------- ----xxxx --------             dest?
263239
264240
265      Bujutsu status:
241        0x80054:        Set to 0x02400000 (0xe0) by mode_stencilmod()
266242
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)
269248
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
273273*/
274274
275275
r15975r15976
469469   UINT8 m_s2m_int_enable;
470470   UINT8 m_vblank_enable;
471471
472   int m2sfifo_unk_flag;
473   int s2mfifo_unk_flag;
472   UINT8 m_m2s_int_mode;
473   UINT8 m_s2m_int_mode;
474474
475   UINT8 m_main_int_active;
475476
477
476478   UINT32 *m_comram[2];
477479   int m_comram_page;
478480
r15975r15976
509511void cobra_renderer::render_color_scan(INT32 scanline, const extent_t &extent, const cobra_polydata &extradata, int threadid)
510512{
511513   /*
512   UINT32 *fb = &m_framebuffer->pix32(scanline);
514    UINT32 *fb = &m_framebuffer->pix32(scanline);
513515
514   UINT32 color = 0xffff0000; // TODO
516    UINT32 color = 0xffff0000; // TODO
515517
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    */
521523}
522524
523525void cobra_renderer::render_texture_scan(INT32 scanline, const extent_t &extent, const cobra_polydata &extradata, int threadid)
r15975r15976
863865   switch (event)
864866   {
865867      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);
866882         break;
867     
883      }
884
868885      case cobra_fifo::EVENT_HALF_FULL:
869886         break;
870887
r15975r15976
879896   {
880897      case cobra_fifo::EVENT_EMPTY:
881898         break;
882     
899
883900      case cobra_fifo::EVENT_HALF_FULL:
884901         break;
885902
r15975r15976
10051022      UINT64 value;
10061023      m_s2mfifo->pop(&space.device(), &value);
10071024
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
10171025      r |= (UINT64)(value & 0xff) << 40;
10181026   }
10191027   if (ACCESSING_BITS_32_39)
r15975r15976
10271035      //         x         M2S FIFO unknown flag
10281036
10291037      int value = 0x01;
1030      //value |= s2mfifo_unk_flag ? 0x2 : 0x0;
10311038
1032      if (m_s2mfifo->is_empty())
1039      if (m_s2mfifo->is_empty())      // TODO: this is an interrupt
10331040      {
10341041         value |= 0x2;
10351042      }
1036      else if (!m_s2mfifo->is_full() && !m_s2mfifo->is_half_full())
1037      {
1038         //value |= s2mfifo_unk_flag ? 0x2 : 0x0;
1039      }
10401043
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;
10431046      value |= (m_gfx_unk_flag & 0x80) ? 0x00 : 0x04;
10441047
10451048      r |= (UINT64)(value) << 32;
r15975r15976
10551058      // Register 0xffff0002:
10561059      // Main-to-Sub FIFO write data
10571060
1058      //printf("MAIN: M2S FIFO data write %02X\n", (UINT8)(data >> 40) & 0xff);
1059
10601061      m_m2sfifo->push(&space.device(), (UINT8)(data >> 40));
10611062
10621063      cputag_set_input_line(space.machine(), "subcpu", INPUT_LINE_IRQ0, ASSERT_LINE);
10631064
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?
10671067      cpu_set_reg(m_subcpu, PPC_EXISR, cpu_get_reg(m_subcpu, PPC_EXISR) | 0x10);
10681068   }
10691069   if (ACCESSING_BITS_32_39)
r15975r15976
10731073      //
10741074      // 7 6 5 4 3 2 1 0
10751075      //----------------
1076      //         x            M2S unknown flag
1076      //         x            M2S interrupt mode (0 = empty, 1 = half full)
10771077      // x                    Comram page
10781078
1079      if (!m_m2sfifo->is_empty())
1079      m_m2s_int_mode = ((data >> 32) & 0x8) ? 1 : 0;
1080
1081      if (m_m2s_int_mode)
10801082      {
1081         if (m_m2sfifo->is_half_full())
1083         if (!m_m2sfifo->is_half_full())
10821084         {
1083            m2sfifo_unk_flag = 0x8;
1085            m_main_int_active |= 1;
10841086         }
10851087         else
10861088         {
1087            m2sfifo_unk_flag = ((data >> 32) & 0x8) ? 0 : 1;
1089            m_main_int_active &= ~1;
10881090         }
10891091      }
10901092      else
10911093      {
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         }
10931102      }
10941103
10951104      m_comram_page = ((data >> 32) & 0x80) ? 1 : 0;
r15975r15976
11241133
11251134      if ((m_s2m_int_enable & 0x80) == 0)
11261135      {
1136         m_main_int_active &= ~2;
1137
11271138         // clear the interrupt
11281139         cputag_set_input_line(space.machine(), "maincpu", INPUT_LINE_IRQ0, CLEAR_LINE);
11291140      }
r15975r15976
12401251
12411252// Interrupts:
12421253
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?
12501261
12511262//static int ucount = 0;
12521263
r15975r15976
12911302      UINT64 value;
12921303      m_m2sfifo->pop(&space.device(), &value);
12931304
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
13121305      r |= (value & 0xff) << 24;
13131306   }
13141307   if (ACCESSING_BITS_16_23)
r15975r15976
13251318      //       x            M2S FIFO full flag
13261319      //     x              M2S FIFO empty flag
13271320      //   x                M2S FIFO half-full flag
1328      // x              Comram page
1321      // x                  Comram page
13291322
13301323      UINT32 value = 0x00;
13311324      value |= m_s2mfifo->is_full() ? 0x00 : 0x01;
r15975r15976
13561349      // fire off an interrupt if enabled
13571350      if (m_s2m_int_enable & 0x80)
13581351      {
1352         m_main_int_active |= 2;
1353
13591354         cputag_set_input_line(space.machine(), "maincpu", INPUT_LINE_IRQ0, ASSERT_LINE);
13601355      }
13611356   }
13621357   if (ACCESSING_BITS_16_23)
13631358   {
13641359      // Register 0x7E380001
1360      //
1361      // 7 6 5 4 3 2 1 0
1362      //----------------
1363      //               x    S2M interrupt mode (0 = empty, 1 = half full)
13651364
1366      if (!m_s2mfifo->is_empty())
1365      m_s2m_int_mode = (data & 0x10000) ? 1 : 0;
1366
1367      if (m_s2m_int_mode)
13671368      {
1368         if (m_s2mfifo->is_half_full())
1369         if (!m_s2mfifo->is_half_full())
13691370         {
1370            s2mfifo_unk_flag = 1;
1371            cpu_set_reg(m_subcpu, PPC_EXISR, cpu_get_reg(m_subcpu, PPC_EXISR) | 0x08);
13711372         }
13721373         else
13731374         {
1374            s2mfifo_unk_flag = (~(data >> 16) & 0x1);
1375            cpu_set_reg(m_subcpu, PPC_EXISR, cpu_get_reg(m_subcpu, PPC_EXISR) & ~0x08);
13751376         }
13761377      }
13771378      else
13781379      {
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         }
13801388      }
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      }
14001389   }
14011390}
14021391
r15975r15976
15701559static ADDRESS_MAP_START( cobra_sub_map, AS_PROGRAM, 32, cobra_state )
15711560   AM_RANGE(0x00000000, 0x003fffff) AM_MIRROR(0x80000000) AM_RAM                                 // Main RAM
15721561   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                                 // SCSI controller (unused)
1562//  AM_RANGE(0x78000000, 0x780000ff) AM_MIRROR(0x80000000) AM_NOP                                           // SCSI controller (unused)
15741563   AM_RANGE(0x78040000, 0x7804ffff) AM_MIRROR(0x80000000) AM_DEVREADWRITE16_LEGACY("rfsnd", rf5c400_r, rf5c400_w, 0xffffffff)
15751564   AM_RANGE(0x78080000, 0x7808000f) AM_MIRROR(0x80000000) AM_READWRITE(sub_ata0_r, sub_ata0_w)
15761565   AM_RANGE(0x780c0010, 0x780c001f) AM_MIRROR(0x80000000) AM_READWRITE(sub_ata1_r, sub_ata1_w)
r15975r15976
16291618   cobra_state *cobra = machine.driver_data<cobra_state>();
16301619
16311620   m_gfx_gram = auto_alloc_array(machine, UINT32, 0x40000);
1632   
1621
16331622   cobra->m_gfx_register = auto_alloc_array(machine, UINT64, 0x3000);
16341623}
16351624
16361625void cobra_renderer::gfx_exit(running_machine &machine)
16371626{
16381627   /*
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    */
16501639}
16511640
16521641void cobra_renderer::gfx_reset(running_machine &machine)
r15975r15976
17481737         w2 = cobra->m_gfx_re_command_word2;
17491738      }
17501739
1751   
17521740
1741
17531742      switch ((w1 >> 24) & 0xff)
17541743      {
17551744         case 0x00:
r15975r15976
18611850            // Draw graphics primitives
18621851
18631852            // 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)
18671856            //
18681857            // 0x01: -x------ -------- -------- --------    Has extra flags word (used by lines only)
18691858            // 0x01: --x----- -------- -------- --------    Has extra unknown float (seems to be fog-related?)
18701859            // 0x01: ---x---- -------- -------- --------    Always 1?
18711860            // 0x01: -------- xx------ -------- --------    ?
18721861            // 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
18771866
18781867            int i;
18791868            int num = 0;
r15975r15976
19041893               {
19051894                  fifo_in->pop(NULL, &in);
19061895               }
1907               
1896
19081897               if (w2 & 0x20000000)      // unknown float (0.0f ... 1.0f)
19091898               {
19101899                  fifo_in->pop(NULL, &in);
19111900               }
1912               
1901
19131902               fifo_in->pop(NULL, &vert[i].x);            // X coord
19141903               fifo_in->pop(NULL, &vert[i].y);            // Y coord
19151904               fifo_in->pop(NULL, &in);               // coord?
r15975r15976
20262015                  case 0x0e0000:      buffer = &m_overlay->pix32(y); break;
20272016                  case 0x000800:      buffer = &m_zbuffer->pix32(y); break;
20282017                  case 0x000200:      buffer = &m_stencil->pix32(y); break;
2029                 
2018
20302019                  default:
20312020                  {
20322021                     fatalerror("gfxfifo_exec: fb write to buffer %08X!\n", m_gfx_gram[0x80100/4]);
r15975r15976
20582047         {
20592048            // Read a specified pixel position from a pixelbuffer
20602049
2061//            printf("GFX: FB read X: %d, Y: %d\n", (UINT16)(m_gfx_gram[0x118/4] >> 16), (UINT16)(m_gfx_gram[0x118/4]));
2050//              printf("GFX: FB read X: %d, Y: %d\n", (UINT16)(m_gfx_gram[0x118/4] >> 16), (UINT16)(m_gfx_gram[0x118/4]));
20622051
20632052            int x = (m_gfx_gram[0x118/4] >> 16) & 0xffff;
20642053            int y = m_gfx_gram[0x118/4] & 0xffff;
r15975r15976
20712060               case 0x0e0000:      buffer = &m_overlay->pix32(y); break;
20722061               case 0x000800:      buffer = &m_zbuffer->pix32(y); break;
20732062               case 0x000200:      buffer = &m_stencil->pix32(y); break;
2074                 
2063
20752064               default:
20762065               {
20772066                  fatalerror("gfxfifo_exec: fb read from buffer %08X!\n", m_gfx_gram[0x80100/4]);
r15975r15976
22052194            UINT32 ret = gfx_read_gram(reg);
22062195            fifo_out->push(NULL, ret);
22072196
2208      //      printf("GFX: reg read %08X\n", reg);
2197      //      printf("GFX: reg read %08X\n", reg);
22092198
22102199            cobra->m_gfx_re_status = RE_STATUS_IDLE;
22112200            break;
r15975r15976
27852774   }
27862775
27872776   // hd patches
2788   // 0x18932c = 0x38600000         skips check_one_scene()
2777   // 0x18932c = 0x38600000            skips check_one_scene()
27892778}
27902779
27912780DRIVER_INIT_MEMBER(cobra_state,racjamdx)
src/mame/drivers/intrscti.c
r15975r15976
2323      m_vram(*this, "vram"){ }
2424
2525   required_shared_ptr<UINT8> m_vram;
26//   DECLARE_READ8_MEMBER(unk_r);
26//  DECLARE_READ8_MEMBER(unk_r);
2727   DECLARE_DRIVER_INIT(intrscti);
2828};
2929
r15975r15976
202202      cpu[i+0x8000]=0xc9; // ret
203203
204204   /*
205   0x8208 -> string copy
206   */
205    0x8208 -> string copy
206    */
207207
208208   /* one of the protection sub-routines does this */
209209   for (i=0;i<0x400;i++)
src/mame/drivers/mpu4sw.c
r15975r15976
11/* mpu4 sets which have been split, and appear to do something useful
2
2
33  I'm trying to keep this file to official Barcrest / BwB rebuilds on mod4 hw
44  (licensed versions and bootlegs also included)
55
r15975r15976
88
99/* many sets have the BARCREST or BWB string at FFE0 replaced with other things
1010  such at 'FATHER CHRISTMAS' are these hacked / bootlegs requiring special hw?
11 
11
1212  sets with 'D' in the ident code are Datapak sets, and do not play without a datapak connected
1313  sets with 'Y' seem to require the % key to be set
1414
r15975r15976
3333   // this helps with sorting
3434   UINT8 *src = machine().root_device().memregion( "maincpu" )->base();
3535   int size = machine().root_device().memregion( "maincpu" )->bytes();
36   
36
3737   for (int j=0;j<size;j+=0x10000)
3838   {
3939      if (size>0x10000) printf("\nblock 0x%06x:\n",j);
src/mame/drivers/30test.c
r15975r15976
273273   ROM_LOAD( "tt1-voi0.7p",   0x0000, 0x80000, CRC(b4fc5921) SHA1(92a88d5adb50dae48715847f12e88a35e37ef78c) )
274274ROM_END
275275
276GAMEL( 1997, 30test,  0,   30test,  30test, driver_device,  0, ROT0, "Namco", "30 Test (Remake)", GAME_SUPPORTS_SAVE, layout_30test )
276GAMEL( 1997, 30test,  0,   30test,  30test, driver_device,  0, ROT0, "Namco", "30 Test (Remake)", GAME_SUPPORTS_SAVE | GAME_CLICKABLE_ARTWORK, layout_30test )
src/mame/drivers/gp_2.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(gp_2);
2626};
2727
src/mame/drivers/multfish.c
r15975r15976
19341934ROM_START( lhaunt_10 ) // 090712 entertainment
19351935   ROM_REGION( 0x40000, "maincpu", 0 ) // z80 code, banked
19361936   ROM_LOAD( "lh_e_090712.rom", 0x00000, 0x40000, CRC(16a3d1f3) SHA1(a1350d957d06a679db7f27eb949ddb3befe178d8) )
1937   
1937
19381938   ROM_REGION( 0x400000, "gfx", 0 )
19391939   ROM_LOAD( "lh_ent.001", 0x000000, 0x80000, CRC(66de9088) SHA1(b8287b4d9eeeb6502b656dc9d104048364c55326) )
19401940   ROM_LOAD( "lh_ent.002", 0x100000, 0x80000, CRC(04df45d7) SHA1(f74d72244fb3cefc3599b68af0fec01f9d1a17a1) )
r15975r15976
22752275ROM_START( sweetl2_3 ) // 090525 lottery
22762276   ROM_REGION( 0x40000, "maincpu", 0 ) // z80 code, banked
22772277   ROM_LOAD( "sl2_l_090525.rom", 0x00000, 0x40000, CRC(79f878b4) SHA1(a21dc4a7986dab7ec9236b2c612c43c1604b5588) )
2278   
2278
22792279   ROM_REGION( 0x400000, "gfx", 0 )
22802280   ROM_LOAD( "sweetlife2_loto.001", 0x000000, 0x80000, CRC(01b8bc85) SHA1(9c6475e8e6e01717d61b5f15f95748a66ea958b7) )
22812281   ROM_LOAD( "sweetlife2_loto.002", 0x100000, 0x80000, CRC(e95f1ecb) SHA1(a538c6df004129ccf54a09ab6dae79d301ee6966) )
r15975r15976
22902290ROM_START( sweetl2_4 ) // 090812 entertainment
22912291   ROM_REGION( 0x40000, "maincpu", 0 ) // z80 code, banked
22922292   ROM_LOAD( "sl2_e_090812.rom", 0x00000, 0x40000, CRC(1ee6b0c9) SHA1(481ec72b87e0419aa435e3876404c1b802aed7dd) )
2293   
2293
22942294   ROM_REGION( 0x400000, "gfx", 0 )
22952295   ROM_LOAD( "sweetlife2_ent.001", 0x000000, 0x80000, CRC(378c185d) SHA1(3486bc353c2947375e0f60b6e0f188e95fb7ebcb) )
22962296   ROM_LOAD( "sweetlife2_ent.002", 0x100000, 0x80000, CRC(3f92e579) SHA1(0b1ddd294c6a8d7bb353965a7117ea336c577ff5) )
src/mame/drivers/gts80.c
r15975r15976
2323
2424   // driver_device overrides
2525   virtual void machine_reset();
26public:   
26public:
2727   DECLARE_DRIVER_INIT(gts80);
2828};
2929
src/mame/drivers/drmicro.c
r15975r15976
296296   MCFG_SOUND_ADD("sn2", SN76496_NEW, MCLK/4)
297297   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
298298   MCFG_SOUND_CONFIG(psg_intf)
299   
299
300300   MCFG_SOUND_ADD("sn3", SN76496_NEW, MCLK/4)
301301   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
302302   MCFG_SOUND_CONFIG(psg_intf)
303   
303
304304   MCFG_SOUND_ADD("msm", MSM5205, 384000)
305305   MCFG_SOUND_CONFIG(msm5205_config)
306306   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
src/mame/drivers/astrafr.c
r15975r15976
22862286GAME( 200?, as_rtrh,   as_rtr     , astra_single_2e,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Ready To Roll (Astra, V202)"      , GAME_IS_SKELETON_MECHANICAL)
22872287
22882288GAME( 200?, as_rab,    0        , astra_single_2e,    astrafr, driver_device,    0,   ROT0,  "Astra", "Ring A Bell (Astra, V105)"      , GAME_IS_SKELETON_MECHANICAL)
2289GAME( 200?, as_raba,   as_rab     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Ring A Bell (Astra, V106)"      , GAME_IS_SKELETON_MECHANICAL)
2290GAME( 200?, as_rabb,   as_rab     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Ring A Bell (Astra, V107)"      , GAME_IS_SKELETON_MECHANICAL)
2291GAME( 200?, as_rabc,   as_rab     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Ring A Bell (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
2289GAME( 200?, as_raba,   as_rab     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Ring A Bell (Astra, V106)"      , GAME_IS_SKELETON_MECHANICAL)
2290GAME( 200?, as_rabb,   as_rab     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Ring A Bell (Astra, V107)"      , GAME_IS_SKELETON_MECHANICAL)
2291GAME( 200?, as_rabc,   as_rab     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Ring A Bell (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
22922292GAME( 200?, as_rbg,    0        , astra_single_2e,    astrafr, driver_device,    0,   ROT0,  "Astra", "River Boat Gambler (Astra, V304)"      , GAME_IS_SKELETON_MECHANICAL)
2293GAME( 200?, as_rbga,   as_rab     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V303)"      , GAME_IS_SKELETON_MECHANICAL)
2294GAME( 200?, as_rbgb,   as_rab     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
2295GAME( 200?, as_rbgc,   as_rab     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V102)"      , GAME_IS_SKELETON_MECHANICAL)
2296GAME( 200?, as_rbgd,   as_rab     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V101)"      , GAME_IS_SKELETON_MECHANICAL)
2297GAME( 200?, as_rbge,   as_rab     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "River Boat Gambler (Astra, V008)"      , GAME_IS_SKELETON_MECHANICAL)
2293GAME( 200?, as_rbga,   as_rab     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "River Boat Gambler (Astra, V303)"      , GAME_IS_SKELETON_MECHANICAL)
2294GAME( 200?, as_rbgb,   as_rab     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "River Boat Gambler (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
2295GAME( 200?, as_rbgc,   as_rab     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "River Boat Gambler (Astra, V102)"      , GAME_IS_SKELETON_MECHANICAL)
2296GAME( 200?, as_rbgd,   as_rab     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "River Boat Gambler (Astra, V101)"      , GAME_IS_SKELETON_MECHANICAL)
2297GAME( 200?, as_rbge,   as_rab     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "River Boat Gambler (Astra, V008)"      , GAME_IS_SKELETON_MECHANICAL)
22982298GAME( 200?, as_rbglo,    0        , astrafr_dual_37,    astrafr, astrafr_state,    astradec_sml_dual,   ROT0,  "Lowen", "River Boat Gambler (Lowen, V106)"      , GAME_IS_SKELETON_MECHANICAL)
2299GAME( 200?, as_rox,    0        , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Roll X (Astra, V006)"      , GAME_IS_SKELETON_MECHANICAL)
2299GAME( 200?, as_rox,    0        , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Roll X (Astra, V006)"      , GAME_IS_SKELETON_MECHANICAL)
23002300GAME( 200?, as_csv,    0        , astra_single_37,    astrafr, driver_device,    0,   ROT0,  "Astra", "Slot Slant (?) (Astra, V202)"      , GAME_IS_SKELETON_MECHANICAL)
2301GAME( 200?, as_sltcl,    0        , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Slots Classic (?) (Astra)"      , GAME_IS_SKELETON_MECHANICAL)
2301GAME( 200?, as_sltcl,    0        , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Slots Classic (?) (Astra)"      , GAME_IS_SKELETON_MECHANICAL)
23022302GAME( 200?, as_stp,    0        , astra_single_2e,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Stampede (Astra, V103)"      , GAME_IS_SKELETON_MECHANICAL)
23032303GAME( 200?, as_stpa,   as_stp     , astra_single,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Stampede (Astra, V102)"      , GAME_IS_SKELETON_MECHANICAL)
23042304GAME( 200?, as_stpb,   as_stp     , astra_single,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Stampede (Astra, V105)"      , GAME_IS_SKELETON_MECHANICAL)
23052305GAME( 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
23062306GAME( 200?, as_siua,   as_siu     , astra_single,    astrafr, astrafr_state,    astradec_sml,   ROT0,  "Astra", "Step It Up (Astra, V203)"      , GAME_IS_SKELETON_MECHANICAL)
2307GAME( 200?, as_sld,    0        , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Super Little Devil (Astra, V700)"      , GAME_IS_SKELETON_MECHANICAL)
2308GAME( 200?, as_slda,   as_sld     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Super Little Devil (Astra, V600)"      , GAME_IS_SKELETON_MECHANICAL)
2309GAME( 200?, as_sldb,   as_sld     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Super Little Devil (Astra, V500)"      , GAME_IS_SKELETON_MECHANICAL)
2310GAME( 200?, as_sldc,   as_sld     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Super Little Devil (Astra, V400)"      , GAME_IS_SKELETON_MECHANICAL)
2311GAME( 200?, as_sldd,   as_sld     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Super Little Devil (Astra, V200)"      , GAME_IS_SKELETON_MECHANICAL)
2312GAME( 200?, as_slde,   as_sld     , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Super Little Devil (Astra, V101)"      , GAME_IS_SKELETON_MECHANICAL)
2307GAME( 200?, as_sld,    0        , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Super Little Devil (Astra, V700)"      , GAME_IS_SKELETON_MECHANICAL)
2308GAME( 200?, as_slda,   as_sld     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Super Little Devil (Astra, V600)"      , GAME_IS_SKELETON_MECHANICAL)
2309GAME( 200?, as_sldb,   as_sld     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Super Little Devil (Astra, V500)"      , GAME_IS_SKELETON_MECHANICAL)
2310GAME( 200?, as_sldc,   as_sld     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Super Little Devil (Astra, V400)"      , GAME_IS_SKELETON_MECHANICAL)
2311GAME( 200?, as_sldd,   as_sld     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Super Little Devil (Astra, V200)"      , GAME_IS_SKELETON_MECHANICAL)
2312GAME( 200?, as_slde,   as_sld     , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Super Little Devil (Astra, V101)"      , GAME_IS_SKELETON_MECHANICAL)
23132313GAME( 200?, as_tem,   0          , astra_single_alt_37,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Temptation (Astra, V101)"      , GAME_IS_SKELETON_MECHANICAL)
23142314GAME( 200?, as_tema,  as_tem     , astra_single_alt_37,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Temptation (Astra, V006)"      , GAME_IS_SKELETON_MECHANICAL)
23152315GAME( 200?, as_tbl,   0              , astra_single_2e,    astrafr, driver_device,    0,   ROT0,  "Astra", "Triple Bells (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
2316GAME( 200?, as_tbla,  as_tbl        , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Triple Bells (Astra, V105)"      , GAME_IS_SKELETON_MECHANICAL)
2317GAME( 200?, as_tblb,  as_tbl        , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Triple Bells (Astra, V106)"      , GAME_IS_SKELETON_MECHANICAL)
2318GAME( 200?, as_tblc,  as_tbl        , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Triple Bells (Astra, V103)"      , GAME_IS_SKELETON_MECHANICAL)
2319GAME( 200?, as_tbld,  as_tbl        , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Triple Bells (Astra, V304)"      , GAME_IS_SKELETON_MECHANICAL)
2320GAME( 200?, as_tble,  as_tbl        , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Triple Bells (Astra, V303)"      , GAME_IS_SKELETON_MECHANICAL)
2321GAME( 200?, as_tblf,  as_tbl        , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Triple Bells (Astra, V301)"      , GAME_IS_SKELETON_MECHANICAL)
2316GAME( 200?, as_tbla,  as_tbl        , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Triple Bells (Astra, V105)"      , GAME_IS_SKELETON_MECHANICAL)
2317GAME( 200?, as_tblb,  as_tbl        , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Triple Bells (Astra, V106)"      , GAME_IS_SKELETON_MECHANICAL)
2318GAME( 200?, as_tblc,  as_tbl        , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Triple Bells (Astra, V103)"      , GAME_IS_SKELETON_MECHANICAL)
2319GAME( 200?, as_tbld,  as_tbl        , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Triple Bells (Astra, V304)"      , GAME_IS_SKELETON_MECHANICAL)
2320GAME( 200?, as_tble,  as_tbl        , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Triple Bells (Astra, V303)"      , GAME_IS_SKELETON_MECHANICAL)
2321GAME( 200?, as_tblf,  as_tbl        , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Triple Bells (Astra, V301)"      , GAME_IS_SKELETON_MECHANICAL)
23222322GAME( 200?, as_td,   0       , astra_single_2e,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Twin Dragons (Astra, V103)"      , GAME_IS_SKELETON_MECHANICAL)
23232323
23242324GAME( 200?, as_twp,   0          , astra_single_2e,    astrafr, driver_device,    0,   ROT0,  "Astra", "Twin Pots (Astra, V106)"      , GAME_IS_SKELETON_MECHANICAL)
2325GAME( 200?, as_twpa,  as_twp      , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Twin Pots (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
2325GAME( 200?, as_twpa,  as_twp      , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Twin Pots (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
23262326GAME( 200?, as_vn,    0        , astrafr_dual_alt_37,    astrafr, astrafr_state,    astradec_dual,   ROT0,  "Astra", "Vegas Nights (Astra, V205)"      , GAME_IS_SKELETON_MECHANICAL)
23272327GAME( 200?, as_vcv,    0        , astra_single,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Viva Cash Vegas (Astra, V005)"      , GAME_IS_SKELETON_MECHANICAL)
23282328GAME( 200?, as_vcva,   as_vcv     , astra_single,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Viva Cash Vegas (Astra, V107)"      , GAME_IS_SKELETON_MECHANICAL)
r15975r15976
23302330GAME( 200?, as_vcvc,   as_vcv     , astra_single,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Viva Cash Vegas (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
23312331GAME( 200?, as_vcvd,   as_vcv     , astra_single,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Viva Cash Vegas (Astra, V102)"      , GAME_IS_SKELETON_MECHANICAL)
23322332GAME( 200?, as_vcve,   as_vcv     , astra_single,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Viva Cash Vegas (Astra, V101)"      , GAME_IS_SKELETON_MECHANICAL)
2333GAME( 200?, as_ww,   0           , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Wicked Willy (Astra, V203)"      , GAME_IS_SKELETON_MECHANICAL)
2334GAME( 200?, as_wwa,  as_ww       , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Wicked Willy (Astra, V204)"      , GAME_IS_SKELETON_MECHANICAL)
2335GAME( 200?, as_wwb,  as_ww       , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Wicked Willy (Astra, V205)"      , GAME_IS_SKELETON_MECHANICAL)
2336GAME( 200?, as_wwc,  as_ww       , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Wicked Willy (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
2337GAME( 200?, as_wwd,  as_ww       , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Wicked Willy (Astra, V103)"      , GAME_IS_SKELETON_MECHANICAL)
2338GAME( 200?, as_wwe,  as_ww       , astra_single,    astrafr, driver_device,    0,    ROT0,  "Astra", "Wicked Willy (Astra, V102)"      , GAME_IS_SKELETON_MECHANICAL)
2333GAME( 200?, as_ww,   0           , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Wicked Willy (Astra, V203)"      , GAME_IS_SKELETON_MECHANICAL)
2334GAME( 200?, as_wwa,  as_ww       , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Wicked Willy (Astra, V204)"      , GAME_IS_SKELETON_MECHANICAL)
2335GAME( 200?, as_wwb,  as_ww       , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Wicked Willy (Astra, V205)"      , GAME_IS_SKELETON_MECHANICAL)
2336GAME( 200?, as_wwc,  as_ww       , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Wicked Willy (Astra, V104)"      , GAME_IS_SKELETON_MECHANICAL)
2337GAME( 200?, as_wwd,  as_ww       , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Wicked Willy (Astra, V103)"      , GAME_IS_SKELETON_MECHANICAL)
2338GAME( 200?, as_wwe,  as_ww       , astra_single,    astrafr, driver_device,    0,   ROT0,  "Astra", "Wicked Willy (Astra, V102)"      , GAME_IS_SKELETON_MECHANICAL)
23392339GAME( 200?, as_ws,   0       , astra_single,    astrafr, astrafr_state,    astradec,   ROT0,  "Astra", "Win Streak (Astra, V100)"      , GAME_IS_SKELETON_MECHANICAL) // incomplete dump
23402340
src/mame/drivers/capcom.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(capcom);
2626};
2727
src/mame/drivers/alvg.c
r15975r15976
1717
1818   // driver_device overrides
1919   virtual void machine_reset();
20public:   
20public:
2121   DECLARE_DRIVER_INIT(alvg);
2222};
2323
src/mame/drivers/galpanic.c
r15975r15976
574574   MCFG_PALETTE_LENGTH(1024 + 32768)
575575
576576   MCFG_KANEKO_PANDORA_ADD("pandora", galpanic_pandora_config)
577   
577
578578   MCFG_DEVICE_ADD("calc1_mcu", KANEKO_HIT, 0)
579579   kaneko_hit_device::set_type(*device, 0);
580580
581581
582   
583582
583
584584   MCFG_PALETTE_INIT(galpanic)
585585   MCFG_VIDEO_START(galpanic)
586586
src/mame/drivers/segaorun.c
r15975r15976
312312
313313
314314//**************************************************************************
315//   CONSTANTS
315//  CONSTANTS
316316//**************************************************************************
317317
318318const UINT32 MASTER_CLOCK = XTAL_40MHz;
r15975r15976
322322
323323
324324//**************************************************************************
325//   PPI INTERFACES
325//  PPI INTERFACES
326326//**************************************************************************
327327
328328static I8255_INTERFACE(single_ppi_intf)
r15975r15976
338338
339339
340340//**************************************************************************
341//   PPI READ/WRITE CALLBACKS
341//  PPI READ/WRITE CALLBACKS
342342//**************************************************************************
343343
344344//-------------------------------------------------
345345//  unknown_port*_r - loggers for reading
346//   unknown ports
346//  unknown ports
347347//-------------------------------------------------
348348
349349READ8_MEMBER( segaorun_state::unknown_porta_r )
r15975r15976
367367
368368//-------------------------------------------------
369369//  unknown_port*_w - loggers for writing
370//   unknown ports
370//  unknown ports
371371//-------------------------------------------------
372372
373373WRITE8_MEMBER( segaorun_state::unknown_porta_w )
r15975r15976
383383
384384//-------------------------------------------------
385385//  video_control_w - display enable, ADC select,
386//   sound interrupt control
386//  sound interrupt control
387387//-------------------------------------------------
388388
389389WRITE8_MEMBER( segaorun_state::video_control_w )
r15975r15976
395395    //  D4-D2: (ADC2-0)
396396    //  D1: (CONT) - affects sprite hardware
397397    //  D0: Sound section reset (1= normal operation, 0= reset)
398   
398
399399   segaic16_set_display_enable(machine(), data & 0x20);
400400   m_adc_select = (data >> 2) & 7;
401401   m_soundcpu->set_input_line(INPUT_LINE_RESET, (data & 0x01) ? CLEAR_LINE : ASSERT_LINE);
r15975r15976
404404
405405
406406//**************************************************************************
407//    MEMORY MAPPING
407// MEMORY MAPPING
408408//**************************************************************************
409409
410410//-------------------------------------------------
411411//  memory_mapper - callback to implement memory
412//   mapping for a given index
412//  mapping for a given index
413413//-------------------------------------------------
414414
415415void segaorun_state::memory_mapper(sega_315_5195_mapper_device &mapper, UINT8 index)
r15975r15976
422422         mapper.map_as_ram(0x60000, 0x08000, 0xf18000, "cpu1ram", write16_delegate());
423423         mapper.map_as_ram(0x00000, 0x60000, 0xf00000, "cpu1rom", write16_delegate(FUNC(segaorun_state::nop_w), this));
424424         break;
425         
425
426426      case 4:
427427         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));
428428         break;
429     
429
430430      case 3:
431431         mapper.map_as_ram(0x00000, 0x01000, 0xfff000, "spriteram", write16_delegate());
432432         break;
433     
433
434434      case 2:
435435         mapper.map_as_ram(0x00000, 0x02000, 0xffe000, "paletteram", write16_delegate(FUNC(segaorun_state::legacy_wrapper<segaic16_paletteram_w>), this));
436436         break;
437     
437
438438      case 1:
439439         mapper.map_as_ram(0x00000, 0x10000, 0xfe0000, "tileram", write16_delegate(FUNC(segaorun_state::legacy_wrapper<segaic16_tileram_0_w>), this));
440440         mapper.map_as_ram(0x10000, 0x01000, 0xfef000, "textram", write16_delegate(FUNC(segaorun_state::legacy_wrapper<segaic16_textram_0_w>), this));
441441         break;
442         
442
443443      case 0:
444444         mapper.map_as_ram(0x60000, 0x08000, 0xf98000, "workram", write16_delegate());
445445         mapper.map_as_rom(0x00000, 0x60000, 0xf80000, "rom0base", 0x00000, write16_delegate());
r15975r15976
450450
451451//-------------------------------------------------
452452//  mapper_sound_r - callback when the sound I/O
453//   port on the memory mapper is read
453//  port on the memory mapper is read
454454//-------------------------------------------------
455455
456456UINT8 segaorun_state::mapper_sound_r()
r15975r15976
461461
462462//-------------------------------------------------
463463//  mapper_sound_w - callback when the sound I/O
464//   port on the memory mapper is written
464//  port on the memory mapper is written
465465//-------------------------------------------------
466466
467467void segaorun_state::mapper_sound_w(UINT8 data)
r15975r15976
472472
473473
474474//**************************************************************************
475//   MAIN CPU READ/WRITE HANDLERS
475//  MAIN CPU READ/WRITE HANDLERS
476476//**************************************************************************
477477
478478//-------------------------------------------------
r15975r15976
514514
515515
516516//**************************************************************************
517//   Z80 SOUND CPU READ/WRITE HANDLERS
517//  Z80 SOUND CPU READ/WRITE HANDLERS
518518//**************************************************************************
519519
520520//-------------------------------------------------
521//  sound_data_r - handle sound board reads from
521//  sound_data_r - handle sound board reads from
522522//  the sound latch
523523//-------------------------------------------------
524524
r15975r15976
531531
532532
533533//**************************************************************************
534//   DRIVER OVERRIDES
534//  DRIVER OVERRIDES
535535//**************************************************************************
536536
537537//-------------------------------------------------
r15975r15976
565565         soundlatch_write(param);
566566         m_soundcpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
567567         break;
568     
568
569569      case TID_IRQ2_GEN:
570570         // set the IRQ2 line
571571         m_irq2_state = 1;
572572         update_main_irqs();
573573         break;
574     
574
575575      case TID_SCANLINE:
576576      {
577577         int scanline = param;
r15975r15976
624624
625625
626626//**************************************************************************
627//   CUSTOM I/O HANDLERS
627//  CUSTOM I/O HANDLERS
628628//**************************************************************************
629629
630630//-------------------------------------------------
631631//  outrun_custom_io_r - custom I/O read handler
632//   for Out Run
632//  for Out Run
633633//-------------------------------------------------
634634
635635READ16_MEMBER( segaorun_state::outrun_custom_io_r )
r15975r15976
663663
664664//-------------------------------------------------
665665//  outrun_custom_io_w - custom I/O write handler
666//   for Out Run
666//  for Out Run
667667//-------------------------------------------------
668668
669669WRITE16_MEMBER( segaorun_state::outrun_custom_io_w )
r15975r15976
704704
705705//-------------------------------------------------
706706//  shangon_custom_io_r - custom I/O read handler
707//   for Super Hang-On
707//  for Super Hang-On
708708//-------------------------------------------------
709709
710710READ16_MEMBER( segaorun_state::shangon_custom_io_r )
r15975r15976
734734
735735//-------------------------------------------------
736736//  shangon_custom_io_w - custom I/O write handler
737//   for Super Hang-On
737//  for Super Hang-On
738738//-------------------------------------------------
739739
740740WRITE16_MEMBER( segaorun_state::shangon_custom_io_w )
r15975r15976
770770
771771
772772//**************************************************************************
773//   INTERNAL HELPERS
773//  INTERNAL HELPERS
774774//**************************************************************************
775775
776776//-------------------------------------------------
777777//  update_main_irqs - flush IRQ state to the
778//   CPU device
778//  CPU device
779779//-------------------------------------------------
780780
781781void segaorun_state::update_main_irqs()
r15975r15976
793793
794794//-------------------------------------------------
795795//  m68k_reset_callback - callback for when the
796//   main 68000 is reset
796//  main 68000 is reset
797797//-------------------------------------------------
798798
799799void segaorun_state::m68k_reset_callback(device_t *device)
r15975r15976
805805
806806
807807//**************************************************************************
808//   MAIN CPU MEMORY MAP
808//  MAIN CPU MEMORY MAP
809809//**************************************************************************
810810
811811static ADDRESS_MAP_START( outrun_map, AS_PROGRAM, 16, segaorun_state )
812812   ADDRESS_MAP_UNMAP_HIGH
813813   AM_RANGE(0x000000, 0xffffff) AM_DEVREADWRITE8("mapper", sega_315_5195_mapper_device, read, write, 0x00ff)
814   
814
815815   // these get overwritten by the memory mapper above, but we put them here
816816   // so they are properly allocated and tracked for saving
817817   AM_RANGE(0x100000, 0x100fff) AM_RAM AM_SHARE("spriteram")
r15975r15976
824824
825825
826826//**************************************************************************
827//   SECOND CPU MEMORY MAP
827//  SECOND CPU MEMORY MAP
828828//**************************************************************************
829829
830830static ADDRESS_MAP_START( sub_map, AS_PROGRAM, 16, segaorun_state )
r15975r15976
839839
840840
841841//**************************************************************************
842//   SOUND CPU MEMORY MAP
842//  SOUND CPU MEMORY MAP
843843//**************************************************************************
844844
845845static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, segaorun_state )
r15975r15976
859859
860860
861861//**************************************************************************
862//   GENERIC PORT DEFINITIONS
862//  GENERIC PORT DEFINITIONS
863863//**************************************************************************
864864
865865static INPUT_PORTS_START( outrun_generic )
r15975r15976
910910
911911
912912//**************************************************************************
913//   GAME-SPECIFIC PORT DEFINITIONS
913//  GAME-SPECIFIC PORT DEFINITIONS
914914//**************************************************************************
915915
916916static INPUT_PORTS_START( outrun )
r15975r15976
10411041
10421042
10431043//**************************************************************************
1044//   SOUND DEFINITIONS
1044//  SOUND DEFINITIONS
10451045//**************************************************************************
10461046
10471047static const sega_pcm_interface segapcm_interface =
r15975r15976
10521052
10531053
10541054//**************************************************************************
1055//   GRAPHICS DEFINITIONS
1055//  GRAPHICS DEFINITIONS
10561056//**************************************************************************
10571057
10581058static GFXDECODE_START( segaorun )
r15975r15976
10621062
10631063
10641064//**************************************************************************
1065//   GENERIC MACHINE DRIVERS
1065//  GENERIC MACHINE DRIVERS
10661066//**************************************************************************
10671067
10681068static MACHINE_CONFIG_START( outrun_base, segaorun_state )
r15975r15976
11071107
11081108
11091109//**************************************************************************
1110//   GAME-SPECIFIC MACHINE DRIVERS
1110//  GAME-SPECIFIC MACHINE DRIVERS
11111111//**************************************************************************
11121112
11131113static MACHINE_CONFIG_DERIVED( outrundx, outrun_base )
r15975r15976
11441144
11451145
11461146//**************************************************************************
1147//   ROM DEFINITIONS
1147//  ROM DEFINITIONS
11481148//**************************************************************************
11491149
11501150
r15975r15976
16051605//   CPU BD SUPER HANG-ON   837-6278-01 (or 837-6278-03)
16061606//   VIDEO BD SUPER HANG-ON 837-6279 (or 837-6279-02, roms would be "OPR")
16071607//
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)
16121612//
16131613ROM_START( shangon3 )
16141614   ROM_REGION( 0x60000, "maincpu", 0 ) // 68000 code - protected
r15975r15976
17941794//   VIDEO BD SUPER HANG-ON 837-6279 (or 837-6279-02, rom would be "OPR")
17951795//
17961796ROM_START( shangonle )
1797   ROM_REGION( 0x60000, "maincpu", 0 ) // 68000 code
1797   ROM_REGION( 0x60000, "maincpu", 0 ) // 68000 code
17981798   ROM_LOAD16_BYTE( "epr-13944.133", 0x000000, 0x10000, CRC(989a80db) SHA1(5026e5cf52d4fd85a0bab6c4ea7a34cf266b2a3b) )
17991799   ROM_LOAD16_BYTE( "epr-13943.118", 0x000001, 0x10000, CRC(426e3050) SHA1(f332ea76285b4e1361d818cbe5aab0640b4185c3) )
18001800   ROM_LOAD16_BYTE( "epr-10899.132", 0x020000, 0x10000, CRC(bb3faa37) SHA1(ccf3352255503fd6619e6e116d187a8cd1ff75e6) )
r15975r15976
21032103
21042104
21052105//**************************************************************************
2106//   CONFIGURATION
2106//  CONFIGURATION
21072107//**************************************************************************
21082108
21092109//-------------------------------------------------
r15975r15976
21932193
21942194
21952195//**************************************************************************
2196//   GAME DRIVERS
2196//  GAME DRIVERS
21972197//**************************************************************************
21982198
21992199//    YEAR, NAME,     PARENT,  MACHINE,         INPUT,    INIT,                   MONITOR,COMPANY,FULLNAME,FLAGS,                                                  LAYOUT
src/mame/drivers/de_2.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(de_2);
2626};
2727
src/mame/drivers/bingo.c
r15975r15976
1919
2020   // driver_device overrides
2121   virtual void machine_reset();
22public:   
22public:
2323   DECLARE_DRIVER_INIT(bingo);
2424};
2525
r15975r15976
6363   // driver_device overrides
6464   virtual void machine_reset();
6565public:
66   DECLARE_DRIVER_INIT(seeben);   
66   DECLARE_DRIVER_INIT(seeben);
6767};
6868
6969
r15975r15976
102102
103103   // driver_device overrides
104104   virtual void machine_reset();
105public:   
105public:
106106   DECLARE_DRIVER_INIT(splin);
107107};
108108
src/mame/drivers/by6803.c
r15975r15976
2222
2323   // driver_device overrides
2424   virtual void machine_reset();
25public:   
25public:
2626   DECLARE_DRIVER_INIT(by6803);
2727};
2828
src/mame/drivers/mpu5.c
r15975r15976
15791579   ROM_REGION( 0x400000, "maincpu", 0 )
15801580   ROM_LOAD16_BYTE( "trop2_5.p1", 0x000000, 0x080000, CRC(731f2cfe) SHA1(c0cecda77f6726631982c5342ec2740c86432594) ) // == "trop2_4.p1 ??
15811581   ROM_LOAD16_BYTE( "trop2_5.p2", 0x000001, 0x080000, CRC(665c2043) SHA1(32146abb066d50b901a110e8260c94ea4b9db4e9) )
1582   
1582
15831583   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
15841584   ROM_LOAD16_BYTE( "trop2_5d.p1", 0x000000, 0x080000, CRC(a5eac7a4) SHA1(77fa99ae3a2ee7d4856a3d9918086a471e161a91) ) // == trop2_4d.p1 ??
15851585ROM_END
r15975r15976
22722272   ROM_LOAD16_BYTE( "gge_sjh2.2d1", 0x000000, 0x080000, CRC(8a2b8ebe) SHA1(b89bf6a8778421cf891cce8274d01b168e434e68) )
22732273   ROM_LOAD16_BYTE( "gge_sjk2.2_1", 0x000000, 0x080000, CRC(30e8d9aa) SHA1(cf70d3fb91d4f2f42af38293f218e14435f773f1) )
22742274   ROM_LOAD16_BYTE( "gge_sjl2.2d1", 0x000000, 0x080000, CRC(f755ffda) SHA1(b53ba6d4c6dda468997d9d36e2896a9a52bf8c26) )
2275   
2275
22762276   // these just seem to be bad (sound) roms from something else
22772277   //ROM_LOAD16_BYTE( "gia_gems.p1",  0x000000, 0x080000, CRC(c841d2f7) SHA1(480397141c917bce26cfdc8ba7fa8d21ab741770) )
22782278   //ROM_LOAD16_BYTE( "gia_gems.p2",  0x000000, 0x080000, CRC(7824adf5) SHA1(99b59d28adb80d5cf3d70691cc134eba72288f20) )
r15975r15976
35743574   ROM_LOAD16_BYTE( "mmak06.p2", 0x000001, 0x080000, CRC(24ad42b1) SHA1(5189199316cf5f896fbdc00f15cf9abcba2489c6) )
35753575   ROM_LOAD16_BYTE( "mmak06.p3", 0x100000, 0x080000, CRC(1048ceca) SHA1(f6a6790ed3c7b60cbe31db9eb1ed7da5ac81c0fd) ) // == 05
35763576   ROM_LOAD16_BYTE( "mmak06.p4", 0x100001, 0x080000, CRC(50f7100c) SHA1(b7e0199bf183b7954416eb091a5aa8ed5c44143b) ) // == 05
3577   
3577
35783578   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
35793579   ROM_LOAD16_BYTE( "mmak06ad.p1", 0x000000, 0x080000, CRC(fe92d3b3) SHA1(70bade6ac8a524ff640923960d6b33720d10945e) )
35803580   ROM_LOAD16_BYTE( "mmak06b.p1", 0x000000, 0x080000, CRC(4c283966) SHA1(97a6d2b7778998067f9556f412cc116999a37fae) )
r15975r15976
38173817   ROM_LOAD16_BYTE( "oboj06.p6", 0x200001, 0x080000, CRC(b151d179) SHA1(0a3bfde2310478c341b5ddae142f5efc9469a51c) ) // == 02
38183818   ROM_LOAD16_BYTE( "obtr06.p7", 0x300000, 0x080000, CRC(163ba007) SHA1(94a8618143910b63f70cd0e7339b337d6e81ef33) ) // missing but assumed the same
38193819   ROM_LOAD16_BYTE( "oboj06.p8", 0x300001, 0x080000, CRC(5de27262) SHA1(c941275ce21506ab322ac0917725409a14660011) ) // == 02
3820   
3820
38213821   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
38223822   ROM_LOAD16_BYTE( "oboj06ad.p1", 0x000000, 0x080000, CRC(ebf9d0b2) SHA1(cf1d3378d8a6e42b267a8d3e5c8f1cd48cccf3c0) )
38233823   ROM_LOAD16_BYTE( "oboj06b.p1", 0x000000, 0x080000, CRC(bc0aaac3) SHA1(d22e9696e05fb57be8e01e0771678dec3a0d0080) )
r15975r15976
39623962   ROM_LOAD16_BYTE( "patr01.p2", 0x000001, 0x080000, CRC(aacd9a52) SHA1(0bc676d9708148f02ae121185a5b4f6eae34f3d4) )
39633963   ROM_LOAD16_BYTE( "patr01.p3", 0x100000, 0x080000, CRC(76eb81df) SHA1(6fd6376eedf74330aa2b019ad0044ce39210610a) ) // == 03
39643964   ROM_LOAD16_BYTE( "patr01.p4", 0x100001, 0x080000, CRC(64f081ec) SHA1(22fc6ea30bb503247fe108e645c197e0fc90063a) ) // == 03
3965   
3965
39663966   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
39673967   ROM_LOAD16_BYTE( "patr01d.p1", 0x000000, 0x080000, CRC(71085bfa) SHA1(87dd1334077da967796c1847e3010de1acc8c32f) )
39683968   ROM_LOAD16_BYTE( "patr01dy.p1", 0x000000, 0x080000, CRC(a9be6297) SHA1(b5d8b6e26d19a9af98665429d29bfcda7f3d4bfa) )
r15975r15976
43234323   ROM_LOAD16_BYTE( "rttr10.p2", 0x000001, 0x080000, CRC(38066b10) SHA1(116b8dac97ed2060243e78ed94bc121076c66dfe) )
43244324   ROM_LOAD16_BYTE( "rttr10.p3", 0x100000, 0x080000, CRC(9519dc05) SHA1(32c46c95ccedb99f1e517242bc89249020fbd66c) )
43254325   ROM_LOAD16_BYTE( "rttr10.p4", 0x100001, 0x080000, CRC(5af465d8) SHA1(e484e495a4fe92ab6ccdfc3069ce528293d4f277) )
4326   
4326
43274327   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
43284328   ROM_LOAD16_BYTE( "rttr10ad.p1", 0x000000, 0x080000, CRC(28ebaa1a) SHA1(5f93efc9b089680cfcf854f9ce91a7fabcd0646c) )
43294329   ROM_LOAD16_BYTE( "rttr10b.p1", 0x000000, 0x080000, CRC(05e3597f) SHA1(fe5b6f71f1dc84be90ed4c687c0f07bed7ab9fce) )
r15975r15976
44234423   ROM_LOAD16_BYTE( "rhrt12.p2", 0x000001, 0x080000, CRC(9a9a9c45) SHA1(2b178bbc57a1dd8bf347002f9deb7f1690e89423) )
44244424   ROM_LOAD16_BYTE( "rhrt12.p3", 0x100000, 0x080000, CRC(77a16da8) SHA1(1598e547b39d4fe58e8f05aea5f949d2b0a9678d) ) // == 13
44254425   ROM_LOAD16_BYTE( "rhrt12.p4", 0x100001, 0x080000, CRC(eb880b1f) SHA1(65402cd0a5cdc95e5c3a7be2f100e1e19eb45152) ) // == 13
4426   
4426
44274427   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
44284428   ROM_LOAD16_BYTE( "rhrt12ad.p1", 0x000000, 0x080000, CRC(65d6d9dd) SHA1(d53278b0b5e8b3bcab8bc9da008b016e1b3a2dfa) )
44294429   ROM_LOAD16_BYTE( "rhrt12b.p1", 0x000000, 0x080000, CRC(7643fca7) SHA1(03916131ce827e2b903644b1857c20dc8af6dc20) )
r15975r15976
45444544   ROM_LOAD16_BYTE( "revl13.p2", 0x000001, 0x080000, CRC(44bb41e0) SHA1(3a55312369e13f007e3541e6cbe4cf0694c681a4) )
45454545   ROM_LOAD16_BYTE( "revl13.p3", 0x100000, 0x080000, CRC(594cd05f) SHA1(6183a9e3c9c14e19245ca457a3267ceceb8490b3) ) // == 01
45464546   ROM_LOAD16_BYTE( "revl13.p4", 0x100001, 0x080000, CRC(d80f34a2) SHA1(87d3bd9809a1fa96217e27de3778b231ef6c41a1) ) // == 01
4547   
4547
45484548   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
45494549   ROM_LOAD16_BYTE( "revl13ad.p1", 0x000000, 0x080000, CRC(48eb39a1) SHA1(c78145688c66215d971d18fcf7a5ff593efe4aff) )
45504550   ROM_LOAD16_BYTE( "revl13b.p1", 0x000000, 0x080000, CRC(45555b0c) SHA1(6483bd52cc82f2943e261f9fd8ec0409222deb25) )
r15975r15976
46574657   ROM_LOAD16_BYTE( "trgb0_1.p2", 0x000001, 0x080000, CRC(0b52162a) SHA1(41e84d3fa1f5ab148d59dadb91a1ce9690255a14) )
46584658   ROM_LOAD16_BYTE( "trgb0_1.p3", 0x100000, 0x080000, CRC(97d97647) SHA1(2dd1af527e614703690fb3c881c88602e6f7636e) ) // == 03
46594659   ROM_LOAD16_BYTE( "trgb0_1.p4", 0x100001, 0x080000, CRC(58a7a86f) SHA1(a5847bc90b6ae3f013b7954b6cdb379997f820c6) ) // == 03
4660   
4660
46614661   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
46624662   ROM_LOAD16_BYTE( "trgb0_1d.p1", 0x000000, 0x080000, CRC(5c3f22d9) SHA1(b5c09c5b913958ca723c6e15d29c57437e8bdf22) )
46634663   ROM_LOAD16_BYTE( "trgb0_1f.p1", 0x000000, 0x080000, CRC(d7a4f6c6) SHA1(666b9444e3d49bfc6754c4ca93eb0ccc80fd7db3) )
r15975r15976
49044904   ROM_LOAD16_BYTE( "sono05.p2", 0x000001, 0x080000, CRC(8ffae24a) SHA1(0a20ea91fb8241f9da665cc9b2bc86a66b153b8c) )
49054905   ROM_LOAD16_BYTE( "sono05.p3", 0x100000, 0x080000, CRC(868d1a96) SHA1(0ebca6a12b1ae912d836c2ee86b555dbdf6fe16f) ) // == 01
49064906   ROM_LOAD16_BYTE( "sono05.p4", 0x100001, 0x080000, CRC(b4a37232) SHA1(c85a185786ad5e0a0a2fb7c525f9be8c0c376d3e) ) // == 01
4907   
4907
49084908   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
49094909   ROM_LOAD16_BYTE( "sono05ad.p1", 0x000000, 0x080000, CRC(4e162d7f) SHA1(9533f8ac7ca385b9b5aeaa0767628e16a6ee8e5d) )
49104910   ROM_LOAD16_BYTE( "sono05b.p1", 0x000000, 0x080000, CRC(d62b4d88) SHA1(6760752341091c4aeb5b908c89de7c868af4e455) )
r15975r15976
50065006   ROM_LOAD16_BYTE( "sbtr02.p2", 0x000001, 0x080000, CRC(00ada2e2) SHA1(d6979b9d29d3a5da04d9d9910ca2f2af91f5531e) )
50075007   ROM_LOAD16_BYTE( "sbtr02.p3", 0x100000, 0x080000, CRC(cbd103db) SHA1(a4b49e74a5a37c8779d9f6e960c7d904fc9b4a9a) ) // == 03
50085008   ROM_LOAD16_BYTE( "sbtr02.p4", 0x100001, 0x080000, CRC(0d5a7af8) SHA1(14dde9f4f2437b40ad5756931bb4428b571acc2c) ) // == 03
5009   
5009
50105010   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
50115011   ROM_LOAD16_BYTE( "sbtr02ad.p1", 0x000000, 0x080000, CRC(cad3e3bd) SHA1(f6076754bcd560aaf09730bd23fb3c94138579c0) )
50125012   ROM_LOAD16_BYTE( "sbtr02b.p1", 0x000000, 0x080000, CRC(6a3bfc70) SHA1(202d453cd3e44337168e9e023f2d5daefcbe2c6c) )
r15975r15976
50675067   ROM_LOAD16_BYTE( "sqid05.p2", 0x000001, 0x080000, CRC(3a5c50cc) SHA1(082b2918fbb0718d567bc4ed1f7f03034138f5c1) )
50685068   ROM_LOAD16_BYTE( "sqid05.p3", 0x100000, 0x080000, CRC(2808fd4a) SHA1(1f75987b42f83b54dd2eb376cc9ce0fccfbb693c) ) // == 04
50695069   ROM_LOAD16_BYTE( "sqid05.p4", 0x100001, 0x080000, CRC(5983db8c) SHA1(1cf396ea35a6b947fd7fd827fc79e8bf2ef95811) ) // == 04
5070   
5070
50715071   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
50725072   ROM_LOAD16_BYTE( "sqid05ad.p1", 0x000000, 0x080000, CRC(15051db0) SHA1(b4cfb41aa9f218144511e5e54630c67d8fd744c5) )
50735073   ROM_LOAD16_BYTE( "sqid05b.p1", 0x000000, 0x080000, CRC(6ea2eb9e) SHA1(28a1c92688daf90a8363798d797035b661282189) )
r15975r15976
56725672   ROM_LOAD16_BYTE( "ultr03.p2", 0x000001, 0x080000, CRC(b78b8f57) SHA1(ce1c20e8a97727c2b37983edb47c0603ac21a59a) )
56735673   ROM_LOAD16_BYTE( "ultr03.p3", 0x100000, 0x080000, CRC(bfc649eb) SHA1(85f31848918e35385ab96cbadadbc33ddb1e42b1) ) // == 03
56745674   ROM_LOAD16_BYTE( "ultr03.p4", 0x100001, 0x080000, CRC(8579127e) SHA1(5ba966008c0f7b4c910eddc6400ed2178c70e096) ) // == 03
5675   
5675
56765676   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
56775677   ROM_LOAD16_BYTE( "ultr03ad.p1", 0x000000, 0x080000, CRC(94e18680) SHA1(80e7024464abff00a880c0f88f2b336e168ad025) )
56785678   ROM_LOAD16_BYTE( "ultr03b.p1", 0x000000, 0x080000, CRC(8c66b958) SHA1(cd6a5c931bb432169ffe337ca6b2ffdd08d3fc5a) )
r15975r15976
58305830   ROM_LOAD16_BYTE( "xfac1_1.p1", 0x000000, 0x080000, CRC(f3303449) SHA1(61284a5e950df86efc72aef436b81a80a8370380) )
58315831   ROM_LOAD16_BYTE( "xfac1_1.p2", 0x000001, 0x080000, CRC(c1508630) SHA1(1ad9f38ddef32bc5a64db434c681b06967edd988) )
58325832   /* 3+4 */
5833   
5833
58345834   ROM_REGION( 0x100000, "altrevs", 0 ) /* Alternate revision Prg ROMs, to be sorted into clones */
58355835   ROM_LOAD16_BYTE( "xfac1_1d.p1", 0x000000, 0x080000, CRC(ffbcb9f2) SHA1(a57760ff5b092d7550a5b2d69065782cbdd056e4) )
58365836ROM_END
src/mame/drivers/atetris.c
r15975r15976
403403   MCFG_SOUND_ADD("sn1", SN76496_NEW, BOOTLEG_CLOCK/8)
404404   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
405405   MCFG_SOUND_CONFIG(psg_intf)
406   
406
407407   MCFG_SOUND_ADD("sn2", SN76496_NEW, BOOTLEG_CLOCK/8)
408408   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
409409   MCFG_SOUND_CONFIG(psg_intf)
410   
410
411411   MCFG_SOUND_ADD("sn3", SN76496_NEW, BOOTLEG_CLOCK/8)
412412   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
413413   MCFG_SOUND_CONFIG(psg_intf)
src/mame/drivers/jchan.c
r15975r15976
441441   AM_RANGE(0x000000, 0x1fffff) AM_ROM
442442   AM_RANGE(0x200000, 0x20ffff) AM_RAM // Work RAM - [A] grid tested, cleared ($9d6-$a54)
443443
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)
449449   AM_RANGE(0x370000, 0x370001) AM_DEVREAD( "toybox", kaneko_toybox_device, toybox_mcu_status_r)
450450
451451   AM_RANGE(0x400000, 0x403fff) AM_RAM AM_SHARE("mainsub_shared")
src/mame/drivers/bankp.c
r15975r15976
325325   MCFG_SOUND_ADD("sn1", SN76489_NEW, MASTER_CLOCK/6)
326326   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
327327   MCFG_SOUND_CONFIG(psg_intf)
328   
328
329329   MCFG_SOUND_ADD("sn2", SN76489_NEW, MASTER_CLOCK/6)
330330   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
331331   MCFG_SOUND_CONFIG(psg_intf)
332   
332
333333   MCFG_SOUND_ADD("sn3", SN76489_NEW, MASTER_CLOCK/6)
334334   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
335335   MCFG_SOUND_CONFIG(psg_intf)
src/mame/drivers/atari_s2.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(atari_s2);
2626};
2727
src/mame/drivers/tetrisp2.c
r15975r15976
17561756There's an external sound board. No ROMs on it but there's an NEC D78P014 MCU(?)
17571757and an Altera FPGA and other sound related stuff, plus a Sony CXD1178Q (RGBDAC?)
17581758
1759The game boots here to a message screen and complains and won't go further.
1759The game boots here to a message screen and complains and won't go further.
17601760Probably the external sound PCB is required to boot up.
17611761It's missing the special cable so I can't connect it.
17621762
r15975r15976
17941794
17951795   ROM_REGION( 0x400000, "gfx3", 0 )   // 16x16x8 (Rotation)
17961796   ROM_LOAD( "mr97032-01.ic2", 0x000000, 0x400000, CRC(18c1a394) SHA1(491a2eb190efb5684f5eddb317adacd55afa727c) )
1797   
1797
17981798   ROM_REGION( 0x100000, "gfx4", 0 )   // 8x8x8 (Foreground)
17991799   ROM_LOAD( "mr97032-03.ic8", 0x000000, 0x100000, CRC(5678a378) SHA1(306a3238590fa6e274e3c2ad334f5f210738dd7d) )
18001800
src/mame/drivers/ssv.c
r15975r15976
25802580DRIVER_INIT_MEMBER(ssv_state,hypreac2)     {   init_ssv(machine(), 0); init_hypreac2_common(machine());   }
25812581DRIVER_INIT_MEMBER(ssv_state,janjans1)     {   init_ssv(machine(), 0);   }
25822582DRIVER_INIT_MEMBER(ssv_state,keithlcy)     {   init_ssv(machine(), 0);   }
2583DRIVER_INIT_MEMBER(ssv_state,meosism)         {   init_ssv(machine(), 0);   }
2584DRIVER_INIT_MEMBER(ssv_state,mslider)         {   init_ssv(machine(), 0);   }
2585DRIVER_INIT_MEMBER(ssv_state,ryorioh)         {   init_ssv(machine(), 0);   }
2583DRIVER_INIT_MEMBER(ssv_state,meosism)      {   init_ssv(machine(), 0);   }
2584DRIVER_INIT_MEMBER(ssv_state,mslider)      {   init_ssv(machine(), 0);   }
2585DRIVER_INIT_MEMBER(ssv_state,ryorioh)      {   init_ssv(machine(), 0);   }
25862586DRIVER_INIT_MEMBER(ssv_state,srmp4)        {   init_ssv(machine(), 0);
25872587//  ((UINT16 *)machine().root_device().memregion("user1")->base())[0x2b38/2] = 0x037a;   /* patch to see gal test mode */
2588}                                   
2588}
25892589DRIVER_INIT_MEMBER(ssv_state,srmp7)        {   init_ssv(machine(), 0);   }
25902590DRIVER_INIT_MEMBER(ssv_state,stmblade)     {   init_ssv(machine(), 0); init_st010(machine()); }
25912591DRIVER_INIT_MEMBER(ssv_state,survarts)     {   init_ssv(machine(), 0);   }
r15975r15976
25942594DRIVER_INIT_MEMBER(ssv_state,cairblad)     {   init_ssv(machine(), 0); init_hypreac2_common(machine());   }
25952595DRIVER_INIT_MEMBER(ssv_state,sxyreac2)     {   init_ssv(machine(), 0); init_hypreac2_common(machine());   }
25962596DRIVER_INIT_MEMBER(ssv_state,twineag2)     {   init_ssv(machine(), 1); init_st010(machine());  }
2597DRIVER_INIT_MEMBER(ssv_state,ultrax)          {   init_ssv(machine(), 1);   }
2598DRIVER_INIT_MEMBER(ssv_state,vasara)          {   init_ssv(machine(), 0);   }
2597DRIVER_INIT_MEMBER(ssv_state,ultrax)       {   init_ssv(machine(), 1);   }
2598DRIVER_INIT_MEMBER(ssv_state,vasara)       {   init_ssv(machine(), 0);   }
25992599DRIVER_INIT_MEMBER(ssv_state,jsk)          {   init_ssv(machine(), 0);   }
26002600
26012601
src/mame/drivers/mikie.c
r15975r15976
229229 *  Sound interface
230230 *
231231 *************************************/
232 
233 
232
233
234234//-------------------------------------------------
235235//  sn76496_config psg_intf
236236//-------------------------------------------------
r15975r15976
307307   MCFG_SOUND_ADD("sn1", SN76489A_NEW, XTAL/8)
308308   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
309309   MCFG_SOUND_CONFIG(psg_intf)
310   
310
311311   MCFG_SOUND_ADD("sn2", SN76489A_NEW, CLK)
312312   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.60)
313313   MCFG_SOUND_CONFIG(psg_intf)
src/mame/drivers/midvunit.c
r15975r15976
17551755      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));
17561756}
17571757DRIVER_INIT_MEMBER(midvunit_state,crusnwld)  { init_crusnwld_common(0xd4c0); }
1758#if 0                               
1758#if 0
17591759DRIVER_INIT_MEMBER(midvunit_state,crusnw20)  { init_crusnwld_common(0xd49c); }
17601760DRIVER_INIT_MEMBER(midvunit_state,crusnw13)  { init_crusnwld_common(0); }
17611761#endif
src/mame/drivers/hikaru.c
r15975r15976
704704ROM_END
705705
706706GAME( 2000, hikaru,   0,        hikaru,   hikaru, driver_device,   0, ROT0, "Sega",            "Hikaru Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
707GAME( 1999, braveff,  hikaru,   hikaru,   hikaru, driver_device,   0, ROT0, "Sega",            "Brave Fire Fighters", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
707GAME( 1999, braveff,  hikaru,   hikaru,   hikaru, driver_device,   0, ROT0, "Sega",            "Brave Fire Fighters", GAME_NO_SOUND|GAME_NOT_WORKING )
708708GAME( 2000, airtrix,  hikaru,   hikaru,   hikaru, driver_device,   0, ROT0, "Sega",            "Air Trix", GAME_NO_SOUND|GAME_NOT_WORKING )
709709GAME( 2000, sgnascar, hikaru,   hikaru,   hikaru, driver_device,   0, ROT0, "Sega / Electronic Arts", "NASCAR Racing", GAME_NO_SOUND|GAME_NOT_WORKING )
710710GAME( 2001, pharrier, hikaru,   hikaru,   hikaru, driver_device,   0, ROT0, "Sega",            "Planet Harriers", GAME_NO_SOUND|GAME_NOT_WORKING )
src/mame/drivers/kncljoe.c
r15975r15976
235235 *  Sound interface
236236 *
237237 *************************************/
238 
239 
238
239
240240//-------------------------------------------------
241241//  sn76496_config psg_intf
242242//-------------------------------------------------
r15975r15976
327327   MCFG_SOUND_ADD("sn1", SN76489_NEW, XTAL_3_579545MHz) /* verified on pcb */
328328   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
329329   MCFG_SOUND_CONFIG(psg_intf)
330   
330
331331   MCFG_SOUND_ADD("sn2", SN76489_NEW, XTAL_3_579545MHz) /* verified on pcb */
332332   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
333333   MCFG_SOUND_CONFIG(psg_intf)
src/mame/drivers/deco_ld.c
r15975r15976
153153   int i,spr_offs,x,y,col,fx,fy;
154154
155155   /*
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    */
163163
164164   for(i=0;i<0x20;i+=4)
165165   {
r15975r15976
464464   MCFG_CPU_PROGRAM_MAP(rblaster_sound_map)
465465   MCFG_CPU_PERIODIC_INT(sound_interrupt, 640)
466466
467//   MCFG_QUANTUM_TIME(attotime::from_hz(6000))
467//  MCFG_QUANTUM_TIME(attotime::from_hz(6000))
468468
469469   MCFG_LASERDISC_LDV1000_ADD("laserdisc") //Sony LDP-1000A, is it truly compatible with the Pioneer?
470470   MCFG_LASERDISC_OVERLAY_STATIC(256, 256, rblaster)
src/mame/drivers/blackt96.c
r15975r15976
8888      m_spriteram4(*this, "spriteram4"),
8989      m_spriteram5(*this, "spriteram5"),
9090      m_spriteram6(*this, "spriteram6"),
91      m_spriteram7(*this, "spriteram7")   
92   {
91      m_spriteram7(*this, "spriteram7")
92   {
9393   }
9494
9595   required_shared_ptr<UINT16> m_tilemapram;
r15975r15976
186186   base += page * 2;
187187
188188   /* ---- ---- ---x xxxx
189      xxxx ---y yyyy yyyy */
189       xxxx ---y yyyy yyyy */
190190
191191   int xx=  ((state->m_spriteram[0][base+0]&0x001f)<<4) | (state->m_spriteram[0][base+1]&0xf000)>>12;
192192   int yy = ((state->m_spriteram[0][base+1]&0x1ff));
r15975r15976
202202   for (int y=0;y<32;y++)
203203   {
204204      /* -Xtt tttt tttt tttt
205         ---- ---- cccc cccc */
205           ---- ---- cccc cccc */
206206
207207      UINT16 tile = (base2[y*2+1]&0x3fff);
208208      UINT16 flipx = (base2[y*2+1]&0x4000);
src/mame/drivers/proconn.c
r15975r15976
464464   ROM_REGION( 0x80000, "maincpu", 0 )
465465   ROM_LOAD( "bx8t10n6.bin", 0x0000, 0x008000, CRC(829dcc99) SHA1(014b53999becb241a3fcd34e802be8b58bfeb3c4) )
466466ROM_END
467   
467
468468ROM_START( pr_bearxl )
469469   ROM_REGION( 0x80000, "maincpu", 0 )
470470   ROM_LOAD( "p_bx41.bin", 0x0000, 0x008000, CRC(e9212049) SHA1(215038324baa928b3c41495e78a2be68c8a1a767) )//bx1c20n7.bin
r15975r15976
585585   ROM_REGION( 0x80000, "maincpu", 0 )
586586   ROM_LOAD( "7h10p3c_380.bin", 0x0000, 0x010000, CRC(9fafd2a1) SHA1(7da1fa02005e0e232b7bb01088b180c32f271b00) )//10p 3 pound cash rom 380
587587ROM_END
588   
588
589589ROM_START( pr_7hvnd )
590590   ROM_REGION( 0x80000, "maincpu", 0 )
591591   ROM_LOAD( "7775prb", 0x0000, 0x010000, CRC(cc6cb41e) SHA1(7b9e4d9cfdb4071c83081a1306ffa7e0be3938aa) )//5p 3 pound cash 105
592592ROM_END
593   
593
594594ROM_START( pr_7hvne )
595595   ROM_REGION( 0x80000, "maincpu", 0 )
596596   ROM_LOAD( "777 heaven 892a20pn-390 (27256)", 0x0000, 0x008000, CRC(ffd1a8e0) SHA1(4b3a72c855d5b28d8be5db13166c58a44a1cbb59) )
597597ROM_END
598   
598
599599ROM_START( pr_7hvnf )
600600   ROM_REGION( 0x80000, "maincpu", 0 )
601601   ROM_LOAD( "777 heaven 892a10pn-380 (27256)", 0x0000, 0x008000, CRC(ca9d2108) SHA1(ebbb54c6640c67ce905a2dbf83f9f2fde31d342f) )
r15975r15976
676676   ROM_LOAD( "cl7h1020", 0x0000, 0x010000, CRC(b12e3219) SHA1(634f6984d9ef6ef9964841b5586143d82d8b52f7) )
677677ROM_END
678678
679   
679
680680ROM_START( pr_alwy9 )
681681   ROM_REGION( 0x80000, "maincpu", 0 )
682682   ROM_LOAD( "always 9 10p.bin", 0x0000, 0x010000, CRC(aff337c0) SHA1(a335a857c1bba696150d51cabfd39a2996c1092f) )
r15975r15976
696696   ROM_REGION( 0x80000, "snd", 0 )\
697697   ROM_LOAD( "080snd1.bin", 0x0000, 0x020000, CRC(011170ab) SHA1(60a174c09261c2ee230c4194d918173b41f267de) )\
698698   ROM_LOAD( "080snd2.bin", 0x020000, 0x020000, CRC(9189793b) SHA1(b47a3c214eb01595581f1e9d18c154560ee02ca1) )\
699   
699
700700ROM_START( pr_batls )
701701   ROM_REGION( 0x80000, "maincpu", 0 )
702702   ROM_LOAD( "batt72c", 0x0000, 0x010000, CRC(6c6ab1f1) SHA1(6e0663fcdfa1948d9d74b6df388d09fed73f0ed2) )
r15975r15976
757757   ROM_REGION( 0x80000, "snd", 0 )\
758758   ROM_LOAD( "010snd1 316e.bin" , 0x0000, 0x020000, CRC(5e3cfdc6) SHA1(32db10e7bacc6a4728d8821e77789cf146e2a277) )\
759759   ROM_LOAD( "010snd2 9e9a.bin" , 0x0000, 0x020000, CRC(496a9d51) SHA1(703631d3cb2e3c7fa676cb5a31903bf39ee6c44f) )\
760   
761   
760
761
762762ROM_START( pr_bulls )
763763   ROM_REGION( 0x80000, "maincpu", 0 )
764764   ROM_LOAD( "beye58c", 0x0000, 0x010000, CRC(5fc52311) SHA1(dd4d3f29ec608c37d3d644bfbfa3ba06cc134b59) )
r15975r15976
833833   ROM_REGION( 0x80000, "snd", 0 )\
834834   ROM_LOAD( "006snd1.000", 0x0000, 0x020000, CRC(f906857a) SHA1(cfa47a3e887e6788c577d31bb567f7fbaaf0bbf3) )\
835835   ROM_LOAD( "006snd2.000", 0x0000, 0x020000, CRC(8445d0ef) SHA1(fd2ecc96f74e99e8f5ea7c7772fbd451ce52e889) )\
836   
836
837837ROM_START( pr_chico )
838838   ROM_REGION( 0x80000, "maincpu", 0 )
839839   ROM_LOAD( "006a20pn.810", 0x0000, 0x010000, CRC(c4b491b7) SHA1(7629857cf6f1f69fb9ccf82a290a491cf695d373) )
r15975r15976
844844ROM_START( pr_chicoa )
845845   ROM_REGION( 0x80000, "maincpu", 0 )
846846   ROM_LOAD( "006a25pn.810", 0x0000, 0x010000, CRC(d765215c) SHA1(22fe8d4b387e9fbc34a72ea1583b1c040f7761bc) )
847   
847
848848   pr_chico_sound
849849ROM_END
850850
851851ROM_START( pr_chicob )
852852   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) )
854854
855855   pr_chico_sound
856856ROM_END
r15975r15976
867867ROM_START( pr_coolma )
868868   ROM_REGION( 0x80000, "maincpu", 0 )
869869   ROM_LOAD( "cm5pndan", 0x0000, 0x010000, CRC(e0697fe6) SHA1(d4b66272030dd64c86834f0546376dd02cfb0cc4) )
870   
870
871871   ROM_REGION( 0x80000, "snd", 0 )
872872   ROM_LOAD( "cmsnd.bin", 0x0000, 0x080000, CRC(db79a326) SHA1(afe19eaa5d63c871ed80ffdfc8fb991a8c16cb36) )
873873ROM_END
src/mame/drivers/mpu4bwb.c
r15975r15976
22 - these are Bwb originals, not rebuilds..
33   typically they have large 0x3f fills in rom..
44   some have information about the various set
5   types in unused areas
5   types in unused areas
66
77   some QPS sets also have large 0x3f fills but
88   seem to be unrelated.
r15975r15976
11811181M4XS_SET( 199?, m4xs__e,   m4xs,   "es_49bmd.3_0", 0x0000, 0x020000, CRC(1150e499) SHA1(25d2c37e5287f73d2b11608c50f21072422850f0), "Bwb","X-s (Bwb) (MPU4) (set 6)" )
11821182M4XS_SET( 199?, m4xs__f,   m4xs,   "es_sja__.3_0", 0x0000, 0x020000, CRC(5909092d) SHA1(64df6ad5ba5ac74592b525af2f4cab8a092a5766), "Bwb","X-s (Bwb) (MPU4) (set 7)" )
11831183
1184   
1184
11851185#define M4XTRM_EXTRA_ROMS \
11861186   ROM_REGION( 0x200000, "msm6376", ROMREGION_ERASE00 ) \
11871187   /* missing? */ \
src/mame/drivers/srmp2.c
r15975r15976
15661566
15671567
15681568
1569GAME( 1987, srmp1,     0,        srmp2,    srmp2, driver_device,    0,       ROT0, "Seta",             "Super Real Mahjong Part 1 (Japan)",  0 )
1570GAME( 1987, srmp2,     0,        srmp2,    srmp2, driver_device,    0,       ROT0, "Seta",             "Super Real Mahjong Part 2 (Japan)",  0 )
1571GAME( 1988, srmp3,     0,        srmp3,    srmp3, driver_device,    0,       ROT0, "Seta",             "Super Real Mahjong Part 3 (Japan)",  0 )
1569GAME( 1987, srmp1,     0,        srmp2,    srmp2, driver_device,    0,       ROT0, "Seta",            "Super Real Mahjong Part 1 (Japan)",  0 )
1570GAME( 1987, srmp2,     0,        srmp2,    srmp2, driver_device,    0,       ROT0, "Seta",            "Super Real Mahjong Part 2 (Japan)",  0 )
1571GAME( 1988, srmp3,     0,        srmp3,    srmp3, driver_device,    0,       ROT0, "Seta",            "Super Real Mahjong Part 3 (Japan)",  0 )
15721572GAME( 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 )
15731573GAME( 1990, mjyuugi,   0,        mjyuugi,  mjyuugi, driver_device,  0,       ROT0, "Visco",            "Mahjong Yuugi (Japan set 1)",        0 )
15741574GAME( 1990, mjyuugia,  mjyuugi,  mjyuugi,  mjyuugi, driver_device,  0,       ROT0, "Visco",            "Mahjong Yuugi (Japan set 2)",        0 )
src/mame/drivers/s3.c
r15975r15976
126126
127127GAME( 1977, httip_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "Hot Tip (L-1)",         GAME_IS_SKELETON_MECHANICAL)
128128GAME( 1977, lucky_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "Lucky Seven (L-1)",      GAME_IS_SKELETON_MECHANICAL)
129GAME( 1978, wldcp_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "World Cup Soccer (L-1)",    GAME_IS_SKELETON_MECHANICAL)
129GAME( 1978, wldcp_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "World Cup Soccer (L-1)",   GAME_IS_SKELETON_MECHANICAL)
130130GAME( 1978, cntct_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "Contact (L-1)",         GAME_IS_SKELETON_MECHANICAL)
131131GAME( 1978, disco_l1, 0, williams_s3, williams_s3, williams_s3_state, williams_s3, ROT0, "Williams", "Disco Fever (L-1)",      GAME_IS_SKELETON_MECHANICAL)
src/mame/drivers/invqix.c
r15975r15976
7272    400000-400003: OKI M9810
7373    600000-61ffff: VRAM
7474    620000-620005: video registers
75
75
7676    I/O map:
7777    port 1: player 2 inputs
78
78
7979    port 2 bit 3: must be "1" to avoid SERVICE ERROR
8080    port 2 bit 6: FPGA chip select
8181    port 2 bit 7: FPGA clock in
r15975r15976
8686    port 3 bit 3: EEPROM clock
8787    port 3 bit 4: EEPROM data to EEPROM
8888    port 3 bit 5: EEPROM data from EEPROM
89
89
9090    port 4: player 1 inputs
91
91
9292    port 6 bit 3: FPGA data bit in
9393
9494    port G bit 0: watchdog (toggled each frame)
r15975r15976
273273   AM_RANGE(H8_PORT_2, H8_PORT_2) AM_READ_PORT("SYSTEM") AM_WRITENOP
274274   AM_RANGE(H8_PORT_3, H8_PORT_3) AM_READWRITE(port3_r, port3_w)
275275   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)
278278   AM_RANGE(H8_PORT_A, H8_PORT_A) AM_READ(porta_r)
279279   AM_RANGE(H8_PORT_G, H8_PORT_G) AM_READ(portg_r) AM_WRITENOP
280280ADDRESS_MAP_END
r15975r15976
297297   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
298298   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
299299   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
301301   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNUSED )
302   
302
303303   PORT_START("P4")
304304   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
305305   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
src/mame/drivers/peplus.c
r15975r15976
574574{
575575/*
576576        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.
581581
582582        TODO: Will need to include IGT IDO23 (IGT 2.5) for Superboard games.
583583        PE+ bill validators have a dip switch setting to switch between ID-022 and ID-023 protocols.
r15975r15976
614614         // Fetch Current Denomination
615615         m_bv_denomination = ioport("BC")->read();
616616
617         m_bv_cycles = curr_cycles;         
617         m_bv_cycles = curr_cycles;
618618         m_bv_pulse = 1;
619619
620620         if (m_bv_denomination == 0)
r15975r15976
623623            m_bv_state = 1; // Greater than $1 Needs Credit Pulse
624624      }
625625   }
626   
626
627627   switch (m_bv_state)
628628   {
629629      case 0x00: // Not Active
r15975r15976
642642            m_bv_pulse = 1;
643643
644644            m_bv_denomination--;
645           
645
646646            if (m_bv_denomination == 0)
647647               m_bv_state++; // Done with Credit Pulse
648648            else
src/mame/drivers/triforce.c
r15975r15976
474474    UINT16 v = 0x3ff1;
475475
476476    UINT8 x = 1;
477   
477
478478   for (UINT32 it = 0; it < size;)
479479   {
480480      int t0 = t & 1;
src/mame/drivers/segac2.c
r15975r15976
115115static MACHINE_RESET( segac2 )
116116{
117117   segac2_state *state = machine.driver_data<segac2_state>();
118//   megadriv_framerate = 60;
118//  megadriv_framerate = 60;
119119
120120
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);
123123   segac2_bg_pal_lookup[0] = 0x00;
124124   segac2_bg_pal_lookup[1] = 0x10;
125125   segac2_bg_pal_lookup[2] = 0x20;
r15975r15976
236236   /* set the color */
237237   palette_set_color_rgb(space->machine(), offset, pal5bit(r), pal5bit(g), pal5bit(b));
238238
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);
241241
242242   tmpr = r >> 1;
243243   tmpg = g >> 1;
r15975r15976
12741274}
12751275
12761276// 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
12781278static SCREEN_UPDATE_RGB32(segac2_new)
12791279{
12801280   const pen_t *paldata = screen.machine().pens;
r15975r15976
12921292   {
12931293      UINT32* desty = &bitmap.pix32(y, 0);
12941294      UINT16* srcy;
1295     
1295
12961296      srcy = vdp->m_render_line_raw;
12971297
12981298      for (int x = cliprect.min_x; x <= cliprect.max_x; x++)
r15975r15976
13731373   MCFG_MACHINE_RESET(segac2)
13741374   MCFG_NVRAM_ADD_RANDOM_FILL("nvram")
13751375
1376//   MCFG_FRAGMENT_ADD(megadriv_timers)
1376//  MCFG_FRAGMENT_ADD(megadriv_timers)
13771377
13781378   MCFG_DEVICE_ADD("gen_vdp", SEGA_GEN_VDP, 0)
13791379   sega_genesis_vdp_device::set_genesis_vdp_sndirqline_callback(*device, genesis_vdp_sndirqline_callback_segac2);
src/mame/drivers/sandscrp.c
r15975r15976
139139
140140static MACHINE_RESET( sandscrp )
141141{
142//   sandscrp_state *state = machine.driver_data<sandscrp_state>();
142//  sandscrp_state *state = machine.driver_data<sandscrp_state>();
143143}
144144
145145/* Sand Scorpion */
r15975r15976
196196
197197   if (ACCESSING_BITS_0_7)
198198   {
199//      m_sprite_flipx   =   data & 1;
200//      m_sprite_flipy   =   data & 1;
199//      m_sprite_flipx  =   data & 1;
200//      m_sprite_flipy  =   data & 1;
201201
202202      if (data & 0x08)   m_sprite_irq  = 0;
203203      if (data & 0x10)   m_unknown_irq = 0;
src/mame/drivers/hng64.c
r15975r15976
624624         hng64_do_dma(&space);
625625         break;
626626      //default:
627      //   printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, m_sysregs[offset], cpu_get_pc(&space.device()));
627      //  printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, m_sysregs[offset], cpu_get_pc(&space.device()));
628628   }
629629}
630630
r15975r15976
17161716void hng64_state::m_set_irq(UINT32 irq_vector)
17171717{
17181718   /*
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?
17241724
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
17341734
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    */
17391739
17401740   m_irq_pending |= irq_vector;
17411741
src/mame/drivers/segas16b.c
r15975r15976
906906
907907
908908//**************************************************************************
909//   CONSTANTS
909//  CONSTANTS
910910//**************************************************************************
911911
912912#define MASTER_CLOCK_10MHz            XTAL_10MHz
r15975r15976
916916
917917
918918//**************************************************************************
919//   MEMORY MAPPING
919//  MEMORY MAPPING
920920//**************************************************************************
921921
922922//-------------------------------------------------
923923//  memory_mapper - callback to handle mapping
924//   requests
924//  requests
925925//-------------------------------------------------
926926
927927void segas16b_state::memory_mapper(sega_315_5195_mapper_device &mapper, UINT8 index)
r15975r15976
931931      case 7:   // 16k of I/O space
932932         mapper.map_as_handler(0x00000, 0x04000, 0xffc000, m_custom_io_r, m_custom_io_w);
933933         break;
934         
934
935935      case 6:   // 4k of paletteram
936936         mapper.map_as_ram(0x00000, 0x01000, 0xfff000, "paletteram", write16_delegate(FUNC(segas16b_state::legacy_wrapper<segaic16_paletteram_w>), this));
937937         break;
938         
938
939939      case 5:   // 64k of tileram + 4k of textram
940940         mapper.map_as_ram(0x00000, 0x10000, 0xfe0000, "tileram", write16_delegate(FUNC(segas16b_state::legacy_wrapper<segaic16_tileram_0_w>), this));
941941         mapper.map_as_ram(0x10000, 0x01000, 0xfef000, "textram", write16_delegate(FUNC(segas16b_state::legacy_wrapper<segaic16_textram_0_w>), this));
942942         break;
943     
943
944944      case 4:   // 2k of spriteram
945945         mapper.map_as_ram(0x00000, 0x00800, 0xfff800, "spriteram", write16_delegate());
946946         break;
947     
947
948948      case 3:   // 16k or 256k of work RAM
949949         mapper.map_as_ram(0x00000, m_workram.bytes(), ~(m_workram.bytes() - 1), "workram", write16_delegate());
950950         break;
951         
951
952952      case 2:   // 3rd ROM base, or board-specific banking
953953         switch (m_romboard)
954954         {
r15975r15976
961961            default:                  assert(false);
962962         }
963963         break;
964         
964
965965      case 1:   // 2nd ROM base, banking & math, or sound for Korean games
966966         switch (m_romboard)
967967         {
r15975r15976
974974            default:                  assert(false);
975975         }
976976         break;
977         
977
978978      case 0:   // 1st ROM base
979979         switch (m_romboard)
980980         {
r15975r15976
993993
994994//-------------------------------------------------
995995//  mapper_sound_r - sound port read from the
996//   memory mapper chip
996//  memory mapper chip
997997//-------------------------------------------------
998998
999999UINT8 segas16b_state::mapper_sound_r()
r15975r15976
10041004
10051005//-------------------------------------------------
10061006//  mapper_sound_w - sound port write from the
1007//   memory mapper chip
1007//  memory mapper chip
10081008//-------------------------------------------------
10091009
10101010void segas16b_state::mapper_sound_w(UINT8 data)
r15975r15976
10171017
10181018
10191019//**************************************************************************
1020//   MAIN CPU READ/WRITE HANDLERS
1020//  MAIN CPU READ/WRITE HANDLERS
10211021//**************************************************************************
10221022
10231023//-------------------------------------------------
1024//  rom_5704_bank_w - ROM board 5704 tile bank
1025//   selection
1024//  rom_5704_bank_w - ROM board 5704 tile bank
1025//  selection
10261026//-------------------------------------------------
10271027
10281028WRITE16_MEMBER( segas16b_state::rom_5704_bank_w )
r15975r15976
10341034
10351035//-------------------------------------------------
10361036//  rom_5797_bank_math_r - ROM board 5797 custom
1037//   math chip reads
1037//  math chip reads
10381038//-------------------------------------------------
10391039
10401040READ16_MEMBER( segas16b_state::rom_5797_bank_math_r )
r15975r15976
10561056
10571057//-------------------------------------------------
10581058//  rom_5797_bank_math_r - ROM board 5797 custom
1059//   math chip writes, plus tile bank selection
1059//  math chip writes, plus tile bank selection
10601060//-------------------------------------------------
10611061
10621062WRITE16_MEMBER( segas16b_state::rom_5797_bank_math_w )
r15975r15976
10841084
10851085//-------------------------------------------------
10861086//  unknown_rgn2_r - unknown region 2 reads;
1087//   for now treat as a second compare/timer chip
1087//  for now treat as a second compare/timer chip
10881088//-------------------------------------------------
10891089
10901090READ16_MEMBER( segas16b_state::unknown_rgn2_r )
r15975r15976
10961096
10971097//-------------------------------------------------
10981098//  unknown_rgn2_w - unknown region 2 writes;
1099//   for now treat as a second compare/timer chip
1099//  for now treat as a second compare/timer chip
11001100//-------------------------------------------------
11011101
11021102WRITE16_MEMBER( segas16b_state::unknown_rgn2_w )
r15975r15976
11641164
11651165
11661166//-------------------------------------------------
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
11691169//-------------------------------------------------
11701170
11711171WRITE16_MEMBER( segas16b_state::atomicp_sound_w )
r15975r15976
11761176
11771177
11781178//**************************************************************************
1179//   SOUND CPU READ/WRITE HANDLERS
1179//  SOUND CPU READ/WRITE HANDLERS
11801180//**************************************************************************
11811181
11821182//-------------------------------------------------
1183//  upd7759_control_w - handle writes to the
1184//   uPD7759 control register
1183//  upd7759_control_w - handle writes to the
1184//  uPD7759 control register
11851185//-------------------------------------------------
11861186
11871187WRITE8_MEMBER( segas16b_state::upd7759_control_w )
r15975r15976
12421242            bankoffs += ((data & 0x10) >> 4) * 0x20000;
12431243            bankoffs += (data & 0x07) * 0x04000;
12441244            break;
1245         
1245
12461246         default:
12471247            assert(false);
12481248      }
1249     
1249
12501250      // set the final bank
12511251      membank("soundbank")->set_base(memregion("soundcpu")->base() + 0x10000 + (bankoffs % size));
12521252   }
r15975r15976
12551255
12561256//-------------------------------------------------
12571257//  upd7759_status_r - return the uPD7759 busy
1258//   bit in the top bit
1258//  bit in the top bit
12591259//-------------------------------------------------
12601260
12611261READ8_MEMBER( segas16b_state::upd7759_status_r )
r15975r15976
12661266
12671267
12681268//**************************************************************************
1269//   OTHER CALLBACKS
1269//  OTHER CALLBACKS
12701270//**************************************************************************
12711271
12721272//-------------------------------------------------
12731273//  upd7759_generate_nmi - callback to signal an
1274//   NMI to the sound CPU
1274//  NMI to the sound CPU
12751275//-------------------------------------------------
12761276
12771277void segas16b_state::upd7759_generate_nmi(device_t *device, int state)
r15975r15976
12841284
12851285//-------------------------------------------------
12861286//  i8751_main_cpu_vblank - update the fake i8751
1287//   state if we have a handler
1287//  state if we have a handler
12881288//-------------------------------------------------
12891289
12901290INTERRUPT_GEN_MEMBER( segas16b_state::i8751_main_cpu_vblank )
r15975r15976
12971297
12981298
12991299//**************************************************************************
1300//   DRIVER OVERRIDES
1300//  DRIVER OVERRIDES
13011301//**************************************************************************
13021302
13031303//-------------------------------------------------
r15975r15976
13411341            machine().scheduler().boost_interleave(attotime::zero, attotime::from_msec(10));
13421342         break;
13431343
1344      // generate a periodic IRQ to the sound CPU     
1344      // generate a periodic IRQ to the sound CPU
13451345      case TID_ATOMICP_SOUND_IRQ:
13461346         if (++m_atomicp_sound_count >= m_atomicp_sound_divisor)
13471347         {
r15975r15976
13551355
13561356
13571357//**************************************************************************
1358//   I8751 SIMULATIONS
1358//  I8751 SIMULATIONS
13591359//**************************************************************************
13601360
13611361//-------------------------------------------------
13621362//  altbeast_common_i8751_sim - simulate the I8751
1363//   from Altered Beast
1363//  from Altered Beast
13641364//-------------------------------------------------
13651365
13661366void segas16b_state::altbeast_common_i8751_sim(offs_t soundoffs, offs_t inputoffs)
r15975r15976
14021402
14031403//-------------------------------------------------
14041404//  ddux_i8751_sim - simulate the I8751
1405//   from Dynamite Dux
1405//  from Dynamite Dux
14061406//-------------------------------------------------
14071407
14081408void segas16b_state::ddux_i8751_sim()
r15975r15976
14231423
14241424//-------------------------------------------------
14251425//  goldnaxe_i8751_sim - simulate the I8751
1426//   from Golden Axe
1426//  from Golden Axe
14271427//-------------------------------------------------
14281428
14291429void segas16b_state::goldnaxe_i8751_sim()
r15975r15976
14571457
14581458//-------------------------------------------------
14591459//  tturf_i8751_sim - simulate the I8751
1460//   from Tough Turf
1460//  from Tough Turf
14611461//-------------------------------------------------
14621462
14631463void segas16b_state::tturf_i8751_sim()
r15975r15976
14851485
14861486//-------------------------------------------------
14871487//  wb3_i8751_sim - simulate the I8751
1488//   from Wonderboy III
1488//  from Wonderboy III
14891489//-------------------------------------------------
14901490
14911491void segas16b_state::wb3_i8751_sim()
r15975r15976
15061506
15071507
15081508//**************************************************************************
1509//   CUSTOM I/O SPACE HANDLERS
1509//  CUSTOM I/O SPACE HANDLERS
15101510//**************************************************************************
15111511
15121512//-------------------------------------------------
15131513//  aceattac_custom_io_r - custom I/O read handler
1514//   for Ace Attacker
1514//  for Ace Attacker
15151515//-------------------------------------------------
15161516
15171517READ16_MEMBER( segas16b_state::aceattac_custom_io_r )
r15975r15976
15551555
15561556//-------------------------------------------------
15571557//  dunkshot_custom_io_r - custom I/O read handler
1558//   for Dunk Shot
1558//  for Dunk Shot
15591559//-------------------------------------------------
15601560
15611561READ16_MEMBER( segas16b_state::dunkshot_custom_io_r )
r15975r15976
15821582
15831583//-------------------------------------------------
15841584//  hwchamp_custom_io_r/w - custom I/O read/write
1585//   handlers for Heavyweight Champ
1585//  handlers for Heavyweight Champ
15861586//-------------------------------------------------
15871587
15881588READ16_MEMBER( segas16b_state::hwchamp_custom_io_r )
r15975r15976
16331633
16341634//-------------------------------------------------
16351635//  passshtj_custom_io_r - custom I/O read handler
1636//   for Passing Shot
1636//  for Passing Shot
16371637//-------------------------------------------------
16381638
16391639READ16_MEMBER( segas16b_state::passshtj_custom_io_r )
r15975r15976
16561656
16571657//-------------------------------------------------
16581658//  sdi_custom_io_r - custom I/O read handler
1659//   for SDI
1659//  for SDI
16601660//-------------------------------------------------
16611661
16621662READ16_MEMBER( segas16b_state::sdi_custom_io_r )
r15975r15976
16781678
16791679
16801680//-------------------------------------------------
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
16831683//-------------------------------------------------
16841684
16851685READ16_MEMBER( segas16b_state::sjryuko_custom_io_r )
r15975r15976
17211721
17221722
17231723//**************************************************************************
1724//   MAIN CPU ADDRESS MAPS
1724//  MAIN CPU ADDRESS MAPS
17251725//**************************************************************************
17261726
17271727static ADDRESS_MAP_START( system16b_map, AS_PROGRAM, 16, segas16b_state )
17281728   ADDRESS_MAP_UNMAP_HIGH
17291729   AM_RANGE(0x000000, 0xffffff) AM_DEVREADWRITE8("mapper", sega_315_5195_mapper_device, read, write, 0x00ff)
1730   
1730
17311731   // these get overwritten by the memory mapper above, but we put them here
17321732   // so they are properly allocated and tracked for saving
17331733   AM_RANGE(0x100000, 0x1007ff) AM_RAM AM_SHARE("spriteram")
r15975r15976
17411741static ADDRESS_MAP_START( system16c_map, AS_PROGRAM, 16, segas16b_state )
17421742   ADDRESS_MAP_UNMAP_HIGH
17431743   AM_RANGE(0x000000, 0xffffff) AM_DEVREADWRITE8("mapper", sega_315_5195_mapper_device, read, write, 0x00ff)
1744   
1744
17451745   // these get overwritten by the memory mapper above, but we put them here
17461746   // so they are properly allocated and tracked for saving
17471747   AM_RANGE(0x100000, 0x1007ff) AM_RAM AM_SHARE("spriteram")
r15975r15976
17541754
17551755
17561756//**************************************************************************
1757//   SOUND CPU ADDRESS MAPS
1757//  SOUND CPU ADDRESS MAPS
17581758//**************************************************************************
17591759
17601760static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, segas16b_state )
r15975r15976
17771777
17781778
17791779//**************************************************************************
1780//   I8751 MCU ADDRESS MAPS
1780//  I8751 MCU ADDRESS MAPS
17811781//**************************************************************************
17821782
17831783static ADDRESS_MAP_START( mcu_io_map, AS_IO, 8, segas16b_state )
r15975r15976
17891789
17901790
17911791//**************************************************************************
1792//   GENERIC PORT DEFINITIONS
1792//  GENERIC PORT DEFINITIONS
17931793//**************************************************************************
17941794
17951795static INPUT_PORTS_START( system16b_generic )
r15975r15976
18431843
18441844
18451845//**************************************************************************
1846//   GAME-SPECIFIC PORT DEFINITIONS
1846//  GAME-SPECIFIC PORT DEFINITIONS
18471847//**************************************************************************
18481848
18491849static INPUT_PORTS_START( aceattac )
r15975r15976
32573257
32583258
32593259//**************************************************************************
3260//   SOUND CONFIGURATIONS
3260//  SOUND CONFIGURATIONS
32613261//**************************************************************************
32623262
32633263static const upd7759_interface upd7759_config =
r15975r15976
32683268
32693269
32703270//**************************************************************************
3271//   GRAPHICS DECODING
3271//  GRAPHICS DECODING
32723272//**************************************************************************
32733273
32743274static GFXDECODE_START( segas16b )
r15975r15976
32783278
32793279
32803280//**************************************************************************
3281//   GENERIC MACHINE DRIVERS
3281//  GENERIC MACHINE DRIVERS
32823282//**************************************************************************
32833283
32843284static MACHINE_CONFIG_START( system16b, segas16b_state )
r15975r15976
33693369
33703370
33713371//**************************************************************************
3372//   GAME-SPECIFIC MACHINE DRIVERS
3372//  GAME-SPECIFIC MACHINE DRIVERS
33733373//**************************************************************************
33743374
33753375static MACHINE_CONFIG_DERIVED( atomicp, system16b ) // 10MHz CPU Clock verified
r15975r15976
33943394
33953395
33963396//**************************************************************************
3397//   ROM definitions
3397//  ROM definitions
33983398//**************************************************************************
33993399
34003400
r15975r15976
38943894//*************************************************************************************************************************
38953895//  Atomic Point
38963896//
3897//  Custom Korean Board - NOT Sega:
3897//  Custom Korean Board - NOT Sega:
38983898//
38993899//   CPU: TMP68000P-10
39003900//   OSC: 25.1748MHz & 20MHz
r15975r15976
63696369
63706370
63716371//**************************************************************************
6372//   CONFIGURATION
6372//  CONFIGURATION
63736373//**************************************************************************
63746374
63756375//-------------------------------------------------
r15975r15976
64036403
64046404
64056405//-------------------------------------------------
6406//  init_generic_* - ROM board-specific
6407//   initialization
6406//  init_generic_* - ROM board-specific
6407//  initialization
64086408//-------------------------------------------------
64096409
64106410DRIVER_INIT_MEMBER(segas16b_state,generic_5358_small) { init_generic(ROM_BOARD_171_5358_SMALL); }
r15975r15976
64156415DRIVER_INIT_MEMBER(segas16b_state,generic_korean)
64166416{
64176417   init_generic(ROM_BOARD_KOREAN);
6418   
6418
64196419   // configure special behaviors for the Korean boards
64206420   m_disable_screen_blanking = true;
64216421   m_atomicp_sound_divisor = 1;
r15975r15976
65726572
65736573
65746574//**************************************************************************
6575//   GAME DRIVERS
6575//  GAME DRIVERS
65766576//**************************************************************************
65776577
65786578//    YEAR, NAME,       PARENT,   MACHINE,             INPUT,    INIT,               MONITOR,COMPANY,FULLNAME,FLAGS
r15975r15976
66826682
66836683// Custom Korean Board - these probably belong with the bootlegs...
66846684GAME( 1990, atomicp,    0,        atomicp,             atomicp,  segas16b_state,generic_korean,     ROT0,   "Philko", "Atomic Point (Korea)", 0) // korean clone board..
6685GAME( 1990, snapper,    0,        atomicp,             snapper,  segas16b_state,snapper,             ROT0,   "Philko", "Snapper (Korea)", 0) // korean clone board..
6685GAME( 1990, snapper,    0,        atomicp,             snapper,  segas16b_state,snapper,            ROT0,   "Philko", "Snapper (Korea)", 0) // korean clone board..
66866686
66876687
66886688
src/mame/drivers/gts80a.c
r15975r15976
2424
2525   // driver_device overrides
2626   virtual void machine_reset();
27public:   
27public:
2828   DECLARE_DRIVER_INIT(gts80a);
2929};
3030
src/mame/drivers/konamim2.c
r15975r15976
13141314GAME( 1998, evilngte,  evilngt,       m2, m2, konamim2_state, m2, ROT0, "Konami", "Evil Night (ver EAA)", GAME_NOT_WORKING | GAME_NO_SOUND )
13151315GAME( 1998, hellngt,  evilngt,  m2, m2, konamim2_state, m2, ROT0, "Konami", "Hell Night (ver EAA)", GAME_NOT_WORKING | GAME_NO_SOUND )
13161316
1317CONS( 199?, 3do_m2,     0,      0,    m2,    m2,   driver_device, 0,      "3DO",  "3DO M2",      GAME_NOT_WORKING | GAME_NO_SOUND )
1317CONS( 199?, 3do_m2,     0,      0,    m2,    m2,   driver_device, 0,      "3DO",  "3DO M2",   GAME_NOT_WORKING | GAME_NO_SOUND )
src/mame/drivers/royalmah.c
r15975r15976
47114711
47124712
47134713DRIVER_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 );
47164716}
47174717
47184718DRIVER_INIT_MEMBER(royalmah_state,janptr96)
src/mame/drivers/gp_1.c
r15975r15976
2121
2222   // driver_device overrides
2323   virtual void machine_reset();
24public:   
24public:
2525   DECLARE_DRIVER_INIT(gp_1);
2626};
2727
src/osd/osdmini/minimain.c
r15975r15976
139139   // let's pretend like we have a keyboard device
140140   keyboard_device = machine.input().device_class(DEVICE_CLASS_KEYBOARD).add_device("Keyboard");
141141   if (keyboard_device == NULL)
142      fatalerror("Error creating keyboard device");
142      fatalerror("Error creating keyboard device\n");
143143
144144   // our faux keyboard only has a couple of keys (corresponding to the
145145   // common defaults)
src/osd/sdl/draw13.c
r15975r15976
796796                  round_nearest(vofs + prim->bounds.y0));
797797            break;
798798         default:
799            throw emu_fatalerror("Unexpected render_primitive type");
799            throw emu_fatalerror("Unexpected render_primitive type\n");
800800      }
801801   }
802802
src/osd/windows/debugwin.c
r15975r15976
416416
417417      // register the class; fail if we can't
418418      if (!RegisterClass(&wc))
419         fatalerror("Unable to register debug window class");
419         fatalerror("Unable to register debug window class\n");
420420
421421      // initialize the description of the view class
422422      wc.lpszClassName   = TEXT("MAMEDebugView");
r15975r15976
424424
425425      // register the class; fail if we can't
426426      if (!RegisterClass(&wc))
427         fatalerror("Unable to register debug view class");
427         fatalerror("Unable to register debug view class\n");
428428
429429      class_registered = TRUE;
430430   }
r15975r15976
446446         // create a standard font
447447         t_face = tstring_from_utf8(options.debugger_font());
448448         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, FF_DONTCARE, t_face);
449                  ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FIXED_PITCH, t_face);
450450         osd_free(t_face);
451         t_face = NULL;
451452
452         // fall back to Lucida Console 8
453453         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");
460455
461456         // get the metrics
462457         old_font = SelectObject(temp_dc, debug_font);
src/osd/windows/window.c
r15975r15976
238238   // create an event to signal UI pausing
239239   ui_pause_event = CreateEvent(NULL, TRUE, FALSE, NULL);
240240   if (!ui_pause_event)
241      fatalerror("Failed to create pause event");
241      fatalerror("Failed to create pause event\n");
242242
243243   // if multithreading, create a thread to run the windows
244244   if (multithreading_enabled)
r15975r15976
246246      // create an event to signal when the window thread is ready
247247      window_thread_ready_event = CreateEvent(NULL, TRUE, FALSE, NULL);
248248      if (!window_thread_ready_event)
249         fatalerror("Failed to create window thread ready event");
249         fatalerror("Failed to create window thread ready event\n");
250250
251251      // create a thread to run the windows from
252252      temp = _beginthreadex(NULL, 0, thread_entry, NULL, 0, (unsigned *)&window_threadid);
253253      window_thread = (HANDLE)temp;
254254      if (window_thread == NULL)
255         fatalerror("Failed to create window thread");
255         fatalerror("Failed to create window thread\n");
256256
257257      // set the thread priority equal to the main MAME thread
258258      SetThreadPriority(window_thread, GetThreadPriority(GetCurrentThread()));
r15975r15976
711711
712712   // handle error conditions
713713   if (window->init_state == -1)
714      fatalerror("Unable to complete window creation");
714      fatalerror("Unable to complete window creation\n");
715715}
716716
717717
r15975r15976
880880
881881      // register the class; fail if we can't
882882      if (!RegisterClass(&wc))
883         fatalerror("Failed to create window class");
883         fatalerror("Failed to create window class\n");
884884      classes_created = TRUE;
885885   }
886886}
src/osd/windows/d3dhlsl.c
r15975r15976
27792779            end = snapstr.len();
27802780
27812781         if (end - pos < 3)
2782            fatalerror("Something very wrong is going on!!!");
2782            fatalerror("Something very wrong is going on!!!\n");
27832783
27842784         // copy the device name to an astring
27852785         astring snapdevname;
src/emu/cpu/v30mz/v30mz.c
r15975r15976
155155   save_item(NAME(m_seg_prefix_next));
156156
157157   // Register state for debugger
158//   state_add( NEC_PC, "PC", m_PC ).callimport().callexport().formatstr("%04X");
158//  state_add( NEC_PC, "PC", m_PC ).callimport().callexport().formatstr("%04X");
159159   state_add( NEC_IP, "IP", m_ip         ).callimport().callexport().formatstr("%04X");
160160   state_add( NEC_SP, "SP", m_regs.w[SP] ).callimport().callexport().formatstr("%04X");
161161   state_add( NEC_AW, "AW", m_regs.w[AW] ).callimport().callexport().formatstr("%04X");
r15975r15976
13691369            DEF_r8b();
13701370            ADDB();
13711371            RegByte(m_dst);
1372            CLKM(1,2);
1372            CLKM(1,2);
13731373            break;
13741374
13751375         case 0x03: // i_add_r16w
r15975r15976
27812781            ANDW();
27822782            CLK(1);
27832783            break;
2784   
2784
27852785         case 0xaa: // i_stosb
27862786            i_stosb();
27872787            break;
r15975r15976
32953295
32963296               m_sregs[CS] = tmp1;
32973297               m_ip = tmp;
3298               CLK(7);
3298               CLK(7);
32993299            }
33003300            break;
33013301
src/emu/cpu/h83002/h8ops.h
r15975r15976
11/*
2
2
33H8/3xx: Unknown opcode (PC=1c966) 10f - not a valid H8 or H8S opcode, either bad dump or banked ROM
44maygayep.c  ep_cfallc
55
r15975r15976
1313maygayep.c  ep_hogmnc
1414
1515H8/3xx: Unknown opcode (PC=20000) 6b6e - MOV.B @ERs, Rd
16maygayep.c  ep_wordf
17 
16maygayep.c  ep_wordf
17
1818*/
1919
2020static UINT32 udata32, address24;
src/emu/cpu/h83002/h8speriph.c
r15975r15976
15911591            {
15921592                int port = (offset - H8S_IO_P1DR);
15931593                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));
15951595            }
15961596            break;
15971597
src/emu/cpu/powerpc/ppcdrc.c
r15975r15976
24522452
24532453      case 0x0b:   /* CMPI */
24542454         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
24562456         UML_LOAD(block, I0, ppc->impstate->cmp_cr_table, I0, SIZE_BYTE, SCALE_x1);// load    i0,cmp_cr_table,i0,byte
24572457         UML_OR(block, CR32(G_CRFD(op)), I0, XERSO32);                        // or      [crn],i0,[xerso]
24582458         return TRUE;
r15975r15976
30613061
30623062      case 0x000:   /* CMP */
30633063         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
30653065         UML_LOAD(block, I0, ppc->impstate->cmp_cr_table, I0, SIZE_BYTE, SCALE_x1);// load    i0,cmp_cr_table,i0,byte
30663066         UML_OR(block, CR32(G_CRFD(op)), I0, XERSO32);                        // or      [crn],i0,[xerso]
30673067         return TRUE;
src/emu/cpu/v810/v810.c
r15975r15976
993993      UINT32 dsttmp,tmp;
994994      UINT8 srctmp;
995995
996//      printf("BDST %08x BSRC %08x SIZE %08x DST %08x SRC %08x\n",cpustate->R26,cpustate->R27,cpustate->R28,cpustate->R29,cpustate->R30);
996//      printf("BDST %08x BSRC %08x SIZE %08x DST %08x SRC %08x\n",cpustate->R26,cpustate->R27,cpustate->R28,cpustate->R29,cpustate->R30);
997997
998998      dstbit = cpustate->R26;
999999      srcbit = cpustate->R27;
src/emu/video/huc6260.h
r15975r15976
4747   devcb_write_line            hsync_changed;
4848};
4949
50
50
5151class huc6260_device :   public device_t,
5252                  public huc6260_interface
5353{
src/emu/video/huc6202.c
r15975r15976
106106               break;
107107
108108            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                            */
113113               if ( data_1 > huc6270_device::HUC6270_SPRITE )
114114               {
115115                  if ( data_0 > huc6270_device::HUC6270_SPRITE )
r15975r15976
201201         break;
202202
203203      case 0x01:   /* Priority register #1 */
204         data = ( m_prio[2].prio_type << 2 ) |
204         data = ( m_prio[2].prio_type << 2 ) |
205205            ( m_prio[2].dev0_enabled ? 0x01 : 0 ) |
206206            ( m_prio[2].dev1_enabled ? 0x02 : 0 ) |
207207            ( m_prio[3].prio_type << 6 ) |
src/emu/video/huc6270.c
r15975r15976
115115
116116
117117/*
118  Read one row of tile data from video ram
118  Read one row of tile data from video ram
119119*/
120120inline void huc6270_device::fetch_bat_tile_row()
121121{
r15975r15976
308308      }
309309
310310      /* Should we initiate a VRAM->SATB DMA transfer.
311         The timing for this is incorrect.
312       */
311           The timing for this is incorrect.
312         */
313313      if ( m_dvssr_written || ( m_dcr & 0x10 ) )
314314      {
315315         int i;
r15975r15976
488488
489489//inline READ16_MEMBER( huc6270_device::time_until_next_event )
490490//{
491//   return m_horz_to_go * 8 + m_horz_steps;
491//  return m_horz_to_go * 8 + m_horz_steps;
492492//}
493493
494494
r15975r15976
512512         handle_vblank();
513513
514514         /* Should we perform VRAM-VRAM dma.
515            The timing for this is incorrect.
516          */
515               The timing for this is incorrect.
516             */
517517         if ( m_dma_enabled )
518518         {
519519            int desr_inc = ( m_dcr & 0x0008 ) ? -1 : +1;
r15975r15976
649649            case RCR:      /* raster compare register LSB */
650650               m_rcr = ( m_rcr & 0x0300 ) | data;
651651//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//                  }
657657//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) );
658658               break;
659659
r15975r15976
740740            case RCR:      /* raster compare register MSB */
741741               m_rcr = ( m_rcr & 0x00FF ) | ( ( data & 0x03 ) << 8 );
742742//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//                  }
748748               break;
749749
750750            case BXR:      /* background x-scroll register MSB */
src/emu/video/huc6270.h
r15975r15976
128128   UINT16 m_bat_column;
129129   UINT8 m_bat_tile_row[8];
130130   /* 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    */
133133   UINT16 m_sat[4*64];
134134   int m_sprites_this_line;
135135   int m_sprite_row_index;
src/emu/video/v9938.h
r15975r15976
132132   template<typename _PixelType, int _Width> void mode_graphic5(const pen_t *pens, _PixelType *ln, int line);
133133   template<typename _PixelType, int _Width> void mode_graphic6(const pen_t *pens, _PixelType *ln, int line);
134134   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);
137137   template<typename _PixelType, int _Width> void mode_unknown(const pen_t *pens, _PixelType *ln, int line);
138138   template<typename _PixelType, int _Width> void default_draw_sprite(const pen_t *pens, _PixelType *ln, UINT8 *col);
139139   template<typename _PixelType, int _Width> void graphic5_draw_sprite(const pen_t *pens, _PixelType *ln, UINT8 *col);
src/emu/video/saa5050.c
r15975r15976
215215   for (sy = 0; sy <= saa5050->y; sy++)
216216   {
217217      bool dblhi = false;
218     
218
219219      /* Set start of line state */
220220      saa5050->flags = 0;
221221      saa5050->prvchr = 32;
src/emu/video/huc6260.c
r15975r15976
9898      {
9999      case HUC6260_HSYNC_START:      /* Start of HSync */
100100         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;
108108//
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;
114114//
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//          }
118118         break;
119119
120120      case 0:      /* End of HSync */
src/emu/emuopts.c
r15975r15976
193193   { OPTION_UI_FONT,                                    "default",   OPTION_STRING,     "specify a font to use" },
194194   { OPTION_RAMSIZE ";ram",                             NULL,        OPTION_STRING,     "size of RAM (if supported by driver)" },
195195   { OPTION_CONFIRM_QUIT,                               "0",         OPTION_BOOLEAN,    "display confirm quit screen on exit" },
196   { OPTION_UI_MOUSE,                                  "0",         OPTION_BOOLEAN,    "display ui mouse cursor" },
196   { OPTION_UI_MOUSE,                                  "0",         OPTION_BOOLEAN,    "display ui mouse cursor" },
197197   { NULL }
198198};
199199
src/emu/emuopts.h
r15975r15976
348348   const char *ui_font() const { return value(OPTION_UI_FONT); }
349349   const char *ram_size() const { return value(OPTION_RAMSIZE); }
350350
351   bool confirm_quit() const { return bool_value(OPTION_CONFIRM_QUIT); }   
351   bool confirm_quit() const { return bool_value(OPTION_CONFIRM_QUIT); }
352352   bool ui_mouse() const { return bool_value(OPTION_UI_MOUSE); }
353353
354354   // device-specific options
src/emu/sound/dac.c
r15975r15976
6363
6464
6565//-------------------------------------------------
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
6868//-------------------------------------------------
6969
7070WRITE8_MEMBER( dac_device::write_unsigned8 )
r15975r15976
7474
7575
7676//-------------------------------------------------
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
7979//-------------------------------------------------
8080
8181WRITE8_MEMBER( dac_device::write_signed8 )
src/emu/ui.c
r15975r15976
437437   else
438438      popup_text_end = 0;
439439
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()))
441441   {
442442      INT32 mouse_target_x, mouse_target_y;
443443      int mouse_button;
r15975r15976
915915
916916
917917/*-------------------------------------------------
918    ui_show_mouse - change mouse status
918    ui_show_mouse - change mouse status
919919-------------------------------------------------*/
920920
921921void ui_show_mouse(bool status)
src/emu/romload.c
r15975r15976
14931493
14941494
14951495/*-------------------------------------------------
1496    software_load_warnings_message - return the
1496    software_load_warnings_message - return the
14971497    software load warnings we generated
14981498-------------------------------------------------*/
14991499
src/emu/machine/z80pio.h
r15975r15976
117117   UINT8 port_b_read() { return port_read(PORT_B); }
118118   void port_a_write(UINT8 data) { port_write(PORT_A, data); }
119119   void port_b_write(UINT8 data) { port_write(PORT_B, data); }
120   
120
121121   // standard read/write, with C/D in bit 1, B/A in bit 0
122122   DECLARE_READ8_MEMBER( read );
123123   DECLARE_WRITE8_MEMBER( write );
src/emu/machine/msm6242.c
r15975r15976
252252      case MSM6242_REG_CD:
253253      {
254254         /*
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            */
260260
261261         m_reg[0] = data & 0x0f;
262262
r15975r15976
279279      case MSM6242_REG_CE:
280280      {
281281         /*
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            */
286286
287287         m_reg[1] = data & 0x0f;
288288         if((data & 3) == 0) // MASK & STD = 0
r15975r15976
304304      case MSM6242_REG_CF:
305305      {
306306         /*
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            */
312312
313313         /* the 12/24 mode bit can only be changed when RESET does a 1 -> 0 transition */
314314         if (((data & 0x01) == 0x00) && (m_reg[2] & 0x01))
src/emu/machine/z80ctc.c
r15975r15976
108108
109109//-------------------------------------------------
110110//  trg0-3 - standard write line handlers for each
111//   trigger
111//  trigger
112112//-------------------------------------------------
113113
114114WRITE_LINE_MEMBER( z80ctc_device::trg0 ) { trigger(0, state); }
src/emu/machine/z80ctc.h
r15975r15976
7878   UINT8 read(int ch) { return m_channel[ch].read(); }
7979   void write(int ch, UINT8 data) { m_channel[ch].write(data); }
8080   void trigger(int ch, UINT8 data) { m_channel[ch].trigger(data); }
81   
81
8282   // read/write handlers
8383   DECLARE_READ8_MEMBER( read );
8484   DECLARE_WRITE8_MEMBER( write );
src/emu/machine/z80sio.h
r15975r15976
6666   void set_cts(int ch, int state) { m_channel[ch].set_cts(state); }
6767   void set_dcd(int ch, int state) { m_channel[ch].set_dcd(state); }
6868   void receive_data(int ch, int data) { m_channel[ch].receive_data(data); }
69   
69
7070   // standard read/write, with C/D in bit 1, B/A in bit 0
7171   DECLARE_READ8_MEMBER( read );
7272   DECLARE_WRITE8_MEMBER( write );
src/lib/formats/x1_tap.c
r15975r15976
8383   {
8484      ret = (caslen - 4) * 8; // each byte = 8 samples
8585      cas_size = ret;
86     
86
8787      samplerate = casdata[0x00] | (casdata[0x01] << 8) | (casdata[0x02] << 16) | (casdata[0x03] << 24);
8888      new_format = 0;
8989   }
90   
90
9191   return ret;
9292}
9393
src/lib/formats/g64_dsk.c
r15975r15976
137137{
138138   /*
139139
140      The following is written into the buffer:
140        The following is written into the buffer:
141141
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
144144
145      get_track_size() returns n (size of track data)
145        get_track_size() returns n (size of track data)
146146
147   */
147    */
148148
149149   struct g64dsk_tag *tag = get_tag(floppy);
150150   floperr_t err;
src/lib/util/astring.c
r15975r15976
8181   // swap in the new buffer and free the old one
8282   char *oldbuf = (m_text == m_smallbuf) ? NULL : m_text;
8383   m_text = strcpy(newbuf, m_text);
84   m_len = strlen(m_text);
8485   m_alloclen = alloclen;
8586   delete[] oldbuf;
8687
r15975r15976
133134   m_text = m_smallbuf;
134135   m_alloclen = ARRAY_LENGTH(m_smallbuf);
135136   m_smallbuf[0] = 0;
137   m_len = 0;
136138   return *this;
137139}
138140
r15975r15976
167169   if (count > 0 && m_text != src)
168170      memcpy(m_text, src, count);
169171   m_text[count] = 0;
172   m_len = count;
170173   return *this;
171174}
172175
r15975r15976
178181
179182astring &astring::cpysubstr(const astring &src, int start, int count)
180183{
181   normalize_substr(start, count, strlen(src.m_text));
184   normalize_substr(start, count, src.len());
182185   return cpy(src.m_text + start, count);
183186}
184187
r15975r15976
203206      memmove(m_text + insbefore + count, m_text + insbefore, dstlength - insbefore);
204207   memcpy(m_text + insbefore, src, count);
205208   m_text[dstlength + count] = 0;
209   m_len = dstlength + count;
206210   return *this;
207211}
208212
r15975r15976
214218
215219astring &astring::inssubstr(int insbefore, const astring &src, int start, int count)
216220{
217   normalize_substr(start, count, strlen(src.m_text));
221   normalize_substr(start, count, src.len());
218222   return ins(insbefore, src.m_text + start, count);
219223}
220224
r15975r15976
231235      return *this;
232236
233237   // normalize parameters
234   normalize_substr(start, count, strlen(m_text));
238   normalize_substr(start, count, len());
235239
236240   // move the data and NULL-terminate
237241   if (count > 0 && start > 0)
238242      memmove(m_text, m_text + start, count);
239243   m_text[count] = 0;
244   m_len = count;
240245   return *this;
241246}
242247
r15975r15976
253258      return *this;
254259
255260   // normalize parameters
256   int strlength = strlen(m_text);
261   int strlength = len();
257262   normalize_substr(start, count, strlength);
258263
259264   // move the data and NULL-terminate
260265   if (count > 0)
261266      memmove(m_text + start, m_text + start + count, strlength - (start + count));
262267   m_text[strlength - count] = 0;
268   m_len = strlength - count;
263269   return *this;
264270}
265271
r15975r15976
329335
330336int astring::cmpsubstr(const astring &str2, int start, int count) const
331337{
332   normalize_substr(start, count, strlen(str2.m_text));
338   normalize_substr(start, count, str2.len());
333339   return cmp(str2.m_text + start, count);
334340}
335341
r15975r15976
361367
362368int astring::icmpsubstr(const astring &str2, int start, int count) const
363369{
364   normalize_substr(start, count, strlen(str2.m_text));
370   normalize_substr(start, count, str2.len());
365371   return icmp(str2.m_text + start, count);
366372}
367373
r15975r15976
439445      if (*src != ch)
440446         *dst++ = *src;
441447   *dst = 0;
448   m_len = strlen(m_text);
442449   return *this;
443450}
444451
r15975r15976
492499astring &astring::trimspace()
493500{
494501   // first remove stuff from the end
495   for (char *ptr = m_text + strlen(m_text) - 1; ptr >= m_text && (!(*ptr & 0x80) && isspace(UINT8(*ptr))); ptr--)
502   for (char *ptr = m_text + len() - 1; ptr >= m_text && (!(*ptr & 0x80) && isspace(UINT8(*ptr))); ptr--)
496503      *ptr = 0;
497504
498505   // then count how much to remove from the beginning
r15975r15976
500507   for (ptr = m_text; *ptr != 0 && (!(*ptr & 0x80) && isspace(UINT8(*ptr))); ptr++) ;
501508   if (ptr > m_text)
502509      substr(ptr - m_text);
510   m_len = strlen(m_text);
503511   return *this;
504512}
src/lib/util/astring.h
r15975r15976
184184   char *         m_text;
185185   int            m_alloclen;
186186   char         m_smallbuf[64];
187   int          m_len;
187188};
188189
189190
src/version.c
r15975r15976
3838***************************************************************************/
3939
4040extern const char build_version[];
41const char build_version[] = "0.146u4 ("__DATE__")";
41const char build_version[] = "0.146u5 ("__DATE__")";
src/mess/audio/vboy.c
r15975r15976
11/*
2    vboy.c - Virtual Boy audio emulation
3 
2    vboy.c - Virtual Boy audio emulation
3
44    By Richard Bannister and Gil Pedersen.
55    MESS device adaptation by R. Belmont
66*/
r15975r15976
1313
1414//#define LAME_COMPILER_BUG
1515
16#define SxINT       0x00
16#define SxINT      0x00
1717#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
2222#define SxRAM      0x18
2323
2424#define SxINTb      0x400+SxINT
r15975r15976
3333#define SST0P      0x580
3434
3535static 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,
3737      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,
3939      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,
4141      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,
4343      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,
4545      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,
4747      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,
4949      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,
5151      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,
5353      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,
5555      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,
5757      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,
5959      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,
6161      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,
6363      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,
6565      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,
6767      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,
6969      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,
7171      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,
7373      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,
7575      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,
7777      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,
7979      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,
8181      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,
8383      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,
8585      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,
8787      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,
8989      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,
9191      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,
9393      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,
9595      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,
9797      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,
9999      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,
101101      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,
103103      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,
105105      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,
107107      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,
109109      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,
111111      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,
113113      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,
115115      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,
117117      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,
119119      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,
121121      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,
123123      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,
125125      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,
127127      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,
129129      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,
131131      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,
133133      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,
135135      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,
137137      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,
139139      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,
141141      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,
143143      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,
145145      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,
147147      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,
149149      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,
151151      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,
153153      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,
155155      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,
157157      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,
159159      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,
161161      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,
163163      0x01f0, 0x020f, 0x022e, 0x024d, 0x026c, 0x028b, 0x02aa, 0x02c9, 0x02e8, 0x0307, 0x0326, 0x0345, 0x0364, 0x0383, 0x03a2, 0x03c1}
164164};
165165
r15975r15976
209209
210210    // create the stream
211211   m_stream = machine().sound().stream_alloc(*this, 0, 2, AUDIO_FREQ, this);
212   
212
213213   for (i=0; i<2048; i++)
214214      waveFreq2LenTbl[i] = AUDIO_FREQ / (5000000.0/(float)((2048-i) * 32));
215215   for (i=0; i<32; i++)
216216      waveTimer2LenTbl[i] = ((0.00384*(float)(i+1)) * (float)AUDIO_FREQ);
217217   for (i=0; i<8; i++)
218218      waveEnv2LenTbl[i] = ((0.01536*(float)(i+1)) * (float)AUDIO_FREQ);
219   
219
220220   for (i = 0; i < 5; i++)
221221      memset(&snd_channel[i], 0, sizeof(s_snd_channel));
222222
r15975r15976
236236   m_stream->update();
237237
238238   int i;
239   
239
240240   for (i=0; i<4; i++)
241241      snd_channel[i].playing = false;
242242}
r15975r15976
264264   outR = outputs[1];
265265
266266   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
271271   for (channel=0; channel<5; channel++)
272272   {
273273      float size;
274274      int k = 0, waveAddr;
275     
275
276276      i = channel * 0x40;
277277      snd_channel[channel].sample_len = waveFreq2LenTbl[((mgetb(m_aram+SxFQHb+i) & 0x7) << 8) | mgetb(m_aram+SxFQLb+i)];
278278      waveAddr = (mgetb(m_aram + SxRAMb + i) & 0x3) << 7;
279     
279
280280      size = (float)snd_channel[channel].sample_len / 32.0;
281281      for (j=0; j<32;)
282282      {
283283         INT8 byte = mgetb(m_aram + waveAddr + (j++ << 2)) & 0x3f;
284//         INT8 nbyte = mgetb(m_aram + waveAddr + (j << 2)) & 0x3f;
284//          INT8 nbyte = mgetb(m_aram + waveAddr + (j << 2)) & 0x3f;
285285         int end = (int)(((float)j)*size);
286286         float val, add;
287         
287
288288         val = (float)byte;
289289         add = /*(nbyte-byte)/(end-k)*/ 0.0;   // no interpolation
290         
290
291291         for (; k<end; k++, val+=add)
292292         {
293293#ifdef LAME_COMPILER_BUG
r15975r15976
298298         }
299299      }
300300   }
301   
301
302302   for (j=0; j<len; j++)
303303   {
304304      INT32 note_left = 0;
305305      INT32 note_right = 0;
306     
306
307307      // process first 4 sound channels
308308      for (i=0; i</*5*/5; i++)
309309      {
310310         UINT8 outLeft, outRight;
311311         const INT16 *outTblPtr;
312//         UINT8 env0, env1;
312//          UINT8 env0, env1;
313313         s_snd_channel *channel = &snd_channel[i];
314     
314
315315         if (!channel->playing)
316316            continue;
317         
317
318318         outLeft = outLvlTbl[channel->volLeft][channel->envelope];
319319         outRight = outLvlTbl[channel->volRight][channel->envelope];
320//         env1 = ((UINT8)mgetb(m_aram+SxEV1b+i*0x40));
320//          env1 = ((UINT8)mgetb(m_aram+SxEV1b+i*0x40));
321321         if (channel->env1 & 0x01)
322322         {
323323            channel->env_time++;
324           
325//            env0 = ((UINT8)mgetb(m_aram+SxEV0b+i*0x40));
324
325//              env0 = ((UINT8)mgetb(m_aram+SxEV0b+i*0x40));
326326            if (channel->env_time >= channel->env_steptime /*waveEnv2LenTbl[env0 & 0x7]*/)
327327            {
328328               // it's time for a step
r15975r15976
349349               }
350350            }
351351         }
352         
352
353353         outTblPtr = outTbl[channel->sample[channel->offset]];
354354         if (outLeft)  note_left  += outTblPtr[outLeft ];
355355         if (outRight) note_right += outTblPtr[outRight];
356356         channel->offset++;
357         
357
358358         if (channel->offset >= channel->sample_len)
359359            channel->offset = 0;
360         
360
361361         if (channel->time > 0)
362362         {
363363            channel->time--;
r15975r15976
365365               channel->playing = false;
366366         }
367367      }
368     
369     
368
369
370370      // scale to 16 bits
371371      note_left = (note_left << 5) | ((note_left >> 6) & 0x1f);
372372      note_right = (note_right << 5) | ((note_right >> 6) & 0x1f);
r15975r15976
398398//    int waveAddr;
399399   int volReg, intervalReg;
400400   int channel, ouroffs;
401   
401
402402   mputb((UINT8 *)m_aram+offset, data);
403403   if (offset < 0x400)
404404      return;
405   
405
406406   channel = (offset-0x400) >> 6;
407407   ouroffs = offset & 0x3f;
408   
408
409409   ///process_sound(cpu.vcount);
410   
410
411411   if (channel == 6 && ouroffs == 0)
412412   {
413413      if (mgetb(m_aram+SST0P) & 0x1)
r15975r15976
415415            snd_channel[i].playing = 0;
416416      return;
417417   }
418   
418
419419   // Extract frequencies and build the wave for the first 4 sound sources
420420   i = channel * 0x40;
421421   switch (ouroffs)
r15975r15976
438438            // find out if the sound is playing
439439            intervalReg = mgetb(m_aram + SxINTb + i);   // 6-4-6 - Sound Interval
440440            volReg = mgetb(m_aram + SxLRVb + i);      // 6-4-4 - L/R output level setting
441           
441
442442            if (((intervalReg & 0x80) == 0) || (volReg == 0))
443443            {
444444               snd_channel[channel].playing = false;
445445               return;
446446            }
447447            snd_channel[channel].playing = true;
448           
448
449449            // 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
452452            // 6-4-15 - Frequency comes from here
453453            freq = ((mgetb(m_aram+SxFQHb+i) & 0x7) << 8) | mgetb(m_aram+SxFQLb+i);
454           
454
455455            env0 = mgetb(m_aram+SxEV0b+i); env1 = mgetb(m_aram+SxEV1b+i);
456456            snd_channel[channel].env0 = env0;
457457            snd_channel[channel].env1 = env1;
r15975r15976
459459            snd_channel[channel].volRight = ((UINT8)volReg) & 0xf;
460460            snd_channel[channel].env_steptime = (env1 & 0x1) ? waveEnv2LenTbl[env0 & 0x7] : 0;
461461            snd_channel[channel].sample_len = waveFreq2LenTbl[freq];
462           
462
463463            snd_channel[channel].offset = 0;
464464            snd_channel[channel].time = (intervalReg & 0x20) ? waveTimer2LenTbl[intervalReg & 0x1f] : 0;
465465            snd_channel[channel].envelope = ((UINT8)mgetb(m_aram+SxEV0b+i)) >> 4;
r15975r15976
469469         {
470470            intervalReg = mgetb(m_aram + SxINTb + i);   // 6-4-6 - Sound Interval
471471            volReg = mgetb(m_aram + SxLRVb + i);      // 6-4-4 - L/R output level setting
472           
472
473473            if (((intervalReg & 0x80) == 0) || (volReg == 0))
474474            {
475//               snd_channel[channel].playing = false;
475//                  snd_channel[channel].playing = false;
476476               return;
477477            }
478//            Debugger();   // uses white noise
479//            snd_channel[channel].playing = true;
478//              Debugger(); // uses white noise
479//              snd_channel[channel].playing = true;
480480         }
481481         break;
482     
482
483483      case SxEV0:
484484         if (snd_channel[channel].playing)
485485            snd_channel[channel].envelope = ((UINT8)mgetb(m_aram+SxEV0b+i)) >> 4;
src/mess/audio/mos7360.h
r15975r15976
200200   m_noisesize,        /* number of samples */
201201   m_noisepos,         /* pos of tone */
202202   m_noisesamples;     /* count of samples to give out per tone */
203   
203
204204   int m_variant;
205205};
206206
src/mess/audio/vboy.h
r15975r15976
11/*
2    vboy.h - Virtual Boy audio emulation
3 
2    vboy.h - Virtual Boy audio emulation
3
44    By Richard Bannister and Gil Pedersen.
55    MESS device adaptation by R. Belmont
66*/
r15975r15976
4242   UINT8      volRight;         // Right output volume
4343   UINT8      sample[580];      // sample to play
4444   int         sample_len;         // length of sample
45   
45
4646   // values that change, as the sample is played
4747   int         offset;            // current offset in sample
4848   int         time;            // the duration that this sample is to be played
src/mess/machine/vp620.c
r15975r15976
9999int vp620_device::vip_ef3_r()
100100{
101101   int state = m_keystb;
102   
102
103103   m_keystb = CLEAR_LINE;
104   
104
105105   return state;
106106}
src/mess/machine/c1581.c
r15975r15976
441441void base_c1581_device::device_reset()
442442{
443443    m_maincpu->reset();
444   
445    m_cia->reset();   
446   
444
445    m_cia->reset();
446
447447   wd17xx_mr_w(m_fdc, 0);
448448   wd17xx_mr_w(m_fdc, 1);
449449
src/mess/machine/abc_xebec.c
r15975r15976
11/**********************************************************************
22
3   Unknown Xebec Winchester controller card emulation
3    Unknown Xebec Winchester controller card emulation
44
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.
77
88*********************************************************************/
99
src/mess/machine/abc_xebec.h
r15975r15976
11/**********************************************************************
22
3   Unknown Xebec Winchester controller card emulation
3    Unknown Xebec Winchester controller card emulation
44
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.
77
88*********************************************************************/
99
src/mess/machine/c2031.c
r15975r15976
332332WRITE_LINE_MEMBER( c2031_device::byte_w )
333333{
334334   m_maincpu->set_input_line(M6502_SET_OVERFLOW, state);
335   
335
336336   m_via1->write_ca1(state);
337337}
338338
r15975r15976
449449void c2031_device::device_reset()
450450{
451451    m_maincpu->reset();
452   
452
453453    m_via0->reset();
454454    m_via1->reset();
455455}
src/mess/machine/c2040.c
r15975r15976
16531653{
16541654    m_maincpu->reset();
16551655
1656      // toggle M6502 SO
1656   // toggle M6502 SO
16571657   m_maincpu->set_input_line(M6502_SET_OVERFLOW, ASSERT_LINE);
16581658   m_maincpu->set_input_line(M6502_SET_OVERFLOW, CLEAR_LINE);
16591659
16601660    m_fdccpu->reset();
1661   
1661
16621662    m_riot0->reset();
16631663    m_riot1->reset();
16641664    m_miot->reset();
src/mess/machine/64h156.c
r15975r15976
1313
1414    http://staff.washington.edu/rrcc/uwweb/1541early/1540-2.GIF
1515
16   - model disk rotation for proper track alignment
16    - model disk rotation for proper track alignment
1717    - write circuitry
1818    - cycle exact M6502
1919    - cycle exact VIA
2020    - refactor to use modern floppy system
2121
2222    - get these running and we're golden
23       - Quiwi (speed change within track)
23        - Quiwi (speed change within track)
2424        - Defender of the Crown (V-MAX! v2, density checks)
2525        - Test Drive / Cabal (HLS, sub-cycle jitter)
2626        - Galaxian (?, needs 100% accurate VIA)
r15975r15976
119119
120120
121121//-------------------------------------------------
122//  update_cycles_until_next_bit -
122//  update_cycles_until_next_bit -
123123//-------------------------------------------------
124124
125125inline void c64h156_device::update_cycles_until_next_bit()
r15975r15976
169169            if (LOG) logerror("PHANTOM BIT SYNC 1 after %u cycles\n", m_zero_count);
170170
171171            m_bit_sync = 1;
172   
172
173173            m_zero_count = 0;
174174            m_cycles_until_random_flux = (rand() % 367) + 33;
175175         }
r15975r15976
180180
181181         m_shift <<= 1;
182182         m_shift |= m_bit_sync;
183         
183
184184         m_bit_pos--;
185185         m_bit_count++;
186186
r15975r15976
248248
249249         if (LOG) logerror("++");
250250      }
251      else
251      else
252252      {
253253         if (LOG) logerror("  ");
254254      }
r15975r15976
256256
257257   m_last_bit_sync = m_bit_sync;
258258   m_ue7_tc = ue7_tc;
259   
259
260260   int uf4_qa = BIT(m_uf4, 0);
261261   int uf4_qb = BIT(m_uf4, 1);
262262   int uf4_qc = BIT(m_uf4, 2);
r15975r15976
278278
279279      if (LOG) logerror("<<");
280280   }
281   else
281   else
282282   {
283283      if (LOG) logerror("  ");
284284   }
r15975r15976
288288   // UE3
289289
290290   int block_sync = !(m_oe && (m_ud2 == 0xff) && m_u4a && m_u4b);
291   
291
292292   if (LOG) logerror("SYNC %u, ", block_sync);
293293
294294   if (!block_sync)
r15975r15976
354354      }
355355   }
356356
357   // prepare for next cycle   
358   
357   // prepare for next cycle
358
359359   if (m_block_sync != block_sync)
360360   {
361361      m_block_sync = block_sync;
362362      m_out_sync_func(m_block_sync);
363363   }
364   
364
365365   if (m_byte_sync != byte_sync)
366366   {
367367      m_byte_sync = byte_sync;
r15975r15976
595595WRITE_LINE_MEMBER( c64h156_device::oe_w )
596596{
597597   if (LOG) logerror("OE %u\n", state);
598   
598
599599   m_oe = state;
600600}
601601
src/mess/machine/vb_timeshare.h
r15975r15976
2525// ======================> videobrain_timeshare_cartridge_device
2626
2727class videobrain_timeshare_cartridge_device : public device_t,
28                                     public device_videobrain_expansion_card_interface
28                                   public device_videobrain_expansion_card_interface
2929{
3030public:
3131   // construction/destruction
src/mess/machine/rx01.c
r15975r15976
8585
8686void rx01_device::device_reset()
8787{
88   for(int i=0;i<2;i++)
88   for(int i=0;i<2;i++)
8989   {
9090      floppy_mon_w(m_image[i], 0); // turn it on
9191      floppy_drive_set_controller(m_image[i], this);
r15975r15976
103103      case 0: return status_read(); break;
104104      default: return data_read(); break;
105105   }
106   
106
107107}
108108
109109
r15975r15976
124124   printf("command_write %04x\n",data);
125125   m_unit = BIT(data,4);
126126   m_interrupt = BIT(data,6);
127   
127
128128   floppy_drive_set_ready_state(m_image[m_unit], 1,0);
129   
130   
129
130
131131   if (BIT(data,14)) // Initialize
132132   {
133133      printf("initialize\n");
134134      m_state = RX01_INIT;
135   }   
135   }
136136   else if (BIT(data,1)) // If GO bit is selected
137137   {
138138      m_rxcs &= ~(1<<5); // Clear done bit
r15975r15976
142142               m_rxcs |= (1<<7); // Set TR Bit
143143               m_state = RX01_FILL;
144144               break;
145         case 1: // Empty Buffer               
145         case 1: // Empty Buffer
146146               m_state = RX01_EMPTY;
147147               break;
148148         case 2: // Write Sector
r15975r15976
160160               break;
161161         case 7: // Read Error Register
162162               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;
165165               break;
166166      }
167167   }
r15975r15976
173173   //printf("status_read %04x\n",m_rxcs);
174174   return m_rxcs;
175175}
176   
176
177177void rx01_device::data_write(UINT16 data)
178178{
179179   printf("data_write %04x\n",data);
r15975r15976
183183}
184184
185185UINT16 rx01_device::data_read()
186{   
186{
187187   if (m_state==RX01_EMPTY && BIT(m_rxcs,7)) m_rxcs &= (1<<7); // clear TR bit;
188188   printf("data_read %04x\n",m_rxdb);
189189   return m_rxdb;
r15975r15976
197197      case RX01_FILL :
198198                  m_buffer[m_buf_pos] = m_rxdb & 0xff;
199199                  m_buf_pos++;
200                  if (m_buf_pos<128)
201                  {
200                  if (m_buf_pos<128)
201                  {
202202                     m_rxcs |= (1<<7); // Set TR Bit
203203                  } else {
204204                     //finished
205205                  }
206206                  break;
207207      case RX01_EMPTY :
208                  if (m_buf_pos>=128)
209                  {
208                  if (m_buf_pos>=128)
209                  {
210210                     //finished
211211                  } else {
212212                     m_buffer[m_buf_pos] = m_rxdb & 0xff;
r15975r15976
217217      case RX01_SET_SECTOR:
218218                  m_rxsa = m_rxdb & 0x1f;
219219                  m_rxcs |= (1<<7); // Set TR Bit
220                  m_state = RX01_SET_TRACK;     
220                  m_state = RX01_SET_TRACK;
221221                  break;
222222      case RX01_SET_TRACK:
223223                  m_rxta = m_rxdb & 0x7f;
224224                  m_rxcs |= (1<<7); // Set TR Bit
225                  m_state = RX01_TRANSFER;     
225                  m_state = RX01_TRANSFER;
226226                  position_head();
227227                  break;
228228      case RX01_TRANSFER:
229                  break;                 
229                  break;
230230      case RX01_COMPLETE:
231231                  break;
232232      case RX01_INIT:
r15975r15976
240240{
241241   int cur_track = floppy_drive_get_current_track(m_image[m_unit]);
242242   int dir = (cur_track < m_rxta) ? +1 : -1;
243   
243
244244   while (m_rxta != cur_track)
245245   {
246246      cur_track += dir;
247247
248248      floppy_drive_seek(m_image[m_unit], dir);
249   }   
249   }
250250}
251251
252252void rx01_device::read_sector()
src/mess/machine/rx01.h
r15975r15976
11/**********************************************************************
22
3   DEC RX01 floppy drive controller
3    DEC RX01 floppy drive controller
44
55**********************************************************************/
66
r15975r15976
3232   DECLARE_WRITE16_MEMBER( write );
3333
3434   // optional information overrides
35   virtual machine_config_constructor device_mconfig_additions() const;   
35   virtual machine_config_constructor device_mconfig_additions() const;
3636protected:
3737    // device-level overrides
3838    virtual void device_start();
3939   virtual void device_reset();
40   
40
4141   void command_write(UINT16 data);
4242   UINT16 status_read();
43   
43
4444   void data_write(UINT16 data);
4545   UINT16 data_read();
46   
47   void service_command();   
46
47   void service_command();
4848   static TIMER_CALLBACK( command_execution_callback ) { reinterpret_cast<rx01_device *>(ptr)->service_command(); }
49   
49
5050   void position_head();
5151   void read_sector();
5252   void write_sector(int ddam);
r15975r15976
6060      RX01_COMPLETE,
6161      RX01_INIT
6262   };
63   
63
6464   device_t *m_image[2];
6565   UINT8 m_buffer[128];
6666   int m_buf_pos;
67   
67
6868   UINT16 m_rxcs; // Command and Status Register
6969   UINT16 m_rxdb; // Data Buffer Register
7070   UINT16 m_rxta; // RX Track Address
7171   UINT16 m_rxsa; // RX Sector Address
72   UINT16 m_rxes; // RX Error and Status
72   UINT16 m_rxes; // RX Error and Status
7373   int m_unit;
7474   int m_interrupt;
7575   rx01_state m_state;
src/mess/machine/dec_lk201.c
r15975r15976
1/*
2    DEC LK-201 keyboard
1/*
2    DEC LK-201 keyboard
33    Emulation by R. Belmont
4
4
55    This is currently the 6805 version; there's also an 8048 version.
66*/
77
r15975r15976
2323
2424ROM_START( lk201 )
2525   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) )
2727ROM_END
2828
2929//-------------------------------------------------
r15975r15976
255255}
256256
257257/*
258
258
259259SCI 01 to 4 (PC=24b)        firmware ID
260260SCI 00 to 4 (PC=cb2)        hardware jumpers ID (port C & 0x30)
261261SCI 00 to 4 (PC=cb2)        self-test result OK
262262SCI 00 to 4 (PC=cb2)        keycode if there was a self-test error
263
263
264264*/
src/mess/machine/lux21046.c
r15975r15976
7676
7777/*
7878
79   TODO:
79    TODO:
8080
81   - 8" floppy is not supported, but there are no dumps available either
81    - 8" floppy is not supported, but there are no dumps available either
8282
8383*/
8484
src/mess/machine/abc_turbo.h
r15975r15976
2929// ======================> turbo_kontroller_device
3030
3131class turbo_kontroller_device :  public device_t,
32                            public device_abcbus_card_interface
32                         public device_abcbus_card_interface
3333{
3434public:
3535    // construction/destruction
src/mess/machine/plus4_sid.c
r15975r15976
22
33    Commodore Plus/4 SID cartridge emulation
44
5   http://solder.dyndns.info/cgi-bin/showdir.pl?dir=files/commodore/plus4/hardware/SID-Card
5    http://solder.dyndns.info/cgi-bin/showdir.pl?dir=files/commodore/plus4/hardware/SID-Card
66
77    Copyright MESS Team.
88    Visit http://mamedev.org for licensing and usage restrictions.
r15975r15976
1111
1212/*
1313
14   TODO:
14    TODO:
1515
16   - GAL16V8 dump
17   - get SID clock from expansion port
16    - GAL16V8 dump
17    - get SID clock from expansion port
1818
1919*/
2020
r15975r15976
113113   device_t(mconfig, PLUS4_SID, "Plus/4 SID cartridge", tag, owner, clock),
114114   device_plus4_expansion_card_interface(mconfig, *this),
115115   m_sid(*this, MOS8580_TAG),
116     m_joy(*this, CONTROL1_TAG)
116   m_joy(*this, CONTROL1_TAG)
117117{
118118}
119119
src/mess/machine/plus4_sid.h
r15975r15976
2929// ======================> plus4_sid_cartridge_device
3030
3131class plus4_sid_cartridge_device : public device_t,
32                                public device_plus4_expansion_card_interface
32                              public device_plus4_expansion_card_interface
3333{
3434public:
3535   // construction/destruction
r15975r15976
3838   // optional information overrides
3939   virtual const rom_entry *device_rom_region() const;
4040   virtual machine_config_constructor device_mconfig_additions() const;
41   
41
4242protected:
4343   // device-level overrides
4444   virtual void device_config_complete() { m_shortname = "plus4_sid"; }
src/mess/machine/vp570.c
r15975r15976
114114      {
115115         m_ram[offset & 0xfff] = data;
116116      }
117   }   
117   }
118118}
src/mess/machine/plus4_std.h
r15975r15976
2626// ======================> plus4_standard_cartridge_device
2727
2828class plus4_standard_cartridge_device : public device_t,
29                                public device_plus4_expansion_card_interface
29                              public device_plus4_expansion_card_interface
3030{
3131public:
3232   // construction/destruction
src/mess/machine/abc77.c
r15975r15976
319319   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("PF6") PORT_CODE(KEYCODE_F6) PORT_CHAR(UCHAR_MAMEKEY(F6))
320320   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("PF7") PORT_CODE(KEYCODE_F7) PORT_CHAR(UCHAR_MAMEKEY(F7))
321321   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("PF8") PORT_CODE(KEYCODE_F8) PORT_CHAR(UCHAR_MAMEKEY(F8))
322   
322
323323   PORT_START("DSW")
324324   PORT_DIPNAME( 0x01, 0x01, "Keyboard Program" )
325325   PORT_DIPSETTING(    0x00, "Internal (8048)" )
src/mess/machine/vb_money_minder.c
r15975r15976
5959   {
6060      data = m_ram[offset & m_ram_mask];
6161   }
62   
62
6363   return data;
6464}
6565
src/mess/machine/cuda.c
r15975r15976
5858   ROM_REGION(0x4400, CUDA_CPU_TAG, 0)
5959    ROM_LOAD( "341s0060.bin", 0x1100, 0x1100, CRC(0f5e7b4a) SHA1(972b3778146d9787b18c3a9874d505cf606b3e15) )
6060    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) )
6262ROM_END
6363
6464//-------------------------------------------------
src/mess/machine/vb_money_minder.h
r15975r15976
2525// ======================> videobrain_money_minder_cartridge_device
2626
2727class videobrain_money_minder_cartridge_device : public device_t,
28                                       public device_videobrain_expansion_card_interface
28                                     public device_videobrain_expansion_card_interface
2929{
3030public:
3131   // construction/destruction
src/mess/machine/c1541.c
r15975r15976
965965void base_c1541_device::device_reset()
966966{
967967    m_maincpu->reset();
968   
968
969969    m_via0->reset();
970970    m_via1->reset();
971971}
src/mess/machine/c1541.h
r15975r15976
4040// ======================> base_c1541_device
4141
4242class 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
4545{
4646public:
4747    // construction/destruction
src/mess/machine/vp575.c
r15975r15976
135135   {
136136      m_int[i] = CLEAR_LINE;
137137      m_dma_out[i] = CLEAR_LINE;
138      m_dma_in[i] = CLEAR_LINE;     
138      m_dma_in[i] = CLEAR_LINE;
139139   }
140140}
141141
src/mess/machine/vb_std.h
r15975r15976
2525// ======================> videobrain_standard_cartridge_device
2626
2727class videobrain_standard_cartridge_device : public device_t,
28                                    public device_videobrain_expansion_card_interface
28                                  public device_videobrain_expansion_card_interface
2929{
3030public:
3131   // construction/destruction
src/mess/machine/v1050kb.c
r15975r15976
11/**********************************************************************
22 
3   Visual 1050 keyboard emulation
3    Visual 1050 keyboard emulation
44 
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.
77 
88*********************************************************************/
99 
r15975r15976
400400{
401401   /*
402402 
403      bit     description
403        bit     description
404404 
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
413413 
414   */
414    */
415415 
416416   // led output
417417   output_set_led_value(0, BIT(data, 5));
src/mess/machine/vidbrain_exp.h
r15975r15976
8484class device_videobrain_expansion_card_interface;
8585
8686class 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
9090{
9191public:
9292   // construction/destruction
src/mess/machine/abc_hdc.c
r15975r15976
11/**********************************************************************
22
3   Luxor ABC 850 Winchester controller card emulation
3    Luxor ABC 850 Winchester controller card emulation
44
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.
77
88*********************************************************************/
99
src/mess/machine/abc_hdc.h
r15975r15976
11/**********************************************************************
22
3   Luxor ABC 850 Winchester controller card emulation
3    Luxor ABC 850 Winchester controller card emulation
44
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.
77
88*********************************************************************/
99
src/mess/machine/c1571.c
r15975r15976
518518WRITE_LINE_MEMBER( base_c1571_device::byte_w )
519519{
520520   m_maincpu->set_input_line(M6502_SET_OVERFLOW, state);
521   
521
522522   m_via1->write_ca1(state);
523523}
524524
r15975r15976
780780void base_c1571_device::device_reset()
781781{
782782    m_maincpu->reset();
783   
783
784784    m_via0->reset();
785    m_via1->reset();   
786    m_cia->reset();   
787   
785    m_via1->reset();
786    m_cia->reset();
787
788788   wd17xx_mr_w(m_fdc, 0);
789789   wd17xx_mr_w(m_fdc, 1);
790790
src/mess/includes/abc80.h
r15975r15976
114114   DECLARE_READ8_MEMBER( pio_pa_r );
115115   DECLARE_READ8_MEMBER( pio_pb_r );
116116   DECLARE_WRITE8_MEMBER( pio_pb_w );
117   
117
118118   DECLARE_WRITE_LINE_MEMBER( keydown_w );
119119
120120   // keyboard state
src/mess/includes/plus4.h
r15975r15976
7979   DECLARE_READ8_MEMBER( cpu_r );
8080   DECLARE_READ8_MEMBER( c16_cpu_r );
8181   DECLARE_WRITE8_MEMBER( cpu_w );
82   
82
8383   DECLARE_WRITE_LINE_MEMBER( ted_irq_w );
8484   DECLARE_READ8_MEMBER( ted_ram_r );
8585   DECLARE_READ8_MEMBER( ted_rom_r );
src/mess/includes/osi.h
r15975r15976
7878
7979   virtual void machine_start();
8080
81   DECLARE_WRITE8_MEMBER( osi630_ctrl_w );   
81   DECLARE_WRITE8_MEMBER( osi630_ctrl_w );
8282   DECLARE_WRITE8_MEMBER( osi630_sound_w );
8383   DECLARE_DRIVER_INIT(c1p);
8484};
src/mess/includes/c64_legacy.h
r15975r15976
8585   UINT8 *m_io_ram_r_ptr;
8686   c64_cart_t m_cart;
8787   int m_nmilevel;
88   
88
8989   DECLARE_DRIVER_INIT( c64 );
9090   DECLARE_DRIVER_INIT( c64pal );
9191   DECLARE_DRIVER_INIT( ultimax );
9292   DECLARE_DRIVER_INIT( c64gs );
93   DECLARE_DRIVER_INIT( sx64 );   
93   DECLARE_DRIVER_INIT( sx64 );
9494};
9595 
9696 
src/mess/includes/abc80x.h
r15975r15976
9696   optional_device<device_t> m_discrete;
9797   optional_device<cassette_image_device> m_cassette;
9898   required_device<ram_device> m_ram;
99   
99
100100   enum
101101   {
102102      TIMER_ID_CTC,
src/mess/video/abc800.c
r15975r15976
111111               if (black || opaque)
112112               {
113113                  color += 128;
114   
114
115115                  bitmap.pix16(y, x) = color;
116116                  bitmap.pix16(y, x + 1) = color;
117117
src/mess/video/hd44780.h
r15975r15976
1717//**************************************************************************
1818//  TYPE DEFINITIONS
1919//**************************************************************************
20   
20
2121#define HD44780_INTERFACE(name) \
2222   const hd44780_interface (name) =
2323
src/mess/video/abc806.c
r15975r15976
66
77/*
88
9   TODO:
9    TODO:
1010
11   - flashing
12   - double height
13   - underline
11    - flashing
12    - double height
13    - underline
1414
1515*/
1616
src/mess/drivers/rainbow.c
r15975r15976
33    DEC Rainbow 100
44
55    Driver-in-progress by R. Belmont and Miodrag Milanovic
6 
7 
6
7
88    Meaning of Diagnostics LEDs (from PC100ESV1.PDF found, e.g.,
99    on ftp://ftp.update.uu.se/pub/rainbow/doc/rainbow-docs/
1010
1111    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
1616    --------------------------------------------------------------
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
5353
5454    --------------------------------------------------------------
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
6060****************************************************************************/
6161
6262#include "emu.h"
src/mess/drivers/pdp1.c
r15975r15976
19981998***************************************************************************/
19991999
20002000/*    YEAR  NAME      PARENT    COMPAT  MACHINE   INPUT     INIT    COMPANY FULLNAME */
2001COMP( 1961, pdp1,     0,      0,      pdp1,     pdp1, driver_device,    0,      "Digital Equipment Corporation",  "PDP-1" , GAME_NO_SOUND_HW | GAME_NOT_WORKING)
2001COMP( 1961, pdp1,     0,      0,      pdp1,     pdp1, driver_device,   0,      "Digital Equipment Corporation",  "PDP-1" , GAME_NO_SOUND_HW | GAME_NOT_WORKING)
src/mess/drivers/tmc600.c
r15975r15976
329329/* System Drivers */
330330//    YEAR  NAME      PARENT    COMPAT   MACHINE   INPUT     INIT    COMPANY        FULLNAME
331331//COMP( 1982, tmc600s1, 0,  0,       tmc600,   tmc600, driver_device,   0,        "Telercas Oy", "Telmac TMC-600 (Sarja I)",  GAME_NOT_WORKING )
332COMP( 1982, tmc600s2, 0,   0,        tmc600,   tmc600, driver_device,   0,       "Telercas Oy", "Telmac TMC-600 (Sarja II)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
332COMP( 1982, tmc600s2, 0,   0,        tmc600,   tmc600, driver_device,   0,      "Telercas Oy", "Telmac TMC-600 (Sarja II)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
src/mess/drivers/smc777.c
r15975r15976
11201120/* Driver */
11211121
11221122/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY   FULLNAME       FLAGS */
1123COMP( 1983, smc777,  0,       0,   smc777,    smc777, driver_device,     0,  "Sony",   "SMC-777",      GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND)
1123COMP( 1983, smc777,  0,       0,   smc777,    smc777, driver_device,    0,  "Sony",   "SMC-777",      GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND)
11241124
src/mess/drivers/abc80.c
r15975r15976
6363
6464    TODO:
6565
66   - cassette interrupt routine samples the latch too soon
66    - cassette interrupt routine samples the latch too soon
6767    - proper keyboard controller emulation
6868    - MyAB 80-column card
6969    - GeJo 80-column card
r15975r15976
545545   // data carrier detect
546546   data |= m_rs232->dcd_r() << 2;
547547
548   // cassette data
548   // cassette data
549549   data |= m_tape_in_latch << 7;
550   
550
551551   //logerror("read tape latch %u\n", m_tape_in_latch);
552552
553553   return data;
r15975r15976
597597      //logerror("clear tape in latch\n");
598598
599599      m_tape_in_latch = 1;
600   
600
601601      m_pio->port_b_write(m_tape_in_latch << 7);
602602   }
603603};
r15975r15976
714714         {
715715            //logerror("-------- set tape in latch\n");
716716            m_tape_in_latch = 0;
717         
717
718718            m_pio->port_b_write(m_tape_in_latch << 7);
719719         }
720720
src/mess/drivers/m20.c
r15975r15976
9191   int m_kbrecv_bitcount;
9292   UINT16 m_kbrecv_data;
9393   UINT8 m_port21;
94public:   
94public:
9595   DECLARE_DRIVER_INIT(m20);
9696};
9797
src/mess/drivers/plus4.c
r15975r15976
11/*
22
3   TODO:
3    TODO:
44
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)
1313
1414*/
1515
r15975r15976
7676void 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)
7777{
7878   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/*   UINT8 data = m_pla->read(i);
79/*  UINT8 data = m_pla->read(i);
8080
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);*/
8989
9090   // 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
9191
r15975r15976
108108   #define A10   I(14)
109109   #define RAS_   I(15)
110110
111   /* unused_   0 when 0111 011x 1001 011x */
111   /* unused_  0 when 0111 011x 1001 011x */
112112   #define F0   RAS_ || !A10 || !A11 || !A13 || A9 || !A8 || !A14 ||   \
113113         !A12 || A7 || A6 || !A5 || A4 || !A15 || !PHI0
114   /* PHI2      1 when 0xxx xxxx xxxx xx11 */
114   /* PHI2     1 when 0xxx xxxx xxxx xx11 */
115115   #define F1   !RAS_ && PHI0 && I0_F7
116   /* USER_   0 when 0111 011x 1000 1111 */
116   /* USER_    0 when 0111 011x 1000 1111 */
117117   #define F2   RAS_ || !A10 || !A11 || !A13 || A9 || !A8 || !A14 ||    \
118118         !A12 || A7 || A6 || A5 || !A4 || !A15 || !PHI0 || !I0_F7
119   /* 6551_   0 when x111 011x 1000 011x */
119   /* 6551_    0 when x111 011x 1000 011x */
120120   #define F3   !A10 || !A11 || !A13 || A9 || !A8 || !A14 ||   \
121121         !A12 || A7 || A6 || A5 || A4 || !A15 || !PHI0
122   /* ADDR_CLK   0 when 1111 011x 1110 1111 */
122   /* ADDR_CLK 0 when 1111 011x 1110 1111 */
123123   #define F4   RAS_ || !A10 || !A11 || !A13 || A9 || !A8 || !A14 ||   \
124124         !A12 || !A7 || !A6 || A5 || !A4 || !A15 || !PHI0 || !I0_F7
125   /* KEYPORT_   0 when 0111 011x 1001 1111 */
125   /* KEYPORT_ 0 when 0111 011x 1001 1111 */
126126   #define F5   RAS_ || !A10 || !A11 || !A13 || A9 || !A8 || !A14 ||   \
127127         !A12 || A7 || A6 || !A5 || !A4 || !A15 || !PHI0 || !I0_F7
128   /* KERNAL_   1 when x111 001x 1xxx x1xx */
128   /* KERNAL_  1 when x111 001x 1xxx x1xx */
129129   #define F6   A10 && A11 && A13 && !A9 && !A8 && A14 &&   \
130130         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 */
133133   #define F7   MUX || (F1)
134134
135135   *scs = F0;
r15975r15976
291291   int c1l = 1, c1h = 1, c2l = 1, c2h = 1;
292292
293293   bankswitch(offset, phi0, mux, ras, &scs, &phi2, &user, &_6551, &addr_clk, &keyport, &kernal, &cs0, &cs1);
294   
294
295295   //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);
296296
297297   if (!scs && m_t6721)
r15975r15976
321321   else if (offset == 0xff3e)
322322   {
323323      m_rom_en = 1;
324     
324
325325      m_ted->rom_switch_w(m_rom_en);
326326   }
327327   else if (offset == 0xff3f)
r15975r15976
438438READ8_MEMBER( plus4_state::cpu_r )
439439{
440440   /*
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   */
454441
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
455455   UINT8 data = 0xff;
456456   UINT8 c16_port7501 = m6510_get_port(m_maincpu);
457457
r15975r15976
472472READ8_MEMBER( plus4_state::c16_cpu_r )
473473{
474474   /*
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   */
488475
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
489489   UINT8 data = 0xff;
490490   UINT8 c16_port7501 = m6510_get_port(m_maincpu);
491491
r15975r15976
506506WRITE8_MEMBER( plus4_state::cpu_w )
507507{
508508   /*
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   */
522509
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
523523   // serial bus
524524   m_iec->data_w(!BIT(data, 0));
525525   m_iec->clk_w(!BIT(data, 1));
r15975r15976
722722READ8_MEMBER( plus4_state::spi_kb_r )
723723{
724724   /*
725   
726       bit     description
727   
728       0       
729       1       
730       2       
731       3       
732       4       
733       5       
734       6       
735       7       
736   
737   */
738725
726        bit     description
727
728        0
729        1
730        2
731        3
732        4
733        5
734        6
735        7
736
737    */
738
739739   return m_port6529 & (read_keyboard (0xff /*databus */ ) | (m_port6529 ^ 0xff));
740740}
741741
742742WRITE8_MEMBER( plus4_state::spi_kb_w )
743743{
744744   /*
745   
746       bit     description
747   
748       0       
749       1       
750       2       
751       3       
752       4       
753       5       
754       6       
755       7       
756   
757   */
758745
746        bit     description
747
748        0
749        1
750        2
751        3
752        4
753        5
754        6
755        7
756
757    */
758
759759   m_port6529 = data;
760760}
761761
r15975r15976
904904   MCFG_CPU_PERIODIC_INT(c16_raster_interrupt, TED7360_HRETRACERATE)
905905   MCFG_QUANTUM_TIME(attotime::from_hz(60))
906906
907   // video and sound hardware
907   // video and sound hardware
908908   MCFG_SPEAKER_STANDARD_MONO("mono")
909909   MCFG_MOS7360_ADD(MOS7360_TAG, SCREEN_TAG, XTAL_14_31818MHz/4, ted_intf)
910910   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
r15975r15976
943943   MCFG_CPU_PERIODIC_INT(c16_raster_interrupt, TED7360_HRETRACERATE)
944944   MCFG_QUANTUM_TIME(attotime::from_hz(60))
945945
946   // video and sound hardware
946   // video and sound hardware
947947   MCFG_SPEAKER_STANDARD_MONO("mono")
948948   MCFG_MOS7360_ADD(MOS7360_TAG, SCREEN_TAG, XTAL_17_73447MHz/5, ted_intf)
949949   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
r15975r15976
10231023   ROM_REGION( 0x8000, "kernal", 0 )
10241024   ROM_LOAD( "basic-264.bin", 0x0000, 0x4000, CRC(6a2fc8e3) SHA1(473fce23afa07000cdca899fbcffd6961b36a8a0) )
10251025   ROM_LOAD( "kernal-264.bin", 0x4000, 0x4000, CRC(8f32abe7) SHA1(d481faf5fcbb331878dc7851c642d04f26a32873) )
1026   
1026
10271027   ROM_REGION( 0x8000, "function", ROMREGION_ERASE00 )
10281028
10291029   ROM_REGION( 0xf5, PLA_TAG, 0 )
r15975r15976
11301130ROM_START( c16h )
11311131   ROM_REGION( 0x8000, "kernal", 0 )
11321132   ROM_LOAD( "318006-01.u3", 0x0000, 0x4000, CRC(74eaae87) SHA1(161c96b4ad20f3a4f2321808e37a5ded26a135dd) )
1133   
1133
11341134   ROM_DEFAULT_BIOS("r2")
11351135   ROM_SYSTEM_BIOS( 0, "r1", "Revision 1" )
11361136   ROMX_LOAD( "318030-01.u4", 0x4000, 0x4000, NO_DUMP, ROM_BIOS(1) )
r15975r15976
11501150   ROM_REGION( 0x8000, "kernal", 0 )
11511151   ROM_LOAD( "318006-01.u4", 0x0000, 0x4000, CRC(74eaae87) SHA1(161c96b4ad20f3a4f2321808e37a5ded26a135dd) )
11521152   ROM_LOAD( "318004-01.u5", 0x4000, 0x4000, CRC(dbdc3319) SHA1(3c77caf72914c1c0a0875b3a7f6935cd30c54201) )
1153   
1153
11541154   ROM_REGION( 0x8000, "function", ROMREGION_ERASE00 )
11551155
11561156   ROM_REGION( 0xf5, PLA_TAG, 0 )
src/mess/drivers/p2000t.c
r15975r15976
214214
215215   saa5050_update(saa5050, bitmap, cliprect);
216216   saa5050_frame_advance(saa5050);
217   
217
218218   return 0;
219219}
220220
src/mess/drivers/genpc.c
r15975r15976
297297COMP(  1987,   pc,         ibm5150,   0,      pccga,      pccga, driver_device,      0,        "<generic>",  "PC (CGA)" , GAME_NO_SOUND)
298298COMP(  1987,   pcega,      ibm5150,   0,      pcega,      pccga, driver_device,      0,         "<generic>",  "PC (EGA)" , GAME_NO_SOUND)
299299COMP ( 1987,   pcmda,      ibm5150,   0,      pcmda,      pcgen, driver_device,      0,        "<generic>",  "PC (MDA)" , GAME_NO_SOUND)
300COMP ( 1987,   pcherc,     ibm5150,   0,      pcherc,     pcgen, driver_device,      0,        "<generic>",  "PC (Hercules)" , GAME_NO_SOUND)
300COMP ( 1987,   pcherc,     ibm5150,   0,      pcherc,     pcgen, driver_device,      0,      "<generic>",  "PC (Hercules)" , GAME_NO_SOUND)
301301COMP ( 1987,   xtvga,      ibm5150,   0,      xtvga,      pcgen, driver_device,      0,         "<generic>",  "PC (VGA)" , GAME_NOT_WORKING | GAME_NO_SOUND)
src/mess/drivers/megadriv.c
r15975r15976
915915CONS( 1993, wmegam2,    xeye,      0,      genesis_scd,     md, md_cons_state,     md_jpn,    "Victor", "Wondermega M2 (Japan, NTSC)", GAME_NOT_WORKING )
916916CONS( 1994, cdx,        0,         0,      genesis_scd,     md, md_cons_state,     genesis,   "Sega",   "CDX (USA, NTSC)", GAME_NOT_WORKING )
917917CONS( 1994, multmega,   cdx,       0,      genesis_scd,     md, md_cons_state,     md_eur,    "Sega",   "Multi-Mega (Europe, PAL)", GAME_NOT_WORKING )
918CONS( 1994, 32x_scd,    0,         0,      genesis_32x_scd, md, md_cons_state,       mess_32x,  "Sega",   "Sega CD (USA, NTSC, w/32X)", GAME_NOT_WORKING )
918CONS( 1994, 32x_scd,    0,         0,      genesis_32x_scd, md, md_cons_state,      mess_32x,  "Sega",   "Sega CD (USA, NTSC, w/32X)", GAME_NOT_WORKING )
919919
920920// this is a standalone system based on the md-like hardware (same vdp etc.)
921921
src/mess/drivers/at.c
r15975r15976
14111411COMP ( 1987, atvga,    ibm5170, 0,       atvga,     atvga, at_state,      atvga,  "<generic>",  "PC/AT (VGA, MF2 Keyboard)" , GAME_NOT_WORKING )
14121412COMP ( 1988, at386,    ibm5170, 0,       at386,     atvga, at_state,      atvga,  "<generic>",  "PC/AT 386 (VGA, MF2 Keyboard)", GAME_NOT_WORKING )
14131413COMP ( 1990, at486,    ibm5170, 0,       at486,     atvga, at_state,      atvga,  "<generic>",  "PC/AT 486 (VGA, MF2 Keyboard)", GAME_NOT_WORKING )
1414COMP ( 1990, at586,    ibm5170, 0,       at586,     atvga, driver_device,      0,     "<generic>",  "PC/AT 586 (PIIX4)", GAME_NOT_WORKING )
1414COMP ( 1990, at586,    ibm5170, 0,       at586,     atvga, driver_device,      0,   "<generic>",  "PC/AT 586 (PIIX4)", GAME_NOT_WORKING )
14151415COMP ( 1990, at586x3,  ibm5170, 0,       at586x3,   atvga, driver_device,      0,       "<generic>",  "PC/AT 586 (PIIX3)", GAME_NOT_WORKING )
14161416COMP ( 1989, neat,     ibm5170, 0,       neat,      atcga, at_state,      atcga,  "<generic>",  "NEAT (CGA, MF2 Keyboard)", GAME_NOT_WORKING )
14171417COMP ( 1993, ct486,    ibm5170, 0,       ct486,     atvga, at_state,      atvga,  "<unknown>",  "PC/AT 486 with C&T chipset", GAME_NOT_WORKING )
src/mess/drivers/irisha.c
r15975r15976
194194
195195/* Driver */
196196/*    YEAR  NAME    PARENT  COMPAT  MACHINE     INPUT       INIT    COMPANY  FULLNAME   FLAGS */
197COMP( 1983, irisha,     0,     0,   irisha,    irisha, irisha_state,    irisha, "MGU",    "Irisha",    GAME_NOT_WORKING | GAME_NO_SOUND)
197COMP( 1983, irisha,     0,     0,   irisha,    irisha, irisha_state,   irisha, "MGU",    "Irisha",    GAME_NOT_WORKING | GAME_NO_SOUND)
src/mess/drivers/abc80x.c
r15975r15976
949949         {
950950            m_sio_rxdb = !(m_tape_ctr == 15);
951951         }
952         
952
953953         if (!dfd_in && (m_tape_ctr == 15))
954954         {
955955            m_tape_ctr = 4;
r15975r15976
16001600//**************************************************************************
16011601
16021602//    YEAR  NAME        PARENT      COMPAT  MACHINE     INPUT   INIT                         COMPANY             FULLNAME        FLAGS
1603COMP( 1981, abc800c,    0,         0,      abc800c,    abc800, abc800c_state,    driver_init, "Luxor Datorer AB", "ABC 800 C/HR", GAME_SUPPORTS_SAVE )
1604COMP( 1981, abc800m,    abc800c,   0,      abc800m,    abc800, abc800m_state,    driver_init, "Luxor Datorer AB", "ABC 800 M/HR", GAME_SUPPORTS_SAVE )
1605COMP( 1983, abc802,     0,          0,      abc802,     abc802, abc802_state,    driver_init, "Luxor Datorer AB", "ABC 802",       GAME_SUPPORTS_SAVE )
1606COMP( 1983, abc806,     0,          0,      abc806,     abc806, abc806_state,    driver_init, "Luxor Datorer AB", "ABC 806",       GAME_SUPPORTS_SAVE | GAME_IMPERFECT_GRAPHICS )
1603COMP( 1981, abc800c,    0,         0,      abc800c,    abc800, abc800c_state,   driver_init, "Luxor Datorer AB", "ABC 800 C/HR", GAME_SUPPORTS_SAVE )
1604COMP( 1981, abc800m,    abc800c,   0,      abc800m,    abc800, abc800m_state,   driver_init, "Luxor Datorer AB", "ABC 800 M/HR", GAME_SUPPORTS_SAVE )
1605COMP( 1983, abc802,     0,          0,      abc802,     abc802, abc802_state,   driver_init, "Luxor Datorer AB", "ABC 802",       GAME_SUPPORTS_SAVE )
1606COMP( 1983, abc806,     0,          0,      abc806,     abc806, abc806_state,   driver_init, "Luxor Datorer AB", "ABC 806",       GAME_SUPPORTS_SAVE | GAME_IMPERFECT_GRAPHICS )
src/mess/drivers/orion.c
r15975r15976
358358
359359/*    YEAR  NAME        PARENT      COMPAT  MACHINE     INPUT       INIT      COMPANY              FULLNAME   FLAGS */
360360COMP( 1990, orion128,    0,       0,      orion128,   radio86, driver_device,   0,        "<unknown>",             "Orion 128",    0)
361COMP( 1990, orionms,    orion128,   0,      orion128ms,   ms7007, driver_device,    0,        "<unknown>",             "Orion 128 (MS7007)",    0)
361COMP( 1990, orionms,    orion128,   0,      orion128ms,   ms7007, driver_device,   0,        "<unknown>",             "Orion 128 (MS7007)",    0)
362362COMP( 1990, orionz80,    orion128,   0,      orionz80,   radio86, driver_device,   0,        "<unknown>",             "Orion 128 + Z80 Card II",    0)
363363COMP( 1990, orionide,    orion128,   0,      orionz80,   radio86, driver_device,   0,        "<unknown>",             "Orion 128 + Z80 Card II + IDE",    0)
364COMP( 1990, orionzms,    orion128,   0,      orionz80ms,   ms7007, driver_device,    0,        "<unknown>",             "Orion 128 + Z80 Card II (MS7007)",    0)
365COMP( 1990, orionidm,    orion128,   0,      orionz80ms,   ms7007, driver_device,    0,        "<unknown>",             "Orion 128 + Z80 Card II + IDE (MS7007)",    0)
364COMP( 1990, orionzms,    orion128,   0,      orionz80ms,   ms7007, driver_device,   0,        "<unknown>",             "Orion 128 + Z80 Card II (MS7007)",    0)
365COMP( 1990, orionidm,    orion128,   0,      orionz80ms,   ms7007, driver_device,   0,        "<unknown>",             "Orion 128 + Z80 Card II + IDE (MS7007)",    0)
366366COMP( 1994, orionpro,    orion128,   0,      orionpro,   radio86, driver_device,   0,        "<unknown>",             "Orion Pro",    0)
src/mess/drivers/bk.c
r15975r15976
264264/* Driver */
265265
266266/*    YEAR  NAME    PARENT  COMPAT  MACHINE     INPUT       INIT    COMPANY                  FULLNAME   FLAGS */
267COMP( 1985, bk0010,    0,      0,   bk0010,    bk0010, driver_device,    0,      "Elektronika",          "BK-0010",    0)
268COMP( 1986, bk001001,   bk0010,  0,   bk0010,    bk0010, driver_device,    0,      "Elektronika",          "BK-0010.01",    0)
269COMP( 1986, bk0010fd,   bk0010,  0,   bk0010fd,   bk0010, driver_device,    0,      "Elektronika",          "BK-0010 FDD",    GAME_NOT_WORKING)
270COMP( 1986, bk0011m,   bk0010,  0,   bk0010fd,   bk0010, driver_device,    0,      "Elektronika",          "BK-0011M",    GAME_NOT_WORKING)
267COMP( 1985, bk0010,    0,      0,   bk0010,    bk0010, driver_device,   0,      "Elektronika",          "BK-0010",    0)
268COMP( 1986, bk001001,   bk0010,  0,   bk0010,    bk0010, driver_device,   0,      "Elektronika",          "BK-0010.01",    0)
269COMP( 1986, bk0010fd,   bk0010,  0,   bk0010fd,   bk0010, driver_device,   0,      "Elektronika",          "BK-0010 FDD",    GAME_NOT_WORKING)
270COMP( 1986, bk0011m,   bk0010,  0,   bk0010fd,   bk0010, driver_device,   0,      "Elektronika",          "BK-0011M",    GAME_NOT_WORKING)
src/mess/drivers/sacstate.c
r15975r15976
1414need to be understood and emulated before this system makes sense.
1515
1616Known 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
2727
2828unknown commands: / & d e l r s t u z \ ^ | ~
2929
src/mess/drivers/vboy.c
r15975r15976
22
33    Nintendo Virtual Boy
44
5   driver by Miodrag Milanovic & Angelo Salese
5    driver by Miodrag Milanovic & Angelo Salese
66
77    Great info at http://www.goliathindustries.com/vb/
88    and http://www.vr32.de/modules/dokuwiki/doku.php?
r15975r15976
1010    TODO:
1111    - fix Affine rotation
1212    - 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
1515    - galactic: ball isn't shown?
1616    - galactic: on the rotation layer, half of it isn't shown;
1717      (http://pastebin.com/9sVT9BbB)
1818    - innsmout: arrow OBJ graphics are misplaced;
1919    - marioten: title screen logo is misplaced if Mario completes his animation
2020    - 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?
2727
2828****************************************************************************/
2929
r15975r15976
509509         break;
510510      case 0x28:   // KCR (Keypad Control Reg)
511511         {
512//            attotime new_time = machine().time();
512//              attotime new_time = machine().time();
513513
514//            if((new_time - m_input_latch_time) < m_maincpu->cycles_to_attotime(640))
514//              if((new_time - m_input_latch_time) < m_maincpu->cycles_to_attotime(640))
515515               value |= machine().rand() & 2;
516516
517517            value = m_vboy_regs.kcr | 0x4c;
r15975r15976
546546         break;
547547      case 0x20:   // TCR (Timer Control Reg)
548548         /*
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            */
556556         if(data & 1)
557557         {
558558            m_vboy_regs.tlb = m_vboy_timer.latch & 0xff;
r15975r15976
641641      case 0x40:   //XPSTTS, piXel Processor STaTuS
642642      {
643643         /*
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            */
647647         UINT8 drawfb = ((m_displayfb ^ 1) + 1) << 2;
648648         UINT16 res;
649649
r15975r15976
658658            res |= m_row_num<<8;
659659         }
660660         //if(m_vip_regs.DPCTRL & 2)
661         //   res |= ((row_num)<<8);
661         //  res |= ((row_num)<<8);
662662
663663         return res;
664664      }
r15975r15976
703703{
704704   switch(offset << 1) {
705705      /*
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        */
715715      case 0x00:   //INTPND
716716               logerror("Error writing INTPND\n");
717717               break;
r15975r15976
724724               m_vip_regs.INTPND &= ~data;
725725               m_set_irq(0);
726726               //else
727               //   printf("%04x\n",m_vip_regs.INTPND);
727               //  printf("%04x\n",m_vip_regs.INTPND);
728728               break;
729729      case 0x20:   //DPSTTS
730730               logerror("Error writing DPSTTS\n");
r15975r15976
741741      case 0x24:   //BRTA
742742               m_vip_regs.BRTA = data;
743743               palette_set_color_rgb(machine(), 1,(m_vip_regs.BRTA) & 0xff,0,0);
744//               popmessage("%02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC);
744//                  popmessage("%02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC);
745745               break;
746746      case 0x26:   //BRTB
747747               m_vip_regs.BRTB = data;
748748               palette_set_color_rgb(machine(), 2,(m_vip_regs.BRTA + m_vip_regs.BRTB) & 0xff,0,0);
749//               popmessage("%02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC);
749//                  popmessage("%02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC);
750750               break;
751751      case 0x28:   //BRTC
752752               m_vip_regs.BRTC = data;
753753               palette_set_color_rgb(machine(), 3,(m_vip_regs.BRTA + m_vip_regs.BRTB + m_vip_regs.BRTC) & 0xff,0,0);
754//               popmessage("%02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC);
754//                  popmessage("%02x %02x %02x",m_vip_regs.BRTA,m_vip_regs.BRTB,m_vip_regs.BRTC);
755755               break;
756756      case 0x2A:   //REST
757757               m_vip_regs.REST = data;
r15975r15976
769769               break;
770770      case 0x42:   //XPCTRL, w/o
771771               /*
772               ---- ---- ---- --x-
773               ---- ---- ---- ---x Reset Pixel Processor
774               */
772                    ---- ---- ---- --x-
773                    ---- ---- ---- ---x Reset Pixel Processor
774                    */
775775               m_vip_regs.XPCTRL = data & 0x1f02;
776776
777777               //if(data & 0x1f00)
778               //   printf("%04x SBCMP\n",data);
778               //  printf("%04x SBCMP\n",data);
779779
780780               if(data & 1)
781781               {
r15975r15976
959959
960960   AM_RANGE( 0x01000000, 0x010005ff ) AM_DEVREADWRITE8("vbsnd", vboysnd_device, read, write, 0xffffffff)
961961   AM_RANGE( 0x02000000, 0x0200002b ) AM_MIRROR(0x0ffff00) AM_READWRITE(io_r, io_w) // Hardware control registers mask 0xff
962//   AM_RANGE( 0x04000000, 0x04ffffff ) // Expansion area
962//  AM_RANGE( 0x04000000, 0x04ffffff ) // Expansion area
963963   AM_RANGE( 0x05000000, 0x0500ffff ) AM_MIRROR(0x0ff0000) AM_RAM AM_SHARE("wram") // Main RAM - 64K mask 0xffff
964964   AM_RANGE( 0x06000000, 0x06003fff ) AM_RAM AM_SHARE("nvram") // Cart RAM - 8K NVRAM
965965   AM_RANGE( 0x07000000, 0x071fffff ) AM_MIRROR(0x0e00000) AM_ROM AM_REGION("user1", 0) /* ROM */
src/mess/drivers/bullet.c
r15975r15976
676676
677677   state->m_ctc->trg0(1);
678678   state->m_ctc->trg0(0);
679               
679
680680   state->m_ctc->trg1(1);
681681   state->m_ctc->trg1(0);
682               
682
683683   state->m_ctc->trg2(1);
684684   state->m_ctc->trg2(0);
685685}
src/mess/drivers/tiki100.c
r15975r15976
489489
490490   state->m_ctc->trg0(1);
491491   state->m_ctc->trg0(0);
492               
492
493493   state->m_ctc->trg1(1);
494494   state->m_ctc->trg1(0);
495495}
src/mess/drivers/abc1600.c
r15975r15976
826826int abc1600_state::get_fc()
827827{
828828   UINT16 fc = m68k_get_fc(m_maincpu);
829   
829
830830   m_ifc2 = !(!(MAGIC || FC0) || FC2);
831831
832832   return fc;
src/mess/drivers/fm7.c
r15975r15976
15221522   AM_RANGE(0x9000,0x9f7f) AM_RAM // Work RAM(?)
15231523   AM_RANGE(0x9f80,0x9fff) AM_RAM AM_SHARE("shared_ram")
15241524   AM_RANGE(0xafe0,0xafe3) AM_RAM
1525//   AM_RANGE(0xafe4,0xafe4) AM_READWRITE(fm7_sub_busyflag_r,fm7_sub_busyflag_w)
1525//  AM_RANGE(0xafe4,0xafe4) AM_READWRITE(fm7_sub_busyflag_r,fm7_sub_busyflag_w)
15261526   AM_RANGE(0xafe6,0xafe6) AM_READWRITE(fm77av_video_flags_r,fm77av_video_flags_w)
15271527   AM_RANGE(0xaff0,0xaff0) AM_READWRITE(fm7_sub_busyflag_r,fm7_sub_busyflag_w)
15281528   AM_RANGE(0xc000,0xffff) AM_ROM // sybsystem ROM
src/mess/drivers/vidbrain.c
r15975r15976
1616
1717    TODO:
1818
19   - wait states (UV201: 2.9us, memory except RES1: 1.65us)
19    - wait states (UV201: 2.9us, memory except RES1: 1.65us)
2020    - interlaced video?
2121    - pinball background colors
2222    - Y-zoom starting on odd scanline only 1 line high
src/mess/drivers/trs80m2.c
r15975r15976
11711171COMP( 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 )
11721172//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 )
11731173//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,         0,      "Tandy Radio Shack",    "Tandy 6000 HD",    GAME_NO_SOUND_HW | GAME_NOT_WORKING | GAME_IMPERFECT_KEYBOARD )
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 )
src/mess/drivers/pdp11.c
r15975r15976
120120   AM_RANGE( 0xff72, 0xff73 ) AM_READ(term_r)
121121   AM_RANGE( 0xff74, 0xff75 ) AM_READ(term_tx_status_r)
122122   AM_RANGE( 0xff76, 0xff77 ) AM_WRITE(term_w)
123   
123
124124   AM_RANGE( 0xfe78, 0xfe7b ) AM_DEVREADWRITE("rx01", rx01_device, read, write)
125125ADDRESS_MAP_END
126126
r15975r15976
330330
331331   /* video hardware */
332332   MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, terminal_intf)
333   
333
334334   MCFG_RX01_ADD("rx01")
335335MACHINE_CONFIG_END
336336
src/mess/drivers/pk8000.c
r15975r15976
399399/* Driver */
400400
401401/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT     COMPANY   FULLNAME       FLAGS */
402COMP( 1987, vesta,  0,       0,    pk8000,    pk8000, driver_device,     0,   "BP EVM",   "PK8000 Vesta",      0)
403COMP( 1987, hobby,  vesta,   0,    pk8000,    pk8000, driver_device,     0,   "BP EVM",   "PK8000 Sura/Hobby",   0)
404COMP( 1987, pk8002, vesta,   0,    pk8000,    pk8000, driver_device,     0,   "<unknown>",   "PK8002 Elf",   GAME_NOT_WORKING)
402COMP( 1987, vesta,  0,       0,    pk8000,    pk8000, driver_device,    0,   "BP EVM",   "PK8000 Vesta",      0)
403COMP( 1987, hobby,  vesta,   0,    pk8000,    pk8000, driver_device,    0,   "BP EVM",   "PK8000 Sura/Hobby",   0)
404COMP( 1987, pk8002, vesta,   0,    pk8000,    pk8000, driver_device,    0,   "<unknown>",   "PK8002 Elf",   GAME_NOT_WORKING)
405405
src/mess/drivers/pcw16.c
r15975r15976
153153
154154static ADDRESS_MAP_START(pcw16_map, AS_PROGRAM, 8, pcw16_state )
155155   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")
160160ADDRESS_MAP_END
161161
162162
r15975r15976
369369/*
370370static void pcw16_set_bank_handlers(running_machine &machine, int bank, PCW16_RAM_TYPE type)
371371{
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;
380380
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;
386386
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;
391391
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;
396396
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    }
404404
405405}
406406
407407static void pcw16_update_bank(running_machine &machine, int bank)
408408{
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];
415415
416   // get memory bank
417   bank_id = state->m_banks[bank];
416    // get memory bank
417    bank_id = state->m_banks[bank];
418418
419419
420   if ((bank_id & 0x080)==0)
421   {
422      bank_offs = 0;
420    if ((bank_id & 0x080)==0)
421    {
422        bank_offs = 0;
423423
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
427427            //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;
433433
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            }
443443
444         mem_ptr = (unsigned char *)flashdev->space()->get_read_ptr(0);
445      }
444            mem_ptr = (unsigned char *)flashdev->space()->get_read_ptr(0);
445        }
446446
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    }
454454
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);
461461
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
473473            // 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    }
488488}
489489*/
490490
491491/* update memory h/w */
492492static void pcw16_update_memory(running_machine &machine)
493493{
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);
498498
499499}
500500
r15975r15976
14061406   pc_fdc_set_tc_state(machine, 0);
14071407   /* select first rom page */
14081408   state->m_banks[0] = 0;
1409//   pcw16_update_memory(machine);
1409//  pcw16_update_memory(machine);
14101410
14111411   /* temp rtc setup */
14121412   state->m_rtc_seconds = 0;
src/mess/drivers/vt100.c
r15975r15976
693693
694694   // "GPO" aka vt125 "mono board" roms and proms
695695   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
697697   ROM_LOAD( "23-043e4-00.e23", 0x2000, 0x2000, NO_DUMP) // 2364/MK36xxx mask rom
698698   ROM_LOAD( "23-045e4-00.e24", 0x4000, 0x2000, NO_DUMP) // 2364/MK36xxx mask rom
699699   // E25 socket is empty
src/mess/drivers/apollo.c
r15975r15976
10801080
10811081DRIVER_INIT_MEMBER(apollo_state,dn3500)
10821082{
1083//   MLOG1(("driver_init_dn3500"));
1083//  MLOG1(("driver_init_dn3500"));
10841084
10851085   device_set_irq_callback(machine().device(MAINCPU), apollo_irq_acknowledge);
10861086
r15975r15976
10991099DRIVER_INIT_MEMBER(apollo_state,dsp3500)
11001100{
11011101   DRIVER_INIT_CALL( dn3500 );
1102//   MLOG1(("driver_init_dsp3500"));
1102//  MLOG1(("driver_init_dsp3500"));
11031103   node_type = NODE_TYPE_DSP3500;
11041104   dsp_terminal = machine().device(TERMINAL_TAG);
11051105}
r15975r15976
11071107DRIVER_INIT_MEMBER(apollo_state,dn3000)
11081108{
11091109   DRIVER_INIT_CALL( dn3500 );
1110//   MLOG1(("driver_init_dn3000"));
1110//  MLOG1(("driver_init_dn3000"));
11111111
11121112   ram_base_address = DN3000_RAM_BASE;
11131113   ram_end_address = DN3000_RAM_END;
r15975r15976
11191119DRIVER_INIT_MEMBER(apollo_state,dsp3000)
11201120{
11211121   DRIVER_INIT_CALL( dn3000 );
1122//   MLOG1(("driver_init_dsp3000"));
1122//  MLOG1(("driver_init_dsp3000"));
11231123   node_type = NODE_TYPE_DSP3000;
11241124   dsp_terminal = machine().device(TERMINAL_TAG);
11251125}
r15975r15976
11271127DRIVER_INIT_MEMBER(apollo_state,dn5500)
11281128{
11291129   DRIVER_INIT_CALL( dn3500 );
1130//   MLOG1(("driver_init_dn5500"));
1130//  MLOG1(("driver_init_dn5500"));
11311131
11321132   ram_base_address = DN5500_RAM_BASE;
11331133   ram_end_address = DN5500_RAM_END;
r15975r15976
11391139DRIVER_INIT_MEMBER(apollo_state,dsp5500)
11401140{
11411141   DRIVER_INIT_CALL( dn5500 );
1142//   MLOG1(("driver_init_dsp5500"));
1142//  MLOG1(("driver_init_dsp5500"));
11431143   node_type = NODE_TYPE_DSP5500;
11441144   dsp_terminal = machine().device(TERMINAL_TAG);
11451145}
src/mess/drivers/pc2000.c
r15975r15976
369369/* Driver */
370370
371371/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY   FULLNAME       FLAGS */
372COMP( 1993, pc2000,  0,       0,   pc2000,    pc2000, driver_device,     0,  "Video Technology",   "PreComputer 2000",      GAME_NOT_WORKING)
372COMP( 1993, pc2000,  0,       0,   pc2000,    pc2000, driver_device,    0,  "Video Technology",   "PreComputer 2000",      GAME_NOT_WORKING)
src/mess/drivers/geneve.c
r15975r15976
256256   WRITE_LINE_MEMBER( intb );
257257   WRITE_LINE_MEMBER( ext_ready );
258258   WRITE_LINE_MEMBER( mapper_ready );
259   
259
260260   DECLARE_DRIVER_INIT(geneve);
261261
262262   void   set_tms9901_INT2_from_v9938(v99x8_device &vdp, int state);
src/mess/drivers/pc8801.c
r15975r15976
1616    - waitstates;
1717    - dipswitches needs to be controlled;
1818    - below notes states that plain PC-8801 doesn't have a disk CPU, but the BIOS clearly checks the floppy ports. Wrong info?
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)
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)
2020
2121    per-game specific TODO:
2222    - 100yen Soft 8 Revival Special: tight loop with vblank bit, but vblank irq takes too much time to execute its code;
r15975r15976
3838    - Datenshi Kyouko: gfx garbage on the right edge?
3939    - Final Crisis: sound stuck with OPNA?
4040    - Fire Hawk: tries to r/w the opn ports (probably crashed due to floppy?)
41   - Gegege no Kitarou: title screen text/bitmap contrast is pretty ugly (BTANB?);
41    - Gegege no Kitarou: title screen text/bitmap contrast is pretty ugly (BTANB?);
4242    - 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?
4747    - Wanderers from Ys: user data disk looks screwed? It loads with everything as maximum as per now ...
4848    - Xevious: game is too fast (parent pc8801 only)
4949
r15975r15976
5858    - Autumn Park (BASIC error)
5959    - Battle Gorilla
6060    - 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)
6363    - Bokosuka Wars (polls read ID command)
6464    - Boukenshatachi
6565    - Can Can Bunny Superior
6666    - Carmine
6767    - Castle Excellent (sets sector 0xf4? Jumps to 0xa100 and it shouldn't)
6868    - 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
7979    - Cuby Panic (copy protection routine at 0x911A)
8080    - Daidasso (prints "BOOT dekimasen" on screen, can't boot)
8181    - 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
8686    - 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
9292    - Emerald Dragon (it seems to miss a timer)
9393    - 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)
119119
120120    - Harakiri
121121    - Kaseijin (app) (code snippet is empty at some point)
r15975r15976
130130    - The Return of Ishtar
131131    - Tobira wo Akete (random crashes in parent pc8801 only)
132132
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;
136136    - Ayumi: black screen after new game / load game screen;
137137    - Brunette: No sound, eventually hangs at gameplay;
138138    - Digital Devil Story Megami Tensei: hangs at gameplay (sound irq issue)
r15975r15976
147147    games that needs to HAVE write-protect floppies (BTANBs):
148148    - 100 Yen Disk 7: (doesn't boot in V2 mode)
149149
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:
152152    - Jark (needs PC-8801MC)
153   - Kuronekosou Souzoku Satsujin Jiken: "Illegal function call in 105", needs BASIC V1;
153    - Kuronekosou Souzoku Satsujin Jiken: "Illegal function call in 105", needs BASIC V1;
154154
155155    Notes:
156156    - BIOS disk ROM defines what kind of floppies you could load:
r15975r15976
159159    - Later models have palette bugs with some games (Alphos, Tokyo Nampa Street).
160160      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).
161161    - 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);
164164
165165    Bankswitch Notes:
166166    - 0x31 - graphic banking
r15975r15976
821821{
822822   bitmap.fill(screen.machine().pens[0], cliprect);
823823
824//   popmessage("%04x %04x %02x",m_dma_address[2],m_dma_counter[2],m_dmac_mode);
824//  popmessage("%04x %04x %02x",m_dma_address[2],m_dma_counter[2],m_dmac_mode);
825825
826826   if(m_gfx_ctrl & 8)
827827   {
r15975r15976
12351235   xsize = screen_width + hretrace;
12361236   ysize = screen_height * lines_per_char + vretrace * lines_per_char;
12371237
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);
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);
12391239
12401240   visarea.set(0, xvis - 1, 0, yvis - 1);
12411241   if(pc8801_pixel_clock())
r15975r15976
12971297   else
12981298      m_i8214_irq_level = data & 7;
12991299
1300//   IRQ_LOG(("%02x LV\n",m_i8214_irq_level));
1300//  IRQ_LOG(("%02x LV\n",m_i8214_irq_level));
13011301}
13021302
13031303
r15975r15976
13151315   if(m_timer_irq_latch == 0 && m_vrtc_irq_latch == 0 && m_sound_irq_latch == 0)
13161316      cputag_set_input_line(machine(),"maincpu",0,CLEAR_LINE);
13171317
1318//   IRQ_LOG(("%02x MASK (%02x %02x)\n",data,m_timer_irq_latch,m_vrtc_irq_latch));
1318//  IRQ_LOG(("%02x MASK (%02x %02x)\n",data,m_timer_irq_latch,m_vrtc_irq_latch));
13191319
13201320   //if(data & 4)
13211321   //  printf("IRQ mask %02x\n",data);
r15975r15976
13461346WRITE8_MEMBER(pc8801_state::pc8801_misc_ctrl_w)
13471347{
13481348   /*
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    */
13521352
13531353   m_misc_ctrl = data;
13541354
r15975r15976
18121812static READ8_DEVICE_HANDLER( cpu_8255_c_r )
18131813{
18141814   pc8801_state *state = device->machine().driver_data<pc8801_state>();
1815//   device->machine().scheduler().synchronize(); // force resync
1815//  device->machine().scheduler().synchronize(); // force resync
18161816
18171817   return state->m_i8255_1_pc >> 4;
18181818}
r15975r15976
18201820static WRITE8_DEVICE_HANDLER( cpu_8255_c_w )
18211821{
18221822   pc8801_state *state = device->machine().driver_data<pc8801_state>();
1823//   device->machine().scheduler().synchronize(); // force resync
1823//  device->machine().scheduler().synchronize(); // force resync
18241824
18251825   state->m_i8255_0_pc = data;
18261826}
r15975r15976
18391839static READ8_DEVICE_HANDLER( fdc_8255_c_r )
18401840{
18411841   pc8801_state *state = device->machine().driver_data<pc8801_state>();
1842//   device->machine().scheduler().synchronize(); // force resync
1842//  device->machine().scheduler().synchronize(); // force resync
18431843
18441844   return state->m_i8255_0_pc >> 4;
18451845}
r15975r15976
18471847static WRITE8_DEVICE_HANDLER( fdc_8255_c_w )
18481848{
18491849   pc8801_state *state = device->machine().driver_data<pc8801_state>();
1850//   device->machine().scheduler().synchronize(); // force resync
1850//  device->machine().scheduler().synchronize(); // force resync
18511851
18521852   state->m_i8255_1_pc = data;
18531853}
r15975r15976
21192119   PORT_DIPSETTING(    0x80, "N88-BASIC (V1L)" )
21202120   PORT_DIPSETTING(    0xc0, "N88-BASIC (V1H)" )
21212121   PORT_DIPSETTING(    0x40, "N88-BASIC (V2)" )
2122//   PORT_DIPSETTING(    0x00, "N88-BASIC (V2)" )
2122//  PORT_DIPSETTING(    0x00, "N88-BASIC (V2)" )
21232123
21242124   PORT_START("CTRL")
21252125   PORT_DIPNAME( 0x02, 0x02, "Monitor Type" )
r15975r15976
23762376{
23772377   pc8801_state *state = device->machine().driver_data<pc8801_state>();
23782378
2379//   printf("%02x %02x %02x\n",state->m_sound_irq_mask,state->m_i8214_irq_level,irq);
2379//  printf("%02x %02x %02x\n",state->m_sound_irq_mask,state->m_i8214_irq_level,irq);
23802380   /* TODO: correct i8214 irq level? */
23812381   if(irq)
23822382   {
r15975r15976
24412441   state->m_layer_mask = 0x00;
24422442   state->m_vram_sel = 3;
24432443
2444//   pc8801_dynamic_res_change(machine);
2444//  pc8801_dynamic_res_change(machine);
24452445
24462446   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
24472447   state->m_mouse.phase = 0;
r15975r15976
25762576      shift = (state->m_mouse.phase & 1) ? 0 : 4;
25772577      res = (state->m_mouse.phase & 2) ? state->m_mouse.y : state->m_mouse.x;
25782578
2579//      printf("%d\n",state->m_mouse.phase);
2579//      printf("%d\n",state->m_mouse.phase);
25802580
25812581      return ((res >> shift) & 0x0f) | 0xf0;
25822582   }
r15975r15976
26992699   MCFG_PALETTE_LENGTH(0x10)
27002700   MCFG_PALETTE_INIT( pc8801 )
27012701
2702//   MCFG_VIDEO_START(pc8801)
2702//  MCFG_VIDEO_START(pc8801)
27032703
27042704   /* sound hardware */
27052705   MCFG_SPEAKER_STANDARD_MONO("mono")
src/mess/drivers/altair.c
r15975r15976
147147/* Driver */
148148
149149/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT     COMPANY   FULLNAME       FLAGS */
150COMP( 1975, al8800bt,  0,       0,   altair,    altair, driver_device,     0,   "MITS",   "Altair 8800bt", GAME_NOT_WORKING | GAME_NO_SOUND_HW)
150COMP( 1975, al8800bt,  0,       0,   altair,    altair, driver_device,    0,   "MITS",   "Altair 8800bt", GAME_NOT_WORKING | GAME_NO_SOUND_HW)
151151
src/mess/drivers/vk100.c
r15975r15976
251251{
252252   vk100_state *state = machine.driver_data<vk100_state>();
253253   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.
255255   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
256256   // 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)
257257   switch (state->m_VG_MODE)
r15975r15976
571571 * write command -> 0x05 (normal, normal, /RTS is 1, normal, normal, recieve ON, /DTR is 0, transmit off)
572572 * read SYSTAT B (and xor with 0xe), expect d7 to be SET or jump to error
573573 * after this it does something and waits for an rxrdy interrupt
574
574
575575 shows the results of:
576576 * ACTS (/CTS)  ?      ?      ?      ?      ?      ?      ?
577577 * d7           d6     d5     d4     d3     d2     d1     d0
r15975r15976
10561056     *  Y11
10571057     *  X8 (aka PX8)
10581058     *  X9 (aka PX9)
1059     *  ERASE L
1059     *  ERASE L
10601060     *  X'3
10611061     *  X'2
10621062     * and the outputs are:
r15975r15976
10671067       only has 3 banks (but 2 planes of 3 banks), I (LN) assume there
10681068       are four wr banks on the v100, one per nybble, and the X'3 and
10691069       X'2 inputs lend credence to this.
1070     *
1070     *
10711071     */
10721072   ROM_LOAD( "wb8151_573a2.mmi6301.pr3.ic44", 0x0000, 0x0100, CRC(75885a9f) SHA1(c721dad6a69c291dd86dad102ed3a8ddd620ecc4)) // label verified from nigwil's and andy's board
10731073   // WARNING: it is possible that the first two bytes of this prom are bad!
src/mess/drivers/esq5505.c
r15975r15976
106106    UINT32  es5510_dadr_latch;
107107    UINT32  es5510_gpr_latch;
108108    UINT8   es5510_ram_sel;
109public:   
109public:
110110   DECLARE_DRIVER_INIT(eps);
111111   DECLARE_DRIVER_INIT(common);
112112   DECLARE_DRIVER_INIT(sq1);
src/mess/drivers/ms0515.c
r15975r15976
11/***************************************************************************
2   
2
33        Elektronika MS-0515
44
55        06/08/2012 Skeleton driver.
r15975r15976
2323   { }
2424
2525   required_device<cpu_device> m_maincpu;
26   
27   DECLARE_WRITE16_MEMBER(ms0515_bank_w);   
26
27   DECLARE_WRITE16_MEMBER(ms0515_bank_w);
2828   DECLARE_WRITE8_MEMBER(ms0515_sys_w);
29   
29
3030   virtual void machine_reset();
31   
31
3232   UINT8 *m_video_ram;
3333   UINT8 m_sysreg;
3434   int m_blink;
r15975r15976
4444   AM_RANGE(0120000, 0137777) AM_RAMBANK("bank5") // RAM
4545   AM_RANGE(0140000, 0157777) AM_RAMBANK("bank6") // RAM
4646
47   AM_RANGE(0160000, 0177377) AM_ROM   
47   AM_RANGE(0160000, 0177377) AM_ROM
4848
4949   AM_RANGE(0177400, 0177437) AM_WRITE(ms0515_bank_w) // Register for RAM expansion
50   
50
5151   //AM_RANGE(0177440, 0177441)  // read data
5252   //AM_RANGE(0177460, 0177461)  // write data   Elektronika MS-7004 Keyboard
5353   //AM_RANGE(0177442, 0177443)  // read
54   //AM_RANGE(0177462, 0177463)  // write
55   
54   //AM_RANGE(0177462, 0177463)  // write
55
5656   //AM_RANGE(0177500, 0177501)
5757   //AM_RANGE(0177502, 0177503)
5858   //AM_RANGE(0177504, 0177505)  // i8253
5959   //AM_RANGE(0177506, 0177507)
60   
60
6161   //AM_RANGE(0177540, 0177541)
6262   //AM_RANGE(0177542, 0177543)
6363   //AM_RANGE(0177544, 0177545)  // i8255 for MS-7007 Keyboard
6464   //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
6868   AM_RANGE(0177640, 0177641) AM_DEVREADWRITE8_LEGACY("vg93", wd17xx_status_r, wd17xx_command_w,0x00ff)
6969   AM_RANGE(0177642, 0177643) AM_DEVREADWRITE8_LEGACY("vg93", wd17xx_track_r, wd17xx_track_w,0x00ff)
7070   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
7373   //AM_RANGE(0177700, 0177701) // read data
7474   //AM_RANGE(0177720, 0177721) // write data     // protocol S2
7575   //AM_RANGE(0177702, 0177703) // read status
76   //AM_RANGE(0177722, 0177723) // write control
77   
76   //AM_RANGE(0177722, 0177723) // write control
77
7878   //AM_RANGE(0177770, 0177771) // read/write
7979ADDRESS_MAP_END
8080
r15975r15976
9999               membank("bank2")->set_base(ram + 0000000 + 0340000);
100100               membank("bank3")->set_base(ram + 0020000 + 0340000);
101101               break;
102         case 2:
102         case 2:
103103         case 3: // 100000 - 137777
104104               membank("bank4")->set_base(ram + 0000000 + 0340000);
105105               membank("bank5")->set_base(ram + 0020000 + 0340000);
106106               break;
107107      }
108   }   
108   }
109109}
110110
111111WRITE8_MEMBER(ms0515_state::ms0515_sys_w)
r15975r15976
117117{
118118   UINT8 *ram = machine().device<ram_device>(RAM_TAG)->pointer();
119119   ms0515_bank_w(*machine().memory().first_space(),0,0);
120   
120
121121   m_video_ram = ram + 0000000 + 0340000;
122122   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
125125}
126126
127127/* Input ports */
r15975r15976
166166
167167static SCREEN_UPDATE_IND16( ms0515 )
168168{
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;
171171   int addr = 0;
172172   if (BIT(state->m_sysreg,3))  {
173173      for (y = 0; y < 200; y++)
r15975r15976
190190         int horpos = 0;
191191         for (x = 0; x < 40; x++)
192192         {
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++];
195195            UINT8 fg = (attr & 7) + BIT(attr,6)*8;
196196            UINT8 bg = ((attr >> 3) & 7) + BIT(attr,6)*8;
197197            if (BIT(attr,7) && (state->m_blink == 20)) {
r15975r15976
222222   palette_set_color(machine, 5, MAKE_RGB(0, 127, 127));
223223   palette_set_color(machine, 6, MAKE_RGB(127, 127, 0));
224224   palette_set_color(machine, 7, MAKE_RGB(127, 127, 127));
225   
225
226226   palette_set_color(machine, 8, MAKE_RGB(127, 127, 127));
227227   palette_set_color(machine, 9, MAKE_RGB(127, 127, 255));
228228   palette_set_color(machine, 10, MAKE_RGB(255, 127, 127));
r15975r15976
230230   palette_set_color(machine, 12, MAKE_RGB(127, 255, 127));
231231   palette_set_color(machine, 13, MAKE_RGB(127, 255, 255));
232232   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));
234234}
235235
236236static WRITE8_DEVICE_HANDLER(ms0515_portc_w)
r15975r15976
253253   MCFG_CPU_ADD("maincpu",T11, XTAL_4MHz) // Need proper CPU here
254254   MCFG_CPU_CONFIG(ms0515_data)
255255   MCFG_CPU_PROGRAM_MAP(ms0515_mem)
256   
256
257257   MCFG_FD1793_ADD( "vg93", ms0515_wd17xx_interface )
258   
258
259259   MCFG_LEGACY_FLOPPY_DRIVE_ADD(FLOPPY_0, ms0515_floppy_interface)
260   
260
261261   /* video hardware */
262262   MCFG_SCREEN_ADD("screen", RASTER)
263263   MCFG_SCREEN_REFRESH_RATE(50)
r15975r15976
265265   MCFG_SCREEN_SIZE(640, 200)
266266   MCFG_SCREEN_VISIBLE_AREA(0, 640-1, 0, 200-1)
267267    MCFG_SCREEN_UPDATE_STATIC(ms0515)
268   
268
269269   MCFG_PALETTE_LENGTH(16)
270270   MCFG_PALETTE_INIT(ms0515)
271   
271
272272   MCFG_I8255_ADD( "ppi8255_1", ms0515_ppi8255_interface_1 )
273273   //MCFG_I8255_ADD( "ppi8255_2", ms0515_ppi8255_interface_2 )
274274
r15975r15976
286286
287287/* Driver */
288288
289/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT             COMPANY   FULLNAME       FLAGS */
290COMP( ????, 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 */
290COMP( ????, ms0515,  0,       0,   ms0515,    ms0515,  driver_device, 0,     "Elektronika",   "MS-0515",      GAME_NOT_WORKING | GAME_NO_SOUND)
291291
src/mess/drivers/vax11.c
r15975r15976
22
33        VAX-11
44
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
2626
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
5431
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
6354
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
6464****************************************************************************/
6565
6666#include "emu.h"
r15975r15976
8282   DECLARE_READ16_MEMBER( term_r );
8383   DECLARE_READ16_MEMBER( term_tx_status_r );
8484   DECLARE_READ16_MEMBER( term_rx_status_r );
85   DECLARE_WRITE16_MEMBER( term_w );   
85   DECLARE_WRITE16_MEMBER( term_w );
8686   DECLARE_WRITE8_MEMBER( kbd_put );
8787   UINT8 m_term_data;
8888   UINT16 m_term_status;
r15975r15976
113113   ADDRESS_MAP_UNMAP_HIGH
114114   AM_RANGE( 0x0000, 0xbfff ) AM_RAM  // RAM
115115   AM_RANGE( 0xc000, 0xd7ff ) AM_ROM
116   
116
117117   AM_RANGE( 0xfe78, 0xfe7b ) AM_DEVREADWRITE("rx01", rx01_device, read, write)
118118
119119   AM_RANGE( 0xff70, 0xff71 ) AM_READ(term_rx_status_r)
120120   AM_RANGE( 0xff72, 0xff73 ) AM_READ(term_r)
121121   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)
123123ADDRESS_MAP_END
124124
125125/* Input ports */
r15975r15976
147147   MCFG_CPU_ADD("maincpu",T11, XTAL_4MHz) // Need proper CPU here
148148   MCFG_CPU_CONFIG(vax11_data)
149149   MCFG_CPU_PROGRAM_MAP(vax11_mem)
150   
150
151151   /* video hardware */
152152   MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, terminal_intf)
153   
154   MCFG_RX01_ADD("rx01")   
153
154   MCFG_RX01_ADD("rx01")
155155MACHINE_CONFIG_END
156156
157157ROM_START( vax785 )
r15975r15976
171171   ROMX_LOAD( "23-237f1-00.e69", 0xd000, 0x0400, CRC(2bf8cf0b) SHA1(6db79c5392b265e38b5b8b386528d7c138d995e9), ROM_NIBBLE | ROM_SHIFT_NIBBLE_HI | ROM_SKIP(1))
172172   ROMX_LOAD( "23-238f1-00.e85", 0xd001, 0x0400, CRC(ff569f71) SHA1(05985396047fb4639959000a1abe50d2f184deaa), ROM_NIBBLE | ROM_SHIFT_NIBBLE_LO | ROM_SKIP(1))
173173   ROMX_LOAD( "23-239f1-00.e73", 0xd001, 0x0400, CRC(cec7abe3) SHA1(8b8b52bd46340c58efa5adef3f306e0cdcb77520), ROM_NIBBLE | ROM_SHIFT_NIBBLE_HI | ROM_SKIP(1))
174     
174
175175ROM_END
176176
177177/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY   FULLNAME       FLAGS */
src/mess/drivers/mbc200.c
r15975r15976
289289/* Driver */
290290
291291/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY   FULLNAME       FLAGS */
292COMP( 1982, mbc200,  0,       0,   mbc200,    mbc200, driver_device,     0,    "Sanyo",   "MBC-200",      GAME_NOT_WORKING | GAME_NO_SOUND)
292COMP( 1982, mbc200,  0,       0,   mbc200,    mbc200, driver_device,    0,    "Sanyo",   "MBC-200",      GAME_NOT_WORKING | GAME_NO_SOUND)
293293
src/mess/drivers/c64.c
r15975r15976
17831783COMP( 1982,   c64j,   c64n,   0,      ntsc,      c64, driver_device,      0,      "Commodore Business Machines", "Commodore 64 (Japan)",                  0 )
17841784COMP( 1982,   c64p,   c64n,   0,      pal,      c64, driver_device,      0,      "Commodore Business Machines", "Commodore 64 (PAL)",                  0 )
17851785COMP( 1982,   c64sw,   c64n,   0,      pal,      c64sw, driver_device,      0,      "Commodore Business Machines", "Commodore 64 / VIC-64S (Sweden/Finland)",   0 )
1786COMP( 1983, pet64,   c64n,   0,     pet64,     c64, driver_device,       0,     "Commodore Business Machines", "PET 64 / CBM 4064 (NTSC)",               0 )
1787COMP( 1983, edu64,  c64n,   0,     pet64,     c64, driver_device,       0,     "Commodore Business Machines", "Educator 64 (NTSC)",                  0 )
1786COMP( 1983, pet64,   c64n,   0,     pet64,     c64, driver_device,    0,     "Commodore Business Machines", "PET 64 / CBM 4064 (NTSC)",               0 )
1787COMP( 1983, edu64,  c64n,   0,     pet64,     c64, driver_device,    0,     "Commodore Business Machines", "Educator 64 (NTSC)",                  0 )
17881788COMP( 1984, sx64n,   c64n,   0,      ntsc_sx,   c64, driver_device,      0,      "Commodore Business Machines", "SX-64 / Executive 64 (NTSC)",            0 )
17891789COMP( 1984, sx64p,   c64n,   0,      pal_sx,      c64, driver_device,      0,      "Commodore Business Machines", "SX-64 / Executive 64 (PAL)",            0 )
17901790COMP( 1984, vip64,   c64n,   0,      pal_sx,      c64sw, driver_device,      0,      "Commodore Business Machines", "VIP-64 (Sweden/Finland)",               0 )
src/mess/drivers/pc.c
r15975r15976
22642264
22652265COMP( 1983, m24,        ibm5150,    0,          olivetti,   pccga, pc_state,      pccga,      "Olivetti", "M24", GAME_NOT_WORKING)
22662266COMP( 1987, m240,       ibm5150,    0,          olivetti,   pccga, pc_state,      pccga,      "Olivetti", "M240", GAME_NOT_WORKING)
2267COMP( 198?, olivm15,    ibm5150,    0,          olivm15,    0, driver_device,         0,        "Olivetti", "M15", GAME_NOT_WORKING | GAME_NO_SOUND)
2267COMP( 198?, olivm15,    ibm5150,    0,          olivm15,    0, driver_device,       0,        "Olivetti", "M15", GAME_NOT_WORKING | GAME_NO_SOUND)
22682268
22692269COMP( 1983, ibm5550,    ibm5150,    0,          ibm5550,    pccga, pc_state,      pccga,      "International Business Machines", "IBM 5550", GAME_NOT_WORKING)
22702270
src/mess/drivers/ptcsol.c
r15975r15976
182182   const UINT8 *m_p_chargen;
183183   UINT8 m_framecnt;
184184   emu_timer *m_cassette_timer;
185public:   
185public:
186186   DECLARE_DRIVER_INIT(sol20);
187187};
188188
src/mess/drivers/pce.c
r15975r15976
584584
585585   MCFG_HUC6260_ADD( "huc6260", MAIN_CLOCK, pce_huc6260_config )
586586   MCFG_HUC6270_ADD( "huc6270", pce_huc6270_config )
587
587
588588   MCFG_NVRAM_ADD_0FILL("nvram")
589589
590590   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
r15975r15976
638638   MCFG_HUC6270_ADD( "huc6270_0", sgx_huc6270_0_config )
639639   MCFG_HUC6270_ADD( "huc6270_1", sgx_huc6270_1_config )
640640   MCFG_HUC6202_ADD( "huc6202", sgx_huc6202_config )
641
641
642642   MCFG_NVRAM_ADD_0FILL("nvram")
643643
644644   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
src/mess/drivers/h8.c
r15975r15976
253253/* Driver */
254254
255255/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY   FULLNAME       FLAGS */
256COMP( 1977, h8,  0,       0,   h8,    h8, driver_device,     0, "Heath, Inc.", "Heathkit H8", GAME_NOT_WORKING )
256COMP( 1977, h8,  0,       0,   h8,    h8, driver_device,    0, "Heath, Inc.", "Heathkit H8", GAME_NOT_WORKING )
src/mess/drivers/pk8020.c
r15975r15976
296296/* Driver */
297297
298298/*    YEAR  NAME    PARENT  COMPAT  MACHINE     INPUT       INIT     COMPANY                  FULLNAME   FLAGS */
299COMP( 1987, korvet,  0,     0,   pk8020,    pk8020, driver_device,    0,       "<unknown>", "PK8020 Korvet",    0)
300COMP( 1987, neiva,   korvet,    0,   pk8020,    pk8020, driver_device,    0,       "<unknown>", "PK8020 Neiva",    0)
301COMP( 1987, kontur,  korvet,    0,   pk8020,    pk8020, driver_device,    0,       "<unknown>", "PK8020 Kontur",    0)
302COMP( 1987, bk8t,    korvet,    0,   pk8020,    pk8020, driver_device,    0,       "<unknown>", "BK-8T",    0)
299COMP( 1987, korvet,  0,     0,   pk8020,    pk8020, driver_device,   0,       "<unknown>", "PK8020 Korvet",    0)
300COMP( 1987, neiva,   korvet,    0,   pk8020,    pk8020, driver_device,   0,       "<unknown>", "PK8020 Neiva",    0)
301COMP( 1987, kontur,  korvet,    0,   pk8020,    pk8020, driver_device,   0,       "<unknown>", "PK8020 Kontur",    0)
302COMP( 1987, bk8t,    korvet,    0,   pk8020,    pk8020, driver_device,   0,       "<unknown>", "BK-8T",    0)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team