Previous 15994 Revisions Next

r11490 Monday 9th May, 2011 at 07:10:30 UTC by Miodrag Milanović
Sync with MAME (to u3)(r12478) and source cleanup (no whatsnew)
[src]version.c
[src/emu]clifront.c devcb.c devcb.h devcpu.c devcpu.h devintrf.c devintrf.h dislot.c dislot.h driver.c driver.h machine.c mconfig.c screen.h uimenu.c
[src/emu/cpu]drcbeut.c drcbeut.h drcbex86.h
[src/emu/machine]6821pia.c 6850acia.c 6850acia.h i8255.h idectrl.c jvsdev.c mccs1850.c secflash.c
[src/emu/sound]lmc1992.c lmc1992.h
[src/emu/video]crt9007.h
[src/lib/formats]flopimg.c
[src/mame]mame.lst mame.mak
[src/mame/drivers]3do.c aristmk4.c armedf.c badlands.c bsktball.c cavesh3.c csplayh5.c ginganin.c goldnpkr.c konamigv.c m92.c midtunit.c mpu4.c multfish.c overdriv.c seta.c sfbonus.c srmp2.c superwng.c* taito_l.c taito_x.c wiz.c
[src/mame/includes]bsktball.h btoads.h galivan.h ginganin.h wiz.h
[src/mame/machine]maple-dc.c mie.h msx.c psxcd.h
[src/mame/video]armedf.c seta.c seta001.c seta001.h srmp2.c taitoic.c
[src/mess]mess.mak
[src/mess/drivers]amico2k.c atom.c bbc.c cm1800.c coco.c craft.c genpc.c ibmpc.c next.c v1050.c
[src/mess/includes]atom.h genpc.h
[src/mess/machine]abc77.c abc77.h at_keybc.h c1541.h c1571.c c1571.h c1581.c c2031.h c2040.c c64.c c8280.h cbmiec.c cbmiec.h coco.c cs4031.h fm_scsi.h genpc.c ieee488.h isa.c isa.h lux10828.h lux21046.h mb89352.h vic1112.h zx8302.h
[src/mess/tools/imgtool/windows]wimgtool.c
[src/mess/tools/messdocs]messdocs.mak
[src/mess/video]hd44780.h isa_mda.h upd7220.c
[src/osd/sdl]sdlprefix.h
[src/osd/winui]mui_util.c

