Previous 15994 Revisions Next

r11051 Sunday 3rd April, 2011 at 08:29:33 UTC by Miodrag Milanović
Updated to MAME 0.142
[src]version.c
[src/emu]clifront.c machine.c machine.h memory.c memory.h softlist.h uiimage.c
[src/emu/cpu/i4004]i4004.c
[src/emu/cpu/i8008]i8008.c
[src/emu/cpu/i8085]i8085.c
[src/emu/cpu/i860]i860.c
[src/emu/cpu/m68000]m68kcpu.c
[src/emu/cpu/mc68hc11]mc68hc11.c
[src/emu/cpu/mcs48]mcs48.c
[src/emu/cpu/pps4]pps4.c
[src/emu/cpu/scmp]scmp.c
[src/emu/cpu/sh4]sh4.c
[src/emu/cpu/superfx]superfx.c
[src/emu/cpu/tms34010]tms34010.c
[src/emu/cpu/z180]z180.c
[src/emu/debug]debugcpu.c
[src/emu/machine]e0516.c e0516.h nmc9306.c nmc9306.h upd1990a.c z8536.c z8536.h
[src/emu/video]msm6255.c msm6255.h
[src/mame]mamedriv.c
[src/mame/drivers]backfire.c boogwing.c cosmic.c cps2.c csplayh5.c darkseal.c deco32.c deco_ld.c dietgo.c dogfgt.c esd16.c funkyjet.c karnov.c konamim2.c lordgun.c madmotor.c mirage.c pktgaldx.c simpl156.c ssv.c stadhero.c suprgolf.c tumbleb.c
[src/mame/includes]actfancr.h deco32.h m62.h macrossp.h sshangha.h turbo.h
[src/mame/machine]harddriv.c snes.c
[src/mame/video]cbuster.c cninja.c darkseal.c dec8.c decbac06.c decbac06.h deckarn.c decmxc06.c deco16ic.c deco16ic.h deco32.c decocomn.c madmotor.c pcktgal.c realbrk.c sshangha.c stadhero.c
[src/osd/sdl]input.c
[src/osd/windows]winmain.c

