Previous 15994 Revisions Next

r2936 Monday 7th July, 2008 at 01:30:39 UTC by Nathan Woods
Updated to MAME 0.126 core
[ROOT]whatsnew.txt
[docs]messnew.txt
[src]version.c
[src/emu]cheat.c cpuintrf.h devintrf.c devintrf.h validity.c video.c
[src/emu/cpu/cop400]cop410.c
[src/emu/video]mc6845.c tms34061.c
[src/mame]mame.mak mamedriv.c
[src/mame/drivers]cave.c cps1.c hikaru.c* igs_blit.c lucky74.c* megaplay.c model2.c model3.c namcos21.c naomi.c taito_f3.c tatsumi.c
[src/mame/includes]phoenix.h
[src/mame/machine]namcos2.c
[src/mame/video]cave.c cps1.c namcos21.c namcos22.c phoenix.c thepit.c
[src/mess/drivers]cpschngr.c
[src/osd/windows]output.c

src/mame/machine/namcos2.c
r2935r2936
1414#include "cpu/m6805/m6805.h"
1515#include "namcos2.h"
1616
17extern void namcos21_kickstart(int);
17extern void namcos21_kickstart(running_machine *, int);
1818
1919int namcos2_gametype;
2020
r2935r2936
587587            //printf( "dspkick=0x%x\n", data );
588588            if( data&4 )
589589            {
590               namcos21_kickstart(1);
590               namcos21_kickstart(machine, 1);
591591            }
592592         }
593593      }
src/mame/mamedriv.c
r2935r2936
19681968   DRIVER( bubsympe )   /* D90 (c) 1994 Taito Corporation Japan (Europe) */
19691969   DRIVER( bubsympu )   /* D90 (c) 1994 Taito America Corporation (US) */
19701970   DRIVER( bubsymph )   /* D90 (c) 1994 Taito Corporation (Japan) */
1971   DRIVER( bubsympb )   /* bootleg */
19711972   DRIVER( spcinvdj )   /* D93 (c) 1994 Taito Corporation (Japan) */
19721973   DRIVER( pwrgoal )   /* D94 (c) 1995 Taito Corporation Japan (World) */
19731974   DRIVER( hthero95 )   /* D94 (c) 1995 Taito Corporation (Japan) */
r2935r2936
24662467   DRIVER( sf2m7 )      /* hack */
24672468   DRIVER( sf2yyc )   /* hack */
24682469   DRIVER( sf2koryu )   /* hack */
2470   DRIVER( sf2mdt )   /* bootleg */
24692471   DRIVER( varth )      /* 14/07/1992 (c) 1992 (World) */
24702472   DRIVER( varthr1 )   /* 12/06/1992 (c) 1992 (World) */
24712473   DRIVER( varthu )   /* 12/06/1992 (c) 1992 (US) */
r2935r2936
24752477   DRIVER( wofa )      /* 05/10/1992 (c) 1992 (Asia)  (CPS1 + QSound) */
24762478   DRIVER( wofu )      /* 31/10/1992 (c) 1992 (US) (CPS1 + QSound) */
24772479   DRIVER( wofj )      /* 31/10/1992 (c) 1992 (Japan) (CPS1 + QSound) */
2480   DRIVER( wofhfh )   /* bootleg */
24782481   DRIVER( sf2hf )      /* 09/12/1992 (c) 1992 (World) */
24792482   DRIVER( sf2t )      /* 09/12/1992 (c) 1992 (US)    */
24802483   DRIVER( sf2tj )      /* 09/12/1992 (c) 1992 (Japan) */
r2935r2936
38143817   DRIVER( dynmcopb )   /* 1998 */
38153818   DRIVER( dyndek2b )   /* 1998 */
38163819   DRIVER( pltkids )   /* 1998 */
3820   DRIVER( waverunr )   /* 199? */
38173821
38183822   /* Model 2C-CRX (TGPx4, SCSP sound board) */
38193823   DRIVER( skisuprg )   /* 1996 */
r2935r2936
38283832
38293833   /* Step 1.0 */
38303834   DRIVER( vf3 )      /* 1996 */
3835   DRIVER( vf3a )      /* 1996 */
38313836   DRIVER( vf3tb )      /* 1996 */
38323837   DRIVER( bass )      /* 1997 */
38333838   DRIVER( getbass )   /* 1997 */
r2935r2936
38643869   DRIVER( spikeout )   /* 1998 */
38653870   DRIVER( spikeofe )   /* 1998 */
38663871   DRIVER( eca )      /* 1999 */
3872   DRIVER( ecax )      /* 1999 */
38673873
38683874
38693875   /* Deniam games */
r2935r2936
40504056   DRIVER( doa2m )
40514057   DRIVER( dybbnao )
40524058
4059   DRIVER( naomigd )
4060   DRIVER( sfz3ugd )
4061
40534062   DRIVER( naomi2 )
40544063
40554064   /* Atomiswave (Dreamcast-based) games */
40564065   DRIVER( awbios )
40574066
4067   /* Hikaru */
4068   DRIVER( hikaru )    /* BIOS (c)2000 */
4069   DRIVER( airtrix )   /* (c) 2000 */
4070   DRIVER( pharrier )   /* (c) 2001 */
4071   DRIVER( podrace )   /* (c) 2001 */
4072
40584073   DRIVER( hshavoc )   /* (c) 1993 Data East */
40594074
40604075   /* Data East "Burger Time hardware" games */
r2935r2936
72567271   DRIVER( vbowlj )   /* (c) 1996 */
72577272   DRIVER( drgnwrld )   /* (c) 1997 */
72587273   DRIVER( drgwrld3 )   /* (c) 1995 */
7274   DRIVER( chindrac )   /* (c) 1995 */
72597275
72607276   DRIVER( lordgun )   /* (c) 1994 */
72617277   DRIVER( hfh )      /* (c) 199? */
r2935r2936
81278143   DRIVER( vcombat )   /* (c) 1993 VR8 Inc. */
81288144   DRIVER( shadfgtr )   /* (c) 1989 Sega? */
81298145   DRIVER( blackt96 )   /* (c) 1996 D.G.R.M. of Korea */
8146   DRIVER( lucky74s )   /* (c) 1988 Wing */
8147   DRIVER( lucky74b )   /* (c) 1988 Wing */
81308148
81318149   /* H8/3048 italian gambling games */
81328150   DRIVER( laperla )   /* (c) 2002 Nazionale Elettronica */
src/mame/includes/phoenix.h
r2935r2936
6868READ8_HANDLER( survival_input_port_0_r );
6969READ8_HANDLER( survival_protection_r );
7070
71UINT8 survival_sid_callback( void );
71int survival_sid_callback( void );
7272
src/mame/mame.mak
r2935r2936
15771577   $(DRIVERS)/lethalj.o $(VIDEO)/lethalj.o \
15781578   $(DRIVERS)/limenko.o \
15791579   $(DRIVERS)/ltcasino.o \
1580   $(DRIVERS)/lucky74.o \
15801581   $(DRIVERS)/lucky8.o \
15811582   $(DRIVERS)/magic10.o \
15821583   $(DRIVERS)/magicfly.o \
r2935r2936
16441645   $(DRIVERS)/vroulet.o \
16451646   $(DRIVERS)/wldarrow.o \
16461647   $(DRIVERS)/xyonix.o $(VIDEO)/xyonix.o \
1648   $(DRIVERS)/hikaru.o \
16471649
16481650
16491651#-------------------------------------------------
src/mame/video/cps1.c
r2935r2936
12511251   {"sf2m7",    CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
12521252   {"sf2yyc",   CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
12531253   {"sf2koryu", CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
1254   {"sf2mdt",   CPS_B_21_DEF, mapper_S9263B, 0x36, 0, 0, 1 },
12541255   {"varth",    CPS_B_04,     mapper_VA63B },   /* CPSB test has been patched out (60=0008) register is also written to, possibly leftover from development */
12551256   {"varthr1",  CPS_B_04,     mapper_VA63B },   /* CPSB test has been patched out (60=0008) register is also written to, possibly leftover from development */
12561257   {"varthu",   CPS_B_04,     mapper_VA63B },   /* CPSB test has been patched out (60=0008) register is also written to, possibly leftover from development */
r2935r2936
12601261   {"wofa",     CPS_B_21_DEF, mapper_TK263B },   /* bootleg? */
12611262   {"wofu",     CPS_B_21_QS1, mapper_TK263B },
12621263   {"wofj",     CPS_B_21_QS1, mapper_TK263B },
1264   {"wofhfh",   CPS_B_21_DEF, mapper_TK263B }, /* Chinese bootleg */
12631265   {"dino",     CPS_B_21_QS2, mapper_CD63B },   /* layer enable never used */
12641266   {"dinou",    CPS_B_21_QS2, mapper_CD63B },   /* layer enable never used */
12651267   {"dinoj",    CPS_B_21_QS2, mapper_CD63B },   /* layer enable never used */
src/mame/video/namcos21.c
r2935r2936
298298                     depth = (zz>>10)*0x100;
299299                     pen += depth;
300300                  }
301                  else if( namcos2_gametype == NAMCOS21_DRIVERS_EYES )
302                  {
303                     depth = (zz>>10)*0x100;
304                     pen -= depth;
305                  }
301306                  else
302307                  {
303308                     depth = (zz>>11)*0x200;
r2935r2936
443448        0x4000..0x5fff  polygon palette bank1 (0x10 sets of 0x200 colors or 0x20 sets of 0x100 colors)
444449        0x6000..0x7fff  polygon palette bank2 (0x10 sets of 0x200 colors or 0x20 sets of 0x100 colors)
445450    */
446   if( namcos2_gametype == NAMCOS21_WINRUN91 ||
447       namcos2_gametype == NAMCOS21_DRIVERS_EYES )
451   if( namcos2_gametype == NAMCOS21_WINRUN91 )
448452   {
449453      color = 0x4000|(color&0xff);
450454   }
455   else if ( namcos2_gametype == NAMCOS21_DRIVERS_EYES )
456   {
457      color = 0x3f00|(color&0xff);
458   }
451459   else
452460   { /* map color code to hardware pen */
453461      int code = color>>8;
src/mame/video/namcos22.c
r2935r2936
387387static void poly3d_DrawQuad(running_machine *machine, bitmap_t *bitmap, int textureBank, int color, Poly3dVertex pv[4], UINT16 flags, int direct, int cmode )
388388{
389389   poly_extra_data *extra;
390   poly_vertex v[4], clipv[5];
390   poly_vertex v[4], clipv[6];
391391   int clipverts;
392392   int vertnum;
393393
r2935r2936
406406      clipverts = poly_zclip_if_less(4, v, clipv, 4, MIN_Z);
407407      if (clipverts < 3)
408408         return;
409      assert(clipverts <= ARRAY_LENGTH(clipv));
409410      for (vertnum = 0; vertnum < clipverts; vertnum++)
410411      {
411412         float ooz = 1.0f / clipv[vertnum].p[0];
src/mame/video/phoenix.c
r2935r2936
1616static UINT8 cocktail_mode;
1717static UINT8 pleiads_protection_question;
1818static UINT8 survival_protection_value;
19static UINT8 survival_sid_value;
19static int survival_sid_value;
2020static tilemap *fg_tilemap, *bg_tilemap;
2121static UINT8 survival_input_latches[2];
2222static UINT8 survival_input_readc;
r2935r2936
437437   return survival_protection_value;
438438}
439439
440UINT8 survival_sid_callback( void )
440int survival_sid_callback( void )
441441{
442442   return survival_sid_value;
443443}
src/mame/video/cave.c
r2935r2936
5858UINT16 *cave_vram_1, *cave_vctrl_1;
5959UINT16 *cave_vram_2, *cave_vctrl_2;
6060UINT16 *cave_vram_3, *cave_vctrl_3;
61UINT16 *cave_spriteram16_2;
6162size_t cave_paletteram_size;
6263
64
6365/* Variables only used here: */
6466
6567static tilemap *tilemap_0;
r2935r2936
564566   const UINT8  *base_gfx   =   memory_region(machine, region);
565567   int                   code_max   =   memory_region_length(machine, region) / (16*16);
566568
567   UINT16      *source         =   spriteram16 + ((spriteram_size/2) / 2) * spriteram_bank;
568   UINT16      *finish         =   source + ((spriteram_size/2) / 2);
569569
570
571   UINT16      *source;
572   UINT16      *finish;
573
570574   struct sprite_cave *sprite         =   sprite_cave;
571575
572576   int   glob_flipx   =   cave_videoregs[ 0 ] & 0x8000;
r2935r2936
575579   int max_x      =   video_screen_get_width(machine->primary_screen);
576580   int max_y      =   video_screen_get_height(machine->primary_screen);
577581
582   source = spriteram16 + ((spriteram_size/2) / 2) * spriteram_bank;
583
584   if (cave_videoregs[ 4 ] & 0x02)
585      if (cave_spriteram16_2) source = cave_spriteram16_2 + ((spriteram_size/2) / 2) * spriteram_bank;
586
587   finish = source + ((spriteram_size/2) / 2);
588
589
578590   for (; source < finish; source+=8 )
579591   {
580592      int x,y,attr,code,zoomx,zoomy,size,flipx,flipy;
r2935r2936
685697   const UINT8  *base_gfx   =   memory_region(machine, region);
686698   int                   code_max   =   memory_region_length(machine, region) / (16*16);
687699
688   UINT16      *source         =   spriteram16 + ((spriteram_size/2) / 2) * spriteram_bank;
689   UINT16      *finish         =   source + ((spriteram_size/2) / 2);
700   UINT16      *source;
701   UINT16      *finish;
690702
691703   struct sprite_cave *sprite         =   sprite_cave;
692704
r2935r2936
696708   int max_x      =   video_screen_get_width(machine->primary_screen);
697709   int max_y      =   video_screen_get_height(machine->primary_screen);
698710
711   source = spriteram16 + ((spriteram_size/2) / 2) * spriteram_bank;
712
713   if (cave_videoregs[ 4 ] & 0x02)
714      if (cave_spriteram16_2) source = cave_spriteram16_2 + ((spriteram_size/2) / 2) * spriteram_bank;
715
716   finish = source + ((spriteram_size/2) / 2);
717
699718   for (; source < finish; source+=8 )
700719   {
701720      int x,y,attr,code,size,flipx,flipy;
src/mame/video/thepit.c
r2935r2936
186186
187187WRITE8_HANDLER( thepit_flip_screen_x_w )
188188{
189   int flip;
190
189191   thepit_flip_screen_x = data & 0x01;
190192
191   tilemap_set_flip(thepit_tilemap, thepit_flip_screen_x ? TILEMAP_FLIPX : 0);
192   tilemap_set_flip(thepit_solid_tilemap, thepit_flip_screen_x ? TILEMAP_FLIPX : 0);
193   flip = thepit_flip_screen_x ? TILEMAP_FLIPX : 0;
194   if (thepit_flip_screen_y)
195      flip |= TILEMAP_FLIPY ;
196
197   tilemap_set_flip(thepit_tilemap, flip);
198   tilemap_set_flip(thepit_solid_tilemap, flip);
199
193200}
194201
195202
196203WRITE8_HANDLER( thepit_flip_screen_y_w )
197204{
205   int flip;
206
198207   thepit_flip_screen_y = data & 0x01;
199208
200   tilemap_set_flip(thepit_tilemap, thepit_flip_screen_y ? TILEMAP_FLIPY : 0);
201   tilemap_set_flip(thepit_solid_tilemap, thepit_flip_screen_y ? TILEMAP_FLIPY : 0);
209   flip = thepit_flip_screen_x ? TILEMAP_FLIPX : 0;
210   if (thepit_flip_screen_y)
211      flip |= TILEMAP_FLIPY ;
212
213   tilemap_set_flip(thepit_tilemap, flip);
214   tilemap_set_flip(thepit_solid_tilemap, flip);
215
202216}
203217
204218
r2935r2936
291305
292306   for (offs = 0; offs < 32; offs++)
293307   {
294      tilemap_set_scrolly(thepit_tilemap, offs, thepit_attributesram[offs << 1]);
295      tilemap_set_scrolly(thepit_solid_tilemap, offs, thepit_attributesram[offs << 1]);
308      int xshift = thepit_flip_screen_x ? 128 : 0;
309      int yshift = thepit_flip_screen_y ? -8 : 0;
310
311      tilemap_set_scrollx(thepit_tilemap, offs, xshift);
312      tilemap_set_scrollx(thepit_solid_tilemap, offs, xshift);
313
314      tilemap_set_scrolly(thepit_tilemap, offs, yshift + thepit_attributesram[offs << 1]);
315      tilemap_set_scrolly(thepit_solid_tilemap, offs, yshift + thepit_attributesram[offs << 1]);
296316   }
297317
298318   /* low priority tiles */
src/mame/drivers/cps1.c
r2935r2936
1010
1111  68000 clock speeds are unknown for all games (except where commented)
1212
13  todo: move the bootleg sets with modified hardware into their own
14        drivers, like fcrash.c
1315
16
1417Stephh's notes (based on the games M68000 code and some tests) :
1518
16191) 'forgottn' and clones
r2935r2936
157160#include "sound/2151intf.h"
158161#include "sound/okim6295.h"
159162#include "sound/qsound.h"
163#include "sound/msm5205.h"
160164
165
161166#include "cps1.h"       /* External CPS1 definitions */
162167
163168READ16_HANDLER( cps1_dsw_r )
r2935r2936
34673472   PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "SW(B):7" )
34683473INPUT_PORTS_END
34693474
3475static INPUT_PORTS_START( wofhfh )
3476   PORT_INCLUDE( wof )
3477
3478   PORT_MODIFY("DSWA")
3479   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )         PORT_DIPLOCATION("SW(A):1,2")
3480   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
3481   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
3482   PORT_DIPSETTING(    0x01, DEF_STR( 1C_3C ) )
3483   PORT_DIPSETTING(    0x00, DEF_STR( 1C_4C ) )
3484   PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNKNOWN )
3485
3486   PORT_MODIFY("DSWB")
3487   PORT_DIPNAME( 0x07, 0x04, DEF_STR( Difficulty ) )      PORT_DIPLOCATION("SW(B):1,2,3")
3488   PORT_DIPSETTING(    0x07, "Extra Easy" )
3489   PORT_DIPSETTING(    0x06, DEF_STR( Very_Easy) )
3490   PORT_DIPSETTING(    0x05, DEF_STR( Easy) )
3491   PORT_DIPSETTING(    0x04, DEF_STR( Normal) )
3492   PORT_DIPSETTING(    0x03, DEF_STR( Hard) )
3493   PORT_DIPSETTING(    0x02, DEF_STR( Very_Hard) )
3494   PORT_DIPSETTING(    0x01, "Extra Hard" )
3495   PORT_DIPSETTING(    0x00, DEF_STR( Hardest) )
3496   PORT_DIPNAME( 0x70, 0x60, DEF_STR( Lives ) )         PORT_DIPLOCATION("SW(B):4,5,6")
3497   PORT_DIPSETTING(    0x00, "Start 4 Continue 5" )
3498   PORT_DIPSETTING(    0x10, "Start 3 Continue 4" )
3499   PORT_DIPSETTING(    0x20, "Start 2 Continue 3" )
3500   PORT_DIPSETTING(    0x30, "Start 1 Continue 2" )
3501   PORT_DIPSETTING(    0x40, "Start 4 Continue 4" )
3502   PORT_DIPSETTING(    0x50, "Start 3 Continue 3" )
3503   PORT_DIPSETTING(    0x60, "Start 2 Continue 2" )
3504   PORT_DIPSETTING(    0x70, "Start 1 Continue 1" )
3505   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
3506
3507   PORT_MODIFY("DSWC")
3508   PORT_DIPNAME( 0x03, 0x03, "Coin Slots" )         PORT_DIPLOCATION("SW(C):1,2")
3509//  PORT_DIPSETTING(    0x00, "2 Players 1 Shooter" )
3510   PORT_DIPSETTING(    0x01, "2 Players 1 Shooter" )
3511   PORT_DIPSETTING(    0x02, "3 Players 1 Shooter" )
3512   PORT_DIPSETTING(    0x03, "3 Players 3 Shooters" )
3513   PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNKNOWN )
3514
3515   PORT_MODIFY("IN1")
3516   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
3517   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
3518   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
3519   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
3520   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
3521   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
3522   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
3523   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
3524   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
3525   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
3526   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
3527   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
3528   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
3529   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
3530   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
3531   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
3532
3533   PORT_MODIFY("IN2")      /* Player 3 */
3534   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3)
3535   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3)
3536   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3)
3537   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(3)
3538   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3)
3539   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3)
3540//  PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3)
3541   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 )
3542   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 )
3543INPUT_PORTS_END
3544
3545
34703546/*
34713547A Final Fight board with mismatched USA and Japan GFX proves that the columns
34723548of the 8x8 tilemap alternate between sides of the 16x16 tile resulting
r2935r2936
36463722   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
36473723MACHINE_DRIVER_END
36483724
3725static MACHINE_DRIVER_START( wofhfh )
3726
3727   /* basic machine hardware */
3728   MDRV_IMPORT_FROM(cps1_12MHz)
3729
3730   MDRV_NVRAM_HANDLER(qsound)
3731MACHINE_DRIVER_END
3732
3733/* incomplete */
3734static ADDRESS_MAP_START( sf2mdt_z80map, ADDRESS_SPACE_PROGRAM, 8 )
3735   AM_RANGE(0x0000, 0xcfff) AM_ROM
3736   AM_RANGE(0xd000, 0xd7ff) AM_RAM
3737ADDRESS_MAP_END
3738
3739static void m5205_int1(running_machine *machine, int data)
3740{
3741//  MSM5205_data_w(0, sample_buffer1 & 0x0F);
3742//  sample_buffer1 >>= 4;
3743//  sample_select1 ^= 1;
3744//  if (sample_select1 == 0)
3745//      cpunum_set_input_line(machine, 1, INPUT_LINE_NMI, PULSE_LINE);
3746}
3747
3748static void m5205_int2(running_machine *machine, int data)
3749{
3750//  MSM5205_data_w(1, sample_buffer2 & 0x0F);
3751//  sample_buffer2 >>= 4;
3752//  sample_select2 ^= 1;
3753}
3754
3755static const struct MSM5205interface msm5205_interface1 =
3756{
3757   m5205_int1,   /* interrupt function */
3758   MSM5205_S96_4B      /* 4KHz 4-bit */
3759};
3760
3761static const struct MSM5205interface msm5205_interface2 =
3762{
3763   m5205_int2,   /* interrupt function */
3764   MSM5205_S96_4B      /* 4KHz 4-bit */
3765};
3766
3767static MACHINE_DRIVER_START( sf2mdt )
3768
3769   /* basic machine hardware */
3770   MDRV_CPU_ADD_TAG("main", M68000, 12000000)
3771   MDRV_CPU_PROGRAM_MAP(main_map,0)
3772   MDRV_CPU_VBLANK_INT("main", cps1_interrupt)
3773
3774   MDRV_CPU_ADD_TAG("sound", Z80, 3579545)
3775   /* audio CPU */
3776   MDRV_CPU_PROGRAM_MAP(sf2mdt_z80map,0)
3777
3778   /* video hardware */
3779   MDRV_SCREEN_ADD("main", RASTER)
3780   MDRV_SCREEN_REFRESH_RATE(60)
3781   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
3782   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
3783   MDRV_SCREEN_SIZE(64*8, 32*8)
3784   MDRV_SCREEN_VISIBLE_AREA(8*8, (64-8)*8-1, 2*8, 30*8-1 )
3785
3786   MDRV_GFXDECODE(cps1)
3787   MDRV_PALETTE_LENGTH(0xc00)
3788
3789   MDRV_VIDEO_START(cps1)
3790   MDRV_VIDEO_EOF(cps1)
3791   MDRV_VIDEO_UPDATE(cps1)
3792
3793   /* sound hardware */
3794   MDRV_SPEAKER_STANDARD_MONO("mono")
3795
3796   MDRV_SOUND_ADD_TAG("2151", YM2151, 3579545)
3797   MDRV_SOUND_CONFIG(ym2151_interface)
3798   MDRV_SOUND_ROUTE(0, "mono", 0.35)
3799   MDRV_SOUND_ROUTE(1, "mono", 0.35)
3800
3801   /* has 2x MSM5205 instead of OKI6295 */
3802   MDRV_SOUND_ADD(MSM5205, 24000000/64)   /* ? */
3803   MDRV_SOUND_CONFIG(msm5205_interface1)
3804   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
3805
3806   MDRV_SOUND_ADD(MSM5205, 24000000/64)   /* ? */
3807   MDRV_SOUND_CONFIG(msm5205_interface2)
3808   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
3809MACHINE_DRIVER_END
3810
36493811#endif
36503812
36513813
r2935r2936
59456107   ROM_LOAD( "kd19.bin",      0x20000, 0x20000, CRC(92941b80) SHA1(5fa7c2793e6febee54a83042d118ddd4f2b7d127) )
59466108ROM_END
59476109
6110/*
6111CPU
6112
61131x TS68000CP12 (main)
61141x TPC1020AFN-084C
61151x Z8400BB1-Z80CPU (sound)
61161x YM2151 (sound)
61171x YM3012A (sound)
61181x OKI-M6295 (sound)
61192x LM324N (sound)
61201x TDA2003 (sound)
61211x oscillator 10.0 MHz
61221x oscillator 22.1184 MHz
6123
6124ROMs
6125
61261x AM27C512 (1)(sound)
61271x AM27C020 (2)(sound)
61282x AM27C040 (3,4)(main)
61291x Am27C040 (bp)(gfx)
61307x maskrom (ai,bi,ci,di,ap,cp,dp)(gfx)
61311x GAL20V8A (not dumped)
61323x GAL16V8A (not dumped)
61331x PALCE20V8H (not dumped)
61341x GAL20V8S (not dumped)
6135
6136Note
6137
61381x JAMMA edge connector
61391x trimmer (volume)
61403x 8 switches dip
6141
6142*/
6143
59486144ROM_START( kodb )
59496145   ROM_REGION( CODE_SIZE, REGION_CPU1, 0 )      /* 68000 code */
5950   ROM_LOAD16_BYTE( "kod.17",    0x00000, 0x080000, CRC(036dd74c) SHA1(489344e56863429e86b4c362b82d89819c1d6afb) )
5951   ROM_LOAD16_BYTE( "kod.18",    0x00001, 0x080000, CRC(3e4b7295) SHA1(3245640bae7d141238051dfe5c7683d05c6d3848) )
6146   ROM_LOAD16_BYTE( "3.ic172",    0x00000, 0x080000, CRC(036dd74c) SHA1(489344e56863429e86b4c362b82d89819c1d6afb) )
6147   ROM_LOAD16_BYTE( "4.ic171",    0x00001, 0x080000, CRC(3e4b7295) SHA1(3245640bae7d141238051dfe5c7683d05c6d3848) )
59526148
59536149   ROM_REGION( 0x400000, REGION_GFX1, 0 )
5954   ROMX_LOAD( "kod02.rom",    0x000000, 0x80000, CRC(e45b8701) SHA1(604e39e455e81695ee4f899f102d0bcd789cedd0) , ROM_GROUPWORD | ROM_SKIP(6) )
5955   ROMX_LOAD( "kod04.rom",    0x000002, 0x80000, CRC(a7750322) SHA1(3c583496a53cd64edf377db35f7f40f02b59b7e7) , ROM_GROUPWORD | ROM_SKIP(6) )
5956   ROMX_LOAD( "kod01.rom",    0x000004, 0x80000, CRC(5f74bf78) SHA1(b7c43eea9bf77a0fb571dcd53f8be719e6655fd9) , ROM_GROUPWORD | ROM_SKIP(6) )
5957   ROMX_LOAD( "kod03.rom",    0x000006, 0x80000, CRC(5e5303bf) SHA1(d9f90b898ffdf4398b2bbeb48247f06f728e7c00) , ROM_GROUPWORD | ROM_SKIP(6) )
5958   ROMX_LOAD( "kod11.rom",    0x200000, 0x80000, CRC(113358f3) SHA1(9d98eafa74a046f65bf3847fe1d88ea1b0c82b0c) , ROM_GROUPWORD | ROM_SKIP(6) )
5959   ROMX_LOAD( "kod13.rom",    0x200002, 0x80000, CRC(38853c44) SHA1(a6e552fb0138a76a7878b90d202904e2b44ae7ec) , ROM_GROUPWORD | ROM_SKIP(6) )
5960   ROMX_LOAD( "kod10.rom",    0x200004, 0x80000, CRC(9ef36604) SHA1(b42ca0a910b65e1e7bb6e7d734e853ce67e821bf) , ROM_GROUPWORD | ROM_SKIP(6) )
5961   ROMX_LOAD( "kod12.rom",    0x200006, 0x80000, CRC(402b9b4f) SHA1(4c11976976eadf1ad293b31b0a4d047d05032b06) , ROM_GROUPWORD | ROM_SKIP(6) )
6150   ROMX_LOAD( "cp.ic90",   0x000000, 0x80000, CRC(e3b8589e) SHA1(775f97e43cb995b93da40063a1f1e4d73b34437c), ROM_SKIP(7) )
6151   ROMX_LOAD( "dp.ic89",   0x000001, 0x80000, CRC(3eec9580) SHA1(3d8d0cfbeae077544e514a5eb96cc83f716e494f), ROM_SKIP(7) )
6152   ROMX_LOAD( "ap.ic88",   0x000002, 0x80000, CRC(fdf5f163) SHA1(271ee96886c958accaca9a82484ab80fe32bd38e), ROM_SKIP(7) )
6153   ROMX_LOAD( "bp.ic87",   0x000003, 0x80000, CRC(4e1c52b7) SHA1(74570e7d577c999c62203c97b3d449e3b61a678a), ROM_SKIP(7) )
6154   ROMX_LOAD( "ci.ic91",   0x000004, 0x80000, CRC(22228bc5) SHA1(d48a09ee284d9e4b986f5c3c1c865930f76986e2), ROM_SKIP(7) )
6155   ROMX_LOAD( "di.ic92",   0x000005, 0x80000, CRC(ab031763) SHA1(5bcd89b1debf029b779aa1bb73b3a572d27154ec), ROM_SKIP(7) )
6156   ROMX_LOAD( "ai.ic93",   0x000006, 0x80000, CRC(cffbf4be) SHA1(f805bafc855d4a656c055a76eaeb26e36835541e), ROM_SKIP(7) )
6157   ROMX_LOAD( "bi.ic94",   0x000007, 0x80000, CRC(4a1b43fe) SHA1(7957f45b2862825c9509043c63c7da7108bd251b), ROM_SKIP(7) )
59626158
59636159   ROM_REGION( 0x8000, REGION_GFX2, 0 )
59646160   ROM_COPY( REGION_GFX1, 0x000000, 0x000000, 0x8000 )   /* stars */
59656161
59666162   ROM_REGION( 0x18000, REGION_CPU2, 0 ) /* 64k for the audio CPU (+banks) */
5967   ROM_LOAD( "kod.15",        0x00000, 0x08000, CRC(01cae60c) SHA1(b2cdd883fd859f0b701230831aca1f1a74ad6087) )
6163   ROM_LOAD( "1.ic28",        0x00000, 0x08000, CRC(01cae60c) SHA1(b2cdd883fd859f0b701230831aca1f1a74ad6087) )
59686164   ROM_CONTINUE(              0x10000, 0x08000 )
59696165
59706166   ROM_REGION( 0x40000, REGION_SOUND1, 0 )   /* Samples */
5971   ROM_LOAD( "kd18.bin",      0x00000, 0x20000, CRC(4c63181d) SHA1(270f27534a95cb0be3ff3f9ca71c502320d8090b) )
5972   ROM_LOAD( "kd19.bin",      0x20000, 0x20000, CRC(92941b80) SHA1(5fa7c2793e6febee54a83042d118ddd4f2b7d127) )
6167   ROM_LOAD( "2.ic19",      0x00000, 0x40000, CRC(a2db1575) SHA1(1a4a29e4b045af50700adf1665697feab12cc234) )
59736168ROM_END
59746169
59756170/* B-Board 91635B */
r2935r2936
68347029   ROM_LOAD( "s92_19.bin",    0x20000, 0x20000, CRC(beade53f) SHA1(277c397dc12752719ec6b47d2224750bd1c07f79) )
68357030ROM_END
68367031
7032/*
7033CPU
7034
70351x MC68000P12 (main)
70361x TPC1020AFN-084C (main)
70371x Z0840006PSC-Z80CPU (sound)
70381x YM2151 (sound)
70391x YM3012 (sound)
70402x M5205 (sound)
70412x LM324N (sound)
70421x TDA2003 (sound)
70431x oscillator 24.000000MHz
70441x oscillator 30.000MHz
7045ROMs
7046
704714x AM27C040 (1,3,6,7,8,9,10,11,12,13,14,15,16,17)
70483x TMS27C010A (2,4,5)
70493x PAL 16S20 (ic7,ic72, ic80) (read protected, not dumped)
70503x GAL20V8A (ic120, ic121, ic169) (read protected, not dumped)
7051
7052Note
7053
70541x JAMMA edge connector
70551x trimmer (volume)
70563x 8x2 switches dip
7057
7058*/
7059
7060ROM_START( sf2mdt )
7061   ROM_REGION( CODE_SIZE, REGION_CPU1, 0 )      /* 68000 code */
7062   ROM_LOAD16_BYTE( "3.ic172",   0x000000, 0x80000, CRC(5301b41f) SHA1(6855a57b21e8c5d74e5cb18f9ce6af650d7fb422) )
7063   ROM_LOAD16_BYTE( "1.ic171",   0x000001, 0x80000, CRC(c1c803f6) SHA1(9fe18ae2553a63d8e4dcc20bafd5a4634f8b93c4) )
7064   ROM_LOAD16_BYTE( "4.ic176",   0x100000, 0x20000, CRC(1073b7b6) SHA1(81ca1eab65ceac69520584bb23a684ccb9d92f89) )
7065   ROM_LOAD16_BYTE( "2.ic175",   0x100001, 0x20000, CRC(924c6ce2) SHA1(676a912652bd75da5087f0c7eae047b7681a993c) )
7066
7067   ROM_REGION( 0x600000, REGION_GFX1, 0 ) /* rearranged in init */
7068   ROMX_LOAD( "7.ic90",    0x000000, 0x80000, CRC(896eaf48) SHA1(5a13ae8b554e05eed3d5749aaf5845d499bce45b) , ROM_GROUPWORD | ROM_SKIP(6) )
7069   ROMX_LOAD( "10.ic88",   0x000002, 0x80000, CRC(ef3f5be8) SHA1(d4e1de7d7caf6977e48544d6701618ae70c717f9) , ROM_GROUPWORD | ROM_SKIP(6) )
7070   ROMX_LOAD( "13.ic89",   0x000004, 0x80000, CRC(305dd72a) SHA1(c373b517c23f3b019abb06e21f6b9ab6e1e47909) , ROM_GROUPWORD | ROM_SKIP(6) )
7071   ROMX_LOAD( "16.ic87",   0x000006, 0x80000, CRC(e57f6db9) SHA1(b37f95737804002ec0e237472eaacf0bc1e868e8) , ROM_GROUPWORD | ROM_SKIP(6) )
7072   ROMX_LOAD( "6.ic91",    0x200000, 0x80000, CRC(054cd5c4) SHA1(07f275e118c141a84ca15a2e9edc81694af37cf2) , ROM_GROUPWORD | ROM_SKIP(6) )
7073   ROMX_LOAD( "9.ic93",    0x200002, 0x80000, CRC(818ca33d) SHA1(dfb707e17c83216f8a62e905f8c7cd6d406b417b) , ROM_GROUPWORD | ROM_SKIP(6) )
7074   ROMX_LOAD( "12.ic92",   0x200004, 0x80000, CRC(87e069e8) SHA1(cddd3be84f8379134590bfbbb080518f28120e49) , ROM_GROUPWORD | ROM_SKIP(6) )
7075   ROMX_LOAD( "15.ic94",   0x200006, 0x80000, CRC(5dfb44d1) SHA1(08e44b8efc84f9cfc829aabf704155ddc700de76) , ROM_GROUPWORD | ROM_SKIP(6) )
7076   ROMX_LOAD( "8.ic86",    0x400000, 0x80000, CRC(34bbb3fa) SHA1(7794e89258f12b17d38c3d302dc15c502a8c8eb6) , ROM_GROUPWORD | ROM_SKIP(6) )
7077   ROMX_LOAD( "11.ic84",   0x400002, 0x80000, CRC(cea6d1d6) SHA1(9c953db42f0d877e43c0c239f69a00df39a18295) , ROM_GROUPWORD | ROM_SKIP(6) )
7078   ROMX_LOAD( "14.ic85",   0x400004, 0x80000, CRC(7d9f1a67) SHA1(6deb7fff867c42b13a32bb11eda798cfdb4cbaa8) , ROM_GROUPWORD | ROM_SKIP(6) )
7079   ROMX_LOAD( "17.ic83",   0x400006, 0x80000, CRC(91a9a05d) SHA1(5266ceddd2df925e79b4200843dec2f7aa9297b3) , ROM_GROUPWORD | ROM_SKIP(6) )
7080
7081   ROM_REGION( 0x8000, REGION_GFX2, 0 )
7082   ROM_COPY( REGION_GFX1, 0x000000, 0x000000, 0x8000 )   /* stars */
7083
7084   ROM_REGION( 0x28000, REGION_CPU2, 0 ) /* Sound program + samples  */
7085   ROM_LOAD( "5.ic26",    0x00000, 0x08000, CRC(17d5ba8a) SHA1(6ff3b8860d7e1fdee3561846f645eb4d3a8965ec) )
7086   ROM_CONTINUE(              0x10000, 0x18000 )
7087ROM_END
7088
68377089/* B-Board 89624B */
68387090ROM_START( varth )
68397091   ROM_REGION( CODE_SIZE, REGION_CPU1, 0 )      /* 68000 code */
r2935r2936
71107362   ROM_LOAD( "tk2_q4.rom",     0x180000, 0x80000, CRC(36642e88) SHA1(8ab25b19e2b67215a5cb1f3aa81b9d26009cfeb8) )
71117363ROM_END
71127364
7365/* Chinese bootleg board without QSound */
7366ROM_START( wofhfh )
7367   ROM_REGION( CODE_SIZE, REGION_CPU1, 0 )      /* 68000 code */
7368   ROM_LOAD16_WORD_SWAP( "23",       0x000000, 0x80000, CRC(6ae4b312) SHA1(fa39f69385d180d90bccd8c5dc9262edd04a6457) )
7369   ROM_LOAD16_WORD_SWAP( "22",       0x080000, 0x80000, CRC(94e8d01a) SHA1(875763f6b22734c1a5a890e6c8063515c134045b) )
7370
7371   ROM_REGION( 0x400000, REGION_GFX1, 0 )
7372   ROMX_LOAD( "1",   0x000000, 0x80000, CRC(0d9cb9bf) SHA1(cc7140e9a01a14b252cb1090bcea32b0de461928) , ROM_GROUPWORD | ROM_SKIP(6) )
7373   ROMX_LOAD( "2",   0x000002, 0x80000, CRC(45227027) SHA1(b21afc593f0d4d8909dfa621d659cbb40507d1b2) , ROM_GROUPWORD | ROM_SKIP(6) )
7374   ROMX_LOAD( "3",   0x000004, 0x80000, CRC(c5ca2460) SHA1(cbe14867f7b94b638ca80db7c8e0c60881183469) , ROM_GROUPWORD | ROM_SKIP(6) )
7375   ROMX_LOAD( "4",   0x000006, 0x80000, CRC(e349551c) SHA1(1d977bdf256accf750ad9930ec4a0a19bbf86964) , ROM_GROUPWORD | ROM_SKIP(6) )
7376   ROMX_LOAD( "5",   0x200000, 0x80000, CRC(34949d7b) SHA1(90925a77b08c97cfdbf0dbfbdaa359d1b33b6ae4) , ROM_GROUPWORD | ROM_SKIP(6) )
7377   ROMX_LOAD( "6",   0x200002, 0x80000, CRC(dfa70971) SHA1(477b99687de38220f0aec9fbba44db03f72cb62a) , ROM_GROUPWORD | ROM_SKIP(6) )
7378   ROMX_LOAD( "7",   0x200004, 0x80000, CRC(073686a6) SHA1(b774a8d4c6cdbedb123ac01455f718305f23b619) , ROM_GROUPWORD | ROM_SKIP(6) )
7379   ROMX_LOAD( "8",   0x200006, 0x80000, CRC(5300f8db) SHA1(b23a19910f680d60ff8afcbc15c471e74ee3569a) , ROM_GROUPWORD | ROM_SKIP(6) )
7380
7381   ROM_REGION( 0x8000, REGION_GFX2, 0 )
7382   ROM_COPY( REGION_GFX1, 0x000000, 0x000000, 0x8000 )   /* stars */
7383
7384   ROM_REGION( 0x28000, REGION_CPU2, 0 ) /* 128k for the audio CPU (+banks) */
7385   ROM_LOAD( "9",              0x00000, 0x08000, CRC(86fe8a97) SHA1(cab82bcd0f49bcb40201b439cfdd10266f46752a) )
7386   ROM_CONTINUE(               0x10000, 0x18000 )
7387
7388   ROM_REGION( 0x40000, REGION_SOUND1, 0 ) /* samples */
7389   ROM_LOAD( "18",             0x00000, 0x20000, CRC(c04be720) SHA1(2e544e0a0358b6afbdf826d35d9c4c59e4787a93) )
7390   ROM_LOAD( "19",             0x20000, 0x20000, CRC(fbb8d8c1) SHA1(8a7689bb7ed56243333133cbacf01a0ae825201e) )
7391ROM_END
7392
7393
7394
71137395ROM_START( sf2hf )
71147396   ROM_REGION( CODE_SIZE, REGION_CPU1, 0 )      /* 68000 code */
71157397   ROM_LOAD16_WORD_SWAP( "s92e_23a.bin",  0x000000, 0x80000, CRC(2DD72514) SHA1(4411353c389669299c27ac183c7e1caa3d4cec90) )
r2935r2936
82088490}
82098491#endif
82108492
8493static READ16_HANDLER( sf2mdt_r )
8494{
8495   return 0xffff;
8496}
82118497
8498static DRIVER_INIT( sf2mdt )
8499{
8500   int i;
8501   UINT32 gfx_size = memory_region_length( machine, REGION_GFX1 );
8502   UINT8 *rom = memory_region( machine, REGION_GFX1 );
8503   UINT8 tmp;
8504
8505   for( i = 0; i < gfx_size; i += 8 )
8506   {
8507      tmp = rom[i+1];
8508      rom[i+1] = rom[i+4];
8509      rom[i+4] = tmp;
8510      tmp = rom[i+3];
8511      rom[i+3] = rom[i+6];
8512      rom[i+6] = tmp;
8513   }
8514   memory_install_read16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x70c01a, 0x70c01b, 0, 0, sf2mdt_r);
8515   memory_install_read16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x70c01c, 0x70c01d, 0, 0, sf2mdt_r);
8516   memory_install_read16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x70c01e, 0x70c01f, 0, 0, sf2mdt_r);
8517   memory_install_read16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x70c010, 0x70c011, 0, 0, sf2mdt_r);
8518   memory_install_read16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x70c018, 0x70c019, 0, 0, sf2mdt_r);
8519
8520   driver_init_cps1(machine);
8521}
8522
8523
82128524GAME( 1988, forgottn, 0,        cps1_10MHz, forgottn, forgottn, ROT0,   "Capcom", "Forgotten Worlds (US)", 0 )
82138525GAME( 1988, forgott1, forgottn, cps1_10MHz, forgottn, forgottn, ROT0,   "Capcom", "Forgotten Worlds (World?)", GAME_NOT_WORKING )
82148526GAME( 1988, lostwrld, forgottn, cps1_10MHz, forgottn, forgottn, ROT0,   "Capcom", "Lost Worlds (Japan)", 0 )
r2935r2936
82838595GAME( 1992, sf2ceub,  sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "Capcom", "Street Fighter II' - Champion Edition (US 920513)", 0 )
82848596GAME( 1992, sf2ceuc,  sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "Capcom", "Street Fighter II' - Champion Edition (US 920803)", 0 )
82858597GAME( 1992, sf2cej,   sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "Capcom", "Street Fighter II' - Champion Edition (Japan 920513)", 0 )
8286GAME( 1992, sf2rb,    sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (Rainbow set 1)" , 0)   // 920322 - based on World version
8287GAME( 1992, sf2rb2,   sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (Rainbow set 2)" , 0)   // 920322 - based on World version
8288GAME( 1992, sf2red,   sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (Red Wave)" , 0)      // 920313 - based on World version
8289GAME( 1992, sf2v004,  sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II! - Champion Edition (V004)", 0 )         // "102092" !!! - based on (heavily modified) World version
8290GAME( 1992, sf2accp2, sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (Accelerator Pt.II)" , 0)  // 920313 - based on USA version
8291GAME( 1992, sf2m1,    sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (M1)", GAME_NOT_WORKING )
8292GAME( 1992, sf2m2,    sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (M2)", GAME_NOT_WORKING )
8293GAME( 1992, sf2m3,    sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (M3)", GAME_NOT_WORKING )
8294GAME( 1992, sf2m4,    sf2ce,    cps1_12MHz, sf2j,     sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (M4)", 0 )
8295GAME( 1992, sf2m5,    sf2ce,    cps1_12MHz, sf2,      sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (M5)", 0 )
8296GAME( 1992, sf2m6,    sf2ce,    cps1_12MHz, sf2,      sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (M6)", 0 )
8297GAME( 1992, sf2m7,    sf2ce,    cps1_12MHz, sf2,      sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (M7)", 0 )
8298GAME( 1992, sf2yyc,   sf2ce,    cps1_12MHz, sf2,      sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (YYC)", 0 )
8299GAME( 1992, sf2koryu, sf2ce,    cps1_12MHz, sf2,      sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (Kouryu)", 0 )
8598GAME( 1992, sf2rb,    sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (Rainbow set 1, bootleg)" , 0)   // 920322 - based on World version
8599GAME( 1992, sf2rb2,   sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (Rainbow set 2, bootleg)" , 0)   // 920322 - based on World version
8600GAME( 1992, sf2red,   sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (Red Wave, bootleg)" , 0)      // 920313 - based on World version
8601GAME( 1992, sf2v004,  sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II! - Champion Edition (V004, bootleg)", 0 )         // "102092" !!! - based on (heavily modified) World version
8602GAME( 1992, sf2accp2, sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (Accelerator Pt.II, bootleg)" , 0)  // 920313 - based on USA version
8603GAME( 1992, sf2m1,    sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (M1, bootleg)", GAME_NOT_WORKING )
8604GAME( 1992, sf2m2,    sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (M2, bootleg)", GAME_NOT_WORKING )
8605GAME( 1992, sf2m3,    sf2ce,    cps1_12MHz, sf2,      cps1,     ROT0,   "bootleg","Street Fighter II' - Champion Edition (M3, bootleg)", GAME_NOT_WORKING )
8606GAME( 1992, sf2m4,    sf2ce,    cps1_12MHz, sf2j,     sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (M4, bootleg)", 0 )
8607GAME( 1992, sf2m5,    sf2ce,    cps1_12MHz, sf2,      sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (M5, bootleg)", 0 )
8608GAME( 1992, sf2m6,    sf2ce,    cps1_12MHz, sf2,      sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (M6, bootleg)", 0 )
8609GAME( 1992, sf2m7,    sf2ce,    cps1_12MHz, sf2,      sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (M7, bootleg)", 0 )
8610GAME( 1992, sf2yyc,   sf2ce,    cps1_12MHz, sf2,      sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (YYC, bootleg)", 0 )
8611GAME( 1992, sf2koryu, sf2ce,    cps1_12MHz, sf2,      sf2hack,  ROT0,   "bootleg","Street Fighter II' - Champion Edition (Xiang Long, Chinese bootleg)", 0 )
8612GAME( 1992, sf2mdt,   sf2ce,    sf2mdt,     sf2,      sf2mdt,   ROT0,   "bootleg","Street Fighter II' - Champion Edition (Magic Delta Turbo, bootleg)", GAME_NOT_WORKING|GAME_NO_SOUND ); // heavily modified, different sound & gfx hardware
83008613GAME( 1992, varth,    0,        cps1_12MHz, varth,    cps1,     ROT270, "Capcom", "Varth - Operation Thunderstorm (World 920714)" , 0)      // "ETC"    12MHz not verified but game slows down at 10MHz
83018614GAME( 1992, varthr1,  varth,    cps1_12MHz, varth,    cps1,     ROT270, "Capcom", "Varth - Operation Thunderstorm (World 920612)" , 0)      // "ETC"
83028615GAME( 1992, varthu,   varth,    cps1_12MHz, varth,    cps1,     ROT270, "Capcom (Romstar license)", "Varth - Operation Thunderstorm (US 920612)", 0 )
r2935r2936
83108623GAME( 1995, qtono2,   0,        cps1_12MHz, qtono2,   cps1,     ROT0,   "Capcom", "Quiz Tonosama no Yabou 2 Zenkoku-ban (Japan 950123)", 0 )
83118624GAME( 1995, megaman,  0,        cps1_12MHz, megaman,  cps1,     ROT0,   "Capcom", "Mega Man - The Power Battle (CPS1 Asia 951006)", 0 )
83128625GAME( 1995, rockmanj, megaman,  cps1_12MHz, rockmanj, cps1,     ROT0,   "Capcom", "Rockman - The Power Battle (CPS1 Japan 950922)", 0 )
8313
83148626GAME( 1992, wof,      0,        qsound,     wof,      wof,      ROT0,   "Capcom", "Warriors of Fate (World 921002)" , 0)            // "ETC"
83158627GAME( 1992, wofa,     wof,      qsound,     wof,      wof,      ROT0,   "Capcom", "Sangokushi II (Asia 921005)" , 0)               // World "warning"
83168628GAME( 1992, wofu,     wof,      qsound,     wof,      wof,      ROT0,   "Capcom", "Warriors of Fate (US 921031)" , 0)               // World "warning"
83178629GAME( 1992, wofj,     wof,      qsound,     wof,      wof,      ROT0,   "Capcom", "Tenchi wo Kurau II - Sekiheki no Tatakai (Japan 921031)", 0 )
8630GAME( 1999, wofhfh,   wof,      wofhfh,     wofhfh,   cps1,     ROT0,   "bootleg","Sangokushi II: Huo Fenghuang (Chinese bootleg)", 0 )
83188631GAME( 1993, dino,     0,        qsound,     dino,     dino,     ROT0,   "Capcom", "Cadillacs and Dinosaurs (World 930201)" , 0)         // "ETC"
83198632GAME( 1993, dinou,    dino,     qsound,     dino,     dino ,    ROT0,   "Capcom", "Cadillacs and Dinosaurs (US 930201)", 0 )
83208633GAME( 1993, dinoj,    dino,     qsound,     dino,     dino ,    ROT0,   "Capcom", "Cadillacs Kyouryuu-Shinseiki (Japan 930201)", 0 )
src/mame/drivers/model2.c
r2935r2936
31423142   ROM_LOAD("mpr-18244.35", 0x0600000, 0x200000, CRC(bfa75beb) SHA1(fec89260d887e90ee9c2803e2eaf937cf9bfa10b) )
31433143ROM_END
31443144
3145/* Wave Runner */
3146ROM_START( waverunr )
3147   ROM_REGION( 0x200000, REGION_CPU1, 0 ) // i960 program
3148   ROM_LOAD32_WORD("epr-19282a.15", 0x000000, 0x080000, CRC(5df58604) SHA1(a136bb80746f37450be51f98ca60791b4022035d) )
3149   ROM_LOAD32_WORD("epr-19283a.16", 0x000002, 0x080000, CRC(bca188e1) SHA1(428f156f60e61ef314b7b50474abddf6d4dc2aca) )
3150
3151   ROM_REGION32_LE( 0x2000000, REGION_USER1, 0 ) // Data
3152   ROM_LOAD32_WORD("mpr-19291.11",    0x0000000, 0x400000, CRC(54431d67) SHA1(25e25d9ecf3b3b1c8f5e017243cc5e02f7a13015) )
3153   ROM_LOAD32_WORD("mpr-19292.12",    0x0000002, 0x400000, CRC(9152d979) SHA1(0e86e21e1c88263c548e03bce48ed4ce75643596) )
3154   ROM_LOAD32_WORD("mpr-19293.9",     0x0800000, 0x400000, CRC(b168bea9) SHA1(0497e886ccd5e5ef0cd8670200bf4cf64d9bfc2b) )
3155   ROM_LOAD32_WORD("mpr-19294.10",    0x0800002, 0x400000, CRC(c731e659) SHA1(a898b03d66973a49deb9799102ab1faf4384c376) )
3156   ROM_LOAD32_WORD("epr-19278.7",     0x1000000, 0x080000, CRC(29ed421d) SHA1(c91eb2d68acd6ded394e0bd9f504cbb8f421c3ed) )
3157   ROM_LOAD32_WORD("epr-19279.8",     0x1000002, 0x080000, CRC(6ae9f899) SHA1(da46379cabe5f151160b2558e255e9b64eaca22e) )
3158   ROM_COPY( REGION_USER1, 0x1000000, 0x1100000, 0x100000 )
3159   ROM_COPY( REGION_USER1, 0x1000000, 0x1200000, 0x100000 )
3160   ROM_COPY( REGION_USER1, 0x1000000, 0x1300000, 0x100000 )
3161   ROM_COPY( REGION_USER1, 0x1000000, 0x1400000, 0x100000 )
3162   ROM_COPY( REGION_USER1, 0x1000000, 0x1500000, 0x100000 )
3163   ROM_COPY( REGION_USER1, 0x1000000, 0x1600000, 0x100000 )
3164   ROM_COPY( REGION_USER1, 0x1000000, 0x1700000, 0x100000 )
3165   ROM_COPY( REGION_USER1, 0x1000000, 0x1800000, 0x100000 )
3166   ROM_COPY( REGION_USER1, 0x1000000, 0x1900000, 0x100000 )
3167   ROM_COPY( REGION_USER1, 0x1000000, 0x1a00000, 0x100000 )
3168   ROM_COPY( REGION_USER1, 0x1000000, 0x1b00000, 0x100000 )
3169   ROM_COPY( REGION_USER1, 0x1000000, 0x1c00000, 0x100000 )
3170   ROM_COPY( REGION_USER1, 0x1000000, 0x1d00000, 0x100000 )
3171   ROM_COPY( REGION_USER1, 0x1000000, 0x1e00000, 0x100000 )
3172   ROM_COPY( REGION_USER1, 0x1000000, 0x1f00000, 0x100000 )
3173
3174   ROM_REGION( 0x800000, REGION_USER5, 0 ) // Coprocessor Data ROM
3175   ROM_LOAD32_WORD("epr-19280.29", 0x000000, 0x080000, CRC(c6b59fb9) SHA1(909663f440d19a34591d1f9707972c313e34f909) )
3176   ROM_LOAD32_WORD("epr-19281.30", 0x000002, 0x080000, CRC(5a6110e7) SHA1(39ba8a35fdcfdd6c88b44ab392ca0e958da44767) )
3177
3178   ROM_REGION( 0x2000000, REGION_USER2, 0 ) // Models
3179   ROM_LOAD32_WORD("mpr-19287.17", 0x0000000, 0x400000, CRC(203b9e45) SHA1(8e677a106ceb9355632fadbdb837dc4a23c83684) )
3180   ROM_LOAD32_WORD("mpr-19288.21", 0x0000002, 0x400000, CRC(4a488e4d) SHA1(1e680680354d873c515c955256b0e4e72451326a))
3181   ROM_LOAD32_WORD("mpr-19289.18", 0x0800000, 0x400000, CRC(35361cb3) SHA1(f36033765c93274a1bcdd311fb2026aa2a8a0e42) )
3182   ROM_LOAD32_WORD("mpr-19290.22", 0x0800002, 0x400000, CRC(67300826) SHA1(6e6bf7c709202221e03a06d9e53147d67ab4404f) )
3183   ROM_LOAD32_WORD("epr-19304.19", 0x1000000, 0x080000, CRC(1a7d9521) SHA1(2fdb9344441c625c3841dfc62e424ddaf16416d5) )
3184   ROM_LOAD32_WORD("epr-19305.23", 0x1000002, 0x080000, CRC(00412412) SHA1(93db2c6d672c5c4bf1623edad8d4237c65c4f4e1) )
3185   ROM_COPY( REGION_USER2, 0x1000000, 0x1100000, 0x100000 )
3186   ROM_COPY( REGION_USER2, 0x1000000, 0x1200000, 0x100000 )
3187   ROM_COPY( REGION_USER2, 0x1000000, 0x1300000, 0x100000 )
3188   ROM_COPY( REGION_USER2, 0x1000000, 0x1400000, 0x100000 )
3189   ROM_COPY( REGION_USER2, 0x1000000, 0x1500000, 0x100000 )
3190   ROM_COPY( REGION_USER2, 0x1000000, 0x1600000, 0x100000 )
3191   ROM_COPY( REGION_USER2, 0x1000000, 0x1700000, 0x100000 )
3192   ROM_COPY( REGION_USER2, 0x1000000, 0x1800000, 0x100000 )
3193   ROM_COPY( REGION_USER2, 0x1000000, 0x1900000, 0x100000 )
3194   ROM_COPY( REGION_USER2, 0x1000000, 0x1a00000, 0x100000 )
3195   ROM_COPY( REGION_USER2, 0x1000000, 0x1b00000, 0x100000 )
3196   ROM_COPY( REGION_USER2, 0x1000000, 0x1c00000, 0x100000 )
3197   ROM_COPY( REGION_USER2, 0x1000000, 0x1d00000, 0x100000 )
3198   ROM_COPY( REGION_USER2, 0x1000000, 0x1e00000, 0x100000 )
3199
3200   ROM_REGION( 0x1000000, REGION_USER3, 0 ) // Textures
3201   ROM_LOAD32_WORD("mpr-19286.27", 0x000000, 0x400000, CRC(3ccc33cb) SHA1(1fe53306e370da724df5caace720107798fb24b9) )
3202   ROM_LOAD32_WORD("mpr-19285.25", 0x000002, 0x400000, CRC(a070fbd0) SHA1(2b5441b9d7d613b0a90dfea243e9de44980d219d) )
3203   ROM_LOAD32_WORD("epr-19303.28", 0x800000, 0x080000, CRC(fcffc8a0) SHA1(f4b776028f581329effa583022d8d65e889b6b0a) )
3204   ROM_LOAD32_WORD("epr-19302.26", 0x800002, 0x080000, CRC(bd00933a) SHA1(572b49a4d0189d0513c27753e3563909d1977f03) )
3205   ROM_COPY( REGION_USER3, 0x800000, 0x900000, 0x100000 )
3206   ROM_COPY( REGION_USER3, 0x800000, 0xa00000, 0x100000 )
3207   ROM_COPY( REGION_USER3, 0x800000, 0xb00000, 0x100000 )
3208   ROM_COPY( REGION_USER3, 0x800000, 0xc00000, 0x100000 )
3209   ROM_COPY( REGION_USER3, 0x800000, 0xd00000, 0x100000 )
3210   ROM_COPY( REGION_USER3, 0x800000, 0xe00000, 0x100000 )
3211   ROM_COPY( REGION_USER3, 0x800000, 0xf00000, 0x100000 )
3212
3213   ROM_REGION( 0x100000, REGION_CPU2, 0 ) // Sound program
3214   ROM_LOAD16_WORD_SWAP("epr-19284.31", 0x080000,  0x40000, CRC(efe5f0f3) SHA1(5e36fc7cca92e2eab7d65434cb39597505a2f8cf) )
3215
3216   ROM_REGION( 0x800000, REGION_SOUND1, 0 ) // Samples
3217   ROM_LOAD("mpr-19295.32", 0x0000000, 0x400000, CRC(b14eeb09) SHA1(2a6d1b14ea3c031cad9905e4b9b6973755689ee1) )
3218   ROM_LOAD("mpr-19296.34", 0x0400000, 0x400000, CRC(b4b9faff) SHA1(3a258e0f7c642d043cbab5f94dfe69fac8561e93) )
3219ROM_END
3220
3221
31453222/*
31463223Behind Enemy Lines
31473224Sega, 1998
r2935r2936
40764153}
40774154
40784155// Model 2 (TGPs, Model 1 sound board)
4079GAME( 1993, daytona,         0, model2o, daytona, 0,        ROT0, "Sega", "Daytona USA (Japan)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4156GAME( 1993, daytona,         0, model2o, daytona, 0,        ROT0, "Sega", "Daytona USA (Japan) (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40804157GAME( 1993, daytonas,  daytona, model2o, daytona, 0,        ROT0, "Sega", "Daytona USA (With Saturn Adverts)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40814158GAME( 1993, daytonat,  daytona, model2o, daytona, 0,        ROT0, "Sega", "Daytona USA (Japan, Turbo hack)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40824159GAME( 1993, daytonam,  daytona, model2o, daytona, daytonam, ROT0, "Sega", "Daytona USA (Japan, To The MAXX)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
r2935r2936
40844161GAME( 1994, vcop,            0, model2o, daytona, 0,        ROT0, "Sega", "Virtua Cop", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40854162
40864163// Model 2A-CRX (TGPs, SCSP sound board)
4087GAME( 1995, manxtt,          0, model2a, model2, 0,       ROT0, "Sega", "Manx TT Superbike", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4164GAME( 1995, manxtt,          0, model2a, model2, 0,       ROT0, "Sega", "Manx TT Superbike (Revision C)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40884165GAME( 1995, motoraid,        0, model2a, model2, 0,       ROT0, "Sega", "Motoraid", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40894166GAME( 1995, srallyc,         0, model2a, model2, 0,       ROT0, "Sega", "Sega Rally Championship", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40904167GAME( 1995, vf2,             0, model2a, model2, 0,       ROT0, "Sega", "Virtua Fighter 2 (ver 2.1)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4091GAME( 1995, vf2b,          vf2, model2a, model2, 0,       ROT0, "Sega", "Virtua Fighter 2 (ver B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4168GAME( 1995, vf2b,          vf2, model2a, model2, 0,       ROT0, "Sega", "Virtua Fighter 2 (Revision B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40924169GAME( 1995, vf2o,          vf2, model2a, model2, 0,       ROT0, "Sega", "Virtua Fighter 2", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40934170GAME( 1995, vcop2,           0, model2a, model2, 0,       ROT0, "Sega", "Virtua Cop 2", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40944171GAME( 1995, skytargt,        0, model2a, model2, 0,       ROT0, "Sega", "Sky Target", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4095GAME( 1996, doaa,          doa, model2a, model2, doa,     ROT0, "Sega", "Dead or Alive (Model 2A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4172GAME( 1996, doaa,          doa, model2a, model2, doa,     ROT0, "Sega", "Dead or Alive (Model 2A) (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40964173GAME( 1997, zeroguna,  zerogun, model2a, model2, zerogun, ROT0, "Psikyo", "Zero Gunner (Model 2A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40974174GAME( 1998, dynamcop,        0, model2a, model2, genprot, ROT0, "Sega", "Dynamite Cop (Export, Model 2A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
40984175GAME( 1998, dyndeka2, dynamcop, model2a, model2, genprot, ROT0, "Sega", "Dynamite Deka 2 (Japan, Model 2A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
r2935r2936
41164193GAME( 1997, zerogunj,  zerogun, model2b, model2, zerogun, ROT0, "Psikyo", "Zero Gunner (Japan Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
41174194GAME( 1998, dynmcopb, dynamcop, model2b, model2, genprot, ROT0, "Sega", "Dynamite Cop (Export, Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
41184195GAME( 1998, dyndek2b, dynamcop, model2b, model2, genprot, ROT0, "Sega", "Dynamite Deka 2 (Japan, Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4119GAME( 1998, pltkids,         0, model2b, model2, pltkids, ROT0, "Psikyo", "Pilot Kids (Model 2B)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4196GAME( 1998, pltkids,         0, model2b, model2, pltkids, ROT0, "Psikyo", "Pilot Kids (Model 2B) (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4197GAME( 199?, waverunr,        0, model2b, model2, 0,       ROT0, "Sega", "Wave Runner (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
41204198
41214199// Model 2C-CRX (TGPx4, SCSP sound board)
41224200GAME( 1996, skisuprg,        0, model2c, model2, 0, ROT0, "Sega", "Sega Ski Super G", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4123GAME( 1996, stcc,            0, model2c, model2, 0, ROT0, "Sega", "Sega Touring Car Championship", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4201GAME( 1996, stcc,            0, model2c, model2, 0, ROT0, "Sega", "Sega Touring Car Championship (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
41244202GAME( 1997, hotd,            0, model2c, model2, 0, ROT0, "Sega", "House of the Dead", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4125GAME( 1997, overrev,         0, model2c, model2, 0, ROT0, "Jaleco", "Over Rev", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4126GAME( 1997, topskatr,        0, model2c, model2, 0, ROT0, "Sega", "Top Skater", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4203GAME( 1997, overrev,         0, model2c, model2, 0, ROT0, "Jaleco", "Over Rev (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
4204GAME( 1997, topskatr,        0, model2c, model2, 0, ROT0, "Sega", "Top Skater (Revision A)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
41274205GAME( 1998, bel,             0, model2c, bel,    0, ROT0, "Sega/EPL Productions", "Behind Enemy Lines", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
41284206GAME( 1998, dynmcopc, dynamcop, model2c, model2, 0, ROT0, "Sega", "Dynamite Cop (USA, Model 2C)", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
41294207
src/mame/drivers/model3.c
r2935r2936
14721472            }
14731473            return data;
14741474         }
1475         else if (mame_stricmp(machine->gamedrv->name, "eca") == 0)
1475         else if (mame_stricmp(machine->gamedrv->name, "eca") == 0 ||
1476                mame_stricmp(machine->gamedrv->name, "ecax") == 0)
14761477         {
14771478            UINT64 data = (UINT64)eca_prot_data[prot_data_ptr++] << 16;
14781479            if (prot_data_ptr >= 0x31)
r2935r2936
18151816ROM_START( lemans24 )   /* step 1.5 */
18161817   ROM_REGION64_BE( 0x4800000, REGION_USER1, 0 ) /* program + data ROMs */
18171818   // CROM
1818   ROM_LOAD64_WORD_SWAP( "epr-19887.17", 0x600006, 0x080000, CRC(2842bb87) SHA1(2acabf3f7281acaf6bab4d3bae9701df3909cf81) )
1819       ROM_LOAD64_WORD_SWAP( "epr-19887.17", 0x600006, 0x080000, CRC(2842bb87) SHA1(2acabf3f7281acaf6bab4d3bae9701df3909cf81) )
18191820        ROM_LOAD64_WORD_SWAP( "epr-19888.18", 0x600004, 0x080000, CRC(800d763d) SHA1(4f2865a64d6dda638840d359db3bd2f22b6d1404) )
18201821        ROM_LOAD64_WORD_SWAP( "epr-19889.19", 0x600002, 0x080000, CRC(d1f7e44c) SHA1(5faad711cf39c0fb10c3b9ccce25f5219ddd5a17) )
18211822        ROM_LOAD64_WORD_SWAP( "epr-19890.20", 0x600000, 0x080000, CRC(9c16c3cc) SHA1(f1fba0c7cbdf7ddc4224356d50fdabea612c129d) )
r2935r2936
21522153        ROM_LOAD_VROM( "mpr-19226.41",   0x00000c, 0x200000, CRC(00091722) SHA1(ef86db36b4b91a66b3e401c3c91735b9d28da2e2) )
21532154
21542155   ROM_REGION( 0x100000, REGION_CPU2, 0 )   /* 68000 code */
2155        ROM_LOAD16_WORD_SWAP( "epr-19231.21",   0x080000, 0x020000, CRC(f2ae2558) SHA1(7ab5fc508ffd1b0c9f3e70f4d3edeae44e3a0dc4) )
2156        ROM_LOAD16_WORD_SWAP( "epr19231.21",   0x080000, 0x080000, CRC(b416fe96) SHA1(b508eb6802072a8d4f8fdc7ca4fba6c6a4aaadae) )
21562157
21572158   // Samples
21582159   ROM_REGION( 0x800000, REGION_SOUND1, 0 )   /* SCSP samples */
r2935r2936
21692170      ROM_FILL( 0x000000, 0x80000, 0 )
21702171ROM_END
21712172
2173ROM_START( vf3a )   /* step 1.0 */
2174   ROM_REGION64_BE( 0x4800000, REGION_USER1, 0 ) /* program + data ROMs */
2175   // CROM
2176        ROM_LOAD64_WORD_SWAP( "epr19227a.17",  0x600006, 0x080000, CRC(7139931a) SHA1(57eec80361726143017b1adbfaafbeef0bc4109d) )
2177        ROM_LOAD64_WORD_SWAP( "epr19228a.18",  0x600004, 0x080000, CRC(82f17ab5) SHA1(64714d14e64d97ebeedd1c6e1e832969df9e2324) )
2178        ROM_LOAD64_WORD_SWAP( "epr19229a.19",  0x600002, 0x080000, CRC(5f1404b8) SHA1(434b0900a33704190285a6db45e9391b2bda2152) )
2179        ROM_LOAD64_WORD_SWAP( "epr19230a.20",  0x600000, 0x080000, CRC(4dff78ed) SHA1(4d687479fc1fcce10ed7417555c003a546f64390) )
2180
2181   // CROM0
2182        ROM_LOAD64_WORD_SWAP( "mpr-19193.1",    0x800006, 0x400000, CRC(7bab33d2) SHA1(243a09959f3c4311070f1de760ee63958cd47660) )
2183        ROM_LOAD64_WORD_SWAP( "mpr-19194.2",    0x800004, 0x400000, CRC(66254702) SHA1(843ac4f6791f312f3138f8f38d38c8e4d2bab305) )
2184        ROM_LOAD64_WORD_SWAP( "mpr-19195.3",    0x800002, 0x400000, CRC(bd5e27a3) SHA1(778c67bf7b5c7e3ae52fe12308a81b095563f52b) )
2185        ROM_LOAD64_WORD_SWAP( "mpr-19196.4",    0x800000, 0x400000, CRC(f386b850) SHA1(168d21382359acb8f1d52d722de8c6b9a9210378) )
2186
2187   // CROM1
2188        ROM_LOAD64_WORD_SWAP( "mpr-19197.5",   0x1800006, 0x400000, CRC(a22d76c9) SHA1(ad2d67a62436ccc6479e2a218ab09d2fc22c367d) )
2189        ROM_LOAD64_WORD_SWAP( "mpr-19198.6",   0x1800004, 0x400000, CRC(d8ee5032) SHA1(3e9274142874ace76dba2bc9b5351cfdfb3a50cd) )
2190        ROM_LOAD64_WORD_SWAP( "mpr-19199.7",   0x1800002, 0x400000, CRC(9f80d6fe) SHA1(97b9076d413e28d00e9c45fcc7dad6f534ca8874) )
2191        ROM_LOAD64_WORD_SWAP( "mpr-19200.8",   0x1800000, 0x400000, CRC(74941091) SHA1(914db3955f355779147d86446f5976121191ea6d) )
2192
2193   // CROM2
2194        ROM_LOAD64_WORD_SWAP( "mpr-19201.9",   0x2800006, 0x400000, CRC(7c4a8c31) SHA1(473b7bef932d7d54a5dc06bd80d286f2e2e96d44) )
2195        ROM_LOAD64_WORD_SWAP( "mpr-19202.10",  0x2800004, 0x400000, CRC(aaa086c6) SHA1(01871c8e5454aed80e907fde199cfb23a57aa1c2) )
2196        ROM_LOAD64_WORD_SWAP( "mpr-19203.11",  0x2800002, 0x400000, CRC(0afa6334) SHA1(1bb70e823fb6e05df069cbfafed2e57bda8776b9) )
2197        ROM_LOAD64_WORD_SWAP( "mpr-19204.12",  0x2800000, 0x400000, CRC(2f93310a) SHA1(3dfc5b72a78967d7772da4098adb41f18b5294d4) )
2198
2199   // CROM3
2200        ROM_LOAD64_WORD_SWAP( "mpr-19205.13",  0x3800006, 0x400000, CRC(199c328e) SHA1(1ef1f09ff1f5253bf03e06c5b6e42be9599b9ea5) )
2201        ROM_LOAD64_WORD_SWAP( "mpr-19206.14",  0x3800004, 0x400000, CRC(71a98d73) SHA1(dda617f9f5f986e3369fa3d3090c423eefdf913c) )
2202        ROM_LOAD64_WORD_SWAP( "mpr-19207.15",  0x3800002, 0x400000, CRC(2ce1612d) SHA1(736f559d460f0069c7a2d5ba7cddf9135737d6e2) )
2203        ROM_LOAD64_WORD_SWAP( "mpr-19208.16",  0x3800000, 0x400000, CRC(08f30f71) SHA1(393525b19cdecddfbd62c6209203db5f3edfd9a8) )
2204
2205   // mirror CROM0 to CROM
2206   ROM_COPY(REGION_USER1, 0x800000, 0x000000, 0x600000)
2207
2208   ROM_REGION( 0x1000000, REGION_USER3, ROMREGION_DISPOSE )  /* Video ROMs Part 1 */
2209        ROM_LOAD_VROM( "mpr-19211.26",   0x000002, 0x200000, CRC(9c8f5df1) SHA1(d47c8bd0189c8e617a3ed9f75ee3812a229f56c0) )
2210        ROM_LOAD_VROM( "mpr-19212.27",   0x000000, 0x200000, CRC(75036234) SHA1(01a20a6a62408017bff8f2e76dbd21c00275bc70) )
2211        ROM_LOAD_VROM( "mpr-19213.28",   0x000006, 0x200000, CRC(67b123cf) SHA1(b84c4f83c25edcc8ac929d3f9cf51da713045071) )
2212        ROM_LOAD_VROM( "mpr-19214.29",   0x000004, 0x200000, CRC(a6f5576b) SHA1(e994b3ef8e6eb07e8f3bbe474410c06d6c42354b) )
2213        ROM_LOAD_VROM( "mpr-19215.30",   0x00000a, 0x200000, CRC(c6fd9f0d) SHA1(1f3299706d6ac73836c069a7ed2866d412f60369) )
2214        ROM_LOAD_VROM( "mpr-19216.31",   0x000008, 0x200000, CRC(201bb1ed) SHA1(7ffd72ff56159529d74f01f8da0ba4798f109806) )
2215        ROM_LOAD_VROM( "mpr-19217.32",   0x00000e, 0x200000, CRC(4dadd41a) SHA1(7a1e0908962afcfc737132478c0e45d153d94ecb) )
2216        ROM_LOAD_VROM( "mpr-19218.33",   0x00000c, 0x200000, CRC(cff91953) SHA1(41e95704a65958377c3bbd9d00d90a5ad4552f66) )
2217
2218   ROM_REGION( 0x1000000, REGION_USER4, ROMREGION_DISPOSE )  /* Video ROMs Part 2 */
2219        ROM_LOAD_VROM( "mpr-19219.34",   0x000002, 0x200000, CRC(c610d521) SHA1(cb146fe78d89176e9dd5c773644614cdc2ef57ce) )
2220        ROM_LOAD_VROM( "mpr-19220.35",   0x000000, 0x200000, CRC(e62924d0) SHA1(4d1ac11a5977a4e9cf942c9f1204960c0a895347) )
2221        ROM_LOAD_VROM( "mpr-19221.36",   0x000006, 0x200000, CRC(24f83e3c) SHA1(c587428fa47e849881bf45487af086db6b09264e) )
2222        ROM_LOAD_VROM( "mpr-19222.37",   0x000004, 0x200000, CRC(61a6aa7d) SHA1(cc26020b2f904f68822111073b595ee0cc8b2e0c) )
2223        ROM_LOAD_VROM( "mpr-19223.38",   0x00000a, 0x200000, CRC(1a8c1980) SHA1(43b8efb019c8a20fe38f95050fe60dfe9bf322f0) )
2224        ROM_LOAD_VROM( "mpr-19224.39",   0x000008, 0x200000, CRC(0a79a1bd) SHA1(1df71cf77ea8611462380a449eb99199664b3da3) )
2225        ROM_LOAD_VROM( "mpr-19225.40",   0x00000e, 0x200000, CRC(91a985eb) SHA1(5a842a260e4a78f5463222db44f13b068fa70b23) )
2226        ROM_LOAD_VROM( "mpr-19226.41",   0x00000c, 0x200000, CRC(00091722) SHA1(ef86db36b4b91a66b3e401c3c91735b9d28da2e2) )
2227
2228   ROM_REGION( 0x100000, REGION_CPU2, 0 )   /* 68000 code */
2229        ROM_LOAD16_WORD_SWAP( "epr19231.21",   0x080000, 0x080000, CRC(b416fe96) SHA1(b508eb6802072a8d4f8fdc7ca4fba6c6a4aaadae) )
2230
2231   // Samples
2232   ROM_REGION( 0x800000, REGION_SOUND1, 0 )   /* SCSP samples */
2233        ROM_LOAD( "mpr-19209.22",   0x000000, 0x400000, CRC(3715e38c) SHA1(b11dbf8a5840990e9697c53b4796cd70ad91f6a1) )
2234        ROM_LOAD( "mpr-19210.24",   0x400000, 0x400000, CRC(c03d6502) SHA1(4ca49fe5dd5105ca5f78f4740477beb64137d4be) )
2235
2236   ROM_REGION( 0x20000, REGION_CPU3, 0 )   /* Z80 code */
2237      ROM_FILL( 0x000000, 0x20000, 0 )
2238
2239   ROM_REGION( 0x800000, REGION_SOUND2, 0 )   /* DSB samples */
2240      ROM_FILL( 0x000000, 0x800000, 0 )
2241
2242   ROM_REGION( 0x80000, REGION_SOUND3, 0 )      /* second SCSP's RAM */
2243      ROM_FILL( 0x000000, 0x80000, 0 )
2244ROM_END
2245
21722246ROM_START( vf3tb )   /* step 1.0? */
21732247   ROM_REGION64_BE( 0x4800000, REGION_USER1, 0 ) /* program + data ROMs */
21742248   // CROM
r2935r2936
22252299        ROM_LOAD_VROM( "mpr-19226.41",   0x00000c, 0x200000, CRC(00091722) SHA1(ef86db36b4b91a66b3e401c3c91735b9d28da2e2) )
22262300
22272301   ROM_REGION( 0x100000, REGION_CPU2, 0 )   /* 68000 code */
2228        ROM_LOAD16_WORD_SWAP( "epr-19231.21",   0x080000, 0x020000, CRC(f2ae2558) SHA1(7ab5fc508ffd1b0c9f3e70f4d3edeae44e3a0dc4) )
2302        ROM_LOAD16_WORD_SWAP( "epr19231.21",   0x080000, 0x080000, CRC(b416fe96) SHA1(b508eb6802072a8d4f8fdc7ca4fba6c6a4aaadae) )
22292303
22302304   // Samples
22312305   ROM_REGION( 0x800000, REGION_SOUND1, 0 )   /* SCSP samples */
r2935r2936
24342508
24352509   // Samples
24362510   ROM_REGION( 0x800000, REGION_SOUND1, 0 )   /* SCSP samples */
2437        ROM_LOAD( "mpr-19934.22",     0x000000, 0x200000, CRC(661b09d0) SHA1(cc4a30aa9fe17964808a7ae967de8f64da36379a) )
2438        ROM_LOAD( "mpr-19935.24",     0x200000, 0x200000, CRC(6436e483) SHA1(f81b846e7898ec0172b50d74bb7f9062b81f38a8) )
2439        ROM_LOAD( "mpr-19934.22",     0x400000, 0x200000, CRC(661b09d0) SHA1(cc4a30aa9fe17964808a7ae967de8f64da36379a) )
2440        ROM_LOAD( "mpr-19935.24",     0x600000, 0x200000, CRC(6436e483) SHA1(f81b846e7898ec0172b50d74bb7f9062b81f38a8) )
2511        ROM_LOAD( "mpr19934.22",     0x000000, 0x400000, CRC(c7d8e194) SHA1(1d6a864a6f242219d13d5f96086a7d59c0e96e31) )
2512        ROM_LOAD( "mpr19935.24",     0x400000, 0x400000, CRC(91c1b618) SHA1(36573304e9a7f19e17b31a69de9b25d9893bc2dc) )
24412513
24422514
24432515   ROM_REGION( 0x20000, REGION_CPU3, 0 )   /* Z80 code */
r2935r2936
39944066      ROM_FILL( 0x000000, 0x80000, 0 )
39954067ROM_END
39964068
4069
4070
4071
4072ROM_START( ecax )   /* Step 2.1 */
4073   ROM_REGION64_BE( 0x4800000, REGION_USER1, 0 ) /* program + data ROMs */
4074   // CROM
4075        ROM_LOAD64_WORD_SWAP( "epr22903.17", 0x000006, 0x200000, CRC(53882217) SHA1(163cbc92ff88671882cc1af377ceec80ba9f36db) )
4076        ROM_LOAD64_WORD_SWAP( "epr22904.18", 0x000004, 0x200000, CRC(0ff828a8) SHA1(2a74414891ceb5989e6ccb6e9d597f7d2e31fec4) ) // == epr22896.18
4077        ROM_LOAD64_WORD_SWAP( "epr22905.19", 0x000002, 0x200000, CRC(9755dd8c) SHA1(41f27a303f4af179f17520d0c2d6a0aa4467aae8) ) // == epr22897.19
4078        ROM_LOAD64_WORD_SWAP( "epr22906.20", 0x000000, 0x200000, CRC(7f6426fc) SHA1(b16e6f76cb35db05138aa807e3477a82139b291d) )
4079
4080   // CROM0
4081        ROM_LOAD64_WORD_SWAP( "mpr22870.1",   0x800006, 0x400000, CRC(52054043) SHA1(f07c1f95a5847393c9e640c10cd14e2a3750b3ff) )
4082        ROM_LOAD64_WORD_SWAP( "mpr22871.2",   0x800004, 0x400000, CRC(cf5bb5b5) SHA1(fd056fcf9a48854faa357014c2cb4a6ed301c3a6) )
4083        ROM_LOAD64_WORD_SWAP( "mpr22872.3",   0x800002, 0x400000, CRC(4fde63a1) SHA1(72f88e514caea28eeee9e57e55c835c490465df0) )
4084        ROM_LOAD64_WORD_SWAP( "mpr22873.4",   0x800000, 0x400000, CRC(dd406330) SHA1(e17ed1814cb84820f19922eef27bbad65be1d355) )
4085
4086   // CROM1
4087        ROM_LOAD64_WORD_SWAP( "mpr22874.5",  0x1800006, 0x400000, CRC(5e990497) SHA1(f0df52a19a11ef23f82e88eddbacdcb2a6357ded) )
4088        ROM_LOAD64_WORD_SWAP( "mpr22875.6",  0x1800004, 0x400000, CRC(1bb5c018) SHA1(5d0146c32f6a50613340ba0d2f5cc5430b595965) )
4089        ROM_LOAD64_WORD_SWAP( "mpr22876.7",  0x1800002, 0x400000, CRC(a7561249) SHA1(b4217cb088234831ca2e9486af849866790bf704) )
4090        ROM_LOAD64_WORD_SWAP( "mpr22877.8",  0x1800000, 0x400000, CRC(e53b8764) SHA1(03756ef0526aa0b56c2944336590918d8ff9a9b8) )
4091
4092   // CROM3
4093        ROM_LOAD64_WORD_SWAP( "epr22882.13", 0x3800006, 0x400000, CRC(b161416f) SHA1(753810fa4db80a2d3a333a257dc92095a112d282) )
4094        ROM_LOAD64_WORD_SWAP( "epr22883.14", 0x3800004, 0x400000, CRC(86d90148) SHA1(4336efb9e3d62cc5e8073993c44cbe49141d987f) )
4095        ROM_LOAD64_WORD_SWAP( "epr22884.15", 0x3800002, 0x400000, CRC(254c3b63) SHA1(b5cd94ecbffb6f0da70fb2cb7541d5bfc96cb67c) )
4096        ROM_LOAD64_WORD_SWAP( "epr22885.16", 0x3800000, 0x400000, CRC(3525b46d) SHA1(d7914cd5c558b50b9115303f77bef63e04316b29) )
4097
4098   ROM_REGION( 0x2000000, REGION_USER3, ROMREGION_DISPOSE )  /* Video ROMs Part 1 */
4099        ROM_LOAD_VROM( "mpr22854.26",  0x000002, 0x400000, CRC(97a23d16) SHA1(17a11a3e1b1806f7b994955ae22dd0e5333d47ea) )
4100        ROM_LOAD_VROM( "mpr22855.27",  0x000000, 0x400000, CRC(7249cdc9) SHA1(4bd07d911382cc569e09fb888858806d06809f9f) )
4101        ROM_LOAD_VROM( "mpr22856.28",  0x000006, 0x400000, CRC(9c0d1d1b) SHA1(f15c756fb262e15d784328ed3f731aea40797d98) )
4102        ROM_LOAD_VROM( "mpr22857.29",  0x000004, 0x400000, CRC(44e6ce2b) SHA1(03a33417dc96d3ddcbeb92422654f75f620ef265) )
4103        ROM_LOAD_VROM( "mpr22858.30",  0x00000a, 0x400000, CRC(0af40aae) SHA1(1af762e09af932d267b860712fa46eaf4b1500ac) )
4104        ROM_LOAD_VROM( "mpr22859.31",  0x000008, 0x400000, CRC(c64f0158) SHA1(b92dba07e52b4fdabc9bd4bbd26cc41cdab0414d) )
4105        ROM_LOAD_VROM( "mpr22860.32",  0x00000e, 0x400000, CRC(053af14b) SHA1(6d13609e52a4999d6dca3c4da695ebd973b06b7e) )
4106        ROM_LOAD_VROM( "mpr22861.33",  0x00000c, 0x400000, CRC(d26343da) SHA1(9d8c860c388cc2434cc8d753cde139096c12e79e) )
4107
4108   ROM_REGION( 0x2000000, REGION_USER4, ROMREGION_DISPOSE )  /* Video ROMs Part 2 */
4109        ROM_LOAD_VROM( "mpr22862.34",  0x000002, 0x400000, CRC(38347c14) SHA1(6222a5001d3a6ed8e8ff3010284658dbc69edee6) )
4110        ROM_LOAD_VROM( "mpr22863.35",  0x000000, 0x400000, CRC(28b558e6) SHA1(9b4849499baebbd2ea81d00663dff0d40c9db602) )
4111        ROM_LOAD_VROM( "mpr22864.36",  0x000006, 0x400000, CRC(31ed02f6) SHA1(a669aa8a42ff70562c86f348fcf4be6f14c2f650) )
4112        ROM_LOAD_VROM( "mpr22865.37",  0x000004, 0x400000, CRC(3e3a211a) SHA1(422f960914a6604de59b110b18f3e67ed9116f22) )
4113        ROM_LOAD_VROM( "mpr22866.38",  0x00000a, 0x400000, CRC(a863a3c8) SHA1(52e13b76a3698deef05df4c607d047e6362d81c0) )
4114        ROM_LOAD_VROM( "mpr22867.39",  0x000008, 0x400000, CRC(1ce6c7b2) SHA1(d5fd49f9838d3dc636366c436c507ac2b4f2596e) )
4115        ROM_LOAD_VROM( "mpr22868.40",  0x00000e, 0x400000, CRC(2db40cf8) SHA1(be1e04aeb5034c2edc5c0ad153700c385a1b773a) )
4116        ROM_LOAD_VROM( "mpr22869.41",  0x00000c, 0x400000, CRC(c6d62634) SHA1(72d493653b50fb31333f70c7ee143a8c7531106f) )
4117
4118   ROM_REGION( 0x100000, REGION_CPU2, 0 )   /* 68000 code */
4119        ROM_LOAD16_WORD_SWAP( "epr22886.21",  0x080000, 0x080000, CRC(374ec1c6) SHA1(b06e678db191971f6701bd1f739815d00d4cfb3e) )
4120
4121   // Samples
4122   ROM_REGION( 0x1000000, REGION_SOUND1, 0 )   /* SCSP samples */
4123        ROM_LOAD( "mpr22887.22",  0x000000, 0x400000, CRC(7d04a867) SHA1(053de98105880188b4daff183710d7932617547f) )
4124        ROM_LOAD( "mpr22889.24",  0x400000, 0x400000, CRC(4f9ba45d) SHA1(d60314e852637edf6510be52b9b6576a1f3e1b7e) )
4125        ROM_LOAD( "mpr22888.23",  0x800000, 0x400000, CRC(018fcf22) SHA1(c5133358f591d699f177617463e7dfa22edf5369) )
4126        ROM_LOAD( "mpr22890.25",  0xc00000, 0x400000, CRC(b638bd7c) SHA1(ed9c69175fd0ca4c6f22e542b4e68398a6e4ad07) )
4127
4128   ROM_REGION( 0x20000, REGION_CPU3, 0 )   /* Z80 code */
4129      ROM_FILL( 0x000000, 0x20000, 0 )
4130
4131   ROM_REGION( 0x1000000, REGION_SOUND2, 0 )   /* DSB samples */
4132      ROM_FILL( 0x000000, 0x1000000, 0 )
4133
4134   ROM_REGION( 0x80000, REGION_SOUND3, 0 )      /* second SCSP's RAM */
4135      ROM_FILL( 0x000000, 0x80000, 0 )
4136ROM_END
4137
4138
39974139/* Model 3 sound board emulation */
39984140
39994141static WRITE16_HANDLER( model3snd_ctrl )
r2935r2936
46274769
46284770
46294771/* Model 3 Step 1.0 */
4630GAME( 1996, vf3,            0, model3_10, model3,        vf3, ROT0, "Sega", "Virtua Fighter 3", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4772GAME( 1996, vf3,            0, model3_10, model3,        vf3, ROT0, "Sega", "Virtua Fighter 3 (Revision C)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4773GAME( 1996, vf3a,         vf3, model3_10, model3,        vf3, ROT0, "Sega", "Virtua Fighter 3 (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46314774GAME( 1996, vf3tb,        vf3, model3_10, model3,  model3_10, ROT0, "Sega", "Virtua Fighter 3 Team Battle", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46324775GAME( 1997, bass,           0, model3_10, bass,         bass, ROT0, "Sega", "Sega Bass Fishing", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46334776GAME( 1997, getbass,     bass, model3_10, bass,      getbass, ROT0, "Sega", "Get Bass", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
r2935r2936
46354778/* Model 3 Step 1.5 */
46364779GAME( 1996, scud,           0, model3_15, scud,         scud, ROT0, "Sega", "Scud Race (Australia)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46374780GAME( 1996, scuda,       scud, model3_15, scud,         scud, ROT0, "Sega", "Scud Race (Export)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4638GAME( 1997, scudp,       scud, model3_15, scud,        scudp, ROT0, "Sega", "Scud Race Plus", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4781GAME( 1997, scudp,       scud, model3_15, scud,        scudp, ROT0, "Sega", "Scud Race Plus (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46394782GAME( 1997, lostwsga,       0, model3_15, lostwsga, lostwsga, ROT0, "Sega", "The Lost World", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46404783GAME( 1997, vs215,        vs2, model3_15, model3,      vs215, ROT0, "Sega", "Virtua Striker 2 (Step 1.5)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46414784GAME( 1997, lemans24,       0, model3_15, scud,     lemans24, ROT0, "Sega", "LeMans 24", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
r2935r2936
46434786
46444787/* Model 3 Step 2.0 */
46454788GAME( 1997, vs2,            0, model3_20, model3,        vs2, ROT0, "Sega", "Virtua Striker 2 (Step 2.0)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4646GAME( 1997, harley,         0, model3_20, harley,     harley, ROT0, "Sega", "Harley-Davidson and L.A. Riders", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4789GAME( 1997, harley,         0, model3_20, harley,     harley, ROT0, "Sega", "Harley-Davidson and L.A. Riders (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46474790GAME( 1998, skichamp,       0, model3_20, skichamp, skichamp, ROT0, "Sega", "Ski Champ", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46484791GAME( 1998, srally2,        0, model3_20, scud,      srally2, ROT0, "Sega", "Sega Rally 2", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46494792GAME( 1998, sraly2dx,       0, model3_20, scud,      srally2, ROT0, "Sega", "Sega Rally 2 DX", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4650GAME( 1998, von2,           0, model3_20, model3,       von2, ROT0, "Sega", "Virtual On 2: Oratorio Tangram", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4793GAME( 1998, von2,           0, model3_20, model3,       von2, ROT0, "Sega", "Virtual On 2: Oratorio Tangram (Revision B)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46514794GAME( 1998, von254g,     von2, model3_20, model3,  model3_20, ROT0, "Sega", "Virtual On 2: Oratorio Tangram (ver 5.4g)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4652GAME( 1998, fvipers2,       0, model3_20, model3,  model3_20, ROT0, "Sega", "Fighting Vipers 2", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4795GAME( 1998, fvipers2,       0, model3_20, model3,  model3_20, ROT0, "Sega", "Fighting Vipers 2 (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46534796GAME( 1998, vs298,          0, model3_20, model3,      vs298, ROT0, "Sega", "Virtua Striker 2 '98 (Step 2.0)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4654GAME( 1999, vs2v991,        0, model3_20, model3,    vs2v991, ROT0, "Sega", "Virtua Striker 2 '99.1", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4797GAME( 1999, vs2v991,        0, model3_20, model3,    vs2v991, ROT0, "Sega", "Virtua Striker 2 '99.1 (Revision B)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46554798GAME( 1999, vs299,    vs2v991, model3_20, model3,      vs299, ROT0, "Sega", "Virtua Striker 2 '99", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46564799
46574800/* Model 3 Step 2.1 */
4658GAME( 1998, daytona2,       0, model3_21, daytona2, daytona2, ROT0, "Sega", "Daytona USA 2", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4801GAME( 1998, daytona2,       0, model3_21, daytona2, daytona2, ROT0, "Sega", "Daytona USA 2 (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46594802GAME( 1998, dayto2pe,       0, model3_21, daytona2, dayto2pe, ROT0, "Sega", "Daytona USA 2 Power Edition", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4660GAME( 1998, dirtdvls,       0, model3_21, model3,   dirtdvls, ROT0, "Sega", "Dirt Devils", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4661GAME( 1998, dirtdvla,dirtdvls, model3_21, model3,   dirtdvls, ROT0, "Sega", "Dirt Devils (alt)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4662GAME( 1998, swtrilgy,       0, model3_21, swtrilgy, swtrilgy, ROT0, "Sega/LucasArts", "Star Wars Trilogy (ver A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4803GAME( 1998, dirtdvls,       0, model3_21, model3,   dirtdvls, ROT0, "Sega", "Dirt Devils (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4804GAME( 1998, dirtdvla,dirtdvls, model3_21, model3,   dirtdvls, ROT0, "Sega", "Dirt Devils (alt) (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4805GAME( 1998, swtrilgy,       0, model3_21, swtrilgy, swtrilgy, ROT0, "Sega/LucasArts", "Star Wars Trilogy (Revision A)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46634806GAME( 1998, swtrilga,swtrilgy, model3_21, swtrilgy, swtrilga, ROT0, "Sega/LucasArts", "Star Wars Trilogy", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4664GAME( 1998, spikeout,       0, model3_21, model3,   spikeout, ROT0, "Sega", "Spikeout", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4807GAME( 1998, spikeout,       0, model3_21, model3,   spikeout, ROT0, "Sega", "Spikeout (Revision C)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46654808GAME( 1998, spikeofe,       0, model3_21, model3,   spikeofe, ROT0, "Sega", "Spikeout Final Edition", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
46664809GAME( 1999, eca,            0, model3_21, eca,           eca, ROT0, "Sega", "Emergency Call Ambulance", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
4810GAME( 1999, ecax,         eca, model3_21, eca,           eca, ROT0, "Sega", "Emergency Call Ambulance (Export)", GAME_NOT_WORKING | GAME_IMPERFECT_GRAPHICS | GAME_NO_SOUND )
src/mame/drivers/namcos21.c
r2935r2936
11/**
22008/06/11, by Naibo(translated to English by Mameplus team):
3Driver's Eyes works,
4    -the communication work between CPU and 3D DSP should be limited to the master M68000,
5    if the address mapping is done in the shared memory, master CPU would be disturbed by the slave one.
6
7    -DIP Switches
8    DIP3 ON for Screen on the left
9    DIP4 ON for Screen on the right
10    should not toggle on both
11
12    -The left, center and right screens have separate programs and boards, each would work independantly.
13    About projection angles of left and right screen, the angle is correct on "DRIVER'S EYES" title screen, however in the tracks of demo mode it doesn't seem correct.
14
15    -On demo screen, should fog effects be turned off?
16
17    -The game also features a pretty nice 2D sprite layer, which still doesn't show up yet.
18    it is known that the CPU does constantly feed the 2D video memory some meaningful and logical data.
19
220Namco System 21
321
422Winning Run
r2935r2936
14501468   AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) /* private work RAM */
14511469   AM_RANGE(0x180000, 0x183fff) AM_READ(NAMCOS2_68K_eeprom_R) AM_WRITE(NAMCOS2_68K_eeprom_W)// AM_BASE(&namcos2_eeprom) AM_SIZE(&namcos2_eeprom_size)
14521470   AM_RANGE(0x1c0000, 0x1fffff) AM_READ(namcos2_68k_master_C148_r) AM_WRITE(namcos2_68k_master_C148_w)
1471
1472   AM_RANGE(0x250000, 0x25ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) AM_BASE( &winrun_polydata )
1473   AM_RANGE(0x280000, 0x281fff) AM_WRITE(winrun_dspbios_w) AM_BASE(&winrun_dspbios)
1474   AM_RANGE(0x380000, 0x38000f) AM_READ(winrun_dspcomram_control_r) AM_WRITE(winrun_dspcomram_control_w)
1475   AM_RANGE(0x3c0000, 0x3c1fff) AM_READ(winrun_68k_dspcomram_r) AM_WRITE(winrun_68k_dspcomram_w)
1476   AM_RANGE(0x400000, 0x400001) AM_WRITE(pointram_control_w)
1477   AM_RANGE(0x440000, 0x440001) AM_READ(pointram_data_r) AM_WRITE(pointram_data_w)
14531478ADDRESS_MAP_END
14541479
14551480static ADDRESS_MAP_START( driveyes_68k_slave, ADDRESS_SPACE_PROGRAM, 16 )
r2935r2936
14591484ADDRESS_MAP_END
14601485
14611486static ADDRESS_MAP_START( driveyes_68k_common, ADDRESS_SPACE_PROGRAM, 16 )
1462   AM_RANGE(0x250000, 0x25ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) AM_BASE( &winrun_polydata )
1463   AM_RANGE(0x280000, 0x281fff) AM_WRITE(winrun_dspbios_w) AM_BASE(&winrun_dspbios)
1464   AM_RANGE(0x380000, 0x38000f) AM_READ(winrun_dspcomram_control_r) AM_WRITE(winrun_dspcomram_control_w)
1465   AM_RANGE(0x3c0000, 0x3c1fff) AM_READ(winrun_68k_dspcomram_r) AM_WRITE(winrun_68k_dspcomram_w)
1466   AM_RANGE(0x400000, 0x400001) AM_WRITE(pointram_control_w)
1467   AM_RANGE(0x440000, 0x440001) AM_READ(pointram_data_r) AM_WRITE(pointram_data_w)
14681487   AM_RANGE(0x700000, 0x71ffff) AM_READ(namco_obj16_r) AM_WRITE(namco_obj16_w)
14691488   AM_RANGE(0x720000, 0x720007) AM_READ(namco_spritepos16_r) AM_WRITE(namco_spritepos16_w)
14701489   AM_RANGE(0x740000, 0x75ffff) AM_READ(paletteram16_r ) AM_WRITE(paletteram16_w) AM_BASE(&paletteram16)
src/mame/drivers/hikaru.c
r0r2936
1/* Sega Hikaru / 'Samurai' */
2
3/*
4
5Sega Hikaru Hardware Overview (last updated 4th July 2008 at 9:06pm)
6-----------------------------
7
8Note! This document will be updated from time to time when more dumps are available
9
10This document covers all the known Sega Hikaru games, including....
11!Air Trix                    (C) Sega, 2001
12*Brave Fire Fighters         (C) Sega, 1999
13*Cyber Troopers Virtual On 4 (C) Sega, 2001
14*Nascar Racing               (C) Sega, 2000
15!Planet Harriers             (C) Sega, 2001
16!Star Wars Racer Arcade      (C) Sega, 2000
17
18! - denotes secured but not fully dumped yet
19* - denotes not dumped yet. If you can help with the remaining undumped games,
20    please contact http://www.mameworld.net/gurudumps/
21
22The Sega Hikaru system comprises the following PCBs.....
23Mainboard      - 2 known versions exists. They're mostly the same. It contains many thin BGAs,
24                 lots of RAM, 2x SH4 CPUs and 1x 16MBit boot EPROM
25ROM PCB        - 2 known versions exist. They contain EPROMs, up to 16x TSOP48 flashROMs or SOP44
26                 maskROMs, a small amount of SRAM and some security ICs that are also used on
27                 NAOMI ROM carts (315-5881 - with a unique 317-xxxx number per game, a couple
28                 of PLCC FPGAs and a X76F100 secured EEPROM). Plugs into mainboard into CONN3 and CONN4
29Network PCB    - Contains a 68000, some SRAM, a few Sega ICs and a CPLD. Plugs into the top of the ROM board
30Protection PCB - Contains one RAM and one QFP100 IC. Plugs into the mainboard into CONN5
31Filter PCB     - Contains external connectors for power, controls, network, USB etc. Plugs into mainboard
32                 into CONN1 and CONN2
33I/O PCB        - Uses a standard Sega JVS I/O board. Contains USB connectors type A & B, a
34                 couple of long IDC cable connectors for controls and a Toshiba TMP90PH44 MCU
35
36
37Main Board
38----------
39Version 1 - 837-13402 171-7639E SEGA 1998
40Version 2 - 837-14097 171-7639F SEGA 1998
41|------------------------------------------------------------------------------------|
42|       MC33470                DSW(4)                           CONN4                |
43|                                    93C46                                           |
44|                          SH-4                             62256 62256    93C46     |-|
45|        SH-4                                  PAL1                                  | |
46|                        5264165FTTA60         (GAL16V8)                    3771     | |
47|                        5264165FTTA60                         315-6146              | |
48|    5264165FTTA60       5264165FTTA60                                   14.7456MHz  | |
49|    5264165FTTA60       5264165FTTA60                                   32MHz       | |CONN1
50|    5264165FTTA60                                                                   | |
51|    5264165FTTA60                                             3771 3771             | |
52|                         315-6415                                                   | |
53|      315-6415                                                               PC910  | |
54|               33.3333MHz                                        CY37128            | |
55|               CY2308SC                             CY2292SL     (315-6202)         |-|
56|HY57V161610                                                      62256      ADM485  |
57| PAL2                      CONN3                                 62256              |
58| (GAL16V8)                                                                          |
59|                                                                                    |
60|HY57V161610                       315-6087  HY57V161610                             |-|
61|              315-6083A                     HY57V161610              EPR-23400(A)   | |
62|HY57V161610              D432232                      24.576MHz                     | |
63|(PAL on V2 MB)                              HY57V161610   ADV7120         BATTERY   | |CONN2
64|LED1                                        HY57V161610   ADV7120                   | |
65|LED2                                                                                | |
66|LED3                                                                                |-|
67|LED4               315-6197                        315-6084     CONN5               |
68|SW1                                315-6085                           K4S641632     |
69|SW2                                                                                 |
70|SW3    315-6086                                                      315-6232       |
71|                                                   315-6084                         |
72|                   315-6197        CY2308SC                    33.8688MHz           |
73|(LED 1-4 moved here)          41.6666MHz                       25MHz                |
74|(on V2 MB)                                                                          |
75|------------------------------------------------------------------------------------|
76
77
78ROM PCB
79-------
80
81Type 1 - 837-14140   171-8144B
82|------------------------------------------------------------------------------------|
83|                                                                                    |
84|   IC45   IC41   IC37   IC50   IC46   IC42   IC38                                   |
85|                                                                                    |
86|                                                                        LATTICE     |
87|   IC49   IC57   IC53   IC66   IC62   IC58   IC54                       M4A3-32/32  |
88|                                                                        (315-6323)  |
89|                                                                  X76F100           |
90|   IC61                                                                             |
91|                                                                         CY7C1399   |
92|                                                                         CY7C1399   |
93|   IC65                                                                             |
94|           IC29  IC30  IC31  IC32  IC33  IC34  IC35  IC36                           |
95|                                                                       28MHz        |
96|                                                                            LATTICE |
97|                                                                 315-5881   PLSI2032|
98|                                                                          (315-6050)|
99|------------------------------------------------------------------------------------|
100ROM usage -
101           Game       Sega Part No.     ROM Type
102           ------------------------------------------------
103           Air Trix -
104                      MPR-23573.IC37    128M TSOP48 MASKROM
105                      MPR-23577.IC38    "
106                      MPR-23574.IC41    "
107                      MPR-23578.IC42    "
108                      MPR-23575.IC45    "
109                      MPR-23579.IC46    "
110                      MPR-23576.IC49    "
111                      MPR-23580.IC50    "
112                      IC53, IC54, IC57, \
113                      IC58, IC61, IC62,  Not Used
114                      IC65, IC66        /
115
116                      EPR-23601A.IC29   27C322 EPROM
117                      EPR-23602A.IC30   "
118                      other EPROM sockets not used
119
120                      315-5881 stamped 317-0294-COM
121
122
123           Game       Sega Part No.     ROM Type
124           ------------------------------------------------
125           Planet Harriers -
126                      MPR-23549.IC37    128M TSOP48 MASKROM
127                      MPR-23553.IC38    "
128                      MPR-23550.IC41    "
129                      MPR-23554.IC42    "
130                      MPR-23551.IC45    "
131                      MPR-23555.IC46    "
132                      MPR-23552.IC49    "
133                      MPR-23556.IC50    "
134                      MPR-23557.IC53    "
135                      MPR-23558.IC57    "
136                      MPR-23559.IC61    "
137                      MPR-23560.IC65    "
138                      MPR-23564.IC66    "
139                      MPR-23563.IC62    "
140                      MPR-23562.IC58    "
141                      MPR-23561.IC54    "
142
143                      EPR-23565A.IC29   27C322 EPROM
144                      EPR-23566A.IC30   "
145                      EPR-23567A.IC31   "
146                      EPR-23568A.IC32   "
147                      EPR-23569A.IC33   "
148                      EPR-23570A.IC34   "
149                      EPR-23571A.IC35   "
150                      EPR-23572A.IC36   "
151                      all EPROM sockets populated
152
153                      315-5881 stamped 317-0297-COM
154
155
156Type 2 - 837-13403   171-7640B
157|------------------------------------------------------------------------------------|
158|               LATTICE        CY7C199               X76F100                         |
159|  315-5881     PLSI2032                                                             |
160|                       28MHz  CY7C199               MACH111                         |
161|                                                    (315-6203A)         IC30   IC32 |
162|                                                                                    |
163| IC37  IC39  IC41  IC43  IC45  IC47  IC49  IC51                                     |
164|                                                                                    |
165|                                                                                    |
166| IC53  IC55  IC57  IC59  IC61  IC63  IC65  IC67  <-- these on other side of PCB     |
167|                                                                                    |
168|                                                                                    |
169| IC38  IC40  IC42  IC44  IC46  IC48  IC50  IC52                                     |
170|                                                                                    |
171|                                                IC29  IC31  IC33  IC35  IC34  IC36  |
172| IC54  IC56  IC58  IC60  IC62  IC64  IC66  IC68 <-- these on other side of PCB      |
173|                                                                                    |
174|------------------------------------------------------------------------------------|
175ROM usage -
176           Game       Sega Part No.     ROM Type
177           ------------------------------------------------
178           Star Wars Racer Arcade
179                      MPR-23086.IC37    64M SOP44 MASKROM
180                      MPR-23087.IC38    "
181                      MPR-23088.IC39    "
182                      MPR-23089.IC40    "
183                      MPR-23090.IC41    "
184                      MPR-23091.IC42    "
185                      MPR-23092.IC43    "
186                      MPR-23093.IC44    "
187                      MPR-23094.IC45    "
188                      MPR-23095.IC46    "
189                      MPR-23096.IC47    "
190                      MPR-23097.IC48    "
191                      MPR-23098.IC49    "
192                      MPR-23099.IC50    "
193                      MPR-23100.IC51    "
194                      MPR-23101.IC52    "
195                      MPR-23102.IC53    "
196                      MPR-23103.IC54    "
197                      MPR-23104.IC55    "
198                      MPR-23105.IC56    "
199                      MPR-23106.IC57    "
200                      MPR-23107.IC58    "
201                      MPR-23108.IC59    "
202                      MPR-23109.IC60    "
203                      MPR-23110.IC61    "
204                      MPR-23111.IC62    "
205                      MPR-23112.IC63    "
206                      MPR-23113.IC64    "
207                      MPR-23114.IC65    "
208                      MPR-23115.IC66    "
209                      MPR-23116.IC67    "
210                      MPR-23117.IC68    "
211
212                      EPR-23174.IC29    27C322 EPROM
213                      EPR-23175.IC30  "
214                      EPR-23176.IC31  "
215                      EPR-23177.IC32  "
216                      other EPROM sockets not used
217
218                      315-5881 stamped 317-0277-COM
219
220
221Protection PCB
222--------------
223
224837-13629  171-7911B  SEGA 1998
225|------------------|
226|    K4S641632     |
227|                  |
228|                  |
229|                  |
230|     315-6232     |
231|                  |
232|                  |
233|------------------|
234
235
236Network PCB
237-----------
238
239837-13404  171-7641B
240|-----------------------------------|
241| 40MHz      LATTICE     315-5917   |
242|            PLSI2032               |
243|            (315-5958A)    315-5917|
244|   PAL                             |
245|                          62256    |
246|             315-5804     62256    |
247|                          62256    |
248|                          62256    |
249|  68000          PAL               |
250|  62256                            |
251|  62256          PAL               |
252|-----------------------------------|
253
254*/
255
256#include "driver.h"
257#include "cpu/sh4/sh4.h"
258
259#define CPU_CLOCK (200000000)
260                                 /* MD2 MD1 MD0 MD6 MD4 MD3 MD5 MD7 MD8 */
261//static const struct sh4_config sh4cpu_config = {  1,  0,  1,  0,  0,  0,  1,  1,  0, CPU_CLOCK };
262
263
264VIDEO_START(hikaru)
265{
266
267}
268
269VIDEO_UPDATE(hikaru)
270{
271   return 0;
272}
273
274static INPUT_PORTS_START( hikaru )
275   PORT_START_TAG("IN0")
276INPUT_PORTS_END
277
278static ADDRESS_MAP_START( hikaru_map, ADDRESS_SPACE_PROGRAM, 64 )
279   AM_RANGE(0x00000000, 0x001fffff) AM_ROM
280   AM_RANGE(0x0C000000, 0x0C00ffff) AM_RAM
281ADDRESS_MAP_END
282
283
284static MACHINE_DRIVER_START( hikaru )
285   /* basic machine hardware */
286   MDRV_CPU_ADD_TAG("main", SH4, CPU_CLOCK)
287//  MDRV_CPU_CONFIG(sh4cpu_config)
288   MDRV_CPU_PROGRAM_MAP(hikaru_map,0)
289//  MDRV_CPU_IO_MAP(hikaru_port,0)
290//  MDRV_CPU_VBLANK_INT("main", hikaru,vblank)
291
292//  MDRV_MACHINE_START( hikaru )
293//  MDRV_MACHINE_RESET( hikaru )
294
295//  MDRV_NVRAM_HANDLER(hikaru_eeproms)
296
297   /* video hardware */
298   MDRV_SCREEN_ADD("main", RASTER)
299   MDRV_SCREEN_REFRESH_RATE(60)
300   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
301   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32)
302   MDRV_SCREEN_SIZE(640, 480)
303   MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1)
304
305   MDRV_PALETTE_LENGTH(0x1000)
306
307   MDRV_VIDEO_START(hikaru)
308   MDRV_VIDEO_UPDATE(hikaru)
309
310//  MDRV_SPEAKER_STANDARD_STEREO("left", "right")
311//  MDRV_SOUND_ADD(AICA, 0)
312//  MDRV_SOUND_CONFIG(aica_interface)
313//  MDRV_SOUND_ROUTE(0, "left", 2.0)
314//  MDRV_SOUND_ROUTE(0, "right", 2.0)
315MACHINE_DRIVER_END
316
317
318#define ROM_LOAD16_WORD_SWAP_BIOS(bios,name,offset,length,hash) \
319      ROMX_LOAD(name, offset, length, hash, ROM_GROUPWORD | ROM_BIOS(bios+1)) /* Note '+1' */
320
321
322#define HIKARU_BIOS \
323   ROM_SYSTEM_BIOS( 0, "bios0", "epr23400a" ) \
324   ROM_LOAD16_WORD_SWAP_BIOS( 0, "epr23400a.ic94",   0x000000, 0x200000, CRC(2aa906a7) SHA1(098c9909b123ed6c338ac874f2ee90e3b2da4c02) ) \
325   ROM_SYSTEM_BIOS( 1, "bios1", "epr23400" ) \
326   ROM_LOAD16_WORD_SWAP_BIOS( 1, "epr-23400.ic94",   0x000000, 0x200000, CRC(3d557104) SHA1(d39879f5a1acbd54ad8ee4fbd412f870c9ff4aa5) ) \
327
328// bios 0 is SAMURAI boot rom 0.96 / 2000/8/10
329// bios 1 is SAMURAI boot rom 0.92 / 1999/7/2
330
331
332ROM_START( hikaru )
333   ROM_REGION( 0x200000, REGION_CPU1, 0)
334   HIKARU_BIOS
335
336   ROM_REGION( 0x400000, REGION_USER1, ROMREGION_ERASE)
337ROM_END
338
339
340ROM_START( airtrix )
341   ROM_REGION( 0x200000, REGION_CPU1, 0)
342   HIKARU_BIOS
343
344   ROM_REGION( 0x800000, REGION_USER1, 0)
345   ROM_LOAD32_WORD("epr23601a.ic29", 0x0000000, 0x0400000, CRC(cd3ccc05) SHA1(49de32d3588511f37486aff900773453739d706d) )
346   ROM_LOAD32_WORD("epr23602a.ic30", 0x0000002, 0x0400000, CRC(24f1bca9) SHA1(719dc4e003c1d13fcbb39604c156c89042c47dfd) )
347   /* ic31 unpopulated */
348   /* ic32 unpopulated */
349   /* ic33 unpopulated */
350   /* ic34 unpopulated */
351   /* ic35 unpopulated */
352   /* ic36 unpopulated */
353
354   /* ROM board using 128M TSOP48 MASKROMs */
355   ROM_REGION( 0x10000000, REGION_USER2, 0)
356   ROM_LOAD("mpr-23573.ic37" , 0x0000000, 0x1000000, CRC(000b59d7) SHA1(7a4b90b5821ea8cce77c70628fdb9097e18596e2) ) // NOT verified
357   ROM_LOAD("mpr-23577.ic38" , 0x1000000, 0x1000000, NO_DUMP )
358   ROM_LOAD("mpr-23574.ic41" , 0x2000000, 0x1000000, NO_DUMP )
359   ROM_LOAD("mpr-23578.ic42" , 0x3000000, 0x1000000, NO_DUMP )
360   ROM_LOAD("mpr-23575.ic45" , 0x4000000, 0x1000000, NO_DUMP )
361   ROM_LOAD("mpr-23579.ic46" , 0x5000000, 0x1000000, NO_DUMP )
362   ROM_LOAD("mpr-23576.ic49" , 0x6000000, 0x1000000, NO_DUMP )
363   ROM_LOAD("mpr-23580.ic50" , 0x7000000, 0x1000000, NO_DUMP )
364   /* ic53 unpopulated */
365   /* ic54 unpopulated */
366   /* ic57 unpopulated */
367   /* ic58 unpopulated */
368   /* ic61 unpopulated */
369   /* ic62 unpopulated */
370   /* ic65 unpopulated */
371   /* ic66 unpopulated */
372ROM_END
373
374
375ROM_START( pharrier )
376   ROM_REGION( 0x200000, REGION_CPU1, 0)
377   HIKARU_BIOS
378
379   ROM_REGION( 0x2000000, REGION_USER1, 0)
380   ROM_LOAD32_WORD("epr23565a.ic29", 0x0000000, 0x0400000, CRC(ca9af8a7) SHA1(e7d6badc03ec5833ee89e49dd389ee19b45da29c) )
381   ROM_LOAD32_WORD("epr23566a.ic30", 0x0000002, 0x0400000, CRC(aad0057c) SHA1(c18c0f1797432c74dc21bcd806cb5760916e4936) )
382   ROM_LOAD32_WORD("epr23567.ic31",  0x0800000, 0x0400000, CRC(f0e3dcdc) SHA1(422978a13e39f439da54e43a65dcad1a5b1f2f27) )
383   ROM_LOAD32_WORD("epr23568.ic32",  0x0800002, 0x0400000, CRC(6eee734c) SHA1(0941761b1690ad4eeac0bf682459992c6f38a930) )
384   ROM_LOAD32_WORD("epr23569.ic33",  0x1000000, 0x0400000, CRC(867c7064) SHA1(5cf0d88a1c739ba69b33f1ba3a0e5544331f63f3) )
385   ROM_LOAD32_WORD("epr23570.ic34",  0x1000002, 0x0400000, CRC(556ff58b) SHA1(7eb527aee823d037d1045d850427efa42d5da787) )
386   ROM_LOAD32_WORD("epr23571.ic35",  0x1800000, 0x0400000, CRC(5a75fa92) SHA1(b5e0c8c995ecc954b74d5eb36f3ae2a732a5986b) )
387   ROM_LOAD32_WORD("epr23572.ic36",  0x1800002, 0x0400000, CRC(46054067) SHA1(449800bdc2c40c76aed9bc5e7e8831d8f03ef286) )
388
389   /* ROM board using 128M TSOP48 MASKROMs */
390   ROM_REGION( 0x10000000, REGION_USER2, 0)
391   ROM_LOAD("mpr-23549.ic37" , 0x0000000, 0x1000000, NO_DUMP )
392   ROM_LOAD("mpr-23553.ic38" , 0x1000000, 0x1000000, NO_DUMP )
393   ROM_LOAD("mpr-23550.ic41" , 0x2000000, 0x1000000, NO_DUMP )
394   ROM_LOAD("mpr-23554.ic42" , 0x3000000, 0x1000000, NO_DUMP )
395   ROM_LOAD("mpr-23551.ic45" , 0x4000000, 0x1000000, NO_DUMP )
396   ROM_LOAD("mpr-23555.ic46" , 0x5000000, 0x1000000, NO_DUMP )
397   ROM_LOAD("mpr-23552.ic49" , 0x6000000, 0x1000000, NO_DUMP )
398   ROM_LOAD("mpr-23556.ic50" , 0x7000000, 0x1000000, NO_DUMP )
399   ROM_LOAD("mpr-23557.ic53" , 0x8000000, 0x1000000, NO_DUMP )
400   ROM_LOAD("mpr-23561.ic54" , 0x9000000, 0x1000000, NO_DUMP )
401   ROM_LOAD("mpr-23558.ic57" , 0xa000000, 0x1000000, NO_DUMP )
402   ROM_LOAD("mpr-23562.ic58" , 0xb000000, 0x1000000, NO_DUMP )
403   ROM_LOAD("mpr-23559.ic61" , 0xc000000, 0x1000000, NO_DUMP )
404   ROM_LOAD("mpr-23563.ic62" , 0xd000000, 0x1000000, NO_DUMP )
405   ROM_LOAD("mpr-23560.ic65" , 0xe000000, 0x1000000, NO_DUMP )
406   ROM_LOAD("mpr-23564.ic66" , 0xf000000, 0x1000000, NO_DUMP )
407ROM_END
408
409ROM_START( podrace )
410   ROM_REGION( 0x200000, REGION_CPU1, 0)
411   HIKARU_BIOS
412
413   ROM_REGION( 0x2000000, REGION_USER1, 0)
414   ROM_LOAD32_WORD("epr-23174.ic29", 0x0000000, 0x0400000, CRC(eae62b46) SHA1(f1458072b002d64bbb7c43c582e3191e8031e19a) )
415   ROM_LOAD32_WORD("epr-23175.ic30", 0x0000002, 0x0400000, CRC(b92da060) SHA1(dd9ecbd0977aef7629441ff45f4ad807b2408603) )
416   ROM_LOAD32_WORD("epr-23176.ic31", 0x0800000, 0x0400000, CRC(2f2824a7) SHA1(a375719e3cababab5b33d00d8696c7cd62c5af30) )
417   ROM_LOAD32_WORD("epr-23177.ic32", 0x0800002, 0x0400000, CRC(7a5e3f0f) SHA1(e8ca00cfaaa9be4f9d269e4d8f6bcbbd7de8f6d6) )
418   /* ic33 unpopulated */
419   /* ic34 unpopulated */
420   /* ic35 unpopulated */
421   /* ic36 unpopulated */
422
423   /* ROM board using 64M SOP44 MASKROM */
424   ROM_REGION( 0x10000000, REGION_USER2, 0)
425   ROM_LOAD("mpr-23086.ic37" , 0x0000000, 0x0800000, NO_DUMP )
426   ROM_LOAD("mpr-23087.ic38" , 0x0800000, 0x0800000, NO_DUMP )
427   ROM_LOAD("mpr-23088.ic39" , 0x1000000, 0x0800000, NO_DUMP )
428   ROM_LOAD("mpr-23089.ic40" , 0x1800000, 0x0800000, NO_DUMP )
429   ROM_LOAD("mpr-23090.ic41" , 0x2000000, 0x0800000, NO_DUMP )
430   ROM_LOAD("mpr-23091.ic42" , 0x2800000, 0x0800000, NO_DUMP )
431   ROM_LOAD("mpr-23092.ic43" , 0x3000000, 0x0800000, NO_DUMP )
432   ROM_LOAD("mpr-23093.ic44" , 0x3800000, 0x0800000, NO_DUMP )
433   ROM_LOAD("mpr-23094.ic45" , 0x4000000, 0x0800000, NO_DUMP )
434   ROM_LOAD("mpr-23095.ic46" , 0x4800000, 0x0800000, NO_DUMP )
435   ROM_LOAD("mpr-23096.ic47" , 0x5000000, 0x0800000, NO_DUMP )
436   ROM_LOAD("mpr-23097.ic48" , 0x5800000, 0x0800000, NO_DUMP )
437   ROM_LOAD("mpr-23098.ic49" , 0x6000000, 0x0800000, NO_DUMP )
438   ROM_LOAD("mpr-23099.ic50" , 0x6800000, 0x0800000, NO_DUMP )
439   ROM_LOAD("mpr-23100.ic51" , 0x7000000, 0x0800000, NO_DUMP )
440   ROM_LOAD("mpr-23101.ic52" , 0x7800000, 0x0800000, NO_DUMP )
441   ROM_LOAD("mpr-23102.ic53" , 0x8000000, 0x0800000, NO_DUMP )
442   ROM_LOAD("mpr-23103.ic54" , 0x8800000, 0x0800000, NO_DUMP )
443   ROM_LOAD("mpr-23104.ic55" , 0x9000000, 0x0800000, NO_DUMP )
444   ROM_LOAD("mpr-23105.ic56" , 0x9800000, 0x0800000, NO_DUMP )
445   ROM_LOAD("mpr-23106.ic57" , 0xa000000, 0x0800000, NO_DUMP )
446   ROM_LOAD("mpr-23107.ic58" , 0xa800000, 0x0800000, NO_DUMP )
447   ROM_LOAD("mpr-23108.ic59" , 0xb000000, 0x0800000, NO_DUMP )
448   ROM_LOAD("mpr-23109.ic60" , 0xb800000, 0x0800000, NO_DUMP )
449   ROM_LOAD("mpr-23110.ic61" , 0xc000000, 0x0800000, NO_DUMP )
450   ROM_LOAD("mpr-23111.ic62" , 0xc800000, 0x0800000, NO_DUMP )
451   ROM_LOAD("mpr-23112.ic63" , 0xd000000, 0x0800000, NO_DUMP )
452   ROM_LOAD("mpr-23113.ic64" , 0xd800000, 0x0800000, NO_DUMP )
453   ROM_LOAD("mpr-23114.ic65" , 0xe000000, 0x0800000, NO_DUMP )
454   ROM_LOAD("mpr-23115.ic66" , 0xe800000, 0x0800000, NO_DUMP )
455   ROM_LOAD("mpr-23116.ic67" , 0xf000000, 0x0800000, NO_DUMP )
456   ROM_LOAD("mpr-23117.ic68" , 0xf800000, 0x0800000, NO_DUMP )
457ROM_END
458
459
460
461GAME( 2000, hikaru,   0,        hikaru,   hikaru,   0, ROT0, "Sega",            "Hikaru Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
462GAME( 2000, airtrix,  hikaru,   hikaru,   hikaru,   0, ROT0, "Sega",            "Air Trix", GAME_NO_SOUND|GAME_NOT_WORKING )
463GAME( 2001, pharrier, hikaru,   hikaru,   hikaru,   0, ROT0, "Sega",            "Planet Harriers", GAME_NO_SOUND|GAME_NOT_WORKING )
464GAME( 2001, podrace,  hikaru,   hikaru,   hikaru,   0, ROT0, "Sega",            "Star Wars Pod Racer", GAME_NO_SOUND|GAME_NOT_WORKING )
src/mame/drivers/naomi.c
r2935r2936
8498490x1ffffa-0x1fffff is the BIOS checksum
850850
851851
852Ferrari F355 specific Naomi BIOS roms:
853
854EPR-22850 - NAOMI BOOT ROM 1999 08/30  1.35 (USA)
855EPR-22851 - NAOMI BOOT ROM 1999 08/30  1.35 (Export)
856
857EPR-22850 & EPR-22851 differ by 7 bytes:
858
8590x52F08 is the region byte (only one region byte)
8600x1ffffa-0x1fffff is the BIOS checksum
861
862
852863Region byte encoding is as follows:
853864
8548650x00 = Japan
r2935r2936
883894   ROM_LOAD16_WORD_SWAP_BIOS( 8, "epr-21576b.bin",  0x000000, 0x200000, CRC(755a6e07) SHA1(7e8b8ccfc063144d89668e7224dcd8a36c54f3b3) ) \
884895   ROM_SYSTEM_BIOS( 9, "bios9", "epr-21576 (Japan)" ) \
885896   ROM_LOAD16_WORD_SWAP_BIOS( 9, "epr-21576.bin",   0x000000, 0x200000, CRC(9dad3495) SHA1(5fb66f9a2b68d120f059c72758e65d34f461044a) ) \
886   ROM_SYSTEM_BIOS( 10, "bios10", "Ferrari F355" ) \
897   ROM_SYSTEM_BIOS( 10, "bios10", "Ferrari F355 (Export)" ) \
887898   ROM_LOAD16_WORD_SWAP_BIOS( 10,  "epr-22851.bin", 0x000000, 0x200000, CRC(62483677) SHA1(3e3bcacf5f972c376b569f45307ee7fd0b5031b7) ) \
888   ROM_SYSTEM_BIOS( 11, "bios11", "HOTD2 (US)" ) \
889   ROM_LOAD16_WORD_SWAP_BIOS( 11,  "epr-21330.bin", 0x000000, 0x200000, CRC(9e3bfa1b) SHA1(b539d38c767b0551b8e7956c1ff795de8bbe2fbc) ) \
890   ROM_SYSTEM_BIOS( 12, "bios12", "HOTD2 (Export)" ) \
891   ROM_LOAD16_WORD_SWAP_BIOS( 12,  "epr-21331.bin", 0x000000, 0x200000, CRC(065f8500) SHA1(49a3881e8d76f952ef5e887200d77b4a415d47fe) ) \
892   ROM_SYSTEM_BIOS( 13, "bios13", "Naomi Dev BIOS" ) \
893   ROM_LOAD16_WORD_SWAP_BIOS( 13,  "dcnaodev.bios", 0x000000, 0x080000, CRC(7a50fab9) SHA1(ef79f448e0bf735d1264ad4f051d24178822110f) ) /* This one comes from a dev / beta board. The eprom was a 27C4096 */
899   ROM_SYSTEM_BIOS( 11, "bios11", "Ferrari F355 (USA)" ) \
900   ROM_LOAD16_WORD_SWAP_BIOS( 11,  "epr-22850.bin", 0x000000, 0x200000, CRC(28aa539d) SHA1(14485368656af80504b212da620179c49f84c1a2) ) \
901   ROM_SYSTEM_BIOS( 12, "bios12", "HOTD2 (US)" ) \
902   ROM_LOAD16_WORD_SWAP_BIOS( 12,  "epr-21330.bin", 0x000000, 0x200000, CRC(9e3bfa1b) SHA1(b539d38c767b0551b8e7956c1ff795de8bbe2fbc) ) \
903   ROM_SYSTEM_BIOS( 13, "bios13", "HOTD2 (Export)" ) \
904   ROM_LOAD16_WORD_SWAP_BIOS( 13,  "epr-21331.bin", 0x000000, 0x200000, CRC(065f8500) SHA1(49a3881e8d76f952ef5e887200d77b4a415d47fe) ) \
905   ROM_SYSTEM_BIOS( 14, "bios14", "Naomi Dev BIOS" ) \
906   ROM_LOAD16_WORD_SWAP_BIOS( 14,  "dcnaodev.bios", 0x000000, 0x080000, CRC(7a50fab9) SHA1(ef79f448e0bf735d1264ad4f051d24178822110f) ) /* This one comes from a dev / beta board. The eprom was a 27C4096 */
894907
908/* only revisions d and higher support the GDROM, and there is an additional bios (and SH4!) on the DIMM board for the CD Controller */
909#define NAOMIGD_BIOS \
910   ROM_REGION( 0x200000, REGION_CPU1, 0) \
911   ROM_SYSTEM_BIOS( 0, "bios0", "epr-21578e (Export)" ) \
912   ROM_LOAD16_WORD_SWAP_BIOS( 0, "epr-21578e.bin",  0x000000, 0x200000, CRC(087f09a3) SHA1(0418eb2cf9766f0b1b874a4e92528779e22c0a4a) ) \
913   ROM_SYSTEM_BIOS( 1, "bios1", "epr-21578d (Export)" ) \
914   ROM_LOAD16_WORD_SWAP_BIOS( 1, "epr-21578d.bin",  0x000000, 0x200000, CRC(dfd5f42a) SHA1(614a0db4743a5e5a206190d6786ade24325afbfd) ) \
915   ROM_SYSTEM_BIOS( 2, "bios3", "epr-21577e (USA)" ) \
916   ROM_LOAD16_WORD_SWAP_BIOS( 2, "epr-21577e.bin",  0x000000, 0x200000, CRC(cf36e97b) SHA1(b085305982e7572e58b03a9d35f17ae319c3bbc6) ) \
917   ROM_SYSTEM_BIOS( 3, "bios4", "epr-21577d (USA)" ) \
918   ROM_LOAD16_WORD_SWAP_BIOS( 3, "epr-21577d.bin",  0x000000, 0x200000, CRC(60ddcbbe) SHA1(58b15096d269d6df617ca1810b66b47deb184958) ) \
919   ROM_SYSTEM_BIOS( 4, "bios5", "epr-21576g (Japan)" ) \
920   ROM_LOAD16_WORD_SWAP_BIOS( 4, "epr-21576g.bin",  0x000000, 0x200000, CRC(d2a1c6bf) SHA1(6d27d71aec4dfba98f66316ae74a1426d567698a) ) \
921   ROM_SYSTEM_BIOS( 5, "bios6", "epr-21576e (Japan)" ) \
922   ROM_LOAD16_WORD_SWAP_BIOS( 5, "epr-21576e.bin",  0x000000, 0x200000, CRC(08c0add7) SHA1(e7c1a7673cb2ccb21748ef44105e46d1bad7266d) ) \
923   ROM_SYSTEM_BIOS( 6, "bios7", "epr-21576d (Japan)" ) \
924   ROM_LOAD16_WORD_SWAP_BIOS( 6, "epr-21576d.bin",  0x000000, 0x200000, CRC(3b2afa7b) SHA1(d007e1d321c198a38c5baff86eb2ab84385d150a) ) \
925   ROM_REGION( 0x200000, REGION_USER2, 0) \
926   ROM_LOAD16_WORD_SWAP( "fpr-23489c.ic14", 0x000000, 0x200000, CRC(bc38bea1) SHA1(b36fcc6902f397d9749e9d02de1bbb7a5e29d468) ) \
895927
896928/* NAOMI2 BIOS:
897929
r2935r2936
949981   ROM_REGION( 0x8400000, REGION_USER1, ROMREGION_ERASE)
950982ROM_END
951983
984ROM_START( naomigd )
985   NAOMIGD_BIOS
986
987   ROM_REGION( 0x8400000, REGION_USER1, ROMREGION_ERASE)
988ROM_END
989
990
952991ROM_START( naomi2 )
953992   ROM_REGION( 0x200000, REGION_CPU1, 0)
954993   NAOMI2_BIOS
r2935r2936
22732312   ROM_LOAD("ic21",0xa000000, 0x0800000, NO_DUMP )
22742313ROM_END
22752314
2315/* GD-ROM titles - a PIC supplies a decryption key
22762316
2317(information based on forum post)
2318The PIC supplies an 8 byte key, this gets written to a hardware register.
2319DES keys are 56-bit, not 64-bit. Each byte of the key provided by the PIC contains
2320a parity byte for verification (8*7 = 56, 8*8 = 64)
2321
2322*/
2323
2324ROM_START( sfz3ugd )
2325   NAOMIGD_BIOS
2326
2327   ROM_REGION( 0x8400000, REGION_USER1, ROMREGION_ERASE)
2328
2329   /* GD-ROM dump, this will be replaced once an appropriate CHD format has been decided upon for the GD images*/
2330   ROM_REGION( 0x3d8ab000, REGION_USER3, ROMREGION_ERASE)
2331   ROM_LOAD("track.txt",  0x0000000, 0x000000ad, CRC(bf017e1d) SHA1(0345310b6982f818a07dec8739efe1709281f1e6) )
2332   ROM_LOAD("track01.iso",0x0000000, 0x000e1000, CRC(8af2e370) SHA1(0f359d423f72055e6a5c81e7075df1ffd3ccfa5c) )
2333   ROM_LOAD("track02.raw",0x0000000, 0x004c8cf0, CRC(c5628df6) SHA1(0d1a24e6271c3b0ef92c55ec9d63e2326892f1d8) )
2334   ROM_LOAD("track03.iso",0x0000000, 0x3d8ab000, CRC(195f0d93) SHA1(183412704bd90750355e7af019b78541328fe633) )
2335
2336ROM_END
2337
2338
2339
22772340/* All games have the regional titles at the start of the IC22 rom in the following order
22782341
22792342  JAPAN
r2935r2936
23272390
23282391
23292392/* No GD-Rom Sets Supported */
2393GAME( 2001, naomigd,   0,        naomi,    naomi,    0, ROT0, "Sega",            "Naomi GD-ROM Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
2394GAME( 2001, sfz3ugd,   naomigd,  naomi,    naomi,    0, ROT0, "Capcom",          "Street Fighter Zero 3 Upper", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
23302395
2396
23312397/* Naomi 2 & Naomi 2 GD-ROM */
23322398GAME( 2001, naomi2,   0,        naomi,    naomi,    0, ROT0, "Sega",            "Naomi 2 Bios", GAME_NO_SOUND|GAME_NOT_WORKING|GAME_IS_BIOS_ROOT )
23332399/* No Supported Sets */
src/mame/drivers/igs_blit.c
r2935r2936
28082808   ROM_LOAD( "igs-s0302.u43", 0x00000, 0x40000, CRC(fde63ce1) SHA1(cc32d2cace319fe4d5d0aa96d7addb2d1def62f2) )
28092809ROM_END
28102810
2811ROM_START( chindrac )
2812   ROM_REGION( 0x80000, REGION_CPU1, 0 )
2813   ROM_LOAD16_WORD_SWAP( "igs-d0303.u3", 0x00000, 0x80000, CRC(3b3c29bb) SHA1(77b7e58104314303985c283cce3aec40bd7b9334) )
2814
2815   ROM_REGION( 0x420000, REGION_GFX1, 0 )
2816   //ROM_LOAD( "igs-0301.u39", 0x000000, 0x400000, CRC(655ab941) SHA1(4bbefb27e8971446998508969661042c5111bc72) ) // bad dump
2817   ROM_LOAD( "igs-d0301.u39", 0x000000, 0x400000, CRC(78ab45d9) SHA1(c326ee9f150d766edd6886075c94dea3691b606d) )
2818
2819   ROM_REGION( 0x40000, REGION_SOUND1, 0 )
2820   ROM_LOAD( "igs-s0302.u43", 0x00000, 0x40000, CRC(fde63ce1) SHA1(cc32d2cace319fe4d5d0aa96d7addb2d1def62f2) )
2821
2822   ROM_REGION( 0x40000, REGION_USER1, 0 )
2823   ROM_LOAD( "ccdu15.u15", 0x000, 0x2e5, CRC(a15fce69) SHA1(3e38d75c7263bfb36aebdbbd55ebbdd7ca601633) )
2824   //ROM_LOAD( "ccdu17.u17.bad.dump", 0x000, 0x104, CRC(e9cd78fb) SHA1(557d3e7ef3b25c1338b24722cac91bca788c02b8) )
2825   //ROM_LOAD( "ccdu18.u18.bad.dump", 0x000, 0x104, CRC(e9cd78fb) SHA1(557d3e7ef3b25c1338b24722cac91bca788c02b8) )
2826   ROM_LOAD( "ccdu45.u45", 0x000, 0x2e5, CRC(a15fce69) SHA1(3e38d75c7263bfb36aebdbbd55ebbdd7ca601633) )
2827ROM_END
2828
2829
28112830ROM_START( chugokur )
28122831   ROM_REGION( 0x80000, REGION_CPU1, 0 )
28132832   ROM_LOAD16_WORD_SWAP( "china_jp.v20", 0x00000, 0x80000, CRC(9e018d1a) SHA1(fe14e6344434cabf43685e50fd49c90f05f565be) )
r2935r2936
30203039GAME( 1996, vbowlj,   vbowl,    vbowl,    vbowlj,   vbowlj,   ROT0, "Alta / IGS", "Virtua Bowling (Japan, V100JCM)", GAME_IMPERFECT_SOUND )
30213040GAME( 1997, drgnwrld, 0,        chindrag, drgnwrld, drgnwrld, ROT0, "IGS",        "Dragon World (World, V0400)",     0 )
30223041GAME( 1995, drgwrld3, drgnwrld, chindrag, drgnwrld, drgnwrld, ROT0, "IGS",        "Dragon World (World, V0300)",     0 )
3042GAME( 1995, chindrac, drgnwrld, chindrag, drgnwrld, drgnwrld, ROT0, "IGS",        "Zhong Guo Long (China, V0303)",   GAME_NOT_WORKING ) // protection
src/mame/drivers/lucky74.c
r0r2936
1/****************************************************************************************
2
3    LUCKY 74 - WING CO.LTD.
4    -----------------------
5
6    Driver by Roberto Fresca.
7
8
9    Games running on this hardware:
10
11    * Lucky 74 (small),  1988,  Wing Co.Ltd.
12    * Lucky 74 (big),    1988,  Wing Co.Ltd.
13
14
15*****************************************************************************************
16
17
18    Hardware Notes:
19    ---------------
20
21    CPU:  1x Big black box stickered 'WING CPU A001' (Z80 based).
22
23    Co-Processor: 1x NPC SM7831
24
25    Sound: 1x Yamaha YM-2149F.
26           1x OKI M5205 (4-bit ADPCM samples @ 8kHz).
27
28    ROMs: 1x 27C512 (program).
29          1x 27C512 (sound samples).
30          8x 27C256 (graphics).
31
32    PROMs: 6x 24s10 (color system).
33
34
35    Clock: 1x Xtal 12.000 MHz.
36
37
38    Other: 2x M5M82C255ASP (2x 8255 PPI each).
39           1x M5L8251AP-5  (8251 UART).
40           1x 40-legs IC silkscreened '09R81P 7K4'.
41           1x 28-legs IC silkscreened '06B49P 2G1'.
42           2x 28-legs IC silkscreened '06B53P 9G3'.
43           1x 3.6V lithium battery.
44           4x 8 DIP switches banks.
45           1x Reset switch.
46
47    Connectors: 1x (2x36) edge connector.
48                1x (2x10) edge connector.
49                1x 6-pins connector.
50
51
52    There are 2 extra marks on the black CPU box:
53
54    Silkscreened: 'B 0L2'
55
56    Sticker:      'WE8703 1992.10'
57                    'LUCKY 74-7'
58
59
60    PCB is original from WING Co.Ltd.
61
62
63    The M5M82C255ASP (82c255) is a general purpose programmable I/O. It is compatible with the 8255
64    programmable I/O. The 82c255 is equivalent to two 8255s. It has 48 I/O lines which may be indi-
65    vidually programmed in 6 groups of 8 or 4 groups of 12 and used in 3 major modes of operation.
66
67
68*****************************************************************************************
69
70
71    Color Circuitry
72    ---------------
73
74    Here is a little diagram showing how the color PROMs are connected to a 74174
75    and therefore to a resistor network that derives to the RGB connector.
76
77
78                                  220
79    (E6)24s10-12 -+- 74174-02 ---/\/\/\----+
80    (E7)24s10-12 _|                        |
81                                  470      |
82    (E6)24s10-11 -+- 74174-10 ---/\/\/\----+
83    (E7)24s10-11 _|                        |
84                                   1K      |
85    (E6)24s10-10 -+- 74174-12 ---/\/\/\----+
86    (E7)24s10-10 _|                        |
87                                   2K      |
88    (E6)24s10-09 -+- 74174-15 ---/\/\/\----+---> Red
89    (E7)24s10-09 _|                        |
90                                           /
91                                        1K \
92                                           /
93                                           |
94                                           _
95
96                                  220
97    (D6)24s10-12 -+- 74174-02 ---/\/\/\----+
98    (D7)24s10-12 _|                        |
99                                  470      |
100    (D6)24s10-11 -+- 74174-10 ---/\/\/\----+
101    (D7)24s10-11 _|                        |
102                                   1K      |
103    (D6)24s10-10 -+- 74174-12 ---/\/\/\----+
104    (D7)24s10-10 _|                        |
105                                   2K      |
106    (D6)24s10-09 -+- 74174-15 ---/\/\/\----+---> Green
107    (D7)24s10-09 _|                        |
108                                           /
109                                        1K \
110                                           /
111                                           |
112                                           _
113
114                                  220
115    (C6)24s10-12 -+- 74174-02 ---/\/\/\----+
116    (C7)24s10-12 _|                        |
117                                  470      |
118    (C6)24s10-11 -+- 74174-10 ---/\/\/\----+
119    (C7)24s10-11 _|                        |
120                                   1K      |
121    (C6)24s10-10 -+- 74174-12 ---/\/\/\----+
122    (C7)24s10-10 _|                        |
123                                   2K      |
124    (C6)24s10-09 -+- 74174-15 ---/\/\/\----+---> Blue
125    (C7)24s10-09 _|                        |
126                                           /
127                                        1K \
128                                           /
129                                           |
130                                           _
131
132
133    Regarding the abobe diagram, there are 2 different states controlled by some bit.
134    Each state drives a different palette that will be assigned to each graphics bank.
135
136    As we can see here, same pin of different PROMs are connected together in parallel.
137    We need to check the pin 13 (/G1) and pin 14 (/G2) from each PROM to see if they are
138    connected to the same signal, and futhermore check if one or the other is tied to GND.
139
140    To reproduce the states, we need to create a double-sized palette and fill the first
141    half with the values created through state 1, then fill the second half with proper
142    values from state 2.
143
144
145*****************************************************************************************
146
147
148    *** Dev Notes ***
149
150
151    - Sound seems to be triggered at 0xf100. Each event writes sequences
152      like 0x84 0x07 0x99 0x9c 0x9f...
153
154    - After z80 port 0x00 request, there are writes to port 0x00 to 0x05.
155
156
157
158*****************************************************************************************
159
160
161    *** Game Notes ***
162
163
164    This game was one of the 'classics'.
165
166    Lucky 74 is a strip poker game with anime theme. It has a nice double-up feature, and
167    the objective is obviously to win hands till you can see the girl naked, like other
168    strip poker games.
169
170
171    To enter the test mode, press F2 and then reset. To exit, press F2 again and then reset.
172
173    To enter the book-keeping mode, press BOOKS (key 0), and then press BOOKS again to
174    change between pages. Press START (key 1) to exit the mode.
175
176
177
178    - DIP Switch 3-7 change the pay table.
179
180    Table 1 (per unit): 500 100 40 10 7 5 3 2 1
181    Table 2 (per unit): 500 200 100 40 10 7 5 3 2
182
183
184    If Bet Max (DSW3-1) is 20:
185
186    Table 1 (max): 10000 2000 800 200 140 100 60 40 20
187    Table 2 (max): 10000 4000 2000 800 200 140 100 60 40
188
189    If Bet Max (DSW3-1) is 40:
190
191    Table 1 (max): 20000 4000 1600 400 280 200 120 80 40
192    Table 2 (max): 20000 8000 4000 1600 400 280 200 120 80
193
194
195
196*****************************************************************************************
197
198
199    --------------------
200    ***  Memory Map  ***
201    --------------------
202
203    0x0000 - 0xBFFF    ; ROM space.
204    0xC000 - 0xCFFF    ; NVRAM (settings, meters, etc).
205    0xD000 - 0xD7FF    ; Video RAM 1 (VRAM1-1).
206    0xD800 - 0xDFFF    ; Color RAM 1 (VRAM1-2).
207    0xE000 - 0xE7FF    ; Video RAM 2 (VRAM2-1).
208    0xE800 - 0xEFFF    ; Color RAM 2 (VRAM2-2).
209    0xF000 - 0xF003    ; PPI8255_0 --> Input Ports 0 & 1.
210    0xF080 - 0xF083    ; PPI8255_2 --> DSW1, DSW2, DSW3.
211    0xF0C0 - 0xF0C3    ; PPI8255_3 --> DSW4.
212    0xF200 - 0xF203    ; PPI8255_1 --> Input Ports 2 & 4.
213    0xF400 - 0xF400    ; YM2149 control port 0.
214    0xF600 - 0xF600    ; YM2149 R/W port 0 (Input Port 3).
215
216
217
218*****************************************************************************************
219
220
221    DRIVER UPDATES:
222
223
224    [2008-07-06]
225
226    - Initial release.
227    - Set the proper screen size.
228    - Decoded graphics.
229    - Decoded the dual-state color circuitry.
230    - Mapped the NVRAM, VRAM1-1, VRAM1-2, VRAM2-1 and VRAM2-2 properly.
231    - Emulated 2x PPI 8255 devices.
232    - Mapped the 4x DIP switches banks.
233    - Added PORT_DIPLOCATION to all DIP switches.
234    - Added DIP switches for 'Bet Max' and 'Limit'.
235    - Added DIP switches for 'Jackpot' and 'Pay Table'.
236    - Added the Memory Reset Switch.
237    - Added the 2nd video & color RAM.
238    - Added a 2nd tilemap for background graphics.
239    - Simplified the graphics banks.
240    - Fixed colors for foreground graphics.
241    - Fixed visible area to show the top of background graphics.
242    - Finally fixed colors for background graphics.
243    - Added all coinage DIP switches.
244    - Mapped all remaining inputs (service and player buttons).
245    - Added pulse time limitation to coins A, B & C.
246    - Switched to use 4x 8255 in replace of 2x 82c255 for I/O.
247    - Created a handler to feed the z80 port0 requests.
248    - Promoted lucky74s to 'working' state.
249    - Added an alternate set, but the program ROM looks like incomplete,
250      protected or just a bad dump.
251    - Parent/clone relationship.
252    - Added technical notes.
253
254    From Dox:
255
256    - Hooked interrupts.
257    - Hooked the AY8910 and therefore the NMI trigger.
258    - Changed the input "Key In" to active high.
259
260
261    TODO:
262
263    - Fix sounds (YM-2149F).
264    - Add ADPCM samples (OKI M5205).
265    - Figure out the unknown R/W.
266    - Switch the color system to RESNET.
267    - USART comm.
268    - Co-processor.
269
270
271*****************************************************************************************/
272
273
274#define MASTER_CLOCK   XTAL_12MHz      /* confirmed */
275
276#include "driver.h"
277#include "sound/ay8910.h"
278#include "sound/msm5205.h"
279#include "machine/8255ppi.h"
280
281static UINT8 unk;
282
283
284/*************************
285*     Video Hardware     *
286*************************/
287
288static UINT8 *videoram1, *videoram2, *colorram1, *colorram2;
289static tilemap *fg_tilemap, *bg_tilemap;
290
291
292static WRITE8_HANDLER( lucky74_videoram1_w )
293{
294   videoram1[offset] = data;
295   tilemap_mark_tile_dirty(fg_tilemap, offset);
296}
297
298static WRITE8_HANDLER( lucky74_colorram1_w )
299{
300   colorram1[offset] = data;
301   tilemap_mark_tile_dirty(fg_tilemap, offset);
302}
303
304static WRITE8_HANDLER( lucky74_videoram2_w )
305{
306   videoram2[offset] = data;
307   tilemap_mark_tile_dirty(bg_tilemap, offset);
308}
309
310static WRITE8_HANDLER( lucky74_colorram2_w )
311{
312   colorram2[offset] = data;
313   tilemap_mark_tile_dirty(bg_tilemap, offset);
314}
315
316
317static TILE_GET_INFO( get_fg_tile_info )
318{
319/*  - bits -
320    7654 3210
321    ---- xxxx   tiles color.
322    xxxx ----   tiles page offset.
323*/
324   int bank = 0;
325   int attr = colorram1[tile_index];
326   int code = videoram1[tile_index] + ((attr & 0xf0) << 4);
327   int color = (attr & 0x0f);
328
329   SET_TILE_INFO(bank, code, color, 0);
330}
331
332
333static TILE_GET_INFO( get_bg_tile_info )
334{
335/*  - bits -
336    7654 3210
337    ---- xxxx   tiles color.
338    xxxx ----   tiles page offset.
339*/
340   int bank = 1;
341   int attr = colorram2[tile_index];
342   int code = videoram2[tile_index] + ((attr & 0xf0) << 4);
343   int color = (attr & 0x0f);
344
345   SET_TILE_INFO(bank, code, color, 0);
346}
347
348
349static VIDEO_START( lucky74 )
350{
351   bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 64, 32);
352   fg_tilemap = tilemap_create(get_fg_tile_info, tilemap_scan_rows, 8, 8, 64, 32);
353
354   tilemap_set_transparent_pen(fg_tilemap, 0);
355}
356
357
358static VIDEO_UPDATE( lucky74 )
359{
360   tilemap_draw(bitmap, cliprect, bg_tilemap, 0, 0);
361   tilemap_draw(bitmap, cliprect, fg_tilemap, 0, 0);
362   return 0;
363}
364
365
366static PALETTE_INIT( lucky74 )
367/*
368   There are 2 states (see the technical notes).
369   We're constructing a double-sized palette with one half for each state.
370*/
371{
372   int i;
373
374   for (i = 0; i < 256; i++)
375   {
376      int bit0, bit1, bit2, bit3, r1, g1, b1, r2, g2, b2;
377
378        /* red component (state 1, PROM E6) */
379      bit0 = (color_prom[0x000 + i] >> 0) & 0x01;
380      bit1 = (color_prom[0x000 + i] >> 1) & 0x01;
381      bit2 = (color_prom[0x000 + i] >> 2) & 0x01;
382      bit3 = (color_prom[0x000 + i] >> 3) & 0x01;
383      r1 = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;
384
385        /* red component (state 2, PROM E7) */
386      bit0 = (color_prom[0x100 + i] >> 0) & 0x01;
387      bit1 = (color_prom[0x100 + i] >> 1) & 0x01;
388      bit2 = (color_prom[0x100 + i] >> 2) & 0x01;
389      bit3 = (color_prom[0x100 + i] >> 3) & 0x01;
390      r2 = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;
391
392        /* green component (state 1, PROM D6) */
393      bit0 = (color_prom[0x200 + i] >> 0) & 0x01;
394      bit1 = (color_prom[0x200 + i] >> 1) & 0x01;
395      bit2 = (color_prom[0x200 + i] >> 2) & 0x01;
396      bit3 = (color_prom[0x200 + i] >> 3) & 0x01;
397      g1 = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;
398
399        /* green component (state 2, PROM D7) */
400      bit0 = (color_prom[0x300 + i] >> 0) & 0x01;
401      bit1 = (color_prom[0x300 + i] >> 1) & 0x01;
402      bit2 = (color_prom[0x300 + i] >> 2) & 0x01;
403      bit3 = (color_prom[0x300 + i] >> 3) & 0x01;
404      g2 = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;
405
406        /* blue component (state 1, PROM C6) */
407      bit0 = (color_prom[0x400 + i] >> 0) & 0x01;
408      bit1 = (color_prom[0x400 + i] >> 1) & 0x01;
409      bit2 = (color_prom[0x400 + i] >> 2) & 0x01;
410      bit3 = (color_prom[0x400 + i] >> 3) & 0x01;
411      b1 = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;
412
413        /* blue component (state 2, PROM C7) */
414      bit0 = (color_prom[0x500 + i] >> 0) & 0x01;
415      bit1 = (color_prom[0x500 + i] >> 1) & 0x01;
416      bit2 = (color_prom[0x500 + i] >> 2) & 0x01;
417      bit3 = (color_prom[0x500 + i] >> 3) & 0x01;
418      b2 = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;
419
420
421        /* PROMs circuitry, 1st state */
422      palette_set_color(machine, i, MAKE_RGB(r1, g1, b1));
423
424        /* PROMs circuitry, 2nd state */
425      palette_set_color(machine, i + 256, MAKE_RGB(r2, g2, b2));
426   }
427}
428
429
430/*****************************
431*    Read/Write  Handlers    *
432*****************************/
433
434static READ8_HANDLER( testport_rw )
435{
436   return 0xff;
437}
438
439static WRITE8_HANDLER( unk_w )
440{
441   unk = data;
442}
443
444
445/************************
446*    Interrupts Gen     *
447************************/
448
449static INTERRUPT_GEN( nmi_interrupt )
450{
451   if ((unk & 0x10) == 0)   /* ym2149 portB bit 4 trigger the NMI */
452   {
453      cpunum_set_input_line(machine, 0, INPUT_LINE_NMI, PULSE_LINE);
454   }
455}
456
457
458/*************************
459* Memory Map Information *
460*************************/
461
462static ADDRESS_MAP_START( lucky74_map, ADDRESS_SPACE_PROGRAM, 8 )
463   AM_RANGE(0x0000, 0xbfff) AM_ROM
464   AM_RANGE(0xc000, 0xcfff) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size)   /* NVRAM */
465   AM_RANGE(0xd000, 0xd7ff) AM_RAM AM_WRITE(lucky74_videoram1_w) AM_BASE(&videoram1)      /* VRAM1-1 */
466   AM_RANGE(0xd800, 0xdfff) AM_RAM AM_WRITE(lucky74_colorram1_w) AM_BASE(&colorram1)      /* VRAM1-2 */
467   AM_RANGE(0xe000, 0xe7ff) AM_RAM AM_WRITE(lucky74_videoram2_w) AM_BASE(&videoram2)      /* VRAM2-1 */
468   AM_RANGE(0xe800, 0xefff) AM_RAM AM_WRITE(lucky74_colorram2_w) AM_BASE(&colorram2)      /* VRAM2-2 */
469   AM_RANGE(0xf000, 0xf003) AM_DEVREADWRITE(PPI8255, "ppi8255_0", ppi8255_r, ppi8255_w)   /* Input Ports 0 & 1 */
470   AM_RANGE(0xf080, 0xf083) AM_DEVREADWRITE(PPI8255, "ppi8255_2", ppi8255_r, ppi8255_w)   /* DSW 1, 2 & 3 */
471   AM_RANGE(0xf0c0, 0xf0c3) AM_DEVREADWRITE(PPI8255, "ppi8255_3", ppi8255_r, ppi8255_w)   /* DSW 4 */
472   AM_RANGE(0xf200, 0xf203) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w)   /* Input Ports 2 & 4 */
473   AM_RANGE(0xf400, 0xf400) AM_WRITE(AY8910_control_port_0_w)
474   AM_RANGE(0xf600, 0xf600) AM_READWRITE(AY8910_read_port_0_r, AY8910_write_port_0_w)      /* YM2149 (Input Port 1) */
475ADDRESS_MAP_END
476
477static ADDRESS_MAP_START( lucky74_portmap, ADDRESS_SPACE_IO, 8 )
478   ADDRESS_MAP_GLOBAL_MASK(0xff)
479   AM_RANGE(0x00, 0x00) AM_READ(testport_rw)
480//  AM_RANGE(0x00, 0x05) AM_WRITE(???)
481//  AM_RANGE(0xff, 0xff) AM_READWRITE(???)
482ADDRESS_MAP_END
483
484/* I/O byte R/W
485
486    0x00    R    when hang....
487    0x00      W  unknown....
488    0x01      W  unknown....
489    0x02      W  unknown....
490    0x03      W  unknown....
491    0x04      W  unknown....
492    0x05      W  unknown....
493
494    0xFF    R/W  unknown....
495
496   -----------------
497
498   Unknown writes:
499
500
501   0xf100        W  sound?
502   0xf300        W  unknown...
503   0xf500        W  unknown...
504
505   0xf400        W  ym2149
506   0xf600      R W  ym2149
507
508   0xf701        W  unknown...
509
510   0xf800-03   R W  unknown...
511
512
513*** log ***
514
515cpu #0 (PC=00000105): unmapped I/O byte write to 000000FF = 04
516cpu #0 (PC=00000107): unmapped I/O byte read from 000000FF
517cpu #0 (PC=00000111): unmapped I/O byte write to 000000FF = FB
518cpu #0 (PC=00000113): unmapped I/O byte read from 000000FF
519
520cpu #0 (PC=0000011E): unmapped program memory byte write to 0000F400 = 07  ; YM2149 control
521cpu #0 (PC=00000123): unmapped program memory byte write to 0000F600 = 80  ; YM2149 data
522cpu #0 (PC=00000128): unmapped program memory byte write to 0000F400 = 0F  ; YM2149 control
523cpu #0 (PC=0000012D): unmapped program memory byte write to 0000F600 = 16  ; YM2149 data
524
525cpu #0 (PC=00000132): unmapped program memory byte write to 0000F003 = 92  ; PPI 8255_0 --> ports A & B as input.
526cpu #0 (PC=00000137): unmapped program memory byte write to 0000F203 = 99  ; PPI 8255_1 --> ports A & C as input.
527cpu #0 (PC=0000013C): unmapped program memory byte write to 0000F083 = 9B  ; PPI 8255_2 --> ports A, B and half of C as input.
528cpu #0 (PC=00000141): unmapped program memory byte write to 0000F0C3 = 90  ; PPI 8255_3 --> port A as input.
529
530cpu #0 (PC=0000014B): unmapped program memory byte write to 0000F100 = 9F  ; unknown...
531cpu #0 (PC=0000014F): unmapped program memory byte write to 0000F100 = BF
532cpu #0 (PC=00000153): unmapped program memory byte write to 0000F100 = DF
533cpu #0 (PC=00000157): unmapped program memory byte write to 0000F100 = FF
534cpu #0 (PC=0000015B): unmapped program memory byte write to 0000F300 = 9F
535cpu #0 (PC=0000015F): unmapped program memory byte write to 0000F300 = BF
536cpu #0 (PC=00000163): unmapped program memory byte write to 0000F300 = DF
537cpu #0 (PC=00000167): unmapped program memory byte write to 0000F300 = FF
538cpu #0 (PC=0000016B): unmapped program memory byte write to 0000F500 = 9F
539cpu #0 (PC=0000016F): unmapped program memory byte write to 0000F500 = BF
540cpu #0 (PC=00000173): unmapped program memory byte write to 0000F500 = DF
541cpu #0 (PC=00000177): unmapped program memory byte write to 0000F500 = FF
542
543cpu #0 (PC=0000017C): unmapped program memory byte write to 0000F800 = 00  ; unknown...
544cpu #0 (PC=00000181): unmapped program memory byte write to 0000F802 = 80
545cpu #0 (PC=00000186): unmapped program memory byte write to 0000F803 = C3
546cpu #0 (PC=0000018B): unmapped program memory byte write to 0000F803 = 3C
547
548cpu #0 (PC=0000018F): unmapped program memory byte write to 0000F701 = 00  ; unknown...
549cpu #0 (PC=00000192): unmapped program memory byte write to 0000F701 = 00
550cpu #0 (PC=00000195): unmapped program memory byte write to 0000F701 = 00
551cpu #0 (PC=0000019A): unmapped program memory byte write to 0000F701 = 40
552cpu #0 (PC=0000019F): unmapped program memory byte write to 0000F701 = 4F
553
554cpu #0 (PC=00000105): unmapped I/O byte write to 000000FF = 04
555cpu #0 (PC=00000107): unmapped I/O byte read from 000000FF
556cpu #0 (PC=00000111): unmapped I/O byte write to 000000FF = FB
557cpu #0 (PC=00000113): unmapped I/O byte read from 000000FF
558
559cpu #0 (PC=000002A6): unmapped program memory byte write to 0000F803 = 55  ; testing bits?...
560cpu #0 (PC=000002AB): unmapped program memory byte write to 0000F803 = AA
561cpu #0 (PC=000002B0): unmapped program memory byte write to 0000F803 = 99
562cpu #0 (PC=000002B5): unmapped program memory byte write to 0000F803 = 66
563cpu #0 (PC=000002BA): unmapped program memory byte write to 0000F801 = 22
564
565*/
566
567/*************************
568*      Input Ports       *
569*************************/
570
571static INPUT_PORTS_START( lucky74 )
572
573/*  Player buttons are the same for players 1 & 2.
574    Test mode shows them as dupes. Maybe are multiplexed?
575*/
576   PORT_START_TAG("IN0")
577   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold 1") PORT_CODE(KEYCODE_Z)   /* 'A' in test mode */
578   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Hold 2") PORT_CODE(KEYCODE_X)   /* 'B' in test mode */
579   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold 3") PORT_CODE(KEYCODE_C)   /* 'C' in test mode */
580   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 4") PORT_CODE(KEYCODE_V)   /* 'D' in test mode */
581   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B)   /* 'E' in test mode */
582   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Small")  PORT_CODE(KEYCODE_S)   /* 'F' in test mode */
583   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Input G")  PORT_CODE(KEYCODE_J)   /* 'G' in test mode */
584   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Input H")  PORT_CODE(KEYCODE_K)   /* 'H' in test mode */
585
586   PORT_START_TAG("IN1")
587   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Bet")         PORT_CODE(KEYCODE_2)   /* 'I' in test mode */
588   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Start")       PORT_CODE(KEYCODE_1)   /* 'J' in test mode */
589   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON9 ) PORT_NAME("Cancel")      PORT_CODE(KEYCODE_N)   /* 'K' in test mode */
590   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON10 ) PORT_NAME("Double-Up")  PORT_CODE(KEYCODE_3)   /* 'L' in test mode */
591   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON11 ) PORT_NAME("Take Score") PORT_CODE(KEYCODE_4)   /* 'M' & 'Q' in test mode */
592   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON12 ) PORT_NAME("Big")        PORT_CODE(KEYCODE_A)   /* 'N' in test mode */
593   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_NAME("Input O & P")   PORT_CODE(KEYCODE_M)   /* 'O' & 'P' in test mode */
594   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )   /* not in test mode */
595
596   PORT_START_TAG("IN2")
597   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
598   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
599   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Books")      PORT_CODE(KEYCODE_0)
600   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Test Mode") PORT_CODE(KEYCODE_F2) PORT_TOGGLE
601   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Pay Out")   PORT_CODE(KEYCODE_E)
602   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Key Out")   PORT_CODE(KEYCODE_W)
603   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
604   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
605
606   PORT_START_TAG("IN3")   /* driven through YM2149, port A */
607   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )    PORT_IMPULSE(2)   /* Coin A */
608   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Key In")   PORT_CODE(KEYCODE_Q)
609   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 )    PORT_IMPULSE(2)   /* Coin B */
610   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 )    PORT_IMPULSE(2)   /* Coin C */
611   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE )  PORT_NAME("Service")   PORT_CODE(KEYCODE_9)
612   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
613   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
614   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
615
616   PORT_START_TAG("IN4")
617   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("Memory Reset Switch")   PORT_CODE(KEYCODE_R)
618   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
619   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
620   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
621   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
622   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
623   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
624   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
625
626   PORT_START_TAG("DSW1")
627   PORT_DIPNAME( 0x01, 0x01, "Unknown 1-1" )   PORT_DIPLOCATION("DSW1:1")
628   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
629   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
630   PORT_DIPNAME( 0x02, 0x02, "Jackpot" )      PORT_DIPLOCATION("DSW1:2")
631   PORT_DIPSETTING(    0x02, "2000" )
632   PORT_DIPSETTING(    0x00, "3000" )
633   PORT_DIPNAME( 0x04, 0x04, "Unknown 1-3" )   PORT_DIPLOCATION("DSW1:3")
634   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
635   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
636   PORT_DIPNAME( 0x08, 0x08, "Unknown 1-4" )   PORT_DIPLOCATION("DSW1:4")
637   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
638   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
639   PORT_DIPNAME( 0x10, 0x10, "Unknown 1-5" )   PORT_DIPLOCATION("DSW1:5")
640   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
641   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
642   PORT_DIPNAME( 0x20, 0x20, "Unknown 1-6" )   PORT_DIPLOCATION("DSW1:6")
643   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
644   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
645   PORT_DIPNAME( 0x40, 0x40, "Unknown 1-7" )   PORT_DIPLOCATION("DSW1:7")
646   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
647   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
648   PORT_DIPNAME( 0x80, 0x80, "Unknown 1-8" )   PORT_DIPLOCATION("DSW1:8")
649   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
650   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
651
652   PORT_START_TAG("DSW2")
653    /* DIPs 1-4 handle the harcoded coinage for Coin A, B and Remote credits */
654   PORT_DIPNAME( 0x0f, 0x0f, "Coinage A, B & Remote" )   PORT_DIPLOCATION("DSW2:1,2,3,4")
655   PORT_DIPSETTING(    0x00, "A: 20 Coins/1 Credit; B: 4 Coins/1 Credit;   R: 2 Pulses/1 Credit   " )
656   PORT_DIPSETTING(    0x01, "A: 15 Coins/1 Credit; B: 3 Coins/1 Credit;   R: 15 Pulses/10 Credits" )
657   PORT_DIPSETTING(    0x02, "A: 10 Coins/1 Credit; B: 2 Coins/1 Credit;   R: 1 Pulse/1 Credit    " )
658   PORT_DIPSETTING(    0x03, "A: 4 Coins/1 Credit;  B: 5 Coins/5 Credits;  R: 4 Pulses/10 Credits " )
659   PORT_DIPSETTING(    0x04, "A: 3 Coins/2 Credits; B: 3 Coins/10 Credits; R: 3 Pulses/20 Credits " )
660   PORT_DIPSETTING(    0x05, "A: 3 Coins/1 Credit;  B: 3 Coins/5 Credits;  R: 3 Pulses/10 Credits " )
661   PORT_DIPSETTING(    0x06, "A: 2 Coins/1 Credit;  B: 2 Coins/5 Credits;  R: 1 Pulse/5 Credits   " )
662   PORT_DIPSETTING(    0x07, "A: 5 Coins/1 Credit;  B: 1 Coin/1 Credit;    R: 1 Pulse/2 Credits   " )
663   PORT_DIPSETTING(    0x08, "A: 5 Coins/2 Credits; B: 1 Coin/2 Credits;   R: 1 Pulse/4 Credits   " )
664   PORT_DIPSETTING(    0x09, "A: 5 Coins/3 Credits; B: 1 Coin/3 Credits;   R: 1 Pulse/6 Credits   " )
665   PORT_DIPSETTING(    0x0a, "A: 5 Coins/4 Credits; B: 1 Coin/4 Credits;   R: 1 Pulse/8 Credits   " )
666   PORT_DIPSETTING(    0x0b, "A: 1 Coin/1 Credit;   B: 1 Coin/5 Credits;   R: 1 Pulse/10 Credits  " )
667   PORT_DIPSETTING(    0x0c, "A: 5 Coins/6 Credits; B: 1 Coin/6 Credits;   R: 1 Pulse/12 Credits  " )
668   PORT_DIPSETTING(    0x0d, "A: 1 Coin/2 Credits;  B: 1 Coin/10 Credits;  R: 1 Pulse/20 Credits  " )
669   PORT_DIPSETTING(    0x0e, "A: 1 Coin/5 Credits;  B: 1 Coin/25 Credits;  R: 1 Pulse/50 Credits  " )
670   PORT_DIPSETTING(    0x0f, "A: 1 Coin/10 Credits; B: 1 Coin/50 Credits;  R: 1 Pulse/100 Credits " )
671    /* DIPs 5-8 handle the Coin C coinage */
672   PORT_DIPNAME( 0xf0, 0xf0, "Coinage C" )            PORT_DIPLOCATION("DSW2:5,6,7,8")
673   PORT_DIPSETTING(    0x00, "10 Coins/1 Credit" )
674   PORT_DIPSETTING(    0x10, DEF_STR( 5C_1C ) )
675   PORT_DIPSETTING(    0x30, DEF_STR( 4C_1C ) )
676   PORT_DIPSETTING(    0x40, DEF_STR( 3C_1C ) )
677   PORT_DIPSETTING(    0x20, "5 Coins/2 Credits" )      /* 2.5 coins per credit */
678   PORT_DIPSETTING(    0x50, DEF_STR( 2C_1C ) )
679   PORT_DIPSETTING(    0x70, DEF_STR( 1C_1C ) )
680   PORT_DIPSETTING(    0x60, DEF_STR( 2C_3C ) )
681   PORT_DIPSETTING(    0x80, DEF_STR( 1C_2C ) )
682   PORT_DIPSETTING(    0x90, DEF_STR( 1C_3C ) )
683   PORT_DIPSETTING(    0xa0, DEF_STR( 1C_5C ) )
684   PORT_DIPSETTING(    0xb0, "1 Coin/10 Credits" )
685   PORT_DIPSETTING(    0xc0, "1 Coin/20 Credits" )
686   PORT_DIPSETTING(    0xd0, "1 Coin/25 Credits" )
687   PORT_DIPSETTING(    0xe0, "1 Coin/40 Credits" )
688   PORT_DIPSETTING(    0xf0, "1 Coin/50 Credits" )
689
690   PORT_START_TAG("DSW3")
691   PORT_DIPNAME( 0x01, 0x01, "Bet Max" )      PORT_DIPLOCATION("DSW3:1")
692   PORT_DIPSETTING(    0x01, "20" )
693   PORT_DIPSETTING(    0x00, "40" )
694   PORT_DIPNAME( 0x02, 0x02, "Unknown 3-2" )   PORT_DIPLOCATION("DSW3:2")
695   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
696   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
697   PORT_DIPNAME( 0x04, 0x04, "Unknown 3-3" )   PORT_DIPLOCATION("DSW3:3")
698   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
699   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
700   PORT_DIPNAME( 0x18, 0x18, "Limit" )         PORT_DIPLOCATION("DSW3:4,5")
701   PORT_DIPSETTING(    0x18, "No Limit" )
702   PORT_DIPSETTING(    0x10, "10000" )
703   PORT_DIPSETTING(    0x08, "15000" )
704   PORT_DIPSETTING(    0x00, "20000" )
705   PORT_DIPNAME( 0x20, 0x20, "Unknown 3-6" )   PORT_DIPLOCATION("DSW3:6")
706   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
707   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
708   PORT_DIPNAME( 0x40, 0x40, "Pay Table" )      PORT_DIPLOCATION("DSW3:7")
709   PORT_DIPSETTING(    0x40, "Table 1" )   /* see the game notes */
710   PORT_DIPSETTING(    0x00, "Table 2" )   /* see the game notes */
711   PORT_DIPNAME( 0x80, 0x80, "Unknown 3-8" )   PORT_DIPLOCATION("DSW3:8")
712   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
713   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
714
715   PORT_START_TAG("DSW4")
716   PORT_DIPNAME( 0x01, 0x01, "Unknown 4-1" )   PORT_DIPLOCATION("DSW4:1")
717   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
718   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
719   PORT_DIPNAME( 0x02, 0x02, "Unknown 4-2" )   PORT_DIPLOCATION("DSW4:2")
720   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
721   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
722   PORT_DIPNAME( 0x04, 0x04, "Unknown 4-3" )   PORT_DIPLOCATION("DSW4:3")
723   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
724   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
725   PORT_DIPNAME( 0x08, 0x08, "Unknown 4-4" )   PORT_DIPLOCATION("DSW4:4")
726   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
727   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
728   PORT_DIPNAME( 0x10, 0x10, "Unknown 4-5" )   PORT_DIPLOCATION("DSW4:5")
729   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
730   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
731   PORT_DIPNAME( 0x20, 0x20, "Unknown 4-6" )   PORT_DIPLOCATION("DSW4:6")
732   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
733   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
734   PORT_DIPNAME( 0x40, 0x40, "Unknown 4-7" )   PORT_DIPLOCATION("DSW4:7")
735   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
736   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
737   PORT_DIPNAME( 0x80, 0x80, "Unknown 4-8" )   PORT_DIPLOCATION("DSW4:8")
738   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
739   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
740INPUT_PORTS_END
741
742
743/*************************
744*    Graphics Layouts    *
745*************************/
746
747static const gfx_layout tilelayout =
748{
749   8, 8,
750   RGN_FRAC(1,4),   /* 4096 tiles */
751   4,
752   { 0, RGN_FRAC(1,4), RGN_FRAC(2,4), RGN_FRAC(3,4) },   /* bitplanes are separated */
753   { 0, 1, 2, 3, 4, 5, 6, 7 },
754   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
755   8*8   /* every char takes 8 consecutive bytes */
756};
757
758
759/******************************
760* Graphics Decode Information *
761******************************/
762
763static GFXDECODE_START( lucky74 )
764   GFXDECODE_ENTRY( REGION_GFX1, 0, tilelayout, 0, 16 )   /* text, frames & cards */
765   GFXDECODE_ENTRY( REGION_GFX2, 0, tilelayout, 256, 16 )   /* title & whores */
766GFXDECODE_END
767
768
769/*************************************
770*     PPI 82C255 (x2) Interfaces     *
771*************************************/
772
773/* Each 82C255 behaves like 2x 8255.
774   Since we don't support yet, we replace both 82C255
775   with 4x 8255...
776*/
777static const ppi8255_interface ppi8255_intf[4] =
778{
779   {   /* A & B as input */
780      input_port_0_r,         /* Port A read, IN0 */
781      input_port_1_r,         /* Port B read, IN1 */
782      NULL,               /* Port C read */
783      NULL,               /* Port A write */
784      NULL,               /* Port B write */
785      NULL               /* Port C write */
786   },
787   {   /* A & C as input */
788      input_port_2_r,         /* Port A read, IN2 */
789      NULL,               /* Port B read */
790      input_port_4_r,         /* Port C read, IN4 */
791      NULL,               /* Port A write */
792      NULL,               /* Port B write */
793      NULL               /* Port C write */
794   },
795   {   /* A, B & C as input */
796      input_port_5_r,         /* Port A read, DSW1 */
797      input_port_6_r,         /* Port B read, DSW2 */
798      input_port_7_r,         /* Port C read, DSW3 */
799      NULL,               /* Port A write */
800      NULL,               /* Port B write */
801      NULL               /* Port C write */
802   },
803   {   /* A as input */
804      input_port_8_r,         /* Port A read, DSW4 */
805      NULL,               /* Port B read */
806      NULL,               /* Port C read */
807      NULL,               /* Port A write */
808      NULL,               /* Port B write */
809      NULL               /* Port C write */
810   }
811};
812
813
814/*****************************
815*      Sound Interfaces      *
816*****************************/
817
818static const struct AY8910interface ay8910_interface =
819{
820   AY8910_LEGACY_OUTPUT,
821   AY8910_DEFAULT_LOADS,
822   input_port_3_r,
823   NULL,   /* a sort of status byte */
824   NULL,
825   unk_w
826};
827
828
829/*************************
830*    Machine Drivers     *
831*************************/
832
833static MACHINE_DRIVER_START( lucky74 )
834
835   /* basic machine hardware */
836   MDRV_CPU_ADD_TAG("main", Z80, MASTER_CLOCK/8)   /* guess */
837   MDRV_CPU_PROGRAM_MAP(lucky74_map, 0)
838   MDRV_CPU_IO_MAP(lucky74_portmap,0)
839   MDRV_CPU_VBLANK_INT("main", nmi_interrupt)
840
841   MDRV_NVRAM_HANDLER(generic_0fill)
842
843   /* 2x 82c255 (4x 8255) */
844   MDRV_DEVICE_ADD( "ppi8255_0", PPI8255 )
845   MDRV_DEVICE_CONFIG( ppi8255_intf[0] )
846
847   MDRV_DEVICE_ADD( "ppi8255_1", PPI8255 )
848   MDRV_DEVICE_CONFIG( ppi8255_intf[1] )
849
850   MDRV_DEVICE_ADD( "ppi8255_2", PPI8255 )
851   MDRV_DEVICE_CONFIG( ppi8255_intf[2] )
852
853   MDRV_DEVICE_ADD( "ppi8255_3", PPI8255 )
854   MDRV_DEVICE_CONFIG( ppi8255_intf[3] )
855
856
857   /* video hardware */
858   MDRV_SCREEN_ADD("main", RASTER)
859   MDRV_SCREEN_REFRESH_RATE(60)
860   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
861   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
862   MDRV_SCREEN_SIZE(64*8, 32*8)
863   MDRV_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 1*8, 30*8-1)   /* allow to show the top of bg gfx */
864
865   MDRV_GFXDECODE(lucky74)
866
867   MDRV_PALETTE_INIT(lucky74)
868   MDRV_PALETTE_LENGTH(512)
869
870   MDRV_VIDEO_START(lucky74)
871   MDRV_VIDEO_UPDATE(lucky74)
872
873   /* sound hardware */
874   MDRV_SPEAKER_STANDARD_MONO("mono")
875
876   MDRV_SOUND_ADD(AY8910, MASTER_CLOCK/8)   /* YM2149F */
877   MDRV_SOUND_CONFIG(ay8910_interface)
878   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
879
880MACHINE_DRIVER_END
881
882
883/*************************
884*        Rom Load        *
885*************************/
886
887ROM_START( lucky74s )
888   ROM_REGION( 0x10000, REGION_CPU1, 0 )
889   ROM_LOAD( "luckychi.00",   0x0000, 0x10000, CRC(3b906f0e) SHA1(1f9abd168c60b0d22fa6c7391bfdf5f3aabd66ef) )
890
891   ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE )
892   ROM_LOAD( "luckychi.12",   0x00000, 0x8000, CRC(ff934c20) SHA1(07cd2225dfc0e5b74be2e1b379c6b180e37660db) )
893   ROM_LOAD( "luckychi.11",   0x08000, 0x8000, CRC(2fd6fb8a) SHA1(1a910e0a2e6db22a8d9a65d7b932f9ca39601e9c) )
894   ROM_LOAD( "luckychi.13",   0x10000, 0x8000, CRC(c70a6da3) SHA1(195772ef649e21a5c54c5871e7b858967b6ebee8) )
895   ROM_LOAD( "luckychi.14",   0x18000, 0x8000, CRC(b5813b67) SHA1(cce38e33a5218d6839d956174807d88e7c070d5a) )
896
897   ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE )
898   ROM_LOAD( "luckychi.17",   0x00000, 0x8000, CRC(010ffa4a) SHA1(8856d61b71e951509073bc359851f47c39c4274d) )
899   ROM_LOAD( "luckychi.16",   0x08000, 0x8000, CRC(15104810) SHA1(586df734740209e2a05932e31d2a301d330e8cbd) )
900   ROM_LOAD( "luckychi.18",   0x10000, 0x8000, CRC(f2d45e76) SHA1(46df7bf98434c836fd38539575a35bf67c9ec2c6) )
901   ROM_LOAD( "luckychi.19",   0x18000, 0x8000, CRC(6b0196f3) SHA1(277049279dcfcf07189dbdb20935c2a71b2f6061) )
902
903   ROM_REGION( 0x10000, REGION_SOUND1, 0 )   /* 4-bit ADPCM samples @ 8kHz */
904   ROM_LOAD( "luckyson.15",   0x00000, 0x10000, CRC(b896c87f) SHA1(985e625a937abd6353218f0cace14d3adec4c1bf) )
905
906   ROM_REGION( 0x0600, REGION_PROMS, 0 )
907   ROM_LOAD( "luckyprom.e6",   0x0000, 0x0100, CRC(ae793fef) SHA1(e4e2d2dccabad7d756811fb2d5e123bf30f106f3) )
908   ROM_LOAD( "luckyprom.e7",   0x0100, 0x0100, CRC(7c772d0c) SHA1(9c99daa01ca56c7ebd48945505fcbae184998b13) )
909   ROM_LOAD( "luckyprom.d6",   0x0200, 0x0100, CRC(61716584) SHA1(7a3e17f47ce173d79c12b2394edb8f32b7509e39) )
910   ROM_LOAD( "luckyprom.d7",   0x0300, 0x0100, CRC(4003bc8f) SHA1(f830203c22a4f94b8b9f0b24e287204a742a8322) )
911   ROM_LOAD( "luckyprom.c6",   0x0400, 0x0100, CRC(a8d2b3db) SHA1(7b346797bedc627fb2d49f19b18860a81c69e122) )
912   ROM_LOAD( "luckyprom.c7",   0x0500, 0x0100, CRC(e62fd192) SHA1(86a189df2e2ccef6bd2a4e6d969e777fbba8cdf7) )
913ROM_END
914
915ROM_START( lucky74b )
916
917/*  The program ROM seems incomplete.
918    At start, just pop some registers and make a RTI.
919    Maybe protection?
920*/
921   ROM_REGION( 0x10000, REGION_CPU1, 0 )
922   ROM_LOAD( "luckygde.00",   0x0000, 0x10000, CRC(e3f7db99) SHA1(5c7d9d3fed9eb19d3d666c8c08b34968a9996a96) )   /* bad dump? */
923
924   ROM_REGION( 0x20000, REGION_GFX1, ROMREGION_DISPOSE )
925   ROM_LOAD( "luckygde.12",   0x00000, 0x8000, CRC(7127465b) SHA1(3f72f91652fcab52c073744b1651fdfe772c584a) )
926   ROM_LOAD( "luckygde.11",   0x08000, 0x8000, CRC(8a5ea91a) SHA1(8d22615c00ff7c8a27cd721618b5d32a8d089c95) )
927   ROM_LOAD( "luckygde.13",   0x10000, 0x8000, CRC(bbb63ac1) SHA1(ab986055e34d90e81caf20c28c5ad89715209d0e) )
928   ROM_LOAD( "luckygde.14",   0x18000, 0x8000, CRC(dcffdf07) SHA1(d63fd7d23e488650d3731830f07bce0ce64424b8) )
929
930   ROM_REGION( 0x20000, REGION_GFX2, ROMREGION_DISPOSE )
931   ROM_LOAD( "luckygde.17",   0x00000, 0x8000, CRC(18da3468) SHA1(6dc60da939bfa7528e1fe75a85328a32047c8990) )
932   ROM_LOAD( "luckygde.16",   0x08000, 0x8000, CRC(0e831be5) SHA1(302a68203f565718f7f537dab50fb52250c48859) )
933   ROM_LOAD( "luckygde.18",   0x10000, 0x8000, CRC(717e5f4e) SHA1(0f14c9525bf77bbc4de0d9695648acb40870a176) )
934   ROM_LOAD( "luckygde.19",   0x18000, 0x8000, CRC(bb4608ae) SHA1(cc8ec596f445fe0364f254241227de368f309ebb) )
935
936   ROM_REGION( 0x10000, REGION_SOUND1, 0 )   /* 4-bit ADPCM samples @ 8kHz */
937   ROM_LOAD( "luckyson.15",   0x00000, 0x10000, CRC(b896c87f) SHA1(985e625a937abd6353218f0cace14d3adec4c1bf) )
938
939   ROM_REGION( 0x0600, REGION_PROMS, 0 )
940   ROM_LOAD( "luckyprom.e6",   0x0000, 0x0100, CRC(ae793fef) SHA1(e4e2d2dccabad7d756811fb2d5e123bf30f106f3) )
941   ROM_LOAD( "luckyprom.e7",   0x0100, 0x0100, CRC(7c772d0c) SHA1(9c99daa01ca56c7ebd48945505fcbae184998b13) )
942   ROM_LOAD( "luckyprom.d6",   0x0200, 0x0100, CRC(61716584) SHA1(7a3e17f47ce173d79c12b2394edb8f32b7509e39) )
943   ROM_LOAD( "luckyprom.d7",   0x0300, 0x0100, CRC(4003bc8f) SHA1(f830203c22a4f94b8b9f0b24e287204a742a8322) )
944   ROM_LOAD( "luckyprom.c6",   0x0400, 0x0100, CRC(a8d2b3db) SHA1(7b346797bedc627fb2d49f19b18860a81c69e122) )
945   ROM_LOAD( "luckyprom.c7",   0x0500, 0x0100, CRC(e62fd192) SHA1(86a189df2e2ccef6bd2a4e6d969e777fbba8cdf7) )
946ROM_END
947
948
949/*********************************************
950*                Game Drivers                *
951**********************************************
952
953      YEAR  NAME      PARENT    MACHINE  INPUT     INIT  ROT    COMPANY         FULLNAME           FLAGS */
954GAME( 1988, lucky74s, 0,        lucky74, lucky74,  0,    ROT0, "Wing Co.Ltd.", "Lucky 74 (small)", GAME_NO_SOUND )
955GAME( 1988, lucky74b, lucky74s, lucky74, lucky74,  0,    ROT0, "Wing Co.Ltd.", "Lucky 74 (big)",   GAME_NO_SOUND | GAME_NOT_WORKING )
src/mame/drivers/tatsumi.c
r2935r2936
12631263   memory_set_bankptr(2, dst);
12641264
12651265   // Copy sprite & palette data out of GFX rom area
1266   tatsumi_rom_sprite_lookup1 = src1;
1267   tatsumi_rom_sprite_lookup2 = src2;
1268   tatsumi_rom_clut0 = src1 + len1 - 0x1000;
1269   tatsumi_rom_clut1 = src2 + len2 - 0x1000;
1266   tatsumi_rom_sprite_lookup1 = memory_region(machine, REGION_GFX2);
1267   tatsumi_rom_sprite_lookup2 = memory_region(machine, REGION_GFX3);
1268   tatsumi_rom_clut0 = memory_region(machine, REGION_GFX2) + len1 - 0x1000;
1269   tatsumi_rom_clut1 = memory_region(machine, REGION_GFX3) + len2 - 0x1000;
12701270
12711271   tatsumi_reset();
12721272}
src/mame/drivers/megaplay.c
r2935r2936
10301030/* ?? */ GAME( 1993, mp_col3,  megaplay, mpnew, megaplay, megaplay, ROT0, "Sega",                  "Columns III (Mega Play)" , 0 )
10311031
10321032
1033/* Also known to exist:
1033/* Also confirmed to exist:
10341034Gunstar Heroes
1035+ at least 2 others?
1035Shinobi III
10361036
1037system16.com lists 'Streets of Rage' but this seems unlikely, there are no gaps in
1038the numbering prior to 'Streets of Rage 2'
1039
10371040*/
src/mame/drivers/taito_f3.c
r2935r2936
4040#include "taito_f3.h"
4141#include "sound/es5506.h"
4242#include "audio/taito_en.h"
43#include "sound/okim6295.h"
4344
4445static UINT32 coin_word[2], *f3_ram;
4546UINT32 *f3_shared_ram;
r2935r2936
494495   MDRV_SCREEN_VISIBLE_AREA(46, 40*8-1 + 46, 24, 24+224-1)
495496MACHINE_DRIVER_END
496497
498
499static const gfx_layout bubsympb_sprite_layout =
500{
501   16,16,
502   RGN_FRAC(1,6),
503   6,
504   { RGN_FRAC(0,6), RGN_FRAC(1,6), RGN_FRAC(2,6), RGN_FRAC(3,6), RGN_FRAC(4,6), RGN_FRAC(5,6) },
505   { 7,6,5,4,3,2,1,0,15,14,13,12,11,10,9,8 },
506   { 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16, 8*16, 9*16, 10*16, 11*16, 12*16, 13*16, 14*16, 15*16 },
507   16*16
508};
509
510static const gfx_layout bubsympb_tile_layout =
511{
512   16,16,
513   RGN_FRAC(1,2),
514   5,
515   { RGN_FRAC(1,2)+0, 0,1,2,3 },
516   { 20,16,12,8,4,0,28,24,52,48,44,40,36,32,60,56 },
517   { 0*64, 1*64, 2*64, 3*64, 4*64, 5*64, 6*64, 7*64, 8*64, 9*64, 10*64, 11*64, 12*64, 13*64, 14*64, 15*64 },
518   16*64
519};
520
521
522static GFXDECODE_START( bubsympb )
523   GFXDECODE_ENTRY( 0,           0x000000, charlayout,          0,  64 ) /* Dynamically modified */
524   GFXDECODE_ENTRY( REGION_GFX2, 0x000000, bubsympb_tile_layout, 0, 512 ) /* Tiles area */
525   GFXDECODE_ENTRY( REGION_GFX1, 0x000000, bubsympb_sprite_layout, 4096, 256 ) /* Sprites area */
526   GFXDECODE_ENTRY( 0,           0x000000, pivotlayout,         0,  64 ) /* Dynamically modified */
527GFXDECODE_END
528
529static MACHINE_DRIVER_START( bubsympb )
530   /* basic machine hardware */
531   MDRV_CPU_ADD(M68EC020, 16000000)
532   MDRV_CPU_PROGRAM_MAP(f3_readmem,f3_writemem)
533   MDRV_CPU_VBLANK_INT("main", f3_interrupt2)
534
535   MDRV_MACHINE_START(f3)
536   //MDRV_MACHINE_RESET(f3)
537   MDRV_NVRAM_HANDLER(taito_f3)
538
539    /* video hardware */
540   MDRV_SCREEN_ADD("main", RASTER)
541   MDRV_SCREEN_REFRESH_RATE(58.97)
542   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(624) /* 58.97 Hz, 624us vblank time */)
543   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32)
544   MDRV_SCREEN_SIZE(40*8+48*2, 32*8)
545   MDRV_SCREEN_VISIBLE_AREA(46, 40*8-1 + 46, 31, 31+224-1)
546
547   MDRV_GFXDECODE(bubsympb)
548   MDRV_PALETTE_LENGTH(8192)
549
550   MDRV_VIDEO_START(f3)
551   MDRV_VIDEO_EOF(f3)
552   MDRV_VIDEO_UPDATE(f3)
553
554   /* sound hardware */
555   MDRV_SPEAKER_STANDARD_MONO("mono")
556
557   MDRV_SOUND_ADD(OKIM6295, 1000000 ) // not verified
558   MDRV_SOUND_CONFIG(okim6295_interface_region_1_pin7high) // not verified
559   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
560MACHINE_DRIVER_END
561
497562/******************************************************************************/
498563
499564ROM_START( ringrage )
r2935r2936
18331898   ROM_LOAD( "palce16v8q-d77-14.bin", 0x0800, 0x0117, CRC(7427e777) SHA1(e692cedb13e5bc02edc4b25e9dcea51e6715de85) )
18341899ROM_END
18351900
1901/* bootleg without ensoniq sound system */
1902/* the bootleg has some graphical problems because the actual bootleg hardware
1903   doesn't replicate the f3 system perfectly */
1904
1905/*
1906
1907Bubble Symphony hack
1908This romset comes from a bootleg single board modified Taito F3 System,the only know bootleg/hacked game of this system.Differences are:Date in copyright string removed,part of background layer corrupted or missing (as i have seen in arcade).
1909Hardware info:
1910Main cpu 68020
1911Sound chip OKI6295
1912Other chips 2x A1020B PLC
1913OSC 32 and 26Mhz.
1914The audio section was totally modified.It lacks 68000 and Ensoniq chips,these surely due to availability problems and to hold low production costs.
1915Some musics are missing,too.
1916Sound volume regulation output is gained via common analog operational and power ic amplification (LM324 and 1241).In test mode,digital regulation hasn't effect,due to obvious reason.
1917Rom definition:
1918D11->ADPCM sound data
1919D12 to D15->main program
1920D11b to D15b and D16 to D20->graphics
1921All eprom are 8bit (27C020,27C208 and 27C040,27C4001).
1922
1923Dumped by tirino73
1924
1925*/
1926
1927
1928ROM_START( bubsympb )
1929   ROM_REGION(0x200000, REGION_CPU1, 0) /* 68020 code */
1930    ROM_LOAD32_BYTE("bsb_d12.bin", 0x000000, 0x40000, CRC(d05160fc) SHA1(62eb47827d4089711af1187455faeb62a8d9e369) )
1931   ROM_LOAD32_BYTE("bsb_d13.bin", 0x000001, 0x40000, CRC(83fc0d2c) SHA1(275a923e6e6b6763cb7036d94943609eb9ce866b) )
1932   ROM_LOAD32_BYTE("bsb_d14.bin", 0x000002, 0x40000, CRC(e6d49bb7) SHA1(9ca509ffd3f46160f3bbb0ceee9abcd09f9f9ad1) )
1933   ROM_LOAD32_BYTE("bsb_d15.bin", 0x000003, 0x40000, CRC(014cf8e0) SHA1(5e91fc6665c1d472d0651c06108ea6a8eb5ae8b4) )
1934
1935   ROM_REGION(0x300000, REGION_GFX1 , ROMREGION_DISPOSE) /* Sprites (5bpp) */
1936   ROM_FILL       (        0x000000, 0x080000, 0 )
1937   ROM_LOAD("bsb_d18.bin", 0x080000, 0x080000, CRC(22d7eeb5) SHA1(30aa4493c5bc98d9256817b9e3341b20d2b76f1f) )
1938   ROM_LOAD("bsb_d19.bin", 0x100000, 0x080000, BAD_DUMP CRC(34185806) SHA1(dcb61f07aa3c0c274243797312c04b0f8dbfd9ea) ) // some bad bits (could probably be fixed using original set)
1939   ROM_LOAD("bsb_d20.bin", 0x180000, 0x080000, CRC(20222e15) SHA1(41f2f94afd65d0c106752f254f20b593906cba28) )
1940   ROM_LOAD("bsb_d17.bin", 0x200000, 0x080000, CRC(ea2eadfc) SHA1(2c4176e89f816166f410888cd2e837891a4289a3) )
1941   ROM_LOAD("bsb_d16.bin", 0x280000, 0x080000, CRC(edccd4e0) SHA1(e00d3c1a91f9a96e1ae7d45842315d839c9cd440) )
1942
1943   ROM_REGION(0x400000, REGION_GFX2 , ROMREGION_DISPOSE) /* Tiles */
1944   ROM_LOAD32_BYTE("bsb_d13b.bin", 0x000000, 0x080000, CRC(430af2aa) SHA1(e935f9f4e0558a25bd4010b44dbb4f38a9d359e0) )
1945   ROM_LOAD32_BYTE("bsb_d14b.bin", 0x000001, 0x080000, CRC(c006e832) SHA1(4aebbac188af1ef9176581ac68ac12ce397f2f08) )
1946   ROM_LOAD32_BYTE("bsb_d15b.bin", 0x000002, 0x080000, CRC(74644ad4) SHA1(c7610e413c965eb4e40b548d13efdcbc3dde23be) )
1947   ROM_LOAD32_BYTE("bsb_d12b.bin", 0x000003, 0x080000, BAD_DUMP CRC(6760ac05) SHA1(65725bcc9aa94a1d800b8d569fef30df542f3c4d) ) // bad lines in places
1948   ROM_LOAD32_BYTE("bsb_d11b.bin", 0x200000, 0x080000, BAD_DUMP CRC(d854a38b) SHA1(79fa66b72d526c8270ba2a356d2b44447f4c0a5c) ) // bad lines in places
1949
1950   ROM_REGION(0x100000, REGION_SOUND1 , ROMREGION_ERASE00 ) // OKI6295 samples
1951   ROM_LOAD("bsb_d11.bin", 0x000000, 0x080000, CRC(26bdc617) SHA1(993e7a52128fdd58f22d95521a629beb71ca7b91) ) // I haven't verified this dump.. but given how bad the rest is I'm not confident
1952   ROM_RELOAD(0x80000,0x80000)
1953ROM_END
1954
18361955ROM_START( bubsympu )
18371956   ROM_REGION(0x200000, REGION_CPU1, 0) /* 68020 code */
18381957    ROM_LOAD32_BYTE("d90-12", 0x000000, 0x40000, CRC(9e523996) SHA1(c49a426f9865f96e8021c8ed9a6ac094c5e586b1) )
r2935r2936
33763495   tile_decode(machine, 1);
33773496}
33783497
3498
3499static READ32_HANDLER( bubsympb_oki_r )
3500{
3501   return OKIM6295_status_0_r(machine,0);
3502}
3503static WRITE32_HANDLER( bubsympb_oki_w )
3504{
3505   //printf("write %08x %08x\n",data,mem_mask);
3506   if (ACCESSING_BITS_0_7) OKIM6295_data_0_w(machine,0,data&0xff);
3507   //if (mem_mask==0x000000ff) OKIM6295_data_0_w(machine,0,data&0xff);
3508   if (ACCESSING_BITS_16_23)
3509   {
3510      UINT8 *snd = memory_region(machine, REGION_SOUND1);
3511      int bank = (data & 0x000f0000) >> 16;
3512      // almost certainly wrong
3513      memcpy(snd+0x30000, snd+0x80000+0x30000+bank*0x10000, 0x10000);
3514
3515      //printf("oki bank w %08x\n",data);
3516   }
3517
3518
3519}
3520
3521
3522static DRIVER_INIT( bubsympb )
3523{
3524   memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x400134, 0x400137, 0, 0, irq_speedup_r_bubsymph );
3525   f3_game=BUBSYMPH;
3526   //tile_decode(machine, 1);
3527
3528   /* expand gfx rom */
3529   {
3530      int i;
3531      UINT8 *gfx = memory_region(machine, REGION_GFX2);
3532
3533      for (i=0x200000;i<0x400000; i+=4)
3534      {
3535         UINT8 byte = gfx[i];
3536         gfx[i+0] = (byte & 0x80)? 1<<4 : 0<<4;
3537         gfx[i+0]|= (byte & 0x40)? 1<<0 : 0<<0;
3538         gfx[i+1] = (byte & 0x20)? 1<<4 : 0<<4;
3539         gfx[i+1]|= (byte & 0x10)? 1<<0 : 0<<0;
3540         gfx[i+2] = (byte & 0x08)? 1<<4 : 0<<4;
3541         gfx[i+2]|= (byte & 0x04)? 1<<0 : 0<<0;
3542         gfx[i+3] = (byte & 0x02)? 1<<4 : 0<<4;
3543         gfx[i+3]|= (byte & 0x01)? 1<<0 : 0<<0;
3544      }
3545   }
3546
3547   memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x4a001c, 0x4a001f, 0, 0, bubsympb_oki_r );
3548   memory_install_write32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x4a001c, 0x4a001f, 0, 0, bubsympb_oki_w );
3549}
3550
3551
33793552static DRIVER_INIT( bubblem )
33803553{
33813554   memory_install_read32_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x400134, 0x400137, 0, 0, irq_speedup_r_bubblem );
r2935r2936
35523725GAME( 1994, bubsympe, bublbob2, f3_224a, f3, bubsymph, ROT0,   "Taito Corporation Japan",   "Bubble Symphony (Ver 2.5O 1994/10/05)", 0 )
35533726GAME( 1994, bubsympu, bublbob2, f3_224a, f3, bubsymph, ROT0,   "Taito America Corporation", "Bubble Symphony (Ver 2.5A 1994/10/05)", 0 )
35543727GAME( 1994, bubsymph, bublbob2, f3_224a, f3, bubsymph, ROT0,   "Taito Corporation",         "Bubble Symphony (Ver 2.5J 1994/10/05)", 0 )
3728GAME( 1994, bubsympb, bublbob2, bubsympb,f3, bubsympb, ROT0,   "bootleg",                   "Bubble Symphony (bootleg with OKI6295)", GAME_NOT_WORKING ) // backgrounds don't display
35553729GAME( 1994, spcinvdj, spacedx,  f3,      f3, spcinvdj, ROT0,   "Taito Corporation",         "Space Invaders DX (Ver 2.6J 1994/09/14) (F3 Version)", 0 )
35563730GAME( 1994, pwrgoal,  0,        f3_224a, f3, hthero95, ROT0,   "Taito Corporation Japan",   "Taito Power Goal (Ver 2.5O 1994/11/03)", 0 )
35573731GAME( 1994, hthero95, pwrgoal,  f3_224a, f3, hthero95, ROT0,   "Taito Corporation",         "Hat Trick Hero '95 (Ver 2.5J 1994/11/03)", 0 )
src/mame/drivers/cave.c
r2935r2936
7878#include "sound/okim6295.h"
7979#include "sound/ymz280b.h"
8080
81extern UINT16 *cave_spriteram16_2;
82
8183/***************************************************************************
8284
8385
r2935r2936
9395static UINT8 unknown_irq;
9496static UINT8 agallet_vblank_irq;
9597
98
9699/* Update the IRQ state based on all possible causes */
97100static void update_irq_state(running_machine *machine)
98101{
r2935r2936
504507   AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM                  )   // RAM
505508   AM_RANGE(0x300000, 0x300003) AM_WRITE(cave_sound_w               )   // YMZ280
506509   AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
507   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM                  )   // Sprites?
510   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)
508511   AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0   )   // Layer 0
509512   AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1   )   // Layer 1
510513   AM_RANGE(0x708000, 0x708fff) AM_WRITE(SMH_RAM) AM_BASE(&paletteram16) AM_SIZE(&cave_paletteram_size)   // Palette
r2935r2936
543546   AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM                     )   // RAM
544547   AM_RANGE(0x300000, 0x300003) AM_WRITE(cave_sound_w                  )   // YMZ280
545548   AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
546   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM                     )   // Sprites?
549   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)
547550   AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0   )   // Layer 0
548551   AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1   )   // Layer 1
549552   AM_RANGE(0x700000, 0x70ffff) AM_WRITE(cave_vram_2_8x8_w) AM_BASE(&cave_vram_2   )   // Layer 2
r2935r2936
611614   AM_RANGE(0x300000, 0x307fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0   )   // Layer 0
612615   AM_RANGE(0x400000, 0x407fff) AM_WRITE(cave_vram_2_8x8_w) AM_BASE(&cave_vram_2   )   // Layer 2
613616   AM_RANGE(0x500000, 0x507fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
614   AM_RANGE(0x508000, 0x50ffff) AM_WRITE(SMH_RAM                     )   // Sprites?
617   AM_RANGE(0x508000, 0x50ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)
615618   AM_RANGE(0x600000, 0x600005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_1         )   // Layer 1 Control
616619   AM_RANGE(0x700000, 0x700005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0         )   // Layer 0 Control
617620   AM_RANGE(0x800000, 0x800005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_2         )   // Layer 2 Control
r2935r2936
651654   AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM                  )   // RAM
652655   AM_RANGE(0x300000, 0x300003) AM_WRITE(cave_sound_w               )   // YMZ280
653656   AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
654   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM                  )   // Sprites?
657   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)   // Sprites?
655658   AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0   )   // Layer 0
656659   AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1   )   // Layer 1
657660   AM_RANGE(0x700000, 0x707fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2   )   // Layer 2
r2935r2936
695698   AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM                  )   // RAM
696699   AM_RANGE(0x300000, 0x300003) AM_WRITE(cave_sound_w               )   // YMZ280
697700   AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprite bank 1
698   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM                  )   // Sprite bank 2
701   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2) // Sprite bank 2
699702   AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0   )   // Layer 0
700703   AM_RANGE(0x508000, 0x50ffff) AM_WRITE(SMH_RAM                  )   // More Layer 0, Tested but not used?
701704   AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1   )   // Layer 1
r2935r2936
739742   AM_RANGE(0x200000, 0x20ffff) AM_WRITE(SMH_RAM                  )   // RAM
740743   AM_RANGE(0x300000, 0x30007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs   )   // Video Regs
741744   AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
742   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM                  )   // Sprites?
745   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)
743746   AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0   )   // Layer 0
744747   AM_RANGE(0x600000, 0x607fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1   )   // Layer 1
745748   AM_RANGE(0x700000, 0x707fff) AM_WRITE(cave_vram_2_w) AM_BASE(&cave_vram_2   )   // Layer 2
r2935r2936
791794   AM_RANGE(0xd00000, 0xd00001) AM_WRITE(hotdogst_eeprom_msb_w         )   // EEPROM
792795   AM_RANGE(0xd00002, 0xd00003) AM_WRITE(SMH_NOP                  )   // ???
793796   AM_RANGE(0xf00000, 0xf07fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
794   AM_RANGE(0xf08000, 0xf0ffff) AM_WRITE(SMH_RAM                  )   // Sprites?
797   AM_RANGE(0xf08000, 0xf0ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)
795798ADDRESS_MAP_END
796799
797800
r2935r2936
915918   AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM                     )   // ROM
916919   AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM                     )   // RAM
917920   AM_RANGE(0x200000, 0x207fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
918   AM_RANGE(0x208000, 0x20ffff) AM_WRITE(SMH_RAM                     )   // Sprites?
921   AM_RANGE(0x208000, 0x20ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)
919922   AM_RANGE(0x300068, 0x300069) AM_WRITE(watchdog_reset16_w            )   // Watchdog
920923   AM_RANGE(0x30006e, 0x30006f) AM_WRITE(sound_cmd_w                  )   // To Sound CPU
921924   AM_RANGE(0x300000, 0x30007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs      )   // Video Regs
r2935r2936
977980   AM_RANGE(0xc00000, 0xc00005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0      )   // Layer 0 Control
978981   AM_RANGE(0xd00000, 0xd00001) AM_WRITE(metmqstr_eeprom_msb_w         )   // EEPROM
979982   AM_RANGE(0xf00000, 0xf07fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
980   AM_RANGE(0xf08000, 0xf0ffff) AM_WRITE(SMH_RAM                  )   // RAM
983   AM_RANGE(0xf08000, 0xf0ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)
981984ADDRESS_MAP_END
982985
983986
r2935r2936
10421045   AM_RANGE(0x900000, 0x907fff) AM_WRITE(cave_vram_1_w) AM_BASE(&cave_vram_1   )   // Layer 1
10431046   AM_RANGE(0x980000, 0x987fff) AM_WRITE(cave_vram_3_8x8_w) AM_BASE(&cave_vram_3   )   // Layer 3
10441047   AM_RANGE(0xa00000, 0xa07fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
1045   AM_RANGE(0xa08000, 0xa0ffff) AM_WRITE(SMH_RAM                     )   // Sprites?
1048   AM_RANGE(0xa08000, 0xa0ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)
10461049   AM_RANGE(0xa10000, 0xa1ffff) AM_WRITE(SMH_RAM                     )   // Sprites?
10471050   AM_RANGE(0xa80000, 0xa8007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs      )   // Video Regs
10481051   AM_RANGE(0xb00000, 0xb00005) AM_WRITE(pwrinst2_vctrl_2_w) AM_BASE(&cave_vctrl_2         )   // Layer 2 Control
r2935r2936
11141117   AM_RANGE(0x40c000, 0x40ffff) AM_WRITE(SMH_RAM                     )   // (agallet)
11151118   AM_RANGE(0x410000, 0x410001) AM_WRITE(SMH_RAM                     )   // (agallet)
11161119   AM_RANGE(0x500000, 0x507fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
1117   AM_RANGE(0x508000, 0x50ffff) AM_WRITE(SMH_RAM                     )   // Sprites?
1120   AM_RANGE(0x508000, 0x50ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)
11181121   AM_RANGE(0x510000, 0x510001) AM_WRITE(SMH_RAM                     )   // (agallet)
11191122   AM_RANGE(0x700000, 0x700001) AM_WRITE(sailormn_eeprom_msb_w            )   // EEPROM
11201123   AM_RANGE(0x800000, 0x807fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0      )   // Layer 0
r2935r2936
11521155   AM_RANGE(0x100000, 0x10ffff) AM_WRITE(SMH_RAM                  )   // RAM
11531156   AM_RANGE(0x300000, 0x300003) AM_WRITE(cave_sound_w               )   // YMZ280
11541157   AM_RANGE(0x400000, 0x407fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size   )   // Sprites
1155   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM                  )   // Sprites?
1158   AM_RANGE(0x408000, 0x40ffff) AM_WRITE(SMH_RAM) AM_BASE(&cave_spriteram16_2)
11561159   AM_RANGE(0x500000, 0x507fff) AM_WRITE(cave_vram_0_w) AM_BASE(&cave_vram_0   )   // Layer 0
11571160   AM_RANGE(0x600000, 0x60007f) AM_WRITE(SMH_RAM) AM_BASE(&cave_videoregs   )   // Video Regs
11581161   AM_RANGE(0x700000, 0x700005) AM_WRITE(SMH_RAM) AM_BASE(&cave_vctrl_0      )   // Layer 0 Control
src/osd/windows/output.c
r2935r2936
251251         *client = (*client)->next;
252252         free(temp);
253253         found = TRUE;
254         break;
254255      }
255256
256257   // return an error if not found
src/emu/cpu/cop400/cop410.c
r2935r2936
2020
2121*/
2222
23#include "driver.h"
2324#include "cpuintrf.h"
2425#include "debugger.h"
2526#include "cop400.h"
r2935r2936
390391}
391392
392393/**************************************************************************
394 * Validity check
395 **************************************************************************/
396static int cop410_validity_check(const game_driver *driver, const void *config)
397{
398   int error = FALSE;
399   const cop400_interface *intf = (const cop400_interface *) config;
400
401   if ((intf == NULL) || (intf->cki <= 0))
402   {
403      mame_printf_error("%s: %s has an invalid CPU configuration\n", driver->source_file, driver->name);
404      error = TRUE;
405   }
406
407   return error;
408}
409
410/**************************************************************************
393411 * Generic set_info
394412 **************************************************************************/
395413
r2935r2936
471489      case CPUINFO_PTR_BURN:                     info->burn = NULL;                  break;
472490      case CPUINFO_PTR_DISASSEMBLE:               info->disassemble = cop410_dasm;      break;
473491      case CPUINFO_PTR_INSTRUCTION_COUNTER:         info->icount = &cop410_ICount;         break;
492      case CPUINFO_PTR_VALIDITY_CHECK:            info->validity_check = cop410_validity_check;   break;
474493
475494/*      case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_PROGRAM:
476495            info->internal_map8 = address_map_cop410_internal_rom;                              break;*/
src/emu/video/tms34061.c
r2935r2936
175175      video_screen_update_partial(tms34061.screen, video_screen_get_vpos(tms34061.screen));
176176
177177   /* store the hi/lo half */
178   if (offset & 0x02)
179      tms34061.regs[regnum] = (tms34061.regs[regnum] & 0x00ff) | (data << 8);
180   else
181      tms34061.regs[regnum] = (tms34061.regs[regnum] & 0xff00) | data;
178   if (regnum < ARRAY_LENGTH(tms34061.regs))
179   {
180      if (offset & 0x02)
181         tms34061.regs[regnum] = (tms34061.regs[regnum] & 0x00ff) | (data << 8);
182      else
183         tms34061.regs[regnum] = (tms34061.regs[regnum] & 0xff00) | data;
184   }
182185
183186   /* log it */
184187   if (VERBOSE) logerror("%04X:tms34061 %s = %04x\n", activecpu_get_pc(), regnames[regnum], tms34061.regs[regnum]);
r2935r2936
238241   UINT16 result;
239242
240243   /* extract the correct portion of the register */
241   result = tms34061.regs[regnum];
244   if (regnum < ARRAY_LENGTH(tms34061.regs))
245      result = tms34061.regs[regnum];
246   else
247      result = 0xffff;
242248
243249   /* special cases: */
244250   switch (regnum)
src/emu/video/mc6845.c
r2935r2936
804804   mc6845->light_pen_latched = FALSE;
805805}
806806
807static DEVICE_VALIDITY_CHECK( mc6845 )
808{
809   int error = FALSE;
810   const mc6845_interface *intf = (const mc6845_interface *) device->static_config;
807811
812   if (intf != NULL)
813   {
814      if (intf->clock <= 0)
815      {
816         mame_printf_error("%s: %s has an mc6845 with an invalid clock\n", driver->source_file, driver->name);
817         error = TRUE;
818      }
819
820      if (intf->hpixels_per_column <= 0)
821      {
822         mame_printf_error("%s: %s has an mc6845 with an invalid hpixels_per_column\n", driver->source_file, driver->name);
823         error = TRUE;
824      }
825   }
826
827   return error;
828}
829
830
808831static DEVICE_SET_INFO( mc6845 )
809832{
810833   switch (state)
r2935r2936
828851      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(mc6845);   break;
829852      case DEVINFO_FCT_STOP:                     /* Nothing */                        break;
830853      case DEVINFO_FCT_RESET:                     info->reset = DEVICE_RESET_NAME(mc6845);   break;
854      case DEVINFO_FCT_VALIDITY_CHECK:            info->validity_check = DEVICE_VALIDITY_CHECK_NAME(mc6845); break;
831855
832856      /* --- the following bits of info are returned as NULL-terminated strings --- */
833857      case DEVINFO_STR_NAME:                     info->s = "Motorola 6845";               break;
src/emu/video.c
r2935r2936
404404   assert(machine->config != NULL);
405405
406406   /* stop recording any movie */
407   if (machine->primary_screen != NULL)
408   {
409      video_mng_end_recording(machine);
410      video_avi_end_recording(machine);
411   }
407   video_mng_end_recording(machine);
408   video_avi_end_recording(machine);
412409
413410   /* free all the graphics elements */
414411   for (i = 0; i < MAX_GFX_ELEMENTS; i++)
src/emu/devintrf.c
r2935r2936
708708   deviceinfo info;
709709
710710   assert(device != NULL);
711   assert(device->token != NULL);
712711   assert(device->type != NULL);
713712   assert(state >= DEVINFO_FCT_FIRST && state <= DEVINFO_FCT_LAST);
714713
src/emu/devintrf.h
r2935r2936
6868   DEVINFO_FCT_START,                           /* R/O: device_start_func */
6969   DEVINFO_FCT_STOP,                           /* R/O: device_stop_func */
7070   DEVINFO_FCT_RESET,                           /* R/O: device_reset_func */
71   DEVINFO_FCT_VALIDITY_CHECK,                     /* R/O: device_validity_check_func */
7172
7273   DEVINFO_FCT_DEVICE_SPECIFIC = 0x28000,            /* R/W: device-specific values start here */
7374
r2935r2936
113114#define DEVICE_RESET(name)         void DEVICE_RESET_NAME(name)(const device_config *device)
114115#define DEVICE_RESET_CALL(name)      DEVICE_RESET_NAME(name)(device)
115116
117#define DEVICE_VALIDITY_CHECK_NAME(name)   device_validity_check_##name
118#define DEVICE_VALIDITY_CHECK(name)         int DEVICE_VALIDITY_CHECK_NAME(name)(const game_driver *driver, const device_config *device)
119#define DEVICE_VALIDITY_CHECK_CALL(name)   DEVICE_VALIDITY_CHECK(name)(driver, device)
116120
117121
122
118123/***************************************************************************
119124    TYPE DEFINITIONS
120125***************************************************************************/
r2935r2936
130135typedef void (*device_start_func)(const device_config *device);
131136typedef void (*device_stop_func)(const device_config *device);
132137typedef void (*device_reset_func)(const device_config *device);
138typedef int (*device_validity_check_func)(const game_driver *driver, const device_config *device);
133139
134140
135141/* a device_type is simply a pointer to its get_info function */
r2935r2936
148154   device_start_func      start;               /* DEVINFO_FCT_START */
149155   device_stop_func      stop;               /* DEVINFO_FCT_STOP */
150156   device_reset_func      reset;               /* DEVINFO_FCT_RESET */
157   device_validity_check_func validity_check;      /* DEVINFO_FCT_VALIDITY_CHECK */
151158};
152159
153160
src/emu/cpuintrf.h
r2935r2936
133133   CPUINFO_PTR_INTERNAL_MEMORY_MAP,               /* R/O: const addrmap_token *map */
134134   CPUINFO_PTR_INTERNAL_MEMORY_MAP_LAST = CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACES - 1,
135135   CPUINFO_PTR_DEBUG_REGISTER_LIST,               /* R/O: int *list: list of registers for the debugger */
136   CPUINFO_PTR_VALIDITY_CHECK,                     /* R/O: int (*validity_check)(const void *config) */
136137
137138   CPUINFO_PTR_CPU_SPECIFIC = 0x18000,               /* R/W: CPU-specific values start here */
138139
r2935r2936
229230typedef int   (*cpu_write_func)(int space, UINT32 offset, int size, UINT64 value);
230231typedef int   (*cpu_readop_func)(UINT32 offset, int size, UINT64 *value);
231232typedef void (*cpu_setup_commands_func)(void);
233typedef int (*cpu_validity_check_func)(const game_driver *driver, const void *config);
232234
233235
234236/* cpuinfo union used to pass data to/from the get_info/set_info functions */
r2935r2936
258260   const addrmap16_token *   internal_map16;            /* CPUINFO_PTR_INTERNAL_MEMORY_MAP */
259261   const addrmap32_token *   internal_map32;            /* CPUINFO_PTR_INTERNAL_MEMORY_MAP */
260262   const addrmap64_token *   internal_map64;            /* CPUINFO_PTR_INTERNAL_MEMORY_MAP */
263   cpu_validity_check_func   validity_check;            /* CPUINFO_PTR_VALIDITY_CHECK */
261264};
262265
263266
src/emu/cheat.c
r2935r2936
5151#define CURSOR_PAGE_UP(sel)                  do { sel -= visible_items; if(sel < 0) sel = 0; } while (0)
5252#define CURSOR_PAGE_DOWN(sel, total)         do { sel += visible_items; if(sel >= total) sel = (total - 1); } while (0)
5353#define SET_MESSAGE(type)                  do { message_timer = DEFAULT_MESSAGE_TIME; message_type = type; } while(0)
54#define CHARACTER_TO_ASTRING(char, astring)      do { astring = astring_alloc(); astring_cpyc(astring, char); } while(0)
5455
5556/***************************************************************************
5657    CONSTANTS
5758***************************************************************************/
5859
5960#define CHEAT_FILENAME_MAX_LEN               (255)
61#define CHEAT_CODE_MAX_STRINGS_PER_LINE         (255)
6062#define CHEAT_MENU_DEPTH                  (8)
6163#ifdef MESS
6264#define DEFAULT_CHEAT_OPTIONS               (0x1FFF8)
r2935r2936
626628typedef struct _cheat_action cheat_action;
627629struct _cheat_action
628630{
629   char         *optional_name;      /* label for label selection or popup */
631   astring         *optional_name;      /* label for label selection or popup */
630632
631633   UINT32         type;            /* packed several information (cpu/region, address size, operation and parameters and so on) */
632634   UINT32         region;            /* the number of cpu or region. in case of cpu, it has a kind of an address space together */
r2935r2936
651653typedef struct _cheat_entry cheat_entry;
652654struct _cheat_entry
653655{
654   char         *name;               /* entry name */
655   char         *comment;            /* simple comment */
656   astring         *name;               /* entry name */
657   astring         *comment;            /* simple comment */
656658
657659   UINT32         flags;               /* internal flags */
658660
r2935r2936
881883static int               cheat_variable[VARIABLE_MAX_ARRAY] = { 0 };
882884
883885static UINT32            cheat_options;
884static UINT32            driverSpecifiedFlag;
886static UINT32            cheat_flags;
885887static UINT8            vertical_key_repeat_speed;
886888static UINT8            horizontal_key_repeat_speed;
887889static UINT8            message_type;
r2935r2936
11461148static void      init_string_table(void);
11471149static void      free_string_table(void);
11481150
1149static char      *create_string_copy(char *buf);
11501151static char      *create_strings_with_edit_cursor(char *buf, int data, int total_digits, INT8 current_cursor);
11511152
11521153/********** MENU **********/
r2935r2936
20172018   watches_disabled   = 0;
20182019   edit_active         = 0;
20192020   edit_cursor         = 0;
2020   driverSpecifiedFlag   = 0;
20212021   full_menu_page_height      = visible_items = floor(1.0f / ui_get_line_height()) - 1;
20222022
2023   horizontal_key_repeat_speed = 10;
2024   vertical_key_repeat_speed = 10;
2025
2026   /* initialize CPU/Region info for cheat system */
2027   build_cpu_region_info_list(machine);
2028
20232029   /* allocate huge strings buffer for format */
20242030   format_strings = malloc(sizeof(cheat_format_strings));
20252031   if(format_strings == NULL)
r2935r2936
20332039   vertical_key_repeat_speed   = EXTRACT_FIELD(cheat_options, HorizontalKeyRepeatSpeed);
20342040   load_cheat_database(machine, LOAD_CHEAT_OPTIONS);
20352041
2036   /* initialize CPU/Region info for cheat system */
2037   build_cpu_region_info_list(machine);
2038
20392042   /* set cheat list from database */
20402043   if(TEST_FIELD(cheat_options, LoadNewCode))      load_cheat_database(machine, LOAD_CHEAT_CODE_NEW);
20412044   if(TEST_FIELD(cheat_options, LoadStandardCode))   load_cheat_database(machine, LOAD_CHEAT_CODE_STANDARD);
r2935r2936
20752078   init_cheat_menu_stack();
20762079
20772080   {
2078      astring * sourceName;
2081      astring *source_name = core_filename_extract_base(astring_alloc(), machine->gamedrv->source_file, TRUE);
20792082
2080      sourceName = core_filename_extract_base(astring_alloc(), machine->gamedrv->source_file, TRUE);
2083      if(astring_cmpc(source_name, "neodrvr") == 0)   cheat_flags |= 1;
2084      if(astring_cmpc(source_name, "cps2") == 0)      cheat_flags |= 2;
2085      if(astring_cmpc(source_name, "cps3") == 0)      cheat_flags |= 3;
20812086
2082      if(!strcmp(astring_c(sourceName), "neodrvr"))
2083         driverSpecifiedFlag |= 1;
2084      else if(!strcmp(astring_c(sourceName), "cps2"))
2085         driverSpecifiedFlag |= 2;
2086      else if(!strcmp(astring_c(sourceName), "cps3"))
2087         driverSpecifiedFlag |= 4;
2088
2089      astring_free(sourceName);
2087      astring_free(source_name);
20902088   }
20912089
20922090   /* NOTE : disable all cheat messages in initializing so that message parameters should be initialized here */
r2935r2936
21632161   menu_item_info_length   = 0;
21642162   cheat_variable[0]      = 0;
21652163   cheat_options         = 0;
2166   driverSpecifiedFlag      = 0;
2164   cheat_flags            = 0;
21672165   SET_MESSAGE(0);
21682166}
21692167
r2935r2936
23642362   memset(&menu_strings, 0, sizeof(menu_string_list));
23652363}
23662364
2367/*-----------------------------------
2368  create_string_copy - copy stirng
2369-----------------------------------*/
2370
2371static char *create_string_copy(char *buf)
2372{
2373   char *temp = NULL;
2374
2375   if(buf && buf[0] != 0)
2376   {
2377      /* allocate memory */
2378      size_t length = strlen(buf) + 1;
2379      temp = malloc_or_die(length);
2380
2381      /* copy memory for string */
2382      if(temp)
2383         memcpy(temp, buf, length);
2384   }
2385
2386   return temp;
2387}
23882365/*-------------------------------------------------------------
23892366  create_strings_with_edit_cursor - strings with edit cursor
23902367-------------------------------------------------------------*/
r2935r2936
25912568   }
25922569
25932570   /* ##### MENU CONSTRACTION ##### */
2594   strings_buf += sprintf(strings_buf, "\t%s\n\t", entry->name);
2571   strings_buf += sprintf(strings_buf, "\t%s\n\t", astring_c(entry->name));
25952572
25962573   if(edit_active)
25972574   {
r2935r2936
28142791
28152792         continue;
28162793      }
2817      else if(i == entry->selection)
2818         sprintf(buf[total], "[ %s ]", entry->action_list[entry->label_index[i]].optional_name);
2819      else
2820         sprintf(buf[total], "%s", entry->action_list[entry->label_index[i]].optional_name);
2821
2794      sprintf(buf[total], i == entry->selection ? "[ %s ]" : "%s", astring_c(entry->action_list[entry->label_index[i]].optional_name));
28222795      menu_item[total] = buf[total];
28232796      total++;
28242797   }
r2935r2936
28922865      menu->first_time = 0;
28932866
28942867   /********** MENU CONSTRUCTION **********/
2895   comment = entry->comment;
2868   comment = astring_c(entry->comment);
28962869   sprintf(buf, "%s\n\t OK ", comment);
28972870
28982871   /* print it */
r2935r2936
29342907      /* NOTE : don't display the comment in master code */
29352908      if(i != 0)
29362909      {
2937         sprintf(buf[total], "%s", action->optional_name);
2910         sprintf(buf[total], "%s", astring_c(action->optional_name));
29382911         menu_item[total] = buf[total];
29392912         total++;
29402913      }
r2935r2936
31263099{
31273100   #define ADD_CHEAT_SELECT_MENU_ITEMS(sub_name, request_arrow) \
31283101            do {   menu_sub_item[total] = sub_name; menu_item_info[total].sub_cheat = i; menu_item_info[total].field_type = request_arrow; \
3129                  flag_buf[total] = traverse->comment && traverse->comment[0] ? 1 : 0; total++; } while(0)
3102                  flag_buf[total] = traverse->comment && astring_len(traverse->comment) ? 1 : 0; total++; } while(0)
31303103
31313104   int            i;
31323105   int            do_select      = 0;
r2935r2936
31593132   resize_menu_item_info(length + 2);
31603133
31613134   /********** MENU CONSTRUCTION **********/
3162   for(i = 0; i < cheat_list_length && total < visible_items; i++)
3135   for(i = 0; i < cheat_list_length; i++)
31633136   {
31643137      cheat_entry *traverse = &cheat_list[i];
31653138
r2935r2936
31813154         else
31823155         {
31833156            /* ##### CODE NAME ##### */
3184            menu_item[total] = traverse->name && traverse->name[0] ? traverse->name : "(null)";
3185
3157#ifdef MAME_DEBUG
3158            menu_item[total] = traverse->name && astring_len(traverse->name) ? astring_c(traverse->name) : "(null)";
3159#else
3160            menu_item[total] = traverse->name && astring_len(traverse->name) ? astring_c(traverse->name) : "";
3161#endif
31863162            if(traverse->flags & kCheatFlag_HasWrongCode)
31873163            {
31883164               /* ##### ERROR ##### */
r2935r2936
31933169            {
31943170               /* ##### LABEL ##### */
31953171               if(traverse->flags & kCheatFlag_OldFormat)
3196                  ADD_CHEAT_SELECT_MENU_ITEMS(traverse->selection ? traverse->action_list[traverse->selection].optional_name : "Off", 1);
3172                  ADD_CHEAT_SELECT_MENU_ITEMS(traverse->selection ?
3173                                       astring_c(traverse->action_list[traverse->selection].optional_name) : "Off", 1);
31973174               else
3198                  ADD_CHEAT_SELECT_MENU_ITEMS(traverse->selection ? traverse->action_list[traverse->label_index[traverse->selection]].optional_name : "Off", 1);
3175                  ADD_CHEAT_SELECT_MENU_ITEMS(traverse->selection ?
3176                                       astring_c(traverse->action_list[traverse->label_index[traverse->selection]].optional_name) : "Off", 1);
31993177            }
32003178            else if(traverse->flags & kCheatFlag_ExtendComment)
32013179            {
r2935r2936
32283206         if(current_layer == traverse->action_list[0].data)
32293207         {
32303208            /* ##### PREVIOUS LAYER ##### */
3231            menu_item[total] = traverse->comment && traverse->comment[0] ? traverse->comment : "Return to Prior Layer";
3209            menu_item[total] = traverse->comment && astring_len(traverse->comment) ? astring_c(traverse->comment) : "Return to Prior Layer";
32323210            ADD_CHEAT_SELECT_MENU_ITEMS("<<<", 0);
32333211         }
32343212      }
r2935r2936
33893367      }
33903368      else if((entry->flags & kCheatFlag_Null) == 0)
33913369      {
3392         if(shift_key_pressed() && (entry->comment && entry->comment[0]))
3370         if(shift_key_pressed())
33933371         {
3394            /* display comment */
3395            cheat_menu_stack_push(comment_menu, menu->handler, info->sub_cheat);
3372            if(entry->comment && astring_len(entry->comment))
3373               /* display comment */
3374               cheat_menu_stack_push(comment_menu, menu->handler, info->sub_cheat);
33963375         }
33973376         else if(entry->flags & kCheatFlag_ExtendComment)
33983377         {
r2935r2936
35233502      cheat_entry *traverse = &cheat_list[i];
35243503
35253504      /* ##### NAME ##### */
3526      if(traverse->name)
3527         menu_item[total++] = traverse->name;
3528      else
3529         menu_item[total++] = "(none)";
3505      menu_item[total++] = traverse->name && astring_len(traverse->name) ? astring_c(traverse->name) : "(none)";
35303506   }
35313507
35323508   /* ##### RETURN ##### */
r2935r2936
39463922      if(i == 0)
39473923      {
39483924         /* ##### ENTRY NAME ##### */
3949         ADD_EDIT_MENU_ITEMS("Entry Name", entry->name && entry->name[0] ? entry->name : "(none)", EDIT_MENU_ENTRY_NAME);
3925         ADD_EDIT_MENU_ITEMS("Entry Name", entry->name && astring_len(entry->name) ? astring_c(entry->name) : "(none)", EDIT_MENU_ENTRY_NAME);
39503926
39513927         /* ##### COMMENT ##### */
3952         ADD_EDIT_MENU_ITEMS("Comment", entry->comment && entry->comment[0] ? entry->comment : "(none)", EDIT_MENU_COMMENT);
3928         ADD_EDIT_MENU_ITEMS("Comment", entry->comment && astring_len(entry->comment) ? astring_c(entry->comment) : "(none)", EDIT_MENU_COMMENT);
39533929
39543930         /* ##### ACTIVATION KEY ##### */
39553931         ADD_EDIT_MENU_ITEMS(   "Activation Key",
r2935r2936
39613937      }
39623938
39633939      /* ##### ENTRY NAME ##### */
3964      ADD_EDIT_MENU_ITEMS("Name", traverse->optional_name && traverse->optional_name[0] ? traverse->optional_name : "(none)", EDIT_MENU_NAME);
3940      ADD_EDIT_MENU_ITEMS("Name", traverse->optional_name && astring_len(traverse->optional_name) ? astring_c(traverse->optional_name) : "(none)", EDIT_MENU_NAME);
39653941
39663942      /* ##### INDEX ##### */
39673943      sprintf(buf_index[i], "%2.2d/%2.2d", i + 1, entry->action_list_length);
r2935r2936
40213997      ADD_EDIT_MENU_ITEMS(TEST_FIELD(traverse->type, OperationParameter) ? "Minimum Boundary" : "Maximum Boundary", buf_extend_data[i] + 16, EDIT_MENU_ADD_SUBTRACT);
40223998
40233999      /* ##### RANGE MINIMUM ##### */
4024      sprintf(buf_extend_data[i] + 32, "%4.4X", EXTRACT_FIELD(traverse->extend_data, LSB16));
4000      sprintf(buf_extend_data[i] + 32, "%4.4X", EXTRACT_FIELD(traverse->extend_data, MSB16));
40254001      ADD_EDIT_MENU_ITEMS("Range Minimum", buf_extend_data[i] + 32, EDIT_MENU_RANGE_MINIMUM);
40264002
40274003      /* ##### RANGE MAXIMUM ##### */
4028      sprintf(buf_extend_data[i] + 48, "%4.4X", EXTRACT_FIELD(traverse->extend_data, MSB16));
4004      sprintf(buf_extend_data[i] + 48, "%4.4X", EXTRACT_FIELD(traverse->extend_data, LSB16));
40294005      ADD_EDIT_MENU_ITEMS("Range Maximum", buf_extend_data[i] + 48, EDIT_MENU_RANGE_MAXIMUM);
40304006
40314007      /* ##### DATA ##### */
r2935r2936
44334409   if(entry->name)
44344410   {
44354411      /* NOTE : master code is from cheat entry and others are from cheat action */
4436      ADD_VIEW_MENU_ITEMS("Name", page_index ? action->optional_name : entry->name, kViewMenu_Name);
4412      ADD_VIEW_MENU_ITEMS("Name", page_index ? astring_c(action->optional_name) : astring_c(entry->name), kViewMenu_Name);
44374413   }
44384414   else
44394415      ADD_VIEW_MENU_ITEMS("Name", "< none >", kViewMenu_Name);
44404416
44414417   /* ##### COMMENT ##### */
4442   if(page_index == 0 && entry->comment)
4443      ADD_VIEW_MENU_ITEMS("Comment", entry->comment, kViewMenu_Comment);
4418   if(page_index == 0 && entry->comment && astring_len(entry->comment))
4419      ADD_VIEW_MENU_ITEMS("Comment", astring_c(entry->comment), kViewMenu_Comment);
44444420
44454421   /* ##### ACTIVATION KEY ##### */
44464422   if(entry->flags & kCheatFlag_Select)
r2935r2936
49184894
49194895      UINT32 flags = analyse_code_format(machine, entry, action);
49204896
4921      menu_item[total++] = action->optional_name ? action->optional_name : "(Null)";
4897#ifdef MAME_DEBUG
4898      menu_item[total++] = action->optional_name && astring_len(action->optional_name) ? astring_c(action->optional_name) : "(Null)";
4899#else
4900      menu_item[total++] = action->optional_name && astring_len(action->optional_name) ? astring_c(action->optional_name) : "";
4901#endif
49224902      menu_item[total++] = MENU_SEPARATOR_ITEM;
49234903
49244904      if(flags)
r2935r2936
82768256   {
82778257      int i;
82788258
8279      free(entry->name);
8280      free(entry->comment);
8259      if(entry->name)      astring_free(entry->name);
8260      if(entry->comment)   astring_free(entry->comment);
82818261      free(entry->label_index);
82828262
82838263      /* free all cheat actions in selected entry */
r2935r2936
83958375{
83968376   if(action != NULL)
83978377   {
8398      free(action->optional_name);
8378      if(action->optional_name) astring_free(action->optional_name);
83998379      free(action->last_value);
84008380
84018381      memset(action, 0, sizeof(cheat_action));
r2935r2936
85768556
85778557      /* set name */
85788558      temp_string_length = sprintf(temp_string, "%.8X (%d) = %.*X", watch->address, watch->cpu, BYTE_DIGITS_TABLE[watch->element_bytes], action->data);
8579      entry->name = create_string_copy(temp_string);
8559      CHARACTER_TO_ASTRING(temp_string, entry->name);
85808560
85818561      update_cheat_info(machine, entry, 0);
85828562
r2935r2936
86068586      /* set name and comments */
86078587      sprintf(temp_string, "Watch %.8X (%d)", watch->address, watch->cpu);
86088588
8609      entry->name      = create_string_copy(temp_string);
8610      entry->comment   = create_string_copy(watch->label);
8589      CHARACTER_TO_ASTRING(temp_string, entry->name);
8590      CHARACTER_TO_ASTRING(watch->label, entry->comment);
86118591
86128592      /* set parameters */
86138593      action->region            = watch->cpu;
r2935r2936
92589238
92599239   for(i = 0; i < cheat_list_length; i++)
92609240   {
9261      if(strcmp(tag, cheat_list[i].name) == 0)
9241      if(astring_cmpc(cheat_list[i].name, tag) == 0)
92629242         return i;
92639243   }
92649244
r2935r2936
94159395
94169396static void load_cheat_options(char *file_name)
94179397{
9418   static char      buf[2048];
9398   static char      buf[CHEAT_CODE_MAX_STRINGS_PER_LINE];
94199399   mame_file      *the_file;
94209400   cheat_format   *format = &cheat_format_table[0];
94219401   cheat_format_strings
r2935r2936
94289408      return;
94299409   }
94309410
9431   while(mame_fgets(buf, 2048, the_file))
9411   while(mame_fgets(buf, CHEAT_CODE_MAX_STRINGS_PER_LINE, the_file))
94329412   {
94339413      if(sscanf(buf, format->format_string, buffer->name) == format->arguments_matched)
94349414      {
r2935r2936
94389418            {
94399419               vertical_key_repeat_speed = EXTRACT_FIELD(cheat_options, VerticalKeyRepeatSpeed);
94409420               horizontal_key_repeat_speed = EXTRACT_FIELD(cheat_options, HorizontalKeyRepeatSpeed);
9421               horizontal_key_repeat_speed = (horizontal_key_repeat_speed ? horizontal_key_repeat_speed : 10);
9422               vertical_key_repeat_speed = (vertical_key_repeat_speed ? vertical_key_repeat_speed : 10);
94419423               SET_MESSAGE(CHEAT_MESSAGE_RELOAD_CHEAT_OPTION);
94429424            }
94439425         }
r2935r2936
94549436
94559437static void load_cheat_code_new(running_machine *machine, char *file_name)
94569438{
9457   char         buf[255];
9439   char         buf[CHEAT_CODE_MAX_STRINGS_PER_LINE];
94589440   mame_file      *the_file;
94599441   cheat_format_strings
94609442               *buffer = format_strings;
r2935r2936
94639445   if(open_cheat_database(&the_file, file_name, DATABASE_LOAD) == 0) return;
94649446   found_database = 1;
94659447   /* get a line from database */
9466   while(mame_fgets(buf, 255, the_file))
9448   while(mame_fgets(buf, CHEAT_CODE_MAX_STRINGS_PER_LINE, the_file))
94679449   {
94689450#ifdef MESS
94699451      int      crc =               0;
r2935r2936
94799461      cheat_action   *action;
94809462      cheat_format   *format = &cheat_format_table[LOAD_CHEAT_CODE_NEW];
94819463
9464      /* clear buffer */
9465      buffer->name[0] = buffer->type[0] = buffer->data[0] = buffer->extend_data[0] = buffer->description[0] = buffer->comment[0] = 0;
9466
94829467      /* scan and check format */
94839468#ifdef MESS
94849469      arguments_matched = sscanf(buf, format->format_string, buffer->name, &crc, buffer->type, &address, buffer->data, buffer->extend_data, buffer->description, buffer->comment);
r2935r2936
94959480      if(TEST_FIELD(cheat_options, SharedCode) && strcmp(machine->gamedrv->parent, "0"))
94969481      {
94979482         /* shared code (MESS specified) */
9498         if(strcmp(buffer->name, machine->gamedrv->parent)) break;
9483         if(strcmp(buffer->name, machine->gamedrv->parent)) continue;
94999484         else
95009485#endif
95019486         /* check short game/machine name */
9502         if(strcmp(buffer->name, machine->gamedrv->name)) break;
9487         if(strcmp(buffer->name, machine->gamedrv->name)) continue;
95039488#ifdef MESS
95049489      }
95059490#endif
r2935r2936
95479532            logerror("cheat: [load code] cheat list resize failed. bailing\n"); goto bail_new;
95489533         }
95499534         entry = &cheat_list[cheat_list_length - 1];
9550         entry->name = create_string_copy(buffer->description);
9551         if(arguments_matched == cheat_format_table[LOAD_CHEAT_CODE_NEW].comment_matched) entry->comment = create_string_copy(buffer->comment);
9535         CHARACTER_TO_ASTRING(buffer->description, entry->name);
9536         if(arguments_matched == cheat_format_table[LOAD_CHEAT_CODE_NEW].comment_matched) CHARACTER_TO_ASTRING(buffer->comment, entry->comment);
95529537      }
95539538      else
95549539      {
r2935r2936
95749559      action->data            = data;
95759560      action->original_data      = data;
95769561      action->extend_data         = extend_data;
9577      action->optional_name      = create_string_copy(buffer->description);
9562      CHARACTER_TO_ASTRING(buffer->description, action->optional_name);
95789563      action->last_value         = NULL;
95799564   }
95809565   bail_new:
r2935r2936
95879572
95889573static void load_cheat_code_standard(running_machine *machine, char *file_name)
95899574{
9590   char      buf[256];
9575   char      buf[CHEAT_CODE_MAX_STRINGS_PER_LINE];
95919576   mame_file   *the_file;
95929577   cheat_format_strings
95939578            *buffer = format_strings;
r2935r2936
95969581   if(open_cheat_database(&the_file, file_name, DATABASE_LOAD) == 0) return;
95979582   found_database = 1;
95989583   /* get a line from database */
9599   while(mame_fgets(buf, 2048, the_file))
9584   while(mame_fgets(buf, CHEAT_CODE_MAX_STRINGS_PER_LINE, the_file))
96009585   {
96019586#ifdef MESS
96029587      int      crc =               0;
r2935r2936
96109595      cheat_action   *action;
96119596      cheat_format   *format = &cheat_format_table[LOAD_CHEAT_CODE_STANDARD];
96129597
9598      /* clear buffer */
9599      buffer->name[0] = buffer->type[0] = buffer->data[0] = buffer->extend_data[0] = buffer->description[0] = buffer->comment[0] = 0;
9600
96139601      /* scan and check format */
96149602#ifdef MESS
96159603      if(sscanf(   buf,
r2935r2936
96699657         }
96709658         /* allocate entry and set code name */
96719659         entry      = &cheat_list[cheat_list_length - 1];
9672         entry->name   = create_string_copy(buffer->description);
9660         CHARACTER_TO_ASTRING(buffer->description, entry->name);
96739661      }
96749662      else
96759663      {
r2935r2936
96959683      action->data            = data;
96969684      action->original_data      = data;
96979685      action->extend_data         = extend_data;
9698      action->optional_name      = create_string_copy(buffer->description);
9686      CHARACTER_TO_ASTRING(buffer->description, action->optional_name);
96999687      action->last_value         = NULL;
97009688   }
97019689   bail_standard:
r2935r2936
97949782   };
97959783   const struct _conversion_table *traverse = conversion_table;
97969784
9797   char      buf[255];
9785   char      buf[CHEAT_CODE_MAX_STRINGS_PER_LINE];
97989786   mame_file   *the_file;
97999787   cheat_format_strings
98009788            *buffer = format_strings;
r2935r2936
98039791   if(open_cheat_database(&the_file, file_name, DATABASE_LOAD) == 0) return;
98049792   found_database = 1;
98059793   /* get a line from database */
9806   while(mame_fgets(buf, 255, the_file))
9794   while(mame_fgets(buf, CHEAT_CODE_MAX_STRINGS_PER_LINE, the_file))
98079795   {
98089796#ifdef MESS
98099797      int      crc =               0;
r2935r2936
98199807      cheat_action   *action;
98209808      cheat_format   *format = &cheat_format_table[LOAD_CHEAT_CODE_OLD];
98219809
9810      /* clear buffer */
9811      buffer->name[0] = buffer->type[0] = buffer->data[0] = buffer->extend_data[0] = buffer->description[0] = buffer->comment[0] = 0;
9812
98229813#ifdef MESS
98239814      if(sscanf(buf, format->format_string, &crc, buffer->name, &cpu, &address, &data, &code, buffer->description, buffer->comment) < format->arguments_matched) continue;
98249815#else
r2935r2936
98709861            logerror("cheat: [load code] cheat list resize failed. bailing\n"); goto bail_old;
98719862         }
98729863         entry = &cheat_list[cheat_list_length - 1];
9873         entry->name = create_string_copy(buffer->description);
9864         CHARACTER_TO_ASTRING(buffer->description, entry->name);
98749865      }
98759866      else
98769867      {
r2935r2936
98989889      action->data            = data;
98999890      action->original_data      = data;
99009891      action->extend_data         = extend_data;
9901      action->optional_name      = create_string_copy(buffer->description);
9892      CHARACTER_TO_ASTRING(buffer->description, action->optional_name);
99029893      action->last_value         = NULL;
99039894   }
99049895   bail_old:
r2935r2936
1020110192   for(i = 0; i < entry->action_list_length; i++)
1020210193   {
1020310194      UINT8         address_length   = 8;
10204      char         *name;
1020510195      char         *buf_strings   = buf;
1020610196      cheat_action   *action         = &entry->action_list[i];
1020710197
10208      /* get name */
10209      name = action->optional_name;
10210
1021110198      /* get address length of CPU/Region */
1021210199      address_length = get_address_length(action->region);
1021310200
r2935r2936
1023010217#endif
1023110218
1023210219      /* set description */
10233      if(name)
10234         buf_strings += sprintf(buf_strings, ":%s", name);
10220      if(action->optional_name && astring_len(action->optional_name))
10221         buf_strings += sprintf(buf_strings, ":%s", astring_c(action->optional_name));
1023510222      else
1023610223         buf_strings += sprintf(buf_strings, ":(none)");
1023710224
1023810225      /* set comment */
10239      if(i == 0 && entry->comment)
10240         buf_strings += sprintf(buf_strings, ":%s", entry->comment);
10226      if(i == 0 && entry->comment && astring_len(entry->comment))
10227         buf_strings += sprintf(buf_strings, ":%s", astring_c(entry->comment));
1024110228
1024210229      buf_strings += sprintf(buf_strings, "\n");
1024310230
r2935r2936
1033810325   }
1033910326
1034010327   /* set tag */
10341   if(entry->name && entry->name[0] != 0)
10342      buf_strings += sprintf(buf_strings, ":%s\n", entry->name);
10343   else
10344      buf_strings += sprintf(buf_strings, ":(none)\n");
10328   if(entry->name && astring_len(entry->name))      buf_strings += sprintf(buf_strings, ":%s\n", astring_c(entry->name));
10329   else                                 buf_strings += sprintf(buf_strings, ":(none)\n");
1034510330
1034610331   /* write the activation key code */
1034710332   mame_fwrite(the_file, buf, (UINT32)strlen(buf));
r2935r2936
1040410389
1040510390   /* set label name */
1040610391   if(entry->selection)
10407      buf_strings += sprintf(buf_strings, " Label - %s", entry->action_list[entry->label_index[entry->selection]].optional_name);
10392      buf_strings += sprintf(buf_strings, " Label - %s", astring_c(entry->action_list[entry->label_index[entry->selection]].optional_name));
1040810393
1040910394   /* set tag */
10410   if(entry->name && entry->name[0] != 0)
10411      buf_strings += sprintf(buf_strings, ":%s\n", entry->name);
10395   if(entry->name && astring_len(entry->name))
10396      buf_strings += sprintf(buf_strings, ":%s\n", astring_c(entry->name));
1041210397   else
1041310398      buf_strings += sprintf(buf_strings, ":(none)\n");
1041410399
r2935r2936
1059010575{
1059110576   if(region->target_type == kRegionType_CPU || region->target_type == kRegionType_Memory)
1059210577   {
10593      int            temp_string_length;
1059410578      UINT32         data      = read_search_operand(kSearchOperand_First, search, region, address);
1059510579      char         temp_string[1024];
1059610580      cheat_entry      *entry      = get_new_cheat();
1059710581      cheat_action   *action      = &entry->action_list[0];
1059810582
10599      temp_string_length = sprintf(temp_string, "%.8X (%d) = %.*X", address, region->target_idx, BYTE_DIGITS_TABLE[search->bytes], data);
10583      sprintf(temp_string, "%.8X (%d) = %.*X", address, region->target_idx, BYTE_DIGITS_TABLE[search->bytes], data);
10584      CHARACTER_TO_ASTRING(temp_string, entry->name);
1060010585
10601      entry->name = realloc(entry->name, temp_string_length + 1);
10602      if(entry->name == NULL)
10603         fatalerror(   "cheat: [cheat entry] memory allocation error"
10604                  "   temp_length   =      %.8X"
10605                  "   entry->name =      %p",
10606                  temp_string_length, entry->name);
10607
10608      memcpy(entry->name, temp_string, temp_string_length + 1);
1060910586      action->region            = region->target_idx;
1061010587      action->address            = address;
1061110588      action->original_address   = address;
r2935r2936
1184711824               info->y = (float)(EXTRACT_FIELD(action->extend_data, MSB16)) / 100;
1184811825            }
1184911826
11850            if(TEST_FIELD(action->type, WatchShowLabel) && entry->comment && strlen(entry->comment) < 256)
11827            if(TEST_FIELD(action->type, WatchShowLabel) && entry->comment && astring_len(entry->comment) < 256)
1185111828            {
1185211829               info->label_type = kWatchLabel_String;
11853               strcpy(info->label, entry->comment);
11830               strcpy(info->label, astring_c(entry->comment));
1185411831            }
1185511832            else
1185611833               info->label_type = kWatchLabel_None;
r2935r2936
1196111938            "   ----- %s -----\n"
1196211939            "   type =         %.8X\n"
1196311940            "   last_value =   %p\n",
11964            action->optional_name, action->type, action->last_value);
11941            astring_c(action->optional_name), action->type, action->last_value);
1196511942}
1196611943
1196711944/*--------------------------------------------------------------------------------------
r2935r2936
1217012147            switch(EXTRACT_FIELD(action->type, PopupParameter))
1217112148            {
1217212149               case kPopup_Label:
12173                  ui_popup_time(1, "%s", action->optional_name);
12150                  ui_popup_time(1, "%s", astring_c(action->optional_name));
1217412151                  break;
1217512152
1217612153               case kPopup_Value:
r2935r2936
1218212159
1218312160               case kPopup_LabelValue:
1218412161                  ui_popup_time(1, "%s %*.*X",
12185                              action->optional_name,
12162                              astring_c(action->optional_name),
1218612163                              BYTE_DIGITS_TABLE[EXTRACT_FIELD(action->type, AddressSize)],
1218712164                              BYTE_DIGITS_TABLE[EXTRACT_FIELD(action->type, AddressSize)],
1218812165                              read_data(machine, action));
r2935r2936
1219312170                              BYTE_DIGITS_TABLE[EXTRACT_FIELD(action->type, AddressSize)],
1219412171                              BYTE_DIGITS_TABLE[EXTRACT_FIELD(action->type, AddressSize)],
1219512172                              read_data(machine, action),
12196                              action->optional_name);
12173                              astring_c(action->optional_name));
1219712174                  break;
1219812175            }
1219912176            break;
r2935r2936
1244012417
1244112418         if(TEST_FIELD(cheat_options, ActivationKeyMessage))
1244212419         {
12443            if(!entry->selection)
12444               ui_popup_time(1,"%s disabled", entry->name);
12420            if(entry->selection == 0)
12421               ui_popup_time(1,"%s disabled", astring_c(entry->name));
1244512422            else
12446               ui_popup_time(1,"%s : %s selected", entry->name, entry->action_list[entry->label_index[entry->selection]].optional_name);
12423               ui_popup_time(1,"%s : %s selected", astring_c(entry->name), astring_c(entry->action_list[entry->label_index[entry->selection]].optional_name));
1244712424         }
1244812425      }
1244912426   }
r2935r2936
1245712434            activate_cheat(machine, entry);
1245812435
1245912436            if(TEST_FIELD(cheat_options, ActivationKeyMessage))
12460               ui_popup_time(1,"set %s", entry->name);
12437               ui_popup_time(1,"set %s", astring_c(entry->name));
1246112438         }
1246212439         else if(entry->flags & kCheatFlag_Active)
1246312440         {
1246412441            deactivate_cheat(machine, entry);
1246512442
1246612443            if(TEST_FIELD(cheat_options, ActivationKeyMessage))
12467               ui_popup_time(1,"%s disabled", entry->name);
12444               ui_popup_time(1,"%s disabled", astring_c(entry->name));
1246812445         }
1246912446         else
1247012447         {
1247112448            activate_cheat(machine, entry);
1247212449
1247312450            if(TEST_FIELD(cheat_options, ActivationKeyMessage))
12474               ui_popup_time(1,"%s enabled", entry->name);
12451               ui_popup_time(1,"%s enabled", astring_c(entry->name));
1247512452         }
1247612453      }
1247712454   }
r2935r2936
1247912456   /* ***** 2nd, do cheat actions ***** */
1248012457
1248112458   /* if "OFF", no action */
12482   if(driverSpecifiedFlag != 0 || (entry->flags & kCheatFlag_Active) == 0)
12483      return;
12459   if(cheat_flags || (entry->flags & kCheatFlag_Active) == 0) return;
1248412460
1248512461   while(1)
1248612462   {
r2935r2936
1255012526static void cheat_periodic_old_entry(running_machine *machine, cheat_entry *entry)
1255112527{
1255212528   int i, do_action = 0, done = 1;
12529   UINT32 temp;
1255312530
1255412531   /* special handling for select cheats */
1255512532   if(entry->flags & kCheatFlag_Select)
r2935r2936
1257912556   }
1258012557   else
1258112558   {
12582      if((entry->flags & kCheatFlag_UserSelect) != 0)
12559      if((entry->flags & kCheatFlag_UserSelect) == 0)
1258312560      {
12584         if(input_code_pressed_once(entry->activation_key))   activate_cheat(machine, entry);
12585         else
12561         if(input_code_pressed_once(entry->activation_key))
1258612562         {
1258712563            if(entry->flags & kCheatFlag_Active)   deactivate_cheat(machine, entry);
1258812564            else                           activate_cheat(machine, entry);
1258912565         }
1259012566      }
12591
12592      if((entry->flags & kCheatFlag_Active) == 0) return;
12567      if(cheat_flags || (entry->flags & kCheatFlag_Active) == 0) return;
1259312568      do_action = 1;
1259412569   }
1259512570   if(do_action)
1259612571   {
12597
1259812572      for(i = entry->flags & kCheatFlag_Select ? entry->selection : 0; i < entry->action_list_length; i++)
1259912573      {
1260012574         int do_operation = 0;
r2935r2936
1268112655                  }
1268212656                  break;
1268312657               case kOperation_ForceRange:
12684                  if(   read_or_write_data(machine, action, 0, 0) < EXTRACT_FIELD(action->extend_data, MSB16) ||
12685                     read_or_write_data(machine, action, 0, 0) > EXTRACT_FIELD(action->extend_data, LSB16))
12686                        read_or_write_data(machine, action, action->data, 0);
12658                  temp = read_or_write_data(machine, action, 0, 0);
12659                  if(   temp < EXTRACT_FIELD(action->extend_data, MSB16) ||
12660                     temp > EXTRACT_FIELD(action->extend_data, LSB16))
12661                        read_or_write_data(machine, action, action->data, 1);
1268712662                  break;
1268812663               case kOperation_SetOrClearBits:
1268912664                  read_or_write_data(machine,    action,
r2935r2936
1279712772
1279812773   if(entry->label_index_length <= 1)
1279912774   {
12800      logerror("cheat: [label index table] %s fails to build due to invalid or no link\n", entry->name); return;
12775      logerror("cheat: [label index table] %s fails to build due to invalid or no link\n", astring_c(entry->name)); return;
1280112776   }
1280212777   else
1280312778      /* set terminator */
r2935r2936
1280612781   if(entry->flags & kCheatFlag_OneShot)
1280712782      entry->selection = 1;
1280812783
12809   /* logerror("Cheat - Finish building index table for %s (length = %x)\n", entry->name, entry->label_index_length); */
12784   /* logerror("Cheat - Finish building index table for %s (length = %x)\n", astring_c(entry->name), entry->label_index_length); */
1281012785   /* for(i = 0; i < entry->label_index_length; i++) */
1281112786   /*  logerror("IndexTable[%x] = %x\n",i,entry->label_index[i]); */
1281212787
r2935r2936
1281812793            "   name =               %s\n"
1281912794            "   label_index_length =   %.8X\n"
1282012795            "   label_index_length =   %p\n",
12821            entry->name, entry->label_index_length, entry->label_index);
12796            astring_c(entry->name), entry->label_index_length, entry->label_index);
1282212797}
1282312798
1282412799/*---------------------------------------------------------------------
r2935r2936
1305713032
1305813033      if(operation == kOperation_ForceRange)
1305913034      {
13060         if(EXTRACT_FIELD(action->type, MSB16) <= EXTRACT_FIELD(action->type, LSB16))
13035         if(EXTRACT_FIELD(action->type, MSB16) > EXTRACT_FIELD(action->type, LSB16))
1306113036            errorFlag |= kErrorFlag_InvalidRange;
1306213037      }
1306313038
src/emu/validity.c
r2935r2936
621621   const game_driver *driver = drivers[drivnum];
622622   int error = FALSE;
623623   int cpunum;
624   cpu_validity_check_func cpu_validity_check;
624625
625626   /* loop over all the CPUs */
626627   for (cpunum = 0; cpunum < MAX_CPU; cpunum++)
r2935r2936
652653         continue;
653654      }
654655
656      /* check for CPU-specific validity check */
657      cpu_validity_check = (cpu_validity_check_func) cputype_get_info_fct(cpu->type, CPUINFO_PTR_VALIDITY_CHECK);
658      if (cpu_validity_check != NULL)
659      {
660         if ((*cpu_validity_check)(driver, config->cpu[cpunum].reset_param))
661            error = TRUE;
662      }
663
655664      /* loop over all address spaces */
656665      for (spacenum = 0; spacenum < ADDRESS_SPACES; spacenum++)
657666      {
r2935r2936
13811390
13821391
13831392/*-------------------------------------------------
1393    validate_devices - run per-device validity
1394    checks
1395-------------------------------------------------*/
1396
1397static int validate_devices(int drivnum, const machine_config *config)
1398{
1399   int error = FALSE;
1400   const game_driver *driver = drivers[drivnum];
1401   const device_config *device;
1402
1403   for (device = device_list_first(config->devicelist, DEVICE_TYPE_WILDCARD); device != NULL; device = device_list_next(device, DEVICE_TYPE_WILDCARD))
1404   {
1405      device_validity_check_func validity_check = (device_validity_check_func) device_get_info_fct(device, DEVINFO_FCT_VALIDITY_CHECK);
1406      if (validity_check != NULL)
1407      {
1408         if ((*validity_check)(driver, device))
1409            error = TRUE;
1410      }
1411   }
1412   return error;
1413}
1414
1415
1416/*-------------------------------------------------
13841417    mame_validitychecks - master validity checker
13851418-------------------------------------------------*/
13861419
r2935r2936
13951428   osd_ticks_t display_checks = 0;
13961429   osd_ticks_t input_checks = 0;
13971430   osd_ticks_t sound_checks = 0;
1431   osd_ticks_t device_checks = 0;
13981432#ifdef MESS
13991433   osd_ticks_t mess_checks = 0;
14001434#endif
r2935r2936
15001534      error = validate_sound(drivnum, config) || error;
15011535      sound_checks += osd_profiling_ticks();
15021536
1537      /* validate devices */
1538      device_checks -= osd_profiling_ticks();
1539      error = validate_devices(drivnum, config) || error;
1540      device_checks += osd_profiling_ticks();
1541
15031542      machine_config_free(config);
15041543   }
15051544
src/version.c
r2935r2936
99
1010***************************************************************************/
1111
12const char build_version[] = "0.125.1 ("__DATE__")";
12const char build_version[] = "0.126 ("__DATE__")";
src/mess/drivers/cpschngr.c
r2935r2936
3737   memory_install_read16_handler (machine, 0, ADDRESS_SPACE_PROGRAM, 0x800052, 0x800055, 0, 0, forgottn_dial_0_r);
3838   memory_install_read16_handler (machine, 0, ADDRESS_SPACE_PROGRAM, 0x80005a, 0x80005d, 0, 0, forgottn_dial_1_r);
3939   cps1_hack_dsw_r(machine, 0, 0);
40   driver_init_sf2mdt(machine);
4041}
4142
4243/***************************************************************************
docs/messnew.txt
r2935r2936
10.125.1
10.126
22
33New System Drivers Supported (in no particular order):
44------------------------------------------------------
r2935r2936
160160
161161Source Changes:
162162----------------
163- The core is based on MAME 0.125u9.  This incorporates all features of the
163- The core is based on MAME 0.126.  This incorporates all features of the
164164  update to this core.  [MAME team]
165165
166166- Fixed performance problems with -triplebuffer.  (bug #1539) [Justin Kerk]
whatsnew.txt
r2935r2936
10.125
10.126
22-----
33
44
55MAMETesters Bugs Fixed
66----------------------
701743: [Sound] anteater: Music is really loud and clips (Aaron Giles)
801770: [Misc.] hanayara, mjangels, mjcomv1, mjreach, quiztvqq, tenkai,
9       tenkaibb, tenkaicb, yarunara: msm6242 device assert (Duke)
1001778: [Sound] all sets in m62.c driver: low ay8910 volume
11       (Aaron Giles)
1201771: [Misc.] arescue, f1en: space_map_range errors (Aaron Giles)
1301772: [Misc.] daireika: space_map_range assertion (Aaron Giles)
1401773: [Misc.] steelta1, steeltag, steeltal, steeltap: space_map_range
15       error (Aaron Giles)
1601774: [Misc.] racedcb4, racedcg4, racedrc1, racedrc2, racedrc4,
17       racedrcb, racedrcg, racedrvc: space_map_range error
18       (Aaron Giles)
1901775: [Misc.] newtangl, troangel: Crash with Access Violation
20       (robiza)
2101767: [Sound] Various neodrvr.c games: Various sound effects broken
22       (couriersud)
2301769: [Sound] All games using YM2610: SSG volume more than 1.0 causes
24       no audio output. (couriersud)
7- 01896: [Misc.] bigfight, cyclwarr: Access Violation crash
8         (Aaron Giles)
9- 01964: [Misc.] gtg2j: Access Violation (Aaron Giles)
10- 01951: [Misc.] cybrcycc: Crash during intro. (Aaron Giles)
11- 01965: [Misc.] driveyes: Access Violation (Aaron Giles)
12- 01983: [Cheat System] Force Range cheats not working (couriersud)
13- 00388: [Graphics] gaia: sometimes fails to display shadows beneath
14         enemies or the sprites of the old man that talks to you.
15         (David Haywood)
16- 01984: [Cheat System] Incorrectly populating empty spacer comment
17         cheats (Aaron Giles)
18- 01980: [Cheat System] Enable Cheats menu only showing the first 24
19         cheats for ANY game (Aaron Giles)
20- 01971: [Cheat System] Cheat menu flickers. (Aaron Giles)
21- 01967: [Misc.] output.c unregister_client crash (Jeff Shanholtz)
22- 01963: [Misc.] screenless systems: memory leak with -mngwrite
23         (Aaron Giles)
24- 01854: [Graphics] All sets in thepit.c: Player 2 in cocktail mode
25         has screen reversed (couriersud)
26- 01952: [Cheat System] sfex2p: Cheat crash. (Shimapong)
27- 01968: [Cheat System] -CHEAT trigger causes MAME crash when starting
28         or exiting with some sets. (Shimapong)
29- 01969: [Cheat System] some problem with cheat system (Shimapong)
2530
2631
2732
2833Source Changes
2934--------------
30Added video enable/disable feature in m90 driver. [robiza]
35Replaced kodb set with complete dump from known bootleg board
36(different gfx rom layout). Added wofhfh bootleg from mame32plus.
37Added SF2 Magic Turbo Delta bootleg as non-working. [David Haywood]
3138
32Fixed ROZ centering in namcona1 driver [Phil Stroffolino]
39Added skeleton hikaru driver. [David Haywood, Guru]
3340
34Added extra tile banking and layer enable for denjinmk.
35[David Haywood]
41Fixed possible 64-bit crash/hang with survival. [nuapete]
3642
37Fixed an envelope corner case in the SCSP and AICA. [kingshriek]
43Driver's Eyes improvements: [Naibo]
44 - the communication work between CPU and 3D DSP should be limited
45    to the master M68000, if the address mapping is done in the shared
46    memory, master CPU would be disturbed by the slave one.
47 - DIP Switches
48    DIP3 ON for Screen on the left
49    DIP4 ON for Screen on the right
50    should not toggle on both
51 - The left, center and right screens have separate programs and
52    boards, each would work independantly. About projection angles of
53    left and right screen, the angle is correct on 'DRIVER'S EYES'
54    title screen, however in the tracks of demo mode it doesn't seem
55    correct.
56 - The game also features a pretty nice 2D sprite layer, which still
57    doesn't show up yet. It is known that the CPU does constantly feed
58    the 2D video memory some meaningful and logical data.
3859
39Removed bogus assertion in device code - DEVICE_TYPE_WILDCARD is NULL.
40[Nathan Woods]
60New driver for Lucky 74 (Wing Co.Ltd, 1988)
61[Roberto Fresca, Tomasz Slanina]
62 - Set the proper screen size.
63 - Decoded graphics.
64 - Decoded the dual-state color circuitry.
65 - Mapped the NVRAM, VRAM1-1, VRAM1-2, VRAM2-1 and VRAM2-2 properly.
66 - Emulated 2x PPI 8255 devices.
67 - Mapped the 4x DIP switches banks.
68 - Added PORT_DIPLOCATION to all DIP switches.
69 - Added DIP switches for 'Bet Max' and 'Limit'.
70 - Added DIP switches for 'Jackpot' and 'Pay Table'.
71 - Added the Memory Reset Switch.
72 - Added the 2nd video & color RAM.
73 - Added a 2nd tilemap for background graphics.
74 - Simplified the graphics banks.
75 - Fixed colors for foreground graphics.
76 - Fixed visible area to show the top of background graphics.
77 - Finally fixed colors for background graphics.
78 - Added all coinage DIP switches.
79 - Mapped all remaining inputs (service and player buttons).
80 - Added pulse time limitation to coins A, B & C.
81 - Switched to use 4x 8255 in replace of 2x 82c255 for I/O.
82 - Created a handler to feed the z80 port0 requests.
83 - Promoted lucky74s to 'working' state.
84 - Added an alternate set, but the program ROM looks like incomplete,
85   protected or just a bad dump.
86 - Parent/clone relationship.
87 - Added technical notes.
88 - Hooked interrupts.
89 - Hooked the AY8910 and therefore the NMI trigger.
90 - Changed the input "Key In" to active high.
4191
42Added xchg and a few other missing opcodes to x86emit.h. [Aaron Giles]
92Fix scrolling speed in case a cheat dat has invalid (i.e. 0) settings.
93[couriersud]
4394
44Added -watchdog to runtest.cmd. [Aaron Giles]
95Added per-device and per-CPU validity checks. [Nathan Woods]
4596
46Verified clocks on Bomberman pcb which runs on M90 hardware.
47[Corrado Tomaselli]
97Added new Ferrari F355 USA BIOS to Naomi.c [AndyGeezer]
4898
99Improved sprite rendering on gaia crusaders (animate at 60fps now,
100not 30). [David Haywood]
49101
50102
103
51104New games added or promoted from NOT_WORKING status
52105---------------------------------------------------
53Paparazzi [Tomasz Slanina]
106Lucky 74 (small) [Roberto Fresca]
54107
55108
56109
57110New clones added
58111----------------
59Touchmaster 7000 V8.04 [Brian Troha]
60Megatouch III Tournament Edition [Hugh McLenaghan]
61Megatouch III [Mariusz Wojcieszek]
62Heated Barrel (World version 3) [Tomasz Slanina]
63Raiden 2 (set 7) [Tomasz Slanina]
112Virtua Fighter 3 (Revision A) [Chris Hardy]
113Lucky 74 (big) [Roberto Fresca]
114Emergency Call Ambulance (Export) [AndyGeezer]
64115
65116
66117
670.124u5
118New games marked as GAME_NOT_WORKING
119------------------------------------
120Hikaru Bios [Guru]
121Air Trix [Guru]
122Planet Harriers [Guru]
123Star Wars Pod Racer [Guru]
124Wave Runner [David Haywood]
125
126
127
1280.125u9
68129-------
69130
70131
71132MAMETesters Bugs Fixed
72133----------------------
7301752: [Core] Warnings making standard .124u4 in GCC 4.3.0 (mingw)
74       (Aaron Giles)
7500149: [Misc.] No error report for invalid BIOS setting. (Aaron Giles)
7601628: [Sound] bgaregga, bgareghk, bgaregnv, bgaregcn, bgaregt2:
77       Sound broken (robiza)
7801757: [Graphics] fieldday, undoukai: Graphics Corruption. (robiza)
7900249: [Graphics] vangrd2: [possible] In cocktail mode, or when the
80       flip screen dip is set, the score display is not flipped.
81       (robiza)
8200506: [Graphics] marvins: Screen flipping isn't correctly supported
83       (robiza)
8401744: [Graphics] gradius3, grdius3a, grdius3e: missing title text in
85       intro (robiza)
8601747: [Graphics] dietgo, dietgoe, dietgou, dietgoj: A ToDo note no
87       more needed into the driver. (robiza)
8801430: [Graphics] riskchal: Sprite-tile priority problem (robiza)
8901750: [Graphics] troangel, newtangl: Corrupt sprite graphics in game
90       (robiza)
134- 01962: [DIP/Input] tailg: "Fatal error: Input ports cannot be read
135         at init time!" with -debug (Aaron Giles)
136- 01948: [Misc.] All alg.c and cliffhgr.c sets: Access Violation when
137         taking a snapshot (Aaron Giles)
138- 01940: [Misc.] All cps3.c sets: Access Violation (Aaron Giles)
139- 01946: [DIP/Input] Various: Fatal error: Input ports cannot be read
140         at init time! (part 2) (Aaron Giles)
141- 01957: [Core] Access Violation on hardreset with -debug (Aaron Giles)
142- 01955: [DIP/Input] gauntleg: Unable to locate input port 'IN1' /
143         gauntleg cannot start (Aaron Giles)
144- 00654: [DIP/Input] usclssic: Can't start 2P game. Seems like 2P
145         Start key has no effect. (stephh)
146- 01945: [Misc.] All asteriod.c sets: Assertions (couriersud)
147- 01939: [Misc.] All sega80v.c sets: Assertions (couriersud)
148- 01947: [DIP/Input] All omegrace.c sets: Assertions (couriersud)
149- 01941: [Misc.] pleiads, pleiadbl, pleiadce: Fatal error:
150         activecpu_get_info_int() called with no active cpu!
151         (src/emu/cpuintrf.c:1160) (couriersud)
152- 01944: [DIP/Input] hachamf: Unable to locate input port 'DSW'
153         (robiza)
154- 01936: [DIP/Input] All namcos21.c sets: Unable to locate input port
155         'AN7' (robiza)
156- 01938: [Gameplay] vaportrx: Game freeze (Aaron Giles)
157- 01937: [Interface] All Sets: Fatal Exception on In-Game Menu
158         (couriersud)
91159
92160
161
93162Source Changes
94163--------------
95snookr10 updates: [Roberto Fresca]
96 - Decrypted the apple10 tile matrix.
97 - Partially decrypted the apple10 color codes.
98 - Added encryption notes.
99 - Updated technical notes.
164SH2 core: [R. Belmont]
165 * refactored to separate out things that aren't part of the
166    interpreter.
167 * converted context struct to go through a pointer
100168
101Added DISCRETE_KEY_SALLEN_FILTER to discrete sound system.
102[couriersud]
169Fixed nile pitch calculation. [h0pdmiYX0]
103170
104Added discrete mixing and filtering to irem games using m52-sound-c
105boards: mpatrol, travrusa. [couriersud]
171MIPS3 recompiler: [Aaron Giles]
172 * don't generate compare interrupts unless the compare register was
173    written to; fixes hangs in blitz, calspeed, and others
174 * stash jump target address before executing delay slot; also, don't
175    update link register until delay slot has finished executing;
176    fixes hang in gauntleg
177 * marked IDT instructions for R4650 only
178 * accounted for time taken in throwaway likely branch slots
179 * fixed jalr to respect the correct link register
180 * fixed c.eq, c.lt, c.le to fail if unordered
181 * fixed swxc1, sdxc1 to use the correct source register
182    (fixes many Gauntlet problems)
183 * fixed CCR31 display in debugger
184 * fixed LWXC1/LDXC1; corrects gauntleg camera
185   
186ADded state saving for flower.c. [couriersud]
106187
107Proper implementation of the tile/sprite priorities in m90 driver.
108This fix priorities in quizf1, riskchal amd maybe more m90 games.
109[robiza, Corrado Tomaselli]
188Corrected dip setting for Risky Challenge. [Brian Troha]
110189
111Fix AY-3-8910/YM2149 and derivatives envelope handling. [couriersud]
190Changed how watchpoints work so that supporting them adds 0 overhead
191unless some are actually live. [Aaron Giles]
112192
113Funworld games: [Roberto Fresca]
114 - Fixed AY8910 volume to all games to avoid clips.
115 - Merge bigdeal and funworld machine drivers thanks to the AY8910 rewrite.
116 - Removed old unaccurate commentary about magiccrd tiles.
193Removed calls to memory_set_context() in favor of
194cpuintrf_push_context(). [Aaron Giles]
117195
118De-hacked metro tilemaps. [David Haywood]
196Renamed wilytowr.c to m63.c. Added Irem M63 PCB layout (based on
197Atomic Boy). [Tomasz Slanina, Stefan Lindberg]
119198
120Sandii' Games: [Roberto Fresca]
121 - Created a new machine driver for tenballs due to different memory
122    map.
123 - Worked all the input ports from the scratch.
124 - Fixed the sound ROM_REGION.
125 - Added the oki6295 emulation to all games.
126 - Hooked output ports.
127 - Documented and calculated all bits related to lamps.
128 - Adjusted palette lenght to 256 colors.
129 - Totally decrypted the apple10 color matrix. Now colors are perfect.
130 - Created a new machine driver for apple10 due to encryption.
131 - Reverse engineering the code to complete the DIP switches.
132 - Added diplocations to DIP switches.
133 - Promoted snookr10, apple10 and tenballs to 'WORKING' state.
134 - Added game instructions & notes.
135 - Updated encryption & technical notes.
199Fixed 32031 so that it doesn't call the debugger if not enabled.
200[Aaron Giles]
136201
137NES/PlayChoice 10 changes: [Mariusz Wojcieszek]
138- added support for mapping rom and ram in PPU video memory space
139- added PinBot mapper (H board)
202Fixed assertion in astring.c when compiled against MSVC and the
203string is UTF-8. [Nathan Woods]
140204
141All CMC italian games: [Roberto Fresca]
142 - Added TICKET and HOPPER buttons to allow payout through the SUPER
143    GAME.
144 - Documented the featured SUPER GAME with complete instructions.
145 - Improved DIP switches to properly set the payout system.
205Night Striker update: [kanikani]
206 - Added World version as new parent (nightstr)
207 - Renamed already-supported US version to nghtstru
208 - Added Japanese version (nghtstrj)
209 - Removed unnecessary analog input remapping
210 - Added analog stick adjusting port
146211
147Changed the implementation of the cocktail mode in marvins.c.
148[robiza]
212Added diplocations to all games in taito_z.c. [kanikani]
149213
150Merged memory maps for tunhunt, tumblep, tugboat, trucocl, and truco.
151[Andrew Gardner]
214Added pot wheel support to world rally 2. [Mirko Mattioli]
152215
153meritm driver updates: [Brian Troha, Tafoid]
154 - Consolidated, corrected and updated info
155 - Verified Megatouch IV program rom
156 - Corrected many rom names
157 - Add game revision to game name (IE: 9255-40-01 ROE)
158 - Added pals from Megatouch 6 to other sets as they all run on the
159    same PCB
160 - Add the sound clock update from Tafoid
216Split ADSP2100 execution loop between debug/non-debug. [Aaron Giles]
161217
162Massive update to ROM naming in the CPS1 driver, also loading smaller
163eproms for Japanese sets instead of the larger mask ROMs where
164possible. Added information about B-Board revisions where possible.
165There is still work to do on this regard but this is a first step in
166untangling the mess. [Nicola Salmoria]
218Improved behavior of PGM on big-endian. The ARM7 boots properly now
219but can't sync with the 68k for some reason. [R. Belmont]
167220
168Verified more CPS1 gfx ROM mappings against PALs.
169[Nicola Salmoria, Corrado Tomaselli]
221Update S14001A core: improved filtering to be more accurate to the
222chip, changed internal audio renderer to produce 4 bit sound as the
223real chip does. Moved filter outside of the main rendering loop into
224the glue code. Note: with this update, you may hear a whining noise
225that was not previously present. This is accurate to the chip! The
226real chip would almost always have an analog filter placed on its
227output to suppress this whine. [Lord Nightmare]
170228
171Fixed another opcode in match it 2. [robiza]
229Fixed some save state problems in the DCS driver. Still comes out
230garbled on a load, however. Extended memory.c to support up to 4096
231banks. [Aaron Giles]
172232
173Converted the MSM6242 RTC into a proper device. [Dirk Best]
233Improvements to Cal Omega driver: [Roberto Fresca]
234 - Unified MACHINE_RESET for systems 903/904/905.
235 - Created a new handler to manage the first 4 bits of system 905's
236    PIA1 portB as input mux selector (905 is still not working)
237 - Updated technical notes.
174238
175Removed deprecat.h from debugger.h to prevent hiding modules that
176really needed to include deprecat.h. [Atari Ace]
239Fixed incorrect assumption in the x86/x64 implementation of HASHJMP
240that the base table for a mode will always be allocated when a fixed
241mode is first used. [Aaron Giles]
177242
178Added support for 8080/85 mode interrupts to the 8259 PIC.
179[Miodrag Milanovic]
243Fixed 64-bit writes in UML C back-end. [Aaron Giles]
180244
181Verified a "not sure" opcode in bombrman. [robiza]
245Preliminary emulation of video hardware (simple blitter) in Strip
246Teaser. [Tomasz Slanina]
182247
183Changed BIOS errors so that specifying an invalid BIOS is a warning,
184not a fatal error. Also re-allowed "default" as a BIOS setting with
185special meaning. [Aaron Giles]
248I80286: Fixed POP ES in protected mode. [Wilbert Pol]
186249
250tumbleb.c update: [stephh]
251 - updated Dip Switches for 'wlstar' and 'wondl96'
252 - added notes for these 2 games and updated some others
253 - added port tags and updated memory definitions and read handlers
187254
255Updated cheat system [ShimaPong]
256 - Roll back older periodic function
257   Now standard/old format work in this function
258   Otherwords, several operations which doesn't exist in older
259   function and added recently are now disabled
260 - Separated load_cheat_code() to 3 indipendent functions
261   And added new cheat options, "Load New/Standard/Old Format Code"
262   (Default : load all format codes)
263     NOTE : delete all cheat options in the database before start
264            or reload default options (Shift + Reload key)
265            in cheat general menu
266 - Added format strings structure to accept huge size strings
267   in loading a database to prevent from breaking other strings
268 - Changed Link in new format
269   Label code is now "Link-Label" and sub-label is "Label-Sub-Link"
270   "Standard-Link" is no longer label
271 - Added choose_label_index() to manage label selection
272 - Fixed build_label_index_table() to prevent from crashing
273   And disabled to build label index table in case of
274   standard/old format
275 - Fixed memory free problem in case of standard/old code
276 - Fixed several reported/found bugs
188277
278Cleaned up input handling in seta.c and bigevglf.c. [stephh]
279
280Adds rom loading for the cadillacs & dinosaurs sets with PICs, and
281for several similar punisher sets. No good dumps of the PICs exist,
282and this is mainly for reference so that we don't forget the graphic
283rom loading on them. They don't work. They're basically the same set
284from different PCBs, so one will probably be removed eventually.
285[David Haywood]
286
287Fixed memory leak in ledutil.c. [HeadKaze]
288
289
290
189291New games added or promoted from NOT_WORKING status
190292---------------------------------------------------
191Quiz F-1 1,2finish [robiza]
192PinBot (PlayChoice-10) [Mariusz Wojcieszek]
193Snooker 10 [Roberto Fresca]
194Apple 10 [Roberto Fresca]
195Ten Balls [Roberto Fresca]
293Touchmaster 8000 (v9.04 Standard) [Brian Troha]
294Galactic Storm [Hau, Team Japump!]
196295
197296
198297
199298New clones added
200299----------------
201Touch Master 3000 V5.02 [Brian Troha]
202Megatouch IV (9255-40-01-ROE) [Brian Troha]
203Dynasty Wars (US set 2) [Corrado Tomaselli]
204Final Fight (Japan 900112) [Chack'n]
205Street Fighter Alpha 2 (Euro 960229) [Razoola]
206Raimais (Japan / First Revision) [Corrado Tomaselli]
300Night Striker (Japan) [kanikani]
301Night Striker (US) [kanikani]
302Wiz (Taito, set 2) [David Haywood]
303Moon Lander [David Haywood]
304Star Force (encrypted, set 2) [highwayman]
305Spy Hunter (Playtronic license) [stefanocsw]
306Captain Commando (bootleg) [highwayman] (NOT WORKING)
207307
208308
209309
210310New games marked as GAME_NOT_WORKING
211311------------------------------------
212Forgotten Worlds (World?) [The Guru]
312King of Football [Tomasz Slanina]
313Hell Night (ver EAA) [Guru]
213314
214315
215316
2160.124u4
3170.125u8
217318-------
218319
219320
220321MAMETesters Bugs Fixed
221322----------------------
22200426: [Core] tenkaibb, mjreach: don't bootup correctly. (Emuman)
22301711: [Gameplay] connect4, mpu4met0, mpu4tst2, mpu4utst, bctvidbs:
224       Using -CHEAT trigger causes a crash (Atari Ace)
22500149: [Misc.] No error report for invalid BIOS setting. (Atari Ace)
22601588: [Core] timecrsa, timecris: MAME simply quits after pressing F3
227       in both sets, game cannot be runned (Atari Ace)
22801733: [Core] diehard: Game fails to start (Aaron Giles)
22901710: [DIP/Input] spacetrk, sptrekct: Cannot insert coins in both sets
230       (Aaron Giles)
23101721: [DIP/Input] sspaceat, sspacat2, sspacat3, sspacatc : Problems
232       with inserting coins. (Aaron Giles)
23301740: [DIP/Input] carnival, headon, heiankyo, pulsar, samurai,
234       tranqgun : Is not possible to insert any coin. (Aaron Giles)
23501724: [Core] garou, garouo: Can't start the game (Aaron Giles)
23601732: [Core] kof99, kof99a, kof99e: Game doesn't start (Aaron Giles)
23701742: [Interface] punchout, armwrest + many vsnes.c and playch10.c
238       games: Refreshspeed causes fatal exception in punchout
239       (Aaron Giles)
24001670: [Graphics] kungfum, kungfud, spartanx, kungfub, kungfub2: Main
241       character sprite not hidden at end of level. (Nicola Salmoria)
24201686: [Graphics] ldrun3, ldrun3jp: visible area problem
243       (Nicola Salmoria)
24400248: [Graphics] repulse: Once the player has been shot, a misplaced
245       tile appears on the screen. (robiza)
24601145: [Graphics] sonofphx, 99lstwar, 99lstwrk, repulse: When you die
247       in the first level, there's a red graphics glitch at the lower
248       left. (robiza)
24900498: [Graphics] sonofphx, 99lstwar, 99lstwra, 99lstwrk, repulse: When
250       the end-level mothership appears in the stage 4, it shows through
251       the trees and scrolls showing through. (robiza)
323- 01935: [Core] All output commands (-listxml, -cc, -listfull, ETC)
324         crash with error (couriersud)
252325
253326
254327
255328Source Changes
256329--------------
257Improvements to aerfboo2: [robiza]
258 - fix bg1 and bg2 offset
259 - fix sprites
260 - promoted to "working" (NO SOUND)
330Updated config.txt to describe debugger. Turned off debugger flag by
331default. [Aaron Giles]
261332
262Added a macro for the CDP1869 interface, and made write handlers
263optional. [Curt Coder]
333Fixed input port read during init on most (Super) System 22 games.
334[R. Belmont]
264335
265Fixed offset sprite/background in kyugo.c. [robiza]
336Fixed Flower dip switches and added dip locations. [Brian Troha]
266337
267Fixed the 6502 family of disassemblers to show the correct bit to
268operate for BBR, BBS, RMB and SMB instructions. (65C02/65CE02 CPUs
269and variants) [Roberto Fresca]
270338
271Fixed 2 opcodes for quizf1: now the little machines move correctly.
272[robiza]
273339
274Converted the ppi8255 implementation to a device. [Wilbert Pol]
340New clones added
341----------------
342Mahjong Electron Base (parts 2 & 4, Japan, BOOTLEG) [XingXing]
275343
276Changed the inline validity checks to work around GCC bug #35885.
277[Wilbert Pol]
278344
279Expanded the set of memory accessor functions. In addition to
280direct byte, word, dword, and qword accessors for all bus sizes,
281there are now masked word, dword, and qword accessors for all
282bus sizes. [Aaron Giles]
283345
284Further CPS1 improvements:
285[Nicola Salmoria, Corrado Tomaselli, Charles MacDonald]
286 * fixed layer enable at the end of stage 4 in Varth.
287 * increased Varth CPU clock to 12MHz to reduce slowdowns (the game
288    was released after sf2ce so the faster A-board was available).
289 * verified more gfx rom mappings against PAL dumps (thanks to Corrado)
290 * verified memory maps using A-board PAL dumps (thanks to Charles)
291 * separated the address ranges for CPS-A and CPS-B customs. This
292    finally clarifies why some registers are fixed and some change
293    with every game.
294 * identified three new unknown registers in the CPS-B-21 custom.
295    Their purpose is unknown.
296 * all unhandled accesses to CPS-A/CPS-B registers will now be
297    reported. There shouldn't be any left. Look out for
298    "contact MAMEDEV" popups.
299 * cleaned memory maps. Moved forgotten worlds special input mmeory
300    handlers to DRIVER_INIT.
301 * moved extra input handlers to video/cps1.c since the extra
302    connectors are on the C-board.
303 * added sound to Final Crash.
304 * lowered SF2 clock speed to 10MHz. This is on the assumption that,
305    since the 12MHz A-Board is called "89626A-4 DASH", it should
306    have started to be used with SF2 DASH--that is, sf2ce.
3460.125u7
347-------
307348
308Inverted the sense of the memory mask that is passed to read/write
309handlers. Previously, the mask indicated which bits were NOT requested
310to be read/written. Now, the mask indicates which bits ARE to be
311read/written, which is more logical. Updated a number of drivers and
312the MIPS CPU cores to comply. [Aaron Giles]
313349
314Funworld updates: [Roberto Fresca]
315 - Removed the temporary hack to jolyc980.
316 - Updated technical notes
317 - Moved snookr10 to its own driver.
318-  Minor clean-up.
350MAMETesters Bugs Fixed
351----------------------
352- 01931: [Gameplay] sqix: [possible] sprites slowdown (couriersud)
353- 01631: [Core] sqixbl, perestro, perestrf: game resets after starting
354         game (couriersud)
355- 01874: [Core] windheat: Game freeze (Aaron Giles)
356- 01905: [Misc.] Many Sets: Fatal Error crash - Fatal error: Input
357         ports cannot be read at init time! (src/emu/inptport.c:1278)
358         (Aaron Giles)
359- 01928: [DIP/Input] chplft, chplftb, chplftbl: Choplifter player 2
360         video is upside down (couriersud)
361- 01712: [DIP/Input] exerizrb, skyfox: Coin 1 mapped twice.
362         (couriersud)
363- 01886: [Graphics] gradius4: 3D gfx problem. (Aaron Giles)
364- 01927: [Misc.] Effects overlay showing in snapshots (Aaron Giles)
365- 01901: [Graphics] kinst13, kinst14, kinstp: Attract mode graphics
366         regression (Aaron Giles)
367- 01916: [Misc.] srmvs: Assertion (Aaron Giles)
368- 01900: [DIP/Input] All sets in kinst.c: Mass coin input disables
369         dipswitch access, and thus further coin input during a fight.
370         (Aaron Giles)
371- 01709: [DIP/Input] startrek, tacscan, zektor: Duplicate P1 + P2
372         Starts Mapped (couriersud)
373- 01715: [DIP/Input] ballbomb: Player 1 Left+Right and Button 1 mapped
374         twice. (couriersud)
375- 01714: [DIP/Input] ssfindo: Player 2 Start mapped twice.
376         (couriersud)
377- 01818: [DIP/Input] All sets in rastan.c: 2nd (unused) Service Mode
378         DIP assigned. (stephh)
379- 01912: [DIP/Input] Various: Unable to construct input ports!
380         (part 2) (Aaron Giles)
381- 01889: [DIP/Input] realbrk, realbrkk, realbrkj: Flip screen DIP
382         switch doesn't work. (couriersud)
383- 01869: [DIP/Input] alienar, alienaru, splat: Duplicated Inputs
384         (couriersud)
385- 01575: [DIP/Input] joust, joustr, joustwr: Player 1 and Player 2
386         Start buttons are mapped twice. (couriersud)
387- 01866: [DIP/Input] gstream: Duplicated Inputs (couriersud)
388- 01903: [Graphics] mooncrst and most clones: 3rd+4th Wave have
389         enemies that are corrupted. (couriersud)
390- 01908: [Misc.] Various: Access Violation when saving a snapshot
391         (Aaron Giles)
392- 01911: [DIP/Input] nomnlndg: Unable to locate input port 'DSW'
393         (Fabio Priuli)
394- 01906: [Misc.] All sets in atartig1.c: Fatal Exception crash
395         (Aaron Giles)
396- 01904: [DIP/Input] teetert: Player movement has slowed from
397         previous MAME (Aaron Giles)
319398
320Improved the IGS017 based games: [Luca Elia]
321- iqblocka: bypassed the protection, emulated the video hardware,
322   inputs and sound.
323- tjsb: it now boots and has partially decrypted graphics.
324399
325Added new Windows option -watchdog, which creates a watchdog thread
326that forcibly kills the application after a certain number of seconds.
327Primarily intended to be used in regression test runs to handle the
328occasional hung game. [Aaron Giles]
329400
330Improved popper.c colors useing resistor values from schematics.
331[couriersud, Joe Magiera]
401Source Changes
402--------------
403Fixed input port read at init time in grchamp.c. [Curt Coder]
332404
333Changed and verified cpu frequencies on kyugo.c games. Gyrodine and
33499 the last war and clones run on the same board. [Corrado Tomaselli]
405Fixed input port read validation. The previous check was way too
406aggressive, and prevented CUSTOM_INPUT handlers from reading other
407ports. This one sets an "all clear" flag as soon as the configuration
408data is loaded. [Aaron Giles]
335409
336Added preliminary 68681 DUART (machine\68681.c) [Mariusz Wojcieszek]
410GX era haradware: update video parameters to use actual values written
411to the CCU. [Yasuhiro Ogawa]
337412
338Moved Microtouch touch screen controller emulation to separate module
339(machine\microtch.c). [Mariusz Wojcieszek]
413MultiPCM/315-5560 rewrite. All features are now supported including
414PLFO and ALFO. [ElSemi]
340415
341Specifying an invalid bios is now a fatalerror. Also, "default" is
342no longer a special BIOS type; if you want the default BIOS, leave
343the bios option blank. [Atari Ace]
416Fixed read from input port during VIDEO_START in namcofl.c.
417[couriersud]
344418
345DEC T-11 CPU improvements: [Miodrag Milanovic]
346 - HALT - now calls interrupt vector
347 - ILLEGAL - had PC=0 at the end which makes code not run fine
348 - MARK - now it is implemented
419Cleaned up z80dma interface [couriersud]
420 * removed compatibility to old z80dma driver
421 * now uses std. callbacks (READ8_HANDLER, WRITE8_HANDLER)
422 * updated mario and dkong3 accordingly
349423
350Memory map merge for twin16 driver. [Andrew Gardner]
424Implemented 8257 dma controller as proper device [couriersud]
425 * rewrote 8257dma.[ch]
426 * updated dkong.c accordingly
351427
352Removed silly idle skip code in prehisle driver. [David Haywood]
428dkong.c: Merge driver init code for drakton and strtheat [couriersud]
429 * made decryption for drakton and strtheat more compact
430 * moved decryption and driver init code into dkong.c
431 * deleted drakton.c and strtheat.c
353432
354AY-3-8910 rewrite: [couriersud]
355 * adds a model to calculate mixing of channels with different
356    resistance loads.
357 * based on above, each channel may be assigned a different load in
358    individual case, i.e. channels not tied together
359 * rewrote ay8910.c to make emulation simpler
360 * changed the config structure to include a flag field and output
361    resistor loads.
362 * Updated all drivers affected.
363 * Added some "Todos" related to stuff I discovered when reading
364    datasheets.
365 * Fixed a bug in disc_flt.c (konami filters)
433Added emulation of ST-0026 NiLe (sound). Added audio to Super
434Real Mahjong P6. [Tomasz Slanina, R. Belmont]
366435
367Fixed discrete sound and konami filter addressing in galaxian driver.
368Also changed addressing of AY-3-8910 to be in line with schematics.
369[couriersud]
436i8x41 improvements: [Wilbert Pol]
437 - Removed i8x41.ram hack from the i8x41 cpu core.
438 - Fixed disassembly for opcode 0x67.
439 - Added configurable i8x41/i8x42 subtype support.
440 - Fixed carry flag handling in ADDC A,#N instruction.
441 - Fixed carry flag handling in RLC A instruction.
442 - Updated the ram sizes. 8041 uses 128 bytes, 8042
443    8042 uses 256 bytes.
444 - Added support for re-enabling interrupts inside
445    an interrupt handler.
446 - Fixed cycle count for DJNZ instruction.
370447
371Added discrete sound for filtering ("konami"-style) and mixing in
372gyruss.c. [couriersud]
448Converted voodoo into a proper device. Updated drivers accordingly.
449[Aaron Giles]
373450
374Changed UI to allow volumes higher than 2.0. [Nicola Salmoria]
451Cal Omega driver updates: [Roberto Fresca]
452 - Lots of improvements on the input system.
453 - Adjusted the CPU adressing to 14 bits for systems 903/904.
454 - Adjusted the CPU adressing to 15 bits for system 905.
455 - Rewrote all the ROM loads based on these changes.
456 - Defined CPU, UART and sound clocks.
457 - Splitted the sound interface to cover different systems.
458 - Splitted the PIAs interfaces to cover different systems.
459 - Added sound to system 905 games.
460 - Added MACHINE_START and MACHINE_RESET to initialize the devices
461    properly.
462 - Documented the systems 903/904 UART connections.
463 - Traced and added PIAs connection diagrams for systems 903/904/905.
464 - Hooked the missing DIP Switches bank to the AY8912 for system 903.
465 - Added preliminary serial/UART support to systems 903/904.
466 - Hooked the missing DIP Switches bank to the ACIA 6850 for systems
467    903/904. It allow to choose the proper transfer rate for UART.
468 - Fixed graphics ROM loads for different Hotline versions.
469 - Added support to Game 8.0 (Arcade Black Jack).
470 - Added support to Game 12.3 (Ticket Poker).
471 - Added support to Game 23.0 (FC Bingo (4-card)).
472 - Renamed all roms of each set according to the systems schematics and official list.
473 - Cleaned-up the sets.
474 - Cleaned-up the driver.
475 - Updated technical notes.
375476
376Changed code which used assignment in conditionals to break out the
377assignment. [Atari Ace]
477Save state support: [Aaron Giles]
478 * added save state support to the MIPS3 recompiler
479 * added save state support to CAGE audio system
480 * added save state support to the voodoo emulator
481 * added save state support to the smc91c9x emulator
482 * added save state support to the kinst, seattle, and vegas drivers
483 * fixed core video handling of save states with dynamic screen resolutions
484 * added save state support to the SHARC CPU core
485 * added save state support to the PowerPC recompiler
486 * added save state support to the virtual TLB system
487 * added save state support to the RF5C400 sound core
488 * added save state support to konppc module
489 * added save state support to K056800 host controller
490 * added save state support to the Konami hornet driver
378491
379Converted a large number of Machine -> machine and removed #include
380"deprecat.h" where possible. [Atari Ace]
492SMC91C9x: [Aaron Giles]
493 * converted to proper device
494 * updated seattle and vegas drivers to allocate devices
495 * added separate 91C96 device for eventual 2049 use
496 * cleaned up code
381497
498Added machine parameter to memory_region() and memory_region_length()
499functions. Cleaned up usage of these throughout the code to cache
500pointers rather than calling these functions repeatedly during loops.
501[Atari Ace]
382502
503Fixed poor default CLUT handling in the voodoo driver. [Aaron Giles]
383504
505Added additional Naomi BIOSes. [Brian Troha, Guru]
506
507DRC fixes: [Aaron Giles]
508 * Fixed WRITEM opcode on 64-bit to call through memory instead of
509    directly. Solves assertions with gcc 4.3 and 64-bit linux.
510 * Fixed DCMP opcode on the 32-bit back-end
511 * Fixed LZCNT opcode in x86 and x64 back-ends
512 * Added support for flags in LZCNT and BSWAP opcodes on x86 and x64
513    back-ends
514
515Changed debugger so it does not stop while we are waiting for a
516pending event to occur. This eliminates some confusion during reset
517and state loading. [Aaron Giles]
518
519Explicitly disabled overlays for non-native snapshots (native
520snapshots already had them disabled). [Aaron Giles]
521
522Added more complete readmes for Konami PowerPC games. [Guru]
523
524Cleaned up system register access in Konami PowerPC games. Connected
525EEPROM in hornet driver (doesn't seem to affect much). Altered network
526IRQ timing to fix several problems. Most games are back to their
527previous "working" states. [Aaron Giles]
528
529Changed DRC frontend to pass a pointer to the previous instruction
530when describing. Updated PowerPC frontend to approximately take into
531account branch and CR logic folding in timing computations.
532[Aaron Giles]
533
534Updated cheat system: [Shimapong]
535 - Merged 3 different search menu functions to search_main_menu()
536 - Added new cheat options, "Vertical/Horizontal Key Repeat Speed"
537     NOTE : delete all cheat options in the database before start
538            or reload default options (Shift + Reload key)
539            in cheat general menu
540 - Changed assignment of Entry for Activation Key and Pre-enable
541   command code. Now there are check the tag in comment field
542   instead of index number. But it's only for new format command
543   and old is as before
544 - Added tag output in save_activation_key() and save_pre_enable()
545 - Cleaned up save_cheat_options() to output description
546 - Changed memory read function in watchpoints
547   No longer "Debugger" watchpoint mis-hit "Cheat" watchpoint
548 - Fixed several reported/found bugs
549 - Renamed funcitons/enum based on coding guidlines
550   All functions are completed in this update
551
552Removed DEBUGGER flag from makefile and ENABLE_DEBUGGER macro from
553the source code. All MAME builds now include the debugger, and it is
554enabled/disabled exclusively by the runtime command-line/ini settings.
555This is a minor speed hit for now, but will be further optimized going
556forward. [Aaron Giles]
557
558Changed the 'd' suffix in the makefile to apply to DEBUG builds
559(versus DEBUGGER builds as it did before). [Aaron Giles]
560
561Changed machine->debug_mode to machine->debug_flags. These flags now
562indicate several things, such as whether debugging is enabled, whether
563CPU cores should call the debugger on each instruction, and whether
564there are live watchpoints on each address space. Redesigned a
565significant portion of debugcpu.c around the concept of maintaining
566these flags globally and a similar, more complete set of flags
567internally for each CPU. All previous functionality should work as
568designed but should be more robust and faster to work with.
569[Aaron Giles]
570
571Added new debugger hooks for starting/stopping CPU execution. This
572allows the debugger to decide whether or not a given CPU needs to call
573the debugger on each instruction during the coming timeslice. Also
574added new debugger hook for reporting exceptions. Proper exception
575breakpoints are not yet implemented. [Aaron Giles]
576
577Added 360degree wheel (dial) input to GTMR, which is available when
578the Controller dip is set to 'Wheel', and Controls dip is set to
579'1P Side'. Note when Controls dip is set to 'Both Sides', 270degree
580wheel (paddle) input is used. [Minwah]
581
582Verified clocks and adjusted sound volumes in Fairyland Story.
583[Corrado Tomaselli]
584
585More conversion to input_port_read: [Fabio Priuli]
586 * updated the whole mid*unit family of drivers + seattle & zeus
587    which shared some input code.
588 * updated most namco systems + a couple of old drivers sharing the
589    input handling, minus namcos22
590 * updated most of the M->Q drivers + finally removed indexed reads
591    from megadriv.c (without breaking ssf2ghw)
592 * removed indexed read from drivers starting with r (and slightly
593    simplify inputs in royalmah.c)
594 * unified nichibustu mahjong input ports (using common ports in
595    nbmj9195.c as well as in the other drivers), removed indexed read
596    and exploited tags to reduce complexity in a couple of handlers
597
598Fixed missing sha1 values in ampoker2.c, atarigx2.c, cabal.c, and
599ksys573.c. [John Gilbert]
600
601Fixed a few build problems with the cpu/sound cores M65CE02,
602ALPHA8201, TMC0285, TMS5200 and corrected the dependencies for
603the mips core. [Atari Ace]
604
605Finish the work on ddragon3: [Sonikos]
606 - Mapped the correct dip "SW1-8" before was incorrect
607 - Added "FBI Logo" dips in ctribe
608 - Fixed the dips condition's implementation to avoid the mame crash
609    in ctribe
610 - Change the name of (Italian bootleg) in a better (bootleg Set 2)
611
612Set OKI 6295 pin 7 to high in gotcha driver. [Sonikos]
613
614Fixed make MSVC_BUILD=1 -j2 and corrected an oversight in the
615cross-build support. [Atari Ace]
616
617Cleaned up most of the Machine stuff in src/emu/machine. There is
618a bit left to clean up, but it's mostly stuck at some interfaces now.
619[Oliver Stoeneberg]
620
621
622
384623New games added or promoted from NOT_WORKING status
385624---------------------------------------------------
386Side by Side [Maruwa]
387Jumping Pop (NICs, Korean bootleg of Plump Pop)
388  [Robin Cooper, David Haywood]
389Touchmaster [Mariusz Wojcieszek]
390Touchmaster 3000 [Mariusz Wojcieszek]
391Touchmaster 4000 [Mariusz Wojcieszek]
392Touchmaster 5000 [Mariusz Wojcieszek]
393Touchmaster 7000 [Mariusz Wojcieszek]
625Survival [nuapete]
626WonderLeague '96 [David Haywood]
394627
395628
396629
630New games marked as GAME_NOT_WORKING
631------------------------------------
632Cal Omega - Game 8.0 (Arcade Black Jack) [Roberto Fresca]
633Cal Omega - Game 12.3 (Ticket Poker) [Roberto Fresca]
634Cal Omega - Game 23.0 (FC Bingo (4-card)) [Roberto Fresca]
635
636
637
6380.125u6
639-------
640
641
642MAMETesters Bugs Fixed
643----------------------
644- 00181: [Sound] ddragon3: OKI volume is too low in MAME. (sonikos)
645- 00417: [Sound] ddragon3: the title voice should start when the
646         background tune hits its highest note. (sonikos)
647- 01441: [Sound] ctribe, ddragon3: The OKI6295 playback frequency is
648         too high. (sonikos)
649- 01888: [DIP/Input] raidena, raidenk, raident: Flip screen DIP switch
650         doesn't work. (couriersud)
651
652
653
654Source Changes
655--------------
656MIPS3 recompiler: [Aaron Giles]
657 * added UML comments for common state variables
658 * removed some unused fields
659 * implemented LL/LLD/SC/SCD (only works single-processor for now)
660
661Added sound emulation to Wily Tower, Atomic Boy and Fighting
662Basketball. [Tomasz Slanina]
663
664Improvements to squahitsa. [David Haywood]
665
666Progress on protection simulation for 2 Crystal System titles. Still
667not working. [ElSemi]
668
669Some progress on tankfrc4 inputs. [David Haywood]
670
671Created common virtual TLB managment module. Updated MIPS and PowerPC
672code to make use of it. [Aaron Giles]
673
674Added a validity check against reading input ports at init time.
675[Curt Coder]
676
677Cleaned up software bilinear filtering code. Added bounds checking.
678Enabled by default for snapshots and movie rendering. [Aaron Giles]
679
680Added new option: -snapsize, which lets you specify the target
681resolution for snapshots and movies. The existing behavior is still
682the default: create snapshots and movies at native pixel
683resolutions. [Aaron Giles]
684
685Added new option: -snapview, which lets you specify a particular
686view to use for rendering snapshots and movies. The existing
687behavior is still the default: use a special internal view and
688render each screen to its own snapshot in its own file. When using
689this option to specify a view other than 'internal', only a single
690snapshot file will be produced regardless of how many screens the
691game has. [Aaron Giles]
692
693Improved AVI and MNG recording to properly duplicate/skip frames
694as appropriate to keep the correct framerate. [Aaron Giles]
695
696Added new function video_get_view_for_target() which selects a view
697based on a command-line parameter and the configuration. Changed
698Windows OSD code to use this instead of its own logic. Changed
699-snapview to share the logic as well, enabling 'auto' as a -snapview
700option. [Aaron Giles]
701
702Renamed "Nintendo z80gb" cpu core to "Sharp LR35902". [Wilbert Pol]
703
704UML: [Aaron Giles]
705 - reactivated back-end validation mechanism
706 - added back-end validation for ADD/SUB/MUL/DIV/CMP forms
707 - fixed several errors in dealing with more obscure flag combinations
708
709konamigx frequency tweaks: [Yasuhiro Ogawa]
710 - set screen refresh rate to 58Hz (parameters from  developer manual
711    are not 100% correct)
712 - removed sound CPU clock hack
713
714Set tecmosys screen refresh rate to measured 57.4458Hz. [Guru]
715
716Added missing machine parameters and removed deprecat.h usage in a
717number of drivers/ and machine/ files. [Oliver Stoenberg]
718
719Changed all games after Street Fighter 2 CE to have a 12mhz clock.
720Verified on Megaman and Quiz and dragons (original kits with plastic
721case). I am resonably sure all the other games after ST2CE have the
722DASH cps1 board with 12mhz clock. [Corrado Tomaselli]
723
724Converted many drivers in the d-j alphabetical range to use
725input_port_read() instead of input_port_read_indexed(). [Fabio Puiuli]
726
727ddragon3 driver cleanups/fixes: [sonikos]
728 - Fixed the mess dips location in ctribe
729 - Added dips location in all sets of ddragon3
730 - Added the missing dips (now are 8x2) on ctribe,ctribe1,ctribeb,
731    ctribb2 and ddrago3b
732 - Fixed the "Stage Clear Energy" dips in ctribe
733 - Adjusted the frame rate from 60hz to around 57 as reported on
734    mametester ID 00417
735 - Adjusted OKI frequency to 1.000mhz (according to recording on
736    mametester ID 00181)
737 - Adjusted the ddragon3 & ctribe volume (according to recording on
738    mametester ID 00181 and 01441)
739
740Some protection improvements for vgoalsoc / tecmo world cup 98.
741[nuapete]
742
743
744
745New games added or promoted from NOT_WORKING status
746---------------------------------------------------
747Alien Storm 2 player World [Frederic Canoen]
748
749
750
397751New clones added
398752----------------
399Aero Fighters (bootleg set 2) [robiza]
4001942 (Williams Electronics license) [Quarterarcade]
401Rygar (US set 3 Old Version) [Corrado Tomaselli]
402Ghosts'n Goblins (Italian bootleg, harder) [Corrado Tomaselli]
753Terra Force (bootleg with additional Z80) [David Haywood]
754Turbo Outrun - White Cockpit version [Frans van Egmond]
755The Combatribes (Italian bootleg) [Sonikos]
403756
404757
405758
406759New games marked as GAME_NOT_WORKING
407760------------------------------------
408Apple 10 (Ver 1.21) [Roberto Fresca]
409Ten Balls (Ver 1.05) [Roberto Fresca]
761Wonderboy 3 System16A FD1089A [Volker Hann]
410762
411763
412764
4130.124u3
7650.125u5
414766-------
415767
416768
417769MAMETesters Bugs Fixed
418770----------------------
41901691: [Misc.] Various Sets: when exiting a game, seems to be
420  any game I get an eip error (Aaron Giles)
42101697: [Graphics] sfa3, sfa3b, sfa3u, sfa3ur1: About the blue
422  background in startup screen. (Nicola Salmoria)
42300206: [Graphics] ninjakd2: PCB info for Nicolas state.
424  (Nicola Salmoria)
42501695: [DIP/Input] ptblank, gunbulet: Crosshair doesn't move (smf)
42601694: [Graphics] punisher, punishrj, punishru: missing graphic
427  (Nicola Salmoria)
771- 01863: [Multisession] mwalk and clones: Crash on multisession.
772         (Atari Ace)
773- 00971: [Color/Palette] spdcoin: In a reverse of the artwork bug,
774         the blue background has been replaced with a black one.
775         (couriersud)
776- 00251: [Sound] spdcoin: Sound isn't perfect. There are many static
777         pops to be heard, and volume is very low. (couriersud)
778- 01884: [Core] mtetrisc, vivdolls, starsldr (maybe all): (MAC OS)
779         crashes with "Illegal instruction" message (Aaron Giles)
780- 01827: [Interface] All sets in galaga.c: DIP switch information is
781         not being readded properly when .CFG is read. (couriersud)
782- 01865: [Graphics] nbapbp: The graphic is completely wrong
783         (Aaron Giles)
784- 01864: [Interface] -listxml still crashes (Aaron Giles)
785- 01885: [Misc.] astdelux, astdelu1, astdelu2: Fatal Error: Unable to
786         locate input port 'DSW' (Fabio Priuli)
787- 01190: [Color/Palette] punchout, spnchout: The colors of the title
788         logo and letters on the top and bottom should be different
789         than each other. (Nicola Salmoria)
790- 01693: [Sound] jackal, jackalj, topgunbl, topgunr: After you get in
791         the jeep the music stops. (Nicola Salmoria)
792- 01880: [Color/Palette] All sets in mrdo.c: Color Regression
793         (Nicola Salmoria)
794- 01870: [Graphics] skylance, skylancr: cocktail mode, player 2's shots
795         are offset from player's position (Nicola Salmoria)
796- 01871: [Documentation] officeye: Misspelled title (robiza)
428797
429798
430799
431800Source Changes
432801--------------
433PSX core updates: [smf]
434 - removed casts and removed unnecessary decoding from NCLIP.
435 - added signed values to PAIR & PAIR64.
436 - renamed PAIR64.lw to PAIR64.q
437 - tidied up DPCS, improved flag calculation and added support for
438    lm/sf fields.
439 - added sf/lm support to INTPL, improved flag calculation &
440    calculates correct rgb
441 - fixed calculation of bit 31 of GTE FLAG register, when writing
442    to it directly.
443 - added lm mode to OP and fixed the calculation.
444 - added lm mode to SQR.
802Updated 68681 DUART: [Mariusz Wojcieszek]
803 - converted to device interface
804 - converted to 8 bit device
805 - added input and output port
806 - added X1/16 timer
445807
446Seibu implementation cleanups: [David Haywood]
447 - added cop/heatbrl ram clear stuff
448 - tried to make cop a bit more generic, breaks a few things for
449    now, but better than duplicated code all over the place
450 - added the sound cpu to raiden2, although it doesn't make any sounds
808Fixed compilation error when neither HAS_PPC403GA nor HAS_PPC403GCX
809are defined. [Nathan Woods]
451810
452Fixed CPS1 palette control register to match tests on msword psb.
453[Nicola Salmoria, Corrado Tomaselli]
811Additional documentation in the TMS5220 and SN76496 cores.
812[Lord Nightmare]
454813
455Changed the pic8259 implementation into a device. [Wilbert Pol]
814Fixed handling of the U register in the RET instructions and when
815taking an interrupt in the Nintendo Minx cpu core. [Wilbert Pol]
456816
457Fixed an opcode in quizf1. Fixed encrypted disassembly for
458bp+ix+offset8 and bp+it+offset8. [Robiza]
817suprnova updates: [David Haywood]
818 - now uses its own draw roz function, which supports linescroll
819    or columnscroll, and will give us the ability to 'render'
820    priority data (with roz applied) from the flagsmap to a temp
821    bitmap to work with.
822 - priorities should be correct from start to end in cyvern now..
823    still not perfect tho.
824 - added a note about what needs fixing for the sengekis sprite zoom
825    (shrink flag we're not handling)
826 - allow wraparound to be turned off (sarukani..)
459827
460Modified bionicc to compute the palette based on the schematics.
461[Nicola Salmoria]
828Italian gambling games based on H8/3337 MCU + NEC D7759GC:
829[Roberto Fresca]
830 - Corrected year and manufacturer to ntcash and wizard.
831 - Sorted the games by year.
462832
463Verified several CPS1 graphics ROM mappings against PAL dumps.
464[Nicola Salmoria]
833Simplified m90 video update routine. [robiza]
465834
466Changed device read/write functions to take a const device_config *.
467Reverted recent hacks to get around this and removed unnecessary
468casts. [Aaron Giles]
835Improvements to bomblord (bbmanw clone): [robiza]
836 - partially fixed the background
837 - fixed the sprites
838 - implemented video register for selecting different resolutions;
839    this fixes graphic in the game screen
840 - fixed scroll video register
841 - cleaned up offset and priorities
842 - implemented linescroll
843 - promoted to working
469844
470Fixed I8039 DAA instruction when A is > 0xF9. [Wilbert Pol]
845Improvements to dynablsb (dynablst clone): [robiza]
846 - partially fixed the background
847 - fixed the sprites
848 - fixed mark for last sprite
849 - fixed player #1 and player #2 controls
850 - fixed graphics layer and offset
851 - fixed layer select
852 - implementated the scroll video register
853 - cleaned up offset and priorities
854 - promoted to working
471855
472Fixed crosshair update when the game is not polling the coordinates.
473[smf]
856Numerous improvements to the blackt96 driver. [David Haywood]
474857
475Merged CPS1, CPS2 memory maps and some tweaks from schematics, though
476to get perfect memory maps dumps of the A-board PALs would be needed.
477[Nicola Salmoria]
858Fixed colortable creation in Mr. Do driver. Fixed diode voltage drop
859value which caused apples to be orange instead of red-orange. The
860title screen now perfectly matches
861http://www.flickr.com/photos/arecee/2384126902/sizes/l/ including the
862logo outline. [Nicola Salmoria]
478863
479Adjusted docastle refresh rate to match PCB measurement.
480[Nicola Salmoria]
864Jackal driver improvements: [Nicola Salmoria]
865 - Fixed palette animation (very subtle!)
866 - Verified on the schematics and on the pcb that the high score table
867    text cannot change color.
868 - Removed the IMPERFECT_GRAPHICS flag
869 - Fixed music with a kludge (overclock sound CPU)
870 - Added dip switch locations and sorted input ports
481871
482Finished memory map merge for W drivers. [Andrew Gardner]
872Simplified palette handling in punchout. Fixed big sprite palette in
873top monitor. [Nicola Salmoria]
483874
484Added support for using smaller-sized memory handlers directly in
485memory maps. To do so, you need to use the new AM_READn/AM_WRITEn
486macros and specify a mask for which bits are connected. [Aaron Giles]
875Cal Omega driver: [Roberto Fresca]
876 - Cleaned up the driver following the MAME Coding Conventions.
877 - Added support to Game 18.7 (Amusement Poker).
878 - Improved the input system for some games.
879 - Fixed some wrong color codes.
880 - Updated technical notes.
487881
488Removed word-sized handlers from 6821pia.c. Updated drivers that
489needed them to use these new interfaces instead. [Aaron Giles]
882New driver for italian gambling games based on Mitsubishi/Renesas
883M16C MCU family. Added dumper notes, hardware details and hooked the
884sound devices. Moved Euro Jolly X5 to this new driver, and add
885support for Grand Prix. [Roberto Fresca]
490886
491Updated gaelco3d.c and itech8.c to remove the need for memconv.h
492by using this new feature. [Aaron Giles]
887Improvements to Sandii' games driver: [Roberto Fresca]
888 - Fixed the tilemap size.
889 - Fixed the screen size.
890 - Updated technical notes.
493891
494Added machine parameter and macros for the CDP1802 callback functions.
495This seems to have fixed the player sprite flashing in Destroyer/
496Altair/Draco. [Curt Coder]
892Changed map command in the debugger to now perform separate
893read/write/fetch lookups. [Aaron Giles]
497894
498Fixed lookup table for sprites in spikes91. [Robiza]
895Fixed AY-3-8910 output mode in Draco. [Curt Coder]
499896
500Made some changes to the 'v25' code in toaplan2.c. Batsugun does
501upload what looks to be the entire program, unencrypted. If enabled
502it runs to the point of waiting for interrupts, however, for those it
503looks like it needs a real V25 core with register banks etc.
504[David Haywood]
897Thayer's Quest changes: [Curt Coder]
898 - cleaned up driver
899 - added LED layout from Dragon's Lair
900 - mapped keyboard and dips correctly
901 - added laser disc drive selection
902 - fixed Z80-COP communications
903 - figured out ports from disassembly
904 - added cart presence detection logic
905 - fixed SSI-263 timings, service mode works now
906 - changed to use COP421
505907
506Converted the IDE controller to a device. Updated all drivers
507accordingly. [Aaron Giles]
908COP4xx: [Curt Coder]
909 - fixed LEI instruction
910 - added COP421 variant
508911
509Added new functions for dynamically installing device memory
510read/write handlers. [Aaron Giles]
912Moved calipso, spdcoin, superbon, moonwar and moonwara to galaxian.c:
913[couriersud]
914 - superbon: Change name to Agent Super Bond and Manufacturer to
915    "Signatron USA"
916 - superbon: Change year to 1985 following information on
917    arcadeflyers.com
918 - removed armorcar remains from scobra.c
511919
512Updated install_memory_XXX_handler() functions to take a machine
513parameter. Updated all drivers accordingly. [Aaron Giles]
920In the i8051 core, timer 0's second split counter was incorrectly
921checking the Timer 1 Run Control Bit. Fixed it. [Jim Stolis]
514922
515Merged installation of read and write handlers where appropriate.
516[Aaron Giles]
923PEPlus driver updates: [Jim Stolis]
924 - All video slot titles now accept coins and play normally
925 - Renamed peps0716 to its proper name "River Gambler Slots", instead
926    of "Quarter Mania Slots"
927 - Updated peps0716 to use the proper CAP
928 - Replaced peps0615 to use a CAP with closer colors (still wrong)
517929
518Simplified memory.c code for dynamic installation so that a single
519function handles all the work; a NULL read or write handler
520indicates not to install anything for reads or writes. [Aaron Giles]
930Added alternate layout for World Rally 2 PCB. [Mirko Mattioli]
521931
522Fixed sprite overdraw mode to match Mutant Night movie.
523[Nicola Salmoria]
932Added sound emulation to Dacholer and Kick Boy. [Tomasz Slanina]
524933
525Properly marked puzznici as a bootleg and disabled the MCU simulation
526on it, it has it's own internally. [David Haywood]
934Cleaned up the usage of Machine in many of the src/video files.
935[Oliver Stoenberg]
527936
528Merged memory maps for aquarium, argus, armedf, bagman, battlera
529drivers. [Aaron Giles]
937Correctness pass over the source tree: [Atari Ace]
938 - added static qualifiers where appropriate
939 - added missing #include statements, source comments and header
940    declarations
941 - removed dead declarations
942 - added ~30 header files for a number of drivers
943 - consolidated various cchip declarations
530944
531Created new macro: AM_RAM_WRITE(handler) which specifies a memory
532range to be RAM-like for reads but calls the given handler for writes.
533[Aaron Giles]
945Improved 8085 timing and fixed flag calculations based on differences
946between it and the 8080. [Miodrag Milanovic]
534947
535Replaced AM_READWRITE(SMH_RAM, handler) with AM_RAM_WRITE(handler).
536Also replaced AM_RAM AM_WRITE(handler) with AM_RAM_WRITE(handler).
537[Aaron Giles]
948Converted a number of drivers over to using input_port_read() from
949input_port_read_indexed(). [Fabio Priuli]
538950
539Added correct rom dump for Shinobi4 set. [Arzeno Fabrice]
951Updated cheat system: [ShimaPong]
952 - Changed the function of default memory read in case of the search
953    to prevent from crashing if a game uses cpu_spinutil()
954    Now basically used do_memory_read() instead of do_cpu_read()
955    (Try to search in actfancr between this and previous version)
956    NOTE : It's not fundamental solution but no longer crash
957 - Cleaned up read_data() and write_data()
958 - Cleaned up save/load routine and added open_cheat_database()
959 - Added new menu "Cheat Commands" into the cheat main menu
960     the following commands are supported in this menu
961      * reload cheat code (the same as Reload Database key)
962      * cheats ON/OFF (the same as Toggle Cheat key)
963      * watchpoints ON/OFF (the same as Shift + Toggle Cheat key)
964      * save description (save the title of the game)
965      * save raw code (save raw cheat code with new format)
966 - Fixed several bugs which has found in testing
967 - Renamed functions based on coding guidlines
540968
541Added good denjinmk graphic rom. [Guru]
969Added option -[no]coin_lockout (-[no]coinlock) to control coin
970lockout behavior. [Aaron Giles]
542971
543Removed ancient 720 kludge in the T-11 core. [Aaron Giles]
972NeoGeo updates: [Johnboy]
973 - Updated Neo-Geo game pcb infos
974 - Marked kof2001h AES VERSION
975 - Marked samsho3a MVS VERSION
976 - Marked 2020bba AES VERSION, renamed p1 and added a note
977 - Renamed lastsold p1 to correct chip label 134-p1k
978    -> Checked other Korean sets, found similar ID change; renamed
979       accordingly
980       Renamed rbff2k p1 to 140-p1k
981       Renamed fswords p1 tp 187-p1k
982       Renamed aof3k p1 to 196-p1k
983       Added comment to kof99n: Korean version?
984 - Renamed mslug3n to mslug3h, Marked AES VERSION, changed mamedriv.c
985 - Remove BAD_DUMP from kotm, add correct m1
986 - Correct s1 layer size in samsh5sp + clones
987 - Removed BAD_DUMP from burningf + clone
988 - Added correct m1 to lbowling
989 - Added correct m1 to socbrawl + clone
990 - Added correct m1 to mutnat
991 - Added correct m1 to joyjoy
992 - Added correct c1/c2 and s1 to marukodq
993 - Renamed p-roms in wh1 and wh1h, added comment
994 - Added some comments about 'M1' and 'S1' roms
995 - Renamed files in kof2001 to correct chip label, changed m1
996 - Corrected set pbobblen as found on MVS cart, added notes
544997
545Added support in the T-11 core for an external vector via irq_callback.
546Apparently the hardware actually did support this and it is necessary
547for emulating the BK 0010/11 computer in MESS. [Aaron Giles]
998Added bilinear filter option to software rendering. Not hooked up to
999anything yet. [Aaron Giles]
5481000
1001DRC UML changes: [Aaron Giles]
1002 - separated conditions and flags into two separate fields
1003 - added more extensive per-opcode information
1004 - made validation more thorough using the extended information
1005 - disabled back-end validation for now until it can be revisited
1006    using the new tables
1007 - changed GETFLGS encoding so that the mask is in parameter 2 instead
1008    of the flags field
1009 - wrote new disassembler based on enhanced opcode info structure
1010 - moved disassembler into drcuml.c and removed old code
1011 - extended disassembler buffer sizes to at least 256 bytes
1012 - removed explicit flag requests from the shorthand opcodes
1013 - added optimization function to drcuml which is called at block end
1014 - added logic to compute the necessary flags based on upcoming opcodes
1015    and only select those flags which are required
1016 - added NOP opcode
1017 - added logic to simplify opcodes as much as possible at the UML layer
1018 - removed similar logic in the x86 and x64 back-ends
1019 - added stricter parameter validation for registers and mapvars
1020 - improved disassembly output
1021 - added simple symbol table to the UML for improved disassembly
1022 - changed optional disassembler cache parameter to a drcuml object
1023 - fixed STORE opcode description to allow immediate source operands
5491024
1025DRC frontend changes: [Aaron Giles]
1026 - changed from tracking "live" registers to tracking "necessary"
1027    registers
1028 - genericized register tracking to be more flexible
1029 - added previous instruction pointer to opcode descriptions
5501030
1031PowerPC recompiler: [Aaron Giles]
1032 - fixed bug where a branch and link to the link register would
1033    overwrite the link register before fetching the target address
1034 - updated to no longer explicitly specify flags
1035 - added symbols for most common variables
1036 - fixed bug in handling XER carry flag for subo. forms
1037 - simplified flag insertion logic for opcodeo. forms
1038 - rewrote lswi/stswi as subroutines
1039 - made accesses to tempdata explicitly dword or qword
1040 - fixed SRR0 when generating a syscall
1041 - removed no longer necessary TESTs on extsb/w, rlwinm, rlwnm,
1042    rlwimi, cntlzw
1043 - fixed bug where the SO flag was not being computed for compares
1044 - fixed flag computations for mulhw/mulhwu/mullw
1045 - fixed subtlety of shifts between 32 and 63 in srw/sraw
1046 - fixed mffs/mtfsf to use FP registers
1047 - fixed mtfsfi to use the immediate value properly
1048 - now marking terminal count bit in DMA status register
1049 - added support for 4xx protection registers via the MMU
1050 - added TLBH, TLBU, and DEC to the list of registers in the debugger
1051 - turned off "end of transfer" DMA signals in favor of "transfer
1052    count 0" signals; fixes memory-to-memory DMA in fiveside
1053 - minor flags optimizations:
1054    * broke CR into several individual bits of state
1055    * extracted the SO bit from XER into its own state
1056 - cleaned up register tracking implementation
1057 - fixed numerous errors and shortcomings in the tracking
1058 - added support for removing unnecessary XER CA and CR0 computations
1059 - updated UML logging to output new frontend statistics
1060 - added basic cycle counts for longer instructions
1061 - added penalty for polling timebase and decrementer registers
1062 - fixed dependencies in cpu.mak
1063 - reduced address bus width of 4xx series to 31 bits per the
1064    documentation
1065 - fixed bug that would jump to incorrect PC after filling the
1066    TLB during a mismatch event
1067 - added explicit address truncation to 31 bits for 4xx series
1068 - added new PPCDRC_ACCURATE_SINGLES option, which removes the
1069    excessive (and very likely unecessary) extra rounding when
1070    performing the "fast" single-precision floating point ops
1071 - fixed TLB filling for 4XX protection ranges
1072 - fixed parameter ordering for masked reads/writes
1073 - added detection of MMU enablement in 403GCX case
1074 - fixed bug in protection bounds violation detection for 4XX
1075 - changed SPU receive model to a push model; updated drivers accordingly
1076 - added macros for setting the SPU transmit handler and sending bytes
1077 - cleaned up ppc.h
1078 - fixed lmw/stmw if rA is one of the loaded/stored registers
1079 - removed unnecessary variables & structure members
1080 - optimized for the XER and CR0 case where XER doesn't need an overflow
1081    calculation
1082
1083MIPS recompiler: [Aaron Giles]
1084 - updated to no longer explicitly specify flags
1085 - tweaked register tracking to match new DRC frontend system
1086 - updated UML logging to output new frontend statistics
1087 - fixed left/right accesses to work with recent memory handler changes
1088
1089x86/x64 back-ends: [Aaron Giles]
1090 - added flag support to SEXT, ROLAND, ROLINS, LZCNT opcodes
1091 - fixed bug where sometimes the flags would be corrupted; in
1092    particular, we always clobbered the flags for the subfze
1093    instruction, which broke the nbapbp camera and some other things
1094 - fixed DIVS/DIVU opcode so they properly compute SZ flags when
1095    requested; fixes camera wackiness in nbapbp
1096 - added a "hop" around the prolog of the HANDLE opcode to allow
1097    fall-through
1098 - redesigned x86 stack management to keep the stack at the same 16-byte
1099    alignment
1100 - fixed adc/sbb so that they don't optimize out ever
1101 - fixed detection of special and/or/xor cases
1102 - fixed GETFLGS opcode so that it doesn't return anything other than
1103    requested flags
1104 - changed LZCNT/BSWAP to be more flexible in register selection
1105
1106gticlub driver: [Aaron Giles]
1107 - converted sysreg_r/w to 8-bit handlers
1108 - added hack to make network IRQs work; brings some games back to life
1109 
1110Konami PowerPC drivers: [Aaron Giles]
1111 - designated fast RAM accesses for work RAM
1112 - removed unnecessary mirroring
1113
1114Firebeat driver:
1115 - added VBLANK IRQ clear
1116 - added ATAPI IRQ clear
1117 - tried to add UART IRQ clear but it doesn't yet work
1118 - most of the games start to show something again with these changes
1119 - added fast RAM region
1120
1121Model 3 driver: [Aaron Giles]
1122 - identified and fixed VBLANK bit in real3d status which was
1123    causing the system to hang at startup
1124 - designated fast RAM accesses for work RAM
1125
112653C810 SCSI controller: [Aaron Giles]
1127 * changed read/write handles to proper READ8/WRITE8_HANDLER
1128    callbacks so they can eventually be used directly
1129
1130
1131
5511132New games added or promoted from NOT_WORKING status
5521133---------------------------------------------------
553Show Hand [Luca Elia]
1134Super Rider (Italy) [Luca Elia]
1135SWAT Police [Brian Troha]
1136Player's Edge Plus (PS0014) Super Joker Slots [Jim Stolis]
1137Player's Edge Plus (PS0022) Red White & Blue Slots [Jim Stolis]
1138Player's Edge Plus (PS0043) Double Diamond Slots [Jim Stolis]
1139Player's Edge Plus (PS0045) Red White & Blue Slots [Jim Stolis]
1140Player's Edge Plus (PS0308) Double Jackpot Slots [Jim Stolis]
5541141
5551142
5561143
5571144New clones added
5581145----------------
559Led Storm Rally 2011 (US) [Bryan McPhail]
560Shinobi (alternate set) [Brian Troha]
561Aero Fighters (bootleg set 2) [Robiza]
1146Tank Force (US, 4 Player) [Brian Troha]
1147Videomat (polish bootleg) [Roberto Fresca]
1148Head Panic (ver. 0117, 17/01/2000) [Brian Troha]
5621149
5631150
5641151
5651152New games marked as GAME_NOT_WORKING
5661153------------------------------------
567Nandemo Seal Iinkai [Luca Elia]
1154Mystery Number [Roberto Fresca]
1155Shark Party (Italy) [Luca Elia]
1156Victor 5 [Luca Elia]
1157Victor 21 [Luca Elia]
1158Euro Jolly X5 [Roberto Fresca]
1159Cal Omega - Game 18.7 (Amusement Poker) [Roberto Fresca]
1160Grand Prix [Roberto Fresca]
1161Squash (Itisa) [f205v]
5681162
5691163
5701164
5710.124u2
11650.125u4
5721166-------
5731167
5741168
5751169MAMETesters Bugs Fixed
5761170----------------------
57701571: [DIP/Input] stadhero: Player 1 and Player2 Start are mapped
578       twice. (stephh)
57901673: [Graphics] sfjp: Game backgrounds replaced with other images
580       (Fabio Priuli)
58101567: [DIP/Input] megazona, megazonb, megazonc, megazone, megaznik:
582       P2 button 1 key mapped twice and P2 button 2 missing (stephh)
58300458: [Misc.] NEC CPU debug bug (robiza)
58400029: [Sound] contcirc: Audio emits from one speaker on start up.
117101829: [Core] bermudat, gwar, ikari, victroad + clones: MAME freezes
1172       at "initializing" screen (Aaron Giles)
117301845: [Core] all games: cheats are broken (ShimaPong)
117401846: [Misc.] -CHEAT trigger causes MAME crash with PSX-type CPU
1175       drivers (ShimaPong)
117601843: [DIP/Input] Many Sets: Input Port Errors (Aaron Giles)
117701855: [Misc.] thayers, thayers: Fatal Error crash (Aaron Giles)
117801859: [Misc.] looping, loopinga, skybump: Fatal Error crash
1179       (Aaron Giles)
118001860: [Core] revx: -CHEAT trigger causes MAME crash (ShimaPong)
118100779: [Graphics] gunnail: After you kill a boss, always a number of
1182       vertical lines will appear. (Nicola Salmoria)
118300778: [Graphics] gunnail: The background in stage 5 is wrong.
5851184       (Nicola Salmoria)
58601609: [DIP/Input] Various - tested srmp4 (ssv.c), ttmahjng
587       (route16.c), vsmahjng (vsnes.c), tokkae (konamigx.c), sf2
588       (cps1.c): INP playback loses sync quickly (Aaron Giles)
58901680: [Graphics] area88, unsquad: [possible] DOT TEST in service mode
590       shows garbage chars (Nicola Salmoria)
59100761: [Speed] finalapr: Heavy performance hit. (couriersud)
59200352: [DIP/Input] spaceskr: The cabinet DIP setting is inverted, when
593       you set it upright mode, control is separated for P1 and P2,
594       the scre (Nicola Salmoria)
59501659: [Core] stereo balancing is wrong (Aaron Giles)
59601622: [Core] -refreshspeed has no effect (Aaron Giles)
59701663: [DIP/Input] Hat switches not working (couriersud)
59800250: [Graphics] 3wonders: Various graphic glitches. (Nicola Salmoria)
59900405: [Graphics] cawing: Text in the attract mode is garbled.
118500788: [DIP/Input] Problem about Joy Axis Input for Pedal.
1186       (couriersud)
118701853: [Gameplay] shadfrce, shadfrcj: Game doesn't start (Haze)
118801847: [DIP/Input] Various: Unable to construct input ports!
6001189       (Nicola Salmoria)
60101021: [Side-by-side] dorunru2: Side-by-side test. (Nicola Salmoria)
60200404: [Graphics] 3wonders: a glitch when u insert your record name
603       when game is over. (Nicola Salmoria)
60401552: [Graphics] 3wonders, 3wonderu: Another little graphic glitch
605       on attract mode (Nicola Salmoria)
60601081: (partial): megaplay.c (all games): 1 Player Start and 2
607       Players Start are duplicated. (couriersud)
119001840: [Interface] MAME 0.125u3 error in xml output (Nathan Woods)
119101699: [Sound] asteroid, asteroi1, asteroib, asterock, meteor,
1192       meteorts: Abnormal discrete sounds (couriersud)
119301844: [Core] compiling 125u3 with VS2008 64bit fails (Aaron Giles)
6081194
6091195
6101196Source Changes
6111197--------------
612Changed the system to show a message if coin-lockout is active and
613a coin key is pressed. [couriersud]
1198Made it possible to pass a NULL errorbug to input_port_config_alloc().
1199Fixes -listxml crashes. [Nathan Woods]
6141200
615Actually fixed -refreshspeed. [Aaron Giles]
1201Updated calomega driver with correct dumps. [Roberto Fresca]
6161202
617Reverted previous SCSI CD change which broke some games. [R. Belmont]
1203Sandii' games improvements: [Roberto Fresca]
1204 - Switched the color system to RESNET calculations.
1205 - Hooked the infamous bit7 of Input Port 0x3004 in parallel to DIP
1206    switch 1. This allow to use the PAYOUT button to trigger the
1207    Super Game instead of STOP 5.
1208 - Demultiplexed lamps matrix.
1209 - Added lamps support, but is still imperfect.
1210 - Updated technical notes.
6181211
619Seibu COP cleanup, primarily sorting the code and identifying
620similarities in different implementations. [David Haywood]
1212Discrete sound update: [couriersud]
1213 * added NODE_RELATIVE(NODE, offset) macro to discrete.h
1214 * fix asteroid.c, canyon.c, skydiver.c and tank8.c to use this macro
1215    instead of adding directly to the node
6211216
622Fixed an erroneous debug change which leaked into the last version of
623the namcona1 update. [Pierpaolo Prazzoli]
1217Fixed duplicate input port bits.
1218[Aaron Giles, Nicola Salmoria, David Haywood]
6241219
625Fixed marineb colors. [David Haywood, Tomasz Slanina]
1220Added simulaton of tecmosys protection. [nuapete]
6261221
627Rewrote INP recording from scratch, since all old INPs are broken
628anyways. Header now includes timestamp, which overrides the default
629time base for MAME's system time. Each frame recorded now gets a
630timestamp. Analog ports are recorded once per frame and interpolated.
631Analog port calculations are all done in fixed point for consistent
632results. A bunch of other minor tweaks in the input port code.
633NOTE: There may still be a few changes to the final INP format.
634[Aaron Giles]
1222Improvements to gatron.c: [Roberto Fresca]
1223 - Renamed the games to "Poker 4-1" and "Pull Tabs"
1224    as shown in the ROMs stickers.
1225 - Renamed the ROMs in each set according to their own stickers.
1226 - Moved the driver into gametron.a group.
1227 - Added the missing input port C to 8255 PPI I/O chip. Poker41 and
1228    pulltabs don't make use of it, but is present in the Test/Setting
1229    Mode.
1230 - Updated technical notes.
6351231
636Improved graphic decoding for Legionnaire, the BK3 tiles are now
637correctly extracted from the TXT region, map screen has correct
638tiles now. [David Haywood]
1232Added proper bankswitching to the dealer driver, validating a ROM
1233previously thought to be bad. [nupete]
6391234
640Removed CPS1 tile kludges and replaced with per-game ROM mapping
641tables. Ideally, the ROM mapping should be derived from mapping of
642the PALs found on the B board. Note that this is a significant change
643and some new bugs might be caused by it. Unlike previous bugs,
644where extra garbage tiles would appear in the games, the new bugs
645would be tiles or sprites MISSING--so they will be harder to notice.
646This would happen because in some cases the 16x16 regions of the gfx
647ROMs can be used by both scroll2 and sprites, while in other cases
648they must be separated. [Nicola Salmoria]
1235Many improvements to the tecmosys video and sound emulation.
1236[David Haywood]
6491237
650PSX updates: [smf]
651 - Fixed the SR masks for MTC0.
652 - Added ability to test the instruction/data cache ram. The
653    scratchpad and BIU register are now handled internally to the CPU.
654 - All writes are performed with masks. SWL/SWR used to be implemented
655    with two writes ( one byte and one word ) when writing three bytes,
656    now it only ever performs one. Byte and Word writes use masks as
657    they leave the rest of the register on the bus, which can be
658    picked up by larger registers.
659 - The read/write functions to use are cached when the SR bits are
660    updated, as are the bad address masks.
661 - Added coprocessor 1 & 3 support, though they don't do anything
662    useful.
663 - All loads now go through the delay pipeline, a lwl/lwr will grab
664    the value out of the pipeline if it's updating the same register.
665 - Added undocumented behaviour of BLEZ/BGTZ. The comparison for zero
666    can be changed by specifying an alternate register in the RT field
667    ( the documentation says you should always use register 0 ).
668 - Restricted to 16 COP0 registers & generate an exception if any of
669    the 5 for the MMU are used.
670 - Added BCF/BCT instructions, although I have found no conditions
671    that affect them yet.
672 - Generates an exception if any MMU instructions are executed.
673 - Sets the CE instruction for all exceptions, not just those
674    involving a coprocessor. The bits of the opcode that specify the
675    coprocessor are grabbed no matter what the instruction.
676 - Added TAR register and BT bit in SR. When an exception occurs
677    during a branch, BT determines whether it was taken or not. The
678    TAR register gets set to the destination of the branch.
679 - Fixed the BD bit when you are in a branch delay slot and you didn't
680    take the branch, this shows up in the pipeline as !pc.
681 - Fixed branches within a branch delay slot.
682 - Multiply & divide instructions can be aborted if you write to
683    HI/LO before reading the result. Added data breakpoints, you
684    don't appear to be able to set breakpoints on any of the
685    addresses internal to the CPU.
686 - Multiply/divide/GTE instructions can execute when an exception is
687    taken, although the EPC indicates that it hasn't. The BIOS avoids
688    rerunning GTE instructions as they are destructive, so you have to
689    make sure they run.
690 - Added bus error handling, PSXCPU is limited to 8mb of ram & any
691    access outside this range will trigger an exception. I believe
692    this is to be an internal limit.
693 - Added CXD8611R as a specific CPU type, System 12 appears to allow
694    more than 8mb of ram & it's possible that this is different.
695 - Mapped out all instructions to either generate an exception or
696    ignore bits.
697 - Updated the disassembler to match the decoding.
698 - Fixed disassembling of branch instructions in a branch delay slot.
699 - Lui checks for a ori/addiu following and will show you the result.
700 - Added step over/out support.
701 - Fixed standalone disassembler.
702 - Fixed SZ0 truncation.
703 - Fixed IRGB truncation and conversion to IR1/IR2/IR3
704 - Added IR1/IR2/IR3 saturation when calculating ORGB.
705 - Fixed OTZ sign extension
706 - Fixed reading from SXYP
707 - Fixed reading from IRGB
708 - Fixed writing to LZCR
709 - Fixed sign extension of GTE control registers
710 - Fixed writing to FLAG
711 - Fixed flag calculation in F macro.
712 - Fixed avsz3 & avsz4 flag & otz calculation.
1238Adjusted NamcoNA output rate to match pitch with F/A and Cosmo Gang
1239the Puzzle soundtrack CDs. [R. Belmont]
7131240
714Fixed unicode crashing bug with input names. [Aaron Giles]
1241Some Nintendo Minx cpu core updates: [Wilbert Pol]
1242 - Styling changes
1243 - Added instruction cycle counts.
1244 - Added interrupt support.
1245 - Added HALT support.
1246 - Fixed INT instruction.
1247 - Added incomplete support for DIV and MUL instructions.
1248 - Fixed MOV [#nnnn],BA and MOV [#nnnn],HL instructions.
1249 - Fixed interrupt handling.
1250 - Fixed opcodes 45, 4D, 55, 5D, B5, B6, B7, FC, FD, and CF 70-7F
1251 - Fixed flag results for INC, DEC, AND, OR, and XOR instructions
1252 
1253Improvements to ampoker2 driver: [Roberto Fresca]
1254 - Reworked the input system for Sigma Poker 2000.
1255 - Promoted Sigma Poker 2000 to 'WORKING' state.
1256 - Updated technical notes.
7151257
716Renamed input port functions: [Aaron Giles]
717  readinputport           -> input_port_read_indexed
718  readinputportbytag      -> input_port_read
719  readinputportbytag_safe -> input_port_read_safe
720Added machine parameter to input port functions. Updated
721many drivers to accomplish this.
1258Updated the 53c810 SCSI adapter to pass IRQ state with the IRQ
1259callback. [R. Belmont]
7221260
723Bulk converted drivers explicitly calling input_port_n_r() with a
724bogus offset to calling input_port_read_indexed() instead.
725[Aaron Giles]
1261Remove port_input_read_indexed in favor of the use of proper tags in
1262a number of drivers. [Fabio Priuli, couriersud]
7261263
727Memory map merges for drivers starting with U, V, W, and Z.
728[Andrew Gardner]
1264Upped max directory size for ST-V/Saturn driver. [R. Belmont]
7291265
730Mostly fixed sound in N64-based games. [Adam Gashlin]
1266COP4xx updates: [Curt Coder]
1267 - Added HALT opcode and halt mode to the COP410
1268 - Added Microbus support, clock divisor selection, and CKO mode
1269    selection to the COP420
1270 - Changed Thayer's Quest keyboard interface to at least slightly
1271    resemble the schematics
7311272
732Correct DMA functionality in N64-based games. [Ville Linde]
1273Changed suprnova blending implementation a bit. Still not right.
1274[David Haywood]
7331275
734Aerfboot improvements: [robiza]
735 - sprite offset are now correct
736 - split spriteram in two parts
737 - identified last sprite for the two parts
738 - promoted to "working" (no sound)
1276Optimised tilemap_draw rowscroll case to avoid overhead when used
1277with clip rects smaller than the tilemap. This reduces by an order of
1278magnitude the time taken to render the bg in Gunnail stage 5.
1279[Nicola Salmoria]
1280
1281PowerPC dynamic recompiler: [Aaron Giles]
1282 - rewrote PowerPC implementation as a dynamic recompiler on top
1283    of the universal recompiler engine
1284 - wrote a front-end to analyze PowerPC code paths and register usage
1285 - wrote a common shared module with C implementations of tricky
1286    CPU behaviors
1287 - added separate CPU types for the variants supported, instead of
1288    relying on a hidden model enum
1289 - rewrote the serial port emulation for the 4xx series to be more
1290    accurate and not rely on separate DMA handlers
1291 - rewrote the MMU handling to implement a software TLB that faults
1292    in pages and handles changed bits appropriately
1293 - implemented emulation of the PowerPC 603's software TLB, which
1294    allows the model 3 games to run without a hack to disable the MMU
1295
1296Updated the PowerPC disassembler to share constants with the rest of
1297the core, and to more aggressively use simplified mnemonics,
1298especially for branches. [Aaron Giles]
1299
1300Universal recompiler:
1301 - fixed frontend to handle opcode widths different from bus width
1302 - added several new opcodes:
1303    * (D)GETFLGS - copies the UML flags to a destination operand
1304    * FDRNDS - rounds a double precision value to single precision
1305 - renamed several opcodes:
1306    * SETC   -> CARRY
1307    * XTRACT -> ROLAND
1308    * INSERT -> ROLINS
1309 - consolidated the following opcodes:
1310    * LOAD?U -> LOAD
1311    * LOAD?S -> LOADS
1312    * STORE? -> STORE
1313    * READ?U -> READ
1314    * READ?M -> READM
1315    * WRITE? -> WRITE
1316    * WRITM? -> WRITEM
1317    * SEXT?  -> SEXT
1318    * FTOI?? -> FTOINT
1319    * FFRI?  -> FFRINT
1320    * FFRF?  -> FFRFLT
1321 - removed some opcodes:
1322    * FLAGS - can be done with GETFLGS/LOAD4/ROLINS
1323    * ZEXT - can be achieved with AND
1324    * READ?S - can be achieved with READ/SEXT
1325 - updated C, x86, and x64 back-ends to support these opcode changes
1326 - updated disassembler to support these opcode changes
7391327 
740Pallavol improvements: [robiza]
741 - fix for sprite's y-coordinate
742 - implement lookup table for convert sprite code in the real code
743 - change the name to "1991 Spikes (Italian bootleg)
744 - fix scroll
745 - fix offset
1328MIPS3 dynamic recompiler: [Aaron Giles]
1329 - fixed Cause register for bad COP instructions
1330 - updated to use new/changed opcode forms
1331 - changed context switch so that it only swaps a single pointer
7461332
747Merged sonson memory maps. [Nicola Salmoria]
1333Konami Hornet changes: [Aaron Giles]
1334 - updated to new PowerPC configurations
1335 - updated some memory handlers to be native 8-bit handlers
1336 - cleaned up JVS implementation to work with new serial code
1337 - added fast RAM for the work RAM to give a small speed boost
7481338
749Added mising TC0060DCA sound mixer to the Taito Z driver. Marked one
750dblaxle ROM as BAD_DUMP. [Nicola Salmoria]
1339Konami GTI Club changes: [Aaron Giles]
1340 - updated to new PowerPC configurations
1341 - updated some memory handlers to be native 8-bit handlers
7511342
752Changed the 8237dma implementation into a device. [Wilbert Pol]
1343Konami Viper/ZR107 changes: [Aaron Giles]
1344 - updated to new PowerPC configurations
7531345
754Fixed wrong tile-sprite priority in m62 driver. [robiza]
1346Sega Model 3 changes: [Aaron Giles]
1347 - updated to new PowerPC configurations
1348 - reimplemented/centralized interrupt handling
1349 - these games are broken for the moment
7551350
756Fixed nec v30 dasm when a "real-time encrypted cpu" is used. Also
757fixed Execution Clocks for add,addc,and,or,xor,cmp,sub,subc
758instructions. [robiza]
1351Fixed crasher due to some Konami games using 8 layers in
1352the K056832 implementation, even though it was only written
1353for 4. [Aaron Giles]
7591354
760Removed the hardcoded dependency on a 8254 device from the 8042kbdc
761code. Changed the drivers using the 8042kdbc to define their own
7628042kdbc - 8254 dependency. [Wilbert Pol]
1355Added fisttp opcode to i386 disassembler. [Aaron Giles]
7631356
764Rewrote core memory handlers as inline functions. These should be
765easier to trace through in a debug build, yet should operate the same
766as before. [Aaron Giles]
1357Verified clock frequencies on Air Raid/Cross Shooter.
1358[Corrado Tomaselli]
7671359
768Created a complete set of functions for all databus sizes (8,16,32,64)
769and all endiannesses. A few functions are redundant, but it is now
770very clear which functions to use in which scenarios. It is also now
771possible to rely on being able to access values of 8, 16, 32 or 64
772bits via the built-in accessors without fear of crashing.
1360Introduced/updated some include files for files that export functions
1361whose apis will need to be changed to handle machine parameters
1362(cps1.h, decocrpt.h, ms32.h, pgm.h, fd1089.h, konami1.h). In the case
1363of konami.c, renamed the file konami1.c and changed the api and
1364callers to only require one function export. Pulled memory_region*()
1365calls out of for loops and folded the occasional duplicated call. The
1366compiler can't likely infer that the results are constant, so this
1367should be a minor performance win as well. [Atari Ace]
1368
1369Fixed some dips and added correct inputs for wpksocv2, despite still
1370missing the correct input for begin the left right movement the game
1371is almost playable. [Sonikos]
1372
1373Updated cheat system: [ShimaPong]
1374 - Locked search region when malloc fails to allocate gigantic memory
1375    instead of fatal error. Also locked zero malloc error in case of
1376    search speed = all memory in 32-bit CPU. And added search region
1377    range checker to lock a search region with a big risk
1378 - Fixed a bug that old code is always converted to specified
1379    separator in enable/disable menu
1380 - Refined new cheat format.
1381    * Rewritten cheat format again. newest format is
1382       ":gamename::type::address::data::extend_data:
1383        (description:comment)"
1384       Expanded type field now requires 10 bytes (not 8 bytes) and
1385       it divides internal cpu (2 bytes) and type (8 bytes) parameters
1386    * Removed VWrite, VRWrite. The flag of Value Selection is merged
1387       into expanded type field now.
1388    * Added CBit (Condition Bit). This checks bit in read data then
1389       set or clear bit in case of true.
1390    * Rearranged cheat code viwer based on newest cheat format
1391 - Fixed unworking Load Old Format option. If you want to load old or
1392    older format code, set it (default is OFF)
1393 - Renamed functions/structures based on coding guidlines
1394    All structures and included parameters are completed
1395 - Merged resize_*_no_dispose() into resize_*()
1396 - Removed the hack of search region for SH-2 CPU because required
1397    region is now set as expected without this hack
1398
1399Made duplicate input port bits an error now that all the warnings are
1400fixed. [Aaron Giles]
1401
1402Added compile-time error if PTR64 is incorrectly set. [Aaron Giles]
1403
1404
1405
1406New games added or promoted from NOT_WORKING status
1407---------------------------------------------------
1408Deroon DeroDero [nuapete, David Haywood]
1409Sigma Poker 2000 [Roberto Fresca]
1410Touki Denshou -Angel Eyes- [nuapete, David Haywood]
1411Black Touch (Korea) (bootleg / hack of Dragon Punch) [David Haywood]
1412
1413
1414
1415New clones added
1416----------------
1417Touki Denshou -Angel Eyes- (VER. 960427) [Tomasz Slanina]
1418Raiden Fighters 2 (Taiwan, SPI) [Corrado Tomaselli]
1419
1420
1421
1422New games marked as GAME_NOT_WORKING
1423------------------------------------
1424Capitan Uncino (Ver 1.2) [David Haywood]
1425Capitani Coraggiosi (Ver 1.3) [David Haywood]
1426La Perla Nera (Ver 2.0) [David Haywood]
1427La Perla Nera Gold (Ver 2.0) [Roberto Fresca]
1428Europa 2002 (Ver 2.0, set 1) [Roberto Fresca]
1429Top Blade V [David Haywood]
1430Office Yeo ln Cheon Ha [David Haywood]
1431Carta Magica (Ver 1.8) [Roberto Fresca]
1432Laser 2001 (Ver 1.2) [Roberto Fresca]
1433Magic Drink (Ver 1.2) [Roberto Fresca]
1434Millennium Sun [Roberto Fresca]
1435NtCash [Roberto Fresca]
1436Super Space 2001 [Roberto Fresca]
1437Unknown italian gambling game [Roberto Fresca]
1438Wizard (Ver 1.0) [Roberto Fresca]
1439Elvis? [Roberto Fresca]
1440
1441
1442
14430.125u3
1444-------
1445
1446
1447MAMETesters Bugs Fixed
1448----------------------
1449- 01827: [Interface] galaga: DIP switch information is not being
1450         readded properly when .CFG is read. (Aaron Giles)
1451- 01837: [DIP/Input] Missing input definitions (Aaron Giles)
1452- 01039: [Interface] trog: Memory area limit of the cheat engine.
1453         (ShimaPong)
1454- 01690: [Graphics] goldstar, goldstbl: Damaged and partially missing
1455         graphic. (Fabio Priuli)
1456- 01153: [Speed] clshroad: The game is slow, the frame rate suffers,
1457         and even the calorie bar flickers. (Nicola Salmoria)
1458- 00267: [Graphics] clshroad: Occasionally a cycler who's graphics are
1459         garbled will come along, (Nicola Salmoria)
1460- 01692: [Graphics] athena: Corrupt sprites in game. (robiza)
1461- 01834: [Graphics] fitegolf, countryc: Graphics corruption (robiza)
1462- 01780: [Graphics] pingpong: Level select arrow's not displayed
1463         (Nicola Salmoria)
1464- 01822: [Interface] OSD causes crash when try to show the Screen
1465         Refresh Rate menu. (Aaron Giles)
1466- 01830: [DIP/Input] All sets in m58.c: Conditional coinage dip not
1467         visible/working for coin mode 1 (Aaron Giles)
1468- 01836: [DIP/Input] qcrayon2: Conditional input not visible/working
1469         for dip game control joystick (Aaron Giles)
1470- 01833: [Graphics] spikes91: missing text layer (David Haywood)
1471- 01832: [DIP/Input] finalgdr: Cannot insert coins (all coin slots
1472         are disabled) (David Haywood)
1473- 00240: [Gameplay] galaga88: Most of the time the shooting accuracy
1474         shown on the screen when the game is over is not computed
1475         correctly. (Nicola Salmoria)
1476- 01741: [Graphics] ldrun4: Sprites are misplaced two pixels to the
1477         right. (Nicola Salmoria)
1478- 01816: [DIP/Input] onetwo, onetwoe: credit problem and maybe sound
1479         problem (David Haywood)
1480- 00245: [DIP/Input] tomahawk: There are no separate keys for player
1481         2 in cocktail mode. (Nicola Salmoria)
1482- 01735: [Graphics] sf2m4, sf2m5, sf2m6, sf2m7, sf2yyc, sf2koryu:
1483         games with bootleg kludge doesn't work (Nicola Salmoria)
1484- 00070: [Misc.] nettoqc: In-game message. (couriersud)
1485- 01756: [Sound] 800fath, knockout, marine, triplep: No sound in game.
1486         (couriersud)
1487- 01825: [Interface] Toggling Tab menu works as F2 key in games with
1488         their service mode DIPs on the top of the menu. (Aaron Giles)
1489- 00407: [Misc.] qtono2: At the game over scene, MAME reports "layer
1490         c000 contact MAMEDEV". (Nicola Salmoria)
1491- 00237: [Sound] jumping: I have a Jumping bootleg and the music has
1492         the same tempo of the original rainbow islands.
1493         (Nicola Salmoria)
1494- 00208: [Original Reference] monymony: I am measuring clocks on my
1495         Money Money pcb but I have a problem with the tms5200 clock.
1496         (Nicola Salmoria)
1497- 01776: [Misc.] pzloop2, pzloop2j: In-game message "write to CPS-A
1498         register 24 contact MAMEDEV" at startup. (Nicola Salmoria)
1499- 01755: [Misc.] mmatrix, mmatrixj: CPS-B read port 10
1500         (Nicola Salmoria)
1501- 01823: [Graphics] digdug, xevious, galaga + all clones: cocktail
1502         mode, player 2 has all sprites offset by an inch or two
1503         (couriersud)
1504- 01826: [Graphics] All sets in mappy.c: All cocktail modes are
1505         displayed incorrectly for 2nd player (couriersud)
1506- 01819: [Misc.] "Coinlock disabled coin x" message displayed upon
1507         startup (couriersud)
1508- 01828: [DIP/Input] Most sets in taito_f3.c driver: Coin slots locks
1509         information does not disappear (couriersud)
1510- 01719: [DIP/Input] bking, bking2, bking3: Player 1 and 2 Start
1511         mapped twice. (couriersud)
1512
1513
1514
1515Source Changes
1516--------------
1517Changed default DIP switches in onetwo.c. Common coinslot mode seems
1518broken, or our code is wrong. [David Haywood]
1519
1520Updated documentation in several drivers based on old readmes and
1521other data that might get lost. [Andrew Gardner]
1522
1523Fixed COP420 instructions JSRP, LBI, LQID, and SKT. Draco now has
1524sound. Also fixed COP420 instructions XAS and INIL. Fixed cycle count
1525for extended opcodes. Added CKO general purpose input. [Curt Coder]
1526
1527Improvements to American Poker II driver. [Roberto Fresca]
1528 - Reworked the color routines switching to resnet system.
1529 - Added a resistor network diagram.
1530 - Switch to pre-defined crystal value.
1531 - Changed the WATCHDOG_TIME_INIT to be based on miliseconds instead
1532    of hertz.
1533 - Other minor cleanup/fixes.
1534 - Updated technical notes.
1535
1536peplus driver changes: [Jim Stolis]
1537 * Updated coin-in timing
1538 * Extended memory address range of DUART
1539 * Fixed overlapping input port bits
1540
1541Fixed PORT_IMPULSE handling. The old code would force inputs to be
1542asserted for at least the number of frames indicated, but keeping the
1543button pressed would keep the input asserted. Now the input is
1544asserted far exactly the number of frames indicated. [Nicola Salmoria]
1545
1546Fixed memory access in the 80286 cpu core which made i286.h obsolete.
1547Changed CPUINFO_INT_MAX_INSTRUCTION_BYTES to prevent crashes during
1548disassembly. [Wilbert Pol]
1549
1550Fixed behavior of toggle switches so that they don't lose their value
1551when the UI is up. They also can now be used for multibit DIP switch
1552settings in which case they toggle through all the options. Added
1553new functions input_field_select_next_setting() and
1554input_field_select_previous_setting() which can be used to iterate
1555properly through DIP switches. Fixed the behavior for cases where
1556conditional ports are in play (you could get stuck). Changed uimenu.c
1557to call these instead of implementing its own. [Aaron Giles]
1558
1559Changed uimenu.c so that hitting ENTER on a DIP switch resets it to
1560its default value. This is analagous to how the OSD sliders behave.
7731561[Aaron Giles]
7741562
775Updated all cores using 8-bit handlers to explicitly call the 8-bit
776handlers with the appropriate endianness. [Aaron Giles]
1563Renamed EEPROM_* to eeprom_*. Updated all drivers accordingly.
1564Typedef'ed a real eeprom_interface structure. [Aaron Giles]
7771565
778Fixed a few games which were calling n-bit handlers directly to use
779the generic forms. In the future, this is all the access drivers will
780have. [Aaron Giles]
1566Added a PORT_CUSTOM for the eeprom bit reading. Updated several
1567drivers to use that by specifying it in their input ports instead
1568of having a custom read handler that inserted the bit forcefully.
1569Also added a PORT_CUSTOM for the ticket dispenser callback as well.
1570Updated the dcheese driver to use it. Many more drivers can be updated
1571to use these new PORT_CUSTOMs in the future, eliminating hacky input
1572port read handlers. [Aaron Giles]
7811573
782More opcodes fixed in gussun oyoyo and risky challenge. [robiza]
1574Changed text used to specify a menu separator in uimenu.c, and added
1575a #define for the new string. [Nathan Woods]
7831576
784Added tags and locations to dips for marvins.c and matmania.c.
785[Fabio Priuli]
1577Added TOKEN_SKIP_* macros to tokenize.h. [Aaron Giles]
7861578
787Enabled roz tilemap in emeraldia, but it's not centered in the right
788position when it's not in its original dimension. [Pierpaolo Prazzoli]
1579Changed error reporting during input port detokenization to fill a
1580buffer rather than fatalerror-ing immediately. Should now properly
1581skip over any invalid tokens. Enhanced error detection during input
1582port detokenization to catch duplicate bits. There are a lot of these!
1583Updated initialization code to print errors and fatal only if the
1584input ports were unable to be constructed at all. [Aaron Giles]
7891585
790Fixed 'lghost*' Dip Switches. [stephh]
1586Fixed duplicate input port bits in pacman.c, gottlieb.c, cps1.c,
1587megadriv.c, segae.c. [David Haywood]
7911588
792Reduced the number of save state callback types from 3 to 1. The
793only remaining form is the one that takes a pointer parameter. Added
794macros for STATE_PRESAVE and STATE_POSTLOAD to define common
795functions. Added machine parameter to these functions. Updated all
796drivers and CPU/sound cores  to use the new macros and consolidate
797on the single function type. As a result pushed the machine parameter
798through a few initialization stacks. [Aaron Giles]
1589Added support for a NULL set of input ports, used by the empty driver.
1590[Aaron Giles]
7991591
800Removed unnecessary postload callbacks which only marked all tiles
801dirty, since this is done automatically by the tilemap engine.
1592Fixed cpu_getiloops() which was not returning the correct value.
1593[Nicola Salmoria]
1594
1595Made gijoe not crash, but still don't understand what the original
1596code was trying to do. [David Haywood]
1597
1598Moved suprpool to a better match hardware. Fixed the ROM load and
1599added a list of PCB components. [Roberto Fresca]
1600
1601Implemented autoload mode in 8257 DMA: [Miodrag Milanovic]
1602 * added support for autoload mode
1603 * fixed bug in calculating count
1604
1605Fixed duplicate input port bits in dkong.c. [couriersud]
1606
1607MIPS core changes: [Aaron Giles]
1608 - renamed struct mips3_config -> mips3_config
1609 - updated all drivers to the new names
1610 - removed MIPS3DRC_STRICT_COP0 flag, which is no longer used
1611 - a few minor cleanups
1612 - moved implementation-specific state into a pointer hanging off of
1613   the core MIPS3 state
1614 - removed large context in favor of a pointer to the large context
1615   to help improve context switch times
1616
1617Changed the behavior of the translate callback in the CPU interface:
8021618[Aaron Giles]
1619 - added new 'intention' parameter to the translate callback to
1620   indicate read/write/fetch access, user/supervisor mode, and
1621   a flag for debugging
1622 - updated all call sites to pass an appropriate value
1623 - updated all CPU cores to the new prototype
8031624
804Updates for the driver wc90b.c: [ClawGrip]
805 - Removed the second YM2203, it isn't present on the bootleg boards
806 - Changed the clocks according to the oscilators found on the board
1625UML updates: [Aaron Giles]
1626 - added new opcode SETC to set the carry flag from a source bit
1627 - added new opcode BSWAP to swap bytes within a value
1628 - updated C, x86, x64 back-ends to support the new opcodes
1629 - updated disassembler to support the new opcodes
8071630
808Added the running_machine* parameter to the function passed into
809cpunum_set_irq_callback() and adds the IRQ_CALLBACK macro for
810the callback function. [Oliver Stoenberg]
1631DRC frontend changes: [Aaron Giles]
1632 - fixed bug in handling edge case with the PC near the 0 or ~0
1633 - added new flag to tag privileged instructions
8111634
812Cleaned up the Machine usage in the osd/windows files and added the
813running_machine parameter where possible. [Oliver Stoenberg]
1635Added new option -snapname which lets you provide a template for how
1636snapshot names are generated. See config.txt for details. [Aaron Giles]
8141637
815Various tweaks/fixes from MAMEPlus:
816 * save state support for FD1094 chips
817 * improved graphics in athena
818 * improved sound balance in armedf
819 * derived refresh rate for toaplan1 games
820 * improved sound balance in tmnt games
821 * derived clocks for suprridr
822 * tweaked xmen visible area
823 * derived clocks and refresh rate in twin16 driver
824 
825CPS1: Verified some gfx ROM mapping tables against PAL dumps. Improved
826understanding and emulation of palette related registers.
827[Nicola Salmoria, Corrado Tomaselli]
1638Added new astring functions astring_del, astring_replace, and
1639astring_replacec. [Aaron Giles]
8281640
1641Removed meaningless service_coin_lockout_w function. Updated the
1642zaxxon driver to correctly handle the coin enable lines.
1643[Nicola Salmoria]
8291644
1645Fixed bug that caused DIP switches to be improperly read from game
1646cfg file in certain circumstances. [Aaron Giles]
8301647
1648Added internal default tags for input ports when saving/loading.
1649[Aaron Giles]
8311650
1651Updated cheat sytem drastically: [ShimaPong]
1652
1653  * Supported (preliminary) new cheat format
1654     - Added new operations
1655        PDWWrite, RWrite, VRWrite, CWrite, Move, Branch, Loop, Popup
1656     - Added new options
1657        ValueSelectNegative, Return, AddressReadFrom, DataReadFrom
1658     - Added cheat variables
1659        You can store data with Write or Move operations and
1660        read as an address or data from each fields
1661     - Added condition check
1662        for CWrite, Branch and Popup operations
1663     - Added new custom codes
1664        Separator, Layer
1665     - Supported Shared Code [MESS ONLY]
1666        different machine shares common code for a game
1667
1668  * Allowed mixed label-select or user-select with standard code
1669
1670  * Added label selector menu for label-selection code
1671
1672  * Added extend comment displayer for multi-line comments
1673
1674  * Added command menu for cheat list and watchpoint
1675     Easy selectable cheat commands in this menu
1676
1677  * Added debug view menu [DEBUG BUILD ONLY]
1678     It displays internal info to debug cheat system
1679
1680  * Supported unique separator by ui_draw_menu() in several menus
1681
1682  * Added user defined search region
1683     You can set free memory range from cheat database
1684
1685  * Enhanced error check for cheat code to prevent from unexpected
1686     working. Error code is locked. If you select this code, the
1687     analyser works instead of the code activater
1688
1689  * Enhanced value input with keyboard-less
1690     Cheat edit key gives new input system in several menus
1691     Left/right keys moves the edit cursor and up/down keys changes a
1692     value
1693
1694  * Added cheat command save, reload, reset in option menu
1695
1696  * Supported address shift in searching
1697     Now searchable default region in TMS340*0 cpu games (Trog,
1698     Smash T.V. etc)
1699
1700  * Refined cheat menu handling with function pointer called
1701     cheat_menu_handler
1702
1703  * Added format strings table to manage in an integrated fashion
1704
1705  * Deleted unused hacks of default search region for Neo Geo and
1706     TMS34010
1707
1708  * Refined code based on MAME coding guidelines
1709     - Renamed many functions/structures/constants
1710        But not complete due to too many items
1711     - Converted small but often used functions to INLINE
1712     - Fixed a comparison in case of 0 or NULL
1713     - Added missing function prototype for several functions
1714
1715
1716
8321717New games added or promoted from NOT_WORKING status
8331718---------------------------------------------------
8341 on 1 Government (JAPAN) [smf]
1719beatmania THE FINAL (ver JA-A) [Chizzy]
1720Player's Edge Plus (XP000112) White Hot Aces Poker [hammer300]
1721ChuckECheese's Match Game [Exodus]
1722Coronation Street Quiz Game [Phil Bennett]
8351723
8361724
8371725
8381726New clones added
8391727----------------
840Seibu Cup Soccer :Selection: (set 2) [Arzeno Fabrice]
841Super Monaco GP (set 1, Japan, Rev A, FD1094 317-0124a)
842   [Corrado Tomaselli]
843Added Side by Side 2 (Japan) [Yasuhiro Ogawa]
1728Fred Flintstones' Memory Match (5 new sets) [Exodus]
1729Mighty! Pang (Euro 001010) [Bonky]
1730Dynamite Cop (USA, Model 2C) [The Guru]
1731Atomic Boy (revision B) [Stefan Lindberg]
8441732
8451733
8461734
847New games marked as GAME_NOT_WORKING
848------------------------------------
849Touchmaster 5000 (v7.10) [Brian Troha]
850Touch Master 7000 [Brian Troha]
851
852
853
8540.124u1
17350.125u2
8551736-------
8561737
8571738
8581739MAMETesters Bugs Fixed
8591740----------------------
86001650: [Gameplay] ridgerac: Unstable Freezes that ends with Crash
861  and needs totally reboot under XP (Aaron Giles)
86201542: [Graphics] 3wonders, 3wonderu, wonder3: Wrong colour of
863  background in game selection and start screens (Nicola Salmoria)
86400403: [Graphics] 3wonders: Points are displayed between lives of
865  first player and the word INSERT COIN: (Nicola Salmoria)
86600410: [Graphics] xmcota: After a couple passes through the demo
867  mode, the background on the qsound screen will go to a shade of
868  green. (Nicola Salmoria)
86901519: [Graphics] msh: After beating the game, the screen turns
870  different colors for the endings and everything (Nicola Salmoria)
87101468: [Graphics] ldrun2: Priority problem at titlescreen
872  (Nicola Salmoria)
87301469: [Graphics] ldrun2: Compared to the PCB does MAME show less
874  graphic at the bottom of the screen. (Nicola Salmoria)
87501661: [Graphics] rougien: sprite disappear (Robiza)
87601613: [Graphics] swcourt, swcourtj: Strange sprites cutting on the
877  edge of screen (Pierpaolo Prazzoli)
87801622: [Core] -refreshspeed has no effect (Aaron Giles)
87901629: [Graphics] raiga, stratof: broken colors on sprites
880  (Aaron Giles)
88101630: [Graphics] fstarfrc, ginkun, riot: broken colors on sprites
882  (Aaron Giles)
88301627: [Misc.] spbactn, spbactnj: Crashes with Access Violation
884  (Aaron Giles)
88501598: [Graphics] 4in1, gmgalax, pacmanbl: Sprites are cut off on
886  the top row (Aaron Giles)
88701563: [DIP/Input] gmgalax: Duplicated Inputs (Aaron Giles)
88800300: [Graphics] zigzag: in cocktail mode player 2 screen is shift
889  over to the right. (Aaron Giles)
89001623: [DIP/Input] ssprint and clones: Coins don't seem to match
891  machine order. (RansAckeR)
89201454: [Graphics] mshuttle, mshuttlj, mshutlj2: The display of the
893  screen is shifted. (Aaron Giles)
89401473: [Graphics] orbitron: Orbitron graphics not correctly
895  displayed (Aaron Giles)
89601600: [Graphics] pacmanbl, batman2: The background is shifted to
897  the right and cut off on the right side. (Aaron Giles)
89801602: [Misc.] luctoday: Messed up graphics. (Screen Offset)
899  (Aaron Giles)
90001599: [Graphics] omega: Screen is vertically offset. (Aaron Giles)
90101605: [Graphics] gteikokb, gteikob2: Wrong screen offset
902  (Aaron Giles)
174101815: [Save/Restore] All Sets: Saved machine states do not properly
1742       adjust to changes in -samplerate (Aaron Giles)
174301671: [Interface] every set with PORT_MODIFY used for DIPs (e.g.
1744       arknoidj): the modified dipswitches are always listed at the
1745       bottom of the list (Aaron Giles)
174601814: [Sound] YM2608 games (tail2nos, sformula, wc90, mechatt): Only
1747       basic music, no more samples (couriersud)
174801497: [Graphics] numanath, numanatj: Graphics corruption on
1749       title screen. (Phil Stroffolino)
175001804: [Core] carnevil, sfrush: Seattle games crash on startup
1751       (Aaron Giles)
9031752
9041753
9051754
9061755Source Changes
9071756--------------
908Renamed galaxian.c -> galaxold.c. Updated all drivers accordingly.
1757Fixed long-standing bug with Emeralda text colors. A sprite
1758attribute exists which signals an alternate interpretation of
1759palette ram. Fixed priority for the bitmap layer used in Numan
1760Athletics. [Phil Stroffolino]
1761
1762Restructured input port internals and cleaned up inptport.c:
9091763[Aaron Giles]
9101764
911Cidelsa driver updates: [Curt Coder]
912 - de-deprecated the timer callbacks
913 - moved PCB RAM to the heap and fixed index overflow
914 - converted CDP1869 to the new device system
915 - refactored to represent how the hardware actually works
916 - added PMA latching on OUT5
917 - separated Cidelsa video to its own file
1765    * Input ports are now maintained hierarchically. At the top
1766      level are input ports, which contain a list of fields. Each
1767      field represents one or more bits of the port. Certain fields
1768      such as DIP switches and configuration switches contain a
1769      list of settings, which can be selected. DIP switch fields
1770      can also contain a list of DIP switch locations.
9181771
919COP CPU updates: [Curt Coder]
920 - implemented interrupt
921 - implemented serial input/output
922 - fixed XAD/LDD, XIS1, RMB3 opcodes
923 - fixed clock divider
924 - fixed internal memory map size
925 - added some cpu variants
926 - fixed serial timer
927 - fixed clocks
928 - fixed COP410 RMB3, XAD instructions
929 - general cleanup
1772    * Normalized behavior of port overrides (via PORT_INCLUDE or
1773      by defining multiple overlapping bits). All fields within a
1774      port are kept in strict increasing bit order, so altered DIP
1775      switches are now kept in the appropriate order. This addresses
1776      MAMETesters bug 01671.
9301777
931Fix cfg file corruption if joystick is not connected; itemclass now
932part of token if item is not found. Settings for joysticks which use
933a custom item id will still be lost. A fallback has to be provided
934here since those will use a token generated from the input item name.
935[couriersud]
1778    * Live port state is now fully separate from configured
1779      state. This is manifested in a similar way to devices, where
1780      a const list of ports can be managed either offline or live.
1781      Each port has a pointer to an opaque set of live state which
1782      is NULL when offline or valid when live. Each port also has
1783      a running_machine * which is also NULL when offline.
9361784
937Memory system changes: [smf]
938 * Now passing mem_mask to the read and write debug hooks. This
939    allows the address & size of the memory access to be correctly
940    calculated when using a memory call that takes a mem_mask.
941 * New macros added for checking mem_mask. ACCESSING_BITS_m_n,
942    These check for any access within the bounds between bit 'm' and bit
943    'n' (counting bit 0 as the least significant bit). Currently the
944    pattern for checking whether both bytes of a word is written is to
945    make two byte checks.
946 * All occurrences of ACCESSING_LSB, ACCESSING_MSB, ACCESSING_LSB16,
947    ACCESSING_MSB16, ACCESSING_LSB32, ACCESSING_MSB32,
948    ACCESSING_LSW32, ACCESSING_MSW32 & simple mem_mask checks have
949    been replaced with the new macros.
1785    * Because of this new arrangement, the conversion from tokens
1786      to a list of ports now requires reasonably complex memory
1787      allocation, so these port lists must be explicitly allocated
1788      and freed (they are not mantained by automatic resource
1789      allocation).
9501790
951Added fatal error if AM_READ_PORT() references a non-existent port.
952[Aaron Giles]
1791    * Custom and changed callbacks now take a pointer to a field
1792      config instead of a running machine. This provides more
1793      information about what field triggered the change notification.
1794      The machine can be found by referenced field->port->machine.
9531795
954Converted special-case DIP switches (service, unknown, unused) into
955their own token type rather than expanding into other tokens. The
956reduces the number of redundant strings and data. [Aaron Giles]
1796    * The inptport.c module has been cleaned up and many
1797      ambiguities resolved. Most of this is internal, though it did
1798      result in osd_customize_inputport_list() being changed to
1799      osd_customize_input_type_list(). The parameter to this function
1800      is now a linked list instead of an array, and the structures
1801      referenced have been reorganized somewhat.
9571802
958Galaxian rewrite. Ultimately will combine the existing drivers
959for galaxian, scramble, frogger, scobra, amidar, and dambustr.
960For the moment, only a subset of games are implemented in the
961new system; the remainder are running on the old code. Main features
962are accurate video timing, correct stars implementation, better
963organization, simplified input ports, and many other smaller fixes.
964[Aaron Giles, stephh]
1803    * Updated config.c to pass machine parameters to its callbacks.
9651804
966Minor cleanup and simplification in the video and palette code.
967Removed palette_config(). [Aaron Giles]
1805    * Updated validity checks, XML output, and UI system to handle
1806      the new structures.
9681807
969Fixed interrupt handling and 16-bit memory accessors in 6840ptm.c.
970Also cleaned up code for the sake of readability. [Philip Bennett]
1808    * Moved large table of default input settings to a separate
1809      include file inpttype.h.
9711810
972Added multiplier (same as wecleman) to Flak Attack. Info provided by
973VU801qCf. [Yasuhiro Ogawa]
1811    * Removed gross hacks in trackfld and hyperspt NVRAM. These
1812      may be broken as a result.
9741813
975Namco NA1 improvement: [Pierpaolo Prazzoli]
976 * Fixed sprites shadow in namcona1 driver and removed Emeraldia hack.
977 * Added tilemaps and sprites 4bpp mode
978 * Added preliminary ROZ implementation (disabled until the enable /
979    disable register is found)
980 * Changed background pen to fix emeralda demo
1814Further Namco NA-1 changes: [Phil Stroffolino]
1815 * Adjusted alternate palette handling weights to more accurately
1816   match real hardware - text anti-aliasing is much more noticable.
1817 * Adjustment to roz layer priority - prevents roz layer from
1818   incorrectly being displayed over backgrounds in some games (i.e.
1819   numanathj)
1820 * Added a mask when processing the roz tilemap to avoid defects in
1821   emeraldj
9811822
982Discrete sound system improvements: [couriersud]
983 * Added DISCRETE_RCFILTER_SW to discrete sound. This implements
984    multiple RC networks with CD4066 switches to connect/disconnect
985    capacitor.
986 * Implemented discrete mixing in circusc using DISCRETE_RCFILTER_SW
987    and sound routing to route 76416 output to discrete logic.
988 * Added discrete filtering and mixing to galaxian.c games using
989    konami_sound.
990 * Fixed timing of stream_update in discrete_sound_w. All sound
991    cores update before processing changed data.
992 * Added streeam_update to discrete_sound_r
993 * Now supports multiple output nodes per module.
994    In this case, NODE_XXX is the default output. Alternative outputs
995    may be accessed by using NODE_XXX_YY where 00<Y<08.
1823Fixed black pixel patches present in the TC0100SCN fg layer of
1824undrfire and groundfx. [Philip Bennett]
1825
1826Universal DRC system updates and improvements: [Aaron Giles]
1827
1828   UML:
1829    * Added back-end validation mechanism, and a handful of tests as
1830      examples. This will be expanded in the future.
1831    * Added several new opcodes:
1832       - SAVE dumps the entire virtual machine state to a struct
1833       - RESTORE applies the data in a struct to the live state
1834       - LZCNT counts leading zeros in an operand
1835       - XTRACT extracts a bitfield to another register (rlwinm)
1836       - INSERT inserts a bitfield into a register (rlwimi)
1837    * Added new back-end function get_info() which returns information
1838      from the back-end about how many actual registers will be
1839      mapped.
1840
1841   x86 back-end:
1842    * Implemented all new opcodes.
1843    * Implemented get_info() function.
1844    * Fixed several bugs relating to shifts/rotates and optimizing out
1845      cases incorrectly.
1846
1847   x64 back-end:
1848    * Implemented all new opcodes.
1849    * Implemented get_info() function.
1850    * Added defines for new Penryn opcodes to x86emit.h.
1851    * Added support for ROUNDSS and ROUNDSD on Penryn architectures.
1852      This hasn't been tested. If you have a Penryn-based system,
1853      give it a try.
1854    * Fixed several bugs relating to shifts/rotates and optimizing out
1855      cases incorrectly.
1856   
1857   C back-end:
1858    * Implemented all new opcodes.
1859    * Implemented get_info() function.
1860    * Cleaned up operand sizing.
1861    * Fixed several errors that made it not work on bigendian systems
1862
1863   MIPS DRC:
1864    * Added some instrumentation for the MMU. To enable it, turn on
1865      PRINTF_MMU at the top of the file.
1866    * Fixed front-end so that virtual no-op instructions are still
1867      targeted as branch targets.
1868    * Fixed front-end to mark the beginning of each sequence as
1869      needing TLB validation, since any sequence can be jumped to
1870      from anywhere.
1871    * Redid the MIPS3 TLB implementation. Fixed the exception vector
1872      and type handling. Changed the bitfields to directly map from
1873      the MIPS TLB format. Added distinction between TLB fill and TLB
1874      valid/modified exceptions.
1875    * Added separate modes for user, supervisor, and kernel modes.
1876      Each mode does proper verification of addresses now and
1877      generates address errors for invalid accesses.
1878    * Fixed several bugs in the TLB implementation; not everything
1879      works yet but it's a lot closer.
1880    * Made COP0 access checking mandatory in non-kernel modes.
1881    * Fixed several crashes when recompiling virtual no-ops.
1882    * Fixed TLB bug where entries for virtual address 0 were present
1883      by default.
1884    * Fixed bug in the map variable implementation that would
1885      sometimes result in incorrectly recovered values.
1886    * Implemented IDT instructions. All invalid instruction asserts
1887      are now runtime-only.
1888    * Added support to map a few common registers to machine registers
1889      if the machine supports it. Currently only x64 on Windows has
1890      enough free registers to do so, though PowerPC will almost
1891      certainly be able to take advantage of this. Gives a minor
1892      speedup.
1893    * Updated to use INSERT and XTRACT where appropriate.
1894    * Cleaned up register usage to free up one machine register for
1895      x64 on Linux.
9961896 
997    You may also access nodes with macros:
998 
999      NODE_XXX = NODE_SUB(XXX, 0)
1000      NODE_XXX = NODE(XXX)
1001      NODE_XXX_YY = NODE_SUB(XXX, YY) with YY != 00
1002     
1003    This should e.g. make discrete sound emulation easier when dealing
1004    with e.g. flip flops (Q & QQ) and binary counters.
1005 * Added sanity checks to check consistency issues introduced by this
1006    change
1007 * Modules specify number of outputs ==> Certain special modules
1008    (WAVELOG) may no longer be used as input nodes
1009 * Removed explicit (NODE_XX + expr) from a couple of drivers
1897Added World Rally wheel support. [Mirko Mattioli]
10101898
1011Fixed encoding/decoding of negative denormal floats in the AICA/SCSP
1012DSP. Shouldn't actually affect any games. [kingshriek, Deunan Knute]
1899Fixed spikes91 sprite colours without resorting to hacks.
1900[David Haywood]
10131901
1014Changed Seibu sound CPU to use AM_READ_PORT("COIN") instead of
1015input_port_0_r. [stephh]
1902Fixed N64 rendering on big-endian targets. [R. Belmont]
10161903
1017bloodbro.c driver improvements to DIP locations and coin modes.
1018Added notes for 'bloodbra'. [RansAckeR, stephh]
1904Fixed CDP1869 character memory access, and Cidelsa sprite flashing.
1905[Curt Coder]
10191906
1020Add input ITEM_IDs for additional axes and switches. Also added
1021ITEM_IDs for up to 4 hats/POVs. [couriersud]
1907Fixed 80286 databus widths. [Wilbert Pol]
10221908
1023Merged memory maps for half of the W drivers. Also made a couple of
1024random touchups for X, Y, and Z drivers. [Andrew Gardner]
1909Added proper interpolation sub-cycles to the TMS5110 and TMS5220
1910('PC' cycles and A/B subcycles of each) and updated comments.
1911[Lord Nightmare]
10251912
1026Added a little magic to make the Atomiswave BIOS try to be more
1027verbose, but our video emulation isn't good enough to cooperate.
1028[R. Belmont, ElSemi]
1913Fixed World Rally MCU comms on big-endian. [R. Belmont]
10291914
1030Added bootleg of badlands - heavily modified, not working.
1031[David Haywood]
1915Changed defaults so that joysticks are enabled standard. [Aaron Giles]
10321916
1033Fixed DS2401 state loading now that the digital i/o board's serial
1034number has been changed to a const by not saving it. As the serial
1035number cannot be changed at run time it was rather pointless. [smf]
1917Some improvements to Sandii' games: [Roberto Fresca, f205v]
1918 - Confirmed the CPU clock after some PCB measurements.
1919 - Changed the SND clock to 1MHz to match the PCB measurement.
1920 - Corrected the internal OKI6295 frequency turning the pin 7 state to HIGH.
1921 - Inputs: Eliminated all pulse limitations.
1922   Affected buttons have a rattled sound in the real thing too.
1923 - Updated technical notes.
10361924
1037BFCobra improvements: [Anonymous]
1038 * Added plane priority to blitter, fixing Treble Top signature
1039    writing
1040 * Video output now supports all modes - lores, hires, mixedres,
1041    8/7/4/3 bits/pixel, fixing Every Second Counts colour problems
1042 * Added line draw, fixing missing stuff from Question Of Sport
1043 * Change blitter loop type control - there are 4 types of loop.
1044 * Corrected video frame rate to 50Hz.
1045 * Corrected Z80 speed to 5.91mhz
1046 * Accounted for Z80 cycles stolen during a blit operation. Improves
1047    gfx/sound sync and seems to fix the final round lockup in Every
1048    Second Counts.
1925Corrected several bugs in the emulation of the saturn CPU. These
1926corrections are needed to make new HP48 drivers (to be submitted to
1927MESS imminently) work. [Antoine Mine]
10491928
1050Various SCSI devices register state items by their disk ID, which are
1051not unique across device types. Introduced a device-type offset for
1052CD-ROMs so their registrations don't clash with harddisks.
1053[R. Belmont]
1929Eliminated a large number of global Machine references. Added machine
1930parameters to IRQ callbacks throughout the system to help remove
1931more. Reduced the number of files needing deprecat.h by ~200.
1932[Atari Ace]
10541933
1055Fixed tilemap viewer to draw the whole tilemap when categories are
1056used. Added new option TILEMAP_DRAW_ALL_CATEGORIES to do this
1057efficiently. Updated several drivers to use this instead of rendering
1058each category independently where appropriate. [Nicola Salmoria]
1934Some work on lwings.c: Input clean up, added dip locations, fixed
1935lwingsb life DIP switches, and merged machine drivers. [Sonikos]
10591936
1060Added DIP locations to blueprnt.c [RansAckeR]
1937Updated Gorf sample volume to match new samples from Chris Law.
1938[Chris Law]
10611939
1062Fixed ledutil.c so it compiles cleanly under MSVC. [Mike Haaland]
1940Added built-in overlay for Moon Shuttle. [Deacon Blue]
10631941
1064Astrocade update: [Dirk Best]
1065 - Update src/mame/includes/astrocde.h to use an XTAL value
1066 - Clear interrupts if they are no longer valid
1067 - Add the knob inputs
10681942
1069Added new makefile flag VERBOSE which enables gcc's verbose output
1070during compile. [Marc Sandusky]
10711943
1072Corrected clocks on Rygar. [Corrado Tomaselli]
1944New games added or promoted from NOT_WORKING status
1945---------------------------------------------------
19461991 Spikes (Italian bootleg) [robiza]
10731947
1074Changed "Machine" to "machine" in a number of places when the
1075running machine parameter is already available. In some cases this
1076also allowed for the removal of deprecat.h. [Oliver Stoenberg]
10771948
1078Did some major cleanup and gutting of pcshare.c. [Wilbert Pol]
10791949
1080Created a built-in overlay for Armor Attack using just rectangles.
1081[Mr. Do!]
1950New clones added
1951----------------
1952Last Fortress - Toride (Korea) [The Guru]
1953Miss Puzzle (Clone of Gumbo) [The Guru]
1954Gals Panic SU (Korea) [The Guru]
10821955
1083Added dynamic control of RX and TX pins to 6850 ACIA emulation - this
1084is needed for correct operation of the MPU4 Video communications
1085system, and may be handy for some MESS systems. To use, set the rx
1086and tx clocks to 0 in the acia interface, then use acia_tx_clock_in()
1087and acia_rx_clock_in() respectively. [James Wallace]
10881956
1089Added proper implentation of hardware collision in mermaid. This
1090fixes mermaid (when the player is in the water with the sharks) and
1091rougien. Also fixed priorities in mermaid and rougien and a sprite
1092wrapping bug. [Robiza]
10931957
1094Fixed CPS1 background color. This fixes 3 wonder (game start) and
1095mtwins (explosion during attract). It seems to break Varth, however,
1096and has dubious effects on the boot sscreens of avsp, sfa3 and
1097possibly other CPS2 games. [Nicola Salmoria]
1958New games marked as GAME_NOT_WORKING
1959------------------------------------
1960Beauty Block [David Haywood]
10981961
1099Added discrete filtering and mixing to ironhors. One driver less
1100using FILTER_RC. [couriersud]
11011962
1102Fixes for aerfboot (bootleg of aerofgt): [Robiza]
1103 - fixes spriteram3 (previous value was too high and in the "city"
1104    level some build disappear
1105 - sprite gfx bank (previously some sprite appear right and some
1106    sprite was wrong)
1107 - fixed perfectly the sprite zoom
1108 - removed multisprite support; in the bootleg aren't present
11091963
1110Converted the pit8253 implementation into a device. To make it 
1111easier to use I've also created a src/emu/devconv.h in the same style
1112as src/emu/memconv.h. [Wilbert Pol]
19640.125u1
1965-------
11131966
1114Replaced anonymous timer in tx1 with an allocated one to make state
1115saving closer to reality. [Hugh Allen]
11161967
1117Changed winwork.c from using hand-built scalable locks to using
1118standard Windows CriticalSections for now, to hopefully address
1968MAMETesters Bugs Fixed
1969----------------------
197001795: [Misc.] tm, tm3k, tm4k, tm5k, tm7k: Day on clock doesn't work
1971       (Luigi30)
197201717: [DIP/Input] arcadecl, sparkz: Service Key mapped twice.
1973       (stephh)
197401713: [DIP/Input] spaceg: All joystick/buttons mapped twice. Button 1
1975       is mapped 3 times! (stephh)
197601791: [DIP/Input] asterock: Unable to credit up or play the game.
1977       Also, there are discrete sound issues. (Fabio Priuli)
197801790: [DIP/Input] zerowng2: Last "Unused" dipswitch is for territory.
1979       (Roberto Fresca)
198001738: [Misc.] neruton: Typo in title (Roberto Fresca)
198101787: [DIP/Input] columnsu: 1st unknown dip switch indentified
1982       (Roberto Fresca)
11191983
11201984
11211985
1986Source Changes
1987--------------
1988Improved cbombers sprites [Philip Bennett]
1989
1990Renamed ports and used AM_READ_PORT macros in arcadecl. [stephh]
1991
1992Add feature to the cia6526: in READ operation the value can be forced
1993by a external circuit; this feature is necessary for MESS. [robiza]
1994
1995undrfire.c improvements: [Philip Bennett]
1996 * Hooked up cbombers steering wheel input.
1997 * Changed ES5505 clock rate to 30476100/2.
1998 * Unified cbombers memory maps and tidied up some code.
1999 * Removed the undrfire speedup hack.
2000
2001Marked the sound roms on Q*Bert's Qubes as bad and changed the flag to
2002imperfect sound. The current sound cpu roms are the same as on a
2003normal Q*Bert board, which is incorrect. At least three sound effects
2004are present in the real qq-snd roms but not the Q*Bert qb-snd ones.
2005[Lord Nightmare]
2006
2007Fixed the ROZ effect in Namco NA1 driver. ROZ tilemap is actually an
2008additional tilemap. Fixes a bug where a "roz enable" test was causing
2009a normal layer to be rendered with ROZ effects in-game. There is no
2010roz enable register - it's always available for mixing with other
2011tilemaps and sprites. This also adds a missing NAMCO logo zoom/spin
2012effect in Emeralda's attract mode. [Phil Stroffolino]
2013
2014Added memory address parameter to CDP1802 DMA callbacks, and added a
2015macro for the CPU interface. [Curt Coder]
2016
2017Rewrote the Gaelco video ram encryption, which finally makes sense.
2018The key observation was that when decrypting the second word, both
2019encrypted and decrypted bits of the first word are used. Many thanks
2020to Javier Valero for the detailed information that made this possible.
2021[Nicola Salmoria]
2022
2023Fixed coin inputs, added validator input, and added notes on inputs to
2024the tmaster driver. [Luigi30]
2025
2026Merged memory maps for drivers: tagteam, tail2nos, tankbatt, tankbust,
2027taotaido, targeth, and taxidrvr. [Andrew Gardner]
2028
2029New driver for old Game-A-Tron gambling games hardware.
2030[Roberto Fresca]
2031 - Properly decoded graphics.
2032 - Proper memory map.
2033 - Added NVRAM support.
2034 - Proper Inputs through 8255 PPI I/O chip.
2035 - Both games are working.
2036 - Added technical & game notes.
2037
2038New universal dynamic recompiler system: [Aaron Giles]
2039
2040    The central module is drcuml.c, which defines a universal
2041    machine language syntax that can be generated by a frontend
2042    recompiler and then retargeted via a generic backend
2043    interface to any of a number of different architectures. A
2044    disassembler for the UML is also included to allow
2045    examination of the generated UML code.
2046
2047    Currently supported backend architectures include 32-bit x86,
2048    64-bit x86, and a platform-neutral interpreted C backend that
2049    can be used as a fallback for platforms without native
2050    support. The C backend also performs additional validation
2051    to ensure assumptions are met.
2052
2053    Along with the new architecture is a new MIPS III/IV
2054    recompiler frontend. This frontend has been rewritten from
2055    the old x64-specific recompiler to generate UML opcodes
2056    instead. This means that the single recompiler can be used
2057    to target multiple backend architectures and should in
2058    theory produce identical results across all of them.
2059
2060    The old 32-bit and 64-bit MIPS recompilers are now officially
2061    retired. The new system provides similar performance (within
2062    5% generally) to the old system and has similar compatibility.
2063    The only currently known issues are some problems with the
2064    two Gauntlet 3D games.
2065
2066Added DS5002FP CPU core. [Manuel Abadia]
2067
2068Added CDP1852 I/O buffer chip, and used it in Altair/Draco.
2069[Curt Coder]
2070
2071Found the proper algorithm to decrypt the blue TAB PCB in the funworld
2072driver. Replaced the old decryption tables with the proper decryption
2073scheme. Updated technical notes. [Roberto Fresca]
2074
2075Added uncompressed AVI recording: [Aaron Giles]
2076
2077    Extended aviio to be able to write RGB bitmaps. Unfortunately,
2078    the only option is fully uncompressed, which means the resulting
2079    AVIs are *HUGE* and may not play correctly in realtime due to
2080    high data rate. The intention is that these uncompressed AVIs
2081    are post-processed by other utilities to compress the video and
2082    produce a realtime playable result.
2083
2084    Added new command-line option -aviwrite which works just like
2085    -mngwrite, except it produces AVIs and streams sound to them.
2086    Updated documentation accordingly.
2087
2088    Shift+F12 still produces MNGs for now, though this might change
2089    in the future.
2090
2091    Modified fileio.c to retain the full pathname to the file so
2092    that it can be queried while the file is open.
2093
2094Updated TMS5200/5220 documentation and comments. Fixed the chirp table
2095implementation in both the 51xx and 52xx chips. [Lord Nightmare]
2096
2097Fixed default dipswitches on thoop to give more than 1 life.
2098[David Haywood]
2099
2100Bug fixes for NamcoNA Hardware: [Phil Stroffolino]
2101 - support for scanline effect (fixes invisible dolphin in Emeralda
2102    attract mode)
2103 - ROZ implementation no longer breaks Numan Athletics pixmap layer
2104 - blitter fixes; xday graphics are now correct
2105 - identified extra communications RAM used by xday (probably to
2106    control printer)
2107
2108Fixed crash in dynax games due to missing MSM6242 device. [Dirk Best]
2109
2110Changed Black tiger main Z80 clock to 6MHz and sound Z80 clock to
21113.579545MHz as verified on PCB. [Corrado Tomaselli]
2112
2113Consolidated opbase variables into a structure and rescoped them so
2114they are hidden for general access. [Atari Ace]
2115
2116
2117
11222118New games added or promoted from NOT_WORKING status
11232119---------------------------------------------------
1124Multi Game III [Mariusz Wojcieszek]
2120Pit Boss Superstar [Hugh McLenaghan]
2121Chase Bombers [Phil Bennett]
2122Card Games? [Roberto Fresca]
2123Slots Game? [Roberto Fresca]
2124World Rally [Manuel Abadia, GAELCO SA]
2125beatmania 7th MIX (ver JA-B) [Chizzy]
11252126
11262127
11272128
11282129New clones added
11292130----------------
1130Off Road Challenge (2 sets) [Guru]
1131Deer Hunting USA V2 [Brian Troha]
1132Super Bishi Bashi Champ (Korea) [Guru]
2131The Legend of Kage [Stefan Lindberg]
2132Megatouch III (9255-20-06 RON) [Brian Troha]
2133Ghox (set 2) [Tormod Tjaberg]
2134Demon's World / Horror Story (early edition) [Brian Troha]
2135Legendary Wings (bootleg) [Sonikos]
11332136
11342137
11352138
11362139New games marked as GAME_NOT_WORKING
11372140------------------------------------
1138Give us a Break [Philip Bennett]
1139Ten Up [Philip Bennett]
1140Beeline [Philip Bennett]
1141Chase Bombers [Bryan McPhail]
2141beatmania THE FINAL (ver JA-A) [Chizzy]
2142

Previous 15994 Revisions Next


© 1998-2018 The MESS Team