Previous 15994 Revisions Next

r4407 Monday 9th March, 2009 at 12:21:09 UTC by Nathan Woods
Updated to MAME 0.130 core
[ROOT]whatsnew.txt
[docs]messnew.txt
[src/emu]inptport.c mame.c romload.c ui.c
[src/emu/cpu]drcfe.c
[src/emu/cpu/mips]mips3.h mips3drc.c psxdasm.c
[src/emu/cpu/powerpc]ppc.h ppccom.c ppccom.h ppcdrc.c ppcfe.c
[src/emu/cpu/tms57002]tms57002.c tmsinstr.lst
[src/mame]mame.mak mamedriv.c
[src/mame/audio]dcs.c
[src/mame/drivers]20pacgal.c aleck64.c cntsteer.c cultures.c deco32.c esd16.c firebeat.c gpworld.c gticlub.c hng64.c hornet.c igspoker.c kinst.c limenko.c mazerbla.c mlanding.c model3.c namcos21.c nwk-tr.c polepos.c pzletime.c* royalmah.c rpunch.c seattle.c segas16a.c sfbonus.c stepstag.c suprnova.c tryout.c turbo.c tutankhm.c ultrsprt.c vegas.c wc90b.c zr107.c
[src/mame/includes]n64.h
[src/mame/machine]n64.c
[src/mame/video]dc.c deco32.c esd16.c gticlub.c namcos21.c shangha3.c ssv.c wc90.c wc90b.c
[src/mess/drivers]n64.c

src/mame/audio/dcs.c
r4406r4407
288288   const address_space *program;
289289   const address_space *data;
290290   UINT8      rev;
291   offs_t      polling_offset;
292   UINT32      polling_count;
291293
292294   /* sound output */
293295   UINT8      channels;
r4406r4407
415417static void sound_tx_callback(const device_config *device, int port, INT32 data);
416418
417419static READ16_HANDLER( dcs_polling_r );
420static WRITE16_HANDLER( dcs_polling_w );
418421
419422static TIMER_CALLBACK( transfer_watchdog_callback );
420423static int preprocess_write(running_machine *machine, UINT16 data);
r4406r4407
10181021   dcs.auto_ack = FALSE;
10191022
10201023   /* install the speedup handler */
1024   dcs.polling_offset = polling_offset;
10211025   if (polling_offset)
1022      dcs_polling_base = memory_install_read16_handler(cpu_get_address_space(dcs.cpu, ADDRESS_SPACE_DATA), polling_offset, polling_offset, 0, 0, dcs_polling_r);
1026      dcs_polling_base = memory_install_readwrite16_handler(cpu_get_address_space(dcs.cpu, ADDRESS_SPACE_DATA), polling_offset, polling_offset, 0, 0, dcs_polling_r, dcs_polling_w);
10231027
10241028   /* allocate a watchdog timer for HLE transfers */
10251029   transfer.hle_enabled = (ENABLE_HLE_TRANSFERS && dram_in_mb != 0);
r4406r4407
11611165
11621166   /* update the bank pointers */
11631167   sdrc_update_bank_pointers(machine);
1168
1169   /* reinstall the polling hotspot */
1170   if (dcs.polling_offset)
1171      dcs_polling_base = memory_install_readwrite16_handler(cpu_get_address_space(dcs.cpu, ADDRESS_SPACE_DATA), dcs.polling_offset, dcs.polling_offset, 0, 0, dcs_polling_r, dcs_polling_w);
11641172}
11651173
11661174
r4406r4407
20582066
20592067static READ16_HANDLER( dcs_polling_r )
20602068{
2061   cpu_eat_cycles(space->cpu, 1000);
2069   if (dcs.polling_count++ > 5)
2070      cpu_eat_cycles(space->cpu, 10000);
20622071   return *dcs_polling_base;
20632072}
20642073
20652074
2075static WRITE16_HANDLER( dcs_polling_w )
2076{
2077   dcs.polling_count = 0;
2078   COMBINE_DATA(dcs_polling_base);
2079}
20662080
2081
2082
20672083/***************************************************************************
20682084    DATA TRANSFER HLE MECHANISM
20692085****************************************************************************/
src/mame/machine/n64.c
r4406r4407
15671567
15681568//static UINT16 crc_seed = 0x3f;
15691569
1570void n64_machine_reset(running_machine *machine)
1570MACHINE_START( n64 )
15711571{
1572   mips3drc_set_options(machine->cpu[0], MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY);
1573
1574      /* configure fast RAM regions for DRC */
1575   mips3drc_add_fastram(machine->cpu[0], 0x00000000, 0x007fffff, FALSE, rdram);
1576}
1577
1578MACHINE_RESET( n64 )
1579{
15721580   int i;
15731581   //UINT32 *pif_rom   = (UINT32*)memory_region(machine, "user1");
15741582   UINT32 *cart = (UINT32*)memory_region(machine, "user2");
r4406r4407
16231631
16241632   cic_status = 0;
16251633
1626   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_DRC_OPTIONS, MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY);
1627
1628      /* configure fast RAM regions for DRC */
1629   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 0);
1630   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x00000000);
1631   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x007fffff);
1632   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, rdram);
1633   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 0);
1634
16351634   audio_timer = timer_alloc(machine, audio_timer_callback, NULL);
16361635   timer_adjust_oneshot(audio_timer, attotime_never, 0);
16371636
src/mame/mamedriv.c
r4406r4407
70157015   DRIVER( sarukani )   /* (c) 1997 Kaneko / Mediaworks (Japan) */
70167016   DRIVER( cyvern )   /* (c) 1998 Kaneko (Japan) */
70177017   DRIVER( galpans2 )   /* (c) 1999 Kaneko (Japan) */
7018   DRIVER( galpans2a )   /* (c) 1999 Kaneko (Asia) */
70187019   DRIVER( galpansu )   /* (c) 1999 Kaneko (Korea) */
70197020   DRIVER( panicstr )   /* (c) 1999 Kaneko (Japan) */
70207021   DRIVER( senknow )   /* (c) 1999 Kaneko / Kouyousha (Japan) */
r4406r4407
74707471   DRIVER( janoh )      /* (c) 1984 Toaplan */
74717472   DRIVER( janoha )   /* (c) 1984 Toaplan */
74727473   DRIVER( jansou )   /* (c) 1985 Dyna */
7474   DRIVER( jansoua )   /* (c) 1985 Dyna */
74737475   DRIVER( mjsiyoub )   /* (c) 1986 Visco */
74747476   DRIVER( mjsenka )   /* (c) 1986 Visco */
74757477   DRIVER( mjyarou )   /* (c) 1986 Visco / Video System */
r4406r4407
76027604   DRIVER( chleagul )   /* (c) 199? IGS */
76037605   DRIVER( number10 )   /* (c) IGS (Board labeled Playmark Srl) */
76047606   DRIVER( numbr10l )   /* (c) IGS (Board labeled Playmark Srl) */
7607   DRIVER( citalian )
7608   DRIVER( citaliana )
76057609   DRIVER( stellecu )   /* (c) 1998 */
76067610   DRIVER( iqblock )   /* (c) 1993 */
76077611   DRIVER( grndtour )   /* (c) 1993 */
r4406r4407
78267830   DRIVER( twins )      /* (c) 1994 */
78277831   DRIVER( twinsa )   /* (c) 1994 */
78287832   DRIVER( mwarr )
7833   DRIVER( pzletime )
78297834
78307835   /* Arcadia System */
78317836   DRIVER( ar_bios )
r4406r4407
87598764   DRIVER( hldspin2d )
87608765   DRIVER( hldspin2v )
87618766   DRIVER( fcnudge )
8762   DRIVER( fruitcar )
8763   DRIVER( fruitcar2 )
8764   DRIVER( fruitcar3 )
8767   DRIVER( fcnudge2 )
8768   DRIVER( fcnudge3 )
8769   DRIVER( fcnudge4 )
87658770   DRIVER( pickwin )
87668771   DRIVER( pickwina )
87678772   DRIVER( pickwinb )
r4406r4407
88708875   DRIVER( fb4v )
88718876   DRIVER( fb4v2 )
88728877   DRIVER( fb4v3 )
8878   DRIVER( fb5 )
8879   DRIVER( fb5c )
8880   DRIVER( fb5d )
8881   DRIVER( fb5v )
8882   DRIVER( fb6 )
8883   DRIVER( fb6v3 )
8884   DRIVER( fb6d2 )
8885   DRIVER( fb6s )
8886   DRIVER( fb6v )
8887   DRIVER( fb6d )
8888   DRIVER( fb6s2 )
8889   DRIVER( fb6v2 )
8890   DRIVER( fb6se )
8891   DRIVER( fb6sev )
8892   DRIVER( fb6sed )
8893   DRIVER( fb6sev2 )
8894   DRIVER( fb6sed2 )
8895   DRIVER( fb6sev3 )
8896   DRIVER( version4 )
8897   DRIVER( bugfever )
8898   DRIVER( bugfeverd )
8899   DRIVER( bugfeverv )
8900   DRIVER( bugfeverv2 )
8901   DRIVER( dvisland )
8902   DRIVER( funriver )
8903   DRIVER( funriverv )
8904   DRIVER( amclink )
8905
8906
88738907   DRIVER( act2000 )
88748908   DRIVER( act2000a )
88758909   DRIVER( act2000a2 )
src/mame/includes/n64.h
r4406r4407
8484extern READ32_HANDLER( n64_pif_ram_r );
8585extern WRITE32_HANDLER( n64_pif_ram_w );
8686
87void n64_machine_reset(running_machine *machine);
87MACHINE_START( n64 );
88MACHINE_RESET( n64 );
8889
8990#endif
src/mame/mame.mak
r4406r4407
696696   $(DRIVERS)/stlforce.o $(VIDEO)/stlforce.o \
697697   $(DRIVERS)/ppmast93.o \
698698   $(DRIVERS)/twins.o \
699   $(DRIVERS)/pzletime.o \
699700
700701$(MAMEOBJ)/eolith.a: \
701702   $(DRIVERS)/eolith.o $(VIDEO)/eolith.o \
src/mame/video/deco32.c
r4406r4407
225225         continue; //fix!!!!!
226226
227227      if (spritedata[offs+2]&0x20)
228         prival=0;
228         prival=0xfffe; // under PF2
229229      else
230         prival=2;
230         prival=0; // above everything
231231
232232      sx = spritedata[offs+1];
233233
r4406r4407
296296      colour = (x >>9) & colourmask;
297297
298298      if ((y&0x8000))
299         pri=8;
299         pri=1;
300300      else
301         pri=128;
301         pri=4;
302302
303303      fx = y & 0x2000;
304304      fy = y & 0x4000;
r4406r4407
969969VIDEO_START( fghthist )
970970{
971971   pf1_tilemap = tilemap_create(machine, get_pf1_tile_info, tilemap_scan_rows, 8, 8,64,32);
972   pf2_tilemap = tilemap_create(machine, get_pf2_tile_info, deco16_scan_rows,16,16,64,32);
973   pf3_tilemap = tilemap_create(machine, get_pf3_tile_info, deco16_scan_rows,16,16,64,32);
974   pf4_tilemap = tilemap_create(machine, get_pf4_tile_info, deco16_scan_rows,     16,16,64,32);
972   pf2_tilemap = tilemap_create(machine, get_pf2_tile_info, deco16_scan_rows, 16,16,64,32);
973   pf3_tilemap = tilemap_create(machine, get_pf3_tile_info, deco16_scan_rows, 16,16,64,32);
974   pf4_tilemap = tilemap_create(machine, get_pf4_tile_info, deco16_scan_rows, 16,16,64,32);
975975   pf1a_tilemap =0;
976976   dirty_palette = auto_malloc(4096);
977977
r4406r4407
12631263      tilemap_draw(bitmap,cliprect,pf3_tilemap,0,1);
12641264   }
12651265
1266   captaven_draw_sprites(screen->machine,bitmap,cliprect,buffered_spriteram32,3);
1267
12681266   /* PF1 can be in 8x8 mode or 16x16 mode */
12691267   if (deco32_pf12_control[6]&0x80)
1270      tilemap_draw(bitmap,cliprect,pf1_tilemap,0,0);
1268      tilemap_draw(bitmap,cliprect,pf1_tilemap,0,2);
12711269   else
1272      tilemap_draw(bitmap,cliprect,pf1a_tilemap,0,0);
1270      tilemap_draw(bitmap,cliprect,pf1a_tilemap,0,2);
1271
1272   captaven_draw_sprites(screen->machine,bitmap,cliprect,buffered_spriteram32,3);
1273
12731274   return 0;
12741275}
12751276
r4406r4407
13971398   deco16_clear_sprite_priority_bitmap();
13981399   bitmap_fill(priority_bitmap,cliprect,0);
13991400   bitmap_fill(bitmap,cliprect,screen->machine->pens[0x000]); // Palette index not confirmed
1400   tilemap_draw(bitmap,cliprect,pf4_tilemap,0,1);
1401   tilemap_draw(bitmap,cliprect,pf3_tilemap,0,4);
1402   tilemap_draw(bitmap,cliprect,pf2_tilemap,0,16);
1401   tilemap_draw(bitmap,cliprect,pf4_tilemap,0,0);
1402   if(deco32_pri&1)
1403   {
1404      tilemap_draw(bitmap,cliprect,pf2_tilemap,0,0);
1405      tilemap_draw(bitmap,cliprect,pf3_tilemap,0,2);
1406   }
1407   else
1408   {
1409      tilemap_draw(bitmap,cliprect,pf3_tilemap,0,0);
1410      tilemap_draw(bitmap,cliprect,pf2_tilemap,0,2);
1411   }
14031412   fghthist_draw_sprites(screen->machine, bitmap, cliprect, buffered_spriteram32,3,0, 0xf);
14041413   tilemap_draw(bitmap,cliprect,pf1_tilemap,0,0);
14051414   return 0;
src/mame/video/gticlub.c
r4406r4407
966966
967967   //if (K001005_status == 2)
968968   {
969      bitmap_fill(K001005_bitmap[K001005_bitmap_page], &K001005_cliprect, machine->pens[0]);
969      bitmap_fill(K001005_bitmap[K001005_bitmap_page], &K001005_cliprect, machine->pens[0]&0x00ffffff);
970970      bitmap_fill(K001005_zbuffer, &K001005_cliprect, 0xffffffff);
971971   }
972972}
src/mame/video/wc90.c
r4406r4407
334334         if ( bank & 4 ) { /* visible */
335335            which = ( spriteram[offs+2] >> 2 ) + ( spriteram[offs+3] << 6 );
336336
337            sx = spriteram[offs + 8] + ( (spriteram[offs + 9] & 1 ) << 8 );
337            sx = spriteram[offs + 8] + ( (spriteram[offs + 9] & 3 ) << 8 );
338338            sy = spriteram[offs + 6] + ( (spriteram[offs + 7] & 1 ) << 8 );
339339
340            if (sx >= 0x0300) sx -= 0x0400;
341
340342            flags = spriteram[offs+4];
341343            ( *( draw_sprites_proc[ flags & 0x0f ] ) )(machine, bitmap,cliprect, which, sx, sy, bank, flags );
342344         }
src/mame/video/dc.c
r4406r4407
1414#define DEBUG_PVRTA   (0)
1515#define DEBUG_PVRTA_REGS (0)
1616#define DEBUG_PVRDLIST   (0)
17#define DEBUG_VERTICES   (0)
17#define DEBUG_VERTICES   (1)
1818
1919static UINT32 pvrctrl_regs[0x100/4];
2020static UINT32 pvrta_regs[0x2000/4];
r4406r4407
707707   ploty=line.y0;
708708   ix = abs(dx);
709709   iy = abs(dy);
710   inc = max(ix,iy);
710   inc = MAX(ix,iy);
711711   x = y = 0;
712712   dxix = (dx ? dx/ix : 0);
713713   dyiy = (dy ? dy/iy : 0);
src/mame/video/esd16.c
r4406r4407
195195
196196- To Do: Flip X&Y ? They seem unused.
197197
198  these are clearly the same as the tumble pop (bootleg?) sprites
199
198200***************************************************************************/
199201
200202static void esd16_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect)
r4406r4407
215217
216218      int dimy   =   1 << ((sy >> 9) & 3);
217219
218      int   flipx   =   attr & 0x0000;
220      int   flipx   =   sy & 0x2000;
219221      int   flipy   =   attr & 0x0000;
222      int flash   =   sy & 0x1000;
220223
221224      int color   =   (sx >> 9) & 0xf;
222225
223226      int pri_mask;
224227
228      if (flash && (video_screen_get_frame_number(machine->primary_screen) & 1)) continue;
229
225230      if(sx & 0x8000)
226231         pri_mask = 0xfffe; // under "tilemap 1"
227232      else
r4406r4407
271276
272277      int dimy   =   1 << ((sy >> 9) & 3);
273278
274      int   flipx   =   spriteram16[ offs + 0 ] & 0x2000;
279      int   flipx   =   sy & 0x2000;
275280      int   flipy   =   sy & 0x0000;
281      int flash   =   sy & 0x1000;
276282
277283      int color   =   (sx >> 9) & 0xf;
278284
279285      int pri_mask;
280286
287      if (flash && (video_screen_get_frame_number(machine->primary_screen) & 1)) continue;
288
289
281290      if(sx & 0x8000)
282291         pri_mask = 0xfffe; // under "tilemap 1"
283292      else
r4406r4407
412421//  popmessage("%04x %04x %04x %04x %04x",head_unknown1[0],head_layersize[0],head_unknown3[0],head_unknown4[0],head_unknown5[0]);
413422   return 0;
414423}
424
425// uses older style sprites
426VIDEO_UPDATE( hedpanio )
427{
428   int layers_ctrl = -1;
429
430   bitmap_fill(priority_bitmap,cliprect,0);
431
432
433#ifdef MAME_DEBUG
434if ( input_code_pressed(KEYCODE_Z) )
435{   int msk = 0;
436   if (input_code_pressed(KEYCODE_Q))   msk |= 1;
437   if (input_code_pressed(KEYCODE_W))   msk |= 2;
438   if (input_code_pressed(KEYCODE_A))   msk |= 4;
439   if (msk != 0) layers_ctrl &= msk;   }
440#endif
441
442   if (layers_ctrl & 1)
443   {
444      if (head_layersize[0]&0x0001)
445      {
446         tilemap_set_scrollx(esdtilemap_0_16x16, 0, esd16_scroll_0[0]);
447         tilemap_set_scrolly(esdtilemap_0_16x16, 0, esd16_scroll_0[1]);
448         tilemap_draw(bitmap,cliprect,esdtilemap_0_16x16,0,0);
449      }
450      else
451      {
452         tilemap_set_scrollx(esdtilemap_0, 0, esd16_scroll_0[0]);
453         tilemap_set_scrolly(esdtilemap_0, 0, esd16_scroll_0[1]);
454         tilemap_draw(bitmap,cliprect,esdtilemap_0,0,0);
455      }
456   }
457   else
458   {
459      bitmap_fill(bitmap,cliprect,0);
460   }
461
462
463   if (layers_ctrl & 2)
464   {
465      if (head_layersize[0]&0x0002)
466      {
467         tilemap_set_scrollx(esdtilemap_1_16x16, 0, esd16_scroll_1[0]);
468         tilemap_set_scrolly(esdtilemap_1_16x16, 0, esd16_scroll_1[1]);
469         tilemap_draw(bitmap,cliprect,esdtilemap_1_16x16,0,1);
470      }
471      else
472      {
473         tilemap_set_scrollx(esdtilemap_1, 0, esd16_scroll_1[0]);
474         tilemap_set_scrolly(esdtilemap_1, 0, esd16_scroll_1[1]);
475         tilemap_draw(bitmap,cliprect,esdtilemap_1,0,1);
476      }
477
478   }
479
480   if (layers_ctrl & 4)   esd16_draw_sprites(screen->machine,bitmap,cliprect);
481
482
483//  popmessage("%04x %04x %04x %04x %04x",head_unknown1[0],head_layersize[0],head_unknown3[0],head_unknown4[0],head_unknown5[0]);
484   return 0;
485}
src/mame/video/namcos21.c
r4406r4407
186186   if( namcos2_gametype != NAMCOS21_WINRUN91 )
187187   { /* draw low priority 2d sprites */
188188      namco_obj_draw(screen->machine, bitmap, cliprect, 2 );
189      namco_obj_draw(screen->machine, bitmap, cliprect, 14 );   //driver's eyes
189190   }
190191
191192   CopyVisiblePolyFrameBuffer( bitmap, cliprect,0x7fc0,0x7ffe );
r4406r4407
205206      {
206207         namco_obj_draw(screen->machine, bitmap, cliprect, pri );
207208      }
209         namco_obj_draw(screen->machine, bitmap, cliprect, 15 );   //driver's eyes
208210   }
209211   else
210212   { /* winrun bitmap layer */
src/mame/video/ssv.c
r4406r4407
878878               sy   =   ssv_sprites_offsy - sy - (ynum-1) * 8;
879879            }
880880
881            /* Sprite code masking */
882            if(xnum == 2 && ynum == 4) // needed by hypreact
883            {
884               code &= ~7;
885            }
886
881887            /* Draw the tiles */
882888
883889            for (x = xstart; x != xend; x += xinc)
src/mame/video/wc90b.c
r4406r4407
99UINT8 *wc90b_scroll1y;
1010UINT8 *wc90b_scroll2y;
1111
12UINT8 *wc90b_scroll_x_lo;
1213
1314static tilemap *tx_tilemap,*fg_tilemap,*bg_tilemap;
1415
r4406r4407
104105
105106***************************************************************************/
106107
107static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int priority ){
108  int offs;
108static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect, int priority )
109{
110   int offs, sx, sy;
109111
110  /* draw all visible sprites of specified priority */
111   for ( offs = spriteram_size - 8;offs >= 0;offs -= 8 ){
112   /* draw all visible sprites of specified priority */
113   for ( offs = spriteram_size - 8 ; offs >= 0 ; offs -= 8 )
114   {
115      if ( ( ~( spriteram[offs+3] >> 7 ) & 1 ) == priority )
116      {
117         int code = ( spriteram[offs + 3] & 0x3f ) << 4;
118         int bank = spriteram[offs + 0];
119         int flags = spriteram[offs + 4];
112120
113      if ( ( ~( spriteram[offs+3] >> 6 ) & 3 ) == priority ) {
121         code += ( bank & 0xf0 ) >> 4;
122         code <<= 2;
123         code += ( bank & 0x0f ) >> 2;
114124
115         if ( spriteram[offs+1] > 16 ) { /* visible */
116            int code = ( spriteram[offs+3] & 0x3f ) << 4;
117            int bank = spriteram[offs+0];
118            int flags = spriteram[offs+4];
125         sx = spriteram[offs + 2];
126         if (!(spriteram[offs + 3] & 0x40)) sx -= 0x0100;
119127
120            code += ( bank & 0xf0 ) >> 4;
121            code <<= 2;
122            code += ( bank & 0x0f ) >> 2;
128         sy = 240 - spriteram[offs + 1];
123129
124            drawgfx( bitmap,machine->gfx[ 17 ], code,
125                  flags >> 4, /* color */
126                  bank&1, /* flipx */
127                  bank&2, /* flipy */
128                  spriteram[offs + 2], /* sx */
129                  240 - spriteram[offs + 1], /* sy */
130                  cliprect,TRANSPARENCY_PEN,15 );
131         }
130         drawgfx( bitmap, machine->gfx[17], code,
131               flags >> 4, /* color */
132               bank & 1,   /* flipx */
133               bank & 2,   /* flipy */
134               sx,
135               sy,
136               cliprect,TRANSPARENCY_PEN,15 );
132137      }
133138   }
134139}
135140
136141VIDEO_UPDATE( wc90b )
137142{
138   tilemap_set_scrollx(bg_tilemap,0,8 * wc90b_scroll2x[0] + 256);
139   tilemap_set_scrolly(bg_tilemap,0,wc90b_scroll2y[0] + ((wc90b_scroll2y[0] < 0x10 || wc90b_scroll2y[0] == 0xff) ? 256 : 0));
140   tilemap_set_scrollx(fg_tilemap,0,8 * wc90b_scroll1x[0] + 256);
141   tilemap_set_scrolly(fg_tilemap,0,wc90b_scroll1y[0] + ((wc90b_scroll1y[0] < 0x10 || wc90b_scroll1y[0] == 0xff) ? 256 : 0));
143   tilemap_set_scrollx(bg_tilemap,0,8 * wc90b_scroll2x[0] + 256 - 4 + (wc90b_scroll_x_lo[0] & 0x07));
144   tilemap_set_scrolly(bg_tilemap,0,wc90b_scroll2y[0] + 1 + ((wc90b_scroll2y[0] < 0x10 || wc90b_scroll2y[0] == 0xff) ? 256 : 0));
145   tilemap_set_scrollx(fg_tilemap,0,8 * wc90b_scroll1x[0] + 256 - 6 + ((wc90b_scroll_x_lo[0] & 0x38) >> 3));
146   tilemap_set_scrolly(fg_tilemap,0,wc90b_scroll1y[0] + 1 + ((wc90b_scroll1y[0] < 0x10 || wc90b_scroll1y[0] == 0xff) ? 256 : 0));
142147
143//  draw_sprites(screen->machine, bitmap,cliprect, 3 );
144148   tilemap_draw(bitmap,cliprect,bg_tilemap,0,0);
145   draw_sprites(screen->machine, bitmap,cliprect, 2 );
146149   tilemap_draw(bitmap,cliprect,fg_tilemap,0,0);
147150   draw_sprites(screen->machine, bitmap,cliprect, 1 );
148151   tilemap_draw(bitmap,cliprect,tx_tilemap,0,0);
src/mame/video/shangha3.c
r4406r4407
8181
8282   for (i = 0;i < 14;i++)
8383      drawmode_table[i] = DRAWMODE_SOURCE;
84   drawmode_table[14] = shangha3_do_shadows ? DRAWMODE_SHADOW : DRAWMODE_NONE;
84   drawmode_table[14] = shangha3_do_shadows ? DRAWMODE_SHADOW : DRAWMODE_SOURCE;
8585   drawmode_table[15] = DRAWMODE_NONE;
8686
8787   if (shangha3_do_shadows)
src/mame/drivers/tryout.c
r4406r4407
1414
1515#include "driver.h"
1616#include "cpu/m6502/m6502.h"
17#include "deprecat.h"
1817#include "sound/2203intf.h"
1918
2019extern UINT8 *tryout_gfx_control;
r4406r4407
3736static WRITE8_HANDLER( tryout_sound_w )
3837{
3938   soundlatch_w(space,0,data);
40   cpu_set_input_line(space->machine->cpu[1], 0, ASSERT_LINE);
39   cpu_set_input_line(space->machine->cpu[1], 0, HOLD_LINE);
4140}
4241
42/*this is actually irq/nmi mask, polls only four values at start up (81->01->81->01) and then
43  stays on this state.*/
4344static WRITE8_HANDLER( tryout_sound_irq_ack_w )
4445{
45   cpu_set_input_line(space->cpu, 0, CLEAR_LINE);
46//  cpu_set_input_line(space->machine->cpu[1], 0, CLEAR_LINE);
4647}
4748
4849static WRITE8_HANDLER( tryout_bankswitch_w )
r4406r4407
5657
5758static ADDRESS_MAP_START( main_cpu, ADDRESS_SPACE_PROGRAM, 8 )
5859   AM_RANGE(0x0000, 0x07ff) AM_RAM
59   AM_RANGE(0x1000, 0x17ff) AM_WRITE(tryout_videoram_w) AM_BASE(&videoram)
60   AM_RANGE(0x1000, 0x17ff) AM_RAM_WRITE(tryout_videoram_w) AM_BASE(&videoram)
6061   AM_RANGE(0x2000, 0x3fff) AM_ROMBANK(1)
6162   AM_RANGE(0x4000, 0xbfff) AM_ROM
6263   AM_RANGE(0xc800, 0xc87f) AM_RAM AM_BASE(&spriteram)
r4406r4407
195196
196197   MDRV_CPU_ADD("audiocpu", M6502, 1500000)      /* ? */
197198   MDRV_CPU_PROGRAM_MAP(sound_cpu,0)
198   MDRV_CPU_VBLANK_INT_HACK(nmi_line_pulse,16) /* ? */
199   MDRV_CPU_PERIODIC_INT(nmi_line_pulse,800) /* ? */
199200
200201   /* video hardware */
201202   MDRV_SCREEN_ADD("screen", RASTER)
r4406r4407
203204   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
204205   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
205206   MDRV_SCREEN_SIZE(256, 256)
206   MDRV_SCREEN_VISIBLE_AREA(1*8, 32*8-1, 1*8, 31*8-1)
207   MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1)
207208
208209   MDRV_GFXDECODE(tryout)
209210   MDRV_PALETTE_LENGTH(0x20)
src/mame/drivers/sfbonus.c
r4406r4407
77
88- The games don't cope well with corrupt NVRAM, and may fail to boot completely(!)
99
10- There are still some video problems, coin cut in half on pir2002v2 & missing spinning 7 on classice for example
11  maybe the reel tilemap should be one big tilemap, and the 'select' ram is extra scroll bits..
12
1310- The code to handle the 'multple' reel layers is dubious.  rowscroll values are always used
1411  based on only one of the tilemaps displayed in that screen region.
1512
16
1713- Inputs not done, Lamps not done
1814
15- Printer busy errors, Hopper timeout errors
16
1917 Thanks to Olivier Galibert for the handy bitswapper tool :-)
2018
2119*/
r4406r4407
7977   SET_TILE_INFO(
8078         1,
8179         code,
82         priority,  // colour aboused as priority
80         priority,  // colour abused as priority
8381         TILE_FLIPYX(flipx | flipy));
8482}
8583
r4406r4407
9492   SET_TILE_INFO(
9593         1,
9694         code,
97         priority,  // colour aboused as priority
95         priority,  // colour abused as priority
9896         TILE_FLIPYX(flipx | flipy));
9997}
10098
r4406r4407
109107   SET_TILE_INFO(
110108         1,
111109         code,
112         priority, // colour aboused as priority
110         priority, // colour abused as priority
113111         TILE_FLIPYX(flipx | flipy));
114112}
115113
r4406r4407
438436   AM_RANGE(0xf000, 0xffff) AM_RAM AM_BASE(&nvram) AM_SIZE(&nvram_size)
439437ADDRESS_MAP_END
440438
441static READ8_HANDLER( sfbonus_unk_r )
442{
443   return mame_rand(space->machine);
444}
445
446439static WRITE8_HANDLER( sfbonus_bank_w )
447440{
448441   UINT8 *ROM = memory_region(space->machine, "maincpu");
r4406r4407
453446   memory_set_bankptr(space->machine, 1, &ROM[bank * 0x10000]);
454447}
455448
456static ADDRESS_MAP_START( sfbonus_io, ADDRESS_SPACE_IO, 8 )
457   AM_RANGE(0x0400, 0x0400) AM_READ_PORT("IN0")
458   AM_RANGE(0x0408, 0x0408) AM_READ_PORT("IN1")
459   AM_RANGE(0x0410, 0x0410) AM_READ_PORT("IN2")
460449
461   AM_RANGE(0x0418, 0x0418) AM_READ_PORT("IN4")
462   AM_RANGE(0x0420, 0x0420) AM_READ_PORT("IN5")
463   AM_RANGE(0x0428, 0x0428) AM_READ_PORT("IN6")
464   AM_RANGE(0x0430, 0x0430) AM_READ_PORT("IN7")
465450
466   AM_RANGE(0x0438, 0x0438) AM_READ_PORT("IN3")
451static READ8_HANDLER( sfbonus_2800_r )
452{
453   return mame_rand(space->machine);
454}
467455
456static READ8_HANDLER( sfbonus_2801_r )
457{
458   return mame_rand(space->machine);
459}
460
461static READ8_HANDLER( sfbonus_2c00_r )
462{
463   return mame_rand(space->machine);
464}
465
466static READ8_HANDLER( sfbonus_2c01_r )
467{
468   return mame_rand(space->machine);
469}
470
471static READ8_HANDLER( sfbonus_3800_r )
472{
473   return 0xff;
474}
475
476
477static ADDRESS_MAP_START( sfbonus_io, ADDRESS_SPACE_IO, 8 )
478   AM_RANGE(0x0400, 0x0400) AM_READ_PORT("KEY1")
479   AM_RANGE(0x0408, 0x0408) AM_READ_PORT("KEY2")
480   AM_RANGE(0x0410, 0x0410) AM_READ_PORT("KEY3")
481
482   AM_RANGE(0x0418, 0x0418) AM_READ_PORT("SWITCH1")
483   AM_RANGE(0x0420, 0x0420) AM_READ_PORT("SWITCH2")
484   AM_RANGE(0x0428, 0x0428) AM_READ_PORT("SWITCH3")
485   AM_RANGE(0x0430, 0x0430) AM_READ_PORT("SWITCH4")
486   AM_RANGE(0x0438, 0x0438) AM_READ_PORT("SWITCH5")
487
468488   AM_RANGE(0x0800, 0x0800) AM_DEVREADWRITE("oki", okim6295_r, okim6295_w)
469489
470490   AM_RANGE(0x0c00, 0x0c03) AM_WRITE( paletteram_io_w )
471491
472492   AM_RANGE(0x2400, 0x241f) AM_RAM AM_BASE(&sfbonus_vregs)
473493
474   AM_RANGE(0x2800, 0x2800) AM_READ(sfbonus_unk_r)
475   AM_RANGE(0x2801, 0x2801) AM_READ(sfbonus_unk_r)   AM_WRITE(SMH_NOP)
494   AM_RANGE(0x2800, 0x2800) AM_READ(sfbonus_2800_r)
495   AM_RANGE(0x2801, 0x2801) AM_READ(sfbonus_2801_r) AM_WRITE(SMH_NOP)
476496
477   AM_RANGE(0x2c00, 0x2c00) AM_READ(sfbonus_unk_r)
478   AM_RANGE(0x2c01, 0x2c01) AM_READ(sfbonus_unk_r) AM_WRITE(SMH_NOP)
497   AM_RANGE(0x2c00, 0x2c00) AM_READ(sfbonus_2c00_r)
498   AM_RANGE(0x2c01, 0x2c01) AM_READ(sfbonus_2c01_r) AM_WRITE(SMH_NOP)
479499
480500   AM_RANGE(0x3000, 0x3000) AM_WRITE(SMH_NOP)
481501   AM_RANGE(0x3400, 0x3400) AM_WRITE(sfbonus_bank_w)
482   AM_RANGE(0x3800, 0x3800) AM_READ(sfbonus_unk_r) AM_WRITE(SMH_NOP)
502   AM_RANGE(0x3800, 0x3800) AM_READ(sfbonus_3800_r) AM_WRITE(SMH_NOP)
483503
484504   AM_RANGE(0x1800, 0x1800) AM_WRITE(SMH_NOP)
485505   AM_RANGE(0x1801, 0x1801) AM_WRITE(SMH_NOP)
r4406r4407
497517ADDRESS_MAP_END
498518
499519/* 8-liners input define */
500static INPUT_PORTS_START( sfbonus )
501   PORT_START("IN0")
502   PORT_DIPNAME( 0x01, 0x01, "IN0" )
520static INPUT_PORTS_START( amcoebase )
521   PORT_START("KEY1")
522   PORT_DIPNAME( 0x01, 0x01, "Key1-0" )
503523   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
504524   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
505   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) // credit clear
525   PORT_DIPNAME( 0x02, 0x02, "Key1-1" )
506526   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
507527   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
508   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
528   PORT_DIPNAME( 0x04, 0x04, "Key1-2" )
509529   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
510530   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
511   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) //causes "printer busy" msg.
531   PORT_DIPNAME( 0x08, 0x08, "Key1-3" )
512532   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
513533   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
514   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Account Test")
515   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Port Test")
516   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 )
517   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 ) //probably some kind of service button or remote
518   PORT_START("IN1")
519   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Stop 2") PORT_CODE(KEYCODE_X)
520   PORT_DIPNAME( 0x02, 0x02, "IN1" )
534   PORT_DIPNAME( 0x10, 0x10, "Key1-4" )
535   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
536   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
537   PORT_DIPNAME( 0x20, 0x20, "Key1-5" )
538   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
539   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
540   PORT_DIPNAME( 0x40, 0x40, "Key1-6" )
541   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
542   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
543   PORT_DIPNAME( 0x80, 0x80, "Key1-7" )
544   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
545   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
546
547   PORT_START("KEY2")
548   PORT_DIPNAME( 0x01, 0x01, "Key2-0" )
549   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
550   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
551   PORT_DIPNAME( 0x02, 0x02, "Key2-1" )
521552   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
522553   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
523   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
554   PORT_DIPNAME( 0x04, 0x04, "Key2-2" )
524555   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
525556   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
526   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Stop 3") PORT_CODE(KEYCODE_C)
527   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Stop 1") PORT_CODE(KEYCODE_Z)
528   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("All Stop") PORT_CODE(KEYCODE_V)
529   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
530   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
557   PORT_DIPNAME( 0x08, 0x08, "Key2-3" )
558   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
559   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
560   PORT_DIPNAME( 0x10, 0x10, "Key2-4" )
561   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
562   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
563   PORT_DIPNAME( 0x20, 0x20, "Key2-5" )
564   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
565   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
566   PORT_DIPNAME( 0x40, 0x40, "Key2-6" )
567   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
568   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
569   PORT_DIPNAME( 0x80, 0x80, "Key2-7" )
531570   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
532571   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
533   PORT_START("IN2")
534   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 )
535   PORT_DIPNAME( 0x02, 0x02, "IN2" )
572
573   PORT_START("KEY3")
574   PORT_DIPNAME( 0x01, 0x01, "Key3-0" )
575   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
576   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
577   PORT_DIPNAME( 0x02, 0x02, "Key3-1" )
536578   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
537579   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
538   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
580   PORT_DIPNAME( 0x04, 0x04, "Key3-2" )
539581   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
540582   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
541   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
583   PORT_DIPNAME( 0x08, 0x08, "Key3-3" )
542584   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
543585   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
544   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
586   PORT_DIPNAME( 0x10, 0x10, "Key3-4" )
545587   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
546588   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
547   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
589   PORT_DIPNAME( 0x20, 0x20, "Key3-5" )
548590   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
549591   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
550   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Help") PORT_CODE(KEYCODE_H)
551   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
592   PORT_DIPNAME( 0x40, 0x40, "Key3-6" )
593   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
594   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
595   PORT_DIPNAME( 0x80, 0x80, "Key3-7" )
552596   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
553597   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
554   PORT_START("IN3")
555   PORT_DIPNAME( 0x01, 0x01, "IN3" )
598
599   /* the dipswitches are probably for debugging the games only, all settings are in NVRAM */
600   PORT_START("SWITCH1")
601   PORT_DIPNAME( 0x01, 0x01, "Switch1-0" )
556602   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
557603   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
558   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
604   PORT_DIPNAME( 0x02, 0x02, "Switch1-1" )
559605   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
560606   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
561   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
607   PORT_DIPNAME( 0x04, 0x04, "Switch1-2" )
562608   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
563609   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
564   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
610   PORT_DIPNAME( 0x08, 0x08, "Switch1-3" )
565611   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
566612   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
567   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
613   PORT_DIPNAME( 0x10, 0x10, "Switch1-4" )
568614   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
569615   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
570   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
616   PORT_DIPNAME( 0x20, 0x20, "Switch1-5" )
571617   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
572618   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
573   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
619   PORT_DIPNAME( 0x40, 0x40, "Switch1-6" )
574620   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
575621   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
576   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Move Reel") PORT_CODE(KEYCODE_Q)
577   PORT_START("IN4")
578   PORT_DIPNAME( 0x01, 0x01, "IN4" )
622   PORT_DIPNAME( 0x80, 0x80, "Switch1-7" )
623   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
624   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
625
626   PORT_START("SWITCH2")
627   PORT_DIPNAME( 0x01, 0x01, "Switch2-0" )
579628   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
580629   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
581   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
630   PORT_DIPNAME( 0x02, 0x02, "Switch2-1" )
582631   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
583632   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
584   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
633   PORT_DIPNAME( 0x04, 0x04, "Switch2-2" )
585634   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
586635   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
587   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
636   PORT_DIPNAME( 0x08, 0x08, "Switch2-3" )
588637   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
589638   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
590   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
639   PORT_DIPNAME( 0x10, 0x10, "Switch2-4" )
591640   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
592641   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
593   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
642   PORT_DIPNAME( 0x20, 0x20, "Switch2-5" )
594643   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
595644   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
596   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
645   PORT_DIPNAME( 0x40, 0x40, "Switch2-6" )
597646   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
598647   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
599   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
648   PORT_DIPNAME( 0x80, 0x80, "Switch2-7" )
600649   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
601650   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
602   PORT_START("IN5")
603   PORT_DIPNAME( 0x01, 0x01, "IN5" )
651
652   PORT_START("SWITCH3")
653   PORT_DIPNAME( 0x01, 0x01, "Switch3-0" )
604654   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
605655   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
606   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
656   PORT_DIPNAME( 0x02, 0x02, "Switch3-1" )
607657   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
608658   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
609   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
659   PORT_DIPNAME( 0x04, 0x04, "Switch3-2" )
610660   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
611661   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
612   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
662   PORT_DIPNAME( 0x08, 0x08, "Switch3-3" )
613663   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
614664   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
615   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
665   PORT_DIPNAME( 0x10, 0x10, "Switch3-4" )
616666   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
617667   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
618   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
668   PORT_DIPNAME( 0x20, 0x20, "Switch3-5" )
619669   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
620670   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
621   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
671   PORT_DIPNAME( 0x40, 0x40, "Switch3-6" )
622672   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
623673   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
624   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
674   PORT_DIPNAME( 0x80, 0x80, "Switch3-7" )
625675   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
626676   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
627   PORT_START("IN6")
628   PORT_DIPNAME( 0x01, 0x01, "IN6" )
677
678   PORT_START("SWITCH4")
679   PORT_DIPNAME( 0x01, 0x01, "Switch4-0" )
629680   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
630681   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
631   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
682   PORT_DIPNAME( 0x02, 0x02, "Switch4-1" )
632683   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
633684   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
634   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
685   PORT_DIPNAME( 0x04, 0x04, "Switch4-2" )
635686   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
636687   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
637   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
688   PORT_DIPNAME( 0x08, 0x08, "Switch4-3" )
638689   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
639690   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
640   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
691   PORT_DIPNAME( 0x10, 0x10, "Switch4-4" )
641692   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
642693   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
643   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
694   PORT_DIPNAME( 0x20, 0x20, "Switch4-5" )
644695   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
645696   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
646   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
697   PORT_DIPNAME( 0x40, 0x40, "Switch4-6" )
647698   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
648699   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
649   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
700   PORT_DIPNAME( 0x80, 0x80, "Switch4-7" )
650701   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
651702   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
652   PORT_START("IN7")
653   PORT_DIPNAME( 0x01, 0x01, "IN7" )
703
704   PORT_START("SWITCH5")
705   PORT_DIPNAME( 0x01, 0x01, "Switch5-0" )
654706   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
655707   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
656   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
708   PORT_DIPNAME( 0x02, 0x02, "Switch5-1" )
657709   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
658710   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
659   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
711   PORT_DIPNAME( 0x04, 0x04, "Switch5-2" )
660712   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
661713   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
662   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
714   PORT_DIPNAME( 0x08, 0x08, "Switch5-3" )
663715   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
664716   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
665   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
717   PORT_DIPNAME( 0x10, 0x10, "Switch5-4" )
666718   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
667719   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
668   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
720   PORT_DIPNAME( 0x20, 0x20, "Switch5-5" )
669721   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
670722   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
671   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
723   PORT_DIPNAME( 0x40, 0x40, "Switch5-6" )
672724   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
673725   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
674   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
726   PORT_DIPNAME( 0x80, 0x80, "Switch5-7" )
675727   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
676728   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
677729INPUT_PORTS_END
678730
679/* pokers input define */
680static INPUT_PORTS_START( parrot3 )
681   PORT_INCLUDE(sfbonus)
682   PORT_MODIFY("IN1")
683   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Hold 4 / Small") PORT_CODE(KEYCODE_V)
684   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Hold 1 / Bet") PORT_CODE(KEYCODE_Z)
685   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Hold 5") PORT_CODE(KEYCODE_B)
686   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Hold 3 / W-Up") PORT_CODE(KEYCODE_C)
687   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Cancel All") PORT_CODE(KEYCODE_S)
688   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Hold 2 / Big") PORT_CODE(KEYCODE_X)
689   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
690   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
691   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
692   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
731static INPUT_PORTS_START( amcoecommon )
732   PORT_INCLUDE(amcoebase)
733   PORT_MODIFY("KEY1")
734   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON9)  PORT_NAME("Payout?") PORT_CODE(KEYCODE_Y) // causes hopper error
735   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON10) PORT_NAME("Clear SW.") PORT_CODE(KEYCODE_U)
736   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON11) PORT_NAME("Account") PORT_CODE(KEYCODE_I)
737   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON12) PORT_NAME("Confirm / Port Test") PORT_CODE(KEYCODE_O)
738   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2)    PORT_IMPULSE(2) // causes coin jam if held
739   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3)    // 'key in'
740
741   PORT_MODIFY("KEY3")
742   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1)
693743INPUT_PORTS_END
694744
745static INPUT_PORTS_START( amcoetype1 )
746   PORT_INCLUDE(amcoecommon)
747
748   PORT_MODIFY("KEY2")
749   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE1)  PORT_IMPULSE(2) // causes service jam if held
750   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN1)     PORT_IMPULSE(2) // causes coin jam if held
751   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("All Stop / Left") PORT_CODE(KEYCODE_Z)
752   /*        0x08 ? */
753   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Stop 1 / Select Letter / Double / Hold Help") PORT_CODE(KEYCODE_X)
754   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Stop 3 / Erase / Take") PORT_CODE(KEYCODE_V)
755   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Play / Bet") PORT_CODE(KEYCODE_B)
756   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Stop 2 / Right") PORT_CODE(KEYCODE_C)
757INPUT_PORTS_END
758
759static INPUT_PORTS_START( amcoetype2 )
760   PORT_INCLUDE(amcoecommon)
761
762   PORT_MODIFY("KEY2") // reverse order
763   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Small / Right") PORT_CODE(KEYCODE_C)
764   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Play / Bet") PORT_CODE(KEYCODE_B)
765   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Take") PORT_CODE(KEYCODE_V)
766   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Double / Select") PORT_CODE(KEYCODE_X)
767   /*        0x10 ? */
768   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Big / Left") PORT_CODE(KEYCODE_Z)
769   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1)     PORT_IMPULSE(2) // causes coin jam if held
770   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1)  PORT_IMPULSE(2) // causes service jam if held
771INPUT_PORTS_END
772
773
695774static const gfx_layout sfbonus_layout =
696775{
697776   8,8,
r4406r4407
22092288   ROM_LOAD16_BYTE( "fcrom6n.bin", 0x00001, 0x80000, CRC(eee0f84d) SHA1(4ac096ccea258710f58c8121e7f0af28593d6368) )
22102289ROM_END
22112290
2212ROM_START( fruitcar )
2291ROM_START( fcnudge2 )
22132292   ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */
22142293   ROM_LOAD( "fcv21n.bin", 0x00000, 0x40000, CRC(c1f839bd) SHA1(12da36b864adcabe0386dc2e17dd9550fb23b641) )
22152294
r4406r4407
22252304   ROM_LOAD16_BYTE( "fcrom6n.bin", 0x00001, 0x80000, CRC(eee0f84d) SHA1(4ac096ccea258710f58c8121e7f0af28593d6368) )
22262305ROM_END
22272306
2228ROM_START( fruitcar2 )
2307ROM_START( fcnudge3 )
22292308   ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */
22302309   ROM_LOAD( "fcb20n.bin", 0x00000, 0x40000, CRC(f8de6fe2) SHA1(ff47b3f467e701897471b6aa912c086019d9ee6a) )
22312310
r4406r4407
22412320   ROM_LOAD16_BYTE( "fcrom6n.bin", 0x00001, 0x80000, CRC(eee0f84d) SHA1(4ac096ccea258710f58c8121e7f0af28593d6368) )
22422321ROM_END
22432322
2244ROM_START( fruitcar3 )
2323ROM_START( fcnudge4 )
22452324   ROM_REGION( 0x80000, "maincpu", 0 ) /* Z80 Code */
22462325   ROM_LOAD( "fcd20n.bin", 0x00000, 0x40000, CRC(64c6a5cc) SHA1(dadc22ef7c2415c269619f63bca7761775eacf74) )
22472326
r4406r4407
44274506   }
44284507}
44294508
4430
4431
4432static DRIVER_INIT( sfbonus )
4509static void sfbonus_bitswap( running_machine* machine,
4510                  UINT8 xor0, UINT8 b00, UINT8 b01, UINT8 b02, UINT8 b03, UINT8 b04, UINT8 b05, UINT8 b06,UINT8 b07,
4511                        UINT8 xor1, UINT8 b10, UINT8 b11, UINT8 b12, UINT8 b13, UINT8 b14, UINT8 b15, UINT8 b16,UINT8 b17,
4512                       UINT8 xor2, UINT8 b20, UINT8 b21, UINT8 b22, UINT8 b23, UINT8 b24, UINT8 b25, UINT8 b26,UINT8 b27,
4513                      UINT8 xor3, UINT8 b30, UINT8 b31, UINT8 b32, UINT8 b33, UINT8 b34, UINT8 b35, UINT8 b36,UINT8 b37,
4514                     UINT8 xor4, UINT8 b40, UINT8 b41, UINT8 b42, UINT8 b43, UINT8 b44, UINT8 b45, UINT8 b46,UINT8 b47,
4515                    UINT8 xor5, UINT8 b50, UINT8 b51, UINT8 b52, UINT8 b53, UINT8 b54, UINT8 b55, UINT8 b56,UINT8 b57,
4516                    UINT8 xor6, UINT8 b60, UINT8 b61, UINT8 b62, UINT8 b63, UINT8 b64, UINT8 b65, UINT8 b66,UINT8 b67,
4517                    UINT8 xor7, UINT8 b70, UINT8 b71, UINT8 b72, UINT8 b73, UINT8 b74, UINT8 b75, UINT8 b76,UINT8 b77 )
44334518{
44344519
44354520   int i;
44364521   UINT8 *ROM = memory_region(machine, "maincpu");
4437   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4438   {
4439      UINT8 x = ROM[i];
44404522
4441      switch(i & 7)
4442      {
4443         case 0: x = BITSWAP8(x^0x2a, 1,3,7,6,5,2,0,4); break;
4444         case 1: x = BITSWAP8(x^0xe4, 3,7,6,5,2,0,4,1); break;
4445         case 2: x = BITSWAP8(x^0x2d, 4,1,3,7,6,5,2,0); break;
4446         case 3: x = BITSWAP8(x^0xba, 4,3,0,2,1,7,6,5); break;
4447         case 4: x = BITSWAP8(x^0x30, 2,1,7,6,5,0,3,4); break;
4448         case 5: x = BITSWAP8(x^0xf1, 2,7,6,5,1,3,4,0); break;
4449         case 6: x = BITSWAP8(x^0x3d, 2,1,4,7,6,5,3,0); break;
4450         case 7: x = BITSWAP8(x^0xba, 4,3,0,1,2,7,6,5); break;
4451      }
4452
4453      ROM[i] = x;
4454   }
4455   DRIVER_INIT_CALL(sfbonus_common);
4456}
4457
4458static DRIVER_INIT(act2000)
4459{
4460   int i;
4461   UINT8 *ROM = memory_region(machine, "maincpu");
4462
44634523   for(i=0;i<memory_region_length(machine, "maincpu");i++)
44644524   {
44654525      UINT8 x = ROM[i];
44664526
44674527      switch(i & 7)
44684528      {
4469         case 0: x = BITSWAP8(x^0x25, 1,2,7,6,5,4,3,0); break;
4470         case 1: x = BITSWAP8(x^0xE6, 1,7,6,5,4,3,0,2); break;
4471         case 2: x = BITSWAP8(x^0x20, 2,4,1,7,6,5,0,3); break;
4472         case 3: x = BITSWAP8(x^0xBF, 0,3,1,2,4,7,6,5); break;
4473         case 4: x = BITSWAP8(x^0x2E, 1,3,7,6,5,2,0,4); break;
4474         case 5: x = BITSWAP8(x^0xE0, 3,7,6,5,2,0,4,1); break;
4475         case 6: x = BITSWAP8(x^0x2D, 4,1,2,7,6,5,0,3); break;
4476         case 7: x = BITSWAP8(x^0xB2, 2,0,4,1,3,7,6,5); break;
4477
4529         case 0: x = BITSWAP8(x^xor0, b00,b01,b02,b03,b04,b05,b06,b07); break;
4530         case 1: x = BITSWAP8(x^xor1, b10,b11,b12,b13,b14,b15,b16,b17); break;
4531         case 2: x = BITSWAP8(x^xor2, b20,b21,b22,b23,b24,b25,b26,b27); break;
4532         case 3: x = BITSWAP8(x^xor3, b30,b31,b32,b33,b34,b35,b36,b37); break;
4533         case 4: x = BITSWAP8(x^xor4, b40,b41,b42,b43,b44,b45,b46,b47); break;
4534         case 5: x = BITSWAP8(x^xor5, b50,b51,b52,b53,b54,b55,b56,b57); break;
4535         case 6: x = BITSWAP8(x^xor6, b60,b61,b62,b63,b64,b65,b66,b67); break;
4536         case 7: x = BITSWAP8(x^xor7, b70,b71,b72,b73,b74,b75,b76,b77); break;
44784537      }
44794538
44804539      ROM[i] = x;
44814540   }
4482
44834541   DRIVER_INIT_CALL(sfbonus_common);
44844542}
44854543
4486static DRIVER_INIT(dblchal)
4487{
4488   int i;
4489   UINT8 *ROM = memory_region(machine, "maincpu");
44904544
4491   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4492   {
4493      UINT8 x = ROM[i];
44944545
4495      switch(i & 7)
4496      {
4546static DRIVER_INIT(sfbonus) { sfbonus_bitswap(machine,    0x2a, 1,3,7,6,5,2,0,4, 0xe4, 3,7,6,5,2,0,4,1, 0x2d, 4,1,3,7,6,5,2,0, 0xba, 4,3,0,2,1,7,6,5, 0x30, 2,1,7,6,5,0,3,4, 0xf1, 2,7,6,5,1,3,4,0, 0x3d, 2,1,4,7,6,5,3,0, 0xba, 4,3,0,1,2,7,6,5); }
4547static DRIVER_INIT(act2000) { sfbonus_bitswap(machine,    0x25, 1,2,7,6,5,4,3,0, 0xE6, 1,7,6,5,4,3,0,2, 0x20, 2,4,1,7,6,5,0,3, 0xBF, 0,3,1,2,4,7,6,5, 0x2E, 1,3,7,6,5,2,0,4, 0xE0, 3,7,6,5,2,0,4,1, 0x2D, 4,1,2,7,6,5,0,3, 0xB2, 2,0,4,1,3,7,6,5); }
4548static DRIVER_INIT(dblchal) { sfbonus_bitswap(machine,    0x3D, 0,3,7,6,5,2,1,4, 0xF3, 3,7,6,5,1,0,4,2, 0x3D, 2,0,1,7,6,5,3,4, 0xA8, 3,4,2,0,1,7,6,5, 0x3D, 2,3,7,6,5,1,0,4, 0xEF, 2,7,6,5,1,0,3,4, 0x3A, 4,2,3,7,6,5,1,0, 0xBA, 2,4,1,0,3,7,6,5); }
4549static DRIVER_INIT(hldspin1) { sfbonus_bitswap(machine,   0x21, 0,2,7,6,5,4,3,1, 0xe1, 1,7,6,5,4,3,2,0, 0x31, 1,4,3,7,6,5,2,0, 0xbc, 0,3,4,2,1,7,6,5, 0x24, 4,3,7,6,5,2,0,1, 0xf8, 3,7,6,5,2,0,1,4, 0x39, 1,4,2,7,6,5,0,3, 0xaf, 0,3,2,1,4,7,6,5); }
4550static DRIVER_INIT(hldspin2) { sfbonus_bitswap(machine,   0x21, 1,3,7,6,5,0,4,2, 0xfe, 2,7,6,5,1,0,4,3, 0x33, 1,0,3,7,6,5,2,4, 0xa6, 1,0,4,3,2,7,6,5, 0x37, 0,1,7,6,5,3,2,4, 0xfe, 2,7,6,5,1,0,4,3, 0x36, 1,0,4,7,6,5,3,2, 0xa2, 1,0,2,4,3,7,6,5); }
4551static DRIVER_INIT(pickwin) { sfbonus_bitswap(machine,    0x20, 1,3,7,6,5,2,4,0, 0xfa, 2,7,6,5,4,0,1,3, 0x37, 1,0,3,7,6,5,2,4, 0xb0, 4,0,1,3,2,7,6,5, 0x34, 0,1,7,6,5,3,2,4, 0xef, 3,7,6,5,2,0,1,4, 0x27, 1,0,4,7,6,5,3,2, 0xb0, 4,0,1,3,2,7,6,5); }
4552static DRIVER_INIT(robadv) { sfbonus_bitswap(machine,     0x31, 0,3,7,6,5,2,1,4, 0xe0, 1,7,6,5,3,2,4,0, 0x2f, 4,0,2,7,6,5,3,1, 0xa7, 1,0,3,4,2,7,6,5, 0x33, 1,3,7,6,5,2,0,4, 0xed, 2,7,6,5,1,4,3,0, 0x34, 4,1,3,7,6,5,2,0, 0xaf, 2,0,4,1,3,7,6,5); }
4553static DRIVER_INIT(anibonus) { sfbonus_bitswap(machine,   0x33, 0,3,7,6,5,2,1,4, 0xe7, 2,7,6,5,3,4,1,0, 0x3a, 4,2,3,7,6,5,1,0, 0xa8, 3,4,2,0,1,7,6,5, 0x3d, 2,3,7,6,5,1,0,4, 0xff, 3,7,6,5,1,0,2,4, 0x3a, 4,2,3,7,6,5,1,0, 0xbe, 3,4,1,0,2,7,6,5); }
4554static DRIVER_INIT(pirpok2) { sfbonus_bitswap(machine,    0x26, 1,2,7,6,5,4,3,0, 0xf6, 1,7,6,5,4,3,0,2, 0x29, 4,0,1,7,6,5,2,3, 0xad, 0,3,1,2,4,7,6,5, 0x2e, 1,3,7,6,5,2,0,4, 0xe0, 3,7,6,5,2,0,4,1, 0x39, 4,1,2,7,6,5,0,3, 0xb2, 2,0,4,1,3,7,6,5); }
4555static DRIVER_INIT(tighook) { sfbonus_bitswap(machine,    0x33, 0,1,7,6,5,2,3,4, 0xf3, 3,7,6,5,1,0,4,2, 0x2e, 4,0,2,7,6,5,3,1, 0xa7, 1,0,4,2,3,7,6,5, 0x2d, 1,2,7,6,5,3,4,0, 0xff, 2,7,6,5,1,0,3,4, 0x27, 1,0,2,7,6,5,3,4, 0xa7, 1,0,4,2,3,7,6,5); }
4556static DRIVER_INIT(sfruitb) { sfbonus_bitswap(machine,    0x3e, 2,1,7,6,5,4,3,0, 0xfd, 1,7,6,5,0,3,2,4, 0x37, 4,1,3,7,6,5,2,0, 0xac, 2,0,4,1,3,7,6,5, 0x35, 2,3,7,6,5,1,0,4, 0xf6, 3,7,6,5,2,0,1,4, 0x37, 4,1,3,7,6,5,2,0, 0xb9, 0,3,4,1,2,7,6,5); }
4557static DRIVER_INIT(fb2gen) { sfbonus_bitswap(machine,     0x35, 0,3,7,6,5,2,1,4, 0xe8, 2,7,6,5,4,3,1,0, 0x23, 4,3,2,7,6,5,1,0, 0xb8, 2,1,4,0,3,7,6,5, 0x2d, 0,1,7,6,5,4,2,3, 0xf8, 2,7,6,5,1,4,3,0, 0x23, 4,0,3,7,6,5,2,1, 0xb8, 2,1,4,0,3,7,6,5); }
4558static DRIVER_INIT(fb2nd) { sfbonus_bitswap(machine,      0x2f, 0,2,7,6,5,3,4,1, 0xff, 2,7,6,5,3,0,4,1, 0x3e, 4,0,1,7,6,5,2,3, 0xad, 3,0,4,1,2,7,6,5, 0x35, 4,3,7,6,5,1,0,2, 0xfd, 4,7,6,5,3,1,2,0, 0x3a, 4,1,2,7,6,5,3,0, 0xbd, 3,4,2,0,1,7,6,5); }
4559static DRIVER_INIT(fb4) { sfbonus_bitswap(machine,        0x37, 1,2,7,6,5,4,3,0, 0xeb, 1,7,6,5,4,0,2,3, 0x2d, 4,0,2,7,6,5,3,1, 0xbd, 2,0,4,1,3,7,6,5, 0x29, 4,1,7,6,5,2,3,0, 0xff, 1,7,6,5,2,3,0,4, 0x3f, 1,0,4,7,6,5,3,2, 0xae, 2,3,0,4,1,7,6,5); }
4560static DRIVER_INIT(ch2000) { sfbonus_bitswap(machine,     0x29, 2,3,7,6,5,0,4,1, 0xfe, 2,7,6,5,1,0,3,4, 0x33, 0,1,3,7,6,5,2,4, 0xa6, 1,0,3,4,2,7,6,5, 0x25, 4,1,7,6,5,3,2,0, 0xfe, 2,7,6,5,1,0,3,4, 0x35, 0,1,4,7,6,5,3,2, 0xbe, 1,0,4,2,3,7,6,5); }
4561static DRIVER_INIT(anithunt) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xe7, 4,7,6,5,0,3,1,2, 0x33, 0,2,1,7,6,5,4,3, 0xb3, 0,3,4,2,1,7,6,5, 0x2a, 1,3,7,6,5,2,0,4, 0xe4, 3,7,6,5,2,0,4,1, 0x2d, 4,1,3,7,6,5,2,0, 0xb6, 0,3,2,1,4,7,6,5); }
4562static DRIVER_INIT(abnudge) { sfbonus_bitswap(machine,    0x33, 0,3,7,6,5,2,1,4, 0xff, 3,7,6,5,1,0,4,2, 0x36, 4,2,3,7,6,5,1,0, 0xa8, 3,2,4,0,1,7,6,5, 0x2c, 0,1,7,6,5,2,4,3, 0xff, 3,7,6,5,1,0,4,2, 0x26, 2,4,3,7,6,5,1,0, 0xbe, 4,1,3,0,2,7,6,5); }
4563static DRIVER_INIT(pir2001) { sfbonus_bitswap(machine,    0x3a, 1,2,7,6,5,4,3,0, 0xfa, 3,7,6,5,2,0,4,1, 0x33, 4,1,3,7,6,5,2,0, 0xa8, 2,0,4,1,3,7,6,5, 0x2a, 2,4,7,6,5,0,3,1, 0xf7, 1,7,6,5,4,3,0,2, 0x27, 4,1,2,7,6,5,0,3, 0xaf, 0,3,2,4,1,7,6,5); }
4564static DRIVER_INIT(pir2002) { sfbonus_bitswap(machine,    0x30, 3,2,7,6,5,4,0,1, 0xec, 2,7,6,5,4,0,1,3, 0x2d, 1,4,3,7,6,5,2,0, 0xa6, 4,0,1,3,2,7,6,5, 0x20, 4,1,7,6,5,2,3,0, 0xf9, 2,7,6,5,4,3,0,1, 0x3a, 4,1,2,7,6,5,0,3, 0xb7, 1,0,3,2,4,7,6,5); }
4565static DRIVER_INIT(classice) { sfbonus_bitswap(machine,   0x3f, 2,0,7,6,5,4,3,1, 0xe9, 2,7,6,5,4,3,1,0, 0x22, 2,1,0,7,6,5,4,3, 0xab, 4,3,2,0,1,7,6,5, 0x3e, 2,1,7,6,5,4,3,0, 0xeb, 2,7,6,5,4,3,0,1, 0x22, 0,2,1,7,6,5,4,3, 0xad, 4,3,0,2,1,7,6,5); }
4566static DRIVER_INIT(seawld) { sfbonus_bitswap(machine,     0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x24, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 1,0,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,2,0, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4567static DRIVER_INIT(moneymac) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xeb, 0,7,6,5,4,3,2,1, 0x25, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4568static DRIVER_INIT(atworld) { sfbonus_bitswap(machine,    0x3c, 1,0,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x26, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 0,1,7,6,5,4,3,2, 0xe8, 1,7,6,5,4,3,0,2, 0x22, 0,1,2,7,6,5,4,3, 0xa9, 4,3,2,1,0,7,6,5); }
4569static DRIVER_INIT(fruitcar) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x21, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 0,1,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x25, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4570static DRIVER_INIT(act2000v) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4571static DRIVER_INIT(ch2000v) { sfbonus_bitswap(machine,    0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 1,0,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4572static DRIVER_INIT(ch2000v2) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3e, 2,1,7,6,5,4,3,0, 0xec, 0,7,6,5,4,3,2,1, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4573static DRIVER_INIT(ch2000d) { sfbonus_bitswap(machine,    0x38, 0,2,7,6,5,4,3,1, 0xed, 0,7,6,5,4,3,2,1, 0x25, 2,0,1,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x3c, 0,1,7,6,5,4,3,2, 0xed, 1,7,6,5,4,3,0,2, 0x25, 2,0,1,7,6,5,4,3, 0xae, 4,3,1,2,0,7,6,5); }
4574static DRIVER_INIT(ch2000v3) { sfbonus_bitswap(machine,   0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 1,0,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4575static DRIVER_INIT(ch2000c) { sfbonus_bitswap(machine,    0x29, 2,3,7,6,5,0,4,1, 0xfe, 2,7,6,5,1,0,3,4, 0x33, 0,1,3,7,6,5,2,4, 0xa6, 1,0,3,4,2,7,6,5, 0x25, 4,1,7,6,5,3,2,0, 0xfe, 2,7,6,5,1,0,3,4, 0x35, 0,1,4,7,6,5,3,2, 0xbe, 1,0,4,2,3,7,6,5); }
4576static DRIVER_INIT(classiced) { sfbonus_bitswap(machine,  0x38, 0,2,7,6,5,4,3,1, 0xea, 2,7,6,5,4,3,0,1, 0x24, 2,1,0,7,6,5,4,3, 0xaa, 4,3,2,0,1,7,6,5, 0x3e, 1,0,7,6,5,4,3,2, 0xe8, 0,7,6,5,4,3,1,2, 0x24, 2,1,0,7,6,5,4,3, 0xa8, 4,3,0,2,1,7,6,5); }
4577static DRIVER_INIT(classiced3) { sfbonus_bitswap(machine, 0x3b, 2,1,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x24, 2,1,0,7,6,5,4,3, 0xaa, 4,3,2,0,1,7,6,5, 0x3e, 1,0,7,6,5,4,3,2, 0xe8, 0,7,6,5,4,3,1,2, 0x24, 2,1,0,7,6,5,4,3, 0xae, 4,3,1,0,2,7,6,5); }
4578static DRIVER_INIT(classicev) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 2,1,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,1,0, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4579static DRIVER_INIT(classicev3) { sfbonus_bitswap(machine, 0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 2,1,7,6,5,4,3,0, 0xe9, 2,7,6,5,4,3,1,0, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4580static DRIVER_INIT(seawlda) { sfbonus_bitswap(machine,    0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 0,1,7,6,5,4,3,2, 0xea, 2,7,6,5,4,3,1,0, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4581static DRIVER_INIT(atworlda) { sfbonus_bitswap(machine,   0x3c, 1,0,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x26, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,0,2, 0x22, 0,1,2,7,6,5,4,3, 0xa9, 4,3,2,1,0,7,6,5); }
4582static DRIVER_INIT(act2000v2) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x21, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4583static DRIVER_INIT(act2000v3) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4584static DRIVER_INIT(act2000d) { sfbonus_bitswap(machine,   0x3d, 0,2,7,6,5,4,3,1, 0xef, 1,7,6,5,4,3,2,0, 0x27, 0,2,1,7,6,5,4,3, 0xad, 4,3,0,1,2,7,6,5, 0x3b, 2,1,7,6,5,4,3,0, 0xed, 0,7,6,5,4,3,2,1, 0x27, 0,2,1,7,6,5,4,3, 0xaa, 4,3,1,2,0,7,6,5); }
4585static DRIVER_INIT(anibonus3) { sfbonus_bitswap(machine,  0x33, 0,3,7,6,5,2,1,4, 0xff, 3,7,6,5,1,0,4,2, 0x36, 4,2,3,7,6,5,1,0, 0xa8, 3,2,4,0,1,7,6,5, 0x2c, 0,1,7,6,5,2,4,3, 0xff, 3,7,6,5,1,0,4,2, 0x26, 2,4,3,7,6,5,1,0, 0xbe, 4,1,3,0,2,7,6,5); }
4586static DRIVER_INIT(fruitcar2) { sfbonus_bitswap(machine,  0x33, 0,3,7,6,5,2,1,4, 0xff, 3,7,6,5,1,0,4,2, 0x36, 4,2,3,7,6,5,1,0, 0xa8, 3,2,4,0,1,7,6,5, 0x2c, 0,1,7,6,5,2,4,3, 0xff, 3,7,6,5,1,0,4,2, 0x26, 2,4,3,7,6,5,1,0, 0xbe, 4,1,3,0,2,7,6,5); }
4587static DRIVER_INIT(fruitcar3) { sfbonus_bitswap(machine,  0x3b, 0,1,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x21, 0,2,1,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x3d, 2,1,7,6,5,4,3,0, 0xed, 2,7,6,5,4,3,1,0, 0x21, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5); }
4588static DRIVER_INIT(moneymacv) { sfbonus_bitswap(machine,  0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x23, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xeb, 0,7,6,5,4,3,2,1, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4589static DRIVER_INIT(moneymacd) { sfbonus_bitswap(machine,  0x3a, 1,0,7,6,5,4,3,2, 0xe9, 0,7,6,5,4,3,1,2, 0x26, 0,2,1,7,6,5,4,3, 0xaf, 4,3,1,2,0,7,6,5, 0x3d, 0,2,7,6,5,4,3,1, 0xe9, 0,7,6,5,4,3,1,2, 0x23, 0,1,2,7,6,5,4,3, 0xae, 4,3,2,0,1,7,6,5); }
4590static DRIVER_INIT(pirpok2d) { sfbonus_bitswap(machine,   0x3c, 0,1,7,6,5,4,3,2, 0xed, 0,7,6,5,4,3,2,1, 0x21, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x38, 0,2,7,6,5,4,3,1, 0xed, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xae, 4,3,1,2,0,7,6,5); }
4591static DRIVER_INIT(pirpok2v) { sfbonus_bitswap(machine,   0x3c, 1,0,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x23, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3e, 2,1,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,1,0, 0x22, 0,1,2,7,6,5,4,3, 0xa9, 4,3,2,1,0,7,6,5); }
4592static DRIVER_INIT(pirpok2v2) { sfbonus_bitswap(machine,  0x3c, 1,0,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 2,1,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,1,0, 0x22, 0,1,2,7,6,5,4,3, 0xa9, 4,3,2,1,0,7,6,5); }
4593static DRIVER_INIT(dblchald) { sfbonus_bitswap(machine,   0x3c, 0,1,7,6,5,4,3,2, 0xed, 0,7,6,5,4,3,2,1, 0x27, 0,2,1,7,6,5,4,3, 0xae, 4,3,1,0,2,7,6,5, 0x3b, 2,1,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x27, 0,2,1,7,6,5,4,3, 0xae, 4,3,1,2,0,7,6,5); }
4594static DRIVER_INIT(dblchalv) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 1,0,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4595static DRIVER_INIT(abnudged) { sfbonus_bitswap(machine,   0x3b, 0,1,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x21, 0,2,1,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x3d, 2,1,7,6,5,4,3,0, 0xed, 2,7,6,5,4,3,1,0, 0x21, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5); }
4596static DRIVER_INIT(abnudgev) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x21, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 0,1,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x25, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4597static DRIVER_INIT(pickwind) { sfbonus_bitswap(machine,   0x3c, 0,1,7,6,5,4,3,2, 0xed, 0,7,6,5,4,3,2,1, 0x27, 0,2,1,7,6,5,4,3, 0xae, 4,3,1,0,2,7,6,5, 0x3b, 2,1,7,6,5,4,3,0, 0xe8, 0,7,6,5,4,3,1,2, 0x27, 0,2,1,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4598static DRIVER_INIT(pickwinv) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x26, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 1,0,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x25, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4599static DRIVER_INIT(pickwinv2) { sfbonus_bitswap(machine,  0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x26, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 1,0,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4600static DRIVER_INIT(anithuntd) { sfbonus_bitswap(machine,  0x3c, 0,1,7,6,5,4,3,2, 0xee, 0,7,6,5,4,3,2,1, 0x21, 0,2,1,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x3d, 2,1,7,6,5,4,3,0, 0xed, 2,7,6,5,4,3,1,0, 0x21, 0,2,1,7,6,5,4,3, 0xae, 4,3,1,2,0,7,6,5); }
4601static DRIVER_INIT(anithuntv) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 1,0,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4602static DRIVER_INIT(anibonusd) { sfbonus_bitswap(machine,  0x3b, 0,1,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x21, 0,2,1,7,6,5,4,3, 0xa8, 4,3,0,1,2,7,6,5, 0x3d, 2,1,7,6,5,4,3,0, 0xed, 2,7,6,5,4,3,1,0, 0x21, 0,2,1,7,6,5,4,3, 0xaa, 4,3,1,2,0,7,6,5); }
4603static DRIVER_INIT(anibonusv) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x21, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 0,1,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4604static DRIVER_INIT(anibonusv3) { sfbonus_bitswap(machine, 0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x21, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 0,1,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4605static DRIVER_INIT(hldspin1d) { sfbonus_bitswap(machine,  0x38, 0,1,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x27, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x3e, 0,2,7,6,5,4,3,1, 0xeb, 1,7,6,5,4,3,0,2, 0x27, 1,0,2,7,6,5,4,3, 0xae, 4,3,1,2,0,7,6,5); }
4606static DRIVER_INIT(hldspin1v) { sfbonus_bitswap(machine,  0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 2,1,7,6,5,4,3,0, 0xed, 2,7,6,5,4,3,1,0, 0x26, 2,1,0,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4607static DRIVER_INIT(parrot3d) { sfbonus_bitswap(machine,   0x3b, 0,1,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x27, 0,2,1,7,6,5,4,3, 0xad, 4,3,0,1,2,7,6,5, 0x3b, 2,1,7,6,5,4,3,0, 0xee, 2,7,6,5,4,3,1,0, 0x27, 0,2,1,7,6,5,4,3, 0xaa, 4,3,1,2,0,7,6,5); }
4608static DRIVER_INIT(parrot3v) { sfbonus_bitswap(machine,   0x3c, 1,0,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 2,1,7,6,5,4,3,0, 0xed, 2,7,6,5,4,3,1,0, 0x26, 0,1,2,7,6,5,4,3, 0xa9, 4,3,2,1,0,7,6,5); }
4609static DRIVER_INIT(parrot3v2) { sfbonus_bitswap(machine,  0x3c, 1,0,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 2,1,7,6,5,4,3,0, 0xe9, 2,7,6,5,4,3,1,0, 0x22, 0,1,2,7,6,5,4,3, 0xa9, 4,3,2,1,0,7,6,5); }
4610static DRIVER_INIT(sfruitbd) { sfbonus_bitswap(machine,   0x3e, 1,0,7,6,5,4,3,2, 0xed, 1,7,6,5,4,3,0,2, 0x25, 2,0,1,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x3c, 0,1,7,6,5,4,3,2, 0xed, 2,7,6,5,4,3,1,0, 0x25, 2,0,1,7,6,5,4,3, 0xae, 4,3,1,2,0,7,6,5); }
4611static DRIVER_INIT(sfruitbv) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x25, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4612static DRIVER_INIT(sfruitbv2) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x25, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x25, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4613static DRIVER_INIT(sfbonusd) { sfbonus_bitswap(machine,   0x3b, 0,1,7,6,5,4,3,2, 0xef, 1,7,6,5,4,3,0,2, 0x24, 2,1,0,7,6,5,4,3, 0xad, 4,3,0,1,2,7,6,5, 0x3e, 1,0,7,6,5,4,3,2, 0xeb, 2,7,6,5,4,3,1,0, 0x24, 2,1,0,7,6,5,4,3, 0xaa, 4,3,1,2,0,7,6,5); }
4614static DRIVER_INIT(sfbonusv) { sfbonus_bitswap(machine,   0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x25, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4615static DRIVER_INIT(fb2ndv) { sfbonus_bitswap(machine,     0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 2,1,7,6,5,4,3,0, 0xec, 0,7,6,5,4,3,2,1, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4616static DRIVER_INIT(fb2ndd) { sfbonus_bitswap(machine,     0x3b, 1,0,7,6,5,4,3,2, 0xeb, 1,7,6,5,4,3,0,2, 0x25, 2,0,1,7,6,5,4,3, 0xad, 4,3,0,1,2,7,6,5, 0x3c, 0,1,7,6,5,4,3,2, 0xeb, 2,7,6,5,4,3,1,0, 0x25, 2,0,1,7,6,5,4,3, 0xaa, 4,3,1,2,0,7,6,5); }
4617static DRIVER_INIT(robadv2v1) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x21, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4618static DRIVER_INIT(robadv2v4) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4619static DRIVER_INIT(robadv2d) { sfbonus_bitswap(machine,   0x3c, 0,1,7,6,5,4,3,2, 0xe8, 0,7,6,5,4,3,1,2, 0x24, 2,1,0,7,6,5,4,3, 0xae, 4,3,1,0,2,7,6,5, 0x3e, 1,0,7,6,5,4,3,2, 0xed, 1,7,6,5,4,3,0,2, 0x24, 2,1,0,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4620static DRIVER_INIT(hldspin2d) { sfbonus_bitswap(machine,  0x3b, 0,1,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x27, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x3e, 0,2,7,6,5,4,3,1, 0xeb, 1,7,6,5,4,3,0,2, 0x27, 1,0,2,7,6,5,4,3, 0xab, 4,3,1,2,0,7,6,5); }
4621static DRIVER_INIT(hldspin2v) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 2,1,7,6,5,4,3,0, 0xed, 2,7,6,5,4,3,1,0, 0x23, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4622static DRIVER_INIT(tighookv) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x26, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xec, 0,7,6,5,4,3,2,1, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4623static DRIVER_INIT(tighookv2) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xea, 0,7,6,5,4,3,2,1, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4624static DRIVER_INIT(tighookd) { sfbonus_bitswap(machine,   0x3d, 0,1,7,6,5,4,3,2, 0xed, 1,7,6,5,4,3,0,2, 0x26, 2,1,0,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x3c, 1,0,7,6,5,4,3,2, 0xed, 2,7,6,5,4,3,1,0, 0x26, 2,1,0,7,6,5,4,3, 0xae, 4,3,1,2,0,7,6,5); }
4625static DRIVER_INIT(pir2001v) { sfbonus_bitswap(machine,   0x39, 1,0,7,6,5,4,3,2, 0xea, 0,7,6,5,4,3,2,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 2,1,7,6,5,4,3,0, 0xed, 2,7,6,5,4,3,1,0, 0x23, 0,1,2,7,6,5,4,3, 0xac, 4,3,2,1,0,7,6,5); }
4626static DRIVER_INIT(pir2001v2) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x39, 1,0,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4627static DRIVER_INIT(pir2001d) { sfbonus_bitswap(machine,   0x3c, 0,1,7,6,5,4,3,2, 0xeb, 0,7,6,5,4,3,2,1, 0x27, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5, 0x3e, 0,2,7,6,5,4,3,1, 0xeb, 1,7,6,5,4,3,0,2, 0x27, 1,0,2,7,6,5,4,3, 0xae, 4,3,1,2,0,7,6,5); }
4628static DRIVER_INIT(pir2002d) { sfbonus_bitswap(machine,   0x3d, 2,0,7,6,5,4,3,1, 0xef, 1,7,6,5,4,3,2,0, 0x27, 0,2,1,7,6,5,4,3, 0xae, 4,3,1,0,2,7,6,5, 0x3b, 2,1,7,6,5,4,3,0, 0xed, 0,7,6,5,4,3,2,1, 0x27, 0,2,1,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4629static DRIVER_INIT(pir2002v) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 1,0,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4630static DRIVER_INIT(pir2002v2) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x26, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 1,0,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4631static DRIVER_INIT(fb2genv) { sfbonus_bitswap(machine,    0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 2,1,7,6,5,4,3,0, 0xea, 0,7,6,5,4,3,2,1, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4632static DRIVER_INIT(fb2genv3) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 2,1,7,6,5,4,3,0, 0xeb, 0,7,6,5,4,3,2,1, 0x25, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4633static DRIVER_INIT(fb2gend) { sfbonus_bitswap(machine,    0x3d, 2,0,7,6,5,4,3,1, 0xeb, 1,7,6,5,4,3,0,2, 0x25, 2,0,1,7,6,5,4,3, 0xad, 4,3,0,1,2,7,6,5, 0x3c, 0,1,7,6,5,4,3,2, 0xeb, 2,7,6,5,4,3,1,0, 0x25, 2,0,1,7,6,5,4,3, 0xac, 4,3,2,1,0,7,6,5); }
4634static DRIVER_INIT(fb4d) { sfbonus_bitswap(machine,       0x3d, 2,0,7,6,5,4,3,1, 0xeb, 1,7,6,5,4,3,0,2, 0x25, 2,0,1,7,6,5,4,3, 0xad, 4,3,2,1,0,7,6,5, 0x3c, 0,1,7,6,5,4,3,2, 0xeb, 2,7,6,5,4,3,1,0, 0x25, 2,0,1,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4635static DRIVER_INIT(fb4v) { sfbonus_bitswap(machine,       0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 2,1,7,6,5,4,3,0, 0xeb, 0,7,6,5,4,3,2,1, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4636static DRIVER_INIT(fb4v3) { sfbonus_bitswap(machine,      0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3e, 2,1,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,1,0, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4637static DRIVER_INIT(fb5) { sfbonus_bitswap(machine,        0x20, 0,3,7,6,5,1,4,2, 0xf1, 1,7,6,5,3,2,4,0, 0x33, 2,3,1,7,6,5,0,4, 0xaf, 2,0,1,4,3,7,6,5, 0x2d, 2,4,7,6,5,1,0,3, 0xfb, 4,7,6,5,1,0,3,2, 0x34, 2,0,4,7,6,5,3,1, 0xb7, 1,0,3,2,4,7,6,5); }
4638static DRIVER_INIT(fb5d) { sfbonus_bitswap(machine,       0x3e, 2,1,7,6,5,4,3,0, 0xef, 1,7,6,5,4,3,2,0, 0x24, 2,1,0,7,6,5,4,3, 0xad, 4,3,0,1,2,7,6,5, 0x3e, 1,0,7,6,5,4,3,2, 0xeb, 2,7,6,5,4,3,1,0, 0x24, 2,1,0,7,6,5,4,3, 0xaa, 4,3,1,2,0,7,6,5); }
4639static DRIVER_INIT(fb5v) { sfbonus_bitswap(machine,       0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 2,0,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3f, 1,0,7,6,5,4,3,2, 0xee, 1,7,6,5,4,3,0,2, 0x25, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4640static DRIVER_INIT(fb6) { sfbonus_bitswap(machine,        0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x21, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4641static DRIVER_INIT(fb6d) { sfbonus_bitswap(machine,       0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x22, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x25, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4642static DRIVER_INIT(fb6v) { sfbonus_bitswap(machine,       0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x23, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xed, 2,7,6,5,4,3,1,0, 0x23, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4643static DRIVER_INIT(fb6v3) { sfbonus_bitswap(machine,      0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x26, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xea, 2,7,6,5,4,3,1,0, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4644static DRIVER_INIT(fb6s) { sfbonus_bitswap(machine,       0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x24, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xec, 0,7,6,5,4,3,2,1, 0x25, 1,0,2,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4645static DRIVER_INIT(version4) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x26, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xec, 1,7,6,5,4,3,0,2, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4646static DRIVER_INIT(bugfever) { sfbonus_bitswap(machine,   0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x22, 2,1,0,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4647static DRIVER_INIT(bugfeverd) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x26, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 0,1,7,6,5,4,3,2, 0xe8, 1,7,6,5,4,3,0,2, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4648static DRIVER_INIT(bugfeverv) { sfbonus_bitswap(machine,  0x3c, 1,0,7,6,5,4,3,2, 0xef, 0,7,6,5,4,3,2,1, 0x22, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3a, 0,1,7,6,5,4,3,2, 0xea, 2,7,6,5,4,3,1,0, 0x22, 0,1,2,7,6,5,4,3, 0xa9, 4,3,2,1,0,7,6,5); }
4649static DRIVER_INIT(bugfeverv2) { sfbonus_bitswap(machine, 0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x23, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xed, 2,7,6,5,4,3,1,0, 0x26, 2,1,0,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4650static DRIVER_INIT(dvisland) { sfbonus_bitswap(machine,   0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x21, 1,0,2,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xe9, 1,7,6,5,4,3,0,2, 0x23, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
4651static DRIVER_INIT(funriver) { sfbonus_bitswap(machine,   0x3c, 1,2,7,6,5,4,3,0, 0xea, 2,7,6,5,4,3,0,1, 0x24, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xec, 0,7,6,5,4,3,2,1, 0x23, 1,0,2,7,6,5,4,3, 0xa9, 4,3,0,1,2,7,6,5); }
4652static DRIVER_INIT(funriverv) { sfbonus_bitswap(machine,  0x39, 1,2,7,6,5,4,3,0, 0xef, 2,7,6,5,4,3,0,1, 0x26, 0,2,1,7,6,5,4,3, 0xa8, 4,3,1,2,0,7,6,5, 0x3b, 0,1,7,6,5,4,3,2, 0xea, 2,7,6,5,4,3,1,0, 0x22, 2,1,0,7,6,5,4,3, 0xac, 4,3,0,1,2,7,6,5); }
44974653
4498         case 0: x = BITSWAP8(x^0x3D, 0,3,7,6,5,2,1,4); break;
4499         case 1: x = BITSWAP8(x^0xF3, 3,7,6,5,1,0,4,2); break;
4500         case 2: x = BITSWAP8(x^0x3D, 2,0,1,7,6,5,3,4); break;
4501         case 3: x = BITSWAP8(x^0xA8, 3,4,2,0,1,7,6,5); break;
4502         case 4: x = BITSWAP8(x^0x3D, 2,3,7,6,5,1,0,4); break;
4503         case 5: x = BITSWAP8(x^0xEF, 2,7,6,5,1,0,3,4); break;
4504         case 6: x = BITSWAP8(x^0x3A, 4,2,3,7,6,5,1,0); break;
4505         case 7: x = BITSWAP8(x^0xBA, 2,4,1,0,3,7,6,5); break;
4506          }
45074654
4508      ROM[i] = x;
4509   }
45104655
4511
4512   DRIVER_INIT_CALL(sfbonus_common);
4513}
4514
4515
4516static DRIVER_INIT(hldspin1)
4517{
4518   int i;
4519   UINT8 *ROM = memory_region(machine, "maincpu");
4520
4521   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4522   {
4523      UINT8 x = ROM[i];
4524
4525      switch(i & 7)
4526      {
4527          case 0: x = BITSWAP8(x^0x21, 0,2,7,6,5,4,3,1); break;
4528         case 1: x = BITSWAP8(x^0xe1, 1,7,6,5,4,3,2,0); break;
4529         case 2: x = BITSWAP8(x^0x31, 1,4,3,7,6,5,2,0); break;
4530         case 3: x = BITSWAP8(x^0xbc, 0,3,4,2,1,7,6,5); break;
4531         case 4: x = BITSWAP8(x^0x24, 4,3,7,6,5,2,0,1); break;
4532         case 5: x = BITSWAP8(x^0xf8, 3,7,6,5,2,0,1,4); break;
4533         case 6: x = BITSWAP8(x^0x39, 1,4,2,7,6,5,0,3); break;
4534         case 7: x = BITSWAP8(x^0xaf, 0,3,2,1,4,7,6,5); break;
4535       }
4536      ROM[i] = x;
4537   }
4538
4539
4540   DRIVER_INIT_CALL(sfbonus_common);
4541}
4542
4543static DRIVER_INIT(hldspin2)
4544{
4545   int i;
4546   UINT8 *ROM = memory_region(machine, "maincpu");
4547
4548   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4549   {
4550      UINT8 x = ROM[i];
4551
4552      switch(i & 7)
4553      {
4554         case 0: x = BITSWAP8(x^0x21, 1,3,7,6,5,0,4,2); break;
4555         case 1: x = BITSWAP8(x^0xfe, 2,7,6,5,1,0,4,3); break;
4556         case 2: x = BITSWAP8(x^0x33, 1,0,3,7,6,5,2,4); break;
4557         case 3: x = BITSWAP8(x^0xa6, 1,0,4,3,2,7,6,5); break;
4558         case 4: x = BITSWAP8(x^0x37, 0,1,7,6,5,3,2,4); break;
4559         case 5: x = BITSWAP8(x^0xfe, 2,7,6,5,1,0,4,3); break;
4560         case 6: x = BITSWAP8(x^0x36, 1,0,4,7,6,5,3,2); break;
4561         case 7: x = BITSWAP8(x^0xa2, 1,0,2,4,3,7,6,5); break;
4562       }
4563      ROM[i] = x;
4564   }
4565
4566
4567   DRIVER_INIT_CALL(sfbonus_common);
4568}
4569
4570static DRIVER_INIT(pickwin)
4571{
4572   int i;
4573   UINT8 *ROM = memory_region(machine, "maincpu");
4574
4575   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4576   {
4577      UINT8 x = ROM[i];
4578
4579      switch(i & 7)
4580      {
4581          case 0: x = BITSWAP8(x^0x20, 1,3,7,6,5,2,4,0); break;
4582         case 1: x = BITSWAP8(x^0xfa, 2,7,6,5,4,0,1,3); break;
4583         case 2: x = BITSWAP8(x^0x37, 1,0,3,7,6,5,2,4); break;
4584         case 3: x = BITSWAP8(x^0xb0, 4,0,1,3,2,7,6,5); break;
4585         case 4: x = BITSWAP8(x^0x34, 0,1,7,6,5,3,2,4); break;
4586         case 5: x = BITSWAP8(x^0xef, 3,7,6,5,2,0,1,4); break;
4587         case 6: x = BITSWAP8(x^0x27, 1,0,4,7,6,5,3,2); break;
4588         case 7: x = BITSWAP8(x^0xb0, 4,0,1,3,2,7,6,5); break;
4589       }
4590      ROM[i] = x;
4591   }
4592
4593   DRIVER_INIT_CALL(sfbonus_common);
4594}
4595
4596static DRIVER_INIT(robadv)
4597{
4598   int i;
4599   UINT8 *ROM = memory_region(machine, "maincpu");
4600
4601   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4602   {
4603      UINT8 x = ROM[i];
4604
4605      switch(i & 7)
4606      {
4607          case 0: x = BITSWAP8(x^0x31, 0,3,7,6,5,2,1,4); break;
4608         case 1: x = BITSWAP8(x^0xe0, 1,7,6,5,3,2,4,0); break;
4609         case 2: x = BITSWAP8(x^0x2f, 4,0,2,7,6,5,3,1); break;
4610         case 3: x = BITSWAP8(x^0xa7, 1,0,3,4,2,7,6,5); break;
4611         case 4: x = BITSWAP8(x^0x33, 1,3,7,6,5,2,0,4); break;
4612         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,1,4,3,0); break;
4613         case 6: x = BITSWAP8(x^0x34, 4,1,3,7,6,5,2,0); break;
4614         case 7: x = BITSWAP8(x^0xaf, 2,0,4,1,3,7,6,5); break;
4615       }
4616      ROM[i] = x;
4617   }
4618
4619   DRIVER_INIT_CALL(sfbonus_common);
4620}
4621
4622static DRIVER_INIT(anibonus)
4623{
4624   int i;
4625   UINT8 *ROM = memory_region(machine, "maincpu");
4626
4627   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4628   {
4629      UINT8 x = ROM[i];
4630
4631      switch(i & 7)
4632      {
4633          case 0: x = BITSWAP8(x^0x33, 0,3,7,6,5,2,1,4); break;
4634         case 1: x = BITSWAP8(x^0xe7, 2,7,6,5,3,4,1,0); break;
4635         case 2: x = BITSWAP8(x^0x3a, 4,2,3,7,6,5,1,0); break;
4636         case 3: x = BITSWAP8(x^0xa8, 3,4,2,0,1,7,6,5); break;
4637         case 4: x = BITSWAP8(x^0x3d, 2,3,7,6,5,1,0,4); break;
4638         case 5: x = BITSWAP8(x^0xff, 3,7,6,5,1,0,2,4); break;
4639         case 6: x = BITSWAP8(x^0x3a, 4,2,3,7,6,5,1,0); break;
4640         case 7: x = BITSWAP8(x^0xbe, 3,4,1,0,2,7,6,5); break;
4641       }
4642      ROM[i] = x;
4643   }
4644
4645   DRIVER_INIT_CALL(sfbonus_common);
4646}
4647
4648static DRIVER_INIT(pirpok2)
4649{
4650   int i;
4651   UINT8 *ROM = memory_region(machine, "maincpu");
4652
4653   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4654   {
4655      UINT8 x = ROM[i];
4656
4657      switch(i & 7)
4658      {
4659          case 0: x = BITSWAP8(x^0x26, 1,2,7,6,5,4,3,0); break;
4660         case 1: x = BITSWAP8(x^0xf6, 1,7,6,5,4,3,0,2); break;
4661         case 2: x = BITSWAP8(x^0x29, 4,0,1,7,6,5,2,3); break;
4662         case 3: x = BITSWAP8(x^0xad, 0,3,1,2,4,7,6,5); break;
4663         case 4: x = BITSWAP8(x^0x2e, 1,3,7,6,5,2,0,4); break;
4664         case 5: x = BITSWAP8(x^0xe0, 3,7,6,5,2,0,4,1); break;
4665         case 6: x = BITSWAP8(x^0x39, 4,1,2,7,6,5,0,3); break;
4666         case 7: x = BITSWAP8(x^0xb2, 2,0,4,1,3,7,6,5); break;
4667       }
4668      ROM[i] = x;
4669   }
4670
4671   DRIVER_INIT_CALL(sfbonus_common);
4672}
4673
4674static DRIVER_INIT(tighook)
4675{
4676   int i;
4677   UINT8 *ROM = memory_region(machine, "maincpu");
4678
4679   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4680   {
4681      UINT8 x = ROM[i];
4682
4683      switch(i & 7)
4684      {
4685         case 0: x = BITSWAP8(x^0x33, 0,1,7,6,5,2,3,4); break;
4686         case 1: x = BITSWAP8(x^0xf3, 3,7,6,5,1,0,4,2); break;
4687         case 2: x = BITSWAP8(x^0x2e, 4,0,2,7,6,5,3,1); break;
4688         case 3: x = BITSWAP8(x^0xa7, 1,0,4,2,3,7,6,5); break;
4689         case 4: x = BITSWAP8(x^0x2d, 1,2,7,6,5,3,4,0); break;
4690         case 5: x = BITSWAP8(x^0xff, 2,7,6,5,1,0,3,4); break;
4691         case 6: x = BITSWAP8(x^0x27, 1,0,2,7,6,5,3,4); break;
4692         case 7: x = BITSWAP8(x^0xa7, 1,0,4,2,3,7,6,5); break;
4693       }
4694      ROM[i] = x;
4695   }
4696
4697   DRIVER_INIT_CALL(sfbonus_common);
4698}
4699
4700static DRIVER_INIT(sfruitb)
4701{
4702   int i;
4703   UINT8 *ROM = memory_region(machine, "maincpu");
4704
4705   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4706   {
4707      UINT8 x = ROM[i];
4708
4709      switch(i & 7)
4710      {
4711         case 0: x = BITSWAP8(x^0x3e, 2,1,7,6,5,4,3,0); break;
4712         case 1: x = BITSWAP8(x^0xfd, 1,7,6,5,0,3,2,4); break;
4713         case 2: x = BITSWAP8(x^0x37, 4,1,3,7,6,5,2,0); break;
4714         case 3: x = BITSWAP8(x^0xac, 2,0,4,1,3,7,6,5); break;
4715         case 4: x = BITSWAP8(x^0x35, 2,3,7,6,5,1,0,4); break;
4716         case 5: x = BITSWAP8(x^0xf6, 3,7,6,5,2,0,1,4); break;
4717         case 6: x = BITSWAP8(x^0x37, 4,1,3,7,6,5,2,0); break;
4718         case 7: x = BITSWAP8(x^0xb9, 0,3,4,1,2,7,6,5); break;
4719       }
4720      ROM[i] = x;
4721   }
4722
4723   DRIVER_INIT_CALL(sfbonus_common);
4724}
4725
4726static DRIVER_INIT(fb2gen)
4727{
4728   int i;
4729   UINT8 *ROM = memory_region(machine, "maincpu");
4730
4731   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4732   {
4733      UINT8 x = ROM[i];
4734
4735      switch(i & 7)
4736      {
4737          case 0: x = BITSWAP8(x^0x35, 0,3,7,6,5,2,1,4); break;
4738         case 1: x = BITSWAP8(x^0xe8, 2,7,6,5,4,3,1,0); break;
4739         case 2: x = BITSWAP8(x^0x23, 4,3,2,7,6,5,1,0); break;
4740         case 3: x = BITSWAP8(x^0xb8, 2,1,4,0,3,7,6,5); break;
4741         case 4: x = BITSWAP8(x^0x2d, 0,1,7,6,5,4,2,3); break;
4742         case 5: x = BITSWAP8(x^0xf8, 2,7,6,5,1,4,3,0); break;
4743         case 6: x = BITSWAP8(x^0x23, 4,0,3,7,6,5,2,1); break;
4744         case 7: x = BITSWAP8(x^0xb8, 2,1,4,0,3,7,6,5); break;
4745       }
4746      ROM[i] = x;
4747   }
4748
4749   DRIVER_INIT_CALL(sfbonus_common);
4750}
4751
4752static DRIVER_INIT(fb2nd)
4753{
4754   int i;
4755   UINT8 *ROM = memory_region(machine, "maincpu");
4756
4757   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4758   {
4759      UINT8 x = ROM[i];
4760
4761      switch(i & 7)
4762      {
4763          case 0: x = BITSWAP8(x^0x2f, 0,2,7,6,5,3,4,1); break;
4764         case 1: x = BITSWAP8(x^0xff, 2,7,6,5,3,0,4,1); break;
4765         case 2: x = BITSWAP8(x^0x3e, 4,0,1,7,6,5,2,3); break;
4766         case 3: x = BITSWAP8(x^0xad, 3,0,4,1,2,7,6,5); break;
4767         case 4: x = BITSWAP8(x^0x35, 4,3,7,6,5,1,0,2); break;
4768         case 5: x = BITSWAP8(x^0xfd, 4,7,6,5,3,1,2,0); break;
4769         case 6: x = BITSWAP8(x^0x3a, 4,1,2,7,6,5,3,0); break;
4770         case 7: x = BITSWAP8(x^0xbd, 3,4,2,0,1,7,6,5); break;
4771       }
4772      ROM[i] = x;
4773   }
4774
4775   DRIVER_INIT_CALL(sfbonus_common);
4776}
4777
4778static DRIVER_INIT(fb4)
4779{
4780   int i;
4781   UINT8 *ROM = memory_region(machine, "maincpu");
4782
4783   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4784   {
4785      UINT8 x = ROM[i];
4786
4787      switch(i & 7)
4788      {
4789          case 0: x = BITSWAP8(x^0x37, 1,2,7,6,5,4,3,0); break;
4790         case 1: x = BITSWAP8(x^0xeb, 1,7,6,5,4,0,2,3); break;
4791         case 2: x = BITSWAP8(x^0x2d, 4,0,2,7,6,5,3,1); break;
4792         case 3: x = BITSWAP8(x^0xbd, 2,0,4,1,3,7,6,5); break;
4793         case 4: x = BITSWAP8(x^0x29, 4,1,7,6,5,2,3,0); break;
4794         case 5: x = BITSWAP8(x^0xff, 1,7,6,5,2,3,0,4); break;
4795         case 6: x = BITSWAP8(x^0x3f, 1,0,4,7,6,5,3,2); break;
4796         case 7: x = BITSWAP8(x^0xae, 2,3,0,4,1,7,6,5); break;
4797       }
4798      ROM[i] = x;
4799   }
4800
4801   DRIVER_INIT_CALL(sfbonus_common);
4802}
4803
4804static DRIVER_INIT(ch2000)
4805{
4806   int i;
4807   UINT8 *ROM = memory_region(machine, "maincpu");
4808
4809   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4810   {
4811      UINT8 x = ROM[i];
4812
4813      switch(i & 7)
4814      {
4815          case 0: x = BITSWAP8(x^0x29, 2,3,7,6,5,0,4,1); break;
4816         case 1: x = BITSWAP8(x^0xfe, 2,7,6,5,1,0,3,4); break;
4817         case 2: x = BITSWAP8(x^0x33, 0,1,3,7,6,5,2,4); break;
4818         case 3: x = BITSWAP8(x^0xa6, 1,0,3,4,2,7,6,5); break;
4819         case 4: x = BITSWAP8(x^0x25, 4,1,7,6,5,3,2,0); break;
4820         case 5: x = BITSWAP8(x^0xfe, 2,7,6,5,1,0,3,4); break;
4821         case 6: x = BITSWAP8(x^0x35, 0,1,4,7,6,5,3,2); break;
4822         case 7: x = BITSWAP8(x^0xbe, 1,0,4,2,3,7,6,5); break;
4823       }
4824      ROM[i] = x;
4825   }
4826
4827   DRIVER_INIT_CALL(sfbonus_common);
4828}
4829
4830static DRIVER_INIT(anithunt)
4831{
4832   int i;
4833   UINT8 *ROM = memory_region(machine, "maincpu");
4834
4835   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4836   {
4837      UINT8 x = ROM[i];
4838
4839      switch(i & 7)
4840      {
4841          case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
4842         case 1: x = BITSWAP8(x^0xe7, 4,7,6,5,0,3,1,2); break;
4843         case 2: x = BITSWAP8(x^0x33, 0,2,1,7,6,5,4,3); break;
4844         case 3: x = BITSWAP8(x^0xb3, 0,3,4,2,1,7,6,5); break;
4845         case 4: x = BITSWAP8(x^0x2a, 1,3,7,6,5,2,0,4); break;
4846         case 5: x = BITSWAP8(x^0xe4, 3,7,6,5,2,0,4,1); break;
4847         case 6: x = BITSWAP8(x^0x2d, 4,1,3,7,6,5,2,0); break;
4848         case 7: x = BITSWAP8(x^0xb6, 0,3,2,1,4,7,6,5); break;
4849       }
4850      ROM[i] = x;
4851   }
4852
4853   DRIVER_INIT_CALL(sfbonus_common);
4854}
4855
4856static DRIVER_INIT(abnudge)
4857{
4858   int i;
4859   UINT8 *ROM = memory_region(machine, "maincpu");
4860
4861   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4862   {
4863      UINT8 x = ROM[i];
4864
4865      switch(i & 7)
4866      {
4867          case 0: x = BITSWAP8(x^0x33, 0,3,7,6,5,2,1,4); break;
4868         case 1: x = BITSWAP8(x^0xff, 3,7,6,5,1,0,4,2); break;
4869         case 2: x = BITSWAP8(x^0x36, 4,2,3,7,6,5,1,0); break;
4870         case 3: x = BITSWAP8(x^0xa8, 3,2,4,0,1,7,6,5); break;
4871         case 4: x = BITSWAP8(x^0x2c, 0,1,7,6,5,2,4,3); break;
4872         case 5: x = BITSWAP8(x^0xff, 3,7,6,5,1,0,4,2); break;
4873         case 6: x = BITSWAP8(x^0x26, 2,4,3,7,6,5,1,0); break;
4874         case 7: x = BITSWAP8(x^0xbe, 4,1,3,0,2,7,6,5); break;
4875       }
4876      ROM[i] = x;
4877   }
4878
4879   DRIVER_INIT_CALL(sfbonus_common);
4880}
4881
4882static DRIVER_INIT(pir2001)
4883{
4884   int i;
4885   UINT8 *ROM = memory_region(machine, "maincpu");
4886
4887   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4888   {
4889      UINT8 x = ROM[i];
4890
4891      switch(i & 7)
4892      {
4893          case 0: x = BITSWAP8(x^0x3a, 1,2,7,6,5,4,3,0); break;
4894         case 1: x = BITSWAP8(x^0xfa, 3,7,6,5,2,0,4,1); break;
4895         case 2: x = BITSWAP8(x^0x33, 4,1,3,7,6,5,2,0); break;
4896         case 3: x = BITSWAP8(x^0xa8, 2,0,4,1,3,7,6,5); break;
4897         case 4: x = BITSWAP8(x^0x2a, 2,4,7,6,5,0,3,1); break;
4898         case 5: x = BITSWAP8(x^0xf7, 1,7,6,5,4,3,0,2); break;
4899         case 6: x = BITSWAP8(x^0x27, 4,1,2,7,6,5,0,3); break;
4900         case 7: x = BITSWAP8(x^0xaf, 0,3,2,4,1,7,6,5); break;
4901       }
4902      ROM[i] = x;
4903   }
4904
4905   DRIVER_INIT_CALL(sfbonus_common);
4906}
4907
4908static DRIVER_INIT(pir2002)
4909{
4910   int i;
4911   UINT8 *ROM = memory_region(machine, "maincpu");
4912
4913   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4914   {
4915      UINT8 x = ROM[i];
4916
4917      switch(i & 7)
4918      {
4919          case 0: x = BITSWAP8(x^0x30, 3,2,7,6,5,4,0,1); break;
4920         case 1: x = BITSWAP8(x^0xec, 2,7,6,5,4,0,1,3); break;
4921         case 2: x = BITSWAP8(x^0x2d, 1,4,3,7,6,5,2,0); break;
4922         case 3: x = BITSWAP8(x^0xa6, 4,0,1,3,2,7,6,5); break;
4923         case 4: x = BITSWAP8(x^0x20, 4,1,7,6,5,2,3,0); break;
4924         case 5: x = BITSWAP8(x^0xf9, 2,7,6,5,4,3,0,1); break;
4925         case 6: x = BITSWAP8(x^0x3a, 4,1,2,7,6,5,0,3); break;
4926         case 7: x = BITSWAP8(x^0xb7, 1,0,3,2,4,7,6,5); break;
4927       }
4928      ROM[i] = x;
4929   }
4930
4931   DRIVER_INIT_CALL(sfbonus_common);
4932}
4933
4934
4935static DRIVER_INIT(classice)
4936{
4937   int i;
4938   UINT8 *ROM = memory_region(machine, "maincpu");
4939
4940   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4941   {
4942      UINT8 x = ROM[i];
4943
4944      switch(i & 7)
4945      {
4946          case 0: x = BITSWAP8(x^0x3f, 2,0,7,6,5,4,3,1); break;
4947         case 1: x = BITSWAP8(x^0xe9, 2,7,6,5,4,3,1,0); break;
4948         case 2: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
4949         case 3: x = BITSWAP8(x^0xab, 4,3,2,0,1,7,6,5); break;
4950         case 4: x = BITSWAP8(x^0x3e, 2,1,7,6,5,4,3,0); break;
4951         case 5: x = BITSWAP8(x^0xeb, 2,7,6,5,4,3,0,1); break;
4952         case 6: x = BITSWAP8(x^0x22, 0,2,1,7,6,5,4,3); break;
4953         case 7: x = BITSWAP8(x^0xad, 4,3,0,2,1,7,6,5); break;
4954       }
4955      ROM[i] = x;
4956   }
4957
4958   DRIVER_INIT_CALL(sfbonus_common);
4959}
4960
4961//
4962static DRIVER_INIT(seawld)
4963{
4964   int i;
4965   UINT8 *ROM = memory_region(machine, "maincpu");
4966
4967   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4968   {
4969      UINT8 x = ROM[i];
4970
4971      switch(i & 7)
4972      {
4973          case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
4974         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
4975         case 2: x = BITSWAP8(x^0x24, 0,2,1,7,6,5,4,3); break;
4976         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
4977         case 4: x = BITSWAP8(x^0x3b, 1,0,7,6,5,4,3,2); break;
4978         case 5: x = BITSWAP8(x^0xec, 1,7,6,5,4,3,2,0); break;
4979         case 6: x = BITSWAP8(x^0x23, 1,0,2,7,6,5,4,3); break;
4980         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
4981       }
4982      ROM[i] = x;
4983   }
4984
4985   DRIVER_INIT_CALL(sfbonus_common);
4986}
4987
4988 //mmv17r.bin
4989
4990static DRIVER_INIT(moneymac)
4991{
4992   int i;
4993   UINT8 *ROM = memory_region(machine, "maincpu");
4994
4995   for(i=0;i<memory_region_length(machine, "maincpu");i++)
4996   {
4997      UINT8 x = ROM[i];
4998
4999      switch(i & 7)
5000      {
5001          case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5002         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5003         case 2: x = BITSWAP8(x^0x23, 0,2,1,7,6,5,4,3); break;
5004         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5005         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
5006         case 5: x = BITSWAP8(x^0xeb, 0,7,6,5,4,3,2,1); break;
5007         case 6: x = BITSWAP8(x^0x25, 1,0,2,7,6,5,4,3); break;
5008         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5009       }
5010      ROM[i] = x;
5011   }
5012
5013   DRIVER_INIT_CALL(sfbonus_common);
5014}
5015
5016
5017static DRIVER_INIT(atworld)
5018{
5019   int i;
5020   UINT8 *ROM = memory_region(machine, "maincpu");
5021
5022   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5023   {
5024      UINT8 x = ROM[i];
5025
5026      switch(i & 7)
5027      {
5028          case 0: x = BITSWAP8(x^0x3c, 1,0,7,6,5,4,3,2); break;
5029         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
5030         case 2: x = BITSWAP8(x^0x26, 1,0,2,7,6,5,4,3); break;
5031         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5032         case 4: x = BITSWAP8(x^0x3a, 0,1,7,6,5,4,3,2); break;
5033         case 5: x = BITSWAP8(x^0xe8, 1,7,6,5,4,3,0,2); break;
5034         case 6: x = BITSWAP8(x^0x22, 0,1,2,7,6,5,4,3); break;
5035         case 7: x = BITSWAP8(x^0xa9, 4,3,2,1,0,7,6,5); break;
5036       }
5037      ROM[i] = x;
5038   }
5039
5040
5041
5042   DRIVER_INIT_CALL(sfbonus_common);
5043}
5044
5045static DRIVER_INIT(fruitcar)
5046{
5047   int i;
5048   UINT8 *ROM = memory_region(machine, "maincpu");
5049
5050   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5051   {
5052      UINT8 x = ROM[i];
5053
5054      switch(i & 7)
5055      {
5056          case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5057         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5058         case 2: x = BITSWAP8(x^0x21, 2,1,0,7,6,5,4,3); break;
5059         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5060         case 4: x = BITSWAP8(x^0x3f, 0,1,7,6,5,4,3,2); break;
5061         case 5: x = BITSWAP8(x^0xee, 1,7,6,5,4,3,0,2); break;
5062         case 6: x = BITSWAP8(x^0x25, 1,0,2,7,6,5,4,3); break;
5063         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5064       }
5065      ROM[i] = x;
5066   }
5067
5068   DRIVER_INIT_CALL(sfbonus_common);
5069}
5070
5071
5072static DRIVER_INIT(act2000v)
5073{
5074   int i;
5075   UINT8 *ROM = memory_region(machine, "maincpu");
5076
5077   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5078   {
5079      UINT8 x = ROM[i];
5080
5081      switch(i & 7)
5082      {
5083         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5084         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5085         case 2: x = BITSWAP8(x^0x23, 2,1,0,7,6,5,4,3); break;
5086         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5087         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
5088         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
5089         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
5090         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5091       }
5092      ROM[i] = x;
5093   }
5094
5095   DRIVER_INIT_CALL(sfbonus_common);
5096}
5097
5098static DRIVER_INIT(ch2000v)
5099{
5100   int i;
5101   UINT8 *ROM = memory_region(machine, "maincpu");
5102
5103   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5104   {
5105      UINT8 x = ROM[i];
5106
5107      switch(i & 7)
5108      {
5109         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
5110         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
5111         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
5112         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5113         case 4: x = BITSWAP8(x^0x3f, 1,0,7,6,5,4,3,2); break;
5114         case 5: x = BITSWAP8(x^0xee, 1,7,6,5,4,3,0,2); break;
5115         case 6: x = BITSWAP8(x^0x23, 1,0,2,7,6,5,4,3); break;
5116         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5117       }
5118      ROM[i] = x;
5119   }
5120
5121   DRIVER_INIT_CALL(sfbonus_common);
5122} //
5123
5124static DRIVER_INIT(ch2000v2)
5125{
5126   int i;
5127   UINT8 *ROM = memory_region(machine, "maincpu");
5128
5129   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5130   {
5131      UINT8 x = ROM[i];
5132
5133      switch(i & 7)
5134      {
5135         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5136         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5137         case 2: x = BITSWAP8(x^0x23, 2,0,1,7,6,5,4,3); break;
5138         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5139         case 4: x = BITSWAP8(x^0x3e, 2,1,7,6,5,4,3,0); break;
5140         case 5: x = BITSWAP8(x^0xec, 0,7,6,5,4,3,2,1); break;
5141         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
5142         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5143       }
5144      ROM[i] = x;
5145   }
5146
5147   DRIVER_INIT_CALL(sfbonus_common);
5148} //
5149
5150
5151
5152static DRIVER_INIT(ch2000d)
5153{
5154   int i;
5155   UINT8 *ROM = memory_region(machine, "maincpu");
5156
5157   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5158   {
5159      UINT8 x = ROM[i];
5160
5161      switch(i & 7)
5162      {
5163         case 0: x = BITSWAP8(x^0x38, 0,2,7,6,5,4,3,1); break;
5164         case 1: x = BITSWAP8(x^0xed, 0,7,6,5,4,3,2,1); break;
5165         case 2: x = BITSWAP8(x^0x25, 2,0,1,7,6,5,4,3); break;
5166         case 3: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5167         case 4: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
5168         case 5: x = BITSWAP8(x^0xed, 1,7,6,5,4,3,0,2); break;
5169         case 6: x = BITSWAP8(x^0x25, 2,0,1,7,6,5,4,3); break;
5170         case 7: x = BITSWAP8(x^0xae, 4,3,1,2,0,7,6,5); break;
5171       }
5172      ROM[i] = x;
5173   }
5174   DRIVER_INIT_CALL(sfbonus_common);
5175}
5176
5177static DRIVER_INIT(ch2000v3)
5178{
5179   int i;
5180   UINT8 *ROM = memory_region(machine, "maincpu");
5181
5182   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5183   {
5184      UINT8 x = ROM[i];
5185
5186      switch(i & 7)
5187      {
5188         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
5189         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
5190         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
5191         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5192         case 4: x = BITSWAP8(x^0x3f, 1,0,7,6,5,4,3,2); break;
5193         case 5: x = BITSWAP8(x^0xee, 1,7,6,5,4,3,0,2); break;
5194         case 6: x = BITSWAP8(x^0x23, 1,0,2,7,6,5,4,3); break;
5195         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5196       }
5197      ROM[i] = x;
5198   }
5199   DRIVER_INIT_CALL(sfbonus_common);
5200}
5201
5202static DRIVER_INIT(ch2000c)
5203{
5204   int i;
5205   UINT8 *ROM = memory_region(machine, "maincpu");
5206
5207   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5208   {
5209      UINT8 x = ROM[i];
5210
5211      switch(i & 7)
5212      {
5213         case 0: x = BITSWAP8(x^0x29, 2,3,7,6,5,0,4,1); break;
5214         case 1: x = BITSWAP8(x^0xfe, 2,7,6,5,1,0,3,4); break;
5215         case 2: x = BITSWAP8(x^0x33, 0,1,3,7,6,5,2,4); break;
5216         case 3: x = BITSWAP8(x^0xa6, 1,0,3,4,2,7,6,5); break;
5217         case 4: x = BITSWAP8(x^0x25, 4,1,7,6,5,3,2,0); break;
5218         case 5: x = BITSWAP8(x^0xfe, 2,7,6,5,1,0,3,4); break;
5219         case 6: x = BITSWAP8(x^0x35, 0,1,4,7,6,5,3,2); break;
5220         case 7: x = BITSWAP8(x^0xbe, 1,0,4,2,3,7,6,5); break;
5221       }
5222      ROM[i] = x;
5223   }
5224   DRIVER_INIT_CALL(sfbonus_common);
5225}
5226
5227static DRIVER_INIT(classiced)
5228{
5229   int i;
5230   UINT8 *ROM = memory_region(machine, "maincpu");
5231
5232   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5233   {
5234      UINT8 x = ROM[i];
5235
5236      switch(i & 7)
5237      {
5238         case 0: x = BITSWAP8(x^0x38, 0,2,7,6,5,4,3,1); break;
5239         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
5240         case 2: x = BITSWAP8(x^0x24, 2,1,0,7,6,5,4,3); break;
5241         case 3: x = BITSWAP8(x^0xaa, 4,3,2,0,1,7,6,5); break;
5242         case 4: x = BITSWAP8(x^0x3e, 1,0,7,6,5,4,3,2); break;
5243         case 5: x = BITSWAP8(x^0xe8, 0,7,6,5,4,3,1,2); break;
5244         case 6: x = BITSWAP8(x^0x24, 2,1,0,7,6,5,4,3); break;
5245         case 7: x = BITSWAP8(x^0xa8, 4,3,0,2,1,7,6,5); break;
5246       }
5247      ROM[i] = x;
5248   }
5249   DRIVER_INIT_CALL(sfbonus_common);
5250}
5251
5252static DRIVER_INIT(classiced3)
5253{
5254   int i;
5255   UINT8 *ROM = memory_region(machine, "maincpu");
5256
5257   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5258   {
5259      UINT8 x = ROM[i];
5260
5261      switch(i & 7)
5262      {
5263         case 0: x = BITSWAP8(x^0x3b, 2,1,7,6,5,4,3,0); break;
5264         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
5265         case 2: x = BITSWAP8(x^0x24, 2,1,0,7,6,5,4,3); break;
5266         case 3: x = BITSWAP8(x^0xaa, 4,3,2,0,1,7,6,5); break;
5267         case 4: x = BITSWAP8(x^0x3e, 1,0,7,6,5,4,3,2); break;
5268         case 5: x = BITSWAP8(x^0xe8, 0,7,6,5,4,3,1,2); break;
5269         case 6: x = BITSWAP8(x^0x24, 2,1,0,7,6,5,4,3); break;
5270         case 7: x = BITSWAP8(x^0xae, 4,3,1,0,2,7,6,5); break;
5271       }
5272      ROM[i] = x;
5273   }
5274   DRIVER_INIT_CALL(sfbonus_common);
5275}
5276
5277static DRIVER_INIT(classicev)
5278{
5279   int i;
5280   UINT8 *ROM = memory_region(machine, "maincpu");
5281
5282   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5283   {
5284      UINT8 x = ROM[i];
5285
5286      switch(i & 7)
5287      {
5288         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5289         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5290         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
5291         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5292         case 4: x = BITSWAP8(x^0x3a, 2,1,7,6,5,4,3,0); break;
5293         case 5: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,1,0); break;
5294         case 6: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
5295         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5296       }
5297      ROM[i] = x;
5298   }
5299   DRIVER_INIT_CALL(sfbonus_common);
5300}  //
5301
5302static DRIVER_INIT(classicev3)
5303{
5304   int i;
5305   UINT8 *ROM = memory_region(machine, "maincpu");
5306
5307   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5308   {
5309      UINT8 x = ROM[i];
5310
5311      switch(i & 7)
5312      {
5313         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5314         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5315         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
5316         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5317         case 4: x = BITSWAP8(x^0x3f, 2,1,7,6,5,4,3,0); break;
5318         case 5: x = BITSWAP8(x^0xe9, 2,7,6,5,4,3,1,0); break;
5319         case 6: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
5320         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5321       }
5322      ROM[i] = x;
5323   }
5324   DRIVER_INIT_CALL(sfbonus_common);
5325}  //
5326
5327static DRIVER_INIT(seawlda)
5328{
5329   int i;
5330   UINT8 *ROM = memory_region(machine, "maincpu");
5331
5332   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5333   {
5334      UINT8 x = ROM[i];
5335
5336      switch(i & 7)
5337      {
5338         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5339         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5340         case 2: x = BITSWAP8(x^0x22, 0,2,1,7,6,5,4,3); break;
5341         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5342         case 4: x = BITSWAP8(x^0x3a, 0,1,7,6,5,4,3,2); break;
5343         case 5: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,1,0); break;
5344         case 6: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
5345         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5346       }
5347      ROM[i] = x;
5348   }
5349   DRIVER_INIT_CALL(sfbonus_common);
5350}  //
5351
5352static DRIVER_INIT(atworlda)
5353{
5354   int i;
5355   UINT8 *ROM = memory_region(machine, "maincpu");
5356
5357   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5358   {
5359      UINT8 x = ROM[i];
5360
5361      switch(i & 7)
5362      {
5363         case 0: x = BITSWAP8(x^0x3c, 1,0,7,6,5,4,3,2); break;
5364         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
5365         case 2: x = BITSWAP8(x^0x26, 1,0,2,7,6,5,4,3); break;
5366         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5367         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
5368         case 5: x = BITSWAP8(x^0xec, 1,7,6,5,4,3,0,2); break;
5369         case 6: x = BITSWAP8(x^0x22, 0,1,2,7,6,5,4,3); break;
5370         case 7: x = BITSWAP8(x^0xa9, 4,3,2,1,0,7,6,5); break;
5371       }
5372      ROM[i] = x;
5373   }
5374   DRIVER_INIT_CALL(sfbonus_common);
5375}  //
5376
5377
5378static DRIVER_INIT(act2000v2)
5379{
5380   int i;
5381   UINT8 *ROM = memory_region(machine, "maincpu");
5382
5383   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5384   {
5385      UINT8 x = ROM[i];
5386
5387      switch(i & 7)
5388      {
5389         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5390         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5391         case 2: x = BITSWAP8(x^0x21, 2,1,0,7,6,5,4,3); break;
5392         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5393         case 4: x = BITSWAP8(x^0x3a, 0,1,7,6,5,4,3,2); break;
5394         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
5395         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
5396         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5397       }
5398      ROM[i] = x;
5399   }
5400   DRIVER_INIT_CALL(sfbonus_common);
5401}
5402
5403static DRIVER_INIT(act2000v3)
5404{
5405   int i;
5406   UINT8 *ROM = memory_region(machine, "maincpu");
5407
5408   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5409   {
5410      UINT8 x = ROM[i];
5411
5412      switch(i & 7)
5413      {
5414         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5415         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5416         case 2: x = BITSWAP8(x^0x23, 2,1,0,7,6,5,4,3); break;
5417         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5418         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
5419         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
5420         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
5421         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5422       }
5423      ROM[i] = x;
5424   }
5425   DRIVER_INIT_CALL(sfbonus_common);
5426}
5427
5428static DRIVER_INIT(act2000d)
5429{
5430   int i;
5431   UINT8 *ROM = memory_region(machine, "maincpu");
5432
5433   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5434   {
5435      UINT8 x = ROM[i];
5436
5437      switch(i & 7)
5438      {
5439         case 0: x = BITSWAP8(x^0x3d, 0,2,7,6,5,4,3,1); break;
5440         case 1: x = BITSWAP8(x^0xef, 1,7,6,5,4,3,2,0); break;
5441         case 2: x = BITSWAP8(x^0x27, 0,2,1,7,6,5,4,3); break;
5442         case 3: x = BITSWAP8(x^0xad, 4,3,0,1,2,7,6,5); break;
5443         case 4: x = BITSWAP8(x^0x3b, 2,1,7,6,5,4,3,0); break;
5444         case 5: x = BITSWAP8(x^0xed, 0,7,6,5,4,3,2,1); break;
5445         case 6: x = BITSWAP8(x^0x27, 0,2,1,7,6,5,4,3); break;
5446         case 7: x = BITSWAP8(x^0xaa, 4,3,1,2,0,7,6,5); break;
5447       }
5448      ROM[i] = x;
5449   }
5450   DRIVER_INIT_CALL(sfbonus_common);
5451}
5452
5453static DRIVER_INIT(anibonus3)
5454{
5455   int i;
5456   UINT8 *ROM = memory_region(machine, "maincpu");
5457
5458   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5459   {
5460      UINT8 x = ROM[i];
5461
5462      switch(i & 7)
5463      {
5464         case 0: x = BITSWAP8(x^0x33, 0,3,7,6,5,2,1,4); break;
5465         case 1: x = BITSWAP8(x^0xff, 3,7,6,5,1,0,4,2); break;
5466         case 2: x = BITSWAP8(x^0x36, 4,2,3,7,6,5,1,0); break;
5467         case 3: x = BITSWAP8(x^0xa8, 3,2,4,0,1,7,6,5); break;
5468         case 4: x = BITSWAP8(x^0x2c, 0,1,7,6,5,2,4,3); break;
5469         case 5: x = BITSWAP8(x^0xff, 3,7,6,5,1,0,4,2); break;
5470         case 6: x = BITSWAP8(x^0x26, 2,4,3,7,6,5,1,0); break;
5471         case 7: x = BITSWAP8(x^0xbe, 4,1,3,0,2,7,6,5); break;
5472       }
5473      ROM[i] = x;
5474   }
5475   DRIVER_INIT_CALL(sfbonus_common);
5476}
5477
5478static DRIVER_INIT(fruitcar2)
5479{
5480   int i;
5481   UINT8 *ROM = memory_region(machine, "maincpu");
5482
5483   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5484   {
5485      UINT8 x = ROM[i];
5486
5487      switch(i & 7)
5488      {
5489         case 0: x = BITSWAP8(x^0x33, 0,3,7,6,5,2,1,4); break;
5490         case 1: x = BITSWAP8(x^0xff, 3,7,6,5,1,0,4,2); break;
5491         case 2: x = BITSWAP8(x^0x36, 4,2,3,7,6,5,1,0); break;
5492         case 3: x = BITSWAP8(x^0xa8, 3,2,4,0,1,7,6,5); break;
5493         case 4: x = BITSWAP8(x^0x2c, 0,1,7,6,5,2,4,3); break;
5494         case 5: x = BITSWAP8(x^0xff, 3,7,6,5,1,0,4,2); break;
5495         case 6: x = BITSWAP8(x^0x26, 2,4,3,7,6,5,1,0); break;
5496         case 7: x = BITSWAP8(x^0xbe, 4,1,3,0,2,7,6,5); break;
5497       }
5498      ROM[i] = x;
5499   }
5500   DRIVER_INIT_CALL(sfbonus_common);
5501}//
5502
5503static DRIVER_INIT(fruitcar3)
5504{
5505   int i;
5506   UINT8 *ROM = memory_region(machine, "maincpu");
5507
5508   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5509   {
5510      UINT8 x = ROM[i];
5511
5512      switch(i & 7)
5513      {
5514         case 0: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
5515         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
5516         case 2: x = BITSWAP8(x^0x21, 0,2,1,7,6,5,4,3); break;
5517         case 3: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5518         case 4: x = BITSWAP8(x^0x3d, 2,1,7,6,5,4,3,0); break;
5519         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
5520         case 6: x = BITSWAP8(x^0x21, 0,2,1,7,6,5,4,3); break;
5521         case 7: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5522       }
5523      ROM[i] = x;
5524   }
5525   DRIVER_INIT_CALL(sfbonus_common);
5526}//
5527
5528static DRIVER_INIT(moneymacv)
5529{
5530   int i;
5531   UINT8 *ROM = memory_region(machine, "maincpu");
5532
5533   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5534   {
5535      UINT8 x = ROM[i];
5536
5537      switch(i & 7)
5538      {
5539         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
5540         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
5541         case 2: x = BITSWAP8(x^0x23, 0,2,1,7,6,5,4,3); break;
5542         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5543         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
5544         case 5: x = BITSWAP8(x^0xeb, 0,7,6,5,4,3,2,1); break;
5545         case 6: x = BITSWAP8(x^0x23, 1,0,2,7,6,5,4,3); break;
5546         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5547       }
5548      ROM[i] = x;
5549   }
5550   DRIVER_INIT_CALL(sfbonus_common);
5551}//
5552
5553
5554static DRIVER_INIT(moneymacd)
5555{
5556   int i;
5557   UINT8 *ROM = memory_region(machine, "maincpu");
5558
5559   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5560   {
5561      UINT8 x = ROM[i];
5562
5563      switch(i & 7)
5564      {
5565         case 0: x = BITSWAP8(x^0x3a, 1,0,7,6,5,4,3,2); break;
5566         case 1: x = BITSWAP8(x^0xe9, 0,7,6,5,4,3,1,2); break;
5567         case 2: x = BITSWAP8(x^0x26, 0,2,1,7,6,5,4,3); break;
5568         case 3: x = BITSWAP8(x^0xaf, 4,3,1,2,0,7,6,5); break;
5569         case 4: x = BITSWAP8(x^0x3d, 0,2,7,6,5,4,3,1); break;
5570         case 5: x = BITSWAP8(x^0xe9, 0,7,6,5,4,3,1,2); break;
5571         case 6: x = BITSWAP8(x^0x23, 0,1,2,7,6,5,4,3); break;
5572         case 7: x = BITSWAP8(x^0xae, 4,3,2,0,1,7,6,5); break;
5573       }
5574      ROM[i] = x;
5575   }
5576   DRIVER_INIT_CALL(sfbonus_common);
5577}//
5578
5579static DRIVER_INIT(pirpok2d)
5580{
5581   int i;
5582   UINT8 *ROM = memory_region(machine, "maincpu");
5583
5584   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5585   {
5586      UINT8 x = ROM[i];
5587
5588      switch(i & 7)
5589      {
5590         case 0: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
5591         case 1: x = BITSWAP8(x^0xed, 0,7,6,5,4,3,2,1); break;
5592         case 2: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
5593         case 3: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5594         case 4: x = BITSWAP8(x^0x38, 0,2,7,6,5,4,3,1); break;
5595         case 5: x = BITSWAP8(x^0xed, 1,7,6,5,4,3,0,2); break;
5596         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
5597         case 7: x = BITSWAP8(x^0xae, 4,3,1,2,0,7,6,5); break;
5598       }
5599      ROM[i] = x;
5600   }
5601   DRIVER_INIT_CALL(sfbonus_common);
5602}//
5603
5604static DRIVER_INIT(pirpok2v)
5605{
5606   int i;
5607   UINT8 *ROM = memory_region(machine, "maincpu");
5608
5609   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5610   {
5611      UINT8 x = ROM[i];
5612
5613      switch(i & 7)
5614      {
5615         case 0: x = BITSWAP8(x^0x3c, 1,0,7,6,5,4,3,2); break;
5616         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
5617         case 2: x = BITSWAP8(x^0x23, 2,0,1,7,6,5,4,3); break;
5618         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5619         case 4: x = BITSWAP8(x^0x3e, 2,1,7,6,5,4,3,0); break;
5620         case 5: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,1,0); break;
5621         case 6: x = BITSWAP8(x^0x22, 0,1,2,7,6,5,4,3); break;
5622         case 7: x = BITSWAP8(x^0xa9, 4,3,2,1,0,7,6,5); break;
5623       }
5624      ROM[i] = x;
5625   }
5626   DRIVER_INIT_CALL(sfbonus_common);
5627}
5628
5629static DRIVER_INIT(pirpok2v2)
5630{
5631   int i;
5632   UINT8 *ROM = memory_region(machine, "maincpu");
5633
5634   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5635   {
5636      UINT8 x = ROM[i];
5637
5638      switch(i & 7)
5639      {
5640         case 0: x = BITSWAP8(x^0x3c, 1,0,7,6,5,4,3,2); break;
5641         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
5642         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
5643         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5644         case 4: x = BITSWAP8(x^0x3a, 2,1,7,6,5,4,3,0); break;
5645         case 5: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,1,0); break;
5646         case 6: x = BITSWAP8(x^0x22, 0,1,2,7,6,5,4,3); break;
5647         case 7: x = BITSWAP8(x^0xa9, 4,3,2,1,0,7,6,5); break;
5648       }
5649      ROM[i] = x;
5650   }
5651   DRIVER_INIT_CALL(sfbonus_common);
5652} //
5653
5654static DRIVER_INIT(dblchald)
5655{
5656   int i;
5657   UINT8 *ROM = memory_region(machine, "maincpu");
5658
5659   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5660   {
5661      UINT8 x = ROM[i];
5662
5663      switch(i & 7)
5664      {
5665         case 0: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
5666         case 1: x = BITSWAP8(x^0xed, 0,7,6,5,4,3,2,1); break;
5667         case 2: x = BITSWAP8(x^0x27, 0,2,1,7,6,5,4,3); break;
5668         case 3: x = BITSWAP8(x^0xae, 4,3,1,0,2,7,6,5); break;
5669         case 4: x = BITSWAP8(x^0x3b, 2,1,7,6,5,4,3,0); break;
5670         case 5: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
5671         case 6: x = BITSWAP8(x^0x27, 0,2,1,7,6,5,4,3); break;
5672         case 7: x = BITSWAP8(x^0xae, 4,3,1,2,0,7,6,5); break;
5673       }
5674      ROM[i] = x;
5675   }
5676   DRIVER_INIT_CALL(sfbonus_common);
5677}
5678
5679static DRIVER_INIT(dblchalv)
5680{
5681   int i;
5682   UINT8 *ROM = memory_region(machine, "maincpu");
5683
5684   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5685   {
5686      UINT8 x = ROM[i];
5687
5688      switch(i & 7)
5689      {
5690         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5691         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5692         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
5693         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5694         case 4: x = BITSWAP8(x^0x3f, 1,0,7,6,5,4,3,2); break;
5695         case 5: x = BITSWAP8(x^0xec, 1,7,6,5,4,3,0,2); break;
5696         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
5697         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5698       }
5699      ROM[i] = x;
5700   }
5701   DRIVER_INIT_CALL(sfbonus_common);
5702} //
5703
5704static DRIVER_INIT(abnudged)
5705{
5706   int i;
5707   UINT8 *ROM = memory_region(machine, "maincpu");
5708
5709   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5710   {
5711      UINT8 x = ROM[i];
5712
5713      switch(i & 7)
5714      {
5715         case 0: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
5716         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
5717         case 2: x = BITSWAP8(x^0x21, 0,2,1,7,6,5,4,3); break;
5718         case 3: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5719         case 4: x = BITSWAP8(x^0x3d, 2,1,7,6,5,4,3,0); break;
5720         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
5721         case 6: x = BITSWAP8(x^0x21, 0,2,1,7,6,5,4,3); break;
5722         case 7: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5723       }
5724      ROM[i] = x;
5725   }
5726   DRIVER_INIT_CALL(sfbonus_common);
5727}
5728
5729
5730static DRIVER_INIT(abnudgev)
5731{
5732   int i;
5733   UINT8 *ROM = memory_region(machine, "maincpu");
5734
5735   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5736   {
5737      UINT8 x = ROM[i];
5738
5739      switch(i & 7)
5740      {
5741         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5742         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5743         case 2: x = BITSWAP8(x^0x21, 2,1,0,7,6,5,4,3); break;
5744         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5745         case 4: x = BITSWAP8(x^0x3f, 0,1,7,6,5,4,3,2); break;
5746         case 5: x = BITSWAP8(x^0xee, 1,7,6,5,4,3,0,2); break;
5747         case 6: x = BITSWAP8(x^0x25, 1,0,2,7,6,5,4,3); break;
5748         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5749       }
5750      ROM[i] = x;
5751   }
5752   DRIVER_INIT_CALL(sfbonus_common);
5753}
5754
5755static DRIVER_INIT(pickwind)
5756{
5757   int i;
5758   UINT8 *ROM = memory_region(machine, "maincpu");
5759
5760   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5761   {
5762      UINT8 x = ROM[i];
5763
5764      switch(i & 7)
5765      {
5766         case 0: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
5767         case 1: x = BITSWAP8(x^0xed, 0,7,6,5,4,3,2,1); break;
5768         case 2: x = BITSWAP8(x^0x27, 0,2,1,7,6,5,4,3); break;
5769         case 3: x = BITSWAP8(x^0xae, 4,3,1,0,2,7,6,5); break;
5770         case 4: x = BITSWAP8(x^0x3b, 2,1,7,6,5,4,3,0); break;
5771         case 5: x = BITSWAP8(x^0xe8, 0,7,6,5,4,3,1,2); break;
5772         case 6: x = BITSWAP8(x^0x27, 0,2,1,7,6,5,4,3); break;
5773         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5774       }
5775      ROM[i] = x;
5776   }
5777   DRIVER_INIT_CALL(sfbonus_common);
5778} //
5779
5780static DRIVER_INIT(pickwinv)
5781{
5782   int i;
5783   UINT8 *ROM = memory_region(machine, "maincpu");
5784
5785   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5786   {
5787      UINT8 x = ROM[i];
5788
5789      switch(i & 7)
5790      {
5791         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5792         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5793         case 2: x = BITSWAP8(x^0x26, 2,0,1,7,6,5,4,3); break;
5794         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5795         case 4: x = BITSWAP8(x^0x3b, 1,0,7,6,5,4,3,2); break;
5796         case 5: x = BITSWAP8(x^0xee, 1,7,6,5,4,3,0,2); break;
5797         case 6: x = BITSWAP8(x^0x25, 1,0,2,7,6,5,4,3); break;
5798         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5799       }
5800      ROM[i] = x;
5801   }
5802   DRIVER_INIT_CALL(sfbonus_common);
5803}
5804
5805
5806static DRIVER_INIT(pickwinv2)
5807{
5808   int i;
5809   UINT8 *ROM = memory_region(machine, "maincpu");
5810
5811   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5812   {
5813      UINT8 x = ROM[i];
5814
5815      switch(i & 7)
5816      {
5817         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
5818         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
5819         case 2: x = BITSWAP8(x^0x26, 2,0,1,7,6,5,4,3); break;
5820         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5821         case 4: x = BITSWAP8(x^0x3b, 1,0,7,6,5,4,3,2); break;
5822         case 5: x = BITSWAP8(x^0xee, 1,7,6,5,4,3,0,2); break;
5823         case 6: x = BITSWAP8(x^0x23, 1,0,2,7,6,5,4,3); break;
5824         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5825       }
5826      ROM[i] = x;
5827   }
5828   DRIVER_INIT_CALL(sfbonus_common);
5829}
5830
5831static DRIVER_INIT(anithuntd)
5832{
5833   int i;
5834   UINT8 *ROM = memory_region(machine, "maincpu");
5835
5836   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5837   {
5838      UINT8 x = ROM[i];
5839
5840      switch(i & 7)
5841      {
5842         case 0: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
5843         case 1: x = BITSWAP8(x^0xee, 0,7,6,5,4,3,2,1); break;
5844         case 2: x = BITSWAP8(x^0x21, 0,2,1,7,6,5,4,3); break;
5845         case 3: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5846         case 4: x = BITSWAP8(x^0x3d, 2,1,7,6,5,4,3,0); break;
5847         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
5848         case 6: x = BITSWAP8(x^0x21, 0,2,1,7,6,5,4,3); break;
5849         case 7: x = BITSWAP8(x^0xae, 4,3,1,2,0,7,6,5); break;
5850       }
5851      ROM[i] = x;
5852   }
5853   DRIVER_INIT_CALL(sfbonus_common);
5854}
5855
5856static DRIVER_INIT(anithuntv)
5857{
5858   int i;
5859   UINT8 *ROM = memory_region(machine, "maincpu");
5860
5861   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5862   {
5863      UINT8 x = ROM[i];
5864
5865      switch(i & 7)
5866      {
5867         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5868         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5869         case 2: x = BITSWAP8(x^0x23, 2,0,1,7,6,5,4,3); break;
5870         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5871         case 4: x = BITSWAP8(x^0x3b, 1,0,7,6,5,4,3,2); break;
5872         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
5873         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
5874         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5875       }
5876      ROM[i] = x;
5877   }
5878   DRIVER_INIT_CALL(sfbonus_common);
5879}  //
5880
5881static DRIVER_INIT(anibonusd)
5882{
5883   int i;
5884   UINT8 *ROM = memory_region(machine, "maincpu");
5885
5886   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5887   {
5888      UINT8 x = ROM[i];
5889
5890      switch(i & 7)
5891      {
5892         case 0: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
5893         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
5894         case 2: x = BITSWAP8(x^0x21, 0,2,1,7,6,5,4,3); break;
5895         case 3: x = BITSWAP8(x^0xa8, 4,3,0,1,2,7,6,5); break;
5896         case 4: x = BITSWAP8(x^0x3d, 2,1,7,6,5,4,3,0); break;
5897         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
5898         case 6: x = BITSWAP8(x^0x21, 0,2,1,7,6,5,4,3); break;
5899         case 7: x = BITSWAP8(x^0xaa,4,3,1,2,0,7,6,5); break;
5900       }
5901      ROM[i] = x;
5902   }
5903   DRIVER_INIT_CALL(sfbonus_common);
5904}
5905
5906static DRIVER_INIT(anibonusv)
5907{
5908   int i;
5909   UINT8 *ROM = memory_region(machine, "maincpu");
5910
5911   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5912   {
5913      UINT8 x = ROM[i];
5914
5915      switch(i & 7)
5916      {
5917         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
5918         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
5919         case 2: x = BITSWAP8(x^0x21, 2,1,0,7,6,5,4,3); break;
5920         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5921         case 4: x = BITSWAP8(x^0x3f, 0,1,7,6,5,4,3,2); break;
5922         case 5: x = BITSWAP8(x^0xec, 1,7,6,5,4,3,0,2); break;
5923         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
5924         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
5925       }
5926      ROM[i] = x;
5927   }
5928   DRIVER_INIT_CALL(sfbonus_common);
5929}
5930
5931static DRIVER_INIT(anibonusv3)
5932{
5933   int i;
5934   UINT8 *ROM = memory_region(machine, "maincpu");
5935
5936   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5937   {
5938      UINT8 x = ROM[i];
5939
5940      switch(i & 7)
5941      {
5942         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
5943         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
5944         case 2: x = BITSWAP8(x^0x21, 2,1,0,7,6,5,4,3); break;
5945         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5946         case 4: x = BITSWAP8(x^0x3f, 0,1,7,6,5,4,3,2); break;
5947         case 5: x = BITSWAP8(x^0xee, 1,7,6,5,4,3,0,2); break;
5948         case 6: x = BITSWAP8(x^0x23, 1,0,2,7,6,5,4,3); break;
5949         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5950       }
5951      ROM[i] = x;
5952   }
5953   DRIVER_INIT_CALL(sfbonus_common);
5954}
5955
5956static DRIVER_INIT(hldspin1d)
5957{
5958   int i;
5959   UINT8 *ROM = memory_region(machine, "maincpu");
5960
5961   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5962   {
5963      UINT8 x = ROM[i];
5964
5965      switch(i & 7)
5966      {
5967         case 0: x = BITSWAP8(x^0x38, 0,1,7,6,5,4,3,2); break;
5968         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
5969         case 2: x = BITSWAP8(x^0x27, 1,0,2,7,6,5,4,3); break;
5970         case 3: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
5971         case 4: x = BITSWAP8(x^0x3e, 0,2,7,6,5,4,3,1); break;
5972         case 5: x = BITSWAP8(x^0xeb, 1,7,6,5,4,3,0,2); break;
5973         case 6: x = BITSWAP8(x^0x27, 1,0,2,7,6,5,4,3); break;
5974         case 7: x = BITSWAP8(x^0xae,  4,3,1,2,0,7,6,5); break;
5975       }
5976      ROM[i] = x;
5977   }
5978   DRIVER_INIT_CALL(sfbonus_common);
5979}
5980
5981 static DRIVER_INIT(hldspin1v)
5982{
5983   int i;
5984   UINT8 *ROM = memory_region(machine, "maincpu");
5985
5986   for(i=0;i<memory_region_length(machine, "maincpu");i++)
5987   {
5988      UINT8 x = ROM[i];
5989
5990      switch(i & 7)
5991      {
5992         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
5993         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
5994         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
5995         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
5996         case 4: x = BITSWAP8(x^0x3f, 2,1,7,6,5,4,3,0); break;
5997         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
5998         case 6: x = BITSWAP8(x^0x26, 2,1,0,7,6,5,4,3); break;
5999         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
6000       }
6001      ROM[i] = x;
6002   }
6003   DRIVER_INIT_CALL(sfbonus_common);
6004}
6005
6006
6007static DRIVER_INIT(parrot3d)
6008{
6009   int i;
6010   UINT8 *ROM = memory_region(machine, "maincpu");
6011
6012   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6013   {
6014      UINT8 x = ROM[i];
6015
6016      switch(i & 7)
6017      {
6018         case 0: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6019         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
6020         case 2: x = BITSWAP8(x^0x27, 0,2,1,7,6,5,4,3); break;
6021         case 3: x = BITSWAP8(x^0xad, 4,3,0,1,2,7,6,5); break;
6022         case 4: x = BITSWAP8(x^0x3b, 2,1,7,6,5,4,3,0); break;
6023         case 5: x = BITSWAP8(x^0xee, 2,7,6,5,4,3,1,0); break;
6024         case 6: x = BITSWAP8(x^0x27, 0,2,1,7,6,5,4,3); break;
6025         case 7: x = BITSWAP8(x^0xaa, 4,3,1,2,0,7,6,5); break;
6026       }
6027      ROM[i] = x;
6028   }
6029   DRIVER_INIT_CALL(sfbonus_common);
6030}
6031
6032static DRIVER_INIT(parrot3v)
6033{
6034   int i;
6035   UINT8 *ROM = memory_region(machine, "maincpu");
6036
6037   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6038   {
6039      UINT8 x = ROM[i];
6040
6041      switch(i & 7)
6042      {
6043         case 0: x = BITSWAP8(x^0x3c, 1,0,7,6,5,4,3,2); break;
6044         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
6045         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break; //
6046         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6047         case 4: x = BITSWAP8(x^0x3f, 2,1,7,6,5,4,3,0); break;
6048         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
6049         case 6: x = BITSWAP8(x^0x26, 0,1,2,7,6,5,4,3); break;
6050         case 7: x = BITSWAP8(x^0xa9, 4,3,2,1,0,7,6,5); break;
6051       }
6052      ROM[i] = x;
6053   }
6054   DRIVER_INIT_CALL(sfbonus_common);
6055}
6056
6057static DRIVER_INIT(parrot3v2)
6058{
6059   int i;
6060   UINT8 *ROM = memory_region(machine, "maincpu");
6061
6062   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6063   {
6064      UINT8 x = ROM[i];
6065
6066      switch(i & 7)
6067      {
6068         case 0: x = BITSWAP8(x^0x3c, 1,0,7,6,5,4,3,2); break;
6069         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
6070         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
6071         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6072         case 4: x = BITSWAP8(x^0x3f, 2,1,7,6,5,4,3,0); break;
6073         case 5: x = BITSWAP8(x^0xe9, 2,7,6,5,4,3,1,0); break;
6074         case 6: x = BITSWAP8(x^0x22, 0,1,2,7,6,5,4,3); break;
6075         case 7: x = BITSWAP8(x^0xa9, 4,3,2,1,0,7,6,5); break;
6076       }
6077      ROM[i] = x;
6078   }
6079   DRIVER_INIT_CALL(sfbonus_common);
6080}
6081
6082static DRIVER_INIT(sfruitbd)
6083{
6084   int i;
6085   UINT8 *ROM = memory_region(machine, "maincpu");
6086
6087   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6088   {
6089      UINT8 x = ROM[i];
6090
6091      switch(i & 7)
6092      {
6093         case 0: x = BITSWAP8(x^0x3e, 1,0,7,6,5,4,3,2); break;
6094         case 1: x = BITSWAP8(x^0xed, 1,7,6,5,4,3,0,2); break;
6095         case 2: x = BITSWAP8(x^0x25, 2,0,1,7,6,5,4,3); break; //
6096         case 3: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
6097         case 4: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
6098         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
6099         case 6: x = BITSWAP8(x^0x25, 2,0,1,7,6,5,4,3); break;
6100         case 7: x = BITSWAP8(x^0xae, 4,3,1,2,0,7,6,5); break;
6101       }
6102      ROM[i] = x;
6103   }
6104   DRIVER_INIT_CALL(sfbonus_common);
6105}
6106
6107static DRIVER_INIT(sfruitbv)
6108{
6109   int i;
6110   UINT8 *ROM = memory_region(machine, "maincpu");
6111
6112   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6113   {
6114      UINT8 x = ROM[i];
6115
6116      switch(i & 7)
6117      {
6118         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6119         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6120         case 2: x = BITSWAP8(x^0x25, 2,1,0,7,6,5,4,3); break;
6121         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6122         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6123         case 5: x = BITSWAP8(x^0xec, 1,7,6,5,4,3,0,2); break;
6124         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6125         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6126       }
6127      ROM[i] = x;
6128   }
6129   DRIVER_INIT_CALL(sfbonus_common);
6130}
6131
6132static DRIVER_INIT(sfruitbv2)
6133{
6134   int i;
6135   UINT8 *ROM = memory_region(machine, "maincpu");
6136
6137   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6138   {
6139      UINT8 x = ROM[i];
6140
6141      switch(i & 7)
6142      {
6143         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6144         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6145         case 2: x = BITSWAP8(x^0x25, 2,1,0,7,6,5,4,3); break;
6146         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6147         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6148         case 5: x = BITSWAP8(x^0xee, 1,7,6,5,4,3,0,2); break;
6149         case 6: x = BITSWAP8(x^0x25, 1,0,2,7,6,5,4,3); break;
6150         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6151       }
6152      ROM[i] = x;
6153   }
6154   DRIVER_INIT_CALL(sfbonus_common);
6155}
6156
6157static DRIVER_INIT(sfbonusd)
6158{
6159   int i;
6160   UINT8 *ROM = memory_region(machine, "maincpu");
6161
6162   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6163   {
6164      UINT8 x = ROM[i];
6165
6166      switch(i & 7)
6167      {
6168         case 0: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6169         case 1: x = BITSWAP8(x^0xef, 1,7,6,5,4,3,0,2); break;
6170         case 2: x = BITSWAP8(x^0x24, 2,1,0,7,6,5,4,3); break;
6171         case 3: x = BITSWAP8(x^0xad, 4,3,0,1,2,7,6,5); break;
6172         case 4: x = BITSWAP8(x^0x3e, 1,0,7,6,5,4,3,2); break;
6173         case 5: x = BITSWAP8(x^0xeb, 2,7,6,5,4,3,1,0); break;
6174         case 6: x = BITSWAP8(x^0x24, 2,1,0,7,6,5,4,3); break;
6175         case 7: x = BITSWAP8(x^0xaa, 4,3,1,2,0,7,6,5); break;
6176       }
6177      ROM[i] = x;
6178   }
6179   DRIVER_INIT_CALL(sfbonus_common);
6180}
6181
6182static DRIVER_INIT(sfbonusv)
6183{
6184   int i;
6185   UINT8 *ROM = memory_region(machine, "maincpu");
6186
6187   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6188   {
6189      UINT8 x = ROM[i];
6190
6191      switch(i & 7)
6192      {
6193         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
6194         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
6195         case 2: x = BITSWAP8(x^0x25, 2,1,0,7,6,5,4,3); break; // 20176543
6196         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6197         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6198         case 5: x = BITSWAP8(x^0xee, 1,7,6,5,4,3,0,2); break;
6199         case 6: x = BITSWAP8(x^0x23, 1,0,2,7,6,5,4,3); break;
6200         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
6201       }
6202      ROM[i] = x;
6203   }
6204   DRIVER_INIT_CALL(sfbonus_common);
6205}
6206
6207static DRIVER_INIT(fb2ndv)
6208{
6209   int i;
6210   UINT8 *ROM = memory_region(machine, "maincpu");
6211
6212   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6213   {
6214      UINT8 x = ROM[i];
6215
6216      switch(i & 7)
6217      {
6218         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6219         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6220         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break; //
6221         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6222         case 4: x = BITSWAP8(x^0x3a, 2,1,7,6,5,4,3,0); break;
6223         case 5: x = BITSWAP8(x^0xec, 0,7,6,5,4,3,2,1); break;
6224         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6225         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6226       }
6227      ROM[i] = x;
6228   }
6229   DRIVER_INIT_CALL(sfbonus_common);
6230}
6231
6232static DRIVER_INIT(fb2ndd)
6233{
6234   int i;
6235   UINT8 *ROM = memory_region(machine, "maincpu");
6236
6237   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6238   {
6239      UINT8 x = ROM[i];
6240
6241      switch(i & 7)
6242      {
6243         case 0: x = BITSWAP8(x^0x3b, 1,0,7,6,5,4,3,2); break;
6244         case 1: x = BITSWAP8(x^0xeb, 1,7,6,5,4,3,0,2); break;
6245         case 2: x = BITSWAP8(x^0x25, 2,0,1,7,6,5,4,3); break; //
6246         case 3: x = BITSWAP8(x^0xad, 4,3,0,1,2,7,6,5); break;
6247         case 4: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
6248         case 5: x = BITSWAP8(x^0xeb, 2,7,6,5,4,3,1,0); break;
6249         case 6: x = BITSWAP8(x^0x25, 2,0,1,7,6,5,4,3); break;
6250         case 7: x = BITSWAP8(x^0xaa, 4,3,1,2,0,7,6,5); break;
6251       }
6252      ROM[i] = x;
6253   }
6254   DRIVER_INIT_CALL(sfbonus_common);
6255}
6256
6257static DRIVER_INIT(robadv2v1)
6258{
6259   int i;
6260   UINT8 *ROM = memory_region(machine, "maincpu");
6261
6262   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6263   {
6264      UINT8 x = ROM[i];
6265
6266      switch(i & 7)
6267      {
6268         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6269         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6270         case 2: x = BITSWAP8(x^0x21, 2,1,0,7,6,5,4,3); break;
6271         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6272         case 4: x = BITSWAP8(x^0x3a, 0,1,7,6,5,4,3,2); break;
6273         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
6274         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6275         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6276       }
6277      ROM[i] = x;
6278   }
6279   DRIVER_INIT_CALL(sfbonus_common);
6280}
6281
6282static DRIVER_INIT(robadv2v4)
6283{
6284   int i;
6285   UINT8 *ROM = memory_region(machine, "maincpu");
6286
6287   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6288   {
6289      UINT8 x = ROM[i];
6290
6291      switch(i & 7)
6292      {
6293         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6294         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6295         case 2: x = BITSWAP8(x^0x23, 2,1,0,7,6,5,4,3); break;
6296         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6297         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6298         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
6299         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6300         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6301       }
6302      ROM[i] = x;
6303   }
6304   DRIVER_INIT_CALL(sfbonus_common);
6305}
6306
6307static DRIVER_INIT(robadv2d)
6308{
6309   int i;
6310   UINT8 *ROM = memory_region(machine, "maincpu");
6311
6312   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6313   {
6314      UINT8 x = ROM[i];
6315
6316      switch(i & 7)
6317      {
6318         case 0: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
6319         case 1: x = BITSWAP8(x^0xe8, 0,7,6,5,4,3,1,2); break;
6320         case 2: x = BITSWAP8(x^0x24, 2,1,0,7,6,5,4,3); break;
6321         case 3: x = BITSWAP8(x^0xae, 4,3,1,0,2,7,6,5); break;
6322         case 4: x = BITSWAP8(x^0x3e, 1,0,7,6,5,4,3,2); break;
6323         case 5: x = BITSWAP8(x^0xed, 1,7,6,5,4,3,0,2); break;
6324         case 6: x = BITSWAP8(x^0x24, 2,1,0,7,6,5,4,3); break;
6325         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
6326       }
6327      ROM[i] = x;
6328   }
6329   DRIVER_INIT_CALL(sfbonus_common);
6330}
6331
6332static DRIVER_INIT(hldspin2d)
6333{
6334   int i;
6335   UINT8 *ROM = memory_region(machine, "maincpu");
6336
6337   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6338   {
6339      UINT8 x = ROM[i];
6340
6341      switch(i & 7)
6342      {
6343         case 0: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6344         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
6345         case 2: x = BITSWAP8(x^0x27, 1,0,2,7,6,5,4,3); break; //
6346         case 3: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
6347         case 4: x = BITSWAP8(x^0x3e, 0,2,7,6,5,4,3,1); break;
6348         case 5: x = BITSWAP8(x^0xeb, 1,7,6,5,4,3,0,2); break;
6349         case 6: x = BITSWAP8(x^0x27, 1,0,2,7,6,5,4,3); break;
6350         case 7: x = BITSWAP8(x^0xab, 4,3,1,2,0,7,6,5); break;
6351       }
6352      ROM[i] = x;
6353   }
6354   DRIVER_INIT_CALL(sfbonus_common);
6355}
6356
6357static DRIVER_INIT(hldspin2v)
6358{
6359   int i;
6360   UINT8 *ROM = memory_region(machine, "maincpu");
6361
6362   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6363   {
6364      UINT8 x = ROM[i];
6365
6366      switch(i & 7)
6367      {
6368         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6369         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6370         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break; //
6371         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6372         case 4: x = BITSWAP8(x^0x3f, 2,1,7,6,5,4,3,0); break;
6373         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
6374         case 6: x = BITSWAP8(x^0x23, 2,1,0,7,6,5,4,3); break;
6375         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6376       }
6377      ROM[i] = x;
6378   }
6379   DRIVER_INIT_CALL(sfbonus_common);
6380}
6381
6382static DRIVER_INIT(tighookv)
6383{
6384   int i;
6385   UINT8 *ROM = memory_region(machine, "maincpu");
6386
6387   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6388   {
6389      UINT8 x = ROM[i];
6390
6391      switch(i & 7)
6392      {
6393         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6394         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6395         case 2: x = BITSWAP8(x^0x26, 0,2,1,7,6,5,4,3); break;
6396         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6397         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6398         case 5: x = BITSWAP8(x^0xec, 0,7,6,5,4,3,2,1); break;
6399         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6400         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6401       }
6402      ROM[i] = x;
6403   }
6404   DRIVER_INIT_CALL(sfbonus_common);
6405}
6406
6407static DRIVER_INIT(tighookv2)
6408{
6409   int i;
6410   UINT8 *ROM = memory_region(machine, "maincpu");
6411
6412   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6413   {
6414      UINT8 x = ROM[i];
6415
6416      switch(i & 7)
6417      {
6418         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6419         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6420         case 2: x = BITSWAP8(x^0x23, 0,2,1,7,6,5,4,3); break; // 01276543
6421         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6422         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6423         case 5: x = BITSWAP8(x^0xea, 0,7,6,5,4,3,2,1); break;
6424         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6425         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6426       }
6427      ROM[i] = x;
6428   }
6429   DRIVER_INIT_CALL(sfbonus_common);
6430}
6431
6432static DRIVER_INIT(tighookd)
6433{
6434   int i;
6435   UINT8 *ROM = memory_region(machine, "maincpu");
6436
6437   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6438   {
6439      UINT8 x = ROM[i];
6440
6441      switch(i & 7)
6442      {
6443         case 0: x = BITSWAP8(x^0x3d, 0,1,7,6,5,4,3,2); break;
6444         case 1: x = BITSWAP8(x^0xed, 1,7,6,5,4,3,0,2); break;
6445         case 2: x = BITSWAP8(x^0x26, 2,1,0,7,6,5,4,3); break; //
6446         case 3: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
6447         case 4: x = BITSWAP8(x^0x3c, 1,0,7,6,5,4,3,2); break;
6448         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
6449         case 6: x = BITSWAP8(x^0x26, 2,1,0,7,6,5,4,3); break;
6450         case 7: x = BITSWAP8(x^0xae, 4,3,1,2,0,7,6,5); break;
6451       }
6452      ROM[i] = x;
6453   }
6454   DRIVER_INIT_CALL(sfbonus_common);
6455}
6456
6457static DRIVER_INIT(pir2001v)
6458{
6459   int i;
6460   UINT8 *ROM = memory_region(machine, "maincpu");
6461
6462   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6463   {
6464      UINT8 x = ROM[i];
6465
6466      switch(i & 7)
6467      {
6468         case 0: x = BITSWAP8(x^0x39, 1,0,7,6,5,4,3,2); break;
6469         case 1: x = BITSWAP8(x^0xea, 0,7,6,5,4,3,2,1); break;
6470         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
6471         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6472         case 4: x = BITSWAP8(x^0x3f, 2,1,7,6,5,4,3,0); break;
6473         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
6474         case 6: x = BITSWAP8(x^0x23, 0,1,2,7,6,5,4,3); break;
6475         case 7: x = BITSWAP8(x^0xac, 4,3,2,1,0,7,6,5); break;
6476       }
6477      ROM[i] = x;
6478   }
6479   DRIVER_INIT_CALL(sfbonus_common);
6480}
6481
6482static DRIVER_INIT(pir2001v2)
6483{
6484   int i;
6485   UINT8 *ROM = memory_region(machine, "maincpu");
6486
6487   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6488   {
6489      UINT8 x = ROM[i];
6490
6491      switch(i & 7)
6492      {
6493         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6494         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6495         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break; //
6496         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6497         case 4: x = BITSWAP8(x^0x39, 1,0,7,6,5,4,3,2); break;
6498         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
6499         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6500         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6501
6502       }
6503      ROM[i] = x;
6504   }
6505   DRIVER_INIT_CALL(sfbonus_common);
6506}
6507
6508static DRIVER_INIT(pir2001d)
6509{
6510   int i;
6511   UINT8 *ROM = memory_region(machine, "maincpu");
6512
6513   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6514   {
6515      UINT8 x = ROM[i];
6516
6517      switch(i & 7)
6518      {
6519         case 0: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
6520         case 1: x = BITSWAP8(x^0xeb, 0,7,6,5,4,3,2,1); break;
6521         case 2: x = BITSWAP8(x^0x27, 1,0,2,7,6,5,4,3); break; //
6522         case 3: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
6523         case 4: x = BITSWAP8(x^0x3e, 0,2,7,6,5,4,3,1); break;
6524         case 5: x = BITSWAP8(x^0xeb, 1,7,6,5,4,3,0,2); break;
6525         case 6: x = BITSWAP8(x^0x27, 1,0,2,7,6,5,4,3); break;
6526         case 7: x = BITSWAP8(x^0xae, 4,3,1,2,0,7,6,5); break;
6527
6528       }
6529      ROM[i] = x;
6530   }
6531   DRIVER_INIT_CALL(sfbonus_common);
6532}
6533
6534static DRIVER_INIT(pir2002d)
6535{
6536   int i;
6537   UINT8 *ROM = memory_region(machine, "maincpu");
6538
6539   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6540   {
6541      UINT8 x = ROM[i];
6542
6543      switch(i & 7)
6544      {
6545         case 0: x = BITSWAP8(x^0x3d, 2,0,7,6,5,4,3,1); break;
6546         case 1: x = BITSWAP8(x^0xef, 1,7,6,5,4,3,2,0); break;
6547         case 2: x = BITSWAP8(x^0x27, 0,2,1,7,6,5,4,3); break;
6548         case 3: x = BITSWAP8(x^0xae, 4,3,1,0,2,7,6,5); break;
6549         case 4: x = BITSWAP8(x^0x3b, 2,1,7,6,5,4,3,0); break;
6550         case 5: x = BITSWAP8(x^0xed, 0,7,6,5,4,3,2,1); break;
6551         case 6: x = BITSWAP8(x^0x27, 0,2,1,7,6,5,4,3); break;
6552         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
6553
6554       }
6555      ROM[i] = x;
6556   }
6557   DRIVER_INIT_CALL(sfbonus_common);
6558}
6559
6560static DRIVER_INIT(pir2002v)
6561{
6562   int i;
6563   UINT8 *ROM = memory_region(machine, "maincpu");
6564
6565   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6566   {
6567      UINT8 x = ROM[i];
6568
6569      switch(i & 7)
6570      {
6571         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6572         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6573         case 2: x = BITSWAP8(x^0x23, 2,0,1,7,6,5,4,3); break; //
6574         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6575         case 4: x = BITSWAP8(x^0x3b, 1,0,7,6,5,4,3,2); break;
6576         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
6577         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6578         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6579
6580       }
6581      ROM[i] = x;
6582   }
6583   DRIVER_INIT_CALL(sfbonus_common);
6584}
6585
6586static DRIVER_INIT(pir2002v2)
6587{
6588   int i;
6589   UINT8 *ROM = memory_region(machine, "maincpu");
6590
6591   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6592   {
6593      UINT8 x = ROM[i];
6594
6595      switch(i & 7)
6596      {
6597         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6598         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6599         case 2: x = BITSWAP8(x^0x26, 2,0,1,7,6,5,4,3); break; //
6600         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6601         case 4: x = BITSWAP8(x^0x3b, 1,0,7,6,5,4,3,2); break;
6602         case 5: x = BITSWAP8(x^0xec, 1,7,6,5,4,3,0,2); break;
6603         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6604         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6605
6606       }
6607      ROM[i] = x;
6608   }
6609   DRIVER_INIT_CALL(sfbonus_common);
6610}
6611
6612static DRIVER_INIT(fb2genv)
6613{
6614   int i;
6615   UINT8 *ROM = memory_region(machine, "maincpu");
6616
6617   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6618   {
6619      UINT8 x = ROM[i];
6620
6621      switch(i & 7)
6622      {
6623         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6624         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6625         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
6626         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6627         case 4: x = BITSWAP8(x^0x3f, 2,1,7,6,5,4,3,0); break;
6628         case 5: x = BITSWAP8(x^0xea, 0,7,6,5,4,3,2,1); break;
6629         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6630         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6631       }
6632      ROM[i] = x;
6633   }
6634   DRIVER_INIT_CALL(sfbonus_common);
6635}
6636
6637static DRIVER_INIT(fb2genv3)
6638{
6639   int i;
6640   UINT8 *ROM = memory_region(machine, "maincpu");
6641
6642   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6643   {
6644      UINT8 x = ROM[i];
6645
6646      switch(i & 7)
6647      {
6648         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6649         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6650         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
6651         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6652         case 4: x = BITSWAP8(x^0x3f, 2,1,7,6,5,4,3,0); break;
6653         case 5: x = BITSWAP8(x^0xeb, 0,7,6,5,4,3,2,1); break;
6654         case 6: x = BITSWAP8(x^0x25, 1,0,2,7,6,5,4,3); break;
6655         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6656       }
6657      ROM[i] = x;
6658   }
6659   DRIVER_INIT_CALL(sfbonus_common);
6660}
6661
6662static DRIVER_INIT(fb2gend)
6663{
6664   int i;
6665   UINT8 *ROM = memory_region(machine, "maincpu");
6666
6667   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6668   {
6669      UINT8 x = ROM[i];
6670
6671      switch(i & 7)
6672      {
6673         case 0: x = BITSWAP8(x^0x3d, 2,0,7,6,5,4,3,1); break;
6674         case 1: x = BITSWAP8(x^0xeb, 1,7,6,5,4,3,0,2); break;
6675         case 2: x = BITSWAP8(x^0x25, 2,0,1,7,6,5,4,3); break;
6676         case 3: x = BITSWAP8(x^0xad, 4,3,0,1,2,7,6,5); break;
6677         case 4: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
6678         case 5: x = BITSWAP8(x^0xeb, 2,7,6,5,4,3,1,0); break;
6679         case 6: x = BITSWAP8(x^0x25, 2,0,1,7,6,5,4,3); break;
6680         case 7: x = BITSWAP8(x^0xac, 4,3,2,1,0,7,6,5); break;
6681       }
6682      ROM[i] = x;
6683   }
6684   DRIVER_INIT_CALL(sfbonus_common);
6685}
6686
6687static DRIVER_INIT(fb4d)
6688{
6689   int i;
6690   UINT8 *ROM = memory_region(machine, "maincpu");
6691
6692   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6693   {
6694      UINT8 x = ROM[i];
6695
6696      switch(i & 7)
6697      {
6698         case 0: x = BITSWAP8(x^0x3d, 2,0,7,6,5,4,3,1); break;
6699         case 1: x = BITSWAP8(x^0xeb, 1,7,6,5,4,3,0,2); break;
6700         case 2: x = BITSWAP8(x^0x25, 2,0,1,7,6,5,4,3); break;
6701         case 3: x = BITSWAP8(x^0xad, 4,3,2,1,0,7,6,5); break;
6702         case 4: x = BITSWAP8(x^0x3c, 0,1,7,6,5,4,3,2); break;
6703         case 5: x = BITSWAP8(x^0xeb, 2,7,6,5,4,3,1,0); break;
6704         case 6: x = BITSWAP8(x^0x25, 2,0,1,7,6,5,4,3); break;
6705         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
6706       }
6707      ROM[i] = x;
6708   }
6709   DRIVER_INIT_CALL(sfbonus_common);
6710}
6711
6712static DRIVER_INIT(fb4v)
6713{
6714   int i;
6715   UINT8 *ROM = memory_region(machine, "maincpu");
6716
6717   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6718   {
6719      UINT8 x = ROM[i];
6720
6721      switch(i & 7)
6722      {
6723         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
6724         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
6725         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
6726         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6727         case 4: x = BITSWAP8(x^0x3f, 2,1,7,6,5,4,3,0); break;
6728         case 5: x = BITSWAP8(x^0xeb, 0,7,6,5,4,3,2,1); break;
6729         case 6: x = BITSWAP8(x^0x23, 1,0,2,7,6,5,4,3); break;
6730         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
6731       }
6732      ROM[i] = x;
6733   }
6734   DRIVER_INIT_CALL(sfbonus_common);
6735}
6736
6737static DRIVER_INIT(fb4v3)
6738{
6739   int i;
6740   UINT8 *ROM = memory_region(machine, "maincpu");
6741
6742   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6743   {
6744      UINT8 x = ROM[i];
6745
6746      switch(i & 7)
6747      {
6748         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6749         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6750         case 2: x = BITSWAP8(x^0x23, 2,0,1,7,6,5,4,3); break;
6751         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6752         case 4: x = BITSWAP8(x^0x3e, 2,1,7,6,5,4,3,0); break;
6753         case 5: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,1,0); break;
6754         case 6: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
6755         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6756       }
6757      ROM[i] = x;
6758   }
6759   DRIVER_INIT_CALL(sfbonus_common);
6760}
6761
6762#if 1
6763static DRIVER_INIT(fb5)
6764{
6765   int i;
6766   UINT8 *ROM = memory_region(machine, "maincpu");
6767
6768   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6769   {
6770      UINT8 x = ROM[i];
6771
6772      switch(i & 7)
6773      {
6774         case 0: x = BITSWAP8(x^0x20, 0,3,7,6,5,1,4,2); break;
6775         case 1: x = BITSWAP8(x^0xf1, 1,7,6,5,3,2,4,0); break;
6776         case 2: x = BITSWAP8(x^0x33, 2,3,1,7,6,5,0,4); break; //
6777         case 3: x = BITSWAP8(x^0xaf, 2,0,1,4,3,7,6,5); break;
6778         case 4: x = BITSWAP8(x^0x2d, 2,4,7,6,5,1,0,3); break;
6779         case 5: x = BITSWAP8(x^0xfb, 4,7,6,5,1,0,3,2); break;
6780         case 6: x = BITSWAP8(x^0x34, 2,0,4,7,6,5,3,1); break;
6781         case 7: x = BITSWAP8(x^0xb7, 1,0,3,2,4,7,6,5); break;
6782       }
6783      ROM[i] = x;
6784   }
6785   DRIVER_INIT_CALL(sfbonus_common);
6786}
6787
6788static DRIVER_INIT(fb5d)
6789{
6790   int i;
6791   UINT8 *ROM = memory_region(machine, "maincpu");
6792
6793   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6794   {
6795      UINT8 x = ROM[i];
6796
6797      switch(i & 7)
6798      {
6799         case 0: x = BITSWAP8(x^0x3e, 2,1,7,6,5,4,3,0); break;
6800         case 1: x = BITSWAP8(x^0xef, 1,7,6,5,4,3,2,0); break;
6801         case 2: x = BITSWAP8(x^0x24, 2,1,0,7,6,5,4,3); break;
6802         case 3: x = BITSWAP8(x^0xad, 4,3,0,1,2,7,6,5); break;
6803         case 4: x = BITSWAP8(x^0x3e, 1,0,7,6,5,4,3,2); break;
6804         case 5: x = BITSWAP8(x^0xeb, 2,7,6,5,4,3,1,0); break;
6805         case 6: x = BITSWAP8(x^0x24, 2,1,0,7,6,5,4,3); break;
6806         case 7: x = BITSWAP8(x^0xaa, 4,3,1,2,0,7,6,5); break;
6807       }
6808      ROM[i] = x;
6809   }
6810   DRIVER_INIT_CALL(sfbonus_common);
6811}
6812
6813static DRIVER_INIT(fb5v)
6814{
6815   int i;
6816   UINT8 *ROM = memory_region(machine, "maincpu");
6817
6818   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6819   {
6820      UINT8 x = ROM[i];
6821
6822      switch(i & 7)
6823      {
6824         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6825         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6826         case 2: x = BITSWAP8(x^0x22, 2,0,1,7,6,5,4,3); break;
6827         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6828         case 4: x = BITSWAP8(x^0x3f, 1,0,7,6,5,4,3,2); break;
6829         case 5: x = BITSWAP8(x^0xee, 1,7,6,5,4,3,0,2); break;
6830         case 6: x = BITSWAP8(x^0x25, 1,0,2,7,6,5,4,3); break;
6831         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6832       }
6833      ROM[i] = x;
6834   }
6835   DRIVER_INIT_CALL(sfbonus_common);
6836}
6837
6838static DRIVER_INIT(fb6)
6839{
6840   int i;
6841   UINT8 *ROM = memory_region(machine, "maincpu");
6842
6843   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6844   {
6845      UINT8 x = ROM[i];
6846
6847      switch(i & 7)
6848      {
6849         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6850         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6851         case 2: x = BITSWAP8(x^0x23, 2,1,0,7,6,5,4,3); break;
6852         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6853         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6854         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
6855         case 6: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
6856         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6857       }
6858      ROM[i] = x;
6859   }
6860   DRIVER_INIT_CALL(sfbonus_common);
6861}
6862
6863
6864
6865 static DRIVER_INIT(fb6d)
6866{
6867   int i;
6868   UINT8 *ROM = memory_region(machine, "maincpu");
6869
6870   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6871   {
6872      UINT8 x = ROM[i];
6873
6874      switch(i & 7)
6875      {
6876         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6877         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6878         case 2: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
6879         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6880         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6881         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
6882         case 6: x = BITSWAP8(x^0x25, 1,0,2,7,6,5,4,3); break;
6883         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6884       }
6885      ROM[i] = x;
6886   }
6887   DRIVER_INIT_CALL(sfbonus_common);
6888}
6889
6890static DRIVER_INIT(fb6v)
6891{
6892   int i;
6893   UINT8 *ROM = memory_region(machine, "maincpu");
6894
6895   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6896   {
6897      UINT8 x = ROM[i];
6898
6899      switch(i & 7)
6900      {
6901         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6902         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6903         case 2: x = BITSWAP8(x^0x23, 0,2,1,7,6,5,4,3); break;
6904         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6905         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6906         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
6907         case 6: x = BITSWAP8(x^0x23, 2,1,0,7,6,5,4,3); break;
6908         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6909       }
6910      ROM[i] = x;
6911   }
6912   DRIVER_INIT_CALL(sfbonus_common);
6913}
6914
6915static DRIVER_INIT(fb6v3)
6916{
6917   int i;
6918   UINT8 *ROM = memory_region(machine, "maincpu");
6919
6920   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6921   {
6922      UINT8 x = ROM[i];
6923
6924      switch(i & 7)
6925      {
6926         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6927         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6928         case 2: x = BITSWAP8(x^0x26, 0,2,1,7,6,5,4,3); break;
6929         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6930         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6931         case 5: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,1,0); break;
6932         case 6: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
6933         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6934       }
6935      ROM[i] = x;
6936   }
6937   DRIVER_INIT_CALL(sfbonus_common);
6938}
6939
6940static DRIVER_INIT(fb6s)
6941{
6942   int i;
6943   UINT8 *ROM = memory_region(machine, "maincpu");
6944
6945   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6946   {
6947      UINT8 x = ROM[i];
6948
6949      switch(i & 7)
6950      {
6951         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6952         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6953         case 2: x = BITSWAP8(x^0x24, 0,2,1,7,6,5,4,3); break;
6954         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6955         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6956         case 5: x = BITSWAP8(x^0xec, 0,7,6,5,4,3,2,1); break;
6957         case 6: x = BITSWAP8(x^0x25, 1,0,2,7,6,5,4,3); break;
6958         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6959       }
6960      ROM[i] = x;
6961   }
6962   DRIVER_INIT_CALL(sfbonus_common);
6963}
6964
6965static DRIVER_INIT(version4)
6966{
6967   int i;
6968   UINT8 *ROM = memory_region(machine, "maincpu");
6969
6970   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6971   {
6972      UINT8 x = ROM[i];
6973
6974      switch(i & 7)
6975      {
6976         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
6977         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
6978         case 2: x = BITSWAP8(x^0x26, 1,0,2,7,6,5,4,3); break;
6979         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
6980         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
6981         case 5: x = BITSWAP8(x^0xec, 1,7,6,5,4,3,0,2); break;
6982         case 6: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
6983         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
6984       }
6985      ROM[i] = x;
6986   }
6987   DRIVER_INIT_CALL(sfbonus_common);
6988}
6989
6990static DRIVER_INIT(bugfever)
6991{
6992   int i;
6993   UINT8 *ROM = memory_region(machine, "maincpu");
6994
6995   for(i=0;i<memory_region_length(machine, "maincpu");i++)
6996   {
6997      UINT8 x = ROM[i];
6998
6999      switch(i & 7)
7000      {
7001         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
7002         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
7003         case 2: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
7004         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
7005         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
7006         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
7007         case 6: x = BITSWAP8(x^0x23, 1,0,2,7,6,5,4,3); break;
7008         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
7009       }
7010      ROM[i] = x;
7011   }
7012   DRIVER_INIT_CALL(sfbonus_common);
7013}
7014
7015static DRIVER_INIT(bugfeverd)
7016{
7017   int i;
7018   UINT8 *ROM = memory_region(machine, "maincpu");
7019
7020   for(i=0;i<memory_region_length(machine, "maincpu");i++)
7021   {
7022      UINT8 x = ROM[i];
7023
7024      switch(i & 7)
7025      {
7026         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
7027         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
7028         case 2: x = BITSWAP8(x^0x26, 1,0,2,7,6,5,4,3); break;
7029         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
7030         case 4: x = BITSWAP8(x^0x3a, 0,1,7,6,5,4,3,2); break;
7031         case 5: x = BITSWAP8(x^0xe8, 1,7,6,5,4,3,0,2); break;
7032         case 6: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
7033         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
7034       }
7035      ROM[i] = x;
7036   }
7037   DRIVER_INIT_CALL(sfbonus_common);
7038}
7039
7040static DRIVER_INIT(bugfeverv)
7041{
7042   int i;
7043   UINT8 *ROM = memory_region(machine, "maincpu");
7044
7045   for(i=0;i<memory_region_length(machine, "maincpu");i++)
7046   {
7047      UINT8 x = ROM[i];
7048
7049      switch(i & 7)
7050      {
7051         case 0: x = BITSWAP8(x^0x3c, 1,0,7,6,5,4,3,2); break;
7052         case 1: x = BITSWAP8(x^0xef, 0,7,6,5,4,3,2,1); break;
7053         case 2: x = BITSWAP8(x^0x22, 0,2,1,7,6,5,4,3); break;
7054         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
7055         case 4: x = BITSWAP8(x^0x3a, 0,1,7,6,5,4,3,2); break;
7056         case 5: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,1,0); break;
7057         case 6: x = BITSWAP8(x^0x22, 0,1,2,7,6,5,4,3); break;
7058         case 7: x = BITSWAP8(x^0xa9, 4,3,2,1,0,7,6,5); break;
7059       }
7060      ROM[i] = x;
7061   }
7062   DRIVER_INIT_CALL(sfbonus_common);
7063}
7064
7065static DRIVER_INIT(bugfeverv2)
7066{
7067   int i;
7068   UINT8 *ROM = memory_region(machine, "maincpu");
7069
7070   for(i=0;i<memory_region_length(machine, "maincpu");i++)
7071   {
7072      UINT8 x = ROM[i];
7073
7074      switch(i & 7)
7075      {
7076         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
7077         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
7078         case 2: x = BITSWAP8(x^0x23, 0,2,1,7,6,5,4,3); break;
7079         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
7080         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
7081         case 5: x = BITSWAP8(x^0xed, 2,7,6,5,4,3,1,0); break;
7082         case 6: x = BITSWAP8(x^0x26, 2,1,0,7,6,5,4,3); break;
7083         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
7084       }
7085      ROM[i] = x;
7086   }
7087   DRIVER_INIT_CALL(sfbonus_common);
7088}
7089
7090static DRIVER_INIT(dvisland)
7091{
7092   int i;
7093   UINT8 *ROM = memory_region(machine, "maincpu");
7094
7095   for(i=0;i<memory_region_length(machine, "maincpu");i++)
7096   {
7097      UINT8 x = ROM[i];
7098
7099      switch(i & 7)
7100      {
7101         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
7102         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
7103         case 2: x = BITSWAP8(x^0x21, 1,0,2,7,6,5,4,3); break;
7104         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
7105         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
7106         case 5: x = BITSWAP8(x^0xe9, 1,7,6,5,4,3,0,2); break;
7107         case 6: x = BITSWAP8(x^0x23, 2,1,0,7,6,5,4,3); break;
7108         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
7109       }
7110      ROM[i] = x;
7111   }
7112   DRIVER_INIT_CALL(sfbonus_common);
7113}
7114
7115
7116static DRIVER_INIT(funriver)
7117{
7118   int i;
7119   UINT8 *ROM = memory_region(machine, "maincpu");
7120
7121   for(i=0;i<memory_region_length(machine, "maincpu");i++)
7122   {
7123      UINT8 x = ROM[i];
7124
7125      switch(i & 7)
7126      {
7127         case 0: x = BITSWAP8(x^0x3c, 1,2,7,6,5,4,3,0); break;
7128         case 1: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,0,1); break;
7129         case 2: x = BITSWAP8(x^0x24, 0,2,1,7,6,5,4,3); break;
7130         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
7131         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
7132         case 5: x = BITSWAP8(x^0xec, 0,7,6,5,4,3,2,1); break;
7133         case 6: x = BITSWAP8(x^0x23, 1,0,2,7,6,5,4,3); break;
7134         case 7: x = BITSWAP8(x^0xa9, 4,3,0,1,2,7,6,5); break;
7135       }
7136      ROM[i] = x;
7137   }
7138   DRIVER_INIT_CALL(sfbonus_common);
7139}
7140
7141static DRIVER_INIT(funriverv)
7142{
7143   int i;
7144   UINT8 *ROM = memory_region(machine, "maincpu");
7145
7146   for(i=0;i<memory_region_length(machine, "maincpu");i++)
7147   {
7148      UINT8 x = ROM[i];
7149
7150      switch(i & 7)
7151      {
7152         case 0: x = BITSWAP8(x^0x39, 1,2,7,6,5,4,3,0); break;
7153         case 1: x = BITSWAP8(x^0xef, 2,7,6,5,4,3,0,1); break;
7154         case 2: x = BITSWAP8(x^0x26, 0,2,1,7,6,5,4,3); break;
7155         case 3: x = BITSWAP8(x^0xa8, 4,3,1,2,0,7,6,5); break;
7156         case 4: x = BITSWAP8(x^0x3b, 0,1,7,6,5,4,3,2); break;
7157         case 5: x = BITSWAP8(x^0xea, 2,7,6,5,4,3,1,0); break;
7158         case 6: x = BITSWAP8(x^0x22, 2,1,0,7,6,5,4,3); break;
7159         case 7: x = BITSWAP8(x^0xac, 4,3,0,1,2,7,6,5); break;
7160       }
7161      ROM[i] = x;
7162   }
7163   DRIVER_INIT_CALL(sfbonus_common);
7164}
7165#endif
7166
7167
71684656/*
7169            case 0: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0); break;
7170            case 1: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0); break;
7171            case 2: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0); break;
7172            case 3: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0); break;
7173            case 4: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0); break;
7174            case 5: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0); break;
7175            case 6: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0); break;
7176            case 7: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0); break;
4657            case 0: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
4658            case 1: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
4659            case 2: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
4660            case 3: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
4661            case 4: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
4662            case 5: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
4663            case 6: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
4664            case 7: x = BITSWAP8(x^0xff, 7,6,5,4,3,2,1,0
71774665
71784666*/
71794667
7180GAME( 2004, sfbonus,     0,        sfbonus,    sfbonus,    sfbonus, ROT0,  "Amcoe", "Skill Fruit Bonus (Version 1.6)", GAME_NOT_WORKING|GAME_NO_SOUND )
4668GAME( 2004, sfbonus,     0,        sfbonus,    amcoetype2,    sfbonus, ROT0,  "Amcoe", "Skill Fruit Bonus (Version 1.6)", 0)
71814669
7182GAME( 2004, sfbonusa,    sfbonus,  sfbonus,    parrot3,    sfbonus, ROT0,  "Amcoe", "Skill Fruit Bonus (Version 1.7)", GAME_NOT_WORKING|GAME_NO_SOUND )
4670GAME( 2004, sfbonusa,    sfbonus,  sfbonus,    amcoetype2,    sfbonus, ROT0,  "Amcoe", "Skill Fruit Bonus (Version 1.7)", 0)
71834671
7184GAME( 2004, sfbonusb,    sfbonus,  sfbonus,    parrot3,    sfbonus, ROT0,  "Amcoe", "Skill Fruit Bonus (Version 1.9R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7185GAME( 2004, sfbonusd,    sfbonus,  sfbonus,    parrot3,    sfbonusd,ROT0,  "Amcoe", "Skill Fruit Bonus (Version 1.9R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7186GAME( 2004, sfbonusv,    sfbonus,  sfbonus,    parrot3,    sfbonusv,ROT0,  "Amcoe", "Skill Fruit Bonus (Version 1.9R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4672GAME( 2004, sfbonusb,    sfbonus,  sfbonus,    amcoetype2,    sfbonus, ROT0,  "Amcoe", "Skill Fruit Bonus (Version 1.9R, set 1)", 0)
4673GAME( 2004, sfbonusd,    sfbonus,  sfbonus,    amcoetype1,    sfbonusd,ROT0,  "Amcoe", "Skill Fruit Bonus (Version 1.9R, set 2)", 0)
4674GAME( 2004, sfbonusv,    sfbonus,  sfbonus,    amcoetype1,    sfbonusv,ROT0,  "Amcoe", "Skill Fruit Bonus (Version 1.9R Dual)", 0)
71874675
7188GAME( 2004, parrot3,     0,        sfbonus,    parrot3,    pirpok2,  ROT0,  "Amcoe", "Parrot Poker III (Version 2.4)", GAME_NOT_WORKING|GAME_NO_SOUND )
4676GAME( 2004, parrot3,     0,        sfbonus,    amcoetype2,    pirpok2,  ROT0,  "Amcoe", "Parrot Poker III (Version 2.4)", 0)
71894677
7190GAME( 2004, parrot3b,    parrot3,  sfbonus,    parrot3,    pirpok2,  ROT0,  "Amcoe", "Parrot Poker III (Version 2.6R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7191GAME( 2004, parrot3d,    parrot3,  sfbonus,    parrot3,    parrot3d, ROT0,  "Amcoe", "Parrot Poker III (Version 2.6R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7192GAME( 2004, parrot3v2,   parrot3,  sfbonus,    parrot3,    parrot3v2,ROT0,  "Amcoe", "Parrot Poker III (Version 2.6R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4678GAME( 2004, parrot3b,    parrot3,  sfbonus,    amcoetype2,    pirpok2,  ROT0,  "Amcoe", "Parrot Poker III (Version 2.6R, set 1)", 0)
4679GAME( 2004, parrot3d,    parrot3,  sfbonus,    amcoetype1,    parrot3d, ROT0,  "Amcoe", "Parrot Poker III (Version 2.6R, set 2)", 0)
4680GAME( 2004, parrot3v2,   parrot3,  sfbonus,    amcoetype1,    parrot3v2,ROT0,  "Amcoe", "Parrot Poker III (Version 2.6R Dual)", 0)
71934681
7194GAME( 2004, parrot3v,    parrot3,  sfbonus,    parrot3,    parrot3v, ROT0,  "Amcoe", "Parrot Poker III (Version 2.6E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4682GAME( 2004, parrot3v,    parrot3,  sfbonus,    amcoetype1,    parrot3v, ROT0,  "Amcoe", "Parrot Poker III (Version 2.6E Dual)", 0)
71954683
7196GAME( 2000, hldspin1,    0,        sfbonus,    parrot3,    hldspin1, ROT0,  "Amcoe", "Hold & Spin I (Version 2.5T)", GAME_NOT_WORKING|GAME_NO_SOUND )
4684GAME( 2000, hldspin1,    0,        sfbonus,    amcoetype2,    hldspin1, ROT0,  "Amcoe", "Hold & Spin I (Version 2.5T)", 0)
71974685
7198GAME( 2000, hldspin1b,   hldspin1, sfbonus,    parrot3,    hldspin1, ROT0,  "Amcoe", "Hold & Spin I (Version 2.7T, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7199GAME( 2000, hldspin1d,   hldspin1, sfbonus,    parrot3,    hldspin1d, ROT0, "Amcoe", "Hold & Spin I (Version 2.7T, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7200GAME( 2000, hldspin1v,   hldspin1, sfbonus,    parrot3,    hldspin1v, ROT0, "Amcoe", "Hold & Spin I (Version 2.7T Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4686GAME( 2000, hldspin1b,   hldspin1, sfbonus,    amcoetype2,    hldspin1, ROT0,  "Amcoe", "Hold & Spin I (Version 2.7T, set 1)", 0)
4687GAME( 2000, hldspin1d,   hldspin1, sfbonus,    amcoetype1,    hldspin1d, ROT0, "Amcoe", "Hold & Spin I (Version 2.7T, set 2)", 0)
4688GAME( 2000, hldspin1v,   hldspin1, sfbonus,    amcoetype1,    hldspin1v, ROT0, "Amcoe", "Hold & Spin I (Version 2.7T Dual)", 0)
72014689
7202GAME( 2000, hldspin2,    0,        sfbonus,    parrot3,    hldspin2, ROT0,  "Amcoe", "Hold & Spin II (Version 2.6)", GAME_NOT_WORKING|GAME_NO_SOUND )
7203GAME( 2000, hldspin2b,   hldspin2, sfbonus,    parrot3,    hldspin2, ROT0,  "Amcoe", "Hold & Spin II (Version 2.8R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7204GAME( 2000, hldspin2d,   hldspin2, sfbonus,    parrot3,    hldspin2d, ROT0, "Amcoe", "Hold & Spin II (Version 2.8R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7205GAME( 2000, hldspin2v,   hldspin2, sfbonus,    parrot3,    hldspin2v, ROT0, "Amcoe", "Hold & Spin II (Version 2.8R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4690GAME( 2000, hldspin2,    0,        sfbonus,    amcoetype2,    hldspin2, ROT0,  "Amcoe", "Hold & Spin II (Version 2.6)", 0)
72064691
7207GAME( 2003, fcnudge,     0,        sfbonus,    parrot3,    abnudge,  ROT0,  "Amcoe", "Fruit Carnival Nudge (Version 1.7)", GAME_NOT_WORKING|GAME_NO_SOUND )
7208GAME( 2003, fruitcar,    fcnudge,  sfbonus,    parrot3,    fruitcar, ROT0,  "Amcoe", "Fruit Carnival Nudge (Version 2.1 Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
7209GAME( 2003, fruitcar2,   fcnudge,  sfbonus,    parrot3,    fruitcar2,ROT0,  "Amcoe", "Fruit Carnival Nudge (Version 2.0, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7210GAME( 2003, fruitcar3,   fcnudge,  sfbonus,    parrot3,    fruitcar3,ROT0,  "Amcoe", "Fruit Carnival Nudge (Version 2.0, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
4692GAME( 2000, hldspin2b,   hldspin2, sfbonus,    amcoetype2,    hldspin2, ROT0,  "Amcoe", "Hold & Spin II (Version 2.8R, set 1)", 0)
4693GAME( 2000, hldspin2d,   hldspin2, sfbonus,    amcoetype1,    hldspin2d, ROT0, "Amcoe", "Hold & Spin II (Version 2.8R, set 2)", 0) // some text corruption on first reset (MIN PLAY etc. real game bug?)
4694GAME( 2000, hldspin2v,   hldspin2, sfbonus,    amcoetype1,    hldspin2v, ROT0, "Amcoe", "Hold & Spin II (Version 2.8R Dual)", 0)  // some text corruption on first reset (MIN PLAY etc. real game bug?)
72114695
7212GAME( 2001, pickwin,     0,        sfbonus,    parrot3,    pickwin,  ROT0,  "Amcoe", "Pick & Win (Version 2.5T)", GAME_NOT_WORKING|GAME_NO_SOUND )
7213GAME( 2001, pickwina,    pickwin,  sfbonus,    parrot3,    pickwin,  ROT0,  "Amcoe", "Pick & Win (Version 2.6)", GAME_NOT_WORKING|GAME_NO_SOUND )
4696GAME( 2003, fcnudge,     0,        sfbonus,    amcoetype2,    abnudge,  ROT0,  "Amcoe", "Fruit Carnival Nudge (Version 1.7)", 0)
4697GAME( 2003, fcnudge2,    fcnudge,  sfbonus,    amcoetype1,    fruitcar, ROT0,  "Amcoe", "Fruit Carnival Nudge (Version 2.1 Dual)", 0)
4698GAME( 2003, fcnudge3,    fcnudge,  sfbonus,    amcoetype2,    fruitcar2,ROT0,  "Amcoe", "Fruit Carnival Nudge (Version 2.0, set 1)", 0)
4699GAME( 2003, fcnudge4,    fcnudge,  sfbonus,    amcoetype1,    fruitcar3,ROT0,  "Amcoe", "Fruit Carnival Nudge (Version 2.0, set 2)", 0)
72144700
7215GAME( 2001, pickwinb2,   pickwin,  sfbonus,    parrot3,    pickwin,  ROT0,  "Amcoe", "Pick & Win (Version 2.9R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7216GAME( 2001, pickwind2,   pickwin,  sfbonus,    parrot3,    pickwind, ROT0,  "Amcoe", "Pick & Win (Version 2.9R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7217GAME( 2001, pickwinv3,   pickwin,  sfbonus,    parrot3,    pickwinv, ROT0,  "Amcoe", "Pick & Win (Version 2.9R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4701GAME( 2001, pickwin,     0,        sfbonus,    amcoetype2,    pickwin,  ROT0,  "Amcoe", "Pick & Win (Version 2.5T)", 0)
4702GAME( 2001, pickwina,    pickwin,  sfbonus,    amcoetype2,    pickwin,  ROT0,  "Amcoe", "Pick & Win (Version 2.6)", 0)
72184703
7219GAME( 2001, pickwinb,    pickwin,  sfbonus,    parrot3,    pickwin,  ROT0,  "Amcoe", "Pick & Win (Version 2.8T, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7220GAME( 2001, pickwind,    pickwin,  sfbonus,    parrot3,    pickwind, ROT0,  "Amcoe", "Pick & Win (Version 2.8T, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7221GAME( 2001, pickwinv,    pickwin,  sfbonus,    parrot3,    pickwinv, ROT0,  "Amcoe", "Pick & Win (Version 2.8T, Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4704GAME( 2001, pickwinb2,   pickwin,  sfbonus,    amcoetype2,    pickwin,  ROT0,  "Amcoe", "Pick & Win (Version 2.9R, set 1)", 0)
4705GAME( 2001, pickwind2,   pickwin,  sfbonus,    amcoetype1,    pickwind, ROT0,  "Amcoe", "Pick & Win (Version 2.9R, set 2)", 0)
4706GAME( 2001, pickwinv3,   pickwin,  sfbonus,    amcoetype1,    pickwinv, ROT0,  "Amcoe", "Pick & Win (Version 2.9R Dual)", 0)
72224707
7223GAME( 2001, pickwinv2,   pickwin,  sfbonus,    parrot3,    pickwinv2,ROT0,  "Amcoe", "Pick & Win (Version 2.9E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4708GAME( 2001, pickwinb,    pickwin,  sfbonus,    amcoetype2,    pickwin,  ROT0,  "Amcoe", "Pick & Win (Version 2.8T, set 1)", 0)
4709GAME( 2001, pickwind,    pickwin,  sfbonus,    amcoetype1,    pickwind, ROT0,  "Amcoe", "Pick & Win (Version 2.8T, set 2)", 0)
4710GAME( 2001, pickwinv,    pickwin,  sfbonus,    amcoetype1,    pickwinv, ROT0,  "Amcoe", "Pick & Win (Version 2.8T, Dual)", 0)
72244711
4712GAME( 2001, pickwinv2,   pickwin,  sfbonus,    amcoetype1,    pickwinv2,ROT0,  "Amcoe", "Pick & Win (Version 2.9E Dual)", 0)
72254713
7226GAME( 2004, tighook,     0,        sfbonus,    parrot3,    tighook,  ROT0,  "Amcoe", "Tiger Hook (Version 1.7XT)", GAME_NOT_WORKING|GAME_NO_SOUND )
7227GAME( 2004, tighooka,    tighook,  sfbonus,    parrot3,    tighook,  ROT0,  "Amcoe", "Tiger Hook (Version 1.7)", GAME_NOT_WORKING|GAME_NO_SOUND )
72284714
7229GAME( 2004, tighookc,    tighook,  sfbonus,    parrot3,    tighook,  ROT0,  "Amcoe", "Tiger Hook (Version 2.1R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7230GAME( 2004, tighookd,    tighook,  sfbonus,    parrot3,    tighookd, ROT0,  "Amcoe", "Tiger Hook (Version 2.1R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7231GAME( 2004, tighookv,    tighook,  sfbonus,    parrot3,    tighookv, ROT0,  "Amcoe", "Tiger Hook (Version 2.1R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4715GAME( 2004, tighook,     0,        sfbonus,    amcoetype1,    tighook,  ROT0,  "Amcoe", "Tiger Hook (Version 1.7XT)", 0)
4716GAME( 2004, tighooka,    tighook,  sfbonus,    amcoetype1,    tighook,  ROT0,  "Amcoe", "Tiger Hook (Version 1.7)", 0)
72324717
7233GAME( 2004, tighookc2,   tighook,  sfbonus,    parrot3,    tighook,  ROT0,  "Amcoe", "Tiger Hook (Version 2.0LT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7234GAME( 2004, tighookd2,   tighook,  sfbonus,    parrot3,    tighookd, ROT0,  "Amcoe", "Tiger Hook (Version 2.0LT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7235GAME( 2004, tighookv3,   tighook,  sfbonus,    parrot3,    tighookv, ROT0,  "Amcoe", "Tiger Hook (Version 2.0LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4718GAME( 2004, tighookc,    tighook,  sfbonus,    amcoetype1,    tighook,  ROT0,  "Amcoe", "Tiger Hook (Version 2.1R, set 1)", 0)
4719GAME( 2004, tighookd,    tighook,  sfbonus,    amcoetype1,    tighookd, ROT0,  "Amcoe", "Tiger Hook (Version 2.1R, set 2)", 0)
4720GAME( 2004, tighookv,    tighook,  sfbonus,    amcoetype1,    tighookv, ROT0,  "Amcoe", "Tiger Hook (Version 2.1R Dual)", 0)
72364721
7237GAME( 2004, tighookv2,   tighook,  sfbonus,    parrot3,    tighookv2,ROT0,  "Amcoe", "Tiger Hook (Version 2.1E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4722GAME( 2004, tighookc2,   tighook,  sfbonus,    amcoetype1,    tighook,  ROT0,  "Amcoe", "Tiger Hook (Version 2.0LT, set 1)", 0)
4723GAME( 2004, tighookd2,   tighook,  sfbonus,    amcoetype1,    tighookd, ROT0,  "Amcoe", "Tiger Hook (Version 2.0LT, set 2)", 0)
4724GAME( 2004, tighookv3,   tighook,  sfbonus,    amcoetype1,    tighookv, ROT0,  "Amcoe", "Tiger Hook (Version 2.0LT Dual)", 0)
72384725
7239GAME( 2003, robadv,      0,        sfbonus,    parrot3,    robadv,   ROT0,  "Amcoe", "Robin Adventure (Version 1.5)", GAME_NOT_WORKING|GAME_NO_SOUND )
4726GAME( 2004, tighookv2,   tighook,  sfbonus,    amcoetype1,    tighookv2,ROT0,  "Amcoe", "Tiger Hook (Version 2.1E Dual)", 0)
72404727
7241GAME( 2003, robadvc,     robadv,   sfbonus,    parrot3,    robadv,   ROT0,  "Amcoe", "Robin Adventure (Version 1.7R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7242GAME( 2003, robadvd,     robadv,   sfbonus,    parrot3,    robadv2d, ROT0,  "Amcoe", "Robin Adventure (Version 1.7R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7243GAME( 2003, robadvv2,    robadv,   sfbonus,    parrot3,    robadv2v1,ROT0,  "Amcoe", "Robin Adventure (Version 1.7R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4728GAME( 2003, robadv,      0,        sfbonus,    amcoetype1,    robadv,   ROT0,  "Amcoe", "Robin Adventure (Version 1.5)", 0)
72444729
7245GAME( 2003, robadvv1,    robadv,   sfbonus,    parrot3,    robadv2v4,ROT0,  "Amcoe", "Robin Adventure (Version 1.7E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4730GAME( 2003, robadvc,     robadv,   sfbonus,    amcoetype1,    robadv,   ROT0,  "Amcoe", "Robin Adventure (Version 1.7R, set 1)", 0)
4731GAME( 2003, robadvd,     robadv,   sfbonus,    amcoetype1,    robadv2d, ROT0,  "Amcoe", "Robin Adventure (Version 1.7R, set 2)", 0)
4732GAME( 2003, robadvv2,    robadv,   sfbonus,    amcoetype1,    robadv2v1,ROT0,  "Amcoe", "Robin Adventure (Version 1.7R Dual)", 0)
72464733
7247GAME( 2004, robadv2,    0,        sfbonus,    parrot3,    robadv,   ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.5SH)", GAME_NOT_WORKING|GAME_NO_SOUND )
4734GAME( 2003, robadvv1,    robadv,   sfbonus,    amcoetype1,    robadv2v4,ROT0,  "Amcoe", "Robin Adventure (Version 1.7E Dual)", 0)
72484735
7249GAME( 2004, robadv2a,    robadv2,  sfbonus,    parrot3,    robadv,   ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.5)", GAME_NOT_WORKING|GAME_NO_SOUND )
4736GAME( 2004, robadv2,    0,        sfbonus,    amcoetype1,    robadv,   ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.5SH)", 0)
72504737
7251GAME( 2004, robadv2c,    robadv2,  sfbonus,    parrot3,    robadv,   ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7LT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7252GAME( 2004, robadv2d,    robadv2,  sfbonus,    parrot3,    robadv2d, ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7LT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7253GAME( 2004, robadv2v3,   robadv2,  sfbonus,    parrot3,    robadv2v1,ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4738GAME( 2004, robadv2a,    robadv2,  sfbonus,    amcoetype1,    robadv,   ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.5)", 0)
72544739
7255GAME( 2004, robadv2d2,   robadv2,  sfbonus,    parrot3,    robadv2d, ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7256GAME( 2004, robadv2c2,   robadv2,  sfbonus,    parrot3,    robadv,   ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7257GAME( 2004, robadv2v2,   robadv2,  sfbonus,    parrot3,    robadv2v1,ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4740GAME( 2004, robadv2c,    robadv2,  sfbonus,    amcoetype1,    robadv,   ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7LT, set 1)", 0)
4741GAME( 2004, robadv2d,    robadv2,  sfbonus,    amcoetype1,    robadv2d, ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7LT, set 2)", 0)
4742GAME( 2004, robadv2v3,   robadv2,  sfbonus,    amcoetype1,    robadv2v1,ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7LT Dual)", 0)
72584743
7259GAME( 2004, robadv2d3,   robadv2,  sfbonus,    parrot3,    robadv2d, ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7SH, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7260GAME( 2004, robadv2c3,   robadv2,  sfbonus,    parrot3,    robadv,   ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7SH, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7261GAME( 2004, robadv2v1,   robadv2,  sfbonus,    parrot3,    robadv2v1,ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7SH Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4744GAME( 2004, robadv2d2,   robadv2,  sfbonus,    amcoetype1,    robadv2d, ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7R, set 1)", 0)
4745GAME( 2004, robadv2c2,   robadv2,  sfbonus,    amcoetype1,    robadv,   ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7R, set 2)", 0)
4746GAME( 2004, robadv2v2,   robadv2,  sfbonus,    amcoetype1,    robadv2v1,ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7R Dual)", 0)
72624747
7263GAME( 2004, robadv2v4,   robadv2,  sfbonus,    parrot3,    robadv2v4,ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4748GAME( 2004, robadv2d3,   robadv2,  sfbonus,    amcoetype1,    robadv2d, ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7SH, set 1)", 0)
4749GAME( 2004, robadv2c3,   robadv2,  sfbonus,    amcoetype1,    robadv,   ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7SH, set 2)", 0)
4750GAME( 2004, robadv2v1,   robadv2,  sfbonus,    amcoetype1,    robadv2v1,ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7SH Dual)", 0)
72644751
7265GAME( 2003, pirpok2,     0,        sfbonus,    parrot3,    pirpok2, ROT0,  "Amcoe", "Pirate Poker II (Version 2.0)", GAME_NOT_WORKING|GAME_NO_SOUND )
4752GAME( 2004, robadv2v4,   robadv2,  sfbonus,    amcoetype1,    robadv2v4,ROT0,  "Amcoe", "Robin Adventure 2 (Version 1.7E Dual)", 0)
72664753
7267GAME( 2003, pirpok2b,    pirpok2,  sfbonus,    parrot3,    pirpok2, ROT0,  "Amcoe", "Pirate Poker II (Version 2.2R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7268GAME( 2003, pirpok2d,    pirpok2,  sfbonus,    parrot3,    pirpok2d,ROT0,  "Amcoe", "Pirate Poker II (Version 2.2R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7269GAME( 2003, pirpok2v,    pirpok2,  sfbonus,    parrot3,    pirpok2v,ROT0,  "Amcoe", "Pirate Poker II (Version 2.2R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4754GAME( 2003, pirpok2,     0,        sfbonus,    amcoetype2,    pirpok2, ROT0,  "Amcoe", "Pirate Poker II (Version 2.0)", 0)
72704755
7271GAME( 2003, pirpok2v2,   pirpok2,  sfbonus,    parrot3,   pirpok2v2,ROT0,  "Amcoe", "Pirate Poker II (Version 2.4E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4756GAME( 2003, pirpok2b,    pirpok2,  sfbonus,    amcoetype2,    pirpok2, ROT0,  "Amcoe", "Pirate Poker II (Version 2.2R, set 1)", 0)
4757GAME( 2003, pirpok2d,    pirpok2,  sfbonus,    amcoetype1,    pirpok2d,ROT0,  "Amcoe", "Pirate Poker II (Version 2.2R, set 2)", 0)
4758GAME( 2003, pirpok2v,    pirpok2,  sfbonus,    amcoetype1,    pirpok2v,ROT0,  "Amcoe", "Pirate Poker II (Version 2.2R Dual)", 0)
72724759
7273GAME( 2003, anibonus,    0,        sfbonus,    parrot3,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.50XT)", GAME_NOT_WORKING|GAME_NO_SOUND )
4760GAME( 2003, pirpok2v2,   pirpok2,  sfbonus,    amcoetype1,   pirpok2v2,ROT0,  "Amcoe", "Pirate Poker II (Version 2.4E Dual)", 0)
72744761
7275GAME( 2003, anibonus2,   anibonus, sfbonus,    parrot3,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.5)", GAME_NOT_WORKING|GAME_NO_SOUND )
4762GAME( 2003, anibonus,    0,        sfbonus,    amcoetype2,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.50XT)", 0)
72764763
7277GAME( 2003, anibonus3,   anibonus, sfbonus,    parrot3,    anibonus3,ROT0,  "Amcoe", "Animal Bonus (Version 1.40XT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7278GAME( 2003, anibonus4,   anibonus, sfbonus,    parrot3,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.40XT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
4764GAME( 2003, anibonus2,   anibonus, sfbonus,    amcoetype2,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.5)", 0)
72794765
7280GAME( 2003, anibonus5,   anibonus, sfbonus,    parrot3,    anibonus3,ROT0,  "Amcoe", "Animal Bonus (Version 1.4, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7281GAME( 2003, anibonus6,   anibonus, sfbonus,    parrot3,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.4, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
4766GAME( 2003, anibonus3,   anibonus, sfbonus,    amcoetype2,    anibonus3,ROT0,  "Amcoe", "Animal Bonus (Version 1.40XT, set 1)", 0)
4767GAME( 2003, anibonus4,   anibonus, sfbonus,    amcoetype2,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.40XT, set 2)", 0)
72824768
7283GAME( 2003, anibonusb,   anibonus, sfbonus,    parrot3,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.7R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7284GAME( 2003, anibonusd,   anibonus, sfbonus,    parrot3,    anibonusd,ROT0,  "Amcoe", "Animal Bonus (Version 1.7R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7285GAME( 2003, anibonusv,   anibonus, sfbonus,    parrot3,    anibonusv,ROT0,  "Amcoe", "Animal Bonus (Version 1.8R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4769GAME( 2003, anibonus5,   anibonus, sfbonus,    amcoetype2,    anibonus3,ROT0,  "Amcoe", "Animal Bonus (Version 1.4, set 1)", 0)
4770GAME( 2003, anibonus6,   anibonus, sfbonus,    amcoetype2,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.4, set 2)", 0)
72864771
7287GAME( 2003, anibonusb2,  anibonus, sfbonus,    parrot3,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.7LT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7288GAME( 2003, anibonusd2,  anibonus, sfbonus,    parrot3,    anibonusd,ROT0,  "Amcoe", "Animal Bonus (Version 1.7LT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7289GAME( 2003, anibonusv2,  anibonus, sfbonus,    parrot3,    anibonusv,ROT0,  "Amcoe", "Animal Bonus (Version 1.8LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4772GAME( 2003, anibonusb,   anibonus, sfbonus,    amcoetype2,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.7R, set 1)", 0)
4773GAME( 2003, anibonusd,   anibonus, sfbonus,    amcoetype1,    anibonusd,ROT0,  "Amcoe", "Animal Bonus (Version 1.7R, set 2)", 0)
4774GAME( 2003, anibonusv,   anibonus, sfbonus,    amcoetype1,    anibonusv,ROT0,  "Amcoe", "Animal Bonus (Version 1.8R Dual)", 0)
72904775
7291GAME( 2003, anibonusv3,  anibonus, sfbonus,    parrot3,   anibonusv3,ROT0,  "Amcoe", "Animal Bonus (Version 1.8E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4776GAME( 2003, anibonusb2,  anibonus, sfbonus,    amcoetype2,    anibonus, ROT0,  "Amcoe", "Animal Bonus (Version 1.7LT, set 1)", 0)
4777GAME( 2003, anibonusd2,  anibonus, sfbonus,    amcoetype1,    anibonusd,ROT0,  "Amcoe", "Animal Bonus (Version 1.7LT, set 2)", 0)
4778GAME( 2003, anibonusv2,  anibonus, sfbonus,    amcoetype1,    anibonusv,ROT0,  "Amcoe", "Animal Bonus (Version 1.8LT Dual)", 0)
72924779
7293GAME( 2000, abnudge,     0,        sfbonus,    parrot3,    abnudge, ROT0,  "Amcoe", "Animal Bonus Nudge (Version 1.7)", GAME_NOT_WORKING|GAME_NO_SOUND )
7294GAME( 2000, abnudgeb,    abnudge,  sfbonus,    parrot3,    abnudge, ROT0,  "Amcoe", "Animal Bonus Nudge (Version 2.0, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7295GAME( 2000, abnudged,    abnudge,  sfbonus,    parrot3,    abnudged,ROT0,  "Amcoe", "Animal Bonus Nudge (Version 2.0, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7296GAME( 2000, abnudgev,    abnudge,  sfbonus,    parrot3,    abnudgev,ROT0,  "Amcoe", "Animal Bonus Nudge (Version 2.1 Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4780GAME( 2003, anibonusv3,  anibonus, sfbonus,    amcoetype1,   anibonusv3,ROT0,  "Amcoe", "Animal Bonus (Version 1.8E Dual)", 0)
72974781
7298GAME( 2003, dblchal,     0,        sfbonus,    parrot3,    dblchal, ROT0,  "Amcoe", "Double Challenge (Version 1.1)", GAME_NOT_WORKING|GAME_NO_SOUND )
4782GAME( 2000, abnudge,     0,        sfbonus,    amcoetype2,    abnudge, ROT0,  "Amcoe", "Animal Bonus Nudge (Version 1.7)", 0)
4783GAME( 2000, abnudgeb,    abnudge,  sfbonus,    amcoetype2,    abnudge, ROT0,  "Amcoe", "Animal Bonus Nudge (Version 2.0, set 1)", 0)
4784GAME( 2000, abnudged,    abnudge,  sfbonus,    amcoetype1,    abnudged,ROT0,  "Amcoe", "Animal Bonus Nudge (Version 2.0, set 2)", 0)
4785GAME( 2000, abnudgev,    abnudge,  sfbonus,    amcoetype1,    abnudgev,ROT0,  "Amcoe", "Animal Bonus Nudge (Version 2.1 Dual)", 0)
72994786
7300GAME( 2003, dblchalb,    dblchal,  sfbonus,    parrot3,    dblchal, ROT0,  "Amcoe", "Double Challenge (Version 1.5R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7301GAME( 2003, dblchalc,    dblchal,  sfbonus,    parrot3,    dblchal, ROT0,  "Amcoe", "Double Challenge (Version 1.5R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7302GAME( 2003, dblchald,    dblchal,  sfbonus,    parrot3,    dblchald,ROT0,  "Amcoe", "Double Challenge (Version 1.5R, set 3)", GAME_NOT_WORKING|GAME_NO_SOUND )
7303GAME( 2003, dblchalv,    dblchal,  sfbonus,    parrot3,    dblchalv,ROT0,  "Amcoe", "Double Challenge (Version 1.5R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4787GAME( 2003, dblchal,     0,        sfbonus,    amcoetype2,    dblchal, ROT0,  "Amcoe", "Double Challenge (Version 1.1)", 0)
73044788
7305GAME( 2003, anithunt,    0,        sfbonus,    parrot3,    anithunt, ROT0,  "Amcoe", "Animal Treasure Hunt (Version 1.7)", GAME_NOT_WORKING|GAME_NO_SOUND )
4789GAME( 2003, dblchalb,    dblchal,  sfbonus,    amcoetype2,    dblchal, ROT0,  "Amcoe", "Double Challenge (Version 1.5R, set 1)", 0)
4790GAME( 2003, dblchalc,    dblchal,  sfbonus,    amcoetype1,    dblchal, ROT0,  "Amcoe", "Double Challenge (Version 1.5R, set 2)", 0)
4791GAME( 2003, dblchald,    dblchal,  sfbonus,    amcoetype1,    dblchald,ROT0,  "Amcoe", "Double Challenge (Version 1.5R, set 3)", 0)
4792GAME( 2003, dblchalv,    dblchal,  sfbonus,    amcoetype1,    dblchalv,ROT0,  "Amcoe", "Double Challenge (Version 1.5R Dual)", 0)
73064793
7307GAME( 2003, anithunt2,   anithunt, sfbonus,    parrot3,    anithunt, ROT0,  "Amcoe", "Animal Treasure Hunt (Version 1.5)", GAME_NOT_WORKING|GAME_NO_SOUND )
4794GAME( 2003, anithunt,    0,        sfbonus,    amcoetype2,    anithunt, ROT0,  "Amcoe", "Animal Treasure Hunt (Version 1.7)", 0)
73084795
7309GAME( 2003, anithuntb,   anithunt, sfbonus,    parrot3,    anithunt, ROT0,  "Amcoe", "Animal Treasure Hunt (Version 1.9R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7310GAME( 2003, anithuntd,   anithunt, sfbonus,    parrot3,    anithuntd,ROT0,  "Amcoe", "Animal Treasure Hunt (Version 1.9R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7311GAME( 2003, anithuntv,   anithunt, sfbonus,    parrot3,    anithuntv,ROT0,  "Amcoe", "Animal Treasure Hunt (Version 1.9R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4796GAME( 2003, anithunt2,   anithunt, sfbonus,    amcoetype2,    anithunt, ROT0,  "Amcoe", "Animal Treasure Hunt (Version 1.5)", 0)
73124797
7313GAME( 2002, sfruitb2,    sfruitb,  sfbonus,    parrot3,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.0)", GAME_NOT_WORKING|GAME_NO_SOUND )
7314GAME( 2002, sfruitb,     0,        sfbonus,    parrot3,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.0B)", GAME_NOT_WORKING|GAME_NO_SOUND ) // 'high bonus version'
4798GAME( 2003, anithuntb,   anithunt, sfbonus,    amcoetype2,    anithunt, ROT0,  "Amcoe", "Animal Treasure Hunt (Version 1.9R, set 1)", 0)
4799GAME( 2003, anithuntd,   anithunt, sfbonus,    amcoetype1,    anithuntd,ROT0,  "Amcoe", "Animal Treasure Hunt (Version 1.9R, set 2)", 0)
4800GAME( 2003, anithuntv,   anithunt, sfbonus,    amcoetype1,    anithuntv,ROT0,  "Amcoe", "Animal Treasure Hunt (Version 1.9R Dual)", 0)
73154801
7316GAME( 2002, sfruitbb,    sfruitb,  sfbonus,    parrot3,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.0LT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7317GAME( 2002, sfruitbd,    sfruitb,  sfbonus,    parrot3,    sfruitbd,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.0LT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7318GAME( 2002, sfruitbv5,   sfruitb,  sfbonus,    parrot3,    sfruitbv,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.0LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4802GAME( 2002, sfruitb2,    sfruitb,  sfbonus,    amcoetype2,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.0)", 0)
4803GAME( 2002, sfruitb,     0,        sfbonus,    amcoetype2,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.0B)", 0) // 'high bonus version'
73194804
7320GAME( 2002, sfruitbb2,   sfruitb,  sfbonus,    parrot3,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.2B, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND ) // 'high bonus version'
7321GAME( 2002, sfruitbd2,   sfruitb,  sfbonus,    parrot3,    sfruitbd,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.2B, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND ) // 'high bonus version'
7322GAME( 2002, sfruitbv4,   sfruitb,  sfbonus,    parrot3,    sfruitbv,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.2B Dual)", GAME_NOT_WORKING|GAME_NO_SOUND ) // 'high bonus version'
4805GAME( 2002, sfruitbb,    sfruitb,  sfbonus,    amcoetype2,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.0LT, set 1)", 0)
4806GAME( 2002, sfruitbd,    sfruitb,  sfbonus,    amcoetype1,    sfruitbd,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.0LT, set 2)", 0)
4807GAME( 2002, sfruitbv5,   sfruitb,  sfbonus,    amcoetype1,    sfruitbv,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.0LT Dual)", 0)
73234808
7324GAME( 2002, sfruitbb3,   sfruitb,  sfbonus,    parrot3,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.5R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7325GAME( 2002, sfruitbd3,   sfruitb,  sfbonus,    parrot3,    sfruitbd,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.5R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7326GAME( 2002, sfruitbv,    sfruitb,  sfbonus,    parrot3,    sfruitbv,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.5R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4809GAME( 2002, sfruitbb2,   sfruitb,  sfbonus,    amcoetype2,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.2B, set 1)", 0) // 'high bonus version'
4810GAME( 2002, sfruitbd2,   sfruitb,  sfbonus,    amcoetype1,    sfruitbd,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.2B, set 2)", 0) // 'high bonus version'
4811GAME( 2002, sfruitbv4,   sfruitb,  sfbonus,    amcoetype1,    sfruitbv,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.2B Dual)", 0) // 'high bonus version'
73274812
7328GAME( 2002, sfruitbv2,    sfruitb,  sfbonus,    parrot3,    sfruitbv2, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.5E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
7329GAME( 2002, sfruitbv3,    sfruitb,  sfbonus,    parrot3,    sfruitbv2, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.2EB Dual)", GAME_NOT_WORKING|GAME_NO_SOUND ) // 'high bonus version'
4813GAME( 2002, sfruitbb3,   sfruitb,  sfbonus,    amcoetype2,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.5R, set 1)", 0)
4814GAME( 2002, sfruitbd3,   sfruitb,  sfbonus,    amcoetype1,    sfruitbd,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.5R, set 2)", 0)
4815GAME( 2002, sfruitbv,    sfruitb,  sfbonus,    amcoetype1,    sfruitbv,ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.5R Dual)", 0)
73304816
7331GAME( 2002, sfruitb3,    sfruitb,  sfbonus,    parrot3,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 1.80XT)", GAME_NOT_WORKING|GAME_NO_SOUND )
4817GAME( 2002, sfruitbv2,    sfruitb,  sfbonus,    amcoetype1,    sfruitbv2, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.5E Dual)", 0)
4818GAME( 2002, sfruitbv3,    sfruitb,  sfbonus,    amcoetype1,    sfruitbv2, ROT0,  "Amcoe", "Super Fruit Bonus (Version 2.2EB Dual)", 0) // 'high bonus version'
73324819
7333GAME( 2004, fb2gen,      0,        sfbonus,    parrot3,    fb2gen, ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.6XT)", GAME_NOT_WORKING|GAME_NO_SOUND )
4820GAME( 2002, sfruitb3,    sfruitb,  sfbonus,    amcoetype2,    sfruitb, ROT0,  "Amcoe", "Super Fruit Bonus (Version 1.80XT)", 0)
73344821
7335GAME( 2004, fb2gena,     fb2gen,   sfbonus,    parrot3,    fb2gen, ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.5)", GAME_NOT_WORKING|GAME_NO_SOUND )
4822GAME( 2004, fb2gen,      0,        sfbonus,    amcoetype1,    fb2gen, ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.6XT)", 0)
73364823
7337GAME( 2004, fb2genc,     fb2gen,   sfbonus,    parrot3,    fb2gen, ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7338GAME( 2004, fb2gend,     fb2gen,   sfbonus,    parrot3,    fb2gend,ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7339GAME( 2004, fb2genv,     fb2gen,   sfbonus,    parrot3,    fb2genv,ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4824GAME( 2004, fb2gena,     fb2gen,   sfbonus,    amcoetype1,    fb2gen, ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.5)", 0)
73404825
7341GAME( 2004, fb2genc2,    fb2gen,   sfbonus,    parrot3,    fb2gen, ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8LT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7342GAME( 2004, fb2gend2,    fb2gen,   sfbonus,    parrot3,    fb2gend,ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8LT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7343GAME( 2004, fb2genv2,    fb2gen,   sfbonus,    parrot3,    fb2genv,ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4826GAME( 2004, fb2genc,     fb2gen,   sfbonus,    amcoetype1,    fb2gen, ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8R, set 1)", 0)
4827GAME( 2004, fb2gend,     fb2gen,   sfbonus,    amcoetype1,    fb2gend,ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8R, set 2)", 0)
4828GAME( 2004, fb2genv,     fb2gen,   sfbonus,    amcoetype1,    fb2genv,ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8R Dual)", 0)
73444829
7345GAME( 2004, fb2genv3,    fb2gen,   sfbonus,    parrot3,   fb2genv3,ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4830GAME( 2004, fb2genc2,    fb2gen,   sfbonus,    amcoetype1,    fb2gen, ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8LT, set 1)", 0)
4831GAME( 2004, fb2gend2,    fb2gen,   sfbonus,    amcoetype1,    fb2gend,ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8LT, set 2)", 0)
4832GAME( 2004, fb2genv2,    fb2gen,   sfbonus,    amcoetype1,    fb2genv,ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8LT Dual)", 0)
73464833
4834GAME( 2004, fb2genv3,    fb2gen,   sfbonus,    amcoetype1,   fb2genv3,ROT0,  "Amcoe", "Fruit Bonus 2nd Generation (Version 1.8E Dual)", 0)
73474835
7348GAME( 2004, fb2nd,       0,       sfbonus,    parrot3,    fb2nd, ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.5)", GAME_NOT_WORKING|GAME_NO_SOUND )
73494836
7350GAME( 2004, fb2ndc,      fb2nd,   sfbonus,    parrot3,    fb2nd, ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7351GAME( 2004, fb2ndd,      fb2nd,   sfbonus,    parrot3,    fb2ndd,ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7352GAME( 2004, fb2ndv,      fb2nd,   sfbonus,    parrot3,    fb2ndv,ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4837GAME( 2004, fb2nd,       0,       sfbonus,    amcoetype1,    fb2nd, ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.5)", 0)
73534838
7354GAME( 2004, fb2ndc2,     fb2nd,   sfbonus,    parrot3,    fb2nd, ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8LT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7355GAME( 2004, fb2ndd2,     fb2nd,   sfbonus,    parrot3,    fb2ndd,ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8LT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7356GAME( 2004, fb2ndv2,     fb2nd,   sfbonus,    parrot3,    fb2ndv,ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4839GAME( 2004, fb2ndc,      fb2nd,   sfbonus,    amcoetype1,    fb2nd, ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8R, set 1)", 0)
4840GAME( 2004, fb2ndd,      fb2nd,   sfbonus,    amcoetype1,    fb2ndd,ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8R, set 2)", 0)
4841GAME( 2004, fb2ndv,      fb2nd,   sfbonus,    amcoetype1,    fb2ndv,ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8R Dual)", 0)
73574842
4843GAME( 2004, fb2ndc2,     fb2nd,   sfbonus,    amcoetype1,    fb2nd, ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8LT, set 1)", 0)
4844GAME( 2004, fb2ndd2,     fb2nd,   sfbonus,    amcoetype1,    fb2ndd,ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8LT, set 2)", 0)
4845GAME( 2004, fb2ndv2,     fb2nd,   sfbonus,    amcoetype1,    fb2ndv,ROT0,  "Amcoe", "Fruit Bonus 2nd Edition (Version 1.8LT Dual)", 0)
73584846
73594847
7360GAME( 2000, fb4,         0,        sfbonus,    parrot3,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.3XT)", GAME_NOT_WORKING|GAME_NO_SOUND )
7361GAME( 2000, fb4a,        fb4,      sfbonus,    parrot3,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.2)", GAME_NOT_WORKING|GAME_NO_SOUND )
73624848
7363GAME( 2000, fb4b,        fb4,      sfbonus,    parrot3,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5LT, set 1", GAME_NOT_WORKING|GAME_NO_SOUND )
7364GAME( 2000, fb4c2,       fb4,      sfbonus,    parrot3,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5LT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7365GAME( 2000, fb4d2,       fb4,      sfbonus,    parrot3,    fb4d,ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5LT, set 3)", GAME_NOT_WORKING|GAME_NO_SOUND )
7366GAME( 2000, fb4v2,       fb4,      sfbonus,    parrot3,    fb4v,ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4849GAME( 2000, fb4,         0,        sfbonus,    amcoetype2,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.3XT)", 0)
4850GAME( 2000, fb4a,        fb4,      sfbonus,    amcoetype2,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.2)", 0)
73674851
7368GAME( 2000, fb4b2,       fb4,      sfbonus,    parrot3,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7369GAME( 2000, fb4c,        fb4,      sfbonus,    parrot3,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7370GAME( 2000, fb4d,        fb4,      sfbonus,    parrot3,    fb4d,ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5R, set 3)", GAME_NOT_WORKING|GAME_NO_SOUND )
7371GAME( 2000, fb4v,        fb4,      sfbonus,    parrot3,    fb4v,ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4852GAME( 2000, fb4b,        fb4,      sfbonus,    amcoetype2,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5LT, set 1", 0)
4853GAME( 2000, fb4c2,       fb4,      sfbonus,    amcoetype1,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5LT, set 2)", 0)
4854GAME( 2000, fb4d2,       fb4,      sfbonus,    amcoetype1,    fb4d,ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5LT, set 3)", 0)
4855GAME( 2000, fb4v2,       fb4,      sfbonus,    amcoetype1,    fb4v,ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5LT Dual)", 0)
73724856
7373GAME( 2000, fb4v3,       fb4,      sfbonus,    parrot3,    fb4v3, ROT0, "Amcoe", "Fruit Bonus 4 (Version 1.5E Dual) (with 2005 title)", GAME_NOT_WORKING|GAME_NO_SOUND ) // the export version has '2005' title, but is considered the same game as fb4 and labeled as such
4857GAME( 2000, fb4b2,       fb4,      sfbonus,    amcoetype2,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5R, set 1)", 0)
4858GAME( 2000, fb4c,        fb4,      sfbonus,    amcoetype1,    fb4, ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5R, set 2)", 0)
4859GAME( 2000, fb4d,        fb4,      sfbonus,    amcoetype1,    fb4d,ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5R, set 3)", 0)
4860GAME( 2000, fb4v,        fb4,      sfbonus,    amcoetype1,    fb4v,ROT0,  "Amcoe", "Fruit Bonus 4 (Version 1.5R Dual)", 0)
73744861
4862GAME( 2000, fb4v3,       fb4,      sfbonus,    amcoetype1,    fb4v3, ROT0, "Amcoe", "Fruit Bonus 4 (Version 1.5E Dual) (with 2005 title)", 0) // the export version has '2005' title, but is considered the same game as fb4 and labeled as such
73754863
7376GAME( 1999, act2000,     0,        sfbonus,    parrot3,    act2000, ROT0,  "Amcoe", "Action 2000 (Version 1.2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7377GAME( 1999, act2000a,    act2000,  sfbonus,    parrot3,    act2000, ROT0,  "Amcoe", "Action 2000 (Version 3.3)", GAME_NOT_WORKING|GAME_NO_SOUND )
7378GAME( 1999, act2000a2,   act2000,  sfbonus,    parrot3,    act2000, ROT0,  "Amcoe", "Action 2000 (Version 3.10XT)", GAME_NOT_WORKING|GAME_NO_SOUND )
7379GAME( 1999, act2000v,    act2000,  sfbonus,    parrot3,    act2000v, ROT0,  "Amcoe", "Action 2000 (Version 3.5R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
7380GAME( 1999, act2000v2,   act2000,  sfbonus,    parrot3,    act2000v2, ROT0,  "Amcoe", "Action 2000 (Version 3.5E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
7381GAME( 1999, act2000v3,   act2000,  sfbonus,    parrot3,    act2000v3, ROT0,  "Amcoe", "Action 2000 (Version 3.30XT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
7382GAME( 1999, act2000d,    act2000,  sfbonus,    parrot3,    act2000d, ROT0,  "Amcoe", "Action 2000 (Version 3.5R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7383GAME( 1999, act2000d2,   act2000,  sfbonus,    parrot3,    act2000d, ROT0,  "Amcoe", "Action 2000 (Version 3.30XT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7384GAME( 1999, act2000b,    act2000,  sfbonus,    parrot3,    act2000, ROT0,  "Amcoe", "Action 2000 (Version 3.5R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7385GAME( 1999, act2000b2,   act2000,  sfbonus,    parrot3,    act2000, ROT0,  "Amcoe", "Action 2000 (Version 3.30XT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
73864864
7387GAME( 2000, ch2000,      0,        sfbonus,    parrot3,    ch2000, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 3.9XT)", GAME_NOT_WORKING|GAME_NO_SOUND )
7388GAME( 2000, ch2000x,     ch2000,   sfbonus,    parrot3,    ch2000, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 3.9D)", GAME_NOT_WORKING|GAME_NO_SOUND )
7389GAME( 2000, ch2000y,     ch2000,   sfbonus,    parrot3,    ch2000, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 3.9)", GAME_NOT_WORKING|GAME_NO_SOUND )
4865GAME( 1999, act2000,     0,        sfbonus,    amcoetype2,    act2000, ROT0,  "Amcoe", "Action 2000 (Version 1.2)", 0)
4866GAME( 1999, act2000a,    act2000,  sfbonus,    amcoetype2,    act2000, ROT0,  "Amcoe", "Action 2000 (Version 3.3)", 0)
4867GAME( 1999, act2000a2,   act2000,  sfbonus,    amcoetype2,    act2000, ROT0,  "Amcoe", "Action 2000 (Version 3.10XT)", 0)
4868GAME( 1999, act2000v,    act2000,  sfbonus,    amcoetype1,    act2000v, ROT0,  "Amcoe", "Action 2000 (Version 3.5R Dual)", 0)
4869GAME( 1999, act2000v2,   act2000,  sfbonus,    amcoetype1,    act2000v2, ROT0,  "Amcoe", "Action 2000 (Version 3.5E Dual)", 0)
4870GAME( 1999, act2000v3,   act2000,  sfbonus,    amcoetype1,    act2000v3, ROT0,  "Amcoe", "Action 2000 (Version 3.30XT Dual)", 0)
4871GAME( 1999, act2000d,    act2000,  sfbonus,    amcoetype1,    act2000d, ROT0,  "Amcoe", "Action 2000 (Version 3.5R, set 1)", 0)
4872GAME( 1999, act2000d2,   act2000,  sfbonus,    amcoetype1,    act2000d, ROT0,  "Amcoe", "Action 2000 (Version 3.30XT, set 1)", 0)
4873GAME( 1999, act2000b,    act2000,  sfbonus,    amcoetype2,    act2000, ROT0,  "Amcoe", "Action 2000 (Version 3.5R, set 2)", 0)
4874GAME( 1999, act2000b2,   act2000,  sfbonus,    amcoetype2,    act2000, ROT0,  "Amcoe", "Action 2000 (Version 3.30XT, set 2)", 0)
73904875
7391GAME( 2000, ch2000b2,    ch2000,   sfbonus,    parrot3,    ch2000, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.1LT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7392GAME( 2000, ch2000c,     ch2000,   sfbonus,    parrot3,    ch2000c, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.1LT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7393GAME( 2000, ch2000d,     ch2000,   sfbonus,    parrot3,    ch2000d, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.1LT, set 3)", GAME_NOT_WORKING|GAME_NO_SOUND )
7394GAME( 2000, ch2000v3,    ch2000,   sfbonus,    parrot3,    ch2000v3,ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.1LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4876GAME( 2000, ch2000,      0,        sfbonus,    amcoetype2,    ch2000, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 3.9XT)", 0)
4877GAME( 2000, ch2000x,     ch2000,   sfbonus,    amcoetype2,    ch2000, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 3.9D)", 0)
4878GAME( 2000, ch2000y,     ch2000,   sfbonus,    amcoetype2,    ch2000, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 3.9)", 0)
73954879
7396GAME( 2000, ch2000b,     ch2000,   sfbonus,    parrot3,    ch2000, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.4R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7397GAME( 2000, ch2000c2,    ch2000,   sfbonus,    parrot3,    ch2000c,ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.4R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7398GAME( 2000, ch2000d2,    ch2000,   sfbonus,    parrot3,    ch2000d, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.4R, set 3)", GAME_NOT_WORKING|GAME_NO_SOUND )
7399GAME( 2000, ch2000v,     ch2000,   sfbonus,    parrot3,    ch2000v, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.4R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
7400GAME( 2000, ch2000v2,    ch2000,   sfbonus,    parrot3,    ch2000v2,ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.4E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4880GAME( 2000, ch2000b2,    ch2000,   sfbonus,    amcoetype2,    ch2000, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.1LT, set 1)", 0)
4881GAME( 2000, ch2000c,     ch2000,   sfbonus,    amcoetype1,    ch2000c, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.1LT, set 2)", 0)
4882GAME( 2000, ch2000d,     ch2000,   sfbonus,    amcoetype1,    ch2000d, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.1LT, set 3)", 0)
4883GAME( 2000, ch2000v3,    ch2000,   sfbonus,    amcoetype1,    ch2000v3,ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.1LT Dual)", 0)
74014884
4885GAME( 2000, ch2000b,     ch2000,   sfbonus,    amcoetype2,    ch2000, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.4R, set 1)", 0)
4886GAME( 2000, ch2000c2,    ch2000,   sfbonus,    amcoetype1,    ch2000c,ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.4R, set 2)", 0)
4887GAME( 2000, ch2000d2,    ch2000,   sfbonus,    amcoetype1,    ch2000d, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.4R, set 3)", 0)
4888GAME( 2000, ch2000v,     ch2000,   sfbonus,    amcoetype1,    ch2000v, ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.4R Dual)", 0)
4889GAME( 2000, ch2000v2,    ch2000,   sfbonus,    amcoetype1,    ch2000v2,ROT0,  "Amcoe", "Fruit Bonus 2000 / New Cherry 2000 (Version 4.4E Dual)", 0)
74024890
7403GAME( 2001, pir2001,     0,        sfbonus,    parrot3,    pir2001, ROT0,  "Amcoe", "Pirate 2001 (Version 2.3N)", GAME_NOT_WORKING|GAME_NO_SOUND )
7404GAME( 2001, pir2001a,    pir2001,  sfbonus,    parrot3,    pir2001, ROT0,  "Amcoe", "Pirate 2001 (Version 2.3)", GAME_NOT_WORKING|GAME_NO_SOUND )
7405GAME( 2001, pir2001b,    pir2001,  sfbonus,    parrot3,    pir2001, ROT0,  "Amcoe", "Pirate 2001 (Version 2.20XT)", GAME_NOT_WORKING|GAME_NO_SOUND )
4891GAME( 2001, pir2001,     0,        sfbonus,    amcoetype2,    pir2001, ROT0,  "Amcoe", "Pirate 2001 (Version 2.3N)", 0)
4892GAME( 2001, pir2001a,    pir2001,  sfbonus,    amcoetype2,    pir2001, ROT0,  "Amcoe", "Pirate 2001 (Version 2.3)", 0)
4893GAME( 2001, pir2001b,    pir2001,  sfbonus,    amcoetype2,    pir2001, ROT0,  "Amcoe", "Pirate 2001 (Version 2.20XT)", 0)
74064894
7407GAME( 2001, pir2001b2,   pir2001,  sfbonus,    parrot3,    pir2001, ROT0,  "Amcoe", "Pirate 2001 (Version 2.40XT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7408GAME( 2001, pir2001d2,   pir2001,  sfbonus,    parrot3,    pir2001d,ROT0,  "Amcoe", "Pirate 2001 (Version 2.40XT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7409GAME( 2001, pir2001v3,   pir2001,  sfbonus,    parrot3,    pir2001v,ROT0,  "Amcoe", "Pirate 2001 (Version 2.40XT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4895GAME( 2001, pir2001b2,   pir2001,  sfbonus,    amcoetype2,    pir2001, ROT0,  "Amcoe", "Pirate 2001 (Version 2.40XT, set 1)", 0)
4896GAME( 2001, pir2001d2,   pir2001,  sfbonus,    amcoetype1,    pir2001d,ROT0,  "Amcoe", "Pirate 2001 (Version 2.40XT, set 2)", 0)
4897GAME( 2001, pir2001v3,   pir2001,  sfbonus,    amcoetype1,    pir2001v,ROT0,  "Amcoe", "Pirate 2001 (Version 2.40XT Dual)", 0)
74104898
7411GAME( 2001, pir2001b3,   pir2001,  sfbonus,    parrot3,    pir2001, ROT0,  "Amcoe", "Pirate 2001 (Version 2.5R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7412GAME( 2001, pir2001d,    pir2001,  sfbonus,    parrot3,    pir2001d,ROT0,  "Amcoe", "Pirate 2001 (Version 2.5R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7413GAME( 2001, pir2001v,    pir2001,  sfbonus,    parrot3,    pir2001v,ROT0,  "Amcoe", "Pirate 2001 (Version 2.5R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4899GAME( 2001, pir2001b3,   pir2001,  sfbonus,    amcoetype2,    pir2001, ROT0,  "Amcoe", "Pirate 2001 (Version 2.5R, set 1)", 0)
4900GAME( 2001, pir2001d,    pir2001,  sfbonus,    amcoetype1,    pir2001d,ROT0,  "Amcoe", "Pirate 2001 (Version 2.5R, set 2)", 0)
4901GAME( 2001, pir2001v,    pir2001,  sfbonus,    amcoetype1,    pir2001v,ROT0,  "Amcoe", "Pirate 2001 (Version 2.5R Dual)", 0)
74144902
7415GAME( 2001, pir2001v2,   pir2001,  sfbonus,    parrot3,    pir2001v2,ROT0, "Amcoe", "Pirate 2001 (Version 2.5E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4903GAME( 2001, pir2001v2,   pir2001,  sfbonus,    amcoetype1,    pir2001v2,ROT0, "Amcoe", "Pirate 2001 (Version 2.5E Dual)", 0)
74164904
7417GAME( 2002, pir2002,     0,        sfbonus,    parrot3,    pir2002, ROT0,  "Amcoe", "Pirate 2002 (Version 1.8N)", GAME_NOT_WORKING|GAME_NO_SOUND )
7418GAME( 2002, pir2002a,    pir2002,  sfbonus,    parrot3,    pir2002, ROT0,  "Amcoe", "Pirate 2002 (Version 1.8)", GAME_NOT_WORKING|GAME_NO_SOUND )
7419GAME( 2002, pir2002b,    pir2002,  sfbonus,    parrot3,    pir2002, ROT0,  "Amcoe", "Pirate 2002 (Version 1.70XT)", GAME_NOT_WORKING|GAME_NO_SOUND )
4905GAME( 2002, pir2002,     0,        sfbonus,    amcoetype2,    pir2002, ROT0,  "Amcoe", "Pirate 2002 (Version 1.8N)", 0)
4906GAME( 2002, pir2002a,    pir2002,  sfbonus,    amcoetype2,    pir2002, ROT0,  "Amcoe", "Pirate 2002 (Version 1.8)", 0)
4907GAME( 2002, pir2002b,    pir2002,  sfbonus,    amcoetype2,    pir2002, ROT0,  "Amcoe", "Pirate 2002 (Version 1.70XT)", 0)
74204908
7421GAME( 2002, pir2002b2,   pir2002,  sfbonus,    parrot3,    pir2002, ROT0,  "Amcoe", "Pirate 2002 (Version 1.90XT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7422GAME( 2002, pir2002d2,   pir2002,  sfbonus,    parrot3,    pir2002d,ROT0,  "Amcoe", "Pirate 2002 (Version 1.90XT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7423GAME( 2002, pir2002v3,   pir2002,  sfbonus,    parrot3,    pir2002v, ROT0, "Amcoe", "Pirate 2002 (Version 1.90XT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4909GAME( 2002, pir2002b2,   pir2002,  sfbonus,    amcoetype2,    pir2002, ROT0,  "Amcoe", "Pirate 2002 (Version 1.90XT, set 1)", 0)
4910GAME( 2002, pir2002d2,   pir2002,  sfbonus,    amcoetype1,    pir2002d,ROT0,  "Amcoe", "Pirate 2002 (Version 1.90XT, set 2)", 0)
4911GAME( 2002, pir2002v3,   pir2002,  sfbonus,    amcoetype1,    pir2002v, ROT0, "Amcoe", "Pirate 2002 (Version 1.90XT Dual)", 0)
74244912
7425GAME( 2002, pir2002b3,   pir2002,  sfbonus,    parrot3,    pir2002, ROT0,  "Amcoe", "Pirate 2002 (Version 2.0R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7426GAME( 2002, pir2002d,    pir2002,  sfbonus,    parrot3,    pir2002d, ROT0, "Amcoe", "Pirate 2002 (Version 2.0R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7427GAME( 2002, pir2002v,    pir2002,  sfbonus,    parrot3,    pir2002v,ROT0,  "Amcoe", "Pirate 2002 (Version 2.0R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4913GAME( 2002, pir2002b3,   pir2002,  sfbonus,    amcoetype2,    pir2002, ROT0,  "Amcoe", "Pirate 2002 (Version 2.0R, set 1)", 0)
4914GAME( 2002, pir2002d,    pir2002,  sfbonus,    amcoetype1,    pir2002d, ROT0, "Amcoe", "Pirate 2002 (Version 2.0R, set 2)", 0)
4915GAME( 2002, pir2002v,    pir2002,  sfbonus,    amcoetype1,    pir2002v,ROT0,  "Amcoe", "Pirate 2002 (Version 2.0R Dual)", 0)
74284916
7429GAME( 2002, pir2002v2,   pir2002,  sfbonus,    parrot3,    pir2002v2,ROT0, "Amcoe", "Pirate 2002 (Version 2.0E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4917GAME( 2002, pir2002v2,   pir2002,  sfbonus,    amcoetype1,    pir2002v2,ROT0, "Amcoe", "Pirate 2002 (Version 2.0E Dual)", 0)
74304918
7431GAME( 200?, classice,    0,        sfbonus,    parrot3,    classice, ROT0,  "Amcoe", "Classic Edition (Version 1.6LT, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7432GAME( 200?, classiced2,  classice, sfbonus,    parrot3,    classiced,ROT0,  "Amcoe", "Classic Edition (Version 1.6LT, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7433GAME( 200?, classicev2,  classice, sfbonus,    parrot3,    classicev,ROT0,  "Amcoe", "Classic Edition (Version 1.6LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4919GAME( 200?, classice,    0,        sfbonus,    amcoetype1,    classice, ROT0,  "Amcoe", "Classic Edition (Version 1.6LT, set 1)", 0)
4920GAME( 200?, classiced2,  classice, sfbonus,    amcoetype1,    classiced,ROT0,  "Amcoe", "Classic Edition (Version 1.6LT, set 2)", 0)
4921GAME( 200?, classicev2,  classice, sfbonus,    amcoetype1,    classicev,ROT0,  "Amcoe", "Classic Edition (Version 1.6LT Dual)", 0)
74344922
7435GAME( 200?, classicea,   classice, sfbonus,    parrot3,    classice, ROT0,  "Amcoe", "Classic Edition (Version 1.6R, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7436GAME( 200?, classiced,   classice, sfbonus,    parrot3,    classiced,ROT0,  "Amcoe", "Classic Edition (Version 1.6R, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7437GAME( 200?, classicev,   classice, sfbonus,    parrot3,    classicev,ROT0,  "Amcoe", "Classic Edition (Version 1.6R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4923GAME( 200?, classicea,   classice, sfbonus,    amcoetype1,    classice, ROT0,  "Amcoe", "Classic Edition (Version 1.6R, set 1)", 0)
4924GAME( 200?, classiced,   classice, sfbonus,    amcoetype1,    classiced,ROT0,  "Amcoe", "Classic Edition (Version 1.6R, set 2)", 0)
4925GAME( 200?, classicev,   classice, sfbonus,    amcoetype1,    classicev,ROT0,  "Amcoe", "Classic Edition (Version 1.6R Dual)", 0)
74384926
7439GAME( 200?, classiced3,  classice, sfbonus,    parrot3,    classiced3,ROT0,  "Amcoe", "Classic Edition (Version 1.6E)", GAME_NOT_WORKING|GAME_NO_SOUND )
7440GAME( 200?, classicev3,  classice, sfbonus,    parrot3,    classicev3,ROT0,  "Amcoe", "Classic Edition (Version 1.6E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4927GAME( 200?, classiced3,  classice, sfbonus,    amcoetype1,    classiced3,ROT0,  "Amcoe", "Classic Edition (Version 1.6E)", 0)
4928GAME( 200?, classicev3,  classice, sfbonus,    amcoetype1,    classicev3,ROT0,  "Amcoe", "Classic Edition (Version 1.6E Dual)", 0)
74414929
7442GAME( 200?, seawld,      0,        sfbonus,    parrot3,    seawld, ROT0,  "Amcoe", "Sea World (Version 1.6R CGA)", GAME_NOT_WORKING|GAME_NO_SOUND )
7443GAME( 200?, seawlda,     seawld,   sfbonus,    parrot3,    seawlda, ROT0,  "Amcoe", "Sea World (Version 1.6E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4930GAME( 200?, seawld,      0,        sfbonus,    amcoetype1,    seawld, ROT0,  "Amcoe", "Sea World (Version 1.6R CGA)", 0)
4931GAME( 200?, seawlda,     seawld,   sfbonus,    amcoetype1,    seawlda, ROT0,  "Amcoe", "Sea World (Version 1.6E Dual)", 0)
74444932
7445GAME( 200?, moneymacd,   moneymac, sfbonus,    parrot3,    moneymacd,ROT0,  "Amcoe", "Money Machine (Version 1.7R)", GAME_NOT_WORKING|GAME_NO_SOUND )
7446GAME( 200?, moneymac,    0,        sfbonus,    parrot3,    moneymac, ROT0,  "Amcoe", "Money Machine (Version 1.7R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4933GAME( 200?, moneymacd,   moneymac, sfbonus,    amcoetype1,    moneymacd,ROT0,  "Amcoe", "Money Machine (Version 1.7R)", 0)
4934GAME( 200?, moneymac,    0,        sfbonus,    amcoetype1,    moneymac, ROT0,  "Amcoe", "Money Machine (Version 1.7R Dual)", 0)
74474935
7448GAME( 200?, moneymacd2,  moneymac, sfbonus,    parrot3,    moneymacd, ROT0, "Amcoe", "Money Machine (Version 1.7LT)", GAME_NOT_WORKING|GAME_NO_SOUND )
7449GAME( 200?, moneymacv2,  moneymac, sfbonus,    parrot3,    moneymac, ROT0,  "Amcoe", "Money Machine (Version 1.7LT Dual", GAME_NOT_WORKING|GAME_NO_SOUND )
4936GAME( 200?, moneymacd2,  moneymac, sfbonus,    amcoetype1,    moneymacd, ROT0, "Amcoe", "Money Machine (Version 1.7LT)", 0)
4937GAME( 200?, moneymacv2,  moneymac, sfbonus,    amcoetype1,    moneymac, ROT0,  "Amcoe", "Money Machine (Version 1.7LT Dual", 0)
74504938
7451GAME( 200?, moneymacv,   moneymac, sfbonus,    parrot3,    moneymacv, ROT0,  "Amcoe", "Money Machine (Version 1.7E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4939GAME( 200?, moneymacv,   moneymac, sfbonus,    amcoetype1,    moneymacv, ROT0,  "Amcoe", "Money Machine (Version 1.7E Dual)", 0)
74524940
7453GAME( 200?, atworld,     0,        sfbonus,    parrot3,    atworld, ROT0,  "Amcoe", "Around The World (Version 1.3R CGA)", GAME_NOT_WORKING|GAME_NO_SOUND )
7454GAME( 200?, atworlda,    atworld,  sfbonus,    parrot3,    atworlda, ROT0, "Amcoe", "Around The World (Version 1.3E CGA)", GAME_NOT_WORKING|GAME_NO_SOUND )
4941GAME( 200?, atworld,     0,        sfbonus,    amcoetype1,    atworld, ROT0,  "Amcoe", "Around The World (Version 1.3R CGA)", 0)
4942GAME( 200?, atworlda,    atworld,  sfbonus,    amcoetype1,    atworlda, ROT0, "Amcoe", "Around The World (Version 1.3E CGA)", 0)
74554943
7456GAME( 2000, fb5,         0,        sfbonus,    parrot3,    fb5, ROT0,  "Amcoe", "Fruit Bonus 5 (Version 1.5SH, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7457GAME( 2000, fb5c,        fb5,      sfbonus,    parrot3,    fb5, ROT0,  "Amcoe", "Fruit Bonus 5 (Version 1.5SH, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7458GAME( 2000, fb5d,        fb5,      sfbonus,    parrot3,    fb5d, ROT0,  "Amcoe", "Fruit Bonus 5 (Version 1.5SH, set 3)", GAME_NOT_WORKING|GAME_NO_SOUND )
7459GAME( 2000, fb5v,        fb5,      sfbonus,    parrot3,    fb5v, ROT0,  "Amcoe", "Fruit Bonus 5 (Version 1.5SH Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4944GAME( 2000, fb5,         0,        sfbonus,    amcoetype2,    fb5, ROT0,  "Amcoe", "Fruit Bonus 5 (Version 1.5SH, set 1)", 0)
4945GAME( 2000, fb5c,        fb5,      sfbonus,    amcoetype1,    fb5, ROT0,  "Amcoe", "Fruit Bonus 5 (Version 1.5SH, set 2)", 0)
4946GAME( 2000, fb5d,        fb5,      sfbonus,    amcoetype1,    fb5d, ROT0,  "Amcoe", "Fruit Bonus 5 (Version 1.5SH, set 3)", 0)
4947GAME( 2000, fb5v,        fb5,      sfbonus,    amcoetype1,    fb5v, ROT0,  "Amcoe", "Fruit Bonus 5 (Version 1.5SH Dual)", 0)
74604948
7461GAME( 2000, fb6,         0,        sfbonus,    parrot3,    fb6, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7E CGA)", GAME_NOT_WORKING|GAME_NO_SOUND )
4949GAME( 2000, fb6,         0,        sfbonus,    amcoetype1,    fb6, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7E CGA)", 0)
74624950
7463GAME( 2000, fb6v3,       fb6,      sfbonus,    parrot3,    fb6v3, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4951GAME( 2000, fb6v3,       fb6,      sfbonus,    amcoetype1,    fb6v3, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7E Dual)", 0)
74644952
7465GAME( 2000, fb6d2,       fb6,      sfbonus,    parrot3,    fb6d, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7R CGA, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7466GAME( 2000, fb6s,        fb6,      sfbonus,    parrot3,    fb6s, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7R CGA, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7467GAME( 2000, fb6v,        fb6,      sfbonus,    parrot3,    fb6v, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4953GAME( 2000, fb6d2,       fb6,      sfbonus,    amcoetype1,    fb6d, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7R CGA, set 1)", 0)
4954GAME( 2000, fb6s,        fb6,      sfbonus,    amcoetype1,    fb6s, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7R CGA, set 2)", GAME_NOT_WORKING) // no reel gfx
4955GAME( 2000, fb6v,        fb6,      sfbonus,    amcoetype1,    fb6v, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7R Dual)", 0)
74684956
7469GAME( 2000, fb6d,        fb6,      sfbonus,    parrot3,    fb6d, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7LT CGA, set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7470GAME( 2000, fb6s2,       fb6,      sfbonus,    parrot3,    fb6s, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7LT CGA, set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7471GAME( 2000, fb6v2,       fb6,      sfbonus,    parrot3,    fb6v, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4957GAME( 2000, fb6d,        fb6,      sfbonus,    amcoetype1,    fb6d, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7LT CGA, set 1)", 0)
4958GAME( 2000, fb6s2,       fb6,      sfbonus,    amcoetype1,    fb6s, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7LT CGA, set 2)", GAME_NOT_WORKING) // no reel gfx
4959GAME( 2000, fb6v2,       fb6,      sfbonus,    amcoetype1,    fb6v, ROT0,  "Amcoe", "Fruit Bonus 6 (Version 1.7LT Dual)", 0)
74724960
7473GAME( 2000, fb6se,       0,        sfbonus,    parrot3,    fb6d, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4R CGA)", GAME_NOT_WORKING|GAME_NO_SOUND )
7474GAME( 2000, fb6sev,      fb6se,    sfbonus,    parrot3,    fb6v, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4R Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4961GAME( 2000, fb6se,       0,        sfbonus,    amcoetype1,    fb6d, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4R CGA)", 0)
4962GAME( 2000, fb6sev,      fb6se,    sfbonus,    amcoetype1,    fb6v, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4R Dual)", 0)
74754963
7476GAME( 2000, fb6sed,      fb6se,    sfbonus,    parrot3,    fb6d, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4LT CGA)", GAME_NOT_WORKING|GAME_NO_SOUND )
7477GAME( 2000, fb6sev2,     fb6se,    sfbonus,    parrot3,    fb6v, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4LT Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4964GAME( 2000, fb6sed,      fb6se,    sfbonus,    amcoetype1,    fb6d, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4LT CGA)", 0)
4965GAME( 2000, fb6sev2,     fb6se,    sfbonus,    amcoetype1,    fb6v, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4LT Dual)", 0)
74784966
7479GAME( 2000, fb6sed2,     fb6se,    sfbonus,    parrot3,    fb6, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4E CGA)", GAME_NOT_WORKING|GAME_NO_SOUND )
7480GAME( 2000, fb6sev3,     fb6se,    sfbonus,    parrot3,    fb6v3, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4E Dual)", GAME_NOT_WORKING|GAME_NO_SOUND )
4967GAME( 2000, fb6sed2,     fb6se,    sfbonus,    amcoetype1,    fb6, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4E CGA)", 0)
4968GAME( 2000, fb6sev3,     fb6se,    sfbonus,    amcoetype1,    fb6v3, ROT0,  "Amcoe", "Fruit Bonus 6 Special Edition (Version 1.4E Dual)", 0)
74814969
74824970// no gfx / sound roms
7483GAME( 2000, version4,    0,        sfbonus,    parrot3,    version4, ROT0,  "Amcoe", "Version 4 (Version 4.2R)", GAME_NOT_WORKING|GAME_NO_SOUND )
4971GAME( 2000, version4,    0,        sfbonus,    amcoetype1,    version4, ROT0,  "Amcoe", "Version 4 (Version 4.2R)", GAME_NOT_WORKING)
74844972// no gfx / sound roms
7485GAME( 2000, bugfever,    0,        sfbonus,    parrot3,    bugfever, ROT0,  "Amcoe", "Bug Fever (set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7486GAME( 2000, bugfeverd,   bugfever, sfbonus,    parrot3,    bugfeverd, ROT0,  "Amcoe", "Bug Fever (set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
7487GAME( 2000, bugfeverv,   bugfever, sfbonus,    parrot3,    bugfeverv, ROT0,  "Amcoe", "Bug Fever (set 3)", GAME_NOT_WORKING|GAME_NO_SOUND )
7488GAME( 2000, bugfeverv2,  bugfever, sfbonus,    parrot3,    bugfeverv2, ROT0,  "Amcoe", "Bug Fever (set 4)", GAME_NOT_WORKING|GAME_NO_SOUND )
4973GAME( 2000, bugfever,    0,        sfbonus,    amcoetype1,    bugfever, ROT0,  "Amcoe", "Bug Fever (set 1)", GAME_NOT_WORKING)
4974GAME( 2000, bugfeverd,   bugfever, sfbonus,    amcoetype1,    bugfeverd, ROT0,  "Amcoe", "Bug Fever (set 2)", GAME_NOT_WORKING)
4975GAME( 2000, bugfeverv,   bugfever, sfbonus,    amcoetype1,    bugfeverv, ROT0,  "Amcoe", "Bug Fever (set 3)", GAME_NOT_WORKING)
4976GAME( 2000, bugfeverv2,  bugfever, sfbonus,    amcoetype1,    bugfeverv2, ROT0,  "Amcoe", "Bug Fever (set 4)", GAME_NOT_WORKING)
74894977// no gfx / sound roms
7490GAME( 2000, dvisland,    0,        sfbonus,    parrot3,    dvisland, ROT0,  "Amcoe", "Devil's Island", GAME_NOT_WORKING|GAME_NO_SOUND )
4978GAME( 2000, dvisland,    0,        sfbonus,    amcoetype1,    dvisland, ROT0,  "Amcoe", "Devil's Island", GAME_NOT_WORKING)
74914979// no gfx / sound roms
7492GAME( 2000, funriver,    0,        sfbonus,    parrot3,    funriver, ROT0,  "Amcoe", "Fun River (set 1)", GAME_NOT_WORKING|GAME_NO_SOUND )
7493GAME( 2000, funriverv,   funriver, sfbonus,    parrot3,    funriverv, ROT0,  "Amcoe", "Fun River (set 2)", GAME_NOT_WORKING|GAME_NO_SOUND )
4980GAME( 2000, funriver,    0,        sfbonus,    amcoetype1,    funriver, ROT0,  "Amcoe", "Fun River (set 1)", GAME_NOT_WORKING)
4981GAME( 2000, funriverv,   funriver, sfbonus,    amcoetype1,    funriverv, ROT0,  "Amcoe", "Fun River (set 2)", GAME_NOT_WORKING)
74944982// ?? what is this
7495GAME( 2000, amclink,    0,        sfbonus,    parrot3,    sfbonus_common, ROT0,  "Amcoe", "Amcoe Link Control Box (Version 2.2)", GAME_NOT_WORKING|GAME_NO_SOUND )
4983GAME( 2000, amclink,    0,        sfbonus,    amcoetype1,    sfbonus_common, ROT0,  "Amcoe", "Amcoe Link Control Box (Version 2.2)", GAME_NOT_WORKING)
src/mame/drivers/ultrsprt.c
r4406r4407
8282static MACHINE_START( ultrsprt )
8383{
8484   /* set conservative DRC options */
85   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_DRC_OPTIONS, PPCDRC_COMPATIBLE_OPTIONS);
85   ppcdrc_set_options(machine->cpu[0], PPCDRC_COMPATIBLE_OPTIONS);
8686
8787   /* configure fast RAM regions for DRC */
88   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_SELECT, 0);
89   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_START, 0x80000000);
90   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_END, 0x8007ffff);
91   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_PPC_FASTRAM_BASE, vram);
92   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_READONLY, 0);
93
94   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_SELECT, 1);
95   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_START, 0xff000000);
96   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_END, 0xff01ffff);
97   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_PPC_FASTRAM_BASE, workram);
98   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_READONLY, 0);
88   ppcdrc_add_fastram(machine->cpu[0], 0x80000000, 0x8007ffff, FALSE, vram);
89   ppcdrc_add_fastram(machine->cpu[0], 0xff000000, 0xff01ffff, FALSE, workram);
9990}
10091
10192
src/mame/drivers/cntsteer.c
r4406r4407
77    Emulation by Bryan McPhail, mish@tendril.co.uk
88    Improvements by Pierpaolo Prazzoli, David Haywood, Angelo Salese
99
10    Various things aren't fully understood, for example the rotating BG layer
11
1210    todo:
1311    finish
14        sprite fixes
15        correct roz rotation
16        colour fixes for the sprites
17        Dip-Switches
18        make cntsteer work, comms looks awkward and probably different than Zero Target
12        - correct roz rotation;
13        - make cntsteer work, comms looks awkward and probably different than Zero Target;
14        - flip screen support;
15        - according to a side-by-side test, sound should be "darker" by some octanes,
16          likely that a sound filter is needed;
1917    cleanup
20        split into driver/video
18        - split into driver/video;
2119
2220***************************************************************************************/
2321
r4406r4407
2523#include "cpu/m6502/m6502.h"
2624#include "cpu/m6809/m6809.h"
2725#include "sound/ay8910.h"
26#include <math.h>
2827
2928static tilemap *bg_tilemap, *fg_tilemap;
3029static UINT8 *videoram2;
r4406r4407
7877   SET_TILE_INFO(0, code, 0x30+((attr & 0x78)>>3), 0);
7978}
8079
80static VIDEO_START( cntsteer )
81{
82   bg_tilemap = tilemap_create(machine, get_bg_tile_info,tilemap_scan_cols,16,16,64,64);
83   fg_tilemap = tilemap_create(machine, get_fg_tile_info,tilemap_scan_rows_flip_x,8, 8,32,32);
84
85   tilemap_set_transparent_pen(fg_tilemap,0);
86
87//  tilemap_set_flip(bg_tilemap, TILEMAP_FLIPX | TILEMAP_FLIPY);
88}
89
8190static VIDEO_START( zerotrgt )
8291{
83   bg_tilemap = tilemap_create(machine, get_bg_tile_info,tilemap_scan_rows,       16,16,64,64);
92   bg_tilemap = tilemap_create(machine, get_bg_tile_info,tilemap_scan_rows,16,16,64,64);
8493   fg_tilemap = tilemap_create(machine, get_fg_tile_info,tilemap_scan_rows_flip_x,8, 8,32,32);
8594
8695   tilemap_set_transparent_pen(fg_tilemap,0);
8796
88   tilemap_set_flip(bg_tilemap, TILEMAP_FLIPX|TILEMAP_FLIPY);
97//  tilemap_set_flip(bg_tilemap, TILEMAP_FLIPX | TILEMAP_FLIPY);
8998}
9099
100/*
101Sprite list:
102
103[0] xxxx xxxx Y attribute
104[1] xx-- ---- sprite number bank
105    --x- x--- color number
106    ---x ---- double-height attribute
107    ---- -x-- flip x (active low)
108    ---- --x- flip y
109    ---- ---x draw sprite flag (active low)
110[2] xxxx xxxx X attribute
111[3] xxxx xxxx sprite number
112*/
91113static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect)
92114{
93115   int offs;
94116
95117   for (offs = 0;offs < 0x200;offs += 4)
96118   {
97      int multi,fx,fy,sx,sy,sy2,code,code2,color;
119      int multi,fx,fy,sx,sy,code,color;
98120
99121      if((spriteram[offs+1] & 1) == 1)
100122         continue;
101123
102124      code = spriteram[offs+3] + ( ( spriteram[offs+1] & 0xc0 ) << 2 );
103
104      code2 = code+1;
105125      sx = (spriteram[offs+2]);
106
107126      sy = 0xf0 - spriteram[offs];
108      color = 0x10+((spriteram[offs+1] & 0x20) >> 4) + ((spriteram[offs+1] & 0x8)>>3); //trusted.
127      color = 0x10+((spriteram[offs+1] & 0x20) >> 4) + ((spriteram[offs+1] & 0x8)>>3);
109128
110129      fx = !(spriteram[offs+1] & 0x04);
111      fy = (spriteram[offs+1] & 0x02);  //check
130      fy = (spriteram[offs+1] & 0x02);
112131
113132      multi = spriteram[offs+1] & 0x10;
114133
r4406r4407
116135         sy=240-sy;
117136         sx=240-sx;
118137         if (fx) fx=0; else fx=1;
119         sy2=sy-16;
138         //sy2=sy-16;
120139      }
121      else sy2=sy+16;
122140
123      if (fy && multi) {
124         sy2=sy;
125         sy-=16;
126         code++;
127         code2--;
141        if(multi)
142        {
143         if(fy)
144         {
145            drawgfx(bitmap,machine->gfx[1],code,color,fx,fy,sx,sy,cliprect,TRANSPARENCY_PEN,0);
146            drawgfx(bitmap,machine->gfx[1],code+1,color,fx,fy,sx,sy-16,cliprect,TRANSPARENCY_PEN,0);
147         }
148         else
149         {
150              drawgfx(bitmap,machine->gfx[1],code,color,fx,fy,sx,sy-16,cliprect,TRANSPARENCY_PEN,0);
151              drawgfx(bitmap,machine->gfx[1],code+1,color,fx,fy,sx,sy,cliprect,TRANSPARENCY_PEN,0);
152         }
128153      }
129
130       drawgfx(bitmap,machine->gfx[1],
131              code,
132            color,
133            fx,fy,
134            sx,sy,
135            cliprect,TRANSPARENCY_PEN,0);
136        if (multi)
137          drawgfx(bitmap,machine->gfx[1],
138            code2,
139            color,
140            fx,fy,
141            sx,sy2,
142            cliprect,TRANSPARENCY_PEN,0);
154      else
155            drawgfx(bitmap,machine->gfx[1],code,color,fx,fy,sx,sy,cliprect,TRANSPARENCY_PEN,0);
143156   }
144157}
145158
r4406r4407
149162      bitmap_fill(bitmap, cliprect, screen->machine->pens[8*bg_color_bank]);
150163   else
151164   {
165      static int p1,p2,p3,p4;
166      static int rot_val,x,y;
167
168      rot_val = rotation_sign ? (-rotation_x) : (rotation_x);
169
170//      popmessage("%d %02x %02x",rot_val,rotation_sign,rotation_x);
171
172      if(rot_val > 90) { rot_val = 90; }
173      if(rot_val < -90) { rot_val = -90; }
174
175      /*
176        (u, v) = (a + cx + dy, b - dx + cy) when (x, y)=screen and (u, v) = tilemap
177        */
178      /*
179             1
180        0----|----0
181            -1
182             0
183        0----|----1
184             0
185        */
186      /*65536*z*cos(a), 65536*z*sin(a), -65536*z*sin(a), 65536*z*cos(a)*/
187      p1 = -65536*1*cos(2*M_PI*(rot_val)/1024);
188      p2 = -65536*1*sin(2*M_PI*(rot_val)/1024);
189      p3 = 65536*1*sin(2*M_PI*(rot_val)/1024);
190      p4 = -65536*1*cos(2*M_PI*(rot_val)/1024);
191
192      x = -256-(scrollx | scrollx_hi);
193      y = 256+(scrolly | scrolly_hi);
194
152195      tilemap_draw_roz(bitmap, cliprect, bg_tilemap,
153                  (scrollx | scrollx_hi ) << 16, (scrolly | scrolly_hi) << 16,
154                  1<<16, (rotation_sign) ? -rotation_x<<8 : rotation_x<<8,
155                  0<<16, 1<<16,
196                  (x << 16), (y << 16),
197                  p1, p2,
198                  p3, p4,
156199                  1,
157200                  0, 0);
158201   }
r4406r4407
181224//  static UINT8 test[5];
182225
183226//  test[offset] = data;
184//  popmessage("%02x %02x %02x %02x %02x",test[0],test[1],test[2],test[3],test[4]);
227//    popmessage("%02x %02x %02x %02x %02x",test[0],test[1],test[2],test[3],test[4]);
185228
186229   switch(offset)
187230   {
r4406r4407
264307   AM_RANGE(0x4000, 0xffff) AM_ROM
265308ADDRESS_MAP_END
266309
310static ADDRESS_MAP_START( cntsteer_cpu1_map, ADDRESS_SPACE_PROGRAM, 8 )
311   AM_RANGE(0x0000, 0x0fff) AM_RAM //AM_SHARE(1)
312   AM_RANGE(0x1000, 0x11ff) AM_RAM AM_BASE(&spriteram)
313   AM_RANGE(0x1200, 0x1fff) AM_RAM
314   AM_RANGE(0x2000, 0x23ff) AM_RAM_WRITE(cntsteer_foreground_vram_w) AM_BASE(&videoram)
315   AM_RANGE(0x2400, 0x27ff) AM_RAM_WRITE(cntsteer_foreground_attr_w) AM_BASE(&colorram)
316   AM_RANGE(0x3000, 0x3003) AM_WRITE(zerotrgt_ctrl_w)
317   AM_RANGE(0x8000, 0xffff) AM_ROM
318ADDRESS_MAP_END
319
320static ADDRESS_MAP_START( cntsteer_cpu2_map, ADDRESS_SPACE_PROGRAM, 8 )
321   AM_RANGE(0x0000, 0x1fff) AM_RAM //AM_SHARE(1)
322   AM_RANGE(0x2000, 0x2fff) AM_RAM_WRITE(cntsteer_background_w) AM_BASE(&videoram2)
323   AM_RANGE(0x3000, 0x3000) AM_READ_PORT("DSW0")
324   AM_RANGE(0x3001, 0x3001) AM_READ_PORT("P2")
325   AM_RANGE(0x3002, 0x3002) AM_READ_PORT("P1")
326   AM_RANGE(0x3003, 0x3003) AM_READ_PORT("COINS")
327   AM_RANGE(0x3000, 0x3004) AM_WRITE(cntsteer_vregs_w)
328   AM_RANGE(0x3005, 0x3005) AM_WRITE(gekitsui_sub_irq_ack)
329   AM_RANGE(0x3007, 0x3007) AM_WRITE(cntsteer_sound_w)
330   AM_RANGE(0x4000, 0xffff) AM_ROM
331ADDRESS_MAP_END
332
267333/***************************************************************************/
268334
269335static int nmimask;
r4406r4407
338404   PORT_BIT( 0xf8, IP_ACTIVE_LOW, IPT_UNUSED )
339405INPUT_PORTS_END
340406
407/* inputs needs some work in this one.*/
341408static INPUT_PORTS_START( cntsteer )
342409   PORT_INCLUDE( zerotrgt )
343410
344   PORT_MODIFY("DSW0")
345   PORT_DIPNAME( 0x01, 0x01, "0" )
411   PORT_MODIFY("P1")
412   PORT_DIPNAME( 0x01, 0x01, "SYSTEM" )
346413   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
347414   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
348415   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
r4406r4407
366433   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
367434   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
368435   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
436
437   PORT_MODIFY("P2")
438   PORT_DIPNAME( 0x01, 0x01, "SYSTEM" )
439   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
440   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
441   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
442   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
443   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
444   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
445   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
446   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
447   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
448   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
449   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
450   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
451   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
452   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
453   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
454   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
455   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
456   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
457   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
458   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
459   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
460   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
461   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
462
463   PORT_MODIFY("COINS")
464   PORT_DIPNAME( 0x01, 0x01, "SYSTEM" )
465   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
466   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
467   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
468   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
469   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
470   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
471   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
472   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
473   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
474   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
475   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
476   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
477   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
478   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
479   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
480   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
481   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
482   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
483   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
484   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
485   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
486   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
487   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
488
489   PORT_MODIFY("DSW0")
490   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2")
491   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
492   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
493   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
494   PORT_DIPSETTING(    0x01, DEF_STR( 1C_3C ) )
495   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_B ) ) PORT_DIPLOCATION("SW1:3,4")
496   PORT_DIPSETTING(    0x00, DEF_STR( 2C_1C ) )
497   PORT_DIPSETTING(    0x0c, DEF_STR( 1C_1C ) )
498   PORT_DIPSETTING(    0x08, DEF_STR( 1C_2C ) )
499   PORT_DIPSETTING(    0x04, DEF_STR( 1C_3C ) )
500   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Service_Mode ) ) PORT_DIPLOCATION("SW1:5")
501   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
502   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
503   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:6")
504   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
505   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
506   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:7")
507   PORT_DIPSETTING(    0x40, DEF_STR( Normal ) )
508   PORT_DIPSETTING(    0x00, DEF_STR( Hard ) )
509   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:8")
510   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
511   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
369512INPUT_PORTS_END
370513
371514/***************************************************************************/
372515
373/* this layout is bad and reads way beyond the end of the array */
374516static const gfx_layout cntsteer_charlayout =
375517{
376518   8,8,   /* 8*8 characters */
r4406r4407
382524   8*8   /* every char takes 8 consecutive bytes */
383525};
384526
385/* this layout is bad and reads way beyond the end of the array */
386527static const gfx_layout zerotrgt_charlayout =
387528{
388529   8,8,
r4406r4407
444585
445586static MACHINE_DRIVER_START( cntsteer )
446587   MDRV_CPU_ADD("maincpu", M6809, 2000000)       /* ? */
447   MDRV_CPU_PROGRAM_MAP(gekitsui_cpu1_map,0)
588   MDRV_CPU_PROGRAM_MAP(cntsteer_cpu1_map,0)
448589   MDRV_CPU_VBLANK_INT("screen", nmi_line_pulse) /* ? */
449590
450591   MDRV_CPU_ADD("sub", M6809, 2000000)       /* ? */
451   MDRV_CPU_PROGRAM_MAP(gekitsui_cpu2_map,0)
592   MDRV_CPU_PROGRAM_MAP(cntsteer_cpu2_map,0)
452593//  MDRV_CPU_VBLANK_INT("screen", nmi_line_pulse) /* ? */
453594
454595    MDRV_CPU_ADD("audiocpu", M6502, 1500000)        /* ? */
455596    MDRV_CPU_PROGRAM_MAP(sound_map,0)
456   MDRV_CPU_PERIODIC_INT(sound_interrupt, 640)
597   MDRV_CPU_PERIODIC_INT(sound_interrupt, 480)
457598
458599   /* video hardware */
459600   MDRV_SCREEN_ADD("screen", RASTER)
r4406r4407
469610   MDRV_PALETTE_LENGTH(256)
470611//  MDRV_PALETTE_INIT(zerotrgt)
471612
472   MDRV_VIDEO_START(zerotrgt)
613   MDRV_VIDEO_START(cntsteer)
473614   MDRV_VIDEO_UPDATE(zerotrgt)
474615
475616   /* sound hardware */
r4406r4407
698839
699840/***************************************************************************/
700841
701GAME( 1985, cntsteer, 0,        cntsteer,  cntsteer, zerotrgt, ROT90,  "Data East Corporation", "Counter Steer", GAME_IMPERFECT_GRAPHICS|GAME_NOT_WORKING )
702GAME( 1985, zerotrgt, 0,        zerotrgt,  zerotrgt, zerotrgt, ROT0,   "Data East Corporation", "Zero Target (World)", GAME_IMPERFECT_GRAPHICS|GAME_NOT_WORKING )
703GAME( 1985, gekitsui, zerotrgt, zerotrgt,  zerotrgt, zerotrgt, ROT0,   "Data East Corporation", "Gekitsui Oh (Japan)", GAME_IMPERFECT_GRAPHICS|GAME_NOT_WORKING )
842GAME( 1985, cntsteer, 0,        cntsteer,  cntsteer, zerotrgt, ROT90,  "Data East Corporation", "Counter Steer", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NO_COCKTAIL|GAME_NOT_WORKING )
843GAME( 1985, zerotrgt, 0,        zerotrgt,  zerotrgt, zerotrgt, ROT0,   "Data East Corporation", "Zero Target (World)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NO_COCKTAIL|GAME_NOT_WORKING )
844GAME( 1985, gekitsui, zerotrgt, zerotrgt,  zerotrgt, zerotrgt, ROT0,   "Data East Corporation", "Gekitsui Oh (Japan)", GAME_IMPERFECT_GRAPHICS|GAME_IMPERFECT_SOUND|GAME_NO_COCKTAIL|GAME_NOT_WORKING )
src/mame/drivers/hornet.c
r4406r4407
969969   memset(jvs_sdata, 0, 1024);
970970
971971   /* set conservative DRC options */
972   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_DRC_OPTIONS, PPCDRC_COMPATIBLE_OPTIONS);
972   ppcdrc_set_options(machine->cpu[0], PPCDRC_COMPATIBLE_OPTIONS);
973973
974974   /* configure fast RAM regions for DRC */
975   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_SELECT, 0);
976   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_START, 0x00000000);
977   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_END, 0x003fffff);
978   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_PPC_FASTRAM_BASE, workram);
979   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_READONLY, 0);
975   ppcdrc_add_fastram(machine->cpu[0], 0x00000000, 0x003fffff, FALSE, workram);
980976
981977   state_save_register_global(machine, led_reg0);
982978   state_save_register_global(machine, led_reg1);
src/mame/drivers/cultures.c
r4406r4407
1818static UINT8 *bg0_regs_x, *bg0_regs_y, *bg1_regs_x, *bg1_regs_y, *bg2_regs_x, *bg2_regs_y;
1919static tilemap *bg0_tilemap, *bg1_tilemap, *bg2_tilemap;
2020
21static int video_enable = 0;
21static int video_bank = 0;
2222static int irq_enable = 0;
2323static int bg1_bank = 0, bg2_bank = 0;
2424static int old_bank;
r4406r4407
2727{
2828   UINT8 *region = memory_region(machine, "gfx3") + 0x200000 + 0x80000 * bg1_bank;
2929   int code = region[tile_index*2] + (region[tile_index*2+1] << 8);
30   SET_TILE_INFO(2, code, 0, 0);
30   SET_TILE_INFO(2, code, code>>12, 0);
3131}
3232
3333static TILE_GET_INFO( get_bg2_tile_info )
3434{
3535   UINT8 *region = memory_region(machine, "gfx2") + 0x200000 + 0x80000 * bg2_bank;
3636   int code = region[tile_index*2] + (region[tile_index*2+1] << 8);
37   SET_TILE_INFO(1, code, 0, 0);
37   SET_TILE_INFO(1, code, code>>12, 0);
3838}
3939
4040static TILE_GET_INFO( get_bg0_tile_info )
4141{
4242   int code = bg0_videoram[tile_index*2] + (bg0_videoram[tile_index*2+1] << 8);
43   SET_TILE_INFO(0, code, 0, 0);
43   SET_TILE_INFO(0, code, code>>12, 0);
4444}
4545
4646static VIDEO_START( cultures )
r4406r4407
8686   tilemap_set_scrolly(bg1_tilemap, 0, (bg1_regs_y[2] << 8) + bg1_regs_y[0]);
8787   tilemap_set_scrolly(bg2_tilemap, 0, (bg2_regs_y[2] << 8) + bg2_regs_y[0]);
8888
89   if (video_enable)
90   {
91      tilemap_draw(bitmap, cliprect, bg2_tilemap, 0, 0);
92      tilemap_draw(bitmap, cliprect, bg0_tilemap, 0, 0);
93      tilemap_draw(bitmap, cliprect, bg1_tilemap, 0, 0);
94   }
95   else
96      bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine));
89   tilemap_draw(bitmap, cliprect, bg2_tilemap, 0, 0);
90   tilemap_draw(bitmap, cliprect, bg0_tilemap, 0, 0);
91   tilemap_draw(bitmap, cliprect, bg1_tilemap, 0, 0);
9792
9893   return 0;
9994}
r4406r4407
10196static WRITE8_HANDLER( cpu_bankswitch_w )
10297{
10398   memory_set_bankptr(space->machine, 1, memory_region(space->machine, "maincpu") + 0x4000 * (data & 0xf));
104   video_enable = ~data & 0x20;
99   video_bank = ~data & 0x20;
105100}
106101
107102static WRITE8_HANDLER( bg0_videoram_w )
108103{
109   bg0_videoram[offset] = data;
110   tilemap_mark_tile_dirty(bg0_tilemap, offset >> 1);
104
105   if(video_bank==0)
106   {
107      int r,g,b,datax;
108      paletteram[offset] = data;
109      offset>>=1;
110      datax=paletteram[offset*2]+256*paletteram[offset*2+1];
111
112      r=((datax>>7)&0x1e)|((datax&0x4000)?0x1:0);
113      g=((datax>>3)&0x1e)|((datax&0x2000)?0x1:0);
114      b=((datax<<1)&0x1e)|((datax&0x1000)?0x1:0);
115
116      palette_set_color_rgb(space->machine, offset, pal5bit(r), pal5bit(g), pal5bit(b));
117   }
118   else
119   {
120      bg0_videoram[offset] = data;
121      tilemap_mark_tile_dirty(bg0_tilemap, offset >> 1);
122   }
111123}
112124
113125static WRITE8_HANDLER( misc_w )
r4406r4407
140152      bg2_bank = (data & 0xc) >> 2;
141153      tilemap_mark_all_tiles_dirty(bg2_tilemap);
142154   }
143
144155   coin_counter_w(0,data & 0x10);
145156}
146157
r4406r4407
154165
155166static ADDRESS_MAP_START( cultures_io_map, ADDRESS_SPACE_IO, 8 )
156167   ADDRESS_MAP_GLOBAL_MASK(0xff)
157   AM_RANGE(0x00, 0x03) AM_RAM //?
158   AM_RANGE(0x10, 0x13) AM_RAM //?
168   AM_RANGE(0x00, 0x03) AM_RAM
169   AM_RANGE(0x10, 0x13) AM_RAM
159170   AM_RANGE(0x20, 0x23) AM_RAM AM_BASE(&bg0_regs_x)
160171   AM_RANGE(0x30, 0x33) AM_RAM AM_BASE(&bg0_regs_y)
161172   AM_RANGE(0x40, 0x43) AM_RAM AM_BASE(&bg1_regs_x)
r4406r4407
312323};
313324
314325static GFXDECODE_START( culture )
315   GFXDECODE_ENTRY("gfx1", 0, gfxlayout, 0x000, 1 )
316   GFXDECODE_ENTRY("gfx2", 0, gfxlayout, 0x100, 1 )
317   GFXDECODE_ENTRY("gfx3", 0, gfxlayout, 0x200, 1 )
326   GFXDECODE_ENTRY("gfx1", 0, gfxlayout, 0x0000, 0x10 )
327   GFXDECODE_ENTRY("gfx2", 0, gfxlayout, 0x1000, 0x10 )
328   GFXDECODE_ENTRY("gfx3", 0, gfxlayout, 0x1000, 0x10 )
318329GFXDECODE_END
319330
320331
321332//WRONG!
322333static PALETTE_INIT( cultures )
323334{
324   int c,x,plane;
325335
326   /*every plane appears to use his dedicated color table*/
327   for(plane = 0;plane < 0x300;plane+=0x100)
328   {
329      for (c = 0; c < 256; c++)
330      {
331          int r,g,b,i;
332
333          i = c & 0x03;
334          r = ((c & 0x04) >> 0) | ((c & 0x10) >> 1) | i;
335          g = ((c & 0x20) >> 3) | ((c & 0x40) >> 3) | i;
336          b = ((c & 0x08) >> 1) | ((c & 0x80) >> 4) | i;
337
338         /*
339            r = ((c & 0x0c) >> 0) | i;
340            g = ((c & 0x30) >> 2) | i;
341            b = ((c & 0xc0) >> 4) | i;
342            */
343
344         x = ((c >> 4) & 0x0f);
345
346         x = ((x & 4) << 1) | ((x & 8) >> 1) | (x & 1);
347
348          palette_set_color_rgb(machine, plane+(x | (((c << 4) & 0xf0) ^ 0)), pal4bit(r), pal4bit(g), pal4bit(b));
349      }
350   }
351336}
352337
353338
r4406r4407
382367   MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 0*8, 30*8-1)
383368
384369   MDRV_GFXDECODE(culture)
385   MDRV_PALETTE_LENGTH(0x300)
370   MDRV_PALETTE_LENGTH(0x2000)
386371
387372   MDRV_PALETTE_INIT(cultures)
388373
r4406r4407
460445   ROM_RELOAD(               0x000000, 0x020000 )
461446ROM_END
462447
463GAME( 1994, cultures, 0, cultures, cultures, 0, ROT0, "Face", "Jibun wo Migaku Culture School Mahjong Hen", GAME_WRONG_COLORS )
448static DRIVER_INIT(cultures)
449{
450   paletteram=auto_malloc(0x4000);
451}
452
453GAME( 1994, cultures, 0, cultures, cultures, cultures, ROT0, "Face", "Jibun wo Migaku Culture School Mahjong Hen", 0 )
src/mame/drivers/suprnova.c
r4406r4407
11571157   ROM_LOAD( "gs230000.u1",  0x000000, 0x400000, CRC(0348e8e1) SHA1(8a21c7e5cea0bc08a2595213d689c58c0251fdb5) )
11581158ROM_END
11591159
1160ROM_START( galpans2a )
1161   ROM_REGION( 0x080000, "maincpu", 0 ) /* SH-2 Code */
1162   ROM_LOAD       ( "sknsa1.u10", 0x000000, 0x080000, CRC(745e5212) SHA1(caba649ab2d83b2d7e007eecee0fc582c019df38) ) /* Asia BIOS */
1163
1164   ROM_REGION32_BE( 0x200000, "user1", 0 ) /* SH-2 Code mapped at 0x04000000 */
1165   ROM_LOAD16_BYTE( "gps2av11.u6", 0x000000, 0x100000, CRC(61c05d5f) SHA1(e47c7951c1f688edb6c677532f750537a64bb7b3) )
1166   ROM_LOAD16_BYTE( "gps2av11.u4", 0x000001, 0x100000, CRC(2e8c0ac2) SHA1(d066260d6d3c2924b42394e867523e6112a125c5) )
1167
1168   ROM_REGION( 0x1000000, "gfx1", 0 )
1169   ROM_LOAD( "gs210000.u21", 0x000000, 0x400000, CRC(294b2f14) SHA1(90cbd0acdaa2d89d208c28aae33ab57c03624089) )
1170   ROM_LOAD( "gs210100.u20", 0x400000, 0x400000, CRC(f75c5a9a) SHA1(3919643cee6c88185a1aa3c58c5bc80599bf734e) )
1171   ROM_LOAD( "gs210200.u8",  0x800000, 0x400000, CRC(25b4f56b) SHA1(f9a33d5ed54a04ecece3035e75508d191bbe74b1) )
1172   ROM_LOAD( "gs210300.u32", 0xc00000, 0x400000, CRC(db6d4424) SHA1(0a88dafd0ee2490ff2ef39ce8eb1931c41bdda42) )
1173
1174   ROM_REGION( 0x800000, "gfx2", ROMREGION_DISPOSE )
1175   ROM_LOAD( "gs220000.u17", 0x000000, 0x400000, CRC(5caae1c0) SHA1(8f77e4cf018d7290b2d804cbff9fccf0bf4d2404) )
1176   ROM_LOAD( "gs220100.u9",  0x400000, 0x400000, CRC(8d51f197) SHA1(19d2afab823ea179918e7bcbf4df2283e77570f0) )
1177
1178   ROM_REGION( 0x800000, "gfx3", ROMREGION_ERASE00 ) /* Tiles Plane B */
1179   /* First 0x040000 bytes (0x03ff Tiles) are RAM Based Tiles */
1180   /* 0x040000 - 0x3fffff empty? */
1181   ROM_LOAD( "gs221000.u3",  0x400000, 0x400000, CRC(58800a18) SHA1(5e6d55ecd12275662d6f59559e137b759f23fff6) )
1182
1183   ROM_REGION( 0x400000, "ymz", 0 ) /* Samples */
1184   ROM_LOAD( "gs230000.u1",  0x000000, 0x400000, CRC(0348e8e1) SHA1(8a21c7e5cea0bc08a2595213d689c58c0251fdb5) )
1185ROM_END
1186
11601187/*
11611188
11621189Gals Panic SU (Kaneko 1999)
r4406r4407
15901617
15911618/***** GAME DRIVERS *****/
15921619
1593GAME( 1996, skns,     0,    skns, skns, 0,        ROT0,  "Kaneko", "Super Kaneko Nova System BIOS", GAME_IS_BIOS_ROOT )
1620GAME( 1996, skns,      0,        skns, skns,     0,         ROT0,  "Kaneko", "Super Kaneko Nova System BIOS", GAME_IS_BIOS_ROOT )
15941621
1595GAME( 1996, galpani4, skns,    skns, cyvern,   galpani4, ROT0,  "Kaneko", "Gals Panic 4 (Japan)", GAME_IMPERFECT_GRAPHICS )
1596GAME( 1997, galpanis, skns,    skns, galpanis, galpanis, ROT0,  "Kaneko", "Gals Panic S - Extra Edition (Japan)", GAME_IMPERFECT_GRAPHICS )
1597GAME( 1998, cyvern,   skns,    skns, cyvern,   cyvern,   ROT90, "Kaneko", "Cyvern (Japan)", GAME_IMPERFECT_GRAPHICS )
1598GAME( 1999, galpans2, skns,    skns, galpanis, galpans2, ROT0,  "Kaneko", "Gals Panic S2 (Japan)", GAME_IMPERFECT_GRAPHICS )
1599GAME( 1999, galpansu, galpans2,skns, galpanis, galpans2, ROT0,  "Kaneko", "Gals Panic SU (Korea)", GAME_IMPERFECT_GRAPHICS ) // official or hack?
1600GAME( 1999, panicstr, skns,    skns, galpanis, panicstr, ROT0,  "Kaneko", "Panic Street (Japan)", GAME_IMPERFECT_GRAPHICS )
1601GAME( 1999, senknow , skns,    skns, skns,     senknow,  ROT0,  "Kaneko / Kouyousha", "Sen-Know (Japan)", GAME_IMPERFECT_GRAPHICS )
1602GAME( 2000, gutsn,    skns,    skns, skns,     gutsn,    ROT0,  "Kaneko / Kouyousha", "Guts'n (Japan)", GAME_IMPERFECT_GRAPHICS ) // quite fragile, started working of it's own accord in 0.69 :)
1603GAME( 1998, puzzloop, skns,    skns, puzzloop, puzzloop, ROT0,  "Mitchell", "Puzz Loop (Europe)", GAME_IMPERFECT_GRAPHICS )
1604GAME( 1998, puzzloopj, puzzloop,skns, puzzloop, puzzloopj, ROT0,  "Mitchell", "Puzz Loop (Japan)", GAME_IMPERFECT_GRAPHICS )
1605GAME( 1998, puzzloopu, puzzloop,skns, puzzloop, puzzloopu, ROT0,  "Mitchell", "Puzz Loop (USA)", GAME_IMPERFECT_GRAPHICS )
1606GAME( 1998, puzzloopk, puzzloop,skns, puzzloop, puzzloopu, ROT0,  "Mitchell", "Puzz Loop (Korea)", GAME_IMPERFECT_GRAPHICS ) // Same speed up as US version
1607GAME( 1996, jjparads, skns,    skns, skns_1p,  jjparads, ROT0,  "Electro Design", "Jan Jan Paradise", GAME_IMPERFECT_GRAPHICS )
1608GAME( 1997, jjparad2, skns,    skns, skns_1p,  jjparad2, ROT0,  "Electro Design", "Jan Jan Paradise 2", GAME_IMPERFECT_GRAPHICS )
1609GAME( 1998, ryouran , skns,    skns, skns_1p,  ryouran,  ROT0,  "Electro Design", "VS Mahjong Otome Ryouran", GAME_IMPERFECT_GRAPHICS )
1610GAME( 1999, teljan  , skns,    skns, skns_1p,  teljan,   ROT0,  "Electro Design", "Tel Jan", GAME_IMPERFECT_GRAPHICS )
1611GAME( 1997, sengekis, skns,    skns, skns,     sengekis, ROT90, "Kaneko / Warashi", "Sengeki Striker (Asia)", GAME_IMPERFECT_GRAPHICS )
1612GAME( 1997, sengekij, sengekis,skns, skns,     sengekij, ROT90, "Kaneko / Warashi", "Sengeki Striker (Japan)", GAME_IMPERFECT_GRAPHICS )
1613GAME( 1997, vblokbrk, skns,    skns, vblokbrk, sarukani, ROT0,  "Kaneko / Mediaworks", "VS Block Breaker (Asia)", GAME_IMPERFECT_GRAPHICS )
1614GAME( 1997, sarukani, vblokbrk,skns, vblokbrk, sarukani, ROT0,  "Kaneko / Mediaworks", "Saru-Kani-Hamu-Zou (Japan)", GAME_IMPERFECT_GRAPHICS )
1615GAME( 2002, galpans3, skns,    skns, galpanis, galpans3, ROT0,  "Kaneko", "Gals Panic S3 (Japan)", GAME_IMPERFECT_GRAPHICS )
1622GAME( 1996, galpani4,  skns,     skns, cyvern,   galpani4,  ROT0,  "Kaneko", "Gals Panic 4 (Japan)", GAME_IMPERFECT_GRAPHICS )
1623GAME( 1997, galpanis,  skns,     skns, galpanis, galpanis,  ROT0,  "Kaneko", "Gals Panic S - Extra Edition (Japan)", GAME_IMPERFECT_GRAPHICS )
1624GAME( 1998, cyvern,    skns,     skns, cyvern,   cyvern,    ROT90, "Kaneko", "Cyvern (Japan)", GAME_IMPERFECT_GRAPHICS )
1625GAME( 1999, galpans2,  skns,     skns, galpanis, galpans2,  ROT0,  "Kaneko", "Gals Panic S2 (Japan)", GAME_IMPERFECT_GRAPHICS )
1626GAME( 1999, galpans2a, galpans2, skns, galpanis, galpans2,  ROT0,  "Kaneko", "Gals Panic S2 (Asia)", GAME_IMPERFECT_GRAPHICS )
1627GAME( 1999, galpansu,  galpans2, skns, galpanis, galpans2,  ROT0,  "Kaneko", "Gals Panic SU (Korea)", GAME_IMPERFECT_GRAPHICS ) // official or hack?
1628GAME( 1999, panicstr,  skns,     skns, galpanis, panicstr,  ROT0,  "Kaneko", "Panic Street (Japan)", GAME_IMPERFECT_GRAPHICS )
1629GAME( 1999, senknow ,  skns,     skns, skns,     senknow,   ROT0,  "Kaneko / Kouyousha", "Sen-Know (Japan)", GAME_IMPERFECT_GRAPHICS )
1630GAME( 2000, gutsn,     skns,     skns, skns,     gutsn,     ROT0,  "Kaneko / Kouyousha", "Guts'n (Japan)", GAME_IMPERFECT_GRAPHICS ) // quite fragile, started working of it's own accord in 0.69 :)
1631GAME( 1998, puzzloop,  skns,     skns, puzzloop, puzzloop,  ROT0,  "Mitchell", "Puzz Loop (Europe)", GAME_IMPERFECT_GRAPHICS )
1632GAME( 1998, puzzloopj, puzzloop, skns, puzzloop, puzzloopj, ROT0,  "Mitchell", "Puzz Loop (Japan)", GAME_IMPERFECT_GRAPHICS )
1633GAME( 1998, puzzloopu, puzzloop, skns, puzzloop, puzzloopu, ROT0,  "Mitchell", "Puzz Loop (USA)", GAME_IMPERFECT_GRAPHICS )
1634GAME( 1998, puzzloopk, puzzloop, skns, puzzloop, puzzloopu, ROT0,  "Mitchell", "Puzz Loop (Korea)", GAME_IMPERFECT_GRAPHICS ) // Same speed up as US version
1635GAME( 1996, jjparads,  skns,     skns, skns_1p,  jjparads,  ROT0,  "Electro Design", "Jan Jan Paradise", GAME_IMPERFECT_GRAPHICS )
1636GAME( 1997, jjparad2,  skns,     skns, skns_1p,  jjparad2,  ROT0,  "Electro Design", "Jan Jan Paradise 2", GAME_IMPERFECT_GRAPHICS )
1637GAME( 1998, ryouran ,  skns,     skns, skns_1p,  ryouran,   ROT0,  "Electro Design", "VS Mahjong Otome Ryouran", GAME_IMPERFECT_GRAPHICS )
1638GAME( 1999, teljan  ,  skns,     skns, skns_1p,  teljan,    ROT0,  "Electro Design", "Tel Jan", GAME_IMPERFECT_GRAPHICS )
1639GAME( 1997, sengekis,  skns,     skns, skns,     sengekis,  ROT90, "Kaneko / Warashi", "Sengeki Striker (Asia)", GAME_IMPERFECT_GRAPHICS )
1640GAME( 1997, sengekij,  sengekis, skns, skns,     sengekij,  ROT90, "Kaneko / Warashi", "Sengeki Striker (Japan)", GAME_IMPERFECT_GRAPHICS )
1641GAME( 1997, vblokbrk,  skns,     skns, vblokbrk, sarukani,  ROT0,  "Kaneko / Mediaworks", "VS Block Breaker (Asia)", GAME_IMPERFECT_GRAPHICS )
1642GAME( 1997, sarukani,  vblokbrk, skns, vblokbrk, sarukani,  ROT0,  "Kaneko / Mediaworks", "Saru-Kani-Hamu-Zou (Japan)", GAME_IMPERFECT_GRAPHICS )
1643GAME( 2002, galpans3,  skns,     skns, galpanis, galpans3,  ROT0,  "Kaneko", "Gals Panic S3 (Japan)", GAME_IMPERFECT_GRAPHICS )
16161644
src/mame/drivers/deco32.c
r4406r4407
362362      eeprom_set_clock_line((data & 0x20) ? ASSERT_LINE : CLEAR_LINE);
363363      eeprom_write_bit(data & 0x10);
364364      eeprom_set_cs_line((data & 0x40) ? CLEAR_LINE : ASSERT_LINE);
365
366      deco32_pri_w(space,0,data&0x1,0xffffffff); /* Bit 0 - layer priority toggle */
365367   }
366368   else if (!ACCESSING_BITS_8_15)
367369   {
src/mame/drivers/aleck64.c
r4406r4407
421421   signal_rcp_interrupt(device->machine, VI_INTERRUPT);
422422}
423423
424static MACHINE_RESET( aleck64 )
425{
426   n64_machine_reset(machine);
427}
428
429424static MACHINE_DRIVER_START( aleck64 )
430425   /* basic machine hardware */
431426   MDRV_CPU_ADD("maincpu", R4600BE, 93750000)
r4406r4407
437432   MDRV_CPU_CONFIG(n64_rsp_config)
438433   MDRV_CPU_PROGRAM_MAP(rsp_map, 0)
439434
440   MDRV_MACHINE_RESET( aleck64 )
435   MDRV_MACHINE_START( n64 )
436   MDRV_MACHINE_RESET( n64 )
441437
442438   MDRV_SCREEN_ADD("screen", RASTER)
443439   MDRV_SCREEN_REFRESH_RATE(60)
src/mame/drivers/vegas.c
r4406r4407
448448static UINT32 *rambase, *rombase;
449449static size_t ramsize;
450450
451static int speedup_index;
452
453451static UINT32 *nile_regs;
454452static UINT16 nile_irq_state;
455453static UINT16 ide_irq_state;
r4406r4407
545543      dcs_idma_cs = 0;
546544
547545   /* set the fastest DRC options, but strict verification */
548   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_DRC_OPTIONS, MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY + MIPS3DRC_FLUSH_PC);
546   mips3drc_set_options(machine->cpu[0], MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY + MIPS3DRC_FLUSH_PC);
549547
550548   /* configure fast RAM regions for DRC */
551   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 0);
552   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x00000000);
553   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, ramsize - 1);
554   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, rambase);
555   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 0);
549   mips3drc_add_fastram(machine->cpu[0], 0x00000000, ramsize - 1, FALSE, rambase);
550   mips3drc_add_fastram(machine->cpu[0], 0x1fc00000, 0x1fc7ffff, TRUE, rombase);
556551
557   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 1);
558   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x1fc00000);
559   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x1fc7ffff);
560   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, rombase);
561   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 1);
562
563552   /* register for save states */
564553   state_save_register_global(machine, nile_irq_state);
565554   state_save_register_global(machine, ide_irq_state);
r4406r4407
24812470   /* allocate RAM for the timekeeper */
24822471   timekeeper_nvram_size = 0x8000;
24832472   timekeeper_nvram = auto_malloc(timekeeper_nvram_size);
2484
2485   /* reset speedups */
2486   speedup_index = 0;
24872473}
24882474
2489static void add_speedup(running_machine *machine, offs_t pc, UINT32 op)
2490{
2491   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_HOTSPOT_SELECT, speedup_index++);
2492   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_HOTSPOT_PC, pc);
2493   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_HOTSPOT_OPCODE, op);
2494   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_HOTSPOT_CYCLES, 250);
2495}
24962475
2497
24982476static DRIVER_INIT( gauntleg )
24992477{
25002478   dcs2_init(machine, 4, 0x0b5d);
25012479   init_common(machine, MIDWAY_IOASIC_CALSPEED, 340/* 340=39", 322=27", others? */);
25022480
25032481   /* speedups */
2504   add_speedup(machine, 0x80015430, 0x8CC38060);      /* confirmed */
2505   add_speedup(machine, 0x80015464, 0x3C09801E);      /* confirmed */
2506   add_speedup(machine, 0x800C8918, 0x8FA2004C);      /* confirmed */
2507   add_speedup(machine, 0x800C8890, 0x8FA20024);      /* confirmed */
2482   mips3drc_add_hotspot(machine->cpu[0], 0x80015430, 0x8CC38060, 250);      /* confirmed */
2483   mips3drc_add_hotspot(machine->cpu[0], 0x80015464, 0x3C09801E, 250);      /* confirmed */
2484   mips3drc_add_hotspot(machine->cpu[0], 0x800C8918, 0x8FA2004C, 250);      /* confirmed */
2485   mips3drc_add_hotspot(machine->cpu[0], 0x800C8890, 0x8FA20024, 250);      /* confirmed */
25082486}
25092487
25102488
r4406r4407
25142492   init_common(machine, MIDWAY_IOASIC_GAUNTDL, 346/* 347, others? */);
25152493
25162494   /* speedups */
2517   add_speedup(machine, 0x800158B8, 0x8CC3CC40);      /* confirmed */
2518   add_speedup(machine, 0x800158EC, 0x3C0C8022);      /* confirmed */
2519   add_speedup(machine, 0x800D40C0, 0x8FA2004C);      /* confirmed */
2520   add_speedup(machine, 0x800D4038, 0x8FA20024);      /* confirmed */
2495   mips3drc_add_hotspot(machine->cpu[0], 0x800158B8, 0x8CC3CC40, 250);      /* confirmed */
2496   mips3drc_add_hotspot(machine->cpu[0], 0x800158EC, 0x3C0C8022, 250);      /* confirmed */
2497   mips3drc_add_hotspot(machine->cpu[0], 0x800D40C0, 0x8FA2004C, 250);      /* confirmed */
2498   mips3drc_add_hotspot(machine->cpu[0], 0x800D4038, 0x8FA20024, 250);      /* confirmed */
25212499}
25222500
25232501
r4406r4407
25272505   init_common(machine, MIDWAY_IOASIC_MACE, 337/* others? */);
25282506
25292507   /* speedups */
2530   add_speedup(machine, 0x8009436C, 0x0C031663);      /* confirmed */
2508   mips3drc_add_hotspot(machine->cpu[0], 0x8009436C, 0x0C031663, 250);      /* confirmed */
25312509}
25322510
25332511
r4406r4407
25372515   init_common(machine, MIDWAY_IOASIC_GAUNTDL, 330/* others? */);
25382516
25392517   /* speedups */
2540   add_speedup(machine, 0x80051CD8, 0x0C023C15);      /* confirmed */
2541   add_speedup(machine, 0x8005E674, 0x3C028017);      /* confirmed */
2542   add_speedup(machine, 0x8002DBCC, 0x8FA2002C);      /* confirmed */
2543   add_speedup(machine, 0x80015930, 0x8FC20244);      /* confirmed */
2518   mips3drc_add_hotspot(machine->cpu[0], 0x80051CD8, 0x0C023C15, 250);      /* confirmed */
2519   mips3drc_add_hotspot(machine->cpu[0], 0x8005E674, 0x3C028017, 250);      /* confirmed */
2520   mips3drc_add_hotspot(machine->cpu[0], 0x8002DBCC, 0x8FA2002C, 250);      /* confirmed */
2521   mips3drc_add_hotspot(machine->cpu[0], 0x80015930, 0x8FC20244, 250);      /* confirmed */
25442522}
25452523
25462524
src/mame/drivers/igspoker.c
r4406r4407
142142
143143static VIDEO_START(igs_video)
144144{
145   fg_tilemap = tilemap_create(machine, get_fg_tile_info, tilemap_scan_rows,   8,  8,   64, 32);
145146   bg_tilemap = tilemap_create(machine, get_bg_tile_info, tilemap_scan_rows,   8,  32,   64, 8);
146   fg_tilemap = tilemap_create(machine, get_fg_tile_info, tilemap_scan_rows,   8,  8,   64, 32);
147
147148   tilemap_set_transparent_pen(fg_tilemap, 0);
148149}
149150
r4406r4407
13751376   8*32*2
13761377};
13771378
1379static const gfx_layout charlayout8bpp =
1380{
1381   8, 8,   /* 8*8 characters */
1382   RGN_FRAC(1, 1),
1383   8,
1384   { 0,1,2,3,4,5,6,7 },
1385   { 0,8,16,24,32,40,48,56 },
1386   { 0*64,1*64,2*64,3*64,4*64,5*64,6*64,7*64 },
1387   64*8
1388};
1389
1390
13781391static GFXDECODE_START( igspoker )
13791392   GFXDECODE_ENTRY( "gfx1", 0x00000, charlayout,   0, 16 )
13801393   GFXDECODE_ENTRY( "gfx2", 0x04000, charlayout2,  0, 16 )
r4406r4407
13831396   GFXDECODE_ENTRY( "gfx2", 0x00000, charlayout2,  0, 16 )
13841397GFXDECODE_END
13851398
1399static GFXDECODE_START( citalian )
1400   GFXDECODE_ENTRY( "gfx1", 0x00000, charlayout8bpp,   0, 1 )
1401   /* these not used? */
1402   GFXDECODE_ENTRY( "gfx2", 0x04000, charlayout2,  0, 1 )
1403   GFXDECODE_ENTRY( "gfx2", 0x08000, charlayout2,  0, 1 )
1404   GFXDECODE_ENTRY( "gfx2", 0x0c000, charlayout2,  0, 1 )
1405   GFXDECODE_ENTRY( "gfx2", 0x00000, charlayout2,  0, 1 )
1406GFXDECODE_END
1407
13861408static MACHINE_DRIVER_START( igspoker )
13871409
13881410   /* basic machine hardware */
r4406r4407
14461468   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
14471469MACHINE_DRIVER_END
14481470
1471static MACHINE_DRIVER_START( citalian )
1472
1473   MDRV_PALETTE_LENGTH(0x8000)
1474
1475   MDRV_IMPORT_FROM(number10)
1476   MDRV_GFXDECODE(citalian)
1477MACHINE_DRIVER_END
1478
1479
14491480static MACHINE_DRIVER_START( pktetris )
14501481
14511482   MDRV_IMPORT_FROM(igspoker)
r4406r4407
19261957   ROM_REGION( 0x30000, "gfx2", ROMREGION_ERASE00 | ROMREGION_DISPOSE )
19271958
19281959   ROM_REGION( 0x40000, "oki", 0 ) /* Oki Samples */
1929   /* missing sample tables at start of rom */
19301960   ROM_LOAD( "9.bin",   0x0000, 0x40000, CRC(dd213b5c) SHA1(82e32aa44eee227d7424553a743df48606bbd48e) )
19311961ROM_END
19321962
r4406r4407
19431973   ROM_REGION( 0x30000, "gfx2", ROMREGION_ERASE00 | ROMREGION_DISPOSE )
19441974
19451975   ROM_REGION( 0x40000, "oki", 0 ) /* Oki Samples */
1946   /* missing sample tables at start of rom */
19471976   ROM_LOAD( "9.bin",   0x0000, 0x40000, CRC(dd213b5c) SHA1(82e32aa44eee227d7424553a743df48606bbd48e) )
19481977ROM_END
19491978
1979ROM_START( citalian )
1980   ROM_REGION( 0x20000, "maincpu", 0 )
1981   ROM_LOAD( "cp.u35", 0x00000, 0x20000, CRC(25e129b9) SHA1(01dc9e09603cef233da28e30194e53ef4cd04475) )
19501982
1983   ROM_REGION( 0x80000, "gfx1", ROMREGION_DISPOSE )
1984   ROM_LOAD16_BYTE( "3.u23", 0x00000, 0x40000, CRC(b72fe1e0) SHA1(0507df7e1495aa265b276337c9c151478dd9d376) )
1985   ROM_LOAD16_BYTE( "2.u25", 0x00001, 0x40000, CRC(bdf55fa4) SHA1(487999d22941a0ef2f3874d31527f45d122aadb0) )
1986
1987   ROM_REGION( 0x40000, "gfx2", ROMREGION_ERASE00 | ROMREGION_DISPOSE )
1988
1989   ROM_REGION( 0x40000, "oki", 0 ) /* Oki Samples */
1990   ROM_LOAD( "9.bin",   0x0000, 0x40000, CRC(dd213b5c) SHA1(82e32aa44eee227d7424553a743df48606bbd48e) )
1991
1992   ROM_REGION( 0x2dd, "plds",0 )
1993   ROM_LOAD( "palce22v10h.u44.bad.dump", 0x000, 0x2dd, BAD_DUMP CRC(5c4e9024) SHA1(e9d1e4df3d79c21f4ce053a84bb7b7a43d650f91) )
1994ROM_END
1995
1996ROM_START( citaliana )
1997   ROM_REGION( 0x20000, "maincpu", 0 )
1998   ROM_LOAD( "ic.u35", 0x00000, 0x20000, CRC(f120eb31) SHA1(b87f638d4eebe05323b6952956d44368077f27aa) )
1999
2000   ROM_REGION( 0x80000, "gfx1", ROMREGION_DISPOSE )
2001   ROM_LOAD16_BYTE( "u23.bin", 0x00000, 0x40000, CRC(b8d2be66) SHA1(fc8cec6bbf7cd446e3388a7c0171643a8d8f3064) )
2002   ROM_LOAD16_BYTE( "u25.bin", 0x00001, 0x40000, CRC(b53b8830) SHA1(9854ab83300e7d79c9ab4e154941bfeb607ae8ff) )
2003
2004   ROM_REGION( 0x40000, "gfx2", ROMREGION_ERASE00 | ROMREGION_DISPOSE )
2005
2006   ROM_REGION( 0x40000, "oki", 0 ) /* Oki Samples */
2007   ROM_LOAD( "9.bin",   0x0000, 0x40000, CRC(dd213b5c) SHA1(82e32aa44eee227d7424553a743df48606bbd48e) )
2008ROM_END
2009
19512010static DRIVER_INIT( pktet346 )
19522011{
19532012   int A;
r4406r4407
19922051GAMEL( 2000, number10,  0,        number10, number10, number10, ROT0, "PlayMark Srl",   "Number Dieci (Poker)",            0,   layout_igspoker )
19932052GAMEL( 2000, numbr10l,  number10, number10, number10, number10, ROT0, "PlayMark Srl",   "Number Dieci (Lattine)",          0,   layout_igspoker )
19942053GAMEL( 198?,  igs_ncs,  0,        igs_ncs,  igs_ncs, igs_ncs, ROT0, "IGS",    "New Champion Skill (v100n)",                0,   layout_igspoker ) /* SU 062 */
2054GAMEL( 199?, citalian,   0,       citalian,number10,  0,  ROT0, "SGS",    "Champion Italian Cup (bootleg, set 1)",                   GAME_NOT_WORKING, layout_igspoker )
2055GAMEL( 199?, citaliana,  citalian,citalian,number10,  0,  ROT0, "SGS",    "Champion Italian Cup (bootleg, set 2)",                   GAME_NOT_WORKING, layout_igspoker )
19952056
19962057GAMEL( 2000, igs_ncs2,  0,        igs_ncs,  igs_ncs, igs_ncs2, ROT0, "IGS",   "New Champion Skill (v100n 2000)",           GAME_IMPERFECT_GRAPHICS, layout_igspoker )
19972058
src/mame/drivers/gticlub.c
r4406r4407
595595static MACHINE_START( gticlub )
596596{
597597   /* set conservative DRC options */
598   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_DRC_OPTIONS, PPCDRC_COMPATIBLE_OPTIONS);
598   ppcdrc_set_options(machine->cpu[0], PPCDRC_COMPATIBLE_OPTIONS);
599599
600600   /* configure fast RAM regions for DRC */
601   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_SELECT, 0);
602   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_START, 0x00000000);
603   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_END, 0x000fffff);
604   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_PPC_FASTRAM_BASE, work_ram);
605   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_READONLY, 0);
601   ppcdrc_add_fastram(machine->cpu[0], 0x00000000, 0x000fffff, FALSE, work_ram);
606602}
607603
608604static ADDRESS_MAP_START( gticlub_map, ADDRESS_SPACE_PROGRAM, 32 )
src/mame/drivers/mazerbla.c
r4406r4407
15681568
15691569ROM_START( mazerbla )
15701570   ROM_REGION( 0x10000, "maincpu", 0 )     /* 64k for main CPU (ZPU board) */
1571   ROM_LOAD( "mblzpu0.bin",0x0000, 0x2000, CRC(82766187) SHA1(cfc425c87cccb84180f1091998eafeaede126d9d) )
1572   ROM_LOAD( "mblzpu1.bin",0x2000, 0x2000, CRC(8ba2b3f9) SHA1(1d203332e434d1d9821f98c6ac959ae65dcc51ef) )
1573   ROM_LOAD( "mblzpu2.bin",0x4000, 0x2000, CRC(48e5306c) SHA1(d27cc85d24c7b6c23c5c96be4dad5cae6e8069be) )
1574   ROM_LOAD( "mblzpu3.bin",0x6000, 0x2000, CRC(eba91546) SHA1(8c1da4e0d9b562dbbf7c7583dbf567c804eb670f) )
1571   ROM_LOAD( "mblzpu0.1h",0x0000, 0x2000, CRC(82766187) SHA1(cfc425c87cccb84180f1091998eafeaede126d9d) )
1572   ROM_LOAD( "mblzpu1.2h",0x2000, 0x2000, CRC(8ba2b3f9) SHA1(1d203332e434d1d9821f98c6ac959ae65dcc51ef) )
1573   ROM_LOAD( "mblzpu2.3h",0x4000, 0x2000, CRC(48e5306c) SHA1(d27cc85d24c7b6c23c5c96be4dad5cae6e8069be) )
1574   ROM_LOAD( "mblzpu3.4h",0x6000, 0x2000, CRC(eba91546) SHA1(8c1da4e0d9b562dbbf7c7583dbf567c804eb670f) )
15751575
15761576   ROM_REGION( 0x10000, "sub", 0 )     /* 64k for sound CPU (VSB board) */
1577   ROM_LOAD( "mblvsb0.bin",0x0000, 0x1000, CRC(0cf7a1c3) SHA1(af27e3a3b51d03d46c62c2797268744d0577d075) )
1578   ROM_LOAD( "mblvsb1.bin",0x1000, 0x1000, CRC(0b8d0e43) SHA1(b3ddb7561e715a58ca512fe76e53cda39402a8e4) )
1577   ROM_LOAD( "mblvsb0.2d",0x0000, 0x1000, CRC(0cf7a1c3) SHA1(af27e3a3b51d03d46c62c2797268744d0577d075) )
1578   ROM_LOAD( "mblvsb1.4d",0x1000, 0x1000, CRC(0b8d0e43) SHA1(b3ddb7561e715a58ca512fe76e53cda39402a8e4) )
15791579
1580   ROM_REGION( 0x10000, "digitalker", 0) /* 64k? for digitalker voice samples */
1581   ROM_LOAD( "mblvsb2.2a",0x0000, 0x1000, NO_DUMP ) /* size may be wrong */
1582   ROM_LOAD( "mblvsb3.4a",0x1000, 0x1000, NO_DUMP ) /* size may be wrong */
1583
15801584   ROM_REGION( 0x18000, "sub2", 0 )     /* 64k for video CPU (CFB board) */
1581   ROM_LOAD( "mblrom0.bin",0x0000, 0x2000, CRC(948a2c5e) SHA1(d693f1b96caf31649f600c5038bb79b0d1d16133) )
1585   ROM_LOAD( "mblcfb0.8g",0x0000, 0x2000, CRC(948a2c5e) SHA1(d693f1b96caf31649f600c5038bb79b0d1d16133) )
15821586
1583   ROM_LOAD( "mblrom2.bin",0x10000,0x2000, CRC(36237058) SHA1(9db8fced37a3d40c4ea5b87ea18ac8e75d71e586) )/*banked at 0x4000 (select=0)*/
1584   ROM_LOAD( "mblrom3.bin",0x12000,0x2000, CRC(18d75d7f) SHA1(51c35ea4a2127439a1299863eb74e57be833e2e4) )/*banked at 0x4000 (select=1)*/
1587   ROM_LOAD( "mblcfb2.8k",0x10000,0x2000, CRC(36237058) SHA1(9db8fced37a3d40c4ea5b87ea18ac8e75d71e586) )/*banked at 0x4000 (select=0)*/
1588   ROM_LOAD( "mblcfb3.10k",0x12000,0x2000, CRC(18d75d7f) SHA1(51c35ea4a2127439a1299863eb74e57be833e2e4) )/*banked at 0x4000 (select=1)*/
15851589   /* empty socket??? (the *name* of next rom seems good ?) or wrong schematics ?*/
1586   ROM_LOAD( "mblrom4.bin",0x16000,0x2000, CRC(1805acdc) SHA1(40b8e70e6ba69ac864af0b276e81218e63e48deb) )/*banked at 0x4000 (select=3)*/
1590   ROM_LOAD( "mblcfb4.14k",0x16000,0x2000, CRC(1805acdc) SHA1(40b8e70e6ba69ac864af0b276e81218e63e48deb) )/*banked at 0x4000 (select=3) (assumed to be at 14k, may be at 12k)*/
15871591
1588   ROM_REGION( 0x00240, "proms", 0 )
1589   ROM_LOAD( "sndprom.8b", 0x0000, 0x0020, CRC(d558af5a) SHA1(060556beeb1f6732c4520dcfb0086c428f7b9ce3) )
1590   ROM_LOAD( "sndprom.9b", 0x0020, 0x0020, CRC(0390d748) SHA1(df0f750c1df45cc7bfb9dbabfa2b94563d19172a) )
1591   ROM_LOAD( "sndprom.8g", 0x0040, 0x0100, CRC(19680615) SHA1(c309eb83e66b202bae9174dc2ffce231fca40644) )
1592   ROM_LOAD( "sndprom.9g", 0x0140, 0x0100, CRC(f8c2c85b) SHA1(d9514af5682a2c5dec5366dcbdf5c7f6ef9f5380) )
1592   ROM_REGION( 0x00640, "proms", 0 )
1593   ROM_LOAD( "82s123.8b", 0x0000, 0x0020, CRC(d558af5a) SHA1(060556beeb1f6732c4520dcfb0086c428f7b9ce3) )
1594   ROM_LOAD( "82s123.9b", 0x0020, 0x0020, CRC(0390d748) SHA1(df0f750c1df45cc7bfb9dbabfa2b94563d19172a) )
1595   ROM_LOAD( "82s129.8g", 0x0040, 0x0100, CRC(19680615) SHA1(c309eb83e66b202bae9174dc2ffce231fca40644) )
1596   ROM_LOAD( "82s129.9g", 0x0140, 0x0100, CRC(f8c2c85b) SHA1(d9514af5682a2c5dec5366dcbdf5c7f6ef9f5380) )
1597   ROM_LOAD( "6353-1.16a", 0x240, 0x0400, NO_DUMP ) /* 82s137-equivalent video prom, next to VCU */
1598
1599   ROM_REGION( 0x00240, "pals", 0 )
1600   ROM_LOAD( "pal16r8.7d", 0x0000, 0x098, NO_DUMP ) /* pal on zpu board, for ?protection? (similar to bagman?) */
1601
15931602ROM_END
15941603
15951604ROM_START( mzrblzra )
15961605   ROM_REGION( 0x10000, "maincpu", 0 )     /* 64k for main CPU (ZPU board) */
1597   ROM_LOAD( "zpu0",       0x0000, 0x2000, CRC(aa77705c) SHA1(ef93c3eaa66591bef495caa101ef2aff93f2de8c) )
1598   ROM_LOAD( "zpu1",       0x2000, 0x2000, CRC(599e1b97) SHA1(ceeb3017d6130d4d54ff4436261f2d3f2a29f8ab) )
1599   ROM_LOAD( "zpu2",       0x4000, 0x2000, CRC(e1504613) SHA1(815b56e067d60dda6c5ebed97ef8da3f6c2927ad) )
1600   ROM_LOAD( "zpu3",       0x6000, 0x2000, CRC(fd27f409) SHA1(e3d49b931325c75cc0c1075944095bb48501501f) )
1606   ROM_LOAD( "zpu0.1h",       0x0000, 0x2000, CRC(aa77705c) SHA1(ef93c3eaa66591bef495caa101ef2aff93f2de8c) )
1607   ROM_LOAD( "zpu1.2h",       0x2000, 0x2000, CRC(599e1b97) SHA1(ceeb3017d6130d4d54ff4436261f2d3f2a29f8ab) )
1608   ROM_LOAD( "zpu2.3h",       0x4000, 0x2000, CRC(e1504613) SHA1(815b56e067d60dda6c5ebed97ef8da3f6c2927ad) )
1609   ROM_LOAD( "zpu3.4h",       0x6000, 0x2000, CRC(fd27f409) SHA1(e3d49b931325c75cc0c1075944095bb48501501f) )
16011610
16021611   ROM_REGION( 0x10000, "sub", 0 )     /* 64k for sound CPU (VSB board) */
1603   ROM_LOAD( "mblvsb0.bin",0x0000, 0x1000, CRC(0cf7a1c3) SHA1(af27e3a3b51d03d46c62c2797268744d0577d075) )
1604   ROM_LOAD( "mblvsb1.bin",0x1000, 0x1000, CRC(0b8d0e43) SHA1(b3ddb7561e715a58ca512fe76e53cda39402a8e4) )
1612   ROM_LOAD( "mblvsb0.2d",0x0000, 0x1000, CRC(0cf7a1c3) SHA1(af27e3a3b51d03d46c62c2797268744d0577d075) )
1613   ROM_LOAD( "mblvsb1.4d",0x1000, 0x1000, CRC(0b8d0e43) SHA1(b3ddb7561e715a58ca512fe76e53cda39402a8e4) )
16051614
1615   ROM_REGION( 0x10000, "digitalker", 0) /* 64k? for digitalker voice samples */
1616   ROM_LOAD( "mblvsb2.2a",0x0000, 0x1000, NO_DUMP ) /* size may be wrong */
1617   ROM_LOAD( "mblvsb3.4a",0x1000, 0x1000, NO_DUMP ) /* size may be wrong */
1618
16061619   ROM_REGION( 0x18000, "sub2", 0 )     /* 64k for video CPU (CFB board) */
1607   ROM_LOAD( "mblrom0.bin",0x0000, 0x2000, CRC(948a2c5e) SHA1(d693f1b96caf31649f600c5038bb79b0d1d16133) )
1620   ROM_LOAD( "mblcfb0.8g",0x0000, 0x2000, CRC(948a2c5e) SHA1(d693f1b96caf31649f600c5038bb79b0d1d16133) )
16081621
1609   ROM_LOAD( "mblrom2.bin",0x10000,0x2000, CRC(36237058) SHA1(9db8fced37a3d40c4ea5b87ea18ac8e75d71e586) )/*banked at 0x4000 (select=0)*/
1610   ROM_LOAD( "mblrom3.bin",0x12000,0x2000, CRC(18d75d7f) SHA1(51c35ea4a2127439a1299863eb74e57be833e2e4) )/*banked at 0x4000 (select=1)*/
1622   ROM_LOAD( "mblcfb2.8k",0x10000,0x2000, CRC(36237058) SHA1(9db8fced37a3d40c4ea5b87ea18ac8e75d71e586) )/*banked at 0x4000 (select=0)*/
1623   ROM_LOAD( "mblcfb3.10k",0x12000,0x2000, CRC(18d75d7f) SHA1(51c35ea4a2127439a1299863eb74e57be833e2e4) )/*banked at 0x4000 (select=1)*/
16111624   /* empty socket??? (the *name* of next rom seems good ?) or wrong schematics ?*/
1612   ROM_LOAD( "mblrom4.bin",0x16000,0x2000, CRC(1805acdc) SHA1(40b8e70e6ba69ac864af0b276e81218e63e48deb) )/*banked at 0x4000 (select=3)*/
1625   ROM_LOAD( "mblcfb4.14k",0x16000,0x2000, CRC(1805acdc) SHA1(40b8e70e6ba69ac864af0b276e81218e63e48deb) )/*banked at 0x4000 (select=3) (assumed to be at 14k, may be at 12k)*/
16131626
1614   ROM_REGION( 0x00240, "proms", 0 )
1615   ROM_LOAD( "sndprom.8b", 0x0000, 0x0020, CRC(d558af5a) SHA1(060556beeb1f6732c4520dcfb0086c428f7b9ce3) )
1616   ROM_LOAD( "sndprom.9b", 0x0020, 0x0020, CRC(0390d748) SHA1(df0f750c1df45cc7bfb9dbabfa2b94563d19172a) )
1617   ROM_LOAD( "sndprom.8g", 0x0040, 0x0100, CRC(19680615) SHA1(c309eb83e66b202bae9174dc2ffce231fca40644) )
1618   ROM_LOAD( "sndprom.9g", 0x0140, 0x0100, CRC(f8c2c85b) SHA1(d9514af5682a2c5dec5366dcbdf5c7f6ef9f5380) )
1627   ROM_REGION( 0x00640, "proms", 0 )
1628   ROM_LOAD( "82s123.8b", 0x0000, 0x0020, CRC(d558af5a) SHA1(060556beeb1f6732c4520dcfb0086c428f7b9ce3) )
1629   ROM_LOAD( "82s123.9b", 0x0020, 0x0020, CRC(0390d748) SHA1(df0f750c1df45cc7bfb9dbabfa2b94563d19172a) )
1630   ROM_LOAD( "82s129.8g", 0x0040, 0x0100, CRC(19680615) SHA1(c309eb83e66b202bae9174dc2ffce231fca40644) )
1631   ROM_LOAD( "82s129.9g", 0x0140, 0x0100, CRC(f8c2c85b) SHA1(d9514af5682a2c5dec5366dcbdf5c7f6ef9f5380) )
1632   ROM_LOAD( "6353-1.16a", 0x240, 0x0400, NO_DUMP ) /* 82s137-equivalent video prom, next to VCU */
1633
1634   ROM_REGION( 0x00240, "pals", 0 )
1635   ROM_LOAD( "pal16r8.7d", 0x0000, 0x098, NO_DUMP ) /* pal on zpu board, for ?protection? (similar to bagman?) */
16191636ROM_END
16201637
16211638
src/mame/drivers/20pacgal.c
r4406r4407
3131          the Z180, but the cpu core doesn't support that yet.
3232        * Is the clock divide 3 or 4?
3333
34    Versions known to exist but not dumped: v1.03
34    Versions known to exist but not dumped: v1.02 & v1.03
3535
3636***************************************************************************/
3737
src/mame/drivers/limenko.c
r4406r4407
327327               if( c != 0 )
328328               {
329329                  if (pri[x]<priority)
330                  {
330331                     dest[x] = pal_base+c;
332                     pri[x] = priority;
333                  }
331334
332                  pri[x] = priority;
333
334335               }
335336               x_index += dx;
336337            }
r4406r4407
562563   PORT_DIPSETTING(          0x20000000, DEF_STR( Off ) )
563564   PORT_DIPSETTING(          0x00000000, DEF_STR( On ) )
564565   PORT_BIT( 0x80000000, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(spriteram_bit_r, NULL) //changes spriteram location
565   PORT_BIT( 0x5f10ffff, IP_ACTIVE_LOW, IPT_UNUSED )
566   PORT_BIT( 0x00100000, IP_ACTIVE_LOW, IPT_SERVICE1 ) // checked in dynabomb I/O test, but doesn't work in game
567   PORT_BIT( 0x5f00ffff, IP_ACTIVE_LOW, IPT_UNUSED )
566568INPUT_PORTS_END
567569
568570static INPUT_PORTS_START( spotty )
src/mame/drivers/polepos.c
r4406r4407
910910   ROM_REGION_NAMCO_52XX( "52xx" ) \
911911   ROM_REGION_NAMCO_53XX( "53xx" ) \
912912
913/*
914    Pole Position - Namco Version
915*/
916
913917ROM_START( polepos )
914918   /* Z80 memory/ROM data */
915919   ROM_REGION( 0x10000, "maincpu", 0 )
r4406r4407
989993   ROM_LOAD( "136014.117",   0x0000, 0x0100, CRC(2401c817) SHA1(8991b7994513a469e64392fa8f233af5e5f06d54) )    /* sync chain */
990994ROM_END
991995
996/*
997    Pole Position - Atari Version
992998
999    CPU/Sound Board: A039185
1000    Video Board:     A039187
1001*/
1002
9931003ROM_START( poleposa )
9941004   /* Z80 memory/ROM data */
9951005   ROM_REGION( 0x10000, "maincpu", 0 )
r4406r4407
10641074   /* unknown or unused (P)ROM data */
10651075   ROM_REGION( 0x0100, "user1", 0 )
10661076   ROM_LOAD( "136014.117",   0x0000, 0x0100, CRC(2401c817) SHA1(8991b7994513a469e64392fa8f233af5e5f06d54) )    /* sync chain */
1077
1078    ROM_REGION( 0x0002, "cpu_pals", 0 ) /* PAL's located on the cpu board */
1079    ROM_LOAD( "137316-001.2n", 0x0000, 0x0001, NO_DUMP ) /* MMI PAL16L6CN */
1080    ROM_LOAD( "137316-00x.5c", 0x0000, 0x0001, NO_DUMP ) /* MMI PAL16L6CN */
10671081ROM_END
10681082
10691083
r4406r4407
11411155   /* unknown or unused (P)ROM data */
11421156   ROM_REGION( 0x0100, "user1", 0 )
11431157   ROM_LOAD( "136014.117",   0x0000, 0x0100, CRC(2401c817) SHA1(8991b7994513a469e64392fa8f233af5e5f06d54) )    /* sync chain */
1158
1159    ROM_REGION( 0x0002, "cpu_pals", 0 ) /* PAL's located on the cpu board */
1160    ROM_LOAD( "137316-001.2n", 0x0000, 0x0001, NO_DUMP ) /* MMI PAL16L6CN */
1161    ROM_LOAD( "137316-00x.5c", 0x0000, 0x0001, NO_DUMP ) /* MMI PAL16L6CN */
11441162ROM_END
11451163
11461164/*
r4406r4407
14761494ROM_END
14771495
14781496
1497/*
1498    Pole Position - Namco Version
1499*/
1500
14791501ROM_START( polepos2 )
14801502   /* Z80 memory/ROM data */
14811503   ROM_REGION( 0x10000, "maincpu", 0 )
r4406r4407
15601582ROM_END
15611583
15621584
1585/*
1586    Pole Position 2 - Atari Version
1587
1588    CPU/Sound Board: A039185
1589    Video Board:     A039187
1590
1591    Pole Position 2 uses the same hardware as Pole Position except there a
1592    couple of extra roms.
1593*/
1594
15631595ROM_START( poleps2a )
15641596   /* Z80 memory/ROM data */
15651597   ROM_REGION( 0x10000, "maincpu", 0 )
r4406r4407
16381670   /* unknown or unused (P)ROM data */
16391671   ROM_REGION( 0x0100, "user1", 0 )
16401672   ROM_LOAD( "136014.117",   0x0000, 0x0100, CRC(2401c817) SHA1(8991b7994513a469e64392fa8f233af5e5f06d54) )    /* sync chain */
1673
1674    ROM_REGION( 0x0002, "cpu_pals", 0 ) /* PAL's located on the cpu board */
1675    ROM_LOAD( "137316-001.2n", 0x0000, 0x0001, NO_DUMP ) /* MMI PAL16L6CN */
1676    ROM_LOAD( "137316-00x.5c", 0x0000, 0x0001, NO_DUMP ) /* MMI PAL16L6CN */
16411677ROM_END
16421678
16431679
src/mame/drivers/esd16.c
r4406r4407
2727
2828Other ESD games:
2929
30Head Panic          (c) 1999 - missing 16Mbit flash roms & esd3 needs redumping
31303 Cushion Billiards (c) 2000 - Undumped
3231Deluxe 5            (c) 2000 - Undumped
3332Fire Hawk           (c) 2001 - see nmk16.c driver
r4406r4407
6564VIDEO_START( esd16 );
6665VIDEO_UPDATE( esd16 );
6766VIDEO_UPDATE( hedpanic );
67VIDEO_UPDATE( hedpanio );
6868
69
7069static UINT16 *headpanic_platform_x;
7170static UINT16 *headpanic_platform_y;
7271
r4406r4407
645644   MDRV_GFXDECODE(tangtang)
646645MACHINE_DRIVER_END
647646
647static MACHINE_DRIVER_START( hedpanio )
648
649   /* basic machine hardware */
650   MDRV_IMPORT_FROM(hedpanic)
651
652   MDRV_VIDEO_UPDATE(hedpanio)
653MACHINE_DRIVER_END
654
655
656
648657/***************************************************************************
649658
650659
r4406r4407
966975ROM_END
967976
968977
969ROM_START( hedpanio ) /* Story line & game instructions in English, copyright year is 1999 */
978ROM_START( hedpanio ) /* Story line & game instructions in English, copyright year is 1999 - uses older style sprites */
970979   ROM_REGION( 0x080000, "maincpu", 0 )      /* 68000 Code */
971980   ROM_LOAD16_BYTE( "esd2.rom", 0x000000, 0x040000, CRC(70b08424) SHA1(2ba4fb3b749e31db4239a9173b8509366400152f) )
972981   ROM_LOAD16_BYTE( "esd1.rom", 0x000001, 0x040000, CRC(4e0682c5) SHA1(f4117f31b6426d7bf126a6c62c489b9347885b42) )
973982
974   ROM_REGION( 0x24000, "audiocpu", 0 )      /* Z80 Code */
975   ROM_LOAD( "esd3.rom", 0x00000, 0x0c000, BAD_DUMP CRC(b72b761b) SHA1(9735e05ddc1db38bf81eac89a5312200fc008248) ) /* Should be twice the size, IE: 27C020 */
976   ROM_CONTINUE(         0x10000, 0x14000)
983   ROM_REGION( 0x44000, "audiocpu", 0 )      /* Z80 Code */
984   // this rom is severely corrupted, however, I think it should be the same, so I'm using the one from the other sets
985   //ROM_LOAD( "esd3.rom", 0x00000, 0x0c000, BAD_DUMP CRC(b72b761b) SHA1(9735e05ddc1db38bf81eac89a5312200fc008248) ) /* Should be twice the size, IE: 27C020 */
986   //ROM_CONTINUE(         0x10000, 0x14000)
987   ROM_LOAD( "esd3.su06", 0x00000, 0x0c000, CRC(a88d4424) SHA1(eefb5ac79632931a36f360713c482cd079891f91) ) /* AT27C020 mask rom */
988   ROM_CONTINUE(          0x10000, 0x34000)
977989
978990   ROM_REGION( 0x600000, "gfx1", ROMREGION_DISPOSE )   /* Sprites, 16x16x5 */
979   ROM_LOAD( "ver615_esd6.ju01", 0x200000, 0x200000, BAD_DUMP CRC(5858372c) SHA1(dc96112587df681d53cf7449bd39477919978325) )
980   ROM_LOAD( "ver615_esd7.ju02", 0x000000, 0x200000, BAD_DUMP CRC(055d525f) SHA1(85ad474691f96e47311a1904015d1c92d3b2d607) )
991   ROM_LOAD( "sm1.bin", 0x000000, 0x200000, CRC(8083813f) SHA1(9492e7e844e45d59f0506f69d40c338b27bd3ce3) )
992   ROM_LOAD( "sm2.bin", 0x200000, 0x200000, CRC(7a9610e4) SHA1(21ae3ec3fbddfc66416c109b091bd885d5ba0558) )
981993   /* expand this to take up 0x200000 bytes too so we can decode it */
982994   ROM_LOAD16_BYTE( "esd5.rom", 0x400000, 0x080000, CRC(82c5727f) SHA1(017f1d0c94475c51d17f12e24895f47a273a2dbb) )
983995   ROM_FILL(                    0x500000, 0x100000, 0 )
984996
985997   ROM_REGION( 0x400000, "gfx2", ROMREGION_DISPOSE )   /* Layers, 16x16x8 */
986   ROM_LOAD16_BYTE( "ver615_esd8.fu35", 0x000000, 0x200000, BAD_DUMP CRC(23aceb4f) SHA1(35d9ebc33b9e1515e47750cfcdfc0bf8bf44b71d) )
987   ROM_LOAD16_BYTE( "ver615_esd9.fu34", 0x000001, 0x200000, BAD_DUMP CRC(76b46cd2) SHA1(679cbf50ae5935e8848868081ecef4ec66424f6c) )
998   ROM_LOAD16_BYTE( "sm3.bin", 0x000000, 0x200000, CRC(94dd4cfc) SHA1(a3f9c49611f0bc9d26166dafb44e2c5ebbb31127) )
999   ROM_LOAD16_BYTE( "sm4.bin", 0x000001, 0x200000, CRC(6da0fb9e) SHA1(c4e7487953f45c5f6ce2ebe558b4c325f6ec54eb) )
9881000
9891001   ROM_REGION( 0x20000, "oki", 0 )   /* Samples */
9901002   ROM_LOAD( "esd4.rom", 0x000000, 0x020000, CRC(d7ca6806) SHA1(8ad668bfb5b7561cc0f3e36dfc3c936b136a4274) )
r4406r4407
11601172GAME( 1999, mchampda, mchampdx, mchampdx, hedpanic, 0, ROT0, "ESD",         "Multi Champ Deluxe (ver. 1126, 26/11/1999)", 0 ) // 26/11/1999 ?
11611173GAME( 2000, hedpanic, 0,        hedpanic, hedpanic, 0, ROT0, "ESD",         "Head Panic (ver. 0117, 17/01/2000)", 0 ) // 17/01/2000 ?
11621174GAME( 2000, hedpanif, hedpanic, hedpanic, hedpanic, 0, ROT0, "ESD / Fuuki", "Head Panic (ver. 0315, 15/03/2000)", 0 ) // 15/03/2000 ?
1163GAME( 1999, hedpanio, hedpanic, hedpanic, hedpanic, 0, ROT0, "ESD",         "Head Panic (ver. 0615, 15/06/1999)", GAME_NOT_WORKING ) // 15/06/1999 ?
1175GAME( 1999, hedpanio, hedpanic, hedpanio, hedpanic, 0, ROT0, "ESD",         "Head Panic (ver. 0615, 15/06/1999)", 0 ) // 15/06/1999 ?
11641176
11651177/* ESD - This PCB looks identical to the ESD 08-26-1999 PCB */
11661178GAME( 2000, tangtang, 0,        tangtang, hedpanic, 0, ROT0, "ESD",         "Tang Tang (ver. 0526, 26/05/2000)", 0 ) // 26/05/2000 ?
src/mame/drivers/model3.c
r4406r4407
981981static void configure_fast_ram(running_machine *machine)
982982{
983983   /* set conservative DRC options */
984   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_DRC_OPTIONS, PPCDRC_COMPATIBLE_OPTIONS - PPCDRC_ACCURATE_SINGLES);
984   ppcdrc_set_options(machine->cpu[0], PPCDRC_COMPATIBLE_OPTIONS - PPCDRC_ACCURATE_SINGLES);
985985
986986   /* configure fast RAM regions for DRC */
987   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_SELECT, 0);
988   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_START, 0x00000000);
989   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_END, 0x007fffff);
990   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_PPC_FASTRAM_BASE, work_ram);
991   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_READONLY, 0);
987   ppcdrc_add_fastram(machine->cpu[0], 0x00000000, 0x007fffff, FALSE, work_ram);
992988}
993989
994990static MACHINE_START(model3_10)
src/mame/drivers/namcos21.c
r4406r4407
25992599GAME( 1991, winrun91, 0,       winrun_c140_typeB, winrun,       winrun,   ROT0,    "Namco", "Winning Run 91",                GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
26002600GAME( 1989, winrun,   0,       winrun_c140_typeB, winrun,       winrun,   ROT0,    "Namco", "Winning Run Suzuka Grand Prix", GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
26012601/* 1988, Winning Run */
2602GAME( 1987, driveyes, 0,       driveyes,          winrun,       driveyes, ROT0,    "Namco", "Driver's Eyes",                 GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
2602GAME( 1991, driveyes, 0,       driveyes,          winrun,       driveyes, ROT0,    "Namco", "Driver's Eyes",                 GAME_NOT_WORKING|GAME_IMPERFECT_GRAPHICS )
src/mame/drivers/kinst.c
r4406r4407
190190   }
191191
192192   /* set the fastest DRC options */
193   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_DRC_OPTIONS, MIPS3DRC_FASTEST_OPTIONS);
193   mips3drc_set_options(machine->cpu[0], MIPS3DRC_FASTEST_OPTIONS);
194194
195195   /* configure fast RAM regions for DRC */
196   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 0);
197   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x08000000);
198   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x087fffff);
199   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, rambase2);
200   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 0);
201
202   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 1);
203   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x00000000);
204   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x0007ffff);
205   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, rambase);
206   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 0);
207
208   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 2);
209   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x1fc00000);
210   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x1fc7ffff);
211   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, rombase);
212   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 1);
196   mips3drc_add_fastram(machine->cpu[0], 0x08000000, 0x087fffff, FALSE, rambase2);
197   mips3drc_add_fastram(machine->cpu[0], 0x00000000, 0x0007ffff, FALSE, rambase);
198   mips3drc_add_fastram(machine->cpu[0], 0x1fc00000, 0x1fc7ffff, TRUE,  rombase);
213199}
214200
215201
src/mame/drivers/mlanding.c
r4406r4407
1414
1515static UINT16 * ml_tileram;
1616static UINT16 * ml_spriteram;
17static UINT16 * ml_unk;
1817static bitmap_t *ml_bitmap[8];
1918#define ML_CHARS 0x2000
2019static int status_bit;
r4406r4407
125124   AM_RANGE(0x2d0000, 0x2d0001) AM_READ(SMH_NOP) AM_WRITE(taitosound_port16_lsb_w)
126125   AM_RANGE(0x2d0002, 0x2d0003) AM_READ(taitosound_comm16_msb_r) AM_WRITE(taitosound_comm16_lsb_w)
127126
128   AM_RANGE(0x200000, 0x20ffff) AM_RAM AM_BASE(&ml_unk)//AM_SHARE(2)
127   AM_RANGE(0x200000, 0x20ffff) AM_RAM_WRITE(paletteram16_xBBBBBGGGGGRRRRR_word_w) AM_BASE(&paletteram16)//AM_SHARE(2)
129128   AM_RANGE(0x280000, 0x2807ff) AM_RAM // is it shared with mecha ? tested around $940
130129
131130   AM_RANGE(0x290000, 0x290001) AM_READ_PORT("IN1")
r4406r4407
229228               {
230229                  drawgfx(ml_bitmap[num],screen->machine->gfx[0],
231230                     code++,
232                     0,
231                     color,
233232                     0,0,
234233                     x+j*8,y+k*8,
235                     cliprect,TRANSPARENCY_PEN,0);
234                     cliprect,TRANSPARENCY_NONE,0);
236235               }
237236               else
238237               {
r4406r4407
319318}
320319
321320static GFXDECODE_START( mlanding )
322   GFXDECODE_ENTRY( "gfx1", 0, tiles8x8_layout, 0, 16 )
321   GFXDECODE_ENTRY( "gfx1", 0, tiles8x8_layout, 0, 16*16 )
323322GFXDECODE_END
324323
325324static const msm5205_interface msm5205_config =
src/mame/drivers/seattle.c
r4406r4407
456456static UINT8 pending_analog_read;
457457static UINT8 status_leds;
458458
459static int speedup_index;
460
461459static UINT32 cmos_write_enabled;
462460
463461
r4406r4407
511509   galileo.timer[3].timer = timer_alloc(machine, galileo_timer_callback, NULL);
512510
513511   /* set the fastest DRC options, but strict verification */
514   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_DRC_OPTIONS, MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY);
512   mips3drc_set_options(machine->cpu[0], MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY);
515513
516514   /* configure fast RAM regions for DRC */
517   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 0);
518   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x00000000);
519   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x007fffff);
520   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, rambase);
521   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 0);
515   mips3drc_add_fastram(machine->cpu[0], 0x00000000, 0x007fffff, FALSE, rambase);
516   mips3drc_add_fastram(machine->cpu[0], 0x1fc00000, 0x1fc7ffff, TRUE,  rombase);
522517
523   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 1);
524   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x1fc00000);
525   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x1fc7ffff);
526   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, rombase);
527   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 1);
528
529518   /* register for save states */
530519   state_save_register_global_array(machine, galileo.reg);
531520   state_save_register_global(machine, galileo.dma_active);
r4406r4407
28062795         memory_install_readwrite32_device_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), device, 0x16c00000, 0x16c0003f, 0, 0, ethernet_r, ethernet_w);
28072796         break;
28082797   }
2809
2810   /* reset speedups */
2811   speedup_index = 0;
28122798}
28132799
2814static void add_speedup(running_machine *machine, offs_t pc, UINT32 op)
2815{
2816   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_HOTSPOT_SELECT, speedup_index++);
2817   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_HOTSPOT_PC, pc);
2818   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_HOTSPOT_OPCODE, op);
2819   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_HOTSPOT_CYCLES, 250);
2820}
28212800
2822
28232801static DRIVER_INIT( wg3dh )
28242802{
28252803   dcs2_init(machine, 2, 0x3839);
28262804   init_common(machine, MIDWAY_IOASIC_STANDARD, 310/* others? */, 80, PHOENIX_CONFIG);
28272805
28282806   /* speedups */
2829   add_speedup(machine, 0x8004413C, 0x0C0054B4);      /* confirmed */
2830   add_speedup(machine, 0x80094930, 0x00A2102B);      /* confirmed */
2831   add_speedup(machine, 0x80092984, 0x3C028011);      /* confirmed */
2807   mips3drc_add_hotspot(machine->cpu[0], 0x8004413C, 0x0C0054B4, 250);      /* confirmed */
2808   mips3drc_add_hotspot(machine->cpu[0], 0x80094930, 0x00A2102B, 250);      /* confirmed */
2809   mips3drc_add_hotspot(machine->cpu[0], 0x80092984, 0x3C028011, 250);      /* confirmed */
28322810}
28332811
28342812
r4406r4407
28382816   init_common(machine, MIDWAY_IOASIC_MACE, 319/* others? */, 80, SEATTLE_CONFIG);
28392817
28402818   /* speedups */
2841   add_speedup(machine, 0x800108F8, 0x8C420000);      /* confirmed */
2819   mips3drc_add_hotspot(machine->cpu[0], 0x800108F8, 0x8C420000, 250);      /* confirmed */
28422820}
28432821
28442822
r4406r4407
28482826   init_common(machine, MIDWAY_IOASIC_STANDARD, 315/* no alternates */, 100, FLAGSTAFF_CONFIG);
28492827
28502828   /* speedups */
2851   add_speedup(machine, 0x80059F34, 0x3C028012);      /* confirmed */
2852   add_speedup(machine, 0x800A5AF4, 0x8E300010);      /* confirmed */
2853   add_speedup(machine, 0x8004C260, 0x3C028012);      /* confirmed */
2829   mips3drc_add_hotspot(machine->cpu[0], 0x80059F34, 0x3C028012, 250);      /* confirmed */
2830   mips3drc_add_hotspot(machine->cpu[0], 0x800A5AF4, 0x8E300010, 250);      /* confirmed */
2831   mips3drc_add_hotspot(machine->cpu[0], 0x8004C260, 0x3C028012, 250);      /* confirmed */
28542832}
28552833
28562834
r4406r4407
28602838   init_common(machine, MIDWAY_IOASIC_SFRUSHRK, 331/* unknown */, 100, FLAGSTAFF_CONFIG);
28612839
28622840   /* speedups */
2863   add_speedup(machine, 0x800343E8, 0x3C028012);      /* confirmed */
2864   add_speedup(machine, 0x8008F4F0, 0x3C028012);      /* confirmed */
2865   add_speedup(machine, 0x800A365C, 0x8E300014);      /* confirmed */
2866   add_speedup(machine, 0x80051DAC, 0x3C028012);      /* confirmed */
2841   mips3drc_add_hotspot(machine->cpu[0], 0x800343E8, 0x3C028012, 250);      /* confirmed */
2842   mips3drc_add_hotspot(machine->cpu[0], 0x8008F4F0, 0x3C028012, 250);      /* confirmed */
2843   mips3drc_add_hotspot(machine->cpu[0], 0x800A365C, 0x8E300014, 250);      /* confirmed */
2844   mips3drc_add_hotspot(machine->cpu[0], 0x80051DAC, 0x3C028012, 250);      /* confirmed */
28672845}
28682846
28692847
r4406r4407
28742852   midway_ioasic_set_auto_ack(1);
28752853
28762854   /* speedups */
2877   add_speedup(machine, 0x80032534, 0x02221024);      /* confirmed */
2878   add_speedup(machine, 0x800B1BE4, 0x8E110014);      /* confirmed */
2855   mips3drc_add_hotspot(machine->cpu[0], 0x80032534, 0x02221024, 250);      /* confirmed */
2856   mips3drc_add_hotspot(machine->cpu[0], 0x800B1BE4, 0x8E110014, 250);      /* confirmed */
28792857}
28802858
28812859
r4406r4407
28852863   init_common(machine, MIDWAY_IOASIC_VAPORTRX, 324/* 334? unknown */, 100, SEATTLE_WIDGET_CONFIG);
28862864
28872865   /* speedups */
2888   add_speedup(machine, 0x80049F14, 0x3C028020);      /* confirmed */
2889   add_speedup(machine, 0x8004859C, 0x3C028020);      /* confirmed */
2890   add_speedup(machine, 0x8005922C, 0x8E020014);      /* confirmed */
2866   mips3drc_add_hotspot(machine->cpu[0], 0x80049F14, 0x3C028020, 250);      /* confirmed */
2867   mips3drc_add_hotspot(machine->cpu[0], 0x8004859C, 0x3C028020, 250);      /* confirmed */
2868   mips3drc_add_hotspot(machine->cpu[0], 0x8005922C, 0x8E020014, 250);      /* confirmed */
28912869}
28922870
28932871
r4406r4407
29092887   rombase[0x934/4] += 4;
29102888
29112889   /* main CPU speedups */
2912   add_speedup(machine, 0x80135510, 0x3C028024);      /* confirmed */
2913   add_speedup(machine, 0x800087DC, 0x8E820010);      /* confirmed */
2890   mips3drc_add_hotspot(machine->cpu[0], 0x80135510, 0x3C028024, 250);      /* confirmed */
2891   mips3drc_add_hotspot(machine->cpu[0], 0x800087DC, 0x8E820010, 250);      /* confirmed */
29142892}
29152893
29162894
r4406r4407
29202898   init_common(machine, MIDWAY_IOASIC_BLITZ99, 481/* or 484 or 520 */, 80, SEATTLE_CONFIG);
29212899
29222900   /* speedups */
2923   add_speedup(machine, 0x8014E41C, 0x3C038025);      /* confirmed */
2924   add_speedup(machine, 0x80011F10, 0x8E020018);      /* confirmed */
2901   mips3drc_add_hotspot(machine->cpu[0], 0x8014E41C, 0x3C038025, 250);      /* confirmed */
2902   mips3drc_add_hotspot(machine->cpu[0], 0x80011F10, 0x8E020018, 250);      /* confirmed */
29252903}
29262904
29272905
r4406r4407
29312909   init_common(machine, MIDWAY_IOASIC_BLITZ99, 494/* or 498 */, 80, SEATTLE_CONFIG);
29322910
29332911   /* speedups */
2934   add_speedup(machine, 0x8015773C, 0x3C038025);      /* confirmed */
2935   add_speedup(machine, 0x80012CA8, 0x8E020018);      /* confirmed */
2912   mips3drc_add_hotspot(machine->cpu[0], 0x8015773C, 0x3C038025, 250);      /* confirmed */
2913   mips3drc_add_hotspot(machine->cpu[0], 0x80012CA8, 0x8E020018, 250);      /* confirmed */
29362914}
29372915
29382916
r4406r4407
29452923   memory_install_readwrite32_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x16800000, 0x1680001f, 0, 0, carnevil_gun_r, carnevil_gun_w);
29462924
29472925   /* speedups */
2948   add_speedup(machine, 0x8015176C, 0x3C03801A);      /* confirmed */
2949   add_speedup(machine, 0x80011FBC, 0x8E020018);      /* confirmed */
2926   mips3drc_add_hotspot(machine->cpu[0], 0x8015176C, 0x3C03801A, 250);      /* confirmed */
2927   mips3drc_add_hotspot(machine->cpu[0], 0x80011FBC, 0x8E020018, 250);      /* confirmed */
29502928}
29512929
29522930
r4406r4407
29562934   init_common(machine, MIDWAY_IOASIC_HYPRDRIV, 469/* unknown */, 80, SEATTLE_WIDGET_CONFIG);
29572935
29582936   /* speedups */
2959   add_speedup(machine, 0x801643BC, 0x3C03801B);      /* confirmed */
2960   add_speedup(machine, 0x80011FB8, 0x8E020018);      /* confirmed */
2961   //add_speedup(machine, 0x80136A80, 0x3C02801D);      /* potential */
2937   mips3drc_add_hotspot(machine->cpu[0], 0x801643BC, 0x3C03801B, 250);      /* confirmed */
2938   mips3drc_add_hotspot(machine->cpu[0], 0x80011FB8, 0x8E020018, 250);      /* confirmed */
2939   //mips3drc_add_hotspot(machine->cpu[0], 0x80136A80, 0x3C02801D, 250);      /* potential */
29622940}
29632941
29642942
src/mame/drivers/firebeat.c
r4406r4407
17331733static MACHINE_START( firebeat )
17341734{
17351735   /* set conservative DRC options */
1736   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_DRC_OPTIONS, PPCDRC_COMPATIBLE_OPTIONS);
1736   ppcdrc_set_options(machine->cpu[0], PPCDRC_COMPATIBLE_OPTIONS);
17371737
17381738   /* configure fast RAM regions for DRC */
1739   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_SELECT, 0);
1740   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_START, 0x00000000);
1741   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_END, 0x01ffffff);
1742   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_PPC_FASTRAM_BASE, work_ram);
1743   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_READONLY, 0);
1739   ppcdrc_add_fastram(machine->cpu[0], 0x00000000, 0x01ffffff, FALSE, work_ram);
17441740}
17451741
17461742static ADDRESS_MAP_START( firebeat_map, ADDRESS_SPACE_PROGRAM, 32 )
src/mame/drivers/wc90b.c
r4406r4407
9898extern UINT8 *wc90b_scroll1y;
9999extern UINT8 *wc90b_scroll2y;
100100
101extern UINT8 *wc90b_scroll_x_lo;
102
101103VIDEO_START( wc90b );
102104WRITE8_HANDLER( wc90b_bgvideoram_w );
103105WRITE8_HANDLER( wc90b_fgvideoram_w );
r4406r4407
176178   AM_RANGE(0xfd06, 0xfd06) AM_WRITEONLY AM_BASE(&wc90b_scroll1x)
177179   AM_RANGE(0xfd08, 0xfd08) AM_WRITEONLY AM_BASE(&wc90b_scroll2y)
178180   AM_RANGE(0xfd0a, 0xfd0a) AM_WRITEONLY AM_BASE(&wc90b_scroll2x)
181   AM_RANGE(0xfd0e, 0xfd0e) AM_WRITEONLY AM_BASE(&wc90b_scroll_x_lo)
179182   AM_RANGE(0xfd00, 0xfd00) AM_READ_PORT("P1")
180183   AM_RANGE(0xfd02, 0xfd02) AM_READ_PORT("P2")
181184   AM_RANGE(0xfd06, 0xfd06) AM_READ_PORT("DSW1")
src/mame/drivers/turbo.c
r4406r4407
11171117   MDRV_PPI8255_ADD( "ppi8255_1", subroc3d_8255_intf[1] )
11181118
11191119   /* video hardware */
1120   MDRV_VIDEO_ATTRIBUTES(VIDEO_ALWAYS_UPDATE)
11201121   MDRV_GFXDECODE(turbo)
11211122   MDRV_PALETTE_LENGTH(256)
11221123
r4406r4407
11521153   MDRV_PPI8255_ADD( "ppi8255_1", buckrog_8255_intf[1] )
11531154
11541155   /* video hardware */
1156   MDRV_VIDEO_ATTRIBUTES(VIDEO_ALWAYS_UPDATE)
11551157   MDRV_GFXDECODE(turbo)
11561158   MDRV_PALETTE_LENGTH(1024)
11571159
src/mame/drivers/zr107.c
r4406r4407
442442static MACHINE_START( zr107 )
443443{
444444   /* set conservative DRC options */
445   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_DRC_OPTIONS, PPCDRC_COMPATIBLE_OPTIONS);
445   ppcdrc_set_options(machine->cpu[0], PPCDRC_COMPATIBLE_OPTIONS);
446446
447447   /* configure fast RAM regions for DRC */
448   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_SELECT, 0);
449   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_START, 0x00000000);
450   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_END, 0x000fffff);
451   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_PPC_FASTRAM_BASE, workram);
452   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_READONLY, 0);
448   ppcdrc_add_fastram(machine->cpu[0], 0x00000000, 0x000fffff, FALSE, workram);
453449}
454450
455451static ADDRESS_MAP_START( zr107_map, ADDRESS_SPACE_PROGRAM, 32 )
src/mame/drivers/pzletime.c
r0r4407
1/*****************************************************************************************
2
3    Puzzle Time (Prototype)
4    Elettronica Video-Games S.R.L, 199?
5
6    driver by Angelo Salese and Pierpaolo Prazzoli
7    dump and info provided by Yoshi
8
9    Notes:
10    - Is the brightness effect right or there's a different video effect?
11    - In the service menu, where you can configure game options, and when you have to
12      choose the Game Mode, you can't see what is selected, becase the 2 halves of the
13      palette used by txt tilemap have the same data. Is it a real game bug?
14
15*****************************************************************************************/
16
17#include "driver.h"
18#include "cpu/m68000/m68000.h"
19#include "sound/okim6295.h"
20#include "machine/eeprom.h"
21
22static UINT16 *bg_videoram, *mid_videoram, *txt_videoram, *tilemap_regs, *video_regs;
23static tilemap *mid_tilemap, *txt_tilemap;
24static int ticket = 0;
25
26static TILE_GET_INFO( get_mid_tile_info )
27{
28   int tileno,colour;
29
30   tileno = mid_videoram[tile_index] & 0x0fff;
31   colour = mid_videoram[tile_index] & 0xf000;
32   colour = colour >> 12;
33   SET_TILE_INFO(2,tileno,colour,0);
34}
35
36static TILE_GET_INFO( get_txt_tile_info )
37{
38   int tileno,colour;
39
40   tileno = txt_videoram[tile_index] & 0x0fff;
41   colour = txt_videoram[tile_index] & 0xf000;
42   colour = colour >> 12;
43   SET_TILE_INFO(0,tileno,colour,0);
44}
45
46static VIDEO_START( pzletime )
47{
48   mid_tilemap = tilemap_create(machine, get_mid_tile_info,tilemap_scan_cols, 16,16,64,16);
49   txt_tilemap = tilemap_create(machine, get_txt_tile_info,tilemap_scan_rows,  8, 8,64,32);
50
51   tilemap_set_transparent_pen(mid_tilemap,0);
52   tilemap_set_transparent_pen(txt_tilemap,0);
53}
54
55static VIDEO_UPDATE( pzletime )
56{
57   int count;
58   int y,x;
59
60   bitmap_fill(bitmap, cliprect, screen->machine->pens[0]); //bg pen
61
62   tilemap_set_scrolly(txt_tilemap, 0, tilemap_regs[0]-3);
63   tilemap_set_scrollx(txt_tilemap, 0, tilemap_regs[1]);
64
65   tilemap_set_scrolly(mid_tilemap, 0, tilemap_regs[2]-3);
66   tilemap_set_scrollx(mid_tilemap, 0, tilemap_regs[3]-7);
67
68   if(video_regs[2] & 1)
69   {
70      count = 0;
71
72      for(y=255;y>=0;y--)
73      {
74         for(x=0;x<512;x++)
75         {
76            if(bg_videoram[count] & 0x8000)
77            {
78               *BITMAP_ADDR16(bitmap, (y - 18) & 0xff, (x - 32) & 0x1ff) = 0x300 + (bg_videoram[count] & 0x7fff);
79            }
80
81            count++;
82         }
83      }
84   }
85
86   tilemap_draw(bitmap,cliprect,mid_tilemap, 0,0);
87
88   {
89      int offs,spr_offs,colour,sx,sy;
90
91      for(offs = 0; offs < 0x2000/2; offs += 4)
92      {
93         if(spriteram16[offs+0] == 8)
94            break;
95
96         spr_offs = spriteram16[offs+3] & 0x0fff;
97         sy = 0x200-(spriteram16[offs+0] & 0x1ff)-35;
98         sx = (spriteram16[offs+1] & 0x1ff)-30;
99         colour = (spriteram16[offs+0] & 0xf000)>>12;
100
101         // is spriteram16[offs+0] & 0x200 flipy? it's always set
102
103         drawgfx(bitmap,screen->machine->gfx[1],spr_offs,colour,0,1,sx,sy,cliprect,TRANSPARENCY_PEN,0);
104      }
105   }
106
107   tilemap_draw(bitmap,cliprect,txt_tilemap,0,0);
108
109   return 0;
110}
111
112static WRITE16_HANDLER( mid_videoram_w )
113{
114   COMBINE_DATA(&mid_videoram[offset]);
115   tilemap_mark_tile_dirty(mid_tilemap,offset);
116}
117
118static WRITE16_HANDLER( txt_videoram_w )
119{
120   COMBINE_DATA(&txt_videoram[offset]);
121   tilemap_mark_tile_dirty(txt_tilemap,offset);
122}
123
124static WRITE16_HANDLER( eeprom_w )
125{
126   if( ACCESSING_BITS_0_7 )
127   {
128      eeprom_write_bit(data & 0x01);
129      eeprom_set_cs_line((data & 0x02) ? CLEAR_LINE : ASSERT_LINE );
130      eeprom_set_clock_line((data & 0x04) ? ASSERT_LINE : CLEAR_LINE );
131   }
132}
133
134static WRITE16_HANDLER( ticket_w )
135{
136   if( ACCESSING_BITS_0_7 )
137   {
138      ticket = data & 1;
139   }
140}
141
142static WRITE16_HANDLER( video_regs_w )
143{
144   int i;
145
146   COMBINE_DATA(&video_regs[offset]);
147
148   if(offset == 0)
149   {
150      if(video_regs[0] > 0)
151      {
152         for (i=0;i<0x300;i++)
153         {
154            palette_set_pen_contrast(space->machine, i, (double)0x8000/(double)video_regs[0]);
155         }
156      }
157   }
158   else if(offset == 1)
159   {
160      if(video_regs[1] > 0)
161      {
162         for (i=0x300;i<32768 + 0x300;i++)
163         {
164            palette_set_pen_contrast(space->machine, i, (double)0x8000/(double)video_regs[1]);
165         }
166      }
167   }
168}
169
170static WRITE16_DEVICE_HANDLER( oki_bank_w )
171{
172   okim6295_set_bank_base(device, 0x40000 * (data & 0x3));
173}
174
175static CUSTOM_INPUT( ticket_status_r )
176{
177   return ticket && !(video_screen_get_frame_number(field->port->machine->primary_screen)%128);
178}
179
180static ADDRESS_MAP_START( pzletime_map, ADDRESS_SPACE_PROGRAM, 16 )
181   AM_RANGE(0x000000, 0x3fffff) AM_ROM
182   AM_RANGE(0x700000, 0x700005) AM_RAM_WRITE(video_regs_w) AM_BASE(&video_regs)
183   AM_RANGE(0x800000, 0x800001) AM_DEVREADWRITE8("oki", okim6295_r, okim6295_w, 0x00ff)
184   AM_RANGE(0x900000, 0x9005ff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16)
185   AM_RANGE(0xa00000, 0xa00007) AM_RAM AM_BASE(&tilemap_regs)
186   AM_RANGE(0xb00000, 0xb3ffff) AM_RAM AM_BASE(&bg_videoram)
187   AM_RANGE(0xc00000, 0xc00fff) AM_RAM_WRITE(mid_videoram_w) AM_BASE(&mid_videoram)
188   AM_RANGE(0xc01000, 0xc01fff) AM_RAM_WRITE(txt_videoram_w) AM_BASE(&txt_videoram)
189   AM_RANGE(0xd00000, 0xd01fff) AM_RAM AM_BASE(&spriteram16)
190   AM_RANGE(0xe00000, 0xe00001) AM_READ_PORT("INPUT") AM_WRITE(eeprom_w)
191   AM_RANGE(0xe00002, 0xe00003) AM_READ_PORT("SYSTEM") AM_WRITE(ticket_w)
192   AM_RANGE(0xe00004, 0xe00005) AM_DEVWRITE("oki", oki_bank_w)
193   AM_RANGE(0xf00000, 0xf0ffff) AM_RAM
194ADDRESS_MAP_END
195
196
197static INPUT_PORTS_START( pzletime )
198   PORT_START("SYSTEM")
199   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
200   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
201   PORT_SERVICE_NO_TOGGLE( 0x0004, IP_ACTIVE_LOW )
202   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_VBLANK )
203   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_UNKNOWN )
204   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_UNKNOWN )
205   PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(eeprom_bit_r, NULL) /* eeprom */
206   PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(ticket_status_r, NULL) /* ticket dispenser */
207   PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
208
209   PORT_START("INPUT")
210   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
211   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
212   PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
213   PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
214   PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
215   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
216   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
217   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_START1 )
218   PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
219   PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
220   PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
221   PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
222   PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
223   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
224   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
225   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_START2 )
226INPUT_PORTS_END
227
228static const gfx_layout layout8x8 =
229{
230   8,8,
231   RGN_FRAC(1,1),
232   4,
233   { 0, 1, 2, 3 },
234   { 1*4, 0*4, 3*4, 2*4, 5*4, 4*4, 7*4, 6*4 },
235   { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32 },
236   32*8
237};
238
239static const gfx_layout layout16x16 =
240{
241   16,16,
242   RGN_FRAC(1,1),
243   4,
244   { 0, 1, 2, 3 },
245   { 4, 0, 12, 8, 20, 16, 28, 24, 16*32+4, 16*32+0, 16*32+12, 16*32+8, 16*32+20, 16*32+16, 16*32+28, 16*32+24 },
246   { 0*32, 1*32, 2*32, 3*32, 4*32, 5*32, 6*32, 7*32, 8*32, 9*32, 10*32, 11*32, 12*32, 13*32, 14*32, 15*32 },
247   32*32
248};
249
250static GFXDECODE_START( pzletime )
251   GFXDECODE_ENTRY( "gfx1", 0, layout8x8,   0x100, 0x10 )
252   GFXDECODE_ENTRY( "gfx2", 0, layout16x16, 0x200, 0x10 )
253   GFXDECODE_ENTRY( "gfx3", 0, layout16x16, 0x000, 0x10 )
254GFXDECODE_END
255
256static PALETTE_INIT( pzletime )
257{
258   int i;
259
260   /* first 0x300 colors are dynamic */
261
262   /* initialize 555 RGB lookup */
263   for (i = 0;i < 32768;i++)
264      palette_set_color_rgb(machine,i+0x300,pal5bit(i >> 10),pal5bit(i >> 5),pal5bit(i >> 0));
265}
266
267static MACHINE_DRIVER_START( pzletime )
268
269   /* basic machine hardware */
270   MDRV_CPU_ADD("cpu",M68000,10000000)
271   MDRV_CPU_PROGRAM_MAP(pzletime_map,0)
272   MDRV_CPU_VBLANK_INT("screen",irq4_line_hold)
273
274   /* video hardware */
275   MDRV_SCREEN_ADD("screen", RASTER)
276   MDRV_SCREEN_REFRESH_RATE(60)
277   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
278   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
279   MDRV_SCREEN_SIZE(64*8, 32*8)
280   MDRV_SCREEN_VISIBLE_AREA(0*8, 48*8-1, 0*8, 28*8-1)
281   MDRV_GFXDECODE(pzletime)
282   MDRV_PALETTE_LENGTH(0x300 + 32768)
283   MDRV_NVRAM_HANDLER(93C46)
284
285   MDRV_PALETTE_INIT(pzletime)
286   MDRV_VIDEO_START(pzletime)
287   MDRV_VIDEO_UPDATE(pzletime)
288
289   /* sound hardware */
290   MDRV_SPEAKER_STANDARD_MONO("mono")
291   MDRV_SOUND_ADD("oki", OKIM6295, 937500) //freq & pin7 taken from stlforce
292   MDRV_SOUND_CONFIG(okim6295_interface_pin7high)
293   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
294MACHINE_DRIVER_END
295
296/***************************************************************************
297
298  Game driver(s)
299
300***************************************************************************/
301
302ROM_START( pzletime )
303   ROM_REGION( 0x400000, "cpu", 0 )
304   ROM_LOAD16_BYTE( "5.bin", 0x000000, 0x80000, CRC(78b027dc) SHA1(6719908a075ecf0666bb817ac8a31056a7f315c6) )
305   ROM_LOAD16_BYTE( "1.bin", 0x000001, 0x80000, CRC(0a69cbc7) SHA1(bae8b5746209c6773da27acaec7bd535a69019d2) )
306   ROM_LOAD16_BYTE( "6.bin", 0x100000, 0x80000, CRC(526733ef) SHA1(21a921416d1ae7b9d49789d70ae99f240b012489) )
307   ROM_LOAD16_BYTE( "2.bin", 0x100001, 0x80000, CRC(2a877266) SHA1(b8e909b3bd21af71782c501fa6eef590045b81e0) )
308   ROM_LOAD16_BYTE( "7.bin", 0x200000, 0x80000, CRC(2efdd6d3) SHA1(de35d7a1bcd3ad608b8dfc184e06d6719253a1c7) )
309   ROM_LOAD16_BYTE( "3.bin", 0x200001, 0x80000, CRC(1ddacade) SHA1(78f09fdb541e369765abfdf39607ca8f4c771d16) )
310   ROM_LOAD16_BYTE( "8.bin", 0x300000, 0x80000, CRC(be7cf043) SHA1(5dadafb6f89f2fc373b77b18746b461117228f08) )
311   ROM_LOAD16_BYTE( "4.bin", 0x300001, 0x80000, CRC(374ab900) SHA1(bd7f649bdf2927c1f5cb53492a08cc66c4658a72) )
312
313   ROM_REGION( 0x80000, "user1", 0 ) /* Samples */
314   ROM_LOAD( "12.bin",  0x00000, 0x80000,  CRC(203897c1) SHA1(c2495871c796bc7f2dabca1630317313b5aa740a) )
315
316   ROM_REGION( 0x100000, "oki", 0 )
317   ROM_COPY( "user1", 0x000000, 0x000000, 0x020000 )
318   ROM_COPY( "user1", 0x000000, 0x020000, 0x020000 )
319   ROM_COPY( "user1", 0x000000, 0x040000, 0x020000 )
320   ROM_COPY( "user1", 0x020000, 0x060000, 0x020000 )
321   ROM_COPY( "user1", 0x000000, 0x080000, 0x020000 )
322   ROM_COPY( "user1", 0x040000, 0x0a0000, 0x020000 )
323   ROM_COPY( "user1", 0x000000, 0x0c0000, 0x020000 )
324   ROM_COPY( "user1", 0x060000, 0x0e0000, 0x020000 )
325
326   ROM_REGION( 0x80000, "gfx1", ROMREGION_DISPOSE )
327   ROM_LOAD( "10.bin",  0x00000, 0x80000, CRC(d6ed11a5) SHA1(585aad4e962e7c9ba33e96d4d53e2feddd1a6cd9) )
328
329   ROM_REGION( 0x80000, "gfx2", ROMREGION_DISPOSE )
330   ROM_LOAD( "11.bin",  0x000000, 0x80000, CRC(566e09a3) SHA1(b04d23bd82c609f35e6b651006b5c029f36f54dc) )
331
332   ROM_REGION( 0x80000, "gfx3", ROMREGION_DISPOSE )
333   ROM_LOAD( "9.bin",   0x000000, 0x80000, CRC(a8144a7e) SHA1(9dfdd6c17a91cad6b56c622671042ac2ee2c9ec8) )
334ROM_END
335
336GAME( 199?, pzletime, 0, pzletime,  pzletime,  0, ROT0, "Elettronica Video-Games S.R.L.", "Puzzle Time (Prototype)", 0 )
src/mame/drivers/segas16a.c
r4406r4407
25242524    Quartet 2, pre-System 16
25252525    CPU: 68000
25262526    i8751 317-0010
2527
2528    CPU/Video/Sound Board: 171-5335
2529    ROM Board:             171-5336
25272530 */
25282531ROM_START( quart21 )
25292532   ROM_REGION( 0x40000, "maincpu", 0 ) /* 68000 code */
src/mame/drivers/gpworld.c
r4406r4407
7272         int current_screen_character = (characterY*64) + characterX;
7373
7474         drawgfx(bitmap, machine->gfx[0], tile_RAM[current_screen_character],
75               0, 0, 0, characterX*8, characterY*8, cliprect, TRANSPARENCY_PEN, 0);
75               characterY, 0, 0, characterX*8, characterY*8, cliprect, TRANSPARENCY_PEN, 0);
7676      }
7777   }
7878}
r4406r4407
267267   /* "Round down" to the nearest palette entry */
268268   pal_index = offset & 0xffe;
269269
270   b = (palette_RAM[pal_index]   & 0xf0) << 0;
271   g = (palette_RAM[pal_index]   & 0x0f) << 4;
270   g = (palette_RAM[pal_index]   & 0xf0) << 0;
271   b = (palette_RAM[pal_index]   & 0x0f) << 4;
272272   r = (palette_RAM[pal_index+1] & 0x0f) << 4;
273273   a = (palette_RAM[pal_index+1] & 0x80) ? 0 : 255;   /* guess */
274274
275275   /* logerror("PAL WRITE index : %x  rgb : %d %d %d (real %x) at %x\n", pal_index, r,g,b, data, offset); */
276276
277   palette_set_color(space->machine, pal_index, MAKE_ARGB(a, r, g, b));
277   palette_set_color(space->machine, (pal_index & 0xffe) >> 1, MAKE_ARGB(a, r, g, b));
278278}
279279
280280/* PROGRAM MAP */
r4406r4407
430430   8,8,
431431   0x800/8,
432432   2,
433   { 0, 0x800*8 },
433   { 0x800*8, 0 },
434434   { 0,1,2,3,4,5,6,7 },
435435   { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
436436   8*8
src/mame/drivers/hng64.c
r4406r4407
14511451}
14521452
14531453
1454static MACHINE_START(hyperneo)
1455{
1456   /* set the fastest DRC options */
1457   mips3drc_set_options(machine->cpu[0], MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY);
14541458
1459   /* configure fast RAM regions for DRC */
1460   mips3drc_add_fastram(machine->cpu[0], 0x00000000, 0x00ffffff, FALSE, hng_mainram);
1461   mips3drc_add_fastram(machine->cpu[0], 0x04000000, 0x05ffffff, TRUE,  hng_cart);
1462   mips3drc_add_fastram(machine->cpu[0], 0x1fc00000, 0x1fc7ffff, TRUE,  rombase);
1463}
14551464
1465
14561466static MACHINE_RESET(hyperneo)
14571467{
14581468   int i ;
r4406r4407
14871497
14881498   // "Display List" init - ugly
14891499   activeBuffer = 0 ;
1490
1491   /* set the fastest DRC options */
1492   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_DRC_OPTIONS, MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY);
1493
1494   /* configure fast RAM regions for DRC */
1495   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 0);
1496   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x00000000);
1497   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x00ffffff);
1498   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, hng_mainram);
1499   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 0);
1500
1501   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 1);
1502   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x04000000);
1503   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x05ffffff);
1504   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, hng_cart);
1505   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 1);
1506
1507   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_SELECT, 2);
1508   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_START, 0x1fc00000);
1509   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_END, 0x1fc7ffff);
1510   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_MIPS3_FASTRAM_BASE, rombase);
1511   device_set_info_int(machine->cpu[0], CPUINFO_INT_MIPS3_FASTRAM_READONLY, 1);
15121500}
15131501
15141502
r4406r4407
15271515   MDRV_CPU_IO_MAP(hng_comm_io_map, 0)
15281516
15291517   MDRV_GFXDECODE(hng64)
1518   MDRV_MACHINE_START(hyperneo)
15301519   MDRV_MACHINE_RESET(hyperneo)
15311520
15321521   MDRV_SCREEN_ADD("screen", RASTER)
src/mame/drivers/stepstag.c
r4406r4407
11/*  Jaleco 'Stepping Stage'
22
3*************************************************************************
4 Naibo added:
5
6 A PC computer(Harddisk not dumped yet) + Two 68000 based board set.
7
8 One 68000 drives 3 screens, another handles players input.
9*************************************************************************
10
311 dump is incomplete, these are leftovers from an upgrade
412 music roms are missing at least
513
r4406r4407
202210
203211ROM_START( step3 )
204212ROM_REGION( 0x100000, "maincpu", 0 ) /* 68k */
205   ROM_LOAD16_BYTE( "vj98344ver11.1", 0x00001, 0x80000, BAD_DUMP CRC(aedcb225) SHA1(f167c390e79ffbf7c019c326384ae656ae8b7d13) )
206   ROM_LOAD16_BYTE( "vj98344ver11.4", 0x00000, 0x80000, BAD_DUMP CRC(391ca913) SHA1(2cc329aa6419f8a0d7e0fb8a9f4c2b8ca25197b3) )
213   ROM_LOAD16_BYTE( "vj98344ver11.1", 0x00001, 0x80000, NO_DUMP )
214   ROM_LOAD16_BYTE( "vj98344ver11.4", 0x00000, 0x80000, NO_DUMP )
207215   // c'est la programme de stepstag (avoir besoin de modifications, numero de chansons par example)
208216
209217   ROM_REGION( 0x100000, "sub", 0 ) /* 68k */
r4406r4407
243251ROM_END
244252
245253GAME( 1999, stepstag, 0, stepstag, stepstag, 0, ROT0, "Jaleco", "Stepping Stage", GAME_NO_SOUND| GAME_NOT_WORKING)
246GAME( 1999, step3, stepstag,   stepstag, stepstag, 0,   ROT0, "Jaleco", "Stepping 3 Superior", GAME_NO_SOUND| GAME_NOT_WORKING)
254GAME( 1999, step3, 0,   stepstag, stepstag, 0,   ROT0, "Jaleco", "Stepping 3 Superior", GAME_NO_SOUND| GAME_NOT_WORKING)
src/mame/drivers/nwk-tr.c
r4406r4407
890890static MACHINE_START( nwktr )
891891{
892892   /* set conservative DRC options */
893   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_DRC_OPTIONS, PPCDRC_COMPATIBLE_OPTIONS);
893   ppcdrc_set_options(machine->cpu[0], PPCDRC_COMPATIBLE_OPTIONS);
894894
895895   /* configure fast RAM regions for DRC */
896   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_SELECT, 0);
897   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_START, 0x00000000);
898   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_END, 0x003fffff);
899   device_set_info_ptr(machine->cpu[0], CPUINFO_PTR_PPC_FASTRAM_BASE, work_ram);
900   device_set_info_int(machine->cpu[0], CPUINFO_INT_PPC_FASTRAM_READONLY, 0);
896   ppcdrc_add_fastram(machine->cpu[0], 0x00000000, 0x003fffff, FALSE, work_ram);
901897}
902898
903899static ADDRESS_MAP_START( nwktr_map, ADDRESS_SPACE_PROGRAM, 32 )
src/mame/drivers/rpunch.c
r4406r4407
240240 *
241241 *************************************/
242242
243static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 16 )
243static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 )
244244   ADDRESS_MAP_GLOBAL_MASK(0xfffff)
245   AM_RANGE(0x000000, 0x03ffff) AM_READ(SMH_ROM)
246   AM_RANGE(0x040000, 0x04ffff) AM_READ(SMH_RAM)
247   AM_RANGE(0x060000, 0x060fff) AM_READ(SMH_RAM)
248   AM_RANGE(0x080000, 0x083fff) AM_READ(SMH_RAM)
249   AM_RANGE(0x0c0018, 0x0c0019) AM_READ_PORT("P1")
250   AM_RANGE(0x0c001a, 0x0c001b) AM_READ_PORT("P2")
251   AM_RANGE(0x0c001c, 0x0c001d) AM_READ_PORT("DSW")
252   AM_RANGE(0x0c001e, 0x0c001f) AM_READ(sound_busy_r)
253   AM_RANGE(0x0a0000, 0x0a07ff) AM_READ(SMH_RAM)
254   AM_RANGE(0x0fc000, 0x0fffff) AM_READ(SMH_RAM)
255ADDRESS_MAP_END
256
257
258static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 16 )
259   ADDRESS_MAP_GLOBAL_MASK(0xfffff)
260   AM_RANGE(0x000000, 0x03ffff) AM_WRITE(SMH_ROM)
261   AM_RANGE(0x040000, 0x04ffff) AM_WRITE(SMH_RAM) AM_BASE(&rpunch_bitmapram) AM_SIZE(&rpunch_bitmapram_size)
262   AM_RANGE(0x060000, 0x060fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16)
263   AM_RANGE(0x080000, 0x083fff) AM_WRITE(rpunch_videoram_w) AM_BASE(&videoram16) AM_SIZE(&videoram_size)
264   AM_RANGE(0x0a0000, 0x0a07ff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16)
245   AM_RANGE(0x000000, 0x03ffff) AM_ROM
246   AM_RANGE(0x040000, 0x04ffff) AM_RAM AM_BASE(&rpunch_bitmapram) AM_SIZE(&rpunch_bitmapram_size)
247   AM_RANGE(0x060000, 0x060fff) AM_RAM AM_BASE(&spriteram16)
248   AM_RANGE(0x080000, 0x083fff) AM_RAM_WRITE(rpunch_videoram_w) AM_BASE(&videoram16) AM_SIZE(&videoram_size)
249   AM_RANGE(0x0a0000, 0x0a07ff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16)
265250   AM_RANGE(0x0c0000, 0x0c0007) AM_WRITE(rpunch_scrollreg_w)
266251   AM_RANGE(0x0c0008, 0x0c0009) AM_WRITE(rpunch_crtc_data_w)
267252   AM_RANGE(0x0c000c, 0x0c000d) AM_WRITE(rpunch_videoreg_w)
268253   AM_RANGE(0x0c000e, 0x0c000f) AM_WRITE(sound_command_w)
269254   AM_RANGE(0x0c0010, 0x0c0013) AM_WRITE(rpunch_ins_w)
255   AM_RANGE(0x0c0018, 0x0c0019) AM_READ_PORT("P1")
256   AM_RANGE(0x0c001a, 0x0c001b) AM_READ_PORT("P2")
257   AM_RANGE(0x0c001c, 0x0c001d) AM_READ_PORT("DSW")
258   AM_RANGE(0x0c001e, 0x0c001f) AM_READ(sound_busy_r)
270259   AM_RANGE(0x0c0028, 0x0c0029) AM_WRITE(rpunch_crtc_register_w)
271   AM_RANGE(0x0fc000, 0x0fffff) AM_WRITE(SMH_RAM)
260   AM_RANGE(0x0fc000, 0x0fffff) AM_RAM
272261ADDRESS_MAP_END
273262
274263
r4406r4407
279268 *
280269 *************************************/
281270
282static ADDRESS_MAP_START( readmem_sound, ADDRESS_SPACE_PROGRAM, 8 )
283   AM_RANGE(0x0000, 0xefff) AM_READ(SMH_ROM)
284   AM_RANGE(0xf000, 0xf001) AM_DEVREAD("ym", ym2151_r)
271static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 )
272   AM_RANGE(0x0000, 0xefff) AM_ROM
273   AM_RANGE(0xf000, 0xf001) AM_DEVREADWRITE("ym", ym2151_r, ym2151_w)
285274   AM_RANGE(0xf200, 0xf200) AM_READ(sound_command_r)
286   AM_RANGE(0xf800, 0xffff) AM_READ(SMH_RAM)
287ADDRESS_MAP_END
288
289
290static ADDRESS_MAP_START( writemem_sound, ADDRESS_SPACE_PROGRAM, 8 )
291   AM_RANGE(0x0000, 0xefff) AM_WRITE(SMH_ROM)
292   AM_RANGE(0xf000, 0xf001) AM_DEVWRITE("ym", ym2151_w)
293275   AM_RANGE(0xf400, 0xf400) AM_DEVWRITE("upd", upd_control_w)
294276   AM_RANGE(0xf600, 0xf600) AM_DEVWRITE("upd", upd_data_w)
295   AM_RANGE(0xf800, 0xffff) AM_WRITE(SMH_RAM)
277   AM_RANGE(0xf800, 0xffff) AM_RAM
296278ADDRESS_MAP_END
297279
298280
r4406r4407
501483
502484   /* basic machine hardware */
503485   MDRV_CPU_ADD("maincpu", M68000, MASTER_CLOCK/2)
504   MDRV_CPU_PROGRAM_MAP(readmem,writemem)
486   MDRV_CPU_PROGRAM_MAP(main_map,0)
505487
506488   MDRV_CPU_ADD("audiocpu", Z80, MASTER_CLOCK/4)
507   MDRV_CPU_PROGRAM_MAP(readmem_sound,writemem_sound)
489   MDRV_CPU_PROGRAM_MAP(sound_map,0)
508490
509491   MDRV_MACHINE_RESET(rpunch)
510492
src/mame/drivers/royalmah.c
r4406r4407
202084? Jan Oh                FRM-00?              Z80      Toaplan            Incomplete program roms
212186  Ippatsu Gyakuten                           Z80      Public/Paradais
222286  Don Den Mahjong       D039198L-0           Z80      Dyna Electronics
2386  Watashiha Suzumechan                       Z80      Dyna Electronics
2386  Watashiha Suzumechan  D8803288L1-0         Z80      Dyna Electronics
242487  Mahjong Diplomat      D0706088L1-0         Z80      Dynax
252587  Mahjong Studio 101    D1708228L1           Z80      Dynax
262687  Tonton                D0908288L1-0         Z80      Dynax
272788  Almond Pinky          D1401128L-0 + RM-1D  Z80      Dynax
282889  Mahjong Shinkirou     D210301BL2 + FRM-00? TLCS-90  Dynax
292989  Mahjong Derringer     D2203018L            Z80      Dynax              Larger palette
3090  Mahjong If..?         D29?                 TLCS-90  Dynax              Larger palette
3090  Mahjong If..?         D2909278L            TLCS-90  Dynax              Larger palette
313191  Mahjong Vegas         D5011308L1 + FRM-00  TLCS-90
323292  Mahjong Cafe Time     D6310128L1-1         TLCS-90  Dynax              Larger palette, RTC
333393  Mahjong Cafe Doll     D76052208L-2         TLCS-90  Dynax              Larger palette, RTC, Undumped internal rom
343495  Mahjong Tensinhai     D10010318L1          TLCS-90  Dynax              Larger palette, RTC
3596  Janputer '96                               Z80      Dynax              Larger palette, RTC
3596  Janputer '96          NS503X0727           Z80      Dynax              Larger palette, RTC
363699  Mahjong Cafe Break    NS528-9812           TLCS-90  Nakanihon / Dynax  Undumped internal rom
3737---------------------------------------------------------------------------------------------------------------------
3838
r4406r4407
9191#include "cpu/tlcs90/tlcs90.h"
9292#include "machine/msm6242.h"
9393#include "sound/ay8910.h"
94#include "sound/dac.h"
9495
9596
9697static UINT8 input_port_select, dsw_select, rombank;
r4406r4407
581582ADDRESS_MAP_END
582583
583584/****************************************************************************
585                                Jansou
586****************************************************************************/
587
588
589static UINT8 gfx_adr_l = 0, gfx_adr_m = 0, gfx_adr_h = 0;
590static UINT32 gfx_adr = 0;
591static UINT8 gfxdata0, gfxdata1;
592static UINT8 jansou_colortable[16];
593
594static WRITE8_HANDLER( jansou_dsw_sel_w )
595{
596   dsw_select = data;
597}
598
599static READ8_HANDLER( jansou_dsw_r )
600{
601   switch (dsw_select & 7)
602   {
603      case 1: return input_port_read(space->machine, "DSW1");
604      case 2: return input_port_read(space->machine, "DSW2");
605      case 4: return input_port_read(space->machine, "DSW3");
606   }
607
608   return 0xff;
609}
610
611static WRITE8_HANDLER( jansou_colortable_w )
612{
613   jansou_colortable[offset] = data;
614}
615
616static WRITE8_HANDLER( jansou_6400_w )
617{
618   gfx_adr_l = data;
619   gfx_adr = gfx_adr_h*0x10000 + gfx_adr_m*0x100 + gfx_adr_l;
620}
621
622static WRITE8_HANDLER( jansou_6401_w )
623{
624   gfx_adr_m = data;
625   gfx_adr = gfx_adr_h*0x10000 + gfx_adr_m*0x100 + gfx_adr_l;
626}
627
628static WRITE8_HANDLER( jansou_6402_w )
629{
630   gfx_adr_h = data & 1;
631   gfx_adr = gfx_adr_h*0x10000 + gfx_adr_m*0x100 + gfx_adr_l;
632}
633
634static READ8_HANDLER( jansou_6403_r )
635{
636   UINT8 *GFXROM = memory_region(space->machine, "gfx1");
637   int d0 = GFXROM[gfx_adr];
638   int d1 = GFXROM[gfx_adr+1];
639   int c0 = jansou_colortable[d1 & 0x0f] & 0x0f;
640   int c1 = jansou_colortable[(d1 & 0xf0) >> 4] >> 4;
641   int c2 = jansou_colortable[d0 & 0x0f] & 0x0f;
642   int c3 = jansou_colortable[(d0 & 0xf0) >> 4] >> 4;
643
644   gfx_adr += 2;
645
646   gfxdata0 = (c3 & 1) << 0 | ((c2 & 1) << 1) | ((c1 & 1) << 2) | ((c0 & 1) << 3)
647           | ((c3 & 2) << 3) | ((c2 & 2) << 4) | ((c1 & 2) << 5) | ((c0 & 2) << 6);
648   gfxdata1 = (c3 & 4) >> 2 | ((c2 & 4) >> 1) | (c1 & 4) | ((c0 & 4) << 1)
649           | ((c3 & 8) << 1) | ((c2 & 8) << 2) | ((c1 & 8) << 3) | ((c0 & 8) << 4);
650
651   return 0xff;
652}
653
654static READ8_HANDLER( jansou_6404_r )
655{
656   return gfxdata0;
657}
658
659static READ8_HANDLER( jansou_6405_r )
660{
661   return gfxdata1;
662}
663
664static WRITE8_HANDLER( jansou_sound_w )
665{
666   soundlatch_w(space,0,data);
667   cpu_set_input_line(space->machine->cpu[1], INPUT_LINE_NMI, PULSE_LINE);
668}
669
670
671
672static ADDRESS_MAP_START( jansou_map, ADDRESS_SPACE_PROGRAM, 8 )
673   AM_RANGE( 0x0000, 0x3fff ) AM_ROM
674
675   AM_RANGE( 0x6000, 0x600f ) AM_WRITE(jansou_colortable_w)
676   AM_RANGE( 0x6400, 0x6400 ) AM_WRITE(jansou_6400_w)
677   AM_RANGE( 0x6401, 0x6401 ) AM_WRITE(jansou_6401_w)
678   AM_RANGE( 0x6402, 0x6402 ) AM_WRITE(jansou_6402_w)
679   AM_RANGE( 0x6403, 0x6403 ) AM_READ(jansou_6403_r)
680   AM_RANGE( 0x6404, 0x6404 ) AM_READ(jansou_6404_r)
681   AM_RANGE( 0x6405, 0x6405 ) AM_READ(jansou_6405_r)
682   AM_RANGE( 0x6406, 0x6406 ) AM_WRITE(jansou_dsw_sel_w)
683   AM_RANGE( 0x6407, 0x6407 ) AM_READ(jansou_dsw_r)
684   AM_RANGE( 0x6800, 0x6800 ) AM_WRITE(jansou_sound_w)
685
686   AM_RANGE( 0x7000, 0x77ff ) AM_RAM AM_BASE(&generic_nvram) AM_SIZE(&generic_nvram_size)
687   AM_RANGE( 0x8000, 0xffff ) AM_WRITE( SMH_RAM ) AM_BASE(&videoram)
688ADDRESS_MAP_END
689
690static ADDRESS_MAP_START( jansou_sub_map, ADDRESS_SPACE_PROGRAM, 8 )
691   AM_RANGE( 0x0000, 0xffff ) AM_ROM
692ADDRESS_MAP_END
693
694
695static ADDRESS_MAP_START( jansou_sub_iomap, ADDRESS_SPACE_IO, 8 )
696   ADDRESS_MAP_GLOBAL_MASK(0xff)
697   AM_RANGE(0x00, 0x00) AM_READ(soundlatch_r) AM_DEVWRITE( "dac", dac_w )
698ADDRESS_MAP_END
699
700
701/****************************************************************************
584702                                Janputer '96
585703****************************************************************************/
586704
r4406r4407
13611479   PORT_DIPNAME( 0x40, 0x00, "Background Color" )
13621480   PORT_DIPSETTING(    0x00, "Green" )
13631481   PORT_DIPSETTING(    0x40, "Black" )
1364   PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) )
1365   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1366   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
1482   PORT_DIPNAME( 0x80, 0x80, "Debug Mode ?" )
1483   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
1484   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
13671485
13681486   PORT_START("DSW3")
13691487   PORT_DIPNAME( 0x01, 0x00, "Special Combinations" )
13701488   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
13711489   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1372   PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) )
1373   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1374   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
1375   PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) )
1376   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1377   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
1378   PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
1379   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1380   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
1381   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
1382   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1383   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
1384   PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
1385   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1386   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1490   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
1491   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
1492   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1493   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
1494   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
1495   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1496   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
1497   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
1498   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1499   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
1500   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
1501   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1502   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
1503   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
1504   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
13871505   PORT_DIPNAME( 0x40, 0x40, "Full Tests" )
13881506   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
13891507   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1390   PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) )
1391   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1392   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
1508   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
1509   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
1510   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
13931511
13941512   PORT_START("DSW2")
1395   PORT_DIPNAME( 0x01, 0x00, "DSW2" )
1396   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1397   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
1398   PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ) )
1399   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1400   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
1401   PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ) )
1402   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1403   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
1404   PORT_DIPNAME( 0x08, 0x00, DEF_STR( Unknown ) )
1405   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1406   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
1407   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ) )
1408   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1409   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
1410   PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ) )
1411   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1412   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
1413   PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) )
1414   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1415   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
1416   PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ) )
1417   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
1418   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
1513   PORT_DIPNAME( 0x01, 0x01, "DSW2" )
1514   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
1515   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1516   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
1517   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
1518   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1519   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
1520   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
1521   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1522   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
1523   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
1524   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1525   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
1526   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
1527   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1528   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
1529   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
1530   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1531   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
1532   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
1533   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
1534   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
1535   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
1536   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
14191537INPUT_PORTS_END
14201538
14211539/* TODO: check dip-switches */
r4406r4407
26142732   PORT_DIPSETTING(    0x80, "2/4" )
26152733INPUT_PORTS_END
26162734
2735static INPUT_PORTS_START( jansou )
2736   PORT_INCLUDE( mjctrl2 )
26172737
2738   PORT_START("DSW1")
2739   PORT_DIPNAME( 0x0f, 0x00, "Pay Out Rate" )  PORT_DIPLOCATION("SW1:1,2,3,4")
2740   PORT_DIPSETTING(    0x0f, "50%" )
2741   PORT_DIPSETTING(    0x0e, "53%" )
2742   PORT_DIPSETTING(    0x0d, "56%" )
2743   PORT_DIPSETTING(    0x0c, "59%" )
2744   PORT_DIPSETTING(    0x0b, "62%" )
2745   PORT_DIPSETTING(    0x0a, "65%" )
2746   PORT_DIPSETTING(    0x09, "68%" )
2747   PORT_DIPSETTING(    0x08, "71%" )
2748   PORT_DIPSETTING(    0x07, "74%" )
2749   PORT_DIPSETTING(    0x06, "77%" )
2750   PORT_DIPSETTING(    0x05, "80%" )
2751   PORT_DIPSETTING(    0x04, "83%" )
2752   PORT_DIPSETTING(    0x03, "86%" )
2753   PORT_DIPSETTING(    0x02, "89%" )
2754   PORT_DIPSETTING(    0x01, "92%" )
2755   PORT_DIPSETTING(    0x00, "95%" )
2756   PORT_DIPNAME( 0x30, 0x00, "Maximum Bet" )   PORT_DIPLOCATION("SW1:5,6")
2757   PORT_DIPSETTING(    0x30, "1" )
2758   PORT_DIPSETTING(    0x20, "5" )
2759   PORT_DIPSETTING(    0x10, "10" )
2760   PORT_DIPSETTING(    0x00, "20" )
2761   PORT_DIPNAME( 0x40, 0x40, "Unknown 1-7" )   PORT_DIPLOCATION("SW1:7")
2762   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
2763   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2764   PORT_DIPNAME( 0x80, 0x80, "Unknown 1-8" )   PORT_DIPLOCATION("SW1:8")
2765   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
2766   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2767
2768   PORT_START("DSW2")
2769   PORT_DIPNAME( 0x03, 0x00, "First Chance" )  PORT_DIPLOCATION("SW2:1,2")
2770   PORT_DIPSETTING(    0x03, DEF_STR( None ) )
2771   PORT_DIPSETTING(    0x02, "3" )
2772   PORT_DIPSETTING(    0x01, "4" )
2773   PORT_DIPSETTING(    0x00, "5" )
2774   PORT_DIPNAME( 0x0c, 0x00, "Last Chance" )   PORT_DIPLOCATION("SW2:3,4")
2775   PORT_DIPSETTING(    0x0c, DEF_STR( None ) )
2776   PORT_DIPSETTING(    0x08, "3" )
2777   PORT_DIPSETTING(    0x04, "4" )
2778   PORT_DIPSETTING(    0x00, "5" )
2779   PORT_DIPNAME( 0x10, 0x10, "Unknown 2-5" )   PORT_DIPLOCATION("SW2:5")
2780   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
2781   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2782   PORT_DIPNAME( 0x20, 0x20, "Unknown 2-6" )   PORT_DIPLOCATION("SW2:6")
2783   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
2784   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2785   PORT_DIPNAME( 0x40, 0x40, "Unknown 2-7" )   PORT_DIPLOCATION("SW2:7")
2786   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
2787   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2788   PORT_DIPNAME( 0x80, 0x00, "Middle Chance" ) PORT_DIPLOCATION("SW2:8")
2789   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
2790   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2791
2792   PORT_START("DSW3")
2793   PORT_DIPNAME( 0x01, 0x01, "Unknown 3-1" )   PORT_DIPLOCATION("SW3:1")
2794   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
2795   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2796   PORT_DIPNAME( 0x02, 0x02, "Unknown 3-2" )   PORT_DIPLOCATION("SW3:2")
2797   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
2798   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2799   PORT_DIPNAME( 0x04, 0x04, "Unknown 3-3" )   PORT_DIPLOCATION("SW3:3")
2800   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
2801   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2802   PORT_DIPNAME( 0x08, 0x08, "Unknown 3-4" )   PORT_DIPLOCATION("SW3:4")
2803   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
2804   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2805   PORT_DIPNAME( 0x10, 0x10, "Unknown 3-5" )   PORT_DIPLOCATION("SW3:5")
2806   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
2807   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2808   PORT_DIPNAME( 0x20, 0x00, "Girl" )          PORT_DIPLOCATION("SW3:6")
2809   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
2810   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2811   PORT_DIPNAME( 0x40, 0x40, "Unknown 3-7" )   PORT_DIPLOCATION("SW3:7")
2812   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
2813   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2814   PORT_DIPNAME( 0x80, 0x80, "Unknown 3-8" )   PORT_DIPLOCATION("SW3:8")
2815   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
2816   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
2817INPUT_PORTS_END
2818
2819
26182820static const ay8910_interface ay8910_config =
26192821{
26202822   AY8910_LEGACY_OUTPUT,
r4406r4407
26262828static MACHINE_DRIVER_START( royalmah )
26272829
26282830   /* basic machine hardware */
2629   MDRV_CPU_ADD("maincpu", Z80, 3000000)        /* 3.00 MHz ? */
2831   MDRV_CPU_ADD("maincpu", Z80, 18432000/6)        /* 3.072 MHz */
26302832   MDRV_CPU_PROGRAM_MAP(royalmah_map,0)
26312833   MDRV_CPU_IO_MAP(royalmah_iomap,0)
26322834   MDRV_CPU_VBLANK_INT("screen", irq0_line_hold)
r4406r4407
26412843   MDRV_SCREEN_ADD("screen", RASTER)
26422844   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
26432845   MDRV_SCREEN_SIZE(256, 256)
2644   MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 255)
2846   MDRV_SCREEN_VISIBLE_AREA(0, 255, 8, 247)
26452847   MDRV_SCREEN_REFRESH_RATE(60)
26462848   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
26472849
r4406r4407
26662868   MDRV_CPU_VBLANK_INT("screen", irq0_line_hold)
26672869MACHINE_DRIVER_END
26682870
2871static MACHINE_DRIVER_START( jansou )
2872   MDRV_IMPORT_FROM(royalmah)
26692873
2874   MDRV_CPU_MODIFY("maincpu")
2875   MDRV_CPU_PROGRAM_MAP(jansou_map,0)
2876
2877   MDRV_CPU_ADD("audiocpu", Z80, 4000000) /* 4.000 MHz */
2878   MDRV_CPU_PROGRAM_MAP(jansou_sub_map,0)
2879   MDRV_CPU_IO_MAP(jansou_sub_iomap,0)
2880   MDRV_CPU_PERIODIC_INT(irq0_line_hold,4000000/512)
2881
2882   MDRV_SOUND_ADD("dac", DAC, 0)
2883   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
2884MACHINE_DRIVER_END
2885
26702886static MACHINE_DRIVER_START( dondenmj )
26712887   MDRV_IMPORT_FROM(royalmah)
26722888   MDRV_CPU_REPLACE("maincpu", Z80, 8000000/2)   /* 4 MHz ? */
r4406r4407
40454261*/
40464262ROM_START( jansou )
40474263   /*Missing main cpu program rom*/
4048   ROM_REGION( 0x10000, "game_prg", 0 )
4264   ROM_REGION( 0x10000, "maincpu", 0 )
40494265   ROM_LOAD( "unk", 0x0000, 0x8000, NO_DUMP )
40504266
40514267   /*These probably hooks up with the main cpu program,they are standard 4bpp bitmaps.*/
40524268   ROM_REGION( 0x20000, "gfx1", 0 )
4053   ROM_LOAD( "2", 0x00000, 0x8000, CRC(fea7f3c6) SHA1(c196be0030b00cfb747b9dbfa387048d20c70b74) )
4054   ROM_LOAD( "3", 0x08000, 0x8000, CRC(75a0bef0) SHA1(c2f5b3ddc55b58d3ea784d8b3d0a0f577d313341) )
4055   ROM_LOAD( "4", 0x10000, 0x8000, CRC(7304899a) SHA1(636b7673563f75ff2ef95eef3b99f80ef0c45fee) )
4056   ROM_LOAD( "5", 0x18000, 0x8000, CRC(57a4d300) SHA1(35d211d50052cd76721dbd6ad02ec7cb56c475d1) )
4269   ROM_LOAD( "3", 0x00000, 0x8000, CRC(75a0bef0) SHA1(c2f5b3ddc55b58d3ea784d8b3d0a0f577d313341) )
4270   ROM_LOAD( "4", 0x08000, 0x8000, CRC(7304899a) SHA1(636b7673563f75ff2ef95eef3b99f80ef0c45fee) )
4271   ROM_LOAD( "5", 0x10000, 0x8000, CRC(57a4d300) SHA1(35d211d50052cd76721dbd6ad02ec7cb56c475d1) )
40574272
40584273   /*this is just a z80 Voice Player (and latches port I/O $00 with the main CPU)*/
4274   ROM_REGION( 0x10000, "audiocpu", 0 )
4275   ROM_LOAD( "1", 0x00000, 0x8000, CRC(0321ac7e) SHA1(1a0372a25f979461db09cd153c15daaa556c3d1f) )
4276   ROM_LOAD( "2", 0x08000, 0x8000, CRC(fea7f3c6) SHA1(c196be0030b00cfb747b9dbfa387048d20c70b74) )
4277
4278   ROM_REGION( 0x0020, "proms", 0 )
4279   ROM_LOAD( "n82s123an", 0x0000, 0x0020, CRC(e9598146) SHA1(619e7eb76cc3e882b5b3e55cdd23fe00b0a1fe45) )
4280ROM_END
4281
4282ROM_START( jansoua )
40594283   ROM_REGION( 0x10000, "maincpu", 0 )
4060   ROM_LOAD( "1", 0x0000, 0x8000, CRC(0321ac7e) SHA1(1a0372a25f979461db09cd153c15daaa556c3d1f) )
4284   ROM_LOAD( "1.bin",   0x0000, 0x1000, CRC(aa66a9fc) SHA1(e2a956f17d294e160e16297866cd9be117254ea4) )
4285   ROM_LOAD( "2.bin",   0x1000, 0x1000, CRC(3b6ef098) SHA1(eda181971153888e63aa14e10b0b199383f2d627) )
4286   ROM_LOAD( "3.bin",   0x2000, 0x1000, CRC(63070d44) SHA1(c9c08f774a94cfb4e291f3d7ef81b0f0f9f74460) )
4287   ROM_LOAD( "4.bin",   0x3000, 0x1000, CRC(2b14d3c1) SHA1(210d6f212bda7fb7225e5606b34f674cc5f85150) )
40614288
4289   ROM_REGION( 0x20000, "gfx1", 0 )
4290   ROM_LOAD( "3s.bin",   0x00000, 0x8000, CRC(64df20f6) SHA1(6cbe4718d47b52c229863219dba3e1f964ba667a) )
4291   ROM_LOAD( "4s.bin",   0x08000, 0x8000, CRC(8ddc8258) SHA1(a97a5efd06965a70e34684986dd8538a35e43d31) )
4292   ROM_LOAD( "5s.bin",   0x10000, 0x8000, CRC(1745c996) SHA1(6905774b4bdd0bfcc34b847efb037f9d92884a6b) )
4293
4294   /*this is just a z80 Voice Player (and latches port I/O $00 with the main CPU)*/
4295   ROM_REGION( 0x10000, "audiocpu", 0 )
4296   ROM_LOAD( "1",   0x00000, 0x8000, CRC(0321ac7e) SHA1(1a0372a25f979461db09cd153c15daaa556c3d1f) )
4297   ROM_LOAD( "2",   0x08000, 0x8000, CRC(fea7f3c6) SHA1(c196be0030b00cfb747b9dbfa387048d20c70b74) )
4298
40624299   ROM_REGION( 0x0020, "proms", 0 )
40634300   ROM_LOAD( "n82s123an", 0x0000, 0x0020, CRC(e9598146) SHA1(619e7eb76cc3e882b5b3e55cdd23fe00b0a1fe45) )
40644301ROM_END
40654302
4303
40664304static DRIVER_INIT( ippatsu )   {   memory_set_bankptr(machine, 1, memory_region(machine, "maincpu") + 0x8000 );   }
40674305
40684306static DRIVER_INIT( janptr96 )
r4406r4407
40734311   memory_set_bankptr(machine, 3,generic_nvram);
40744312}
40754313
4076GAME( 1981,  royalmj,  0,        royalmah, royalmah, 0,        ROT0, "Nichibutsu",                 "Royal Mahjong (Japan, v1.13)",          0 )
4077GAME( 1981?, openmj,   royalmj,  royalmah, royalmah, 0,        ROT0, "Sapporo Mechanic",           "Open Mahjong [BET] (Japan)",            0 )
4078GAME( 1982,  royalmah, royalmj,  royalmah, royalmah, 0,        ROT0, "bootleg",                    "Royal Mahjong (Falcon bootleg, v1.01)", 0 )
4079GAME( 1983,  janyoup2, royalmj,  ippatsu,  janyoup2, 0,        ROT0, "Cosmo Denshi",               "Janyou Part II (ver 7.03, July 1 1983)",0 )
4080GAME( 1984,  janoh,    0,        royalmah, royalmah, 0,        ROT0, "Toaplan",                    "Jan Oh (set 1)",                        GAME_NOT_WORKING )
4081GAME( 1984,  janoha,   janoh,    janoh,    royalmah, 0,        ROT0, "Toaplan",                    "Jan Oh (set 2)",                   GAME_NOT_WORKING ) // this one is complete?
4082GAME( 1985,  jansou,   0,        royalmah, royalmah, 0,       ROT0, "Dyna",                   "Jansou",                         GAME_NOT_WORKING|GAME_NO_SOUND )
4083GAME( 1986,  dondenmj, 0,        dondenmj, majs101b, 0,        ROT0, "Dyna Electronics",           "Don Den Mahjong [BET] (Japan)",         0 )
4084GAME( 1986,  ippatsu,  0,        ippatsu,  ippatsu,  ippatsu,  ROT0, "Public Software / Paradais", "Ippatsu Gyakuten [BET] (Japan)",        0 )
4085GAME( 1986,  suzume,   0,        suzume,   suzume,   0,        ROT0, "Dyna Electronics",           "Watashiha Suzumechan (Japan)",          0 )
4086GAME( 1986,  mjsiyoub, 0,        royalmah, royalmah, 0,       ROT0, "Visco",                      "Mahjong Shiyou (Japan)",             GAME_NOT_WORKING )
4087GAME( 1986,  mjsenka,  0,        royalmah, royalmah, 0,        ROT0, "Visco",                       "Mahjong Senka (Japan)",              GAME_NOT_WORKING )
4088GAME( 1986,  mjyarou,  0,        royalmah, royalmah, 0,        ROT0, "Visco / Video System",         "Mahjong Yarou [BET] (Japan)",         GAME_NOT_WORKING )
4089GAME( 1986?, mjclub,   0,        mjclub,   mjclub,   0,        ROT0, "Xex",                         "Mahjong Club [BET] (Japan)",         0 )
4090GAME( 1987,  mjdiplob, 0,        mjdiplob, mjdiplob, 0,        ROT0, "Dynax",                      "Mahjong Diplomat [BET] (Japan)",        0 )
4091GAME( 1987,  tontonb,  0,        tontonb,  tontonb,  0,        ROT0, "Dynax",                      "Tonton [BET] (Japan)",                  0 )
4092GAME( 1987,  makaijan, 0,        makaijan, makaijan, 0,        ROT0, "Dynax",                      "Makaijan [BET] (Japan)",                0 )
4093GAME( 1988,  majs101b, 0,        majs101b, majs101b, 0,        ROT0, "Dynax",                      "Mahjong Studio 101 [BET] (Japan)",      0 )
4094GAME( 1988,  mjapinky, 0,        mjapinky, mjapinky, 0,        ROT0, "Dynax",                      "Almond Pinky [BET] (Japan)",            0 )
4095GAME( 1989,  mjdejavu, 0,        mjdejavu, mjdejavu, 0,        ROT0, "Dynax",                      "Mahjong Shinkirou Deja Vu (Japan)",     0 )
4096GAME( 1989,  mjdejav2, mjdejavu, mjdejavu, mjdejavu, 0,        ROT0, "Dynax",                      "Mahjong Shinkirou Deja Vu 2 (Japan)",   0 )
4097GAME( 1989,  mjderngr, 0,        mjderngr, majs101b, 0,        ROT0, "Dynax",                      "Mahjong Derringer (Japan)",             0 )
4098GAME( 1989,  daisyari, 0,        daisyari, daisyari, 0,        ROT0, "Best System",                "Daisyarin [BET] (Japan)",               0 )
4099GAME( 1990,  mjifb,    0,        mjifb,    mjifb,    0,        ROT0, "Dynax",                      "Mahjong If...? [BET]",                  0 )
4100GAME( 1990,  mjifb2,   mjifb,    mjifb,    mjifb,    0,        ROT0, "Dynax",                      "Mahjong If...? [BET](2921)",            0 )
4101GAME( 1990,  mjifb3,   mjifb,    mjifb,    mjifb,    0,        ROT0, "Dynax",                      "Mahjong If...? [BET](2931)",            0 )
4102GAME( 1991,  mjvegas,  0,        mjifb,    mjifb,    0,        ROT0, "Dynax",                      "Mahjong Vegas (Japan)",                 GAME_NOT_WORKING )
4103GAME( 1992,  cafetime, 0,        cafetime, cafetime, 0,        ROT0, "Dynax",                      "Mahjong Cafe Time",                     0 )
4104GAME( 1993,  cafedoll, 0,        mjifb,    mjifb,    0,        ROT0, "Dynax",                      "Mahjong Cafe Doll (Japan)",             GAME_NOT_WORKING )
4105GAME( 1995,  mjtensin, 0,        mjtensin, mjtensin, 0,        ROT0, "Dynax",                      "Mahjong Tensinhai (Japan)",             GAME_NOT_WORKING )
4106GAME( 1996,  janptr96, 0,        janptr96, janptr96, janptr96, ROT0, "Dynax",                      "Janputer '96 (Japan)",                  0 )
4107GAME( 1999,  cafebrk,  0,        mjifb,    mjifb,    0,        ROT0, "Nakanihon / Dynax",          "Mahjong Cafe Break",                    GAME_NOT_WORKING )
4314GAME( 1981,  royalmj,  0,        royalmah, royalmah, 0,        ROT0,   "Nichibutsu",                 "Royal Mahjong (Japan, v1.13)",          0 )
4315GAME( 1981?, openmj,   royalmj,  royalmah, royalmah, 0,        ROT0,   "Sapporo Mechanic",           "Open Mahjong [BET] (Japan)",            0 )
4316GAME( 1982,  royalmah, royalmj,  royalmah, royalmah, 0,        ROT0,   "bootleg",                    "Royal Mahjong (Falcon bootleg, v1.01)", 0 )
4317GAME( 1983,  janyoup2, royalmj,  ippatsu,  janyoup2, 0,        ROT0,   "Cosmo Denshi",               "Janyou Part II (ver 7.03, July 1 1983)",0 )
4318GAME( 1984,  janoh,    0,        royalmah, royalmah, 0,        ROT0,   "Toaplan",                    "Jan Oh (set 1)",                        GAME_NOT_WORKING )
4319GAME( 1984,  janoha,   janoh,    janoh,    royalmah, 0,        ROT0,   "Toaplan",                    "Jan Oh (set 2)",                        GAME_NOT_WORKING ) // this one is complete?
4320GAME( 1985,  jansou,   0,        jansou,   jansou,   0,        ROT180, "Dyna",                       "Jansou (set 1)",                        GAME_NOT_WORKING|GAME_NO_SOUND )
4321GAME( 1985,  jansoua,  jansou,   jansou,   jansou,   0,        ROT180, "Dyna",                       "Jansou (set 2)",                        0 )
4322GAME( 1986,  dondenmj, 0,        dondenmj, majs101b, 0,        ROT0,   "Dyna Electronics",           "Don Den Mahjong [BET] (Japan)",         0 )
4323GAME( 1986,  ippatsu,  0,        ippatsu,  ippatsu,  ippatsu,  ROT0,   "Public Software / Paradais", "Ippatsu Gyakuten [BET] (Japan)",        0 )
4324GAME( 1986,  suzume,   0,        suzume,   suzume,   0,        ROT0,   "Dyna Electronics",           "Watashiha Suzumechan (Japan)",          0 )
4325GAME( 1986,  mjsiyoub, 0,        royalmah, royalmah, 0,        ROT0,   "Visco",                      "Mahjong Shiyou (Japan)",                GAME_NOT_WORKING )
4326GAME( 1986,  mjsenka,  0,        royalmah, royalmah, 0,        ROT0,   "Visco",                      "Mahjong Senka (Japan)",                 GAME_NOT_WORKING )
4327GAME( 1986,  mjyarou,  0,        royalmah, royalmah, 0,        ROT0,   "Visco / Video System",       "Mahjong Yarou [BET] (Japan)",           GAME_NOT_WORKING )
4328GAME( 1986?, mjclub,   0,        mjclub,   mjclub,   0,        ROT0,   "Xex",                        "Mahjong Club [BET] (Japan)",            0 )
4329GAME( 1987,  mjdiplob, 0,        mjdiplob, mjdiplob, 0,        ROT0,   "Dynax",                      "Mahjong Diplomat [BET] (Japan)",        0 )
4330GAME( 1987,  tontonb,  0,        tontonb,  tontonb,  0,        ROT0,   "Dynax",                      "Tonton [BET] (Japan set 1)",            0 )
4331GAME( 1987,  makaijan, 0,        makaijan, makaijan, 0,        ROT0,   "Dynax",                      "Makaijan [BET] (Japan)",                0 )
4332GAME( 1988,  majs101b, 0,        majs101b, majs101b, 0,        ROT0,   "Dynax",                      "Mahjong Studio 101 [BET] (Japan)",      0 )
4333GAME( 1988,  mjapinky, 0,        mjapinky, mjapinky, 0,        ROT0,   "Dynax",                      "Almond Pinky [BET] (Japan)",            0 )
4334GAME( 1989,  mjdejavu, 0,        mjdejavu, mjdejavu, 0,        ROT0,   "Dynax",                      "Mahjong Shinkirou Deja Vu (Japan)",     0 )
4335GAME( 1989,  mjdejav2, mjdejavu, mjdejavu, mjdejavu, 0,        ROT0,   "Dynax",                      "Mahjong Shinkirou Deja Vu 2 (Japan)",   0 )
4336GAME( 1989,  mjderngr, 0,        mjderngr, majs101b, 0,        ROT0,   "Dynax",                      "Mahjong Derringer (Japan)",             0 )
4337GAME( 1989,  daisyari, 0,        daisyari, daisyari, 0,        ROT0,   "Best System",                "Daisyarin [BET] (Japan)",               0 )
4338GAME( 1990,  mjifb,    0,        mjifb,    mjifb,    0,        ROT0,   "Dynax",                      "Mahjong If...? [BET]",                  0 )
4339GAME( 1990,  mjifb2,   mjifb,    mjifb,    mjifb,    0,        ROT0,   "Dynax",                      "Mahjong If...? [BET](2921)",            0 )
4340GAME( 1990,  mjifb3,   mjifb,    mjifb,    mjifb,    0,        ROT0,   "Dynax",                      "Mahjong If...? [BET](2931)",            0 )
4341GAME( 1991,  mjvegas,  0,        mjifb,    mjifb,    0,        ROT0,   "Dynax",                      "Mahjong Vegas (Japan)",                 GAME_NOT_WORKING )
4342GAME( 1992,  cafetime, 0,        cafetime, cafetime, 0,        ROT0,   "Dynax",                      "Mahjong Cafe Time",                     0 )
4343GAME( 1993,  cafedoll, 0,        mjifb,    mjifb,    0,        ROT0,   "Dynax",                      "Mahjong Cafe Doll (Japan)",             GAME_NOT_WORKING )
4344GAME( 1995,  mjtensin, 0,        mjtensin, mjtensin, 0,        ROT0,   "Dynax",                      "Mahjong Tensinhai (Japan)",             GAME_NOT_WORKING )
4345GAME( 1996,  janptr96, 0,        janptr96, janptr96, janptr96, ROT0,   "Dynax",                      "Janputer '96 (Japan)",                  0 )
4346GAME( 1999,  cafebrk,  0,        mjifb,    mjifb,    0,        ROT0,   "Nakanihon / Dynax",          "Mahjong Cafe Break",                    GAME_NOT_WORKING )
src/mame/drivers/tutankhm.c
r4406r4407
274274*/
275275
276276ROM_START( tutankhm )
277    /* ROMS located on the  KT-3203-1B board. */
277278   ROM_REGION( 0x20000, "maincpu", 0 )      /* 64k for M6809 CPU code + 64k for ROM banks */
278   ROM_LOAD( "h1.bin",       0x0a000, 0x1000, CRC(da18679f) SHA1(8d2a3665db937d0e1d19300ae22277d9db61fcbc) ) /* program ROMs */
279   ROM_LOAD( "h2.bin",       0x0b000, 0x1000, CRC(a0f02c85) SHA1(29a78b3ffd6b597772953543b02dd59acf5af38c) )
280   ROM_LOAD( "h3.bin",       0x0c000, 0x1000, CRC(ea03a1ab) SHA1(27a3cca0595bac642caaf9ee2f276814442c8721) )
281   ROM_LOAD( "h4.bin",       0x0d000, 0x1000, CRC(bd06fad0) SHA1(bd10bbb413d8dd362072522e902575d819fa8336) )
282   ROM_LOAD( "h5.bin",       0x0e000, 0x1000, CRC(bf9fd9b0) SHA1(458ea2ff5eedaaa02e32444dd6004d2eaadbdeab) )
283   ROM_LOAD( "h6.bin",       0x0f000, 0x1000, CRC(fe079c5b) SHA1(0757490aaa1cea4f4bbe1230d811a0d917f59e52) )
284   ROM_LOAD( "j1.bin",       0x10000, 0x1000, CRC(7eb59b21) SHA1(664d3e08df0f3d6690838810b6fe273eec3b7821) ) /* graphic ROMs (banked) -- only 9 of 12 are filled */
285   ROM_LOAD( "j2.bin",       0x11000, 0x1000, CRC(6615eff3) SHA1(e8455eab03f66642880595cfa0e9be285bf9fad0) )
286   ROM_LOAD( "j3.bin",       0x12000, 0x1000, CRC(a10d4444) SHA1(683899e1014ee075b16d9d2610c3c5b5c4efedb6) )
287   ROM_LOAD( "j4.bin",       0x13000, 0x1000, CRC(58cd143c) SHA1(e4ab27c09858cede478f4ed3ac6d7392e383a470) )
288   ROM_LOAD( "j5.bin",       0x14000, 0x1000, CRC(d7e7ae95) SHA1(7068797770a6c42dc733b253bf6b7376eb6e071e) )
289   ROM_LOAD( "j6.bin",       0x15000, 0x1000, CRC(91f62b82) SHA1(2a78039ee63226978544142727d00d1ccc6d2ab4) )
290   ROM_LOAD( "j7.bin",       0x16000, 0x1000, CRC(afd0a81f) SHA1(cf10308a0fa4ffabd0deeb186b5602468028ff92) )
291   ROM_LOAD( "j8.bin",       0x17000, 0x1000, CRC(dabb609b) SHA1(773b99b670db41a9de58d14b51f81ce0c446ca84) )
292   ROM_LOAD( "j9.bin",       0x18000, 0x1000, CRC(8ea9c6a6) SHA1(fe1b299f8760fc5418179d3569932ee2c4dff461) )
279   ROM_LOAD( "m1.1h", 0x0a000, 0x1000, CRC(da18679f) SHA1(8d2a3665db937d0e1d19300ae22277d9db61fcbc) ) /* program ROMs */
280   ROM_LOAD( "m2.2h", 0x0b000, 0x1000, CRC(a0f02c85) SHA1(29a78b3ffd6b597772953543b02dd59acf5af38c) )
281   ROM_LOAD( "3j.3h", 0x0c000, 0x1000, CRC(ea03a1ab) SHA1(27a3cca0595bac642caaf9ee2f276814442c8721) ) /* Name guessed */
282   ROM_LOAD( "m4.4h", 0x0d000, 0x1000, CRC(bd06fad0) SHA1(bd10bbb413d8dd362072522e902575d819fa8336) )
283   ROM_LOAD( "m5.5h", 0x0e000, 0x1000, CRC(bf9fd9b0) SHA1(458ea2ff5eedaaa02e32444dd6004d2eaadbdeab) )
284   ROM_LOAD( "j6.6h", 0x0f000, 0x1000, CRC(fe079c5b) SHA1(0757490aaa1cea4f4bbe1230d811a0d917f59e52) ) /* Name guessed */
285   ROM_LOAD( "c1.1i", 0x10000, 0x1000, CRC(7eb59b21) SHA1(664d3e08df0f3d6690838810b6fe273eec3b7821) ) /* graphic ROMs (banked) -- only 9 of 12 are filled */
286   ROM_LOAD( "c2.2i", 0x11000, 0x1000, CRC(6615eff3) SHA1(e8455eab03f66642880595cfa0e9be285bf9fad0) )
287   ROM_LOAD( "c3.3i", 0x12000, 0x1000, CRC(a10d4444) SHA1(683899e1014ee075b16d9d2610c3c5b5c4efedb6) )
288   ROM_LOAD( "c4.4i", 0x13000, 0x1000, CRC(58cd143c) SHA1(e4ab27c09858cede478f4ed3ac6d7392e383a470) )
289   ROM_LOAD( "c5.5i", 0x14000, 0x1000, CRC(d7e7ae95) SHA1(7068797770a6c42dc733b253bf6b7376eb6e071e) )
290   ROM_LOAD( "c6.6i", 0x15000, 0x1000, CRC(91f62b82) SHA1(2a78039ee63226978544142727d00d1ccc6d2ab4) )
291   ROM_LOAD( "c7.7i", 0x16000, 0x1000, CRC(afd0a81f) SHA1(cf10308a0fa4ffabd0deeb186b5602468028ff92) )
292   ROM_LOAD( "c8.8i", 0x17000, 0x1000, CRC(dabb609b) SHA1(773b99b670db41a9de58d14b51f81ce0c446ca84) )
293   ROM_LOAD( "c9.9i", 0x18000, 0x1000, CRC(8ea9c6a6) SHA1(fe1b299f8760fc5418179d3569932ee2c4dff461) )
293294   /* the other banks (1900-1fff) are empty */
294295
296    /* ROMS located on the KT-5112-2B board. */
295297   ROM_REGION(  0x10000 , "tpsound", 0 ) /* 64k for Z80 sound CPU code */
296   ROM_LOAD( "11-7a.bin",    0x0000, 0x1000, CRC(b52d01fa) SHA1(9b6cf9ea51d3a87c174f34d42a4b1b5f38b48723) )
297   ROM_LOAD( "10-8a.bin",    0x1000, 0x1000, CRC(9db5c0ce) SHA1(b5bc1d89a7f7d7a0baae64390c37ee11f69a0e76) )
298   ROM_LOAD( "s1.7a", 0x0000, 0x1000, CRC(b52d01fa) SHA1(9b6cf9ea51d3a87c174f34d42a4b1b5f38b48723) )
299   ROM_LOAD( "s2.8a", 0x1000, 0x1000, CRC(9db5c0ce) SHA1(b5bc1d89a7f7d7a0baae64390c37ee11f69a0e76) )
298300ROM_END
299301
300302
301303ROM_START( tutankst )
304    /* ROMS located on the KT-3203-1B board. */
302305   ROM_REGION( 0x20000, "maincpu", 0 )      /* 64k for M6809 CPU code + 64k for ROM banks */
303   ROM_LOAD( "h1.bin",       0x0a000, 0x1000, CRC(da18679f) SHA1(8d2a3665db937d0e1d19300ae22277d9db61fcbc) ) /* program ROMs */
304   ROM_LOAD( "h2.bin",       0x0b000, 0x1000, CRC(a0f02c85) SHA1(29a78b3ffd6b597772953543b02dd59acf5af38c) )
305   ROM_LOAD( "ra1_3h.cpu",   0x0c000, 0x1000, CRC(2d62d7b1) SHA1(910718f36735f2614cda0c3a1abdfa995d82dbd2) )
306   ROM_LOAD( "h4.bin",       0x0d000, 0x1000, CRC(bd06fad0) SHA1(bd10bbb413d8dd362072522e902575d819fa8336) )
307   ROM_LOAD( "h5.bin",       0x0e000, 0x1000, CRC(bf9fd9b0) SHA1(458ea2ff5eedaaa02e32444dd6004d2eaadbdeab) )
308   ROM_LOAD( "ra1_6h.cpu",   0x0f000, 0x1000, CRC(c43b3865) SHA1(3112cf831c5b6318337e591ccb0003aeab722652) )
309   ROM_LOAD( "j1.bin",       0x10000, 0x1000, CRC(7eb59b21) SHA1(664d3e08df0f3d6690838810b6fe273eec3b7821) ) /* graphic ROMs (banked) -- only 9 of 12 are filled */
310   ROM_LOAD( "j2.bin",       0x11000, 0x1000, CRC(6615eff3) SHA1(e8455eab03f66642880595cfa0e9be285bf9fad0) )
311   ROM_LOAD( "j3.bin",       0x12000, 0x1000, CRC(a10d4444) SHA1(683899e1014ee075b16d9d2610c3c5b5c4efedb6) )
312   ROM_LOAD( "j4.bin",       0x13000, 0x1000, CRC(58cd143c) SHA1(e4ab27c09858cede478f4ed3ac6d7392e383a470) )
313   ROM_LOAD( "j5.bin",       0x14000, 0x1000, CRC(d7e7ae95) SHA1(7068797770a6c42dc733b253bf6b7376eb6e071e) )
314   ROM_LOAD( "j6.bin",       0x15000, 0x1000, CRC(91f62b82) SHA1(2a78039ee63226978544142727d00d1ccc6d2ab4) )
315   ROM_LOAD( "j7.bin",       0x16000, 0x1000, CRC(afd0a81f) SHA1(cf10308a0fa4ffabd0deeb186b5602468028ff92) )
316   ROM_LOAD( "j8.bin",       0x17000, 0x1000, CRC(dabb609b) SHA1(773b99b670db41a9de58d14b51f81ce0c446ca84) )
317   ROM_LOAD( "j9.bin",       0x18000, 0x1000, CRC(8ea9c6a6) SHA1(fe1b299f8760fc5418179d3569932ee2c4dff461) )
306   ROM_LOAD( "m1.1h", 0x0a000, 0x1000, CRC(da18679f) SHA1(8d2a3665db937d0e1d19300ae22277d9db61fcbc) ) /* program ROMs */
307   ROM_LOAD( "m2.2h", 0x0b000, 0x1000, CRC(a0f02c85) SHA1(29a78b3ffd6b597772953543b02dd59acf5af38c) )
308   ROM_LOAD( "3a.3h", 0x0c000, 0x1000, CRC(2d62d7b1) SHA1(910718f36735f2614cda0c3a1abdfa995d82dbd2) )
309   ROM_LOAD( "m4.4h", 0x0d000, 0x1000, CRC(bd06fad0) SHA1(bd10bbb413d8dd362072522e902575d819fa8336) )
310   ROM_LOAD( "m5.5h", 0x0e000, 0x1000, CRC(bf9fd9b0) SHA1(458ea2ff5eedaaa02e32444dd6004d2eaadbdeab) )
311   ROM_LOAD( "a6.6h", 0x0f000, 0x1000, CRC(c43b3865) SHA1(3112cf831c5b6318337e591ccb0003aeab722652) )
312   ROM_LOAD( "c1.1i", 0x10000, 0x1000, CRC(7eb59b21) SHA1(664d3e08df0f3d6690838810b6fe273eec3b7821) ) /* graphic ROMs (banked) -- only 9 of 12 are filled */
313   ROM_LOAD( "c2.2i", 0x11000, 0x1000, CRC(6615eff3) SHA1(e8455eab03f66642880595cfa0e9be285bf9fad0) )
314   ROM_LOAD( "c3.3i", 0x12000, 0x1000, CRC(a10d4444) SHA1(683899e1014ee075b16d9d2610c3c5b5c4efedb6) )
315   ROM_LOAD( "c4.4i", 0x13000, 0x1000, CRC(58cd143c) SHA1(e4ab27c09858cede478f4ed3ac6d7392e383a470) )
316   ROM_LOAD( "c5.5i", 0x14000, 0x1000, CRC(d7e7ae95) SHA1(7068797770a6c42dc733b253bf6b7376eb6e071e) )
317   ROM_LOAD( "c6.6i", 0x15000, 0x1000, CRC(91f62b82) SHA1(2a78039ee63226978544142727d00d1ccc6d2ab4) )
318   ROM_LOAD( "c7.7i", 0x16000, 0x1000, CRC(afd0a81f) SHA1(cf10308a0fa4ffabd0deeb186b5602468028ff92) )
319   ROM_LOAD( "c8.8i", 0x17000, 0x1000, CRC(dabb609b) SHA1(773b99b670db41a9de58d14b51f81ce0c446ca84) )
320   ROM_LOAD( "c9.9i", 0x18000, 0x1000, CRC(8ea9c6a6) SHA1(fe1b299f8760fc5418179d3569932ee2c4dff461) )
318321   /* the other banks (1900-1fff) are empty */
319322
320   ROM_REGION(  0x10000 , "tpsound", 0 ) /* 64k for Z80 sound CPU code */
321   ROM_LOAD( "11-7a.bin",    0x0000, 0x1000, CRC(b52d01fa) SHA1(9b6cf9ea51d3a87c174f34d42a4b1b5f38b48723) )
322   ROM_LOAD( "10-8a.bin",    0x1000, 0x1000, CRC(9db5c0ce) SHA1(b5bc1d89a7f7d7a0baae64390c37ee11f69a0e76) )
323    /* ROMS located on the KT-5112-2B board. */
324   ROM_REGION(  0x10000, "tpsound", 0 ) /* 64k for Z80 sound CPU code */
325   ROM_LOAD( "s1.7a", 0x0000, 0x1000, CRC(b52d01fa) SHA1(9b6cf9ea51d3a87c174f34d42a4b1b5f38b48723) )
326   ROM_LOAD( "s2.8a", 0x1000, 0x1000, CRC(9db5c0ce) SHA1(b5bc1d89a7f7d7a0baae64390c37ee11f69a0e76) )
323327ROM_END
324328
325329
src/emu/cpu/tms57002/tms57002.c
r4406r4407
9797
9898   UINT32 xm_adr;
9999
100   UINT8 host[4], hidx;
100   UINT8 host[4], hidx, allow_update;
101101
102102   cd cache;
103103
r4406r4407
275275            UINT32 val = (s->host[0]<<24) | (s->host[1]<<16) | (s->host[2]<<8) | s->host[3];
276276            s->cmem[s->sa] = val;
277277            s->sti &= ~SU_CVAL;
278            s->allow_update = 0;
278279         }
279280      } else {
280281         s->sa = data;
r4406r4407
329330   if(s->sti & (IN_PLOAD | IN_CLOAD))
330331      return;
331332
333   s->allow_update = 1;
332334   s->pc = 0;
333335   s->ca = 0;
334336   s->id = 0;
src/emu/cpu/tms57002/tmsinstr.lst
r4406r4407
441441
442442sfml 1  34 1 y
443443  sfml
444  s->macc = (s->macc & 0x8000000000000ULL) | ((s->macc << 1) & 0x7ffffffffffffULL);
444445
445446sfmo 2a 60 1 n f
446447  sfmo 0
r4406r4407
471472
472473smhc 2a 05 1 y
473474  smhc %c
475  %wc(%mo >> 16);
474476
475477smhd 2a 03 1 y
476478  smhd %d
src/emu/cpu/drcfe.c
r4406r4407
6060   const address_space *program;               /* program address space for this CPU */
6161   offs_t            pageshift;               /* shift to convert address to a page index */
6262   cpu_translate_func   translate;               /* pointer to translation function */
63   offs_t            codexor;               /* XOR to reach code */
6463
6564   /* opcode descriptor arrays */
6665   opcode_desc *      desc_live_list;            /* head of list of live descriptions */
r4406r4407
148147   drcfe->program = memory_find_address_space(cpu, ADDRESS_SPACE_PROGRAM);
149148   drcfe->pageshift = cpu_get_page_shift(cpu, ADDRESS_SPACE_PROGRAM);
150149   drcfe->translate = (cpu_translate_func)device_get_info_fct(cpu, CPUINFO_FCT_TRANSLATE);
151   if (cpu_get_endianness(cpu) != ENDIANNESS_NATIVE)
152      drcfe->codexor = (cpu_get_databus_width(cpu, ADDRESS_SPACE_PROGRAM) / 8 / cpu_get_min_opcode_bytes(cpu) - 1) * cpu_get_min_opcode_bytes(cpu);
153150
154151   return drcfe;
155152}
src/emu/cpu/powerpc/ppcdrc.c
r4406r4407
764764static CPU_SET_INFO( ppcdrc )
765765{
766766   powerpc_state *ppc = *(powerpc_state **)device->token;
767   switch (state)
768   {
769      /* --- the following bits of info are set as 64-bit signed integers --- */
770      case CPUINFO_INT_PPC_DRC_OPTIONS:            ppc->impstate->drcoptions = info->i;            break;
771767
772      case CPUINFO_INT_PPC_FASTRAM_SELECT:         if (info->i >= 0 && info->i < PPC_MAX_FASTRAM) ppc->impstate->fastram_select = info->i; ppc->impstate->cache_dirty = TRUE; break;
773      case CPUINFO_INT_PPC_FASTRAM_START:            ppc->impstate->fastram[ppc->impstate->fastram_select].start = info->i; ppc->impstate->cache_dirty = TRUE; break;
774      case CPUINFO_INT_PPC_FASTRAM_END:            ppc->impstate->fastram[ppc->impstate->fastram_select].end = info->i; ppc->impstate->cache_dirty = TRUE; break;
775      case CPUINFO_INT_PPC_FASTRAM_READONLY:         ppc->impstate->fastram[ppc->impstate->fastram_select].readonly = info->i; ppc->impstate->cache_dirty = TRUE; break;
776
777      case CPUINFO_INT_PPC_HOTSPOT_SELECT:         if (info->i >= 0 && info->i < PPC_MAX_HOTSPOTS) ppc->impstate->hotspot_select = info->i; ppc->impstate->cache_dirty = TRUE; break;
778      case CPUINFO_INT_PPC_HOTSPOT_PC:            ppc->impstate->hotspot[ppc->impstate->hotspot_select].pc = info->i; ppc->impstate->cache_dirty = TRUE; break;
779      case CPUINFO_INT_PPC_HOTSPOT_OPCODE:         ppc->impstate->hotspot[ppc->impstate->hotspot_select].opcode = info->i; ppc->impstate->cache_dirty = TRUE; break;
780      case CPUINFO_INT_PPC_HOTSPOT_CYCLES:         ppc->impstate->hotspot[ppc->impstate->hotspot_select].cycles = info->i; ppc->impstate->cache_dirty = TRUE; break;
781
782      /* --- the following bits of info are set as pointers to data or functions --- */
783      case CPUINFO_PTR_PPC_FASTRAM_BASE:            ppc->impstate->fastram[ppc->impstate->fastram_select].base = info->p;   break;
784
785      /* --- everything else is handled generically --- */
786      default:                              ppccom_set_info(ppc, state, info);   break;
787   }
768   /* --- everything is handled generically --- */
769   ppccom_set_info(ppc, state, info);
788770}
789771
790772
r4406r4407
820802}
821803
822804
805/*-------------------------------------------------
806    ppcdrc_set_options - configure DRC options
807-------------------------------------------------*/
823808
809void ppcdrc_set_options(const device_config *device, UINT32 options)
810{
811   powerpc_state *ppc = *(powerpc_state **)device->token;
812   ppc->impstate->drcoptions = options;
813}
814
815
816/*-------------------------------------------------
817    ppcdrc_add_fastram - add a new fastram
818    region
819-------------------------------------------------*/
820
821void ppcdrc_add_fastram(const device_config *device, offs_t start, offs_t end, UINT8 readonly, void *base)
822{
823   powerpc_state *ppc = *(powerpc_state **)device->token;
824   if (ppc->impstate->fastram_select < ARRAY_LENGTH(ppc->impstate->fastram))
825   {
826      ppc->impstate->fastram[ppc->impstate->fastram_select].start = start;
827      ppc->impstate->fastram[ppc->impstate->fastram_select].end = end;
828      ppc->impstate->fastram[ppc->impstate->fastram_select].readonly = readonly;
829      ppc->impstate->fastram[ppc->impstate->fastram_select].base = base;
830      ppc->impstate->fastram_select++;
831   }
832}
833
834
835/*-------------------------------------------------
836    ppcdrc_add_hotspot - add a new hotspot
837-------------------------------------------------*/
838
839void ppcdrc_add_hotspot(const device_config *device, offs_t pc, UINT32 opcode, UINT32 cycles)
840{
841   powerpc_state *ppc = *(powerpc_state **)device->token;
842   if (ppc->impstate->hotspot_select < ARRAY_LENGTH(ppc->impstate->hotspot))
843   {
844      ppc->impstate->hotspot[ppc->impstate->hotspot_select].pc = pc;
845      ppc->impstate->hotspot[ppc->impstate->hotspot_select].opcode = opcode;
846      ppc->impstate->hotspot[ppc->impstate->hotspot_select].cycles = cycles;
847      ppc->impstate->hotspot_select++;
848   }
849}
850
851
852
824853/***************************************************************************
825854    CACHE MANAGEMENT
826855***************************************************************************/
src/emu/cpu/powerpc/ppccom.c
r4406r4407
200200   ppc->program = memory_find_address_space(device, ADDRESS_SPACE_PROGRAM);
201201   ppc->system_clock = (config != NULL) ? config->bus_frequency : device->clock;
202202   ppc->tb_divisor = (ppc->tb_divisor * device->clock + ppc->system_clock / 2 - 1) / ppc->system_clock;
203   ppc->codexor = 0;
204   if (!(cap & PPCCAP_4XX) && cpu_get_endianness(device) != ENDIANNESS_NATIVE)
205      ppc->codexor = 4;
203206
204207   /* allocate the virtual TLB */
205208   ppc->vtlb = vtlb_alloc(device, ADDRESS_SPACE_PROGRAM, (cap & PPCCAP_603_MMU) ? PPC603_FIXED_TLB_ENTRIES : 0, POWERPC_TLB_ENTRIES);
r4406r4407
18121815
18131816
18141817/*-------------------------------------------------
1818    ppc4xx_spu_set_tx_handler - PowerPC 4XX-
1819    specific TX handler configuration
1820-------------------------------------------------*/
1821
1822void ppc4xx_spu_set_tx_handler(const device_config *device, ppc4xx_spu_tx_handler handler)
1823{
1824   powerpc_state *ppc = *(powerpc_state **)device->token;
1825   ppc->spu.tx_handler = handler;
1826}
1827
1828
1829/*-------------------------------------------------
1830    ppc4xx_spu_receive_byte - PowerPC 4XX-
1831    specific serial byte receive
1832-------------------------------------------------*/
1833
1834void ppc4xx_spu_receive_byte(const device_config *device, UINT8 byteval)
1835{
1836   powerpc_state *ppc = *(powerpc_state **)device->token;
1837   ppc4xx_spu_rx_data(ppc, byteval);
1838}
1839
1840
1841/*-------------------------------------------------
18151842    ppc4xx_set_info - PowerPC 4XX-specific
18161843    information setter
18171844-------------------------------------------------*/
r4406r4407
18261853      case CPUINFO_INT_INPUT_STATE + PPC_IRQ_LINE_2:   ppc4xx_set_irq_line(ppc, PPC4XX_IRQ_BIT_EXT2, info->i);      break;
18271854      case CPUINFO_INT_INPUT_STATE + PPC_IRQ_LINE_3:   ppc4xx_set_irq_line(ppc, PPC4XX_IRQ_BIT_EXT3, info->i);      break;
18281855      case CPUINFO_INT_INPUT_STATE + PPC_IRQ_LINE_4:   ppc4xx_set_irq_line(ppc, PPC4XX_IRQ_BIT_EXT4, info->i);      break;
1829      case CPUINFO_INT_PPC_RX_DATA:               ppc4xx_spu_rx_data(ppc, info->i);               break;
18301856
1831      /* --- the following bits of info are returned as pointers to data or functions --- */
1832      case CPUINFO_FCT_SPU_TX_HANDLER:            ppc->spu.tx_handler = (ppc4xx_spu_tx_handler)info->f; break;
1833
18341857      /* --- everything else is handled generically --- */
18351858      default:                              ppccom_set_info(ppc, state, info);      break;
18361859   }
src/emu/cpu/powerpc/ppccom.h
r4406r4407
555555   cpu_irq_callback irq_callback;
556556   const device_config *device;
557557   const address_space *program;
558   offs_t         codexor;
558559   UINT32         irq_pending;
559560   UINT32         system_clock;
560561   UINT32         cpu_clock;
src/emu/cpu/powerpc/ppc.h
r4406r4407
9595};
9696
9797
98/* interface extensions */
99enum
100{
101   CPUINFO_INT_PPC_DRC_OPTIONS = CPUINFO_INT_CPU_SPECIFIC,
102
103   CPUINFO_INT_PPC_FASTRAM_SELECT,
104   CPUINFO_INT_PPC_FASTRAM_START,
105   CPUINFO_INT_PPC_FASTRAM_END,
106   CPUINFO_INT_PPC_FASTRAM_READONLY,
107
108   CPUINFO_INT_PPC_HOTSPOT_SELECT,
109   CPUINFO_INT_PPC_HOTSPOT_PC,
110   CPUINFO_INT_PPC_HOTSPOT_OPCODE,
111   CPUINFO_INT_PPC_HOTSPOT_CYCLES,
112
113   CPUINFO_INT_PPC_RX_DATA,
114
115   CPUINFO_PTR_PPC_FASTRAM_BASE = CPUINFO_PTR_CPU_SPECIFIC,
116
117   CPUINFO_FCT_SPU_TX_HANDLER = CPUINFO_FCT_CPU_SPECIFIC
118};
119
120
12198/* compiler-specific options */
12299#define PPCDRC_STRICT_VERIFY      0x0001         /* verify all instructions */
123100#define PPCDRC_FLUSH_PC            0x0002         /* flush the PC value before each memory access */
r4406r4407
148125    PUBLIC FUNCTIONS
149126***************************************************************************/
150127
128void ppcdrc_set_options(const device_config *device, UINT32 options);
129void ppcdrc_add_fastram(const device_config *device, offs_t start, offs_t end, UINT8 readonly, void *base);
130void ppcdrc_add_hotspot(const device_config *device, offs_t pc, UINT32 opcode, UINT32 cycles);
131
132void ppc4xx_spu_set_tx_handler(const device_config *device, ppc4xx_spu_tx_handler handler);
133void ppc4xx_spu_receive_byte(const device_config *device, UINT8 byteval);
134
135
151136CPU_GET_INFO( ppc403ga );
152137#define CPU_PPC403GA CPU_GET_INFO_NAME( ppc403ga )
153138
r4406r4407
176161#define CPU_MPC8240 CPU_GET_INFO_NAME( mpc8240 )
177162
178163
179
180/***************************************************************************
181    INLINE FUNCTIONS
182***************************************************************************/
183
184INLINE void ppc4xx_spu_set_tx_handler(const device_config *cpu, ppc4xx_spu_tx_handler handler)
185{
186   device_set_info_fct(cpu, CPUINFO_FCT_SPU_TX_HANDLER, (genf *)handler);
187}
188
189
190INLINE void ppc4xx_spu_receive_byte(const device_config *cpu, UINT8 byteval)
191{
192   device_set_info_int(cpu, CPUINFO_INT_PPC_RX_DATA, byteval);
193}
194
195
196
197164#endif   /* __PPC_H__ */
src/emu/cpu/powerpc/ppcfe.c
r4406r4407
143143   }
144144
145145   /* fetch the opcode */
146   op = desc->opptr.l[0] = memory_decrypted_read_dword(ppc->program, desc->physpc);
146   op = desc->opptr.l[0] = memory_decrypted_read_dword(ppc->program, desc->physpc ^ ppc->codexor);
147147
148148   /* all instructions are 4 bytes and default to a single cycle each */
149149   desc->length = 4;
src/emu/cpu/mips/mips3.h
r4406r4407
225225    PUBLIC FUNCTIONS
226226***************************************************************************/
227227
228void mips3drc_set_options(const device_config *device, UINT32 options);
229void mips3drc_add_fastram(const device_config *device, offs_t start, offs_t end, UINT8 readonly, void *base);
230void mips3drc_add_hotspot(const device_config *device, offs_t pc, UINT32 opcode, UINT32 cycles);
231
232
228233#if (HAS_R4600)
229234CPU_GET_INFO( r4600be );
230235#define CPU_R4600BE CPU_GET_INFO_NAME( r4600be )
src/emu/cpu/mips/psxdasm.c
r4406r4407
1010{
1111   static char s_hex[ 20 ];
1212
13   value &= 0xffff;
1413   if( value & 0x8000 )
1514   {
16      sprintf( s_hex, "-$%x", ( 0 - value ) & 0x7fff );
15      sprintf( s_hex, "-$%x", -value & 0xffff );
1716   }
1817   else
1918   {
20      sprintf( s_hex, "$%x", value & 0x7fff );
19      sprintf( s_hex, "$%x", value & 0xffff );
2120   }
21
2222   return s_hex;
2323}
2424
src/emu/cpu/mips/mips3drc.c
r4406r4407
565565static CPU_SET_INFO( mips3 )
566566{
567567   mips3_state *mips3 = *(mips3_state **)device->token;
568   switch (state)
569   {
570      /* --- the following bits of info are set as 64-bit signed integers --- */
571      case CPUINFO_INT_MIPS3_DRC_OPTIONS:            mips3->impstate->drcoptions = info->i;            break;
572568
573      case CPUINFO_INT_MIPS3_FASTRAM_SELECT:         if (info->i >= 0 && info->i < MIPS3_MAX_FASTRAM) mips3->impstate->fastram_select = info->i; mips3->impstate->cache_dirty = TRUE; break;
574      case CPUINFO_INT_MIPS3_FASTRAM_START:         mips3->impstate->fastram[mips3->impstate->fastram_select].start = info->i; mips3->impstate->cache_dirty = TRUE; break;
575      case CPUINFO_INT_MIPS3_FASTRAM_END:            mips3->impstate->fastram[mips3->impstate->fastram_select].end = info->i; mips3->impstate->cache_dirty = TRUE; break;
576      case CPUINFO_INT_MIPS3_FASTRAM_READONLY:      mips3->impstate->fastram[mips3->impstate->fastram_select].readonly = info->i; mips3->impstate->cache_dirty = TRUE; break;
577
578      case CPUINFO_INT_MIPS3_HOTSPOT_SELECT:         if (info->i >= 0 && info->i < MIPS3_MAX_HOTSPOTS) mips3->impstate->hotspot_select = info->i; mips3->impstate->cache_dirty = TRUE; break;
579      case CPUINFO_INT_MIPS3_HOTSPOT_PC:            mips3->impstate->hotspot[mips3->impstate->hotspot_select].pc = info->i; mips3->impstate->cache_dirty = TRUE; break;
580      case CPUINFO_INT_MIPS3_HOTSPOT_OPCODE:         mips3->impstate->hotspot[mips3->impstate->hotspot_select].opcode = info->i; mips3->impstate->cache_dirty = TRUE; break;
581      case CPUINFO_INT_MIPS3_HOTSPOT_CYCLES:         mips3->impstate->hotspot[mips3->impstate->hotspot_select].cycles = info->i; mips3->impstate->cache_dirty = TRUE; break;
582
583      /* --- the following bits of info are set as pointers to data or functions --- */
584      case CPUINFO_PTR_MIPS3_FASTRAM_BASE:         mips3->impstate->fastram[mips3->impstate->fastram_select].base = info->p;   break;
585
586      /* --- everything else is handled generically --- */
587      default:                              mips3com_set_info(mips3, state, info);   break;
588   }
569   /* --- everything is handled generically --- */
570   mips3com_set_info(mips3, state, info);
589571}
590572
591573
r4406r4407
621603}
622604
623605
606/*-------------------------------------------------
607    mips3drc_set_options - configure DRC options
608-------------------------------------------------*/
624609
610void mips3drc_set_options(const device_config *device, UINT32 options)
611{
612   mips3_state *mips3 = *(mips3_state **)device->token;
613   mips3->impstate->drcoptions = options;
614}
615
616
617/*-------------------------------------------------
618    mips3drc_add_fastram - add a new fastram
619    region
620-------------------------------------------------*/
621
622void mips3drc_add_fastram(const device_config *device, offs_t start, offs_t end, UINT8 readonly, void *base)
623{
624   mips3_state *mips3 = *(mips3_state **)device->token;
625   if (mips3->impstate->fastram_select < ARRAY_LENGTH(mips3->impstate->fastram))
626   {
627      mips3->impstate->fastram[mips3->impstate->fastram_select].start = start;
628      mips3->impstate->fastram[mips3->impstate->fastram_select].end = end;
629      mips3->impstate->fastram[mips3->impstate->fastram_select].readonly = readonly;
630      mips3->impstate->fastram[mips3->impstate->fastram_select].base = base;
631      mips3->impstate->fastram_select++;
632   }
633}
634
635
636/*-------------------------------------------------
637    mips3drc_add_hotspot - add a new hotspot
638-------------------------------------------------*/
639
640void mips3drc_add_hotspot(const device_config *device, offs_t pc, UINT32 opcode, UINT32 cycles)
641{
642   mips3_state *mips3 = *(mips3_state **)device->token;
643   if (mips3->impstate->hotspot_select < ARRAY_LENGTH(mips3->impstate->hotspot))
644   {
645      mips3->impstate->hotspot[mips3->impstate->hotspot_select].pc = pc;
646      mips3->impstate->hotspot[mips3->impstate->hotspot_select].opcode = opcode;
647      mips3->impstate->hotspot[mips3->impstate->hotspot_select].cycles = cycles;
648      mips3->impstate->hotspot_select++;
649   }
650}
651
652
653
625654/***************************************************************************
626655    CACHE MANAGEMENT
627656***************************************************************************/
src/emu/mame.c
r4406r4407
335335         /* load the configuration settings and NVRAM */
336336         settingsloaded = config_load_settings(machine);
337337         nvram_load(machine);
338         sound_mute(FALSE);
338339
339340         /* display the startup screens */
340341         ui_display_startup_screens(machine, firstrun, !settingsloaded);
r4406r4407
376377         end_resource_tracking();
377378
378379         /* save the NVRAM and configuration */
380         sound_mute(TRUE);
379381         nvram_save(machine);
380382         config_save_settings(machine);
381383      }
src/emu/inptport.c
r4406r4407
513513   /* for relative devices, wrap around when we go past the edge */
514514   else
515515   {
516      INT32 adj1 = APPLY_INVERSE_SENSITIVITY(512, analog->sensitivity);
517      INT32 adjdif = adjmax - adjmin + adj1;
516      INT32 adj1 = APPLY_INVERSE_SENSITIVITY(INPUT_RELATIVE_PER_PIXEL, analog->sensitivity);
517      INT32 range = adjmax - adjmin + adj1;
518      /* rolls to other end when 1 position past end. */
519      adjmax += adj1;
520      adjmin -= adj1;
518521
519      if (analog->reverse)
522      while (value >= adjmax)
520523      {
521         while (value <= adjmin - adj1)
522            value += adjdif;
523         while (value > adjmax)
524            value -= adjdif;
524         value -= range;;
525525      }
526      else
526      while (value <= adjmin)
527527      {
528         while (value >= adjmax + adj1)
529            value -= adjdif;
530         while (value < adjmin)
531            value += adjdif;
528         value += range;;
532529      }
533530   }
534531
r4406r4407
18701867         /* adjust for signed */
18711868         state->adjmin = -state->adjmin;
18721869
1873      state->minimum = (state->adjmin - state->adjdefvalue) * 512;
1874      state->maximum = (state->adjmax - state->adjdefvalue) * 512;
1870      state->minimum = (state->adjmin - state->adjdefvalue) * INPUT_RELATIVE_PER_PIXEL;
1871      state->maximum = (state->adjmax - state->adjdefvalue) * INPUT_RELATIVE_PER_PIXEL;
18751872
18761873      /* make the scaling the same for easier coding when we need to scale */
1877      state->scaleneg = state->scalepos = COMPUTE_SCALE(1, 512);
1874      state->scaleneg = state->scalepos = COMPUTE_SCALE(1, INPUT_RELATIVE_PER_PIXEL);
18781875
18791876      if (field->flags & ANALOG_FLAG_RESET)
18801877         /* delta values reverse from center */
r4406r4407
18861883
18871884         /* relative controls reverse from 1 past their max range */
18881885         if (state->positionalscale == 0)
1889            state->reverse_val += 512;
1886            state->reverse_val += INPUT_RELATIVE_PER_PIXEL;
18901887      }
18911888   }
18921889
r4406r4407
21482145            /* if port is positional, we will take the full analog control and divide it */
21492146            /* into positions, that way as the control is moved full scale, */
21502147            /* it moves through all the positions */
2151            rawvalue = APPLY_SCALE(rawvalue - INPUT_ABSOLUTE_MIN, analog->positionalscale) * 512 + analog->minimum;
2148            rawvalue = APPLY_SCALE(rawvalue - INPUT_ABSOLUTE_MIN, analog->positionalscale) * INPUT_RELATIVE_PER_PIXEL + analog->minimum;
21522149
21532150            /* clamp the high value so it does not roll over */
21542151            rawvalue = MIN(rawvalue, analog->maximum);
r4406r4407
21862183   if (input_seq_pressed(input_field_seq(analog->field, SEQ_TYPE_DECREMENT)))
21872184   {
21882185      keypressed = TRUE;
2189      if (analog->field->delta != 0)
2190         delta -= APPLY_SCALE(analog->field->delta, keyscale);
2191      else if (analog->lastdigital != 1)
2186      if (analog->delta != 0)
2187         delta -= APPLY_SCALE(analog->delta, keyscale);
2188      else if (!analog->lastdigital)
21922189         /* decrement only once when first pressed */
21932190         delta -= APPLY_SCALE(1, keyscale);
2194      analog->lastdigital = 1;
2191      analog->lastdigital = TRUE;
21952192   }
21962193
21972194   /* same for the increment code sequence */
21982195   if (input_seq_pressed(input_field_seq(analog->field, SEQ_TYPE_INCREMENT)))
21992196   {
22002197      keypressed = TRUE;
2201      if (analog->field->delta)
2202         delta += APPLY_SCALE(analog->field->delta, keyscale);
2203      else if (analog->lastdigital != 2)
2198      if (analog->delta)
2199         delta += APPLY_SCALE(analog->delta, keyscale);
2200      else if (!analog->lastdigital)
22042201         /* increment only once when first pressed */
22052202         delta += APPLY_SCALE(1, keyscale);
2206      analog->lastdigital = 2;
2203      analog->lastdigital = TRUE;
22072204   }
22082205
22092206   /* if resetting is requested, clear the accumulated position to 0 before */
r4406r4407
22222219   if (analog->autocenter)
22232220   {
22242221      INT32 center = APPLY_INVERSE_SENSITIVITY(analog->center, analog->sensitivity);
2225      if (analog->lastdigital != 0 && !keypressed)
2222      if (!analog->lastdigital && !keypressed)
22262223      {
22272224         /* autocenter from positive values */
22282225         if (analog->accum >= center)
22292226         {
2230            analog->accum -= APPLY_SCALE(analog->field->centerdelta, analog->keyscalepos);
2227            analog->accum -= APPLY_SCALE(analog->centerdelta, analog->keyscalepos);
22312228            if (analog->accum < center)
22322229            {
22332230               analog->accum = center;
2234               analog->lastdigital = 0;
2231               analog->lastdigital = FALSE;
22352232            }
22362233         }
22372234
22382235         /* autocenter from negative values */
22392236         else
22402237         {
2241            analog->accum += APPLY_SCALE(analog->field->centerdelta, analog->keyscaleneg);
2238            analog->accum += APPLY_SCALE(analog->centerdelta, analog->keyscaleneg);
22422239            if (analog->accum > center)
22432240            {
22442241               analog->accum = center;
2245               analog->lastdigital = 0;
2242               analog->lastdigital = FALSE;
22462243            }
22472244         }
22482245      }
22492246   }
2250   else if (!keypressed)
2251      analog->lastdigital = 0;
2247
2248   if (!keypressed)
2249      analog->lastdigital = FALSE;
22522250}
22532251
22542252
src/emu/ui.c
r4406r4407
938938      if (machine->gamedrv->flags & GAME_REQUIRES_ARTWORK)
939939         astring_catc(string, "The game requires external artwork files\n");
940940
941
942
943
944941      /* if there's a NOT WORKING or UNEMULATED PROTECTION warning, make it stronger */
945942      if (machine->gamedrv->flags & (GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION))
946943      {
r4406r4407
949946         int foundworking;
950947
951948         /* add the strings for these warnings */
952         if (machine->gamedrv->flags & GAME_NOT_WORKING)
953            astring_catc(string, "THIS " CAPGAMENOUN " DOESN'T WORK. You won't be able to make it work correctly.  Don't bother.\n");
954949         if (machine->gamedrv->flags & GAME_UNEMULATED_PROTECTION)
955950            astring_catc(string, "The game has protection which isn't fully emulated.\n");
951         if (machine->gamedrv->flags & GAME_NOT_WORKING)
952            astring_catc(string, "THIS " CAPGAMENOUN " DOESN'T WORK. The emulation for this game is not yet complete. "
953                            "There is nothing you can do to fix this problem except wait for the developers to improve the emulation.\n");
956954
957955         /* find the parent of this driver */
958956         clone_of = driver_get_clone(machine->gamedrv);
r4406r4407
962960            maindrv = machine->gamedrv;
963961
964962         /* scan the driver list for any working clones and add them */
965         foundworking = 0;
963         foundworking = FALSE;
966964         for (i = 0; drivers[i] != NULL; i++)
967965            if (drivers[i] == maindrv || driver_get_clone(drivers[i]) == maindrv)
968966               if ((drivers[i]->flags & (GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION)) == 0)
969967               {
970968                  /* this one works, add a header and display the name of the clone */
971                  if (foundworking == 0)
972                     astring_catc(string, "\n\nThere are working clones of this game. They are:\n\n");
969                  if (!foundworking)
970                     astring_catc(string, "\n\nThere are working clones of this game: ");
971                  else
972                     astring_catc(string, ", ");
973973                  astring_catc(string, drivers[i]->name);
974                  astring_catc(string, "\n");
975                  foundworking = 1;
974                  foundworking = TRUE;
976975               }
976
977         if (foundworking)
978            astring_catc(string, "\n");
977979      }
978980   }
979981
src/emu/romload.c
r4406r4407
10311031      astring_free(fname);
10321032   }
10331033
1034   if (filerr != FILERR_NONE)
1035   {
1036      astring *fname = astring_assemble_2(astring_alloc(), ROM_GETNAME(romp), ".chd");
1037      filerr = mame_fopen_options(options, SEARCHPATH_IMAGE, astring_c(fname), OPEN_FLAG_READ, image_file);
1038      astring_free(fname);
1039   }
1040
10341041   /* did the file open succeed? */
10351042   if (filerr == FILERR_NONE)
10361043   {
r4406r4407
10671074                        astring_free(fname);
10681075                     }
10691076
1077                     if (filerr != FILERR_NONE)
1078                     {
1079                        astring *fname = astring_assemble_2(astring_alloc(), ROM_GETNAME(rom), ".chd");
1080                        filerr = mame_fopen_options(options, SEARCHPATH_IMAGE, astring_c(fname), OPEN_FLAG_READ, image_file);
1081                        astring_free(fname);
1082                     }
1083
10701084                     /* did the file open succeed? */
10711085                     if (filerr == FILERR_NONE)
10721086                     {
src/mess/drivers/n64.c
r4406r4407
7474   signal_rcp_interrupt(device->machine, VI_INTERRUPT);
7575}
7676
77static MACHINE_RESET( n64 )
78{
79   n64_machine_reset(machine);
80}
81
8277static DEVICE_IMAGE_LOAD(n64_cart)
8378{
8479   int i, length;
docs/messnew.txt
r4406r4407
1ïŧŋ0.129.1
1ïŧŋ0.130
22
33New System Drivers Supported (in no particular order):
44------------------------------------------------------
r4406r4407
125125
126126Source Changes:
127127----------------
128- The core is based on MAME 0.129u6.  This incorporates all features of the
128- The core is based on MAME 0.130.  This incorporates all features of the
129129  update to this core.  [MAME team]
130130
131131- Made major changes to allow Cartridge slots to encapsulate hardware as
whatsnew.txt
r4406r4407
10.129
10.130
22-----
33
44
55MAMETesters Bugs Fixed
66----------------------
7- 02644: [Gameplay] tdragon, tdragon1, hachamf: Coin counter doesn't
8         decrease (Angelo Salese)
9- 02799: [DIP/Input] mace: No player 2, button 4 available for mapping
10         (Phil Bennett)
11- 02676: [Color/Palette] All Laserdisc Games: Wrong colors using
12         Direct3D on ATI cards. (Aaron Giles)
13- 02104: [Crash/Freeze] metlhawk, metlhwkj: Crash while decoding with
14         '-debug' trigger (Aaron Giles)
15- 02575: [Misc.] taitogn: Not marked as bios in -listxml (Aaron Giles)
16- 02779: [Crash/Freeze] sfiii2j: Access Violation with -debug
7- 00421: [Graphics] fghthist, fghthsta, fghthstj, fghthstu: Some
8         priority problems in Ryoko's stage. Namely, the old man, the
9         cat and the kid. (Pierpaolo Prazzoli)
10- 02854: [Graphics] hypreact: Buggy text in scoring screen
11         (Pierpaolo Prazzoli)
12- 00826: [Graphics] wc90b, wc90: Some players are cut at left and
13         bottom of the screen. (robiza)
14- 00268: [Graphics] captaven: In attract mode, the small pictures of
15         the heroes appear before they should. (Pierpaolo Prazzoli)
16- 03006: [Graphics] blocken: Color / Missing gfx (Phil Bennett)
17- 02057: [Graphics] buckrog, buckrogn, zoom909, subroc3d: Graphics
18         Corruption on Title Screen + in game (using -AFS)
1719         (Aaron Giles)
18- 02141: [Crash/Freeze] sunaq: At the Title, Game is Crash
19         (Aaron Giles)
20- 01961: [Crash/Freeze] jdreddp: [debug] Access Violation when loading
21         savestate with -autosave and -debug (Aaron Giles)
22- 02012: [Crash/Freeze] fatalerror with "symlist" while running game
23         (Aaron Giles)
24- 02760: [Crash/Freeze] Games using MC6845: Crash with an error on
25         startup before OK. (Phil Bennett)
26- 02714: [Sound] 3stooges: Speech works for a while, then starts going
27         in and out of horrible noise and static (Aaron Giles)
28- 02793: [DIP/Input] funkyjet: Unable to locate input port 'P1'.
29         (Phil Bennett)
30- 02776: [Crash/Freeze] mwalk, mwalkj, mwalku: Crash when starting
31         game (Aaron Giles)
32- 02790: [Core] Mame will crash on single monitor system if set to
33         numscreens 2 in the *.ini. (Aaron Giles)
34- 02791: [Crash/Freeze] cafetime: Access Violation with -debug
35         (Phil Bennett)
36- 02788: [Misc.] jjack, dorunrun and clones: Immense emulation speed
37         drop (smf)
38- 02742: [Crash/Freeze] xsleena and clones: Game freezes (Mamesick)
39- 02768: [Documentation] mk3, mk3r20, mk3r10, mk3p40, umk3, umk3r10,
40         umk3r11 : Roms incorrectly named as umk3 instead of mk3 + two
41         versions of U2 SOUND ROM. (Aaron Giles)
42- 02773: [Crash/Freeze] all gamecstl.c sets: [debug] Assertion
43         (Aaron Giles)
44- 02781: [Documentation] mt_mwalk: Change title to "Michael Jackson's
45         Moonwalker (Mega-Tech)" (Aaron Giles)
46- 02780: [Crash/Freeze] nss_smw: Integer Overflow with -debug
47         (Aaron Giles)
48- 02782: [Crash/Freeze] swa: [debug] Access Violation with -debug
49         (Aaron Giles)
50- 02783: [Crash/Freeze] SMS-Based megatech.c sets: [debug] Access
51         Violation with -debug (Aaron Giles)
52- 02785: [Crash/Freeze] a51site4: Interger Overflow with -debug
53         (Aaron Giles)
54- 01092: [Crash/Freeze] debugger crashes when exiting during "run to
55         cursor" (robiza)
56- 02738: [Documentation] zoar: The rom marked as bad dump is not bad.
57         (Aaron Giles)
58- 02758: [Compiling] linking ldplayer fails (Aaron Giles)
59- 02764: [Crash/Freeze] liberatb: [debug] Access Violation (Atari Ace)
60- 02765: [Crash/Freeze] all naomi.c sets: Assertion (Aaron Giles)
61- 02771: [Crash/Freeze] all ddragon3.c, shadfrce.c and wwfsstar.c sets:
62         [debug] Assertion (Mamesick)
63- 02770: [Crash/Freeze] aceattac: Interger Overflow (Aaron Giles)
64- 01437: [Sound] hardhead: MAME has the clock frequency of the YM3812
65         wrong. (Phil Bennett)
66- 02772: [Crash/Freeze] hanayara: [debug] Access Violation
67         (Phil Bennett)
68- 02186: [Misc.] vliner, vlinero: Typo of manufacturer. (Phil Bennett)
69- 02747: [Compiling] Compile error on openSUSE 11.1 / gcc 4.3.2 with
70         OPTIMIZE=3 (Aaron Giles)
71- 02763: [Crash/Freeze] some leland.c sets: Access Violation
72         (Phil Bennett)
73- 02766: [Crash/Freeze] topgunnr: Hangs (Phil Bennett)
74- 02761: [Crash/Freeze] cntrygrl: [debug] Access Violation
75         (Phil Bennett)
76- 02762: [Crash/Freeze] galkaika, galkoku, hyouban, mcontest,
77         tokimbsj, tokyogal, uchuua: Access Violation (Phil Bennett)
20- 03001: [Interface] "Working clones" display problem (Aaron Giles)
7821
7922
8023
8124Source Changes
8225--------------
83Significantly optimized the inner execution loop. arknoid2 is ~2.5x
84faster with maximum interleave now. [Aaron Giles]
26Fixed a paletteram entry bug in GP World [Angelo Salese]
8527
86CPU interface organization shuffle. The file cpuintrf.h now merely
87describes the interface, but does not contain any implementation.
88All remaining bits of implementation have been migrated either to
89cpuexec.c or to debugcpu.c. Specifically, cpu_dasm() is now
90debug_cpu_disassemble(), and cpu_set_dasm_override() is now
91debug_cpu_set_dasm_override(). Also moved memory_address_physical()
92to debug_cpu_translate(), since it was only ever used for
93debugging. [Aaron Giles]
28Fixed sprite positioning bug in Zero Target [Angelo Salese]
9429
95Changed all CPU and sound cores to use memory_find_address_space()
96instead of cpu_get_address_space(). The former is reliable even
97during early initialization when the CPU cores generally need it.
98[Aaron Giles]
30Added new graphic roms to the 1999 head panic set. Also added sprite
31flicker flag, based on tumble pop etc. [David Haywood]
9932
100Removed the dummy CPU core and cpuintrf.c. [Aaron Giles]
33Add locations to rom names for Mazer Blazer (and alt) roms. Add
34NO_DUMP entries for undumped voice roms, video prom, and pal.
35[Lord Nightmare]
10136
102Changed the core execution loop to directly call the execute function
103instead of using the inline helper (which has been removed).
104[Aaron Giles]
37Preliminary proper roz effects hooked up for Zero Target
38[Olivier Galibert, Angelo Salese]
10539
106Virtual Combat improvments: [Jason Eckhardt, Andrew Gardner]
107 * Improved memory map
108 * Fixed the palette
40Added function calls to replace the MIPS3 and PowerPC DRC's various
41CPU_SET_INFO bits. [Aaron Giles]
10942
110Turned on perfect interleave for remaining tnzs games, and for qix
111hardware games. [Aaron Giles]
43Fixed DCS2 speedup handler so it doesn't get lost during a memory
44remap. This should give a slight speed bump to the Seattle/Vegas games
45and to War Gods. [Aaron Giles]
11246
113Perfect synchronization for thunderj, which has always been iffy.
114Removed synchronization hacks. [Aaron Giles]
47Added service1 button tested in Dynamite Bomber (but doesn't work in
48game) and fixed little sprites priority problems in limenko.c
49[Pierpaolo Prazzoli]
11550
116Updated wc90b2 to use newly-dumped roms. [robiza]
51Fixed a sprite bug when flip y flag is used and cleaned-up the whole
52routine in Zero Target. [Angelo Salese]
11753
118Changed the F3853 implementation into a device. [Wilbert Pol]
119
120Cleaned up the SID interface. [Wilbert Pol]
121
122Put some namcos21 logging behind a (disabled) compile-time define.
123[Aaron Giles]
124
125Converted 68000 core to use state tables. [Aaron Giles]
126
127Corrected cpu_attotime_to_clocks() calculation. [Phil Bennett]
128
129Correctly setup the MC6845 device in the rockola, usgames, coinmstr,
130carrera drivers. [Phil Bennett]
131
132Added proper inputs to Jongkyo [Angelo Salese]
133
134Added extremely preliminary i860 disassembler and hooked it up to the
135vcombat driver. [Jason Eckhardt, Andrew Gardner]
136
137Cleaned up cycle handling in the 68k core. [Aaron Giles]
138
139Updated all the sound core header files to declare their SND_GET_INFO
140functions, which will be needed once the sound cores become proper
141devices. It also makes a handful of other header declaration fixes in
142emu/sound, and makes one SND_RESET routine static. Note: votrax.h is
143a new include file altogether. [Atari Ace]
144
145Converted the following drivers to use scanline interrupts, partial
146updates, and raw video parameters: [Mamesick]
147 * ddragon
148 * gstream
149 * vball
150 * xain
151 * chinagat
152
153Replaced the bad (likely hacked) Gururin dump with a fresh one, and
154fixed some rom names in Double Axle according to the pcb.
155[Smitdogg, Guru]
156
157Cleaned up mcs48 to be dependent on a single makefile define, rather
158than separate defines for each CPU which didn't really buy us anything
159in terms of code size or performance. [Aaron Giles]
160
161Correctly setup the MC6845 device in the Funworld driver. Added common
162device interface and eliminated the screen size & visible area
163parameters to Magic Card 2. [Roberto Fresca]
164
165Correctly setup the MC6845 device in the Goldnpkr driver. Added common
166device interface, merged witchcrd and sloco93 machine drivers, and
167added/corrected the 50/60 Hz. DIP switches to all games. The 50hz mode
168needs to be corrected. Some games as most bsuerte sets have the 50/60
169Hz. DIP switch connection patched. [Roberto Fresca]
170
171Correctly setup the MC6845 device in the Calomega driver. Added common
172device interface. [Roberto Fresca]
173
174Fixed crash when mouse-clicking without a valid mouse_target set
175(typically after startup when no mouse movement events have occurred).
176[Phil Bennett]
177
178Improvements to lucky8... [Roberto Fresca]
179 - Fixed memory map.
180 - Fixed NVRAM. (please delete the old .nv)
181 - Added sound through sn76496.
182 - Added 3x PPI 8255.
183 - Created basic inputs from the scratch to match the PPI connections.
184 - Defined the output port.
185 - Change description to "New Lucky 8 Lines"
186 - Change manufacturer to Wing Co.Ltd.
187 - Added an alternate set.
188
189Fixed Top Landing ADPCM ROM loading. [Phil Bennett]
190
191Fixed Cherry Bonus III and Cherry Bonus III (Version 1.40) colors.
192[Roberto Fresca]
193
194Added preliminary sound & colors to the Mahjong Shiyou driver, game
195now throws a sound error. Merged Mahjong Shiyou to the Royal Mahjong
196driver, graphics are improved because of that. [Angelo Salese]
197
198Fixed ddrago3p gfx ROM loading. [Creamymami]
199
200Cherry I Gold improvements: [Roberto Fresca]
201 - Completed the missing inputs.
202 - Mapped 4 of the 5 DIP switches banks. (can't find the 5th)
203 - Worked out the conditional DIPs.
204 - Documented all DIP switches bank.
205 - Added PORT_DIPLOCATION to all switches.
206
207Cherry Bonus III (Version 1.40) improvements: [Roberto Fresca]
208 - Worked the remaining inputs.
209 - Mapped and documented all 5 DIP switches banks.
210 - Worked out the conditional DIPs.
211 - Added PORT_DIPLOCATION to all switches.
212The game is working, but need a workaround for the status connection.
213Each time the player press 'Take' to get the credits, a "call
214attendant" msg appear and credits must be taken pressing 'Key Out'.
215
216Improvements to New Lucky 8 Lines: [Roberto Fresca]
217 - Proper 3x PPI 8255 connections.
218 - Created a new AY8910 interface due to different ports addressing.
219 - Hooked all the input banks (8).
220 - Improved DIP switches with main game and D-UP rates, keyin values,
221    D-UP game type (reels/cards) and other options to both sets.
222 - Added PORT_DIPLOCATION to all DSW banks.
223 - Promoted both sets to working state.
224The game has 2 sets of controls. Once coined, both players can switch
225control through their own 'BIG' key. If the game boots with 'Coin Jam'
226error, press RESET to normalize. Please delete your old .nv and .cfg
227files before run this update.
228
229Improved colors of New Lucky 8 Lines. [David Haywood]
230
231Implemented GTE divider using reciprocal table derived by pSXAuthor,
232this should allow the results to be calculated as inaccurately as the
233real hardware. [smf]
234
235Fixed AT28C16 so that a write isn't allowed to start if there is one
236in progress and a write isn't started if the data is already correct.
237This allows my dream horse to boot again. Further investigation is
238needed. [smf]
239
240Maps all docastle.c games' third CPU rom to 0x0000 so that MAME
241doesn't log unmapped reads constantly. [smf, David Haywood]
242
243Improvements to goldstar.c driver: [Roberto Fresca]
244 - Added another set of Cherry Bonus III.
245 - Reworked and cleaned ncb3, cb3a, lucky8 and lucky8a inputs.
246 - Added the 2nd set of controls to the above games.
247 - Removed the OKI references from machine driver and rom load for the
248    above games.
249 - Promoted ncb3 and cb3a to working status.
250 - Reparented sets.
251
252Wrote a placeholder driver for an unknown "fruit" ROM set. Anything
253might be wrong about it... [David Haywood, Angelo Salese]
254
255Improved bishjan.c: [Luca Elia]
256 - Converted the tilemaps chip to an 8-bit bus width, and added 16-bit
257    handlers using the macros in memconv.h.
258 - Improved bishjan memory map.
259 - Implemented line scroll emulation.
260
261Merged i8x41 (UPI-41) core into MCS-48 core: [Aaron Giles]
262 * all code now lives in mcs48.c
263 * rewrote disassembler as unified MCS-48/UPI-41 disassembler
264 * changed UPI-41 interfaces to match MCS-48
265 * added new master read/write interfaces for external access
266 * unified interface to 8243 expander chip
267 * converted tnzs and decocass to the new interfaces
268
269DECO Cassette fixes/cleanups: [Aaron Giles]
270 * converted tape handling to a device
271 * changed tape handling to use a timer callback
272 * updated to work with new UPI-41 core
273 * corrected clock speeds for all chips (esp. the 8041)
274 * fixed very wrong CRC implementation (how did it ever work?)
275 * corrected sound IRQ rate
276 * corrected video timing
277
278Burger Time hardware fixes: [Aaron Giles]
279 * corrected sound IRQ rate and handling
280 * removed lnc audio reset hack
281 * full audio memory maps based on schematics
282 * corrected video timing
283
284Disassembled PCs are now forcibly aligned to the minimum opcode size
285and explicitly masked. [Aaron Giles]
286
287Normalized the CPU cores to always do while (icount > 0), in order
288to remove the kludge in cpuexec.c that caused us to overeat by 1 cycle
289to accommodate those cores that there looping while (icount >= 0).
290[Aaron Giles]
291
292Fixed System 18 rendering so that System 16 sprites don't attempt to
293shadow VDP pixels (causes crash downstream in debug builds).
294[Aaron Giles]
295
296Hooked up DSA/ESA instructions for PowerPC 602 (as no-ops for now).
297Also hooked up PPC602 IBR. polystar gets a little farther but crashes
298due to a TLB issue. [Aaron Giles]
299
300Removed HAS_PPC* in favor of a single HAS_POWERPC, and a single
301definition in cpu.mak for all PowerPC variants. [Aaron Giles]
302
303Made xsleena run at perfect interleave and simplified the shared RAM.
304Also moved to modern banking and cleaned up memory maps a bit.
305[Aaron Giles]
306
307Added two new Windows OSD options: -debugger_font and
308-debugger_font_size, which control the font and size used in the
309debugger text Windows. These default to "Lucida Console" and 9pt,
310which is the same face as previously hard-coded but 1pt larger.
311Personally, I prefer "Consolas" 9pt, which is one of the new "C" fonts
312included with Windows Vista and later (also available for free
313download on older systems). Note that only fixed-width fonts really
314work here, for obvious reasons. [Aaron Giles]
315
316Added new frontend option -listbrothers. This will list all "brothers"
317of a given driver, meaning those drivers that come from the same
318source file, along with their parent names if they are clones. If a
319wildcard name is specified for the driver, then the first driver in a
320given source file will trigger a list of his brothers, and any other
321drivers in the same source file which match the wildcard will be
322flagged. [Aaron Giles]
323
324Corrected Mr. Do clocks, video parameters, merged memory maps.
325[Aaron Giles]
326
327Fixed i86 core so that REP instructions with high interleave actually
328make forward progress. Also fixed cpu.mak dependencies for i286.
329[Aaron Giles]
330
331Added polling hooks for SP0250 DRQ line. The callback is now optional.
332If not provided, then the kick timer is not used. Converted gottlieb
333speech driver to use polling for SP0250 DRQ line. [Aaron Giles]
334
335Added kludge to 6502 core such that CLI followed by RTI does not allow
336any interrupts through. In the future, the 6502 interrupt handling
337needs further revisiting. [Aaron Giles]
338
339Improved graphics and sound in Grand Prix '98 [David Haywood]
340
341Added the ability for a ROMset to specify a default BIOS. Use
342ROM_DEFAULT_BIOS("biosname") in the ROM definition. This can be used
343to ensure a correct default BIOS for ROM versions that care.
344[Aaron Giles]
345
346atarisy1 changes: [Kevin Eshbach]
347 * Support for new Atari System 1 TTL Motherboard dump (previously
348    MAME would crash when using it and now it just seems to hang.)
349 * PROMs dumped from Atari System 1 TTL Motherboard (one PLA needs
350    dumping though.)
351 * Added notes on the Atari System 1 Motherboard and some of its
352    supported games
353
354Added placeholders for various PALs on the following systems: balsente,
355galaga, ms32, namcofl, rocnrope, tx1. [Kevin Eshbach]
356
357popeye.c improvements: [Kevin Eshbach]
358 * Corrected the rom names for Popeye
359 * Added save state support to Popeye
360 * Added the dip location to the encrypted Popeye and fixed the coin
361   settings according to the manual (unencrypted Popeye not changed)
362
363Added the dip locations to Tutankham. [Kevin Eshbach]
364
365Some minor MCS-48 cleanup. Added 8040/8050 variants. [Aaron Giles]
366
367Fixed buggyboy I/O, engine sound and tilemap scrolling. [Phil Bennett]
368
369ldplayer works again. Added MDRV_LASERDISC_GET_DISC callback hook
370which allows for dynamically finding the CHD, rather than relying
371on the DRIVER_INIT hackery that was there before. [Aaron Giles]
372
373Added a work-around for 2 Minute Drill, to get it booting again.
54Fixed sound regression in Tryout and removed deprecat.h dependancy
37455[Angelo Salese]
37556
376Fixed rendering of slider controls so it doesn't overlap when menus
377get large. [Aaron Giles]
57tms57002: Add two missing instructions and hack up the coef update.
58The real way coefficient updates are handled is a little too complex
59for now, but the hack throttles the update speed to the real rate
60given the way konami uses it (once per sync).  It's near impossible to
61use it in a different way anyway. [Olivier Galibert]
37862
379Fixed speed-up for Vamf x1/2 (Europe) [Pierpaolo Prazzoli]
63Fixed bug that caused 64-bit PowerPC systems to fetch opcodes in the
64wrong order. [Aaron Giles]
38065
381Cleaned up the profiler. Reduced its runtime overhead significantly by
382inlining the check to see if it is running. Removed obsolete entries
383and updated the text to more accurately describe each one. Added CPU
384tags to the CPU names. Switched to using an astring for building the
385final string. Unfortunately, still a bit too much overhead to leave
386it on in all builds. [Aaron Giles]
66Fixed Analog settings so Digital and Autocenter Speeds are applied
67properly in real time. Fixed Digital Speed = 0 so it increments in
68single steps per button press. [Derrick Renaud]
38769
388Added NO_DUMPS for the VHS on hnxmasev, hnageman, av2mj1bb and
389av2mj2rg. [Angelo Salese]
70Merged memory maps in the rpunch driver. [Aaron Giles]
39071
391Fixed auto_malloc() to randomize its memory when allocated in the
392debug build. This used to be the standard, but it seems to have been
393removed when the pool allocation was moved into the library. Also
394changed rand_memory() to use a fixed seed for consistent behavior.
395[Aaron Giles]
72Fixed PSX CPU disassembly of -$8000, it was showing up as -$0. [smf]
39673
397Removed a couple of unnecessary typedefs from mamecore.h. Updated
398romload to use an astring for accumulating errors (I always feared
399busting that buffer with some huge romlist). [Aaron Giles]
400
401romload cleanups: [Aaron Giles]
402 - added running_machine to internal structure, removed as explicit
403    parameter
404 - added new function rom_file_size() to compute the size of a ROM
405 - removed rom_first_chunk() and rom_next_chunk() which are no longer
406    needed (all users can use rom_file_size() now)
407 - changed progress display to be based on size of ROMs loaded
408 - changed temporary load buffer to be dynamically allocated
409 - fixed reload logic to handle skipped BIOSes
410
411Fixed layer enable,flip x & x/y position in goodejan.c driver.
412[Angelo Salese]
413
414Fixed for odd word DMA transfers in the namcos12 driver.
74Allow chds to be directly in the rom directory without a subdirectory.
41575[Olivier Galibert]
41676
417Added simple built-in layout for polepos showing the position of the
418shifter. Removed debug build hack to popmessage the shifter state.
419[Aaron Giles]
77wc90b1 and wc90b2 improvements: [robiza]
78 - sprite priorities
79 - sprite x position
80 - fixed y sprite wrapping
81 - fixed bg and fg scroll
82 - fixed bg and fg offsets
42083
421Added savestate support to all games in mrdo.c: mrdo, mrdoy, mrdot,
422mrdofix, mrlo, mrdu, yankeedo. [MooglyGuy]
84Fixed colors in Cultures (Jibun wo Migaku Culture School Mahjong Hen)
85[Tomasz Slanina]
42386
424Added savestate support to all games in docastle.c: docastle,
425docastl2, docastlo, douni, dorunrun, dorunru2, dorunruc, dorunrca,
426spiero, dowil, jjack, kickridr, idsoccer. [MooglyGuy]
87Refactored sfbonus and improved the inputs. [David Haywood]
42788
428Added savestate support to all games in statriv2.c: statusbj, hangman,
429trivquiz, statriv2, statrv2v, statriv4, sextriv, quaquiz2, supertr2,
430supertr3. [MooglyGuy]
89Hooked up paletteram in Midnight Landing [Angelo Salese]
43190
432Lots of improvements to the different Cherry Master hardware: added
433new sets, created new machine drivers, fixed colors, added PPI
434devices, created new 8255 and ay8910 interfaces, worked out inputs
435and DIP switches from the scratch, fixed memory maps, merged the
436cherrym2.c driver with goldstar.c and much more...
437[Roberto Fresca, David Haywood]
91royalmah update: [Uki]
92 - added some notes
93 - fixed DIPSW of makaijan
94 - fixed visible area
95 - fixed CPU clock
43896
439Added savestate support to 4enraya. [MooglyGuy]
97Add muting just before saving the NVRAM, and de-mute just after
98loading the NVRAM. Should cure the stuck sound issue for games
99with large NVRAM. [Aaron Giles]
440100
441Changed videopkr MCS-48 P4 control register to the PROG line, which is
442more likely. The way to toggle the PROG line is to read/write/and/or
443to ports 4-7. Since the board doesn't list an 8243 port expander, it
444is likely the "writes" to port 4 are really just a mechanism to get
445the PROG line to toggle to clear the interrupt. [Aaron Giles]
101Added placeholders for the two PAL's on Atari's version of Pole
102Position 1 and 2 (I could not read the last digit of the PAL at 5c.)
103[Kevin Eshbach]
446104
447Fixed Super Triv colors. [Pierpaolo Prazzoli]
105Added board numbers to SEGA's Quartet 2 documentation. [Kevin Eshbach]
448106
449Discovered numerous new opcodes for cb2001. [robiza]
107Corrected the rom names for Tutankham. [Kevin Eshbach]
450108
451Improved mgcs. It now runs through attract mode. It still locks up as
452soon as one coins up though, due to the unemulated IGS029 protection.
453[Luca Elia]
109Hooked up 2D layer in Driver's Eyes. [Naibo Zhang]
454110
455Fixed more stuff with Diamond Derby, game is playable but not yet
456working (due of a subtle bug, see source) [Angelo Salese]
111Fixed Konami zr-107, GTI Club hardware, background layer lost (black
112sky). [Naibo Zhang]
457113
458Slot Carnival: [Roberto Fresca]
459 - Added gfxdecode & palette length to the machine driver, so tiles
460    can be viewed through F4 in case of someone wants to help.
461 - Defined SND_CLOCK for the ay8910.
462114
463Removed bogus port 4-7 definitions from MCS-48. Added i8243
464implementation. Connected 8243 properly to monsterb and system 16a
465sound. Changed draw80pkr to connect the PROG line like videopkr.
466[Aaron Giles]
467115
468Changed Status Trivia 2 (and related games) clock to 13.684MHz to fix
469game speed. Still wrong, but better than before. [MooglyGuy]
470
471Fixed a few out-of-bounds errors revealed by randomly initializing
472auto_malloc() memory. These would manifest themselves as difficult-to-
473reproduce crashes on some systems. Affects laserbat, progolf, seta2,
474and cubeqst drivers. [Aaron Giles]
475
476Removed dangling old obsolete code from scramble.c, scobra.c, and
477galaxold.c. [Aaron Giles]
478
479Added savestate support to the TTL74148 and TTL74153 devices.
480[MooglyGuy]
481
482Removed anonymous timers from gridlee and added savestate support.
483[MooglyGuy]
484
485Added savestate support to all games in 40love.c, 88games.c, 1943.c,
486carpolo.c, circus.c and exidy.c: 40love, fieldday, undoukai, 88games,
487konami88, hypsptsp, 1943, 1943j, 1943kai, carpolo, circus, circusse,
488robotbwl, crash, ripcord, sidetrac, targ, targc, spectar, spectar1,
489rallys, phantoma, mtrap, mtrap3, mtrap4, venture, venture2, venture4,
490teetert, pepper2, hardhat, fax, fax2. [MooglyGuy]
491
492Cleaned up some memory and file handles in the error cases of
493ldverify. [Oliver Stoeneberg]
494
495
496
497116New games added or promoted from NOT_WORKING status
498117---------------------------------------------------
499Turbo Sub (2 versions) [Phil Bennett]
500Mahjong Jong-Tei [Luca Elia]
501Barline [David Haywood, Angelo Salese]
502New Lucky 8 Lines (2 sets) [Roberto Fresca]
503Cherry Bonus III (Version 1.40, 2 sets) [Roberto Fresca]
504Cherry Bonus III (version 1.40, encrypted)
505  [Andreas Naive, Roberto Fresca]
506Ying Hua Lian 2.0 [Luca Elia, Angelo Salese, David Haywood]
507M.A.C.H. 3 [Aaron Giles, Bobby Tribble]
508Us vs. Them [Aaron Giles, Smitdogg]
509Soul Calibur [Olivier Galibert]
510Cherry Master (Corsica, ver.8.01) [Roberto Fresca]
511Cherry Master (ver.4) [Roberto Fresca, David Haywood]
512Cherry Master I (ver.1.01) [Roberto Fresca, David Haywood]
118Puzzle Time (Prototype) [Angelo Salese, Pierpaolo Prazzoli, Yoshi]
513119
514120
515121
516122New clones added
517123----------------
518Space Echo (set 2) [Roberto Fresca]
519Show Hand (China) [Luca Elia]
520Don Den Lover Vol. 1 (Korea) [Luca Elia]
521Vamf x1/2 (Europe) [Smitdogg]
522DownTown / Mokugeki (Joystick Hack) [Corrado Tomaselli]
523New Lucky 8 Lines (set 2) [Roberto Fresca]
524Pit Boss (Set 2) [David Haywood]
525R-Type (world, bootleg) [mameitalia]
526Thunder Cross II (World) [Stefan Lindberg]
527Trivia ? Whiz (Horizontal) (question set 3) [David Haywood]
528Trivia ? Whiz (Edition 2) (question set 2) [David Haywood]
529Trivia ? Whiz (Edition 3 - Horizontal) (set 2) [David Haywood]
530Trivia ? Whiz (Edition 4) (question set 2) [David Haywood]
531Phraze Craze (set 2) [David Haywood]
5329-Ball Shootout Championship (not working) [David Haywood]
533Dogyuun (Licensed to Unite Trading For Korea) [Smitdogg]
124Gals Panic S2 (Asia) [Andy Henderson]
125Jansou (alt) [Uki]
534126
535127
536128
537New games marked as GAME_NOT_WORKING
538------------------------------------
539Night Bunny / Royal Night [David Haywood, Angelo Salese]
540Night Gal [David Haywood, Angelo Salese]
541Night Gal Summer [David Haywood, Angelo Salese]
542Sexy Gal / Sweet Gal [David Haywood, Angelo Salese]
543Mahjong Cafe Break [Guru]
544Bingo Circus [David Haywood, Angelo Salese]
545Status Black Jack [Angelo Salese, Roberto Fresca]
546Merit Poker [David Haywood, Angelo Salese]
547Cherry Chance [David Haywood, Angelo Salese]
548Dancing Stage Euro Mix [smf]
549Landing High Japan [Ordyne, Phil Bennett]
550Lucky Girl [David Haywood]
551X Se Dae Quiz [David Haywood]
552Mahjong Senka [Angelo Salese]
553Mahjong Yarou [Angelo Salese]
554AV Hanafuda Hana no Christmas Eve [Angelo Salese]
555AV Hanafuda Hana no Ageman [Angelo Salese]
556Mahjong Gaiden [David Haywood]
557Operation Tiger [Chris Hardy, Phil Bennett]
558Magic Card [Roberto Fresca, David Haywood, Angelo Salese]
559Slot Carnival [David Haywood, Roberto Fresca]
560Cross Bingo [f205v]
561
562
563
5640.128u7
1290.129u6
565130-------
566131
567NOTE: As of this release, we have two more major changes. These should
568be the last "huge" changes of this dev cycle.
569132
570The most major change is the final retirement of the global Machine
571pointer, which has been part of MAME for many years. Frankly, I never
572thought we'd hit this point so quickly, so my hats off to Atari Ace
573who helped push through the final round of changes needed to make this
574happen finally. As a result of this change, it should be possible in
575the coming year to finally write a driver that runs two full machines
576simultaneously.
577
578The second big change is that the CPUs are now full-fledged devices,
579and participate like all other devices in the system configuration.
580This is mainly an internal structural change, but in the end removes
581some redundant code and behavior. In a future dev cycle, a similar
582thing will happen with the sound cores.
583
584Starting now, the focus for MAME will be to iron out remaining issues
585and release a 0.129 sometime around the 1st of the year. Please keep
586reporting bugs to MAMETesters as you find things.
587
588
589
590133MAMETesters Bugs Fixed
591134----------------------
592- 02745: [Crash/Freeze] all sets using autosave: Games using autosave
593         segfault on startup (Aaron Giles)
594- 02750: [Sound] All Sets in equites.c: no background music
595         (Aaron Giles)
596- 02757: [Documentation] sengoku3: manufacturer should be "Noise
597         Factory / SNK" (Phil Bennett)
598- 02753: [Crash/Freeze] gradius4: hardware error -1 (Aaron Giles)
599- 02755: [Crash/Freeze] All Sets in metro.c: Crash with access
600         violation. (Aaron Giles)
601- 02756: [Crash/Freeze] hyprduel, hyprdelj: Colors on the title screen
602         wrong, games crash mame with ACCESS VIOLATION (Mamesick)
135- 02963: [Documentation] All games in aristmk5.c: Added region info
136         to all games (Heihachi_73)
137- 00015: [Sound] Noticeable static in OKI 6295 audio. (Aaron Giles)
138- 02698: [DIP/Input] royalmah.c: BET games: Bet button does not work
139         by default. (Angelo Salese)
140- 02180: [Core] Corrupt archives are read without problems (couriersud)
141- 02694: [DIP/Input] demoderb, demoderm: Duplicated input definitions
142         for P1 and P2 buttons. (couriersud)
143- 02983: [Crash/Freeze] racedriv and clones: Race Drivin' and clones
144         loop after "downloading DSP" screen (Phil Bennett)
145- 02998: [Crash/Freeze] pkunwar, ninjakun, raiders5: These games don't
146         make it through their rom checks. (Phil Bennett)
147- 02368: [DIP/Input] fourtrax: Controls are glitched (Phil Bennett)
148- 02996: [Crash/Freeze] hotchase: [debug] Access Violation
149         (Phil Bennett)
150- 02894: [Graphics] cprosocc: Ingame graphics corruption.
151         (Phil Bennett)
152- 02711: [DIP/Input] spacegun: EE-ROM error after gun calibration.
153         (Phil Bennett)
154- 02478: [Graphics] finalapr, finalapo, finalapb, speedrcr: Some
155         graphics are not displayed. (Phil Bennett)
156- 02877: [Sound] deadang, leadang, ghunter: Music drowns out sound
157         effects (Phil Bennett)
158- 02995: [Crash/Freeze] liberate, dualaslt: Black screen shows after
159         disclaimer (Phil Bennett)
160- 02994: [Crash/Freeze] labyrunr, labyrunk, tricktrp: Booting is never
161         completed (Phil Bennett)
162- 02991: [Graphics] polyplay: Broken graphics when playing
163         (Phil Bennett)
164- 02526: [Graphics] mahmajn2: Missing 'special' linescroll mode.
165         (Olivier Galibert)
166- 02979: [Graphics] All sets in m10.c: Dialog box on all sets in m10.c
167         (couriersud)
168- 02988: [Crash/Freeze] blswhstl, detatwin: ROM RAM EEPROM Check fails
169         at startup (Phil Bennett)
170- 02980: [Documentation] wsbbgd: Year is listed as 200?, flyer
171         confirms as 2001 (incog)
172- 02986: [Documentation] ggxx: Year listed as 200?, confirmed as 2002
173         (incog)
174- 02985: [Documentation] ggxxrl: Year is listed as 200?, confirmed as
175         2003. (incog)
176- 02973: [Crash/Freeze] chmplst2: Access Violation (Phil Bennett)
177- 02964: [Sound] dingo: No Audio (Phil Bennett)
178- 02965: [Crash/Freeze] gradius, gwarrior, rf2, twinbee: Bootup
179         process is never completed/No Sound (Phil Bennett)
180- 02909: [Original Reference] boothill: Specification of discrete
181         filters for shot and hit sounds doesn't agree with schematic.
182         (Derrick Renaud)
603183
604184
605185
606186Source Changes
607187--------------
608Removed old cherrym driver (meant to be removed last time, oops).
609[Aaron Giles]
188Added built-in layouts for a large number of games: 280zzzap,
189buggyboy, buggychl, cbombers, changela, chasehq, chqflag, contcirc,
190dblaxle, finallap, grchamp, hotchase, lagunar, outrun, overdriv,
191pdrift, polepos, radr, roundup5, sci, slipstrm, stocker, superchs,
192topspeed, toutrun, turbotag, tx1, wecleman. [Mr. Do!]
193 
194Merged memory maps in nemesis.c. [Aaron Giles]
610195
611Funworld.c improvements [Roberto Fresca]
612 - Added new set: Jolly Card (italian, encrypted bootleg).
613   No coins... Only remote credits. After nvram init, set the Payout
614   DIP to 'manual' to allow the remote credits mode to work.
615 - Created inputs from the scratch for jolycdib.
616 - Updated technical notes.
196Scramble now is a lot closer to reports and recordings (background
197sound, sound of bullets). [couriersud]
617198
618Made CPUs into proper devices. CPUs are now added in the machine
619configuration just as any other device, and the standard CPU
620configuration is performed via the inline configuration macros.
621[Aaron Giles]
199Fixed descriptions of the games running on NAOMI series hardware,
200and NAOMI game list. [Yasuhiro Ogawa]
622201
623Changed cpu_type from an enumeration into a pointer to the CPU's
624get_info function, very similar to device behavior. Updated all
625drivers to #include the necessary header files for the CPU's they
626reference. [Aaron Giles, Atari Ace]
202Input ports clean-up for the jangou driver. [Angelo Salese]
627203
628Added function cpu_get_type() to return the CPU type. [Aaron Giles]
204Finally low pass filtering on channel 2A in btime driver: [couriersud]
205 * Changed resistor to bill of material value
206 * Adjusted volume level and added more documentation
629207
630Changed several cpu_* functions over to the device_* equivalents,
631specifically for get/set info and for reset. [Aaron Giles]
208Fixed regression (missing graphics) in ipminvad (m10). [couriersud]
632209
633The device system now maintains a parallel list of devices based on
634type and class, for faster iteration through all devices of a given
635type or class. [Aaron Giles]
210Added support for System 24 tilemap linescroll modes.
211[Olivier Galibert]
636212
637Cleaned up code that looped over CPUs via the machine->cpu array to
638now loop using the type-based device list. [Aaron Giles]
213Various improvements to Heavy Unit:
214   [Angelo Salese, Tomasz Slanina, David Haywood]
215 - Added a VERY preliminary simulation of the protection, just enough to get the game to boot, not make it playable
216 - Corrected CPU communication, IRQ/NMI generation etc.
217 - Fixed some video emulation issues (added tilemap scroll etc.)
218 - Corrected GFX rom loading (at least for the graphics used in attract mode)
639219
640Removed start/stop/reset/nvram functions from the device_config in
641favor of grabbing them as needed. [Aaron Giles]
220Fixed King Derby sprite colors [Stefan Lindberg, Angelo Salese]
642221
643Cleaned up the generic interrupt_enable code to work with CPU devices
644instead of numbers. [Aaron Giles]
222Merged tetrisp2 memory maps. Renamed teplus2->tetrisp2j. [Aaron Giles]
645223
646Mapped the devtag_* functions to device_* functions via macros instead
647of parallel implementations. [Aaron Giles]
224Merged labyrunr memory maps. [Phil Bennett]
648225
649Removed cpuintrf_init() which is no longer necessary. [Aaron Giles]
226Added GAME_IMPERFECT_GRAPHICS to Tutankham & clones. [couriersud]
650227
651Changed a number of APIs in the system to accept running_machine,
652address_space, or device_config types, in order to remove the use of
653the global Machine variable. Removed the global Machine variable now
654that it is no longer directly references. [Atari Ace, Aaron Giles]
228Hooked up layer enables in goldstar.c driver, fixes 'girl' in Cherry
229Master. [David Haywood]
655230
656Added the concept of device "owner", for devices owned by other
657devices. [Aaron Giles]
231Scaled up renegade and mjkjidai ADPCM levels in line with recent
232clock_adpcm() change. [Phil Bennett]
658233
659Modified laserdisc players to walk back to their global device state
660via the owner, rather than brute-force searching for the first
661instance and hoping that is the right one. [Aaron Giles]
234Converted all drivers to the new device-based 6821 PIA. [Aaron Giles]
662235
663Finalizer update [poUzVdb90]
664 - converted to tilemap
665 - added flipscreen
666 - changed sound chip name from SN76496 to SN76489A
667
668Made the concept of a "clock" native to devices. The clock is now
669specified when the device is added, and the clock is available in
670the device_config directly via device->clock. Updated all devices
671that have a clock to specify it when adding the device, rather than
672as part of their configuration. As part of this work, also created
673device-specific _ADD and _REMOVE macros to simplify configuration.
236Added new function memory_install_read_port_handler() to more
237easily allow you to install read handlers for ports based on tag.
674238[Aaron Giles]
675239
676Defined a generic device execute function callback, though it
677is not used yet. The long term plan is that any device with an
678execute callback will be scheduled along with the CPUs. Now that
679CPUs are devices, their scheduling will be moved over to this
680logic eventually. [Aaron Giles]
240Removed input_port_read_handler8/16/32/64 functions, since they
241were really only used for getting a memory handler for a port by
242tag, and this is no longer necessary. [Aaron Giles]
681243
682Changed various NVRAM devices to fetch their default memory region
683from the device->region rather than specifying it in the
684configuration. [Aaron Giles]
685
686Moved device startup to *before* the DRIVER_INIT is called. This
687is to allow the DRIVER_INIT to configure devices that have been
688properly allocated. So far I don't see any negative effects, but
689be on the lookout if something weird shows up. [Aaron Giles]
690
691Rewrote the device iteration logic to make use of the typenext
692field and the newly-introduced classnext field for iterating more
693efficiently through devices of a given type or class. [Aaron Giles]
694
695Modified the parameters of the stream_update_func callback. As part of
696this work, macro-ized all the callbacks to STREAM_UPDATE, and added
697the sound device as a parameter. [Atari Ace]
698
699Cleaned up i86/i286/i386/nec/v30mz headers: [Aaron Giles]
700 * renamed i86.h -> i86priv.h
701 * renamed i86intrf.h -> i86.h
702 * consolidated i88intrf.h, i186intf.h, i188intf.h, etc into i86.h
703
704Cleaned up many other CPU headers to move memory read/write macros
705out of them, since they are inappropriate and should be prive to the
706CPU core. [Aaron Giles]
707
708Removed index and clock parameters from CPU_INIT function.
244Moved input port handlers to internal code in the memory system.
709245[Aaron Giles]
710246
711Some PIC8259 updates: [Wilbert Pol]
712 - Fixed operation of edge-triggered interrupts
713 - INT output line is now cleared when an IRQ is acknowledged
714 - Implemented basic OCW3 features
247Added port names to the taito8741 device pending its proper
248devicification. [Aaron Giles]
715249
716Fixed proms in boobhack. [robiza]
250Removed all remaining uses of input_port_n_r() functions, and
251purged them from src/emu/machine/generic. [Aaron Giles]
717252
718Decoded some graphics and setup some RAM in the Virtual Combat driver.
719[Andrew Gardner]
253Removed device types from device queries that use tags, under the
254assumption that all device tags are unique. Specifically, the
255following no longer need to provide a device type:
720256
721Cleaned up device and sound interfaces to match the CPU interfaces
722when handling strings. Namely, the generic get_info functions
723allocate a temporary string and the device in question copies its
724string to the target, instead of assigning a const char *. Updated
725all device and sound cores to operate this way. [Aaron Giles]
257   AM_DEVREAD/WRITE
258   DEVCB_DEVICE_HANDLER
259   devtag_get_device
260   devtag_reset
261   device_list_find_by_tag
726262
727Added the concept of a cpu_state_table, which is supplied by the CPU
728cores and which describes all the register state accessible to the
729debugger and other subsystems. The format of the table is such that
730most data can be simply fetched from memory without the further
731involvement of the CPU core, including the display of common formats.
732Extensibility points are available for custom display and for
733importing/exporting the data to intermediate variables for more
734complicated scenarios. Updated the ADSP21xx, TMS340x0, i86, Z80, Z180,
735and 8085 cores to use this. [Aaron Giles]
736
737Removed the old debugger register list, which was never used. Replaced
738it with using ordering from the cpu_state_table. [Aaron Giles]
739
740Renamed REG_PC -> REG_GENPC, REG_SP -> REG_GENSP, and
741REG_PREVIOUSPC -> REG_GENPCBASE. Updated a few spots that were using
742these directly. Moved these definitions into the end of the register
743area rather than leaving them outside which put them in a weird range.
263as well as several device interfaces that referenced other devices.
744264[Aaron Giles]
745265
746More cleanup. Added address-space-specific constants for the various
747bus width and shift CPU interface constants. Changed all the cores
748to use them. [Aaron Giles]
266Moved SH2 set info functions to direct calls. [Aaron Giles]
749267
750Changed ADSP21xx cores to accept a configuration struct instead of
751using set_info to specify serial port callbacks. Simplified the
752ADSP21xx get/set info significantly. Removed support for only
753including certain variants of the chips; they are now either all
754supported or all unsupported. [Aaron Giles]
268Various improvements to the Zero Target / Counter Steer HW and
269cleaned-up the driver. Fixed foreground & background colors and
270hand-tuned sound in Zero Target based on a side-by-side test.
271Fixed sprite colors. [Angelo Salese]
755272
756Memory view fixes: [Aaron Giles]
757 * Fixed bug that computed the wrong total size if the address
758   space was a full 32 bits
759 * Improved display to show unmapped memory with *s
760 * Disabled enumeration of disk and 0-length regions
273Fixed pedals in Final Lap 3. [Phil Bennett]
761274
762Added PAL to arkgcbl. [robiza]
275Hooked up correct C75 MCU in namcofl.c (based on RB's namconb1.c
276implementation) [Phil Bennett]
763277
764Added Country Girl to the Jangou driver,working with sound
765[David Haywood, Angelo Salese]
766 - Fixed transparency pens in the Jangou driver (so removed the
767    GAME_IMPERFECT_GRAPHICS flag); [Angelo Salese]
768 - Added a kludge for Jangou Lady RNG,will be worked on in the future;
769    [Angelo Salese]
278Corrected Dip-Switch settings for Zero Target.
279[Yasuhiro Ogawa, Angelo Salese]
770280
771Added running_machine callbacks for the Amiga code. [Nathan Woods]
281maketms: Free strings on exit. [Olivier Galibert]
772282
773Updated sscope2 to use newly-dumped roms. [robiza]
283tms57002 - don't abort on unimplemented instructions.
284[Olivier Galibert]
774285
775Added running_machine parameters to the f3853 callbacks. [Wilbert Pol]
286Changed eeprom erase command to write 0xff values.
287[Pierpaolo Prazzoli]
776288
777Added running_machine parameter to the callback in the sid interface.
778[Wilbert Pol]
289Fixed handling of corrupt archives: [couriersud]
290 * corrupt files in archives now generate an error
291 * archive files ending in "/" will not be tested for crc - skip path entries
292 * add new flag FILE_OPEN_NO_PRELOAD to skip decompressing on open
293   This is used in audit.c, which only tests whether files exist
294 * added error checking to all calls to load_file_zipped
779295
780Removed MDRV_INTERLEAVE(x), which specified the minimum scheduling
781quantum in terms of "frames" (a dubious concept now with multiple
782screens and changing refresh rates). Replaced it with a new
783MDRV_QUANTUM_TIME(x) which specifies the minimum scheduling quantum
784as a time value. Time can be specified as HZ(x), NSEC(x), USEC(x),
785etc. Updated all drivers to use this, assuming 60 was the frame
786rate (this is not perfect but should work for almost all cases).
787[Aaron Giles]
296Added flags to the CHD metadata entries, encoded in the top bit. Right
297now it is a no-op, but eventually will be used to indicate which bits
298of metadata are included in the overall checksum. [Aaron Giles]
788299
789Changed MDRV_WATCHDOG_INIT_TIME(x) to automatically prepend
790UINT64_ATTOTIME_IN_ to the parameter, ensuring there is no improper
791use of this macro and bringing it in line with the MDRV_QUANTUM_TIME()
792macro. Updated all callers. [Aaron Giles]
300Fixed gcc 4.4 compilation error. [Belegdol]
793301
794Added new MDRV_QUANTUM_PERFECT_CPU(x) to specify that the minimum
795quantum should be enough to ensure that the specified CPU tag only
796ever executes a single instruction at a time. This can be used to
797explicitly require "perfect" synchronization for drivers that have
798multiple CPUs with shared memory. Turned this on for the arknoid2
799driver for now as a test (the interleave on that driver was already
800very close to perfect anyway). [Aaron Giles]
302Fixed auditing of ROM-less systems (for MESS). [Rene Reucher]
801303
802Fixed some color issues in the goldstar.c driver [David Haywood]
304Another round of static/const qualifier additions, plus a rename of
305has_addon_chip to snes_has_addon_chip.  Notably a number of
306z80ctc_interface are now const (devicification must have removed the
307cases where it was dynamically modified). [Atari Ace]
803308
804Merged goldstar and lucky8 drivers. [David Haywood]
309Added the correct gfx roms to jjsquawkers bootleg. [David Haywood]
805310
806Improvements to ddragon3/shadfrce/wwfsstar/wwfwfest: [Mamesick]
807 - converted driver to be fully scanlines based using timers
808 - updated driver to new video screen raw parameters
809 - hooked up interrupts (ddragon3, wwfwfest)
311sfbonus version cleanups part 1. [David Haywood]
810312
811Fixed Agress' title screen. [David VanVoorhis]
812313
813Fixed update_handler for the dsp56k and polygonet. [Andrew Gardner]
814314
815Improvements to the dmndrby.c driver. [Mike Green]
816
817Continued rewrite of the Motorola DSP56k CPU core. [Andrew Gardner]
818 * Fixed flag calculation and sign extension for numerous ops.
819 * Added rnd, mpysuuu, and dmac ops.
820 * Fixed do loop behavior to skip empty loops.
821 * Added stack underflow exception handling.
822
823Improvements to the skylncr.c driver: [Roberto Fresca, David Haywood]
824 - Complete reel support from the scratch.
825 - Full inputs, outputs & DIP switches from the scratch.
826 - Added new games.
827 - Updated technical and game notes.
828
829Rewrote 8080/8085 interrupt handling so that it makes sense. Changed
830callbacks to be specified in a config structure. Converted core to
831cpu_state_table. Changed to a single HAS_808X define for both cores.
832Fixed several drivers that used 8080/8085 interrupts in odd ways.
833[Aaron Giles]
834
835Converted warpwarp driver to raw video parameters. [Aaron Giles]
836
837Fixe 'run to cursor' and 'toggle breakpoint' operations in the
838debugger when dealing with CPUs that have shifted address spaces.
839[Andrew Gardner]
840
841Improvements to goldstar.c driver. [Roberto Fresca]
842 - Hooked the 3x PPI 8255 devices to chryigld and ncb3.
843 - Reworked the chryigld and ncb3 inputs based on PPI 8255 connections.
844 - Added the unmapped PSG sound to chryigld and ncb3.
845 - Some works on their machine driver.
846 - Some cleanups.
847
848
849
850315New games added or promoted from NOT_WORKING status
851316---------------------------------------------------
852Country Girl [David Haywood, Angelo Salese]
8534nin-uchi Mahjong Jantotsu [David Haywood, Angelo Salese]
854Three Ds - Three Dealers Casino House [David Haywood, Angelo Salese]
855Sky Lancer (Bordun, ver.U450C) [Roberto Fresca, David Haywood]
856Butterfly Video Game (ver.U350C) [Roberto Fresca, David Haywood]
857Mad Zoo (ver.U450C) [Roberto Fresca, David Haywood]
858Casino Winner [Chris Hardy, Angelo Salese]
859Cherry I Gold (bootleg of Golden Star) [Roberto Fresca]
317Great Sluggers 94 (Japan) [Phil Bennett]
318Daisyarin [Yasuhiro Ogawa]
319Mahjong Club [Yasuhiro Ogawa]
860320
861321
862322
863323New clones added
864324----------------
865Jolly Card (italian, encrypted bootleg) [Roberto Fresca]
866Double Dragon 3 - The Rosetta Stone (prototype) [Guru]
325Violence Fight (Japan)
326Joker Poker (Version 16.03BI) [Jim Stolis] (not working)
327Scud Race (Japan) [Leif Hurst] (not working)
328Splatter House (World new version) [Andy Henderson]
329New clones: T-MEK (3 sets) [Lars Bull]
867330
868331
869332
870333New games marked as GAME_NOT_WORKING
871334------------------------------------
872Grand Prix 98 [David Haywood]
873Leader [Roberto Fresca, David Haywood]
874Parent Jack [David Haywood]
875Janshi [David Haywood]
876Cherry Master I (v1.01) [Roberto Fresca, David Haywood]
335Tokimeki Mahjong Paradise Doki Doki Hen [Uki]
336E-Jan Sakurasou [Uki]
877337
878338
879339
8800.128u6
3400.129u5
881341-------
882342
883343
884344MAMETesters Bugs Fixed
885345----------------------
886- 02728: [Crash/Freeze] galpani3: 'Illegal Instruction' after ROM Check
887         (R. Belmont)
888- 02739: [Sound] skysoldr: In-game music (three level BGMs and boss theme)
889         plays one octave higher. (Phil Bennett)
890- 02718: [Crash/Freeze] zigzag, zigzag2: Don't boot correctly. The screen
891         just flashes over and over. (Aaron Giles)
892- 02730: [Crash/Freeze] fiveside: locks up at rom check (Aaron Giles)
893- 02740: [Debugger] resizing the debug window, the text is only in the
894         old area (Aaron Giles)
895- 02721: [Crash/Freeze] All Sets in arcadia.c: Games not booting, they
896         just keep resetting to a white screen. (Aaron Giles)
897- 02661: [Gameplay] f1gpstr2: Game freezes upon reaching track (Mamesick)
898- 02708: [Crash/Freeze] wildplt: Gameplay freezes at start (Mamesick)
899- 02724: [DIP/Input] elgrande, jjpoker, ssipkr24: Unable to locate input
900         port 'SW2'. (Roberto Fresca)
901- 02677: [Graphics] eprom, eprom2: missing graphical brightness effect,
902         verified on real machine w/video (Nicola Salmoria)
346- 02923: [Misc.] sonicbom: [debug] Writes extensively to the console
347         (Aaron Giles)
348- 02930: [Compiling] cpu.mak typo and fix (emuman)
349- 02825: [Crash/Freeze] crossbow: Crash on "Crossing Bridge" stage
350         (Aaron Giles)
351- 02949: [Documentation] chocomk: Year is 2002 and the manufacturer is
352         Ecole Software. (incog)
353- 02950: [Documentation] bestri: Year of release is 1998. (incog)
354- 02958: [Documentation] magictg, magictga: The year is 1997 according
355         to flyer (incog)
356- 02951: [Documentation] vgoalsoc, vgoalsca: The year is 1994. (incog)
357- 02952: [Documentation] nss_sten: Year is shown on title screen as
358         1991. (incog)
359- 02955: [Documentation] parentj: Year is 1989 according to the title
360         screen. (incog)
361- 02939: [Documentation] gp98: Year and manufacturer are 1998, Romtec
362         Co. LTD according to the title screen. (incog)
363- 02938: [Documentation] mblkjack: Black Jack (Mirco) is actually
364         Called 21 and the year is 1976. (incog)
365- 02956: [Documentation] bigkong: Year is 1981 according to the title
366         screen. (incog)
367- 02962: [Sound] All Sets in thepit.c: No Audio (Aaron Giles)
368- 02954: [Crash/Freeze] sfiii: SFIII crashes when it hits the Capcom
369         logo on load. (David Haywood)
370- 02944: [Crash/Freeze] mustangb, tdragonb: Access Violation
371         (Phil Bennett)
372- 02946: [Crash/Freeze] pachifev: [debug] Assertion (Angelo Salese)
373- 02947: [Crash/Freeze] turbosb6, turbosb7: [debug] Assertion
374         (Phil Bennett)
375- 02927: [Crash/Freeze] Many Sets using segaic16.c: Crash/Freeze while
376         starting (Atari Ace)
377- 02943: [Crash/Freeze] majxtal7, mjelct3, mjelct3a, mjelctrb,
378         mjelctrn, neruton : Unable to locate input port 'DSW2'
379         (Fabio Priuli)
380- 01059: [Sound] brubber: Low pass filtering on engine and explosion
381         sounds is not emulated in MAME. (couriersud)
382- 02935: [Crash/Freeze] All Sets in zn.c: Various Freeze/Hang/Reset
383         Issues (smf)
384- 02920: [Crash/Freeze] tetrsark: devcb_resolve_read8 error
385         (Fabio Priuli)
386- 02940: [Crash/Freeze] horshoes, plotting and clones: Game Hangs upon
387         startup (Fabio Priuli)
388- 02937: [Sound] silkroad: Sound not playing. (Angelo Salese)
389- 02212: [Save/Restore] bzone: vector drawing corruption when using a
390         save state (couriersud)
391- 02931: [Sound] Many sets using YM2151 Sound Core: Distorted or
392         otherwise incorrect sound (Phil Bennett)
393- 02921: [Crash/Freeze] bkraidj, bkraidu, bkraiduj: [debug]
394         Assertion (Phil Bennett)
395- 02924: [Crash/Freeze] frogs: [debug] Assertion (Phil Bennett)
396- 02929: [Sound] All sets using k007232.c Sound Core: Garbled Music
397         (Phil Bennett)
398- 02928: [Sound] prehisle, gensitou: Many sound FX are missing
399         (Phil Bennett)
400- 02922: [Crash/Freeze] Most sets in cave.c: Game Freeze during
401         demontration/Intro (Phil Bennett)
903402
904403
905404
906405Source Changes
907406--------------
908Pointer-ified the following CPU cores:
909 - DSP32 [Aaron Giles]
910 - m6805 [Andrew Gardner]
911 - MIPS 3 [Aaron Giles]
912 - PowerPC [Aaron Giles]
913 - Konami [Aaron Giles]
914 - ARM [Andrew Gardner]
915 - SHARC [Atari Ace]
916 - V60 [Aaron Giles]
917 - Z8000 [Aaron Giles]
918 - Z180 [Aaron Giles]
919 - V810 [Aaron Giles]
920 - V30MZ [Aaron Giles]
921 - PDP1/TX0 [Wilbert Pol]
922 - H6280 [Andrew Gardner]
923 - F8 [Atari Ace]
924 - TLCS-90 [Atari Ace]
925 - Cube Quest CPUs [Aaron Giles]
926 - i86/i286 [Aaron Giles]
927 - i386 [Aaron Giles]
928 - ALPHA-8201 [Aaron Giles]
929 - i8085 [Aaron Giles]
930 - APEXC [Aaron Giles]
931 - RSP [Aaron Giles]
932 - MB88 [Aaron Giles]
933 - MB86233 [Aaron Giles]
934 - TMS7000 [Aaron Giles]
935 - SH2 [Aaron Giles]
936 - SH4 [Aaron Giles]
937 - uPD7810 [Aaron Giles]
938 - TMS32051 [Aaron Giles]
939 - MC68HC11 [Aaron Giles]
940 - CP1610 [Aaron Giles]
941 - LH5801 [Aaron Giles]
942 - LR35902 [Aaron Giles]
943 - PDP1 [Aaron Giles]
944 - Saturn [Aaron Giles]
945 - SC61860 [Aaron Giles]
946 - TMS32010 [Quench]
947 - PIC16C5x [Quench]
948 - TMS99xx [Aaron Giles]
949 - TMS32025 [Quench]
950 - dsp56k [Quench]
407Fixed Pachi Fever ADPCM test regression. [Angelo Salese]
951408
952Enabled all CPU cores/variants. Fixed compile issue revealed as a
953result. [Aaron Giles]
409Added ATTR_NOTNULL to DAC sound calls. [Nathan Woods]
954410
955Changed konami setlines callback to pass a device. Updated all drivers
956accordingly. [Aaron Giles, Atari Ace]
411Decrypted new opcodes for Fire Barrel. [Chris Hardy]
957412
958Added best-known CRC in wb90b2 and jjsquawb "bad dump" roms. [robiza]
413Fixed regressed rowscroll effect for Fire Barrel [Angelo Salese]
959414
960Made the PCI bus a device. The bus is declared in the machine config,
961and the devices attached to it are enumerated there. Eventually, the
962PCI config read/write functions should be moved to well-known
963functions within the device, but for now they are kept separate.
964[Aaron Giles]
415Corrected gfx bitplane for Astro Wars [Angelo Salese]
965416
966Added correct proms for arkgcbl. [robiza]
417Device-ized the SID code. [Nathan Woods]
967418
968Changed many, many global Machine references to use machine,
969device->machine, etc. instead. [Atari Ace]
419Apache 3 improvements [Phil Bennett/Guru]:
420 * Experimental road layer emulation (currently disabled).
421 * Fixed text layer alignment.
422 * Corrected CPU clock frequencies.
423 * Fixed YM-2151 volume.
424 * Added road stripe PROM.
970425
971Changed megadriv.c to pass running_machine to I/O callbacks plus other
972MESS support. [R. Belmont]
426Removed earom from bzone. [couriersud]
973427
974Re-synced f3853 core with MESS. [Nathan Woods]
428Impemented CRCL command in hd63484 (used in skattv test mode).
429[robiza]
975430
976Introduced function macros for SAMPLES_START, CUSTOM_{START,STOP,RESET},
977and ANTIC_RENDERER. Pushed the running_machine * passing through these
978functions. In other locations added "running_machine *machine = Machine"
979to the top of functions to isolate the dependencies. [Atari Ace]
431Added save state support to tomcat, tempest, quantum, asteroid,
432bwidow, mhavoc, omegrace. [couriersud]
980433
981Added logic to track OSD debugger updates separately from internal
982view updates. In order to get the OSD to update, a new function
983debug_view_flush_updates() must be called. Currently this is
984automatically called before osd_wait_for_debugger(), and during the
985periodic updates while executing. The OSD code may occasionally need
986to call it under other circumstances (for example, the Windows code
987calls it explicitly while tracking scrollbar thumbs to get live
988scrolling). [Aaron Giles]
434Device-ified the Atari mathbox. [couriersud]
989435
990Updated gradius2 to use proper gfx2 roms (same values of vulcan but
991byteswapped). [robiza]
436Device-ified the Atari vector generators. [couriersud]
992437
993Disabled the use of PULSE_LINE for any input lines except NMI and
994RESET. Added a helper function generic_pulse_irq_line() for doing a
995single-cycle assert/deassert for those few drivers remaining that were
996trying to use PULSE_LINE directly. [Aaron Giles]
438Added register SXFER (0x05) to the 53c810 - Nothing more. This reg
439determines SCSI transfer speeds. scud / scuda now fatalerror with
440writes to reg # 0x70. [couriersud]
997441
998Updated z8000 tables to reflect recent findings. [Juergen Buchmueller]
442Added mtonic decryption. [Olivier Galibert]
999443
1000Fixed the widely used konamiic/taitoic/deco16ic/segaic16 video cores
1001to no longer reference the global Machine. [Atari Ace]
444Provided color prom to Cow Race [Tomasz Slanina, Angelo Salese]
1002445
1003Added wrappers for ADSP21xx callbacks. Added device parameters to them.
1004Updated IRQ setters to use generic_pulse_irq_line(). [Aaron Giles]
446Quick hack to delay installing the spu dma handler until the first
447write to the spu as driver init is now called after the devices are
448created. [smf]
1005449
1006Added MDRV_PIC8259_ADD, MDRV_PIT8353_ADD, MDRV_PIT8254_ADD, and
1007MDRV_DMA8237_ADD macros. [Wilbert Pol]
450Added discrete filtering and fixing to bking.c. [couriersud]
1008451
1009Added the sound device to the parameters passed to stream_create so
1010that the global Machine can be removed from streams.c. [Atari Ace]
452Added some missing robadv2 sets to sfbonus.c. [David Haywood]
1011453
1012Improvements to Millennium 4000 driver: [Roberto Fresca]
1013 - Completed normal Inputs/Outputs.
1014 - Added button-lamps calculation.
1015 - Created button-lamps layout.
1016 - Documented the PCB RAM.
1017 - Fixed NVRAM size based on PCB picture (2x CY62256L-70PC near the
1018    battery).
1019 - Added notes about the method to make appear the real poker cards.
1020 - Fixed the OKI 6295 frequency (1000 kHz resonator near). Now the
1021    game has more decent sounds.
1022 - Corrected CPU clock to 12 MHz. (main Xtal).
454Partially fixed asurabld/asurabus sound regression. [Phil Bennett]
1023455
1024Updated adp driver: now fashiong show something. [robiza]
456XTAL and divisors for rocnrope verified in schematics. [couriersud]
1025457
1026Widened some machine init interfaces to pass the machine parameter,
1027allowing more Machine global references to be eliminated. Eventually
1028most of these need to be converted to devices, but this change reduces
1029the deprecation surface in the meantime. [Atari Ace]
458Added a debug viewer for the blitter-based gfxs in the itgambl3.c.
459[Angelo Salese]
1030460
1031Relaxed the OKI 6295 command validity check. [Nicola Salmoria]
461Added a debug viewer for the blitter-based gfxs in the itgambl2.c.
462[Angelo Salese]
1032463
1033Added new function cpuexec_describe_context(machine) which can be
1034used in logerror() and other printf-style functions to return a
1035description of the current CPU/PC given only the machine. Changed
1036several dozen sites to use this instead of directly interrogating
1037the activecpu. [Aaron Giles]
464Renamed a number of commonly-used but confusing device tags. The plan
465is to move away from generic names like "main" to names that capture
466the device type as well. This will allow searches for devices to be
467based on tags alone. Added validity checks to prevent the continuance
468of this pattern (which I started :), and to ensure that all devices
469have unique tags, regardless of type. [Aaron Giles]
1038470
1039Removed all other uses of activecpu throughout the system. Removed
1040activecpu from the machine structure to prevent future abuse.
1041[Aaron Giles]
471  Changes:
472    CPU/"main" -> "maincpu"
473    CPU/"audio" -> "audiocpu"
474    CPU/"sound" -> "soundcpu"
475    SCREEN/main -> "screen" (since it's the only one)
476    SPEAKER/"left" -> "lspeaker"
477    SPEAKER/"right" -> "rspeaker"
478    SCREEN/"left" -> "lscreen"
479    SCREEN/"right" -> "rscreen"
480    SCREEN/"middle" -> "mscreen"
481    SCREEN/"center" -> "cscreen"
1042482
1043Removed cpu_push_context() and cpu_pop_context(), and all call
1044sites. [Aaron Giles]
483Corrected rom names in tnzs.c for older TNZS sets. [Brian Troha]
1045484
1046Voodoo devices now require a CPU to be defined in the configuration
1047in order to know whom to steal cycles from or stall when FIFOs get
1048full. Updated all voodoo users to specify one. [Aaron Giles]
485Hooked up the reel background colour writes to cherry master / new
486fruit bonus '96 etc. [David Haywood]
1049487
1050CPD1869 devices now also require a CPU to be defined in the
1051configuration, in order to know which CPU's registers to fetch.
1052Updated all cdp1869 users to specify one. [Aaron Giles]
488Fixed rom loading in secretab. [Angelo Salese]
1053489
1054Removed get context/set context calls from the CPU interface entirely.
1055[Aaron Giles]
490Added BellFruit Scorpion 1, Bellfruit System 85, Maygay M1B and
491Maygay M2 systems from AGEMAME. MPU4 Mechanical improvements have been
492made, making mpu4.c the mechanical driver, and mpu4drvr the non-
493mechanical one. This only leaves JPM impact (mechanical skeleton),
494Maygay M2 and MPU3 (mechanical skeleton) to be ported from the
495AGEMAME codebase. There's also been a cleanup sweep on Scorpion2, we
496were declaring too many versions of the same function, and the reel
497drawing code had stopped working. Both of these are now fixed.
498[James Wallace]
1056499
1057Removed safe_cpu_get_pc() which doesn't really make sense anymore.
1058[Aaron Giles]
500Improved note about cherry master girl display [David Haywood]
1059501
1060Moved cpu_execute() to be an inline function. [Aaron Giles]
502M79-Ambush - Added Discrete sounds, fixed DIPs and added Self Test
503Lamp Output. [Derrick Renaud]
1061504
1062Writes to a pit8253 timer control word always restart the timer.
1063[Wilbert Pol]
505Fixed oki frequency in galhustl. [Sonikos]
1064506
1065Updated the fcompress APIs to allow for specifying a compression level.
1066[Aaron Giles]
507Optimized the rendering loop in mcatadv. [Christophe Jaillet]
1067508
1068Removed the concept of state saving tags, which was a hack to get save
1069states to work with multiple CPU cores. Simplified the state saving
1070system as a result, performing the operation in a single pass and
1071without allocating a full blob of memory. Also enabled minimal
1072compression. [Aaron Giles]
509Added missing static qualifiers to the code. [Atari Ace]
1073510
1074Squashed another deprecated use of Machine from the mame core by
1075plumbing machine_config into rendlay.c. [Atari Ace]
511Added correct ROMs for Super Triv III. [Smitdogg]
1076512
1077Fix Altivec RGB primitives on newer GCCs. [budge, Vas Crabb]
513Fixed mjelctrn DSW read handler to agree with new tags. [Fabio Priuli]
1078514
1079Changed commonly-used verboselog to require a machine parameter.
1080[Atari Ace]
515Added support for the /PC output pin to the CIA emulation. [Dirk Best]
1081516
1082Removed remaining deprecat.h references from the CPU and sound cores.
1083[Atari Ace]
1084517
1085i8085: added INTE and state word callbacks [Curt Coder]
1086518
1087n8080.c changes: [Curt Coder]
1088 - rewrote interrupt handling according to schematics
1089 - added interrupt acknowledge
1090
1091Re-ordered SCSP init to fix crash. [R. Belmont]
1092
1093Modified regrep to display the soruce file. [Aaron Giles]
1094
1095Expanded cpuexec cycles <-> attotime functions to handle UINT64s.
1096[Aaron Giles]
1097
1098Reduced all alpha68k.c YM2413 clocks from 8MHz to 3.579545MHz.
1099[Philip Bennett]
1100
1101Changed attotime_to_ticks/ticks_to_attotime to use UINTs and the
1102eminline functions where possible. [Aaron Giles]
1103
1104Changed the 6522 VIA implementation to be a device. [Nathan Woods]
1105
1106Removed the ACIA6850 device from Cal Omega System 905 machine driver.
1107It fixes the wrong lack of SW2. [Roberto Fresca]
1108
1109Fixed EI handling in the 8080/85 core to have a shadow like the Z80.
1110[Miodrag Milanovic]
1111
1112Modified the tms34010.h, pc16552.h, and tms34061.h interfaces to
1113eliminate some more global Machine variables. Six more deprecat.h
1114includes eliminated. [Atari Ace]
1115
1116Eliminated the #include "deprecat.h" from tilemap.c. The main change
1117is to require callers of tilemap_create to provide a machine pointer.
1118This pointer is then attached to the tilemap and used when needed
1119inside tilemap.c. [Atari Ace]
1120
1121Eliminated the #include "deprecat.h" from drawgfx.h.  It does so in a
1122fashion similar to my recent tilemap patch, adding the machine pointer
1123to gfx_element, changing allocgfx to take a machine, and then
1124adjusting the internals to use the machine field as needed.
1125[Atari Ace]
1126
1127i960: fixed nor opcode and added notor opcode [robiza]
1128
1129Fixed raster effects in nbbatman by altering the V33 prefetch timing
1130(just a guess as no documentation has been found). [couriersud]
1131
1132Removed unnecessary address masking in disassembly view. Changed
1133console subview computations to leave the registers portion fixed.
1134[Aaron Giles]
1135
1136Removed hack for setting mcs51 serial callbacks. Updated micro3d to
1137use new functions. [Aaron Giles]
1138
1139Merged goldstar.c & cmaster.c drivers. Converted the Reels video to
1140tilemaps. [David Haywood]
1141
1142Added proper artwork for the LEDs in Gridiron Fight. [David Haywood]
1143
1144
1145
1146519New games added or promoted from NOT_WORKING status
1147520---------------------------------------------------
1148Super Pool 99 [David Haywood, Angelo Salese]
1149Bra$il / Fashion [Angelo Salese]
1150Pesadelo [Mariusz Wojcieszek, hap]
1151Super Free Kick [Tomasz Slanina]
1152Jangou [David Haywood, Angelo Salese, Phil Bennett]
1153Jangou Lady [David Haywood, Angelo Salese, Phil Bennett]
521Monoshiri Quiz Osyaberi Macha [Yasuhiro Ogawa]
522Gals Panic S3  [Uki, David Haywood]
523  (see http://mamedev.emulab.it/haze/ for details)
524King Derby
525  [Stefan Lindberg, Andrew Gardner, Angelo Salese, Roberto Fresca]
526Makaijan [Yasuhiro Ogawa]
1154527
1155528
1156529
1157530New clones added
1158531----------------
1159Europa 2002 Space (Ver 3.0) [Roberto Fresca]
1160Triv Two (Vertical) [David Haywood]
1161Super High Impact (prototype, rev 6.0 09/23/91) [Smittdogg]
1162Giga Man 2: The Power Fighters [David Haywood, Arzeno Fabrice]
1163CarnEvil (v1.0.3) [Brian Troha]
1164(New?) Cherry Bonus III (not working) [David Haywood]
1165Cherry Bonus III (not working) [David Haywood]
532The Pit Boss (set 4) [Brian Troha]
533Apache 3 (Kana Corporation license) [Guru]
534Great Sluggers 94 (Japan) (not working) [Yasuhiro Ogawa]
535Dangerous Dungeons (The Game Room) (newer?) [Smitdogg]
536Automat (bootleg of Robocop)
537  [Andrew Welburn, Philip Bennett, David Haywood]
53810's or Better [Gyrovision]
539Super Heli (Super Cobra bootleg) [Smitdogg]
540The New Zealand Story (World, old version, older pcb) [Corrado Tomaselli]
541Pipe Dream (World) [Corrado Tomaselli]
542U.S. Championship V'ball (US) [Smitdogg]
1166543
1167544
1168545
1169546New games marked as GAME_NOT_WORKING
1170547------------------------------------
1171Cherry Bonus 2001 [David Haywood, robiza]
1172Four Roses (encrypted, 2 sets) [Roberto Fresca]
1173Queen [David Haywood]
1174Cherry Master (Corsica, v8.01) [David Haywood]
1175Cherry Master 91? [David Haywood]
1176Jackie [David Haywood]
548Gran Tesoro? [f205v]
549Heavy Unit (3 sets)  [Tomasz Slanina, Corrado Tomaselli]
550Kung-Fu Roushi [Angelo Salese, Roberto Fresca]
551Diamond Touch (E - 30-06-97, Local) [Heihachi_73]
552Adonis (A - 25-05-98, NSW/ACT) [Heihachi_73]
553Super Jolly [f205v]
1177554
1178555
1179556
11800.128u5
5570.129u4
1181558-------
1182559
560WARNING: This build has a major change in it (sound chips are now
561devices) that may lead to some unexpected errors or sound problems.
562Please report any issues you find over at
563http://mametesters.org/mantis
1183564
565
566
1184567MAMETesters Bugs Fixed
1185568----------------------
1186- 02638: [Compiling] various cpu cores don't compile anymore
1187         (Aaron Giles)
1188- 02709: [Documentation] nstockr2: nstockr2 not defined as clone of
1189         nstocker? (Luigi30, Edward Swiftwood)
1190- 02713: [Crash/Freeze] demndrgn, profpac: demndrgn gives a black
1191         screen only. profpac doesn't accept coins. (Aaron Giles)
1192- 01442: [Sound] wwfsstar: The OKI6295 playback frequency is too high.
1193         (Phil Bennett)
1194- 00894: [Crash/Freeze] elecyoyo: Inserted coins and pressing start
1195         sometimes leads back to the test menu. (Mamesick)
1196- 02658: [Interface] Supplement game status reports with yellow screen
1197         (Edward Swiftwood)
1198- 02689: [Multisession] jumpbug: Jumpbug won't start second time
1199         around (Atari Ace)
1200- 02673: [Crash/Freeze] All Sets with HuC6280 as Audio Device
1201         (PCE-Based titles): Fatal Error after OK (Aaron Giles)
1202- 02676: [Color/Palette] All Laserdisc Games: Wrong colors using
1203         Direct3D on ATI cards. (Aaron Giles)
1204- 02680: [Misc.] carnevil: -verifyrom fails to consider if a CHD is a
1205         BAD_DUMP (Aaron Giles)
1206- 02705: [Crash/Freeze] connect4: connect4 crashes if nvram file is
1207         present (Aaron Giles)
1208- 02702: [Sound] tturf: no audio (Aaron Giles)
1209- 02691: [Sound] Some drivers with z80/ay8910 Audio: Audio tempo has
1210         changed (Aaron Giles)
1211- 02669: [Sound] pandoras: music tempo is too fast (Aaron Giles)
1212- 02683: [Crash/Freeze] Pressing F5 while running debugger causes
1213         access violation (Aaron Giles)
1214- 02687: [Core] emuopts.c: CORE INPUT AUTOMATIC ENABLE OPTIONS
1215         (Aaron Giles)
1216- 02688: [DIP/Input] DIP switch settings are not being stored in INP
1217         files. (Aaron Giles)
1218- 02693: [Crash/Freeze] dacholer, kickboy: Freeze on the title or
1219         credit. (Mamesick)
1220- 02653: [Sound] all games on artmagic.c: OKI clipping in artmagic
1221         games (Nicola Salmoria)
1222- 02690: [Graphics] jantouki: The upper screen is totally garbled.
1223         (Mamesick)
1224- 02672: [Crash/Freeze] Most Sets using MCS48/51.C (intel 80xx family):
1225         Fatal Error when using -cheat trigger (Aaron Giles)
1226- 02670: [Core] Many sets using SH2: The SH2 timers aren't firing at
1227         the correct speed / time, causing various issues (Aaron Giles)
569- 02893: [Crash/Freeze] Most sets in galdrvr.c: Crashes with devcb
570          dialog. (Aaron Giles)
571- 02890: [Crash/Freeze] pitboss, pitbossa: Pit Boss and clone crashes
572          with devcb dialog (Roberto Fresca)
573- 00754: [Sound] mikie: Background music problem in the locker room
574          level. (Nicola Salmoria)
575- 02918: [Graphics] psychosj psychos: Title screen graphic glitch
576          (Nicola Salmoria)
577- 02907: [Gameplay] spnchout, spnchotj: Time count on insert coin screen
578          runs out very quickly - Play buttons not working
579          (Nicola Salmoria)
580- 02917: [Misc.] himesiki: Array index out of bound (Phil Bennett)
581- 02895: [Color/Palette] macrossp: Wrong colors in "area clear" screen
582          (Angelo Salese)
583- 02860: [Crash/Freeze] mach3, usvsthem: Error at the start (Aaron Giles)
584- 00808: [Graphics] xsleena: There appears to be a small line of
585          graphics missing on a couple of characters.
586- 02801: [Misc.] cafetime: Clock shows AM instead of PM (couriersud)
587- 01785: [Misc.] mjmyornt and more: AM/PM is ignored when the clock time
588          is retrieved from RTC (couriersud)
589- 02896: [Misc.] Drivers using MSM6242.h: MSM6242 ignores AM/PM bit
590          (couriersud)
591- 02897: [Sound] soldivid: Audio regression (Haze)
1228592
1229593
1230594
1231595Source Changes
1232596--------------
1233Fixes subtle timing calculation problems that affected SH-2 timers.
1234[Aaron Giles]
597Fixed Casino 5 hang on the Horse Racing game [Angelo Salese]
1235598
1236Fixed copy/paste error on viostorm rom names. [David Haywood]
599Fixed compile quirk with Funcube2/4 [Angelo Salese]
1237600
1238Made non-critical UI warnings yellow instead so that they stand out.
1239[BarnacleEd]
601Added minor additional information and OSC info to volfied driver.
602Also added two BPROMs not included before. [Brian Troha]
1240603
1241Added Treasure Island to the Burger Time HW. It doesn't work because
1242I highly suspect that there's an unhandled encryption scheme in it.
1243[Angelo Salese]
604Opcode accesses are now marked debugger_access. This is important
605with the recent changes to automatically call the read handler if the
606opcode base cannot be found. Changed logging for non-RAM opcode bases
607so that it does not output in the case of debugger_access being set.
608[Aaron Giles]
1244609
1245Pointer-ified the CCPU and T-11 cores. [Aaron Giles]
610Fixed logic for deriving direct ranges so that it uses the non-
611watchpoint-infected tables for its lookups. [Aaron Giles]
1246612
1247Removed globals from cpuexec. Also removed ATTOTIME_TO_CYCLES() and
1248ATTOTIME_IN_CYCLES(). Replaced them with functions in cpuexec:
1249cpu_clocks_to_attotime() and cpu_attotime_to_clocks(), both of which
1250take CPU devices instead of indexes. Updated all callers, many of
1251which were using the functions dubiously. [Aaron Giles]
613Changed memory_set_direct_region to pass the address returned from
614the DIRECT_UPDATE_HANDLER back to the memory read function. [smf]
1252615
1253Added placeholders for interrupt callback and Z80 daisy chain
1254functions in Z80DMA. [Curt Coder]
6166850acia: Only adjust the rx/tx bit timers on a control write if the
617divide ratios have changed. [Phil Bennett]
1255618
1256Pool items are now tracked globally, and freed in reverse order of
1257allocation. This enables proper nesting. [Aaron Giles]
619Added the ability to invoke CPU input lines with devcb callbacks.
620Changed sp0256 to use devcb callbacks. Updated sauro driver to use
621this new feature. [Nathan Woods]
1258622
1259Changed timer_alloc, timer_set, timer_pulse, timer_call_after_resynch,
1260and timer_get_time to pass the machine parameter. Moved timer globals
1261to hang off of the running_machine. [Aaron Giles]
623Added PCB layout for Funcube and corrected rom names based on a hi-
624res photo of the PCB. [Brian Troha]
1262625
1263Pointer-ified the hyperstone core, and removed all activecpu refs.
1264[Aaron Giles]
626Improve disassembly of R3000 code that uses the TLB or FPU.
627[R. Belmont]
1265628
1266Removed cpunum_get_active() calls and activecpu references from all
1267of the CPU cores. [Aaron Giles]
629Added new game Number Dieci [Mirko Buffoni]
630 - Seems a IGS poker hack to comply with 2000's Italian law
631 - Sound synthesys have been replaced by OKIM Adpcm samples
632 - Some patched out routines have been recovered to allow test mode
633    dsw mapping
634 - Mapped Stelle e Cubi to this memory map, something shows but
635    graphic is from a bad dump
1268636
1269Normalized several local CPU state variables to the generic 'cpustate'
1270instead of names_with_underscores. [Aaron Giles]
637Added new game PK Tetris [Mirko Buffoni]
638 - Strange game with an amusement part (sort of Tetris mixed with
639    Poker)
640 - Amuse input not mapped, may be necessary for the amusement part
641    which can be disabled via DSW
1271642
1272Added macros to access ROM and MACHINE_DRIVER by name. [Curt Coder]
643Fixed various issues with "Il Pagliaccio" driver: [Angelo Salese]
644 * Fixed rom source reading for the blitter;
645 * Properly use height/width params for the blitter;
646 * Hooked up the backup ram;
647 * Added basic inputs;
648 * Removed deprecat.h dependancy;
1273649
1274Normalized CDP1802 state variables to 'cpustate'. [Curt Coder]
650Moved over some of the AGEMAME drivers
651[David Haywood, thanks to James Wallace / ageMAME]
1275652
1276Removed all references to cpunum_get_active() and removed the function
1277entirely. [Aaron Giles, Andrew Gardner]
653Further fixes with "Il Pagliaccio" blitter: [Angelo Salese]
654 * Fixed Transparency pens;
655 * Fixed color pens for the charset;
1278656
1279Updated t5182 memory mapping a bit to properly handle mirrored areas;
1280added comments about how shared ram works. [Lord Nightmare]
657Merged Strip Teaser and Il Pagliaccio driver, fixed the layer
658clearance for both and added a preliminary MCU simulation for the
659former. [Angelo Salese]
1281660
1282Fixed reversed VBLANK-IN/OUT events in ST-V. Fixes hanagumi/groovef 2
1283credits at start-up. [Angelo Salese]
661Relaxed 8 letter setname limitation for clone sets - this is designed
662to make it easier to add simple suffixes to clone names without
663truncating the original set name, it isn't designed to be abused and
664used as an alternate description. [Olivier Galibert]
1284665
1285Added ATTR_NONNULL to various declarations. [Nathan Woods]
666Made the 6522 VIA implementation use devcb. [Nathan Woods]
1286667
1287Pointer-ified the 65816. [R. Belmont]
668Changed 6526cia to use devcb. [Nathan Woods]
1288669
1289Many improvements on the irq handling of the ST-V driver:
1290    [Angelo Salese, Charles MacDonald]
1291 * Fixed a bug with irq timings;
1292 * Added ODD bit emulation;
1293 * Fixed vblank period timings;
1294 * Optimized a bit the whole interrupt routines, getting a 4x speed
1295    gain
1296 * Fixed an irq mask handling bug;
1297This fixes at least Astra SuperStars and Pebble Beach booting, but
1298the latter still fails the timer 1 irq routines...I need to check why)
670Added redumped sound CPU rom for Sega Water Ski. [Brian Troha]
1299671
1300Pointer-ified the SPC700. [R. Belmont]
672Added original Super Poker 115IT [Mirko Buffoni]
673 * Added because 3 Super 8 have SUPER POKER 115IT string inside.
674   3Super8 may be a hack, strings are the same, but code is different
675   though still partially encrypted
1301676
1302Fixed stepping in the debugger. [R. Belmont]
677Added "global column coloring" for Super Draw Poker, colors are now
678100% accurate [Angelo Salese]
1303679
1304ARM7 updates: [R. Belmont]
1305 - Pointer-ified ARM7 core
1306 - Added disassembler and execution support for ARMv5 LDRD/STRD
1307    instructions. 39in1 now makes it until it needs the MMU.
680Fixed disassembler for CPUs with address bus shifts. [Aaron Giles]
1308681
1309The jchan gamse aren't really clones even if they share most of the
1310same roms. They're very different. [David Haywood]
682TMS57002 preliminary implementation. [Olivier Galibert]
1311683
1312Pmpoker.c major rewrite (part 2): [Roberto Fresca]
1313 - Changed the driver name to goldnpkr.c (Golden Poker is the most
1314    representative hardware).
1315 - Splitted the PIA interfases to cover witchcrd/pottenpkr connections.
1316 - Fixed the witchcrd/pottnpkr/sloco93 double up mode.
1317 - Replaced the pottenpkr layout with goldnpkr one in all Jack
1318    Potten's Poker sets.
1319 - Updated game notes for Witch Card and Super Loco 93 sets.
1320 - Fixed al inputs & lamps to allow double up mode to the above games.
1321 - Added Witch Card (Video Klein) but still not working.
1322 - Added several Buena Suerte! sets.
1323 - Added new games: Maverik, Brasil 89 & Poker'91.
1324 - Reworked the sets parent-clone relationship (still in progress).
684Added digital i/o board layout & initial information on the memory
685card board to the Konami System 573 driver. [smf]
1325686
1326Cleaned up gfx decode on Sengoku Mahjong. [Angelo Salese]
687Added redumped non JEDEC roms to Rock 'n Rage (World).
688[Corrado Tomaselli]
1327689
1328Improvements to funworld.c driver [Roberto Fresca, Andreas Naive]
1329 - Decripted saloon's program, graphics and color PROM.
1330 - Created a new memory map and machine driver for saloon.
1331 - Removed set jolycdae (it's not coming from a real board).
1332 - Renamed the sets magiccrd, magiccda and magiccdb, to magicrd2, magicd2a and magicd2b.
1333 - Updated technical notes.
690Added extensive readme doc to the Sega X Board driver. [Guru]
1334691
1335Fixed RGB565 bugs in Ghost Eolith driver. [Angelo Salese]
692Decrypted a large number of games in goldstar.c and sfbonus.c.
693[Olivier Galibert]
1336694
1337Changed oki 6295 to use a reasonable volume table derived from the
1338manual. Added popmessages to notify of invalid commands so we can
1339investigate them if some game uses them. It should also be noted that
1340many games using this chip are clipping at the moment. This is
1341something that might date back to when sound mixing was upgraded to
134232-bit. It is sensible for the 6295 emulator to output at this level
1343because it ensures that bits of precision are not lost, so the mixing
1344levels in the drivers should be adjusted to avoid clipping.
1345[Nicola Salmoria]
695WIP mario update with some FIXMEs [Couriersud, Smitdogg]
696 - Created custom module for run sounds. Running the discrete sound
697    system at 480KHz was not really optimal.
698 - Reviewed parts list, schematics and pcb pictures
699 - Brought mario run sound in line with recordings from Smitdogg
700 - VCO voltage needs to be 0V for this to happen. Verification
701    outstanding
702 - Capacitors needed some ageing applied as well. To be removed once
703    the VCO issue is clarified.
1346704
1347Cool Riders: added an hack for the SH-2, fixed some irqs and some
1348memory maps/ram sharing. Got to the point that area 0x03e00000 on the
1349SH-2 loads some DMA-style tables. (and this is going to be REALLY
1350nasty to do without docs...) [Angelo Salese]
705Refactored the ACIA6850 to use devcb. [Curt Coder]
1351706
1352Added layer enable register, coin counter, coin lockout and cleaned-up
1353the Sengoku Mahjong driver. [Angelo Salese]
707Added a patch to Jackie driver, game now works [Mirko Buffoni]
708 * Added complete reel emulation (thanks to Luca, Angelo and David
709    drivers studied to better understand hardware similarities).
710 * Press T to toggle amuse game, used to mask gambling activities.
1354711
1355Big debugger cleanup: [Aaron Giles]
712Added Champion League [Mirko Buffoni]
713 * Same encryption and patches used in Numero10, but on standard IGS
714    Poker V220I board
715 * Reworked expansion rom memory map handler
1356716
1357  Important note for OSD ports: the get/set property functions have
1358  been retired for debug_views. Instead, there are specific functions
1359  to perform each get/set operation. In addition, the format of the
1360  update callback has changed to pass the osd private data in, and
1361  the update callback/osd private data must be passed in at view
1362  allocation time. And osd_wait_for_debugger() now gets a CPU object
1363  instead of the machine.
717Added effect sound banking, coin counters and sprites - sprites
718priority to silkroad. [Pierpaolo Prazzoli]
1364719
1365  Removed extra debugger tracking for address spaces and added some
1366  of the useful data to the address_space structure. Updated all
1367  debugger commands and views to use CPU and address space objects
1368  where appropriate.
720Made a bunch of improvements to the goldstar driver now that the sets
721are decrypted. [David Haywood]
1369722
1370  Added new memory functions for converting between bytes and
1371  addresses, and for performing translations for a given address
1372  space. Removed debugger macros that did similar things in favor
1373  of calling these functions.
723Revisited seibu decryption. [Nicola Salmoria]
1374724
1375  Rewrote most of the memory view handling. Disasm and register views
1376  still need some additional tweaking.
725Converted all sound chips into proper devices. Merged the sound chip
726interface into the device interface, removing any differences (such
727as the whole ALIASing concept). [Aaron Giles]
1377728
1378  Added the concept of 'subviews' to the debugger views. The core
1379  now creates a list of possible subviews, and the OSD can select
1380  between them. This removes code from the OSD that was previously
1381  required to find all possible memory and disassembly views.
729Modified every sound chip in the following ways: [Aaron Giles]
730 * updated to match the device interface
731 * reduced read/write handlers down to the minimal number
732 * added the use of get_safe_token() for ensuring correctness
733 * other minor cleanup
1382734
1383  Added machine parameters to debugger console output functions.
735Removed the custom sound device. The additional work to just make
736custom sound cases into full devices is minimal, so I just converted
737them all over to be actual devices. [Aaron Giles]
1384738
1385  Moved globals to hang off of the machine structure.
739Vastly simplified the sound interfaces, removing the ghastly
740sndti_* business and moving everyone over to using tags for
741sound identity. sndintrf, like cpuintrf, is now just a header
742file with no implementation. [Aaron Giles]
1386743
1387  Fixed bug where the visiblecpu was not updated immediately upon
1388  a break.
744Modified each and every driver that references a sound chip:
745[Aaron Giles]
746 * all memory maps explicitly reference the targeted device via
747    AM_DEVREAD/AM_DEVWRITE/AM_DEVREADWRITE
748 * 16-bit and 32-bit accesses to 8-bit chips no longer use
749    trampoline functions but instead use the 8-bit AM_DEVREAD/WRITE
750    macros
751 * all references to sound chips are now done via tags
752 * note that these changes are brute force, not optimal; in many
753    cases drivers should grab pointers to devices in MACHINE_START
754    and stash them away
1389755
1390Made the 6850 ACIA a device. [Nathan Woods]
756Fixed a couple of dipswitches for Progress. [Brian Troha]
1391757
1392Re-enabled the OSD key for master volume control. All other sliders
1393are still only accessible via the menus. [Aaron Giles]
758goldstar improvements: [Roberto Fresca]
759 - Full inputs & DIP switches from the scratch for schery97, schery97a
760    and skill98.
761 - Changed the sets description to match the program version.
762 - Cleaned-up the game driver zone for better organization purposes.
763 - Added GAME_NO_SOUND flag to schery97, schery97a and skill98.
764 - Added some program version notes.
1394765
1395Renamed constants: [Aaron Giles]
1396   CPU_IS_LE -> ENDIANNESS_LITTLE
1397   CPU_IS_BE -> ENDIANNESS_BIG
766Fixed a contact MAMEDEV message in cps1.c. [Nicola Salmoria]
1398767
1399To fix 02688 (DIP switch settings are not being stored in INP files),
1400old INP files had to be broken. Since they were already broken, the
1401corefile module was enhanced to support streaming compression, and
1402the new INP files are output and processed compressed. [Aaron Giles]
768Changed sfbonus to use tilemaps. [David Haywood]
1403769
1404Added a number of new cputag_* macros to cpuexec.h. [Aaron Giles]
770Added sound and some scrolling registers to the sfbonus driver.
771Added flipx and basic inputs to the sfbonus.c driver. [Angelo Salese]
1405772
1406Removed fillbitmap() macro in favor of direct calls to bitmap_fill().
1407Note that the parameters to the latter are in a different order
1408(bitmap, clip, color). [Atari Ace]
773Updated the wheelfir.c driver with some additional information.
774[Brian Troha]
1409775
1410Furthered the process of aligning the sound cores with the recent cpu
1411core changes. Added a fake device implementation similar to the one
1412the cpu cores are using. Made some interface adjustments aligned to
1413128u4 (i.e. adding snd_class_header, adding get_ to various getter
1414functions). The primary benefit of this change is the removal of
1415"deprecat.h" from 23 sound cores. Also adjusted ui.c to stop calling
1416sndnum_clock and access the clock data similarly to how it does the
1417cpu clock data. (Note from Aaron: further changes to the sound
1418interfaces will be kept to a minimum until the CPUs are sorted out.)
1419[Atari Ace]
776Correct rom names and PCB locations in the twincobr driver. Corrected
777and added missing proms for Flying Shark (and clones).
778[Brian Troha, Stefan Lindberg]
1420779
1421Fixed 8080 interrupt handling: [Miodrag Milanovic]
1422 1. previous implementation cleared interrupt enable bit on interrupt
1423     trigger which is wrong since interrupts should stay enabled
1424 2. service interrupt number was not cleared after interrupt is
1425     executed, so if same one is triggered it will not be catched.
780Merged brasil.c and highvdeo.c drivers [Angelo Salese]
1426781
1427Made the 6526/8520 CIA implementations be devices. Added
1428differentiation between the r1 and r2 versions of the 6526; not acting
1429on it yet. [Nathan Woods]
782Added basic support of RP5C01 to remove (most) protection kludges in
783Super Punchout. [Nicola Salmoria, Bob Seidel]
1430784
1431Save state system improvements: [Aaron Giles]
1432  Changed save state system to accept machine parameters where
1433  appropriate, and to keep all global variables hanging off the
1434  machine structure. Once again, this means all state registration
1435  call sites have been touched:
785Added correct Midnight Run ROM names [Guru]
1436786
1437    - state_save_register_global* now takes a machine parameter
1438    - state_save_register_item* now takes a machine parameter
1439    - added new state_save_register_device_item* which now uses
1440       the device name and tag to generate the base name
787Added Read Parameter Register support to the hd63484. Moved logging
788behind a define. [Phil Bennett]
1441789
1442Extended the fake sound devices to have more populated fields.
1443Modified sound cores to use tags from the devices and simplified
1444the start function. [Aaron Giles]
790Added PCB layout for Zoar. Corrected AY-3-8910 clocks and added
791missing PROM. [Guru]
1445792
1446Renumbered CPU and sound get/set info constants to align with
1447the device constants, and shared values where they were perfectly
1448aligned. [Aaron Giles]
793More improvements to goldstar.c: [Roberto Fresca]
794 - Added 3 new machine drivers for the different Amcoe games hardware.
795 - Added OKI M6295 support for speech/sounds to schery97, schery97a,
796    skill98, pokonl97 and match98.
797 - Fixed sound support to nfb96, nfb96a, nfb96b, nfb96c, nfb96txt,
798    roypok96, roypok96a, roypok96b, nc96, nc96a, nc96b, nc96c,
799    nc96txt, nfb96se, nfb96sea, nfb96seb, carb2002 and carb2003.
800 - Full inputs & DIP switches from the scratch for pokonl97, match98,
801    nfb96, nfb96a, nfb96b, nfb96c, nfb96txt, roypok96, roypok96a,
802    roypok96b, nc96, nc96a, nc96b, nc96c, nc96txt, nfb96se, nfb96sea,
803    nfb96seb, carb2002 and carb2003. All these were promoted to
804    working state.
805 - Fixed size and position of tilemaps visible area to match98.
806 - More driver cleanups.
1449807
1450Set the type field in the fake device_configs for CPU and sound
1451chips to a get_info stub which calls through to the CPU and sound
1452specific get_info functions. This means the device_get_info()
1453functions work for CPU and sound cores, even in their fake state.
1454[Aaron Giles]
808Cidelsa changes: [Curt Coder]
809 - Combined CDP1869 video and sound parts to one device
810 - Refactored CDP1852 to use devcb
1455811
1456Changed device information getters from device_info() to
1457device_get_info() to match the CPU and sound macros. [Aaron Giles]
812Fixed input in hanaawas (note: for the second playere used mahjong
813input like A,B,C....), also fixed yes/no button in hanaroku.
814[Sonikos]
1458815
1459Removed cpunum_get_active(). Main important change is that IDE
1460controllers with bus mastering (DMA) need to specify the target
1461address space in the IDE device configuration. [Aaron Giles]
816Changes safarir CPU to 8085A, the disassembly has 8085A-specific code
817that an 8080 can't execute. [Luigi30]
1462818
1463Removed mame_find_cpu_index(). Use cputag_get_cpu() instead.
1464Updated all drivers calling this to the newer function, and
1465generally simplified their code as a result. [Aaron Giles]
819Removed some unused code from deco_mlc.c. [Christophe Jaillet]
1466820
1467Added NVRAM emulation to Sengoku Mahjong. [Angelo Salese]
821Added PALs and readme to midxunit.c. [Guru]
1468822
1469Merged The Couples driver with Merit, fixing most of the graphics/
1470color bugs in it. [Angelo Salese]
823Properly added the PPI8255 devices to Pit Boss and reorganized the
824inputs in these two games. [Angelo Salese]
1471825
1472Removed mostly silly uses of activecpu from the CPU cores.
826Corrected memory map for gardiab and promoted it to working.
827[Angelo Salese]
828
829Added the ability for devices to have their own custom inline config
830management. This was primarily added to allow for sound routes to be
831supported in a way that is compatible with the current driver
832structure. A device can now define a DEVICE_CUSTOM_CONFIG callback
833which is called whenever one of the
834MCONFIG_TOKEN_DEVICE_CONFIG_CUSTOM_* tokens is encountered. A special
835token MCONFIG_TOKEN_DEVICE_CONFIG_CUSTOM_FREE is defined to clean up
836memory allocated and/or reset the custom configuration, and is called
837when the device is torn down to allow for memory cleanup.
1473838[Aaron Giles]
1474839
840Various improvements to Far West (Iron Horse bootleg) [Tomasz Slanina]
1475841
1476842
843
1477844New games added or promoted from NOT_WORKING status
1478845---------------------------------------------------
1479Tennis (bootleg of Pro Tennis) [Angelo Salese]
1480Maverik [Roberto Fresca]
1481Brasil 89 [Roberto Fresca]
1482Poker'91 [Roberto Fresca]
1483New Magic Card [David Haywood, Angelo Salese]
1484Millenium Nuovo 4000 [David Haywood, Angelo Salese]
846Monopoly [Phil Bennett]
847Monopoly Classic [Phil Bennett]
848Monopoly Deluxe [Phil Bennett]
849Player's Edge Plus (XMP00024) Multi-Poker [Gyrovision]
850Super Draw Poker [Angelo Salese]
851Squash (Itisa) [Angelo Salese]
852Age Of Heroes - Silkroad 2 (v0.63 - 2001/02/07) [Pierpaolo Prazzoli]
853Fever Soccer [Nicola Salmoria, Angelo Salese]
854Jackie [Mirko Buffoni]
855TomCat (prototype) [Mariusz Wojcieszek]
856Go 2000 [Angelo Salese]
857Dakkochan House [Angelo Salese]
858Skill Cherry '97 (two sets)
859  [Roberto Fresca, Olivier Galibert, David Haywood]
860Skill '98 [Roberto Fresca, Olivier Galibert, David Haywood]
861Poker Only '97 [Roberto Fresca, Olivier Galibert, David Haywood]
862Match '98 [Roberto Fresca, Olivier Galibert, David Haywood]
863New Fruit Bonus '96 Special Edition (5 sets)
864  [Roberto Fresca, Olivier Galibert, David Haywood]
865Royal Poker '96 (3 sets)
866  [Roberto Fresca, Olivier Galibert, David Haywood]
867New Cherry '96 Special Edition (5 sets)
868  [Roberto Fresca, Olivier Galibert, David Haywood]
869New Fruit Bonus '96 Special Edition (bootleg, 3 sets)
870  [Roberto Fresca, Olivier Galibert, David Haywood]
871Carriage Bonus 2003 (bootleg)
872  [Roberto Fresca, Olivier Galibert, David Haywood]
1485873
1486874
1487875
1488876New clones added
1489877----------------
1490Buena Suerte (21 new sets) [Roberto Fresca]
1491Royalea [Roberto Fresca]
1492Black Tiger (bootleg alt) [mameitalia]
1493Surf Planet (Version 4.0) [Smittdogg]
1494Worldcup 90 (bootleg) [robiza]
1495J.J. Squawkers (bootleg) [robiza]
1496Loco-Motion (bootleg) [David Haywood]
878Magic Card (set 3) [Chris Hardy]
879Volfied (Japan, older) [Brian Troha]
880Tecmo World Cup '90 (Euro set 2) [Tomasz Slanina]
881Extermination (World) [Stefan Lindberg]
882Pyschic 5 (set 2) [Dazzer]
883Head Panic (15/06/1999) [Corrado Tomaselli] (not working)
884Image Fight (revision A, Japan) [Arzeno Fabrice]
885Skull Fang (World) [Mexa]
886GTI Club (EAA) [Mexa]
887Operation Thunder Hurricane (ver EAA) [Mexa]
888Heavy Smash (Europe version -2) [Mexa]
889Phoenix (Taito Japan Ver.) [Team Japump!!!]
890Virtua Striker 3 (Cart) (USA, EXP, KOR, AUS) [Andrea Turci]
891Raiden Fighters 2 (Japan set 2, SPI) [Corrado Tomaselli]
892Master of Weapon (Japan) [Team Japump!!!]
893Mahjong If...? (2 sets) [Uki]
894Mahjong Shinkirou 2 [Uki]
895Pit Boss (Set 3) [Brian Troha]
896American Poker II (iamp2 v28) [Roberto Fresca]
1497897
1498898
1499899
1500900New games marked as GAME_NOT_WORKING
1501901------------------------------------
1502Treasure Island [Angelo Salese]
1503Destiny Horoscope [Angelo Salese]
1504Galaxian 3 [Andy Welburn]
1505Witch Card (Video Klein) [Roberto Fresca, Guru]
1506Bra$il [David Haywood, Angelo Salese]
1507Fashion (Version 2.14) [David Haywood, Angelo Salese]
1508Il Pagliaccio [David Haywood, Angelo Salese]
902Pachi Fever [Angelo Salese]
903Sweet Hearts II (C - 07/09/95, Venezuela version) [Heihachi_73]
904Margarita Magic (A - 07/07/2000) [Heihachi_73]
905Ciclone [f205v, Mirko Buffoni]
1509906
1510907
1511908
15120.128u4
9090.129u3
1513910-------
1514911
1515IMPORTANT NOTICE: This update represents the first part of a
1516monumental internal change within MAME in the way CPU cores are
1517managed and how memory is addressed. There are two ways you can help
1518get these changes sorted out.
1519912
15201. Test the games you are familiar with, and some you are not. Report
1521bugs at http://mametesters.org/mantis for anything out of the
1522ordinary.
1523
15242. If you are up to coding, help us by submitting patches that remove
1525the use of [Mm]achine->activecpu and/or cpunum_get_active(). You
1526should be able to derive which CPU you are referencing through other
1527means. To avoid duplication of effort, either send these quickly in
1528small bunches, or better yet, send a message to the submission address
1529announcing your intention to work on a certain class of drivers.
1530
1531
1532
1533913MAMETesters Bugs Fixed
1534914----------------------
1535- 02668: [DIP/Input] vendetta + clones: NVRAM being corrupted
1536         (Mamesick)
1537- 02656: [Crash/Freeze] elevator: Elevator Action freezes after coin
1538         insert with "8" (David Haywood)
1539- 02660: [Crash/Freeze] All sets in decocass.c: Games freeze when the
1540         count reach 15, 14 or 13. (couriersud)
1541- 02654: [Crash/Freeze] timecris, timecrsa: Unable to start game due
1542         to improper initialization (robiza)
1543- 02667: [Sound] bbmanwj: No sound since 0.123u2. (robiza)
1544- 02655: [Misc.] Some games using MC6845: A message reading "Mode
1545         Control 88 is not supported!!!" is displayed (couriersud)
1546- 02092: [Graphics] spinlbrk and clones: Priorities issues (robiza)
1547- 02641: [Graphics] strider and clones: Problem with graphics layer
1548         (Nicola Salmoria)
1549- 02196: [DIP/Input] scross: Five Player 2 buttons are mapped twice
1550         (Luigi30)
915- 01017: [Sound] nslasher: The music stops at some points in the game
916         when fighting bosses and some points in level 2. (Mamesick)
917- 02862: [Graphics] Many sets in taitosj.c: During the scroling the
918         lower part of the screen becomes black (Aaron Giles)
919- 02860: [Crash/Freeze] mach3, usvsthem: Error at the start
920         (Aaron Giles)
921- 02880: [Original Reference] stactics: Scratchpad RAM is too large
922         (currently 2 KB, should be 256 bytes with mirroring).
923         (chowell)
924- 02843: [Original Reference] schaser, schasrcv, polaris: Only half
925         the color RAM is emulated. (chowell)
926- 02884: [Original Reference] kopunch: CPU is specified as a 4 MHz
927         8080 when it should be a 4 MHz Z80. (Tomasz Slanina)
928- 02888: [Graphics] All sets in megaplay.c: Large black box obscuring
929         game (Aaron Giles)
930- 02827: [Compiling] 64-bit build fails (Phil Bennett)
931- 02804: [Documentation] dkongf: In game information: year should be
932         2004, not 1981. (Fabio Priuli)
933- 02803: [DIP/Input] dkongf: "5 Coins/1 Credit" coinage dipswitch is
934         freeplay. (Fabio Priuli)
935- 02719: [DIP/Input] arkbloc2, arkgcbl, paddle2: you can't go to the
936         left (Fabio Priuli)
937- 02697: [DIP/Input] hkagerou: Inputs apparently incorrectly mapped or
938         not mapped (Fabio Priuli)
939- 02574: [DIP/Input] yumefuda: Game controls are not fully implemented
940         (Fabio Priuli)
941- 02873: [Graphics] Many sets in system1.c: Missing text layer
942         (David Haywood)
943- 02866: [Misc.] bublbobl and clones: Bubble Bobble vertical sync value
944         seems slightly off (Phil Bennett)
945- 02792: [DIP/Input] Missing HARDDIP settings in 'STANDARD_DIPS' for
946         DIP's 4,5 and 6 ("COMM Setting") (Fabio Priuli)
1551947
1552948
1553949
1554950Source Changes
1555951--------------
1556UPI-41/42 (still I8x41.c) changes: [couriersud]
1557 * cpu/i8x41 should be renamed to UPI-4x, since UPI-41/42 was an
1558    intel chip family postponed for now until core moved to pointers.
1559 * removed I8041 definition from mcs48
1560 * removed I8x41 cpu definition and config struct
1561 * added I8041, I8741, I8042, I8242 and I8742 cpus to i8x41.c
1562 * added internal memory maps
1563 * internal ram now uses DATA memory space
1564 * updated drivers
1565 * increased interleave to 70 in decocass. This fixes decocass hanging
1566    in countdown around 13. No idea when this bug was introduced.
1567 * converted i8x41 to use pointers for state access
1568 * separated opcodes into i8x41ops.c
952Cleaned up and remapped Big 10 inputs. Updated the game notes. Added
953other minor changes. [Roberto Fresca]
1569954
1570Populated tag and static_config parts of fake CPU device. Removed
1571'config' parameter from CPU_INIT. Modified CPU cores to pull config
1572from the device static_config. [Aaron Giles]
1573
1574s14001a.c: added chip pinout and operation notes. [Lord Nightmare]
1575
1576Clean-ups in the ST-V driver and corrected protection number seeds
1577for elandore. [Angelo Salese]
1578
1579Video emulation fixes to the Ghost Eolith HW (not yet working).
955Improved the sound in Double Wings by appling the same handling of
956Night Slashers (they are actually similar if not same memory map)
1580957[Angelo Salese]
1581958
1582i960 core switched to pointer state access. [couriersud]
959Fixed scrolling layer in Magic's 10 [Angelo Salese]
1583960
1584Major cpuintrf changes: [Aaron Giles]
1585 * added a set of cpu_* calls which accept a CPU device object;
1586    these are now the preferred means of manipulating a CPU
1587 * removed the cpunum_* calls; added an array of cpu[] to the
1588    running_machine object; converted all existing cpunum_* calls
1589    to cpu_* calls, pulling the CPU device object from the new
1590    array in the running_machine
1591 * removed the activecpu_* calls; added an activecpu member to
1592    the running_machine object; converted all existing activecpu_*
1593    calls to cpu_* calls, pulling the active CPU device object
1594    from the running_machine
1595 * changed cpuintrf_push_context() to cpu_push_context(), taking
1596    a CPU object pointer; changed cpuintrf_pop_context() to
1597    cpu_pop_context(); eventually these will go away
1598 * many other similar changes moving toward a model where all CPU
1599    references are done by the CPU object and not by index
1600 * added CPU device parameters to all CPU callbacks except for the
1601    context ones (which are going away), and the validity check.
961Added NO_DUMP for the H8/330 MCU for Magic's 10 2, Super Pool, Hot
962Slot and Magic Colors. [Angelo Salese]
1602963
1603Converted TMS340x0 cores to be pointer-based. [Aaron Giles]
964Several discrete sound refinements, mainly targeted at mario:
965[couriersud]
1604966
1605Fixed Dip Switches for 'lkage' and clones. Fixed bootlegs visible
1606area to match original sets. [stephh]
967 * Use formula derived from figures 2 and 3 in LS624 datasheet.
968   Coefficients were calculated using least square approximation.
969   This approach gives a bit better audible results compared to the
970   prior approach.
1607971
1608Fixed Dip Switches for 'magmax'. [stephh]
972 * Fixed energy calculation for LS624
1609973
1610Fixed Dip Switches for all games in mermaid.c driver. [stephh]
1611
1612peplus.c updates: [couriersud]
1613 * changed the 6845 type to R6545_1 (Rockwell as mentioned in the
1614    driver).
1615 * use transparent addressing
1616 * lightpen code now generates a "lightpen_assert" at the right screen
1617    position.
1618 * Completely hooked up 6545 without wrappers.
1619
1620abc_step and abc_reset now declared as DISCRETE_STEP( abc ) and
1621DISCRETE_RESET( abc ). [couriersud]
1622
1623Fixed Dip Switches for 'momoko'. [stephh]
1624
1625Fixed Dip Switches for 'joyfulr' and clone. [stephh]
1626
1627Fix state save in discrete sound: [couriersud]
1628 * sndindex now considered as well in state save
1629 * expose discrete_sound_n_r(void *chip, ...) to enable accessing
1630    multiple discrete sound cores
1631
1632Kaneko changes: [David Haywood, Andreas Naive]
1633 * Added Simulation of Toybox external data rom decryption
1634 * Converted Blood Warrior, Bonk's Adventure, Great 1000 Miles Rally
1635    1+2 to use the new code.
1636 * Updated suprnova rendering to allow 2 sprite chips.
1637 * Started work on Jackie Chan & Gals Panic 3
1638
1639Massive API cleanup/change: [Aaron Giles]
1640
1641  The primary goal is that all CPU-related APIs now take a device
1642  pointer instead of an index. All functions that take a CPU device
1643  are prefixed with cpu_*. All functions that are globally related to
1644  cpu execution are prefixed with cpuexec_*. Below is a list of some
1645  of the mappings:
974 * Use energy values as input for XOR. This seems to better reflect
975   the superimposition of the two signals. On the long term, both
976   LS629 and the XOR need to be converted into a custom module to
977   properly model mixing if the two frequencies are close to each
978   other.
1646979 
1647    cpu_boost_interleave     -> cpuexec_boost_interleave
1648    cpunum_suspend           -> cpu_suspend
1649    cpunum_resume            -> cpu_resume
1650    cpunum_is_suspended      -> cpu_is_suspended
1651    cpunum_get_clock         -> cpu_get_clock
1652    cpunum_set_clock         -> cpu_set_clock
1653    cpunum_get_clockscale    -> cpu_get_clockscale
1654    cpunum_set_clockscale    -> cpu_set_clockscale
1655    cpunum_get_localtime     -> cpu_get_local_time
1656    cpunum_gettotalcycles    -> cpu_get_total_cycles
1657    activecpu_eat_cycles     -> cpu_eat_cycles
1658    activecpu_adjust_icount  -> cpu_adjust_icount
1659    cpu_trigger              -> cpuexec_trigger
1660    cpu_triggertime          -> cpuexec_triggertime
1661    cpunum_set_input_line    -> cpu_set_input_line
1662    cpunum_set_irq_callback  -> cpu_set_irq_callback
1663 
1664  In addition, a number of functions retain the same name but now
1665  require a specific CPU parameter to be passed in:
1666 
1667    cpu_yield
1668    cpu_spin
1669    cpu_spinuntil_time
1670    cpu_spinuntil_int
1671    cpu_spinuntil_trigger
1672    cpu_triggerint
1673 
1674  Merged cpuint.c into cpuexec.c. One side-effect of this change is
1675  that driver reset callbacks are called AFTER the CPUs and devices
1676  are reset. This means that if you make changes to the CPU state and
1677  expect the reset vectors to recognize the changes in your reset
1678  routine, you will need to manually reset the CPU after making the
1679  change (since it has already been reset).
1680 
1681  Added a number of inline helper functions to cpuintrf.h for
1682  managing addresses.
1683 
1684  Removed cpu_gettotalcpu(). This information is rarely needed
1685  outside of the core and can be obtained by looking at the
1686  machine->cpu[] array.
1687 
1688  Changed CPU interrupt acknowledge callbacks to pass a CPU
1689  device instead of machine/cpunum pair.
980 * Adjusted C41 to 60% for skid sound.
1690981
1691  Changed VBLANK and periodic timer callbacks to pass a CPU
1692  device instead of machine/cpunum pair.
1693 
1694  Renamed all information getters from cpu_* to cpu_get_* and
1695  from cputype_* to cputype_get_*.
982Fixed the remaining CPS3 sets that were left broken from the previous
983half-done set renames. Also reworked the code a bit to make it harder
984for somebody to break it in future (removed the config table & moved
985keys to driver inits, define region sizes, allocate memory in init
986for CD based games.) Should be no functional changes, although it
987might be a fraction of a % faster due to there being less region
988lookups. [David Haywood]
1696989
1697Defined macros for standard sound core functions and updated all sound
1698cores to use them. [Atari Ace]
990Added preliminary sound for the Aero Fighters bootlegs (aerfboot &
991aerfboo2) [Angelo Salese]
1699992
1700Replaced the Machine parameter where an running_machine * is
1701available and removes the deprecat.h where unnecessary.
1702[Atari Ace, Oliver Stoeneberg]
1703
1704Cleaned up use of running_machine in the Windows debugger code.
1705[Oliver Stoeneberg]
1706
1707Fixed Dip Switches and Inputs for 'jchan' and clone. [stephh]
1708
1709Documented the CPS2 Phoenix sets, and what happens to a dead CPS2
1710board. [MAMEPlus]
1711
1712Pointer-ified the 6800, 6809 and hd6309 cpu cores: [couriersud]
1713 * temporarily named the state var m68_state in the 68xx cores
1714 * reorganized some code for simpler comparison of 68xx cores
1715
1716Pre-irq rewrite submission in ST-V driver: [Angelo Salese]
1717 * Better management of hblank/vblank bits;
1718 * Makes dynamic resolutions to be called with a timer instead of
1719    run-time;
1720 * Makes dynamic resolutions to not be changed at every frame but
1721    only when there's an actual change;
1722 * Fixed Final Arch broken Test Mode;
1723 * Demoted Super Major League / Final Arch as GAME_NOT_WORKING, they
1724    hangs randomly due of SH-2 master/slave communication RAM issues
1725 * Removed GAME_NOT_WORKING flag to Fighting Dragoon Legend Elan
1726    Doree, because protection affects only in-game graphics and not
1727    gameplay
1728 * Removed all the read/write handler speed-up hacks, they aren't
1729    needed anymore and they were doing more damage than being useful.
1730This fixes Golden Axe: the Duel gameplay speed at the cost of breaking
1731up Groove on Fight coin counter at start-up.
1732
1733Major memory system change: [Aaron Giles, couriersud, smf, R. Belmont]
1734
1735  Changed READ/WRITE handlers to accept an address_space * instead of
1736  a machine *. The address_space object was enhanced to contain a
1737  machine and a pointer to the relevant CPU object.
1738 
1739  Added new function cpu_get_address_space() to fetch the address
1740  space for calling in manually to these functions. In some instances,
1741  code which should eventually be converted to a device is hard-coding
1742  fetching the program space of CPU #0 in order to have something
1743  valid to pass.
1744
1745Converted cultures driver to have separated color tables for each
1746plane. [Angelo Salese]
1747
1748Significantly pared down the 68k core. Merged outer MAME shell into
1749the core proper and removed unused macros. Changed all external
1750interfaces to pass the CPU device. Enabled 64-bit operations by
1751default. Re-derived the interface functions to cascade and share code
1752more aggressively. These changes also seem to have cured the taito_f3
1753issues as far as I can tell (at least pbobble3 seems right now).
1754[Aaron Giles]
1755
1756Disentangled the 68000 core, converting it to be much simpler and less
1757overly abstracted. Hard-coded it for the options that are relevant
1758and never going to change. Removed old unused CPS2 encryption junk.
1759Changed encryption interfaces to pass the CPU core object.
1760[Aaron Giles]
1761
1762Updated CPS1 documentation. [Nicola Salmoria]
1763
1764Added m6809 config option to control where opcodes 10 and 11 fetch
1765the second byte. [Nicola Salmoria]
1766
1767Changed kram3 to use a partially understood decryption algorithm and
1768removed external tables. [Nicola Salmoria]
1769
1770Fixed Dip Switches for 'scotrsht'. [stephh]
1771
1772Naomi improvements: [Samuele Zannoli]
1773 * This patch implements a "plug-in board" device for the Naomi.
1774    It represents the rom boards for the various games and the dimm
1775    board for the gdrom.
1776 * Now the dimm board part contains only a routine to load the "rom
1777    file" from the gdrom chd, but in the future it will be fully
1778    implemented with its own sh4 processor, security chip and so on.
1779 * Extracted .rom files are no longer needed, rom file is extracted
1780    in code from the CHD.
1781
1782Added "tag" parameter to state_save_register_item_* calls. Removed
1783state_save_combine_module_and_tag() function in favor of passing
1784the tag when registering. Revisited all save state item registrations
1785and changed them to use the tag where appropriate. [Aaron Giles]
1786
1787Changed 6809 disassembler to work with kram3. [Nicola Salmoria]
1788
1789Added template support to regrep. Changed output to not color the
1790entire background of each cell. Switched to astrings and core_files
1791internally. [Aaron Giles]
1792
1793ST-V IRQ rewrite and that removes several global hacks/game specific
1794hacks. (SMPC irq bit/introdon irq register hack/pblbeach framebuffer
1795hack plus some more). Note: some games have issues with it, but
1796they'll be hopefully fixed on the next couple of updates.
1797[Angelo Salese]
1798
1799Generalized the concept of opbase access into "direct" access.
1800Removed opbase globals to the address_space structure. Cleaned up
1801names of pointers (decrypted and raw versus rom and ram). Added inline
1802functions to read/write data via any address space. Added macros for
1803existing functions to point them to the new functions. Other related
1804cleanups. [Aaron Giles]
1805
1806Pointerized the CDP1802 CPU core. [Curt Coder]
1807
1808Tweaked gun handling in beast busters a bit.. by halving the
1809precision of the guns to 7-bit they can be calibrated more easily,
1810maybe the originals were like this.  I've also added a default
1811eeprom with them calibrated in a 'reasonable' way for MAME.  Sound
1812is pretty awful on this, maybe the sound ROMs should be checked?
993Added some 'new fruit bonus '96' sets, unsure what they are.
1813994[David Haywood]
1814995
1815Cleaned up macro mess in the Z80 core. Switched to using generic
1816memory calls instead of program_* and io_*. [Aaron Giles]
996Added a mess of sets marked as 'time dog' to the goldstar driver.
997These seem to be mismatched, and some lack program roms. One set has
998encrypted code, the other appears to have plain code. These will need
999some tidy-up work. I've added them, because there is no doubt at
1000least one valid set in here but the dumps contain no useful info at
1001all. [David Haywood]
18171002
1818Pointer-ified the ASAP core. [Aaron Giles]
1003Preliminary protection hook-up for Sexy Gal/Sweet Gal [Angelo Salese]
18191004
1820Pointerized the COP400 CPU cores. [Curt Coder]
1005Fixed colors, visible area and soft resets in the Magic Card 68k
1006version. Started to convert the Magic Card 68k version driver with
1007proper infos & added some basic video registers. It actually runs on
1008more or less modified Philips CD-i architecture. [Angelo Salese]
18211009
1822Switched mcs48, mcs51, m68000 to new memory functions. [couriersud]
1010Imported Archimedes code from MESS. [R. Belmont]
18231011
1824Documented alt Ajax rom board [Phil Morris]
1012Fixed foreground tilemap colors in Diamond Derby [Angelo Salese]
18251013
1826Fixed basic controls in 2 Minutes Drill & added preliminary shutter/
1827defender sensors. Still need proper ball hit/run sensors to get this
1828working however. [Angelo Salese]
1829
1830Big H8 update: [R. Belmont]
1831 - Added support for 8-bit H8 family MCUs, starting with the H8/3344
1832 - Pointer-ified all H8 cores
1833 - Some cleanup and renames toward additional future work
1834
1835System 23: [R. Belmont]
1836 - Added extremely preliminary support for I/O boards with the H8/3344
1837
1838Removed the change_pc() macro. Changed memory_set_direct_region() to
1839return a boolean indicating whether the given address was successfully
1840located in a bank. Change raw/decrypted access to look at this result,
1841and if the given address is not in a bank, calls through to the
1842standard read handlers. This should prevent most crashes when
1843accessing opcodes. [Aaron Giles]
1844
1845Fixed address space mapping handlers to invalidate direct access
1846regions if a change is made to the mapping. This is needed to prevent
1847the Sega dynamic memory mapping chips from falling over. [Aaron Giles]
1848
1849Refactored the CDP1802 and COP400 CPU cores to use the new memory
1850functions. [Curt Coder]
1851
1852Switched m6809 and hd6309 to new memory functions: [couriersud]
1853 * cleaned up some macros
1854 * aligned code a bit more
1855 * interrupts now checked in cpu_execute instead of set_context
1856
1857Pointerified the psx cpu core & switched it to the new memory
1858functions. Changed some MIPS_* to PSXCPU_*. [smf]
1859
1860Fixed broken crazywar eeprom. [David Haywood]
1861
1862Another significant memory system change: [Aaron Giles]
1863
1864  Moved memory global state into a struct hanging off of the machine.
1865  Updated almost all memory APIs to take an address_space * where
1866  appropriate, and updated all callers. Changed memory internals to
1867  use address spaces where appropriate. Changed accessors to point
1868  to the memory_* functions instead of the address space-specific
1869  functions. Improved internal handling of watchpoints.
1870 
1871  Added cputag_* functions: cputag_reset(), cputag_get_index(),
1872  cputag_get_address_space(). These just expand via macros to an
1873  initial fetch of the CPU via cputag_get_cpu() followed by the
1874  standard CPU call.
1875 
1876  Added debugger_interrupt_hook() and debugger_exception_hook() calls
1877  which intelligently look at the debugger flags before calling.
1878
1879  Memory banking now requires a machine object. This makes the memory
1880  system fully global-free.
1881
1882Pointer-ified the jaguar CPU core. [Aaron Giles]
1883
1884Pointer-ified the TMS32031 core. [Aaron Giles]
1885
1886Replaced parent crkdown image with one containing valid settings data
1887(prevents game booting with 0 seconds and invalid highscore data
1888which it can't restore correctly). [David Haywood]
1889
1890Converted H8 CPUs to the new memory functions. [R. Belmont]
1891
1892Debugger interfaces cleanup. Added callback parameters to the
1893expression engine. Improved CPU parsing so you can use a CPU tag or
1894index in most commands that take one. Switched to passing CPU and
1895address space objects around where appropriate. Symbol tables now have
1896a global ref as well as a per-symbol ref. Debugcpu is now clear of
1897active CPU references and global Machine references. Lots of other
1898minor tweaks. [Aaron Giles]
1899
1900Pointer-ified cpu/nec (V30). [couriersud]
1901
1902Switched adsp21xx to new memory functions. [couriersud]
1903
1904Fixed several protection issues with Double Wings, improved video
1905and sound. [Angelo Salese]
1906
1907Converted ssp1601 to pointers (still works, tested virtua racing
1908genesis). [Curt Coder]
1909
1910Pointer work on se3208 (although I haven't touched the disassembler..)
1911[David Haywood]
1912
1913Adjusted bbusters volume balance slightly. [David Haywood]
1914
1915MC6845: Hsync needs to toggle on every scanline. [Curt Coder]
1916
1917Converted remaining CPU cores over to new memory functions.
1014Added new module devcb, which can generically handle conversions
1015between device read/write functions and various other types of
1016functions. Introduced new structures and macros to make this possible:
19181017[Aaron Giles]
19191018
1920Un-deprecat'ed the H8. [R. Belmont]
1019  To take advantage of this, a device must change its interface to
1020  replace any read/write callbacks with the new devcb_read/write
1021  structures. During device start time, the device then uses this new
1022  devcb module to resolve the information in the devcb_read/write
1023  structures into a more efficient form. When the device needs to call
1024  one of the callbacks, it uses the inline devcb_call_read/write
1025  functions.
19211026
1922Removed cpu_read_byte/cpu_write_byte. Thesea are replaced with
1923memory_read_byte/memory_write_byte. [Aaron Giles]
1027  Once a device has defined its callbacks as devcb_read/write
1028  structures, users of the device must use the DEVCB_* macros to
1029  specify the type and information about the handler to use:
19241030
1925Pointer-ified the M377xx. [R. Belmont]
1031    DEVCB_NULL = no handler
1032    DEVCB_HANDLER = a standard device read/write handler
1033    DEVCB_MEMORY_HANDLER = a memory address space read/write handler
1034    DEVCB_DEVICE_HANDLER = a device read/write handler for a different
1035                             device
1036    DEVCB_INPUT_PORT = an input port
19261037
1927Removed all direct memory accesses via program_read/write_* from
1928game drivers. All drivers now use the memory_read/write_* and pass in
1929an address space. [Aaron Giles]
1038Converted the 8255PPI device to use this new structure, and updated all
1039users to use the DEVCB macros, removing some unnecessary trampoline
1040functions along the way. [Aaron Giles]
19301041
1931Removed ROM banking kludges from bublbobl, ninjakd2, tnzs, lsasquad,
1932missb2, and other drivers. [Nicola Salmoria, David Haywood]
1042Added calculation for caps >= 100pf to buck rogers LS626 frequency
1043calculation. Formula was derived from figure 6 of LS624/628/629 &
1044625/626/627 datasheet. "BUCK ROGERS" is now centered and big ship
1045appears centered over br's ship. [couriersud, Guru]
19331046
1934Pointer-"ified" the s2650 core. [couriersud]
1047Converted 6821new device to use devcb. Updated Williams drivers to
1048remove trampoline functions. [Nathan Woods]
19351049
1936Removed memory context switch. All memory accesses now specify an
1937address space explicitly. There is no longer any concept of a
1938"current" memory context. [Aaron Giles]
1050Improvements to norautp.c driver: [Roberto Fresca]
1051 - Merged GTI Poker (gtipoker.c) with this driver.
1052 - Added new memory map and machine driver for gtipoker.
1053 - Hooked 2x PPI 8255 to gtipoker.
1054 - Hooked the video RAM access ports to gtipoker.
1055 - Changed norautpn description from Noraut Poker (No Payout),
1056   to Noraut Poker (bootleg), since the game has payout system.
1057 - Some clean-ups.
19391058
1940Enhanced the runtest.cmd to use all available processors.
1941[Aaron Giles]
1059Fixed encryption in Cabaret and added sound emulation [Mirko Buffoni]
1060 - Moved to a separate driver
1061 - Not fully playable, press reset to exit from pitfalls
19421062
1943Removed cpu_num info from SH2 in favor of just keeping the device
1944object. [Aaron Giles]
1063Implemented a few more H8/3xx instructions, and added funcube to
1064seta2.c [Luca Elia]
19451065
1946Better fix for vendetta eeprom. [Mamesick, Fabio Priuli]
1066Added a default backup ram for the jolyc980 set, to get it boot to
1067the end-user. [Angelo Salese]
19471068
1948Removed all vestiges of the old change_pc macro, which is no longer
1949needed with the banking improvements. [Aaron Giles]
19501069
1951Added the latest "what we know" to the plygonet driver. [Phil Bennett]
19521070
1953More accurately describes the aux board behavior for Ms. Pac-Man.
1954There is a thorough description of how the board works. mspacman is a
1955more faithful emulation. In particular you can now enter service mode
1956(F2) at anytime during game play. [Steve Golson]
1957
1958Derived clocks from crystals in in ace.c, asteroid.c, avalnche.c,
1959blockade.c, boxer.c, bzone.c, cosmic.c, firetrk.c, galaga.c,
1960lazercmd.c, meadows.c, missile.c, orbit.c, skydiver.c, sprint2.c,
1961warpwarp.c, williams.c. [Luigi30]
1962
1963Added diplocations to meadows.c, mugsmash.c, orbit.c. [Luigi30]
1964
1965Unified sprint2.c memory map. [Luigi30]
1966
1967Unified galaga.c CPU4 memory maps. [Luigi30]
1968
1969Changed flyball CPU clock to a #defined crystal. Added dip locations.
1970[Luigi30]
1971
1972Added new sound core for the Oki MSM6258. [Barry Rodewald]
1973
1974Added dates to Tron revisions. Swapped tron/tron2 now that we know
1975tron2 is the later version. [Tim Lindquist]
1976
1977
1978
19791071New games added or promoted from NOT_WORKING status
19801072---------------------------------------------------
1981Filetto [Angelo Salese]
1982Jackie Chan - The Kung-Fu Master
1983   [David Haywood, Andreas Naive, stephh, Angelo Salese]
1984Firefox [Aaron Giles, smf]
1073Big 10 [Angelo Salese, Roberto Fresca, Tomasz Slanina]
1074Bottle 10 (italian, 2 sets) [Roberto Fresca]
1075Super Poker (v116IT) [Mirko Buffoni]
1076Casino Five [Mariusz Wojcieszek]
1077Big Apple Games [Mariusz Wojcieszek]
1078Funcube 2 [Luca Elia]
1079Funcube 4 [Luca Elia]
19851080
19861081
19871082
19881083New clones added
19891084----------------
1990Beast Busters (US, Version 2) [Brian Hargrove]
1991Puzzle Bobble 2 (Ver 2.3O 1995/07/31) [Ross Myers]
1992Street Fighter II' - Champion Edition (Rainbow set 3, bootleg)
1993   [Bill DeLeo]
1994Violent Storm (ver UAC) [Bill DeLeo]
1995Daitoride (YMF278B version) [Stefan Lindberg]
1996Soldam (World?) [Gerald]
1085Turbo Sub (prototype rev. TSC7) [Jay Gallagher]
1086Noboranka (Japan) (NOT WORKING, undumped 8751 MCU)
1087Battle Bakraid - Unlimited Version (U.S.A.) [Josh W.]
1088Armed Police Batrider (several versions) [Josh W.]
1089Mortal Kombat (prototype, rev 8.0 07/21/92) [Brian Troha]
19971090
19981091
19991092
20001093New games marked as GAME_NOT_WORKING
20011094------------------------------------
2002Motocross Go! (MG3 Ver. A) [Guru]
1095Jansou
1096Noraut Poker [Roberto Fresca, Angelo Salese]
20031097
20041098
20051099
20060.128u3
11000.129u2
20071101-------
20081102
20091103
20101104MAMETesters Bugs Fixed
20111105----------------------
2012- 02633: [Crash/Freeze] Many sets using the MC6845: Crash/hanging in
2013         many games. (Curt Coder)
2014- 02626: [DIP/Input] crimfgt2, crimfgtj: Cannot start a game
2015         (Fabio Priuli)
2016- 02618: [Sound] samuraia and clones: No SFX sound
2017         (Pierpaolo Prazzoli)
2018- 02544: [Core] Dip Condition / Port Include limitation (Aaron Giles)
2019- 02542: [DIP/Input] ghoulsu: Doesn't remove the original port when
2020         replacing it with a conditional port (Aaron Giles)
2021- 02607: [Crash/Freeze] frogs: Taking a screenshot in Frogs (Gremlin) exits the game with an error. (aaron)
1106- 02810: [DIP/Input] hanaroku,hanaawas: Input keys are
1107  inconsistent with other hanafuda games [Sonikos]
1108- 02852: [Known Issues/To-Do's] cloak and clones: Message "SLAVE
1109  COM BAD" flashes before game startup (Phil Bennett)
1110- 02847: [Crash/Freeze] all cloak.c and midzeus.c sets: [debug]
1111  Access Violation (Phil Bennett)
1112- 02842: [Graphics] logger: gfx issue (Aaron Giles)
20221113
20231114
20241115
20251116Source Changes
20261117--------------
2027Changed 74123 into a device. Clarified behavior from datasheet. Added
2028logic to avoid recursive calls. [couriersud]
1118Fixed compilation errors if HAS_SAMPLES is 0. [Nathan Woods]
20291119
2030Fixed Dip Switches for all games in halleys.c driver.
2031Added Dip locations for 'halleys' and clones. [stephh]
1120Stop crash/assert when trying to decrease the debugger memory window
1121bytes per line to 0. [Phil Bennett]
20321122
2033More improvements to the 32x code. [David Haywood]
1123Improved implementations for undocumented instructions 63, 67, 6f, 73,
112477, 7b, 7f, 9c, 9e, ab, e3, e7, ef, f3, f7, fb, and ff in the n2a3
1125cpu core. [Wilbert Pol]
20341126
2035Irem M10: first results from schematics: [couriersud]
2036 * Updated video timing and cpu/pixel clocks
2037 * Rewrote irq for m10/m11 to use two 74LS123
1127Force recalculation of screen parameters when only the MC6845 input
1128clock changes. [Wilbert Pol]
20381129
2039AICA: fix missing instruments in DTPK driver games.
2040[R. Belmont, Deunan Knute, kingshriek]
1130Seibu CRTC part 1: [Angelo Salese]
1131 * Merged Sengoku Mahjong & Good e Jong video HWs
1132 * Added correct scrolling functions for Sengoku Mahjong
1133 * Removed some positioning kludges in both drivers
20411134
2042Naomi: unmapped words in the AICA address range must read as zero.
2043[R. Belmont]
1135Fixed Sengoku Mahjong hopper error after first winning match.
1136[Angelo Salese]
20441137
2045Corrected YM2203 balance in powerins. [Jim Hernandez]
1138Removed deprecat dependancy from Good e Jong, one irq wasn't needed
1139at all (points to a reti). [Angelo Salese]
20461140
2047Converted toobin to RGB32 to allow for mid-screen palette updates.
2048Also added correct video timing and full memory map, and connected
2049watchdog. [Aaron Giles]
1141Fixed cpu reset for upd78c06. [Wilbert Pol]
20501142
2051Added Dip locations for 'exprraid' and clones, and for 'gyruss' and
2052clones. [stephh]
1143Added new #define ENDIANNESS_NATIVE, which maps to either
1144ENDIANNESS_LITTLE or ENDIANNESS_BIG based on the LSB_FIRST definition.
1145Unlink LSB_FIRST, ENDIANNESS_NATIVE always exists and can be used in
1146expressions without invoking the preprocessor. [Aaron Giles]
20531147
2054Hooked up 6845 to peplus driver: [couriersud]
2055 * Hooked up 6845 in a daisy chain way into existing "6845 emulation"
2056 * Clocks from schematics
2057 * Video size issues - 6845 code related, discussion started on list
1148Added macro ENDIAN_VALUE_LE_BE() which selects one of two values based
1149on the endianness passed in. Also added NATIVE_ENDIAN_VALUE_LE_BE()
1150which calls ENDIAN_VALUE_LE_BE with ENDIANNESS_NATIVE. [Aaron Giles]
20581151
2059Re-inlined core attotime functions. This makes a significant
2060difference when running with high interleaves. [Aaron Giles]
1152Updated a number of drivers and call sites to use these macros in
1153favor of #ifdef LSB_FIRST. [Aaron Giles]
20611154
2062Added support for recently-discovered internal Z80 register to the
2063Z80 core. Improves accuracy of undefined flags. [Miodrag Milanovic]
1155Removed some stray ADDR2BYTE/BYTE2ADDR macros that have been replaced
1156by inline functions. [Aaron Giles]
20641157
2065Reverted MC6845 changes as they broke a number of things. [Curt Coder]
1158DRC frontends must now do their own opcode fetching unfortunately.
1159Updated all DRC cores to do this. Also tweaked a few oddities in the
1160SH2 DRC. [Aaron Giles]
20661161
2067Converted Z80, R3000, ADSP2100, and M680x0 cores to reference their
2068data via pointers instead of global structs, in anticipation of
2069future changes. [Aaron Giles]
1162drw80pkr changes: [Jim Stolis]
1163 - Added bankswitching to program memory
1164 - Partial graphics support
1165 - Partial sound support
20701166
2071Fixed coinage in Speed Attack! and cleaned-up the driver to current
2072standards. [Angelo Salese]
1167Preliminary ADPCM hook-up to Jantotsu, it plays something but it's
1168not yet right. [Angelo Salese]
20731169
2074Converted the MCS-48, MCS-51, and m6502 cores to reference data via
2075pointers. [couriersud]
1170Removed redundant config parameter from SND_START. [Aaron Giles]
20761171
2077Added concept of scheduling quanta to the timer system. Also added
2078means of setting the minimum useful scheduling quantum, and clamping
2079all quanta to that value. [Aaron Giles]
1172Fixed gfx regression with 18 Holes Pro Golf and added proper memory
1173map for the second cpu. [Angelo Salese]
20801174
2081Changed interleave/boost handling to use scheduling quanta instead
2082of timers. [Aaron Giles]
1175Sound cores no longer allocate their own tokens. Instead they return
1176a new integer value indicating the size of token they want, and the
1177core allocates it for them. This mirrors the standard device behavior.
1178[Aaron Giles]
20831179
2084Added machine parameter to cpu_boost_interleave. [Aaron Giles]
1180SRMP5 update [tsBTN0640]
1181 - sound pitch is low with current st0016 driver.
20851182
2086Updated cpuexec to compute the "perfect" interleave value taking into
2087account the minimum number of cycles per instruction specified by the
2088CPU core. Updated Z80 core to indicate that the minimum cpi is 2.
2089Fixed incorrect minimum cpi in the 68020+ cores. [Aaron Giles]
1183Fixed Perfect Soldiers input (added missing button3) [a3SEybxT0]
20901184
2091Changed core cycle computations to use div_64x32 instead of full
209264-bit divides. This involves tossing a few bits of resolution at
2093divide time, but should make no real difference in practice.
2094[Aaron Giles]
1185Added missing key for sfiiij and sfiii2j [swzp1Dp/0]
20951186
2096Began the process of pruning options from the 68000 core, hard-coding
2097it for MAME's needs. We've hacked on it sufficiently that it is no
2098longer generic, so this is a good opportunity to simplify the code
2099so that it can actually be followed (still in progress). [Aaron Giles]
1187Tidied up the micro3d driver and fixed sound. [Phil Bennett]
21001188
2101Defined macros for all core CPU functions, along with macros for the
2102name and for calling, in the spirit of the devintrf.h macros.
2103[Aaron Giles]
1189Increased Cloak & Dagger interleave quantum to eliminate 'SLAVE COM
1190BAD' startup message. [Phil Bennett]
21041191
2105Changed init, reset, exit, and execute interfaces to be passed a
2106const device_config * object. This is a fake object for the moment,
2107but encapsulates the machine pointer and token. Eventually this will
2108be a real device. [Aaron Giles]
1192Major cleanup to IGS poker games [Mirko Buffoni]
1193 - Renamed csk driver to igspoker.  This includes Champion Poker,
1194    Champion Skill, New Champion Skill
1195 - Converted drivers to tilemap system and unified video section
1196 - Unified memory maps and checked all input ports
1197 - Removed obsolete palette handlers and made use of generic handlers
1198 - Added layout for lamps handling
1199 - Added hopper simulation
1200 - Added New Champion Skill (different set, maybe original
1201    international release) and renamed current igs_ncs to igs_ncs2
1202    (2000 version for italian market)
1203 - Promoted igs_ncs2 to working state, but set GAME_IMPERFECT_GRAPHICS
1204    (missing initial notice screen)
1205 - Moved Jackie to a separate driver (it's a slot machine game)
1206 - Made some progress on Jackie which now boots (toggle mode to play,
1207    but work still needs to be done)
21091208
2110Changed the CPU IRQ callbacks to a proper type, and added a device
2111parameter to them. [Aaron Giles]
1209Virtual Combat and Shadow Fighters update. [Phil Bennett]
1210 * Fixed framebuffer handling & screen parameters.
1211 * Added sound.
1212 * Corrected RAM sizes to match what is present on the PCBs.
1213 * Hooked up NVRAM.
21121214
2113Fixed background color of srmp1/srmp2. [EdxGROfS0]
1215Fixed clamping to 12 bit range to Okim6376, and adjusted volume
1216attenuation accordingly. [Mirko Buffoni]
21141217
2115Various improvements in the ST-V driver: [Angelo Salese]
2116 * Fixed bitmap zooming in Virtual Mahjong 2 - My Fair Lady;
2117 * Worked around a major graphic bug in ElanDoree;
2118 * Added some missing alpha blending effects,Pro Mahjong Kiwame S
2119    title screen needs it but it doesn't work yet due to other
2120    problems (still investigating)
2121 * Fixed a crash bug with Astra Super Stars when the debugger is
2122    active.
1218Fixed TMS5220 speech in Turbo Sub [Phil Bennett, Jay Gallagher]
21231219
2124Merged DS5002FP into MCS51: [couriersud]
2125 * Merged DS5002FP
2126 * Disassembler now uses type specific memory names
2127 * Merged DS5002FP disasm
2128 * added 83C751 memory names to disassembler
2129 * delete DS5002FP specific files
2130 * removed unnecessary cpu callback in wrally
2131 * DATA_MAP ==> IO_MAP in wrally
1220adp improvements: [robiza]
1221 - implemented p1 inputs in skattv and fashiong (service mode is
1222    working)
21321223
2133Continued rewrite of the Motorola DSP56k CPU core:
2134[Andrew Gardner, PhilB, RBelmont]
2135 * Added proper clock speed to plygonet.c and internal divider to
2136    dsp56k.c
2137 * Fixed up disassembler add/sub, 05xx, and bsr ops.
2138 * Handle mysterious uuuuF instruction found in plygonet add op.
2139 * Partially implemented add, sub, mac, mpy, inc, cmpm, macr, asr16,
2140    jscc, lea, and movec ops.
2141 * Added dual X memory read and data move with short displacement
2142    parallel moves.
1224Defined ROM_LOAD64_WORD/ROM_LOAD64_WORD_SWAP in emu/romload.h.
1225[Phil Bennett]
21431226
2144Some improvements to the Forte Card driver, not yet working.
2145[Angelo Salese]
1227cb2001: mapped two more opcodes. [robiza]
21461228
2147Changed Psicho Nics Oscar (japan revision 0) to (world revision 0)
2148since there is no japan disclaimer. [Corrado Tomaselli]
1229Fixed Soul Calibur (vs. Inferno) [4oj9/xJ+0]
21491230
2150Fixed missing inputs in expro02. [Sonikos]
1231Added custom 3-screen layout to Stepping Stage driver. [Naibo Zhang]
21511232
2152CPS2 ROM updates to match PCB labels. [Razoola]
1233Changed yunsung8 oki xtal to 400khz, verified on pcb. Unfortunately
1234I couldn't verify the main xtal which was missing on my pcb.
1235[Corrado Tomaselli]
21531236
2154Added ADDRESS_MAP_NAME macro, updated CPU cores to use it to reference
2155internal address maps. [Atari Ace]
1237Restored previous cycle eating behavior in gstream. [Mamesick]
21561238
2157Added include files for many drivers that never bothered before.
2158[Atari Ace]
1239Changed device start routines to no longer return a status. Instead,
1240if a device needs to delay its initialization pending the startup
1241of another device, it must call the new function device_delay_init().
1242[Olivier Galibert]
21591243
2160Improved Star Castle drone sound. [Jim Hernandez]
21611244
21621245
2163
21641246New games added or promoted from NOT_WORKING status
21651247---------------------------------------------------
2166Snezhnaja Koroleva [Antro]
1248Give us a Break (2 sets) [Phil Bennett]
1249Ten Up (2 sets) [Phil Bennett]
1250Himeshikibu (Japan) [Uki]
1251Super Othello [Tomasz Slanina]
21671252
21681253
21691254
21700.128u2
1255New clones added
1256----------------
1257Cannon Ball (Yun Sung) (vertical) [David Haywood]
1258Sega Water Ski (Japan, Revision A) [Smitdogg Jones]
1259Raiden Fighters 2 (USA, SPI) [Arzeno Fabrice]
1260Stepping 3 Surperior [Naibo Zhang]
1261
1262
1263
12640.129u1
21711265-------
21721266
21731267
21741268MAMETesters Bugs Fixed
21751269----------------------
2176- 02268: [Graphics] devilw, darkadv, majuu : Sprite-background
2177         priority isn't correct. (Mamesick)
2178- 02042: [Color/Palette] jjparad2: Wrong background color (Mamesick)
2179- 01679: [Crash/Freeze] kuniokub, kuniokun, renegade: Game freezes
2180         after Title Screen. (Mamesick)
2181- 00224: [Sound] macross2: After stage 1, the sound keeps going out
2182         and coming back. (Nicola Salmoria)
2183- 02605: [Color/Palette] funnymou, suprmous: Wrong colors in Funny
2184         Mouse and clone. (David Haywood)
2185- 02587: [Gameplay] lohtb2: lohtb2 protection emulation is imperfect
2186         (couriersud)
2187- 02456: [Core] wrong sector size at CD_TRACK_MODE2 conversion routine
1270- 02731: [Sound] various: List of games that have OKI6295 volume
1271         messages appear. (Phil Bennett)
1272- 00976: [Crash/Freeze] vaportrx: Crashes during the results section
1273         immediately after the race. (Aaron Giles)
1274- 02823: [Misc.] astorm, shdancer and clones: Error Messages
1275         (Aaron Giles)
1276- 02824: [Save/Restore] deadlock when using -state with -mngwrite/
1277         -aviwrite (Aaron Giles)
1278- 02820: [Graphics] sf2ue: Scrambled graphics in Street Fighter II
1279         set: sf2ue (Phil Bennett)
1280- 02805: [Graphics] turbosub, turbosba: Dropped lines in video output
1281         rendering (Phil Bennett)
1282- 02371: [Misc.] All Sets in namcos12.c: day, date, and year from the
1283         RTC appear to be ignored. (R. Belmont)
1284- 02802: [Gameplay] parodius, parodisj: ram rom check fails
21881285         (R. Belmont)
2189- 02011: [Sound] superchs: ES5505 clockspeed too low (Phil Bennett)
2190- 02199: [DIP/Input] banbam, pettanp: The 4th 'Unused' dipswitch is
2191         the 'Freeze' switch. (Angelo Salese)
2192- 00893: [Sound] All games in playch10.c, punchout.c, vsnes.c: It
2193         seems that some sound channels are missing. (Aaron Giles)
1286- 02815: [Crash/Freeze] zaryavos: Game never reaches title screen.
1287         (Angelo Salese)
1288- 02787: [Original Reference] nratechu: DIP switch settings from
1289         manual. (Tafoid)
21941290
21951291
21961292
21971293Source Changes
21981294--------------
2199Added sound banking to the mirage.c driver. [Angelo Salese]
1295cb2001 improvements: [robiza]
1296 - Decoded "gfx" rom region
1297 
1298Added a validity check to the 6526 CIA emulation. [Nathan Woods]
22001299
2201Removed parent clone relationship from "Street Fighter Zero/Alpha 2"
2202and "Street Fighter Zero 2 Alpha". [David Haywood]
1300Added savestate support to the games in 8080bw.c, ace.c, actfancr.c,
1301aerofgt.c, airbustr.c, ajax.c and alpha68k.c: [MooglyGuy]
1302 - sitv, sicv, sisv, sisv2, galxwars, galxwar2, galxwart, starw,
1303   lrescue, mlander, lrescuem, grescue, dsterth, invadpt2, invaddlx,
1304   cosmo, schaser, schasrcv, sflush, lupin3, polaris, polarisa,
1305   ballbomb, indianbt, searthin, searthia, invadrmr, spaceatt,
1306   spaceat2, sinvzen, sinvemag, tst_invd, alieninv, spceking, spcewars,
1307   astropal, spacewr3, invaderl, invader4, jspecter, jspectr2,
1308   cosmicmo, cosmicm2, superinv, invasion, darthvdr, moonbase,
1309   invrvnge, invrvnga, spclaser, laser, spcewarl, rollingc, ozmawars,
1310   ozmawar2, solfight, spaceph, yosakdon, yosakdoa, shuttlei, ace,
1311   actfancr, actfanc1, actfancj, triothep, triothej, spinlbrk,
1312   spinlbru, spinlbrj, pspikes, pspikesk, svolly91, pspikesb,
1313   spikes91, pspikesc, karatblz, karatblu, karatblj, turbofrc,
1314   aerofgt, aerofgtb, aerofgtc, sonicwi, aerfboot, aerfboo2, wbbc97,
1315   airbustr, airbustj, airbusb, ajax, typhoon, ajaxj, sstingry, kyros,
1316   kyrosj, jongbou, paddlema, timesold, timesol1, btlfield, btlfildb,
1317   skysoldr, goldmedl, goldmeda, goldmedb, skyadvnt, skyadvnu,
1318   skyadvnj, gangwars, gangwarb, sbasebal, tnexspce
22031319
2204Removed parent clone relationship between missb2 and bublbobl. We
2205don't usually make the 'korean hacks' as clones as they have very
2206little to do with the original releases except for the stolen cpu
2207code. GFX / Sound / Gameplay are completely redesigned.
2208[David Haywood]
1320Fixed multisession bug in the Jaguar implementation. [Nathan Woods]
22091321
2210Changed VBLANK to irq0_line_assert and added a CLEAR_LINE in the
2211peplus driver. This greatly increases speed on all video slots.
2212[Jim Stolis]
1322Added savestate support to the games in ambush.c and ampoker2.c:
1323[MooglyGuy]
1324 - ambush, ambushv, ambusht, ampoker2, ampkr2b1, ampkr2b2, ampkr2b3,
1325   ampkr95, pkrdewin, videomat, sigmapkr, sigma2k
22131326
2214Cleaned up the sample rom loading in mirage.c. [Angelo Salese]
1327Added check to debug_cpu_set_dasm_override(), because callers do not
1328know if we are in debug mode or not. [Nathan Woods]
22151329
2216MCS-51 improvements: [couriersud, Jim Stolis]
2217 * Fixed split timer mode
2218 * No interrupts for timer 0 modes 0,1,2 while timer 1 in mode 3
2219 * mcs51 core now supports 4 interrupt levels depending on cpu type
2220 * According to Philips, 80C31 is a 80C52 family member with 128K
2221    internal ram and no rom
2222 * Implemented cmos features: powerdown & idle
2223 * Added comments about special function registers on Philips 80C52
2224 * cleaned up reset routines
2225 * Fixed INT0 & INT1 interrupt line handling
2226 * Finally move cpu/i8051 to cpu/mcs51, rename files and some
2227    constants
2228 * Quotes from the documentation added to the source as well
2229 * Started DS5002FP integration
1330goldstar improvements: [Roberto Fresca]
1331 - Added Kkuj Nol-i / Kkoj Noli (better romanization). It runs on a
1332    reduced/modified version of lucky8 hardware.
1333 - Added proper memory map, machine driver, PPI interfaces and inputs.
1334 - Added placeholder for the 4 undumped cmast91's PLD's
1335 - Removed the imperfect colors flag from lucky8 sets (colors look a
1336    bit dark, but seems properly decoded).
1337 - Added full inputs / DIP switches to the Cherry Master II sets.
1338 - Started a tedious clean-up to all driver inputs.
1339 - Added a new set based on Cherry Master V4. The game is supposed to
1340    boot as a Tetris game (there are Tetris graphics inside), and can
1341    be turned into Cherry Master (probably designed for countries
1342    where gambling games are/were illegal). The game is booting into
1343    Cherry Master and is working properly. Still flagged as
1344    GAME_NOT_WORKING till can figure out how to switch games.
1345 - Added notes about the Tetris/Cmaster game.
1346 - fixed some default DIP switches.
1347 - Splitted the cmaster gfxdecode to cover different sets.
1348 - Created a new machine driver for sets without the extra bitmap.
1349 - Renamed the old sets cm2v841 and cm2841a to cmasterb and cmasterc
1350    respectively, since they are in fact different sets of Cherry
1351    Master I (ver.1.01).
1352 - Promoted cmasterb & cmasterc to working state. The last one was
1353    flagged as GAME_IMPERFECT_GRAPHICS, since reels graphics have a
1354    different decode, or simply are bad dumps.
1355 - Reparented some sets.
1356 - Switched to use pre-defined clocks (CPU, PSG, AY and OKI) for all
1357    machine drivers.
1358 - Changed all z80's CPU frequency to 3 MHz (Xtal/4).
22301359
2231Updated nes pcm dma to read data through the cpu address map.
2232[Wilbert Pol]
1360Decoded the extra bitmap for Cherry Master I and V4 sets. Still
1361need to figure out how is called. [David Haywood]
22331362
2234Fixed Dip Switches for 'ambush' and clones. [stephh]
1363Fixed sloppy rendering in CDP1869 that caused occasional crashes.
1364[Curt Coder]
22351365
2236Improvements to magicfly driver: [Roberto Fresca]
2237 - Added sound support to magicfly and 7mezzo.
2238 - Hooked coin counters to magicfly and 7mezzo.
2239 - Inverted the graphics banks to be straight with the hardware accesses.
2240 - Updated the memory map description and technical notes.
2241 - Added game notes and documented the test/settings/bookkeeping modes.
1366Improvements to Cherry 10: [Roberto Fresca]
1367 - Decrypted the program ROM.
1368 - Bypassed the PIC protection.
1369 - Hooked proper inputs & DIP switches.
1370 - Promoted to working state.
22421371
2243Fixed Dip Switches for 'arabian' and clones. [stephh]
1372Changes to peplus driver: [Jim Stolis]
1373 - Added wingboard (5-n-1 daughterboard) support
1374 - Added E16/E17 jumper support
1375 - Sound clock changed to global
1376 - Removed graphics layout and replaced with generic gfx_8x8x4_planar
1377 - Increased palette lengths
1378 - Adjusted incorrect ROM_REGION sizes
1379 - Correct color prom length definitions
22441380
2245Fixed Dip Switches for 'spaceint' and clones. [stephh]
1381Renamed filetto.c to pcxt.c and made several improvements to the
1382driver [Angelo Salese]
1383 * Merged tetriunk.c and filetto.c, and renamed tetriunk set to
1384    tetriskr;
1385 * Fixed inputs & gameplay quirks in tetriskr,so it's now playable;
1386 * Added preliminary external graphics emulation hook-up for the
1387    backgrounds in tetriskr;
1388 * Rearranged & cleaned up the palette initialization, now 0x000-0x1ff
1389    offsets are for the char modes and 0x200-0x2ff are for the bitmap
1390    modes;
1391 * Fixed color attributes bits;
1392 * Cleaned up and fixed colors in CGA bitmap mode for Filetto;
22461393
2247Fixed MSM5205 ADPCM and sound comms in Ashita no Joe/Success Joe.
2248[Philip Bennett]
1394Fixed most graphic banking bugs & colors in the coinmaster driver.
1395[David Haywood]
22491396
2250Changed superchs ES5505 clock rate to 15238050Hz. [Philip Bennett]
1397Converted the CDP1802 cpu core to use a state table. [Curt Coder]
22511398
2252Fixed Dip Switches for all games in astrof.c driver. [stephh]
1399Cherry Master '91: [Roberto Fresca]
1400 - Fixed memory map.
1401 - Added proper PPI 8255 devices.
1402 - Worked inputs / DIP switches from the scratch.
1403 - Fixed reels tilemaps visible area.
1404 - Fixed reels colors.
1405 - Removed all the flags and promoted to working status.
22531406
2254Various improvements to the jalmah.c driver: [Angelo Salese]
2255 * Fixed tilemaps paging / tilemap positioning;
2256 * Fixed a protection issue in Mahjong Daireikai,not giving correct
2257    colors for the girls in-game;
2258 * Fixed a rom-loading issue in Mahjong Daireikai;
2259 * Fixed 'ZA' sound banking behaviour,this fixes at least the sound
2260    in kakumei2;
2261 * Removed VIDEO_EOF and added a TIMER_DEVICE_CALLBACK function for
2262    MCU simulations;
2263 * Added WIP code for the priority system;
2264 * Added a NO_DUMP for the MCU for all the sets;
1407Fixed 64-bit issue in the k053260 emulation. [R. Belmont]
22651408
2266Rewrite of the Motorola DSP56k CPU core. [Andrew Gardner]
2267 * Partially implemented inc24, asl4, bcc, brkcc, and doForever ops.
2268 * Added code for parallel address register update.
2269 * Partially implemented tfr op.
2270 * Polygonet now allows test mode to be run for a few seconds.  Most
2271    IO is now known, though coin2 is still a mystery.
2272 * Partially implemented move, asr4, and mpy ops.
1409Introduced a parallel 6821 PIA implementation, as a MAME device
1410(6821new.c). Ported the Williams drivers over to use this new PIA
1411implementation. [Nathan Woods]
22731412
2274YM2608/2612: applied latest fixes/discoveries. [Eke-Eke, Nemesis]
1413Fixed clock used in Namco systems 12 & 23. [R. Belmont]
22751414
2276Added palette fading effect on macrossp.c driver. [Angelo Salese]
1415Added savestate support to the games in amspdwy.c, angelkds.c,
1416appoooh.c, aquarium.c, arabian.c, and arcadecl.c: [MooglyGuy]
1417 - amspdwy, amspdwya, angelkds, spcpostn, appoooh, robowres, robowrb,
1418   aquarium, arabian, arabiana, arcadecl, sparkz
22771419
2278Fixed skewing and display area in MC6845. [Curt Coder]
1420Improved the rom loading in tenkai and clones. [Luca Elia]
22791421
2280Fixed Dip Switches and inputs for 'dreamwld'. [stephh]
1422Various improvements to the Jackpool driver [Angelo Salese]
1423 * Added a second screen for some extra gfxs that are displayed on it;
1424 * Fixed colors;
1425 * Preliminary implementation of the transparency pens for the
1426    graphics, might not be correct;
1427 * Added inputs;
1428 * Cleaned-up the driver;
22811429
2282NEC CPU core improvements: [couriersud]
2283 * removed another speed hack in the NEC core
2284 * renamed "FETCH" to "FETCH()" (macros used as functions should
2285    look like functions)
2286 * Preparation for opcode prefetch timing
2287 * improved prefetch timing calculation
2288 * prefetch timing now also used by V20 and V33
2289 * moved some static variables into cpu context
2290 * nec_reset now explicitly clears context variables
2291 * all cpus now share nec_execute
1430Added save state support to the turbosub driver. [Phil Bennett]
22921431
2293More Discrete module optimizations. Added optimized custom mixer to
2294Donkey Kong. [Derrick Renaud]
1432Improvements to coinmastr.c driver: [David Haywood, Roberto Fresca]
1433 - Added maximum intensity to the color decode.
1434 - Switched pokeroul to use global memory map and eliminated the
1435    redundant one.
1436 - Eliminated the GAME_WRONG_COLORS flag to all games.
1437 - Some clean-ups.
22951438
2296lohtb2: Improved mcu emulation [couriersud]
2297 * The whole startup cycle now works. No more timeouts and erratic
2298    behavior.
2299 * lohtb2 will however not display the "Warning" screen due to a
2300    priority issue. With color/attribute of 0x80 in videoram at 0xd0000 and 0xd8000, videoram at 0xd80000 will be displayed. Some tilemap guru has to look into this.
1439Added OKIM6376 emulation ADPCM Speech Synthesizer.
1440[Mirko Buffoni, Phil Bennett]
23011441
2302Fix GCC 4.3 "array bounds exceeded" error in disc_flt.c. [R. Belmont]
1442Added OKIM6376 sound emulation to High Video games [Mirko Buffoni]
1443 * Removed GAME_NO_SOUND from newmcard, brasil and fashion
1444 * Sound frequency may be incorrect
23031445
2304plygonet improvements: [R. Belmont]
2305 - Turned off network IRQ.  Game now boots without "network error"
2306 - Hooked up palette RAM
2307 - Improved text layer emulation (flip bits still missing)
2308 - Fixed text layer emulation and visible area. FBI logo and color
2309    test now display properly.
2310
2311Fixed sound,hooked-up generic inputs and added some notes in Alien
2312Command (not yet working). [Angelo Salese]
2313
2314Fixed m72 tilemap group 2 priorities. [couriersud]
2315
2316Fixed Joker's Wild graphics to 2 bits per pixel. [Roberto Fresca]
2317
2318NeoGeo updates [JohnBoy}
2319 * Updated NeoGeo game pcb infos
2320 * Renamed p's in kof2000n to correct chip label
2321 * Renamed v's in mahretsu to correct chip label, readded 128k m1
2322    from Mame 0.34b6 / s1 from older dump
2323 * breakrev: Renamed c's to correct chip label, added correct c5/c6
2324 * Marked mslug3h MVS AND AES VERSION
2325 * Marked mslug4 2nd revision, added mslug4 1st revision missing set
2326    comment
2327 * Marked trally MVS AND AES VERSION
2328 * Marked ncombath MVS AND AES VERSION
2329 * Marked sengoku MVS VERSION
2330 * Marked superspy MVS AND AES VERSION
2331 * Marked mutnat MVS AND AES VERSION
2332
2333Modified src2html to use a template source file instead of hard-coding
2334to the MAME site. Changed from explicit styles to classes.
1446Major drawgfx cleanup, global removal, and feature enhancements:
23351447[Aaron Giles]
23361448
2337Changed magictg to use (hopefully correct) roms. [David Haywood]
1449 - Added built-in dirty tile tracking to the gfx_element. This removes
1450    the need for all drivers that had dynamically populated graphics
1451    to do their own dirty tracking. Tiles are marked dirty via the
1452    new function gfx_element_mark_dirty(). Any driver that needs
1453    access to the decoded data must call gfx_element_get_data() in
1454    order to ensure that the referenced tile is clean before
1455    proceeding.
1456   
1457 - In order to support dirty tracking, the gfx_element was enhanced to
1458    keep track of the original source pointer, so that it can go back
1459    and regenerate tiles on demand. For systems that set NULL for the
1460    region in the gfxdecode, they must use gfx_element_set_source()
1461    to specify a pointer to the raw data before drawing anything.
1462 
1463 - Changed allocgfx() to gfx_element_alloc(), and added parameters to
1464    specify the source data pointer, base color index, and total
1465    colors. Many drivers had to whack these values in after the fact,
1466    so this allowed for some minor additional cleanup.
1467 
1468 - Added a dirtyseq member to the gfx_element struct. This is
1469    incremented on each tile dirty, and can be used to sniff if
1470    something has changed.
1471 
1472 - Added logic in the tilemap engine to track which gfx_elements are
1473    used for a given tilemap, and automatically detect changes to the
1474    tiles so that drivers no longer have to explicitly invalidate the
1475    tilemap when tiles change. In the future, this may grow smarter to
1476    only invalidate the affected tiles, but for now it invalidates the
1477    entire tilemap.
1478 
1479 - Updated a number of drivers to remove their own dirty handling and
1480    leverage the new internal dirty marking.
23381481
2339Naomi / DC improvements [Samuele Zannoli]
2340 * cvs2gd stops looping forever. However with no 3d emulation nothing
2341    is shown on the screen.
2342 * implemented the naomi RTC and there are a few verbose messages
2343    about transfers not implemented yet.
1482 - Because the source data must always be present, updated the
1483    atarigen zwackery and mystwarr graphics handing code to support
1484    this.
23441485
2345Fixed Dip Switches for 'exprraid' and clones. [stephh]
1486 - Thanks to the dirty tracking, this actually allows all gfx decoding
1487    to happen on the fly instead of all at once up front. Since there
1488    was some concern that this would cause undesirable behavior due to
1489    decoding lots of tiles on the fly, it is controlled with a
1490    compile-time constant in mame.h (PREDECODE_GFX). Set this to 1 to
1491    get the old behavior back.
1492   
1493 - Moved decodechar() and decodegfx() to deprecat.h. All drivers in
1494    MAME have been updated to simply mark tiles dirty and let the
1495    rendering system decode them as needed, so these functions may go
1496    away in the future.
23461497
2347Improvements to re900.c driver [Roberto Fresca, Grull Osgo]
2348 - Reworked inputs to allow 6 players through a selector.
2349 - Hooked all lamps (even the ball simulator array).
2350 - Added a internal layout and support for external artwork.
2351 - Extended the hardware to support Buena Suerte '94.
2352 - Cleaned up the driver.
1498 - Rewrote entirely the rendering code in drawgfx. This code
1499    previously used extensive recursive #includes and tricks to build,
1500    and was very difficult to understand. The new code is based off of
1501    a set of macros defined in drawgfxm.h. These new macros separate
1502    the core rendering logic from the per-pixel operation, allowing
1503    the operation to be easily "plugged" into any of the renderers.
1504    These macros are also available to any driver that wants custom
1505    rendering behavior that is similar to existing core behavior,
1506    without needing to populate the core with esoteric one-off
1507    rendering behaviors.
1508 
1509 - Added a set of new functions for [p]drawgfx[zoom], one for each
1510    transparency type. The old [p]drawgfx[zoom] functions are still
1511    present, but now switch off the transparency type and call through
1512    to one of these new transparency-specific functions. The old
1513    functions are also now reduced to only supporting
1514    TRANSPARENCY_NONE, TRANSPARENCY_PEN, and TRANSPARENCY_PENS. All
1515    other rendering types must use the new functions.
1516 
1517 - All new rendering functions have extensive asserts to catch
1518    improper clipping rectangles and other common errors.
1519   
1520 - All new rendering functions automatically downgrade to optimized
1521    versions where appropriate. For example, calling drawgfx_transpen
1522    with an out-of-range pen automatically falls back to
1523    drawgfx_opaque. And drawgfxzoom_* with xscale=yscale=1.0
1524    automatically falls back to drawgfx_*. And many other examples.
1525    In general, this relieves drivers from needing to make these
1526    sorts of decisions.
1527 
1528 - All new rendering functions have a consistent parameter order that
1529    is a bit different from the existing functions. The cliprect
1530    parameter is now specified immediately after the destination
1531    bitmap, to match the convention used throughout the rest of the
1532    system. The core parameters are followed by the scale parameters
1533    (for the zoom functions), and then followed by the priority
1534    parameters (for the pdrawgfx* functions), finally followed by any
1535    PIXEL_OP*-specific parameters (such as transparent pen, alpha,
1536    drawing tables, etc.)
1537 
1538 - Removed drawgfx_alpha_cache, alpha_set_level(), and the inline
1539    functions alpha_blend16() and alpha_blend32(). To render graphics
1540    with alpha, use the new [p]drawgfx[zoom]_alpha functions, which
1541    take an explicit alpha value. To render tilemaps with alpha, the
1542    TILEMAP_DRAW_ALPHA option now takes an explicit alpha parameter.
1543    And to do you own alpha blending, use the alpha_blend_r16() and
1544    alpha_blend_r32() functions, which take an explicit alpha.
1545 
1546 - Updated a number of drivers as a result of removing the implicit
1547    alpha in the drawgfx_alpha_cache.
23531548
2354Fixed Dip Switches for 'gyruss' and clones. [stephh]
1549 - Removed drawgfx_pen_table and TRANSPARENCY_PEN_TABLE. To achieve
1550    the same effect, build your own table and pass it to
1551    [p]drawgfx[zoom]_transtable, along with a pointer to the
1552    machine->shadow_table to use for shadows. Eventually
1553    machine->shadow_table is likely to go away, and drivers will need
1554    to fetch the shadow table from the palette directly.
1555   
1556 - Updated a number of drivers to remove use of drawgfx_pen_table.
1557 
1558 - Removed TRANSPARENCY_ALPHARANGE; it was only used by the psikyosh
1559    driver, so it is now moved locally into that driver and built
1560    using the macros in drawgfxm.h.
1561 
1562 - Removed TRANSPARENCY_PEN_RAW; to achieve the same effect, call the
1563    new [p]drawgfx[zoom]_transpen_raw() functions. Updated drivers to
1564    make this change.
1565 
1566 - Removed the unused mdrawgfx* functions entirely.
1567 
1568 - Added new function gfx_element_set_source_clip() to specify a
1569    source clipping rectangle for any element. This replaces the nasty
1570    hacks that were being used in bnstars, ms32, namcos86, and namcos1
1571    to achieve similar behaviors.
1572   
1573 - Added new function gfx_element_build_temporary() to safely build a
1574    temporary gfx_element. Updated the drivers that did this to use
1575    the new function.
23551576
2356Fix NES APU to work with high sample rates (don't know the bug #).
2357[Aaron Giles]
1577 - Simplified the copyrozbitmap() functions to match the copybitmap()
1578    functions in having separate opaque and transparent versions. Also
1579    removed the 'priority' parameter which was only used by one driver,
1580    and moved that logic into a custom renderer built using macros in
1581    drawgfxm.h. Updated copyrozbitmap* to use the destbitmap, cliprect
1582    parameter ordering convention as well.
1583 
1584 - Simplified the draw_scanline*() functions to always render opaque.
1585    Only one driver was doing otherwise, and it now does its work
1586    internally (draw_scanline is dead-simple ever since we moved
1587    rotation to the OSD code; I almost just removed it entirely).
1588 
1589Added a cliprect to the bitmap_t type, which describes the full
1590bitmap. [Aaron Giles]
1591   
1592Removed tilemap_set_pen_data_offset; unfortunately, this adds a
1593random tile offset behind the scenes and goes against the dirty
1594tile detection and invalidation. Updated the mainsnk, snk, and
1595snk68 drivers to use old fashioned tile banking. [Aaron Giles]
1596 
1597Changed zac2650 gfxdecode to use scale factors. [Aaron Giles]
23581598
2359Synchronized 6502 disassembly with CPU core. [Pugsy]
1599Added function video_assert_out_of_range_pixels() to help find
1600the source of invalid pixels (generally out-of-range palette
1601entries due to invalid data or sloppy calculations). Place this
1602after each step in your rendering in a debug build to discover
1603which code is generating improper pixels. [Aaron Giles]
23601604
2361Added missing const/statics, added/removed entries in header files,
2362and fixed a few potential multisession issues by explicitly adding
2363initializers. asic65.c has significant changes to accomodate using a
2364struct instead of 16 variables, otherwise the changes are modest and
2365obvious. [Atari Ace]
1605COP400 cpu core refactoring: [Curt Coder]
1606 - added state table for the debugger
1607 - grouped all cpu types under a single makefile entry
1608 - removed duplicate code
23661609
2367expro02 driver improvements: [Sonikos]
2368 - Fixed dips in all galsnew sets and  fantasia.
2369 - Added dips location.
2370 - A little driver clean up.
1610CDP1802 cpu core: [Curt Coder]
1611 - improved register layout
1612 - randomized register contents on initialization
23711613
2372Added save state support to the toaplan2 driver. [Atari Ace]
1614Made the treatment of SOUND_xxx the same as that of CPU_xxx. That is,
1615they are function pointers to the SND_GET_INFO routine for the sound.
1616[Atari Ace]
23731617
2374Changed the coinage settings and swapped coin A mech with coin B to
2375match the behaviour of Chelnov (world) pcb. [Corrado Tomaselli]
1618Made direct (opcode) access more robust. Direct access now crawls the
1619memory table to find its ranges, and caches them for fast access in
1620the future. It invalidates intersecting regions when new ones are
1621installed, and now properly handles mirrored ranges. [Aaron Giles]
23761622
1623Changed the disassembly view to call the decrypted read routines
1624for each opcode byte/word instead of fetching from a pointer, which
1625prevented opcodes that crossed range boundaries from working correctly,
1626even though they would execute correctly. [Aaron Giles]
23771627
1628Improvements to skylncr.c driver. [Roberto Fresca]
1629 - Hooked all the PPI 8255 devices.
1630 - Reworked the inputs based on them.
1631 - Fixed the reels visible area.
1632 - Reorganized and cleaned-up the driver.
1633    (only remains to split in driver + video)
23781634
2379New games added or promoted from NOT_WORKING status
2380---------------------------------------------------
2381Ruleta RE-900 [Grull Osgo]
2382Buena Suerte '94 [Grull Osgo, Roberto Fresca]
2383Virtual Mahjong 2 - My Fair Lady
1635Added ROM_DEFAULT_BIOS to diehard, critcrsh, and smleague.
1636[Aaron Giles]
23841637
1638Removed extraneous bitmap clear in the deco32 driver.
1639[Christophe Jaillet]
23851640
1641Added static/const where appropriate, updated out-of-sync header
1642files, and fixed some minor source confusion/abuse: [Atari Ace]
1643 - arm7core.[ch],segas24.[ch]: Rewrote some abuses of the HANDLER
1644    macros to use _func types instead.
1645 - m37710: Removed some long dead state save functions.
1646 - spc700: Removed the interface declarations and functions.  Most of
1647    it is handled by CPU_GET_INFO, some of it was no longer
1648    implemented, and since pointerization it wasn't possible to call
1649    it externally anyhow.
1650 - segac2: removed the palette variables aliasing the megadrive ones
1651    and just used the megadrive ones directly.
1652 - snes: All the obc1_, DSP1_, DSP2_ exports were made static.
23861653
2387New clones added
2388----------------
2389Power Instinct (USA) [Jim Hernandez]
1654Added DIPs for Naratte Chu. Added DIP locations for all games in the
1655st0016 driver. [Tafoid]
23901656
1657Removed the sndindex parameter from SND_START, in favor of using the
1658device pointer or tag as appropriate. [Atari Ace]
23911659
1660Removed several useless occurrences of "#define INLINE" in CPU and
1661sound cores. [Dirk Best]
23921662
2393New games marked as GAME_NOT_WORKING
2394------------------------------------
2395Joker's Wild (encrypted) [Roberto Fresca]
1663Hooked up the preliminary decryption code for Tarzan, but it is not
1664complete. [David Haywood]
23961665
1666Added digitalker speech emulation. [Olivier Galibert]
23971667
1668Added digitalker support to scorpion driver. [Olivier Galibert]
23981669
23990.128u1
2400-------
1670Cleaned up a bunch of unreachable bits of code. [Oliver Stoeneberg]
24011671
1672Fixed the 3rd graphics bank decode of cmast91. [David Haywood]
24021673
2403MAMETesters Bugs Fixed
2404----------------------
2405- 01722: [Crash/Freeze] sokonuke: Game hangs after you choose stage.
2406         (Aaron Giles)
2407- 00468: [DIP/Input] gogomile, gogomilj: Inserting coins or pressing
2408         start has no effect at the continue screen. (Phil Bennett)
2409- 00436: [Sound] kyukaidk: Some of sound effects are wrong. Umpire's
2410         voice is most notable. Also, music is not correct.
2411         (Phil Bennett)
2412- 01702: [Gameplay] cloak + clones: Canīt pick up items (Phil Bennett)
2413- 02140: [Save/Restore] cubeqst: cube quest crashes mame when saving
2414         state (Phil Bennett)
2415- 02577: [DIP/Input] crush and clones: Broken Dips (Fabio Priuli)
2416- 00359: [Sound] blocken: Some of the enemy voices are totally wrong
2417         (Phil Bennett)
1674Pre-Seibu CRTC update: [Angelo Salese]
1675 * Fixed gfx banking in goodejan/totmejan;
1676 * Fixed vertical scrolling in Sengoku Mahjong (check title screen);
1677 * Made some clean-ups in either drivers;
24181678
1679Updated OKIM6295 volume table to reflect actual chip behaviour.
1680Removed "contact MAMEDEV" message. [Phil Bennett]
24191681
1682Virtual Combat driver improvements: [Jason Eckhardt, Andrew Gardner]
1683 * Graphics decoded, video improved, inputs mapped.
24201684
2421Source Changes
2422--------------
2423MC6845 changes: [Curt Coder]
2424 - added cursor and display enable skewing
2425 - added preliminary support for SY6545-1's transparent addressing mode
2426 - Hsync should be pulsed even when vsync is active.
1685Intel i860 CPU core added. [Jason Eckhardt]
24271686
2428Removed per-game hacks from CPS3 (moved to DMA callback in SH2 core).
2429Removed Speedups from CPS3 / PsikyoSH, while they do still give a
2430decent speed boost they're not really needed with the DRC and just
2431clutter the code. [David Haywood]
1687Reorganized and simplified the megasys1.c inputs. [Sonikos]
24321688
2433Minor NeoGeo cleanups [JohnBoy]
24341689
2435Rewrite of the Motorola DSP56k CPU core. [Andrew Gardner]
2436 * Complete rewrite focusing on legibility and extensibility.
2437 * 27/121 opcodes (mostly) implemented.
2438 * Bugfix for reset status of interrupt priority bits.
2439 * Bugfix for disassembly of register-to-register parallel data move.
2440 * Added additional branch, move and bitfield ops.
2441 * Plygonet now passes its memory test and uploads a new program.
2442 * Implemented tst, or, jsr, rti, tst2, and 2 new movec ops.
2443 * Added opbase handler to plygonet.c
24441690
2445Increase cubeqst interleave factor to eliminate LDP timeout countdown
2446flicker. [Philip Bennett]
2447
2448Added redumped B-Rap Boys sample ROMs. [Guru]
2449
2450Cleaned up STV rom loading a bit. [David Haywood]
2451
2452NamcoNBx: fixed C75 BIOS loading for big-endian targets. [R. Belmont]
2453
2454Updated tnzs.c driver: [stephh]
2455  - renamed sets :
2456      * 'tnzsjn'   -> 'tnzsj'
2457      * 'tnzsj'    -> 'tnzsjo'
2458      * 'kagekia'  -> 'kagekih'
2459  - fixed Dip Switches for all games (2 remaining unknown Dips in
2460    'plumppop' and 'jpopnics' though)
2461  - added many notes
2462
2463Small cleanups to the ST-V driver. Make some work for magzun, still
2464not working. [Angelo Salese]
2465
2466AICA: fix sample addressing for the full 8 MB [kingshriek].
2467
2468Fixed bnstars1 screens. [David Haywood]
2469
2470MCS51/I8051 overhaul, micro3d improvements and full m72 protection
2471emulation for lohtb2: [couriersud, Jim Stolis]
2472 * improved serial port timing
2473 * better infrastructure for adding more variants like DS5002
2474 * Fixed port reading
2475 * Rewrote Macros for better readibility
2476 * Fixed and rewrote Interrupt handling
2477 * Now returns INTERNAL_DIVIDER, adjusted cycle counts
2478 * Remove unnecessary and duplicated code
2479 * Remove unnecessary functions
2480 * Rewrite to have sfr-registers stored in int_ram.
2481 * Debugger may now watch sfr-registers as well.
2482 * implemented interrupt callbacks (HOLD_LINE now supported)
2483 * Runtime switch for processor type - remove ifdefs
2484 * internal memory maps for internal rom versions (internal ram now
2485    displayed in debugger)
2486 * more timer cleanups from manual
2487 * fix timer 2 interrupts
2488 * implement serial mode 2/3 rx and tx clock handling
2489 * Remaining games checked and adapted to changes in cpu core
2490 * Cardline still broken. I need the exact and complete cpu name.
2491 * Added more variants 803X, 80CXX, AT89C4051
2492 * Fix segas18.c (segaic16.c) mcu maps.
2493 * Fix sslam.c
2494 * Fix limenko.c videopkr.c : Issue with core allocation of ram (duplicate savestate)
2495
2496micro3d improvements: [couriersud]
2497 * serial port communication between main cpu and sound board works
2498 * sound board now works
2499 
2500m72 - lohtb2 improvements: [couriersud]
2501 * full emulation of protection device
2502 * Samples are now piped through the mcu
2503
2504Added sound and corrected wrong DIP-SW in the Double Dealer driver.
2505Completed protection vectors, fixed video emulation and added coin
2506setting simulation. [Angelo Salese]
2507
2508Fixed recently regressed raster interrupt issues in fuukifg*
2509drivers. [Philip Bennett]
2510
2511Added flip screen / cocktail support to yumefude driver. Completed
2512DIP-Switches (manual-wise) and made better comments. [Angelo Salese]
2513
2514Separated umk3 and breakrev from their parents. [David Haywood]
2515
2516Some reorganization in megadriv.c, porting over some code to attempt
2517to get it working again, bit by bit. [David Haywood]
2518
2519Improved dakkochn gfx; the priority are ok but there are various
2520offset so i marked also the game as "inperfect gfx". [Sonikos]
2521
2522Fixed a subtle bug in the 65c02 emulation where the result of the BIT
2523instruction differs on the 65c02 (from the 6502), when executed
2524in immediate mode. [Phill Harvey-Smith]
2525
2526Added samples suppor to Cosmic Alien. [T. Bellm]
2527
2528
2529
25301691New games added or promoted from NOT_WORKING status
25311692---------------------------------------------------
2532(Medal) Yumefuda [Bet] [Angelo Salese]
2533Grudge Match (Yankee Game Technology) [Aaron Giles]
2534Double Dealer [Angelo Salese, David Haywood]
2535Super Megatouch IV (9255-41-07 ROG, New Jersey version)
2536  [Mariusz Wojcieszek]
2537Mirage Youjuu Mahjongden [Angelo Salese]
1693Lady Liner [Roberto Fresca]
1694Kkoj Noli (Kill the Bees) [Roberto Fresca]
1695Cherry 10 (bootleg with PIC16F84)
1696   [Roberto Fresca, Andreas Naive, David Haywood]
1697Player's Edge Plus (XMP00017) 5-in-1 Wingboard [Jim Stolis]
1698Tetris  (bootleg of Mirrorsoft PC-XT Tetris version) [Angelo Salese]
1699Cherry Master '91 (ver.1.30) [Roberto Fresca]
1700Cherry Master (ver.4, set 2) [Roberto Fresca, Angelo Salese]
1701Cherry Master I (ver.1.01, set 2) [Roberto Fresca]
1702Cherry Master I (ver.1.01, set 3) [Roberto Fresca]
1703Mahjong Tenkaigen (3 sets) [Wei Mingzhi, Luca Elia]
1704Tour 4000 [Mirko Buffoni]
1705Casino Fever 4.0 [Mirko Buffoni]
1706Casino Fever 5.0 [Mirko Buffoni]
1707Tour 4010 [Mirko Buffoni]
1708Casino Fever 5.1 [Mirko Buffoni]
1709Casino Fever 6.1 [Mirko Buffoni]
1710Casino Fever 1k [Mirko Buffoni]
1711GiroTutto [Mirko Buffoni]
1712Trivia Hangup [Mariusz Wojcieszek]
1713Sure Shot [Mariusz Wojcieszek, ranger_lennier]
25381714
25391715
25401716
25411717New clones added
25421718----------------
2543The King of Fighters 2002 (bootleg) [Kawaks]
2544Police Trainer (v1.3B Newer) [Brian Troha]
2545Egg Venture (Release 8) [Brian Troha]
2546Kick for the Goal [Brian Troha] (Not Working)
2547Fire Shark (Korea, set 1, easier) [Guru]
2548Fire Shark (Korea, set 2, harder) [Guru]
2549Seibu Cup Soccer (set 2) [Chris Hardy] (NOT WORKING)
1719Hit the Ice (Japan) [Phil Bennett]
1720New clones: Salamander 2 (ver AAB) [Corrado Tomaselli]
25501721
25511722
25521723
25531724New games marked as GAME_NOT_WORKING
25541725------------------------------------
2555P's Attack [Guru]
2556Magic the Gathering: Armageddon [David Haywood]
1726Skill Cherry '98 [David Haywood]
1727Skill Cherry '97 [David Haywood]
1728Skill Fruit Bonus [David Haywood]
172986 Lions [Chris Hardy, Angelo Salese, Roberto Fresca]
1730Lucky Girl [David Haywood]
1731Poker Roulette
1732   [Chris Hardy, Angelo Salese, Roberto Fresca, David Haywood]
1733Magical Tonic [Roberto Fresca]
17343 Super 8 (Italy) [David Haywood]
1735New Champion Skill (v100n) [David Haywood]
1736Buster [David Haywood]
1737Unknown ACE Fruits Game [David Haywood]
1738Spiel Bude (German) [David Haywood, Roberto Fresca]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team