src/mame/mame.lst
r11489r11490
607607
608608jyunai         // (c) 1998
609609csplayh5      // (c) 1998
610mjmania         // (c) 1999
610611bikiniko      // (c) 1999
612thenanpa      // (c) 1999
613cspureh7      // (c) 1999
614fudol         // (c) 2000
611615
612616// "Phoenix hardware" (and variations) games
613617safarir         // Shin Nihon Kikaku (SNK)
r11489r11490
1006210066pinkiri8
1006310067
1006410068// Wing
10069superwng      // (c) 1985 Wing Co. Ltd
1006510070slotcarn      // (c) 1985 Wing Co. Ltd
1006610071lucky74         // (c) 1988 Wing Co. Ltd
1006710072lucky74a      // (c) 1988 Wing Co. Ltd
r11489r11490
1041710422// Multifish
1041810423//mfish       // (c) 2002
1041910424//mfish_2      // (c) 2002
10425mfish_3         // (c) 2002
1042010426//mfish_4      // (c) 2002
1042110427//mfish_5      // (c) 2002
10428mfish_6         // (c) 2002
1042210429//mfish_7      // (c) 2002
10423//mfish_8      // (c) 2002
10430mfish_8      // (c) 2002
1042410431//mfish_9      // (c) 2002
1042510432//mfish_10     // (c) 2002
10426//mfish_13     // (c) 2002
10427mfish_3         // (c) 2002
10428mfish_6         // (c) 2002
1042910433mfish_11      // (c) 2002
1043010434mfish_12      // (c) 2002
1043110435mfish_13      // (c) 2002
10436mfish_14   // (c) 2002
1043210437
1043310438// Crazy Monkey
1043410439//crzmon      // (c) 2003
r11489r11490
1062510630gnomee         // bootleg
1062610631gnome_2a      // bootleg
1062710632gnome_3a      // bootleg
10628//gnome_3b      // bootleg
10629//gnome_3c      // bootleg
10630//sweetl2_2a      // bootleg - Sweet Life 2
10631//sweetl2_2b      // bootleg
10633gnome_3b      // bootleg
10634gnome_3c      // bootleg
10635sweetl2_2a      // bootleg - Sweet Life 2
10636sweetl2_2b      // bootleg
1063210637sweetl2_2c      // bootleg
1063310638sweetl2_2d      // bootleg
1063410639
src/mame/machine/psxcd.h
r11489r11490
162162   emu_timer *m_timers[MAX_PSXCD_TIMERS];
163163   event *m_eventfortimer[MAX_PSXCD_TIMERS];
164164   bool m_timerinuse[MAX_PSXCD_TIMERS];
165   
165
166166   void add_system_event(event *ev);
167167};
168168
src/mame/machine/mie.h
r11489r11490
6767   DECLARE_READ8_MEMBER(read_78xx);
6868
6969   static IRQ_CALLBACK(irq_callback_1);
70   
70
7171   void maple_w(const UINT32 *data, UINT32 in_size);
7272
7373protected:
r11489r11490
7878   virtual void device_start();
7979   virtual void device_reset();
8080   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
81   
81
8282private:
8383   enum { TBUF_SIZE = 8 };
8484
src/mame/machine/msx.c
r11489r11490
772772static WRITE8_DEVICE_HANDLER ( msx_ppi_port_c_w )
773773{
774774   msx_state *state = device->machine().driver_data<msx_state>();
775   
775
776776   state->keylatch = data & 0x0f;
777777
778778   /* caps lock */
src/mame/machine/maple-dc.c
r11489r11490
130130
131131            // the MIE seems too slow for the correct timeout
132132            // it's rather strange though
133            //            timer->adjust(attotime::from_nsec(40000 + 20*(msys>>16))); // The 40us represent the sending and reception time
133            //              timer->adjust(attotime::from_nsec(40000 + 20*(msys>>16))); // The 40us represent the sending and reception time
134134            timer->adjust(attotime::from_msec(5));
135135            break;
136136         case 2: // sdckb occupy permission (light gun protocol)
src/mame/includes/bsktball.h
r11489r11490
2828
2929   /* misc */
3030   UINT32   m_nmi_on;
31//   int      m_i256v;
31//  int      m_i256v;
3232
3333   /* input-related */
3434   int m_ld1;
src/mame/includes/wiz.h
r11489r11490
2121   UINT8 *m_spriteram;
2222   UINT8 *m_spriteram2;
2323   size_t m_spriteram_size;
24   UINT8 m_nmi_mask;
2425};
2526
2627
src/mame/includes/btoads.h
r11489r11490
7171   // driver_device overrides
7272   virtual void machine_start();
7373   virtual void video_start();
74   
74
7575   // timer IDs
7676   enum
7777   {
src/mame/includes/ginganin.h
r11489r11490
2828   int         m_posx;
2929   int         m_posy;
3030#endif
31   /* sound-related */
32   UINT8       m_MC6840_index0;
33   UINT8       m_MC6840_register0;
34   UINT8       m_MC6840_index1;
35   UINT8       m_MC6840_register1;
36   int         m_S_TEMPO;
37   int         m_S_TEMPO_OLD;
38   int         m_MC6809_CTR;
39   int         m_MC6809_FLAG;
4031
4132   /* devices */
4233   device_t *m_audiocpu;
src/mame/includes/galivan.h
r11489r11490
1212
1313   /* memory pointers */
1414   UINT8 *     m_videoram;
15//   UINT8 *     m_colorram;
15//  UINT8 *     m_colorram;
1616   UINT8 *     m_spriteram;
1717   size_t      m_videoram_size;
1818   size_t      m_spriteram_size;
r11489r11490
2222   tilemap_t     *m_tx_tilemap;
2323   UINT16       m_scrollx;
2424   UINT16       m_scrolly;
25   UINT8       m_galivan_scrollx[2],m_galivan_scrolly[2];
25   UINT8      m_galivan_scrollx[2],m_galivan_scrolly[2];
2626   UINT8       m_flipscreen;
2727   UINT8       m_write_layers;
2828   UINT8       m_layers;
src/mame/mame.mak
r11489r11490
18171817   $(DRIVERS)/sstrangr.o \
18181818   $(DRIVERS)/statriv2.o \
18191819   $(DRIVERS)/supertnk.o \
1820   $(DRIVERS)/superwng.o \
18201821   $(DRIVERS)/tattack.o \
18211822   $(DRIVERS)/taxidrvr.o $(VIDEO)/taxidrvr.o \
18221823   $(DRIVERS)/tcl.o \
src/mame/video/armedf.c
r11489r11490
3939
4040   /* TODO: Armed F doesn't seem to use the NB1414M4! */
4141   //if (state->m_scroll_type == 1)
42   //   attributes = state->m_text_videoram[tile_index + 0x800] & 0xff;
42   //  attributes = state->m_text_videoram[tile_index + 0x800] & 0xff;
4343   //else
4444   {
4545      attributes = state->m_text_videoram[tile_index + 0x400] & 0xff;
r11489r11490
6969      attributes = state->m_text_videoram[tile_index + 0x800] & 0xff;
7070   //else
7171   //{
72   //   attributes = state->m_text_videoram[tile_index + 0x400] & 0xff;
72   //  attributes = state->m_text_videoram[tile_index + 0x400] & 0xff;
7373//
74   //   if(tile_index < 0x12) /* don't draw the NB1414M4 params! TODO: could be a better fix */
75   //      tile_number = attributes = 0x00;
74   //  if(tile_index < 0x12) /* don't draw the NB1414M4 params! TODO: could be a better fix */
75   //      tile_number = attributes = 0x00;
7676   //}
7777
7878   /* bit 3 controls priority, (0) nb1414m4 has priority over all the other video layers */
src/mame/video/taitoic.c
r11489r11490
47494749{
47504750   tc0110pcr_state *tc0110pcr = tc0110pcr_get_safe_token(device);
47514751   const tc0110pcr_interface *intf = tc0110pcr_get_interface(device);
4752   
4752
47534753   tc0110pcr->m_machine = &device->machine();
47544754
47554755   tc0110pcr->pal_offs = intf->pal_offs;
src/mame/video/seta001.c
r11489r11490
1616
1717  note: the data bus is almost certainly 8-bit, dating back to the earliest
1818        hardware the games were used on.  the RAM arrangements changes
19      slightly between games depending on how the RAM is hooked up to the
20      main cpu.
19        slightly between games depending on how the RAM is hooked up to the
20        main cpu.
2121
2222  'y' low bits are NEVER buffered?
2323
r11489r11490
3838{
3939   m_fg_flipxoffs = 0;
4040   m_fg_noflipxoffs = 0;
41   
41
4242   m_fg_flipyoffs = 0;
4343   m_fg_noflipyoffs = 0;
4444
r11489r11490
7878WRITE16_DEVICE_HANDLER( spritectrl_w16 )
7979{
8080   seta001_device *dev = (seta001_device *)device;
81   
81
8282   if (ACCESSING_BITS_0_7)
8383   {
8484      dev->m_spritectrl[offset] = data;
r11489r11490
106106WRITE16_DEVICE_HANDLER( spriteylow_w16 )
107107{
108108   seta001_device *dev = (seta001_device *)device;
109   
109
110110   if (ACCESSING_BITS_0_7)
111111   {
112112      dev->m_spriteylow[offset] = data;
r11489r11490
161161WRITE16_DEVICE_HANDLER( spritecode_w16 )
162162{
163163   seta001_device *dev = (seta001_device *)device;
164   dev->m_spritecodelow[offset] = data & 0x00ff;
165   dev->m_spritecodehigh[offset] = (data & 0xff00)>>8;
164   if (ACCESSING_BITS_0_7) dev->m_spritecodelow[offset] = data & 0x00ff;
165   if (ACCESSING_BITS_8_15)  dev->m_spritecodehigh[offset] = (data & 0xff00)>>8;
166166}
167167
168168WRITE8_DEVICE_HANDLER( spritebgflag_w8 )
r11489r11490
265265         else i = 32 * (col ^ 8) + 2 * (offs>>1) + (offs&1);
266266
267267         int code = ((m_spritecodehigh[i+0x400+bank]) << 8) | m_spritecodelow[i+0x400+bank];
268         int color =((m_spritecodehigh[i+0x600+bank]) << 8) | m_spritecodelow[i+0x600+bank];
269           
268         int color =((m_spritecodehigh[i+0x600+bank]) << 8) | m_spritecodelow[i+0x600+bank];
269
270270         int   flipx   =   code & 0x8000;
271271         int   flipy   =   code & 0x4000;
272272
r11489r11490
353353
354354      code = char_pointer[i] + ((ctrl_pointer[i] & 0x3f) << 8);
355355      color = (color_pointer[i] & 0xf8) >> 3;
356   
357     
356
357
358358      sx = x_pointer[i] - ((color_pointer[i] & 1) << 8);
359359      sy =  (m_spriteylow[i] & 0xff);
360360      flipx = ctrl_pointer[i] & 0x80;
361361      flipy = ctrl_pointer[i] & 0x40;
362     
362
363363      if (m_bankcallback) code = m_bankcallback(machine, code, color_pointer[i]);
364     
364
365365      color %= total_color_codes;
366366
367367      color += m_colorbase;
368     
368
369369      if (screenflip)
370370      {
371371         sy = max_y - sy
r11489r11490
408408   }
409409}
410410
411   
412411
412
413413void seta001_device::setac_eof()
414414{
415415   // is this handling right?
416   // it differs to tnzs, and thundercade has sprite flickering issues (not related to the devicification)
416   // it differs to tnzs, and thundercade has sprite flickering issues (not related to the devicification)
417417
418418   int ctrl2   =   m_spritectrl[1];
419419
src/mame/video/seta001.h
r11489r11490
55{
66public:
77   seta001_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
8   
98
9
1010   void seta001_draw_sprites(running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect, int bank_size, int setac);
11   
11
1212   void setac_eof( void );
1313   void tnzs_eof( void );
14   
14
1515   UINT8 m_bgflag;
16   
16
1717   UINT8 m_spritectrl[4];
1818   UINT8 m_spriteylow[0x300]; // 0x200 low y + 0x100 bg stuff
1919
r11489r11490
2121   UINT8 m_spritecodehigh[0x2000]; // ^
2222
2323   // position kludges for seta.c & srmp2.c
24   void set_fg_xoffsets( int flip, int noflip ) { m_fg_flipxoffs = flip; m_fg_noflipxoffs = noflip; };
24   void set_fg_xoffsets( int flip, int noflip ) { m_fg_flipxoffs = flip; m_fg_noflipxoffs = noflip; };
2525   int m_fg_flipxoffs, m_fg_noflipxoffs;
26   void set_fg_yoffsets( int flip, int noflip ) { m_fg_flipyoffs = flip; m_fg_noflipyoffs = noflip; };
26   void set_fg_yoffsets( int flip, int noflip ) { m_fg_flipyoffs = flip; m_fg_noflipyoffs = noflip; };
2727   int m_fg_flipyoffs, m_fg_noflipyoffs;
28   void set_bg_yoffsets( int flip, int noflip ) { m_bg_flipyoffs = flip; m_bg_noflipyoffs = noflip; };
28   void set_bg_yoffsets( int flip, int noflip ) { m_bg_flipyoffs = flip; m_bg_noflipyoffs = noflip; };
2929   int m_bg_flipyoffs, m_bg_noflipyoffs;
30   void set_bg_xoffsets( int flip, int noflip ) { m_bg_flipxoffs = flip; m_bg_noflipxoffs = noflip; };
30   void set_bg_xoffsets( int flip, int noflip ) { m_bg_flipxoffs = flip; m_bg_noflipxoffs = noflip; };
3131   int m_bg_flipxoffs, m_bg_noflipxoffs;
3232
3333   void set_transpen ( int pen ) { m_transpen = pen; };
r11489r11490
5151   private:
5252
5353private:
54   
54
5555   void seta001_draw_background( running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect, int bank_size, int setac_type);
5656   void seta001_draw_foreground( running_machine &machine, bitmap_t *bitmap, const rectangle *cliprect, int bank_size);
5757
src/mame/video/seta.c
r11489r11490
825825
826826
827827***************************************************************************/
828   
829828
829
830830/* For games without tilemaps */
831831SCREEN_UPDATE( seta_no_layers )
832832{
src/mame/video/srmp2.c
r11489r11490
9292   screen->machine().device<seta001_device>("spritegen")->set_fg_xoffsets( 0x10, 0x10 );
9393   screen->machine().device<seta001_device>("spritegen")->set_fg_yoffsets( 0x06, 0x06 );
9494   screen->machine().device<seta001_device>("spritegen")->set_bg_yoffsets( 0x09, 0x07 );
95   
95
9696   screen->machine().device<seta001_device>("spritegen")->set_spritelimit( 0x1ff-6 );
9797
9898   screen->machine().device<seta001_device>("spritegen")->set_gfxbank_callback( srmp3_gfxbank_callback );
src/mame/drivers/csplayh5.c
r11489r11490
115115
116116   AM_RANGE(0x800000, 0xbfffff) AM_ROM AM_REGION("blit_gfx",0) // GFX ROM routes here
117117
118   AM_RANGE(0xc80000, 0xcfffff) AM_RAM AM_SHARE("nvram") AM_MIRROR(0x200000) // work RAM
118   AM_RANGE(0xc00000, 0xc7ffff) AM_RAM AM_SHARE("nvram") AM_MIRROR(0x380000) // work RAM
119119
120120   AM_RANGE(0xfffc00, 0xffffff) AM_READWRITE(tmp68301_regs_r, tmp68301_regs_w)   // TMP68301 Registers
121121ADDRESS_MAP_END
r11489r11490
693693
694694}
695695
696static DRIVER_INIT( jyunai )
697{
698   general_init(machine,0x679C/2);
699}
696static DRIVER_INIT( jyunai )   { general_init(machine, 0x679c/2); }
697static DRIVER_INIT( mjmania )  { general_init(machine, 0x6b96/2); }
698static DRIVER_INIT( csplayh5 ) { general_init(machine, 0x4cb4/2); }
699static DRIVER_INIT( bikiniko ) { general_init(machine, 0x585c/2); }
700static DRIVER_INIT( thenanpa ) { general_init(machine, 0x69ec/2); }
701static DRIVER_INIT( cspureh7 ) { general_init(machine, 0x7a20/2); }
702static DRIVER_INIT( fudol )    { general_init(machine, 0x9166/2); }
700703
701static DRIVER_INIT( csplayh5 )
702{
703   general_init(machine, 0x4cb4/2);
704}
705
706static DRIVER_INIT( bikiniko )
707{
708   general_init(machine,0x585C/2);
709}
710
711
712704ROM_START( jyunai )
713705   ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg
714706   ROM_LOAD16_BYTE( "2.ic3",   0x00000, 0x20000, CRC(5923bf2e) SHA1(8fc7b95a44eb792ce03c1bffb9ad56f82d34b470) )
r11489r11490
749741   DISK_IMAGE( "csplayh5", 0, SHA1(ce4883ce1351ce5299e41bfbd9a5ae8078b82b8c) )
750742ROM_END
751743
744ROM_START( mjmania )
745   ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg
746   ROM_LOAD16_BYTE( "2.ic3", 0x000000, 0x020000, CRC(7b0f79c5) SHA1(73f23f68db4426b32583a7922abf773d67c76862) )
747   ROM_LOAD16_BYTE( "1.ic2", 0x000001, 0x020000, CRC(19192ae7) SHA1(4e9fca04b567c8ef9136a3ab87b21207a44a24c4) )
748
749   ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player
750   ROM_LOAD16_WORD_SWAP( "u2",   0x00000, 0x20000, NO_DUMP )
751
752   ROM_REGION( 0x20000, "audiocpu", 0 ) // z80
753   ROM_LOAD( "11.ic51", 0x000000, 0x020000, CRC(f0c3bb11) SHA1(691a0ff53a9417e69051e9e2bdee7500bc6a746b) )
754
755   ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs
756    ROM_LOAD16_BYTE( "3.ic40", 0x000000, 0x080000, CRC(37dde764) SHA1(0530b63d8e682cdf01128057fdc3a8c23262afc9) )
757    ROM_LOAD16_BYTE( "4.ic41", 0x000001, 0x080000, CRC(dea4a2d2) SHA1(0118eb1330c9da8fead99f64fc015fd343fed79b) )
758
759   DISK_REGION( "dvd" )
760   DISK_IMAGE( "mjmania", 0, SHA1(7117f2045fd04a3d8f8e06a6a98e8f585c4da301) )
761
762   ROM_REGION( 0x1000, "gal", ROMREGION_ERASE00 )
763   ROM_LOAD( "gal16v8b.ic8", 0x000000, 0x0008c1, BAD_DUMP CRC(6a92b563) SHA1(a6c4305cf021f37845f99713427daa9394b6ec7d) )
764ROM_END
765
752766ROM_START( bikiniko )
753767   ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg
754768   ROM_LOAD16_BYTE( "2.ic3",   0x00000, 0x20000, CRC(b80b5484) SHA1(35769d9502cbe587dad6380c35e535cea1578227) )
r11489r11490
769783   DISK_IMAGE( "bikiniko", 0, SHA1(2189b676746dd848b9b5eb69f9663d6dccd63787) )
770784ROM_END
771785
786ROM_START( thenanpa )
787   ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg
788    ROM_LOAD16_BYTE( "2.ic3", 0x000000, 0x020000, CRC(ab0b686f) SHA1(a5681dbacbc60f3eb40e079779967cf69d9cb292) )
789    ROM_LOAD16_BYTE( "1.ic2", 0x000001, 0x020000, CRC(48b65f9a) SHA1(ce35475d3b0e9e8dc69892428f3957d8d3d5f22c) )
772790
791   ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player
792   ROM_LOAD16_WORD_SWAP( "u2",   0x00000, 0x20000, NO_DUMP )
793
794   ROM_REGION( 0x20000, "audiocpu", 0 ) // z80
795    ROM_LOAD( "11.ic51", 0x000000, 0x020000, CRC(f44c4095) SHA1(d43e464bd6d614c34791445f8fd4af2f62a4dfc2) )
796
797   ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs
798    ROM_LOAD16_BYTE( "3.ic40", 0x000000, 0x080000, CRC(ee6b88c4) SHA1(64ae66a24f1639801c7bdda7faa0d604bb97ceb1) )
799    ROM_LOAD16_BYTE( "4.ic41", 0x000001, 0x080000, CRC(ce987845) SHA1(2f7dca32a79ad6afbc55ca1d492b582f952688ff) )
800
801   DISK_REGION( "dvd" )
802   DISK_IMAGE( "thenanpa", 0,  SHA1(72bf8c75189e877508c5a64d5591738d23ed7e96) )
803
804   ROM_REGION( 0x1000, "gal", ROMREGION_ERASE00 )
805    ROM_LOAD( "gal16v8b.ic8", 0x000000, 0x0008c1, BAD_DUMP CRC(daffd0ac)SHA1(cbeff914163d425a9cb30fe8d62f91fca281b11f) )
806ROM_END
807
808ROM_START( cspureh7 )
809   ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg
810   ROM_LOAD16_BYTE( "2.ic3", 0x000000, 0x020000, CRC(c5ce76a6) SHA1(f8878285d2318c1ec50ba98607eb3f15a7f69913) )
811   ROM_LOAD16_BYTE( "1.ic2", 0x000001, 0x020000, CRC(162f8cff) SHA1(8aa185fd1daa943d0b21fdf6e692f7782bc6dac4) )
812
813   ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player
814    ROM_LOAD16_WORD_SWAP( "va1b102.u2", 0x000000, 0x020000, CRC(67374715) SHA1(8767cbd81614c2686a1adb70159f909e8ffd634d) )
815
816   ROM_REGION( 0x20000, "audiocpu", 0 ) // z80
817    ROM_LOAD( "11.ic51", 0x000000, 0x020000, CRC(5905b199) SHA1(9155455bc21d23d439c4732549ff1143ee17b9d3) )
818
819   ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs
820    ROM_LOAD16_BYTE( "3.ic40", 0x000000, 0x080000, CRC(1d67ca95) SHA1(9b45045b6fa67308bade324f91c21010aa8d121e) )
821    ROM_LOAD16_BYTE( "4.ic41", 0x000001, 0x080000, CRC(b4f5f990) SHA1(88cccae04f89fef43d88f4e82b65de3de946e9af) )
822
823   DISK_REGION( "dvd" )
824   DISK_IMAGE( "cspureh7", 0, SHA1(f81e772745b0c62b17d91bd294993e49fe8da4d9) )
825
826   ROM_REGION( 0x1000, "gal", ROMREGION_ERASE00 )
827    ROM_LOAD( "mjdvd12.gal16v8b.ic8.bin", 0x000000, 0x0008c1, BAD_DUMP CRC(6a92b563)SHA1(a6c4305cf021f37845f99713427daa9394b6ec7d) )
828ROM_END
829
830ROM_START( fudol )
831   ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg
832    ROM_LOAD16_BYTE( "1.ic2", 0x000001, 0x020000, CRC(0cab2a72) SHA1(32d098bdd693a11f3cea6bbed3515c4217f40e23) )
833   ROM_LOAD16_BYTE( "2.ic3", 0x000000, 0x020000, CRC(b1fa335e) SHA1(8a881c9c511fb63b00a3a7e433bae12aa9c2c262) )
834
835   ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player
836    ROM_LOAD16_WORD_SWAP( "va1b102.u2", 0x000000, 0x020000, CRC(67374715) SHA1(8767cbd81614c2686a1adb70159f909e8ffd634d) )
837
838   ROM_REGION( 0x20000, "audiocpu", 0 ) // z80
839   ROM_LOAD( "11.ic51", 0x000000, 0x020000, CRC(f6442026) SHA1(f49ddeeeaf6fffdccea9ba73bce3ca60c07a7647) )
840
841   ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs
842   ROM_LOAD16_BYTE( "3.ic40", 0x000000, 0x080000, CRC(5c9e8665) SHA1(2a1b040e5c72d4400d4b5c467c75ae99e9bb01e2) )
843   ROM_LOAD16_BYTE( "4.ic41", 0x000001, 0x080000, CRC(fdd79d8f) SHA1(f8bb82afaa28affb04b83270eb407129f1c7e611) )
844
845   DISK_REGION( "dvd" )
846   DISK_IMAGE( "fudol", 0, SHA1(fabab43543ed14da4fe7c63a2a2cc4e68936938a) )
847
848   ROM_REGION( 0x1000, "gal", ROMREGION_ERASE00 )
849   ROM_LOAD( "gal16v8b.ic8", 0x000000, 0x0008c1, CRC(30719630) SHA1(a8c7b6d0304c38691775c5af6c32fbeeefd9f9fa) )
850ROM_END
851
773852// 1998
774853// 01 : Mahjong Gal-pri (World Gal-con Grandprix) : Nichibutsu/Just&Just
775854// 02 : Sengoku Mahjong Kurenai Otome-tai : Nichibutsu/Just&Just
776/* 03 */ GAME( 1998, jyunai,    0,   csplayh5,  csplayh5,  jyunai,   ROT0, "Nichibutsu/eic", "Jyunai - Manatsu no First Kiss (Japan)", GAME_NOT_WORKING )
777/* 04 */ GAME( 1998, csplayh5,  0,   csplayh5,  csplayh5,  csplayh5, ROT0, "Nichibutsu", "Mahjong Hanafuda Cosplay Tengoku 5 (Japan)", GAME_NOT_WORKING )
855/* 03 */ GAME( 1998, jyunai,    0,   csplayh5,  csplayh5,  jyunai,   ROT0, "Nichibutsu/eic",   "Jyunai - Manatsu no First Kiss (Japan)", GAME_NOT_WORKING )
856/* 04 */ GAME( 1998, csplayh5,  0,   csplayh5,  csplayh5,  csplayh5, ROT0, "Nichibutsu",       "Mahjong Hanafuda Cosplay Tengoku 5 (Japan)", GAME_NOT_WORKING )
778857// 05 : Jyunai2 - White Love Story : Nichibutsu/eic
779858// 06 : Mahjong Mogitate : Nichibutsu/Just&Just/NVS/Astro System/AV Japan
780859
781860
782861// 1999
783// 07 : Mahjong Maina - Kairakukan he Youkoso : Sphinx/Just&Just
862/* 07 */ GAME( 1999, mjmania,   0,   csplayh5,  csplayh5,  mjmania,        ROT0, "Sphinx/Just&Just", "Mahjong Mania - Kairakukan he Youkoso (Japan)", GAME_NOT_WORKING )
784863// 08 : Renai Mahjong Idol Gakuen : Nichibutsu/eic
785/* 09 */ GAME( 1999, bikiniko,  0,   csplayh5,  csplayh5,  bikiniko, ROT0, "Nichibutsu/eic", "BiKiNikko - Okinawa de Ippai Shityaimashita (Japan)", GAME_NOT_WORKING )
864/* 09 */ GAME( 1999, bikiniko,  0,   csplayh5,  csplayh5,  bikiniko, ROT0, "Nichibutsu/eic",   "BiKiNikko - Okinawa de Ippai Shityaimashita (Japan)", GAME_NOT_WORKING )
786865// 10 : Mahjong Hanafuda Cospure Tengoko 6 - Jyunai hen : Nichibutsu/eic
787// 11 : The Nanpa : Nichibutsu/Love Factory/eic
788// 12 : PokoaPoka Onsen de CHU - Bijin 3 Simai ni kiwotukete : Nichibutsu/eic
789// 13 : Cospure Tengoku 7 - Super Co-gal Grandprix : Nichibutsu/eic
866/* 11 */ GAME( 1999, thenanpa,  0,   csplayh5,  csplayh5,  thenanpa,        ROT0, "Nichibutsu/Love Factory/eic", "The Nanpa", GAME_NOT_WORKING )
867// 12 GAME( 1999, pokoachu,  0,   csplayh5,  csplayh5,  0,        ROT0, "Nichibutsu/eic", "PokoaPoka Onsen de CHU - Bijin 3 Simai ni Kiwotukete (Japan)", GAME_NOT_WORKING )
868/* 13 */ GAME( 1999, cspureh7,  0,   csplayh5,  csplayh5,  cspureh7,        ROT0, "Nichibutsu/eic", "Cospure Tengoku 7 - Super Co-gal Grandprix", GAME_NOT_WORKING )
790869// 14 : Ai-mode - Pet Shiiku : Nichibutsu/eic
791870
792871// 2000
793// 15 : Fu-dol : Nichbutsu/eic
872/* 15 */ GAME( 2000, fudol,    0,   csplayh5,  csplayh5,  fudol,        ROT0, "Nichibutsu/eic", "Fudol (Japan)", GAME_NOT_WORKING )
794873// 16 : Nurete Mitaino... - Net Idol Hen : Nichibutsu/Love Factory
795874// 17 : Tuugakuro no Yuuwaku : Nichibutsu/Love Factory/Just&Just
796875// 18 : Toraretyattano - AV Kantoku Hen : Nichibutsu/Love Factory/M Friend
src/mame/drivers/mpu4.c
r11489r11490
26612661
26622662//static DRIVER_INIT (m_frkstn)
26632663//{
2664//   mpu4_state *state = machine.driver_data<mpu4_state>();
2665//   state->m_reel_mux=STANDARD_REEL;
2666//   state->m_reels = 4;
2664//  mpu4_state *state = machine.driver_data<mpu4_state>();
2665//  state->m_reel_mux=STANDARD_REEL;
2666//  state->m_reels = 4;
26672667//
2668//   // setup 4 default 96 half step reels with the mux board
2669//   mpu4_config_common_reels(machine,4);
2668//  // setup 4 default 96 half step reels with the mux board
2669//  mpu4_config_common_reels(machine,4);
26702670//
2671//   //This is a Crystal ROM, needs UPD chip and Project Amber's ROM swizzle.
2671//  //This is a Crystal ROM, needs UPD chip and Project Amber's ROM swizzle.
26722672//}
26732673
26742674/* generate a 50 Hz signal (based on an RC time) */
r11489r11490
27802780ADDRESS_MAP_END
27812781
27822782//static ADDRESS_MAP_START( mpu4_crystal_map, AS_PROGRAM, 8 )
2783//   AM_RANGE(0x0000, 0x07ff) AM_RAM AM_SHARE("nvram")
2783//  AM_RANGE(0x0000, 0x07ff) AM_RAM AM_SHARE("nvram")
27842784//
2785//   AM_RANGE(0x0850, 0x0850) AM_WRITE(bankswitch_w)   // write bank (rom page select)
2785//  AM_RANGE(0x0850, 0x0850) AM_WRITE(bankswitch_w) // write bank (rom page select)
27862786//
2787//   AM_RANGE(0x0858, 0x0858) AM_WRITE(bankswitch_w)   // write bank (rom page select)
2788//   AM_RANGE(0x0878, 0x0878) AM_WRITE(bankset_w)   // write bank (rom page select)
2787//  AM_RANGE(0x0858, 0x0858) AM_WRITE(bankswitch_w) // write bank (rom page select)
2788//  AM_RANGE(0x0878, 0x0878) AM_WRITE(bankset_w)    // write bank (rom page select)
27892789//
27902790////  AM_RANGE(0x08e0, 0x08e7) AM_READWRITE(68681_duart_r,68681_duart_w) //Runs hoppers
27912791//
2792//   AM_RANGE(0x0900, 0x0907) AM_DEVREADWRITE_MODERN("ptm_ic2", ptm6840_device, read, write)/* PTM6840 IC2 */
2792//  AM_RANGE(0x0900, 0x0907) AM_DEVREADWRITE_MODERN("ptm_ic2", ptm6840_device, read, write)/* PTM6840 IC2 */
27932793//
2794//   AM_RANGE(0x0a00, 0x0a03) AM_DEVREADWRITE_MODERN("pia_ic3", pia6821_device, read, write)      /* PIA6821 IC3 */
2795//   AM_RANGE(0x0b00, 0x0b03) AM_DEVREADWRITE_MODERN("pia_ic4", pia6821_device, read, write)      /* PIA6821 IC4 */
2796//   AM_RANGE(0x0c00, 0x0c03) AM_DEVREADWRITE_MODERN("pia_ic5", pia6821_device, read, write)      /* PIA6821 IC5 */
2797//   AM_RANGE(0x0d00, 0x0d03) AM_DEVREADWRITE_MODERN("pia_ic6", pia6821_device, read, write)      /* PIA6821 IC6 */
2798//   AM_RANGE(0x0e00, 0x0e03) AM_DEVREADWRITE_MODERN("pia_ic7", pia6821_device, read, write)      /* PIA6821 IC7 */
2799//   AM_RANGE(0x0f00, 0x0f03) AM_DEVREADWRITE_MODERN("pia_ic8", pia6821_device, read, write)      /* PIA6821 IC8 */
2794//  AM_RANGE(0x0a00, 0x0a03) AM_DEVREADWRITE_MODERN("pia_ic3", pia6821_device, read, write)     /* PIA6821 IC3 */
2795//  AM_RANGE(0x0b00, 0x0b03) AM_DEVREADWRITE_MODERN("pia_ic4", pia6821_device, read, write)     /* PIA6821 IC4 */
2796//  AM_RANGE(0x0c00, 0x0c03) AM_DEVREADWRITE_MODERN("pia_ic5", pia6821_device, read, write)     /* PIA6821 IC5 */
2797//  AM_RANGE(0x0d00, 0x0d03) AM_DEVREADWRITE_MODERN("pia_ic6", pia6821_device, read, write)     /* PIA6821 IC6 */
2798//  AM_RANGE(0x0e00, 0x0e03) AM_DEVREADWRITE_MODERN("pia_ic7", pia6821_device, read, write)     /* PIA6821 IC7 */
2799//  AM_RANGE(0x0f00, 0x0f03) AM_DEVREADWRITE_MODERN("pia_ic8", pia6821_device, read, write)     /* PIA6821 IC8 */
28002800//
2801//   AM_RANGE(0x1000, 0xffff) AM_ROMBANK("bank1")   // 64k  paged ROM (4 pages)
2801//  AM_RANGE(0x1000, 0xffff) AM_ROMBANK("bank1")    // 64k  paged ROM (4 pages)
28022802//ADDRESS_MAP_END */
28032803
28042804
r11489r11490
29052905MACHINE_CONFIG_END
29062906
29072907//static MACHINE_CONFIG_DERIVED(mpu4crys, mpu4mod2 )
2908//   MCFG_CPU_MODIFY("maincpu")
2909//   MCFG_CPU_PROGRAM_MAP(mpu4_crystal_map)            // setup read and write memorymap
2908//  MCFG_CPU_MODIFY("maincpu")
2909//  MCFG_CPU_PROGRAM_MAP(mpu4_crystal_map)              // setup read and write memorymap
29102910//
2911//   MCFG_SOUND_ADD("upd", UPD7759, UPD7759_STANDARD_CLOCK)
2912//   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
2911//  MCFG_SOUND_ADD("upd", UPD7759, UPD7759_STANDARD_CLOCK)
2912//  MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
29132913//MACHINE_CONFIG_END
29142914
29152915
r11489r11490
29872987GAMEL(198?,  m_gmball,0,      mod4yam,  gamball,  m_gmball, ROT0, "Barcrest",       "Gamball",                     GAME_REQUIRES_ARTWORK|GAME_MECHANICAL,layout_gamball )//Mechanical ball launcher
29882988GAMEL(198?,  m_grtecp,0,      mod4oki,  mpu4,     m_grtecp, ROT0,   "Barcrest",       "Andy's Great Escape",            GAME_NOT_WORKING|GAME_REQUIRES_ARTWORK,layout_mpu4ext )//5 reel meter mux
29892989GAME(199?,   m_blsbys,0,     bwboki,   mpu4,     m_blsbys, ROT0,   "Barcrest",       "Blues Boys (Version 6)",         GAME_NOT_WORKING|GAME_REQUIRES_ARTWORK )
2990//GAME(199?,   m_frkstn,0,     mpu4crys, mpu4,     m_frkstn, ROT0,   "Crystal Gaming","Frank 'n' Stein (unencrypted)",   GAME_NOT_WORKING|GAME_REQUIRES_ARTWORK|GAME_NO_SOUND )//hardware not connected
2990//GAME(199?,   m_frkstn,0,    mpu4crys, mpu4,     m_frkstn, ROT0,   "Crystal Gaming","Frank 'n' Stein (unencrypted)",   GAME_NOT_WORKING|GAME_REQUIRES_ARTWORK|GAME_NO_SOUND )//hardware not connected
29912991
29922992//SWP
29932993GAMEL(1989?,connect4,        0, mpu4mod2,   connect4,   connect4,   ROT0, "Dolbeck Systems","Connect 4",GAME_IMPERFECT_GRAPHICS|GAME_REQUIRES_ARTWORK,layout_connect4 )
src/mame/drivers/seta.c
r11489r11490
15861586   AM_RANGE(0x300000, 0x300001) AM_WRITENOP                  // ? 0 / 1
15871587   AM_RANGE(0x380000, 0x3803ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size) // Palette
15881588/**/AM_RANGE(0x400000, 0x400001) AM_WRITENOP                  // ? $4000
1589/**/AM_RANGE(0x600000, 0x6005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
1590   AM_RANGE(0x600600, 0x600607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
1589/**/AM_RANGE(0x600000, 0x6005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
1590   AM_RANGE(0x600600, 0x600607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
15911591
15921592   AM_RANGE(0x800000, 0x800007) AM_WRITE(sub_ctrl_w)            // Sub CPU Control?
15931593   AM_RANGE(0xa00000, 0xa00fff) AM_READWRITE(sharedram_68000_r,sharedram_68000_w)   // Shared RAM
r11489r11490
16161616   AM_RANGE(0xa00000, 0xa00007) AM_WRITE(sub_ctrl_w)            // Sub CPU Control?
16171617   AM_RANGE(0xb00000, 0xb00fff) AM_READWRITE(sharedram_68000_r,sharedram_68000_w)   // Shared RAM
16181618   AM_RANGE(0xc00000, 0xc00001) AM_WRITENOP                  // ? $4000
1619   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
1620   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
1619   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
1620   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
16211621   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
16221622   AM_RANGE(0xf00000, 0xffffff) AM_RAM                        // RAM
16231623ADDRESS_MAP_END
r11489r11490
16761676
16771677   AM_RANGE(0x904000, 0x904fff) AM_RAM                        //
16781678   AM_RANGE(0xa00000, 0xa00019) AM_READ(calibr50_ip_r)            // Input Ports
1679/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
1680   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
1679/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
1680   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
16811681   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
16821682   AM_RANGE(0xb00000, 0xb00001) AM_READWRITE(soundlatch2_word_r,calibr50_soundlatch_w)   // From Sub CPU
16831683/**/AM_RANGE(0xc00000, 0xc00001) AM_RAM                        // ? $4000
r11489r11490
17491749   AM_RANGE(0x000000, 0x07ffff) AM_ROM                           // ROM
17501750   AM_RANGE(0xff0000, 0xffffff) AM_RAM                           // RAM
17511751   AM_RANGE(0x800000, 0x8005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16) // Sprites Y
1752   AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
1752   AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
17531753/**/AM_RANGE(0x900000, 0x900001) AM_RAM                           // ? $4000
17541754   AM_RANGE(0xa00000, 0xa00005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)         // VRAM Ctrl
17551755/**/AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
r11489r11490
17821782   AM_RANGE(0x500000, 0x500001) AM_WRITENOP                  // ? (end of lev 1: bit 4 goes 1,0,1)
17831783   AM_RANGE(0x600000, 0x600003) AM_READ(seta_dsw_r)            // DSW
17841784   AM_RANGE(0x700000, 0x7003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
1785   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
1786   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
1785   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
1786   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
17871787   AM_RANGE(0xb00000, 0xb00001) AM_READ_PORT("P1")               // P1
17881788   AM_RANGE(0xb00002, 0xb00003) AM_READ_PORT("P2")               // P2
17891789   AM_RANGE(0xb00004, 0xb00005) AM_READ_PORT("COINS")            // Coins
r11489r11490
18091809   AM_RANGE(0x700000, 0x7003ff) AM_RAM                        // (rezon,jjsquawk)
18101810   AM_RANGE(0x700400, 0x700fff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
18111811   AM_RANGE(0x703c00, 0x7047ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram2, m_paletteram2_size)   // 2nd Palette for the palette offset effect
1812/**/AM_RANGE(0x800000, 0x8005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
1813   AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
1812/**/AM_RANGE(0x800000, 0x8005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
1813   AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
18141814   AM_RANGE(0x880000, 0x880001) AM_RAM                        // ? 0xc000
18151815   AM_RANGE(0x900000, 0x903fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
18161816/**/AM_RANGE(0xa00000, 0xa00005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)      // VRAM 0&1 Ctrl
r11489r11490
18501850   AM_RANGE(0x884000, 0x88ffff) AM_RAM                        // (jjsquawk)
18511851/**/AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)      // VRAM 0&1 Ctrl
18521852/**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)      // VRAM 2&3 Ctrl
1853/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
1854   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
1853/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
1854   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
18551855/**/AM_RANGE(0xa80000, 0xa80001) AM_RAM                        // ? 0x4000
18561856   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
18571857   AM_RANGE(0xc00000, 0xc03fff) AM_DEVREADWRITE("x1snd", seta_sound_word_r,seta_sound_word_w)   // Sound
r11489r11490
19331933   AM_RANGE(0x884000, 0x88ffff) AM_RAM                        // (jjsquawk)
19341934/**/AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)      // VRAM 0&1 Ctrl
19351935/**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)      // VRAM 2&3 Ctrl
1936/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
1937   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
1936/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
1937   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
19381938/**/AM_RANGE(0xa80000, 0xa80001) AM_RAM                        // ? 0x4000
19391939   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
19401940   AM_RANGE(0xc00000, 0xc03fff) AM_DEVREADWRITE("x1snd", seta_sound_word_r,seta_sound_word_w)   // Sound
r11489r11490
19761976   AM_RANGE(0x902010, 0x902013) AM_READ( zingzipbl_unknown_r )
19771977
19781978/**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)      // VRAM 2&3 Ctrl
1979/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
1980   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
1979/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
1980   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
19811981/**/AM_RANGE(0xa80000, 0xa80001) AM_RAM                        // ? 0x4000
19821982   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
19831983   AM_RANGE(0xc00000, 0xc03fff) AM_RAM // soundram on original
r11489r11490
20092009   AM_RANGE(0x884000, 0x88ffff) AM_RAM                        // (jjsquawk)
20102010   AM_RANGE(0x908000, 0x908005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)      // VRAM 0&1 Ctrl
20112011   AM_RANGE(0x909000, 0x909005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)      // VRAM 2&3 Ctrl
2012   AM_RANGE(0xa0a000, 0xa0a5ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // RZ: Sprites Y
2013   AM_RANGE(0xa0a600, 0xa0a607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2012   AM_RANGE(0xa0a000, 0xa0a5ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // RZ: Sprites Y
2013   AM_RANGE(0xa0a600, 0xa0a607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
20142014// AM_RANGE(0xa80000, 0xa80001) AM_RAM                              // ? 0x4000
20152015   AM_RANGE(0xb0c000, 0xb0ffff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // RZ: Sprites Code + X + Attr
20162016   AM_RANGE(0xc00000, 0xc03fff) AM_DEVREADWRITE("x1snd", seta_sound_word_r,seta_sound_word_w)   // Sound
r11489r11490
20442044   AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
20452045   AM_RANGE(0xc00000, 0xc03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
20462046/**/AM_RANGE(0xd00000, 0xd00001) AM_RAM                        // ? 0x4000
2047/**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2048   AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2047/**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2048   AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
20492049ADDRESS_MAP_END
20502050
20512051/***************************************************************************
r11489r11490
21302130   AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
21312131   AM_RANGE(0xc00000, 0xc03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
21322132/**/AM_RANGE(0xd00000, 0xd00001) AM_RAM                        // ? 0x4000
2133/**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2134   AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2133/**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2134   AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
21352135ADDRESS_MAP_END
21362136
21372137static MACHINE_START( keroppi )
r11489r11490
21622162   AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
21632163   AM_RANGE(0xc00000, 0xc03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)   // Sprites Code + X + Attr
21642164/**/AM_RANGE(0xd00000, 0xd00001) AM_RAM   // ? 0x4000
2165/**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)    // Sprites Y
2166   AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2165/**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)   // Sprites Y
2166   AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
21672167ADDRESS_MAP_END
21682168
21692169
r11489r11490
21892189   AM_RANGE(0x884000, 0x88ffff) AM_RAM                        //
21902190   AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)      // VRAM 0&1 Ctrl
21912191   AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)      // VRAM 2&3 Ctrl
2192   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)    // Sprites Y
2193   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2192   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)   // Sprites Y
2193   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
21942194
21952195   AM_RANGE(0xa80000, 0xa80001) AM_RAM   // ? 0x4000
21962196   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)   // Sprites Code + X + Attr
r11489r11490
22222222   AM_RANGE(0xb00004, 0xb00005) AM_READ_PORT("COINS")            // Coins
22232223   AM_RANGE(0xb00006, 0xb00007) AM_READNOP                     // unused (qzkklogy)
22242224/**/AM_RANGE(0xc00000, 0xc00001) AM_RAM                        // ? $4000
2225/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2226   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2225/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2226   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
22272227   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
22282228ADDRESS_MAP_END
22292229
r11489r11490
23212321   AM_RANGE(0x884000, 0x88ffff) AM_RAM                        //
23222322/**/AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)      // VRAM 0&1 Ctrl
23232323/**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)      // VRAM 2&3 Ctrl
2324/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2325   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2324/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2325   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
23262326/**/AM_RANGE(0xa80000, 0xa80001) AM_RAM                        // ? 0x4000
23272327   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
23282328   AM_RANGE(0xb04000, 0xb13fff) AM_RAM                        //
r11489r11490
23532353   AM_RANGE(0x884000, 0x887fff) AM_RAM   // tested
23542354   AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)      // VRAM 0&1 Ctrl
23552355   AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)      // VRAM 2&3 Ctrl
2356   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2357   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2356   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2357   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
23582358   AM_RANGE(0xa80000, 0xa80001) AM_RAM                        // ? $4000
23592359   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
23602360   AM_RANGE(0xb04000, 0xb07fff) AM_RAM                        // tested
r11489r11490
23832383   AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)      // VRAM 0&1 Ctrl
23842384   AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)      // VRAM 2&3 Ctrl
23852385
2386   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2387   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2386   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2387   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
23882388   AM_RANGE(0xa80000, 0xa80001) AM_RAM                        // ? $4000
23892389   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
23902390#if __uPD71054_TIMER
r11489r11490
24412441   AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
24422442   AM_RANGE(0xc00000, 0xc03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
24432443/**/AM_RANGE(0xd00000, 0xd00001) AM_RAM                        // ? 0x4000
2444/**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2445   AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2444/**/AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2445   AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
24462446ADDRESS_MAP_END
24472447
24482448
r11489r11490
24752475   AM_RANGE(0x500000, 0x500005) AM_RAM_WRITE(msgundam_vregs_w) AM_BASE_MEMBER(seta_state, m_vregs)   // Coin Lockout + Video Registers
24762476   AM_RANGE(0x600000, 0x600003) AM_READ(seta_dsw_r)            // DSW
24772477   AM_RANGE(0x700400, 0x700fff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
2478   AM_RANGE(0x800000, 0x8005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2479   AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2478   AM_RANGE(0x800000, 0x8005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2479   AM_RANGE(0x800600, 0x800607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
24802480   AM_RANGE(0x880000, 0x880001) AM_RAM                        // ? 0x4000
24812481   AM_RANGE(0x900000, 0x903fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
24822482   AM_RANGE(0xa00000, 0xa03fff) AM_RAM_WRITE(seta_vram_0_w) AM_BASE_MEMBER(seta_state, m_vram_0)   // VRAM 0&1
r11489r11490
25122512   AM_RANGE(0x880000, 0x883fff) AM_RAM_WRITE(seta_vram_2_w) AM_BASE_MEMBER(seta_state, m_vram_2)   // VRAM 2&3
25132513/**/AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)      // VRAM 0&1 Ctrl
25142514/**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)      // VRAM 2&3 Ctrl
2515/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2516   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2515/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2516   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
25172517/**/AM_RANGE(0xa80000, 0xa80001) AM_RAM                      // ? 0x4000
25182518   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
25192519   AM_RANGE(0xc00400, 0xc00fff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
r11489r11490
25412541   AM_RANGE(0x880000, 0x883fff) AM_RAM_WRITE(seta_vram_2_w) AM_BASE_MEMBER(seta_state, m_vram_2)   // VRAM 2&3
25422542/**/AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)      // VRAM 0&1 Ctrl
25432543/**/AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)      // VRAM 2&3 Ctrl
2544/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2545   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2544/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2545   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
25462546/**/AM_RANGE(0xa80000, 0xa80001) AM_RAM                      // ? 0x4000
25472547   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
25482548   AM_RANGE(0xc00400, 0xc00fff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
r11489r11490
25972597   AM_RANGE(0xfffc00, 0xffffff) AM_READWRITE(kiwame_nvram_r, kiwame_nvram_w) AM_BASE_MEMBER(seta_state, m_kiwame_nvram)   // NVRAM + Regs ?
25982598   AM_RANGE(0x800000, 0x803fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
25992599/**/AM_RANGE(0x900000, 0x900001) AM_RAM                        // ? 0x4000
2600/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2601   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2600/**/AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2601   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
26022602   AM_RANGE(0xb00000, 0xb003ff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
26032603   AM_RANGE(0xc00000, 0xc03fff) AM_DEVREADWRITE("x1snd", seta_sound_word_r,seta_sound_word_w)   // Sound
26042604   AM_RANGE(0xd00000, 0xd00009) AM_READ(kiwame_input_r)         // mahjong panel
r11489r11490
26392639   AM_RANGE(0xb00008, 0xb00009) AM_READ_PORT("P3")               // P3 (wits)
26402640   AM_RANGE(0xb0000a, 0xb0000b) AM_READ_PORT("P4")               // P4 (wits)
26412641/**/AM_RANGE(0xc00000, 0xc00001) AM_RAM                        // ? 0x4000
2642/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2643   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2642/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2643   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
26442644   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
26452645   AM_RANGE(0xe04000, 0xe07fff) AM_RAM                        // (wits)
26462646ADDRESS_MAP_END
r11489r11490
26632663   AM_RANGE(0xb00008, 0xb00009) AM_READ_PORT("P3")               // P3 (wits)
26642664   AM_RANGE(0xb0000a, 0xb0000b) AM_READ_PORT("P4")               // P4 (wits)
26652665/**/AM_RANGE(0xc00000, 0xc00001) AM_RAM                        // ? 0x4000
2666/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2667   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2666/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2667   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
26682668   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
26692669   AM_RANGE(0xe04000, 0xe07fff) AM_RAM                        // (wits)
26702670ADDRESS_MAP_END
r11489r11490
27052705   AM_RANGE(0xb00008, 0xb00009) AM_READ_PORT("P3")               // P3 (wits)
27062706   AM_RANGE(0xb0000a, 0xb0000b) AM_READ_PORT("P4")               // P4 (wits)
27072707/**/AM_RANGE(0xc00000, 0xc00001) AM_RAM                        // ? 0x4000
2708/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2709   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2708/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2709   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
27102710   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
27112711   AM_RANGE(0xe04000, 0xe07fff) AM_RAM   // (wits)
27122712ADDRESS_MAP_END
r11489r11490
27352735   AM_RANGE(0x400004, 0x400005) AM_WRITENOP                  // ? (end of lev 2)
27362736   AM_RANGE(0x500000, 0x500001) AM_RAM_WRITE(seta_vregs_w) AM_BASE_MEMBER(seta_state, m_vregs)   // Coin Lockout + Video Registers
27372737   AM_RANGE(0x600000, 0x600003) AM_READ(seta_dsw_r)            // DSW
2738   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2739   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2738   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2739   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
27402740/**/AM_RANGE(0xa80000, 0xa80001) AM_RAM                        // ? 0x4000
27412741   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
27422742   AM_RANGE(0xc00000, 0xc03fff) AM_DEVREADWRITE("x1snd", seta_sound_word_r,seta_sound_word_w)   // Sound
r11489r11490
27692769   AM_RANGE(0x880000, 0x883fff) AM_RAM_WRITE(seta_vram_2_w) AM_BASE_MEMBER(seta_state, m_vram_2)   // VRAM 2&3
27702770   AM_RANGE(0x900000, 0x900005) AM_WRITEONLY AM_BASE_MEMBER(seta_state, m_vctrl_0)// VRAM 0&1 Ctrl
27712771   AM_RANGE(0x980000, 0x980005) AM_WRITEONLY AM_BASE_MEMBER(seta_state, m_vctrl_2)// VRAM 2&3 Ctrl
2772   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2773   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2772   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2773   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
27742774   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
27752775   AM_RANGE(0xc00000, 0xc00001) AM_WRITE(utoukond_soundlatch_w)   // To Sound CPU (cause an IRQ)
27762776   AM_RANGE(0xe00000, 0xe00001) AM_WRITENOP                  // ? ack
r11489r11490
28132813   AM_RANGE(0xb00000, 0xb00fff) AM_RAM AM_BASE_SIZE_MEMBER(seta_state, m_paletteram, m_paletteram_size)   // Palette
28142814   AM_RANGE(0xc00000, 0xc03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      // Sprites Code + X + Attr
28152815   AM_RANGE(0xd00000, 0xd00001) AM_RAM                        // ? 0x4000
2816   AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)       // Sprites Y
2817   AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2816   AM_RANGE(0xe00000, 0xe005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      // Sprites Y
2817   AM_RANGE(0xe00600, 0xe00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
28182818   AM_RANGE(0xf00000, 0xf0ffff) AM_RAM                        // RAM
28192819ADDRESS_MAP_END
28202820
r11489r11490
28402840   AM_RANGE(0x880000, 0x883fff) AM_WRITE(seta_vram_0_w) AM_BASE_MEMBER(seta_state, m_vram_0) // VRAM 0
28412841   AM_RANGE(0x900000, 0x900005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_2)   // VRAM 2&3 Ctrl
28422842   AM_RANGE(0x980000, 0x980005) AM_RAM AM_BASE_MEMBER(seta_state, m_vctrl_0)   // VRAM 0&1 Ctrl
2843   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)    // Sprites Y
2844   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2843   AM_RANGE(0xa00000, 0xa005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)   // Sprites Y
2844   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
28452845   AM_RANGE(0xa80000, 0xa80001) AM_WRITENOP   // ? 0x4000
28462846   AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)   // Sprites Code + X + Attr
28472847ADDRESS_MAP_END
r11489r11490
29102910
29112911   AM_RANGE(0xc00000, 0xc00001) AM_RAM      // ? 0x4000
29122912
2913   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)    // Sprites Y
2914   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2913   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)   // Sprites Y
2914   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
29152915
29162916   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)   // Sprites Code + X + Attr
29172917
r11489r11490
29772977
29782978   AM_RANGE(0xc00000, 0xc00001) AM_RAM      // ? 0x4000
29792979
2980   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)    // Sprites Y
2981   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
2980   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)   // Sprites Y
2981   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
29822982
29832983   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)   // Sprites Code + X + Attr
29842984
r11489r11490
37543754    PORT_DIPNAME( 0x0001, 0x0001, "0" )
37553755    PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
37563756    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
3757     PORT_BIT( 0x000e, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // rtc?
3757   PORT_BIT( 0x000e, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // rtc?
37583758    PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Unknown ) )
37593759    PORT_DIPSETTING(      0x0010, DEF_STR( Off ) )
37603760    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
r11489r11490
38913891    PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) )
38923892    PORT_DIPSETTING(      0x8000, DEF_STR( Off ) )
38933893    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
3894   
3894
38953895   PORT_START("UNK3")
38963896    PORT_DIPNAME( 0x0001, 0x0001, "3" )
38973897    PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r11489r11490
39413941    PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) )
39423942    PORT_DIPSETTING(      0x8000, DEF_STR( Off ) )
39433943    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
3944   
3944
39453945   PORT_START("UNK4")
39463946    PORT_DIPNAME( 0x0001, 0x0001, "4" )
39473947    PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
r11489r11490
39883988    PORT_DIPNAME( 0x8000, 0x8000, DEF_STR( Unknown ) )
39893989    PORT_DIPSETTING(      0x8000, DEF_STR( Off ) )
39903990    PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
3991   
3991
39923992   PORT_START("UNK5")
39933993    PORT_DIPNAME( 0x0001, 0x0001, "5" )
39943994    PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
src/mame/drivers/ginganin.c
r11489r11490
4444                                To Do
4545                                -----
4646
47- The sound section will benefit from proper MC6840 and YM8950 emulation
47- game doesn't init paletteram / tilemaps properly, ending up with MAME
48  palette defaults at start-up and missing text layer if you coin it up
49  too soon.
4850
4951***************************************************************************/
5052
5153#include "emu.h"
52#include "cpu/m6809/m6809.h"
5354#include "cpu/m68000/m68000.h"
54#include "deprecat.h"
55#include "cpu/m6809/m6809.h"
5556#include "sound/ay8910.h"
5657#include "sound/8950intf.h"
5758#include "includes/ginganin.h"
59#include "machine/6840ptm.h"
5860
5961
62#define MAIN_CLOCK XTAL_6MHz
63#define SOUND_CLOCK XTAL_3_579545MHz
64
65
6066/*
6167**
6268**              Main cpu data
r11489r11490
8490**
8591*/
8692
87static WRITE8_HANDLER( MC6840_control_port_0_w )
88{
89   /* MC6840 Emulation by Takahiro Nogi. 1999/09/27
90    (This routine hasn't been completed yet.) */
91
92   ginganin_state *state = space->machine().driver_data<ginganin_state>();
93   state->m_MC6840_index0 = data;
94
95   if (state->m_MC6840_index0 & 0x80)   /* enable timer output */
96   {
97      if ((state->m_MC6840_register0 != state->m_S_TEMPO) && (state->m_MC6840_register0 != 0))
98      {
99         state->m_S_TEMPO = state->m_MC6840_register0;
100#ifdef MAME_DEBUG
101         popmessage("I0:0x%02X R0:0x%02X I1:0x%02X R1:0x%02X", state->m_MC6840_index0, state->m_MC6840_register0, state->m_MC6840_index1, state->m_MC6840_register1);
102#endif
103      }
104      state->m_MC6809_FLAG = 1;
105   }
106   else
107      state->m_MC6809_FLAG = 0;
108
109#ifdef MAME_DEBUG
110   logerror("MC6840 Write:(0x%02X)0x%02X\n", state->m_MC6840_register0,  data);
111#endif
112}
113
114static WRITE8_HANDLER( MC6840_control_port_1_w )
115{
116   /* MC6840 Emulation by Takahiro Nogi. 1999/09/27
117    (This routine hasn't been completed yet.) */
118
119   ginganin_state *state = space->machine().driver_data<ginganin_state>();
120   state->m_MC6840_index1 = data;
121}
122
123static WRITE8_HANDLER( MC6840_write_port_0_w )
124{
125   /* MC6840 Emulation by Takahiro Nogi. 1999/09/27
126    (This routine hasn't been completed yet.) */
127
128   ginganin_state *state = space->machine().driver_data<ginganin_state>();
129   state->m_MC6840_register0 = data;
130}
131
132static WRITE8_HANDLER( MC6840_write_port_1_w )
133{
134   /* MC6840 Emulation by Takahiro Nogi. 1999/09/27
135    (This routine hasn't been completed yet.) */
136
137   ginganin_state *state = space->machine().driver_data<ginganin_state>();
138   state->m_MC6840_register1 = data;
139}
140
14193static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8 )
14294   AM_RANGE(0x0000, 0x07ff) AM_RAM
143   AM_RANGE(0x0800, 0x0800) AM_WRITE(MC6840_control_port_0_w)   /* Takahiro Nogi. 1999/09/27 */
144   AM_RANGE(0x0801, 0x0801) AM_WRITE(MC6840_control_port_1_w)   /* Takahiro Nogi. 1999/09/27 */
145   AM_RANGE(0x0802, 0x0802) AM_WRITE(MC6840_write_port_0_w)      /* Takahiro Nogi. 1999/09/27 */
146   AM_RANGE(0x0803, 0x0803) AM_WRITE(MC6840_write_port_1_w)      /* Takahiro Nogi. 1999/09/27 */
95   AM_RANGE(0x0800, 0x0807) AM_DEVREADWRITE_MODERN("6840ptm", ptm6840_device, read, write)
14796   AM_RANGE(0x1800, 0x1800) AM_READ(soundlatch_r)
14897   AM_RANGE(0x2000, 0x2001) AM_DEVWRITE("ymsnd", y8950_w)
14998   AM_RANGE(0x2800, 0x2801) AM_DEVWRITE("aysnd", ay8910_address_data_w)
r11489r11490
218167   PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Flip_Screen ) )
219168   PORT_DIPSETTING(     0x4000, DEF_STR( Off ) )
220169   PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
221   PORT_DIPNAME( 0x8000, 0x8000, "Freeze (Cheat)")
170   PORT_DIPNAME( 0x8000, 0x8000, "Freeze" )
222171   PORT_DIPSETTING(     0x8000, DEF_STR( Off ) )
223172   PORT_DIPSETTING(     0x0000, DEF_STR( On ) )
224173INPUT_PORTS_END
r11489r11490
272221
273222
274223
275/* Modified by Takahiro Nogi. 1999/09/27 */
276static INTERRUPT_GEN( ginganin_sound_interrupt )
277{
278   /* MC6840 Emulation by Takahiro Nogi. 1999/09/27
279    (This routine hasn't been completed yet.) */
280224
281   ginganin_state *state = device->machine().driver_data<ginganin_state>();
282225
283   if (state->m_S_TEMPO_OLD != state->m_S_TEMPO)
284   {
285      state->m_S_TEMPO_OLD = state->m_S_TEMPO;
286      state->m_MC6809_CTR = 0;
287   }
288226
289   if (state->m_MC6809_FLAG != 0)
290   {
291      if (state->m_MC6809_CTR > state->m_S_TEMPO)
292      {
293         state->m_MC6809_CTR = 0;
294         device_set_input_line(device, 0, HOLD_LINE);
295      }
296      else
297         state->m_MC6809_CTR++;
298   }
299}
300227
301228
302
303
304
305229static MACHINE_START( ginganin )
306230{
307231   ginganin_state *state = machine.driver_data<ginganin_state>();
r11489r11490
310234
311235   state->save_item(NAME(state->m_layers_ctrl));
312236   state->save_item(NAME(state->m_flipscreen));
313   state->save_item(NAME(state->m_MC6840_index0));
314   state->save_item(NAME(state->m_MC6840_register0));
315   state->save_item(NAME(state->m_MC6840_index1));
316   state->save_item(NAME(state->m_MC6840_register1));
317   state->save_item(NAME(state->m_S_TEMPO));
318   state->save_item(NAME(state->m_S_TEMPO_OLD));
319   state->save_item(NAME(state->m_MC6809_CTR));
320   state->save_item(NAME(state->m_MC6809_FLAG));
321237}
322238
323239static MACHINE_RESET( ginganin )
r11489r11490
326242
327243   state->m_layers_ctrl = 0;
328244   state->m_flipscreen = 0;
329   state->m_MC6840_index0 = 0;
330   state->m_MC6840_register0 = 0;
331   state->m_MC6840_index1 = 0;
332   state->m_MC6840_register1 = 0;
333   state->m_S_TEMPO = 0;
334   state->m_S_TEMPO_OLD = 0;
335   state->m_MC6809_CTR = 0;
336   state->m_MC6809_FLAG = 0;
337245}
338246
339247
248static WRITE8_DEVICE_HANDLER( ptm_irq )
249{
250   cputag_set_input_line(device->machine(), "audiocpu", 0, (data & 1) ? ASSERT_LINE : CLEAR_LINE);
251}
252
253static const ptm6840_interface ptm_intf =
254{
255   SOUND_CLOCK/2,
256   { 0, 0, 0 },
257   { DEVCB_HANDLER(ptm_irq), DEVCB_NULL, DEVCB_NULL },
258   DEVCB_NULL
259};
260
340261static MACHINE_CONFIG_START( ginganin, ginganin_state )
341262
342263   /* basic machine hardware */
343   MCFG_CPU_ADD("maincpu", M68000, 6000000)   /* ? */
264   MCFG_CPU_ADD("maincpu", M68000, MAIN_CLOCK)
344265   MCFG_CPU_PROGRAM_MAP(ginganin_map)
345266   MCFG_CPU_VBLANK_INT("screen", irq1_line_hold) /* ? (vectors 1-7 cointain the same address) */
346267
347   MCFG_CPU_ADD("audiocpu", M6809, 1000000)
268   MCFG_CPU_ADD("audiocpu", M6809, SOUND_CLOCK)
348269   MCFG_CPU_PROGRAM_MAP(sound_map)
349   MCFG_CPU_VBLANK_INT_HACK(ginganin_sound_interrupt,60)   /* Takahiro Nogi. 1999/09/27 (1 -> 60) */
350270
351271   MCFG_MACHINE_START(ginganin)
352272   MCFG_MACHINE_RESET(ginganin)
353273
274   MCFG_PTM6840_ADD("6840ptm", ptm_intf)
275
354276   /* video hardware */
355277   MCFG_SCREEN_ADD("screen", RASTER)
356278   MCFG_SCREEN_REFRESH_RATE(60)
r11489r11490
368290   /* sound hardware */
369291   MCFG_SPEAKER_STANDARD_MONO("mono")
370292
371   MCFG_SOUND_ADD("aysnd", AY8910, 3579545 / 2)
293   MCFG_SOUND_ADD("aysnd", AY8910, SOUND_CLOCK / 2)
372294   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.10)
373295
374   MCFG_SOUND_ADD("ymsnd", Y8950, 3579545)   /* The Y8950 is basically a YM3526 with ADPCM built in */
296   MCFG_SOUND_ADD("ymsnd", Y8950, SOUND_CLOCK)   /* The Y8950 is basically a YM3526 with ADPCM built in */
375297   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
376298MACHINE_CONFIG_END
377299
src/mame/drivers/aristmk4.c
r11489r11490
21652165   ROM_LOAD( "gn1.u11", 0x08000, 0x1000, CRC(80dce6f4) SHA1(bf953eba9cb270297b0d0efffe15b926e94dfbe7) )
21662166   ROM_LOAD( "rd0.u13", 0x0a000, 0x1000, CRC(38c57504) SHA1(cc3ac1df644abc4586fc9f0e88531ba146b86b48) )
21672167
2168//    ROM_REGION( 0x200, "proms", 0 )
2169//    ROM_LOAD( "prom.x", 0x00, 0x20, NO_DUMP )
2168//  ROM_REGION( 0x200, "proms", 0 )
2169//  ROM_LOAD( "prom.x", 0x00, 0x20, NO_DUMP )
21702170ROM_END
21712171
21722172
src/mame/drivers/badlands.c
r11489r11490
720720   MCFG_CPU_PROGRAM_MAP(bootleg_map)
721721   MCFG_CPU_VBLANK_INT("screen", vblank_int)
722722
723//  MCFG_CPU_ADD("audiocpu", Z80, XTAL_20MHz/12)   /* Divisor estimated */
723//  MCFG_CPU_ADD("audiocpu", Z80, XTAL_20MHz/12)    /* Divisor estimated */
724724//  MCFG_CPU_PROGRAM_MAP(bootleg_soundmap)
725725
726726   MCFG_MACHINE_START(badlands)
src/mame/drivers/goldnpkr.c
r11489r11490
267267
268268
269269    * Witch Card (Proma)
270   
271   For the first time: You must coin-up and play at least one hand, then Payout
272    to get the proper coinage settings.
273270
271    For the first time: You must coin-up and play at least one hand, then Payout
272    to get the proper coinage settings.
274273
274
275275*******************************************************************************
276276
277277
src/mame/drivers/taito_l.c
r11489r11490
26592659   ROM_REGION( 0x20000, "gfx1", 0 )
26602660   ROM_LOAD( "c20-07.ic10", 0x00000, 0x10000, CRC(be12749a) SHA1(c67d1a434486843a6776d89e905362b7db595d8d) )
26612661   ROM_LOAD( "c20-06.ic9",  0x10000, 0x10000, CRC(ac85a9c5) SHA1(2d72dae86a191ccdac9648980aca832fb9886544) )
2662   
2662
26632663   ROM_REGION( 0x0800, "pals", 0 )
26642664   ROM_LOAD( "mmipal20l8.ic3", 0x0000, 0x0800, NO_DUMP )
26652665ROM_END
r11489r11490
26752675   ROM_REGION( 0x40000, "gfx1", 0 )
26762676   ROM_LOAD( "u10.ic10",  0x00000, 0x20000, CRC(4264056c) SHA1(d2d8a170ae0f361093a5384935238605a59e5938) )
26772677   ROM_LOAD( "u09.ic9",   0x20000, 0x20000, CRC(3c115f8b) SHA1(8d518be01b7c4d6d993d5d9b62aab719a5c8baca) )
2678     
2678
26792679   ROM_REGION( 0x0800, "pals", 0 )
26802680   ROM_LOAD( "mmipal20l8.ic3", 0x0000, 0x0800, NO_DUMP )
26812681ROM_END
src/mame/drivers/m92.c
r11489r11490
215215static MACHINE_START( m92 )
216216{
217217   m92_state *state = machine.driver_data<m92_state>();
218     state->save_item(NAME(state->m_sound_status));
218   state->save_item(NAME(state->m_sound_status));
219219}
220220
221221static MACHINE_RESET( m92 )
222222{
223     m92_state *state = machine.driver_data<m92_state>();
223   m92_state *state = machine.driver_data<m92_state>();
224224
225225   state->m_sprite_buffer_busy = 1;
226226}
r11489r11490
229229
230230static TIMER_DEVICE_CALLBACK( m92_scanline_interrupt )
231231{
232    running_machine &machine = timer.machine();
232   running_machine &machine = timer.machine();
233233   m92_state *state = machine.driver_data<m92_state>();
234234   int scanline = param;
235235
r11489r11490
20902090   state->m_irq_vectorbase = 0x80;
20912091}
20922092
2093/* TODO: figure out actual address map and other differences from real Irem h/w */
2094/* Based on the size of the program ROMs, this board might have bankswitching */
2095static DRIVER_INIT( ppan )
2096{
2097   m92_state *state = machine.driver_data<m92_state>();
2098   UINT8 *ROM = machine.region("maincpu")->base();
2099
2100   memory_set_bankptr(machine, "bank1", &ROM[0xa0000]);
2101
2102   state->m_game_kludge = 0;
2103   state->m_irq_vectorbase = 0x80;
2104
2105   /* NOP out the sound comms */
2106   machine.device("maincpu")->memory().space(AS_IO)->nop_write(0x00, 0x01);
2107   machine.device("maincpu")->memory().space(AS_IO)->nop_write(0xc0, 0xc1);
2108}
2109
20932110/***************************************************************************/
20942111
20952112GAME( 1991, gunforce, 0,        gunforce,      gunforce, m92,      ROT0,   "Irem",         "Gunforce - Battle Fire Engulfed Terror Island (World)", GAME_SUPPORTS_SAVE )
r11489r11490
21152132GAME( 1992, hook,     0,        hook,          hook,     m92,      ROT0,   "Irem",         "Hook (World)", GAME_SUPPORTS_SAVE )
21162133GAME( 1992, hooku,    hook,     hook,          hook,     m92,      ROT0,   "Irem America", "Hook (US)", GAME_SUPPORTS_SAVE )
21172134GAME( 1992, hookj,    hook,     hook,          hook,     m92,      ROT0,   "Irem",         "Hook (Japan)", GAME_SUPPORTS_SAVE )
2118GAME( 1992, ppan,     hook,     ppan,          hook,     m92,      ROT0,   "bootleg",      "Peter Pan (bootleg of Hook)", GAME_NOT_WORKING ) // PCB marked 'Peter Pan', no title screen, made in Italy?
2135GAME( 1992, ppan,     hook,     ppan,          hook,     ppan,     ROT0,   "bootleg",      "Peter Pan (bootleg of Hook)", GAME_NOT_WORKING ) // PCB marked 'Peter Pan', no title screen, made in Italy?
21192136GAME( 1992, rtypeleo, 0,        rtypeleo,      rtypeleo, m92_alt,  ROT0,   "Irem",         "R-Type Leo (World)", GAME_SUPPORTS_SAVE )
21202137GAME( 1992, rtypeleoj,rtypeleo, rtypeleo,      rtypeleo, m92_alt,  ROT0,   "Irem",         "R-Type Leo (Japan)", GAME_SUPPORTS_SAVE )
21212138GAME( 1993, inthunt,  0,        inthunt,       inthunt,  m92,      ROT0,   "Irem",         "In The Hunt (World)", GAME_SUPPORTS_SAVE )
src/mame/drivers/superwng.c
r0r11490
1/****************************************************************************************
2Super Wing - (c) 1985 Wing (UPL?)
3
4driver by Tomasz Slanina
5
6Hardware a bit (interrupts, sound) similar to mouser
7
8TODO:
9
10 - unused rom 6.8s (located on the pcb near the gfx rom 7.8p, but contains
11   data (similar to the one in roms 4.5p and 5.5r).
12   There are two possibilities: its bad dump of gfx rom (two extra bit layers
13   of current gfx) or it's banked at 0x4000 - 0x7fff area.
14  - missing color prom dump (missing on pcb)
15  - some unknown DSW and inputs
16  - unknown writes
17  - tile and sprite flipping (both h and v controlled by the same bit?)
18  - sprite coords and tile num (is the >>2 correct ?) (name entry, flipped screen)
19  - measure clocks
20
21  To enter initials - use tilt. It's probably separate button (?), not a tilt sensor.
22
23*****************************************************************************************/
24
25#include "emu.h"
26#include "cpu/z80/z80.h"
27#include "sound/ay8910.h"
28
29#define MASTER_CLOCK XTAL_18_432MHz
30
31class superwng_state : public driver_device
32{
33public:
34   superwng_state(const machine_config &mconfig, device_type type, const char *tag)
35      : driver_device(mconfig, type, tag) { }
36
37   UINT8 *    m_videoram_bg;
38   UINT8 *    m_colorram_bg;
39   UINT8 *    m_videoram_fg;
40   UINT8 *    m_colorram_fg;
41
42   int         m_tile_bank;
43
44   UINT8      m_sound_byte;
45   UINT8      m_nmi_enable;
46
47   device_t *   m_maincpu;
48   device_t *   m_audiocpu;
49
50   tilemap_t *   m_bg_tilemap;
51   tilemap_t *   m_fg_tilemap;
52
53};
54
55static TILE_GET_INFO( get_bg_tile_info )
56{
57   superwng_state *state = machine.driver_data<superwng_state>();
58   int code = state->m_videoram_bg[tile_index];
59   int attr = state->m_colorram_bg[tile_index];
60
61   code= (code&0x7f) | ((attr&0x40)<<1) | ((code&0x80)<<1);
62   code|=state->m_tile_bank?0x200:0;
63
64   int flipx=(attr&0x80) ? TILE_FLIPX : 0;
65   int flipy=(attr&0x80) ? TILE_FLIPY : 0;
66
67   SET_TILE_INFO(   0, code, attr & 0xf, flipx|flipy);
68}
69
70static TILE_GET_INFO( get_fg_tile_info )
71{
72   superwng_state *state = machine.driver_data<superwng_state>();
73   int code = state->m_videoram_fg[tile_index];
74   int attr = state->m_colorram_fg[tile_index];
75
76   code= (code&0x7f) | ((attr&0x40)<<1) | ((code&0x80)<<1);
77
78   code|=state->m_tile_bank?0x200:0;
79
80   int flipx=(attr&0x80) ? TILE_FLIPX : 0;
81   int flipy=(attr&0x80) ? TILE_FLIPY : 0;
82
83   SET_TILE_INFO( 0, code, attr & 0xf, flipx|flipy);
84}
85
86WRITE8_HANDLER( superwng_flip_screen_x_w )
87{
88   flip_screen_x_set(space->machine(), ~data & 1);
89}
90
91WRITE8_HANDLER( superwng_flip_screen_y_w )
92{
93   flip_screen_y_set(space->machine(), ~data & 1);
94}
95
96static VIDEO_START( superwng )
97{
98   superwng_state *state = machine.driver_data<superwng_state>();
99   state->m_bg_tilemap = tilemap_create(machine, get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32);
100   state->m_fg_tilemap = tilemap_create(machine, get_fg_tile_info, tilemap_scan_rows, 8, 8, 32, 32);
101
102   tilemap_set_scrollx(state->m_bg_tilemap, 0, 64);
103}
104
105static SCREEN_UPDATE( superwng )
106{
107   superwng_state *state = screen->machine().driver_data<superwng_state>();
108   int flip=flip_screen_get(screen->machine());
109
110   tilemap_draw(bitmap, cliprect, state->m_bg_tilemap, 0, 0);
111   rectangle tmp=*cliprect;
112
113   if(flip)
114   {
115      tmp.min_x+=32;
116      tilemap_draw(bitmap, &tmp, state->m_fg_tilemap, 0, 0);
117   }
118   else
119   {
120      tmp.max_x-=32;
121      tilemap_draw(bitmap, &tmp, state->m_fg_tilemap, 0, 0);
122   }
123
124   {
125      //sprites
126
127      for(int i=0x3e; i>=0; i-=2)
128      {
129         int code=(state->m_videoram_bg[i]>>2)+0x40;
130         int sx=256-state->m_videoram_bg[i+1]-8;
131         int sy = state->m_colorram_bg[i]+8;
132         int attr = state->m_colorram_bg[i+1];
133
134         if (flip)
135         {
136            sy-=8;
137            sx-=8;
138         }
139
140         if(state->m_videoram_bg[i+1] | state->m_colorram_bg[i])
141         {
142
143            drawgfx_transpen(bitmap, cliprect,screen->machine().gfx[1],
144                        code,
145                        attr,
146                        flip, flip,
147                        sx, sy, 0);
148         }
149      }
150   }
151
152   return 0;
153}
154
155
156static const UINT8 superwng_colors[]= /* temporary */
157{
158   0x00, 0xc4, 0xff, 0x87, 0x00, 0xb0, 0xff, 0x2f, 0x00, 0x07, 0xff, 0xe0, 0x00, 0x86, 0xff, 0xc6,
159   0x00, 0x07, 0x3f, 0xff, 0x00, 0xb0, 0x38, 0x27, 0x00, 0x20, 0xff, 0x27, 0x00, 0xa4, 0xff, 0x87,
160   0x00, 0x58, 0xa8, 0x27, 0x00, 0x38, 0x3f, 0x27, 0x00, 0x80, 0xe4, 0x38, 0x00, 0x87, 0xff, 0x07,
161   0x00, 0xc0, 0x07, 0x3f, 0x00, 0x1f, 0x3f, 0xff, 0x00, 0x86, 0x05, 0xff, 0x00, 0xc0, 0xe8, 0xff
162};
163
164PALETTE_INIT( superwng )
165{
166   int i;
167   const UINT8 * ptr=superwng_colors;
168
169   for (i = 0; i < machine.total_colors(); i++)
170   {
171      int bit0, bit1, bit2, r, g, b;
172
173      bit0 = BIT(*ptr, 0);
174      bit1 = BIT(*ptr, 1);
175      bit2 = BIT(*ptr, 2);
176      r = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
177
178      bit0 = BIT(*ptr, 3);
179      bit1 = BIT(*ptr, 4);
180      bit2 = BIT(*ptr, 5);
181      g = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2;
182
183      bit0 = BIT(*ptr, 6);
184      bit1 = BIT(*ptr, 7);
185      b = 0x4f * bit0 + 0xa8 * bit1;
186
187      palette_set_color(machine,i,MAKE_RGB(r,g,b));
188      ++ptr;
189   }
190}
191
192static WRITE8_HANDLER( superwng_nmi_enable_w )
193{
194   superwng_state *state = space->machine().driver_data<superwng_state>();
195   state->m_nmi_enable = data;
196}
197
198static INTERRUPT_GEN( superwng_nmi_interrupt )
199{
200   superwng_state *state = device->machine().driver_data<superwng_state>();
201
202   if (BIT(state->m_nmi_enable, 0))
203      nmi_line_pulse(device);
204}
205
206static WRITE8_HANDLER( superwng_sound_interrupt_w )
207{
208   superwng_state *state = space->machine().driver_data<superwng_state>();
209   state->m_sound_byte = data;
210   device_set_input_line(state->m_audiocpu, 0, ASSERT_LINE);
211}
212
213static READ8_DEVICE_HANDLER( superwng_sound_byte_r )
214{
215   superwng_state *state = device->machine().driver_data<superwng_state>();
216   device_set_input_line(state->m_audiocpu, 0, CLEAR_LINE);
217   return state->m_sound_byte;
218}
219
220static WRITE8_HANDLER( superwng_sound_nmi_clear_w )
221{
222   superwng_state *state = space->machine().driver_data<superwng_state>();
223   device_set_input_line(state->m_audiocpu, INPUT_LINE_NMI, CLEAR_LINE);
224}
225
226static INTERRUPT_GEN( superwng_sound_nmi_assert )
227{
228   superwng_state *state = device->machine().driver_data<superwng_state>();
229   if (BIT(state->m_nmi_enable, 0))
230      device_set_input_line(device, INPUT_LINE_NMI, ASSERT_LINE);
231}
232
233static WRITE8_HANDLER(superwng_bg_vram_w)
234{
235   superwng_state *state = space->machine().driver_data<superwng_state>();
236   state->m_videoram_bg[offset] = data;
237   tilemap_mark_tile_dirty(state->m_bg_tilemap, offset);
238}
239
240static WRITE8_HANDLER(superwng_bg_cram_w)
241{
242   superwng_state *state = space->machine().driver_data<superwng_state>();
243   state->m_colorram_bg[offset] = data;
244   tilemap_mark_tile_dirty(state->m_bg_tilemap, offset);
245}
246
247static WRITE8_HANDLER(superwng_fg_vram_w)
248{
249   superwng_state *state = space->machine().driver_data<superwng_state>();
250   state->m_videoram_fg[offset] = data;
251   tilemap_mark_tile_dirty(state->m_fg_tilemap, offset);
252}
253
254static WRITE8_HANDLER(superwng_fg_cram_w)
255{
256   superwng_state *state = space->machine().driver_data<superwng_state>();
257   state->m_colorram_fg[offset] = data;
258   tilemap_mark_tile_dirty(state->m_fg_tilemap, offset);
259}
260
261static WRITE8_HANDLER(superwng_tilebank_w)
262{
263   superwng_state *state = space->machine().driver_data<superwng_state>();
264   state->m_tile_bank = data;
265   tilemap_mark_all_tiles_dirty(state->m_bg_tilemap);
266   tilemap_mark_all_tiles_dirty(state->m_fg_tilemap);
267}
268
269static WRITE8_HANDLER( superwng_flip_screen_w )
270{
271   superwng_state *state = space->machine().driver_data<superwng_state>();
272   flip_screen_set(space->machine(), ~data & 0x01);
273   tilemap_mark_all_tiles_dirty(state->m_bg_tilemap);
274   tilemap_mark_all_tiles_dirty(state->m_fg_tilemap);
275}
276
277static WRITE8_HANDLER(superwng_cointcnt1_w)
278{
279   coin_counter_w(space->machine(), 0, data);
280}
281
282static WRITE8_HANDLER(superwng_cointcnt2_w)
283{
284   coin_counter_w(space->machine(), 1, data);
285}
286
287static ADDRESS_MAP_START( superwng_map, AS_PROGRAM, 8 )
288   AM_RANGE(0x0000, 0x6fff) AM_ROM
289   AM_RANGE(0x7000, 0x7fff) AM_RAM
290   AM_RANGE(0x8000, 0x83ff) AM_RAM_WRITE(superwng_bg_vram_w) AM_BASE_MEMBER(superwng_state, m_videoram_bg)
291   AM_RANGE(0x8400, 0x87ff) AM_RAM_WRITE(superwng_fg_vram_w) AM_BASE_MEMBER(superwng_state, m_videoram_fg)
292   AM_RANGE(0x8800, 0x8bff) AM_RAM_WRITE(superwng_bg_cram_w) AM_BASE_MEMBER(superwng_state, m_colorram_bg)
293   AM_RANGE(0x8c00, 0x8fff) AM_RAM_WRITE(superwng_fg_cram_w) AM_BASE_MEMBER(superwng_state, m_colorram_fg)
294   AM_RANGE(0x9800, 0x99ff) AM_RAM  //collision map
295   AM_RANGE(0xa000, 0xa000) AM_READ_PORT("P1")
296   AM_RANGE(0xa000, 0xa000) AM_WRITENOP //unknown
297   AM_RANGE(0xa080, 0xa080) AM_READ_PORT("P2")
298   AM_RANGE(0xa100, 0xa100) AM_READ_PORT("DSW1")
299   AM_RANGE(0xa100, 0xa100) AM_WRITE(superwng_sound_interrupt_w)
300   AM_RANGE(0xa180, 0xa180) AM_READ_PORT("DSW2")
301   AM_RANGE(0xa180, 0xa180) AM_WRITENOP //watchdog ? int ack ?
302   AM_RANGE(0xa181, 0xa181) AM_WRITE(superwng_nmi_enable_w)
303   AM_RANGE(0xa182, 0xa182) AM_WRITE(superwng_tilebank_w)
304   AM_RANGE(0xa183, 0xa183) AM_WRITE(superwng_flip_screen_w)
305   AM_RANGE(0xa184, 0xa184) AM_WRITE(superwng_cointcnt1_w)
306   AM_RANGE(0xa185, 0xa185) AM_WRITENOP //unknown , always(?) 0
307   AM_RANGE(0xa186, 0xa186) AM_WRITE(superwng_cointcnt2_w)
308   AM_RANGE(0xa187, 0xa187) AM_WRITENOP //unknown , always(?) 0
309ADDRESS_MAP_END
310
311static ADDRESS_MAP_START( superwng_sound_map, AS_PROGRAM, 8 )
312   AM_RANGE(0x0000, 0x1fff) AM_ROM
313   AM_RANGE(0x2000, 0x23ff) AM_RAM
314   AM_RANGE(0x3000, 0x3000) AM_WRITE(superwng_sound_nmi_clear_w)
315   AM_RANGE(0x4000, 0x4000) AM_DEVREADWRITE("ay1", ay8910_r, ay8910_data_w)
316   AM_RANGE(0x5000, 0x5000) AM_DEVWRITE("ay1", ay8910_address_w)
317   AM_RANGE(0x6000, 0x6000) AM_DEVREADWRITE("ay2", ay8910_r, ay8910_data_w)
318   AM_RANGE(0x7000, 0x7000) AM_DEVWRITE("ay2", ay8910_address_w)
319ADDRESS_MAP_END
320
321static INPUT_PORTS_START( superwng )
322   PORT_START("P1")
323   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME( "Launch Ball" )
324   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME( "Right Flipper" )
325   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME( "Left Flipper" )
326   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
327   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 )
328   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 )
329   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY
330   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 )
331
332   PORT_START("P2")
333   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME( "Launch Ball" ) PORT_COCKTAIL
334   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME( "Right Flipper" ) PORT_COCKTAIL
335   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME( "Left Flipper" ) PORT_COCKTAIL
336   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_TILT )
337   PORT_BIT( 0x70, IP_ACTIVE_LOW, IPT_UNUSED )
338   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 )
339
340   PORT_START("DSW1")
341   PORT_DIPNAME( 0x01, 0x00, DEF_STR( Unknown ))
342   PORT_DIPSETTING(   0x00,  DEF_STR( Off ) )
343   PORT_DIPSETTING(   0x01,  DEF_STR( On ) )
344   PORT_DIPNAME( 0x02, 0x00, DEF_STR( Unknown ))
345   PORT_DIPSETTING(   0x00,  DEF_STR( Off ) )
346   PORT_DIPSETTING(   0x02,  DEF_STR( On ) )
347   PORT_DIPNAME( 0x04, 0x00, DEF_STR( Unknown ))
348   PORT_DIPSETTING(   0x00,  DEF_STR( Off ) )
349   PORT_DIPSETTING(   0x04,  DEF_STR( On ) )
350   PORT_DIPNAME( 0x08, 0x00, DEF_STR( Cabinet ) )
351   PORT_DIPSETTING(    0x00, DEF_STR( Upright ))
352   PORT_DIPSETTING(    0x08, DEF_STR( Cocktail ))
353   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Unknown ))
354   PORT_DIPSETTING(   0x00,  DEF_STR( Off ) )
355   PORT_DIPSETTING(   0x10,  DEF_STR( On ) )
356   PORT_DIPNAME( 0x20, 0x00, DEF_STR( Unknown ))
357   PORT_DIPSETTING(   0x00,  DEF_STR( Off ) )
358   PORT_DIPSETTING(   0x20,  DEF_STR( On ) )
359   PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ))
360   PORT_DIPSETTING(   0x00,  DEF_STR( Off ) )
361   PORT_DIPSETTING(   0x40,  DEF_STR( On ) )
362   PORT_DIPNAME( 0x80, 0x00, DEF_STR( Lives ) )
363   PORT_DIPSETTING(   0x00, "3" )
364   PORT_DIPSETTING(   0x80, "5" )
365
366   PORT_START("DSW2")
367   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) )
368   PORT_DIPSETTING(    0x03, DEF_STR( 1C_1C ) )
369   PORT_DIPSETTING(    0x02, DEF_STR( 1C_2C ) )
370   PORT_DIPSETTING(    0x01, DEF_STR( 1C_5C ) )
371   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
372   PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Coin_B ) )
373   PORT_DIPSETTING(    0x0c, DEF_STR( 3C_1C ) )
374   PORT_DIPSETTING(    0x08, DEF_STR( 2C_1C ) )
375   PORT_DIPSETTING(    0x04, DEF_STR( 1C_1C ))
376   PORT_DIPSETTING(    0x00, DEF_STR( 1C_2C ) )
377   PORT_DIPNAME( 0x30, 0x00,   DEF_STR( Unknown ) ) //causes writes to 0xa000 every frame
378   PORT_DIPSETTING(    0x00, "0" )
379   PORT_DIPSETTING(    0x10, "1" )
380   PORT_DIPSETTING(    0x20, "2" )
381   PORT_DIPSETTING(    0x30, "3" )
382   PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ))
383   PORT_DIPSETTING(   0x00,  DEF_STR( Off ) )
384   PORT_DIPSETTING(   0x40,  DEF_STR( On ) )
385   PORT_DIPNAME( 0x80, 0x00, DEF_STR( Unknown ))
386   PORT_DIPSETTING(   0x00,  DEF_STR( Off ) )
387   PORT_DIPSETTING(   0x80,  DEF_STR( On ) )
388INPUT_PORTS_END
389
390static const gfx_layout charlayout =
391{
392   8,8,
393   RGN_FRAC(1,1),
394   2,
395   { 0,4 },
396   {8*8+0,8*8+1,8*8+2,8*8+3,0,1,2,3},
397   {8*0, 8*1, 8*2, 8*3, 8*4, 8*5, 8*6, 8*7},
398   16*8
399};
400
401static const gfx_layout spritelayout =
402{
403   16,16,
404   RGN_FRAC(1,1),
405   2,
406   { 0,4 },
407   {8*8+0,8*8+1,8*8+2,8*8+3,0,1,2,3,
408
409   16*8+8*8+0,16*8+8*8+1,16*8+8*8+2,16*8+8*8+3,16*8+0,16*8+1,16*8+2,16*8+3},
410   {8*0, 8*1, 8*2, 8*3, 8*4, 8*5, 8*6, 8*7,
411   16*8*2+8*0, 16*8*2+8*1, 16*8*2+8*2, 16*8*2+8*3, 16*8*2+8*4, 16*8*2+8*5, 16*8*2+8*6, 16*8*2+8*7,
412
413   },
414   16*8*4
415};
416
417static GFXDECODE_START( superwng )
418   GFXDECODE_ENTRY( "gfx1", 0x0000, charlayout,       0, 16 )
419   GFXDECODE_ENTRY( "gfx1", 0x0000, spritelayout,     0, 16 )
420GFXDECODE_END
421
422static MACHINE_START( superwng )
423{
424   superwng_state *state = machine.driver_data<superwng_state>();
425
426   state->m_maincpu = machine.device("maincpu");
427   state->m_audiocpu = machine.device("audiocpu");
428
429   state->save_item(NAME(state->m_sound_byte));
430   state->save_item(NAME(state->m_nmi_enable));
431}
432
433static MACHINE_RESET( superwng )
434{
435   superwng_state *state = machine.driver_data<superwng_state>();
436
437   state->m_sound_byte = 0;
438   state->m_nmi_enable = 0;
439}
440
441static const ay8910_interface ay8910_config_1 =
442{
443   AY8910_LEGACY_OUTPUT,
444   AY8910_DEFAULT_LOADS,
445   DEVCB_HANDLER(superwng_sound_byte_r),
446   DEVCB_NULL,
447   DEVCB_NULL,
448   DEVCB_NULL
449};
450
451static const ay8910_interface ay8910_config_2 =
452{
453   AY8910_LEGACY_OUTPUT,
454   AY8910_DEFAULT_LOADS,
455   DEVCB_NULL,
456   DEVCB_NULL,
457   DEVCB_NULL,
458   DEVCB_NULL
459};
460
461static MACHINE_CONFIG_START( superwng, superwng_state )
462
463   /* basic machine hardware */
464   MCFG_CPU_ADD("maincpu", Z80, MASTER_CLOCK/4)
465   MCFG_CPU_PROGRAM_MAP(superwng_map)
466   MCFG_CPU_VBLANK_INT("screen", superwng_nmi_interrupt)
467
468   MCFG_CPU_ADD("audiocpu", Z80, MASTER_CLOCK/4)
469   MCFG_CPU_PROGRAM_MAP(superwng_sound_map)
470   MCFG_CPU_PERIODIC_INT(superwng_sound_nmi_assert, 4*60)
471
472   MCFG_MACHINE_START(superwng)
473   MCFG_MACHINE_RESET(superwng)
474
475   /* video hardware */
476   MCFG_SCREEN_ADD("screen", RASTER)
477   MCFG_SCREEN_REFRESH_RATE(60)
478   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
479   MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
480   MCFG_SCREEN_SIZE(32*8, 32*8)
481   MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
482
483   MCFG_GFXDECODE(superwng)
484
485   MCFG_PALETTE_LENGTH(0x40)
486   MCFG_PALETTE_INIT(superwng)
487   MCFG_VIDEO_START( superwng )
488   MCFG_SCREEN_UPDATE(superwng)
489
490   MCFG_SPEAKER_STANDARD_MONO("mono")
491
492   MCFG_SOUND_ADD("ay1", AY8910, MASTER_CLOCK/12)
493   MCFG_SOUND_CONFIG(ay8910_config_1)
494   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
495
496   MCFG_SOUND_ADD("ay2", AY8910, MASTER_CLOCK/12)
497   MCFG_SOUND_CONFIG(ay8910_config_2)
498   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
499MACHINE_CONFIG_END
500
501ROM_START( superwng )
502   ROM_REGION( 0x20000, "maincpu", 0 )
503   ROM_LOAD( "2.5l",         0x0000, 0x2000, CRC(8d102f8d) SHA1(ff6d994273a2e493a68637822cd0b1a2f69fd054) )
504   ROM_LOAD( "3.5m",         0x2000, 0x2000, CRC(3b08bd19) SHA1(2020e2835df86a6a279bbf9d013a489f0e32a4bd) )
505   ROM_LOAD( "4.5p",         0x4000, 0x2000, CRC(6a49746d) SHA1(f5cd5eb77f60972a3897243f9ee3d61aac0878fc) )
506   ROM_LOAD( "5.5r",         0x6000, 0x2000, CRC(ebd23487) SHA1(16e8faf989aa80dbf9934450ec4ba642a6f88c63) )
507
508   ROM_LOAD( "6.8s",        0x10000, 0x4000, CRC(774433e0) SHA1(82b10d797581c14914bcce320f2aa5d3fb1fba33) ) /* unknown */
509
510   ROM_REGION( 0x10000, "audiocpu", 0 )
511   ROM_LOAD( "1.1a",         0x0000, 0x2000, CRC(a70aa39e) SHA1(b03de65d7bd020eb77495997128dce5ccbdbefac) )
512
513   ROM_REGION( 0x4000, "gfx1", 0 )
514   ROM_LOAD( "7.8p",        0x0000, 0x4000, CRC(b472603c) SHA1(96f477a47a5be3db1292fea4f5c91ab155013f74) )
515
516   ROM_REGION( 0x0040, "proms", 0 )
517   ROM_LOAD( "bprom.bin", 0x0000, 0x0040, NO_DUMP)
518ROM_END
519
520
521GAME( 1985, superwng,   0,      superwng, superwng, 0, ROT90, "Wing", "Super Wing", GAME_WRONG_COLORS )
src/mame/drivers/sfbonus.c
r11489r11490
53755375ROM_END
53765376
53775377/* Fruit Bonus 3G */
5378/*
5378/*
53795379
53805380Version 1.0.1 roms need dumping. Board was reflashed (updated) to v1.0.3
53815381
src/mame/drivers/multfish.c
r11489r11490
949949   AM_RANGE(0xea, 0xea)  AM_WRITE(multfish_bank_w) // Fruit Cocktail 2 banking
950950   AM_RANGE(0xec, 0xec)  AM_WRITE(multfish_bank_w) // Crazy Monkey lottery banking
951951
952   AM_RANGE(0xf0, 0xf0)  AM_WRITE(multfish_bank_w) // Gold Fish banking
952953   AM_RANGE(0xf1, 0xf1)  AM_WRITE(multfish_rambank_w)
953954   AM_RANGE(0xf3, 0xf3)  AM_WRITE(multfish_f3_w) // from 00->01 at startup, irq enable maybe?
954955   AM_RANGE(0xf4, 0xf4)  AM_WRITE(multfish_dispenable_w) // display enable
r11489r11490
11281129ROM_START( mfish_3 ) // 021124
11291130   ROM_REGION( 0x40000, "maincpu", 0 )
11301131   ROM_LOAD( "mf021124.rom", 0x00000, 0x40000, CRC(59fd16f5) SHA1(ea132f68e9c09c40369d4cc02c670ee6e26bdcbe) )
1131   
1132
11321133   ROM_REGION( 0x400000, "gfx", 0 )
11331134   ROM_LOAD( "multi_fish.001", 0x000000, 0x80000, CRC(2f2a7367) SHA1(ce7ee9ca4f374ec61edc3b89d4752f0edb64a910) )
11341135   ROM_LOAD( "multi_fish.002", 0x100000, 0x80000, CRC(606acd73) SHA1(ce5f7b1366dbb16d57fe4b7f395f08725e3cf756) )
r11489r11490
12031204
12041205ROM_START( mfish_8 ) // 030522
12051206   ROM_REGION( 0x40000, "maincpu", 0 )
1206   ROM_LOAD( "mf030522.rom", 0x00000, 0x40000, MD5(17dc6bf0308a4ac53bdff0ade1216235) SHA1(fa80e12275b960374c84518bcaa1e32d0a4ff437) )
1207   ROM_LOAD( "mf030522.rom", 0x00000, 0x40000, CRC(bff97c25) SHA1(fa80e12275b960374c84518bcaa1e32d0a4ff437) )
12071208
12081209   ROM_REGION( 0x400000, "gfx", 0 )
12091210   ROM_LOAD( "multi_fish.001", 0x000000, 0x80000, CRC(2f2a7367) SHA1(ce7ee9ca4f374ec61edc3b89d4752f0edb64a910) )
r11489r11490
12911292   ROM_LOAD( "multi_fish.008", 0x380000, 0x80000, CRC(29f1a326) SHA1(5e268411cab888c0727aaf8ae7d0b435d2efd189) )
12921293ROM_END
12931294
1295ROM_START( mfish_14 ) // Gold Fish 020903 prototype of Multi Fish
1296   ROM_REGION( 0x40000, "maincpu", 0 ) // z80 code, banked
1297   ROM_LOAD( "gf_020903.rom", 0x00000, 0x40000, CRC(705304fc) SHA1(f02336066ba2ff394ac153107e308d5356e99eca) )
12941298
1299   ROM_REGION( 0x400000, "gfx", 0 )
1300   ROM_LOAD( "multi_fish.001", 0x000000, 0x80000, CRC(2f2a7367) SHA1(ce7ee9ca4f374ec61edc3b89d4752f0edb64a910) )
1301   ROM_LOAD( "multi_fish.002", 0x100000, 0x80000, CRC(606acd73) SHA1(ce5f7b1366dbb16d57fe4b7f395f08725e3cf756) )
1302   ROM_LOAD( "multi_fish.003", 0x200000, 0x80000, CRC(33759c2a) SHA1(6afcee2e00a27542fc9751702abcc84cd7d3a2a8) )
1303   ROM_LOAD( "multi_fish.004", 0x300000, 0x80000, CRC(d0053546) SHA1(01c69be0c594947d57648f491904a3b6938a5570) )
1304   ROM_LOAD( "multi_fish.005", 0x080000, 0x80000, CRC(6f632872) SHA1(949661cb234855a9c86403e9893c5d9f465ddd79) )
1305   ROM_LOAD( "multi_fish.006", 0x180000, 0x80000, CRC(023c1193) SHA1(98cf2732f9542b0bb3bee324611f6d3143ef1dc4) )
1306   ROM_LOAD( "multi_fish.007", 0x280000, 0x80000, CRC(9afdc2d3) SHA1(b112fd2005354c9f97d77030bdb6f99d7b5c8050) )
1307   ROM_LOAD( "multi_fish.008", 0x380000, 0x80000, CRC(29f1a326) SHA1(5e268411cab888c0727aaf8ae7d0b435d2efd189) )
1308ROM_END
1309
1310
12951311/*********************************************************
12961312   Crazy Monkey
12971313
r11489r11490
15971613ROM_START( fcockt_11 ) // 070822
15981614   ROM_REGION( 0x40000, "maincpu", 0 ) // z80 code, banked
15991615   ROM_LOAD( "fc_070822.rom", 0x00000, 0x40000, CRC(f156657d) SHA1(bd538e714a87461bdf84df18ae3f8caeee876747) )
1600   
1616
16011617   ROM_REGION( 0x400000, "gfx", 0 )
16021618   ROM_LOAD( "fruitcocktail.001",   0x000000, 0x80000, CRC(735FBE79) SHA1(6ab590e00043dcb6648fd942e11747486d497df1) ) /* Only this set is listed as official hashes */
16031619   ROM_LOAD( "fruitcocktail.002",   0x100000, 0x80000, CRC(28fc888e) SHA1(2b8c55675bf61203682d560c9b3f29568719113f) )
r11489r11490
17531769   ROM_LOAD( "luckyhaunter_m.008", 0x380000, 0x80000, CRC(1bdf6252) SHA1(7b5ae82a95a744b236e109024d47b526dccf9c14) )
17541770ROM_END
17551771
1756                   
1772
17571773/*********************************************************
17581774   Garage
1759   
1775
17601776    "Russia" sets use different gfx roms 1-4.
17611777        The official list of hashes shows only updated roms.
17621778
r11489r11490
21832199   ROM_LOAD( "island.008", 0x380000, 0x80000, CRC(ac6fba48) SHA1(64dd03d624f16da52bc7fa0702246e91ae39a806) )
21842200ROM_END
21852201
2186                           
2202
21872203/*********************************************************
21882204   Island 2
21892205**********************************************************/
r11489r11490
25412557//GAME( 2002, mfish_5,     mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Multi Fish (021227)", GAME_SUPPORTS_SAVE ) /* World */
25422558  GAME( 2002, mfish_6,     mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Multi Fish (030124)", GAME_SUPPORTS_SAVE ) /* World */
25432559//GAME( 2002, mfish_7,     mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Multi Fish (030511)", GAME_SUPPORTS_SAVE ) /* World */
2544//GAME( 2002, mfish_8,     mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Multi Fish (030522)", GAME_SUPPORTS_SAVE ) /* World */
2560  GAME( 2002, mfish_8,     mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Multi Fish (030522)", GAME_SUPPORTS_SAVE ) /* World */
25452561//GAME( 2002, mfish_9,     mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Multi Fish (031026)", GAME_SUPPORTS_SAVE ) /* World */
25462562//GAME( 2002, mfish_10,    mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Multi Fish (031117)", GAME_SUPPORTS_SAVE ) /* World */
25472563  GAME( 2002, mfish_11,    mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Multi Fish (031124)", GAME_SUPPORTS_SAVE ) /* World */
25482564  GAME( 2002, mfish_12,    mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Multi Fish (040308)", GAME_SUPPORTS_SAVE ) /* World */
25492565  GAME( 2002, mfish_13,    mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Multi Fish (040316)", GAME_SUPPORTS_SAVE ) /* World */
2566  GAME( 2002, mfish_14,    mfish_parent,    multfish, multfish,  0,        ROT0, "Igrosoft", "Gold Fish (020903, prototype)", GAME_SUPPORTS_SAVE ) /* World */
25502567
25512568#define crzmon_parent crzmon_5
25522569//GAME( 2003, crzmon,      crzmon_parent,   multfish, multfish,  0,        ROT0, "Igrosoft", "Crazy Monkey (030217 World)", GAME_SUPPORTS_SAVE ) /* World */
r11489r11490
42944311GAME( 2007, gnomee,      gnome_parent,    multfish, multfish,  customl,       ROT0, "bootleg",  "Gnome (bootleg, 070906, LOTOS GN01)", GAME_SUPPORTS_SAVE ) // custom alteras, modified graphics, bank F9, many texts changed, changed version text to "LOTOS GN01"
42954312GAME( 2007, gnome_2a,    gnome_parent,    multfish, multfish,  0,             ROT0, "bootleg",  "Gnome (bootleg, 071115, banking address hack)", GAME_SUPPORTS_SAVE ) // bank F9
42964313GAME( 2007, gnome_3a,    gnome_parent,    multfish, multfish,  0,             ROT0, "bootleg",  "Gnome (bootleg, 080303, banking address hack)", GAME_SUPPORTS_SAVE ) // bank F9
4297//GAME( 2007, gnome_3b,    gnome_parent,    multfish, multfish,  0,             ROT0, "bootleg",  "Gnome (bootleg, 080303, banking address hack, payout percentage 45)", GAME_SUPPORTS_SAVE ) // bank F9 payout percentage 45%
4298//GAME( 2007, gnome_3c,    gnome_parent,    multfish, multfish,  0,             ROT0, "bootleg",  "Gnome (bootleg, 080303, banking address hack, payout percentage 60)", GAME_SUPPORTS_SAVE ) // bank F9 payout percentage 60%
4314GAME( 2007, gnome_3b,    gnome_parent,    multfish, multfish,  0,             ROT0, "bootleg",  "Gnome (bootleg, 080303, banking address hack, payout percentage 45)", GAME_SUPPORTS_SAVE ) // bank F9 payout percentage 45%
4315GAME( 2007, gnome_3c,    gnome_parent,    multfish, multfish,  0,             ROT0, "bootleg",  "Gnome (bootleg, 080303, banking address hack, payout percentage 60)", GAME_SUPPORTS_SAVE ) // bank F9 payout percentage 60%
42994316
4300//GAME( 2007, sweetl2_2a,  sweetl2_parent,  multfish, multfish,  0,             ROT0,  "bootleg", "Sweet Life 2 (bootleg, 080320, banking address hack set 1)", GAME_SUPPORTS_SAVE ) // bank F9
4301//GAME( 2007, sweetl2_2b,  sweetl2_parent,  multfish, multfish,  0,             ROT0,  "bootleg", "Sweet Life 2 (bootleg, 080320, banking address hack set 2)", GAME_SUPPORTS_SAVE ) // bank F9, some fixes
4317GAME( 2007, sweetl2_2a,  sweetl2_parent,  multfish, multfish,  0,             ROT0,  "bootleg", "Sweet Life 2 (bootleg, 080320, banking address hack set 1)", GAME_SUPPORTS_SAVE ) // bank F9
4318GAME( 2007, sweetl2_2b,  sweetl2_parent,  multfish, multfish,  0,             ROT0,  "bootleg", "Sweet Life 2 (bootleg, 080320, banking address hack set 2)", GAME_SUPPORTS_SAVE ) // bank F9, some fixes
43024319GAME( 2007, sweetl2_2c,  sweetl2_parent,  multfish, multfish,  0,             ROT0,  "bootleg", "Sweet Life 2 (bootleg, 080320, VIDEO GAME-1 MD01)", GAME_SUPPORTS_SAVE ) // modified graphics, bank F9, changed version text to "VIDEO GAME-1 MD01"
43034320GAME( 2007, sweetl2_2d,  sweetl2_parent,  multfish, multfish,  0,             ROT0,  "bootleg", "Sweet Life 2 (bootleg, 080320, LOTTOGAME (I))", GAME_SUPPORTS_SAVE ) // bank F9, modified graphics, changed version text to "MDS_is_the_best_ LOTTOGAME (I)"
src/mame/drivers/midtunit.c
r11489r11490
183183   PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P2 Block") PORT_PLAYER(2)
184184   PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("P2 High Kick") PORT_PLAYER(2)
185185   PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED )
186   
186
187187   PORT_START("IN1")
188188   PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
189189   PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
r11489r11490
210210   PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("P2 Low Kick") PORT_PLAYER(2)
211211   PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("P2 Block 2") PORT_PLAYER(2)
212212   PORT_BIT( 0xff80, IP_ACTIVE_LOW, IPT_UNUSED )
213   
213
214214   /*Note-the real MK2 board has a special cable designed for SF2 cab conversions that has the 2 SF2
215215          Medium punch/kick buttons as block buttons for MK2. The secondary block button registers in test mode,
216216          but does not have an indicator light show up. During gameplay, the second block only functions temporarily.
src/mame/drivers/armedf.c
r11489r11490
303303 *************************************/
304304
305305/*
306   -x-- ---- ---- ---- trigger 1414M4 operation
307   ---x ---- ---- ---- flip screen
308   ---- x--- ---- ---- disable bg layer
309   ---- -x-- ---- ---- disable fg layer
310   ---- --x- ---- ---- disable sprite
311   ---- ---x ---- ---- disable tx layer
312   ---- ---- ---- --x- coin counter 1
313   ---- ---- ---- ---x coin counter 0
306    -x-- ---- ---- ---- trigger 1414M4 operation
307    ---x ---- ---- ---- flip screen
308    ---- x--- ---- ---- disable bg layer
309    ---- -x-- ---- ---- disable fg layer
310    ---- --x- ---- ---- disable sprite
311    ---- ---x ---- ---- disable tx layer
312    ---- ---- ---- --x- coin counter 1
313    ---- ---- ---- ---x coin counter 0
314314*/
315315
316316static WRITE16_HANDLER( terraf_io_w )
r11489r11490
405405   AM_RANGE(0x078002, 0x078003) AM_READ_PORT("P2")
406406   AM_RANGE(0x078004, 0x078005) AM_READ_PORT("DSW1")
407407   AM_RANGE(0x078006, 0x078007) AM_READ_PORT("DSW2")
408//   AM_RANGE(0x07c000, 0x07c001) AM_WRITE(terraf_io_w) handled in DRIVER_INIT
408//  AM_RANGE(0x07c000, 0x07c001) AM_WRITE(terraf_io_w) handled in DRIVER_INIT
409409   AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w)
410410   AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w)
411411   AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w)
r11489r11490
416416static ADDRESS_MAP_START( kozure_map, AS_PROGRAM, 16 )
417417   AM_RANGE(0x060000, 0x060fff) AM_RAM AM_BASE_SIZE_GENERIC(spriteram)
418418   AM_RANGE(0x061000, 0x063fff) AM_RAM
419//   AM_RANGE(0x07c000, 0x07c001) AM_WRITE(kozure_io_w)
420//   AM_RANGE(0x0c0000, 0x0c0001) AM_WRITENOP /* watchdog? */
421//   AM_RANGE(0xffd000, 0xffd001) AM_WRITENOP /* ? */
419//  AM_RANGE(0x07c000, 0x07c001) AM_WRITE(kozure_io_w)
420//  AM_RANGE(0x0c0000, 0x0c0001) AM_WRITENOP /* watchdog? */
421//  AM_RANGE(0xffd000, 0xffd001) AM_WRITENOP /* ? */
422422   AM_IMPORT_FROM( terraf_map )
423423ADDRESS_MAP_END
424424
r11489r11490
436436   AM_RANGE(0x078002, 0x078003) AM_READ_PORT("P2")
437437   AM_RANGE(0x078004, 0x078005) AM_READ_PORT("DSW1")
438438   AM_RANGE(0x078006, 0x078007) AM_READ_PORT("DSW2")
439//   AM_RANGE(0x07c000, 0x07c001) AM_WRITE(io_w)
439//  AM_RANGE(0x07c000, 0x07c001) AM_WRITE(io_w)
440440   AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w)
441441   AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w)
442442   AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w)
r11489r11490
458458   AM_RANGE(0x078002, 0x078003) AM_READ_PORT("P2")
459459   AM_RANGE(0x078004, 0x078005) AM_READ_PORT("DSW1")
460460   AM_RANGE(0x078006, 0x078007) AM_READ_PORT("DSW2")
461//   AM_RANGE(0x07c000, 0x07c001) AM_WRITE(legion_io_w)
461//  AM_RANGE(0x07c000, 0x07c001) AM_WRITE(legion_io_w)
462462   AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w)
463463   AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w)
464464   AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w)
r11489r11490
492492   AM_RANGE(0x078002, 0x078003) AM_READ_PORT("P2")
493493   AM_RANGE(0x078004, 0x078005) AM_READ_PORT("DSW1")
494494   AM_RANGE(0x078006, 0x078007) AM_READ_PORT("DSW2")
495//   AM_RANGE(0x07c000, 0x07c001) AM_WRITE(bootleg_io_w)
495//  AM_RANGE(0x07c000, 0x07c001) AM_WRITE(bootleg_io_w)
496496   AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w)
497497   AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w)
498498   AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w)
r11489r11490
691691   AM_RANGE(0x08c002, 0x08c003) AM_READ_PORT("P2")
692692   AM_RANGE(0x08c004, 0x08c005) AM_READ_PORT("DSW0")
693693   AM_RANGE(0x08c006, 0x08c007) AM_READ_PORT("DSW1")
694   AM_RANGE(0x08d000, 0x08d001) AM_WRITE(terraf_io_w)    //807b0
694   AM_RANGE(0x08d000, 0x08d001) AM_WRITE(terraf_io_w)   //807b0
695695   AM_RANGE(0x08d002, 0x08d003) AM_WRITE(armedf_bg_scrollx_w)
696696   AM_RANGE(0x08d004, 0x08d005) AM_WRITE(armedf_bg_scrolly_w)
697697   AM_RANGE(0x08d006, 0x08d007) AM_WRITE(armedf_fg_scrollx_w)
src/mame/drivers/bsktball.c
r11489r11490
214214   bsktball_state *state = machine.driver_data<bsktball_state>();
215215
216216   state->save_item(NAME(state->m_nmi_on));
217//   state->save_item(NAME(state->m_i256v));
217//  state->save_item(NAME(state->m_i256v));
218218   state->save_item(NAME(state->m_ld1));
219219   state->save_item(NAME(state->m_ld2));
220220   state->save_item(NAME(state->m_dir0));
r11489r11490
232232   bsktball_state *state = machine.driver_data<bsktball_state>();
233233
234234   state->m_nmi_on = 0;
235//   state->m_i256v = 0;
235//  state->m_i256v = 0;
236236   state->m_ld1 = 0;
237237   state->m_ld2 = 0;
238238   state->m_dir0 = 0;
src/mame/drivers/wiz.c
r11489r11490
213213   coin_counter_w(space->machine(), offset,data);
214214}
215215
216static WRITE8_HANDLER( wiz_nmi_mask_w )
217{
218   wiz_state *state = space->machine().driver_data<wiz_state>();
219
220   state->m_nmi_mask = data & 1;
221}
222
216223static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8 )
217224   AM_RANGE(0x0000, 0xbfff) AM_ROM
218225   AM_RANGE(0xc000, 0xc7ff) AM_RAM
r11489r11490
220227   AM_RANGE(0xd000, 0xd3ff) AM_BASE_MEMBER(wiz_state, m_videoram2)               /* Fallthrough */
221228   AM_RANGE(0xd400, 0xd7ff) AM_BASE_MEMBER(wiz_state, m_colorram2)
222229   AM_RANGE(0xd800, 0xd83f) AM_BASE_MEMBER(wiz_state, m_attributesram2)
223   AM_RANGE(0xd840, 0xd85f) AM_BASE_MEMBER(wiz_state, m_spriteram2) AM_SIZE_MEMBER(wiz_state, m_spriteram)
230   AM_RANGE(0xd840, 0xd85f) AM_BASE_MEMBER(wiz_state, m_spriteram2) AM_SIZE_MEMBER(wiz_state, m_spriteram_size)
224231   AM_RANGE(0xd000, 0xd85f) AM_RAM
225232   AM_RANGE(0xe000, 0xe3ff) AM_BASE_MEMBER(wiz_state, m_videoram)   /* Fallthrough */
226233   AM_RANGE(0xe400, 0xe7ff) AM_RAM
r11489r11490
229236   AM_RANGE(0xe000, 0xe85f) AM_RAM
230237   AM_RANGE(0xf000, 0xf000) AM_READ_PORT("DSW0")
231238   AM_RANGE(0xf000, 0xf000) AM_RAM AM_BASE_MEMBER(wiz_state, m_sprite_bank)
232   AM_RANGE(0xf001, 0xf001) AM_WRITE(interrupt_enable_w)
239   AM_RANGE(0xf001, 0xf001) AM_WRITE(wiz_nmi_mask_w)
233240   AM_RANGE(0xf002, 0xf003) AM_WRITE(wiz_palettebank_w)
234241   AM_RANGE(0xf004, 0xf005) AM_WRITE(wiz_char_bank_select_w)
235242   AM_RANGE(0xf006, 0xf006) AM_WRITE(wiz_flipx_w)
r11489r11490
680687   state->m_dsc0 = state->m_dsc1 = 1;
681688}
682689
690static INTERRUPT_GEN( wiz_vblank_irq )
691{
692   wiz_state *state = device->machine().driver_data<wiz_state>();
693
694   if(state->m_nmi_mask & 1)
695      device_set_input_line(device,INPUT_LINE_NMI,PULSE_LINE);
696}
697
683698static MACHINE_CONFIG_START( wiz, wiz_state )
684699
685700   /* basic machine hardware */
686701   MCFG_CPU_ADD("maincpu", Z80, 18432000/6)   /* 3.072 MHz ??? */
687702   MCFG_CPU_PROGRAM_MAP(main_map)
688   MCFG_CPU_VBLANK_INT("screen", nmi_line_pulse)
703   MCFG_CPU_VBLANK_INT("screen", wiz_vblank_irq)
689704
690705   MCFG_CPU_ADD("audiocpu", Z80, 14318000/8)   /* ? */
691706   MCFG_CPU_PROGRAM_MAP(sound_map)
src/mame/drivers/cavesh3.c
r11489r11490
6868   ROM_REGION( 0x8400000, "game", ROMREGION_ERASEFF)
6969   ROM_LOAD("u2", 0x000000, 0x8400000, CRC(b9d815f9) SHA1(6b6f668b0bbb087ffac65e4f0d8bd9d5b28eeb28) )
7070
71      ROM_REGION( 0x800000, "samples", ROMREGION_ERASEFF)
71   ROM_REGION( 0x800000, "samples", ROMREGION_ERASEFF)
7272   ROM_LOAD("u23", 0x000000, 0x400000, CRC(39f1e1f4) SHA1(53d12f59a56df35c705408c76e6e02118da656f1) )
73   ROM_LOAD("u24", 0x400000, 0x400000, CRC(c631a766) SHA1(8bb6934a2f5b8a9841c3dcf85192b1743773dd8b) )
73   ROM_LOAD("u24", 0x400000, 0x400000, CRC(c631a766) SHA1(8bb6934a2f5b8a9841c3dcf85192b1743773dd8b) )
7474ROM_END
7575
7676ROM_START( mushisam )
r11489r11490
8080   ROM_REGION( 0x8400000, "game", ROMREGION_ERASEFF)
8181   ROM_LOAD("u2", 0x000000, 0x8400000, CRC(2cd13810) SHA1(40e45e201b60e63a060b68d4cc767eb64cfb99c2) )
8282
83      ROM_REGION( 0x800000, "samples", ROMREGION_ERASEFF)
83   ROM_REGION( 0x800000, "samples", ROMREGION_ERASEFF)
8484   ROM_LOAD("u23", 0x000000, 0x400000, CRC(138e2050) SHA1(9e86489a4e65af5efb5495adf6d4b3e01d5b2816) )
85   ROM_LOAD("u24", 0x400000, 0x400000, CRC(e3d05c9f) SHA1(130c3d62317da1729c85bd178bd51500edd73ada) )
85   ROM_LOAD("u24", 0x400000, 0x400000, CRC(e3d05c9f) SHA1(130c3d62317da1729c85bd178bd51500edd73ada) )
8686ROM_END
8787
8888ROM_START( mushitam )
r11489r11490
9292   ROM_REGION( 0x8400000, "game", ROMREGION_ERASEFF)
9393   ROM_LOAD("u2", 0x000000, 0x8400000, CRC(3f93ff82) SHA1(6f6c250aa7134016ffb288d056bc937ea311f538) )
9494
95      ROM_REGION( 0x800000, "samples", ROMREGION_ERASEFF)
95   ROM_REGION( 0x800000, "samples", ROMREGION_ERASEFF)
9696   ROM_LOAD("u23", 0x000000, 0x400000, CRC(701a912a) SHA1(85c198946fb693d99928ea2595c84ba4d9dc8157) )
97   ROM_LOAD("u24", 0x400000, 0x400000, CRC(6feeb9a1) SHA1(992711c80e660c32f97b343c2ce8184fddd7364e) )
97   ROM_LOAD("u24", 0x400000, 0x400000, CRC(6feeb9a1) SHA1(992711c80e660c32f97b343c2ce8184fddd7364e) )
9898ROM_END
9999
100100
src/mame/drivers/3do.c
r11489r11490
228228CONS( 1991, 3do,        0,      0,      3do,        3do,   0,      "3DO",  "3DO (NTSC)",   GAME_NOT_WORKING | GAME_NO_SOUND )
229229CONS( 1991, 3do_pal,    3do,    0,      3do_pal,    3do,   0,      "3DO",  "3DO (PAL)",    GAME_NOT_WORKING | GAME_NO_SOUND )
230230
231//TODO: orbatak, Arcade prototype
No newline at end of file
231//TODO: orbatak, Arcade prototype
src/mame/drivers/taito_x.c
r11489r11490
433433   AM_RANGE(0x900802, 0x900803) AM_READWRITE(cchip1_ctrl_r, cchip1_ctrl_w)
434434   AM_RANGE(0x900c00, 0x900c01) AM_WRITE(cchip1_bank_w)
435435   AM_RANGE(0xb00000, 0xb00fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE_GENERIC(paletteram)
436   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)    // Sprites Y
437   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
436   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)   // Sprites Y
437   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
438438   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)   // Sprites Code + X + Attr
439439   AM_RANGE(0xf00000, 0xf03fff) AM_RAM         /* Main RAM */
440440ADDRESS_MAP_END
r11489r11490
448448   AM_RANGE(0x800002, 0x800003) AM_DEVREADWRITE8("tc0140syt", tc0140syt_comm_r, tc0140syt_comm_w, 0x00ff)
449449   AM_RANGE(0x900000, 0x90000f) AM_READWRITE(daisenpu_input_r, daisenpu_input_w)
450450   AM_RANGE(0xb00000, 0xb00fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE_GENERIC(paletteram)
451   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)    // Sprites Y
452   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
451   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)   // Sprites Y
452   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
453453   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)   // Sprites Code + X + Attr
454454   AM_RANGE(0xf00000, 0xf03fff) AM_RAM         /* Main RAM */
455455ADDRESS_MAP_END
r11489r11490
463463   AM_RANGE(0x800002, 0x800003) AM_DEVREADWRITE8("tc0140syt", tc0140syt_comm_r, tc0140syt_comm_w, 0x00ff)
464464   AM_RANGE(0x900000, 0x90000f) AM_READWRITE(daisenpu_input_r, daisenpu_input_w)
465465   AM_RANGE(0xb00000, 0xb00fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE_GENERIC(paletteram)
466   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)    // Sprites Y
467   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
466   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)   // Sprites Y
467   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
468468   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)   // Sprites Code + X + Attr
469469   AM_RANGE(0xf00000, 0xf03fff) AM_RAM         /* Main RAM */
470470ADDRESS_MAP_END
r11489r11490
478478   AM_RANGE(0x800002, 0x800003) AM_DEVREADWRITE8("tc0140syt", tc0140syt_comm_r, tc0140syt_comm_w, 0x00ff)
479479   AM_RANGE(0x900000, 0x90000f) AM_READWRITE(daisenpu_input_r, daisenpu_input_w)
480480   AM_RANGE(0xb00000, 0xb00fff) AM_RAM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE_GENERIC(paletteram)
481   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)    // Sprites Y
482   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
481   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)   // Sprites Y
482   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
483483   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)   // Sprites Code + X + Attr
484484   AM_RANGE(0xf00000, 0xf03fff) AM_RAM         /* Main RAM */
485485ADDRESS_MAP_END
src/mame/drivers/srmp2.c
r11489r11490
396396   AM_RANGE(0x0c0000, 0x0c3fff) AM_RAM AM_SHARE("nvram")
397397   AM_RANGE(0x140000, 0x143fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)      /* Sprites Code + X + Attr */
398398   AM_RANGE(0x180000, 0x1805ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)      /* Sprites Y */
399   AM_RANGE(0x180600, 0x180607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
399   AM_RANGE(0x180600, 0x180607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
400400   AM_RANGE(0x1c0000, 0x1c0001) AM_WRITENOP                  /* ??? */
401401   AM_RANGE(0x800000, 0x800001) AM_WRITE(srmp2_flags_w)         /* ADPCM bank, Color bank, etc. */
402402   AM_RANGE(0x900000, 0x900001) AM_READ_PORT("SYSTEM")            /* Coinage */
r11489r11490
444444   AM_RANGE(0xb00000, 0xb00003) AM_DEVWRITE8("aysnd", ay8910_address_data_w, 0x00ff)
445445   AM_RANGE(0xc00000, 0xc00001) AM_WRITENOP               /* ??? */
446446   AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r16, spriteylow_w16)   /* Sprites Y */
447   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
447   AM_RANGE(0xd00600, 0xd00607) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r16, spritectrl_w16)
448448
449449   AM_RANGE(0xd02000, 0xd023ff) AM_RAM                     /* ??? only writes $00fa */
450450   AM_RANGE(0xe00000, 0xe03fff) AM_RAM AM_DEVREADWRITE("spritegen", spritecode_r16, spritecode_w16)   /* Sprites Code + X + Attr */
r11489r11490
477477   AM_RANGE(0xa000, 0xa7ff) AM_RAM AM_SHARE("nvram")   /* work ram */
478478   AM_RANGE(0xa800, 0xa800) AM_WRITENOP                     /* flag ? */
479479   AM_RANGE(0xb000, 0xb2ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r8, spriteylow_w8)
480   AM_RANGE(0xb300, 0xb303) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r8, spritectrl_w8)
480   AM_RANGE(0xb300, 0xb303) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r8, spritectrl_w8)
481481   AM_RANGE(0xb800, 0xb800) AM_WRITENOP                     /* flag ? */
482482   AM_RANGE(0xc000, 0xdfff) AM_RAM AM_DEVREADWRITE("spritegen", spritecodelow_r8, spritecodelow_w8)   /* Sprites Code + X + Attr */
483483   AM_RANGE(0xe000, 0xffff) AM_RAM AM_DEVREADWRITE("spritegen", spritecodehigh_r8, spritecodehigh_w8)
r11489r11490
501501   AM_RANGE(0x8000, 0x9fff) AM_ROMBANK("bank1")                     /* rom bank */
502502   AM_RANGE(0xa000, 0xafff) AM_RAM AM_SHARE("nvram")   /* work ram */
503503   AM_RANGE(0xb000, 0xb2ff) AM_RAM AM_DEVREADWRITE("spritegen", spriteylow_r8, spriteylow_w8)
504   AM_RANGE(0xb300, 0xb303) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r8, spritectrl_w8)
504   AM_RANGE(0xb300, 0xb303) AM_RAM AM_DEVREADWRITE("spritegen", spritectrl_r8, spritectrl_w8)
505505   AM_RANGE(0xb800, 0xb800) AM_WRITENOP                     /* flag ? */
506506   AM_RANGE(0xc000, 0xdfff) AM_RAM AM_DEVREADWRITE("spritegen", spritecodelow_r8, spritecodelow_w8)   /* Sprites Code + X + Attr */
507507   AM_RANGE(0xe000, 0xffff) AM_RAM AM_DEVREADWRITE("spritegen", spritecodehigh_r8, spritecodehigh_w8)
src/mame/drivers/konamigv.c
r11489r11490
7676
7777Notes:
7878      - Simpsons Bowling and Dead Eye use a GV999 with a daughtercard containing flash ROMs and CPLDs:
79      PWB402610
80      Xilinx XC3020A
81      Xilinx 1718DPC
82      74F244N (2 of these)
83      LVT245SS (2 of theses)
84 
79        PWB402610
80        Xilinx XC3020A
81        Xilinx 1718DPC
82        74F244N (2 of these)
83        LVT245SS (2 of theses)
84
8585      - 000180 is used for driving the RGB output. It's a very thin piece of very brittle ceramic
8686        containing a circuit, a LM1203 chip, some smt transistors/caps/resistors etc (let's just say
8787        placing this thing on the edge of the PCB wasn't a good design choice!)
r11489r11490
685685
686686/*
687687Dead Eye
688
688
689689CD:
690690    P/N 002715
691691    054
src/mame/drivers/overdriv.c
r11489r11490
358358                                       /* IRQ 5 is used only in test mode, to request the checksums of the gfx ROMs. */
359359
360360   MCFG_CPU_ADD("audiocpu", M6809,3579545)      /* 1.789 MHz?? This might be the right speed, but ROM testing */
361   MCFG_CPU_PROGRAM_MAP(overdriv_sound_map)    /* takes a little too much (the counter wraps from 0000 to 9999). */
361   MCFG_CPU_PROGRAM_MAP(overdriv_sound_map)   /* takes a little too much (the counter wraps from 0000 to 9999). */
362362                                    /* This might just mean that the video refresh rate is less than */
363363                                    /* 60 fps, that's how I fixed it for now. */
364364
src/osd/sdl/sdlprefix.h
r11489r11490
4242/* Large file support on IRIX needs _SGI_SOURCE */
4343#undef _POSIX_SOURCE
4444
45#elif defined(__linux__)
45#elif defined(__linux__) || defined(__FreeBSD_kernel__)
4646#define SDLMAME_LINUX 1
4747
4848#elif defined(__FreeBSD__)
src/osd/winui/mui_util.c
r11489r11490
439439            for (device_t *cfg = config.devicelist().first(); cfg != NULL; cfg = cfg->next())
440440            {
441441               if (cfg->input_ports()!=NULL) {
442      // workaround for r11433            input_port_list_init(portlist, cfg->input_ports(), NULL, 0, FALSE, cfg);
442      // workaround for r11433                input_port_list_init(portlist, cfg->input_ports(), NULL, 0, FALSE, cfg);
443443               }
444444            }
445445
src/emu/cpu/drcbeut.c
r11489r11490
505505   label_fixup *fixup;
506506   while ((fixup = m_fixup_list.detach_head()) != NULL)
507507      m_cache.dealloc(fixup, sizeof(*fixup));
508   
508
509509   // make sure the label list is clear, and fatalerror if we missed anything
510510   reset(true);
511511}
src/emu/cpu/drcbeut.h
r11489r11490
170170      uml::code_label      m_label;      // the label specified
171171      drccodeptr         m_codeptr;      // pointer to the relevant code
172172   };
173   
173
174174   struct label_fixup
175175   {
176176      label_fixup *next() const { return m_next; }
src/emu/cpu/drcbex86.h
r11489r11490
355355   void *               m_hashstacksave;      // saved stack pointer for hashjmp
356356   UINT64               m_reslo;            // extended low result
357357   UINT64               m_reshi;            // extended high result
358   
358
359359   drc_label_fixup_delegate m_fixup_label;         // precomputed delegate for fixups
360360   drc_oob_delegate      m_fixup_exception;      // precomputed delegate for exception fixups
361361
src/emu/devcb.c
r11489r11490
9797device_t *devcb_resolver::resolve_device(int index, const char *tag, device_t &current)
9898{
9999   device_t *result = NULL;
100   
100
101101   if (index == DEVCB_DEVICE_SELF)
102102      result = &current;
103103   else if (index == DEVCB_DEVICE_DRIVER)
r11489r11490
130130   device_execute_interface *exec;
131131   if (!targetdev->interface(exec))
132132      throw emu_fatalerror("Device '%s' (requested by %s '%s') has no execute interface", tag, current.name(), current.tag());
133   
133
134134   return exec;
135135}
136136
r11489r11490
156156   address_space *result = memory->space(index);
157157   if (result == NULL)
158158      throw emu_fatalerror("Unable to find device '%s' space %d (requested by %s '%s')", tag, index, current.name(), current.tag());
159   
159
160160   return result;
161161}
162162
r11489r11490
192192         m_helper.null_indicator = &s_null;
193193         *static_cast<devcb_read_line_delegate *>(this) = devcb_read_line_delegate(&devcb_resolved_read_line::from_constant, "(null)", this);
194194         break;
195     
195
196196      case DEVCB_TYPE_IOPORT:
197197         m_object.port = devcb_resolver::resolve_port(desc.tag, device);
198198         *static_cast<devcb_read_line_delegate *>(this) = devcb_read_line_delegate(&devcb_resolved_read_line::from_port, desc.tag, this);
199199         break;
200   
200
201201      case DEVCB_TYPE_DEVICE:
202202         m_object.device = devcb_resolver::resolve_device(desc.index, desc.tag, device);
203203         if (desc.readline != NULL)
r11489r11490
286286         m_helper.null_indicator = &s_null;
287287         *static_cast<devcb_write_line_delegate *>(this) = devcb_write_line_delegate(&devcb_resolved_write_line::to_null, "(null)", this);
288288         break;
289     
289
290290      case DEVCB_TYPE_IOPORT:
291291         m_object.port = devcb_resolver::resolve_port(desc.tag, device);
292292         *static_cast<devcb_write_line_delegate *>(this) = devcb_write_line_delegate(&devcb_resolved_write_line::to_port, desc.tag, this);
r11489r11490
302302            *static_cast<devcb_write_line_delegate *>(this) = devcb_write_line_delegate(&devcb_resolved_write_line::to_write8, desc.name, this);
303303         }
304304         break;
305     
305
306306      case DEVCB_TYPE_LEGACY_SPACE:
307307         m_object.space = devcb_resolver::resolve_space(desc.index, desc.tag, device);
308308         m_helper.write8_space = desc.writespace;
r11489r11490
391391         m_helper.null_indicator = &s_null;
392392         *static_cast<devcb_read8_delegate *>(this) = devcb_read8_delegate(&devcb_resolved_read8::from_constant, "(null)", this);
393393         break;
394     
394
395395      case DEVCB_TYPE_IOPORT:
396396         m_object.port = devcb_resolver::resolve_port(desc.tag, device);
397397         *static_cast<devcb_read8_delegate *>(this) = devcb_read8_delegate(&devcb_resolved_read8::from_port, desc.tag, this);
398398         break;
399   
399
400400      case DEVCB_TYPE_DEVICE:
401401         m_object.device = devcb_resolver::resolve_device(desc.index, desc.tag, device);
402402         if (desc.readdevice != NULL)
r11489r11490
433433
434434
435435//-------------------------------------------------
436//  from_read8 - helper to convert from a device
436//  from_read8 - helper to convert from a device
437437//  line read value to an 8-bit value
438438//-------------------------------------------------
439439
r11489r11490
484484         m_helper.null_indicator = &s_null;
485485         *static_cast<devcb_write8_delegate *>(this) = devcb_write8_delegate(&devcb_resolved_write8::to_null, "(null)", this);
486486         break;
487     
487
488488      case DEVCB_TYPE_IOPORT:
489489         m_object.port = devcb_resolver::resolve_port(desc.tag, device);
490490         *static_cast<devcb_write8_delegate *>(this) = devcb_write8_delegate(&devcb_resolved_write8::to_port, desc.tag, this);
r11489r11490
500500            *static_cast<devcb_write8_delegate *>(this) = devcb_write8_delegate(&devcb_resolved_write8::to_writeline, desc.name, this);
501501         }
502502         break;
503     
503
504504      case DEVCB_TYPE_LEGACY_SPACE:
505505         m_object.space = devcb_resolver::resolve_space(desc.index, desc.tag, device);
506506         *static_cast<devcb_write8_delegate *>(this) = devcb_write8_delegate(desc.writespace, desc.name, m_object.space);
r11489r11490
588588         m_helper.null_indicator = &s_null;
589589         *static_cast<devcb_read16_delegate *>(this) = devcb_read16_delegate(&devcb_resolved_read16::from_constant, "(null)", this);
590590         break;
591     
591
592592      case DEVCB_TYPE_IOPORT:
593593         m_object.port = devcb_resolver::resolve_port(desc.tag, device);
594594         *static_cast<devcb_read16_delegate *>(this) = devcb_read16_delegate(&devcb_resolved_read16::from_port, desc.tag, this);
595595         break;
596   
596
597597      case DEVCB_TYPE_DEVICE:
598598         m_object.device = devcb_resolver::resolve_device(desc.index, desc.tag, device);
599599         if (desc.readdevice != NULL)
r11489r11490
630630
631631
632632//-------------------------------------------------
633//  from_read16 - helper to convert from a device
633//  from_read16 - helper to convert from a device
634634//  line read value to a 16-bit value
635635//-------------------------------------------------
636636
r11489r11490
681681         m_helper.null_indicator = &s_null;
682682         *static_cast<devcb_write16_delegate *>(this) = devcb_write16_delegate(&devcb_resolved_write16::to_null, "(null)", this);
683683         break;
684     
684
685685      case DEVCB_TYPE_IOPORT:
686686         m_object.port = devcb_resolver::resolve_port(desc.tag, device);
687687         *static_cast<devcb_write16_delegate *>(this) = devcb_write16_delegate(&devcb_resolved_write16::to_port, desc.tag, this);
r11489r11490
697697            *static_cast<devcb_write16_delegate *>(this) = devcb_write16_delegate(&devcb_resolved_write16::to_writeline, desc.name, this);
698698         }
699699         break;
700     
700
701701      case DEVCB_TYPE_LEGACY_SPACE:
702702         m_object.space = devcb_resolver::resolve_space(desc.index, desc.tag, device);
703703         *static_cast<devcb_write16_delegate *>(this) = devcb_write16_delegate(desc.writespace, desc.name, m_object.space);
src/emu/video/crt9007.h
r11489r11490
7272{
7373   const char *m_screen_tag;      /* screen we are acting on */
7474   int hpixels_per_column;      /* number of pixels per video memory address */
75   
75
7676   devcb_write_line      m_out_int_cb;
7777   devcb_write_line      m_out_dmar_cb;
7878
src/emu/devcb.h
r11489r11490
179179#define DEVCB_LINE_VCC                     DEVCB_CONSTANT(1)
180180
181181// read/write handlers for a given CPU's address space
182#define DEVCB_MEMORY_HANDLER(cpu,space,func)    { DEVCB_TYPE_LEGACY_SPACE, AS_##space, (cpu), #func, NULL, NULL, func }
182#define DEVCB_MEMORY_HANDLER(cpu,space,func)   { DEVCB_TYPE_LEGACY_SPACE, AS_##space, (cpu), #func, NULL, NULL, func }
183183
184184// read handlers for an I/O port by tag
185185#define DEVCB_INPUT_PORT(tag)               { DEVCB_TYPE_IOPORT, 0, (tag), NULL, NULL, NULL, NULL }
r11489r11490
273273
274274   // resolution
275275   void resolve(const devcb_read_line &desc, device_t &device);
276   
276
277277   // override parent class' notion of NULL
278278   bool isnull() const { return m_helper.null_indicator == &s_null; }
279   
279
280280private:
281281   // internal helpers
282282   int from_port();
r11489r11490
284284   int from_constant();
285285
286286   // internal state
287   devcb_resolved_objects          m_object;
287   devcb_resolved_objects         m_object;
288288   devcb_resolved_read_helpers    m_helper;
289289   static UINT8               s_null;
290290};
r11489r11490
322322
323323   // resolution
324324   void resolve(const devcb_write_line &desc, device_t &device);
325   
325
326326   // override parent class' notion of NULL
327327   bool isnull() const { return m_helper.null_indicator == &s_null; }
328   
328
329329private:
330330   // internal helpers
331331   void to_null(int state);
r11489r11490
334334   void to_input(int state);
335335
336336   // internal state
337   devcb_resolved_objects          m_object;
338   devcb_resolved_write_helpers    m_helper;
337   devcb_resolved_objects         m_object;
338   devcb_resolved_write_helpers   m_helper;
339339   static UINT8               s_null;
340340};
341341
r11489r11490
372372
373373   // resolution
374374   void resolve(const devcb_read8 &desc, device_t &device);
375   
375
376376   // override parent class' notion of NULL
377377   bool isnull() const { return m_helper.null_indicator == &s_null; }
378   
378
379379private:
380380   // internal helpers
381381   UINT8 from_port(offs_t offset);
r11489r11490
383383   UINT8 from_constant(offs_t offset);
384384
385385   // internal state
386   devcb_resolved_objects          m_object;
386   devcb_resolved_objects         m_object;
387387   devcb_resolved_read_helpers    m_helper;
388388   static UINT8               s_null;
389389};
r11489r11490
421421
422422   // resolution
423423   void resolve(const devcb_write8 &desc, device_t &device);
424   
424
425425   // override parent class' notion of NULL
426426   bool isnull() const { return m_helper.null_indicator == &s_null; }
427   
427
428428private:
429429   // internal helpers
430430   void to_null(offs_t offset, UINT8 data);
r11489r11490
433433   void to_input(offs_t offset, UINT8 data);
434434
435435   // internal state
436   devcb_resolved_objects          m_object;
437   devcb_resolved_write_helpers    m_helper;
436   devcb_resolved_objects         m_object;
437   devcb_resolved_write_helpers   m_helper;
438438   static UINT8               s_null;
439439};
440440
r11489r11490
471471
472472   // resolution
473473   void resolve(const devcb_read16 &desc, device_t &device);
474   
474
475475   // override parent class' notion of NULL
476476   bool isnull() const { return m_helper.null_indicator == &s_null; }
477   
477
478478private:
479479   // internal helpers
480480   UINT16 from_port(offs_t offset, UINT16 mask);
r11489r11490
482482   UINT16 from_constant(offs_t offset, UINT16 mask);
483483
484484   // internal state
485   devcb_resolved_objects          m_object;
485   devcb_resolved_objects         m_object;
486486   devcb_resolved_read_helpers    m_helper;
487487   static UINT8               s_null;
488488};
r11489r11490
520520
521521   // resolution
522522   void resolve(const devcb_write16 &desc, device_t &device);
523   
523
524524   // override parent class' notion of NULL
525525   bool isnull() const { return m_helper.null_indicator == &s_null; }
526   
526
527527private:
528528   // internal helpers
529529   void to_null(offs_t offset, UINT16 data, UINT16 mask);
r11489r11490
532532   void to_input(offs_t offset, UINT16 data, UINT16 mask);
533533
534534   // internal state
535   devcb_resolved_objects          m_object;
536   devcb_resolved_write_helpers    m_helper;
535   devcb_resolved_objects         m_object;
536   devcb_resolved_write_helpers   m_helper;
537537   static UINT8               s_null;
538538};
539539
src/emu/uimenu.c
r11489r11490
15021502
15031503
15041504/*-------------------------------------------------
1505    ui_slot_get_current_index - returns   
1505    ui_slot_get_current_index - returns
15061506-------------------------------------------------*/
15071507int ui_slot_get_current_index(running_machine &machine, device_slot_interface *slot)
15081508{
r11489r11490
15161516}
15171517
15181518/*-------------------------------------------------
1519    ui_slot_get_length - returns   
1519    ui_slot_get_length - returns
15201520-------------------------------------------------*/
15211521int ui_slot_get_length(running_machine &machine, device_slot_interface *slot)
15221522{
r11489r11490
15271527}
15281528
15291529/*-------------------------------------------------
1530    ui_slot_get_next - returns   
1530    ui_slot_get_next - returns
15311531-------------------------------------------------*/
15321532const char *ui_slot_get_next(running_machine &machine, device_slot_interface *slot)
15331533{
r11489r11490
15371537}
15381538
15391539/*-------------------------------------------------
1540    ui_slot_get_prev - returns   
1540    ui_slot_get_prev - returns
15411541-------------------------------------------------*/
15421542const char *ui_slot_get_prev(running_machine &machine, device_slot_interface *slot)
15431543{
15441544   int idx = ui_slot_get_current_index(machine, slot) - 1;
15451545   if (idx==-1) return "";
1546   if (idx==-2) idx = ui_slot_get_length(machine,slot) -1;   
1546   if (idx==-2) idx = ui_slot_get_length(machine,slot) -1;
15471547   return slot->get_slot_interfaces()[idx].name;
15481548}
15491549
15501550/*-------------------------------------------------
1551    ui_get_slot_device - returns   
1551    ui_get_slot_device - returns
15521552-------------------------------------------------*/
15531553const char *ui_get_slot_device(running_machine &machine, device_slot_interface *slot)
15541554{
r11489r11490
15621562-------------------------------------------------*/
15631563
15641564void ui_set_slot_device(running_machine &machine, device_slot_interface *slot, const char *val)
1565{   
1565{
15661566   astring error;
15671567   machine.options().set_value(slot->device().tag(), val, OPTION_PRIORITY_CMDLINE, error);
15681568   assert(!error);
15691569}
1570     
1570
15711571/*-------------------------------------------------
15721572    menu_slot_devices_populate - populates the main
15731573    slot device menu
r11489r11490
15761576static void menu_slot_devices_populate(running_machine &machine, ui_menu *menu, void *state)
15771577{
15781578   device_slot_interface *slot = NULL;
1579   
1579
15801580   /* cycle through all devices for this system */
15811581   for (bool gotone = machine.devicelist().first(slot); gotone; gotone = slot->next(slot))
15821582   {
r11489r11490
15851585      ui_menu_item_append(menu, slot->device().tag(),  strcmp(title,"")==0 ? "------" : title, MENU_FLAG_LEFT_ARROW | MENU_FLAG_RIGHT_ARROW, (void *)slot);
15861586   }
15871587   ui_menu_item_append(menu, MENU_SEPARATOR_ITEM, NULL, 0, NULL);
1588   ui_menu_item_append(menu, "Reset",  NULL, 0, NULL);   
1588   ui_menu_item_append(menu, "Reset",  NULL, 0, NULL);
15891589}
15901590
15911591/*-------------------------------------------------
r11489r11490
15991599   /* if the menu isn't built, populate now */
16001600   if (!ui_menu_populated(menu))
16011601   {
1602      menu_slot_devices_populate(machine, menu, state);     
1602      menu_slot_devices_populate(machine, menu, state);
16031603   }
16041604
16051605   /* process the menu */
r11489r11490
16071607
16081608   if (menu_event != NULL && menu_event->itemref != NULL)
16091609   {
1610      if (menu_event->iptkey == IPT_UI_LEFT || menu_event->iptkey == IPT_UI_RIGHT) {     
1611         device_slot_interface *slot = (device_slot_interface *)menu_event->itemref;     
1610      if (menu_event->iptkey == IPT_UI_LEFT || menu_event->iptkey == IPT_UI_RIGHT) {
1611         device_slot_interface *slot = (device_slot_interface *)menu_event->itemref;
16121612         const char *val = (menu_event->iptkey == IPT_UI_LEFT) ? ui_slot_get_prev(machine,slot) : ui_slot_get_next(machine,slot);
1613         ui_set_slot_device(machine,slot,val);     
1614         ui_menu_reset(menu, UI_MENU_RESET_REMEMBER_REF);         
1613         ui_set_slot_device(machine,slot,val);
1614         ui_menu_reset(menu, UI_MENU_RESET_REMEMBER_REF);
16151615      }
16161616   } else if (menu_event != NULL && menu_event->iptkey == IPT_UI_SELECT) {
16171617      machine.schedule_hard_reset();
r11489r11490
16831683      if (machine.devicelist().first(BITBANGER))
16841684         ui_menu_item_append(menu, "Bitbanger Control", NULL, 0, (void*)ui_mess_menu_bitbanger_control);
16851685   }
1686   
1686
16871687   device_slot_interface *slot = NULL;
16881688   if (machine.devicelist().first(slot))
16891689   {
16901690      /* add image info menu */
16911691      ui_menu_item_append(menu, "Slot Devices", NULL, 0, (void*)ui_menu_slot_devices);
16921692   }
1693   
1693
16941694   /* add keyboard mode menu */
16951695   if (input_machine_has_keyboard(machine) && inputx_can_post(machine))
16961696      ui_menu_item_append(menu, "Keyboard Mode", NULL, 0, (void *)ui_menu_keyboard_mode);
src/emu/devintrf.c
r11489r11490
109109{
110110   // add exit and reset callbacks
111111   m_machine = &machine;
112   
112
113113   // iterate over devices and set their machines as well
114114   for (device_t *device = first(); device != NULL; device = device->next())
115115      device->set_machine(machine);
r11489r11490
143143void device_list::start_new_devices()
144144{
145145   assert(m_machine != NULL);
146   
146
147147   // iterate through the devices
148148   device_t *nextdevice;
149149   for (device_t *device = first(); device != NULL; device = nextdevice)
r11489r11490
158158            // if the device doesn't have a machine yet, set it first
159159            if (device->m_machine == NULL)
160160               device->set_machine(machine());
161         
161
162162            // now start the device
163163            mame_printf_verbose("Starting %s '%s'\n", device->name(), device->tag());
164164            device->start();
r11489r11490
221221
222222
223223//-------------------------------------------------
224//  count - count the number of devices of the
224//  count - count the number of devices of the
225225//  given type
226226//-------------------------------------------------
227227
r11489r11490
290290
291291
292292//-------------------------------------------------
293//  presave_all - tell all the devices we are
293//  presave_all - tell all the devices we are
294294//  about to save
295295//-------------------------------------------------
296296
r11489r11490
302302
303303
304304//-------------------------------------------------
305//  postload_all - tell all the devices we just
305//  postload_all - tell all the devices we just
306306//  completed a load
307307//-------------------------------------------------
308308
r11489r11490
469469
470470   // then notify the device itself
471471   device_config_complete();
472   
472
473473   // then mark ourselves complete
474474   m_config_complete = true;
475475}
r11489r11490
517517
518518
519519//-------------------------------------------------
520//  set_unscaled_clock - sets the given device's
520//  set_unscaled_clock - sets the given device's
521521//  unscaled clock
522522//-------------------------------------------------
523523
src/emu/devintrf.h
r11489r11490
133133public:
134134   // construction/destruction
135135   device_list(resource_pool &pool = global_resource_pool);
136   
136
137137   // getters
138138   running_machine &machine() const { assert(m_machine != NULL); return *m_machine; }
139139
r11489r11490
160160   // provide interface-specific overrides
161161   template<class _InterfaceClass>
162162   bool first(_InterfaceClass *&intf) const;
163   
163
164164private:
165165   // internal helpers
166166   void exit();
r11489r11490
307307   virtual void device_clock_changed();
308308   virtual void device_debug_setup();
309309   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
310   
310
311311   //------------------- end derived class overrides
312312
313313   device_debug *         m_debug;
r11489r11490
376376      operator _TargetType() { return m_target; }
377377      operator _TargetType() const { return m_target; }
378378      _TargetType operator->() { return m_target; }
379     
379
380380      // getter for explicit fetching
381381      _TargetType target() const { return m_target; }
382382
src/emu/machine.c
r11489r11490
191191   memset(gfx, 0, sizeof(gfx));
192192   memset(&generic, 0, sizeof(generic));
193193   memset(&m_base_time, 0, sizeof(m_base_time));
194   
194
195195   // set the machine on all devices
196196   const_cast<device_list &>(devicelist()).set_machine_all(*this);
197197
src/emu/sound/lmc1992.c
r11489r11490
11/**********************************************************************
22
3    LMC1992 Digitally-Controlled Stereo Tone and Volume Circuit with
4   Four-Channel Input-Selector emulation
3    LMC1992 Digitally-Controlled Stereo Tone and Volume Circuit with
4    Four-Channel Input-Selector emulation
55
66    Copyright MESS Team.
77    Visit http://mamedev.org for licensing and usage restrictions.
r11489r11490
1313    TODO:
1414
1515    - inputs
16   - outputs
17   - bass
18   - treble
19   - volume
20   - balance
16    - outputs
17    - bass
18    - treble
19    - volume
20    - balance
2121
2222*/
2323
r11489r11490
7373//**************************************************************************
7474
7575//-------------------------------------------------
76//  execute_command -
76//  execute_command -
7777//-------------------------------------------------
7878
7979inline void lmc1992_device::execute_command(int addr, int data)
r11489r11490
181181
182182
183183//-------------------------------------------------
184//  clock_w -
184//  clock_w -
185185//-------------------------------------------------
186186
187187WRITE_LINE_MEMBER( lmc1992_device::clock_w )
r11489r11490
202202
203203
204204//-------------------------------------------------
205//  data_w -
205//  data_w -
206206//-------------------------------------------------
207207
208208WRITE_LINE_MEMBER( lmc1992_device::data_w )
r11489r11490
212212
213213
214214//-------------------------------------------------
215//  enable_w -
215//  enable_w -
216216//-------------------------------------------------
217217
218218WRITE_LINE_MEMBER( lmc1992_device::enable_w )
src/emu/sound/lmc1992.h
r11489r11490
11/**********************************************************************
22
3    LMC1992 Digitally-Controlled Stereo Tone and Volume Circuit with
4   Four-Channel Input-Selector emulation
3    LMC1992 Digitally-Controlled Stereo Tone and Volume Circuit with
4    Four-Channel Input-Selector emulation
55
66    Copyright MESS Team.
77    Visit http://mamedev.org for licensing and usage restrictions.
r11489r11490
9292   inline void execute_command(int addr, int data);
9393
9494   sound_stream *m_stream[4];
95   
95
9696   int m_enable;               // enable latch
9797   int m_data;                  // data latch
9898   int m_clk;                  // clock latch
src/emu/clifront.c
r11489r11490
583583      {
584584         // output the line, up to the list of extensions
585585         printf("%-13s%-20s   ", first ? drivlist.driver().name : "", slot->device().tag());
586         
587         // get the options and print them     
586
587         // get the options and print them
588588         const slot_interface* intf = slot->get_slot_interfaces();
589589         for (int i = 0; intf[i].name != NULL; i++)
590590         {
src/emu/devcpu.c
r11489r11490
251251
252252
253253//-------------------------------------------------
254//  execute_run - execute for the provided number
254//  execute_run - execute for the provided number
255255//  of cycles
256256//-------------------------------------------------
257257
r11489r11490
410410
411411
412412//-------------------------------------------------
413//  get_legacy_string - return a legacy
413//  get_legacy_string - return a legacy
414414//  string value
415415//-------------------------------------------------
416416
r11489r11490
424424
425425
426426//-------------------------------------------------
427//  set_legacy_int - call the get info function
427//  set_legacy_int - call the get info function
428428//  to set an integer value
429429//-------------------------------------------------
430430
src/emu/devcpu.h
r11489r11490
412412protected:
413413   // internal state
414414   cpu_get_info_func      m_get_info;
415   address_space_config    m_space_config[3];         // array of address space configs
415   address_space_config   m_space_config[3];         // array of address space configs
416416   void *               m_token;               // pointer to our state
417417
418418   cpu_set_info_func      m_set_info;               // extracted legacy function pointers
src/emu/dislot.c
r11489r11490
2222   device_slot_interface *slot;
2323   if (!device.interface(slot))
2424      throw emu_fatalerror("set_default_slot_card called on device '%s' with no slot interface", device.tag());
25   
25
2626   slot->m_slot_interfaces = slots_info;
2727   slot->m_default_card = default_card;
2828}
2929
3030device_t* device_slot_interface::get_card_device()
3131{
32   const char *subtag = device().machine().options().value(device().tag());   
32   const char *subtag = device().machine().options().value(device().tag());
3333   device_t *dev = NULL;
3434   if (subtag) {
3535      device_slot_card_interface *intf = NULL;
src/emu/dislot.h
r11489r11490
4343   // construction/destruction
4444   device_slot_interface(const machine_config &mconfig, device_t &device);
4545   virtual ~device_slot_interface();
46   
46
4747   static void static_set_slot_info(device_t &device, const slot_interface *slots_info, const char *default_card);
4848   const slot_interface* get_slot_interfaces() const { return m_slot_interfaces; };
4949   const char * get_default_card() const { return m_default_card; };
5050   device_t* get_card_device();
5151protected:
5252   const char *m_default_card;
53   const slot_interface *m_slot_interfaces;   
53   const slot_interface *m_slot_interfaces;
5454};
5555
5656// ======================> device_slot_card_interface
src/emu/machine/idectrl.c
r11489r11490
12521252      default:
12531253         LOGPRINT(("IDE unknown command (%02X)\n", command));
12541254         ide->status |= IDE_STATUS_ERROR;
1255         ide->error = IDE_ERROR_UNKNOWN_COMMAND;         
1256         signal_interrupt(ide);         
1255         ide->error = IDE_ERROR_UNKNOWN_COMMAND;
1256         signal_interrupt(ide);
12571257         //debugger_break(ide->device->machine());
12581258         break;
12591259   }
src/emu/machine/6821pia.c
r11489r11490
10581058
10591059
10601060//-------------------------------------------------
1061//  ca2_output_z - version of ca2_output which
1061//  ca2_output_z - version of ca2_output which
10621062//  takes account of internal pullup resistor
10631063//-------------------------------------------------
10641064
src/emu/machine/secflash.c
r11489r11490
44device_secure_serial_flash::device_secure_serial_flash(const machine_config &mconfig,
55                                                    device_type type,
66                                                    const char *name, const char *tag,
7                                                    device_t *owner, UINT32 clock) :
7                                                    device_t *owner, UINT32 clock) :
88   device_t(mconfig, type, name, tag, owner, clock),
99   device_nvram_interface(mconfig, *this)
1010{
src/emu/machine/jvsdev.c
r11489r11490
137137         return 0;
138138      *recv_buffer++ = 0x01;
139139      return switches(recv_buffer, send_buffer[1], send_buffer[2]) ? 3 : 0;
140     
140
141141   case 0x21:
142142      if(send_size < 2)
143143         return 0;
src/emu/machine/i8255.h
r11489r11490
9292
9393    DECLARE_READ8_MEMBER( pa_r );
9494   UINT8 pa_r();
95   
95
9696   DECLARE_READ8_MEMBER( pb_r );
9797   UINT8 pb_r();
9898
r11489r11490
130130   void output_pc();
131131   void set_mode(UINT8 data);
132132   void set_pc_bit(int bit, int state);
133   
133
134134   devcb_resolved_read8      m_in_port_func[3];
135135   devcb_resolved_write8      m_out_port_func[3];
136136
src/emu/machine/6850acia.c
r11489r11490
182182         tx_tick();
183183         m_tx_counter = 0;
184184         break;
185     
185
186186      case TIMER_ID_RECEIVE:
187187         rx_tick();
188188         m_rx_counter = 0;
src/emu/machine/6850acia.h
r11489r11490
7474public:
7575    // construction/destruction
7676    acia6850_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
77   
77
7878   // static configuration helpers
7979   static void static_set_interface(device_t &device, const acia6850_interface &interface);
8080
src/emu/machine/mccs1850.c
r11489r11490
99
1010/*
1111
12   TODO:
12    TODO:
1313
14   - auto restart
15   - test mode
14    - auto restart
15    - test mode
1616
1717*/
1818
r11489r11490
457457         if (m_bits == 8)
458458         {
459459            if (LOG) logerror("MCCS1850 '%s' %s Address %u\n", tag(), BIT(m_address, 7) ? "Write" : "Read", m_address & 0x7f);
460           
460
461461            m_bits = 0;
462462            m_state = STATE_DATA;
463463
src/emu/screen.h
r11489r11490
8383class screen_device : public device_t
8484{
8585   friend class render_manager;
86   
86
8787public:
8888   // construction/destruction
8989   screen_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
r11489r11490
238238         : m_next(NULL),
239239           m_callback(callback) { }
240240      callback_item *next() const { return m_next; }
241     
241
242242      callback_item *            m_next;
243243      vblank_state_delegate      m_callback;
244244   };
src/emu/driver.c
r11489r11490
212212machine_config &driver_enumerator::config(int index) const
213213{
214214   assert(index >= 0 && index < s_driver_count);
215   
215
216216   // if we don't have it cached, add it
217217   if (m_config[index] == NULL)
218218   {
r11489r11490
223223         m_config[first->index()] = NULL;
224224         m_config_cache.remove(*first);
225225      }
226     
226
227227      // allocate the config and add it to the end of the list
228228      machine_config *config = m_config[index] = global_alloc(machine_config(*s_drivers_sorted[index], m_options));
229229      m_config_cache.append(*global_alloc(config_entry(*config, index)));
src/emu/driver.h
r11489r11490
206206   struct config_entry
207207   {
208208      friend class simple_list<config_entry>;
209     
209
210210   public:
211211      // construction/destruction
212212      config_entry(machine_config &config, int index);
213213      ~config_entry();
214     
214
215215      // getters
216216      config_entry *next() const { return m_next; }
217217      int index() const { return m_index; }
218218      machine_config *config() const { return m_config; }
219   
219
220220   private:
221221      // internal state
222222      config_entry *      m_next;
223223      machine_config *   m_config;
224224      int               m_index;
225225   };
226   
226
227227   static const int CONFIG_CACHE_COUNT = 100;
228228
229229   // internal state
src/emu/mconfig.c
r11489r11490
6868   (*gamedrv.machine_config)(*this, NULL);
6969
7070   // intialize slot devices - make sure that any required devices have been allocated
71   device_slot_interface *slot = NULL;   
71   device_slot_interface *slot = NULL;
7272    for (bool gotone = m_devicelist.first(slot); gotone; gotone = slot->next(slot))
7373   {
7474      device_t &owner = slot->device();
src/lib/formats/flopimg.c
r11489r11490
320320{
321321   if (floppy) {
322322      floppy_track_unload(floppy);
323     
323
324324      if(floppy->floppy_option->destruct)
325325         floppy->floppy_option->destruct(floppy, floppy->floppy_option);
326326      if (close_file)
src/version.c
r11489r11490
3838***************************************************************************/
3939
4040extern const char build_version[];
41const char build_version[] = "0.142u2 ("__DATE__")";
41const char build_version[] = "0.142u3 ("__DATE__")";
src/mess/tools/messdocs/messdocs.mak
r11489r11490
2727#-------------------------------------------------
2828
2929MESSDOCS_OBJS = \
30   $(MESSOBJ)/tools/messdocs/messdocs.o   
30   $(MESSOBJ)/tools/messdocs/messdocs.o
3131
3232
3333
src/mess/tools/imgtool/windows/wimgtool.c
r11489r11490
635635   TCHAR *t_filename;
636636   imgtool_partition_features features;
637637   extern const char build_version[];
638   
638
639639   info = get_wimgtool_info(window);
640640
641641   // get the modules and features
src/mess/machine/cbmiec.c
r11489r11490
368368void cbm_iec_device::device_start()
369369{
370370   m_stub = machine().device<cbm_iec_stub_device>(CBM_IEC_STUB_TAG);
371   const cbm_iec_config *daisy = m_daisy; 
371   const cbm_iec_config *daisy = m_daisy;
372372   // create a linked list of devices
373373   daisy_entry **tailptr = &m_daisy_list;
374374   for ( ; daisy->m_tag != NULL; daisy++)
src/mess/machine/cbmiec.h
r11489r11490
155155
156156   cbm_iec_stub_device *m_stub;
157157
158      const cbm_iec_config *m_daisy;
158   const cbm_iec_config *m_daisy;
159159};
160160
161161
src/mess/machine/c1581.c
r11489r11490
441441void base_c1581_device::device_start()
442442{
443443   m_bus = machine().device<cbm_iec_device>(CBM_IEC_TAG);
444   
444
445445   // map ROM
446446   address_space *program = m_maincpu->memory().space(AS_PROGRAM);
447447   program->install_rom(0x8000, 0xbfff, subregion(M6502_TAG)->base());
src/mess/machine/coco.c
r11489r11490
612612   state->m_pia_1->write(*memory_nonspecific_space(machine), 3, 0x00);
613613   state->m_pia_1->write(*memory_nonspecific_space(machine), 0, 0xfe);
614614   state->m_pia_1->write(*memory_nonspecific_space(machine), 2, 0xf8);
615                 
615
616616   state->m_pia_0->write(*memory_nonspecific_space(machine), 1, trailer->pia[1]);
617617   state->m_pia_0->write(*memory_nonspecific_space(machine), 0, trailer->pia[0]);
618618   state->m_pia_0->write(*memory_nonspecific_space(machine), 3, trailer->pia[3]);
619619   state->m_pia_0->write(*memory_nonspecific_space(machine), 2, trailer->pia[2]);
620                 
620
621621   state->m_pia_1->write(*memory_nonspecific_space(machine), 1, trailer->pia[5]);
622622   state->m_pia_1->write(*memory_nonspecific_space(machine), 0, trailer->pia[4]);
623623   state->m_pia_1->write(*memory_nonspecific_space(machine), 3, trailer->pia[7]);
src/mess/machine/c2031.h
r11489r11490
103103   // interrupts
104104   int m_via0_irq;                     // VIA #0 interrupt request
105105   int m_via1_irq;                     // VIA #1 interrupt request
106   
106
107107   int m_address;
108108};
109109
src/mess/machine/mb89352.h
r11489r11490
5454    MCFG_DEVICE_ADD(_tag, MB89352A, 0) \
5555    MCFG_DEVICE_CONFIG(_intrf)
5656
57class mb89352_device : public device_t,
57class mb89352_device : public device_t,
5858                  public mb89352_interface
5959{
6060public:
src/mess/machine/c2040.c
r11489r11490
6565const device_type C8250 = &device_creator<c8250_device>;
6666const device_type SFD1001 = &device_creator<sfd1001_device>;
6767
68   
68
6969//-------------------------------------------------
7070//  device_config_complete - perform any
7171//  operations now that the configuration is
r11489r11490
15321532{
15331533   address_space *main = m_maincpu->memory().space(AS_PROGRAM);
15341534   address_space *fdc = m_fdccpu->memory().space(AS_PROGRAM);
1535   
1535
15361536   m_bit_timer = timer_alloc();
1537   
1537
15381538   switch (m_variant)
15391539   {
15401540   default:
src/mess/machine/vic1112.h
r11489r11490
9595   int m_via0_irq;
9696   int m_via1_irq;
9797
98      const char *m_bus_tag;
98   const char *m_bus_tag;
9999};
100100
101101
src/mess/machine/genpc.c
r11489r11490
613613   install_device(m_pic8259, 0x0020, 0x0021, 0, 0, FUNC(pic8259_r), FUNC(pic8259_w) );
614614   install_device(m_pit8253, 0x0040, 0x0043, 0, 0, FUNC(pit8253_r), FUNC(pit8253_w) );
615615
616   //   install_device(m_ppi8255, 0x0060, 0x0063, 0, 0, FUNC(i8255a_r), FUNC(i8255a_w) );
616   //  install_device(m_ppi8255, 0x0060, 0x0063, 0, 0, FUNC(i8255a_r), FUNC(i8255a_w) );
617617   int buswidth = machine().firstcpu->memory().space_config(AS_IO)->m_databus_width;
618618   switch(buswidth)
619619   {
r11489r11490
712712//  ibm5150_mb_device - constructor
713713//-------------------------------------------------
714714
715ibm5150_mb_device::ibm5150_mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
715ibm5150_mb_device::ibm5150_mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
716716   : ibm5160_mb_device(mconfig, tag, owner, clock),
717717     m_cassette(*this, "cassette")
718718{
src/mess/machine/fm_scsi.h
r11489r11490
4545    MCFG_DEVICE_ADD(_tag, FMSCSI, 0) \
4646    MCFG_DEVICE_CONFIG(_intrf)
4747
48class fmscsi_device : public device_t,
48class fmscsi_device : public device_t,
4949                 public FMSCSIinterface
5050{
5151public:
r11489r11490
7474    virtual void device_stop();
7575    virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
7676   virtual void device_config_complete();
77   
77
7878private:
7979    // internal device state goes here
8080    static const device_timer_id TIMER_TRANSFER = 0;
src/mess/machine/c1541.h
r11489r11490
100100   DECLARE_WRITE8_MEMBER( via1_pb_w );
101101   DECLARE_WRITE_LINE_MEMBER( atn_w );
102102   DECLARE_WRITE_LINE_MEMBER( byte_w );
103   
103
104104   // inline configuration helpers
105105   static void static_set_config(device_t &device, int address, int variant);
106106
r11489r11490
113113    virtual void device_start();
114114   virtual void device_reset();
115115    virtual void device_config_complete();
116   
116
117117   // device_cbm_iec_interface overrides
118118   void cbm_iec_atn(int state);
119119   void cbm_iec_reset(int state);
src/mess/machine/cs4031.h
r11489r11490
5252   DECLARE_WRITE8_MEMBER( address_w );
5353   DECLARE_READ8_MEMBER( data_r );
5454   DECLARE_WRITE8_MEMBER( data_w );
55   
55
5656   // inline configuration
5757   static void static_set_cputag(device_t &device, const char *tag);
5858   static void static_set_isatag(device_t &device, const char *tag);
r11489r11490
8282   const char *m_cputag;
8383   const char *m_isatag;
8484   const char *m_biostag;
85   
8685
86
8787   UINT8 m_registers[0x20];
8888};
8989
src/mess/machine/c8280.h
r11489r11490
5252public:
5353    // construction/destruction
5454    c8280_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
55   
55
5656   // inline configuration helpers
5757   static void static_set_config(device_t &device, int address);
5858
src/mess/machine/at_keybc.h
r11489r11490
7272   virtual void device_start();
7373   virtual void device_reset();
7474   virtual void device_config_complete();
75   
75
7676   virtual const rom_entry *device_rom_region() const;
77   virtual machine_config_constructor device_mconfig_additions() const;   
77   virtual machine_config_constructor device_mconfig_additions() const;
7878private:
7979   // internal state
8080   device_t *m_cpu;
src/mess/machine/lux21046.h
r11489r11490
8282   virtual const rom_entry *device_rom_region() const;
8383   virtual machine_config_constructor device_mconfig_additions() const;
8484   virtual const input_port_token *device_input_ports() const;
85   
85
8686   DECLARE_READ8_MEMBER( _3d_r );
8787   DECLARE_WRITE8_MEMBER( _4d_w );
8888   DECLARE_WRITE8_MEMBER( _4b_w );
r11489r11490
9898    virtual void device_start();
9999   virtual void device_reset();
100100   virtual void device_config_complete();
101   
101
102102   // device_abcbus_interface overrides
103103   virtual void abcbus_cs(UINT8 data);
104104   virtual void abcbus_rst(int state);
src/mess/machine/isa.c
r11489r11490
4040//-------------------------------------------------
4141
4242void isa8_slot_device::device_start()
43{   
43{
4444   m_isa = machine().device<isa8_device>(m_isa_tag);
4545   device_isa8_card_interface *dev = dynamic_cast<device_isa8_card_interface *>(get_card_device());
46   if (dev) m_isa->add_isa_card(dev, m_isa_num);   
46   if (dev) m_isa->add_isa_card(dev, m_isa_num);
4747}
4848
4949
src/mess/machine/isa.h
r11489r11490
6868
6969class isa8_device;
7070
71class isa8_slot_device : public device_t,                   
71class isa8_slot_device : public device_t,
7272                   public device_slot_interface
7373{
7474public:
r11489r11490
7979
8080    // inline configuration
8181    static void static_set_isa8_slot(device_t &device, const char *tag, int num);
82private:   
82private:
8383   // configuration
8484   const char *m_isa_tag;
8585   int m_isa_num;
86   isa8_device  *m_isa;     
86   isa8_device  *m_isa;
8787};
8888
8989// device type definition
r11489r11490
114114   isa8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
115115   // inline configuration
116116   static void static_set_cputag(device_t &device, const char *tag);
117   
117
118118   void add_isa_card(device_isa8_card_interface *card,int pos);
119119   void install_device(device_t *dev, offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_device_func rhandler, const char* rhandler_name, write8_device_func whandler, const char *whandler_name);
120120   void install_bank(offs_t start, offs_t end, offs_t mask, offs_t mirror, const char *tag, UINT8 *data);
r11489r11490
158158   devcb_resolved_write_line   m_out_drq3_func;
159159
160160   device_isa8_card_interface *m_isa_device[8];
161   const char *m_cputag;     
161   const char *m_cputag;
162162};
163163
164164
r11489r11490
184184
185185    // inline configuration
186186    static void static_set_isa8_tag(device_t &device, const char *tag);
187public:   
188   isa8_device  *m_isa;   
187public:
188   isa8_device  *m_isa;
189189};
190190
191191#endif  /* __ISA_H__ */
src/mess/machine/lux10828.h
r11489r11490
129129   int m_sel0;            // drive select 0
130130   int m_sel1;            // drive select 1
131131
132      UINT8 m_sw1;            // single/double sided/density
132   UINT8 m_sw1;            // single/double sided/density
133133   UINT8 m_drive_type;         // drive type
134134   UINT8 m_s1;               // ABC bus address
135135};
src/mess/machine/c1571.c
r11489r11490
4949const device_type C1571 = &device_creator<c1571_device>;
5050const device_type C1571CR = &device_creator<c1571cr_device>;
5151
52   
52
5353//-------------------------------------------------
5454//  device_config_complete - perform any
5555//  operations now that the configuration is
r11489r11490
737737void base_c1571_device::device_start()
738738{
739739   m_bus = machine().device<cbm_iec_device>(CBM_IEC_TAG);
740   
740
741741   // map ROM
742742   address_space *program = m_maincpu->memory().space(AS_PROGRAM);
743743   program->install_rom(0x8000, 0xffff, subregion(M6502_TAG)->base());
src/mess/machine/abc77.c
r11489r11490
88KTC A65-02486-232
99
1010|-----------------------------------------------------------------------|
11|   SW1        CN1      LS393                                 |
12|   4020   7406   LS132      7407  LS02  7407      NE556    LS1   |
11|   SW1       CN1       LS393                                           |
12|   4020    7406    LS132       7407  LS02  7407        NE556    LS1    |
1313|                                                                       |
14|   22-950-3B   XTAL   CPU      ROM0   ROM1   LS373  LS240  22-908-03   |
14|   22-950-3B   XTAL    CPU     ROM0    ROM1    LS373  LS240  22-908-03 |
1515|                                                                       |
1616|                                                                       |
1717|                                                                       |
r11489r11490
2424Notes:
2525    All IC's shown.
2626
27    CPU         - Signetics SCN8035A 8035 CPU
28    ROM0      - NEC D2716D 2Kx8 ROM "-78"
29    ROM1      - not populated
30   22-950-3B   - Exar Semiconductor XR22-950-3B keyboard matrix row driver with 4 to 12 decoder/demultiplexer
31   22-908-03   - Exar Semiconductor XR22-908-03 keyboard matrix capacitive readout latch
32    CN1         - 1x12 PCB header
33   LS1         - loudspeaker
34    SW1         - reset switch
27    CPU         - Signetics SCN8035A 8035 CPU
28    ROM0        - NEC D2716D 2Kx8 ROM "-78"
29    ROM1        - not populated
30    22-950-3B   - Exar Semiconductor XR22-950-3B keyboard matrix row driver with 4 to 12 decoder/demultiplexer
31    22-908-03   - Exar Semiconductor XR22-908-03 keyboard matrix capacitive readout latch
32    CN1         - 1x12 PCB header
33    LS1         - loudspeaker
34    SW1         - reset switch
3535
3636*/
3737
r11489r11490
8787ROM_START( abc77 )
8888   ROM_REGION( 0x1000, I8035_TAG, 0 )
8989   ROM_LOAD( "-78.z10", 0x000, 0x800, CRC(635986ce) SHA1(04a30141ac611d0544bbb786061515040c23480c) )
90//   ROM_LOAD( "keyboard.z14", 0x0800, 0x0800, NO_DUMP ) // non-Swedish keyboard encoding ROM
90//  ROM_LOAD( "keyboard.z14", 0x0800, 0x0800, NO_DUMP ) // non-Swedish keyboard encoding ROM
9191ROM_END
9292
9393
r11489r11490
492492
493493   static const char *const keynames[] = { "X0", "X1", "X2", "X3", "X4", "X5", "X6", "X7", "X8", "X9", "X10", "X11" };
494494   UINT8 data = 0xff;
495   
495
496496   if (m_stb && m_keylatch < 12)
497497   {
498498      data = input_port_read(this, keynames[m_keylatch]);
src/mess/machine/c1571.h
r11489r11490
107107    virtual void device_start();
108108   virtual void device_reset();
109109   virtual void device_config_complete();
110   
110
111111   // device_cbm_iec_interface overrides
112112   void cbm_iec_srq(int state);
113113   void cbm_iec_atn(int state);
src/mess/machine/abc77.h
r11489r11490
6262   virtual const rom_entry *device_rom_region() const;
6363   virtual machine_config_constructor device_mconfig_additions() const;
6464   virtual const input_port_token *device_input_ports() const;
65   
65
6666   static INPUT_CHANGED( keyboard_reset );
6767
6868   DECLARE_READ8_MEMBER( p1_r );
r11489r11490
8181   virtual void device_reset();
8282   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
8383   virtual void device_config_complete();
84   
84
8585private:
8686   static const device_timer_id TIMER_SERIAL = 0;
8787   static const device_timer_id TIMER_RESET = 1;
src/mess/machine/ieee488.h
r11489r11490
177177
178178   required_device<ieee488_stub_device> m_stub;
179179
180      const ieee488_config *m_daisy;
180   const ieee488_config *m_daisy;
181181};
182182
183183
r11489r11490
204204                      public ieee488_stub_interface,
205205                      public device_ieee488_interface
206206{
207public:   
207public:
208208   // construction/destruction
209209    ieee488_stub_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
210210
src/mess/machine/zx8302.h
r11489r11490
120120    virtual void device_start();
121121   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
122122   virtual void device_config_complete();
123   
123
124124   inline void trigger_interrupt(UINT8 line);
125125   inline void transmit_ipc_data();
126126   inline void transmit_bit(int state);
src/mess/machine/c64.c
r11489r11490
12741274   if (size)
12751275   {
12761276      memcpy(state->m_roml, image.get_software_region("roml"), MIN(0x2000, size));
1277     
1277
12781278      if (size == 0x4000)
12791279      {
12801280         // continue loading to ROMH region
r11489r11490
13061306{
13071307   #define VW64_DECRYPT_ADDRESS(_offset) \
13081308      BITSWAP16(_offset,15,14,13,12,7,8,6,9,5,11,4,3,2,10,1,0)
1309   
1309
13101310   #define VW64_DECRYPT_DATA(_data) \
13111311      BITSWAP8(_data,7,6,0,5,1,4,2,3)
13121312
r11489r11490
13381338{
13391339   /*
13401340
1341      bit      description
1341        bit     description
13421342
1343      0
1344      1
1345      2
1346      3
1347      4      A14
1348      5      A15
1349      6      A16
1350      7      A13
1343        0
1344        1
1345        2
1346        3
1347        4       A14
1348        5       A15
1349        6       A16
1350        7       A13
13511351
1352   */
1352    */
13531353
13541354   c64_state *state = space->machine().driver_data<c64_state>();
13551355
r11489r11490
13631363{
13641364   #define HUGO_DECRYPT_ADDRESS(_offset) \
13651365      BITSWAP16(_offset,15,14,13,12,7,6,5,4,3,2,1,0,8,9,11,10)
1366   
1366
13671367   #define HUGO_DECRYPT_DATA(_data) \
13681368      BITSWAP8(_data,7,6,5,4,0,1,2,3)
13691369
r11489r11490
14181418{
14191419   /*
14201420
1421      Die 96KB des Moduls belegen in 6 16K-Banken den Modulbereich von $8000- $c000.
1422      Die Umschaltung erfolgt mit einem Register in $DE80 (-$DEFF, nicht voll decodiert),
1423      welches nur beschrieben und nicht gelesen werden kann. Durch Schreiben der Werte
1424      $08 oder $0A selektiert man eine der beiden RAM-Banke, $FF deselektiert das Modul.
1425     
1426      Zusatzlich muss Adresse 1 entsprechend belegt werden :$37 fur Lesezugriffe auf das
1427      Modul, $35 oder $34 fur Lesezugriffe auf das Ram des C64. Schreibzugriffe lenkt
1428      der C64 grundsatzlich ins eigene RAM, weshalb zum Beschreiben des Modulrams ein
1429      Trick notwendig ist: Man schaltet das Ram-Modul parallel zum C64-Ram, rettet vor
1430      dem Schreiben den C64-Ram-Inhalt und stellt ihn nachher wieder her...
1431   
1432      Ldy#0
1433      Lda#$35
1434      Sta 1
1435      Loop Lda (Ptr),y
1436      Pha
1437      Lda#$08
1438      Sta $DE80
1439      Lda (Quell),y
1440      Sta (Ptr),y
1441      Lda#$FF
1442      Sta $DE80
1443      Pla
1444      Sta (Ptr),y
1445      Iny
1446      Bne Loop
1421        Die 96KB des Moduls belegen in 6 16K-Banken den Modulbereich von $8000- $c000.
1422        Die Umschaltung erfolgt mit einem Register in $DE80 (-$DEFF, nicht voll decodiert),
1423        welches nur beschrieben und nicht gelesen werden kann. Durch Schreiben der Werte
1424        $08 oder $0A selektiert man eine der beiden RAM-Banke, $FF deselektiert das Modul.
14471425
1448   */
1426        Zusatzlich muss Adresse 1 entsprechend belegt werden :$37 fur Lesezugriffe auf das
1427        Modul, $35 oder $34 fur Lesezugriffe auf das Ram des C64. Schreibzugriffe lenkt
1428        der C64 grundsatzlich ins eigene RAM, weshalb zum Beschreiben des Modulrams ein
1429        Trick notwendig ist: Man schaltet das Ram-Modul parallel zum C64-Ram, rettet vor
1430        dem Schreiben den C64-Ram-Inhalt und stellt ihn nachher wieder her...
14491431
1432        Ldy#0
1433        Lda#$35
1434        Sta 1
1435        Loop Lda (Ptr),y
1436        Pha
1437        Lda#$08
1438        Sta $DE80
1439        Lda (Quell),y
1440        Sta (Ptr),y
1441        Lda#$FF
1442        Sta $DE80
1443        Pla
1444        Sta (Ptr),y
1445        Iny
1446        Bne Loop
1447
1448    */
1449
14501450   c64_state *state = space->machine().driver_data<c64_state>();
14511451   UINT8 *cart = space->machine().region("user1")->base();
14521452
r11489r11490
14681468      memcpy(state->m_roml, cart + address, 0x2000);
14691469      memcpy(state->m_romh, cart + address + 0x2000, 0x2000);
14701470
1471      if (state->m_game)
1471      if (state->m_game)
14721472      {
14731473         // enable cartridge
14741474         state->m_game = 0;
r11489r11490
15111511      memcpy(state->m_romh, cart + 0x2000, 0x2000);
15121512   }
15131513   else
1514   {   
1514   {
15151515      // ROM
15161516      memcpy(state->m_roml, cart + address, 0x2000);
15171517      memcpy(state->m_romh, cart + address + 0x2000, 0x2000);
r11489r11490
15621562   }
15631563   else
15641564   {
1565      if (!strcmp(cart_type, "vizawrite"))
1565      if (!strcmp(cart_type, "vizawrite"))
15661566         load_vizawrite_cartridge(image);
1567     
1568      else if (!strcmp(cart_type, "hugo"))
1567
1568      else if (!strcmp(cart_type, "hugo"))
15691569         load_hugo_cartridge(image);
1570     
1571      else if (!strcmp(cart_type, "easy_calc_result"))
1570
1571      else if (!strcmp(cart_type, "easy_calc_result"))
15721572         load_easy_calc_result_cartridge(image);
1573     
1574      else if (!strcmp(cart_type, "pagefox"))
1573
1574      else if (!strcmp(cart_type, "pagefox"))
15751575         load_pagefox_cartridge(image); // TODO writing to the expanded 32KB RAM is not supported!
1576     
1577      else if (!strcmp(cart_type, "multiscreen"))
1576
1577      else if (!strcmp(cart_type, "multiscreen"))
15781578         load_multiscreen_cartridge(image); // TODO 8K RAM expansion test fails on boot
15791579
15801580      else
src/mess/includes/genpc.h
r11489r11490
4343   virtual void device_start();
4444   virtual void device_reset();
4545   virtual void device_config_complete();
46   
46
4747   void install_device(device_t *dev, offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_device_func rhandler, const char* rhandler_name, write8_device_func whandler, const char *whandler_name);
4848   void install_device_write(device_t *dev, offs_t start, offs_t end, offs_t mask, offs_t mirror, write8_device_func whandler, const char *whandler_name);
4949public:
src/mess/includes/atom.h
r11489r11490
5959   virtual bool screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect);
6060
6161   void bankswitch();
62   
62
6363   DECLARE_READ8_MEMBER( eprom_r );
6464   DECLARE_WRITE8_MEMBER( eprom_w );
6565   DECLARE_WRITE8_MEMBER( ppi_pa_w );
src/mess/video/isa_mda.h
r11489r11490
3131        // device-level overrides
3232        virtual void device_start();
3333        virtual void device_reset();
34public:     
34public:
3535      int  framecnt;
3636
3737      UINT8 mode_control;
src/mess/video/upd7220.c
r11489r11490
692692     m_gchr(0),
693693     m_vram_bank(0),
694694     m_bitmap_mod(0),
695       m_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(upd7220_vram))
695     m_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(upd7220_vram))
696696{
697697   m_shortname = "upd7220";
698698   for (int i = 0; i < 16; i++)
src/mess/video/hd44780.h
r11489r11490
3636public:
3737   // construction/destruction
3838   hd44780_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
39   
39
4040   // device interface
4141   DECLARE_WRITE8_MEMBER(control_write);
4242   DECLARE_READ8_MEMBER(control_read);
src/mess/drivers/coco.c
r11489r11490
157157   AM_RANGE(0xF000, 0xFEFF) AM_RAMBANK("bank16")
158158   AM_RANGE(0xff00, 0xff03) AM_DEVREADWRITE_MODERN("pia_0", pia6821_device, read, write) AM_MIRROR(0x0018)
159159   AM_RANGE(0xff04, 0xff07) AM_DEVREADWRITE("acia", acia_6551_r,         acia_6551_w)   AM_MIRROR(0x0018)
160   AM_RANGE(0xff20, 0xff3f) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w)   
160   AM_RANGE(0xff20, 0xff3f) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w)
161161   AM_RANGE(0xff40, 0xff7f) AM_DEVREADWRITE("coco_cartslot", coco_cartridge_r, coco_cartridge_w)
162162   AM_RANGE(0xff90, 0xffbf) AM_NOP
163163   AM_RANGE(0xffc0, 0xffdf) AM_DEVWRITE("sam", sam6883_w)
r11489r11490
191191   AM_RANGE(0xF000, 0xFEFF) AM_RAMBANK("bank16")
192192   AM_RANGE(0xff00, 0xff03) AM_DEVREADWRITE_MODERN("pia_0", pia6821_device, read, write) AM_MIRROR(0x0018)
193193   AM_RANGE(0xff04, 0xff07) AM_DEVREADWRITE("acia", acia_6551_r,         acia_6551_w)   AM_MIRROR(0x0018)
194   AM_RANGE(0xff20, 0xff3f) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w)   
194   AM_RANGE(0xff20, 0xff3f) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w)
195195   AM_RANGE(0xff40, 0xff7f) AM_DEVREADWRITE("coco_cartslot", coco_cartridge_r, coco_cartridge_w)
196196   AM_RANGE(0xff90, 0xffbf) AM_NOP
197197   AM_RANGE(0xffc0, 0xffdf) AM_DEVWRITE("sam", sam6883_w)
r11489r11490
269269   AM_RANGE(0xF000, 0xFEFF) AM_RAMBANK("bank16")
270270   AM_RANGE(0xff00, 0xff03) AM_DEVREADWRITE_MODERN("pia_0", pia6821_device, read, write)
271271   AM_RANGE(0xff04, 0xff07) AM_DEVREADWRITE("acia", acia_6551_r, acia_6551_w)
272   AM_RANGE(0xff20, 0xff23) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w)     
273   AM_RANGE(0xff24, 0xff27) AM_DEVREADWRITE_MODERN("pia_2", pia6821_device, read, write)        /* Third PIA on Dragon Alpha */
272   AM_RANGE(0xff20, 0xff23) AM_DEVREAD_MODERN("pia_1", pia6821_device, read) AM_DEVWRITE("pia_1", coco_pia_1_w)
273   AM_RANGE(0xff24, 0xff27) AM_DEVREADWRITE_MODERN("pia_2", pia6821_device, read, write)       /* Third PIA on Dragon Alpha */
274274   AM_RANGE(0Xff28, 0xff2b) AM_READWRITE(dgnalpha_modem_r, dgnalpha_modem_w)      /* Modem, dummy to stop eror log ! */
275275   AM_RANGE(0xff2c, 0xff2f) AM_READWRITE(dgnalpha_wd2797_r, dgnalpha_wd2797_w)   /* Alpha onboard disk interface */
276276   AM_RANGE(0xff40, 0xff7f) AM_DEVREADWRITE("coco_cartslot", coco_cartridge_r, coco_cartridge_w)
src/mess/drivers/genpc.c
r11489r11490
127127   MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", pc_isa8_cards, "hdc")
128128   MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", pc_isa8_cards, "adlib")
129129   MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", pc_isa8_cards, NULL)
130   
130
131131   /* keyboard */
132132   MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf)
133133
src/mess/drivers/v1050.c
r11489r11490
724724static WRITE8_DEVICE_HANDLER( disp_ppi_pc_w )
725725{
726726   i8255_device *ppi = static_cast<i8255_device*>(device);
727   
727
728728   ppi->pc2_w(BIT(data, 6));
729729   ppi->pc4_w(BIT(data, 7));
730730}
src/mess/drivers/cm1800.c
r11489r11490
11/***************************************************************************
2   
2
33        CM-1800
4      (note name is in cyrilic letters)
5     
6      more info at http://ru.wikipedia.org/wiki/%D0%A1%D0%9C_%D0%AD%D0%92%D0%9C
7         and http://sapr.lti-gti.ru/index.php?id=66
8         
4        (note name is in cyrilic letters)
5
6        more info at http://ru.wikipedia.org/wiki/%D0%A1%D0%9C_%D0%AD%D0%92%D0%9C
7            and http://sapr.lti-gti.ru/index.php?id=66
8
99        26/04/2011 Skeleton driver.
1010
1111****************************************************************************/
r11489r11490
2626   DECLARE_READ8_MEMBER( term_r );
2727   DECLARE_WRITE8_MEMBER( term_ready_w );
2828   DECLARE_WRITE8_MEMBER( kbd_put );
29   
29
3030   UINT8 m_key_ready;
3131   UINT8 m_term_data;
3232};
r11489r11490
7171INPUT_PORTS_END
7272
7373
74static MACHINE_RESET(cm1800)
75{   
74static MACHINE_RESET(cm1800)
75{
7676}
7777
7878static GENERIC_TERMINAL_INTERFACE( cm1800_terminal_intf )
r11489r11490
8484   /* basic machine hardware */
8585   MCFG_CPU_ADD("maincpu",I8080, XTAL_2MHz)
8686   MCFG_CPU_PROGRAM_MAP(cm1800_mem)
87   MCFG_CPU_IO_MAP(cm1800_io)   
87   MCFG_CPU_IO_MAP(cm1800_io)
8888
8989   MCFG_MACHINE_RESET(cm1800)
90   
90
9191   /* video hardware */
9292   MCFG_FRAGMENT_ADD( generic_terminal )
9393   MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG,cm1800_terminal_intf)
src/mess/drivers/amico2k.c
r11489r11490
101101{
102102   /*
103103
104      bit      description
104        bit     description
105105
106      PA0      keyboard data 0
107      PA1      keyboard data 1
108      PA2      keyboard data 2
109      PA3      keyboard data 3
110      PA4      keyboard data 4
111      PA5      keyboard data 5
112      PA6      keyboard data 6
113      PA7      reg out
106        PA0     keyboard data 0
107        PA1     keyboard data 1
108        PA2     keyboard data 2
109        PA3     keyboard data 3
110        PA4     keyboard data 4
111        PA5     keyboard data 5
112        PA6     keyboard data 6
113        PA7     reg out
114114
115   */
115    */
116116
117117   switch (m_ls145_p)
118118   {
r11489r11490
127127{
128128   /*
129129
130      bit      description
130        bit     description
131131
132      PA0      LED segment A
133      PA1      LED segment B
134      PA2      LED segment C
135      PA3      LED segment D
136      PA4      LED segment E
137      PA5      LED segment F
138      PA6      LED segment G
139      PA7     
132        PA0     LED segment A
133        PA1     LED segment B
134        PA2     LED segment C
135        PA3     LED segment D
136        PA4     LED segment E
137        PA5     LED segment F
138        PA6     LED segment G
139        PA7
140140
141   */
142   
141    */
142
143143   m_segment = data;
144144   m_led_refresh_timer->adjust(attotime::from_usec(70));
145145}
r11489r11490
148148{
149149   /*
150150
151      bit      description
151        bit     description
152152
153      PB0      reg out
154      PB1     
155      PB2     
156      PB3     
157      PB4     
158      PB5     
159      PB6     
160      PB7     
153        PB0     reg out
154        PB1
155        PB2
156        PB3
157        PB4
158        PB5
159        PB6
160        PB7
161161
162   */
162    */
163163
164164   return 0;
165165}
r11489r11490
168168{
169169   /*
170170
171      bit      description
171        bit     description
172172
173      PB0     
174      PB1      LS145 P0
175      PB2      LS145 P1
176      PB3      LS145 P2
177      PB4      LS145 P3
178      PB5      reg in
179      PB6      reg in
180      PB7      led output enable
173        PB0
174        PB1     LS145 P0
175        PB2     LS145 P1
176        PB3     LS145 P2
177        PB4     LS145 P3
178        PB5     reg in
179        PB6     reg in
180        PB7     led output enable
181181
182   */
182    */
183183
184184   m_ls145_p = (data >> 1) & 0x0f;
185185}
src/mess/drivers/next.c
r11489r11490
44
55    05/11/2009 Skeleton driver.
66
7   TODO:
8   - RTC check still fails
7    TODO:
8    - RTC check still fails
99
10      000061D0: 61FF FFFF F24E                                      bsr     $5420; (2+)
11      000061D6: 4640                                                not.w   D0
12      000061D8: 6704                                                beq     $61de
13      000061DA: B440                                                cmp.w   D0, D2
14      000061DC: 6704                                                beq     $61e2 <---------------- D0 and D2 must be equal there
15      000061DE: 70FF                                                moveq   #-$1, D0
16      000061E0: 6002                                                bra     $61e4
17      000061E2: 4280                                                clr.l   D0
18      000061E4: 4CEE 0C04 FFF4                                      movem.l (-$c,A6), D2/A2-A3
19      000061EA: 4E5E                                                unlk    A6
20      000061EC: 4E75                                                rts
10        000061D0: 61FF FFFF F24E                                      bsr     $5420; (2+)
11        000061D6: 4640                                                not.w   D0
12        000061D8: 6704                                                beq     $61de
13        000061DA: B440                                                cmp.w   D0, D2
14        000061DC: 6704                                                beq     $61e2 <---------------- D0 and D2 must be equal there
15        000061DE: 70FF                                                moveq   #-$1, D0
16        000061E0: 6002                                                bra     $61e4
17        000061E2: 4280                                                clr.l   D0
18        000061E4: 4CEE 0C04 FFF4                                      movem.l (-$c,A6), D2/A2-A3
19        000061EA: 4E5E                                                unlk    A6
20        000061EC: 4E75                                                rts
2121
22   DASM notes:
22    DASM notes:
2323    - Jumping to 0x21ee means that the system POST failed
2424    - 0x258c: ROM test (check with 0x1a)
2525    - currently fails at 0xfee sub-routine (jumping it starts the MO disk check)
src/mess/drivers/atom.c
r11489r11490
8686
8787    - ERROR repeats forever after entering incorrect command
8888
89      C26D: bcs  $C2AA
90      C26F: sta  $53
91      C271: lda  $C0EE,x
92      C274: bcc  $C29F
93      C29F: sta  $52
94      C2A1: sty  $03
95      C2A3: ldx  $04
96      C2A5: jmp  ($0052)
97      F251: ora  $0C0D      <---- Table of Base Address Value for Mnemonics, should not jump here!!
89        C26D: bcs  $C2AA
90        C26F: sta  $53
91        C271: lda  $C0EE,x
92        C274: bcc  $C29F
93        C29F: sta  $52
94        C2A1: sty  $03
95        C2A3: ldx  $04
96        C2A5: jmp  ($0052)
97        F251: ora  $0C0D        <---- Table of Base Address Value for Mnemonics, should not jump here!!
9898
9999    - connect to softwarelist
100100    - e000 EPROM switching
src/mess/drivers/ibmpc.c
r11489r11490
336336
337337   /* video hardware */
338338   MCFG_FRAGMENT_ADD( pcvideo_cga )
339   
339
340340   MCFG_ISA8_SLOT_ADD("mb:isa", 1, "isa1", ibm_isa8_cards, "com")
341341   MCFG_ISA8_SLOT_ADD("mb:isa", 2, "isa2", ibm_isa8_cards, "fdc")
342342   MCFG_ISA8_SLOT_ADD("mb:isa", 3, "isa3", ibm_isa8_cards, "hdc")
r11489r11490
374374   MCFG_ISA8_SLOT_ADD("mb:isa", 4, "isa4", ibm_isa8_cards, NULL)
375375   MCFG_ISA8_SLOT_ADD("mb:isa", 5, "isa5", ibm_isa8_cards, NULL)
376376   MCFG_ISA8_SLOT_ADD("mb:isa", 6, "isa6", ibm_isa8_cards, NULL)
377   
377
378378   /* keyboard */
379379   MCFG_KB_KEYTRONIC_ADD("keyboard", pc_keytronic_intf)
380380
src/mess/drivers/craft.c
r11489r11490
5555   }
5656
5757   virtual void machine_start();
58   
58
5959   UINT8 m_regs[0x100];
6060
6161   emu_timer* m_timer0_timer;
src/mess/drivers/bbc.c
r11489r11490
9797}
9898
9999static ADDRESS_MAP_START( bbca_mem, AS_PROGRAM, 8 )
100   ADDRESS_MAP_UNMAP_HIGH                                                          /*  Hardware marked with a # is not present in a Model A        */
100   ADDRESS_MAP_UNMAP_HIGH                                                       /*  Hardware marked with a # is not present in a Model A        */
101101
102102   AM_RANGE(0x0000, 0x3fff) AM_READ_BANK("bank1") AM_WRITE(bbc_memorya1_w)                  /*    0000-3fff                 Regular Ram                     */
103103   AM_RANGE(0x4000, 0x7fff) AM_READ_BANK("bank3") AM_WRITE(bbc_memorya1_w)                  /*    4000-7fff                 Repeat of the Regular Ram       */
r11489r11490
138138
139139   AM_RANGE(0x8000, 0xbfff) AM_READ_BANK("bank4") AM_WRITE(bbc_memoryb4_w)                  /*    8000-bfff                 Paged ROM                       */
140140
141   AM_RANGE(0xc000, 0xfbff) AM_READ_BANK("bank7")                                     /*    c000-fbff                 OS ROM                          */
141   AM_RANGE(0xc000, 0xfbff) AM_READ_BANK("bank7")                                    /*    c000-fbff                 OS ROM                          */
142142
143143   AM_RANGE(0xfc00, 0xfdff) AM_READWRITE(bbc_opus_read, bbc_opus_write)                  /*    fc00-fdff                 OPUS Disc Controller            */
144144
r11489r11490
300300- "Copy" is mapped to 'F11'
301301- "Shift Lock" is mapped to 'F12'                      */
302302
303/*  Port                                        Key description                 Emulated key                    Natural key        Shift 1         Shift 2 (Ctrl) */
303/*  Port                                        Key description                 Emulated key                    Natural key         Shift 1         Shift 2 (Ctrl) */
304304
305305static INPUT_PORTS_START(bbca)
306306   PORT_START("COL0")   /* KEYBOARD COLUMN 0 */
307307   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT")              PORT_CODE(KEYCODE_RSHIFT) PORT_CODE(KEYCODE_LSHIFT)   PORT_CHAR(UCHAR_SHIFT_1)
308308   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD)   PORT_NAME("Q")                  PORT_CODE(KEYCODE_Q)         PORT_CHAR('Q')
309309   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F0")               PORT_CODE(KEYCODE_F10)         PORT_CHAR(UCHAR_MAMEKEY(F10))
310   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 !")                PORT_CODE(KEYCODE_1)         PORT_CHAR('1')       PORT_CHAR('!')
310   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 !")                PORT_CODE(KEYCODE_1)         PORT_CHAR('1')      PORT_CHAR('!')
311311   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CAPSLOCK")           PORT_CODE(KEYCODE_CAPSLOCK)      PORT_CHAR(UCHAR_MAMEKEY(CAPSLOCK))
312312   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFTLOCK")           PORT_CODE(KEYCODE_LALT)         PORT_CHAR(UCHAR_MAMEKEY(F12))
313313   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("TAB")                PORT_CODE(KEYCODE_TAB)         PORT_CHAR('\t')
r11489r11490
315315
316316   PORT_START("COL1")   /* KEYBOARD COLUMN 1 */
317317   PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CTRL")              PORT_CODE(KEYCODE_LCONTROL)   PORT_CODE(KEYCODE_RCONTROL)   PORT_CHAR(UCHAR_SHIFT_2)
318   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 #")                PORT_CODE(KEYCODE_3)         PORT_CHAR('3')       PORT_CHAR('#')
318   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 #")                PORT_CODE(KEYCODE_3)         PORT_CHAR('3')      PORT_CHAR('#')
319319   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W")                  PORT_CODE(KEYCODE_W)         PORT_CHAR('W')
320   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 \"")               PORT_CODE(KEYCODE_2)         PORT_CHAR('2')       PORT_CHAR('\"')
320   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 \"")               PORT_CODE(KEYCODE_2)         PORT_CHAR('2')      PORT_CHAR('\"')
321321   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A")                  PORT_CODE(KEYCODE_A)         PORT_CHAR('A')
322322   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S")                  PORT_CODE(KEYCODE_S)         PORT_CHAR('S')
323323   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z")                  PORT_CODE(KEYCODE_Z)         PORT_CHAR('Z')
r11489r11490
327327   PORT_DIPNAME(0x01, 0x01, "DIP 8 (Not Used)")
328328   PORT_DIPSETTING(   0x00, DEF_STR( Off ))
329329   PORT_DIPSETTING(   0x01, DEF_STR( On ))
330   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4")               PORT_CODE(KEYCODE_4)         PORT_CHAR('4')       PORT_CHAR('$')
330   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4")               PORT_CODE(KEYCODE_4)         PORT_CHAR('4')      PORT_CHAR('$')
331331   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E")               PORT_CODE(KEYCODE_E)         PORT_CHAR('E')
332332   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D")               PORT_CODE(KEYCODE_D)         PORT_CHAR('D')
333333   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X")               PORT_CODE(KEYCODE_X)         PORT_CHAR('X')
r11489r11490
339339   PORT_DIPNAME(0x01, 0x01, "DIP 7 (Not Used)")
340340   PORT_DIPSETTING(   0x00, DEF_STR( Off ))
341341   PORT_DIPSETTING(   0x01, DEF_STR( On ))
342   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5")               PORT_CODE(KEYCODE_5)         PORT_CHAR('5')       PORT_CHAR('%')
342   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5")               PORT_CODE(KEYCODE_5)         PORT_CHAR('5')      PORT_CHAR('%')
343343   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T")               PORT_CODE(KEYCODE_T)         PORT_CHAR('T')
344344   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R")               PORT_CODE(KEYCODE_R)         PORT_CHAR('R')
345345   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F")               PORT_CODE(KEYCODE_F)         PORT_CHAR('F')
r11489r11490
352352   PORT_DIPSETTING(   0x00, DEF_STR( Off ))
353353   PORT_DIPSETTING(   0x01, DEF_STR( On ))
354354   PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F4")               PORT_CODE(KEYCODE_F4)         PORT_CHAR(UCHAR_MAMEKEY(F4))
355   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7 \\")            PORT_CODE(KEYCODE_7)         PORT_CHAR('7')       PORT_CHAR('\'')
356   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6 &")            PORT_CODE(KEYCODE_6)         PORT_CHAR('6')       PORT_CHAR('&')
355   PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7 \\")            PORT_CODE(KEYCODE_7)         PORT_CHAR('7')      PORT_CHAR('\'')
356   PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6 &")            PORT_CODE(KEYCODE_6)         PORT_CHAR('6')      PORT_CHAR('&')
357357   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y")               PORT_CODE(KEYCODE_Y)         PORT_CHAR('Y')
358358   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H")               PORT_CODE(KEYCODE_H)         PORT_CHAR('H')
359359   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B")               PORT_CODE(KEYCODE_B)         PORT_CHAR('B')
src/mess/mess.mak
r11489r11490
492492   $(MAME_DRIVERS)/vectrex.o   \
493493   $(MAME_VIDEO)/vectrex.o      \
494494   $(MAME_MACHINE)/vectrex.o   \
495   $(MAME_VIDEO)/smsvdp.o       \
496   $(MAME_MACHINE)/segasms.o    \
497   $(MAME_DRIVERS)/segasms.o    \
498   $(MAME_DRIVERS)/sg1000.o    \
499   $(MAME_DRIVERS)/dc.o       \
500   $(MAME_MACHINE)/dccons.o    \
495   $(MAME_VIDEO)/smsvdp.o      \
496   $(MAME_MACHINE)/segasms.o   \
497   $(MAME_DRIVERS)/segasms.o   \
498   $(MAME_DRIVERS)/sg1000.o   \
499   $(MAME_DRIVERS)/dc.o      \
500   $(MAME_MACHINE)/dccons.o   \
501501   $(MAME_MACHINE)/gdrom.o    \
502502   $(MAME_DRIVERS)/a310.o      \
503503   $(MAME_DRIVERS)/a7000.o      \
r11489r11490
776776
777777$(MESSOBJ)/cccp.a:            \
778778   $(MESS_DRIVERS)/argo.o      \
779   $(MESS_DRIVERS)/cm1800.o    \
779   $(MESS_DRIVERS)/cm1800.o   \
780780   $(MESS_VIDEO)/lviv.o      \
781781   $(MESS_DRIVERS)/lviv.o      \
782782   $(MESS_MACHINE)/lviv.o      \
r11489r11490
812812   $(MESS_DRIVERS)/coleco.o   \
813813   $(MESS_MACHINE)/coleco.o   \
814814   $(MESS_DRIVERS)/adam.o      \
815   
815
816816$(MESSOBJ)/cromemco.a:         \
817817   $(MESS_DRIVERS)/c10.o      \
818818
r11489r11490
11641164$(MESSOBJ)/netronic.a:         \
11651165   $(MESS_DRIVERS)/elf.o      \
11661166   $(MESS_DRIVERS)/exp85.o      \
1167   
1167
11681168$(MESSOBJ)/next.a:            \
11691169   $(MESS_DRIVERS)/next.o      \
11701170
r11489r11490
13371337   $(MESS_VIDEO)/mbc55x.o     \
13381338
13391339$(MESSOBJ)/sega.a:            \
1340   $(MESS_DRIVERS)/sg1000.o    \
1340   $(MESS_DRIVERS)/sg1000.o   \
13411341
13421342$(MESSOBJ)/sgi.a:            \
13431343   $(MESS_MACHINE)/sgi.o      \

Previous 15994 Revisions Next


© 1998-2018 The MESS Team