src/mame/machine/snes.c
r11050r11051
582582//      case 0x420c: //PC: 9c7d - 8fab          //only nss_ssoc
583583
584584      default:
585//         mame_printf_debug("snes_r: offset = %x pc = %x\n",offset,cpu_get_pc(&space->device()));
585//          mame_printf_debug("snes_r: offset = %x pc = %x\n",offset,cpu_get_pc(&space->device()));
586586// Added break; after commenting above line.  If uncommenting, drop the break;
587587                        break;
588           
588
589589#endif   /* MESS */
590590
591591   }
src/mame/machine/harddriv.c
r11050r11051
18531853      state->m_stmsp_sync[0][2] == 0 &&      /* 80030 */
18541854      state->m_stmsp_sync[0][3] == 0 &&      /* 80040 */
18551855      state->m_stmsp_sync[0][4] == 0 &&      /* 80050 */
1856      state->m_stmsp_sync[0][5] == 0 &&       /* 80060 */
1857      state->m_stmsp_sync[0][6] == 0 &&       /* 80070 */
1858      state->m_stmsp_sync[1][0] == 0 &&       /* 99680 */
1856      state->m_stmsp_sync[0][5] == 0 &&      /* 80060 */
1857      state->m_stmsp_sync[0][6] == 0 &&      /* 80070 */
1858      state->m_stmsp_sync[1][0] == 0 &&      /* 99680 */
18591859      state->m_stmsp_sync[2][0] == 0xffff &&   /* 99d30 */
18601860      state->m_stmsp_sync[2][1] == 0xffff &&   /* 99d40 */
18611861      state->m_stmsp_sync[2][2] == 0 &&      /* 99d50 */
src/mame/mamedriv.c
r11050r11051
604604   DRIVER( musobana )   /* (c) 1995 */
605605   DRIVER( niyanpai )   /* (c) 1996 */
606606
607   DRIVER( jyunai )   /* (c) 1998 */
607608   DRIVER( csplayh5 )   /* (c) 1998 */
609   DRIVER( bikiniko )   /* (c) 1999 */
608610
609611   /* "Phoenix hardware" (and variations) games */
610612   DRIVER( safarir )   /* Shin Nihon Kikaku (SNK) */
r11050r11051
69556957   DRIVER( mystston )   /* TA-0010 (c) 1984 */
69566958   DRIVER( myststono )   /* TA-0010 (c) 1984 */
69576959   DRIVER( dogfgt )   /* TA-0011 (c) 1984 */
6960   DRIVER( dogfgtu )   /* TA-0011 (c) 1985 Data East USA, Inc. */
69586961   DRIVER( dogfgtj )   /* TA-0011 (c) 1984 */
69596962   DRIVER( bogeyman )   /* -0204-0 (Data East part number) (c) 1985 (Arcade TV Game List - P.96, Right, 8 from top) */
69606963   DRIVER( matmania )   /* TA-0015 (c) 1985 + Taito America license */
src/mame/includes/deco32.h
r11050r11051
2222   int m_ace_ram_dirty;
2323   int m_has_ace_ram;
2424   UINT32 *m_ace_ram;
25     
25
2626   UINT8 *m_dirty_palette;
2727
2828   int m_pri;
r11050r11051
4242   UINT32 *m_pf2_rowscroll32;
4343   UINT32 *m_pf3_rowscroll32;
4444   UINT32 *m_pf4_rowscroll32;
45   
45
4646   device_t *m_deco_tilegen1;
4747   device_t *m_deco_tilegen2;
4848};
src/mame/includes/actfancr.h
r11050r11051
1414   UINT8 *        m_main_ram;
1515//  UINT8 *        m_spriteram;   // currently this uses buffered_spriteram
1616//  UINT8 *        m_paletteram;  // currently this uses generic palette handling
17   UINT16 m_spriteram16[0x800/2]; // a 16-bit copy of spriteram for use with the MXC06 code     
17   UINT16 m_spriteram16[0x800/2]; // a 16-bit copy of spriteram for use with the MXC06 code
1818
1919   /* video-related */
2020   int            m_flipscreen;
src/mame/includes/sshangha.h
r11050r11051
1414
1515   UINT16* m_pf1_rowscroll;
1616   UINT16* m_pf2_rowscroll;
17   
17
1818   UINT16* m_sprite_paletteram;
1919   UINT16* m_sprite_paletteram2;
2020   UINT16* m_tile_paletteram1;
2121   UINT16* m_tile_paletteram2;
22   
22
2323   required_device<deco16ic_device> m_deco_tilegen1;
2424};
2525
src/mame/includes/turbo.h
r11050r11051
4848   /* Turbo-specific states */
4949   UINT8      m_turbo_opa;
5050   UINT8      m_turbo_opb;
51   UINT8       m_turbo_opc;
51   UINT8      m_turbo_opc;
5252   UINT8      m_turbo_ipa;
5353   UINT8      m_turbo_ipb;
5454   UINT8      m_turbo_ipc;
src/mame/includes/m62.h
r11050r11051
2727
2828   /* misc */
2929   int                 m_ldrun2_bankswap;   //ldrun2
30   int                 m_bankcontrol[2];    //ldrun2
30   int                 m_bankcontrol[2];   //ldrun2
3131};
3232
3333
src/mame/includes/macrossp.h
r11050r11051
3636   int              m_sndpending;
3737   int              m_snd_toggle;
3838   INT32            m_fade_effect;
39   INT32           m_old_fade;
39   INT32          m_old_fade;
4040
4141   /* devices */
4242   device_t *m_maincpu;
src/mame/video/madmotor.c
r11050r11051
2727   madmotor_state *state = screen->machine().driver_data<madmotor_state>();
2828   flip_screen_set(screen->machine(), screen->machine().device<deco_bac06_device>("tilegen1")->get_flip_state());
2929
30//   tilemap_set_flip_all(screen->machine(), screen->machine().device<deco_bac06_device>("tilegen1")->get_flip_state() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
30//  tilemap_set_flip_all(screen->machine(), screen->machine().device<deco_bac06_device>("tilegen1")->get_flip_state() ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
3131
3232   screen->machine().device<deco_bac06_device>("tilegen3")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,TILEMAP_DRAW_OPAQUE, 0x00, 0x00, 0x00, 0x00);
3333   screen->machine().device<deco_bac06_device>("tilegen2")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,0, 0x00, 0x00, 0x00, 0x00);
src/mame/video/decbac06.c
r11050r11051
179179      pf16x16_tilemap[2] = tilemap_create_device(this, get_pf16x16_tile_info, tile_shape2_scan,  16, 16,  32, 64);
180180   }
181181   else
182   {   
182   {
183183      pf16x16_tilemap[0] = tilemap_create_device(this, get_pf16x16_tile_info,tile_shape0_scan,    16,16, 64, 16);
184184      pf16x16_tilemap[1] = tilemap_create_device(this, get_pf16x16_tile_info,tile_shape1_scan,    16,16, 32, 32);
185185      pf16x16_tilemap[2] = tilemap_create_device(this, get_pf16x16_tile_info,tile_shape2_scan,    16,16, 16, 64);
r11050r11051
289289
290290         p = *BITMAP_ADDR16(src_bitmap, (src_y + column_offset)&height_mask, src_x&width_mask);
291291         colpri =  *BITMAP_ADDR8(flags_bitmap, (src_y + column_offset)&height_mask, src_x&width_mask)&0xf;
292     
292
293293         src_x++;
294294         if ((flags&TILEMAP_DRAW_OPAQUE) || (p&m_bppmask))
295295         {
296296
297           
297
298298            if ((p&penmask)==pencondition)
299299               if((colpri&colprimask)==colpricondition)
300300                  *BITMAP_ADDR16(bitmap, y, x) = p+(colpri&m_gfxcolmask)*m_bppmult;
src/mame/video/decbac06.h
r11050r11051
2222   deco_bac06_device(running_machine &_machine, const deco_bac06_device_config &config);
2323public:
2424   void set_gfxregion(int region8x8, int region16x16) { m_gfxregion8x8 = region8x8; m_gfxregion16x16 = region16x16; };
25   
2625
26
2727   UINT16* pf_data;
2828   UINT16* pf_rowscroll, *pf_colscroll;
2929
r11050r11051
6565                     const UINT16 *control1,
6666                     int flags,
6767                     UINT16 penmask, UINT16 pencondition,UINT16 colprimask, UINT16 colpricondition);
68                     
68
6969private:
7070
7171
src/mame/video/deco32.c
r11050r11051
548548{
549549   dragngun_state *state = machine.driver_data<dragngun_state>();
550550   state->m_dirty_palette = auto_alloc_array(machine, UINT8, 4096);
551   
551
552552   memset(state->m_dirty_palette,0,4096);
553553
554554   state_save_register_global(machine, state->m_dragngun_sprite_ctrl);
r11050r11051
590590
591591SCREEN_EOF( dragngun )
592592{
593   
593
594594}
595595
596596
r11050r11051
628628   deco16ic_tilemap_1_draw(state->m_deco_tilegen1, bitmap, cliprect, 0, 4);
629629
630630   screen->machine().device<decospr_device>("spritegen")->set_alt_format(true);
631   screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x400);
631   screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x400);
632632
633633   return 0;
634634}
r11050r11051
653653   // zooming sprite draw is very slow, and sprites are buffered.. however, one of the levels attempts to use
654654   // partial updates for every line, which causes things to be very slow... the sprites appear to support
655655   // multiple layers of alpha, so rendering to a buffer for layer isn't easy (maybe there are multiple sprite
656   // chips at work?)
656   // chips at work?)
657657   //
658658   // really, it needs optimizing .. the raster effects also need fixing properly, they're not correct using
659659   // partial updates right now but the old buffering of scroll values was a hack and doesn't work properly
r11050r11051
689689   deco16ic_pf_update(state->m_deco_tilegen1, state->m_pf1_rowscroll, state->m_pf2_rowscroll);
690690   deco16ic_pf_update(state->m_deco_tilegen2, state->m_pf3_rowscroll, state->m_pf4_rowscroll);
691691
692   screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x800, true);
692   screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x800, true);
693693
694694   /* Draw screen */
695695   deco16ic_tilemap_2_draw(state->m_deco_tilegen2, bitmap, cliprect, 0, 1);
r11050r11051
733733   bitmap_t* sprite0_mix_bitmap = machine.device<decospr_device>("spritegen1")->get_sprite_temp_bitmap();
734734   bitmap_t* sprite1_mix_bitmap = machine.device<decospr_device>("spritegen2")->get_sprite_temp_bitmap();
735735
736   
736
737737   /* Mix sprites into main bitmap, based on priority & alpha */
738738   for (y=8; y<248; y++) {
739739      UINT8* tilemapPri=BITMAP_ADDR8(machine.priority_bitmap, y, 0);
r11050r11051
879879   screen->machine().device<decospr_device>("spritegen1")->set_pix_raw_shift(8);
880880   screen->machine().device<decospr_device>("spritegen2")->set_pix_raw_shift(8);
881881
882   screen->machine().device<decospr_device>("spritegen1")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x800, true);
883   screen->machine().device<decospr_device>("spritegen2")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_2_buffered, 0x800, true);
882   screen->machine().device<decospr_device>("spritegen1")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffered, 0x800, true);
883   screen->machine().device<decospr_device>("spritegen2")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_2_buffered, 0x800, true);
884884
885   
885
886886   /* Render alpha-blended tilemap to seperate buffer for proper mixing */
887887   bitmap_fill(state->m_tilemap_alpha_bitmap,cliprect,0);
888888
src/mame/video/darkseal.c
r11050r11051
33   Dark Seal Video emulation - Bryan McPhail, mish@tendril.co.uk
44
55****************************************************************************
6
6
77 uses 2x DECO55 tilemaps
88
99**************************************************************************
r11050r11051
7171
7272   deco16ic_tilemap_1_draw(state->m_deco_tilegen2, bitmap, cliprect, 0, 0);
7373   deco16ic_tilemap_2_draw(state->m_deco_tilegen2, bitmap, cliprect, 0, 0);
74   
74
7575   deco16ic_tilemap_1_draw(state->m_deco_tilegen1, bitmap, cliprect, 0, 0);
7676   screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, screen->machine().generic.buffered_spriteram.u16, 0x400);
7777   deco16ic_tilemap_2_draw(state->m_deco_tilegen1, bitmap, cliprect, 0, 0);
src/mame/video/stadhero.c
r11050r11051
66
77    MXC-06 chip to produce sprites, see dec0.c
88    BAC-06 chip for background
9   ??? for text layer
9    ??? for text layer
1010
1111***************************************************************************/
1212
r11050r11051
2222SCREEN_UPDATE( stadhero )
2323{
2424   stadhero_state *state = screen->machine().driver_data<stadhero_state>();
25//   tilemap_set_flip_all(screen->machine(),state->m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
25//  tilemap_set_flip_all(screen->machine(),state->m_flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
2626
2727   screen->machine().device<deco_bac06_device>("tilegen1")->set_bppmultmask(0x8, 0x7);
2828   screen->machine().device<deco_bac06_device>("tilegen1")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,TILEMAP_DRAW_OPAQUE, 0x00, 0x00, 0x00, 0x00);
src/mame/video/sshangha.c
r11050r11051
4444   bitmap_fill(bitmap,cliprect,get_black_pen(screen->machine()));
4545
4646   deco16ic_pf_update(state->m_deco_tilegen1, state->m_pf1_rowscroll, state->m_pf2_rowscroll);
47   
47
4848   /* the tilemap 4bpp + 4bpp = 8bpp mixing actually seems external to the tilemap, note video_control is not part of the tilemap chip */
4949   if ((state->m_video_control&4)==0) {
5050      deco16ic_tilemap_12_combine_draw(state->m_deco_tilegen1, bitmap, cliprect, 0, 0, 1);
src/mame/video/deckarn.c
r11050r11051
3636
3737void deco_karnovsprites_device::device_start()
3838{
39   
39
4040}
4141
4242void deco_karnovsprites_device::device_reset()
src/mame/video/cbuster.c
r11050r11051
5454
5555   flip_screen_set(screen->machine(), !BIT(flip, 7));
5656
57   screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffer, 0x400);
57   screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, state->m_spriteram16_buffer, 0x400);
5858
5959
6060   deco16ic_pf_update(state->m_deco_tilegen1, state->m_pf1_rowscroll, state->m_pf2_rowscroll);
src/mame/video/deco16ic.c
r11050r11051
11/********************************************************************************
22
3    deco16ic.c
3    deco16ic.c
44
55    Implementation of Data East tilemap ICs
6   Data East IC 55 / 56 / 74 / 141
6    Data East IC 55 / 56 / 74 / 141
77
8   original work by Bryan McPhail, various updates David Haywood
8    original work by Bryan McPhail, various updates David Haywood
99
1010    Data East video emulation & information by Bryan McPhail, mish@tendril.co.uk (c) 2000-2005 Bryan McPhail
1111    Please send me any additions to the table below.
r11050r11051
147147
148148    2010-02: Converted to be a device.
149149    TODO:
150      - convert to c++ device
151      - should the decryption functions for the tilemap chips be here too?
150        - convert to c++ device
151        - should the decryption functions for the tilemap chips be here too?
152152
153   it seems overall height / width of the tilemaps can be configured somehow
154   darkseal clearly needs 64 rows, whereas other games need 32.
153    it seems overall height / width of the tilemaps can be configured somehow
154    darkseal clearly needs 64 rows, whereas other games need 32.
155155
156   width seems configurable in a similar way, with nitroball and lockload
157   needing narrower tilemaps.  lockload/dragngun might be a good study case
158   as they run on the same harwdare, and both rely on different behavior.
156    width seems configurable in a similar way, with nitroball and lockload
157    needing narrower tilemaps.  lockload/dragngun might be a good study case
158    as they run on the same harwdare, and both rely on different behavior.
159159
160160***************************************************************************/
161161
r11050r11051
280280            flags);
281281   }
282282   else
283   {   
283   {
284284      SET_TILE_INFO_DEVICE(
285285            deco16ic->pf12_16x16_gfx_bank,
286286            (tile & 0xfff) | deco16ic->pf1_bank,
r11050r11051
399399   width_mask = src_bitmap0->width - 1;
400400   height_mask = src_bitmap0->height - 1;
401401   src_y = scrolly + starty;
402   
403402
403
404404   for (y = starty; y < endy; y++)
405405   {
406406      if (rowscroll_ptr && BIT(control1, 6))
r11050r11051
423423
424424            if (src_bitmap1)
425425            {
426               p |= (*BITMAP_ADDR16(src_bitmap1, (src_y + column_offset) & height_mask, src_x) & combine_mask) << combine_shift;     
426               p |= (*BITMAP_ADDR16(src_bitmap1, (src_y + column_offset) & height_mask, src_x) & combine_mask) << combine_shift;
427427            }
428428
429429            src_x = (src_x + 1) & width_mask;
r11050r11051
462462               {
463463                  UINT16 p2 = *BITMAP_ADDR16(src_bitmap1, (src_y + column_offset) & height_mask, src_x);
464464                  p = 0x200+( ((p&0x30)<<4) | (p&0x0f) | ((p2 & 0x0f)<<4));
465               }           
465               }
466466            }
467467            src_x = (src_x + 1) & width_mask;
468468
r11050r11051
560560   COMBINE_DATA(&deco16ic->pf1_data[offset]);
561561
562562   tilemap_mark_tile_dirty(deco16ic->pf1_tilemap_8x8, offset);
563//   if (offset < 0x800)
563//  if (offset < 0x800)
564564      tilemap_mark_tile_dirty(deco16ic->pf1_tilemap_16x16, offset);
565565}
566566
r11050r11051
571571   COMBINE_DATA(&deco16ic->pf2_data[offset]);
572572
573573   tilemap_mark_tile_dirty(deco16ic->pf2_tilemap_8x8, offset);
574//   if (offset < 0x800)
574//  if (offset < 0x800)
575575      tilemap_mark_tile_dirty(deco16ic->pf2_tilemap_16x16, offset);
576576}
577577
r11050r11051
928928      fullwidth = 1;
929929
930930   deco16ic->pf1_tilemap_16x16 =   tilemap_create_device(device, get_pf1_tile_info, deco16_scan_rows, 16, 16, fullwidth ? 64 : 32, fullheight ?64 : 32);
931//   deco16ic->pf1_tilemap_8x8 = tilemap_create_device(device, get_pf1_tile_info_b, tilemap_scan_rows, 8, 8, intf->full_width12 ? 64 : 32, 32);
931//  deco16ic->pf1_tilemap_8x8 = tilemap_create_device(device, get_pf1_tile_info_b, tilemap_scan_rows, 8, 8, intf->full_width12 ? 64 : 32, 32);
932932   deco16ic->pf1_tilemap_8x8 = tilemap_create_device(device, get_pf1_tile_info_b, tilemap_scan_rows, 8, 8, 64 , 32); // nitroball
933933
934934   deco16ic->pf12_8x8_gfx_bank = intf->_8x8_gfxregion;
r11050r11051
940940      deco16ic->pf2_tilemap_16x16 =   tilemap_create_device(device, get_pf2_tile_info, deco16_scan_rows, 16, 16, fullwidth ? 64 : 32, fullheight ? 64 : 32);
941941
942942   deco16ic->pf2_tilemap_8x8 = tilemap_create_device(device, get_pf2_tile_info_b, tilemap_scan_rows, 8, 8, fullwidth ? 64 : 32, fullheight ? 64 : 32);
943   
943
944944   tilemap_set_transparent_pen(deco16ic->pf1_tilemap_8x8, 0);
945945   tilemap_set_transparent_pen(deco16ic->pf2_tilemap_8x8, 0);
946946   tilemap_set_transparent_pen(deco16ic->pf1_tilemap_16x16, 0);
src/mame/video/deco16ic.h
r11050r11051
33    deco16ic.h
44
55    Implementation of Data East tilemap ICs
6   Data East IC 55 / 56 / 74 / 141
6    Data East IC 55 / 56 / 74 / 141
77
88**************************************************************************/
99
src/mame/video/realbrk.c
r11050r11051
3131      coin_counter_w(space->machine(), 0,   data & 0x0001);
3232      coin_counter_w(space->machine(), 1,   data & 0x0004);
3333
34      flip_screen_set(space->machine(),    data & 0x0080);
34      flip_screen_set(space->machine(),   data & 0x0080);
3535   }
3636
3737   if (ACCESSING_BITS_8_15)
src/mame/video/cninja.c
r11050r11051
276276   deco16ic_tilemap_2_draw(state->m_deco_tilegen2, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
277277   deco16ic_tilemap_2_draw(state->m_deco_tilegen1, bitmap, cliprect, 0, 0);
278278   deco16ic_tilemap_1_draw(state->m_deco_tilegen2, bitmap, cliprect, 0, 0);
279   
280279
280
281281   if (priority & 1)
282282   {
283283      screen->machine().device<decospr_device>("spritegen1")->inefficient_copy_sprite_bitmap(screen->machine(), bitmap, cliprect, 0x0000, 0x0000, 0x100, 0x1ff);
src/mame/video/decocomn.c
r11050r11051
11/* Common DECO video functions (general, not sorted by IC) */
22/* I think most of this stuff is driver specific and really shouldn't be in a device at all.
3   It was only put here because I wanted to split deco_tilegen1 to just be the device for the
3   It was only put here because I wanted to split deco_tilegen1 to just be the device for the
44   tilemap chips, and not contain all this extra unrelated stuff */
55
66
src/mame/video/decmxc06.c
r11050r11051
9191      w = (1 << ((sy & 0x0600) >>  9));   /* 1x, 2x, 4x, 8x width */
9292      /* multi width used only on the title screen? */
9393
94   
9594
95
9696      sx = sx & 0x01ff;
9797      sy = sy & 0x01ff;
9898      if (sx >= 256) sx -= 512;
r11050r11051
100100      sx = 240 - sx;
101101      sy = 240 - sy;
102102
103   
103
104104      if (flip_screen_get(machine))
105105      {
106106         sy = 240 - sy;
r11050r11051
118118         code = spriteram[offs + 1] & 0x1fff;
119119
120120         code &= ~(h-1);
121     
121
122122         if (flipy)
123123            incy = -1;
124124         else
r11050r11051
146146                  {
147147                     if (pri_mask && (color >= pri_val))
148148                        continue;
149           
149
150150                     if (!pri_mask && !(color >= pri_val))
151151                        continue;
152152
153153                     draw = 1;
154154                  }
155155               }
156               
156
157157               if (draw)
158158               {
159159                  drawgfx_transpen(bitmap,cliprect,machine.gfx[m_gfxregion],
src/mame/video/pcktgal.c
r11050r11051
6666
6767SCREEN_UPDATE( pcktgal )
6868{
69//   flip_screen_set(screen->machine(), screen->machine().device<deco_bac06_device>("tilegen1")->get_flip_state());
69//  flip_screen_set(screen->machine(), screen->machine().device<deco_bac06_device>("tilegen1")->get_flip_state());
7070   screen->machine().device<deco_bac06_device>("tilegen1")->deco_bac06_pf_draw(screen->machine(),bitmap,cliprect,TILEMAP_DRAW_OPAQUE, 0x00, 0x00, 0x00, 0x00);
7171   draw_sprites(screen->machine(), bitmap, cliprect);
7272   return 0;
src/mame/video/dec8.c
r11050r11051
313313   state->m_game_uses_priority = 0;
314314   machine.device<deco_bac06_device>("tilegen1")->set_colmask(0x3);
315315   machine.device<deco_bac06_device>("tilegen2")->set_colmask(0x3);
316   
316
317317}
318318
319319/******************************************************************************/
src/mame/drivers/csplayh5.c
r11050r11051
116116
117117   AM_RANGE(0x800000, 0xbfffff) AM_ROM AM_REGION("blit_gfx",0) // GFX ROM routes here
118118
119   AM_RANGE(0xc80000, 0xcfffff) AM_RAM AM_SHARE("nvram") // work RAM
119   AM_RANGE(0xc80000, 0xcfffff) AM_RAM AM_SHARE("nvram") AM_MIRROR(0x200000) // work RAM
120120
121121   AM_RANGE(0xfffc00, 0xffffff) AM_READWRITE(tmp68301_regs_r, tmp68301_regs_w)   // TMP68301 Registers
122122ADDRESS_MAP_END
r11050r11051
514514   PORT_DIPNAME( 0x1000, 0x0000, DEF_STR( Unknown ) )
515515   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
516516   PORT_DIPSETTING(      0x1000, DEF_STR( On ) )
517   PORT_DIPNAME( 0x2000, 0x0000, DEF_STR( Unknown ) )
517   PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) //enters into analyzer in some games otherwise
518518   PORT_DIPSETTING(      0x0000, DEF_STR( Off ) )
519519   PORT_DIPSETTING(      0x2000, DEF_STR( On ) )
520520   PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Unknown ) )
r11050r11051
678678
679679***************************************************************************/
680680
681static DRIVER_INIT( csplayh5 )
681void general_init(running_machine &machine, int patchaddress)
682682{
683683   UINT16 *MAINROM = (UINT16 *)machine.region("maincpu")->base();
684684   UINT8 *SNDROM = machine.region("audiocpu")->base();
r11050r11051
687687   csplayh5_soundbank_w(machine, 0);
688688
689689   /* patch DVD comms check */
690   MAINROM[0x4cb4/2] = 0x6018;
690   MAINROM[patchaddress] = 0x6018;
691691
692692   /* patch sound program */
693693   SNDROM[0x0213] = 0x00;         // DI -> NOP
694
694695}
695696
697static DRIVER_INIT( jyunai )
698{
699   general_init(machine,0x679C/2);
700}
701
702static DRIVER_INIT( csplayh5 )
703{
704   general_init(machine, 0x4cb4/2);
705}
706
707static DRIVER_INIT( bikiniko )
708{
709   general_init(machine,0x585C/2);
710}
711
712
713ROM_START( jyunai )
714   ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg
715   ROM_LOAD16_BYTE( "2.ic3",   0x00000, 0x20000, CRC(5923bf2e) SHA1(8fc7b95a44eb792ce03c1bffb9ad56f82d34b470) )
716   ROM_LOAD16_BYTE( "1.ic2",   0x00001, 0x20000, CRC(4ac649ee) SHA1(f5b5bccecb6eba5addcf6a57e54deff7f29f6381) )
717
718   ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player
719   ROM_LOAD16_WORD_SWAP( "u2.va1b102",   0x00000, 0x20000, CRC(67374715) SHA1(8767cbd81614c2686a1adb70159f909e8ffd634d) )
720
721   ROM_REGION( 0x20000, "audiocpu", 0 ) // z80
722   ROM_LOAD( "11.ic51",   0x00000, 0x20000, CRC(a0472ea5) SHA1(0fd04941ff595cffe64357f3a1a9dc1170db8703) )
723
724   ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs
725   ROM_LOAD16_BYTE( "3.ic40",   0x00000, 0x80000, CRC(f17fa4c4) SHA1(fd8b69b18f9ac00f468d751bf1ea0715498ea742) )
726   ROM_LOAD16_BYTE( "4.ic41",   0x00001, 0x80000, CRC(4182dc30) SHA1(89601c62b74aff3d65b075d4b5cd1eb2ccf4e386) )
727   // 0x100000 - 0x3fffff empty sockets
728
729   DISK_REGION( "dvd" )
730   DISK_IMAGE( "jyunai", 0, NO_DUMP )
731ROM_END
732
696733ROM_START( csplayh5 )
697734   ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg
698735   ROM_LOAD16_BYTE( "2.ic3",   0x00000, 0x20000, CRC(980bf3b0) SHA1(89da7354552f30aaa9d46442972c060b4b0f8979) )
699736   ROM_LOAD16_BYTE( "1.ic2",   0x00001, 0x20000, CRC(81ca49a4) SHA1(601b6802ab85be61f45a64f5b4c7e1f1ae5ee887) )
700737
701   ROM_REGION( 0x20000, "subcpu", 0 ) // ???
702   ROM_LOAD16_WORD_SWAP( "daughter.bin",   0x00000, 0x20000, CRC(36135792) SHA1(1b9c50bd02df8227b228b35cc485efd5a13ec639) )
738   ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player
739   ROM_LOAD16_WORD_SWAP( "u2.va1a101",   0x00000, 0x20000, CRC(36135792) SHA1(1b9c50bd02df8227b228b35cc485efd5a13ec639) )
703740
704741   ROM_REGION( 0x20000, "audiocpu", 0 ) // z80
705742   ROM_LOAD( "11.ic51",   0x00000, 0x20000, CRC(0b920806) SHA1(95f50ebfb296ba29aaa8079a41f5362cb9e879cc) )
r11050r11051
713750   DISK_IMAGE( "csplayh5", 0, SHA1(ce4883ce1351ce5299e41bfbd9a5ae8078b82b8c) )
714751ROM_END
715752
753ROM_START( bikiniko )
754   ROM_REGION( 0x40000, "maincpu", 0 ) // tmp68301 prg
755   ROM_LOAD16_BYTE( "2.ic3",   0x00000, 0x20000, CRC(b80b5484) SHA1(35769d9502cbe587dad6380c35e535cea1578227) )
756   ROM_LOAD16_BYTE( "1.ic2",   0x00001, 0x20000, CRC(13a885af) SHA1(ba8221fab1a37f1937e4399eabe3eaa9093884d3) )
757
758   ROM_REGION( 0x20000, "subcpu", 0 ) // h8, dvd player
759   ROM_LOAD16_WORD_SWAP( "u2.va1b101",   0x00000, 0x20000, CRC(b92a83c8) SHA1(bd6d9adaa74cf7512478838d1bd5a79dbd0c4aa1) )
760
761   ROM_REGION( 0x20000, "audiocpu", 0 ) // z80
762   ROM_LOAD( "11.ic51",   0x00000, 0x20000, CRC(4a2142d6) SHA1(3a762f7b7cccdb6715b5f59524b04b12694fc130) )
763
764   ROM_REGION( 0x400000, "blit_gfx", ROMREGION_ERASEFF ) // blitter based gfxs
765   ROM_LOAD16_BYTE( "3.ic40",   0x00000, 0x80000, CRC(12914d3b) SHA1(de0cdb47ee5cbf8bd19ab19b1b8d8afe103dcedf) )
766   ROM_LOAD16_BYTE( "4.ic41",   0x00001, 0x80000, CRC(1e2e1cf3) SHA1(f71b5dedf4f897644d519e412651152d0d81edb8) )
767   // 0x100000 - 0x3fffff empty sockets
768
769   DISK_REGION( "dvd" )
770   DISK_IMAGE( "bikiniko", 0, NO_DUMP )
771ROM_END
772
773
716774// 1998
717775// 01 : Mahjong Gal-pri (World Gal-con Grandprix) : Nichibutsu/Just&Just
718776// 02 : Sengoku Mahjong Kurenai Otome-tai : Nichibutsu/Just&Just
719// 03 : Jyunai - Manatsu no First Kiss : Nichibutsu/eic
777/* 03 */ GAME( 1998, jyunai,    0,   csplayh5,  csplayh5,  jyunai,   ROT0, "Nichibutsu/eic", "Jyunai - Manatsu no First Kiss (Japan)", GAME_NOT_WORKING )
720778/* 04 */ GAME( 1998, csplayh5,  0,   csplayh5,  csplayh5,  csplayh5, ROT0, "Nichibutsu", "Mahjong Hanafuda Cosplay Tengoku 5 (Japan)", GAME_NOT_WORKING )
721779// 05 : Jyunai2 - White Love Story : Nichibutsu/eic
722780// 06 : Mahjong Mogitate : Nichibutsu/Just&Just/NVS/Astro System/AV Japan
723781
782
724783// 1999
725784// 07 : Mahjong Maina - Kairakukan he Youkoso : Sphinx/Just&Just
726785// 08 : Renai Mahjong Idol Gakuen : Nichibutsu/eic
727// 09 : BiKiNikko - Okinawa de Ippai Shityaimashita : Nichibutsu/eic
786/* 09 */ GAME( 1999, bikiniko,  0,   csplayh5,  csplayh5,  bikiniko, ROT0, "Nichibutsu/eic", "BiKiNikko - Okinawa de Ippai Shityaimashita (Japan)", GAME_NOT_WORKING )
728787// 10 : Mahjong Hanafuda Cospure Tengoko 6 - Jyunai hen : Nichibutsu/eic
729788// 11 : The Nanpa : Nichibutsu/Love Factory/eic
730789// 12 : PokoaPoka Onsen de CHU - Bijin 3 Simai ni kiwotukete : Nichibutsu/eic
src/mame/drivers/deco32.c
r11050r11051
719719{
720720   deco32_state *state = space->machine().driver_data<deco32_state>();
721721   memcpy(state->m_spriteram16_buffered, state->m_spriteram16, 0x1000);
722}   
722}
723723
724724static READ32_HANDLER( deco32_spriteram2_r )
725725{
r11050r11051
739739{
740740   deco32_state *state = space->machine().driver_data<deco32_state>();
741741   memcpy(state->m_spriteram16_2_buffered, state->m_spriteram16_2, 0x1000);
742}   
742}
743743
744744
745745// tattass tests these as 32-bit ram, even if only 16-bits are hooked up to the tilemap chip - does it mirror parts of the dword?
r11050r11051
757757   AM_RANGE(0x108000, 0x108003) AM_WRITENOP /* ? */
758758   AM_RANGE(0x110000, 0x111fff) AM_READWRITE(deco32_spriteram_r, deco32_spriteram_w)
759759   AM_RANGE(0x120000, 0x127fff) AM_RAM AM_BASE_MEMBER(deco32_state, m_ram) /* Main RAM */
760   
760
761761   AM_RANGE(0x128000, 0x128fff) AM_READ(captaven_prot_r)
762762   AM_RANGE(0x1280c8, 0x1280cb) AM_WRITE(deco32_sound_w)
763763   AM_RANGE(0x130000, 0x131fff) AM_RAM_WRITE(deco32_nonbuffered_palette_w) AM_BASE_GENERIC(paletteram) /* Palette RAM */
r11050r11051
783783
784784
785785static ADDRESS_MAP_START( fghthist_map, AS_PROGRAM, 32 )
786//   AM_RANGE(0x000000, 0x001fff) AM_ROM AM_WRITE(deco32_pf1_data_w) // wtf??
786//  AM_RANGE(0x000000, 0x001fff) AM_ROM AM_WRITE(deco32_pf1_data_w) // wtf??
787787   AM_RANGE(0x000000, 0x0fffff) AM_ROM
788788   AM_RANGE(0x100000, 0x11ffff) AM_RAM AM_BASE_MEMBER(deco32_state, m_ram)
789789   AM_RANGE(0x120020, 0x12002f) AM_READ(fghthist_control_r)
r11050r11051
21742174   MCFG_SCREEN_FORMAT(BITMAP_FORMAT_RGB32)
21752175   MCFG_SCREEN_SIZE(42*8, 32*8)
21762176   MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 1*8, 31*8-1)
2177   
2177
21782178   MCFG_SCREEN_UPDATE(nslasher)
21792179
21802180   MCFG_DECO16IC_ADD("tilegen1", tattass_deco16ic_tilegen1_intf)
r11050r11051
21852185
21862186   MCFG_DEVICE_ADD("spritegen2", decospr_, 0)
21872187   decospr_device_config::set_gfx_region(device, 4);
2188   
21892188
2189
21902190   MCFG_GFXDECODE(tattass)
21912191   MCFG_PALETTE_LENGTH(2048)
21922192
src/mame/drivers/karnov.c
r11050r11051
2323    There is another Karnov rom set - a bootleg version of the Japanese roms with
2424    the Data East copyright removed - not supported because the original Japanese
2525    roms work fine.
26   ^^ This should be added (DH, 30/03/11)
26    ^^ This should be added (DH, 30/03/11)
2727
2828    One of the two color PROMs for chelnov and chelnoj is different; one is most
2929    likely a bad read, but I don't know which one.
src/mame/drivers/darkseal.c
r11050r11051
6666   AM_RANGE(0x140000, 0x140fff) AM_RAM_WRITE(darkseal_palette_24bit_rg_w) AM_BASE_GENERIC(paletteram)
6767   AM_RANGE(0x141000, 0x141fff) AM_RAM_WRITE(darkseal_palette_24bit_b_w) AM_BASE_GENERIC(paletteram2)
6868   AM_RANGE(0x180000, 0x18000f) AM_READWRITE(darkseal_control_r, darkseal_control_w)
69   
69
7070   AM_RANGE(0x200000, 0x201fff) AM_DEVREADWRITE("tilegen2", deco16ic_pf1_data_r, deco16ic_pf1_data_w)
7171   AM_RANGE(0x202000, 0x203fff) AM_DEVREADWRITE("tilegen2", deco16ic_pf2_data_r, deco16ic_pf2_data_w)
7272   AM_RANGE(0x240000, 0x24000f) AM_DEVWRITE("tilegen2", deco16ic_pf_control_w)
r11050r11051
7474   AM_RANGE(0x220000, 0x220fff) AM_RAM AM_BASE_MEMBER(darkseal_state, m_pf1_rowscroll)
7575   // pf2 & 4 rowscrolls are where? (maybe don't exist?)
7676   AM_RANGE(0x222000, 0x222fff) AM_RAM AM_BASE_MEMBER(darkseal_state, m_pf3_rowscroll)
77     
77
7878   AM_RANGE(0x260000, 0x261fff) AM_DEVREADWRITE("tilegen1", deco16ic_pf1_data_r, deco16ic_pf1_data_w)
7979   AM_RANGE(0x262000, 0x263fff) AM_DEVREADWRITE("tilegen1", deco16ic_pf2_data_r, deco16ic_pf2_data_w)
8080   AM_RANGE(0x2a0000, 0x2a000f) AM_DEVWRITE("tilegen1", deco16ic_pf_control_w)
src/mame/drivers/stadhero.c
r11050r11051
44
55    Emulation by Bryan McPhail, mish@tendril.co.uk
66
7   Are the colours correct on the scoreboard screen? they look strange
7    Are the colours correct on the scoreboard screen? they look strange
88
99***************************************************************************/
1010
src/mame/drivers/cosmic.c
r11050r11051
5656   {
5757      switch (offset)
5858      {
59      case 0:   if (data) sample_start(state->m_samples, 0, 0, 0); break;    /* Walk */
60      case 1:   if (data) sample_start(state->m_samples, 0, 5, 0); break;    /* Enemy Die 1 */
59      case 0:   if (data) sample_start(state->m_samples, 0, 0, 0); break;   /* Walk */
60      case 1:   if (data) sample_start(state->m_samples, 0, 5, 0); break;   /* Enemy Die 1 */
6161      case 2:   if (data)                           /* Drop 1 */
6262            {
6363               if (!sample_playing(state->m_samples, 1))
src/mame/drivers/cps2.c
r11050r11051
823823   AM_RANGE(0x662020, 0x662021) AM_RAM                                                         /* Network adapter related, accessed in SSF2TB */
824824   AM_RANGE(0x660000, 0x663fff) AM_RAM                                                         /* When bit 14 of 0x804030 equals 0 this space is available. Many games store highscores and other info here if available. */
825825   AM_RANGE(0x664000, 0x664001) AM_RAM                                                         /* Unknown - Only used if 0x660000-0x663fff available (could be RAM enable?) */
826   AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE_MEMBER(cps_state, m_objram1)                         /* Object RAM, no game seems to use it directly */
826   AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE_MEMBER(cps_state, m_objram1)                       /* Object RAM, no game seems to use it directly */
827827   AM_RANGE(0x708000, 0x709fff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2)         /* Object RAM */
828828   AM_RANGE(0x70a000, 0x70bfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2)         /* mirror */
829829   AM_RANGE(0x70c000, 0x70dfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2)         /* mirror */
830830   AM_RANGE(0x70e000, 0x70ffff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2)         /* mirror */
831831   AM_RANGE(0x800100, 0x80013f) AM_WRITE(cps1_cps_a_w) AM_BASE_MEMBER(cps_state, m_cps_a_regs)                        /* mirror (sfa) */
832   AM_RANGE(0x800140, 0x80017f) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) AM_BASE_MEMBER(cps_state, m_cps_b_regs)          /* mirror (sfa) */
832   AM_RANGE(0x800140, 0x80017f) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) AM_BASE_MEMBER(cps_state, m_cps_b_regs)         /* mirror (sfa) */
833833   AM_RANGE(0x804000, 0x804001) AM_READ_PORT("IN0")                                                 /* IN0 */
834834   AM_RANGE(0x804010, 0x804011) AM_READ_PORT("IN1")                                                 /* IN1 */
835835   AM_RANGE(0x804020, 0x804021) AM_READ_PORT("IN2")                                                 /* IN2 + EEPROM */
r11050r11051
854854   AM_RANGE(0x662020, 0x662021) AM_RAM                                                         /* Network adapter related, accessed in SSF2TB */
855855   AM_RANGE(0x660000, 0x663fff) AM_RAM                                                         /* When bit 14 of 0x804030 equals 0 this space is available. Many games store highscores and other info here if available. */
856856   AM_RANGE(0x664000, 0x664001) AM_RAM                                                         /* Unknown - Only used if 0x660000-0x663fff available (could be RAM enable?) */
857   AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE_MEMBER(cps_state, m_objram1)                         /* Object RAM, no game seems to use it directly */
857   AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE_MEMBER(cps_state, m_objram1)                       /* Object RAM, no game seems to use it directly */
858858   AM_RANGE(0x708000, 0x709fff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2)         /* Object RAM */
859859   AM_RANGE(0x70a000, 0x70bfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2)         /* mirror */
860860   AM_RANGE(0x70c000, 0x70dfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2)         /* mirror */
861861   AM_RANGE(0x70e000, 0x70ffff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE_MEMBER(cps_state, m_objram2)         /* mirror */
862862   AM_RANGE(0x800100, 0x80013f) AM_WRITE(cps1_cps_a_w) AM_BASE_MEMBER(cps_state, m_cps_a_regs)                        /* mirror (sfa) */
863   AM_RANGE(0x800140, 0x80017f) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) AM_BASE_MEMBER(cps_state, m_cps_b_regs)          /* mirror (sfa) */
863   AM_RANGE(0x800140, 0x80017f) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) AM_BASE_MEMBER(cps_state, m_cps_b_regs)         /* mirror (sfa) */
864864   AM_RANGE(0x804000, 0x804001) AM_READ_PORT("IN0")                                                 /* IN0 */
865865   AM_RANGE(0x804010, 0x804011) AM_READ_PORT("IN1")                                                 /* IN1 */
866866   AM_RANGE(0x804020, 0x804021) AM_READ_PORT("IN2")                                                 /* IN2 + EEPROM */
src/mame/drivers/suprgolf.c
r11050r11051
257257
258258   //popmessage("%08x %02x",((data & 0x3f) * 0x4000),data);
259259
260//   mame_printf_debug("ROM_BANK 0x8000 - %X @%X\n",data,cpu_get_previouspc(&space->device()));
260//  mame_printf_debug("ROM_BANK 0x8000 - %X @%X\n",data,cpu_get_previouspc(&space->device()));
261261   memory_set_bankptr(space->machine(), "bank2", region_base + (data&0x3f ) * 0x4000);
262262
263263   state->m_msm_nmi_mask = data & 0x40;
r11050r11051
267267static WRITE8_HANDLER( rom2_bank_select_w )
268268{
269269   UINT8 *region_base = space->machine().region("user2")->base();
270//   mame_printf_debug("ROM_BANK 0x4000 - %X @%X\n",data,cpu_get_previouspc(&space->device()));
270//  mame_printf_debug("ROM_BANK 0x4000 - %X @%X\n",data,cpu_get_previouspc(&space->device()));
271271
272272   memory_set_bankptr(space->machine(), "bank1", region_base + (data&0x0f ) * 0x4000);
273273
src/mame/drivers/dogfgt.c
r11050r11051
290290
291291ROM_START( dogfgt )
292292   ROM_REGION( 0x10000, "maincpu", 0 )
293   ROM_LOAD( "bx00.52",        0x8000, 0x2000, CRC(e602a21c) SHA1(12c659608d04ffc35ea9c1c0e1e82a8aab9f24bb) )
294   ROM_LOAD( "bx01.37",        0xa000, 0x2000, CRC(4921c4fb) SHA1(995b9ac123110c5c6d34d90f706ed72afdeaa231) )
295   ROM_LOAD( "bx02-5.bin",     0xc000, 0x2000, CRC(d11b50c3) SHA1(99dbbc85e8ff66eadc48a9f65f800676b10e35e4) )
296   ROM_LOAD( "bx03-5.bin",     0xe000, 0x2000, CRC(0e4813fb) SHA1(afcbd17029bc3c2de83c15cc941fe8f2ad062a5d) )
293   ROM_LOAD( "bx00.52",     0x8000, 0x2000, CRC(e602a21c) SHA1(12c659608d04ffc35ea9c1c0e1e82a8aab9f24bb) )
294   ROM_LOAD( "bx01.37",     0xa000, 0x2000, CRC(4921c4fb) SHA1(995b9ac123110c5c6d34d90f706ed72afdeaa231) )
295   ROM_LOAD( "bx02-5.36",   0xc000, 0x2000, CRC(d11b50c3) SHA1(99dbbc85e8ff66eadc48a9f65f800676b10e35e4) )
296   ROM_LOAD( "bx03-5.22",   0xe000, 0x2000, CRC(0e4813fb) SHA1(afcbd17029bc3c2de83c15cc941fe8f2ad062a5d) )
297297
298298   ROM_REGION( 0x10000, "sub", 0 )   /* 64k for audio code */
299299   ROM_LOAD( "bx04.117",    0x8000, 0x2000, CRC(f8945f9d) SHA1(a0782a5007dc5efc302c4fd61827e1b68475e7ab) )
r11050r11051
322322   ROM_LOAD( "bx21.64",     0x0020, 0x0020, CRC(5de4319f) SHA1(f70e116b80627d3eccc27c1964b08a0c8cdfff44) )
323323ROM_END
324324
325ROM_START( dogfgtu )
326   ROM_REGION( 0x10000, "maincpu", 0 )
327   ROM_LOAD( "bx00.52",     0x8000, 0x2000, CRC(e602a21c) SHA1(12c659608d04ffc35ea9c1c0e1e82a8aab9f24bb) )
328   ROM_LOAD( "bx01-6.37",   0xa000, 0x2000, CRC(8bb66399) SHA1(3f7b7b6b5c5363c35d19b797ae9016bab63e3b96) )
329   ROM_LOAD( "bx02-7.36",   0xc000, 0x2000, CRC(afaf10e6) SHA1(67b1e0722ae0e8110acc44bc582b308e86743d60) )
330   ROM_LOAD( "bx03-6.33",   0xe000, 0x2000, CRC(51b20e8b) SHA1(0247345b3f9736e9140faf765cb33f97660f0ddd) )
331
332   ROM_REGION( 0x10000, "sub", 0 )   /* 64k for audio code */
333   ROM_LOAD( "bx04-7.117",  0x8000, 0x2000, CRC(c4c2183b) SHA1(27cf40d6f03b078c5cc4497f393309bf33dea9dc) )
334   ROM_LOAD( "bx05-7.118",  0xa000, 0x2000, CRC(d9a705ab) SHA1(7a49769d6c32e3d9840e4b24e3cbcd84a075d36d) )
335   ROM_LOAD( "bx06.119",    0xc000, 0x2000, CRC(4a3b34cf) SHA1(f2e0bf9923a288b8137840f46fd90a23010f8018) )
336   ROM_LOAD( "bx07-7.120",  0xe000, 0x2000, CRC(868df3dd) SHA1(482a461bce5555ac02b5ffa7723ee671139a2d54) )
337
338   ROM_REGION( 0x06000, "gfx1", 0 )
339   ROM_LOAD( "bx17.56",     0x0000, 0x2000, CRC(fd3245d7) SHA1(4cbe887e0988382a38b7376c41ec1406fa66d18d) )
340   ROM_LOAD( "bx18.57",     0x2000, 0x2000, CRC(03a5ef06) SHA1(44931222c722dec91516577d732478d01734efb3) )
341   ROM_LOAD( "bx19.58",     0x4000, 0x2000, CRC(f62a16f4) SHA1(e7f2891aba1cf708d765229b76e36ee9c91596ea) )
342
343   ROM_REGION( 0x12000, "gfx2", 0 )
344   ROM_LOAD( "bx08.128",    0x00000, 0x2000, CRC(8bf41b27) SHA1(346da090ba216c182530df40bd8d0af96c7a705b) )
345   ROM_LOAD( "bx09.127",    0x02000, 0x2000, CRC(c3ea6509) SHA1(4ebe36f1cc59f44808d2975fe3d30ee089535bbc) )
346   ROM_LOAD( "bx10.126",    0x04000, 0x2000, CRC(474a1c64) SHA1(14b2967d23903175e8e0b9340fcd11f7ce9d15dd) )
347   ROM_LOAD( "bx11.125",    0x06000, 0x2000, CRC(ba67e382) SHA1(7f553b9121014d111ac9347132cae3a9f4702b16) )
348   ROM_LOAD( "bx12.124",    0x08000, 0x2000, CRC(102c0e1c) SHA1(08b665131c799605711226c4907ec596c7962f70) )
349   ROM_LOAD( "bx13.123",    0x0a000, 0x2000, CRC(ca47de34) SHA1(208fb15e5e6606bdcd26cfeb407979d0ada8154d) )
350   ROM_LOAD( "bx14.122",    0x0c000, 0x2000, CRC(51b95bb4) SHA1(ed368eba64ccb035b13a0ba8bde8956b73c989c1) )
351   ROM_LOAD( "bx15.121",    0x0e000, 0x2000, CRC(cf45d025) SHA1(e6974138ce8a796c77d220b2ab0d931cbd8e7280) )
352   ROM_LOAD( "bx16.120",    0x10000, 0x2000, CRC(d1933837) SHA1(7fcb1cc66235f70db47b1e174eaca41fa8fcbb41) )
353
354   ROM_REGION( 0x0040, "proms", 0 )
355   ROM_LOAD( "bx20.52",     0x0000, 0x0020, CRC(4e475f05) SHA1(3e077c7d2471c29dccdfbba9934024739a8d0586) )
356   ROM_LOAD( "bx21.64",     0x0020, 0x0020, CRC(5de4319f) SHA1(f70e116b80627d3eccc27c1964b08a0c8cdfff44) )
357ROM_END
358
325359ROM_START( dogfgtj )
326360   ROM_REGION( 0x10000, "maincpu", 0 )
327361   ROM_LOAD( "bx00.52",     0x8000, 0x2000, CRC(e602a21c) SHA1(12c659608d04ffc35ea9c1c0e1e82a8aab9f24bb) )
r11050r11051
358392
359393
360394
361GAME( 1984, dogfgt,  0,      dogfgt, dogfgt, 0, ROT0, "Technos Japan", "Acrobatic Dog-Fight", GAME_SUPPORTS_SAVE )
362GAME( 1984, dogfgtj, dogfgt, dogfgt, dogfgt, 0, ROT0, "Technos Japan", "Dog-Fight (Japan)", GAME_SUPPORTS_SAVE )
395GAME( 1984, dogfgt,  0,      dogfgt, dogfgt, 0, ROT0, "Technos Japan",       "Acrobatic Dog-Fight", GAME_SUPPORTS_SAVE )
396GAME( 1985, dogfgtu, dogfgt, dogfgt, dogfgt, 0, ROT0, "Data East USA, Inc.", "Acrobatic Dog-Fight (USA)", GAME_SUPPORTS_SAVE )
397GAME( 1984, dogfgtj, dogfgt, dogfgt, dogfgt, 0, ROT0, "Technos Japan",       "Dog-Fight (Japan)", GAME_SUPPORTS_SAVE )
src/mame/drivers/tumbleb.c
r11050r11051
970970   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
971971
972972   PORT_START("DSW")
973   PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) )
973   PORT_DIPNAME( 0x00e0, 0x00e0, DEF_STR( Coin_A ) )   PORT_DIPLOCATION("SW1:1,2,3")
974974   PORT_DIPSETTING(      0x0000, DEF_STR( 3C_1C ) )
975975   PORT_DIPSETTING(      0x0080, DEF_STR( 2C_1C ) )
976976   PORT_DIPSETTING(      0x00e0, DEF_STR( 1C_1C ) )
r11050r11051
979979   PORT_DIPSETTING(      0x0020, DEF_STR( 1C_4C ) )
980980   PORT_DIPSETTING(      0x00c0, DEF_STR( 1C_5C ) )
981981   PORT_DIPSETTING(      0x0040, DEF_STR( 1C_6C ) )
982   PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) )
982   PORT_DIPNAME( 0x001c, 0x001c, DEF_STR( Coin_B ) )   PORT_DIPLOCATION("SW1:4,5,6")
983983   PORT_DIPSETTING(      0x0000, DEF_STR( 3C_1C ) )
984984   PORT_DIPSETTING(      0x0010, DEF_STR( 2C_1C ) )
985985   PORT_DIPSETTING(      0x001c, DEF_STR( 1C_1C ) )
r11050r11051
988988   PORT_DIPSETTING(      0x0004, DEF_STR( 1C_4C ) )
989989   PORT_DIPSETTING(      0x0018, DEF_STR( 1C_5C ) )
990990   PORT_DIPSETTING(      0x0008, DEF_STR( 1C_6C ) )
991   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) )
991   PORT_DIPNAME( 0x0002, 0x0002, DEF_STR( Flip_Screen ) )   PORT_DIPLOCATION("SW1:7")
992992   PORT_DIPSETTING(      0x0002, DEF_STR( Off ) )
993993   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
994   PORT_DIPNAME( 0x0001, 0x0001, "2 Coins to Start, 1 to Continue" )
994   PORT_DIPNAME( 0x0001, 0x0001, "2 Coins to Start, 1 to Continue" )   PORT_DIPLOCATION("SW1:8")
995995   PORT_DIPSETTING(      0x0001, DEF_STR( Off ) )
996996   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
997997
998   PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) )
998   PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Lives ) )   PORT_DIPLOCATION("SW2:1,2")
999999   PORT_DIPSETTING(      0x8000, "1" )
10001000   PORT_DIPSETTING(      0x0000, "2" )
10011001   PORT_DIPSETTING(      0xc000, "3" )
10021002   PORT_DIPSETTING(      0x4000, "4" )
1003   PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) )
1003   PORT_DIPNAME( 0x3000, 0x3000, DEF_STR( Difficulty ) )   PORT_DIPLOCATION("SW2:3,4")
10041004   PORT_DIPSETTING(      0x1000, DEF_STR( Easy ) )
10051005   PORT_DIPSETTING(      0x3000, DEF_STR( Normal ) )
10061006   PORT_DIPSETTING(      0x2000, DEF_STR( Hard ) )
10071007   PORT_DIPSETTING(      0x0000, DEF_STR( Hardest ) )
10081008#if TUMBLEP_HACK
1009   PORT_DIPNAME( 0x0800, 0x0800, "Remove Monsters" )
1009   PORT_DIPNAME( 0x0800, 0x0800, "Remove Monsters" )   PORT_DIPLOCATION("SW2:5")
10101010#else
1011   PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unused ) )      // See notes
1011   PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Unused ) )   PORT_DIPLOCATION("SW2:5")      // See notes
10121012#endif
10131013   PORT_DIPSETTING(      0x0800, DEF_STR( Off ) )
10141014   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
10151015#if TUMBLEP_HACK
1016   PORT_DIPNAME( 0x0400, 0x0400, "Edit Levels" )
1016   PORT_DIPNAME( 0x0400, 0x0400, "Edit Levels" )      PORT_DIPLOCATION("SW2:6")
10171017#else
1018   PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) )      // See notes
1018   PORT_DIPNAME( 0x0400, 0x0400, DEF_STR( Unused ) )   PORT_DIPLOCATION("SW2:6")      // See notes
10191019#endif
10201020   PORT_DIPSETTING(      0x0400, DEF_STR( Off ) )
10211021   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
1022   PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Allow_Continue ) )
1022   PORT_DIPNAME( 0x0200, 0x0200, DEF_STR( Allow_Continue ) )   PORT_DIPLOCATION("SW2:7")
10231023   PORT_DIPSETTING(      0x0000, DEF_STR( No ) )
10241024   PORT_DIPSETTING(      0x0200, DEF_STR( Yes ) )
1025   PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) )
1025   PORT_DIPNAME( 0x0100, 0x0000, DEF_STR( Demo_Sounds ) )   PORT_DIPLOCATION("SW2:8")
10261026   PORT_DIPSETTING(      0x0100, DEF_STR( Off ) )
10271027   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
10281028INPUT_PORTS_END
r11050r11051
13891389   PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
13901390
13911391   PORT_START("DSW")
1392   PORT_DIPNAME( 0x0001, 0x0001, "Winning Rounds" )            PORT_DIPLOCATION("SW1:8")
1392   PORT_DIPNAME( 0x0001, 0x0001, "Winning Rounds" )   PORT_DIPLOCATION("SW1:8")
13931393   PORT_DIPSETTING(      0x0000, "2" )
13941394   PORT_DIPSETTING(      0x0001, "3" )
1395   PORT_DIPNAME( 0x0006, 0x0006, DEF_STR( Unknown ) )          PORT_DIPLOCATION("SW1:7,6")
1396   PORT_DIPSETTING(      0x0006, "0" )
1397   PORT_DIPSETTING(      0x0002, "1" )
1398   PORT_DIPSETTING(      0x0004, "2" )
1399   PORT_DIPSETTING(      0x0000, "3" )
1400   PORT_DIPNAME( 0x0018, 0x0018, DEF_STR( Unknown ) )          PORT_DIPLOCATION("SW1:5,4")
1401   PORT_DIPSETTING(      0x0018, "0" )
1402   PORT_DIPSETTING(      0x0008, "1" )
1403   PORT_DIPSETTING(      0x0010, "2" )
1404   PORT_DIPSETTING(      0x0000, "3" )
1405   PORT_DIPNAME( 0x0020, 0x0020, "Time" )                      PORT_DIPLOCATION("SW1:3")
1395   PORT_DIPNAME( 0x0006, 0x0006, "Ball Speed" )      PORT_DIPLOCATION("SW1:7,6")
1396   PORT_DIPSETTING(      0x0000, "Slow" )
1397   PORT_DIPSETTING(      0x0006, DEF_STR( Normal ) )
1398   PORT_DIPSETTING(      0x0002, "Fast" )
1399   PORT_DIPSETTING(      0x0004, "Very Fast" )
1400   PORT_DIPNAME( 0x0018, 0x0018, "Energy Decrease" )   PORT_DIPLOCATION("SW1:5,4")
1401   PORT_DIPSETTING(      0x0000, "Very Small" )
1402   PORT_DIPSETTING(      0x0010, "Small" )
1403   PORT_DIPSETTING(      0x0018, DEF_STR( Normal ) )
1404   PORT_DIPSETTING(      0x0008, "Big" )
1405   PORT_DIPNAME( 0x0020, 0x0020, DEF_STR( Game_Time ) )   PORT_DIPLOCATION("SW1:3")
14061406   PORT_DIPSETTING(      0x0020, "60 Seconds" )
14071407   PORT_DIPSETTING(      0x0000, "90 Seconds" )
1408   PORT_DIPNAME( 0x00c0, 0x00c0, "Starting Balls" )            PORT_DIPLOCATION("SW1:1,2")
1408   PORT_DIPNAME( 0x00c0, 0x00c0, "Starting Balls" )   PORT_DIPLOCATION("SW1:2,1")
14091409   PORT_DIPSETTING(      0x0000, "3" )
14101410   PORT_DIPSETTING(      0x00c0, "4" )
14111411   PORT_DIPSETTING(      0x0040, "5" )
14121412   PORT_DIPSETTING(      0x0080, "6" )
14131413
14141414   PORT_SERVICE_DIPLOC( 0x0100, IP_ACTIVE_LOW, "SW2:8" )
1415   PORT_DIPNAME( 0x0600, 0x0600, DEF_STR( Difficulty ) )       PORT_DIPLOCATION("SW2:7,6")
1415   PORT_DIPNAME( 0x0600, 0x0600, DEF_STR( Difficulty ) )   PORT_DIPLOCATION("SW2:7,6")
14161416   PORT_DIPSETTING(      0x0000, DEF_STR( Easy ) )
14171417   PORT_DIPSETTING(      0x0600, DEF_STR( Normal ) )
14181418   PORT_DIPSETTING(      0x0200, DEF_STR( Hard ) )
14191419   PORT_DIPSETTING(      0x0400, DEF_STR( Very_Hard ) )
1420   PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coinage ) )          PORT_DIPLOCATION("SW2:5,4,3")
1420   PORT_DIPNAME( 0x3800, 0x3800, DEF_STR( Coinage ) )   PORT_DIPLOCATION("SW2:5,4,3")
14211421   PORT_DIPSETTING(      0x0000, DEF_STR( 5C_1C ) )
14221422   PORT_DIPSETTING(      0x2000, DEF_STR( 4C_1C ) )
14231423   PORT_DIPSETTING(      0x1000, DEF_STR( 3C_1C ) )
r11050r11051
14261426   PORT_DIPSETTING(      0x2800, DEF_STR( 2C_3C ) )
14271427   PORT_DIPSETTING(      0x1800, DEF_STR( 1C_2C ) )
14281428   PORT_DIPSETTING(      0x0800, DEF_STR( 1C_3C ) )
1429   PORT_DIPNAME( 0x4000, 0x4000, DEF_STR( Unknown ) )          PORT_DIPLOCATION("SW2:2")
1430   PORT_DIPSETTING(      0x4000, DEF_STR( Off ) )
1431   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
1432   PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) )      PORT_DIPLOCATION("SW2:1")
1429   PORT_DIPNAME( 0x4000, 0x0000, DEF_STR( Language ) )   PORT_DIPLOCATION("SW2:2")
1430   PORT_DIPSETTING(      0x4000, "Korean" )
1431   PORT_DIPSETTING(      0x0000, DEF_STR( English ) )
1432   PORT_DIPNAME( 0x8000, 0x0000, DEF_STR( Demo_Sounds ) )   PORT_DIPLOCATION("SW2:1")
14331433   PORT_DIPSETTING(      0x8000, DEF_STR( Off ) )
14341434   PORT_DIPSETTING(      0x0000, DEF_STR( On ) )
14351435INPUT_PORTS_END
src/mame/drivers/boogwing.c
r11050r11051
328328static const deco16ic_interface boogwing_deco16ic_tilegen2_intf =
329329{
330330   "screen",
331   0, 1,
331   0, 1,
332332   0x0f, 0x0f,
333333   0, 16,
334334   0x0f, 0x0f,
src/mame/drivers/backfire.c
r11050r11051
7272
7373   state->m_left =  auto_bitmap_alloc(machine, 80*8, 32*8, BITMAP_FORMAT_INDEXED16);
7474   state->m_right = auto_bitmap_alloc(machine, 80*8, 32*8, BITMAP_FORMAT_INDEXED16);
75   
75
7676   state->save_pointer(NAME(state->m_spriteram_1), 0x2000/2);
7777   state->save_pointer(NAME(state->m_spriteram_2), 0x2000/2);
7878
src/mame/drivers/madmotor.c
r11050r11051
3838
3939/******************************************************************************/
4040
41   
41
4242static ADDRESS_MAP_START( madmotor_map, AS_PROGRAM, 16 )
4343   AM_RANGE(0x000000, 0x07ffff) AM_ROM
4444   AM_RANGE(0x180000, 0x180007) AM_DEVWRITE("tilegen1", deco_bac06_pf_control_0_w)                     /* text layer */
4545   AM_RANGE(0x180010, 0x180017) AM_DEVWRITE("tilegen1", deco_bac06_pf_control_1_w)
4646   AM_RANGE(0x184000, 0x18407f) AM_DEVREADWRITE("tilegen1", deco_bac06_pf_colscroll_r, deco_bac06_pf_colscroll_w)
47   AM_RANGE(0x184080, 0x1843ff) AM_RAM
47   AM_RANGE(0x184080, 0x1843ff) AM_RAM
4848   AM_RANGE(0x184400, 0x1847ff) AM_DEVREADWRITE("tilegen1", deco_bac06_pf_rowscroll_r, deco_bac06_pf_rowscroll_w)
4949   AM_RANGE(0x188000, 0x189fff) AM_DEVREADWRITE("tilegen1", deco_bac06_pf_data_r, deco_bac06_pf_data_w)
5050   AM_RANGE(0x18c000, 0x18c001) AM_NOP
src/mame/drivers/simpl156.c
r11050r11051
251251static ADDRESS_MAP_START( joemacr_map, AS_PROGRAM, 32 )
252252   AM_RANGE(0x000000, 0x07ffff) AM_ROM
253253   AM_RANGE(0x100000, 0x107fff) AM_READWRITE(simpl156_mainram_r, simpl156_mainram_w) AM_BASE_MEMBER(simpl156_state, m_mainram) // main ram
254   AM_RANGE(0x110000, 0x111fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w)
254   AM_RANGE(0x110000, 0x111fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w)
255255   AM_RANGE(0x120000, 0x120fff) AM_READWRITE(simpl156_palette_r, simpl156_palette_w)
256256   AM_RANGE(0x130000, 0x130003) AM_READWRITE(simpl156_system_r, simpl156_eeprom_w)
257257   AM_RANGE(0x140000, 0x14001f) AM_DEVREADWRITE("tilegen1", deco16ic_pf_control_dword_r, deco16ic_pf_control_dword_w)
r11050r11051
275275   AM_RANGE(0x201000, 0x201fff) AM_RAM AM_BASE_MEMBER(simpl156_state, m_systemram) // work ram (32-bit)
276276   AM_RANGE(0x3c0000, 0x3c0003) AM_DEVREADWRITE8_MODERN("okimusic", okim6295_device, read, write, 0x000000ff)
277277   AM_RANGE(0x400000, 0x407fff) AM_READWRITE(simpl156_mainram_r, simpl156_mainram_w) AM_BASE_MEMBER(simpl156_state, m_mainram) // main ram?
278   AM_RANGE(0x410000, 0x411fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w)
278   AM_RANGE(0x410000, 0x411fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w)
279279   AM_RANGE(0x420000, 0x420fff) AM_READWRITE(simpl156_palette_r,simpl156_palette_w)
280280   AM_RANGE(0x430000, 0x430003) AM_READWRITE(simpl156_system_r,simpl156_eeprom_w)
281281   AM_RANGE(0x440000, 0x44001f) AM_DEVREADWRITE("tilegen1", deco16ic_pf_control_dword_r, deco16ic_pf_control_dword_w)
r11050r11051
296296   AM_RANGE(0x201000, 0x201fff) AM_RAM AM_BASE_MEMBER(simpl156_state, m_systemram) // work ram (32-bit)
297297   AM_RANGE(0x340000, 0x340003) AM_DEVREADWRITE8_MODERN("okimusic", okim6295_device, read, write, 0x000000ff)
298298   AM_RANGE(0x380000, 0x387fff) AM_READWRITE(simpl156_mainram_r, simpl156_mainram_w) AM_BASE_MEMBER(simpl156_state, m_mainram) // main ram?
299   AM_RANGE(0x390000, 0x391fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w)
299   AM_RANGE(0x390000, 0x391fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w)
300300   AM_RANGE(0x3a0000, 0x3a0fff) AM_READWRITE(simpl156_palette_r,simpl156_palette_w)
301301   AM_RANGE(0x3b0000, 0x3b0003) AM_READWRITE(simpl156_system_r,simpl156_eeprom_w)
302302   AM_RANGE(0x3c0000, 0x3c001f) AM_DEVREADWRITE("tilegen1", deco16ic_pf_control_dword_r, deco16ic_pf_control_dword_w)
r11050r11051
317317   AM_RANGE(0x201000, 0x201fff) AM_RAM AM_BASE_MEMBER(simpl156_state, m_systemram) // work ram (32-bit)
318318   AM_RANGE(0x4c0000, 0x4c0003) AM_DEVREADWRITE8_MODERN("okimusic", okim6295_device, read, write, 0x000000ff)
319319   AM_RANGE(0x680000, 0x687fff) AM_READWRITE(simpl156_mainram_r, simpl156_mainram_w) AM_BASE_MEMBER(simpl156_state, m_mainram) // main ram?
320   AM_RANGE(0x690000, 0x691fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w)
320   AM_RANGE(0x690000, 0x691fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w)
321321   AM_RANGE(0x6a0000, 0x6a0fff) AM_READWRITE(simpl156_palette_r,simpl156_palette_w)
322322   AM_RANGE(0x6b0000, 0x6b0003) AM_READWRITE(simpl156_system_r,simpl156_eeprom_w)
323323   AM_RANGE(0x6c0000, 0x6c001f) AM_DEVREADWRITE("tilegen1", deco16ic_pf_control_dword_r, deco16ic_pf_control_dword_w)
r11050r11051
337337   AM_RANGE(0x100000, 0x100003) AM_DEVREADWRITE8_MODERN("okisfx", okim6295_device, read, write, 0x000000ff)
338338   AM_RANGE(0x140000, 0x140003) AM_DEVREADWRITE8_MODERN("okimusic", okim6295_device, read, write, 0x000000ff)
339339   AM_RANGE(0x180000, 0x187fff) AM_READWRITE(simpl156_mainram_r, simpl156_mainram_w) AM_BASE_MEMBER(simpl156_state, m_mainram) // main ram
340   AM_RANGE(0x190000, 0x191fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w)
340   AM_RANGE(0x190000, 0x191fff) AM_READWRITE(simpl156_spriteram_r, simpl156_spriteram_w)
341341   AM_RANGE(0x1a0000, 0x1a0fff) AM_READWRITE(simpl156_palette_r,simpl156_palette_w)
342342   AM_RANGE(0x1b0000, 0x1b0003) AM_READWRITE(simpl156_system_r,simpl156_eeprom_w)
343343   AM_RANGE(0x1c0000, 0x1c001f) AM_DEVREADWRITE("tilegen1", deco16ic_pf_control_dword_r, deco16ic_pf_control_dword_w)
src/mame/drivers/lordgun.c
r11050r11051
428428
429429static INPUT_PORTS_START( lordgun )
430430   PORT_START("DIP")
431   PORT_DIPNAME( 0x01, 0x01, "Stage Select" )
431   PORT_DIPNAME( 0x01, 0x01, "Stage Select" )   PORT_DIPLOCATION("SW1:1")
432432   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
433433   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
434   PORT_DIPNAME( 0x02, 0x02, "Guns" )
435   PORT_DIPSETTING(    0x02, "IGS" )      // x table offset  = 0x25
436   PORT_DIPSETTING(    0x00, "Konami" )   // "" = 0x2c
437   PORT_DIPNAME( 0x04, 0x04, "Ranking Music" )
434   PORT_DIPNAME( 0x02, 0x02, "Guns" )      PORT_DIPLOCATION("SW1:2")
435   PORT_DIPSETTING(    0x02, "IGS" )     // x table offset  = 0x25
436   PORT_DIPSETTING(    0x00, "Konami" )  // "" = 0x2c
437   PORT_DIPNAME( 0x04, 0x04, "Ranking Music" )   PORT_DIPLOCATION("SW1:3")
438438   PORT_DIPSETTING(    0x04, "Exciting" )
439439   PORT_DIPSETTING(    0x00, "Tender" )
440   PORT_DIPNAME( 0x08, 0x08, "Coin Slots" )
440   PORT_DIPNAME( 0x08, 0x08, "Coin Slots" )   PORT_DIPLOCATION("SW1:4")
441441   PORT_DIPSETTING(    0x00, "1" )
442442   PORT_DIPSETTING(    0x08, "2" )
443443   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
r11050r11051
500500
501501static INPUT_PORTS_START( aliencha )
502502   PORT_START("DIP1")
503   PORT_DIPNAME( 0x01, 0x01, "Credits To Start" )
503   PORT_DIPNAME( 0x01, 0x01, "Credits To Start" )      PORT_DIPLOCATION("SW1:1")
504504   PORT_DIPSETTING(    0x01, "1" )
505505   PORT_DIPSETTING(    0x00, "2" )
506   PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Coin_A ) )
506   PORT_DIPNAME( 0x0e, 0x0e, DEF_STR( Coin_A ) )      PORT_DIPLOCATION("SW1:2,3,4")
507507   PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
508508   PORT_DIPSETTING(    0x02, DEF_STR( 4C_1C ) )
509509   PORT_DIPSETTING(    0x04, DEF_STR( 3C_1C ) )
r11050r11051
512512   PORT_DIPSETTING(    0x0c, DEF_STR( 1C_2C ) )
513513   PORT_DIPSETTING(    0x0a, DEF_STR( 1C_3C ) )
514514   PORT_DIPSETTING(    0x08, DEF_STR( 1C_4C ) )
515   PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coin_B ) )
515   PORT_DIPNAME( 0x70, 0x70, DEF_STR( Coin_B ) )      PORT_DIPLOCATION("SW1:5,6,7")
516516   PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) )
517517   PORT_DIPSETTING(    0x10, DEF_STR( 4C_1C ) )
518518   PORT_DIPSETTING(    0x20, DEF_STR( 3C_1C ) )
r11050r11051
521521   PORT_DIPSETTING(    0x60, DEF_STR( 1C_2C ) )
522522   PORT_DIPSETTING(    0x50, DEF_STR( 1C_3C ) )
523523   PORT_DIPSETTING(    0x40, DEF_STR( 1C_4C ) )
524   PORT_DIPNAME( 0x80, 0x80, "Coin Slots" )
524   PORT_DIPNAME( 0x80, 0x80, "Coin Slots" )      PORT_DIPLOCATION("SW1:8")
525525   PORT_DIPSETTING(    0x80, "1" )
526526   PORT_DIPSETTING(    0x00, "2" )
527527
528528   PORT_START("DIP2")
529   PORT_DIPNAME( 0x03, 0x03, DEF_STR( Difficulty ) )
530   PORT_DIPSETTING(    0x03, "0" )
531   PORT_DIPSETTING(    0x02, "1" )
532   PORT_DIPSETTING(    0x01, "2" )
533   PORT_DIPSETTING(    0x00, "3" )
534   PORT_SERVICE( 0x04, IP_ACTIVE_LOW )
535   PORT_DIPNAME( 0x08, 0x08, "Round Time" )
536   PORT_DIPSETTING(    0x00, "32 s" )   // 40 s (measured)
537   PORT_DIPSETTING(    0x08, "40 s" )   // 50 s (measured)
538   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) )
529   PORT_DIPNAME( 0x03, 0x02, DEF_STR( Difficulty ) )   PORT_DIPLOCATION("SW2:1,2")
530   PORT_DIPSETTING(    0x03, DEF_STR( Easy ) )
531   PORT_DIPSETTING(    0x02, DEF_STR( Normal ) )
532   PORT_DIPSETTING(    0x01, DEF_STR( Hard ) )
533   PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )
534   PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW2:3" )
535   PORT_DIPNAME( 0x08, 0x08, "Round Time" )      PORT_DIPLOCATION("SW2:4")
536   PORT_DIPSETTING(    0x00, "32 s" )  // 40 s (measured) AKA "Short"
537   PORT_DIPSETTING(    0x08, "40 s" )  // 50 s (measured) AKA "Normal"
538   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Demo_Sounds ) )   PORT_DIPLOCATION("SW2:5")
539539   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
540540   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
541   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Free_Play ) )
541   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Free_Play ) )   PORT_DIPLOCATION("SW2:6")
542542   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
543543   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
544   PORT_DIPNAME( 0x40, 0x40, "Allow Join" )
544   PORT_DIPNAME( 0x40, 0x40, "Allow Join" )      PORT_DIPLOCATION("SW2:7")
545545   PORT_DIPSETTING(    0x00, DEF_STR( No ) )
546546   PORT_DIPSETTING(    0x40, DEF_STR( Yes ) )
547   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) )
547   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Allow_Continue ) )   PORT_DIPLOCATION("SW2:8")
548548   PORT_DIPSETTING(    0x00, DEF_STR( No ) )
549549   PORT_DIPSETTING(    0x80, DEF_STR( Yes ) )
550550
551551   PORT_START("DIP3")
552   PORT_DIPNAME( 0x03, 0x03, "Buttons" )
552   PORT_DIPNAME( 0x03, 0x03, "Buttons" )         PORT_DIPLOCATION("SW3:1,2")
553553   PORT_DIPSETTING(    0x01, "3" )
554554   PORT_DIPSETTING(    0x02, "4" )
555555   PORT_DIPSETTING(    0x03, "6" )
556556//  PORT_DIPSETTING(    0x00, "6" )
557   PORT_DIPNAME( 0x04, 0x04, "Vs. Rounds" )
557   PORT_DIPNAME( 0x04, 0x04, "Vs. Rounds" )      PORT_DIPLOCATION("SW3:3")
558558   PORT_DIPSETTING(    0x00, "3" )
559559   PORT_DIPSETTING(    0x04, "5" )
560   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
561   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
562   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
563   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
564   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
565   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
566   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
567   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
568   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
569   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
570   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
571   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
572   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
573   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
574   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
560   PORT_DIPUNUSED_DIPLOC( 0x0008, 0x0008, "SW3:4" ) /* Listed as "Unused" */
561   PORT_DIPUNUSED_DIPLOC( 0x0010, 0x0010, "SW3:5" ) /* Listed as "Unused" */
562   PORT_DIPUNUSED_DIPLOC( 0x0020, 0x0020, "SW3:6" ) /* Listed as "Unused" */
563   PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW3:7" ) /* Listed as "Unused" */
564   PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW3:8" ) /* Listed as "Unused" */
575565
576566   PORT_START("SERVICE")
577567   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_READ_LINE_DEVICE("eeprom", eeprom_read_bit)
src/mame/drivers/esd16.c
r11050r11051
181181   AM_RANGE(0x600800, 0x600807) AM_WRITE(esd16_spriteram_w)                                    // Sprites (Mirrored)
182182   AM_RANGE(0x700000, 0x700003) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_scroll_0)                           // Scroll
183183   AM_RANGE(0x700004, 0x700007) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_scroll_1)                           //
184   AM_RANGE(0x700008, 0x700009) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_headpanic_platform_x)                      // not used in mchampdx?
185   AM_RANGE(0x70000a, 0x70000b) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_headpanic_platform_y)                      // not used in mchampdx?
184   AM_RANGE(0x700008, 0x700009) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_headpanic_platform_x)                     // not used in mchampdx?
185   AM_RANGE(0x70000a, 0x70000b) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_headpanic_platform_y)                     // not used in mchampdx?
186186   AM_RANGE(0x70000c, 0x70000d) AM_WRITENOP                                                // ??
187187   AM_RANGE(0x70000e, 0x70000f) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_head_layersize)                        // ??
188188   AM_RANGE(0xd00008, 0xd00009) AM_WRITE(hedpanic_platform_w)                                    // not used in mchampdx?
r11050r11051
200200   AM_RANGE(0x324000, 0x327fff) AM_WRITE(esd16_vram_1_w) AM_BASE_MEMBER(esd16_state, m_vram_1)                     // mirror?
201201   AM_RANGE(0x400000, 0x400003) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_scroll_0)                           // Scroll
202202   AM_RANGE(0x400004, 0x400007) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_scroll_1)                           //
203   AM_RANGE(0x400008, 0x400009) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_headpanic_platform_x)                      // not used in mchampdx?
204   AM_RANGE(0x40000a, 0x40000b) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_headpanic_platform_y)                      // not used in mchampdx?
203   AM_RANGE(0x400008, 0x400009) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_headpanic_platform_x)                     // not used in mchampdx?
204   AM_RANGE(0x40000a, 0x40000b) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_headpanic_platform_y)                     // not used in mchampdx?
205205   AM_RANGE(0x40000c, 0x40000d) AM_WRITENOP                                                // ??
206206   AM_RANGE(0x40000e, 0x40000f) AM_WRITEONLY AM_BASE_MEMBER(esd16_state, m_head_layersize)                           // ??
207207   AM_RANGE(0x500000, 0x500001) AM_WRITENOP   // IRQ Ack
src/mame/drivers/funkyjet.c
r11050r11051
293293   0x0f, 0x0f,   /* trans masks (default values) */
294294   0, 16, /* color base (default values) */
295295   0x0f, 0x0f, /* color masks (default values) */
296   NULL, NULL,
296   NULL, NULL,
297297   0,1,
298298};
299299
src/mame/drivers/ssv.c
r11050r11051
417417   AM_RANGE(0x160000, 0x17ffff) AM_RAM                                                /*          */   \
418418   AM_RANGE(0x1c0000, 0x1c0001) AM_READ(ssv_vblank_r         )                           /*  Vblank? */   \
419419/**/AM_RANGE(0x1c0002, 0x1c007f) AM_READONLY                           /*  Scroll  */   \
420   AM_RANGE(0x1c0000, 0x1c007f) AM_WRITE(ssv_scroll_w) AM_BASE_MEMBER(ssv_state, m_scroll)                     /*  Scroll  */  \
420   AM_RANGE(0x1c0000, 0x1c007f) AM_WRITE(ssv_scroll_w) AM_BASE_MEMBER(ssv_state, m_scroll)                   /*  Scroll  */  \
421421   AM_RANGE(0x210002, 0x210003) AM_READ_PORT("DSW1")                                                \
422422   AM_RANGE(0x210004, 0x210005) AM_READ_PORT("DSW2")                                                \
423423   AM_RANGE(0x210008, 0x210009) AM_READ_PORT("P1")                                                   \
src/mame/drivers/deco_ld.c
r11050r11051
164164{
165165   deco_ld_state *state = space->machine().driver_data<deco_ld_state>();
166166   UINT8 result = laserdisc_data_r(state->m_laserdisc);
167//   mame_printf_debug("laserdisc_r = %02X\n", result);
167//  mame_printf_debug("laserdisc_r = %02X\n", result);
168168   return result;
169169}
170170
src/mame/drivers/mirage.c
r11050r11051
7979
8080   flip_screen_set(screen->machine(), BIT(flip, 7));
8181
82   screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, screen->machine().generic.buffered_spriteram.u16, 0x400);
82   screen->machine().device<decospr_device>("spritegen")->draw_sprites(screen->machine(), bitmap, cliprect, screen->machine().generic.buffered_spriteram.u16, 0x400);
8383
8484   deco16ic_pf_update(state->m_deco_tilegen1, state->m_pf1_rowscroll, state->m_pf2_rowscroll);
8585
src/mame/drivers/dietgo.c
r11050r11051
234234
235235   MCFG_DEVICE_ADD("spritegen", decospr_, 0)
236236   decospr_device_config::set_gfx_region(device, 2);
237   
237
238238   /* sound hardware */
239239   MCFG_SPEAKER_STANDARD_MONO("mono")
240240
src/mame/drivers/pktgaldx.c
r11050r11051
349349   MCFG_DECOCOMN_ADD("deco_common", pktgaldx_decocomn_intf)
350350
351351   MCFG_DECO16IC_ADD("tilegen1", pktgaldx_deco16ic_tilegen1_intf)
352   
352
353353   MCFG_DEVICE_ADD("spritegen", decospr_, 0)
354354   decospr_device_config::set_gfx_region(device, 2);
355355
src/mame/drivers/konamim2.c
r11050r11051
353353   {
354354      if (data & 0x800000)
355355      {
356//         mame_printf_debug("CPU '%s': CPU1 IRQ at %08X\n", space->device().tag(), cpu_get_pc(&space->device()));
356//          mame_printf_debug("CPU '%s': CPU1 IRQ at %08X\n", space->device().tag(), cpu_get_pc(&space->device()));
357357         cputag_set_input_line(space->machine(), "sub", INPUT_LINE_IRQ0, ASSERT_LINE);
358358      }
359359
r11050r11051
433433{
434434   if ((data & 0xff) == 0xd)
435435   {
436//      mame_printf_debug("\n");
436//      mame_printf_debug("\n");
437437   }
438438   else
439439   {
440//      mame_printf_debug("%c", (UINT8)(data & 0xff));
440//      mame_printf_debug("%c", (UINT8)(data & 0xff));
441441   }
442442}
443443
r11050r11051
525525         state->m_cde_status_bytes[0] = 0x04;
526526         state->m_cde_status_byte_ptr = 0;
527527
528//         mame_printf_debug("CDE: SET SPEED %02X, %02X\n", state->m_cde_command_bytes[1], state->m_cde_command_bytes[2]);
528//          mame_printf_debug("CDE: SET SPEED %02X, %02X\n", state->m_cde_command_bytes[1], state->m_cde_command_bytes[2]);
529529         break;
530530      }
531531      case 0x06:      // Audio Format / Data Format
r11050r11051
537537
538538         if (state->m_cde_command_bytes[1] == 0x00)      // Audio Format
539539         {
540//            mame_printf_debug("CDE: AUDIO FORMAT\n");
540//              mame_printf_debug("CDE: AUDIO FORMAT\n");
541541         }
542542         else if (state->m_cde_command_bytes[1] == 0x78)   // Data Format
543543         {
544//            mame_printf_debug("CDE: DATA FORMAT\n");
544//              mame_printf_debug("CDE: DATA FORMAT\n");
545545         }
546546         else
547547         {
r11050r11051
558558
559559         if (state->m_cde_command_bytes[1] == 0x00)      // Eject
560560         {
561//            mame_printf_debug("CDE: EJECT command\n");
561//              mame_printf_debug("CDE: EJECT command\n");
562562         }
563563         else if (state->m_cde_command_bytes[1] == 0x02)   // Pause
564564         {
565//            mame_printf_debug("CDE: PAUSE command\n");
565//              mame_printf_debug("CDE: PAUSE command\n");
566566            state->m_cde_drive_state = CDE_DRIVE_STATE_PAUSED;
567567         }
568568         else if (state->m_cde_command_bytes[1] == 0x03)   // Play
569569         {
570//            mame_printf_debug("CDE: PLAY command\n");
570//              mame_printf_debug("CDE: PLAY command\n");
571571         }
572572         else
573573         {
r11050r11051
584584
585585         state->m_cde_drive_state = CDE_DRIVE_STATE_SEEK_DONE;
586586
587//         mame_printf_debug("CDE: SEEK %08X\n", (state->m_cde_command_bytes[1] << 16) | (state->m_cde_command_bytes[2] << 8) | (state->m_cde_command_bytes[3]));
587//          mame_printf_debug("CDE: SEEK %08X\n", (state->m_cde_command_bytes[1] << 16) | (state->m_cde_command_bytes[2] << 8) | (state->m_cde_command_bytes[3]));
588588         break;
589589      }
590590      case 0x0b:      // Get Drive State
r11050r11051
605605            state->m_cde_enable_seek_reports = 0;
606606         }
607607
608//         mame_printf_debug("CDE: GET DRIVE STATE %02X\n", state->m_cde_command_bytes[1]);
608//          mame_printf_debug("CDE: GET DRIVE STATE %02X\n", state->m_cde_command_bytes[1]);
609609         break;
610610      }
611611      case 0x0c:      // ?
r11050r11051
625625            state->m_cde_enable_qchannel_reports = 0;
626626         }
627627
628//         mame_printf_debug("CDE: UNKNOWN CMD 0x0c %02X\n", state->m_cde_command_bytes[1]);
628//          mame_printf_debug("CDE: UNKNOWN CMD 0x0c %02X\n", state->m_cde_command_bytes[1]);
629629         break;
630630      }
631631      case 0x0d:      // Get Switch State
r11050r11051
637637         state->m_cde_status_bytes[2] = 0x02;
638638         state->m_cde_status_byte_ptr = 0;
639639
640//         mame_printf_debug("CDE: GET SWITCH STATE %02X\n", state->m_cde_command_bytes[1]);
640//          mame_printf_debug("CDE: GET SWITCH STATE %02X\n", state->m_cde_command_bytes[1]);
641641         break;
642642      }
643643      case 0x21:      // Mech type
r11050r11051
655655
656656         state->m_cde_status_byte_ptr = 0;
657657
658//         mame_printf_debug("CDE: MECH TYPE %02X, %02X, %02X\n", state->m_cde_command_bytes[1], state->m_cde_command_bytes[2], state->m_cde_command_bytes[3]);
658//          mame_printf_debug("CDE: MECH TYPE %02X, %02X, %02X\n", state->m_cde_command_bytes[1], state->m_cde_command_bytes[2], state->m_cde_command_bytes[3]);
659659         break;
660660      }
661661      case 0x83:      // Read ID
r11050r11051
677677
678678         state->m_cde_status_byte_ptr = 0;
679679
680//         mame_printf_debug("CDE: READ ID\n");
680//          mame_printf_debug("CDE: READ ID\n");
681681         break;
682682      }
683683      default:
r11050r11051
704704
705705            state->m_cde_command_bytes[0] = 0x0c;
706706
707//            mame_printf_debug("CDE: SEEK REPORT\n");
707//              mame_printf_debug("CDE: SEEK REPORT\n");
708708         }
709709         break;
710710      }
r11050r11051
800800            state->m_cde_status_byte_ptr = 0;
801801            state->m_cde_command_bytes[0] = 0x0c;
802802
803//            mame_printf_debug("CDE: QCHANNEL REPORT\n");
803//              mame_printf_debug("CDE: QCHANNEL REPORT\n");
804804            break;
805805         }
806806      }
r11050r11051
961961
962962      case 0x300/4:      // DMA Channel 0 enable
963963      {
964//         mame_printf_debug("CDE: DMA0 enable %08X\n", d);
964//          mame_printf_debug("CDE: DMA0 enable %08X\n", d);
965965
966966         if (d & 0x20)
967967         {
r11050r11051
979979      }
980980      case 0x308/4:      // DMA Channel 0 destination address
981981      {
982//         mame_printf_debug("CDE: DMA0 dst addr %08X\n", d);
982//          mame_printf_debug("CDE: DMA0 dst addr %08X\n", d);
983983
984984         state->m_cde_dma[0].dst_addr = d;
985985         break;
986986      }
987987      case 0x30c/4:      // DMA Channel 0 length?
988988      {
989//         mame_printf_debug("CDE: DMA0 length %08X\n", d);
989//          mame_printf_debug("CDE: DMA0 length %08X\n", d);
990990
991991         state->m_cde_dma[0].length = d;
992992         break;
993993      }
994994      case 0x318/4:      // DMA Channel 0 next destination address
995995      {
996//         mame_printf_debug("CDE: DMA0 next dst addr %08X\n", d);
996//          mame_printf_debug("CDE: DMA0 next dst addr %08X\n", d);
997997
998998         state->m_cde_dma[0].next_dst_addr = d;
999999         break;
10001000      }
10011001      case 0x31c/4:      // DMA Channel 0 next length?
10021002      {
1003//         mame_printf_debug("CDE: DMA0 next length %08X\n", d);
1003//          mame_printf_debug("CDE: DMA0 next length %08X\n", d);
10041004
10051005         state->m_cde_dma[0].next_length = d;
10061006         break;
r11050r11051
10081008
10091009      case 0x320/4:      // DMA Channel 1 enable
10101010      {
1011//         mame_printf_debug("CDE: DMA1 enable %08X\n", d);
1011//          mame_printf_debug("CDE: DMA1 enable %08X\n", d);
10121012         break;
10131013      }
10141014      case 0x328/4:      // DMA Channel 1 destination address
10151015      {
1016//         mame_printf_debug("CDE: DMA1 dst addr %08X\n", d);
1016//          mame_printf_debug("CDE: DMA1 dst addr %08X\n", d);
10171017
10181018         state->m_cde_dma[1].dst_addr = d;
10191019         break;
10201020      }
10211021      case 0x32c/4:      // DMA Channel 1 length?
10221022      {
1023//         mame_printf_debug("CDE: DMA1 length %08X\n", d);
1023//          mame_printf_debug("CDE: DMA1 length %08X\n", d);
10241024
10251025         state->m_cde_dma[1].length = d;
10261026         break;
10271027      }
10281028      case 0x338/4:      // DMA Channel 1 next destination address
10291029      {
1030//         mame_printf_debug("CDE: DMA1 next dst addr %08X\n", d);
1030//          mame_printf_debug("CDE: DMA1 next dst addr %08X\n", d);
10311031
10321032         state->m_cde_dma[1].next_dst_addr = d;
10331033         break;
10341034      }
10351035      case 0x33c/4:      // DMA Channel 1 next length?
10361036      {
1037//         mame_printf_debug("CDE: DMA1 next length %08X\n", d);
1037//          mame_printf_debug("CDE: DMA1 next length %08X\n", d);
10381038
10391039         state->m_cde_dma[1].next_length = d;
10401040         break;
src/osd/sdl/input.c
r11050r11051
10821082      snprintf(defname, sizeof(defname)-1, "%s", key_trans_table[keynum].ui_name);
10831083
10841084      // add the item to the device
1085//      printf("Keynum %d => sdl key %d\n", keynum, OSD_SDL_INDEX(key_trans_table[keynum].sdl_key));
1085//      printf("Keynum %d => sdl key %d\n", keynum, OSD_SDL_INDEX(key_trans_table[keynum].sdl_key));
10861086      input_device_item_add(devinfo->device, defname, &devinfo->keyboard.state[OSD_SDL_INDEX(key_trans_table[keynum].sdl_key)], itemid, generic_button_get_state);
10871087   }
10881088
src/osd/windows/winmain.c
r11050r11051
175175
176176   struct cache_entry
177177   {
178      cache_entry(FPTR address, const char *symbol) :
178      cache_entry(FPTR address, const char *symbol) :
179179         m_next(NULL), m_address(address), m_name(symbol) { }
180180      cache_entry *next() const { return m_next; }
181     
181
182182      cache_entry *   m_next;
183183      FPTR         m_address;
184184      astring         m_name;
src/emu/debug/debugcpu.c
r11050r11051
12121212            break;
12131213         result = expression_read_memory_region(machine, name, address, size);
12141214         break;
1215     
1215
12161216      default:
12171217         break;
12181218   }
r11050r11051
13831383            break;
13841384         expression_write_memory_region(machine, name, address, size, data);
13851385         break;
1386     
1386
13871387      default:
13881388         break;
13891389   }
src/emu/cpu/m68000/m68kcpu.c
r11050r11051
10161016      case CPUINFO_INT_MAX_CYCLES:               info->i = 158;                     break;
10171017
10181018      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 16;                     break;
1019      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 24;                     break;
1020      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:       info->i = 0;                     break;
1019      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 24;                     break;
1020      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:      info->i = 0;                     break;
10211021
10221022      case CPUINFO_INT_INPUT_STATE + 0:            info->i = 0;  /* there is no level 0 */   break;
10231023      case CPUINFO_INT_INPUT_STATE + 1:            info->i = (m68k->virq_state >> 1) & 1;   break;
r11050r11051
16671667   {
16681668      /* --- the following bits of info are returned as 64-bit signed integers --- */
16691669      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 8;                     break;
1670      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 22;                     break;
1670      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 22;                     break;
16711671
16721672      /* --- the following bits of info are returned as pointers to data or functions --- */
16731673      case CPUINFO_FCT_INIT:         info->init = CPU_INIT_NAME(m68008);                  break;
r11050r11051
17731773      case CPUINFO_INT_MAX_CYCLES:               info->i = 158;                     break;
17741774
17751775      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 32;                     break;
1776      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 32;                     break;
1776      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 32;                     break;
17771777
17781778      /* --- the following bits of info are returned as pointers to data or functions --- */
17791779      case CPUINFO_FCT_INIT:         info->init = CPU_INIT_NAME(m68020);                  break;
r11050r11051
18861886   switch (state)
18871887   {
18881888      /* --- the following bits of info are returned as 64-bit signed integers --- */
1889      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 24;                     break;
1889      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 24;                     break;
18901890
18911891      /* --- the following bits of info are returned as pointers to data or functions --- */
18921892      case CPUINFO_FCT_INIT:         info->init = CPU_INIT_NAME(m68ec020);               break;
r11050r11051
19431943      case CPUINFO_INT_MAX_CYCLES:               info->i = 158;                     break;
19441944
19451945      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 32;                     break;
1946      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 32;                     break;
1946      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 32;                     break;
19471947
19481948      /* --- the following bits of info are returned as pointers to data or functions --- */
19491949      case CPUINFO_FCT_INIT:         info->init = CPU_INIT_NAME(m68030);                  break;
r11050r11051
20502050      case CPUINFO_INT_MAX_CYCLES:               info->i = 158;                     break;
20512051
20522052      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 32;                     break;
2053      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 32;                     break;
2053      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 32;                     break;
20542054
20552055      /* --- the following bits of info are returned as pointers to data or functions --- */
20562056      case CPUINFO_FCT_INIT:         info->init = CPU_INIT_NAME(m68040);                  break;
r11050r11051
21782178   switch (state)
21792179   {
21802180      /* --- the following bits of info are returned as 64-bit signed integers --- */
2181      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 32;                     break;
2181      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 32;                     break;
21822182
21832183      /* --- the following bits of info are returned as pointers to data or functions --- */
21842184      case CPUINFO_FCT_INIT:                     info->init = CPU_INIT_NAME(scc68070);   break;
src/emu/cpu/tms34010/tms34010.c
r11050r11051
17371737      case CPUINFO_INT_MAX_CYCLES:               info->i = 10000;               break;
17381738
17391739      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 16;                  break;
1740      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 32;                  break;
1741      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:       info->i = 3;                  break;
1740      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 32;                  break;
1741      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:      info->i = 3;                  break;
17421742
17431743      case CPUINFO_INT_INPUT_STATE + 0:            info->i = (IOREG(tms, REG_INTPEND) & TMS34010_INT1) ? ASSERT_LINE : CLEAR_LINE; break;
17441744      case CPUINFO_INT_INPUT_STATE + 1:            info->i = (IOREG(tms, REG_INTPEND) & TMS34010_INT2) ? ASSERT_LINE : CLEAR_LINE; break;
src/emu/cpu/superfx/superfx.c
r11050r11051
15671567   case CPUINFO_INT_MIN_CYCLES:               info->i = 1;                                   break;
15681568   case CPUINFO_INT_MAX_CYCLES:               info->i = 1;                                   break;
15691569
1570   case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:    info->i = 8;                                  break;
1571   case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:    info->i = 32;                                 break;
1572   case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:    info->i = 0;                                  break;
1573   case DEVINFO_INT_DATABUS_WIDTH + AS_DATA:       info->i = 0;                                  break;
1574   case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:       info->i = 0;                                  break;
1575   case DEVINFO_INT_ADDRBUS_SHIFT + AS_DATA:       info->i = 0;                                  break;
1576   case DEVINFO_INT_DATABUS_WIDTH + AS_IO:         info->i = 0;                                  break;
1577   case DEVINFO_INT_ADDRBUS_WIDTH + AS_IO:         info->i = 0;                                  break;
1578   case DEVINFO_INT_ADDRBUS_SHIFT + AS_IO:         info->i = 0;                                  break;
1570   case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:   info->i = 8;                                  break;
1571   case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:   info->i = 32;                                 break;
1572   case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:   info->i = 0;                                  break;
1573   case DEVINFO_INT_DATABUS_WIDTH + AS_DATA:      info->i = 0;                                  break;
1574   case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:      info->i = 0;                                  break;
1575   case DEVINFO_INT_ADDRBUS_SHIFT + AS_DATA:      info->i = 0;                                  break;
1576   case DEVINFO_INT_DATABUS_WIDTH + AS_IO:        info->i = 0;                                  break;
1577   case DEVINFO_INT_ADDRBUS_WIDTH + AS_IO:        info->i = 0;                                  break;
1578   case DEVINFO_INT_ADDRBUS_SHIFT + AS_IO:        info->i = 0;                                  break;
15791579
15801580   case CPUINFO_INT_PC:    /* intentional fallthrough */
15811581   case CPUINFO_INT_REGISTER + SUPERFX_PC:       info->i = ((cpustate->pbr << 16) | cpustate->r[15]) - 1; break;
src/emu/cpu/mcs48/mcs48.c
r11050r11051
13761376      case CPUINFO_INT_MAX_CYCLES:               info->i = 3;                     break;
13771377
13781378      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 8;                     break;
1379      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 12;                     break;
1379      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 12;                     break;
13801380      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:         info->i = 0;                     break;
13811381      case DEVINFO_INT_DATABUS_WIDTH + AS_DATA:         info->i = 8;                     break;
13821382      case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:         /*info->i = 6 or 7 or 8;*/            break;
src/emu/cpu/z180/z180.c
r11050r11051
26922692      case CPUINFO_INT_MAX_CYCLES:               info->i = 16;                     break;
26932693
26942694      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 8;                     break;
2695      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 20;                     break;
2696      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:       info->i = 0;                     break;
2695      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 20;                     break;
2696      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:      info->i = 0;                     break;
26972697      case DEVINFO_INT_DATABUS_WIDTH + AS_IO:            info->i = 8;                     break;
26982698      case DEVINFO_INT_ADDRBUS_WIDTH + AS_IO:            info->i = 16;                     break;
26992699      case DEVINFO_INT_ADDRBUS_SHIFT + AS_IO:            info->i = 0;                     break;
src/emu/cpu/i860/i860.c
r11050r11051
193193      case CPUINFO_INT_MAX_CYCLES:               info->i = 8;                  break;
194194
195195      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 64;   break;
196      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 32;   break;
197      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:       info->i = 0;   break;
196      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 32;   break;
197      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:      info->i = 0;   break;
198198      case DEVINFO_INT_DATABUS_WIDTH + AS_DATA:         info->i = 0;   break;
199199      case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:         info->i = 0;   break;
200200      case DEVINFO_INT_ADDRBUS_SHIFT + AS_DATA:         info->i = 0;   break;
src/emu/cpu/mc68hc11/mc68hc11.c
r11050r11051
551551      case CPUINFO_INT_MAX_CYCLES:                  info->i = 41;               break;
552552
553553      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:            info->i = 8;               break;
554      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:          info->i = 16;               break;
555      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:          info->i = 0;               break;
554      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:         info->i = 16;               break;
555      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:         info->i = 0;               break;
556556      case DEVINFO_INT_DATABUS_WIDTH + AS_DATA:            info->i = 0;               break;
557557      case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:            info->i = 0;               break;
558558      case DEVINFO_INT_ADDRBUS_SHIFT + AS_DATA:            info->i = 0;               break;
src/emu/cpu/i4004/i4004.c
r11050r11051
586586      case CPUINFO_INT_MAX_CYCLES:               info->i = 16;                     break;
587587
588588      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 8;                     break;
589      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 12;                     break;
590      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:       info->i = 0;                     break;
589      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 12;                     break;
590      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:      info->i = 0;                     break;
591591
592592      case DEVINFO_INT_DATABUS_WIDTH + AS_DATA:         info->i = 8;                     break;
593593      case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:         info->i = 12;                     break;
src/emu/cpu/scmp/scmp.c
r11050r11051
616616      case CPUINFO_INT_MAX_CYCLES:               info->i = 131593;                  break; // DLY instruction max time
617617
618618      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 8;                     break;
619      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 16;                     break;
620      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:       info->i = 0;                     break;
619      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 16;                     break;
620      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:      info->i = 0;                     break;
621621
622622      case DEVINFO_INT_DATABUS_WIDTH + AS_DATA:         info->i = 0;                     break;
623623      case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:         info->i = 0;                     break;
src/emu/cpu/i8008/i8008.c
r11050r11051
689689      case CPUINFO_INT_MAX_CYCLES:               info->i = 16;                     break;
690690
691691      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 8;                     break;
692      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 14;                     break;
693      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:       info->i = 0;                     break;
692      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 14;                     break;
693      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:      info->i = 0;                     break;
694694
695695      case DEVINFO_INT_DATABUS_WIDTH + AS_DATA:         info->i = 0;                     break;
696696      case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:         info->i = 0;                     break;
src/emu/cpu/i8085/i8085.c
r11050r11051
12161216      case CPUINFO_INT_MAX_CYCLES:               info->i = 16;                     break;
12171217
12181218      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 8;                     break;
1219      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 16;                     break;
1220      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:       info->i = 0;                     break;
1219      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 16;                     break;
1220      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:      info->i = 0;                     break;
12211221      case DEVINFO_INT_DATABUS_WIDTH + AS_IO:            info->i = 8;                     break;
12221222      case DEVINFO_INT_ADDRBUS_WIDTH + AS_IO:            info->i = 8;                     break;
12231223      case DEVINFO_INT_ADDRBUS_SHIFT + AS_IO:            info->i = 0;                     break;
src/emu/cpu/sh4/sh4.c
r11050r11051
36583658      case CPUINFO_INT_MAX_CYCLES:               info->i = 4;                  break;
36593659
36603660      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:      info->i = 64;            break;
3661      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:    info->i = 32;            break;
3662      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:    info->i = 0;            break;
3661      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:   info->i = 32;            break;
3662      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:   info->i = 0;            break;
36633663      case DEVINFO_INT_DATABUS_WIDTH + AS_DATA:      info->i = 0;            break;
36643664      case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:      info->i = 0;            break;
36653665      case DEVINFO_INT_ADDRBUS_SHIFT + AS_DATA:      info->i = 0;            break;
src/emu/cpu/pps4/pps4.c
r11050r11051
412412      case CPUINFO_INT_MAX_CYCLES:               info->i = 2;                     break;
413413
414414      case DEVINFO_INT_DATABUS_WIDTH + AS_PROGRAM:         info->i = 8;                     break;
415      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:       info->i = 12;                     break;
416      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:       info->i = 0;                     break;
415      case DEVINFO_INT_ADDRBUS_WIDTH + AS_PROGRAM:      info->i = 12;                     break;
416      case DEVINFO_INT_ADDRBUS_SHIFT + AS_PROGRAM:      info->i = 0;                     break;
417417
418418      case DEVINFO_INT_DATABUS_WIDTH + AS_DATA:         info->i = 8;                     break; // 4 bit for RAM
419419      case DEVINFO_INT_ADDRBUS_WIDTH + AS_DATA:         info->i = 12;                     break;
src/emu/video/msm6255.c
r11050r11051
9393   if (intf != NULL)
9494   {
9595      *static_cast<msm6255_interface *>(this) = *intf;
96     
96
9797      m_char_ram_r = intf->m_char_ram_r;
9898   }
9999   // or initialize to defaults if none provided
r11050r11051
178178READ8_MEMBER( msm6255_device::read )
179179{
180180   UINT8 data = 0;
181   
181
182182   if (offset & 0x01)
183183   {
184184      return m_ir;
r11050r11051
222222         break;
223223      }
224224   }
225   
225
226226   return data;
227227}
228228
r11050r11051
282282
283283
284284//-------------------------------------------------
285//  update_cursor -
285//  update_cursor -
286286//-------------------------------------------------
287287
288288void msm6255_device::update_cursor()
r11050r11051
329329
330330
331331//-------------------------------------------------
332//  draw_scanline -
332//  draw_scanline -
333333//-------------------------------------------------
334334
335335void msm6255_device::draw_scanline(bitmap_t *bitmap, const rectangle *cliprect, int y, UINT16 ma, UINT8 ra)
r11050r11051
370370
371371
372372//-------------------------------------------------
373//  update_graphics -
373//  update_graphics -
374374//-------------------------------------------------
375375
376376void msm6255_device::update_graphics(bitmap_t *bitmap, const rectangle *cliprect)
r11050r11051
398398
399399
400400//-------------------------------------------------
401//  update_text -
401//  update_text -
402402//-------------------------------------------------
403403
404404void msm6255_device::update_text(bitmap_t *bitmap, const rectangle *cliprect)
src/emu/video/msm6255.h
r11050r11051
2828#define MSM6255_INTERFACE(name) \
2929   const msm6255_interface (name) =
3030
31   
31
3232#define MSM6255_CHAR_RAM_READ(_name) \
3333   UINT8 _name(device_t *device, UINT16 ma, UINT8 ra)
3434
35   
3635
36
3737///*************************************************************************
3838//  TYPE DEFINITIONS
3939///*************************************************************************
r11050r11051
105105   void draw_scanline(bitmap_t *bitmap, const rectangle *cliprect, int y, UINT16 ma, UINT8 ra);
106106   void update_graphics(bitmap_t *bitmap, const rectangle *cliprect);
107107   void update_text(bitmap_t *bitmap, const rectangle *cliprect);
108   
108
109109   screen_device *m_screen;
110   
110
111111   UINT8 m_ir;                  // instruction register
112112   UINT8 m_mor;               // mode control register
113113   UINT8 m_pr;                  // character pitch register
src/emu/machine.c
r11050r11051
159159     generic_machine_data(NULL),
160160     generic_video_data(NULL),
161161     generic_audio_data(NULL),
162   
162
163163     m_config(_config),
164164     m_system(_config.gamedrv()),
165165     m_osd(osd),
src/emu/machine.h
r11050r11051
348348   int sample_rate() const { return m_sample_rate; }
349349   bool save_or_load_pending() const { return m_saveload_pending_file; }
350350   screen_device *first_screen() const { return primary_screen; }
351   
351
352352   // additional helpers
353353   emu_options &options() const { return m_config.options(); }
354354   memory_region *first_region() const { return m_regionlist.first(); }
r11050r11051
442442
443443   // internal callbacks
444444   static void logfile_callback(running_machine &machine, const char *buffer);
445   
445
446446   // internal state
447447   const machine_config &   m_config;            // reference to the constructed machine_config
448448   const game_driver &      m_system;            // reference to the definition of the game machine
r11050r11051
501501
502502      // getters
503503      notifier_callback_item *next() const { return m_next; }
504     
504
505505      // state
506506      notifier_callback_item *   m_next;
507507      notify_callback            m_func;
r11050r11051
514514   public:
515515      // construction/destruction
516516      logerror_callback_item(logerror_callback func);
517     
517
518518      // getters
519519      logerror_callback_item *next() const { return m_next; }
520     
520
521521      // state
522522      logerror_callback_item *   m_next;
523523      logerror_callback         m_func;
src/emu/uiimage.c
r11050r11051
849849      {
850850         int buflen = strlen(menustate->filename_buffer);
851851         bool update_selected = FALSE;
852         
852
853853         /* if it's a backspace and we can handle it, do so */
854854         if ((event->unichar == 8 || event->unichar == 0x7f) && buflen > 0)
855855         {
r11050r11051
886886                     if (mame_strnicmp(entry->basename, menustate->filename_buffer, i) == 0)
887887                        match = i;
888888                  }
889                 
889
890890                  if (match > bestmatch)
891891                  {
892892                     bestmatch = match;
r11050r11051
905905                     if (mame_strnicmp(entry->basename, menustate->filename_buffer, i) == 0)
906906                        match = i;
907907                  }
908                 
908
909909                  if (match > bestmatch)
910910                  {
911911                     bestmatch = match;
r11050r11051
913913                  }
914914               }
915915            }
916               
916
917917            if (selected_entry != NULL && selected_entry != cur_selected)
918918               ui_menu_set_selection(menu, (void *) selected_entry);
919919         }
920      }     
920      }
921921   }
922922}
923923
src/emu/clifront.c
r11050r11051
185185         // if we failed, check for no command and a system name first; in that case error on the name
186186         if (strlen(options.command()) == 0 && options.system() == NULL && strlen(options.system_name()) > 0)
187187            throw emu_fatalerror(MAMERR_NO_SUCH_GAME, "Unknown system '%s'", options.system_name());
188         
188
189189         // otherwise, error on the options
190190         throw emu_fatalerror(MAMERR_INVALID_CONFIG, "%s", option_errors.trimspace().cstr());
191191      }
r11050r11051
846846            "\t\t\t\t<!ATTLIST info name CDATA #REQUIRED>\n"
847847            "\t\t\t\t<!ATTLIST info value CDATA #IMPLIED>\n"
848848            // shared features get stored in the part->feature below and are output there
849            // this means that we don't output any <sharedfeat> and that -lsoft output will
850            // be different from the list in hash/ when the list uses sharedfeat. But this
851            // is by design: sharedfeat is only available to simplify the life to list creators,
849            // this means that we don't output any <sharedfeat> and that -lsoft output will
850            // be different from the list in hash/ when the list uses sharedfeat. But this
851            // is by design: sharedfeat is only available to simplify the life to list creators,
852852            // to e.g. avoid manually adding the same feature to each disk of a 9 floppies game!
853853            "\t\t\t<!ELEMENT sharedfeat EMPTY>\n"
854854            "\t\t\t\t<!ATTLIST sharedfeat name CDATA #REQUIRED>\n"
src/emu/softlist.h
r11050r11051
4444   const char *year;         // Copyright year on title screen, actual release dates can be tracked in external resources
4545   const char *publisher;
4646   feature_list *other_info;   // Here we store info like developer, serial #, etc. which belong to the software entry as a whole
47   feature_list *shared_info;   // Here we store info like TV standard compatibility, or add-on requirements, etc. which get inherited
47   feature_list *shared_info;   // Here we store info like TV standard compatibility, or add-on requirements, etc. which get inherited
4848                        // by each part of this software entry (after loading these are stored in partdata->featurelist)
4949   UINT32 supported;
5050   software_part *partdata;
src/emu/memory.c
r11050r11051
24292429
24302430
24312431//-------------------------------------------------
2432//  install_readwrite_port - install a new I/O port
2432//  install_readwrite_port - install a new I/O port
24332433//  handler into this address space
24342434//-------------------------------------------------
24352435
r11050r11051
24712471
24722472
24732473//-------------------------------------------------
2474//  install_bank_generic - install a range as
2474//  install_bank_generic - install a range as
24752475//  mapping to a particular bank
24762476//-------------------------------------------------
24772477
r11050r11051
25022502
25032503
25042504//-------------------------------------------------
2505//  install_ram_generic - install a simple fixed
2505//  install_ram_generic - install a simple fixed
25062506//  RAM region into the given address space
25072507//-------------------------------------------------
25082508
src/emu/memory.h
r11050r11051
466466   void install_read_bank(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, const char *tag) { install_bank_generic(addrstart, addrend, addrmask, addrmirror, tag, NULL); }
467467   void install_write_bank(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, const char *tag) { install_bank_generic(addrstart, addrend, addrmask, addrmirror, NULL, tag); }
468468   void install_readwrite_bank(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, const char *tag)  { install_bank_generic(addrstart, addrend, addrmask, addrmirror, tag, tag); }
469   void *install_rom(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_READ, baseptr); }
470   void *install_writeonly(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_WRITE, baseptr); }
471   void *install_ram(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_READWRITE, baseptr); }
469   void *install_rom(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_READ, baseptr); }
470   void *install_writeonly(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_WRITE, baseptr); }
471   void *install_ram(offs_t addrstart, offs_t addrend, offs_t addrmask, offs_t addrmirror, void *baseptr = NULL) { return install_ram_generic(addrstart, addrend, addrmask, addrmirror, ROW_READWRITE, baseptr); }
472472
473473   // install new-style delegate handlers (short form)
474474   UINT8 *install_read_handler(offs_t addrstart, offs_t addrend, read8_delegate rhandler, UINT64 unitmask = 0) { return install_read_handler(addrstart, addrend, 0, 0, rhandler, unitmask); }
src/emu/machine/upd1990a.c
r11050r11051
8686//**************************************************************************
8787
8888//-------------------------------------------------
89//  convert_to_bcd -
89//  convert_to_bcd -
9090//-------------------------------------------------
9191
9292inline UINT8 upd1990a_device::convert_to_bcd(int val)
r11050r11051
9696
9797
9898//-------------------------------------------------
99//  bcd_to_integer -
99//  bcd_to_integer -
100100//-------------------------------------------------
101101
102102inline int upd1990a_device::bcd_to_integer(UINT8 val)
r11050r11051
106106
107107
108108//-------------------------------------------------
109//  advance_seconds -
109//  advance_seconds -
110110//-------------------------------------------------
111111
112112inline void upd1990a_device::advance_seconds()
r11050r11051
263263
264264
265265//-------------------------------------------------
266//  oe_w -
266//  oe_w -
267267//-------------------------------------------------
268268
269269WRITE_LINE_MEMBER( upd1990a_device::oe_w )
r11050r11051
275275
276276
277277//-------------------------------------------------
278//  cs_w -
278//  cs_w -
279279//-------------------------------------------------
280280
281281WRITE_LINE_MEMBER( upd1990a_device::cs_w )
r11050r11051
287287
288288
289289//-------------------------------------------------
290//  stb_w -
290//  stb_w -
291291//-------------------------------------------------
292292
293293WRITE_LINE_MEMBER( upd1990a_device::stb_w )
r11050r11051
425425
426426
427427//-------------------------------------------------
428//  clk_w -
428//  clk_w -
429429//-------------------------------------------------
430430
431431WRITE_LINE_MEMBER( upd1990a_device::clk_w )
r11050r11051
467467
468468
469469//-------------------------------------------------
470//  c0_w -
470//  c0_w -
471471//-------------------------------------------------
472472
473473WRITE_LINE_MEMBER( upd1990a_device::c0_w )
r11050r11051
479479
480480
481481//-------------------------------------------------
482//  c1_w -
482//  c1_w -
483483//-------------------------------------------------
484484
485485WRITE_LINE_MEMBER( upd1990a_device::c1_w )
r11050r11051
491491
492492
493493//-------------------------------------------------
494//  c2_w -
494//  c2_w -
495495//-------------------------------------------------
496496
497497WRITE_LINE_MEMBER( upd1990a_device::c2_w )
r11050r11051
503503
504504
505505//-------------------------------------------------
506//  data_in_w -
506//  data_in_w -
507507//-------------------------------------------------
508508
509509WRITE_LINE_MEMBER( upd1990a_device::data_in_w )
r11050r11051
515515
516516
517517//-------------------------------------------------
518//  data_out_r -
518//  data_out_r -
519519//-------------------------------------------------
520520
521521READ_LINE_MEMBER( upd1990a_device::data_out_r )
r11050r11051
525525
526526
527527//-------------------------------------------------
528//  tp_r -
528//  tp_r -
529529//-------------------------------------------------
530530
531531READ_LINE_MEMBER( upd1990a_device::tp_r )
src/emu/machine/z8536.c
r11050r11051
166166
167167// master interrupt control register
168168#define MICR_RESET      0x01   // reset
169#define MICR_RJA       0x02   // right justified address
169#define MICR_RJA      0x02   // right justified address
170170#define MICR_CT_VIS      0x04   // counter/timer vector includes status
171171#define MICR_PB_VIS      0x08   // port B vector includes status
172172#define MICR_PA_VIS      0x10   // port A vector includes status
173173#define MICR_NV       0x20   // no vector
174#define MICR_DLC       0x40   // disable lower chain
175#define MICR_MIE       0x80   // master interrupt enable
174#define MICR_DLC      0x40   // disable lower chain
175#define MICR_MIE      0x80   // master interrupt enable
176176
177177
178178// master configuration control register
r11050r11051
287287inline UINT8 z8536_device::read_register(offs_t offset)
288288{
289289   UINT8 data = 0;
290   
290
291291   data = m_register[offset]; // HACK
292292
293293   switch (offset)
r11050r11051
295295   case PORT_A_DATA:
296296      data = devcb_call_read8(&m_in_pa_func, 0);
297297      break;
298     
298
299299   case PORT_B_DATA:
300300      data = devcb_call_read8(&m_in_pb_func, 0);
301301      break;
302     
302
303303   case PORT_C_DATA:
304304      data = 0xf0 | (devcb_call_read8(&m_in_pc_func, 0) & 0x0f);
305305      break;
306     
306
307307   default:
308308      logerror("Z8536 '%s' Unimplemented read from register %u\n", tag(), offset);
309309   }
310   
310
311311   return data;
312312}
313313
r11050r11051
340340         m_state = STATE_0;
341341      }
342342      break;
343     
343
344344   case PORT_A_DATA:
345345      devcb_call_write8(&m_out_pa_func, 0, data);
346346      break;
347     
347
348348   case PORT_B_DATA:
349349      devcb_call_write8(&m_out_pb_func, 0, data);
350350      break;
351     
351
352352   case PORT_C_DATA:
353353      {
354354      UINT8 mask = (data & 0xf0) | (data >> 4);
355355
356356      m_output[PORT_C] = (m_output[PORT_C] & mask) | ((data & 0x0f) & (mask ^ 0xff));
357     
357
358358      devcb_call_write8(&m_out_pc_func, 0, m_output[PORT_C]);
359359      }
360360      break;
361     
361
362362   default:
363363      logerror("Z8536 '%s' Unimplemented write %02x to register %u\n", tag(), data, offset);
364364   }
365   
365
366366   m_register[offset] = data; // HACK
367367}
368368
r11050r11051
374374inline void z8536_device::write_register(offs_t offset, UINT8 data, UINT8 mask)
375375{
376376   UINT8 combined_data = (data & mask) | (m_register[offset] & (mask ^ 0xff));
377   
377
378378   write_register(offset, combined_data);
379379}
380380
381381
382382//-------------------------------------------------
383//   count -
383//   count -
384384//-------------------------------------------------
385385
386386inline void z8536_device::count(device_timer_id id)
r11050r11051
389389
390390
391391//-------------------------------------------------
392//  trigger -
392//  trigger -
393393//-------------------------------------------------
394394
395395inline void z8536_device::trigger(device_timer_id id)
r11050r11051
398398
399399
400400//-------------------------------------------------
401//  gate -
401//  gate -
402402//-------------------------------------------------
403403
404404inline void z8536_device::gate(device_timer_id id)
r11050r11051
432432   m_timer[TIMER_1] = timer_alloc(TIMER_1);
433433   m_timer[TIMER_2] = timer_alloc(TIMER_2);
434434   m_timer[TIMER_3] = timer_alloc(TIMER_3);
435     
435
436436   // resolve callbacks
437437   devcb_resolve_write_line(&m_out_int_func, &m_config.m_out_int_func, this);
438438   devcb_resolve_read8(&m_in_pa_func, &m_config.m_in_pa_func, this);
r11050r11051
451451void z8536_device::device_reset()
452452{
453453   m_state = STATE_RESET;
454   
454
455455   for (int i = 0; i < 48; i++)
456456   {
457457      m_register[i] = 0;
458458   }
459   
459
460460   m_register[MASTER_INTERRUPT_CONTROL] = MICR_RESET;
461461   m_pointer = 0;
462462}
r11050r11051
473473   case TIMER_1:
474474      count(TIMER_1);
475475      break;
476     
476
477477   case TIMER_2:
478478      count(TIMER_2);
479479      break;
480     
480
481481   case TIMER_3:
482482      count(TIMER_3);
483483      break;
r11050r11051
527527         break;
528528      }
529529   }
530   
530
531531   return data;
532532}
533533
src/emu/machine/z8536.h
r11050r11051
6868struct z8536_interface
6969{
7070   devcb_write_line      m_out_int_func;
71   
71
7272   devcb_read8            m_in_pa_func;
7373   devcb_write8         m_out_pa_func;
74   
74
7575   devcb_read8            m_in_pb_func;
7676   devcb_write8         m_out_pb_func;
77   
77
7878   devcb_read8            m_in_pc_func;
7979   devcb_write8         m_out_pc_func;
8080};
r11050r11051
144144   inline UINT8 read_register(offs_t offset, UINT8 mask);
145145   inline void write_register(offs_t offset, UINT8 data);
146146   inline void write_register(offs_t offset, UINT8 data, UINT8 mask);
147   
147
148148   inline void count(device_timer_id id);
149149   inline void trigger(device_timer_id id);
150150   inline void gate(device_timer_id id);
151   
151
152152   devcb_resolved_write_line      m_out_int_func;
153   
153
154154   devcb_resolved_read8         m_in_pa_func;
155155   devcb_resolved_write8         m_out_pa_func;
156   
156
157157   devcb_resolved_read8         m_in_pb_func;
158158   devcb_resolved_write8         m_out_pb_func;
159   
159
160160   devcb_resolved_read8         m_in_pc_func;
161161   devcb_resolved_write8         m_out_pc_func;
162162
src/emu/machine/nmc9306.c
r11050r11051
226226WRITE_LINE_MEMBER( nmc9306_device::sk_w )
227227{
228228   m_sk = state;
229   
229
230230   if (!m_cs || !m_sk) return;
231   
231
232232   switch (m_state)
233233   {
234234   case STATE_IDLE:
235235      if (LOG) logerror("NMC9306 '%s' Idle %u\n", tag(), m_di);
236     
236
237237      if (m_di)
238238      {
239239         // start bit received
r11050r11051
241241         m_bits = 0;
242242      }
243243      break;
244     
244
245245   case STATE_COMMAND:
246246      if (LOG) logerror("NMC9306 '%s' Command Bit %u\n", tag(), m_di);
247     
247
248248      m_command <<= 1;
249249      m_command |= m_di;
250250      m_bits++;
251     
251
252252      if (m_bits == 4)
253253      {
254254         m_state = STATE_ADDRESS;
255255         m_bits = 0;
256256      }
257257      break;
258     
258
259259   case STATE_ADDRESS:
260260      if (LOG) logerror("NMC9306 '%s' Address Bit %u\n", tag(), m_di);
261     
261
262262      m_address <<= 1;
263263      m_address |= m_di;
264264      m_bits++;
265     
265
266266      if (m_bits == 4)
267267      {
268268         switch ((m_command >> 2) & 0x03)
r11050r11051
275275               m_ewen = false;
276276               m_state = STATE_IDLE;
277277               break;
278               
278
279279            case WRAL:
280280               if (LOG) logerror("NMC9306 '%s' WRAL\n", tag());
281281               break;
282               
282
283283            case ERAL:
284284               if (LOG) logerror("NMC9306 '%s' ERAL\n", tag());
285285               break;
r11050r11051
296296            if (LOG) logerror("NMC9306 '%s' WRITE %u\n", tag(), m_address & 0x0f);
297297            m_state = STATE_DATA_IN;
298298            break;
299           
299
300300         case READ:
301301            if (LOG) logerror("NMC9306 '%s' READ %u\n", tag(), m_address & 0x0f);
302302            m_data = read(m_address & 0x0f);
303303            m_state = STATE_DATA_OUT;
304304            break;
305           
305
306306         case ERASE:
307307            if (LOG) logerror("NMC9306 '%s' ERASE %u\n", tag(), m_address & 0x0f);
308308            erase(m_address & 0x0f);
309309            m_state = STATE_ERASE;
310310            break;
311311         }
312         
312
313313         m_bits = 0;
314314      }
315315      break;
316     
316
317317   case STATE_DATA_IN:
318318      if (LOG) logerror("NMC9306 '%s' Data Bit IN %u\n", tag(), m_di);
319     
319
320320      m_data <<= 1;
321321      m_data |= m_di;
322322      m_bits++;
323     
323
324324      if (m_bits == 16)
325325      {
326326         write(m_address & 0x0f, m_data);
327         
327
328328         m_state = STATE_IDLE;
329329      }
330330      break;
331     
331
332332   case STATE_DATA_OUT:
333333      if (LOG) logerror("NMC9306 '%s' Data Bit OUT %u\n", tag(), m_di);
334     
334
335335      m_do = BIT(m_data, 15);
336336      m_data <<= 1;
337337      m_bits++;
338     
338
339339      if (m_bits == 16)
340340      {
341341         m_state = STATE_IDLE;
src/emu/machine/e0516.c
r11050r11051
8989   // allocate timers
9090   m_timer = timer_alloc();
9191   m_timer->adjust(attotime::from_hz(clock() / 32768), 0, attotime::from_hz(clock() / 32768));
92   
92
9393   // state saving
9494   save_item(NAME(m_cs));
9595   save_item(NAME(m_clk));
r11050r11051
165165WRITE_LINE_MEMBER( e0516_device::cs_w )
166166{
167167   m_cs = state;
168   
168
169169   if (m_cs)
170170   {
171171      m_data_latch = 0;
r11050r11051
183183WRITE_LINE_MEMBER( e0516_device::clk_w )
184184{
185185   m_clk = state;
186   
186
187187   if (m_cs || m_clk) return;
188188
189189   m_bits++;
r11050r11051
215215      {
216216         // read
217217         if (LOG) logerror("E05-16 '%s' Data Bit OUT %u\n", tag(), m_dio);
218         
218
219219         m_dio = BIT(m_data_latch, 0);
220220         m_data_latch >>= 1;
221221      }
src/emu/machine/nmc9306.h
r11050r11051
7474    nmc9306_device(running_machine &_machine, const nmc9306_device_config &_config);
7575
7676public:
77    DECLARE_WRITE_LINE_MEMBER( cs_w );
78    DECLARE_WRITE_LINE_MEMBER( sk_w );
79    DECLARE_WRITE_LINE_MEMBER( di_w );
80    DECLARE_READ_LINE_MEMBER( do_r );
77   DECLARE_WRITE_LINE_MEMBER( cs_w );
78   DECLARE_WRITE_LINE_MEMBER( sk_w );
79   DECLARE_WRITE_LINE_MEMBER( di_w );
80   DECLARE_READ_LINE_MEMBER( do_r );
8181
8282protected:
8383    // device-level overrides
r11050r11051
9494   inline void erase(offs_t offset);
9595
9696   UINT16 m_register[16];
97   
97
9898   int m_bits;
9999   int m_state;
100100   UINT8 m_command;
src/emu/machine/e0516.h
r11050r11051
7676    e0516_device(running_machine &_machine, const e0516_device_config &_config);
7777
7878public:
79    DECLARE_WRITE_LINE_MEMBER( cs_w );
80    DECLARE_WRITE_LINE_MEMBER( clk_w );
81    DECLARE_WRITE_LINE_MEMBER( dio_w );
82    DECLARE_READ_LINE_MEMBER( dio_r );
79   DECLARE_WRITE_LINE_MEMBER( cs_w );
80   DECLARE_WRITE_LINE_MEMBER( clk_w );
81   DECLARE_WRITE_LINE_MEMBER( dio_w );
82   DECLARE_READ_LINE_MEMBER( dio_r );
8383
8484protected:
8585    // device-level overrides
src/version.c
r11050r11051
3838***************************************************************************/
3939
4040extern const char build_version[];
41const char build_version[] = "0.141u4 ("__DATE__")";
41const char build_version[] = "0.142 ("__DATE__")";

Previous 15994 Revisions Next


© 1998-2018 The MESS Team